blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
63a2bb85fdf0fe9f7bfdb8230c87617f54d240cd | d24aba61db9f0a2bfd3d2c417d873b0e60529fd9 | /commands/images.py | 4a3153ce3b609aadf53a39a4a0cf2601a0782995 | [] | no_license | rafarafa200/DiscordBot-TocaMandelao | 8fb428808fc10d154f1c5b4244684cd169bd67ae | 6edf1b48ae16f4a8b8cc1576a1ef8cf7de1d05ae | refs/heads/main | 2023-08-30T12:19:54.781446 | 2021-10-31T14:11:05 | 2021-10-31T14:11:05 | 423,175,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | from discord.ext import commands
import discord
class Images(commands.Cog):
"""Works with images"""
def __init__(self, bot):
self.bot = bot
@commands.command(name="foto")
async def get_random_image(self, ctx):
url_image = "https://picsum.photos/1920/1080"
embed_image = discord... | [
"rafa_menucci@hotmail.com"
] | rafa_menucci@hotmail.com |
463b39f9e721b88b41a491bba21489eef81fe2d8 | ba63a484cf8859c0f46da90390cc23d7c4a85673 | /ur5_run_moveit_cpp/launch/ur5_run_moveit_cpp.launch.py | 93c8532c0550b357588cf720326dff9550148fee | [] | no_license | migueelnery/ur5_moveit2_demo | da9ade878742bd1492f652cebc526f76f520ea3f | 230a8773b3700f2ae9f218852867a6287e60d174 | refs/heads/main | 2023-03-06T19:06:18.684993 | 2021-02-19T06:06:49 | 2021-02-19T06:06:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,318 | py | import os
import yaml
from launch import LaunchDescription
from launch_ros.actions import Node
from ament_index_python.packages import get_package_share_directory
def load_file(package_name, file_path):
package_path = get_package_share_directory(package_name)
absolute_file_path = os.path.join(package_path, fil... | [
"floris.erich@aist.go.jp"
] | floris.erich@aist.go.jp |
463e8250d430cbb2b5411ccf886fc6006e203cb9 | 9ca223ad566c40efc0917f2a33bf13446102c5ae | /Prueba.py | 4f2ef40ec8589fd8714f917276f42a7bb1ca3148 | [
"Unlicense"
] | permissive | EstebanRiso/Python-IA | b1e65d7ab6e829e1c87e2308b348822830ae9de3 | 352186ae74fcdc3b1252918999413d0e11b7ae26 | refs/heads/main | 2023-01-15T15:31:47.371728 | 2020-11-18T20:54:34 | 2020-11-18T20:54:34 | 312,214,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py |
import Nodos
def principal():
Nodos.nombre='silencio'
print(Nodos.nombre)
principal() | [
"SteveRiso.2000@gmail.com"
] | SteveRiso.2000@gmail.com |
c3ad296986ee71c397a1a7186f93d3b260045db8 | 44c85fd2786ae79b11f709b5b02296f158214e9f | /katahack/settings.py | deb583c5a38fc4ded5f71e566dec9558c41cec19 | [] | no_license | bagus-aulia/img-to-text | 377261bcf9c15da93d3805b84c019895d8deac7b | 4485f14dd1f5771c24b0c1871691a4a581b3e638 | refs/heads/master | 2020-08-14T19:23:58.245403 | 2019-10-30T00:42:06 | 2019-10-30T00:42:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,879 | py | import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
# SECURITY WARNING: keep the... | [
"bagusaulia40@gmail.com"
] | bagusaulia40@gmail.com |
913947a5c6adf7a1e73a1da9ff5898b07a1e6405 | 22cc26c10943bc25f50f36cb2b36a28948ef885b | /alphavantage01.py | 70ddefb04ababbf652d48fe5de6d746ff920d825 | [
"MIT"
] | permissive | jpsura/pyapi | aef4c74d7e916f2fb00ac1b4ab2af3041091d421 | 4dce3eede001abd217ff9ff5101219e13efb6a3d | refs/heads/master | 2020-06-26T02:07:58.104760 | 2019-08-01T20:15:15 | 2019-08-01T20:15:15 | 199,493,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | #!/usr/bin/env python3
import requests
import alpha_vantage
from pprint import pprint
API_URL = "https://www.alphavantage.co/query"
data = {
"function": "TIME_SERIES_DAILY",
"symbol": "vz",
"outputsize": "compact",
"datatype": "json",
"apikey": "NJTO68R6JE6UHSO0",
}
response = requests.get(AP... | [
"joshua.p.sura@verizon.com"
] | joshua.p.sura@verizon.com |
71bed782d65e16e57cce9c58488bb482bc0bb31b | 5a651475ccf9f56174516bc8fee7c9b76bc83677 | /tableread/writer.py | 159de878a217ee9eeb16e7dc0f39259e5e9d4c7e | [] | no_license | bradsbrown/tableread | 43a9ae5015060d6f288d5b66525a05c222318cab | 566507bbf090a187695cf4c3f9dca6bc04488711 | refs/heads/master | 2020-06-24T08:03:41.287935 | 2019-07-24T16:09:31 | 2019-07-24T16:09:31 | 191,936,188 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,270 | py | """Tableread module to write a text file from a Python object."""
import io
import os
from typing import List, Tuple
RowData = List[dict]
class SimpleRSTTableWriteable(object):
"""Single rST table object to be written."""
divider_char = "="
title_marker = "~"
def __init__(self, title: str, row_dat... | [
"brad@bradsbrown.com"
] | brad@bradsbrown.com |
43569dfdaa6bacdb0b558ab38c03f2020ef7bfec | 8d1c7cc1e66c5ea717a876116424c4f1029fb21f | /pollster/polls/admin.py | 8b4709b2ca2f3c8c407167e7228e11e74b80f168 | [] | no_license | NickFoden/pollster | a5d58d78ae476f3576d54b384ac8900880ea1ee7 | 1cf327783af1bee4960c21c4728192ff3da26a6f | refs/heads/master | 2020-07-25T14:24:31.083072 | 2019-09-13T18:20:11 | 2019-09-13T18:20:11 | 208,322,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | from django.contrib import admin
from .models import Question, Choice
admin.site.site_header = "Pollster Admin"
admin.site.site_title = "Pollster Admin Area"
admin.site.index_title = "Welcome to the Pollster admin area"
class ChoiceInline(admin.TabularInline):
model = Choice
extra = 3
class QuestionAdmin(ad... | [
"nickfoden@gmail.com"
] | nickfoden@gmail.com |
ed1a80133b79485d1c7d0125da7309754e321eea | d922b02070c11c19ba6104daa3a1544e27a06e40 | /DSA_Project/venv/Scripts/easy_install-3.8-script.py | d71594c04a3b333adb75b4777054c951680c802e | [] | no_license | viharivnv/DSA | 2ca393a8e304ee7b4d540ff435e832d94ee4b2a7 | 777c7281999ad99a0359c44291dddaa868a2525c | refs/heads/master | 2022-10-15T15:26:59.045698 | 2020-06-17T15:55:33 | 2020-06-17T15:55:33 | 273,020,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | #!C:\Users\vihar\PycharmProjects\DSA_Project\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\... | [
"52350934+viharivnv@users.noreply.github.com"
] | 52350934+viharivnv@users.noreply.github.com |
531c6a581cba14a68fb47c94fa6e897915406f86 | cb802b802e26d037c93f38f74a4b8cc4931b8e64 | /cart/admin.py | ecd02cb09153465d65bad46f56c01b014f9f9376 | [] | no_license | aadhil06/ecommerce | c3e2acc55c2808fc9daecd2ed91b79aa46c60455 | 52707eb7b1b205d4d3a6b7b336164736a008f65c | refs/heads/master | 2023-07-02T04:38:21.262112 | 2021-08-11T08:42:06 | 2021-08-11T08:42:06 | 394,891,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | from django.contrib import admin
from.models import *
# Register your models here.
admin.site.register(cartlist)
admin.site.register(items) | [
"aadhilks007@gmail.com"
] | aadhilks007@gmail.com |
5bef409a74c946f0c10245a3696fedcf2ea6717c | 198e4e500f308978008374619cfd3b6d4e9ab3d9 | /pes/migrations/0004_player_manager.py | b1beeeb4cf3c43e0a5a623da82fafad355a2e0c3 | [] | no_license | UditChugh/pml | 4ffec91759d0b0e1cb00ad9ef73ef1a5c2fa7931 | d41cc8461876301e2bb25ea2870ca0bec39fcc4a | refs/heads/master | 2023-08-03T20:54:47.940878 | 2021-09-16T12:16:13 | 2021-09-16T12:16:13 | 289,675,466 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | # Generated by Django 3.1 on 2020-09-11 18:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pes', '0003_player_total_goal_diff'),
]
operations = [
migrations.AddField(
model_name='player',
name='manager',
... | [
"23udit@gmail.com"
] | 23udit@gmail.com |
3ce09fb2ccef610d6748908940c731ae6bd65fc4 | 3758a30f9e7dceed1eb3f1bc5624324384b1e795 | /augmentation/mask_morph_question.py | 73c7ee0212326c77a2aad9f670616e835fd38562 | [] | no_license | boostcampaitech2/mrc-level2-nlp-05 | 6682134c45f545126c724d09d0d5527530b854d8 | e648d5ec6dd2af5aa2b463c4960511a1f69ec230 | refs/heads/master | 2023-09-04T18:36:01.213469 | 2021-11-10T15:31:09 | 2021-11-10T15:31:09 | 416,144,706 | 1 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,820 | py | from transformers import AutoTokenizer
import numpy as np
from datasets import load_from_disk
from pororo import Pororo
import logging
logger = logging.getLogger(__name__)
model_name = "klue/roberta-large"
tokenizer = AutoTokenizer.from_pretrained(model_name)
MASK_TOKEN = tokenizer.mask_token
MASK_RATIO = 0.2
MAX_M... | [
"kkmjkim1528@gmail.com"
] | kkmjkim1528@gmail.com |
c1a244e9a04e199b2cb55cf64972a4d7cd9cc23e | 2350760b49f2e3120ad2d998f5cf854c600367c7 | /utils/enhance.py | 92baa841c2399580ad0eff21ac378b264fa05bc7 | [
"Apache-2.0",
"Apache-1.1"
] | permissive | aishu-123-4/Automatic-License-Plate-Recognition | b7bd2e0af63574161dc13d8b9bcc8cc7dbd03a1b | 310797715d2705d302aeae55042b6415469785ed | refs/heads/master | 2023-04-22T22:52:07.919753 | 2021-05-14T06:18:17 | 2021-05-14T06:18:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,970 | py | import streamlit as st
import cv2
import numpy as np
from PIL import Image,ImageEnhance
crop, image = None, None
img_size, crop_size = 600, 400
# noise removal
def remove_noise(image):
return cv2.medianBlur(image,5)
#thresholding
def thresholding(image, rate):
return cv2.threshold(image, rate, 255, cv2.THRE... | [
"udaylunawat@gmail.com"
] | udaylunawat@gmail.com |
ef40ec48bf2a0cb2ff75da74ffa77734efd92e46 | 7e34f45c4c046f01764583b6317f85200ddf2bcf | /tests/settings.py | 6b203371768fca78fd5a3bcd4c863f83fbb1ae04 | [
"BSD-3-Clause"
] | permissive | MarkusH/django-jellyglass | 3953de9fb840320db23a8b748df089da2aeb1013 | 2b7c8fcaac76f8833f2880b10f687552530a3ccb | refs/heads/master | 2021-01-18T15:09:08.904899 | 2018-12-03T16:41:06 | 2018-12-03T16:41:06 | 49,637,243 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,540 | py | ALLOWED_HOSTS = []
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ":memory:",
}
}
DEBUG = True
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
... | [
"info@markusholtermann.eu"
] | info@markusholtermann.eu |
30d323492b66e275e6cd4f00ff0c36c3b7b6df57 | 33e8dd262bd52681eae5f79b9424a09733d1591c | /swetha/Tutorial_2/Operator_Precedence/app.py | ab051c0ee038fc1c5bf5543c35e059d10ef8e811 | [] | no_license | pradeep122/LearnPython | 50e2dd1b5b4c300a0d8b60b8cdea53bc3426375f | 2cd5c4b0845bfa5f8daee778d69cb01ca077eee9 | refs/heads/master | 2020-03-19T00:07:07.973077 | 2019-05-18T17:51:47 | 2019-05-18T17:51:47 | 135,454,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | # Operator Precedence which means order of operations
# Order of Operations
# 1. Parenthesis takes higher priority
# 2. Exponentiation 2 ** 3
# 3. Multiplication or Division
# 4. Addition or Subtraction
x = 10 + 3 * 2
print(x) # 16 first multiplication and then addition(10 + 6)
x = 10 + 3 * 2 ** 2
print(x) # 22
# ... | [
"iswetha522@gmail.com"
] | iswetha522@gmail.com |
06a9fdc73d9799df7dacc77be61a90f5f6e0389e | 645d86b54a777f2b3762206c4fdfaa276acbf30c | /gui.py | 2b54ac36ccf352dfb0e3f3b5c700214b648829a0 | [] | no_license | jacobgb24/airport522 | 15218004ce1eab1290f9f04fba17c535244d4782 | d6bc37797bcde8d342573128009ad011286c9995 | refs/heads/master | 2021-03-28T20:16:07.687928 | 2020-04-21T22:54:11 | 2020-04-21T22:54:11 | 247,892,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,399 | py | import dash
import dash_core_components as dcc
import dash_html_components as html
import plotly.graph_objects as go
from dash.dependencies import Input, Output, State
import utils
import logging
from typing import Union, List
import time
from radio import BaseRadio
from message import Message
from aircraft import Ai... | [
"jacobgb24@yahoo.com"
] | jacobgb24@yahoo.com |
854b2d6ef9b6a28a86fbd279304f53ccb47bc58f | 428a163914797f736f6010a7122c713ec808735d | /main/foodcourt/migrations/0007_auto_20210709_1314.py | ba90b79de3952ae62ae20cbe755c3abee7e03a2e | [] | no_license | jasshanda1/foodcourt | 04f4cd18900fdfcf8a2adaeea0c48cb10b61e5c9 | 230dd5a43a2eafde13ad92a0e1790d6d82689ca6 | refs/heads/main | 2023-06-20T01:01:43.737378 | 2021-07-13T17:32:55 | 2021-07-13T17:32:55 | 384,517,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | # Generated by Django 3.2.5 on 2021-07-09 13:14
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('foodcourt', '0006_alter_order_name'),
]
operations = [
migrations.AddField(
model_name='order',... | [
"jaskaranhanda3099@gmail.com"
] | jaskaranhanda3099@gmail.com |
8f204d1087c6d7598468d38b33dfb2e66a262381 | c78957074e53fa4bcf58f9c609fb95741707b0fc | /catalog/migrations/0003_book_description.py | 863cdf8cbd3c7d09a49fa31bfe390d9aab83c86b | [] | no_license | nutakoooye/django_local_library | 07a61e97caaddbf1df3b6c0d93aaff5cd7292507 | 470992039248b0e38182bcd60c2721c0e0264f61 | refs/heads/master | 2023-08-11T14:08:06.923049 | 2021-10-09T18:24:29 | 2021-10-09T18:24:29 | 415,385,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # Generated by Django 3.2.7 on 2021-10-06 10:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('catalog', '0002_auto_20211005_1751'),
]
operations = [
migrations.AddField(
model_name='book',
name='description',
... | [
"andrkool151@gmail.com"
] | andrkool151@gmail.com |
26617b9cdb5592690aa2142c5ca215abaa4c7587 | b40c4c8478c86a8b1ac792429a385523d9e27f77 | /Python Spider/pyquery/6 pyquery foreach.py | 575af2e78cc59bcb67869e66d7ae534fafc9c040 | [
"Apache-2.0"
] | permissive | CodingGorit/Coding-With-Python | 2f100a393b8222354cf319b5e1ea0c3ffe7351df | b0f1d5d704b816a85b0ae57b46d00314de2a67b9 | refs/heads/master | 2020-12-19T13:17:28.129447 | 2020-05-31T12:29:43 | 2020-05-31T12:29:43 | 235,744,210 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | #!/usr/bin/python
# -*- coding: utf-8 --
#@File: 6 pyquery foreach.py
#@author: Gorit
#@contact: gorit@qq.com
#@time: 2020/5/27 0:03
'''
遍历
pyquery 的选择结果可能是多个节点,也有可能是单个节点
'''
from pyquery import PyQuery as pq
doc = pq(filename="test.html")
# 通过 items 获得每一项, 得到一个生成器
lis = doc('li').items()
print(type(lis))
for... | [
"gorit@qq.com"
] | gorit@qq.com |
9735e43307e1d83c7caaae220326c7390fa42417 | 2662d3a5d2f19248089d346850197f47d09ed80d | /LevelEditor/scripts/world/layer.py | 5259ac5a6938bbe85be68e5d0bd05ecbfbb86c03 | [] | no_license | pratripat/Zombie-World | c5ad1dbf5aad61dfbee68c81b2a5548fd1825ae5 | 166cb9878ef148d338bf84a90684ed151a093b95 | refs/heads/master | 2023-03-31T17:30:01.531287 | 2021-04-09T08:01:11 | 2021-04-09T09:51:43 | 352,869,435 | 1 | 0 | null | 2021-04-09T09:51:44 | 2021-03-30T04:25:55 | Python | UTF-8 | Python | false | false | 2,742 | py | from LevelEditor.settings import *
from .image import Image
class Layer:
def __init__(self, n):
self.images = []
self.updates = []
self.undo_cooldown = 0
self.initial_undo_cooldown = 50
self.n = n
def show(self, surface=screen):
#Renders images
for image... | [
"pratyusht2006@gmail.com"
] | pratyusht2006@gmail.com |
2c5521c3de850327de5dcd01344f18bbb8b19f26 | 260a46e010562fd49386cf4fe831c5a3e13aff8f | /Logistic/logisticRegression.py | 33be4bcb01f1b02edf2b68a0897d53ec0becf0a8 | [] | no_license | NanWangAC/MLCoding | bfc15807b3db49cccce53cc358e169d508779eba | 1517ce45956907b6a4cc63f7ece35fa40f7193da | refs/heads/master | 2020-03-10T13:21:26.442020 | 2018-10-02T14:23:48 | 2018-10-02T14:23:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,650 | py | from numpy import *
# 加载数据
def loadDataSet():
# 创建初级与标签列表
dataMat = []; labelMat = []
# 打开文本数据集
fr = open('testSet.txt')
# 遍历文本的每一行
for line in fr.readlines():
# 对当前行除去首尾空格之后按空格进行分离
lineArr = line.strip().split()
# 将每一行的两个特征x1,x2,加上x0=1,组成列表并添加到数据集列表中
dataMat.app... | [
"794202109@qq.com"
] | 794202109@qq.com |
c757d357b25a4544e138f19d00005eba273480de | cc32c03739d4692a9e60a6cc178fbad75e15d735 | /src/fib_common/fib_msg.py | defc5028bbb6e3bde725d99b99fd75550728d536 | [] | no_license | lvrixp/fib_service | 3431210236b322815fe1e0a1ccab0496380fc8c7 | 82970b2864fc29d93a45c6c36ee9acf0eb33f019 | refs/heads/master | 2021-01-10T07:39:25.690998 | 2015-06-04T05:43:10 | 2015-06-04T05:43:10 | 36,613,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | '''Simple message definition for the client-server communication
TODO:
Add more sophicated schema for the message
Eg, for server-client message, add return code, error mssage.
'''
import json
class FibMsg(object):
'''Base message class placeholder
'''
def serialize(self):
pass
class FibC... | [
"lvrixp@163.com"
] | lvrixp@163.com |
f2ab4a4f65e8c7144dc70fe2702bc225a23aa402 | 54be402879d53a484ac22ba283ee87aeb602f5ec | /src/lab1/nodes/pursuer.py | dc8fcdccba56d389b0e77c7dcdfd72e634631613 | [] | no_license | fazildgr8/robot_algorithms_projects | 15924a20ccf55f1cc6ef161bbff5d8e8bad7b5a6 | b5489a96d9275644f92bc73abf2beda8bf3f145a | refs/heads/main | 2023-07-19T14:45:19.001534 | 2021-09-08T04:58:02 | 2021-09-08T04:58:02 | 305,238,567 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,042 | py | #!/usr/bin/python
import roslib
roslib.load_manifest('lab1')
import rospy
import tf
import math
import random
import geometry_msgs.msg
from sensor_msgs.msg import LaserScan
import numpy as np
import time
from nav_msgs.msg import Odometry
from tf.transformations import euler_from_quaternion, quaternion_from_euler
lef... | [
"mohamedfazilsulaiman@gmail.com"
] | mohamedfazilsulaiman@gmail.com |
fef6724427f4484ae33fcae3bc0446018c9f46c8 | 8bf3706b166a780b1257190c7c04b3c715ed9bb9 | /prikaz.py | f0fac7413dc2c8fb8863a014fdc8becc141c3eb9 | [] | no_license | filipbartek6417/cviceniaMaturitySEN | 8ae1a38b7ecff4b4ed9801fa11881540fb6d6427 | e99b428b4ae8f7ef9bce4725cf604817cfef5758 | refs/heads/master | 2023-03-29T20:55:53.675486 | 2021-04-04T07:21:48 | 2021-04-04T07:21:48 | 351,505,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | class Prikaz():
def __init__(self,**kwargs):
for key in kwargs.keys():
self.__setattr__(key,kwargs[key])
| [
"66736221+filipbartek6417@users.noreply.github.com"
] | 66736221+filipbartek6417@users.noreply.github.com |
b6878adbe31ff098d212e885005ceb7b80104e5d | f99240b18be16cce9b01704948fb670ddea9a100 | /main.py | 3b20512c66ec7a656be4ddc473eb2934aca0f6c6 | [] | no_license | dogusural/trade-summary | 419972f93a97d60eb08831be866dc544c468ca4a | e7be5c35b1930cbbc66f6d4dea5fdbf81d28aa51 | refs/heads/master | 2023-02-13T21:32:39.502217 | 2021-01-04T22:53:14 | 2021-01-04T22:53:14 | 326,517,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | import hmac
import hashlib
import time
import requests
import json
import configs
setup = configs.setup()
API_URL="api/v3/myTrades"
PAIR="ETHUSDT"
TIMESTAMP=int(round(time.time() * 1000))
AVAX_BODY="symbol="+PAIR+"&recvWindow=60000×tamp="+str(TIMESTAMP)
signature = hmac.new(setup.get_api_secret().encode(... | [
"dogusural@gmail.com"
] | dogusural@gmail.com |
bdf1103898da8016469f1560497ec30b9ef7d229 | 6d2b0400ff1673619cdf050625d9e2f14a0c8c2b | /Algorithms/Directed_Graph.py | 80d238b3d176c0906f758cd76b4e30a20ebd28bb | [] | no_license | Anekjain/Programming-Solution | 1ec1f868eda600608488a4cbbe2f76c03257167d | b8c2073021c7ddac1271e32ba817c8be63d7a3a4 | refs/heads/master | 2022-11-24T21:59:01.996337 | 2020-08-04T18:19:19 | 2020-08-04T18:19:19 | 280,907,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | #GRAPH IMPLEMENTATION [DIRECTED GRAPH] USING ADJACENCY LIST
def add_vertex(v):
global graph
global vertices_no
if v in graph:
print("Vertex ", v , " alreadu exists.")
else:
vertices_no += 1
graph[v] = []
def add_edge(v1,v2,e):
global graph
#global vertices_no
if v... | [
"jainanek@gmail.com"
] | jainanek@gmail.com |
573cb4a3fb8baf2bee9bb13770e07a47308e1816 | c404669933e62c085f8c0c9f765b1ccc199be5bd | /MyWebsite/read/migrations/0001_initial.py | 5016507dce65b5d1993cf04fa7dcd99d7e65f8aa | [] | no_license | fenghuoxiguozu/Django | c32d14f6762a29b7cacd998ac19bba61322397f9 | de240c89eeb21b3463d84f40f4f18260981d6dcd | refs/heads/master | 2022-10-01T09:40:15.745046 | 2020-06-09T16:42:12 | 2020-06-09T16:42:12 | 263,092,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,751 | py | # Generated by Django 2.2.1 on 2020-06-06 22:10
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
]
operations = [
... | [
"1058247664@qq.com"
] | 1058247664@qq.com |
15b02c9afb099bd7fd8c150df2fecd2731735b0c | 05513b528119d92863c092bfa836508998cb92be | /theory/truthtable.py | c6ce2563be6658234daef0a719114bde4e0764d0 | [] | no_license | lola-lambda/Sprint-Challenge--Hash-Theory | 62e10c458beb52cf870cc79643435693dd27775a | 812d3705414bcdd4ef692b2c0445203c940493fb | refs/heads/master | 2020-05-15T06:45:43.604726 | 2019-04-01T21:25:34 | 2019-04-01T21:25:34 | 182,129,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | # !(A || B) || ( (A || C) && !(B || !C) )
# not (A or B) or ((A or C) and not (B or not C))
for A in [False, True]:
for B in [False, True]:
for C in [False, True]:
print(f"A: {A} B: {B} C: {C} ---- {not (A or B) or ((A or C) and not (B or not C))}") | [
"lolahef@gmail.com"
] | lolahef@gmail.com |
c6866ffcb6663df60970fd0041ee61d604f921a5 | 930c207e245c320b108e9699bbbb036260a36d6a | /BRICK-RDFAlchemy/generatedCode/brick/brickschema/org/schema/_1_0_2/Brick/Differential_Pressure_Load_Shed_Status.py | 4f44b20dc9c3108fb3505cc8f10804105b148f22 | [] | no_license | InnovationSE/BRICK-Generated-By-OLGA | 24d278f543471e1ce622f5f45d9e305790181fff | 7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2 | refs/heads/master | 2021-07-01T14:13:11.302860 | 2017-09-21T12:44:17 | 2017-09-21T12:44:17 | 104,251,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | from rdflib import Namespace, Graph, Literal, RDF, URIRef
from rdfalchemy.rdfSubject import rdfSubject
from rdfalchemy import rdfSingle, rdfMultiple, rdfList
from brick.brickschema.org.schema._1_0_2.Brick.Load_Shed_Status import Load_Shed_Status
class Differential_Pressure_Load_Shed_Status(Load_Shed_Status):
rdf... | [
"Andre.Ponnouradjane@non.schneider-electric.com"
] | Andre.Ponnouradjane@non.schneider-electric.com |
032be5db944974a1f32618e9395669e88e00c17e | 5dfbfa153f22b3f58f8138f62edaeef30bad46d3 | /old_ws/build/catkin_generated/order_packages.py | e6748be72199deb25e033f5d33a964cf1bf10700 | [] | no_license | adubredu/rascapp_robot | f09e67626bd5a617a569c9a049504285cecdee98 | 29ace46657dd3a0a6736e086ff09daa29e9cf10f | refs/heads/master | 2022-01-19T07:52:58.511741 | 2019-04-01T19:22:48 | 2019-04-01T19:22:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = "/home/bill/ros_ws/src"
whitelisted_packages = "".split(';') if "" != "" else []
blacklisted_packages = "".split(';') if "" != "" else []
underlay_workspaces = "/home/bill/ros_ws/devel;/opt/ros/kinetic".split(';') if "/home/bill/ros_w... | [
"alphonsusbq436@gmail.com"
] | alphonsusbq436@gmail.com |
a1b11d09ddf6368b66e674379e2446e23184d0ec | 9e536df5a2f8fc79e2e7f813dd3f53d77c18f1c7 | /python/excel/bankRecSecondary/bankRecSecondary3.py | d234e24fdfb378ba7f6fc48a3dbe0ee04bc70796 | [] | no_license | creednaylor/publicProjects | 4b2d82b2c7aa5fbd6afbcf8bf1c911c0c4c89265 | 3a9498f5df023d9f857e6352028f361444c5e63f | refs/heads/master | 2023-03-16T01:21:49.483451 | 2022-09-06T04:54:17 | 2022-09-06T04:54:17 | 217,166,925 | 0 | 0 | null | 2023-03-06T07:49:12 | 2019-10-23T22:47:20 | Python | UTF-8 | Python | false | false | 4,219 | py | #on comparison sheet, could write only the necessary columns
#local application imports
from pathlib import Path
import sys
pathToThisPythonFile = Path(__file__).resolve()
sys.path.append(str(pathToThisPythonFile.parents[3]))
import herokuGorilla.backend.python.myPythonLibrary._myPyFunc as _myPyFunc
startTim... | [
"16467643+creednaylor@users.noreply.github.com"
] | 16467643+creednaylor@users.noreply.github.com |
74c1f4bbb34d65beac68174e7c7ab0e18c3f36e6 | f63c4eb29ce57319441f5469d1d049b63bc220de | /swu_cycle_variance/run333.py | 96b5bc1ea46f182e5b80cfcab1a1271e253d1f12 | [] | no_license | a-co/diversion_models | 0237642153668b16035699e9e734ff0538568582 | 69eed2687b1cd2b48f5717d15919eccd24a0eabc | refs/heads/main | 2023-05-02T19:04:26.333677 | 2020-06-18T20:50:18 | 2020-06-18T20:50:18 | 216,904,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,361 | py | SIMULATION = {'simulation': {'agent': [{'name': 'deployer_military', 'prototype': 'military_deployer'}, {'name': 'deployer_civilian', 'prototype': 'civilian_deployer'}, {'name': 'deployer_shared', 'prototype': 'shared_deployer'}], 'archetypes': {'spec': [{'lib': 'cycamore', 'name': 'DeployInst'}, {'lib': 'cycamore', 'n... | [
"acaldwel@wellesley.edu"
] | acaldwel@wellesley.edu |
801d95f3536632bed21bd2dd124eb95aae92e76c | d0c66cfc37d0f7652874fc95cf1c4fef348169e1 | /chembase/migrations/0003_auto_20170728_1055.py | fcb9ef24fbb89ec1184ba54188dacdc97ca1d714 | [] | no_license | mpustula/ChemBase | 1b9c56ea5f988d27f13e099be0f5294419f3cc9c | 4171d99e176464ff451cb26d8fdebf2de1204e2d | refs/heads/master | 2020-03-12T22:50:16.351950 | 2019-07-10T20:10:21 | 2019-07-10T20:10:21 | 130,854,464 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-28 10:55
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('chembase', '0002_auto_20170728_0645'),
]
operation... | [
"pustula.marcin@gmail.com"
] | pustula.marcin@gmail.com |
fb5386db562a566e74bd8eb37a6cae500e17cb19 | 821e093f396a675a2c141ec4c5b510870ce58841 | /image_classifier.py | d63719d08a1d5c5e63d00261f2c9c493ad2680b2 | [] | no_license | cyrusclarke/sad | 5a7ceec2dd9c5b31625342042c3b483e8f3da906 | 0d5b0826cf3346ec94663a2e9e4bdf3475be023f | refs/heads/master | 2021-08-07T18:21:38.835382 | 2017-11-08T18:06:52 | 2017-11-08T18:06:52 | 109,606,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | import numpy as np
import base64
from flask import Flask, abort, jsonify, render_template, request, make_response
import cPickle as pickle
from io import BytesIO
import vgg16
from vgg16 import Vgg16
from skimage import io as skio
from skimage.transform import resize
app = Flask(__name__)
my_model = pickle.load(open(... | [
"cyrusjclarke@gmail.com"
] | cyrusjclarke@gmail.com |
8d1e038e0f78317b6d28ea2cc9af6ca9ec4a162f | d61420b44407ada9cf9dd469621f57e945c86f96 | /ubuntu18-helper-scripts-from-gitlab/helper-scripts-master/speedTestDataScripts/networkDataGatherer.py | 60aed7034084bca575aeac41f100b23312c605d5 | [] | no_license | lowkeyop/helper-scripts | 892ed8dd0722ce958e86233411c84e0f3204d6b9 | 046026b89a2c7a93873dd6d4ea8fa2f82597c402 | refs/heads/master | 2021-10-20T15:44:55.163679 | 2021-10-17T19:18:45 | 2021-10-17T19:18:45 | 112,807,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | import subprocess
import os #this is used to concatenate file path
import subprocess #to envoke the speedtest-cli command
import time #get the timestamp for the file
timeStamp=time.strftime("%m-%d-%Y")
baseDir="/share/data/networkData/"
fileName = "speedTest" + timeStamp + ".json"
filePath = baseDir + fileName
print... | [
"ckennerly9@gmail.com"
] | ckennerly9@gmail.com |
9444d9f3d6dc9cbef1fc27bece5d2b1d18411707 | dbc543e60bea327f32fd1549fe0ccf090e82952f | /tests/drawing_test.py | 521fe7e0b96366a27ce6252c42ae07cc4da572da | [
"MIT"
] | permissive | kcdbaba/consoledraw | 22dc772e4f98057652c7a3ef4806ac77ba397918 | bb5524743d7980ab877b7ed5d7d3677300984d42 | refs/heads/master | 2021-08-24T02:07:29.309627 | 2017-12-07T15:37:44 | 2017-12-07T15:37:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,023 | py | from drawing import *
import unittest
class TestDrawing(unittest.TestCase):
@classmethod
def setup_class(cls):
cls.C = DEFAULT_COLOUR
cls.E = DEFAULT_EMPTY
@classmethod
def teardown_class(cls):
del cls.C
def setUp(self):
self.canvas_5_5 = canvas(5, ... | [
"kunal.chowdhury@gmail.com"
] | kunal.chowdhury@gmail.com |
d76c92d2e6fa470195d605267db18d17b85826d6 | f16341f66d467cf21e4ff9826e508267770080b3 | /tasks.py | 84e3e3a5293ca05fcb8a18e0f06729a282f1d4c0 | [] | no_license | ianonavy/celery-redis-example | 37b27ebbe43ae63cf6bafbd2309a1d15a68439ad | 6bf873ffa81048cee5fa89c22baff504886dbaf2 | refs/heads/master | 2020-03-11T15:22:32.768660 | 2018-04-18T15:21:04 | 2018-04-18T15:21:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | import celery
celery_app = celery.Celery()
celery_app.conf.broker_url = 'redis://celery_redis:6379/0'
celery_app.conf.result_backend = 'redis://celery_redis:6379/1'
@celery_app.task
def add(a, b):
print("Starting task 1")
import time; time.sleep(5)
print("Finished task 1")
return a + b
@celery_app... | [
"ian@everquote.com"
] | ian@everquote.com |
c59ac3a4809a364611d8766dc31cc489c9434b3a | d261596c67a3ce9bae2373a321015fe62b088c5b | /BVE/BVEfd.py | 7af140139d6c757fed10a9d8d74a85ae08734606 | [] | no_license | mintDan/FluidDynamics | ada943d990a0301cce4d945a114b86abba9a0d4f | 5fc0a7be3eb1c4551c2918b2c3d3bbea643afc56 | refs/heads/master | 2021-07-21T04:07:02.680043 | 2021-02-13T08:54:23 | 2021-02-13T08:54:23 | 67,929,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,023 | py | """
Dan Krog
Numerical Solution of Barotropic Vorticity Equation
vorticity, Holton page 101,
Absolute vorticity eta,
eta = zeta + f
f is coriolis parameter, zeta is relative vorticity, zeta = nabla x (u,v)'
dzeta/dt + J(psi,zeta+f) = 0
where J is Jacobian operator
Barotropic fluid, pressure depends only only de... | [
"dankroga@gmail.com"
] | dankroga@gmail.com |
9d7cf6aff297506f636428324119d19515dbf1c1 | 4a5999ce904734a0d7beeeec04edf63f92bc1ddf | /CodeCraft-2019/src/data_temp.py | 17e6ce9d0f8e0718cf1b7613655faed5c24d041c | [] | no_license | xixiU/HuaWeiCodecraft | 746b47e0cf2c0de232c2d7b802e5c3c291e01ae0 | 21bcd94c3c59fc96ee465951904b43a29fda31d5 | refs/heads/master | 2023-01-23T10:09:33.904085 | 2019-04-20T02:35:03 | 2019-04-20T02:35:03 | 176,402,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,141 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2019-03-20 09:29:45
# @Author : yuan
# @Version : 1.0.0
# @describe:
# -*- coding: utf-8 -*-
"""
Created on Sat Mar 16 09:35:21 2019
@author: ym
"""
import pandas as pd
#from dijkstra import DijkstraExtendPath
import numpy as np
from io import StringIO
c... | [
"2086774733@qq.com"
] | 2086774733@qq.com |
d57bafa6b041e14b363221f5424fcc938e2a081a | 4d21da5a3d07f4d05b997e80119cd79692ac0d25 | /Leetcode/201-300/259. 3Sum Smaller.py | fc6828a904244248c20e44b9f93c23460bea2b66 | [] | no_license | ErinC123/Algorithm | 92b2789ec3b36c49f9e65f2e7a702bb4b732e8ba | 4544fee91e811a6625000921c32ad054df550f1e | refs/heads/master | 2021-06-17T14:03:33.955233 | 2017-06-18T21:20:55 | 2017-06-18T21:20:55 | 75,894,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | class Solution(object):
def threeSumSmaller(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: int
"""
nums.sort()
ret = 0
for i in range(len(nums)):
j, k = i+1, len(nums)-1
while j < k:
if ... | [
"zhencao93@gmail.com"
] | zhencao93@gmail.com |
bd953c2791a25f282deb6ac1ef7635111c439e37 | 9109eac9b0907a9e586129b49fd1d84d6bb9dc16 | /baseline.py | fe540177edd6f2f524b8612d32c2f82abbe44a8d | [] | no_license | mjp92067/text-generation | 5d34edcb9b1e4a7039fc3916695eefacf1d84424 | 20000eb95d776cc17dba607c983be37f38264a6c | refs/heads/master | 2023-05-24T08:41:13.504014 | 2019-07-05T18:02:52 | 2019-07-05T18:02:52 | 195,446,016 | 0 | 0 | null | 2023-05-22T22:16:31 | 2019-07-05T17:28:42 | Python | UTF-8 | Python | false | false | 2,244 | py | import os
import json
import fire
import numpy as np
from scipy import sparse
from sklearn.model_selection import PredefinedSplit, GridSearchCV
from sklearn.linear_model import LogisticRegression
from sklearn.feature_extraction.text import TfidfVectorizer
def _load_split(data_dir, source, split, n=np.inf):
path ... | [
"woomniazhko@gmail.com"
] | woomniazhko@gmail.com |
376cb7e68c7bab2659ec8cc35ce8928d99e1644e | 6004fd6067f49b2eb74c650fb847ab1a8799788f | /codepkg/Charting/weixutu.py | 05ea79d12b57adc3d71949cb0c57ebee55994007 | [] | no_license | zhongxiangpku/python_gradproj | 4bf2d41f4075160cc1f84f7dfca6c3901517e3f2 | a4f1f2d8a4dc55f1ee3e8488945ab080b60c2f45 | refs/heads/master | 2020-07-19T11:28:15.640497 | 2017-06-20T02:08:36 | 2017-06-20T02:08:36 | 73,766,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,424 | py | # encoding: UTF-8
import codecs
import os
import sys
import MySQLdb
import string
from codepkg import mod_config
reload(sys)
sys.setdefaultencoding( "utf-8" )
def mappingUserCountRankPlot(file):
fs = codecs.open(file, 'w+', encoding='utf8')
db = MySQLdb.connect(mod_config.dbhost, mod_config.dbuser, mod_config... | [
"zhongxiang@pku.edu.cn"
] | zhongxiang@pku.edu.cn |
78532231f0563364803c38e1461c1364b169d31a | e25dc1f801ff9ae8d2baaffc9c726339437a7ff8 | /dbms_submissions/dbms_assignment_004/query.py | 92ac497b519520830a1f12d678bca3e0f6a3152e | [] | no_license | naresh508/dbms | e724636fb26f493b1e61eeaf5182e5c98dd3c0e7 | d0733743137a86ca0c1101a7ae6527e39b12d393 | refs/heads/master | 2022-08-24T07:34:00.634978 | 2020-05-27T11:56:45 | 2020-05-27T11:56:45 | 267,305,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | Q1="SELECT COUNT(id) from Movie WHERE year=2002 AND name LIKE 'ha%' AND rank>2;"
Q2="SELECT MAX(rank) from Movie WHERE name LIKE 'Autom%' AND (year=1983 OR year=1994);"
Q3="SELECT COUNT(id) from Actor WHERE gender='M' AND (fname LIKE '%ei' OR lname LIKE 'ei%');"
Q4="SELECT AVG(rank) from movie WHERE (year=1993 OR ye... | [
"ec2-user@ip-172-31-22-170.ap-southeast-1.compute.internal"
] | ec2-user@ip-172-31-22-170.ap-southeast-1.compute.internal |
7935285b6302c1b7277f4c9d4939535c9636fe0d | 159da3fc63ccf20b80dc17bb44b53e9a5578bcfd | /arkav_is_api/arkavauth/migrations/0005_refactor_auth.py | f92058d0d724b71e6dab65b111c6f5e8e2a4a7d7 | [
"MIT"
] | permissive | arkavidia5/arkav-is | 4338829e7c0a9446393545316e46395e9df111fd | 6c6e8d091ead5bfff664d86f7903c62209800031 | refs/heads/master | 2021-07-16T03:49:15.900812 | 2019-02-08T18:08:32 | 2019-02-08T18:08:32 | 149,406,261 | 3 | 2 | MIT | 2018-11-09T16:49:17 | 2018-09-19T06:58:16 | Python | UTF-8 | Python | false | false | 2,458 | py | import arkav_is_api.arkavauth.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('arkavauth', '0004_user_email_confirmed'),
]
operations = [
migrations.RenameModel('Ema... | [
"jonathan.christopher@outlook.com"
] | jonathan.christopher@outlook.com |
20f656e4053fc210247251dfcef186225ccfd050 | a08ea65c1ef699171e11c10da75f8291cb0c743c | /Numpy code/numpy1.py | de5eae1343112cb085c004920070b96f1d5495af | [] | no_license | hussainMansoor876/Numpy-And-Falsk-Exercise | 476551257d940965eadbea27f5c61d978475ed1f | 1930dee5ac07dc9a18c30c45e196060cf73095d0 | refs/heads/master | 2020-03-28T19:23:50.718360 | 2018-09-16T07:17:39 | 2018-09-16T07:17:39 | 148,971,926 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | # import numpy as np
from functools import partial
# def numpysum(n):
# a = np.arange(n) ** 2
# b = np.arange(n) ** 3
# c = a + b
# return c
# numpysum(10)
# print(numpysum(10))
# a = np.arange(5)
# print(a.dtype)
# # print(a)
# n=[1,2,3,4,5]
# a,b,c,d,e=n
# print(a)
# print(b)
# print(c)
# print(d)
# p... | [
"“hussainmansoor876@gmail.com”"
] | “hussainmansoor876@gmail.com” |
4638fdbdc7160647895db0fde527788b32829a33 | bc95e6b5d5edbde9cdb9ea06cc51f2a171eb1939 | /Ejercicios_Lambda/ejercicios3.py | 00ebf77d94b422f7d5ade7993eee360c19c05cdf | [] | no_license | Pradas137/Python | 18e0418c735765da5964319cbe85bed9ac9cce6b | ccd3624bf95ca2379593ef7c9085abd122b5dd37 | refs/heads/main | 2023-03-12T01:54:24.463332 | 2021-03-02T20:00:18 | 2021-03-02T20:00:18 | 338,836,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | """
Ordenar una llista de strings per la segona lletra de cada string, utilitzant el mètode sort/sorted i la funció lambda:
Exemple:
mesos = ['gener', 'març', 'abril', 'juny', 'agost']
SOLUCIO:
mesos = ['març', 'abril', 'gener', 'agost', 'juny']
"""
mesos = ['gener', 'març', 'abril', 'juny', 'ag... | [
"pradas137@gmail.com"
] | pradas137@gmail.com |
32deaed41a4e6581445f42876563cf802299ebe7 | da7149f3182d2421e046828d30fc1c91c14d496d | /chapter16/coro_exc_demo.py | c9aa826582f4e4609e85504e132a7eb87f93559b | [] | no_license | tangkaiyang/fluent_python | 6db2825cfadccb70a886cb822026d69be4b03cc9 | 5f07072d8db5ddf43bfe913b3262b325a8f1ad35 | refs/heads/master | 2020-05-02T20:21:00.404872 | 2019-04-18T02:35:55 | 2019-04-18T02:35:55 | 178,188,495 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,724 | py | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 2019/4/12 16:18
# @Author : tangky
# @Site :
# @File : coro_exc_demo.py
# @Software : PyCharm
# 示例16-8 coro_exc_demo.py:学习在协程中处理异常的测试代码
class DemoException(Exception):
"""为这次演示定义的异常类型"""
def demo_exc_handling():
print('-> coroutine star... | [
"945541696@qq.com"
] | 945541696@qq.com |
a8fa9cda3bebfc92ff9f07a8a13bbb90dcc9400b | b1df343d5dbc1066913e6133b191f05706c71f0e | /17.9.1.py | 10f9696c1b51a72e09aa3bef9ac32d61d7209d38 | [] | no_license | artemovalex/pubic_qap-13 | c41958a737e8fa753c6138e15b84ce2d741d89b1 | 7d444fdbe24cef989f940f1624cada8e60479432 | refs/heads/master | 2023-04-25T11:39:24.675277 | 2021-05-24T10:12:07 | 2021-05-24T10:12:07 | 323,099,153 | 2 | 1 | null | 2020-12-24T08:21:41 | 2020-12-20T15:08:35 | null | UTF-8 | Python | false | false | 1,924 | py | string = input("Введите числа через пробелов:")
my_list = list(map(int, string.split())) # cписок чисел
element =int(input("Введите любое число:"))
def sort(array): # функциия сортировки массива по возрастанию
for i in range(1, len(array)):
x = array[i]
idx = i
while idx > 0 and arr... | [
"noreply@github.com"
] | artemovalex.noreply@github.com |
05f1381ac472766b4cd06fbd8153c99cc502c0e1 | 84d891b6cb6e1e0d8c5f3e285933bf390e808946 | /Demo/PO_V6/TestCases/test_login_pytest.py | 174dcfab88ddcee38ccb2eb6b5ea51c6f4e0d99d | [] | no_license | zzlzy1989/web_auto_test | 4df71a274eb781e609de1067664264402c49737e | 3e20a55836144e806496e99870f5e8e13a85bb93 | refs/heads/master | 2020-05-24T10:37:29.709375 | 2019-10-28T06:14:31 | 2019-10-28T06:14:31 | 187,230,775 | 2 | 0 | null | 2019-06-20T11:06:32 | 2019-05-17T14:29:11 | null | UTF-8 | Python | false | false | 2,400 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# Name: test_login_pytest
# Author: 简
# Time: 2019/6/20
from Demo.PO_V6.PageObjects.login_page import LoginPage
from Demo.PO_V6.PageObjects.index_page import IndexPage
from Demo.PO_V6.TestDatas import login_datas as ld
from Demo.PO_V6.TestDatas import Comm_Datas as cd
import... | [
"394845369@qq.com"
] | 394845369@qq.com |
f872ee5f774e2e558b2c18dfd74ac182fe9c8e89 | fc6d68e54506f285a8b537a3e3a10f6645301ac2 | /fixture/mail.py | 5abf23d2bd0de65285df193f979682606c06c517 | [] | no_license | alpikin63/pyton_lessons | 94df17a7456ae3efdf8d63dfa843d165f3aba59c | c6fce6f9d2884ef79ee80d43d10acb6709951ea5 | refs/heads/master | 2020-04-09T20:07:47.997333 | 2019-02-02T09:52:52 | 2019-02-02T09:52:52 | 160,564,777 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,221 | py | from __future__ import print_function
from googleapiclient.discovery import build
from httplib2 import Http
from oauth2client import file, client, tools
from apiclient import errors
# If modifying these scopes, delete the file token.json.
class Gmail:
SCOPES = 'https://www.googleapis.com/auth/gmail.modify'
S... | [
"alpikin63@gmail.com"
] | alpikin63@gmail.com |
c284691cf68ff52a518de0b7adbd913d0ce9e4b4 | 953d68ce72a8b4fd82280a00361cec3848769a79 | /code/17_decision_trees_nb.py | 566835ef8ed0584c0219e2cdbe11213b6382671a | [] | no_license | JamesByers/DAT8 | b28256c04d4b26c61d107a2c6501013a509cee66 | d7cc9d044b32ffbadaa5db1d11f28a99e0785a0d | refs/heads/master | 2021-01-20T01:35:34.214391 | 2015-10-09T14:57:29 | 2015-10-09T14:57:29 | 43,983,236 | 0 | 0 | null | 2015-10-09T22:32:54 | 2015-10-09T22:32:54 | null | UTF-8 | Python | false | false | 18,518 | py | # # Decision Trees
#
# *Adapted from Chapter 8 of [An Introduction to Statistical Learning](http://www-bcf.usc.edu/~gareth/ISL/)*
# Why are we learning about decision trees?
#
# - Can be applied to both regression and classification problems
# - Many useful properties
# - Very popular
# - Basis for more sophisticate... | [
"justmarkham@gmail.com"
] | justmarkham@gmail.com |
723adae948b66dc0086ffea876f8075c4c995a52 | 95a8d3b8448f40303541c463eb930b6d74348c9d | /Updated_encrypt.py | 288257085d94fb0d38b71c431cf8417595bda57f | [] | no_license | empero6/CyberSecurity | 9aedf54c81abc2a466b06c71be47150a9460acb9 | ca392395bad4565b028ef3a92cb6ad38aafea766 | refs/heads/master | 2020-07-29T00:20:38.182700 | 2019-12-16T20:36:32 | 2019-12-16T20:36:32 | 209,595,009 | 0 | 1 | null | 2019-11-21T14:21:06 | 2019-09-19T16:01:15 | Python | UTF-8 | Python | false | false | 10,316 | py | from PIL import Image
from scipy.integrate import odeint
import numpy as np
import random as rand
import os, hashlib
def encrypt(filepath, key):
dbImage = np.array(Image.open(filepath))
luImage = np.array(Image.open(filepath))
outputfile = os.path.join(os.path.dirname(filepath), "(encrypted)"+os.path.basen... | [
"noreply@github.com"
] | empero6.noreply@github.com |
cdd5a31a1454daea675c492521e6a22eed8d06bc | 8997a0bf1e3b6efe5dd9d5f307e1459f15501f5a | /unistream_examples/get_agent_point_info.py | 0278d0f98ae5b4b9aca91d42c4b6f9d5fe4f01f8 | [
"CC-BY-4.0"
] | permissive | stepik/SimplePyScripts | 01092eb1b2c1c33756427abb2debbd0c0abf533f | 3259d88cb58b650549080d6f63b15910ae7e4779 | refs/heads/master | 2023-05-15T17:35:55.743164 | 2021-06-11T22:59:07 | 2021-06-11T22:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
"""
Получение информации о точке предоставления услуги.
GET https://test.api.unistream.com/v1/agents/{agentId}/poses/{posId}
"""
if __name__ == '__main__':
from utils import get_today_RFC1123_date, get_authorization_header
from config ... | [
"gil9red@gmail.com"
] | gil9red@gmail.com |
fcdcbeba752542d4e128ddebf54c68d5df123be8 | 385c01f7337cf5031093147f6731251bfbf17430 | /lms/level/containers/get_by_id.py | d7e05c88e2f38349997208a7d052eb38bf54862a | [] | no_license | lucassimon/lmswebaula | 23a73d6d2d43c78a2f9e3b552113cf50a11a3587 | 671276426685968458f240faa93b313427fa32d9 | refs/heads/master | 2021-01-19T13:26:12.352308 | 2017-08-16T21:07:43 | 2017-08-16T21:07:43 | 88,088,474 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import six
class GetByIdRQ(object):
_level_id = None
_lms_level_id = None
def __init__(self, lms_level_id=None, level_id=None):
if lms_level_id:
if not isinstance(lms_level_id, six.integer_types):
rais... | [
"lucassrod@gmail.com"
] | lucassrod@gmail.com |
bcf22f01407a86941d648b53d961048f0bed20bc | 397f7b9f3e2381a1e6726cc2704c137ce86289a6 | /scripts/original_submission_scripts/z_old_sgv.Fig2C.py | 1e341832317f9af2e161d76c4eb7188c9512b93c | [] | no_license | Ken-A-Thompson/SVS | f7f0c9e39d86e9c1d33b8e21d68a5701ea9a5283 | 93562c2fce3769df4390f65034408b6b2dd3e969 | refs/heads/master | 2021-01-22T19:54:24.785353 | 2019-07-25T21:21:14 | 2019-07-25T21:21:14 | 85,253,057 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,984 | py | #Authors: Matthew Osmond <mmosmond@zoology.ubc.ca> & Ken A. Thompson <ken.thompson@zoology.ubc.ca>
#Description: The role of standing genetic variance in speciation
#Function: This script has populations adapt in parallel while varying d and n. Goal is to determine the value of n that minimizes variance load for a give... | [
"ken.thompson@zoology.ubc.ca"
] | ken.thompson@zoology.ubc.ca |
f68e80676e72be2e4597cabb98f6e8312c69fc60 | d9cd697f76565e8230a98909204a5c516437f977 | /tutorial/tutorial/settings.py | 7b7807db8743db25310455fe110dcac0eed68dba | [] | no_license | huazhicai/webspider | be20d0d3a248ef8cbfaab8e3d1fd0e8ac7551352 | a1defa3778956accbb7617c9a3798d02e0b175f6 | refs/heads/master | 2020-03-22T09:00:23.518744 | 2019-07-11T14:53:37 | 2019-07-11T14:53:37 | 139,807,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,207 | py | # -*- coding: utf-8 -*-
# Scrapy settings for tutorial project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topi... | [
"936844218@qq.com"
] | 936844218@qq.com |
382095ec11a67627f57ad1c851361509c9a2110d | 1fdf153c14eb70eba8ad59b41ac0e53cf7611bd0 | /backend/scholar/settings.py | bf15410d2201d4650f825e1a4f37869f823929eb | [] | no_license | kegeer/xsv2 | b0814ff853e54c260701b6945f1e3083d66169f1 | 1a8bdea0fe946727ae8283c5a5346db88ddeb783 | refs/heads/master | 2022-12-15T00:22:24.467965 | 2018-04-12T23:48:52 | 2018-04-12T23:48:52 | 129,317,782 | 0 | 0 | null | 2022-12-08T01:00:45 | 2018-04-12T22:27:28 | JavaScript | UTF-8 | Python | false | false | 5,660 | py | """
Django settings for scholar project.
Generated by 'django-admin startproject' using Django 1.11.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import o... | [
"zhangkeger@qq.com"
] | zhangkeger@qq.com |
8d3122e20690347d74a45893dbb6e1f218b56713 | 5474939d012128f31f1df0516cfa3af856bc5691 | /ProjMgmt/wsgi.py | 6c20ff12d0f4fcb7abe3ed01edd8dbf233dee72a | [] | no_license | Ckirk617/RemProjMgmt | aa765ed225372b2e830c637e32770f416596be68 | 7aa87665c58c79669dc58384677e103d38f0a150 | refs/heads/master | 2020-04-06T16:17:17.933760 | 2018-11-14T21:35:30 | 2018-11-14T21:35:30 | 157,610,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for ProjMgmt 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('DJANGO_SETT... | [
"cmariekirk@Christinas-MacBook-Pro.local"
] | cmariekirk@Christinas-MacBook-Pro.local |
fad12f4564f15cf7dbae7692278ba828cd5fd714 | efb6c4b02f29d164bc66f07eeda3c8026c797899 | /ec2stuff/email_when_fin.py | 651ef541bf5251f54dc6552296acb4887408161e | [] | no_license | swederik/AmazonEC2scripts | 6e2c7742300e077c68b8e205ea732696ee8a3fd6 | b74504388d6b937c9dbf27c345609b38ae04eab2 | refs/heads/master | 2016-09-05T17:38:34.579620 | 2013-07-14T23:26:14 | 2013-07-14T23:26:14 | 11,410,111 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | import smtplib
#itisfinishedprocessing@gmail.com.
def send_email(TO=["erik.ziegler@ulg.ac.be"], SUBJECT="DONE", TEXT="Finished"):
SERVER = "smtp.gmail.com:587"
username = "itisfinishedprocessing"
password = "throwawaypassword"
FROM = "itisfinishedprocessing@gmail.com"
#TEXT = "This message was se... | [
"erik.ziegler@ulg.ac.be"
] | erik.ziegler@ulg.ac.be |
2068e5ba0f55d91f5d12e1ef5b42fb4d6fbf661d | f03394e5840ee71ef9d1471718375d076d8e7ead | /wiki/encyclopedia/views.py | 371ac0333d52261f84793b994e858ba905835137 | [] | no_license | kane090/project1-cs50 | bef230d91dce573063cee3e2c5d22c40fc6235a8 | 8133d99cdbd70ed54efee46929d6345d22aa1726 | refs/heads/master | 2023-06-05T01:41:31.610041 | 2021-07-03T21:06:01 | 2021-07-03T21:06:01 | 371,736,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,544 | py | from django.http.response import HttpResponseRedirect
from django.shortcuts import render
from markdown2 import markdown
from django.urls import reverse
from random import randrange
from . import util
def index(request):
page_name = request.GET.get('q')
if page_name != None:
return search(request, pa... | [
"rishu.ks@gmail.com"
] | rishu.ks@gmail.com |
01d3691dce55255c364bb881f05bb97a3c770ca9 | 5982cd8db693927e83cd99f8ea1acf4fc90b8b9b | /Configurations/ControlRegions/WgS/torqueBatch/configuration1.py | 7d9ce4b429ce76b6bac43226395ae897e4ab9636 | [] | no_license | cedricpri/PlotsConfigurations | 61fc78ce9f081fd910a25f8101ea8150a7312f25 | 5cb0a87a17f89ea89003508a87487f91736e06f4 | refs/heads/master | 2021-01-17T09:46:55.026779 | 2016-09-01T09:30:09 | 2016-09-01T09:30:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | # example of configuration file
tag = 'WgS'
# used by mkShape to define output directory for root files
outputDir = 'rootFile1'
# file with list of variables
variablesFile = '../variables.py'
# file with list of cuts
cutsFile = '../cuts.py'
# file with list of samples
samplesFile = 'samples1.py'
# file with l... | [
"d4space@gmail.com"
] | d4space@gmail.com |
e70c2c624145508c69b85b1532869a38a84ba988 | 5ea4d0bcb8d493f37cc1d04bdec6a99b9afd38ed | /django_config/settings.py | 5dfa2afce3733969d20e13e1f52f2a29fa271052 | [] | no_license | youssriaboelseod/ERMS_Django_Web_Multi_DB | e5042ae20d42855143a9f3b3ecd28913cdae99f8 | 8f2354c095412859a15b3f5072c193fa74e3c6e3 | refs/heads/master | 2022-04-19T22:33:31.243690 | 2020-04-16T09:23:38 | 2020-04-16T09:23:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,421 | py | """
Django settings for django_config project.
Generated by 'django-admin startproject' using Django 3.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import... | [
"lalithaprasad@Lalithas-MBP.domain.name"
] | lalithaprasad@Lalithas-MBP.domain.name |
ae734d529bcbe273e29551f3ccd8c250513c04ad | f0aba1aa9949cc6a8d3678c0b3ecb5503b470c17 | /dtc/__init__.py | d9f20e7ca90c628c2cccd70a6d6bceb53e2bd4f4 | [] | no_license | hugosenari/dtc | 788eafc1a92701332ae54e2f2d74491566d635dd | 9bb2e6f4f9180b7291a5daf6a35903e5c59e3fc4 | refs/heads/master | 2020-12-24T17:44:45.474422 | 2012-08-03T20:02:28 | 2012-08-03T20:02:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,477 | py | '''
Created on Jun 30, 2012
@author: hugosenari
'''
import plugnplay
import logging
from os import path
from dtc.core import interfaces
from dtc.core.interfaces.module import _CoreModule
from dtc.core.interfaces.mainloop import MainLoop
from dtc import modules
class Dtc(object):
def __init__(self, dirs = []):
... | [
"hugosenari@gmail.com"
] | hugosenari@gmail.com |
6da75afc662601dd4bc0b2aaf0413dede6a4ac94 | 6df18031547b1fde808944b4c8f83d2766c95251 | /UoM_databases_with_python/assignment_2/tracks.py | 094f7bf6650220142fd1d777f5317ba3710277e3 | [] | no_license | skreynolds/UoM_data_science | 6edce9b3d3bf03b6dab6471346e40965464d6adb | 9636c0a784079445f585b830a1d093acea608d6a | refs/heads/master | 2020-05-20T23:06:36.560299 | 2019-06-01T02:30:09 | 2019-06-01T02:30:09 | 185,794,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,719 | py | import xml.etree.ElementTree as ET
import sqlite3
conn = sqlite3.connect('../databases/sqldb_5.sqlite')
cur = conn.cursor()
# Make some fresh tables using executescript()
cur.executescript('''
DROP TABLE IF EXISTS Artist;
DROP TABLE IF EXISTS Genre;
DROP TABLE IF EXISTS Album;
DROP TABLE IF EXISTS Track;
CREATE TABL... | [
"shane.k.reynolds@gmail.com"
] | shane.k.reynolds@gmail.com |
3ad2e3be5bbf20a847adee6493f968ebf3c1c699 | f3685b0ec3ed8302d92e8b3d7cb6984bf6b4ec2f | /black_jack_auto.py | a6a5b0f7b58a8168eb2fcd76313fcdbe1f65d45b | [
"Unlicense"
] | permissive | TomareUtsuZo/python_learning | 86a9ff97ebe129e31f78b1dfa39ca1a9ac89d928 | fb73abc4efb8d2352a2280c3043c43af6746491b | refs/heads/main | 2023-07-07T23:36:08.837648 | 2021-08-07T14:05:57 | 2021-08-07T14:05:57 | 389,968,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,010 | py | from random import shuffle
def cls(): print ("\n" * 100)
BLACK_JACK_PAYS = 2.0
class Player:
def __init__(self, name, hand=[], money=100):
self.name = name
self.hand = hand
self.score = 0
self.money = money
self.bet = 0
def __str__(self):
print(f'... | [
"noreply@github.com"
] | TomareUtsuZo.noreply@github.com |
3e108d215330ee3c14ab7f7957e3cbc55dfcb5f9 | aecad2b0e89d72aca6c80bf63c424ee7904257ce | /pending_deletes/named_entity_recognition/NER_co_occurrence.py | deeeaa377fae611e679786374f32a94ecd4dcd2c | [] | no_license | humlab/text_analytic_tools | fdf4ba814263672b05ec188aac9a059b55d085b6 | 32fc444ed11649a948a7bf59653ec792396f06e3 | refs/heads/master | 2022-03-02T06:56:29.223039 | 2019-10-28T13:06:49 | 2019-10-28T13:06:49 | 74,679,680 | 2 | 1 | null | 2019-10-26T21:33:23 | 2016-11-24T14:19:46 | Python | UTF-8 | Python | false | false | 2,705 | py |
import pandas as pd
# %%
writer = pd.ExcelWriter('C:\\TEMP\\papacy.xlsx')
# %%
#pope = 'benedict-xvi'
#pope = 'francesco'
pope = 'john-paul-ii'
#df = pd.read_excel('./Data/' + pope + '.xlsx', 'Data')
df = pd.read_excel('C:\\Users\\roma0050\\Documents\\Projects\\papacy_scraper\\data\\' + pope + '.xlsx', 'Data', dtype=... | [
"roger.mahler@hotmail.com"
] | roger.mahler@hotmail.com |
d55719fc88b337b0fec3f2afbaeb087d1156c0a9 | 316dbb3baac4a2084dfc5693677fa4baaa8b76b5 | /DSandALGOs/DP/edit_distance.py | d24c79ecc72ef7a49615020cddcaaaf4c325ad11 | [] | no_license | nsjethani/Python | 27748ff5e420823c6a1a73183aead612e3e6db4d | 7d1cf6382d18942bd5ddd91b476fae009060b961 | refs/heads/master | 2020-03-10T02:14:19.836172 | 2019-03-05T21:58:46 | 2019-03-05T21:58:46 | 129,131,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | def minDistance(word1, word2):
"""
:type word1: str
:type word2: str
:rtype: int
"""
# from one word to another
if not word1:
return len(word2) + 1
if not word2:
return len(word1) + 1
buffer_array = [[0] * (len(word2)+1) for i in range(len(word1)+1)]
for i in rang... | [
"neha.jethani6627@gmail.com"
] | neha.jethani6627@gmail.com |
53014b08b5a0417f9cdad166774bd2d3dddbf4a7 | c0a1da7cd7bcc987f28d746679664a163ea84e6a | /app/forms.py | 0cef18f88bc9b986212729252be10ed4a9698605 | [] | no_license | pavan19a97/flask-todolist-login | fcbf1d96dd0f586d5e399645e1faedfd3cb4f28f | e05a2e7bdaae8bcf4567a3ae3e90aab62ef068d6 | refs/heads/master | 2023-02-26T03:06:58.972469 | 2021-01-30T16:51:56 | 2021-01-30T16:51:56 | 333,224,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField
from wtforms.validators import ValidationError, DataRequired, Email, EqualTo
from app.models import User
class LoginForm(FlaskForm):
username = StringField('Username', validators=[DataRequired()])
password... | [
"pavan19a97@gmail.com"
] | pavan19a97@gmail.com |
807c84ca2a5d2e55897e76ad73c802210aa7bde3 | 2764319f07b328d0c0bb4bf7300d8b499621b121 | /Missions_to_Mars/scrape_mars.py | bd128cfe23fc2a09536dda2e8dd0e6fdcdd1cf5f | [] | no_license | erik-hernandez-25/web-scraping-challenge | 8a098fc62474544ed98e72d69002f15090a27ae4 | d086059035ba143e7642d892d1b147f8313132f2 | refs/heads/main | 2023-04-06T23:57:17.983696 | 2021-04-10T23:46:21 | 2021-04-10T23:46:21 | 356,629,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,211 | py | import pandas as pd
from bs4 import BeautifulSoup
from splinter import Browser
from webdriver_manager.chrome import ChromeDriverManager
def init_browser():
executable_path = {'executable_path': ChromeDriverManager().install()}
return Browser('chrome', **executable_path, headless=False)
def scrape():
... | [
"erik.hernandez.enriquez@gmail.com"
] | erik.hernandez.enriquez@gmail.com |
67ddb0e2a54f5eb15dcef4077a242b6570051ce6 | c1887805b9cfc7fbe495579151e099727ec5e7e1 | /lib/python2.6/site-packages/tw.jquery-0.9.9-py2.6.egg/tw/jquery/samples.py | e19ed82a9c4b333531d8d87063e82fb8d24a57df | [] | no_license | desarrollo1/tg2env | 2b684ed15c4a946ade343c12c6ab045e89d10539 | 6f8fa6517d7201c38a0769d5e253c70899be3413 | refs/heads/master | 2021-03-12T19:20:32.848029 | 2011-01-31T04:48:26 | 2011-01-31T04:48:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,469 | py | # Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copi... | [
"jaglame@gmail.com"
] | jaglame@gmail.com |
f1b9d705860e3e5f69e290b188025d10c52789f1 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/tensorflow/python/autograph/core/unsupported_features_checker.py | 9ecab32e6c5f01db35c77233cc55c757a9f80212 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:d0644b74e1e6d4d41084b1c1d32d62fc2a1adb15cd7c6141bd2a62448c182854
size 1815
| [
"github@cuba12345"
] | github@cuba12345 |
a582091097bfd7e00fa4a9f6681f38995dda1943 | 37313e86e23cd6ad46afa84ca5399c7535079dd7 | /TheLab_03_TextInput/main.py | 100caf6ce96b04119c4991b15929bf3887a42744 | [] | no_license | liloFashion/TheLab_firstSteps | 5d84234c514fceb92735062145f657f460acd24e | c41632f928f2211902aeb53bbd2926985c9c48dc | refs/heads/master | 2023-08-26T12:10:01.128075 | 2021-11-11T11:05:24 | 2021-11-11T11:05:24 | 426,171,357 | 0 | 0 | null | 2021-11-11T11:05:25 | 2021-11-09T09:44:06 | Python | UTF-8 | Python | false | false | 1,529 | py | # from io import StringIO
import os
import sys
from pathlib import Path
from kivy.app import App
from kivy.uix.gridlayout import GridLayout
# from kivy.uix.togglebutton import ToggleButton
from kivy.properties import StringProperty, BooleanProperty
root_path: Path = os.path.split((os.path.dirname(__file__)))[0]
sys.... | [
"lisaloerinci@gmail.com"
] | lisaloerinci@gmail.com |
f954afca286ead0f30eadda260fb7ed77017edd1 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/FJZJJMM/YW_FJZJJMM_SZSJ_258.py | e1df1921dc57e77398bc293709c609467ced5724 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,338 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
d5102b50bc26edc64a913b2c41843f190397541c | 6a710916cf2b49e1210b108e03b114779967a5a8 | /crop-AI/cropAI/dashboard/views.py | a82d4760a6a32cff30464e999dfb41c4527fcafa | [
"MIT"
] | permissive | selvvm/crop-recommendation-system | 58f2b83f7ceba01fa35fe49adf22570734268a72 | bc8f91cb222ebce36aec881f72fdd85e5054e528 | refs/heads/main | 2022-12-30T22:27:00.253575 | 2020-10-16T21:07:00 | 2020-10-16T21:07:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | from django.shortcuts import render
# Create your views here.
def index(request):
return render(request, 'dashboard/landingpage.html') | [
"sanket.mhatre@vit.edu.in"
] | sanket.mhatre@vit.edu.in |
bf342befc93f6e874f5a82c83db670ea0dcd7f9b | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/numpy/2016/8/system_info.py | 014223b745ac3bc735add615d462bac5093d83af | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 84,885 | py | #!/bin/env python
"""
This file defines a set of system_info classes for getting
information about various resources (libraries, library directories,
include directories, etc.) in the system. Currently, the following
classes are available:
atlas_info
atlas_threads_info
atlas_blas_info
atlas_blas_threads_info
... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
5d9e0075253122f9ebcf9e7151e8c02a54560e84 | 6ae747b190fd05491a865b55a5c8c5577b9c3e88 | /options.py | 058e1888bd7b6f1b214ec9d1915026f9ba99fb4d | [] | no_license | Ponts/MAESTRO | c720938317ef6bd1ce9a4d3f4ff13ffde6fbaff4 | cea40e3ff0bd59fea19deec07f1f7f9797e90b33 | refs/heads/master | 2020-04-30T12:49:56.920146 | 2019-06-14T06:43:44 | 2019-06-14T06:43:44 | 176,836,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | options = {
"filter_width": 2,
"sample_rate": 16000,
"dilations": [1, 2, 4, 8, 16, 32, 64, 128, 256, 512,
1, 2, 4, 8, 16, 32, 64, 128, 256, 512,
1, 2, 4, 8, 16, 32, 64, 128, 256, 512,
1, 2, 4, 8, 16, 32, 64, 128, 256, 512,
1, 2, 4, 8, 16, 32, 64, 128, 256, 512],
"residual_channels": 32,
... | [
"pbrink@kth.se"
] | pbrink@kth.se |
75f03f05b3f59195d3d3e9487faea50be5eac82f | c28b86c750612e88deb1de6fc43d2a340d09f5ed | /s2lib/forcefields/eam.py | fa6bf922a13f8a1471b28f20752da4c558869e54 | [] | no_license | vlcekl/s2lib | db2e99ae05cf9148215a93fddaf731be8e5b2e5d | 47f70ec27e917c41ce63c2f6ca15b235878e7ce3 | refs/heads/master | 2022-11-04T11:58:02.302899 | 2020-06-21T03:11:55 | 2020-06-21T03:11:55 | 273,824,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,476 | py | from __future__ import print_function #, unicode_literals
from __future__ import absolute_import, division
try:
xrange = xrange
# We have Python 2
except:
xrange = range
# We have Python 3
"""
Collection of EAM functions
"""
import copy
import numpy as np
from .potentials import f_spline3
# Functio... | [
"lukas_vlcek@yahoo.com"
] | lukas_vlcek@yahoo.com |
38a8e20fc7ef3ca1544ce24c9cc622c673959db8 | 889567668a39d069793bec6fc91b7a8b7b998f3a | /courses/migrations/0007_video_learn_times.py | 51e4cfd6a6a2544fb32c9710d99878ee20ec0edc | [] | no_license | SheriffHood/yxonline | 4b5637fd685492bb8d99b9228ac182b2bc7b7dfd | 476d864ecfc924d392ae5478f9f68493057f37fa | refs/heads/master | 2020-03-23T17:26:14.331322 | 2019-01-13T13:42:16 | 2019-01-13T13:42:16 | 141,859,919 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | # Generated by Django 2.0.7 on 2018-10-30 22:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0006_auto_20181023_0612'),
]
operations = [
migrations.AddField(
model_name='video',
name='learn_times',
... | [
"h77max@163.com"
] | h77max@163.com |
07acda20de91fccf2fd365140062d327451bc05f | d6ea1431a1809ca532b4ac61e4e1191abe129e45 | /flaskr/blog.py | 5836f95edabbf05ea162617ac548afe9e3c380cf | [] | no_license | jpeter17/Blog-Flask-MongoDB | 414b4556d4e492185c5deefe4b90d747cb7e7aa9 | 4a5ddd967517726fe0a9658683781b70a4524f3d | refs/heads/master | 2020-05-18T20:32:54.690536 | 2019-05-05T02:49:02 | 2019-05-05T02:49:02 | 184,637,267 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,602 | py | from flask import (
Blueprint, flash, g, redirect, render_template, request, url_for
)
from werkzeug.exceptions import abort
from flaskr.auth import login_required
from flaskr.db import get_db
import datetime
from bson import ObjectId
bp = Blueprint('blog', __name__)
@bp.route('/')
def index():
db = get_db... | [
"jakepetersen1221@gmail.com"
] | jakepetersen1221@gmail.com |
4fd59a1ac585a5f6e6b546108569a098170199e8 | 3c8df871fe6d24872bc0fdf8d43d4b8e25cc7a79 | /SkillFile1.py | 8ddef8cd615412b598c7ddbd2df0ad6d2b15ddaa | [] | no_license | Wechtomka/SkillBox | 218ac19718db00e99e80ca3ae342a0a3ab407e6e | 31eb2ee03ce5267c8b766ad9e5acb4d5e640364e | refs/heads/master | 2021-03-05T01:12:59.659956 | 2020-03-09T15:44:25 | 2020-03-09T15:44:25 | 246,083,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | import random
n=25
a= [0]*n
for i in range (n):
a[i]= random.randint(0,10000)
print(a)
# vot
| [
"valeravechtomov@gmail.com"
] | valeravechtomov@gmail.com |
62b3e8c98f69413f4928500748c9d216dbf81623 | 9ac31b906922cfddc223354f90aea8d9c2d91877 | /puntuacionCondicional.py | a3435ff1de3bccdf74dff03a3bdf673bdfe8f86a | [] | no_license | VAEH/TiempoLibre | 93210c80e2457d358500b790ac795975997fc7f3 | 0994cd3abb9f815cd8e9eaa485f53135f46088ca | refs/heads/master | 2023-05-01T16:42:23.355973 | 2021-05-17T06:25:08 | 2021-05-17T06:25:08 | 298,337,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | try:
score = float (input("Enter Score: "))
if score >= 0.0 and score <=1.0:
if score>=0.9:
print('A')
elif score >=0.8:
print('B')
elif score >= 0.7:
print('C')
elif score >= 0.6:
print('D')
else:
print('F... | [
"jpnewton12@gmail.com"
] | jpnewton12@gmail.com |
6a7750d3d923482fa6bc1912c5e162ef293f28e1 | 74a4d13ad5228cfe8cc2ffeb4c795a8ca16ed960 | /Apriori/apyori.py | 2543aa8cb9cb58faa2a7a9833f2a4be3a20b0de7 | [] | no_license | kaustubsinha/Machine-Learning-Basic | 6e18e4cdc8b5a7100400cec0e831d4ef226b363f | e3b4639c70e800c2e85f04884a7d6edd78aa8dc5 | refs/heads/Linear-Regresssion-Algorithm | 2020-03-21T10:01:16.159560 | 2019-12-19T11:08:15 | 2019-12-19T11:08:15 | 138,429,935 | 1 | 0 | null | 2019-12-19T10:56:18 | 2018-06-23T20:02:20 | Python | UTF-8 | Python | false | false | 14,995 | py | #!/usr/bin/env python
"""
a simple implementation of Apriori algorithm by Python.
"""
import sys
import csv
import argparse
import json
import os
from collections import namedtuple
from itertools import combinations
from itertools import chain
# Meta informations.
__version__ = '1.1.1'
__author__ ... | [
"noreply@github.com"
] | kaustubsinha.noreply@github.com |
3198301171ba3b98d74bf2f7f604ae48fff451a0 | 80dde7133759f3f7f006babc90c377edfbda2390 | /what conv layers see/Activation_maximization_using_keras_vis_toolkit.py | d8804b86e356cf285603839dee3e6c0041ff6abf | [] | no_license | akash027/CNN | b8146e062e8901557edbc473a8c2607cf736adeb | 79cab06e12cf5da52c7c9c32456c791e4df2c9e2 | refs/heads/master | 2021-05-23T09:51:35.662520 | 2020-07-16T13:16:49 | 2020-07-16T13:16:49 | 253,229,652 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,086 | py | import numpy as np
import keras
from keras.datasets import mnist
from keras.models import Sequential, Model
from keras.layers import Dense, Dropout, Flatten, Activation, Input
from keras.layers import Conv2D, MaxPooling2D
from keras import backend as K
batch_size = 128
num_classes = 10
epochs =1
#input image dimensi... | [
"noreply@github.com"
] | akash027.noreply@github.com |
ca72163d672b64afaf83f1f5891e2c4f1c2d573c | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Shapely_numpy/source/numpy/doc/structured_arrays.py | 5289e6d0bd859f00231e416fc338c3c4d6e6ee3e | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 11,442 | py | """
=================
Structured Arrays
=================
Introduction
============
NumPy provides powerful capabilities to create arrays of structured datatype.
These arrays permit one to manipulate the data by named fields. A simple
example will show what is meant.: ::
>>> x = np.array([(1,2.,'Hello'), (2,3.,"Wo... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
7b55e1953289ae47bc0cf1c4b4d91e477896cb45 | c9638b7a7898ffdd86ec31a778b0e52ded5fb68a | /Assignment05_Starter.py | ab4bf12633cd67e6ad0df25da7af61c8ec3eb8e4 | [] | no_license | roslynm/IntroToProg-Python | 9660469365ef78fceddafb328f7ae806af154467 | 6c5db22811b5c47bf67e3fc862ddd7c86d5100e1 | refs/heads/master | 2022-07-13T22:05:28.399021 | 2020-05-16T18:24:33 | 2020-05-16T18:24:33 | 264,487,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,862 | py | # ------------------------------------------------------------------------ #
# Title: Assignment 05
# Description: Working with Dictionaries and Files
# When the program starts, load each "row" of data
# in "ToDoToDoList.txt" into a python Dictionary.
# Add the each dictionary "ro... | [
"noreply@github.com"
] | roslynm.noreply@github.com |
6b36768e7c4ad8bb652b0eac3b2eef7fd91dc64a | dfd43751bc89a8662a3ee37120412176992bb5e4 | /codes/flower_cls/solver.py | 8694129db89b8e2bdbfd9a8530cd30c27bfa29d7 | [] | no_license | AbinayaKumar25/pytorch-exercise | 90ea7c20bd07a90a204eb78f8785c1f876a65879 | 219d8818703687687a4de562c737c833e6fe534d | refs/heads/master | 2022-05-27T12:24:32.338401 | 2020-05-03T15:24:48 | 2020-05-03T15:24:48 | 258,814,500 | 0 | 0 | null | 2020-04-25T15:51:54 | 2020-04-25T15:51:53 | null | UTF-8 | Python | false | false | 3,087 | py | import os
import numpy as np
import torch
from torch.utils.data import DataLoader
from net import Net
from dataset import Dataset
class Solver():
def __init__(self, args):
# prepare a dataset
self.train_data = Dataset(train=True,
data_root=args.data_root,
... | [
"nmhkahn@gmail.com"
] | nmhkahn@gmail.com |
7f3905346e32c93dbb08ca229d4d8268b9dfdb00 | 7f71d8ee1fbb15b44e202230ddde32133b9f386a | /backend/backend/stock_api/builders/__init__.py | c0e756957d428896e89b90526ecf315d6f0b2aee | [] | no_license | exe01/vkstock | 358229405694a75584a463dcdbbc975e3f84ac56 | 2711ddf11d6c2a071940405060c26f4c8878efde | refs/heads/master | 2023-04-04T14:36:34.438216 | 2021-04-18T15:11:41 | 2021-04-18T15:11:41 | 273,328,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,978 | py | from PIL import Image, ImageDraw, ImageFont
from backend.stock_api.utils.censor import PartialCensor
from backend.stock_api.constants import *
from backend.stock_api.models import (
Post,
Comment,
RenderedPost,
RenderedImage,
)
from django.core.files import File
import io
import random
import string
i... | [
"skupov2d@mail.ru"
] | skupov2d@mail.ru |
7933e38da4d9057e66aacf8c9acc9ba0b3e8b4e3 | af61c369e3550643d47fba2445d9f279e412e15c | /basicSprite.py | 2f0bfb2df06b261977e9f782873c230385348b8d | [] | no_license | Rabidza/pygame_learningpython | 45e900b5a8458a14e7df317de16a9e7cd18737fa | ef58d9ca977e2ea1406200ce04c3a32a440be66a | refs/heads/master | 2020-06-03T15:13:38.419015 | 2015-02-18T16:16:30 | 2015-02-18T16:16:30 | 30,924,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | import pygame
from helpers import *
class Sprite(pygame.sprite.Sprite):
def __init__(self, centerPoint, image):
pygame.sprite.Sprite.__init__(self)
# Set the image and the rect
self.image = image
self.rect = image.get_rect()
# Move the rect into the correct positio... | [
"neillhenning@gmail.com"
] | neillhenning@gmail.com |
91a0cbaa942ca70868ca7d37008a1923d0fb2ee7 | 9a8ee2d10e54229b0a7d528133398bff95456dcb | /Python/Desafio015.py | 3e221c43332407f0d788e30c81692f323327d333 | [] | no_license | ArielKollross/curso_em_video | c7a381e4caa1ee4a0e5fda7d87d71fe83b5fe2c7 | 978b5d77359edf046977f722c215eaf435723716 | refs/heads/master | 2020-07-04T19:38:52.017538 | 2020-02-14T02:44:16 | 2020-02-14T02:44:16 | 202,391,908 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | # Desafio 015: leia quantidade de dias e Km rodado, o custo R$ 60/dia além do custo de R$ 0.15/km
dias = int(input('Numero de dias utilizados: '))
km = float(input('Numero de Km rodados: '))
alugel = 60*dias + km*0.15
print('O valor total a ser pago é de: {:.2f}'.format(alugel)) | [
"noreply@github.com"
] | ArielKollross.noreply@github.com |
bdb391dcd7e614ad7a0fca39d8eb44b3a36c675e | d4a2ec804605c3adc1748be482d9f4ada770d2f0 | /packaging/models.py | 8a86a591afd49ca1fc61fb0fe2b0a5ec45213393 | [] | no_license | premierrufus/localbrewery | 2af9cc568f7fbdbf1c5e90a066d567859c626e9c | 58d87be09877dd0966cb1e291fa5c90449bb8a8d | refs/heads/master | 2021-09-06T18:26:38.693888 | 2018-02-09T17:10:00 | 2018-02-09T17:10:00 | 119,450,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,760 | py | from django.db import models
from django.utils import timezone
from decimal import *
from brewing.models import BrewingEvent
# Global Variables
SEP = ' | '
# Methods
def to_bbl(f, q):
"""
Takes two arguments: format(f), quantity(q)
Returns value(v) as a Decimal object, rounded to two places.... | [
"banded.gabriel@gmail.com"
] | banded.gabriel@gmail.com |
67a20ce0e3e82ec860d6764209e162fd4fe77b4d | 00cb405170a6a9572bef0ec8f373813eada08c03 | /Game Structure/geometry/version5/myentitygroup.py | 48d7e8cdcb9636189cb9f36e9451420877bcb85d | [] | no_license | MarcPartensky/Python-Games | c0ad2857be5832d6029642bb0a96bc8e403a12e3 | ebfcaaf4a028eddb36bbc99184eb3f7a86eb24ed | refs/heads/master | 2022-09-03T00:04:16.402288 | 2022-08-12T17:10:22 | 2022-08-12T17:10:22 | 166,606,022 | 2 | 1 | null | 2021-03-07T16:20:15 | 2019-01-19T23:56:04 | Python | UTF-8 | Python | false | false | 11,746 | py | from mymanager import Manager
from myentity import Entity
from mymotion import Motion
from mygroup import Group
import numpy as np
import random
class EntityGroup(Group):
"""An entity group is a group of entities. Entity specific features are added."""
@staticmethod
def getCollided(group1, group2):
... | [
"marc.partensky@gmail.com"
] | marc.partensky@gmail.com |
343b803e15102a3375ee6ccb4bb67ca91238249e | 562c79cf793f4f138cff206d718b5ce4a48f2add | /Catalog/urls.py | 3059dc2b7a9a20e23a43caa37b26b7a7780a3ecc | [] | no_license | iamhunter/Worthwhile_Django | 5bd151b13503809a6076ae3bba23b267ad9b299c | a7f72dab288637e5d107331bde76850656593188 | refs/heads/master | 2021-01-21T11:24:00.939507 | 2017-03-02T19:15:26 | 2017-03-02T19:15:26 | 83,571,339 | 0 | 0 | null | 2017-03-01T19:24:23 | 2017-03-01T15:42:08 | Python | UTF-8 | Python | false | false | 463 | py | from django.conf.urls import url
from django.conf import settings
from django.conf.urls.static import static
from . import views
urlpatterns = [
url(r'^courses/$', views.index, name='index'),
url(r'^add/$', views.add, name='add'),
url(r'^courses/(?P<course_id>[0-9]+)$', views.detail, name='detail'),
... | [
"andr3whunter@gmail.com"
] | andr3whunter@gmail.com |
a0b40c1e4cfc595d8bc11fa49ffb5e77e2d600c3 | 238ebc43c3d54d2842de75fd8ddf0b0b0261906e | /SimulateData.py | eb704550b17512faa02f5b718ec6ed67b6f373b5 | [] | no_license | johndowen/CrossMgr | 17c114ab80382b24ce0cdd228782bd000f513ea8 | fc9eaf8ae5d4919cef3f1a3680c169be70cf356b | refs/heads/master | 2021-06-28T03:14:41.682880 | 2017-09-17T00:35:26 | 2017-09-17T00:35:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,686 | py | import random
import bisect
from Names import GetNameTeam
def SimulateData( riders=200 ):
# Generate random rider events.
random.seed( 10101021 )
raceMinutes = 8
mean = 8*60.0 / 8 # Average lap time.
var = mean/20.0 # Variance between riders.
lapsTotal = int(raceMinutes * 60 / mean + 3)
raceTime = mean * laps... | [
"edward.sitarski@gmail.com"
] | edward.sitarski@gmail.com |
23d6d5c985449a9537a51ae1e5dcbd2e1c388212 | 893a83cf9b42ebd6b66d92fe037af10952ac671b | /PythonPC/catchdy/into_mysql.py | 3e84fd1954ed02e07bd03aecdcff9110e5f30968 | [] | no_license | Nigihayamiim/StudyPython | 777f3cd7b55eaafb08f0f8e227a59fe1e87efafd | d2fe2e1fed74df8fdee30839d575421e0e0856fe | refs/heads/master | 2023-01-08T12:55:47.726155 | 2020-11-11T08:57:16 | 2020-11-11T08:57:16 | 264,388,409 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,727 | py | import re
import warnings
from queue import Queue
from threading import Thread
from time import sleep
from random import randint
import pymysql as pymysql
import requests
from fake_useragent import UserAgent
class CrawlInfo1(Thread):
def __init__(self, url_queue):
Thread.__init__(self)
self.url_q... | [
"xzyim@outlook.com"
] | xzyim@outlook.com |
a6a29c15db48347b902092bbe69ff4cf8a047f4b | 5346d8161e1cfcc57da37b09736f46d00fc58460 | /fasta_majority_consensus_DIR.py | 57e1eac74bb11d9f9c1b84700745f1d366b6ba09 | [] | no_license | mscharmann/tools | b4dbf7a99f9609ea7968faf3acf0808898aa2202 | 8c7fad9e38ece5b8f57176db6e605ea6a520fffd | refs/heads/master | 2022-10-26T13:50:36.869517 | 2022-09-27T15:47:26 | 2022-09-27T15:47:26 | 130,751,495 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py |
import sys, os
def read_fasta (infile):
fasta_dict = {}
seq = ""
name = "dummy"
with open(infile, "r") as F:
for line in F:
if line.startswith(">"):
fasta_dict[name] = seq
name = line.lstrip(">").rstrip("\n")
seq = ""
else:
seq += line.strip("\n")
# last record:
fasta_dict[name] = seq... | [
"scharmann@Papyrus-Scharmann.local"
] | scharmann@Papyrus-Scharmann.local |
7ceab98892b6175d04fc3b8f5a0ecab1b1ebf58c | 102c11d9412f54eb8eddb987c45785a2fb78a45a | /cnn_lstm.py | 278826b04b88f494da336244bdaff9b109caee29 | [] | no_license | hujianhang2996/neural_style_transfer_tensorflow | fd83ea2161225eacf016587f7f2e25e892e7fdf9 | 27075fb38872b96284ca31fc8061e380ddee08bc | refs/heads/master | 2021-05-14T00:35:51.041463 | 2018-02-07T12:15:41 | 2018-02-07T12:15:41 | 116,544,479 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,589 | py | import tensorflow as tf
import numpy as np
from tensorflow.contrib.rnn import BasicLSTMCell
seq_length = 48
X = np.random.rand(10, seq_length, 1)
Y = np.random.rand(10, 2, 1)
df_graph = tf.Graph()
with df_graph.as_default():
batch_size = tf.placeholder(tf.int32, [])
input_X = tf.placeholder(tf.float32, (None... | [
"hujianhang2996@sina.com"
] | hujianhang2996@sina.com |
49359e0023eda45fba60e91197856055de571f96 | aa9f771c21c6d6b40be5f079f7ad7144a5129a7a | /optimus/input/variable_input_type_adapter.py | efbc561a4f6450b9933a5ffc9fff30bce4fe70de | [
"MIT"
] | permissive | sobhanlenka/optimus | 9b9476519c6c31c29fdb62ef8637f39f9eeae084 | ed02bffc4afdde2c80db29e1ac3356f27e8d5475 | refs/heads/master | 2022-10-31T16:34:48.068594 | 2018-06-22T18:33:41 | 2018-06-22T18:33:41 | 138,263,902 | 0 | 1 | MIT | 2022-10-20T13:49:25 | 2018-06-22T06:30:00 | Python | UTF-8 | Python | false | false | 1,890 | py | from __future__ import unicode_literals
from optimus.input import InputAdapter
from optimus.conversation import Statement
class VariableInputTypeAdapter(InputAdapter):
JSON = 'json'
TEXT = 'text'
OBJECT = 'object'
VALID_FORMATS = (JSON, TEXT, OBJECT, )
def detect_type(self, statement):
i... | [
"sobhanlenka@gmail.com"
] | sobhanlenka@gmail.com |
cce96bf74aaa3c84217177403fdeb84fb37ffa2d | f066cdd363fcf0c90575cc7c6ed3931c9687077f | /pow.py | c920234683e60a75a88f3e862a6d0cbb01fec281 | [] | no_license | kalaiselvikandasamy/python | 33efa21d031625be6805e61ebdf43e842f88ece4 | 6eaef0a72d9cc58fc38bedae2f35ddca00b85db4 | refs/heads/master | 2020-06-28T09:06:32.208812 | 2019-08-16T09:01:00 | 2019-08-16T09:01:00 | 200,194,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | x=int(input("enter the number:"))
n=int(input("enter the times:"))
z=pow(x,n)
print("the value:",z)
| [
"noreply@github.com"
] | kalaiselvikandasamy.noreply@github.com |
b4d58ab6626006d3f890942f673b4ca330f006bd | 8144255b44c1c1f8cab341606a7a611fca201f3e | /e3.py | 7af04d458309c8379d5d6f08a63d23dc19272d45 | [
"Apache-2.0"
] | permissive | piyushptiwari/python-programs | 720e9c28e3fd4bceddc9795c699c869ee6e9a06c | 5dba0ef4e77f1d2528f510327de4224b60b1d4ba | refs/heads/master | 2021-09-17T09:56:11.141134 | 2018-06-30T10:55:41 | 2018-06-30T10:55:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | try:
raise NameError("hi there") #Raise Error
except NameError:
print("an exception")
| [
"noreply@github.com"
] | piyushptiwari.noreply@github.com |
2ef45d0901e7aa9952c147ec2d1daccaef373028 | e5d130e183b5dea1b7aad23a047c703fa0d2b3bf | /lightbus/transports/pool.py | b680ac6858890624f59a6c14e96bddbe072a9cae | [
"Apache-2.0"
] | permissive | adamcharnock/lightbus | 4a86428b8203bfe98f77a32375ac961ef398ce16 | cf892779a9a9a8f69c789ffa83c24acfb7f9a336 | refs/heads/master | 2023-08-26T04:19:39.395735 | 2023-08-23T11:07:44 | 2023-08-23T11:07:44 | 94,617,214 | 193 | 22 | Apache-2.0 | 2023-08-10T21:21:51 | 2017-06-17T10:39:23 | Python | UTF-8 | Python | false | false | 7,438 | py | import threading
from inspect import iscoroutinefunction, isasyncgenfunction
from typing import NamedTuple, List, TypeVar, Type, Generic, TYPE_CHECKING
from lightbus.exceptions import (
TransportPoolIsClosed,
CannotShrinkEmptyPool,
CannotProxySynchronousMethod,
CannotProxyPrivateMethod,
CannotProxy... | [
"adam@adamcharnock.com"
] | adam@adamcharnock.com |
a6016ad52f16aa6305c950af46cef83b7d1156de | 220c292659676409854d9b35f23cefd31ea418d5 | /JAN 19/Assignment/Conditional statement & Loop/Q6.py | 400d0c8e759e53478e421a2e8fbe2873932638fe | [] | no_license | nisheshthakuri/Python-Workshop | df096c3de717b91ec4452341e8de77e54778f53d | 22fb9522076042551a6028d9b0a306d1917f21dc | refs/heads/master | 2021-10-21T02:50:04.406258 | 2019-03-02T13:59:10 | 2019-03-02T13:59:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | Q.Program which takes two digits m (row) and n (column) as input and
generates a two-dimensional array. The element value in the i-th row and j-th column of the
array should be i*j.
Solution:
row_m = int(input("Input number of rows: "))
col_n = int(input("Input number of columns: "))
_list = [[0 for col in rang... | [
"noreply@github.com"
] | nisheshthakuri.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.