blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 91 | license_type stringclasses 2
values | repo_name stringlengths 3 135 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 68 | visit_date timestamp[ns]date 2015-07-25 20:53:29 2023-09-06 10:46:05 | revision_date timestamp[ns]date 1970-01-01 00:00:00 2037-05-03 13:00:00 | committer_date timestamp[ns]date 1970-01-01 00:00:00 2036-02-09 17:40:36 | github_id int64 1.61k 691M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 24
values | gha_event_created_at timestamp[ns]date 2012-06-03 10:21:33 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-09-13 22:40:33 ⌀ | gha_language stringclasses 250
values | src_encoding stringclasses 27
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 6 10M | extension stringclasses 289
values | filename stringlengths 1 218 | content stringlengths 6 10M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5bb38afaf1ce75148298795e2bd16ed9b8daded7 | 874a45ea972571197129ddbc3018a72d70a17c42 | /finalTask.py | 78975a725e933eff729da2eb30eb9ce368c786da | [] | no_license | 1n6ty/ducky-town | c3ee3626e400e7319dce9baa46f3a5d1f41947f4 | 9a54f9f9c64914b550efc97c61ee9af9cacfb055 | refs/heads/main | 2023-03-04T02:03:19.711612 | 2021-02-14T10:45:44 | 2021-02-14T10:45:44 | 307,073,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | finalTask.py | import numpy as np
from cv2 import cv2
img = cv2.imread('pics/final_challenge.png')
template = cv2.imread('pics/index.png')
cv2.namedWindow('img')
def nothing(x): pass
cv2.createTrackbar('H', 'img', 216, 255, nothing)
cv2.createTrackbar('S', 'img', 0, 255, nothing)
cv2.createTrackbar('V', 'img', 0, 255, nothing)
cv2.... |
16ad1999628f298090a5dd1511c190e0215d73b8 | 62fb2203b94f9e2f1c1fee7b5e16835e2694705d | /pyboard/elechouse.py | ae88e301694f12ae894f9489ccae2687373b5bd7 | [
"MIT",
"MS-LPL"
] | permissive | ATLombardi/CambriaRemoteSpotlights | 00c4c0e1bdda262d3a49405949d2aec66c1c86e1 | 1240aaa70c683f0cd7cbdbd0a25be42e893f2a22 | refs/heads/master | 2021-09-14T21:11:19.977039 | 2018-05-19T23:04:52 | 2018-05-19T23:04:52 | 104,428,069 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,119 | py | elechouse.py | ## elechouse.py ##
## Contains an implementation of the dual-channel motor driver sold by Elechouse. ##
# Controlling the driver:
# _____________________________
# | |
# | EN RPWM DIS LPWM RESULT |
# |=============================|
# | 1 PWM 0 1 forward |
# | 1 1 0... |
93f8328f3df3823eb78884780e09d9d6a7ceb441 | aff158d9e22cd55873b245813223f9d936fb24da | /users/models.py | 22d915254ca9e4954b0d8d1eec634f17ba762e9e | [] | no_license | prasadreddyk/restapi | bdcb7ec29526eb61f30db1501ef840a82c72cee3 | dfff29707d2f367ec29e608b4ac01d5d6339b57b | refs/heads/master | 2023-04-13T17:33:41.199436 | 2021-04-24T01:30:47 | 2021-04-24T01:30:47 | 360,047,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | models.py | from django.db import models
from django.contrib.auth.models import AbstractUser
# Create your models here.
class User(AbstractUser):
name=models.CharField(max_length=255)
email = models.EmailField(max_length=255)
password = models.CharField(max_length=255)
username = models.CharField(max_length=255,un... |
1119894754aef800807e2484e8e166a127025e94 | a39adde99c75c2bf9b25b59fb0d6769196e74a63 | /datasets/hscic/scrape.py | 685bf7a01002d00376abfb0f9c41e4c0b30ff038 | [
"MIT"
] | permissive | uk-gov-mirror/nhsengland.publish-o-matic | 51624d52df562089f7acf4ac91aabcb37ac6d63b | dc8f16cb83a2360989afa44d887e63b5cde6af29 | refs/heads/master | 2021-06-09T06:17:50.473307 | 2016-08-18T10:29:50 | 2016-08-18T10:29:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | scrape.py |
from datasets.hscic.hscic_datasets import scrape as datasets_scrape
from datasets.hscic.hscic_indicators import scrape as indicators_scrape
def main(workspace):
datasets_scrape(workspace)
indicators_scrape(workspace) |
14bc833c001be6c6735d1bd020ba1eb1d6bd0997 | 0f4d1680ccb022114e296a6632790d37aa6d8b8b | /Prime decompostion.py | e4d184bc360a5834727bf4f456283830b47561a7 | [] | no_license | npc203/py-programs | 3d4dd17bc94c2c005dddd665816b93e371f801f4 | b91a2d41e3b79a5f37f1165969f8f2e83b1c6710 | refs/heads/master | 2022-02-26T16:25:51.406505 | 2019-09-16T14:34:13 | 2019-09-16T14:34:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | Prime decompostion.py | x=int(input("Enter number:"))
for num in range(2, int(x ** 0.5) + 1):
i=0
while x % num == 0:
i+=1
x=x//num
if i>0:
print(num,i)
if x>2:
print(num,1)
|
6faacfad7a9062f9a5fbe37e2559d838e846572f | c377be691c64528d66ff328c5d9a88d43319db39 | /main.py | c7f660ef5cc96b5cc54c43ab87b83f2bed7b81ea | [] | no_license | rosagiulietto/simulazione_13.05.2021 | 2b792f65e414a40c50c9a0d39e0bbc0d3e3ab20f | b00111846f24ec972cfa4f759aea375bb2530516 | refs/heads/main | 2023-04-20T00:41:12.545556 | 2021-05-13T11:15:16 | 2021-05-13T11:15:16 | 366,980,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,502 | py | main.py | import peewee
from funzioni import *
from gestore_db import *
class Immobile():
def __init__(self, proprietario, citta, indirizzo, mq, costruzione, prezzo):
self.proprietario = proprietario
self.citta = citta
self.indirizzo = indirizzo
self.mq = mq
self.costruzione = costru... |
e3a67d6ff38ef6f5a8b806565d3773351d2f715e | a9a1e761e4ed862648efada1374a1cd206e94707 | /cbp/eth.py | ff55365ea018faf7ff3143f34f52cf0a72fbf857 | [
"MIT"
] | permissive | uilyam/coinbase-pricing-python | 8e5fc2a7da88190e5dba67fe93d32e249d622851 | 71d81454b2ed6e5d0cb63f33ce39443b5926d935 | refs/heads/master | 2021-01-24T16:52:00.203222 | 2018-02-28T23:59:16 | 2018-02-28T23:59:16 | 123,215,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,699 | py | eth.py | from .constants import PRICE_BUY, PRICE_SELL, PRICE_SPOT, CURRENCY_ETH
from .core import get_price
def get_eth_buy(exchange_rate):
"""Get the current Ether Buy price for a given exchange rate.
Arguments:
exchange_rate {string} -- The supported exchange rate to denominate the price in.
Ret... |
9fb1c87d3d85ada9072cc06bd7de6f92c4a3b327 | 512b388a53022f561e2375b4621f78572d3b4f04 | /amortization/migrations/0002_auto_20200828_1301.py | 45337f2b590b80b4b9484dc5ea0305084d131b9d | [] | no_license | Madoka09/Worker15 | 006d5ac44dc55c3ae7f72d3b8300f3567395cdff | 181012d309052b2df3d4ef99a197e8acef73a185 | refs/heads/master | 2023-03-24T05:29:02.060796 | 2021-03-16T21:56:21 | 2021-03-16T21:56:21 | 336,394,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | 0002_auto_20200828_1301.py | # Generated by Django 3.0.4 on 2020-08-28 18:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('amortization', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='amortizationtable',
name='fortni... |
bf1c4c0a3d2ec831d24aa350ddd5f427f4ed41cf | fb2ee92486f55f15bc8f76fbf2f30928774135c0 | /trade/migrations/0006_auto_20160415_0818.py | 81dc90d80efb72b3d8598a8c4cbfe1747247e21c | [] | no_license | parshwamehta13/acme-international | 17f3535543128de6da28a17438cc98431ba0739a | 332af7842db2bca22550bdba189e6ddd5dbd5068 | refs/heads/master | 2021-01-10T05:22:28.247581 | 2016-04-19T09:06:27 | 2016-04-19T09:06:27 | 54,772,182 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | 0006_auto_20160415_0818.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-04-15 08:18
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('trade', '0005_goodssearch_transactionsearch'),
]
operations = [
migrations.A... |
19c0c30130a94aaabd6971d8fad735a6463932b5 | f33df559f9c02efeaf29fc9a4be58653867a4efc | /Python/DP/개미전사.py | 32250f87e0a55178b27c0f9383340a118e8c2936 | [] | no_license | Jiseok97/AlgoriJSm_Phython | 79b66bc582ec24776e55b46a3817afcdb1f21bac | 225370e005d237657a08fd441d79bcdc7770d321 | refs/heads/master | 2023-05-03T22:28:08.636401 | 2021-05-09T02:48:26 | 2021-05-09T02:48:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | 개미전사.py | n = int(input())
# 모든 식량 정보 입력 받기
lst = list(map(int, input().split()))
# 앞서 계산된 결과를 저장하기 위한 DP 테이블 초기화
d = [0] * 1000
# DP(보텀업)
d[0] = lst[0]
d[1] = max(lst[0], lst[1])
for i in range(2, n):
d[i] = max(d[i - 1], d[i - 2] + lst[i])
print(d[n - 1])
# 조건을 만족하지 못하는 내가 푼 코드
n = int(input())
lst = list(map(int, inp... |
00378a6b4ae94d5741c9c3149ae9fe925ffed9d0 | 53449e1355d73d375f8e6f5298600377d9a894de | /build_vocab.py | a270187f10ee70ac948d3c60fffbf21629bbf09d | [] | no_license | christiansbrown/cs230 | d01c0c73b1fdd6f1dc2cfe790c5e4f352a39257a | db53fe91f221ab0901e43c5bad77bac5b1be2c5d | refs/heads/master | 2021-06-21T14:08:42.778732 | 2018-03-23T02:53:16 | 2018-03-23T02:53:16 | 123,020,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,114 | py | build_vocab.py | """Build vocabularies of words and tags from datasets"""
import argparse
from collections import Counter
import json
import os
import sys
parser = argparse.ArgumentParser()
parser.add_argument('--min_count_word', default=1, help="Minimum count for words in the dataset",
type=int)
parser.add_argum... |
cad6494b993d880aee9a1e1fb9ef72807be38c73 | 7c5ea5a253f3759dbb3c498710d321643f1dd3dd | /set4-7.py | 691e909f89bdc75fa19bab179fb7f63bb8cbfe93 | [] | no_license | aktheunique/programs | 139c71333b76e28eccbfde29ef91058aa5708fd9 | 2f6ef9db3953000289a9f9f8913f28c217be95e4 | refs/heads/master | 2020-06-14T14:29:23.874292 | 2019-08-12T07:38:05 | 2019-08-12T07:38:05 | 195,027,117 | 0 | 8 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | set4-7.py | n1,n2=map(int,input().split())
n1,n2=n2,n1
print(n1,end=" ")
print(n2)
|
342d6af742aff08c85356a28f4b8475f21b27b13 | 48952666252c910b9e87e9ca13afea3d21211527 | /models.py | 805b68d2de7ab1ba4c7af6be16b3cee5f802f208 | [] | no_license | suyin1203/SNSE | 918afaeec59b5ee04bcccd19f285100c2eb4ba00 | dc5083a96997b554e39060afd0c3db49ff5d0b53 | refs/heads/main | 2023-04-10T10:00:57.495164 | 2021-04-25T04:23:52 | 2021-04-25T04:23:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,927 | py | models.py | import requests
from lxml import etree
import pandas as pd
import configparser
import re
import time
import math
import json
import jieba
class DataLoader():
'''grab data from website, the format of data is as follows:
|---------------------------------------------------|
| id | link... |
3f9a8c7211d3c0fc7ff06328e918c587da17b506 | ba32abd17edd2256d1fed916d241b1d4694d27c0 | /dropout_regularization.py | 912712b4ea5e00e88c9535b030510bff695fca62 | [] | no_license | Maveric4/Cat-or-dog---Transfer-Learning | 1084dedfe47d9846dfb594fc1dfb011c518bf811 | 4e3cebbca411f309ea0bf208db7233b684b29e83 | refs/heads/master | 2021-01-03T21:30:55.197138 | 2020-02-13T11:28:44 | 2020-02-13T11:28:44 | 240,243,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,496 | py | dropout_regularization.py | import os
import random
import tensorflow as tf
import numpy as np
from tensorflow.keras import layers
from tensorflow.keras import Model
from tensorflow.keras.applications.inception_v3 import InceptionV3
import dg_utils.dg_utils as dg_utils
img_size = 200
# Define a Callback class that stops training once accuracy re... |
d3fa7013c0a480fa867a64e0fa9a68192ab8ef97 | d125882f6e73e2cf98e68d9a633ad92c8d75ef20 | /uploads/database/Database.py | 2379708ed0c440eb60f148fe8651208ff6d5c580 | [] | no_license | threepipes/CodeForcesCrawler | bc7b25aef5c7c1c7a01b05049c6e70f00a89dbdc | ab15990e7fe000185604b52b736f9434acecbaa7 | refs/heads/master | 2021-01-11T01:43:25.483914 | 2017-11-13T06:01:18 | 2017-11-13T06:01:18 | 70,677,372 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,885 | py | Database.py | from database.Connector import Connector
class Database:
foreign_key = None
def __init__(self, table_name, key, column, data_table):
self.table_name = table_name
self.key = key
self.column = column
self.data_table = data_table
self.con = Connector()
self.result... |
b44a1b53c682b9e0369a4df67b038e4b075019c5 | 254cfb44ccfc5aa3e33c3a0c0487d9e10203b468 | /8x8/speedtest.py | 913c9efd8fe9d2d1837ef3c83e57bc49f3c18374 | [
"MIT"
] | permissive | jonah-chen/alphazero-guerzhoy | 11c62ce9975edd983180c952b9e3652eebf4c267 | 9e45994d8fc687001bb98caefa2f89a7b4707ea1 | refs/heads/master | 2023-02-07T03:22:59.480029 | 2020-12-26T03:36:45 | 2020-12-26T03:36:45 | 310,757,759 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | speedtest.py | '''A speedtest of the efficiency of different functions with a control feature,
and an error estimite assuming poission distribtuion.'''
import tensorflow as tf
import time
import numpy as np
from nptrain import is_win
import random
ops = 1e8
''' Do not declare functions if not absolutely necessary'''
x = np.ran... |
f679174d77fef52b184fa69d97ef7c3626185cda | a872d06039e6db31f668c07631b762e37e1c1d77 | /tests/test_rules.py | ab076a693ac1914c0e4ab9e1b7f8ff275dd4ebd6 | [] | no_license | rogermarkussen/chess | a00bdebd5d79417f4e28f9075d3ecd039f90cec3 | 2cf26729ad154dacacf412846844cf3b80ef48bf | refs/heads/master | 2021-01-16T23:19:09.811725 | 2016-08-18T12:40:23 | 2016-08-18T12:40:23 | 65,117,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | test_rules.py | from ..config import *
from ..rules import moves_available
model = {
"a8": "r", "b8": "n", "c8": "b", "d8": "q", "e8": "k", "f8": "b", "g8": "n", "h8": "r",
"a7": "p", "b7": "p", "c7": "p", "d7": "p", "e7": "p", "f7": "p", "g7": "p", "h7": "p",
"a2": "P", "b2": "P", "c2": "P", "d2": "P", "e4": "P", "f2": "... |
d7bed59643903f680c3578dfc8fc4863445c591a | bdac7344f5e8905a605ad6221251d39ff60186cd | /tourism/migrations/0002_hillstations_logo.py | 45bb9f1ad7d2c18e6f05c7dd8e71794c23c973ef | [] | no_license | JingyuanZeng/RecSys | 9ffb333039c71163c61ba0f40d3478b1c363367d | 37a1de356c39e3517613f178d5e22529d5a0e0e4 | refs/heads/master | 2020-06-01T23:02:29.821323 | 2019-01-13T14:51:01 | 2019-01-13T14:51:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | 0002_hillstations_logo.py | # Generated by Django 2.1.4 on 2019-01-13 13:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tourism', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='hillstations',
name='logo',
... |
20d6a75b3d0767632cd26b06a95a3dfd47fcad51 | 33d7384c7e8c688be5813cbe8db7331853227bf6 | /talkpython_days/01-03-datetimes/chris/timer.py | 19983383880f99e62c87d9d8d2a91779dbf4cffb | [] | no_license | sharpchris/coding352 | 327a9062aad6a4ee29ca4c2af7c4a0cdfb55cf87 | 7445c4f8c3d5fb25b157e7ced29126e937729a3d | refs/heads/master | 2020-04-08T17:51:02.090574 | 2019-04-11T13:52:17 | 2019-04-11T13:52:17 | 159,583,376 | 4 | 1 | null | 2019-04-11T13:52:18 | 2018-11-29T00:24:37 | Python | UTF-8 | Python | false | false | 589 | py | timer.py | from datetime import datetime, timedelta
from time import sleep
print("Welcome to the Sharp Timer!")
number_minutes = input("How many minutes do you want to put on the timer? ")
# TODO: Logic to only accept <24 hours worth of seconds
time_interval = timedelta(minutes=int(number_minutes))
final_time = datetime.now() ... |
15a72f3ef43e72f2aaad7bd9aa137f5912eabd15 | 04a77043cebd9415069aad4a6b8e7af077de1168 | /1-pbase/day10/exercise/4.py | 9aacddcfc8d67397cad069d46dcb9a82a9c657d0 | [] | no_license | yangxiangtao/biji | a935fbc4af42c81205900cb95a11e98c16d739de | 5c5f46e6c145fc02ea10b7befdc05c489fc3b945 | refs/heads/master | 2022-11-12T02:25:51.532838 | 2019-04-02T01:22:12 | 2019-04-02T01:22:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,110 | py | 4.py |
def input_student(L):
while True:
n=input('请输入姓名:')
if not n:
break
a=input('请输入年龄:')
if not a:
break
s=input('请输入成绩:')
if not s:
break
d={'name':n,'age':a,'score':s}
L.append(d)
return L
def get_chinese_char_... |
7acdca6c1bd4dca24feee5e0351b5c9ceb171c6a | 13a01ea4b860544e95bfa41d8eff92031eea2a43 | /servidor.py | 865c2153fdebdd8c3353f1759c45769eb9ef338b | [] | no_license | adrifors/ZMQ | bf7f19a86f58432efdc8aa0651c35e20c0cb6f44 | 8739c39f2fcde763a259e819502a6d5c4965c048 | refs/heads/master | 2020-05-30T15:55:16.631441 | 2015-06-08T20:47:03 | 2015-06-08T20:47:03 | 37,053,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,683 | py | servidor.py | #!/usr/bin/python2
# -*- coding: utf-8 -*-
import zmq
import os
import glob
import pickle
# Directorio que vamos a compartir
directorio = raw_input("Escriba la ruta del directorio a compartir: ")
def main():
#Se crea una instancia del contexto
context = zmq.Context()
#Se crea el socket con parametro pe... |
49c7a7e493d347b8c707ee49165aac1f5e937423 | 0bcf10eb9100c7e05637f8c8716b5d2ead3e8d9b | /find_faces.py | 223698da073c37773359f199c56d2bf121b1b810 | [] | no_license | HorusLee/python-face-recognition-system | b9548790204732c9adeefc1c3d3569100200159f | 92f7e36ca3dd5cc349b5c895fb1ff160d7ad520a | refs/heads/main | 2023-01-07T13:55:02.288709 | 2020-11-15T13:37:38 | 2020-11-15T13:37:38 | 313,031,686 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,095 | py | find_faces.py | """
Zihao Li
Class: CS 521 - Fall 2
Date: Wed Dec 11, 2019
Final Project
Description:
Find faces method
"""
import face_recognition
from PIL import Image, ImageDraw
def find_faces(filename):
"""This is a method to find all the faces in a picture."""
# Find the location of each face in a picture
image = face_reco... |
5706d2d4fc83376ece07a7f4712c214ed0e6ad93 | b9f0d575ff9809266ad149b79180c74901faea6f | /Sprawdzarka dat.py | ef865a938b82133dd0f3957639b86141e73b5a1d | [] | no_license | a-sledziewsk/ElasticManager | ec74b7cd5ab2752f28d241301cf3bf7453ae52b4 | cfbe3d9f3ee9eb5fdd30b93203f877992ad507d5 | refs/heads/master | 2020-03-19T11:51:23.848900 | 2018-06-13T07:57:42 | 2018-06-13T07:57:42 | 136,480,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | Sprawdzarka dat.py | import os
import pandas as pd
from datetime import datetime
'''Program reads the starting and ending date from txt files
in current directory. It assumes structure of the file resembling
wheeljack reports. Remeber that date which you insert in
ReportMaker has to be decreased by 1 hour'''
print('--------------')
cwd ... |
db97222845570ad5c621bb3ecd9c58f19178520e | 673bf701a310f92f2de80b687600cfbe24612259 | /misoclib/com/liteeth/phy/gmii.py | 3e81c301f81501c4c5604b452f1c792c12507b49 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mogorman/misoc | d78340a9bf67feaede20e8cac473bcfddbd186a3 | 4ec49e2aadcff0c3ca34ebd0d35013d88f4d3e1f | refs/heads/master | 2021-01-18T05:38:39.670977 | 2015-03-10T05:37:52 | 2015-03-10T05:37:52 | 30,672,191 | 1 | 0 | null | 2015-02-11T22:05:05 | 2015-02-11T22:05:05 | null | UTF-8 | Python | false | false | 2,266 | py | gmii.py | from misoclib.com.liteeth.common import *
from misoclib.com.liteeth.generic import *
class LiteEthPHYGMIITX(Module):
def __init__(self, pads):
self.sink = sink = Sink(eth_phy_description(8))
###
self.sync += [
pads.tx_er.eq(0),
pads.tx_en.eq(sink.stb),
pads.tx_data.eq(sink.data)
]
self.comb += sink... |
ace95463fbebeb9bf840a96fed4a2d6cf3baa941 | e13e025e99ea88bbede4031ae5254d482a530522 | /PythonTCPFramework.py | 467a9f5a6e64b84910528bb9604a9701c6d8dd5b | [] | no_license | ayronherman/ExploitFramework | d8e67fe42cb959ae72923c19385ded995038bc38 | 9578360c87f6ff16326a6ba6dd978c963dccc87a | refs/heads/master | 2020-12-24T10:14:42.406001 | 2017-04-28T21:54:30 | 2017-04-28T21:54:30 | 73,094,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | PythonTCPFramework.py | # This is a Python TCP exploit framework
# Ayron Herman
# Use: "python <scriptname> <IP Address> <Port>"
import sys, socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Declare a TCP socket
buffer_size = 1024 # Size of buffer for return data
exploit = "blah\r\n" # Our future e... |
0e08505c9c64665f8fd29848cb8d6272e61868d1 | 6a77b42871d1996b9037e3be4fea31436315c8ab | /ex072.py | 6697a6f395f1340ba99cf3c667973722f9029644 | [] | no_license | RaphaelMolina/Curso_em_video_Python3 | 4e1e299681695db69a0439107b32ae90cdea32f5 | f22100865d7137bc420b677f118c848d963ee90a | refs/heads/master | 2022-01-10T09:48:25.777665 | 2022-01-06T16:23:52 | 2022-01-06T16:23:52 | 244,028,670 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | ex072.py | from Titulo import Titulo
e = Titulo(72, 'Apresentação dos números por extenso!!!')
e.Exercicio()
numeros = ('Zero', 'Um', 'Dois', 'Três', 'Quatro', 'Cinco',
'Seis', 'Sete', 'Oito', 'Nove', 'Dez', 'Onze',
'Doze', 'Treze', 'Quatorze', 'Quinze', 'Dezesseis',
'Dezessete', 'Dezoito', 'Deze... |
53bc90c57b0c2a90ac7bb26c3e1c732df3225f6f | d517fced958c7f562dfa7772a6201bb426e4bec8 | /trackpad-indicator.py | 4a2fdfa8bf1ff1ad04446eb02cb58bab68e99686 | [] | no_license | johnnyjacob/trackpad-indicator | f169a8ecc1946f80ed4864e96d2e38d83f1d2b59 | 7bcec887b846009b758c7f11c498d85b12db895f | refs/heads/master | 2016-09-06T13:28:07.298994 | 2012-11-30T08:36:28 | 2012-11-30T08:36:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,641 | py | trackpad-indicator.py | #!/usr/bin/env python
# Copyright (C) 2012 Johnny Jacob <johnnyjacob@gmail.com>
# 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 right... |
3e1d5e2e219704e4b7fc32448caddc0036e3fb03 | 4470635ce1b3db222c509af59f121796aa683b98 | /dict_dict.py | 90435605008ae4d827abaae33348418a82296b7e | [] | no_license | fabrilopez/Python | b5ae82d5f4d469b1779c4fa0d856631cb4b40fb6 | 51cd5c437647c8782e0140fae9a1f4e0d235b0da | refs/heads/master | 2020-04-10T02:08:11.102846 | 2019-03-16T21:44:06 | 2019-03-16T21:44:06 | 160,736,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | dict_dict.py | # -*- coding: utf-8 -*-
"""
Created on Sat Nov 3 20:09:53 2018
@author: Fabricio
dict_dict
We will create the user_movie_rating dictionary using an anonymous
function to demonstrate the concept of a dictionary of dictionaries.
We will fill it with data to show the effective use of a
dictionary of dicti... |
2da7cc2b5caa9e706aed3baca0d4ca737ff8bd6d | 3c995d9079bc9757a1029edf04208f312caca728 | /ReduNet-master/redunet/redunet.py | 311a96d0949f3c4cd89944adbf9a15deecaccdd5 | [] | no_license | Fusang-Wang/featureMeasure | 68ae14915233deeb4cc5a551f7d584eee352f032 | 13dd7dd40985f099425545e034bd4964fba5e49b | refs/heads/main | 2023-08-25T03:35:54.640842 | 2021-10-25T21:25:28 | 2021-10-25T21:25:28 | 395,250,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,714 | py | redunet.py | import torch
import torch.nn as nn
from loss import compute_mcr2
from .layers.redulayer import ReduLayer
class ReduNet(nn.Sequential):
# ReduNet Architecture. This class inherited from nn.Seqeuential class,
# hence can be used for stacking layers of torch.nn.Modules.
def __init__(self, *modules):
... |
08ac46a564678c06d0145255935e49815fc34607 | f61d11c65b4d20dd52c848ebe353d80a87652548 | /0131_Palindrome_Partitioning/Palindrome_Partitioning.py | f0122898a70f4b2f77ff2c47a6dcc543b8a760e3 | [] | no_license | hhebo/leetcode | ca91e995960ad69cb3d4103817ce05d3713e62dd | c86c00a6c0ebc1162533ed461845da5b36dcbda4 | refs/heads/master | 2021-01-11T19:35:00.624612 | 2019-08-29T15:21:09 | 2019-08-29T15:21:09 | 69,030,887 | 12 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | Palindrome_Partitioning.py | # -*- coding: utf-8 -*-
"""
Given a string s, partition s such that every substring of the partition is a palindrome.
Return all possible palindrome partitioning of s.
Example:
Input: "aab"
Output:
[
["aa","b"],
["a","a","b"]
]
"""
class Solution:
def partition(self, s: str) -> List[List[str]]:
r... |
bef843e4ea27ba659b5cd2f86984f0a84565f1e1 | 62fb8acf377a0ba4fbf4c4133354832d754796d3 | /scatter.py | 1d181d7872812244fea6b6f41866bb338fc43898 | [] | no_license | AlexandreKempf/vispyscatter | bc5e0ef87f6b211a4091a17056dce3bd6d72de40 | 41686864456d75296a54a2443da28ec68a6be90f | refs/heads/master | 2021-05-11T20:24:16.418931 | 2018-01-14T14:47:31 | 2018-01-14T14:47:31 | 117,438,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,259 | py | scatter.py | from vispy import gloo, app, scene
from vispy.scene import visuals
import numpy as np
def scatter(pos, mfc=[0.5,0.5,0.5,0.8], mec=None, mfs=8, mes=1, bgc=[0.9,0.9,0.9],
scaling = False, symbol = 'disc'):
""" Display a scatter plot in 2D or 3D.
Parameters
----------
pos : array
The... |
dc1d1f5f20cc1a2a2a20ce364596b5021d2cc440 | 02c5abc4e1d72aeda34e7796214c508d0b84bf3e | /submission/framework.py | 4542a544be3fd2c37f2c6bf1cffd0da3a1b73f96 | [] | no_license | deatinor/DeepFramework | e0ee3d6f5c922c7cf03154af348e6c19b0e3a417 | cd92720f049fa3ddd7fb607aa8c43152fecadf9e | refs/heads/master | 2021-04-15T18:51:23.501342 | 2018-05-18T16:51:44 | 2018-05-18T16:51:44 | 126,370,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,585 | py | framework.py | import torch
from torch import FloatTensor, LongTensor
import math
class Module():
'''General class structure from which to inherit'''
def forward(self,input):
raise NotImplemented
def backward(self,input):
raise NotImplemented
def param(self):
return []
... |
58a256b9c946c09330febc38de93b09ec20944d0 | 26b1b0d767c7a02a17d0cf3d14ee6f5d8af62ec9 | /talentmap_api/messaging/migrations/0002_auto_20171228_1800.py | 1172e733d6dfdca492f5721f7ac650ae9325a0c8 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | 18F/State-TalentMAP-API | 62673db5bfa26266ac3a70f8461ead2cc5c080cd | cf71acd2ea0957aa2d599da8e1185d8519d8b013 | refs/heads/master | 2020-09-09T19:34:28.617579 | 2018-02-16T17:30:01 | 2018-02-16T17:30:01 | 94,444,868 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | 0002_auto_20171228_1800.py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-12-28 18:00
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('user_profile', '0001_initial'),
... |
e52924d5eb354c3795bba2fb19f1dcadeae8127c | 33337444a38110e93f55a7488fd7c1e15b49431e | /blog/forms.py | bf8dc9f71b4fc229caa574522b36cee3320167a9 | [] | no_license | ILoveDjango3000/Django-Blog | 2f97418c33014e2163d901b1284a1d63dd99e58f | 9262e1b99bffd7e6a9c99988fc5e48f2dade951a | refs/heads/main | 2023-02-04T22:57:12.826277 | 2020-12-30T15:46:08 | 2020-12-30T15:46:08 | 320,520,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | forms.py | from ckeditor.widgets import CKEditorWidget
from django import forms
from blog.models import Article
class ArticleForm(forms.ModelForm):
content = forms.CharField(widget=CKEditorWidget(config_name="custom"))
class Meta:
model = Article
fields = ["title", "slug", "image", "content"]
|
927e9766201703b7a0f90d5c1f90c5c3d291e07a | d11defe483dfc42520d9f70f128b8e54d03fd67e | /lib/db_utils.py | 95bd431cf54452bbf5e24d8093278e424e98ad23 | [] | no_license | jtmhom88/SCRS_ETL1 | 317a91873f2db2540dda58424075dec7e9228b3f | fce26ecdc465aad98bba39bfccbc594209dab019 | refs/heads/master | 2020-05-16T23:08:24.369122 | 2015-03-13T15:11:22 | 2015-03-13T15:11:22 | 32,162,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,224 | py | db_utils.py | #!/usr/bin/python
#
# coding: utf-8
"""
These are database manipulation utilities.
"""
__author__ = 'jh5083@att.com (Johnny Hom) for SCRS Project'
import json
from pprint import pprint
import mysql.connector
########################################################################################
# Function returns ... |
9f64cc3a518a2c1e09e81cd5bec7f2d284a857d5 | 9f7f2ec9ae8792b206728360262e09d9b16b3ac5 | /hvo_api/model/tilt.py | 9536ef2070dbe2bc19de3da9a806d0e949208b62 | [
"LicenseRef-scancode-public-domain",
"CC0-1.0"
] | permissive | wtollett-usgs/hvo_api | 879b9bf97f0f6fdfeac0a54544859f3fa0b89610 | cdd39cb74d28a931cac4b843a71c5d8435f4620c | refs/heads/master | 2020-05-26T05:51:20.119967 | 2020-02-12T00:18:06 | 2020-02-12T00:18:06 | 188,127,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,647 | py | tilt.py | # -*- coding: utf-8 -*-
from valverest.database import db2 as db
from sqlalchemy.ext.declarative import declared_attr
_tablenames = ['BLB', 'ESC', 'HEI', 'HOK', 'IKI', 'JKA', 'KAE', 'KNP', 'KWL',
'MCC', 'MKI', 'MLO', 'MLS', 'MOK', 'MUL', 'POC', 'POO', 'POS',
'SDH', 'SLC', 'SMC', 'TST', 'U... |
f19b656cfd169677e3dca461f1ccc95144b729dc | c1497022fc4132275f87631e14e5e004a81dfb12 | /main.py | 399631f3dbc000517116ec9fa9ed00cbe5bb71f7 | [] | no_license | edwilsh/weatherwod | 76f889a3c072cd987d2264e26c885339188b9293 | 29894a24fa506b17a18739b3aad1a37a308072d0 | refs/heads/master | 2020-03-14T22:51:54.725742 | 2018-05-02T09:49:41 | 2018-05-02T09:49:41 | 131,830,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 958 | py | main.py | from bottle import Bottle, template, static_file, request, debug, error
import json
import requests
from bs4 import BeautifulSoup
app = Bottle()
@app.route('/')
def index():
location = "Search a location below to find the weather"
return template("indexForm.html", Location=location)
@app.route('/static/<... |
a15cbd922693765b30e3e9f50e0b016c6d262bf1 | 666801c9063100c6ea0818cf09decc536578195d | /script.py | 419385bd313ace6885b9b5e1919d8e142d9ca0cf | [] | no_license | pewxh/Ansible-Setup | 0aade0f781913292e0670528f8d72cf1490ed831 | bb89a3b0f72bdc921558bfbc51a525f7320a4779 | refs/heads/main | 2023-04-03T12:43:07.924144 | 2021-04-15T12:45:25 | 2021-04-15T12:45:25 | 358,197,124 | 0 | 0 | null | 2021-04-15T09:12:05 | 2021-04-15T09:12:05 | null | UTF-8 | Python | false | false | 796 | py | script.py | import os,subprocess
os.system("sudo pip3 install ansible")
os.system("sudo mkdir /etc/ansible")
os.system("sudo mv ansible.cfg /etc/ansible/")
os.system("sudo mv ip.txt /etc/ansible/ip")
operating_system = subprocess.getoutput('hostnamectl').split('\n')[6].split(':')[1]
#print(operating_system)
if 'Redhat' in opera... |
a83f41b7283e08f66cef62da5378fadaedcefc4c | 47e86e60f6239e0f8bf42aeecd8c8a0e8ac50578 | /izi_pos_card/models/stock_production_lot.py | 884ecefc95228c0e9708662206877d3cba349fb4 | [] | no_license | HoangDinhHoi/DATN | 0a8d12c031253c7fe21321c4cf493ead3f71ca56 | 09157d6c79a779a701fc01727db8dcd04323dc1d | refs/heads/master | 2020-09-14T02:28:29.528907 | 2020-01-14T07:55:17 | 2020-01-14T07:55:17 | 222,985,616 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,492 | py | stock_production_lot.py | # -*- coding: utf-8 -*-
from odoo import models, fields, api
from odoo.exceptions import UserError, except_orm, MissingError, ValidationError
from datetime import datetime, timedelta, date
class StockProductLot(models.Model):
_inherit = 'stock.production.lot'
# tính toán số tiền của PMH
def _compute_amo... |
b82cd20d606fe102fd2174b5a5a831ff5ccd326a | 9b4dd6718a2301cbc30b9bd3c4022266bff4b78c | /BaekJoon/브루트 포스/1018.py | 8f0f69db7bea0f47cf84cb3e2eab02cec5d49b5d | [] | no_license | Green0v0/TIL | 02e7a66122161dbab6a6ecdd1bc21576d83560ef | ccea9c214457dd1956fc2b9b368c0fa3920131eb | refs/heads/master | 2023-07-05T16:00:47.938772 | 2021-08-27T12:40:52 | 2021-08-27T12:40:52 | 366,635,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | 1018.py | import sys
M, N = map(int,sys.stdin.readline().split())
plate = []
for i in range(M):
a = list(sys.stdin.readline().rstrip())
plate.append(a)
# print(M,N)
# print(plate)
# for i in range(M):
# print(plate[i])
# 기본 체스판 비교모델 2개 생성
def chess(color):
list_1 = [color]
for i in range(1,8):
if lis... |
a90b7e44cc54d4f96a13e5e6e2d15b632d3c4983 | 92bb99a4874049e11437b7742f6b09f41d1f75b7 | /testone.py | 4289a41daa8e68b33cc0a7d4a46971547a15cd8c | [] | no_license | FZQA/steem-test | 48c07a6e3ff7863e0fd91e208a7857468d64d3af | 4f6ad8dfe229932ca668930c511cc53b1ad8c4e5 | refs/heads/master | 2020-08-22T19:56:03.127029 | 2019-10-25T06:48:19 | 2019-10-25T06:48:19 | 216,468,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,777 | py | testone.py | import random
import string
import steembase
import struct
import steem
from time import sleep
from time import time
from steem.transactionbuilder import TransactionBuilder
from steembase import operations
from steembase.transactions import SignedTransaction
from resultthread import MyThread
from charm.toolbox.pairingg... |
ee80169afd4741854eff8619822a857bbf757575 | 823b0b73935b3de8d2a62015b5c358715591cdbe | /numerical_functions/tests/numba_funcs/indexing_tests.py | 3a6e4d8829c13c5040bcd3307ebbc33e51f807b5 | [] | no_license | jsphon/NumericalFunctions | 05699430759360682238851f984163e1d347ae77 | 85571adb074e9c395b77eccf5107841db69bd594 | refs/heads/master | 2021-01-22T06:29:12.247319 | 2019-02-14T21:18:39 | 2019-02-14T21:18:39 | 33,000,754 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,427 | py | indexing_tests.py | '''
Created on 27 Mar 2015
@author: Jon
'''
import matplotlib.pyplot as plt
from numerical_functions import Timer
import numerical_functions.numba_funcs.indexing as indexing
import numpy as np
import unittest
class Test(unittest.TestCase):
def test_take(self):
x = np.linspace( 0, 100 )
... |
ce6dba2f682b091249f3bbf362bead4b95fee1f4 | a3e09d68b73f3090c240920073bf285ce1ee0238 | /jotting/__init__.py | 116bf1a06ea0407f3f3af49ae87d35066bde0075 | [
"MIT"
] | permissive | rmorshea/jotting | 8750fc044c898c96e25b6acda4eadd0f57726cee | bad834f6bec1af049cabd1a4dc10504ea849de03 | refs/heads/master | 2021-09-20T08:28:23.465095 | 2018-03-04T02:06:30 | 2018-03-04T02:06:30 | 109,722,665 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | __init__.py | """
.. currentmodule:: jotting
.. automodule:: jotting.book
:members:
.. automodule:: jotting.to
:members:
.. automodule:: jotting.read
:members:
.. automodule:: jotting.style
:members:
"""
from .book import book
from . import style, to, read, dist
|
99c839eddcbe985c81e709878d03c59e3be3c909 | 6f4fc0d02adb748bbd03e61ef8d77d305c9740ec | /location/location_dbscan.py | be48a575e8413a809067d26df2adb15e6f69b384 | [] | no_license | goldsmith777/smartAgent | 65f9091bd413bfd4773674e7220005a1dbb4bd85 | bde431b1dd89561fa312509979bc746784b39855 | refs/heads/master | 2021-01-10T10:51:31.736460 | 2015-12-14T07:29:12 | 2015-12-14T07:29:12 | 47,609,635 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,345 | py | location_dbscan.py | #coding=utf-8
#########################################
# dbscan:
# 用法说明:读取文件
# 生成路径文件及簇文件,输出分类准确率
#########################################
from matplotlib.pyplot import *
import matplotlib.pyplot as plt
from collections import defaultdict
import random
from math import *
import numpy
import datetime
... |
bf8bbeb408cb75af314ef9f3907456036e731c0b | 9aa05691e4abdf6fd89d322ee9558185e6d16aa7 | /avature3.py | bb32ccdf5431abedbee835d9fccb41a30434a5b9 | [] | no_license | gastonmichel/codility | cdd87785c4e28814ce867870d4dc59eefceece9e | 8a649889722f36a37f461bf2c46d7e4afc60bdee | refs/heads/master | 2022-04-02T21:55:01.641478 | 2020-02-17T13:29:11 | 2020-02-17T13:29:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | avature3.py | def solution(S):
# write your code in Python 3.6
# Definitions
log_sep = ','
num_sep = '-'
time_sep = ':'
# Initialization
from collections import defaultdict
# defaultdict initialize missing key to default value -> 0
bill = defaultdict(int)
total = defaultdict(int)
calls = S... |
35ae9c86594b50bbe4a67d2cc6b20efc6f6fdc64 | 5039e4e30dbb477b6f1c7bf78cf7e721d4a31030 | /gulishop/db_tools/import_category.py | 82a89e49080b4527ecda8e388516048f240927a7 | [] | no_license | LiangPier-haha/django | f06ae1abb7e0bb9828ca8148da5d9151a83caf58 | efc912155fcedf05beb640eb382876d80eab1aa0 | refs/heads/master | 2020-04-23T00:32:43.197429 | 2019-03-24T03:42:50 | 2019-03-24T03:42:50 | 170,783,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,404 | py | import_category.py | #配置我们文件所在目录的搜寻环境
import os,sys
#第一步先拿到当前文件的路径
file_path = os.path.abspath(__file__)
#第二步 根据这个路径去拿到这个文件所在目录的路径
dir_path = os.path.dirname(file_path)
#第三步:讲这个目录的路径添加到我们的搜寻环境当中
sys.path.append(dir_path)
#第四步,动态设置我们的setting文件
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "gulishop.settings")
#第五步,让设置好的环境初始化生效
... |
d34159536e860719094a36cfc30ffb5fcae72a9a | f513705a74ea0855ce3b793d0937adbcf19d7300 | /Calling a JSON API.py | c4c1786de263eb3cb859a92633c4663bc225d96e | [] | no_license | mitul3737/Using-Python-to-Access-Web-Data | 2c91846d5aec6d8bbbba33ab3af0ec84fe6146ee | dd5c480b135976665c4141a5f823f4d5a438dd19 | refs/heads/master | 2022-09-29T10:22:20.454083 | 2020-06-06T21:49:19 | 2020-06-06T21:49:19 | 270,035,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,843 | py | Calling a JSON API.py | #API End Points by Mitul
import urllib.error, urllib.request, urllib.parse
import json
target = 'http://py4e-data.dr-chuck.net/json?'
local = input('Enter location: ')
url = target + urllib.parse.urlencode({'address': local, 'key' : 42})
print('Retriving', url)
data = urllib.request.urlopen(url).read()
print('Retrive... |
c382b298cce8d7045d6ce8a84f90b3800dba7717 | e011bbf5758f039194143fae1fb93a89d7615f09 | /products/migrations/0004_auto_20200615_1226.py | 40198bd2b1ed1d32db3555d369a318cd03e0f325 | [] | no_license | felixcouto/EmpoioMoendasGerais | b5cd43f3a2a2f40a34df1652960051fddbd07f58 | 736a71c54cc52beae6c7f014e493aae67304d181 | refs/heads/master | 2022-10-23T10:28:47.041546 | 2020-06-18T14:30:29 | 2020-06-18T14:30:29 | 271,258,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | 0004_auto_20200615_1226.py | # Generated by Django 3.0.7 on 2020-06-15 15:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0003_auto_20200615_1225'),
]
operations = [
migrations.AlterField(
model_name='product',
name='harmoniza... |
3372d98ff91d90558a87293d4032820b1662d60b | 151b69443fd8bcb71e4ca043f363fc82c218fe25 | /urls.py | c70eaab5847c3caca360c4f1d6a471981e1f3370 | [] | no_license | nsilver7/risk-dashboard | 14eac6b65442b3561dd4c23bc57336b0543d2d09 | 0e350cb34c5502fe846f7543fda38bffe9ca33ab | refs/heads/master | 2020-04-21T09:00:19.630646 | 2019-02-06T17:12:53 | 2019-02-06T17:12:53 | 169,435,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | urls.py | from django.conf.urls import patterns, url
from riskDashboard2 import views
urlpatterns = patterns('',
#url(r'getdata', views.vulnData, name='getdata'),
url(r'appmanagement', views.appmanagement, name='appmanagement'),
url(r'^.*', views.index, name='index'),
)
|
0465e33d65c2ce47ebffeec38db6908826bf4934 | aaf084d20f9d285a5aec1e91f5d0e55025b5ecdf | /ex29.py | c3cd32b0b60d8f24ee2e467baa8f188c35faf323 | [] | no_license | Timzhouyes/LearnPythonTheHardWay | 19d320f767d1a590c0a5223939a4f3300debbb47 | 694eda8d68fd35441682b33fa2cc1b40fbaedd61 | refs/heads/master | 2020-06-22T20:49:22.093214 | 2019-07-26T00:23:03 | 2019-07-26T00:23:03 | 198,396,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | ex29.py | people = 20
cats = 30
dogs = 15
if people < cats:
print("Too many cats")
elif people > cats:
print("Not many cats")
else:
print("we cannnot decide") |
167e3085a93cd08b18ba20228a35b6569578d138 | 8a2a626536a5c8c323c749f8df39121ac15230e0 | /3. simple maths.py | 312604493e58724ef150f712b87d7ed95ed18b9b | [
"MIT"
] | permissive | ananyade/Python-3-basics-series | a248fdf8182bb9d93c38def7890d310968b978d9 | 10c1e2e7c8eddaa8781b8778ba9b9e6555c44e55 | refs/heads/master | 2022-04-03T21:46:56.805273 | 2020-02-10T06:22:18 | 2020-02-10T06:22:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | 3. simple maths.py | a=1+3
print(a)
4*4
5-2
5/2
#exponents
b=4**4
print(b)
4.5*2
#Integers whole numbers
|
b98ee85ffb16269ef7f23bac51bc9208d099cb4f | 7216b0dd13ccc5261477193f702568d6f54b6086 | /sample/__init__.py | 2d3e3ef822fcc50ea22e48f3c3e7baaf1b206e60 | [
"MIT"
] | permissive | vmgustavo/sample | 67a3300ff846e183b22be6b695bfe446c7f40cbd | 2bb90f7aef74189efd2a34a0b8f41e4bf3a9c102 | refs/heads/main | 2023-01-25T05:38:34.949283 | 2020-12-11T00:08:29 | 2020-12-11T00:09:35 | 320,403,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | __init__.py | """Base leval of the sample module"""
from .example import function
|
c66d072fa7dbb404c9bbd2137bfda16b024ca755 | 10a0fbb3bf3b04e2b5ec6e36937e5bc3a8f8aefc | /cam.py | 7e2cb7c6378a80e09cdd8387f393ca6e72687bb3 | [] | no_license | soharabhossain/Raspberry-Pi | b2bbd8eef49528c112dc15313105c770c428970e | 4bb5a63c538a37d1dfbd896581cb2f5e98ab906d | refs/heads/main | 2023-06-02T18:42:25.278114 | 2021-06-24T06:47:37 | 2021-06-24T06:47:37 | 368,419,937 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | cam.py | import cv2
cap = cv2.VideoCapture(0)
# Define the codec and create VideoWriter object
fourcc = cv2.VideoWriter_fourcc(*'XVID')
out = cv2.VideoWriter('output.avi', fourcc, 20.0, (640, 480))
n_frames = 200
while n_frames > 0:
ret, frame = cap.read()
if ret == True:
# write the flipped frame
... |
75110052845926d6d3380be503d61cf5a21a9bb8 | 2a76e1899a814a2aa9bae18cc9bb9cc73372bba9 | /testing/icgen/iconstrain_tests_old/iconstrain_test4.py | 4e1ae016a73f484685488729d88e9c607c37a1d1 | [
"Apache-2.0"
] | permissive | egpbos/egp | 588ab3d18eef2e9bdae60c571dd602924bab6932 | 5e82c2de9e6884795b4ee89f2b15ed5dde70388f | refs/heads/master | 2020-04-25T10:45:57.675997 | 2020-01-27T15:54:14 | 2020-01-27T15:54:14 | 172,720,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,436 | py | iconstrain_test4.py | #!/usr/bin/env python
# encoding: utf-8
from iconstrain2 import *
from egp.basic_types import Field
from egp.icgen import Cosmology, CosmoPowerSpectrum, GaussianRandomField, DensityField
from csv import reader as csvreader
import egp.io as io
test_id = "4"
run_name = "run%i" % (100+int(test_id)) # plus 100 to separa... |
67e57debf742069a93466fb255b0c2e15c129cf2 | cb47ac0a85771693181309b0ec0732226b22ced4 | /services/state_service.py | b26d193552bed0847e207b49d443e54f7b227a1c | [
"MIT"
] | permissive | kaluginadaria/yatt | 52d31065a929c89a1cfd3d997daa9ea60062a899 | dddb72af28a5dca970be4eacaecf00f7f8530b66 | refs/heads/master | 2021-08-23T17:19:05.266840 | 2017-12-04T20:22:02 | 2017-12-04T20:22:02 | 112,112,995 | 0 | 0 | null | 2017-11-26T20:09:11 | 2017-11-26T20:09:10 | null | UTF-8 | Python | false | false | 4,466 | py | state_service.py | """
Created by anthony on 12.11.17
state_service
"""
from components.automata import CONTEXT_TASK, CONTEXT_COMMANDS
from services import user_service, task_service
from config.state_config import State
import datetime
from telegram import InlineKeyboardButton, InlineKeyboardMarkup
import logging
from utils import hand... |
c40c30ac5c76419e22552f8ecf177914c11530bd | aac622c87cb6ce0609acc4ab1adcfcad742b5d7f | /LeetCode/110 Balanced Binary Tree.py | 2ace6a4101030b1bdb44496d416f8d1bacb15f10 | [] | no_license | tobygameac/Problem-Solving | c9227cfdd9cedfab346bbc16c92994cb4864330e | 19814533043b8e745d62e315e2c20444ddaca746 | refs/heads/master | 2021-03-24T10:09:54.950433 | 2020-04-11T09:49:03 | 2020-04-11T09:49:03 | 38,191,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | 110 Balanced Binary Tree.py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
balanced = True
# @param {TreeNode} root
# @return {boolean}
def isBalanced(self, root):
self.balanced = True
self.trav... |
607936591356851655326528c1bb9a5e5eafc616 | 0b9e884be78ecc22a44a94e2c1cabefd637b9ed0 | /Python_Talk/mpt-master/ch15/bitcoin_watch.py | 0bd6635cc3ee6486c15471322579c9c22f1603b8 | [] | no_license | marcovnyc/penguin-code | 6ba3faa5f21186918e2d08f5a0fcacebb2697e56 | a0c1f91219ff74a8bb8e9fd3375b03b667056b54 | refs/heads/master | 2021-12-22T15:04:26.002512 | 2021-12-16T04:01:40 | 2021-12-16T04:01:40 | 7,264,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,130 | py | bitcoin_watch.py | import tkinter as tk
import requests
import arrow
from mptpkg import print_say
# Specify the url to find the bitcoin price
url = 'https://api.coindesk.com/v1/bpi/currentprice.json'
# Create a root window hold all widgets
root = tk.Tk()
# Specify the title and size of the root window
root.title("Bitcoin W... |
545197c4f216a5e90f54bd7d4ea07592c212444f | 49c26a52ca02fe7ccd3c2b2edb93ca0d79e21e10 | /myhvac_service/wsgi/base.py | eef8c0bd41ff4f3425028307081c7ccfa6743dd7 | [
"Apache-2.0"
] | permissive | alanquillin/myhvac_service | 99d16fd063586e1bbce06354245217e8485bcc9c | 59b977faf90ac915eda46d20756f95387fdeff4f | refs/heads/master | 2021-01-17T15:24:40.422732 | 2016-10-13T15:42:22 | 2016-10-13T16:11:13 | 50,310,039 | 0 | 0 | null | 2016-09-27T22:04:59 | 2016-01-24T21:51:14 | Python | UTF-8 | Python | false | false | 1,607 | py | base.py | from myhvac_service import db
from flask_restful import Resource
import logging
LOG = logging.getLogger(__name__)
class BaseResource(Resource):
@staticmethod
def sessionize(func, *args, **kwargs):
session = db.Session()
ret = None
try:
ret = func(session, *args, **kwargs)... |
03615b67889d08c123374eb9d7f0ef5f38fa04b4 | c8a5daf015922a64866444bbe15443b97f313b86 | /watchlist_app/views.py | 2caf273a9b9fa6c05029f7de8878eb36fa0f3de5 | [] | no_license | jinhgoh/django-with-react | 2725b7e421324d19fe44964163bac242c9df4cf2 | 84d4130431a648eeed9d1741444287a914d9024a | refs/heads/master | 2023-07-02T03:32:07.043470 | 2021-07-28T15:05:55 | 2021-07-28T15:05:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,432 | py | views.py | from django.shortcuts import render
from .models import Movie, Titanic
from .serializers import MovieSerializer, PostSerializer, TitanicSerializer
from django.http import JsonResponse
from rest_framework import generics, status
from rest_framework.views import APIView
from rest_framework.parsers import FileUploadParse... |
db112cee057f4761fbf2aaaba5bed4d5d970663c | 60f95eff7c43f788af2420813c371152c1e2e5eb | /hulk/broker/oanda/order.py | 2df0d02647e4c48d11322b4181092d4418958533 | [
"BSD-3-Clause"
] | permissive | webclinic017/hulk | 1667c508acb061a8120dc415978a72e83dc38f54 | de326ca1554dc743e225cef4e4b1e2fd4f5090c6 | refs/heads/master | 2022-03-22T20:07:23.276317 | 2019-12-02T01:10:43 | 2019-12-02T01:11:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,473 | py | order.py | import logging
from decimal import Decimal
from falcon.base.order import (lots_to_units, OrderSide, OrderType, OrderPositionFill, TimeInForce,
OrderTriggerCondition, OrderState)
from falcon.base.price import pip
from v20.transaction import (StopLossDetails, ClientExtensions, TakeProfitDe... |
67819bc44a2a684eadb8c69ed5e5ab0e2ea736ba | 2444657b821eca6032f90c68bdb497f2ae183272 | /dataProc/findEField.py | ceb514eb86ef1b51dae3e02415f6f13c3d77d7fd | [] | no_license | BrantCarlson/CAERENet | 96da4ffc89ac6787c761f81e8410de7225d5aba1 | 3eaceba1c91553e60d541c220bc6666224f4ed65 | refs/heads/master | 2021-01-10T19:00:53.242910 | 2015-08-03T21:08:52 | 2015-08-03T21:08:52 | 20,375,744 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,799 | py | findEField.py | import dataProc_cal as dp
import pandas as pd
import os
import scipy.optimize as op
from scipy.interpolate import interp1d
import scipy.signal as signal
def extractAmplitude(d,a1,a2,phi):
"""
find the amplitude of a signal by finding peaks in waveforms and by taking the variance.
"""
n = len(d.index)
... |
5689a9a7a1b3b9030a281aae4d1f42438cd255fd | 02c1320b13557a8ee9a040773998b730807f0044 | /config.py | 488fdbf6161be6003ba6aed153c486c7cfa92dad | [] | no_license | robinvanleeuwen/kraken-websocket2db | 504ff717aeac13c8c4cbaf9586de2e9dbb70b6e9 | c799824b13759c43b7355fb2f95e0a4ec702e9e7 | refs/heads/master | 2020-08-22T04:50:20.483621 | 2019-10-27T09:02:52 | 2019-10-27T09:02:52 | 216,321,288 | 1 | 2 | null | 2019-10-20T07:25:14 | 2019-10-20T07:03:05 | Python | UTF-8 | Python | false | false | 2,129 | py | config.py | import sys
import os
import json
from pathlib import Path
from uuid import uuid4
from dateutil import tz
from log import log
PAIRS_TO_WATCH = ["XBT/EUR", "XLM/EUR", "ETH/EUR", "XRP/EUR"]
API_KEYS = {
"trade": uuid4(),
"book": uuid4(),
"book-10": uuid4(),
}
TZ_UTC = tz.gettz('UTC')
TZ_AMS = tz.gettz('Eu... |
1ea236eb785a5c3eb75613090bae92d409a0cb89 | 0cd9a49999b6d02b87f0aab8e0755e0c30336bc4 | /src/webcam_interface.py | 05939d5147db76601e28462bbe2955669f6e81be | [
"MIT"
] | permissive | DavidSpielman/Webcam-Midi-Controller | eb16d02da239fd2e5755ac62a241872fa57ee269 | c97f39193b152aa2f5b3d9a1b0cd03d8d79bf2fc | refs/heads/main | 2023-07-05T16:07:00.162730 | 2021-08-28T20:29:45 | 2021-08-28T20:29:45 | 392,829,363 | 0 | 0 | MIT | 2021-08-28T20:29:46 | 2021-08-04T21:31:54 | Python | UTF-8 | Python | false | false | 6,023 | py | webcam_interface.py | import cv2 as cv
import rospy
from std_msgs.msg import Int16
global ret, frame, flip_frame, boundingBox, interval
# 0 for built in webcam, 2 for external webcam
cap = cv.VideoCapture(2, cv.CAP_V4L2) # This added VideoCapture API allows camera fps to be changed from initial 5fps
cap.set(cv.CAP_PROP_FRAME_WIDTH, 1280) ... |
3f8a389cdd5abb2945d9941f5afb6ade5a009119 | 63efb13760eabfc09c288d29264adfff0da6622a | /LeetCode/724_find_pivot_index.py | 3e1c5e4cd1c32d16b167485d8a6b78a515518155 | [] | no_license | KKosukeee/CodingQuestions | 59f0002ace13ebbe3a4a36976277bcb0d3766dbd | 01fe893ba2e37c9bda79e3081c556698f0b6d2f0 | refs/heads/master | 2020-05-16T04:22:31.578974 | 2020-03-30T00:27:51 | 2020-03-30T00:27:51 | 182,775,403 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,463 | py | 724_find_pivot_index.py | """
Solution for 724. Find Pivot Index
https://leetcode.com/problems/find-pivot-index/
"""
class Solution(object):
"""
Runtime: 124 ms, faster than 91.29% of Python online submissions for Find Pivot Index.
Memory Usage: 12.5 MB, less than 80.00% of Python online submissions for Find Pivot Index.
"""
... |
483432a0339714352a6cae7f6c24877d78a31418 | c77666cf1006573d787da5686d6c35ce47795e98 | /txt.py | 5d4079a2857a4b0ad8d6241f442ffa3d7b2edf9f | [] | no_license | ayushigarg097/software-internship-task | 895e7474092293d795c0f83e8815d4efa4b31983 | 563794893757a2129cdd244bef16c3d30c943f51 | refs/heads/master | 2020-03-17T20:43:59.648644 | 2018-05-18T08:33:44 | 2018-05-18T08:33:44 | 133,926,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | txt.py | import numpy as np
f=open("input.txt",'r')
p=f.read()
t=p.split('\n')#split the input data for \n
maximuminjury=1000000 #given maximum injury
maximumlife=2000 #given maximum life
n=int(t[0]) #number of monkeys to fight available
t.pop(0) #list of n numbers, each specifying the damage that can be dealt by the monkey
... |
cd961aaed7129b18c6887aea8e28859df57ef9df | a766ee23c2243f850ebdb83a69d0fb8a5359c07d | /Spring 2020/算法设计与分析/join.py | b8c4e4dc0b0b9bc16c62851359631f661aa99e9e | [
"MIT"
] | permissive | jasha64/jasha64 | 24e127e57dd8852e5a006ba98be6c17312733597 | 653881f0f79075a628f98857e77eac27aef1919d | refs/heads/master | 2021-06-23T08:34:27.220649 | 2021-06-20T06:05:50 | 2021-06-20T06:05:50 | 218,268,953 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | join.py | STITCH_LIST = [
'fixed_long_0_60.fasta',
'fixed_long_60_125.fasta',
'fixed_long_125_185.fasta',
'fixed_long_185_250.fasta',
'fixed_long_250_310.fasta',
'fixed_long_310_375.fasta',
'fixed_long_375_435.fasta',
'fixed_long_435_500.fasta'
]
STITCH_RESULT = 'fixed_long.fasta'
# STITCH_LIST ... |
6080245fb4cab09864b5ab32c3688b1130a148bc | 1efd4f25a6722f796b4ee4bf5fd6fcc8c994f2ca | /core/models.py | 72d3aa217e5a6c58003713920ca4a53a0ec2a0a6 | [] | no_license | melvinportillo/Sistema1 | 0b6728d226413a5e683f50d7af4ef247442b8d5d | 675d6afb6973a69af5d15e59c94f88c99ed213fe | refs/heads/main | 2023-08-20T00:27:11.114574 | 2021-10-20T13:41:33 | 2021-10-20T13:41:33 | 419,184,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | models.py | from django.db import models
# Create your models here.
class Libro_Diario(models.Model):
Usuario = models.CharField(max_length=50)
Fecha = models.DateField()
Descripcion = models.CharField(max_length=100)
Debe = models.CharField(max_length=150)
Haber = models.CharField(max_length=150)
Cuadre =... |
b9573085ecca155c64fcadffb280f1c477fd104b | 4fddebf5c76cfe938a356019fe08041e52699684 | /drafts/model1_sensivity.py | 2d7041960870a41d14e2799fd733c255c1e2c5fc | [] | no_license | bastienreyne/cecidomyie | 83b90cd43d6b233678255f6935b7b91f9e80082c | d32cf37e06926def4850c620601950a38114ce2a | refs/heads/master | 2020-05-04T22:13:22.932630 | 2019-11-27T09:29:12 | 2019-11-27T09:29:12 | 179,503,920 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | model1_sensivity.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Apr 3 15:48:46 2019
@author: bastien
"""
import numpy as np
import model1_calibration as mod1
from SALib.sample import saltelli
from SALib.analyze import sobol
problem = {'num_vars' : 5,
'names' : ['gamma', 'pm', 'muer', 'mueh', 'k'],
... |
6806d621dead9369f515375ae3dbbc982ea14e15 | 38f7f1544db157f3555f1ab4d962d65e9f20ebd6 | /calculator.py | 138a1b65bb745e5b163e509c74d83f6d9c3d32a3 | [] | no_license | Mathihs/Project0 | a0c2d02154f8b85e2934241258a507c75c0618ae | 52118441efbb991af445bf68e5ef1b815b7f2fb8 | refs/heads/master | 2022-12-07T01:13:01.398989 | 2020-08-30T18:34:49 | 2020-08-30T18:34:49 | 290,571,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | calculator.py | import math
def add(x,y):
return x + y
def factorial(x):
ans = 1
for i in range(1,x+1):
ans *= i
print(f"My implementation: {ans} | Built in: {math.factorial(x)}")
return ans
def sin(x,N):
ans = 0
for n in range(N+1):
ans += ((-1)**n*x**(2*n+1))/factorial(2*n+1)
retur... |
1ce41923e4b9bd8503abf2d62edafa786c682cf2 | 577adf1ad6ace9361873a3fb783db5dce880c1c6 | /web/utils/login.py | 8a0e470e65d2d54d94898150c8b6bcf91033eb97 | [
"Apache-2.0"
] | permissive | EnderQIU/HackDayDemo | c2888743705c80e95bc9cf8b461a8934d44e7af0 | 26cc4b3250b1de9f09da13607723cd37d53c7492 | refs/heads/master | 2021-07-14T21:17:53.844209 | 2017-10-22T00:26:04 | 2017-10-22T00:26:04 | 107,765,143 | 0 | 0 | null | 2017-10-21T08:46:13 | 2017-10-21T08:46:12 | null | UTF-8 | Python | false | false | 1,725 | py | login.py | #/usr/bin/python
# -*- coding: utf-8 -*-
USER_AGENT = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/61.0.3163.100 Chrome/61.0.3163.100 Safari/537.36"
HEADERS = {"User-Agent": USER_AGENT}
from selenium import webdriver
from selenium.common.exceptions import *
from selenium.web... |
b6f21a8465606a19c97df0f12fe0f46d1fa8e681 | e750ada8f6e0a364ab50c945ae246a773e07b7bb | /setup.py | fe387ebff51999b651a6fdd89729ef249691c035 | [] | no_license | XertroV/xertrov_system_config | a816086f4c11b735b86440e2c5c83c6dc8ff05ad | c65cadf69cc6bd2b347ae141c5674fff9fc7c652 | refs/heads/master | 2021-01-21T12:39:42.376957 | 2014-06-22T00:16:54 | 2014-06-22T00:16:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,730 | py | setup.py | #!/usr/bin/python3
import os
import stat
import shutil
import argparse
BASHRC = os.path.expanduser("~/.bashrc")
XERTROVRC = os.path.expanduser("~/.xertrovrc")
BASH_LOGOUT = os.path.expanduser("~/.bash_logout")
DEFAULT_XERTROVRC = 'default_xertrovrc'
XERTROV_LOGOUT = os.path.expanduser("~/.xertrov_logout")
DEFAULT_LOG... |
85b7f305d461f0d110d397d7147797970e91b305 | 0d8d44ac54e0a3264640559ccefbdc136ca7eee3 | /sentiment/classifier/svm.py | 4310556400e1e0d3e990e21c6ed0d89cc1499517 | [] | no_license | jaeyeun97/sentiment | 91ef729477caa7d840f5f44379dccfb458cb60d3 | 0352f848a2104237f627862b712a8cfc529e50ad | refs/heads/master | 2020-04-05T16:57:58.397438 | 2018-11-14T14:21:51 | 2018-11-14T14:21:51 | 157,037,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py | svm.py | import numpy as np
from sklearn.svm import SVC
from sklearn.feature_extraction import DictVectorizer
from ..util import Sentiments
class SVM(object):
def __init__(self, trainingSet):
self.trainingSet = trainingSet
self.rlookup = dict()
X_data = list()
y_data = list()
featur... |
55c867826a7f87ba00494670862e915bfab8d893 | a63e131a1f776273908380b4dc8fa4b1f03b1264 | /slib/engine.py | 19ddd623f02efc42d7f036c1842269878b7d61d2 | [] | no_license | mdevaev/slib | 80b0752cf3d3b9cd0bbd327d4947a7c673b05ba0 | 7e7a9a2850355911697c81d6864e31d54fea788d | refs/heads/master | 2016-09-09T21:13:36.032143 | 2013-11-02T00:46:00 | 2013-11-02T00:46:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,467 | py | engine.py | # -*- coding: utf-8 -*-
import sys
import os
import cgi
import httplib
import ulib.tools.types
import page
import widgets
import widgetlib
import logger
import validators.system
from ulib.validatorlib import ValidatorError
##### Public constants #####
DEFAULT_PAGE = None
PAGES_DIR = "pages"
CSS_DIR = "style"
JS_D... |
7bd4cc700e00010e52e1712784a423383d3c16f3 | 922a9e2503fc809e4abf80cde4787a5567a5b591 | /test_duplicated_tweet.py | 3058fe2e294602599623a01fd312756c375e82d6 | [] | no_license | diem-ai/tweet-and-product-marketing | 54e20b20c62cc39a99a0f35a79cfe833838d4c59 | a28f0c7784d94a8657e4ede8049c8846c7960303 | refs/heads/main | 2023-01-07T03:13:06.238010 | 2020-11-05T10:30:20 | 2020-11-05T10:30:20 | 300,564,670 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | test_duplicated_tweet.py | from database.db_access import DatabaseManager as db
if __name__ == "__main__":
tweet_id = "1304045426715299846"
print(db.getInstance().get_tweet_by_id(tweet_id) == None)
print(db.getInstance().get_tweet_by_id('id') == None) |
90b9d9a5919db465561c8a432a16c9bf981bba1d | 33218ae82bbe55ddf3f25602c3c830ddb42ca8f9 | /pacoh_nn/modules/prior_posterior.py | a38187a8063f7fd2ef0ae39c628f18841dd9486d | [] | no_license | APicardWeibel/pacoh_nn | ad00fc84540d663fe4918c8d2fb474743644a0fd | 74c4c03dd7bd7aea3d3ad38fe8971689527a34e4 | refs/heads/main | 2023-05-14T11:09:08.281584 | 2021-06-01T08:48:00 | 2021-06-01T08:48:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,618 | py | prior_posterior.py | import tensorflow as tf
import tensorflow_probability as tfp
from tensorflow_probability import distributions as tfd
#from pacoh_old.modules.batched_module import TFModuleBatched
from pacoh_nn.modules import TFModuleBatched
class GaussianPriorPerVariable(tf.keras.Model):
def __init__(self, models_for_init, add_... |
5d8a55e9e226482e808509d8f45b466e24ecb983 | 30124616a93154faa0dc3592f182bdf3e78726cd | /src/extract_transform.py | a94dce80634e75272f343408368451c4b0deb1ba | [] | no_license | djcim402/movie-review-etl | b4b877801229bc72c8e0ddc7975401f3c9e3f0a1 | 7cff3bcfa4453ab18e0d21f2da109d12b2cca575 | refs/heads/master | 2020-08-22T20:00:47.344654 | 2019-10-15T05:45:14 | 2019-10-15T05:45:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,306 | py | extract_transform.py | #!/usr/bin/env python
import pyarrow as pa
import pyarrow.parquet as pq
import pandas as pd
dataset = pq.ParquetDataset('../input/amazon_pq/product_category=Video_DVD')
table = dataset.read()
df = table.to_pandas()
print(df.count())
# Dataset contains information from US and French markets, limit it to US
us_df = d... |
e001034004620f0ee71895151d809820298cb902 | 809a0bd09f2e589c637b91fd32521f685cd47bb3 | /subup.py | 1953f71bb63084ba677ee0d062344b64d0da07f7 | [] | no_license | 0xAbdullah/SubUP | a01d26865ed2550246687dd74766fe4b4ad052b8 | 4445e3c887d50587f8f1e04fa2d5dcba5d46940e | refs/heads/master | 2020-11-27T15:47:30.708367 | 2019-12-23T00:51:51 | 2019-12-23T00:51:51 | 229,517,526 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,807 | py | subup.py | import requests #pip install requests
import socket, argparse, sys
import prettytable #pip install prettytable
#Coded by: Abdullah AlZahrani
print('''
_____ _ _ _ ______
/ ___| | | | | | || ___ \\
\ `--. _ _ | |__ | | | || |_/ /
`--. \| | | || '_ \ | | | || __/
/\__/ /| |_| || |_) ||... |
72518cbbd88f0b71db6e113b95623a1c3ea10da1 | de306933f1e34da0790a1a45e487ca23cb2270a5 | /python/examples/functions/kw.py | a4782808816966fc3a48a3666db3f5c2dc42c82e | [] | no_license | storasvyras/slides | 7e2bb3a77c6a097ba086ca853d10c9e96b0ce500 | 1ae7eeb9da153bd2260a4bf1a30c2898b5b68f40 | refs/heads/main | 2020-09-05T09:25:38.913204 | 2019-11-06T13:19:14 | 2019-11-06T13:19:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | kw.py | def f(op, *things, **kw):
print(op)
print(things)
print(kw)
f(2, 3, 4, a = 23, b = 12)
# 2
# (3, 4)
# {'a': 23, 'b': 12}
|
45d4ff4e501d6609d430668b1d8e8084c7859a0c | caac262b6e760db0e3f8717221d889d58e2255c0 | /analysis_engine/yahoo/extract_df_from_redis.py | f57b46b71df03ac152e3c262e9ca7b40ca74a530 | [
"Apache-2.0"
] | permissive | phanirajl/stock-analysis-engine | 2172ebf0d64181d003920622786abe4f1dcc2803 | f6a3cb8efab4a4afc13081e73b20138a315a235c | refs/heads/master | 2020-04-17T19:55:55.843041 | 2019-01-21T16:44:36 | 2019-01-21T16:49:04 | 166,884,659 | 1 | 0 | null | 2019-01-21T21:40:45 | 2019-01-21T21:40:45 | null | UTF-8 | Python | false | false | 17,936 | py | extract_df_from_redis.py | """
Extract an Yahoo dataset from Redis (S3 support coming soon) and
load it into a ``pandas.DataFrame``
Supported environment variables:
::
# verbose logging in this module
export DEBUG_EXTRACT=1
# verbose logging for just Redis operations in this module
export DEBUG_REDIS_EXTRACT=1
# verbose ... |
11b2810eaa1bd07afc96ce07679cefebd773ac06 | 587eef6086c2872e628aaefab12cccd266705b22 | /Cancer Classification/Cancer Clasification.py | e6b43ce8b786678ea0d38d17e8799ad962a30c21 | [] | no_license | KosinskiJ/Machine-learning | 79f9906b5713ff91dc7bf2c94eee0c6781be0fc0 | 69e376de83d02fca3decb7a731d89f68a61351ef | refs/heads/master | 2020-05-14T01:40:38.797803 | 2019-04-16T12:35:17 | 2019-04-16T12:35:17 | 181,685,906 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | Cancer Clasification.py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.datasets import load_breast_cancer
cancer = load_breast_cancer()
cancer.keys()
df_cancer = pd.DataFrame(np.c_[cancer['data'], cancer['target']],
columns = np.append(cancer['feature... |
c9c76380d1613718e12d3840d7d973c31c0d85fb | 2e8d295963f8856214543323c9be34fc7578ad58 | /test/demo_png.py | d6c9d594fcdf955c2600193ea7fe22a6f862bfe4 | [] | no_license | Kotaimen/binaryparser | 2a1a1bd0ad336e9d08e9bac1a728831d17097f05 | 8408fa8279c598f77e0d98f29ddd71692341ee86 | refs/heads/master | 2016-09-06T03:46:26.460468 | 2012-11-16T02:39:53 | 2012-11-16T02:39:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,825 | py | demo_png.py | # -*- coding: utf-8 -*-
""" PNG File Format 1.2
See http://www.libpng.org/pub/png/spec/pngspec-index.html_
NOTE: This don't really decode image data...
"""
import io
import sys, os, os.path
sys.path.insert(0, '../src')
from binaryparser import *
# Header Signature ------------------------------------... |
3bdfb02d0973e4e3ac421c2d1a6c29221f04d92e | ec185bbf967f486c61b70a049423f0a99759f0a5 | /lib/reunion.py | 63d7847ccf16f0df2436ef11fd37af5e09b79edf | [] | no_license | MillsProvosty/Reunion_python | 948edab10a532d41477967b66a479e3188d7d074 | f2b2ac02cefa375f0c804c2273f0b0ea96cca2fd | refs/heads/master | 2022-07-06T04:13:48.250574 | 2020-05-18T20:46:27 | 2020-05-18T20:46:27 | 263,734,565 | 0 | 0 | null | 2020-05-18T20:46:28 | 2020-05-13T20:20:14 | Python | UTF-8 | Python | false | false | 942 | py | reunion.py | from lib import activity
class Reunion:
def __init__(self, name):
self.name = name
self.activities = []
def add_activity(self, name):
self.activities.append(name)
def total_cost(self):
new_value = 0
for act in self.activities:
new_value += act.total_c... |
e3dbf01a800550811a5c54febc9f530a9368b004 | 0c48e242fcacab32a71fdf3075f386ce109edf55 | /indicators/atr/average_true_range.py | 54e43a9ed88a1f3456aa28db091a21c0567e0bdd | [] | no_license | webclinic017/Master-Insight-Trading-Bot-2 | 6a39c029264d832e913b0739499c252f86169850 | dcc0fa8fd1e2dbd3fa4cad0ee3618db88eade480 | refs/heads/master | 2023-05-29T22:25:53.090971 | 2021-06-18T14:10:51 | 2021-06-18T14:10:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | average_true_range.py | from typing import List, Tuple
import pandas as pd
from indicators.Indicator import Indicator
class AverageTrueRange(Indicator):
ohlc_df: pd.DataFrame
period: int
def __init__(self, ohlc_df: pd.DataFrame, period: int = 14):
self.ohlc_df = ohlc_df.__deepcopy__()
self.period = period
... |
e23985813ac9cc03a36a4cc281e2b7f107d26702 | 3eefca801bffb1ead27fbc7031d700eb54bdf05c | /letter.py | f29304a7ba120297d27031b905864286f3d28f8a | [] | no_license | Vaishnavjay/Swarm-Robotics | 54f1547b85543167d4eb50a2bbd4e608ea628c17 | 0c8ec17a5783b18043cc4ecb12e56ccfe81d0805 | refs/heads/master | 2020-12-31T07:43:39.258924 | 2017-03-29T06:46:47 | 2017-03-29T06:46:47 | 86,545,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,195 | py | letter.py | def k(a):
import numpy as np
import cv2
import os
dirname = 'runtime'
img = cv2.imread('A-Z/'+str(a)+'.jpg')
seba = cv2.imread('vj.png')
returner= [[[] for i in range(3)]for j in range(3)]
i = 1
gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
ret,t... |
ed3a13e69541bc1a22178390d2ba877032004469 | 52c8c925a12badfac303a0142db992e09d15fbf2 | /application.py | 29431f123a695921623b7432858e335c8a1b6f06 | [] | no_license | thenemschabukswar/flask_to_upload | e4dd6f76023f591f0bb06427a3860607fcc5f83a | f18ddce56f34a39ba23c98d774333fb82536243a | refs/heads/master | 2021-01-15T00:12:32.125384 | 2020-02-24T18:17:36 | 2020-02-24T18:17:36 | 242,807,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | application.py | import os
from flask import Flask, render_template, request
from flask_uploads import UploadSet, configure_uploads, IMAGES
from flask import send_file
app = Flask(__name__)
photos = UploadSet('photos', IMAGES)
app.config['UPLOADED_PHOTOS_DEST'] = 'static'
configure_uploads(app, photos)
@app.route('/', methods=['GET... |
0878d023ec23ebed41053f5a727425b5b5b4122c | 5544452ff397d525e6d9ab26644fc8a2288891c8 | /products/migrations/0001_initial.py | 269350122c9452760c1501a04977b4666939f2ea | [] | no_license | DoberWho/ejemplo_django | ca3f29b5f8d3ae3cd8e5df2f58a1d51e54abcb3d | 861348b4450650e0e9b5cb80c9317675f0ecfda9 | refs/heads/master | 2023-02-16T17:14:06.956920 | 2021-01-18T12:37:51 | 2021-01-18T12:37:51 | 321,376,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | 0001_initial.py | # Generated by Django 3.1.4 on 2021-01-11 11:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('categories', '0001_initial'),
('tags', '0001_initial'),
]
operations = [
migrat... |
8973d0af642f9ebe237dcb4e346da7377917ae49 | 97ee4b2e87d96a661b6f1c0e29d07ed9f7f4ef28 | /courseresultuploadlog/serializers.py | 459e186d45752c9ad0027e92f893ee02cccac508 | [] | no_license | GHostEater/Portal | 0aac67bf74b3476b26959dd3c80484e1390f1399 | 502dff5cbe0ad13f490e2e0b2600d895fc631068 | refs/heads/master | 2020-09-07T04:55:20.199427 | 2019-11-30T15:50:04 | 2019-11-30T15:50:04 | 94,420,941 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | serializers.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from rest_framework import serializers
from courseresultuploadlog.models import Log
class LogSerializer(serializers.ModelSerializer):
class Meta:
model = Log
fields = '__all__'
depth = 3
@staticmethod
def setup_eager... |
8b1504ea852c238273e35c179385906daae43c3b | a55f2cc23e0049631e43b80b75ff5dec944f351b | /modules/weight_manager.py | a2e3bc6ee4e9e5c14231485b4322e53c798a4ca8 | [
"MIT"
] | permissive | AmanPriyanshu/GitOpenFL | e7d9dba005520f753bc689d0ed2b1e2c3a5396fb | 133df9c16ae56aa67bf8865baeaeae050cef157b | refs/heads/main | 2023-02-06T07:04:05.126850 | 2021-01-02T12:14:29 | 2021-01-02T12:14:29 | 321,749,528 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | weight_manager.py | import numpy as np
import torch
class weight_manager:
def __init__(self):
self.something = None
def average_weights(self, all_weights):
all_weights = np.array(all_weights)
all_weights = np.mean(all_weights, axis=0)
all_weights = [[torch.from_numpy(i[0].astype(np.float32)), torch.from_numpy(i[1].astype(np.fl... |
aeb3bbafd84346918c44cc532a28b4cb7540fed1 | 5c363c50c54175a982330ec888401b3e394373ab | /syne_tune/optimizer/schedulers/searchers/bayesopt/tuning_algorithms/bo_algorithm_components.py | c6b5afe7b09a5737a4ccc1aa16a8b31809d0cbcf | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | awslabs/syne-tune | b14fb008f63def6a172bea6cc451f4e1906647f5 | c35686e1b5947d45384fd1d41a44e013da53ef43 | refs/heads/main | 2023-08-14T14:21:48.995716 | 2023-08-03T12:57:13 | 2023-08-03T12:57:13 | 417,499,108 | 313 | 47 | Apache-2.0 | 2023-09-14T14:06:54 | 2021-10-15T12:54:45 | Python | UTF-8 | Python | false | false | 13,375 | py | bo_algorithm_components.py | # Copyright 2021 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... |
586efb9fe7576b7dfaf4e28b0a533ec6f51cc395 | 0eb6696af3cf14cc030507744a8a6f1fd8d8a50b | /sheet08/exercise1.py | a3bcbfd8e6c7d04cc843c2c15e4a410790b8f2b8 | [] | no_license | theNinthElement/OpenCVProjects | 6de83ba72b3b86163eb6eb975603ee9d2a5e861a | a4b1b09605fddad6e33841c37981b68ef3f12037 | refs/heads/master | 2022-11-05T12:38:36.941476 | 2020-06-16T19:27:50 | 2020-06-16T19:27:50 | 218,393,095 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,907 | py | exercise1.py | import numpy as np
from sklearn.datasets import fetch_lfw_people
from sklearn.model_selection import train_test_split
import cv2 as cv
from sklearn.decomposition import PCA
from sklearn.neighbors import KNeighborsClassifier
from sklearn.metrics import classification_report, confusion_matrix
import random
import matplot... |
8d0bd2649217affd3ce51d57bf63a4ed35942ae8 | eba3e4a3935d6422d1ed85aaf69337f5ba15fc74 | /sqlalchemy/test/perf/objselectspeed.py | 896fd4c49472433b9d47caf241ed3808224b3aaa | [
"MIT"
] | permissive | arianepaola/tg2jython | 2ae74250ca43b021323ef0951a9763712c2eb3d6 | 971b9c3eb8ca941d1797bb4b458f275bdca5a2cb | refs/heads/master | 2021-01-21T12:07:48.815690 | 2009-03-27T02:38:11 | 2009-03-27T02:38:11 | 160,242 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,903 | py | objselectspeed.py | import testenv; testenv.simple_setup()
import time, gc, resource
from sqlalchemy import *
from sqlalchemy.orm import *
db = create_engine('sqlite://')
metadata = MetaData(db)
Person_table = Table('Person', metadata,
Column('id', Integer, primary_key=True),
Column('name', Stri... |
debf4dd9e40d34dc55e53a191cc1584699eb3f41 | 6e9169b814575122298751f4d5abdd2e9739a1f6 | /pymtl/datatypes/helpers.py | 5716174f92679c063ad218a01262227a6852b151 | [
"BSD-3-Clause"
] | permissive | esaye/pymtl | 8d8cfa49422e916c6f17bf3f4b0e605b480a0cda | 5feeeb593290ae7019e3700debf4312967dbe166 | refs/heads/master | 2020-12-02T21:27:12.035475 | 2019-12-31T16:41:14 | 2019-12-31T16:41:14 | 231,119,459 | 0 | 0 | BSD-3-Clause | 2019-12-31T16:40:44 | 2019-12-31T16:40:43 | null | UTF-8 | Python | false | false | 3,100 | py | helpers.py | #=======================================================================
# helpers.py
#=======================================================================
'Collection of built-in helpers functions for the PyMTL framework.'
import math
import operator
# NOTE: circular imports between Bits and helpers, using 'impor... |
659471735a11aa84ad4982a761bb02f41785f302 | bc66e9e3183e1fe1f2b67444c3317040835cad21 | /yarp/ape.py | bc27b9262c86a8e09d9da43d5231b23490b3b947 | [] | no_license | mohan589/backdoor_writeups | ffa5afe11b5b25ccbe39eef265d337051783ff23 | 5ca3123cc63d7ea850caa54f797a73a5a385c289 | refs/heads/main | 2023-01-05T14:25:40.025866 | 2020-11-02T10:14:14 | 2020-11-02T10:14:14 | 309,281,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | ape.py | #rsa
from sympy import mod_inverse
from Crypto.Util.number import long_to_bytes
c = 100822399666299835550851224753006162867830048336194822373448160706976604083333093606837082121398295158485132403568411787603019426171212866024390725975412982904999037426126893021396574784358440970565495211345140273957745933877495243941... |
5c1cde9b90f492cb17ad99fbbf266d83ed45dc37 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/Lambda-Resource-Static-Assets/1-projects/lambda/LambdaSQL/LambdaSQL-master/LambdaPostgres.py | 260d0c0497cd1cd9d75980ef4b55344287aaa526 | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 1,938 | py | LambdaPostgres.py | import psycopg2
import sqlite3 as sql
# connection = psycopg2.connect(
# dbname="rphzklxx",
# user="rphzklxx",
# password="J0i83etc3hsiBVaNQ5F999zzJJcFxluM",
# host="rajje.db.elephantsql.com",
# port="5432",
# )
# curs = connection.cursor()
# curs.execute("""
# CREATE TABLE test_table (
# id ... |
52988b1ce9b0ab9039fedb7ba6978f4ae32fa203 | fbb5a2a6dda74363106b98827e324bbc370143a7 | /lecture4/lecture4.py | 769a5e6b35299fe20ca67dd0ae2568dbdd15ea83 | [] | no_license | Wwqq121/HW | 0e9257f6d9c58871f40c5d3d4f9f6b0dbf38d84f | dbfbc58b306a45f94c7b8719ea1f304c09939b1f | refs/heads/master | 2023-01-05T07:17:00.368256 | 2020-10-27T09:22:29 | 2020-10-27T09:22:29 | 299,030,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | lecture4.py | f = open("D:/text.txt", 'w')
n = (input("Введите число: "))
n = n.strip()
if not n.isdigit():
print("Ввели неверно!")
exit(1)
numbers = list(range(2, int(n) + 1))
for number in numbers:
if number != 0:
for candidate in range(2 * number, int(n) + 1, number):
numbers[candidate-2] = ... |
08903d0d2d69831302f28edd26ee0e7c0f112562 | a066b8826068f997d3b26b35c642a35c1cf8ce4e | /mdtohtml.py | 077952f4cd6c81a0f9aec2a4f411426ec849fef6 | [] | no_license | ntartania/Think-Python-Fr | cc18a6c97c72dbc580c004ba1aaad59a693b19af | 8e52444e9776d479c611648b277459af6a6748a9 | refs/heads/master | 2023-03-17T05:04:36.052379 | 2019-08-08T20:49:26 | 2019-08-08T20:49:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,306 | py | mdtohtml.py |
import sys
import jinja2
import markdown
TEMPLATE = """<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js... |
758453f76f052357179767927954653ff8e4d24b | 6a7496f84e43650fba8a874ca4838fb2a6b58f22 | /ops.py | a429b23b62196ca2c98ca778043a53b7578b1af7 | [] | no_license | julienduroure/BoneChainRenamer | 2466b8d92a638dd31105271c265724406e113ab7 | 3297be3c38d3b8171c9e342ff874b93f59e14a58 | refs/heads/master | 2020-07-15T21:59:38.130016 | 2019-09-01T09:47:28 | 2019-09-01T09:47:28 | 205,657,227 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,921 | py | ops.py | #
# BoneChainRenamer is part of BleRiFa. http://BleRiFa.com
#
##########################################################################################
# GPL LICENSE:
#-------------------------
# This file is part of BoneChainRenamer.
#
# BoneChainRenamer is free software: you can redistribute it and/or modify
# ... |
8fdb04bed5fa01c3330b9c94b270d334ccbadfc2 | 63b79c404d83e4980891c488f4d9592558ecda35 | /assets/src/ba_data/python/bastd/ui/specialoffer.py | 80c6bf201ae5ca1c7f627610d92e2a67237d129d | [
"MIT"
] | permissive | kakekakeka/ballistica | 56e8879cd5b4b990e5e05da3dfd300d7cbb45446 | 3ffeff8ce401a00128363ff08b406471092adaa9 | refs/heads/master | 2022-11-14T08:11:57.160782 | 2020-07-01T05:43:13 | 2020-07-01T05:49:44 | 276,755,445 | 2 | 0 | MIT | 2020-07-02T22:18:37 | 2020-07-02T22:18:36 | null | UTF-8 | Python | false | false | 20,341 | py | specialoffer.py | # Copyright (c) 2011-2020 Eric Froemling
#
# 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,... |
2f379b69e4dc1d1cab3b7dfb5c55a391f0f2f64a | ca8fe2f48bc16f7e15d5b71190af775990571ce5 | /reminderbin/apps/reminders/admin.py | ff3a4b5ed53dad1716d2384d1850ef100d9aced7 | [] | no_license | ktundwal/reminderbin | 9f184d0edafdf587ce948fbd1d5b5c44945f885b | 9800ebaf5df584583566c48ae70fb37586338e14 | refs/heads/master | 2023-06-04T21:37:13.856487 | 2012-08-26T14:35:27 | 2012-08-26T14:35:27 | 380,635,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | admin.py | __author__ = 'ktundwal'
from .models import *
from django.contrib import admin
admin.site.register(Patient)
admin.site.register(MedicalProfessional)
admin.site.register(Appointment)
admin.site.register(Reminder) |
a3b98109a92690303bc1f9384a97b4b47040c5f0 | 04e5ee89180ed6a48e09fc22d24da7992684a864 | /no_duplicate_inputs.py | a274e62ea270d2e3e854ea9130e7137d2e137cfe | [] | no_license | EveaZerin/Python-Crash-Course | d247f7c60209495c2668bb6acb4eb30678378d6e | 9d9e01108e19d17c96cf6a2ec0d7008598aaf83b | refs/heads/master | 2021-05-22T15:34:06.687324 | 2021-02-05T20:50:21 | 2021-02-05T20:50:21 | 252,983,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | no_duplicate_inputs.py | i=1
dict1 = {}
while i<=10:
n = int(input("Enter a number"))
if n in dict1.values():
print("Duplicate found")
else:
dict1[i]=n
i+=1
print(dict1)
|