blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7c30c30dcc7cc854a841fbb8a6e3e7b45eb5bcf8 | 22aa900e70c8cc6005ecadbb2ae710526af8d3ba | /course/forms.py | 8da7a5b70959e28879bb8df24e4db2ededff90aa | [] | no_license | skafis/career_choice | f79ac3df223122a19a7718d9247ca4e2e72ee22e | 84d3ec752ba6da60e7130f132bd329ff72d66cae | refs/heads/master | 2021-01-13T02:50:44.580867 | 2016-12-22T16:32:40 | 2016-12-22T16:32:40 | 77,144,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | from django import forms
from .models import Courses
class add_coursesForm(forms.ModelForm):
class Meta:
model = Courses
fields = [
'name',
'time',
'cost'
] | [
"franciskipchumba5@gmail.com"
] | franciskipchumba5@gmail.com |
1999644c558f0f3bf2fc69e88aea396932927a64 | f3ad39ebf9654c99edb33c0fee843a53f9b6c31a | /backend/wesmusicmedia_20833/settings.py | 66d308873bed16394e0b2159023b8a1dcdfc1907 | [] | no_license | crowdbotics-apps/wesmusicmedia-20833 | 306814d32b3acd43c446cd004351c9fb93009afa | 474162c36a486c6028cfec8214d93d83fda4e235 | refs/heads/master | 2022-12-25T19:45:48.328522 | 2020-09-29T17:51:09 | 2020-09-29T17:51:09 | 299,693,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,900 | py | """
Django settings for wesmusicmedia_20833 project.
Generated by 'django-admin startproject' using Django 2.2.2.
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/
"""
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
80243321d8683bd4650a0a54e8f33792991bf2dc | 6fca7f97a9c8ed83daf94acaf6ad610773046930 | /Vendas.py | 58ec5fe765b8337c09303baed16b22378d934530 | [] | no_license | RenanSantos89/AnaliseVendasShopping | a0fc06d613a0948afd5a416dccf141cf8a1fd36e | 703423652e3d69009c5d4c6e57e118ffda211878 | refs/heads/master | 2023-06-26T08:02:35.807826 | 2021-07-22T14:19:42 | 2021-07-22T14:19:42 | 388,424,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,565 | py | import pandas as pd
import win32com.client as win32
# Importar a Base de Dados
# Import Database
tb_vendas = pd.read_excel('Vendas_Shopping.xlsx')
# Visualizar a base de dados
# View Database
pd.set_option('display.max_columns', None)
#print(tb_vendas)
# Faturamento por Loja
# Billing Store
Faturamento_loja = tb_... | [
"renan.jobs13@gmail.com"
] | renan.jobs13@gmail.com |
9530f2161cb6209d9db71fbebc16805db550b037 | 7578ed7ba3d6cd8458f0c653bec0ea80cf9b7ecd | /make_csv_test.py | 80dfeaad233dc2e288e2fcee86cc6fad5e6dea72 | [] | no_license | Mtakenoko/endoscope_augmentation | 93e379f11cb43b2a94921400e5bb1f5739ab4a60 | 3b648ffa7dde21b16a7d73134275ec487ba74b32 | refs/heads/master | 2023-01-27T16:28:32.711485 | 2020-12-04T16:53:17 | 2020-12-04T16:53:17 | 308,393,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | import os
import csv
def csv_test():
path = "eyemodel_test"
files = os.listdir(path)
files_dir = [f for f in files if os.path.isdir(os.path.join(path, f))]
with open(path + '.csv', 'w', newline='') as f:
writer = csv.writer(f)
for dir in files_dir:
images = os.listdir(path+... | [
"takehaya.724@gmail.com"
] | takehaya.724@gmail.com |
944266199b8a3c3742d2561e20f9de6f0dbba96b | da3c44999e9f21dfdc7b66381cc219d6108cf5ac | /emergency-room.py | ffe37a95ff3cf94680d271576705a98e64ef4881 | [
"MIT"
] | permissive | josehenriqueroveda/emergency-room | 1528660a2c39fb10472cd2f11e2fb4d9047b5dcc | 238f08e78bf98709c5089f246d6624cac74a38ba | refs/heads/master | 2022-12-18T14:48:29.222089 | 2020-09-10T12:03:55 | 2020-09-10T12:03:55 | 290,506,509 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,347 | py | import simpy
import random
import pandas as pd
import matplotlib.pyplot as plt
logo = """
______ _____
| ____| | __ \
| |__ _ __ ___ ___ _ __ __ _ ___ _ __ ___ _ ... | [
"zeh.henrique92@gmail.com"
] | zeh.henrique92@gmail.com |
ef0c265180c890036b834b01e406048d0adff839 | 56b6a13a4652dcd4089b870161b5ba219cb82b6e | /Interface - Jeu_Picross_Mania/Menu_principal/anciennes_versions_menu/fonctions5x5_4.py | 5a2e914a5de9f8c946bc2324916e153d678e3e7e | [] | no_license | fasimonet/Picross-Mania | f7b001c68cbc013d60ce79c2129ffd86b8dc5517 | 0e447020ed4fc901c1e0daba77dd2fb8fbccf5d3 | refs/heads/master | 2020-09-02T08:41:33.262878 | 2019-11-03T13:11:27 | 2019-11-03T13:11:27 | 219,181,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,326 | py | # Créé par Sinan et un peu Fabien (:joke:) le 21/03/2016 en Python 3.2
# Classes du programme "grille"
import pygame
from pygame.locals import *
pygame.init()
from constantes5x5_3 import *
#===============================================================================
# AFFICHAGE DES GRILLES D... | [
"fabien.simonet@etu.udamail.fr"
] | fabien.simonet@etu.udamail.fr |
dc37308651f34c0ea73ccde4cae542ae9a2859eb | 23d7bfd4dfea288e094e6103e6630e2fe7445fa1 | /Dash/Code/03_Graph_user_data.py | d764fab7ba6bda286e005eda8816ad63ec430f56 | [] | no_license | vectormars/Python-Practice | 3714c4b34c7de240152ef7131fbf2c8156d17980 | c1edc38c1bfeda3dbb2c1df16b87fa793c97fb5f | refs/heads/master | 2018-10-08T17:42:44.175903 | 2018-07-12T17:10:10 | 2018-07-12T17:10:10 | 116,074,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | import pandas_datareader.data as web
import datetime
import dash
import dash_core_components as dcc
import dash_html_components as html
app = dash.Dash()
stock = 'TSLA'
start = datetime.datetime(2015, 1, 1)
end = datetime.datetime(2018, 2, 8)
df = web.DataReader(stock, 'morningstar', start, end)
df.reset_in... | [
"noreply@github.com"
] | noreply@github.com |
4380bbd9ffaeebb0d795d325986d7ec51e35b7dc | 607856899400e859725d5656079d1778c1cf5860 | /Manager/models.py | 4cecec3a1829f0cfcf12ac16f24954cf95c447d0 | [] | no_license | guchenghao/Shopping-Online-System | d2020f24cf97b81f0e12c98616c75e0e23aac797 | 9e44fd95eb4ee56eb8f7e58dab2dff4653237896 | refs/heads/master | 2021-04-03T02:03:45.640999 | 2018-11-14T02:26:41 | 2018-11-14T02:26:41 | 124,623,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | # coding=utf8
from django.db import models
# Create your models here.
class Products(models.Model):
name = models.CharField(max_length=1000)
productType = models.CharField(max_length=100)
produceTime = models.DateField(null=True)
picture = models.ImageField(upload_to="goods_image/")
expTime = mode... | [
"1754926878@qq.com"
] | 1754926878@qq.com |
c03bbfd25eb5532e173f6b9f982d7620319b1f07 | 33b73dce48d5eaf2d8381cada87eac412c3f5ac8 | /create_movie.py | a98d821d19fb0b13b132464bf7e05c4db490dc8b | [] | no_license | rigvedepur/hiresimage-movie-creator | 90dbcf0c80b820688d7e5085e6b2c4ad30660784 | b0a6d56604bdf290a5bc01bf04cafc804c87f538 | refs/heads/master | 2023-07-23T11:02:34.085762 | 2021-12-27T06:57:46 | 2021-12-27T06:57:46 | 251,533,844 | 0 | 0 | null | 2023-07-06T21:57:34 | 2020-03-31T07:43:49 | Python | UTF-8 | Python | false | false | 2,075 | py | import cv2
import argparse
from skimage.io import imread
from progress.bar import IncrementalBar
ap = argparse.ArgumentParser()
ap.add_argument("-i", "--input", required=True, help="input filenname")
ap.add_argument("-r", "--resolution", required=True, help="output resolution", default='4K')
ap.add_argument("-s", "--... | [
"16384911+rigvedepur@users.noreply.github.com"
] | 16384911+rigvedepur@users.noreply.github.com |
9d65d56ca05d0ede955d00276d9cdb11a8cc54f8 | 478388af7c362f63c4457e99711ab8cfd750d7f9 | /examples/swag_ksikka/configuration_bert.py | e9dd11adfebc2957e06ccced47b8ea84e5379e0b | [
"Apache-2.0"
] | permissive | karansikka1/transformers | 9084a81ef2c9b0c160cad02bffcb6a16381723c2 | 1bedc2face5376077e9fb27b6c20a8122d4d9f6e | refs/heads/master | 2022-04-21T01:55:11.486724 | 2020-04-19T23:32:21 | 2020-04-19T23:32:21 | 256,115,532 | 0 | 0 | Apache-2.0 | 2020-04-16T05:12:42 | 2020-04-16T05:12:41 | null | UTF-8 | Python | false | false | 8,655 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a cop... | [
"karan.sikka@sri.com"
] | karan.sikka@sri.com |
c61d403099fed6fbcb69b33fa047ee2d16e137e1 | 5eb52c07e5b1bd00af77306f927f382b684cd6ff | /indy_common/generates_request.py | b70eefee0dfbe79d777c07d732f89f1458602edb | [
"Apache-2.0"
] | permissive | hyperledger/indy-node | bce39486988f5114581cff4f6d14fc1b7684143c | e6bb87d4c605aff9914491d062248b6ec857334c | refs/heads/main | 2023-09-03T15:33:08.187153 | 2023-05-08T22:48:21 | 2023-05-08T22:48:21 | 77,021,566 | 691 | 783 | Apache-2.0 | 2023-05-09T15:42:43 | 2016-12-21T05:45:04 | Python | UTF-8 | Python | false | false | 328 | py | from abc import abstractmethod
class GeneratesRequest:
@abstractmethod
def _op(self):
pass
@abstractmethod
def ledgerRequest(self):
"""
Generates a Request object to be submitted to the ledger.
:return: a Request to be submitted, or None if it shouldn't be written
... | [
"alexander.sherbakov@dsr-company.com"
] | alexander.sherbakov@dsr-company.com |
4a1363c06326737704a56ca87d0aee7cb9efc192 | 230352aa4775f328dd67d2a5db17a832dab4ad54 | /myblog/urls.py | d32cb7df012683355bd1897c8f910e4969bc7d01 | [] | no_license | light0011/Django_blog | 8e691cb4efc9549b8fb5f29166eabd2310089f88 | 54ec92ef7403ac0dc7d896f25d12950b12af1efb | refs/heads/master | 2021-06-16T20:18:06.627797 | 2017-05-24T02:28:53 | 2017-05-24T02:28:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | """myblog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | [
"li521YOUXINTWO"
] | li521YOUXINTWO |
dd8b87c4e3eb039651b484713ee069ae838bf750 | 28bea635167b3e0b99c3abf1236a5d6970d65d49 | /esgf2zarr/_version.py | 4d23300f6cbd39cbfe292238ba9c4635b656a65a | [
"Apache-2.0"
] | permissive | pangeo-data/esgf2xarray | 4531dbe0d1108d916cc3a00f807d9abe9e495aac | 6a5e4df0d329c2f23b403cbfbb65f0f1dfa98d52 | refs/heads/master | 2020-04-27T08:59:03.829876 | 2019-03-08T18:05:52 | 2019-03-08T18:05:52 | 174,194,614 | 4 | 1 | Apache-2.0 | 2019-03-08T18:06:26 | 2019-03-06T18:01:20 | Jupyter Notebook | UTF-8 | Python | false | false | 18,555 | py | # This file helps to compute a version number in source trees obtained from
# git-archive tarball (such as those provided by githubs download-from-tag
# feature). Distribution tarballs (built by setup.py sdist) and build
# directories (produced by setup.py build) will contain a much shorter file
# that just contains th... | [
"axbanihirwe@ualr.edu"
] | axbanihirwe@ualr.edu |
4c3f9df27fc36bfcb1b7fbff4458f02b1a830a73 | 4e9150d3a59a0a97fd6b3df1dc383dcdd9c09603 | /views.py | 3b33b33f79f619eef2c37625d344ba3483f01ca9 | [] | no_license | Demon702/Bodhitree-RnD | 126271f7d3a4ba951169cb9c1d340a91bcd02b89 | 2eceed1eed4a2b6ea70cadde029600308c961638 | refs/heads/master | 2020-05-20T14:27:24.566777 | 2019-05-08T13:55:31 | 2019-05-08T13:55:31 | 185,621,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215,010 | py | """
Created on May 20, 2013
@author: aryaveer
Views for assignment module
"""
import copy
import csv
import datetime as DateTime
import json
import mimetypes
import os
import pickle
import re
import shutil
import tarfile
import tempfile
import zipfile
from ast import literal_eval as make_tuple
from copy import deepcopy... | [
"debanjanmondal702@gmail.com"
] | debanjanmondal702@gmail.com |
b903aeff9f0ce8c0a750b446991365b030caf171 | a5bccbcbe8861bb5542edfa99812d2ba107c36f5 | /main.py | bd18e5cb550fe14652b455412691306244f82bed | [] | no_license | ubot1231/koreisai2019_trimmingObjects | 1293db3cda174a2b20dcf65d63054ef7ab1072aa | ed39577719e6f79b3df159a6d5259f8d022c1c3f | refs/heads/main | 2023-08-25T14:29:09.628423 | 2021-10-08T21:22:42 | 2021-10-08T21:22:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | import numpy as np
import sys
import toka
import webcam
from grabcut import App
#写真を出力したい場所(パス名)
filename_Output = "/Users/uboT/Documents/Python/OpenCV/4trim/Code/Output/Output.png"
#とった写真を保存する
webcam.webcam(filename_Output)
#マスク画像の生成
grabcut=App()
grabcut.run(filename_Output)
#撮った写真を透過してOutputに出力する
toka.toka(... | [
"noreply@github.com"
] | noreply@github.com |
454994b05910daee4f982348fb1beb8bab821645 | cf5bfac1e203ae0da1802cf539f32250b57e7224 | /4.exceptions/exception101.py | dafb2cf845bdff6ba846e02634c5ec0ab88084d4 | [] | no_license | jnepal/OReilly-Python-Beyond-the-Basics-OOP | fba2229ffd31b87e2ceab48c6c3f7f445ab47493 | 05050a7ecd0db5c9f18cc6e5ae49a07ddf6054cf | refs/heads/master | 2021-05-01T07:16:26.957247 | 2018-02-11T18:16:36 | 2018-02-11T18:16:36 | 121,152,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | '''
Handling Exceptions
'''
import sys
mydict = {'a': 1, 'b': 2, 'c': 3, 'd': 4}
key = input('please input a key: ')
try:
print("The value for {0} is {1}".format(key, mydict[key]))
except KeyError as err:
print('the key ' + key + ' does not exists')
print(err)
# print(sys.exc_info()[0])
'''
... | [
"johndoe@example.com"
] | johndoe@example.com |
4bb99b23bed553342ef2a0ac976d90997b86be87 | 3db8243d09eea8a5c745b32acd0c4375ab4ad2d9 | /shap/plots/force.py | 927678c366716174c9a05bfa27ad01520b6b0b51 | [
"MIT"
] | permissive | augustinas1/shap | 46fc9d7aa3b7ed3efa03943d10c3c7d4ce0038bb | fd2e24d52d26eddb1db42f6b8f22d59611e04f7f | refs/heads/master | 2020-03-25T17:40:01.300183 | 2018-09-14T15:37:07 | 2018-09-14T15:37:07 | 142,184,628 | 0 | 0 | MIT | 2018-07-31T11:30:25 | 2018-07-24T16:24:17 | Jupyter Notebook | UTF-8 | Python | false | false | 12,857 | py | """ Visualize the SHAP values with additive force style layouts.
"""
from __future__ import unicode_literals
import os
import io
import string
import json
import random
from IPython.core.display import display, HTML
import base64
import numpy as np
import scipy.cluster
import collections
from ..common import convert_t... | [
"slund1@cs.washington.edu"
] | slund1@cs.washington.edu |
58be87c385080aa2d8610c062e6534b8eb59cef9 | 06adea92d1e66d653d0884e8469b7352f5de4f04 | /matplotlibMine/change/ACF_PACFPlot.py | 525672a6ccb4aba2cba6966636059490d812989e | [] | no_license | Gedanke/FigureDemo | a3cf1f0998fb0dc7acce9b90ff55453372759575 | e37164521d9c4e8c5a05592749f1779bed2b0903 | refs/heads/master | 2023-04-19T08:47:35.417971 | 2021-05-05T05:09:48 | 2021-05-05T05:09:48 | 361,770,137 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | # -*- coding:utf-8 -*-
import pandas
import matplotlib.pyplot as plt
from statsmodels.graphics.tsaplots import plot_acf, plot_pacf
# Import Data
df = pandas.read_csv('../dataset/AirPassengers.csv')
# Draw Plot
fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(12, 6), dpi=80)
plot_acf(df.value.tolist(), ax=ax1, lags=50)
... | [
"13767927306@163.com"
] | 13767927306@163.com |
405fb8a3a54541c8e098035467d568b7df4ff9ec | afcf26bbd84161f2775b879a68b2c163878984d9 | /trainboarding/trainboarding.py | fc9946fc53b50fad6607bff4c417b78d00ae3e6e | [] | no_license | jakobkhansen/KattisSolutions | 505a0657fa02a5156c853fc0a6566dd51591d36d | 2869d6c9027515fd41eac6fcaee281aa474810c4 | refs/heads/master | 2023-07-07T19:17:37.614836 | 2023-06-28T18:12:50 | 2023-06-28T18:12:50 | 191,001,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | import sys
def trainboarding(lines):
n,l,p = [int(x) for x in lines[0].split(" ")]
trains = [0]*n
max_distance = 0
for num_str in lines[1:]:
num = int(num_str)
distance, index = get_train_index_and_distance(num, l, n)
max_distance = distance if distance > max_distance else max_d... | [
"jakob.hansen@hotmail.no"
] | jakob.hansen@hotmail.no |
879022569a2c91e78dc5739ac73b451f831e7d0b | 34b7d70002ac87723fea3243bcf22abb42fa0577 | /src/Calculator.py | b916959cfe620664b6e1f0d83de6d5a82785df20 | [] | no_license | vishwa742/Calculator | ca46e42accc6696021202def3ff4d2f5256707a8 | 71b3caa6b3d47ebff038d544074160641b9e2291 | refs/heads/master | 2020-08-23T17:50:10.715967 | 2019-12-01T03:15:08 | 2019-12-01T03:15:08 | 216,675,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | import math
def addition(a,b):
return a+b
def subtraction(a,b):
return b-a
def multiplication(a,b):
return a*b
def division(a,b):
return float(a)/float(b)
def squared(a):
return a*a
def squareroot(a):
return math.sqrt(a)
class Calc:
rest=0
def __init__(self):
pass
... | [
"ezhilvishwanath@gmail.com"
] | ezhilvishwanath@gmail.com |
f1e6e6ba07ad0e06aca375c4c69b91cf60f4619a | 50e5b1a5821ec5f04c33dfcbaf5213e082194fc4 | /project_houses/wsgi.py | 7ba5d4693b11736d719b41b9d76ed3553636dcfe | [] | no_license | FAenX/houses | 242858a64b4268453a31cca0906c09ffe035937c | e21606d368c6f978f11fef814694d4ce41b98494 | refs/heads/master | 2020-04-18T14:25:19.334787 | 2019-05-23T20:03:32 | 2019-05-23T20:03:32 | 167,588,261 | 0 | 0 | null | 2019-05-23T20:03:33 | 2019-01-25T17:43:28 | Python | UTF-8 | Python | false | false | 405 | py | """
WSGI config for project_houses project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANG... | [
"kipronofb@gmail.com"
] | kipronofb@gmail.com |
28654faa92303808521a1ad97c6e0b89de5f832a | 3aa33ef283df0e36cabd5cb520e7dd62a769bc25 | /Calendar/cal/serializers/Event.py | c7a939947d7c10e0aa6ce1f17ba34e9151de3d59 | [] | no_license | TonyFrancis/DjangoHello | 24df720eb1fe1ec68dee05ba30a4971bc851fc6a | 38ab7bea40a144276c922a770f77bc189c44981f | refs/heads/master | 2021-01-19T08:58:39.442443 | 2017-04-09T12:13:15 | 2017-04-09T12:13:15 | 87,701,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from rest_framework import serializers
from ..models.events import Event
class EventSerializer(serializers.ModelSerializer):
class Meta:
model = Event
| [
"gtony@suyati.com"
] | gtony@suyati.com |
b1193fd55d5fbb0ab7819fccdce73c9a491f1b0d | 6dfcf6bb912661ce857b9474d62a270c1b2bc96b | /Audiobook/myab.py | c366a6064139319144035fc8179f6ee49a684354 | [] | no_license | utkarsharma01/My-Projects | 98a4ffd2a2a517249f1f25b98bd86df43c788c8a | 0a84de971d101b169ba44f087b1ae25a2dfbadc8 | refs/heads/master | 2023-01-03T17:23:59.144497 | 2020-10-28T18:59:26 | 2020-10-28T18:59:26 | 286,280,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | import pyttsx3
import PyPDF2
book = open('oops.pdf', 'rb')
pdfReader = PyPDF2.PdfFileReader(book)
pages = pdfReader.numPages
print(pages)
speaker = pyttsx3.init()
for num in range(7, pages):
page = pdfReader.getPage(num)
text = page.extractText()
speaker.say(text)
speaker.runAndWait()
| [
"noreply@github.com"
] | noreply@github.com |
c7a4356d7fdf1cd0601244d175b68f0a61ee4a2a | 4c6113392ea456e1eb964172b43f0c9846ca712a | /tests/test_volatility.py | 8ff6fe6b0143161483ac60f94b8552bc2c8018be | [
"MIT"
] | permissive | g8a9/pyti | abd344d4d5eb30f36e6c860eb82567d7cacbd780 | 1697ea000730a2238df70505ba77e165619fdf8c | refs/heads/master | 2020-03-27T11:04:22.417031 | 2019-09-09T08:50:51 | 2019-09-09T08:50:51 | 146,463,237 | 0 | 1 | MIT | 2018-08-28T14:53:08 | 2018-08-28T14:53:07 | null | UTF-8 | Python | false | false | 10,070 | py | from __future__ import absolute_import
import unittest
import numpy as np
from tests.sample_data import SampleData
from pyti import volatility
class TestVolatility(unittest.TestCase):
def setUp(self):
"""Create data to use for testing."""
self.data = SampleData().get_sample_close_data()
... | [
"kyle@collectiveidea.com"
] | kyle@collectiveidea.com |
235f8543683b0f8e93ab3658fce247f2507db2ac | 2a3743ced45bd79826dcdc55f304da049f627f1b | /venv/lib/python3.7/site-packages/deribit_api.py | 29835d45975a42ff171d83291465e8b8813c9460 | [
"MIT"
] | permissive | Dimasik007/Deribit_funding_rate_indicator | 12cc8cd7c0be564d6e34d9eae91940c62492ae2a | 3251602ae5249069489834f9afb57b11ff37750e | refs/heads/master | 2023-05-26T10:14:20.395939 | 2019-08-03T11:35:51 | 2019-08-03T11:35:51 | 198,705,946 | 5 | 3 | MIT | 2023-05-22T22:29:24 | 2019-07-24T20:32:19 | Python | UTF-8 | Python | false | false | 5,534 | py | # -*- coding: utf-8 -*-
import time, hashlib, requests, base64, sys
from collections import OrderedDict
class RestClient(object):
def __init__(self, key=None, secret=None, url=None):
self.key = key
self.secret = secret
self.session = requests.Session()
if url:
self.url... | [
"dmitriy00vn@gmail.com"
] | dmitriy00vn@gmail.com |
2884afe943fa91d4367c1089231a104805f2e2a3 | dd27d37ebe509b98ef28c2a25f948e94f9d92668 | /cityAlert/venv/bin/unit2-2.7 | 3b67c365c607c9472a30b302c6cc84e15b117b0a | [] | no_license | soru13/cityvoice | 021ed89605ec52531163bc14ed220bd91e3f50d8 | 658177b893330a6cd71f45bb95ffa32e40387132 | refs/heads/master | 2020-05-20T13:46:21.885466 | 2015-03-21T06:17:34 | 2015-03-21T06:17:34 | 32,622,256 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 344 | 7 | #!/home/soru/adsumDeploy/cityAlert/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'unittest2==0.5.1','console_scripts','unit2-2.7'
__requires__ = 'unittest2==0.5.1'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('unittest2==0.5.1', 'console_scripts... | [
"jesus.ed13@gmail.com"
] | jesus.ed13@gmail.com |
688e0b91b2a22f349957eb947eebb21ea60f9c26 | 8ed6a3f494795c5c45c28c78dbf597f017a5b496 | /course/apis/views/nested_view.py | 1b1f1736d84af2eafaf68f05e7b4d1bd91c5bdad | [] | no_license | bopopescu/E-Learning-Backend-Django | 917b1521fd07c4800d0dba347a406779069d1618 | cc732482821c491537e1b4d0b778d372640e1d7b | refs/heads/master | 2022-11-19T07:00:13.350826 | 2020-05-08T22:50:59 | 2020-05-08T22:50:59 | 280,950,530 | 0 | 0 | null | 2020-07-19T21:06:03 | 2020-07-19T21:06:02 | null | UTF-8 | Python | false | false | 997 | py | from rest_framework import generics
from ELearning.restconf.permission import IsOwnerOrReadOnlyLec
from rest_framework import permissions
from course.models import Topic
from ..serializers.nested_serializer import TopicNestedSerializers
class NestedList(generics.ListCreateAPIView):
permission_classes = [permissio... | [
"soumya.pullakhandam1@gmail.com"
] | soumya.pullakhandam1@gmail.com |
47a973711a8b923b936e2065c5d59905c74acf35 | 810412fc189697eaad5731cd66cc291f1d82c3b5 | /cap2/extensions/experimental/strains/merge_snp_graph.py | 17ef682831a202a1ef92a7392795e9a09cedac61 | [
"MIT"
] | permissive | MetaSUB/CAP2 | c511655ed15a7e886d5216a358fc6e5904b25f24 | 5ccdc0af310dd4ee382a81c7330e04927d9ef5fe | refs/heads/master | 2022-12-03T15:50:59.694245 | 2021-12-29T17:03:50 | 2021-12-29T17:03:50 | 213,112,026 | 12 | 7 | MIT | 2022-11-22T09:28:20 | 2019-10-06T05:09:18 | Python | UTF-8 | Python | false | false | 1,890 | py |
from .tasks import StrainCapGroupTask
from ....pipeline.config import PipelineConfig
from .strainotyping import (
VERSION,
merge_filter_graphs_from_filepaths,
write_graph_to_filepath,
graph_node_table,
)
from .make_snp_graph import MakeSNPGraph
class MergeSNPGraph(StrainCapGroupTask):
MIN_WEIGH... | [
"dcdanko@gmail.com"
] | dcdanko@gmail.com |
5c84745a3cac02dc06784f3fcbd2f816a8720f6d | ce823ea8016eeb7d584fd097ec10efee8db0eba8 | /fundamentals/learning.py | 2e3cd3e76e44b14f021f4d0dcdd3db03f5797d62 | [] | no_license | mwendo/Python | df21ba9e5341b9765568d33f5f96ec8776c018cc | 23258d0ed1b8cb6ed548561d7110e0b25172bbe0 | refs/heads/master | 2023-04-12T19:18:31.466050 | 2021-04-24T21:18:22 | 2021-04-24T21:18:22 | 354,918,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | def multiply(num_list, num):
for x in num_list:
x *= num
return num_list
a = [2,4,10,16]
b = multiply(a,5)
print(b)
# output:
# >>>[2,4,10,16]
| [
"wendorfmicah0@gmail.com"
] | wendorfmicah0@gmail.com |
7dbe88fdeeb27765e1152b35ae4712ee2ca1cd69 | c2a526e0eb65b1465ce1fffecb3d395a406c0969 | /db2_exec.py | 4e5b9503484f1bc1ca8c6c28afd51c073d66c425 | [] | no_license | mmitache88/CryptoML | 8e9ce20820c29826163d5662f324c71c155a4d0b | 3c03303d674dcdd03f4bf25c094ee73aba9e9c00 | refs/heads/master | 2020-03-15T08:59:05.504938 | 2018-11-07T23:30:01 | 2018-11-07T23:30:01 | 132,064,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,288 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jan 12 17:12:48 2018
@author: mmita
"""
#%%
import sqlite3
import time
import datetime
import pandas as pd
import numpy as np
import os.path
#%%
LatestDf = pd.read_csv('D:\\Google Drive\\1 Desktop\\Projects\\Cryptos\\Datasets\\price related\\master_hourly_2018-04-27.csv') # L... | [
"mmitache@gmail.com"
] | mmitache@gmail.com |
e1c4554b533878bdc79592b9e4cbeac027a29f4b | c89d722f10b71c42ee281ef6024e51de81b32a65 | /frappe-bench/env/bin/gunicorn_paster | e6c065f9da3efac8f72616ea3c50e8bc09df633b | [] | no_license | maheshlangote1/FrappePortal | ff7efe739997400ecc7d30c3d8d8ce6de71cafac | a71009c2e70158edc23f4e3eca8aff6751787e4b | refs/heads/master | 2021-09-11T01:04:54.457492 | 2018-01-13T13:31:30 | 2018-01-13T13:31:30 | 117,345,053 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 277 | #!/home/digitalprizm/workspace/FrappeProject/frappe-bench/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.pasterapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"maheshlangote1@gmail.com"
] | maheshlangote1@gmail.com | |
9fa74e2c50538fd6a1720505384f49ab1e14c7af | 76a7fa828fd2c5f04839516dad2debde8ed6b8a6 | /Manika_tut1.py | 084d0f3a140c3162c3086f978ea1b5ac61817a72 | [] | no_license | manika-m/cp2 | e0f5f94906a631b9d1a4ede359fc3cab3c02707b | 64aed6d9bc4f0608097026a224f381561deb5356 | refs/heads/master | 2020-12-30T11:28:06.168317 | 2017-05-31T07:38:02 | 2017-05-31T07:38:02 | 91,562,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,261 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
''' Manika Moodliar 214582074'''
import numpy as np
from scipy.integrate import simps
from matplotlib import pyplot as plt
#Problem 3,4,5,6 tut 1
pii = np.pi
#Question 3
def vector(n):
x=np.linspace(0,pii/2,n)
return x
def simpleMethod(n): #integrate cos
... | [
"noreply@github.com"
] | noreply@github.com |
4098de298ac192a6b879c46fd5099abfe331fc11 | ec36fea08674d71b8361af69dd361e0c2effb035 | /SeedCast/Masters/models.py | be39015d08a5d8687523715b5dc737fc3c5ddaf3 | [] | no_license | Sai-Kumar-PRACS/IRRI-Test | 96fe926ff5381f268c6d21eb4a3054b93c3aefdb | e37cf575c361a456eb0cac20f5cf1337a69091b2 | refs/heads/master | 2021-09-08T22:49:26.447312 | 2018-03-12T16:41:30 | 2018-03-12T16:41:30 | 106,270,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,848 | py | from datetime import datetime
from django.db import models
from django.core.validators import RegexValidator, MinLengthValidator
from multiselectfield import MultiSelectField
from django.utils.translation import ugettext_lazy as _
from django import forms
# from jchart import Chart
# Create your models here.
class S... | [
"sai@pracs.in"
] | sai@pracs.in |
00e9f5fe14e266706112b3eda5db3a81edd109a1 | 4fdd98d5e82385393d4eb2f6526cddb15563c477 | /src/morphforge/core/quantities/__init__.py | 8ed61d5caaf565c48693fc05504751f56db48a69 | [
"BSD-2-Clause"
] | permissive | bmerrison/morphforge | f8541d4471ce13519986c42d4ebb3714a238e390 | 6d06845493bf01aae94a706bfde5d4eb9c733659 | refs/heads/master | 2021-01-18T07:49:47.645031 | 2012-09-26T20:54:13 | 2012-09-26T20:54:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,047 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------
# Copyright (c) 2012 Michael Hull.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are m... | [
"mikehulluk@googlemail.com"
] | mikehulluk@googlemail.com |
95b4ba670fad9aa6e2ada7300f4aa62646de42ef | 897d82d4953ed7b609746a0f252f3f3440b650cb | /day07/exercise_personal/08_exercise.py | 36811015b50dfbbced51178172c00201a0a3c549 | [] | no_license | haiou90/aid_python_core | dd704e528a326028290a2c18f215b1fd399981bc | bd4c7a20950cf7e22e8e05bbc42cb3b3fdbe82a1 | refs/heads/master | 2022-11-26T19:13:36.721238 | 2020-08-07T15:05:17 | 2020-08-07T15:05:17 | 285,857,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | list_poker = []
for r in range(1,7):
for c in range(1,7):
for v in range(1,7):
list_poker.append((r,c,v))
print(list_poker) | [
"caoho@outlook.com"
] | caoho@outlook.com |
8a752594fbaede8a55376c2bb862d7962842e631 | fa67314df981eb8c72790819ca29f45c37c52c69 | /Assignment-1_CS16BTECH11036/Question4/Dtree.py | a37b07fb18afb5767de65c0ba9122cf331dccafb | [] | no_license | omsitapara23/AML | 5ce142751354cee72a8007ba952c55ae8a90d193 | 7d320ef6ce342590dfbce9e70d9d9fff7561939b | refs/heads/master | 2020-04-20T01:45:41.095561 | 2019-03-12T17:13:57 | 2019-03-12T17:13:57 | 168,553,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,800 | py | import numpy as np
import csv
import json
from sklearn.neighbors import KNeighborsClassifier
from sklearn import preprocessing
from collections import Counter
from sklearn.naive_bayes import GaussianNB
from sklearn.naive_bayes import MultinomialNB
from sklearn.naive_bayes import BernoulliNB
from sklearn import tree
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
42cf07fd048084be0a2a5628d4d24208c37b1b2e | 176878355049c726e8a3a09e645fac99809745fc | /game/camera.py | 274969e176d7a354a8a376835ca3212b8eddb24b | [
"MIT"
] | permissive | senhordaluz/jc1-python | d0e2d62d84010ffad19c3025c86b40e6de540594 | 7ed14199147dcc74c970740b670a2da22d91e550 | refs/heads/master | 2021-01-19T13:15:17.366353 | 2017-08-22T02:57:52 | 2017-08-22T02:57:52 | 100,836,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,811 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Aug 21 22:33:58 2017
@author: Pedro da Luz
"""
import pygame
class SpriteSheet(object):
"""
Classe para lidar com sprites animados
reatangulo = (x, y, x + offset, y + ofset)
"""
def __init__(self, filename):
self.sheet = pygame.image.load... | [
"pedro.luz@hotmail.com.br"
] | pedro.luz@hotmail.com.br |
828e53f2e62d6cc45ed309a2d29a4778afa6d5a6 | 057bdbd048d8b99064eb06af45d9e40beff6fe80 | /examples/app.py | 5726ced00da4c2d832a28e7d5bce9fbca39c9927 | [
"MIT"
] | permissive | miguelgrinberg/APIFairy | 5a058f9763c381b765a4139366e35e579b4a1723 | ed2c9b99e8ed8b7cd61a1b95f7f295bd2a902590 | refs/heads/main | 2023-07-24T14:22:21.282560 | 2023-07-15T23:01:50 | 2023-07-15T23:01:50 | 299,060,489 | 303 | 28 | MIT | 2023-01-05T15:49:05 | 2020-09-27T15:24:33 | Python | UTF-8 | Python | false | false | 2,202 | py | """Welcome to the APIFairy Simple Example project!
## Overview
This is a short and simple example that demonstrates many of the features of
APIFairy.
"""
from typing import Annotated
from uuid import uuid4
from flask import Flask, abort
from flask_marshmallow import Marshmallow
from apifairy import APIFairy, body, re... | [
"miguel.grinberg@gmail.com"
] | miguel.grinberg@gmail.com |
5a2841e67c9fc377ea825cd9e34b1e98c26b6e0e | 60a267a7136b3cec2727824122bc6cda28c331e5 | /src/compas/files/csv.py | 17e17921601bb0662b4c6f1ddc31e317ed607396 | [
"MIT"
] | permissive | BlenderCN-Org/compAS | 4a257637d181188c0b68210f1126fa826be226d5 | 9796066a2dc26f39fe6ad0a0d44a1ef8a84a608a | refs/heads/master | 2020-05-30T02:11:18.495302 | 2017-03-21T13:42:17 | 2017-03-21T13:42:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,328 | py | from __future__ import print_function
try:
import urllib.request as urllib2
except ImportError:
import urllib2
__author__ = ['Tom Van Mele <vanmelet@ethz.ch>', ]
__copyright__ = 'Copyright 2014, Block Research Group - ETH Zurich'
__license__ = 'MIT License'
__email__ = 'vanmelet@ethz.... | [
"rippmanm@localhost"
] | rippmanm@localhost |
8fe14d308d8109ed2ecf4cde166009167e97a67c | feaed316ea3653015e79d39d3ca4feb6d8c5d1f0 | /web_practice_python/3rd_week/queue_class.py | c593562de8f2c1dd0ee353379b77514296cad695 | [] | no_license | seunghee63/study_web_python | ee0afd86cee90b06be10f76397bda74f5f84dcaf | b2eb91265090916895d316f865d7ac9514236175 | refs/heads/master | 2020-05-04T00:20:21.235950 | 2019-05-02T13:04:49 | 2019-05-02T13:04:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | class queue_class:
def __init__(self):
self.__queue_list = list()
self.__isVariable = False
@property
def isVariable(self):
return self.__isVariable
@isVariable.setter
def isVariable(self, new_isVar):
self.__isVariable = new_isVar
def info(... | [
"0603yang@naver.com"
] | 0603yang@naver.com |
49f8181467ef64c97ff48bc65bd315a49e3c3d18 | 4f8e99d998b3248febcdd087df5109213133dd0c | /bluerobotics/pymavlink/sensors_reading.py | 482c306c7ae97a72f3a749708f52a4923e58a7a8 | [] | no_license | xuzhizun/pixhawk_tools | 7a5d938c24da5edd5dfd8ebe78c9d628decc2661 | b4166ed0d1731ae3b069d5b5f5da4814a37b4577 | refs/heads/main | 2023-04-15T01:43:07.046061 | 2021-04-27T10:24:33 | 2021-04-27T10:24:33 | 361,980,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py |
'''
set stream rate on an APM
'''
from __future__ import print_function
from builtins import range
import sys
from pymavlink import mavutil
def wait_heartbeat(m):
'''wait for a heartbeat so we know the target system IDs'''
print("Waiting for APM heartbeat")
m.wait_heartbeat()
print("Heartbeat from A... | [
"zhizun_222@163.com"
] | zhizun_222@163.com |
88048ffd2436f9c6fe46b6324788e53e8153f674 | f1e3cdbc478711828c3940b93903c2a7d7c7331e | /conanfile.py | b60bd3b6117997a2191fde766e320c5f7339fcaa | [
"MIT"
] | permissive | Jean1995/cubic_interpolation | 85027e46ca20a69e9a3c40ea3cfb8a03e4879de1 | dffa2af3110d77bffb525d428efea54ea7ee6982 | refs/heads/main | 2023-03-23T02:17:08.224667 | 2021-03-19T16:41:20 | 2021-03-19T16:41:20 | 338,343,132 | 0 | 0 | null | 2021-02-12T14:34:14 | 2021-02-12T14:34:14 | null | UTF-8 | Python | false | false | 3,618 | py | from conans import ConanFile, CMake, tools
from conans.errors import ConanInvalidConfiguration
import os
required_conan_version = ">=1.32.0"
class CubicInterpolationConan(ConanFile):
name = "cubicinterpolation"
homepage = "https://github.com/MaxSac/cubic_interpolation"
license = "MIT"
url = "https://... | [
"maximilian.sackel@udo.edu"
] | maximilian.sackel@udo.edu |
39694e63e136c7de35f1644beaf3721a4977f8c9 | e6f62e277c63ad417664c292989ac7b18b5d3027 | /sanguo/core/plunder.py | 6a6fd5fdf9222be63677815da601b879f2ae45c8 | [] | no_license | yueyoum/sanguo-server | 1fe8df69ca923e0166fd6f75e11d08a2b4bbde37 | 08df991a3bffea4b4f56f20ffea23bc373465332 | refs/heads/master | 2021-01-15T15:33:00.427811 | 2016-06-21T09:28:03 | 2016-06-21T09:28:03 | 13,704,516 | 1 | 3 | null | 2014-10-22T07:45:31 | 2013-10-19T16:38:19 | Python | UTF-8 | Python | false | false | 16,744 | py | # -*- coding: utf-8 -*-
__author__ = 'Wang Chao'
__date__ = '1/22/14'
import time
import random
import base64
import dill
from mongoscheme import DoesNotExist
from core.server import server
from core.character import Char
from core.battle import PlunderBattle
from core.mongoscheme import MongoPlunder, MongoAffairs,... | [
"yueyoum@gmail.com"
] | yueyoum@gmail.com |
8786f7cea9480d2dd0083629d6f050e773cfd72b | ace48bbf0af822a2f78d53c1c83dc9460ba0b1aa | /Machine_Learning_Models/2LogisticRegression_sklearn.py | 4fb103c49428ece76049edd1ccc06726928103a1 | [] | no_license | 15940260868/HDK_On_Electrode_Arrays | 5cb139f7643441adcbc7e1078f3086cc6422a8d5 | c39124994e6529f8e28358db0bf5c91fc6827cc9 | refs/heads/master | 2020-09-11T07:13:30.734629 | 2019-11-15T18:54:08 | 2019-11-15T18:54:08 | 221,984,558 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,215 | py | # -*- coding: utf-8 -*-
from scipy import io as spio
import numpy as np
from sklearn import svm
from sklearn.linear_model import LogisticRegression
def logisticRegression_oneVsAll():
# data = loadmat_data("data_digits.mat")
# X = data['X'] # 获取X数据,每一行对应一个数字20x20px
# y = data['y'] # 这里读取mat文件y的shape=(5000, 1)
# ... | [
"noreply@github.com"
] | noreply@github.com |
5e0cbc10b2fcdd26f9f263d4bd7390fed7058dbd | bfc57b805a7e38c6dede3a74dddd221b8731bb11 | /apps/secrets/models.py | 4e9c2a47ad27a56f88f8de2df5d08d558a763bed | [] | no_license | dancinturtle/multiappsDemo | 213aa024e78ba1b6b0df686023c4e8eb07237daa | fd301b4c00d0be72de674efc2104c7fad8ab2c73 | refs/heads/master | 2021-01-21T10:46:39.657685 | 2017-02-28T22:58:10 | 2017-02-28T22:58:10 | 83,487,889 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,581 | py | from __future__ import unicode_literals
from django.db import models
# Create your models here.
class UserManager(models.Manager):
def register(self, postedName):
if len(postedName) < 1:
return(False, "Username cannot be empty")
try:
self.get(username=postedName)
... | [
"amy.giver@gmail.com"
] | amy.giver@gmail.com |
dbc1e900db999d09373cf8e18de8e6d965592723 | b7a50b6336adbb36218e9aec446eba5268081ec8 | /signout.py | 967e4804d4bdba7bcfc83cc0746ed5603c6d2fa0 | [] | no_license | shengshuyang/my-udacity-web-homework | 61055ba57429ee77caaeae46b723b1a4f9f0cbe7 | 1b805044e431718cd76814097b56d00bd6e6e1a5 | refs/heads/master | 2020-04-06T07:07:17.326882 | 2016-09-01T21:10:33 | 2016-09-01T21:10:33 | 65,122,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | import webapp2
import handler as hd
from validation_util import *
class SignOutHandler(hd.Handler):
def get(self):
self.response.set_cookie(key='user', value=None)
self.redirect("/")
app = webapp2.WSGIApplication([
('/signout', SignOutHandler)
], debug=True) | [
"shengshuyangdlut@gmail.com"
] | shengshuyangdlut@gmail.com |
91292598fcf145537d4abcdd43250c13e2a22d47 | 2e3133ea649337fbf1f99727dddd927496f4c9d8 | /QGraphViz/Engines/__init__.py | ed152db452864694071d8bfb26ead3b4a364b1a4 | [
"MIT"
] | permissive | ParisNeo/QGraphViz | 7f58d5c44f54174e8372431a705215e446b3f7a3 | dbc51be0a4055645c6295716df4ed8a978d3e7a4 | refs/heads/master | 2022-11-03T19:16:15.764651 | 2022-11-01T10:26:41 | 2022-11-01T10:26:41 | 224,505,604 | 28 | 12 | MIT | 2022-11-01T10:13:50 | 2019-11-27T19:46:44 | Python | UTF-8 | Python | false | false | 94 | py | from QGraphViz.Engines.LayoutEngine import LayoutEngine
from QGraphViz.Engines.Dot import Dot
| [
"aloui.seifeddine@gmail.com"
] | aloui.seifeddine@gmail.com |
40ea2bd23263e70ce428df735e47a5a1bc64e604 | 280e088d5d4216a2f2e2dee8ca99f984353d31d7 | /tuple8.py | 6175043e10b2cd8b5581198ad139d549d9b268f1 | [] | no_license | karthick1808/CDB20DW061 | f4c5648048b6e9ec644bfaa4bb115156fb90b6cb | 47649f3065d70de253eb6d06eecc9b65fc7a9b94 | refs/heads/main | 2023-03-17T12:55:40.875667 | 2021-03-12T05:33:55 | 2021-03-12T05:33:55 | 328,544,917 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | fruits=("apple","banana","cherry")
#method 1
for x in fruits:
print(x)
#method2
for i in range(len(fruits)):
print(i)
#join
tuple1=(1,2,3,4,5,6,7,8,9)
tuple2=("a","b","c","d")
tuple3=tuple1+tuple2
print(tuple3)
#multiple
tuple4=tuple1*3
print(tuple4) | [
"noreply@github.com"
] | noreply@github.com |
0fe93c0f349e5a259077b13ba91fe7fbd81f1ea3 | 73bde0a4401f3fca1dd434ca682de3ce9c82e545 | /checkPerson.py | 84c724ff46693ff9b402d2e19cbd7340c669151a | [] | no_license | kaanozbudak/pythonCreditCardCheck | ccd0b434c04e4b5ee4477ccad31b6e9ac7ade87e | 8ea7d4a9eec3a8c640deb8cb291c1e577d04f266 | refs/heads/master | 2020-04-14T18:23:58.367743 | 2019-01-03T20:15:33 | 2019-01-03T20:15:33 | 164,017,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | import json
ageStatement = ''
salaryStatement = ''
stateStatement = ''
nameLengthMax = 0
age = 0
salary = 0
name = ''
state = ''
def checkPerson(ageStatement, salaryStatement, stateStatement):
if eval(ageStatement):
if eval(salaryStatement):
if eval(stateStatement):
print 'ye... | [
"noreply@github.com"
] | noreply@github.com |
a0567a9df8877498d5d248d62931f7264b44c8ba | dc884618408a2df2c72a8b44e5006eca468c2fd2 | /L17/171.py | d6492a0c0218ca4771dddbfb647057e16c73352e | [] | no_license | datnerdatner/RTR105 | fdc280cadddcfb7e681fd9b1b3705a5a303beef9 | d36363d2a5fa310075ebe5c6d15d9a480ffb8912 | refs/heads/master | 2020-03-28T11:00:30.888171 | 2019-07-23T10:00:24 | 2019-07-23T10:00:24 | 148,168,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | # Fails:170.py
# Autors: Renats Jakubovskis
# Apliecibas numurs: 181REB261
# Datums: 09.12.2018
# Sagatave funkcijas saknes mekleeshanai ar dihatomijas metodi
# -*- coding: utf -8 -*-
from math import sin , fabs
from time import sleep
def f(x):
return sin(x)
# Definejam argumenta x robezhas :
a = 1.1
b = 3.2
# A... | [
"datner@inbox.lv"
] | datner@inbox.lv |
d6471ac2a7a5c6eca1f4c8f56df3a79378bc7895 | 4365cdadad0026cabdf008bb46cacbaa397122f3 | /SaeHyeon/Algorithms/Brute_Force/BOJ14620.py | 8bdcd0d5ad0feb88bda1460f95d5d196ba5daeaa | [] | no_license | thalals/Algorithm_Study | 31e124df727fb0af9bf9d4905f3eade35a722813 | 3d067442e5e0d6ca6896a0b0c8e58a0dc41e717e | refs/heads/main | 2023-07-06T05:52:04.679220 | 2021-08-19T06:11:56 | 2021-08-19T06:11:56 | 331,019,217 | 1 | 1 | null | 2021-01-19T15:10:19 | 2021-01-19T15:10:18 | null | UTF-8 | Python | false | false | 1,145 | py | import sys
input=sys.stdin.readline
dx=[0,0,-1,0,1]
dy=[0,1,0,-1,0]
n=int(input())
gold=[]
visit=[[0]*n for _ in range(n)]
result=9999
for _ in range(n):
gold.append(list(map(int,input().split())))
# print(gold)
# print(visit)
cnt=0
def check(x,y):
global n
for i in range(5):
nx=x+dx[i]
... | [
"tpgus19@gmail.com"
] | tpgus19@gmail.com |
91c04102d7309c5dc96caf9dbaefa29ae8dc3d40 | ecb113be53f2fe1768e85a1004d571c74d87ae8d | /tests/fmlaas/model/model.py | 0621cd46327918a951006e15f1e784933fe91ece | [] | no_license | Internet-SmokeAlarm/core | 39351e4d5bddf19bd59faf51bbc225c0e0521905 | 87b66a10042ec41916c490bb20cb4117f3caf1ba | refs/heads/master | 2023-02-17T18:40:12.822530 | 2020-07-05T20:28:38 | 2020-07-05T20:28:38 | 216,093,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,953 | py | import unittest
from dependencies.python.fmlaas.s3_storage import JobAggregateModelPointer
from dependencies.python.fmlaas.model import Model
class ModelTestCase(unittest.TestCase):
def test_to_json_pass(self):
model = Model("1234", str(JobAggregateModelPointer("4456", "5567", "1234")), "123552")
... | [
"valetolpegin@gmail.com"
] | valetolpegin@gmail.com |
7f63b70e3dcfea3037118ea458a4d8773a7c3489 | 948832084b0ad09574e9407b8de555cda77d1bd2 | /standard_pcnn.py | 2553d97f44bd038745ec4fdc984e73b8045f0db0 | [] | no_license | wglassly/CID_ATTCNN | bea56ef3e539ac4cc2d42de9cc846c82c813f275 | e0162498fc134a30e2d7c178618e743baca2dbc4 | refs/heads/master | 2021-01-01T18:13:13.205536 | 2017-07-25T07:13:45 | 2017-07-25T07:13:45 | 98,276,458 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 17,781 | py | import os,sys
import numpy as np
os.environ['THEANO_FLAGS'] = "floatX=float32,device=gpu1"#,lib.cnmem=1"
np.random.seed(1337) # for reproducibility
from keras.models import Sequential, Graph, model_from_json, Model
from keras.layers.core import Dense, Dropout, Activation, Flatten, Merge
from keras.layers import Input,... | [
"lhd911107@gmail.com"
] | lhd911107@gmail.com |
0ba8d2d20e7f1c7002a5148ac638bbd65f2dc39a | 043c39a95ae03399d830b9656067be9c2cf28030 | /day1/binary.py | 9788d01e40ae68d810a6a1f2e7702017f2639873 | [] | no_license | george-waf/bootcamp-week-1 | 9cc1c796fda3e478d9bbd5ced2ad4ed644ac2c50 | 907465e1ef250154334c54abd0b22ac5d448f61b | refs/heads/master | 2021-01-19T04:44:39.207795 | 2017-04-07T07:01:14 | 2017-04-07T07:01:14 | 87,387,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | def binary_converter(n):
if(n==0):
return "0"
elif(n<0):
return "Enter a positive integer"
else:
ans=""
while(n>0):
v=n%2
ans=str(v)+ans
n=n//2
return ans
| [
"noreply@github.com"
] | noreply@github.com |
d813100dbe311f99b58c56523b449bc958e0692c | 9ffc7823e7de17f2ea7a87dd6b995251203e1977 | /apps/app_GoogleData/appGoogleData.py | 2b9522fb65c2203c6e4d5460d7aebbf57c186b64 | [] | no_license | josedanielcl18/ceo-permitting-processes-timelines | 8203f1055b065dc3fe9979ef567abd3737d0893d | c558f629e4db5e77fc38c18b115340b24d0ca574 | refs/heads/main | 2023-06-26T12:33:40.385047 | 2021-07-26T18:52:30 | 2021-07-26T18:52:30 | 386,749,611 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,136 | py | # Import libraries
# Dash packages
import dash_html_components as html
import dash_table
from dash.dependencies import Input, Output
from dash.exceptions import PreventUpdate
import dash_core_components as dcc
import dash_bootstrap_components as dbc
import plotly.express as px
# Import dataframes
#from data.googleData... | [
"63196651+josedanielcl18@users.noreply.github.com"
] | 63196651+josedanielcl18@users.noreply.github.com |
fef23173bc7753e9b2b55c0e3bee148722833018 | 4da58b65fd3094c3b0556c7a3108d4cd1ffea0f3 | /policy_gradients/reinforce/hyperparameters.py | 574a7ecb1d0d9a9b994a56235a563aa9c60efbea | [] | no_license | willclarktech/policy-gradient-implementations | b7d6d55910cf6bc25e86368365f58c51b843df24 | 311276053322272319ffac8206f1e41960495ad7 | refs/heads/main | 2023-07-25T22:00:18.445628 | 2023-07-07T13:03:56 | 2023-07-07T13:03:56 | 252,439,207 | 1 | 0 | null | 2023-08-19T11:33:14 | 2020-04-02T11:42:47 | Jupyter Notebook | UTF-8 | Python | false | false | 311 | py | from typing import Any, Dict
def default_hyperparameters() -> Dict[str, Any]:
return dict(
algorithm="reinforce",
env_name="LunarLander-v2",
n_episodes=3000,
log_period=1,
hidden_features=[128, 128],
alpha=5e-4,
gamma=0.99,
seed=None,
)
| [
"willclarktech@users.noreply.github.com"
] | willclarktech@users.noreply.github.com |
63ac371425bfee192c11828633b0297f5b879935 | 386d08a9cc997efcf2041881cf67d6fa811f25a5 | /2_Greedy_314p.py | d298ae3ee09f994d7b7ca8b2e6bba58b02fbeae3 | [] | no_license | electricalboy1991/Python_for_CodingTest_Pycharm | 7febd10225494eb3c1d510594e36c2759f0c2652 | df2d1979dd7d6131e319b2e01eeee3fd7043308c | refs/heads/master | 2023-03-12T13:03:17.854003 | 2021-03-04T12:24:10 | 2021-03-04T12:24:10 | 342,104,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | import itertools
n = int(input())
data = list(map(int,input().split()))
total_candi =[]
combi_list = [0]*n
for i in range(1,n+1):
combi_list[i-1] = list(itertools.combinations(data, i))
for j in range(0, len(combi_list)):
for k in range(0, len(combi_list[j])):
candi=sum(combi_list[j][k])
total... | [
"worldest0628@gmail.com"
] | worldest0628@gmail.com |
062bc978f5e8732e730f902c6794b247b77d5cd6 | 69155520dbdb6b3fce635aae9374bf7a1de30324 | /EulerP_050.py | 7a06c8fe24c307d636fee4ffdb8abfaaae0807fc | [] | no_license | nickvazz/EulerProblems | c5bb6c2dd8c4d8fdec4e6f323d5204b4807e89e2 | e2ee9a27d90b2e4f28227815e2dcc235278747bf | refs/heads/master | 2021-05-03T23:01:30.377259 | 2018-12-13T08:08:49 | 2018-12-13T08:08:49 | 120,395,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | import numpy as np
import time
start = time.time()
def sievePrimes(n):
sieve = np.ones(n, dtype=bool)
sieve[:2] = False
sieve[::2] = False
num = 3
while num < n:
sieve[slice(2*num,n,num)] = False
num += 2
return np.concatenate(([2], np.arange(n)[sieve]), axis=0), sieve
d... | [
"nickvazquezz@gmail.com"
] | nickvazquezz@gmail.com |
0050e1d249929d696b14019561b751ab2cc39b52 | 851fba1a861f28783d10cfadc91743b4ea53ce49 | /mytest/input_data.py | 46f1980ec8c74d6fca1c6122e700528dc87666cd | [
"MIT"
] | permissive | javelir/word2vec_pytorch | 005414bfeb95c97792f7eeaf2d7769529499a120 | 389fe578aea7808c0008e586f593b02969d09fca | refs/heads/master | 2020-04-22T15:48:18.625378 | 2019-02-24T11:18:21 | 2019-02-24T11:18:21 | 170,488,347 | 0 | 0 | MIT | 2019-02-13T10:28:07 | 2019-02-13T10:28:07 | null | UTF-8 | Python | false | false | 4,152 | py | """ Input data for word2vec
"""
from collections import defaultdict, deque
import numpy
class InputData:
""" Load input data and build training samples for word2vec
"""
def __init__(self, path, min_count=5):
self.path = path
self.load_vocabulary(min_count=min_count)
self.word_pair... | [
"jz.mraz@gmail.com"
] | jz.mraz@gmail.com |
a6cf7e5fad2b83a00fd867b3d283b7b570f05c20 | 3b688547595af0fe429d2500a2a53926d3052f56 | /freshquant/factors/util_world_alpha.py | e0212e54aa5b514b2673170e31d1b00610d56251 | [] | no_license | huning2009/FreshQuant | 75b386cbdde26c8edbb15e4faa8f260dd11873d9 | b33aa23bb6cc6e875af3ac93627fb52d7ce84275 | refs/heads/master | 2021-09-07T11:58:59.262887 | 2018-02-22T14:18:12 | 2018-02-22T14:18:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,584 | py | # -*- coding: UTF-8 -*-
import numpy as np
import math
import pandas as pd
import statsmodels.formula.api as smf
class FactorData(object):
def __init__(self, name, stocks, mean_ret, cum_ret):
self.name = name
self.stocks=stocks
self.mean_ret=mean_ret
self.cum_ret=cum_ret
def single... | [
"sjj6love@126.com"
] | sjj6love@126.com |
94e544a15e0e29b8f771385dfbdcefcb09413fcd | 30467bd47c29412687a384d824655daa7400cef4 | /examples/dockerbuild.py | d7f0e1ae2176bdb6508f530e8a2f4f6e916f5b3c | [] | no_license | dpedu/shipper | 556409843c6da888338d2a791d4f06b17c709a52 | e5544416c2b0ee818285b9a13761f1c351d7676f | refs/heads/master | 2020-05-17T17:39:45.645549 | 2019-02-03T00:59:34 | 2019-02-03T00:59:34 | 183,860,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | from shipper.lib import ShipperJob, SshConnection, GiteaCheckoutTask, LambdaTask, \
DockerBuildTask, DockerTagTask, DockerPushTask
# This job accepts gitea webooks and builds docker images. If the "imagename" parameter is passed, it will be used to
# name the image. Otherwise, a repo named "docker-image-name" wou... | [
"dave@davepedu.com"
] | dave@davepedu.com |
33e0f6e0f58713cd6b9e0bf434b0190abffc395a | a47e4480d1584c5a2bb4c31ac512c864d0c2c240 | /core/settings.py | 8e44faed4463d4a577291f1a56a01053b9a77cef | [
"MIT"
] | permissive | shaymk1/ke-nako-shop | 014bd960e2048d4e2b5cc77c0b2d99f2058208d4 | 5c6f3dfb6b1e89efe111c1c6daa21434c7843ddc | refs/heads/main | 2023-08-02T08:19:31.702068 | 2021-09-20T19:21:53 | 2021-09-20T19:21:53 | 406,715,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,243 | py |
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key... | [
"mkekae@gmail.com"
] | mkekae@gmail.com |
c999af3d157708b2a0cd590d9f95fbf4f3453e02 | 57e45293c97578a3f69574368534dc090833c6e3 | /test_xCos_all_datasets.py | cb3015248a00f4a3ce7fe92e0da82319a6e33468 | [
"MIT"
] | permissive | ntubiolin/InsightFace_Pytorch | 96f908443050a38adbdc2b35141659e3e1d15524 | 98f712a4111e7bdc5d98944d2af96a324bd27ac7 | refs/heads/master | 2020-07-08T14:34:52.621905 | 2020-05-10T13:43:28 | 2020-05-10T13:43:28 | 203,702,338 | 0 | 0 | MIT | 2019-10-26T03:30:21 | 2019-08-22T02:50:19 | Jupyter Notebook | UTF-8 | Python | false | false | 5,050 | py | import numpy as np
from config import get_config
import argparse
from Learner import face_learner
from data.data_pipe import get_val_pair
from torchvision import transforms as trans
from tqdm import tqdm_notebook as tqdm
from utils import getUnitAttention, getCorrAttention
def testWithDatasets(test_datasets, conf, l... | [
"shex.ck@gmail.com"
] | shex.ck@gmail.com |
7e7ce291c3cfacaa8494620fc55d30f8f51185ba | 3199ff7a6d62f6d69c68d95d04eec83312f3677c | /web/views.py | 0877d7e1e4d0a58df3cd315becffcddbed5c1919 | [] | no_license | ShiqinHuo/University_Admin_app | 7891fd0b630f42140cf7f786346fd4cb449a6eae | 554294f384da0bdef34cacb9fb1cae4208fb8e4d | refs/heads/master | 2022-12-22T01:01:06.355913 | 2019-04-10T07:15:25 | 2019-04-10T07:15:25 | 180,492,070 | 3 | 0 | null | 2022-12-08T02:31:09 | 2019-04-10T03:10:30 | Python | UTF-8 | Python | false | false | 17,324 | py | # -*- coding: utf-8 -*-
import os
import time
import uuid
import datetime
from flask import render_template, send_from_directory, session, redirect, url_for
from flask_login import login_user, logout_user, current_user, login_required
from flask import Markup, request
from app import app
from forms import SchoolForm, P... | [
"ShiqinHuo@gmail.com"
] | ShiqinHuo@gmail.com |
463594fe03643d1587a546c3e3785d7a6d8abe7f | bf87df58b73db47d4eee7ac41266b122a26c4166 | /paytmmall.py | 3e2821d5d5fef776c15f2afc5de6064efbbc2219 | [] | no_license | amanjha18/scraping-paytmmall | 4c151e1de4a5c729e7e080668c030f551dcf9847 | 4b907b81b1cdd8341537ce3d74665bc9035f8629 | refs/heads/master | 2020-04-24T16:11:25.831424 | 2019-02-22T16:27:31 | 2019-02-22T16:27:31 | 172,098,070 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,542 | py |
##scrapping in paytmmall.
###redmi note mobiles:
import requests
from bs4 import BeautifulSoup
# url="https://paytmmall.com/shop/search?q=redmi%20note&from=organic&child_site_id=6&site_id=2&category=66781&brand=18550"
# page=requests.get(url)
# parse=BeautifulSoup(page.text,"html.parser")
# main_div=parse.find("div"... | [
"noreply@github.com"
] | noreply@github.com |
323f0305705be55f1f68dc252f2df08b8fefa4b3 | 49366c279a72ada80bede5648d20baf5eb881acb | /src/mds/mrs/admin.py | 38063e6bb2c5448f0d097f09196edebbedbaa4ce | [
"BSD-3-Clause"
] | permissive | SanaMobile/middleware_mds_v1 | fb28d1c78dc06ad325047d6fabd83a1bd5fcd946 | 7b3d3da7f460deb4981811d7b7592808add0aa4b | refs/heads/master | 2021-01-02T09:34:43.119034 | 2014-10-07T21:43:14 | 2014-10-07T21:43:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,470 | py | """Sana mDS Django admin interface
:Authors: Sana dev team
:Version: 1.1
"""
from django.contrib import admin
from sana.mrs.models import Patient,Procedure,BinaryResource,SavedProcedure,Notification,QueueElement,RequestLog,ClientEventLog
from sana.mrs.api import maybe_upload_procedure
class ProcedureAdmin(admin.Mode... | [
"winkler.em@gmail.com"
] | winkler.em@gmail.com |
8bba7a407baa22d183d9835ce359f0d5da875f90 | ad831f18866784f205ac8f11ca3d27afc9cd8d2a | /venv/bin/easy_install-2.7 | 84d3baed839319d40038b8452dc3029ee29d1723 | [] | no_license | habibrahmanbd/Sent.Mining | 65cf9f2434dfa3a2cf7d305c39cfebd85aad7a4b | a3c1d63710cbc4c68ee039a83d4c53bb5a874bb9 | refs/heads/master | 2023-08-14T08:08:36.091888 | 2021-09-24T04:21:22 | 2021-09-24T04:21:22 | 182,139,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | 7 | #!/home/habib/Documents/Sent.Mining/venv/bin/python2.7
# -*- 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())
| [
"bdhabib94@gmail.com"
] | bdhabib94@gmail.com |
bfbdcf492e78323b834eff43127e234f25966d15 | f769bfb711e8163e6fdac734847fac1af571148f | /Gaussian Elimination.py | 493cdb614f066369b27ea2e157a19dbf461b69a5 | [] | no_license | WalidElsayed9/Numerical-Methods- | 2c187934d43b4fe4325ebb8d070734bebacca5ba | 03824bb011ce666687ae22349d9b8b0d9db68214 | refs/heads/master | 2022-04-08T21:04:36.355878 | 2020-03-23T23:44:51 | 2020-03-23T23:44:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | import numpy as np
import math
import scipy as sp
from scipy import linalg
import pandas as pd
import matplotlib.pyplot as plt
import sympy
np.random.seed(2)
a = np.ceil(10*np.random.random((4,4)))
#print(a)
b = np.floor(10*np.random.random((4,1)))
#print(b)
A = np.hstack((a,b))
#print(A)
#print(A.shape... | [
"noreply@github.com"
] | noreply@github.com |
78b752d117f11c2a5a5d056b47227a18ba096e0b | 185b7529d9d439a0d554db2fc7b60a1531a5a836 | /scrappy_settings/asgi.py | 2d14dbc27187113e3031e51b3b38ab18a5531eeb | [] | no_license | cavidanhasanli/Scrappy_price | 8901baeaa40beb7102042d687d405258ae20d7fe | b5cc50010f727ba95686d89cac29f76533d860c2 | refs/heads/main | 2023-03-11T00:14:56.576016 | 2021-02-16T09:58:00 | 2021-02-16T09:58:00 | 338,854,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
ASGI config for scrappy_settings project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJA... | [
"cavidan.hasanli@mail.ru"
] | cavidan.hasanli@mail.ru |
da0a0322e7f8ed48fdd52a386ef2ac266993a344 | 61587c1ad4040967edb0a87a1c84d3d61e792939 | /Part1_Array/Code3_Stack_To_Queue.py | caa9e07aa3ff48891bf26ac3e6ee24fd8ce4dd16 | [] | no_license | forvendettaw/algorithm_practice | 2d2ebfc19b40afdfde0f0cf2e8b5394af6f2c0e6 | 01bbde5421bd4894efe69755342fc75b724c45bc | refs/heads/master | 2021-04-27T13:20:38.152516 | 2018-02-06T02:45:20 | 2018-02-06T02:45:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | """使用栈结构实现一个队列结构:栈转换成队列"""
class Stack_To_Queue(object):
"""两个栈结构实现队列
栈结构:先进后出
队列结构:先进先出
"""
def __init__(self):
self.stackPush = []
self.stackPop = []
def add(self, item):
self.stackPush.append(item)
def poll(self):
if len(self.stackPop) == 0 and len(self.stackPush) == 0:
raise ArrayIndexOu... | [
"lianyingteng@hotmail.com"
] | lianyingteng@hotmail.com |
d1439964f6c85daa3a40a61cad84441eddf2408b | 670d136ee38f8b6bc1ce8acf20efe1fdf6d3aa63 | /config/config.py | e8c1538aa262dbd469283d57f6b95783ea7f3d51 | [] | no_license | HuiDBK/auto_clear | 1df7c463dc2a522d921db7663f3d9e3303e7c3c3 | 13796725912d60c96de1574a7c7d1e35249b0327 | refs/heads/master | 2023-08-25T01:02:42.655609 | 2021-04-04T15:45:24 | 2021-04-04T15:45:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,697 | py | # -*- coding:utf-8 -*-
"""
配置文件模块
author: Mr Liu
version: 1.0
"""
import os
import sys
import yaml
import common
import traceback
import configparser
import logging.config
import PySimpleGUI as sg
# 日志配置文件路径
LOG_CONF_PATH = os.path.join(common.BASE_DIR, 'config\\log_conf.yaml')
# 程序默认的配置文件
DEF_CONF = os.path.join(c... | [
"2228157440@qq.com"
] | 2228157440@qq.com |
6b7df363e07c32497d7b6a3ae77012127a2fb79a | 789f108a849be99052f13cdec68953266458e646 | /nfe_mde/nfe_schedule.py | c0e580b66329ba0eeea7f4afc2737145ed796e5a | [] | no_license | rick-romero/odoo-brazil-eletronic-documents | 6ebe1b30deaa854861aa632ee62b022b8eeb2d8a | 2a1f144612ef23b77b57b9edcf2089a2b2b3077a | refs/heads/8.0 | 2021-01-14T14:07:27.728313 | 2016-07-12T22:11:29 | 2016-07-12T22:11:29 | 59,238,349 | 0 | 0 | null | 2016-05-19T19:58:39 | 2016-05-19T19:58:39 | null | UTF-8 | Python | false | false | 7,908 | py | # coding=utf-8
###############################################################################
# #
# Copyright (C) 2015 Danimar Ribeiro www.trustcode.com.br #
# ... | [
"danimaribeiro@gmail.com"
] | danimaribeiro@gmail.com |
cddcfff3c99de91ed211eba9f6cdd906c162f1ca | 9c8921b8cc2b442c565fa93d763666f671612d2b | /verify/reduce/array.py | 6391f4153bc4e8bfcdd4074e03f0318199521905 | [] | no_license | iCodeIN/cocass | 09f39f02e58f43e8572a99670106d93b863cab9d | 5f38dd732ecb659fb75c13293d4e44b57d36e2da | refs/heads/master | 2023-08-18T20:26:44.836261 | 2021-01-18T07:08:46 | 2021-01-18T07:08:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | def expect(*args):
res = ""
res += "0x04030201\n"
res += "0x05040302\n"
res += "0x07060504\n"
res += "0x0B0A0908\n"
res += "0x05040302\n" * 2
res += "0x07060504\n" * 2
res += "0x0B0A0908\n" * 2
res += "0x13121110\n" * 2
res += "0x07030502\n"
res += "0x05070305\n"
res += "... | [
"neven.villani@gmail.com"
] | neven.villani@gmail.com |
3e72b0f6f2e21379659c298b7bafcf50d609e056 | 3e6e661079e5cc08312c9c7623d21a4ccd2b479f | /flickry/imagesbytags/apps.py | 13258623e77b57232c818ac25f3d245502848ba2 | [] | no_license | ruduran/flickry | 1392276b9b41cbc99c3a2b05c78e7cd70c4db795 | 7d4141e7c43ffeb8a93d0a272cf7b89aa1b4b350 | refs/heads/master | 2020-03-22T19:54:26.917697 | 2018-07-13T15:14:57 | 2018-07-13T15:29:43 | 140,559,426 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | import sys
from django.apps import AppConfig
class ImagesbytagsConfig(AppConfig):
name = 'imagesbytags'
def ready(self):
if any(cmd in sys.argv for cmd in ('migrate', 'makemigrations', 'test', 'check', 'shell')):
return
from .worker import Worker
w = Worker()
w.s... | [
"ruduran@users.noreply.github.com"
] | ruduran@users.noreply.github.com |
172b1d40c473ddedcf33224aafa3faec54b15beb | 681ef48d8200b408ebc765f39e38ca36f2df9482 | /5.py | dc8e50fcc990040e7e52eaaeb6d54d9e36519ff8 | [] | no_license | code-abil/Python-Garage | cc53b09eefe8899ffc81cd604d70277ed2fdb389 | b886cf62c5b6c6f7dcf0a0920f98a409c9d620de | refs/heads/master | 2020-05-27T09:05:38.650820 | 2019-05-25T11:58:03 | 2019-05-25T11:58:03 | 188,560,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | import os
# #print(dir(os))
# print(type(dir(5)))
# print(type(os.getcwd()))
# os.chdir('/home/abilash/Desktop')
# print(os.getcwd())
# print(os.listdir())
# print(os.getcwd())
# os.chdir('/home/abilash/Desktop')
# os.makedirs('Abias/a')
# os.removedirs('Abias/a') #will
print(os.listdir())
os.chdir('../')
os.rena... | [
"gabilash1104@gmail.com"
] | gabilash1104@gmail.com |
507a7efb3c2ae19dbd1cfb2fa60575893e49856e | 25a263124549cd09f664b9cdb37b3a9b1dd23dc6 | /honcore/exceptions.py | cb6c7affb53e1ce148c66fb2406021a3281b944e | [
"Unlicense",
"LicenseRef-scancode-public-domain"
] | permissive | Joev-/HoNCore | b5896027cac2aa6b5fb200f826186a01384a33eb | 27e76645b06fc31df430fd4f3098686897a97bcd | refs/heads/master | 2021-01-20T05:08:37.154966 | 2012-01-26T19:53:18 | 2012-01-26T19:53:18 | 2,199,889 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,443 | py | """
HoNCore. Python library providing connectivity and functionality
with HoN's chat server.
Custom exceptions to be raised by this library and caught by any program using this library.
Helps debug login/logout events/incorrect data and socket errors (timeout, broken pipes etc).
TODO
* urllib2 sometimes th... | [
"joe.vaughan92@gmail.com"
] | joe.vaughan92@gmail.com |
3bd68f15f1ba900bd732975bf7fe77e8c8d0874c | c4cfce852c59bdd65d5ab5e77021e42cb7b02ff8 | /eng_to_kana_test/test_eng_to_kana.py | c7f683673655332c566e7794109d70e9fe281858 | [
"MIT"
] | permissive | yokolet/transcript | 5749be490a7f53e907b2143696afaa592647dc59 | 4a83cc70d868bb243846ebee8c322c63c2092141 | refs/heads/master | 2020-05-28T09:47:27.771042 | 2019-06-15T21:46:53 | 2019-06-15T21:46:59 | 188,961,209 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import unittest
from eng_to_kana.eng_to_kana import EngToKana
class TestEngToKana(unittest.TestCase):
def setUp(self):
self.list_func = EngToKana().fromWordList
self.file_func = EngToKana().fromFile
def test_1(... | [
"yokolet@gmail.com"
] | yokolet@gmail.com |
360c489c9cbf919e2cb62c14bf5a0f370355366e | 96f9c82d0331a853abb602aa0e214ba10d97e782 | /gcp/plugins/modules/gcp_compute_target_pool_info.py | 904029bfbefcc02c8d4b9c707949d7d57de1ea26 | [] | no_license | gundalow-collections/google | c5a269477dd44e44d50fba3e1145ba3150585ba8 | d4148513bec8926ec617c4450900236adb5e87bf | refs/heads/master | 2020-07-25T02:11:46.852809 | 2019-09-16T20:13:35 | 2019-09-16T20:13:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,814 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2017 Google
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# ----------------------------------------------------------------------------
#
# *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
#
... | [
"brian.coca+git@gmail.com"
] | brian.coca+git@gmail.com |
7f0e509fd90816fd6fc1ee90569c03579a6cf0c6 | 3fee1411d1ca6d0b4ddfb2c9bf28f5209b3f19fc | /run/src/wrapper.py | 012f6375f12f9e91ea04b1bd587918269d36c239 | [] | no_license | ccohane/WebTrader | ceba675a95e8aa00a9a3436dd82ae84d9d4a27b9 | 09a98e81d15498adf04b06e023dbf954d2a61c85 | refs/heads/master | 2020-04-10T00:56:53.457918 | 2018-12-07T19:45:13 | 2018-12-07T19:45:13 | 160,700,869 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,379 | py |
#!/usr/bin/env python3
import requests
import json
class Markit:
def __init__(self, user_input):
self.scheme= 'http://'
self.subdomain = 'dev.'
self.domain = 'markitondemand.'
self.tld = 'com'
self.lookup_path = '/MODApis/Api/v2/Lookup/json'
self.lookup_querystring... | [
"ccohane@gmail.com"
] | ccohane@gmail.com |
b387a5180e37579818a6be9f9076d862769b9bca | eb8dd326cc0d448bf88eb3557c4bcf6e28416bd7 | /listaCuadrado.py | d2f3c8d5eea2c283f2e5b4e8eb2b007761aa9ea1 | [] | no_license | Sarai-cr/python-programs | 931cc963045844f1544c49ba2abe37d5ccd37179 | c41f39f33276f294cc97bebd9a17cfb13c128095 | refs/heads/master | 2022-12-29T00:44:38.539110 | 2020-10-21T04:04:16 | 2020-10-21T04:04:16 | 290,906,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | cantidadDeNumeros = int (input())
listaDeNumeros = []
listaDeNumerosCuadrado = []
for numero in range (cantidadDeNumeros):
listaDeNumeros.append(int(input()))
print (listaDeNumeros)
for numero in listaDeNumeros:
cuadrado = numero**2
listaDeNumerosCuadrado.append(cuadrado)
print (listaDeNumerosCuadra... | [
"noreply@github.com"
] | noreply@github.com |
104d482ce82b48b18de798968058e27e632c58a4 | 11f1eb37db10e13e8393bcd68496ff01b7e2e4e2 | /genetic_algorithm.py | fbfb12dd625e50a86e306a35117bb36fef86b631 | [] | no_license | ErnaC-ucl/genetic-algorithm-hyperparams-opt | a8fb635f9e711543da1469108696eaf997183e02 | 24d54694d96b7b718a99b64f63abc77d3e38200f | refs/heads/main | 2023-08-04T11:12:19.831706 | 2021-09-16T16:31:40 | 2021-09-16T16:31:40 | 407,234,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,621 | py |
import random
import numpy as np
from sklearn import preprocessing
from sklearn.model_selection import KFold
from sklearn.kernel_ridge import KernelRidge
from sklearn.metrics import mean_squared_error
def generate_data(xmin,xmax, delta, noise):
#Calculate f=sin(x1)+cos(x2)
x1=np.arange(xmin,xmax+del... | [
"noreply@github.com"
] | noreply@github.com |
e1ff8838e74408dffc4bbb3722723ff62a425439 | 5afa0b8e447bb6b1565a64d201ee38adfa406e44 | /rapidsmsrw1000/apps/ubuzima/reports/utils.py | d393926a512649803396bf1457d11c5f819a56f9 | [] | no_license | daaray/rapidsmsrw1000 | 98ad2cb24a4b5cbbd8b496c64ad357c6ff687874 | 013a06a61987b18e61bdb0da8da09140b8b16d9a | refs/heads/master | 2020-12-25T00:38:29.934693 | 2013-03-26T07:15:11 | 2013-03-26T07:15:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,183 | py | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
from rapidsmsrw1000.apps.ubuzima.models import *
from rapidsmsrw1000.apps.ambulances.models import *
from rapidsmsrw1000.apps.ubuzima.models import *
from rapidsmsrw1000.apps.chws.models import *
from django.utils.translation import ugettext as _
from django.utils.t... | [
"zigdidier@gmail.com"
] | zigdidier@gmail.com |
ab953ee95eb426992b00d40883863abbb3b98acb | 4912d86bc18cb393f312d9c65042fe3607e3a7c6 | /LinearRegression.py | 6738eaf475de6fc462a73d166242f3bfc5ab6e3f | [] | no_license | ChristineWeitw/Tensorflow-ML | 4bc2a7c5570d277475e572874a596bd1fe6156bb | 33e59a6514e006c0fed42ca67a970c34306ad7ed | refs/heads/master | 2022-11-24T22:49:13.081059 | 2020-08-02T13:39:58 | 2020-08-02T13:39:58 | 277,881,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,312 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from IPython.display import clear_output
from six.moves import urllib
pip install --upgrade tensorflow
import tensorflow.compat.v2.feature_column as fc
import tensorf... | [
"hywei1701@gmail.com"
] | hywei1701@gmail.com |
ba41fa13d03b20981772cc3457a2e5162dc15736 | 8035606557a1d9df69846a7e253b152683a2ba63 | /core_logic/RegimeClassifier.py | 855c2a764335f2f52336c5e2ecf8c38493c04d75 | [] | no_license | Kaisaking/DAFD | c0f8ac2858271832c4be64ea651e011ec3e57cdd | 4d0a226913f205f9d884eb6d38733c9c9db1405c | refs/heads/master | 2023-03-01T08:41:19.193247 | 2020-07-13T13:28:19 | 2020-07-13T13:28:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | from models.regime_models.NeuralNetModel_regime import NeuralNetModel_regime
from helper_scripts.ModelHelper import ModelHelper
import sklearn.metrics
import numpy as np
load_model = True # Load the file from disk
class RegimeClassifier:
"""
Small adapter class that handles regime prediction
"""
neuralnet = None... | [
"chrizrodz@gmail.com"
] | chrizrodz@gmail.com |
477a74afd8d690d5b81e99a291ab6500127ddfe2 | eb8af57967f4b1dd771ca2ae4bf987cb8f46556d | /charset/settings.py | 543a08fd21a125c395ddd28cff12752e5df17ba3 | [] | no_license | glomumo/glowie | 210f4a0f0684ab90bee66c88ad1cbe3cb4fa769a | e307f0ce5d0dca78b8c5cf212f1601bd5f5711f4 | refs/heads/master | 2020-05-02T20:02:55.347044 | 2019-04-01T08:37:29 | 2019-04-01T08:37:29 | 178,177,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,356 | py | """
Django settings for charset project.
Generated by 'django-admin startproject' using Django 2.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
#... | [
"glowmumo@gmail.com"
] | glowmumo@gmail.com |
4094dc115614d752fdc61bd95ecac6cfb7797367 | 7b3711d4c6d7284255ba0270d49d120f984bf7c6 | /problems/2361_minimum_cost_using_the_train_line.py | 546dcff817a1d4ba91ccab3ae95614fb4d2f1ff7 | [] | no_license | loganyu/leetcode | 2d336f30feb55379aaf8bf0273d00e11414e31df | 77c206305dd5cde0a249365ce7591a644effabfc | refs/heads/master | 2023-08-18T09:43:10.124687 | 2023-08-18T00:44:51 | 2023-08-18T00:44:51 | 177,875,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,677 | py | '''
A train line going through a city has two routes, the regular route and the express route. Both routes go through the same n + 1 stops labeled from 0 to n. Initially, you start on the regular route at stop 0.
You are given two 1-indexed integer arrays regular and express, both of length n. regular[i] describes the... | [
"yu.logan@gmail.com"
] | yu.logan@gmail.com |
fcb0036c4b6ffcc7226d569c70e903d2a62098f7 | 6bb5994a760e823262aa2dbced083bc1b4be4c32 | /mundo_TRES/ex083.py | deea3aa86418785a2722877b5395aafe4744f956 | [] | no_license | haell/AulasPythonGbara | b9b489b917b9edb4ff64ab397434ade285719ad4 | b3270765c972bc2c3e73ee55f2b04b63705b529e | refs/heads/master | 2023-06-25T18:08:53.678208 | 2023-06-19T18:05:08 | 2023-06-19T18:05:08 | 292,722,474 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | # Crie um programa onde o usuário digite uma expressão qualquer que use parênteses.
# Seu aplicativo deverá analisar se a expressão passada está com os parênteses abertos e fechados na ordem correta.
expressão = input("Digite uma expressão: ")
abre_p = fecha_p = 0
inválida = False
for l in expressão:
if l == "(":
... | [
"israelaraujo.emply@gmail.com"
] | israelaraujo.emply@gmail.com |
0b7ff06c8aa9f6a941ff4fe8a749d7d0a028286b | 4da0c8906c9cd671e3a4bee3a6ee801a353e3d9a | /Water/watres/migrations/0012_targetusewo_checkin.py | 82f4465901163fac353bd3219380d8d3cb10db6e | [] | no_license | avpakh/GVK | 2a5a699caa8a986a3fd0dadbe2160fc9da5bf193 | ac8b8d8ad5cd5ef8485e98cd532a29cd420e0cae | refs/heads/master | 2020-06-13T10:35:36.663668 | 2017-01-06T09:01:42 | 2017-01-06T09:01:42 | 75,392,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-09-02 14:45
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('watres', '0011_auto_20160816_1523'),
]
operations = [
migrations.AddField(
... | [
"aliaksandr.pakhomau@gmail.com"
] | aliaksandr.pakhomau@gmail.com |
324a4ac05fe45323313eabb325470f4e7835dea8 | b0fe44512e3969d47b684929f33269dee0135af3 | /FN_v1/utils/generate_test_splits.py | c13abd64e0fa51a1307ffc61049c9de695a9f73c | [
"Apache-2.0"
] | permissive | zhuyq123/FN_v1 | cd9393b7703474fe51148bb0e1ea64df81085b3e | f72bbdc463309bad7d44539cb04e531df63a2831 | refs/heads/master | 2021-01-21T17:41:17.010004 | 2017-05-21T20:40:27 | 2017-05-21T20:40:27 | 91,981,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,012 | py | import random
import os
from collections import defaultdict
def generate_hold_out_split (dataset, training = 0.8, base_dir="spiltnew"):
r = random.Random()
r.seed(1489215)
article_ids = list(dataset.articles.keys()) # get a list of article ids
r.shuffle(article_ids) # and shuffle that lis... | [
"noreply@github.com"
] | noreply@github.com |
3421962f015eb96a5e9610002b5965f0e34a3367 | 400c5490bcfe06820dcf2b431eba40639b56d6ed | /ads/kth_lowest/kth_lowest.py | 9ed224a80ea90ef28c12f3f3c2484c2000b68a38 | [] | no_license | Adman/school | 1e84a5fef75a7481711392b164b616e514feaf76 | 10b88201857100ec66ae9484df8c679b1144874d | refs/heads/master | 2020-12-31T07:21:05.722771 | 2020-02-18T14:48:25 | 2020-02-18T14:48:25 | 58,227,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | class Node:
def __init__(self, val):
self.left = None
self.right = None
self.val = val
self.lchilds = 1
def add_child(self, node):
if node.val < self.val:
self.lchilds += 1
if self.left is None:
self.left = node
else:
... | [
"a.matejov@centrum.sk"
] | a.matejov@centrum.sk |
d9c22fad56843b09972e0829aef2e28f8042033c | 7da493e3f7d96ded64052e98f3631d8f1bf3f468 | /PyBank/main.py | fe95f1fa6efda1162c3ac8fd8e2c89085cc399d2 | [] | no_license | zyx88615/python-challenge | 796cec1af918dfaee85fcdedcbb918ae715cf0d8 | 144db4c7c646465e6aab22ea735de13ca3be2509 | refs/heads/master | 2020-04-27T10:49:11.416903 | 2019-03-12T07:52:27 | 2019-03-12T07:52:27 | 174,270,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,359 | py |
import os
# Module for reading CSV files
import csv
csvpath = os.path.join(os.path.dirname(__file__), 'Resources', 'budget_data.csv')
# Method 2: Improved Reading using CSV module
with open(csvpath, newline='') as csvfile:
# CSV reader specifies delimiter and variable that holds contents
csvreader = csv.re... | [
"zyx88615@gmail.com"
] | zyx88615@gmail.com |
71bdcb4ccd482d037956922b220b0c27958377c8 | 235b8512f0d210f434b1d5a7bc2ce3340016f010 | /mysite/settings.py | 8cfc2e5e03ed96eb1fee900932b29295ffbd9a55 | [] | no_license | Aerin-and-Mom/my-first-blog | 46c32d60400fe710bc5e901828fc1f7ce9a7e131 | 70d66532fef9094585fdfcc61fe49c0c971894d9 | refs/heads/master | 2016-09-01T15:07:26.304607 | 2016-02-27T21:48:04 | 2016-02-27T21:48:04 | 52,684,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,224 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.9.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
# Bu... | [
"samantha.zirkin@gmail.com"
] | samantha.zirkin@gmail.com |
cc15539f09c655e2a85fd8d417d67c0477c45e87 | a323fc11db97690c4ea50d92766d9d5db0418aac | /article/migrations/0020_auto_20200719_1016.py | ae9b1b99f0de83746e98a9195dcf7750dc6193a6 | [] | no_license | sparshjaincs/articleplus | ad909f937ebf856b6da87bd623af0776f8faafc3 | 0fa34a5384d8cfc52181be42c130aadd03ad8ef2 | refs/heads/master | 2023-08-10T23:21:44.845993 | 2021-09-30T22:29:13 | 2021-09-30T22:29:13 | 279,252,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | # Generated by Django 2.2.6 on 2020-07-19 04:46
import datetime
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('article', '0019_auto_20200719_0951'),
... | [
"sparshjaincs@gmail.com"
] | sparshjaincs@gmail.com |
22e7a4595b3f330fb0935bd689d8379a884f376b | cfaa945d4ba5cdc58f89533b1ea2a8713a2377b9 | /logroad/CostSurface.py | e7238a3d5f083404d25373752d1979c9a0f22aa8 | [] | no_license | ustroetz/log-road | 60afaefea369266bad6bed876a2eb079af87d2a5 | 0741ff9e8b580fe829c1b407c15c77daae03dda2 | refs/heads/master | 2016-09-11T02:49:17.055727 | 2014-01-14T22:05:27 | 2014-01-14T22:05:27 | 14,438,848 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,543 | py | import gdal, ogr, osr, os
import numpy as np
def raster2array(rasterfn):
raster = gdal.Open(rasterfn)
band = raster.GetRasterBand(1)
array = band.ReadAsArray()
return array
def shp2raster(inputfn,baseRasterfn):
outputfn = 'rasterized.tif'
source_ds = ogr.Open(inputfn)
source... | [
"ustroetz@gmail.com"
] | ustroetz@gmail.com |
2e0fad46c16958cbd3582723916a0ac1dda5a23e | 0bd14d7590db43af015433edc95c101b325f2b45 | /simple_sso/sso_server/admin.py | e21b92dc68b986e617291c935f1c31c63bf08af1 | [
"BSD-3-Clause"
] | permissive | chrisglass/django-simple-sso | 21f390535c012af4bba9a1b78a23b298592611df | b63d37ac64450ff5a506e6b1c2e34e42109b8cd8 | refs/heads/master | 2020-12-25T03:22:00.352693 | 2011-08-10T15:40:09 | 2011-08-10T15:40:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | # -*- coding: utf-8 -*-
from django.contrib import admin
from simple_sso.sso_server.models import Client
admin.site.register(Client)
| [
"jonas.obrist@divio.ch"
] | jonas.obrist@divio.ch |
b691a775217c0d8fb8af26e7711d140e68d08694 | ef8c6b71648907407d771288eb63ef4582e0c7d9 | /main/main/settings.py | 65cb25e751ed53584d75d9edd4bcb5a5961d6fb7 | [] | no_license | zaapen/unknown | 21f5bf2c485149b77b30708105e20cc67711e590 | 552956edbafd67d9a7fd7847dac1fe8cada68137 | refs/heads/master | 2021-08-23T03:32:25.156065 | 2017-12-02T23:13:31 | 2017-12-02T23:13:31 | 112,884,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,111 | py | """
Django settings for main project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
# B... | [
"dannyhua@Dannys-MBP.socal.rr.com"
] | dannyhua@Dannys-MBP.socal.rr.com |
f52a21600fcadee5be4dfbc92203f8087fb6df5c | 157a0ee44720ea65f3d3ef38c9e500307588a171 | /lesson 2.1.1.py | 016ab72819396eed55e52bcba249cb39be4626fc | [] | no_license | Tobkirill/stepik_selenium | cb6550c30e99715b30be4d57e559763f3bfb1677 | b155fd80397d0d7a18cfdb782c2404f594fbee4a | refs/heads/main | 2023-01-29T13:13:23.517384 | 2020-12-12T16:59:57 | 2020-12-12T16:59:57 | 320,875,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | from selenium import webdriver
import time
import math
def calc(x):
return str(math.log(abs(12*math.sin(int(x)))))
link = "http://suninjuly.github.io/math.html"
try:
browser = webdriver.Chrome()
browser.get(link)
x_element = browser.find_element_by_id("input_value")
x = x_element.text
y = ... | [
"tobkirill@gmail,.com"
] | tobkirill@gmail,.com |
2445f62695bc503243d90b47fd380b81e2c25e92 | 3528abad46b15133b2108c237f926a1ab252cbd5 | /Core/ableton/v2/control_surface/elements/optional.py | 86a72e77d342aa7dee2a59777b27af577769514a | [] | no_license | scottmudge/MPK261_Ableton | 20f08234f4eab5ba44fde6e5e745752deb968df2 | c2e316b8347367bd157276f143b9f1a9bc2fe92c | refs/heads/master | 2020-03-20T10:56:32.421561 | 2018-06-14T19:12:47 | 2018-06-14T19:12:47 | 137,389,086 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,241 | py | # Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/ableton/v2/control_surface/elements/optional.py
# Compiled at: 2018-04-23 20:27:04
from __future__ import absolute_import, print_function, unicode_literals
from ...base import listens
from .combo import T... | [
"mail@scottmudge.com"
] | mail@scottmudge.com |
e1e7e5926e41eed4f9c7838703feb1f72bc2a637 | 8d78d4e63223d7ab810cbe71ac1bd3590099f1b9 | /game_vars/map_vars.py | 0c6f4afd128e3b9ce291f26c197c6fc1da62dab3 | [] | no_license | KirylShakh/Roguelike-ROP | d780901cdd4dba9649835a75284d7f05f8ed3fef | 01374b33599cf12e6d8f50f6a8892c4ae0450d47 | refs/heads/master | 2023-01-10T11:18:38.088381 | 2020-08-25T14:11:57 | 2020-08-25T14:11:57 | 312,552,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | world_width = 10
world_height = 10
width = 80
height = 43
| [
"wm167@yandex.ru"
] | wm167@yandex.ru |
d7c7808b30cf10716b5bf15cc2e0b385d8a79d93 | b9d93fcdef3e0e09d7bbc41284484c997b3e19ec | /main/data_loader.py | 760d6a8872d8d9af9a32b54fb724b05d1bc9d780 | [] | no_license | Mohammad-Af/BannerService | 79e40e7e2724aeded34968155b06f168ea493516 | f5fbfeae6c062b7c8f5cfddf230e554f2ba211a9 | refs/heads/main | 2023-05-30T07:12:21.979602 | 2021-06-14T06:40:31 | 2021-06-14T06:40:31 | 375,035,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | import csv
import os
import django
import logging
from django.db import IntegrityError, transaction
from BannerService.settings import BASE_DIR
def load(csv_dir='csv'):
logger = logging.getLogger("data_loader")
# to use models we should set this environment first
os.environ.setdefault("DJANGO_SETTINGS_M... | [
"mohammad@mohammads-MacBook-Pro.local"
] | mohammad@mohammads-MacBook-Pro.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.