blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e6485d8a593beec02e5f42f35df51829bc703acb | cec1daab2917a37b9989a14fd1093620436babc0 | /utils/parameters.py | e80ac0f34db9958c67a3de9c97e9925468b608bd | [] | no_license | hanzhongyuan/A-Deep-Generative-Framework-for-Paraphrase-Generation | 7ff4e7b16ee31a64a5f636a36576920366345597 | ec254df0dd48a0f8bb155aa92fcbe5d12997226d | refs/heads/master | 2020-09-28T14:15:45.119553 | 2020-01-05T15:16:06 | 2020-01-05T15:16:06 | 226,794,968 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | from .functional import *
path='/home/hzy/Desktop/hzyparaphraseGen/1130model/'
class Parameters:
def __init__(self, max_word_len, max_seq_len, word_vocab_size, char_vocab_size):
# max_word_length,max_sentence_length,
self.max_word_len = int(max_word_len)
self.max_seq_len = int(max_seq... | [
"hanzhongyuan@gmail.com"
] | hanzhongyuan@gmail.com |
ee6b66d1e0f98fe64c4b1f3f01399c607a4fc373 | d4ee064965a4701ab59378e8b56f60f3762dc208 | /experiments/blocksworld.py | 9bf70e5add2b885eb11c85c2521c74a7eaf2c254 | [
"MIT"
] | permissive | u6684258/STRIPS-HGN | 97067a1eb1ce6c9872e24f705f4e0bed4a512de0 | e801737c06ee74545b15537f3a624e8d60555eb4 | refs/heads/master | 2023-06-23T15:47:42.111012 | 2021-07-18T10:28:10 | 2021-07-18T10:28:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,493 | py | from default_args import get_training_args, DomainAndProblemConfiguration
from train import train_wrapper
_CONFIGURATION = DomainAndProblemConfiguration(
base_directory="../benchmarks/blocks-slaney",
domain_pddl="domain.pddl",
# {3, 4, 5 blocks} x 10 problems = 30 problems
problem_pddls=[
"bloc... | [
"wsh@amazon.com"
] | wsh@amazon.com |
de09d36be4a3b3c87c34caa2f3d4ced071d5fed4 | 8ba806419dcb30f42e175625fd0b4bbea505c0d2 | /api/grain/apps.py | 3048beb9bcad488718b14373d78df852049ac10b | [
"Apache-2.0"
] | permissive | ZeroPaul/Agrain-US | 05bd2898a82e8c78672d5ad935c0a18ff9240393 | afa4055eaae47d33d8bfeeee59647465a219cbd5 | refs/heads/master | 2023-01-22T05:38:45.087725 | 2020-12-03T15:43:18 | 2020-12-03T15:43:18 | 317,931,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from django.apps import AppConfig
class GrainConfig(AppConfig):
name = 'api.grain'
icon_name = 'hdr_strong'
| [
"landerspaulzero@gmail.com"
] | landerspaulzero@gmail.com |
c3a182b04152b7db54b8cab24cb8ac93e098faa2 | 31e0cd843cf7000faa9615bfca81e11ba7fecc1b | /NPR/nprAPI.py | ffb75b677a62f23dbdb07197901e0fa3804c9021 | [] | no_license | simacna/pong | 19522386605de608c721f1f1a3dba7a49e3e283f | f49aa9c87f1fdb73cf8e598db38851a356fe06ee | refs/heads/master | 2020-12-25T17:24:49.889105 | 2018-03-21T03:12:01 | 2018-03-21T03:12:01 | 14,730,410 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py |
from urllib2 import urlopen
from json import load
key = 'MDE5MjQwNDkzMDE0MzIyMzIxNTk1ZjZiYQ001'
url = "http://api.npr.org/transcript?apiKey="
url += key
url += "&format=json"
url += "&id=152248901"
response = urlopen(url)
j = load(response)
for paragraph in j['paragraph']:
print paragraph["$text"] + "\n"
| [
"simacna@gmail.com"
] | simacna@gmail.com |
32946d9c1ed323d321ec09e1ed0ebd5a54c57354 | ebb0423c785db014d4f9ee8a740680137f1270dd | /scene_post_more.py | 748f9e02910c1ac1304091f65f9f0a67952eafb9 | [] | no_license | c126012u/socket_test | e64d014ade290cc46ab836e121fe738aef8bd8aa | aebf4b9597eae01157804294f145d4f6de844664 | refs/heads/master | 2021-07-10T17:32:12.243873 | 2017-10-13T08:05:59 | 2017-10-13T08:05:59 | 106,083,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | # -*- coding:utf-8 -*-
import socket
import json
import sys
import time
host = "127.0.0.1" #お使いのサーバーのホスト名を入れます
port = 5000 #適当なPORTを指定してあげます
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) #オブジェクトの作成をします
global i
#i=0
client.connect((host, port)) #これでサーバーに接続します
#while True:
i = sys.stdin.readline()
with ... | [
"noreply@github.com"
] | c126012u.noreply@github.com |
8c0ec11fe9b067b12b613ace559bf6f2a3428735 | 708460c4ab98dd18eb315b0d5e83bb6f63c21d0e | /setup.py | f68c77611c941dfd6c7f4f6988975bf51b1f27df | [
"MIT"
] | permissive | bdunlap9/bane | f531d3da262bff16c8f3fa305d41b69d37c1736a | 61c9f2c3f1bad65eb1a191db68995d2663c7ad37 | refs/heads/master | 2023-01-31T23:48:56.123209 | 2020-12-16T00:26:25 | 2020-12-16T00:26:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,319 | py | #for windows you need to download: winpcap: http://www.win10pcap.org/download/
import sys,setuptools,os
with open("README.md", "r") as fh:
long_description = fh.read()
termux=False
if os.path.isdir('/home/')==True:
os.system('sudo apt install sshpass -y')
os.system('sudo apt install nodejs -y')
adr=False
if os.pa... | [
"noreply@github.com"
] | bdunlap9.noreply@github.com |
3b4eb1834bbb33c6b4ee8521fd1ea5466cc3abb8 | a77dd3062b966b5999a85a88927b0c95a95613f0 | /plot_time.py | cd081b28672edff7021803181a17ed18cfd9d3a0 | [] | no_license | LeonidK23/heat_transfer_mpi | c11f34e9f0585c99c5c7f403cb367bf495411c9d | 26f90f756a824b0ed4c5513d6ceee435b123f7e2 | refs/heads/master | 2022-03-28T13:20:02.281259 | 2020-01-28T15:53:17 | 2020-01-28T15:53:17 | 233,641,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | import numpy as np
import matplotlib.pyplot as plt
with open("computation_pool.txt") as f:
data = f.readlines()
data = [line.strip() for line in data if line.strip() != "ready"]
sizes = []
times = []
for i in range(0, len(data), 2):
sizes.append(int(data[i].split(" ")[-1]))
times.append(float(data[i+1].sp... | [
"kaida.leonid@gmail.com"
] | kaida.leonid@gmail.com |
3b6456b8d23503a98bd1c276e4809d8ea93d3c1b | 33e5d2a1b26f467e0ec116cb99c354c44266581b | /meteva/method/Vector/plot.py | 81bd2bca95fc6e6b55d3cc8297e6e6e44b9d1d24 | [] | no_license | Snake-99/meteva | 8ebf74b64f2bb26d9eb3affdb044ba01bcf3e50e | afcb34895758b8eeb5e503feaddad5248e5f2f06 | refs/heads/master | 2023-02-18T11:14:10.652467 | 2021-01-18T09:02:46 | 2021-01-18T09:02:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,327 | py | import matplotlib as mpl
import matplotlib.pyplot as plt
import os
import math
import numpy as np
import meteva
from matplotlib.colors import BoundaryNorm
def scatter_uv_error(u_ob,u_fo,v_ob,v_fo,member_list = None,title = "风矢量误差散点分布图"
, vmax=None, ncol=None, save_path=None, show=False, dpi=300,
... | [
"liucouhua@163.com"
] | liucouhua@163.com |
dc91d3837ebadfc328c9ee913c816f5e1c975704 | dc05275da04211d02503e8e8f22f19192ac64d74 | /TODO_list/migrations/0009_auto_20210506_1720.py | 72b27f26eebd85c62551dd7d9d4138fb69aee0dd | [] | no_license | svadic/TODO_list | 9d764a0e5a03db74d5d6ca6e32605dcc12e61e52 | 542d66c0ee7487b70f6f0b86ae20c2522dc1738d | refs/heads/main | 2023-04-24T13:59:05.155551 | 2021-05-07T07:27:35 | 2021-05-07T07:27:35 | 364,954,778 | 0 | 0 | null | 2021-05-07T07:23:21 | 2021-05-06T15:22:51 | Python | UTF-8 | Python | false | false | 1,186 | py | # Generated by Django 3.2 on 2021-05-06 15:20
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('TODO_list', '0008_auto_20210506_1549'),
]
operations = [
migrations.RenameField(
model_name='task',
... | [
"stefan.vadic@gmail.com"
] | stefan.vadic@gmail.com |
ddcdca81b7542c683b67f1aafaf5ef342f08229f | 8b9897577d3278e6070bb99f5fcfcc4f49df538e | /l10n_be_coda_advanced/wizard/coda_helpers.py | d2ae4c5393cc9fd1251b93a8e8ca0967ddef06ea | [] | no_license | ilexius/noviat-apps | 422eb3df8ab4f6b944dcc841d3cf442b8da2aad1 | 84510bab01251d96bcb4a2ed9c14db8737495592 | refs/heads/8.0 | 2021-01-15T12:37:56.579920 | 2015-03-16T15:39:56 | 2015-03-16T15:39:56 | 35,040,239 | 0 | 0 | null | 2015-05-04T14:42:51 | 2015-05-04T14:42:51 | null | UTF-8 | Python | false | false | 3,482 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# Odoo, Open Source Management Solution
#
# Copyright (c) 2010-now Noviat nv/sa (www.noviat.com).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GN... | [
"luc.demeyer@noviat.com"
] | luc.demeyer@noviat.com |
91c2bf543417e9a455f8678310a1c7057ce4a7f7 | c31d7bbe6ec45b0645d86923be925327a97077d6 | /flownet2-pytorch/run_files.py | 79aca5358868d531f98c1a9cdcc42c5ec85c5434 | [] | no_license | irfan7787/motion-detection | 83c1f34e8d20e849e00134e0ee63f78cef2ccd01 | 6d8c52e4d9b3702e216dfaf87769adf1741e7320 | refs/heads/master | 2023-04-17T08:47:53.247291 | 2021-05-06T09:32:54 | 2021-05-06T09:32:54 | 280,437,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,670 | py | import torch
import numpy as np
import argparse
import cv2
import os
from models import FlowNet2 # the path is depended on where you create this module
from models import FlowNet2CSS
from utils.frame_utils import read_gen # the path is depended on where you create this module
from utils.flow_utils import... | [
"ibrahimdelibasoglu@gmail.com"
] | ibrahimdelibasoglu@gmail.com |
00166ec710edf8b313c7225af10650b12ee35b87 | 36220616c9e03d062613f5a728665aa6ba5d20e9 | /Tests/Tensorflow/TF7.py | 06439176e52fe256dceb796c4d18346fcf666094 | [] | no_license | BigBbang/Certification | 8c1708701a08ebed554826761a149ba72e5109f3 | db1a70e19b4bbdee6180cb2cdc499c2e608d93b2 | refs/heads/master | 2023-07-02T05:13:54.248746 | 2021-08-06T09:16:49 | 2021-08-06T09:16:49 | 393,079,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | import tensorflow as tf
# Create Tensor
tensor1 = tf.range(5)
#tf.print(tensor1)
print(tensor1)
# print(dir(tf.data.Dataset))
# Create dataset, this will return object of TensorSliceDataset
dataset = tf.data.Dataset.from_tensor_slices(tensor1)
print(dataset)
print("Original dataset")
for i in dataset:
print(i)
p... | [
"angeli.pintori@sap.com"
] | angeli.pintori@sap.com |
67be827a308d155b819a82c7e54a16721b1a8df7 | 3586059c3a47d6baeb3757ff9d33e9d308236c44 | /utils/common.py | 02e1c8ea3698f8dea9ea488cae98a9c1a025c5f2 | [] | no_license | codingwithabhi/imdb_clone | efb2a04d28911b8bf178295ed79b5185a78ec826 | 5da43def4d894b89b63075bd06e2d0917c5a2830 | refs/heads/main | 2023-04-10T07:42:20.134141 | 2021-04-18T16:56:42 | 2021-04-18T16:56:42 | 359,197,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,422 | py | import jwt
import json
import hashlib
from db import db
from db import UserDetails
from flask import Response
from config import get_config
app_config = get_config()
def render_error_response(message='Internal Server Error', code=404):
response = {
'status': False,
'message': str(message),
... | [
"abhishekpandey@Abhisheks-MacBook-Pro.local"
] | abhishekpandey@Abhisheks-MacBook-Pro.local |
5b0a2ac1c676f96bf4dbefb5a6c0f78a50819b62 | a379dea2e30b49be4389a0b6f144f3734da8c320 | /DataView/urls.py | 1f0e642d06dabc254f6ce45b96e28f2c8a431ef7 | [] | no_license | paragdudeja/ScrapDataView | 268a464edb3714a8a610a33b1dca847da163ab68 | c0c8f4837fad33b82f31fd24fdab79f2a4d9afa3 | refs/heads/master | 2023-07-14T18:30:17.833308 | 2021-08-24T11:11:46 | 2021-08-24T11:11:46 | 358,830,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | """DataView URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"parag1907@gmail.com"
] | parag1907@gmail.com |
1b2fb14a7985f07866ac3a63d467662a7aec1bae | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/compose/2016/8/setup.py | 5cb52dae4a36d541c4ac4370ce84ff326b9ec86f | [] | 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 | 2,162 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
import codecs
import os
import re
import sys
from setuptools import find_packages
from setuptools import setup
def read(*parts):
path = os.path.join(os.path.dirname(__file__), *parts)
... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
7271b8968d302911e9420a56ff72d88e91671a9d | 4c1074fe997f1a57bdf1af6f0cc6ed3c4395afff | /setup.py | 5f7bdbfc59c66e77e2b541bbf1a2ef06dd3637a3 | [
"BSD-2-Clause-Views"
] | permissive | xflicsu/deepcpg | b76fbaf0f22be20ca20f978a2d61dd1a46404dd0 | e19e70f97952959e19311bfeef1a4837515d0803 | refs/heads/master | 2021-01-09T06:03:25.303086 | 2017-02-03T21:41:35 | 2017-02-03T21:41:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='deepcpg',
version='1.0.0',
description='Deep learning for predicting CpG methylation',
long_description=read('README.md'),
author='Christof Angermueller... | [
"cangermueller@gmail.com"
] | cangermueller@gmail.com |
fff6b37aa6343afba76aa62d04f8482e30d9a196 | 80e7fd362eb4d80cec7d0cd0e838da7b691af754 | /APP/util/image_analysis.py | 623c82eac4c32b5638df72c2f1cc761f674741b1 | [] | no_license | zafarizb/EVA-back-end | de67872c89fa4f3400663e178f424facff0b84ac | 81837564ae7be57b257b10d71062d1c50a3d5b7b | refs/heads/master | 2023-03-20T23:38:39.333369 | 2021-03-22T07:13:52 | 2021-03-22T07:13:52 | 328,589,294 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | import os
# from ..fasterrcnn import fasterrcnn_image
from ..ssd import ssd_image
import config
conf = config.Config()
def run_image_analysis(taskname, username, filename, filepath, dnn):
userpath = conf.FILE_PATH + username
output_path = os.path.join(userpath, 'result', taskname)
if not os.path.exists(... | [
"1026051192@qq.com"
] | 1026051192@qq.com |
ea62b5b0652c76d19387f93f5bcb0919645a0938 | d39cddcd6f8e21fe7b02dac6da64c3952cd74e24 | /djangoApp/djangoApp/settings.py | a050d5dbaa575c2dfa9ec0a1f567f1429b64c562 | [] | no_license | rajbirsaini734/rajbirsaini734-gmail.com | 48daa7b11277585f6aeb9bab34fe82b3e44d5508 | e28f64d671fc9648b69e0051417e9ed90e7cd9ca | refs/heads/master | 2020-12-19T15:36:20.829359 | 2020-01-24T11:51:57 | 2020-01-24T11:51:57 | 235,776,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,110 | py | """
Django settings for djangoApp project.
Generated by 'django-admin startproject' using Django 3.0.2.
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 os
... | [
"60218602+rajbirsaini734@users.noreply.github.com"
] | 60218602+rajbirsaini734@users.noreply.github.com |
6719ea18b1f618d95260b4acda348681df6ca014 | 74352868edb7b778f77e1e58dfb570a730c2ee8f | /extend_work/four/pyechart0830.py | 658002f8e58812f372c822293dc29ab8011929bf | [] | no_license | QiuZiXian/python-learning-process | 911f0788f649db79dbd7698d2b9c2606187017b2 | e78f8d76373b5361e64a1785bbb3ec97ec48eda6 | refs/heads/master | 2023-02-20T23:06:54.085661 | 2021-01-23T08:17:02 | 2021-01-23T08:17:02 | 288,720,844 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,029 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
# __author__ = 'QiuZiXian' http://blog.csdn.net/qqzhuimengren/ 1467288927@qq.com
# @time :2020/8/30 22:13
# @abstract :
import pandas as pd
from pyecharts.charts import Pie
from pyecharts import options as opts
# Prepare data
provinces = ['Beijing', 'Shan... | [
"1467288927@qq.com"
] | 1467288927@qq.com |
09839cad9c1983485db19d021e5c7ecb5850eda0 | 34425dc6fd8a89f24614816cf352c69ca84c2d78 | /Session02/exc6.py | c5b9e54bf80ebc33d1208df2bb5d81f80c1a7021 | [] | no_license | tuongnguso03/daochituong-fundamentals-C4T4 | 1d90a9f4e9da1f2df0ebe21fbb7a0c14462d09fa | f5b69e6b006579fd5b304fb0a614c04be972c68f | refs/heads/master | 2020-03-21T06:42:28.907079 | 2018-07-13T15:39:02 | 2018-07-13T15:39:02 | 138,236,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | from turtle import *
speed(-1)
color("red")
for i in range (1,18):
for k in range (4):
forward(6*i)
left(90)
left(12)
forward(20)
mainloop() | [
"metalwallcrusher@gmail.com"
] | metalwallcrusher@gmail.com |
c5474e8cd4e8bbdecde6132b91acdd70c3a4856b | 31da09c1f631dbf1bc7e5ab3d6acc9df3cb9442f | /ITP1/ITP1_5_A/main.py | 155a24f0d18a526892ee77110476aab3ab96bb25 | [] | no_license | boxnos/AOJ | e00e3d214cdbc498ba171ca3df65c571f0ee29df | 4cf43b3252d98201ab12c96eb020cc801c95e172 | refs/heads/master | 2021-06-08T07:36:19.780631 | 2020-10-07T15:01:18 | 2020-10-07T15:01:18 | 20,299,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | while True:
H, W = map(int, input().split())
if H == 0 and W == 0:
break
for i in range(H):
for i in range(W):
print("#", end="")
print()
print()
| [
"boxnos@yahoo.com"
] | boxnos@yahoo.com |
266ffdda9db84e6b1e5b746f7c8d75e1dbfb4a51 | a6982f5127212d6c9f5e885a187dc0575c4af35d | /__init__.py | 20cd054518d076c525a64dc7c4c4ee5dbf5ca67f | [] | no_license | kilon/test_bgl | 1122d02b2fc50d23d118d37e180f30b549441739 | 95aca782c042c601bdb94c8955ac87ac62abf398 | refs/heads/master | 2021-03-12T22:53:21.575179 | 2012-07-22T09:32:57 | 2012-07-22T09:32:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,664 | py | import bpy
import bgl
import blf
from os import path
path_sep = path.sep
bl_info = {
"name": "Test BGL",
"description": "A collection of tests to make sure bgl is not buggy",
"author": "Kilon",
"version": (0, 0, 1),
"blender": (2, 6, 3),
"location": "View3D > Left panel ",
"warning": 'warn'... | [
"thekilon@yahoo.co.uk"
] | thekilon@yahoo.co.uk |
494a8501f651022d3db972eff46bb82f406dbcc0 | c3eab942b33ce6c792a27d63e46d59c73d3a35b4 | /blog/views.py | 15720284dcb2c39d6aa45d85541eda1811a5295a | [] | no_license | jeanettie/jeanettiesblog | 68003fd4551b099c32dc26fb01d6677c18fd6573 | f93e1f274bb6dd86bb0a2c89bd1fe3e9ad0cd85a | refs/heads/master | 2021-05-07T20:06:27.897265 | 2017-11-17T16:26:38 | 2017-11-17T16:26:38 | 108,940,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,854 | py | from django.shortcuts import render
from django.utils import timezone
from django.shortcuts import render, get_object_or_404, redirect
from .models import Post
from .forms import PostForm, DeleteForm
def post_list(request):
posts = Post.objects.filter(published_date__lte=timezone.now()).order_by('published_date')... | [
"jeanettienicole@gmail.com"
] | jeanettienicole@gmail.com |
a57c46b717155156ea82dd13afd065add60ee1b1 | 2bafb77b683c5c41938cb9d5a01b6e5d29cfb9b7 | /djviews/bin/wheel | 35896295de858b303021dc3c09d1888a7bc2b3b4 | [] | no_license | FaisalWant/Django-Website | 3c1c31d2f2e942a5f9d43def9317fea2d5aeb51b | ab7864c308e677c38107c65e2e5b0bdde24aa132 | refs/heads/master | 2023-03-14T12:13:59.296757 | 2021-03-02T18:56:22 | 2021-03-02T18:56:22 | 339,169,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | #!/home/xander/Documents/DjangoProjects/Django3/DjangoNewDoc/djviews/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"heliconrngr@gmail.com"
] | heliconrngr@gmail.com | |
fabca677d73232328deb6e5c4d62fd2d4695112c | d8b3b19983a9d6241556ed627cb67e9be9e83c77 | /salsa/ProfiledData/BatteryRateProfile/.idea/energy/battery/histogram/libs/histograms.py | f4b2d04f03dfc5684da5e76fc4de43b336ac9276 | [] | no_license | athuls/android_monitor | 020db022c4467e9e90ba122cda89a76f3dd7a8ca | 3019db02ce8b5e0625fb6328ba19624e3c3345d0 | refs/heads/master | 2022-07-19T09:59:00.335643 | 2018-11-22T20:49:24 | 2018-11-22T20:49:24 | 80,666,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,271 | py | # param 1: log file to be processed
# param 2: time interval in seconds
# param 3: number of samples per second
import json
import re
import os
from datetime import datetime, timedelta
def generate_histograms(fileName, interval, samples_per_sec):
actor_counts = []
#############Debugging##########
previou... | [
"athuls89@gmail.com"
] | athuls89@gmail.com |
e9ced92349971306b35cdec84075f034c427d093 | 546abb59cbe363d89a863c209c1788ade7291b48 | /tempCodeRunnerFile.py | a3a1f518580d676977b4d5a867dba5aff896afd2 | [] | no_license | Hukasan/Discord_Bot_Wkwm2 | 77cb32cafc0f8736ccd0b0c2e65d511ea7e9bcbb | 3f68508d612ee861e1864b2bce0dcc132e7d6ed5 | refs/heads/master | 2023-07-23T02:09:58.473686 | 2021-08-30T12:36:24 | 2021-08-30T12:36:24 | 385,295,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | hashids = Hashids(salt='This is my salt') # saltにsalt値を指定
id = hashids.encode(randint(0, 1267650600228229401496703205376))
print('Hash: ' + id) | [
"Hukasan27@gmail.com"
] | Hukasan27@gmail.com |
0d5e647977a66fe9030108befd680373845aee95 | 25dda94672497e3287a7403e283fb279ad171b79 | /boj/11054 가장 긴 바이토닉 부분수열.py | 458adceb31b78b34b5a3924ec2c09a7a983434dd | [] | no_license | woorud/Algorithm | c94b844e8c96a446c5fdee5c0abb159bfee384d7 | f5b8e3cf0aea7fc4400e6f5bb0c1531fad93e541 | refs/heads/master | 2023-02-23T13:53:28.645036 | 2021-01-29T12:24:23 | 2021-01-29T12:24:23 | 230,908,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | n = int(input())
num_list = list(map(int, input().split()))
dpi = [0 for i in range(n)]
dpd = [0 for i in range(n)]
for i in range(n):
dpi[i] = 1
for j in range(i):
if num_list[j] < num_list[i]:
dpi[i] = max(dpi[i], dpi[j]+1)
for i in range(n-1, -1, -1):
dpd[i] = 1
for j in range(... | [
"woorud96@gmail.com"
] | woorud96@gmail.com |
e77a6ff25e6a3e458ac0d9464dce70336b45709a | 88a2f57b7d660228ca1ac922f0f582910bcacb3d | /algorithm/problem/AD sol/AD_3day_솔루션_김은경/주사위던지기1.py | d6af23c180c38cbdd427b3caf0f2b150d4c6d32b | [] | no_license | chelseashin/TIL | adc5ed0bd4ba084e85b74baa9699096a7af5585e | 376b56844985b3ff43b94fa18086a449e6deac69 | refs/heads/master | 2022-12-10T02:13:39.680936 | 2020-11-19T13:18:30 | 2020-11-19T13:18:30 | 162,103,813 | 2 | 0 | null | 2022-12-08T04:53:38 | 2018-12-17T09:11:23 | Jupyter Notebook | UTF-8 | Python | false | false | 1,380 | py | import sys
sys.stdin = open("in.txt")
def DFS1(no): # M=1 : 눈의 중복순열
if no>N:
for i in range(1, N+1): print(rec[i], end=' ')
print()
return
for i in range(1, 7): # 눈
rec[no]=i #눈 기록
DFS1(no+1)
def DFS3(no): # M=3 : 눈의 중복 배제한 순열
if no>N:
for i in range(1, N+1):... | [
"chaewonshin95@gmail.com"
] | chaewonshin95@gmail.com |
8846947bbe4c37c7b7a6464de1a539be071a0adf | 94579f95eef969aec090f98a3c6841ea341af36f | /covids/views.py | 143c9976747cf3d5c02064a6af21d8ae6e4a5d31 | [] | no_license | smilejakdu/django_covid | d8b10e401dcf6fa7fe65c72e3c2b03f4fe2171d5 | 1092d6798ca30270d3f6c65345063e0376dfbbb8 | refs/heads/master | 2022-04-18T12:13:42.451188 | 2020-04-15T19:00:40 | 2020-04-15T19:00:40 | 255,989,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,426 | py | import json , requests
from .models import Covid ,KoreaCovid
from django.views import View
from django.http import HttpResponse, JsonResponse
from django.db.models import Count, Q , Sum
class CovidApiView(View):
def get(self , request):
try:
query = request.GET.get('keyword' ... | [
"ash982416@gmail.com"
] | ash982416@gmail.com |
f436e160f6b6422d1ddbaa6e6102449d0beda151 | 1c1e05eb6e29dc5908051a4ee530aa7c95fdc018 | /greetings.py | 796b68581149c6a79255f873afdff196c5c77605 | [] | no_license | theKyrgyz/SublimeTextCS550 | d7c1d0226a4136cbe2066c38b089a5d608c53c8e | 0ea1b8785129385777294ce30841b6d8fc781feb | refs/heads/master | 2020-03-28T06:16:43.119675 | 2018-11-15T15:51:21 | 2018-11-15T15:51:21 | 147,824,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | import sys
TheName = sys.argv[1]
SecondName = sys.argv[]
if TheName == 0:
print("Greetings, ", TheName, "!")
| [
"43068216+theKyrgyz@users.noreply.github.com"
] | 43068216+theKyrgyz@users.noreply.github.com |
2cbe0f54843d7411dd0fbd757a303e30fac7991d | 72cb1dfcd3b4f5f568d12cf46449aa2d6a762d4e | /imednet/data/nmnist_loader.py | a5d0002748329fcc6db6ae8d2681dfba7310e0d4 | [] | no_license | ZhAoJy7/MSc-Project | aa03531965b49f304236d24b51713563fb439fd6 | a2752c8ab616088d53e763350886b8df9addb0b5 | refs/heads/master | 2023-08-16T01:28:03.198339 | 2021-10-10T10:03:23 | 2021-10-10T10:03:23 | 389,678,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,076 | py | """
Load the n-MNIST (noisy MNIST) dataset.
The n-MNIST dataset (short for noisy MNIST) is created using the MNIST dataset
of handwritten digits by adding -
(1) additive white gaussian noise,
(2) motion blur and
(3) a combination of additive white gaussian noise and reduced contrast to the
MNIST dataset.
"""
from __f... | [
"471733751@qq.com"
] | 471733751@qq.com |
a77f8ac9dd323d70fcb6f82ac5e273515821f6da | ce5db856bf6552de06d649adbeb6fab9347567bf | /app/dawn_treader_subprocess.py | 3d451968f304e540af141f15e2226d680ac8830e | [] | no_license | sbalaji6/dawn_treader | 7cbf86d324017621749bebd254fba35f2d0dba0e | 6b5668cf25d945f19c4768d9e0fc6fcc876d5ac9 | refs/heads/master | 2022-12-22T09:12:49.534501 | 2020-09-30T07:43:19 | 2020-09-30T07:43:19 | 297,598,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,624 | py | import os
import sys
import subprocess
import datetime
import errno
import fileinput
import mchammer.ex
from dawn_treader_credentials import get_credentials_for_server
from dawn_treader_credentials import get_credentials_for_local
from dawn_treader_helpers import append_if_needed
from dawn_treader_helpers import stri... | [
"Balaji.Subramanian@efi.com"
] | Balaji.Subramanian@efi.com |
5380dc403419960cd0233b4187efae4f895a2f3f | 06d2e90f701070f926bb3a9ca014774e3c46a8fd | /flask_SQLAlchemy_app/book_flight_2/create.py | 689a54ae20f292087e5842554844fc2052725497 | [
"MIT"
] | permissive | pk8742/CS50_flask_tutorials | a0643b255b7326523a20b8dd629b57ecf2a1ff9d | 3bc2799246168b77cf5d66931da69c625ae3b27e | refs/heads/master | 2022-07-18T19:33:47.248438 | 2020-05-25T04:42:22 | 2020-05-25T04:42:22 | 257,904,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | from flask import Flask, render_template, request
from models import *
app = Flask(__name__)
app.config["SQLALCHEMY_DATABASE_URI"] = 'post'
| [
"arronstone@popmail.com"
] | arronstone@popmail.com |
549bb59223e60022164c4c35424c5399bf52d5ba | 06ec86c7c1a8ba0423f7c167e8b0d363acc1fa93 | /Movie_year.py | a9b861be6dbf24be6913e59b7297a9b7fbeb6f51 | [] | no_license | AkshatBaranwal/Python_Files | c71d991105587989d4eb7cabae5ea315daaf5e74 | 11ea404e1754ff853f94a840b21022d65b163945 | refs/heads/master | 2022-12-21T02:03:27.237923 | 2020-09-30T18:36:46 | 2020-09-30T18:36:46 | 300,016,440 | 2 | 0 | null | 2020-09-30T18:30:12 | 2020-09-30T18:30:11 | null | UTF-8 | Python | false | false | 179 | py | import imdb
x = imdb.IMDb()
'''Enter the movie'''
print("Enter the movie : ")
a = input()
search=x.search_movie(a)
year= search[0]['year']
print(search[0]['title']+": "+str(year)) | [
"54035413+pavikachaudhary@users.noreply.github.com"
] | 54035413+pavikachaudhary@users.noreply.github.com |
8ff23d96897e2540db25beb12b2b0c69eef7a2c6 | 5b5c74a1f2ccd77d0402fbdca148f9a891928cd3 | /imgBox.py | 844c030c0238b6feb27aad31ce4607b98904c173 | [] | no_license | tanpo-1776017488/senior-project | 8682fe6c550e17197c30c6149654dd7fbf99a29e | bb945f67d8134d32ef17ac2de9f4d00c24e1e902 | refs/heads/main | 2023-06-27T16:42:31.922607 | 2021-05-14T07:35:25 | 2021-05-14T07:35:25 | 362,775,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | from imutils import paths
import numpy as np
import cv2
import os
import face_recognition
prototxtPath = 'C:/Users/sorjt/Desktop/mylab/experiment/face_detector/deploy.prototxt'
weightsPath = 'C:/Users/sorjt/Desktop/mylab/experiment/face_detector/res10_300x300_ssd_iter_140000.caffemodel'
des_path='C:/Users/sorjt/Deskto... | [
"tanpo1733@naver.com"
] | tanpo1733@naver.com |
198d33f4be5463a324dd2df5344a0c8188111d1a | f86202dd4e3093837bf4344bb7dc67372204bec6 | /NNexample/ANN.py | e87b7f0a434facc70469a1be289b36bfc8301dc3 | [] | no_license | BeyondCloud/ML | 5cf482847788ae61b360d8636c98687ada54e4f1 | 87fa030d53b0a511e1ec89a2917ba42247714bc9 | refs/heads/master | 2021-09-02T09:51:10.454796 | 2018-01-01T16:51:22 | 2018-01-01T16:51:22 | 105,304,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,116 | py | import numpy as np
import numpy.random as rnd
import os
import matplotlib
import matplotlib.pyplot as plt
Perceptrons
from sklearn.datasets import load_iris
iris = load_iris()
X = iris.data[:,(2,3)]
y = (iris.target == 0).astype(np.int)
from sklearn.linear_model import Perceptron
per_clf = Perceptron(random_state=... | [
"a1989796@yahoo.com.tw"
] | a1989796@yahoo.com.tw |
a3e529c1f34c0bb0b544255e20c0a54132f90c7d | bac88b1c28fdce256b954c786282d36abcf700b5 | /project/downloader/agent_bio.py | 98a83144e321aa8d71350c6518e19877d3916719 | [] | no_license | univizor/u2 | 5319ec908cc09db51e12a4308e6ea20188a04233 | f65d73e466532a3fe69d471f97e312ca98a7bb21 | refs/heads/master | 2021-01-21T13:04:08.773673 | 2016-05-08T23:15:25 | 2016-05-08T23:15:25 | 55,307,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,560 | py | import json
import logging
import copy
import datetime
import requests
import bs4
logger = logging.getLogger('u2.agent_bio')
URL_BASE = 'http://www.ffa.uni-lj.si/'
URL_START = URL_BASE + 'knjiznica/diplome-magisteriji-in-doktorati/'
from document.states import *
import eprints
JSON_TEMPLATE = {"school": "Biotehniska... | [
"andraz@zemanta.com"
] | andraz@zemanta.com |
61a87e6938d58bc944a2ce782f002915f6bcfa00 | 995b4422973b42799c2bbdb51186da4d1ef16409 | /tests/contigTests.py | 88d0c86505477a1c7e2c39ca0c82b3683fb7f26b | [
"MIT"
] | permissive | glennhickey/contigSim | c8a0026ae77b9fedd8f64eb89118c5825cdaf812 | 285a4490d2c06a3a1b548748cf556a25a4c503b5 | refs/heads/master | 2021-01-19T00:46:14.779220 | 2012-05-31T00:42:04 | 2012-05-31T00:42:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,736 | py | #!/usr/bin/env python
#Copyright (C) 2012 by Glenn Hickey (hickey@soe.ucsc.edu)
#
#Released under the MIT license, see LICENSE.txt
import unittest
import sys
import os
import copy
from contigSim.src.contig import CircularContig
from contigSim.src.contig import LinearContig
from sonLib.bioio import TestStatus
from son... | [
"hickey@soe.ucsc.edu"
] | hickey@soe.ucsc.edu |
ea160e04e7cfb440950f5efa5c09d700ed52e9b2 | 883fa5f6f93d20cd4bed67b2d37c0930e6d316c9 | /units/forms.py | 7ba491198033035108fa800d3afe132505a88f07 | [] | no_license | maciek16180/h3-fight-sim-presentation | f61f50fb05b2ad1cc83a4c7a2e080157d2afa5b6 | abf6e031ca2a0aafe1bf17e97ad4bdc2a21af794 | refs/heads/master | 2021-01-22T05:38:13.869483 | 2018-01-11T12:39:10 | 2018-01-11T12:39:10 | 81,682,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,283 | py | from crispy_forms.helper import FormHelper
from crispy_forms.layout import Layout, Submit, Fieldset, HTML, \
MultiField, Field, Div, ButtonHolder
from crispy_forms.bootstrap import InlineField
from django import forms
class MyInlineField(InlineField):
template = 'bootstrap3/layout/inline_field.html'
class C... | [
"pawlikowski.maciek@gmail.com"
] | pawlikowski.maciek@gmail.com |
10eba65d3445dee467671ffc6c4761edd61d7cb3 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/7/rin.py | 517ac2ca3690ac6482c12bf0e356b569497144ff | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
0206936e870220bf1788d7fbf449a34e8c74bdfd | 41f2ce527c0daa8111d8b3c3c7d97aa7e3f935c9 | /catalog/urls.py | c3840d15715cdd3cb19a71812de12577e10972ea | [
"Apache-2.0"
] | permissive | ajitgoel/django_local_library | 13a3dc3cfc6a181e36ed7bdfcd1f6f7a462bc896 | 10a28b96193979e518efdf7af25156c0059a3e69 | refs/heads/master | 2022-12-23T15:36:18.825291 | 2019-02-24T06:10:03 | 2019-02-24T06:10:03 | 172,287,270 | 0 | 0 | Apache-2.0 | 2022-12-08T01:38:09 | 2019-02-24T02:31:00 | Python | UTF-8 | Python | false | false | 1,698 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
#path() function defines a pattern to match against the URL ('books/'),
# a view function that will be called if the URL matches (views.BookListView.as_view()),
#and a name for this particular mapping.
#The gen... | [
"ajitgoel@gmail.com"
] | ajitgoel@gmail.com |
bfcede3b1aea7278cb22179812be254f7ebd5abe | 87829066b8152bb71450827b1d0bafe0cda3efc8 | /collective/googleplus/interfaces/__init__.py | a9222fe9e3c29cc9424baabe5f7ccaf8c89df4f4 | [] | no_license | toutpt/collective.googleplus | fb7c53133bfb47d90dea202f8ae3207ac44a9409 | fd8aa1ad11ecb08d8f056fd77c168067da0ea589 | refs/heads/master | 2021-01-25T08:49:05.841177 | 2011-10-21T08:33:45 | 2011-10-21T08:33:45 | 2,619,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | from googlepluslayerlayer import IGooglePlusLayer
| [
"toutpt@gmail.com"
] | toutpt@gmail.com |
68f6b2841c0268d392a9d100f17394c1db3517a7 | 5163470734c20167148271381c549dadf30dc846 | /setup.py | 053623d127c358077949c873db5878f419fc85ee | [] | no_license | fabiommendes/uritool | 2c9a590da5bafa2d268fa1990df44803d760b7a4 | 224dfc33fa65f40e90b0ac61b27a1199439e1a28 | refs/heads/master | 2016-08-11T06:21:39.424548 | 2015-12-03T22:15:05 | 2015-12-03T22:15:05 | 46,719,564 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | py | import os
import setuptools
from setuptools import setup
VERSION = '0.1.1'
AUTHOR = 'Fábio Macêdo Mendes'
# Save version in __meta__ file
with open(os.path.join('src', 'uritool', 'meta.py'), 'w') as F:
F.write(
'# -*- coding: utf-8 -*-\n'
'# This is an autogenerated file! Do not edit.\n'
'... | [
"fabiomacedomendes@gmail.com"
] | fabiomacedomendes@gmail.com |
900234f17835b685bbe8942eea57cf240264a7df | 42121d48beda0ea18e2ff3d902af7b890c965430 | /ProbabilisticGraphicalModel/LinearChainConditionRandomField/dev_dataset.py | 1e7aeee41efd19aaeaea642cbb1b051b121b88de | [
"Apache-2.0"
] | permissive | keepangry/ai_algorithm | 64af97888cdfd424f68c8868c4b87fcd249155e4 | 21d8024296a2f2d2797448ed34eb383359259684 | refs/heads/master | 2020-03-26T19:34:25.973392 | 2019-04-15T09:53:06 | 2019-04-15T09:53:06 | 145,272,390 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,722 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 19-1-12 上午9:56
# @Author : yangsen
# @Mail : 0@keepangry.com
# @File : dev_dataset.py
# @Software: PyCharm
origin_data = [
"我们 是 共产主义 的 接班人。",
"我 爱 北京 天安门。"
]
"""
第二列是偏旁部首数(不严格,仅示例)
"""
train_data = [
[
('我', '1', 'B'),
('们'... | [
"0@keepangry.com"
] | 0@keepangry.com |
a6e61f7b049192f845a676131b2f739239e10c0a | d15b4fc27a36042b35288eaa73724aa95fbb1611 | /bin/test | eb5873076e236bf58ec4ce40f087d6d40f0abea9 | [] | no_license | prsephton/foodflakes | c0bee200a6e49299e9424725e2e168e847df51ed | b1404613a01aa189b3cd564467e4df8286b814fb | refs/heads/master | 2020-05-18T12:50:28.570993 | 2019-05-01T16:21:02 | 2019-05-01T16:21:02 | 184,420,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,524 | #!/usr/bin/python
import sys
sys.path[0:0] = [
'/home/paul/workspace/foodflakes/src',
'/home/paul/.buildout/eggs/zope.testrunner-4.0.4-py2.7.egg',
'/home/paul/.buildout/eggs/zope.interface-3.7.0-py2.7-linux-x86_64.egg',
'/home/paul/.buildout/eggs/zope.exceptions-3.6.1-py2.7.egg',
'/home/paul/.buildout/eggs/s... | [
"prsephton@gmail.com"
] | prsephton@gmail.com | |
4855f892195b1a0ae6fa911a51037f0c6c0adbdd | 21409a480972ba3434abbfef340ebd413b584463 | /setup.py | 7eee78d58ef92e73cd4abde204cdc1b5b7f80970 | [
"MIT"
] | permissive | Tpaga/generic_rest_client | 9a758583a0cad3866786b746f748f1a8e1f4ec44 | 4e226959380bbf3d11e2161114b080a2522730ca | refs/heads/development | 2020-03-30T00:27:27.854360 | 2019-02-01T22:45:22 | 2019-02-01T22:45:22 | 150,524,656 | 1 | 1 | MIT | 2019-10-22T23:47:10 | 2018-09-27T03:38:37 | Python | UTF-8 | Python | false | false | 3,387 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Note: To use the 'upload' functionality of this file, you must:
# $ pip install twine
import io
import os
import sys
from shutil import rmtree
from setuptools import find_packages, setup, Command
# Package meta-data.
NAME = 'generic_rest_client'
DESCRIPTION = 'A gen... | [
"nobmann88@gmail.com"
] | nobmann88@gmail.com |
3bc1353a645d0c71c621ab33cb88163e3daf3652 | d3eea2056dd9798938162b07bee105751943f2ed | /install.py | ce2865f02442894e29996b04e54956d9ce809278 | [] | no_license | ExpLangcn/VulScanner | 193ce6591a7b77774d6eab1dc5d2fc95e21f92fb | b249e00cacaff42d6eb99e3f4e60532dcf3416ff | refs/heads/main | 2023-06-20T11:29:02.677327 | 2021-07-20T01:04:07 | 2021-07-20T01:04:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | import configparser
import os
import pymysql
from django.conf import settings
settings.configure()
conf = configparser.ConfigParser()
conf.read(os.getcwd() + "/" + "config.ini")
mysql_config = { # for mysql and postgresql
'host': conf.get('global', 'ip'),
'port': int(conf.get('global', 'port')),
... | [
"2998430232@qq.com"
] | 2998430232@qq.com |
23f292b27ab44f12f534a5ddcd2a44d00bc01cbe | ef9deef72e808c9bbb3e2fa05ce0b22e1c7442ce | /Week6/F.py | 3d5dc91c1403e375b99461540f649eb2cae8a64d | [] | no_license | Sukanya-Kothapally/Data_Engineering | 3b3038d9efe2a4d9014374262341a0a9aad5c572 | 378de7126d58efba7fecb65f62a248b307579ee8 | refs/heads/main | 2023-03-08T04:03:01.915105 | 2021-02-27T05:37:42 | 2021-02-27T05:37:42 | 329,715,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,435 | py | import time
import psycopg2
import argparse
import re
import csv
DBname = "census"
DBuser = "postgres"
DBpwd = "postgres"
TableName = 'Censustemp'
Datafile = "acs2017_census_tract_data.csv" # name of the data file to be loaded
CreateDB = True # indicates whether the DB table should be (re)-created
Year =... | [
"noreply@github.com"
] | Sukanya-Kothapally.noreply@github.com |
d409c998825e98d7c92f2401b0f89039d1a41f35 | 2bdacde9e399ab6b28c1dc14240a7dcbe77002c5 | /firstApp/migrations/0008_auto_20171227_0927.py | 46bfb4139f0fbd166abba7a365d677b84977604f | [] | no_license | namanjain10/IPL-STATS | c4e9f84537867b868e53a13a689a16de7316fbae | 130365ce69f2b7e387b3b915409af6b10a1d4685 | refs/heads/master | 2021-05-13T13:28:05.253876 | 2018-02-22T13:54:32 | 2018-02-22T13:54:32 | 116,707,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2017-12-27 09:27
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('firstApp', '0007_auto_20171227_0915'),
]
operations = [
mig... | [
"namanjain10@ymail.com"
] | namanjain10@ymail.com |
13fc7fc7e045bbc59af5eb8a77dbebfda959f756 | b177f72557d7e77551ccf152fab979c0f0a8b1f3 | /light_changer.py | 2de5b0e97881502f862c729482400e02c67f6963 | [] | no_license | bluhb/ambient-light-color-adjuster | 21978a6e0a523a60515b8e7ae8bfb8f99a5578ff | 47f85d5f744f1b70c6f1c5acc77db855264a2ab6 | refs/heads/master | 2022-08-24T05:59:54.852326 | 2020-05-19T03:02:17 | 2020-05-19T03:02:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | import requests
import pyscreenshot as ImageGrab
def get_color():
""" Screenshot a portion of the screen and return the rgb tuple of the most dominant color """
im = ImageGrab.grab(bbox=(0, 1079, 1, 1080), backend='mss', childprocess=False)
im.save('screenshot.png')
color = im.getpixel((0, 0))
... | [
"davidc3287@gmail.com"
] | davidc3287@gmail.com |
d70f548e7da1df6761bc27d979d7635999271f32 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/2/e1e.py | b449d2237d988b5084620e8b0e9861e37cea25f5 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
151a2614228e98ad6ac8739bb9e88f5a7eca9d75 | a54774d61d4ee4ec25edd9a10cc830f99c6747e1 | /Advanced Alarm Clock/Advanced Alarm Clock.py | 6550d880cb0bbc9dd5c0246c688ceae55a69f2ee | [] | no_license | auyvz/Python-Workshop | 53722c1d1ccc5f96a28d9ff425aca403b2aae0ec | 09b9ac5a7e3db5ec5a8a51edbf7f191f674c6837 | refs/heads/master | 2020-04-29T12:15:09.469714 | 2019-03-22T17:54:24 | 2019-03-22T17:54:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,682 | py | #
# Alarm Clock with 2 features that the user can set for a certain time or for counting bacwards
#
import pygame
import time
import datetime
pygame.mixer.init()
pygame.mixer.music.load("C:/AlarmSong.mp3")
option=input("""
1. Press one to enter a time for counting backwards and ring
... | [
"noreply@github.com"
] | auyvz.noreply@github.com |
4b9ad45c46b3adc3e6fb53aed541704a65a8bc5c | 87869a90e41593cfccaf9c87eff8361548a1a987 | /FPRO - Play/rearrange.py | 26afaa29d3fbf1c1e9621e262e7a9a5b7d7dca2a | [] | no_license | ivSaav/Programming-Fundamentals | 1326a544e725570af5b7d734b88894d586acc0fe | 1fa2db70482a43766537ce1141cb754015d49c13 | refs/heads/master | 2020-04-23T08:07:18.988680 | 2019-02-16T16:53:46 | 2019-02-16T16:53:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | '''
REARRANGING
'''
def rearrange(l):
neg = list(filter(lambda x : x <= 0, l))
pos = list(filter(lambda y : y > 0, l))
return neg + pos
print(rearrange([12, 11, -13, -5, 6, -7, 5, -3, -6, 0]))
| [
"noreply@github.com"
] | ivSaav.noreply@github.com |
dc988de38dafde9841616befc7d4d26719919628 | 2301b107f5cdb889010e3006662bd01d3010afdf | /mysite/blog/forms.py | f96236d22d2f0b2d2dd3fd3abfcd2b69b1239069 | [] | no_license | AayushKumar001/Blog_Project | c7511590e64e4a71fffc98bdc257de4483c9fa54 | 96155f1a4bb0b8392ed01cc62124391b37e97b80 | refs/heads/master | 2020-06-26T15:36:54.456910 | 2019-07-30T15:03:29 | 2019-07-30T15:03:29 | 199,675,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | from django import forms
from blog.models import Post,Comment
class PostForm(forms.ModelForm):
class Meta():
model = Post
fields = ('author','title','text')
widgets = {
'title':forms.TextInput(attrs={
'class':'textInputClass'
}),
'text':f... | [
"aayush63kumar@gmail.com"
] | aayush63kumar@gmail.com |
c0e2a80a5c7a05603901c79385d2d02f78197ce3 | 55f33979210393cb27f794340877280245546b8a | /web_dynamic/0-hbnb.py | ab544a84e6fd0ff84db352142c1e1407dfe4e506 | [
"LicenseRef-scancode-public-domain"
] | permissive | jisethpenarias/AirBnB_clone_v4 | 17d089f3ddf6c5785aa4478a32e79af6e0a66045 | e66f6d5ebd2e99f12191525819b52c3cbbdff126 | refs/heads/master | 2023-03-05T05:03:59.682644 | 2021-02-14T20:45:33 | 2021-02-14T20:45:33 | 338,604,310 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,329 | py | #!/usr/bin/python3
""" Starts a Flash Web Application """
from models import storage
from models.state import State
from models.city import City
from models.amenity import Amenity
from models.place import Place
from os import environ
from flask import Flask, render_template
import uuid
app = Flask(__name__)
# app.jinj... | [
"1875@holbertonschool.com"
] | 1875@holbertonschool.com |
f27e5edb8552a2488c8c6ee858ce2756cc000f9b | c9345b18a239bc4f989bb04ed6efe4711174f785 | /revdig/revdig.py | ad72111c725f3298c03a5cac12d94db5d8e19bcf | [] | no_license | tardummy01/Pentesting-Tools | a7d57016fc45d63926a87583f6a91bab3fa3164e | 05a289e7f137dd69d1e2606e9e9245aa87050a33 | refs/heads/master | 2021-12-15T02:23:46.618150 | 2017-07-18T12:49:18 | 2017-07-18T12:49:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | #automation script to sweep a CIDR range with dig
#returns hostnames resolved from IPs via PTR records
#syntax: revdig.py <cidr range> <optional-outfile>
#example: revdig.py 208.67.222.0/24 opendns.txt
import subprocess,sys
from netaddr import IPNetwork
import dns.resolver
import dns.reversename
def reverse(ip):
try... | [
"noreply@github.com"
] | tardummy01.noreply@github.com |
4bcc234880b4b09af39ec334d882db6182c70418 | a8a89f1e50872737e9426200744b4ea013126bb7 | /liuyanban/database_operation.py | d75da6e65c361d427e9de0dff276fe9fc5ef4179 | [] | no_license | GroundWu/wheel | 927ea8a90d13e8a2f09964902526c1cc704f2ba4 | 526e332f96bb07a8e726fcf0313ef8372a88d172 | refs/heads/master | 2022-07-04T04:42:28.787058 | 2019-12-13T09:15:01 | 2019-12-13T09:15:01 | 199,314,766 | 0 | 0 | null | 2022-06-21T01:47:48 | 2019-07-28T17:02:51 | Jupyter Notebook | UTF-8 | Python | false | false | 1,116 | py | import datetime,sqlite3
def init_db():
# 链接sqlite3数据库
# 如果文件不存在自动创建
# 创建一个Cursor
# 创建message表
# 提交
conn = sqlite3.connect('message_db.db',check_same_thread=False)
cursor = conn.cursor()
sql ='create table if not exists message (id integer primary key,' \
'user_name varchar(64)... | [
"1175416256@qq.com"
] | 1175416256@qq.com |
d4134963be1e1f09e3ceba83752f25215eb3e746 | ff2995e4d33f04b4a5ee748e74e666d293ceba9b | /ABC/087/B.py | fe73cf61c818673995a8f7f4eedc1ceec4f95acc | [] | no_license | goutarouh/dream-come-true | a870ce9a0dcee39f308d78202afbf5dda47d8c56 | 6c7bbb67646697b3e5f99b91f29e606d7ca37c6c | refs/heads/main | 2023-05-09T03:33:48.137845 | 2021-05-27T14:19:03 | 2021-05-27T14:19:03 | 361,436,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | A, B, C, X = [int(input()) for _ in range(4)]
### mine ###
ans = 0
for a in range(A + 1):
for b in range(B + 1):
for c in range(C + 1):
if a * 500 + b * 100 + c * 50 == X:
ans += 1
print(ans)
| [
"gouta.gorogoro@gmail.com"
] | gouta.gorogoro@gmail.com |
30c7d4d7659cd4bf6a859f0cada7da648921f294 | bd9c828c41e334a743073f8c48600a85a72db214 | /tests/utils/test_logger_types.py | fe035b27d24826d02d67772083efaec03dba0d18 | [
"MIT"
] | permissive | h4wldev/seed | caab268501548e09ffce256945b3264bd234158d | 858e74b002526c7100200241fb4ec36c9f9f691f | refs/heads/main | 2023-03-22T03:24:27.305840 | 2021-01-26T13:52:46 | 2021-01-26T13:52:46 | 323,279,470 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | from seed.utils.logger.types import LogLevel
def test_log_level_kwargs():
log_level = LogLevel(
name='TEST',
level=20,
icon='★',
)
assert log_level.kwargs == {
'icon': '★',
'color': None,
}
def test_log_level_kwargs_with_exists():
log_level = LogLevel(
... | [
"h4wldev@gmail.com"
] | h4wldev@gmail.com |
0b1340655bdd9f4c9193f15b06aeb6d4345b1142 | 89cb758310a5319f4b4ce88ae4339e4a486cf3af | /app_controllers/infrastructure/kubernetes-deployments/services/nginx-modsecurity/02_service.py | 25f5a05fc161c277101dd375f26110e8330e008a | [] | no_license | cavalrytactics/securethebox-server-legacy | df843c4bea87dfee139cf2661f680af2f3b9af4e | ded8dc68bfcaceee6b626f01d2d03c606155da06 | refs/heads/master | 2022-04-04T13:21:28.813670 | 2020-02-08T20:56:04 | 2020-02-08T20:56:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | import sys
def writeConfig(**kwargs):
template = """
apiVersion: v1
kind: Service
metadata:
name: {serviceName}-{userName}
annotations:
external-dns.alpha.kubernetes.io/hostname: {serviceName}-{userName}.{clusterName}.securethebox.us
spec:
selector:
app: {serviceName}-{userName}
ports:
- name: ht... | [
"charleschong@Charless-MacBook-Pro.local"
] | charleschong@Charless-MacBook-Pro.local |
d06822878055ae52012adaa09880f8b011647d6a | e74785135a2d95fdff44559d6c803e2184248f7d | /plotifystock.py | 638d628e0b78c0b6b3004e890f8dbd714661256e | [] | no_license | Akash9varun/Plotting-Real-Time-Stock-Data | 28ca58e95a5992fbd5a40f1ee482e6a0041acaf3 | 4abad26dea4105dac3ec06d560ba4ed9309939e3 | refs/heads/master | 2022-12-23T11:23:50.677500 | 2020-09-09T14:19:14 | 2020-09-09T14:19:14 | 294,134,365 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | import datetime as dt
import matplotlib.pyplot as plt
import matplotlib.animation as animation
from yahoo_fin import stock_info
stockName = input("Enter The Company : ")
price = stock_info.get_live_price(stockName)
print(price)
fig = plt.figure()
ax = fig.add_subplot(1, 1, 1)
xs = []
ys = []
def animate(i, xs, ys)... | [
"noreply@github.com"
] | Akash9varun.noreply@github.com |
e2f3c7c4ad8be45b2a263e0d092ce0a2ae0e6976 | 182d686a7853d5906882e18ba3b9a7b93ca7dda7 | /queryparams.py | 28a2189aa7e414f82693e0565ed06b284bc658bc | [] | no_license | Sakthi299/fast_api | 4e475511dccf780d7d0313b306a7d1ad95e3d353 | 498f9527bd194372d16f8c16c42ce476c36aa69d | refs/heads/master | 2023-02-11T19:09:12.702391 | 2021-01-05T19:23:11 | 2021-01-05T19:23:11 | 327,094,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | from typing import Optional
from fastapi import FastAPI
app = FastAPI()
@app.get("/") #localhost:8000/
def hellomessage():
return { "Hello":"Pupil" }
@app.get("//") #localhost:8000//?Good day ie.)Good%20day
def hellomessage(note: str):
return { "... | [
"sakthiarun299@gmail.com"
] | sakthiarun299@gmail.com |
549d63b7b97699a8388e383546e06d0632da8669 | a6dac58077875364559fb3794a5de389a17ed0c3 | /covid_clinical.py | 7819b61f2de9c68e0c567d180929317c6f3b828f | [] | no_license | BhavyanshM/COVID_Predictions | f7d8ee99d00d79cb3024849c3a64169f260cba4d | eef98911d4a75fd278ff5793d6f6f21b8f7c64d5 | refs/heads/main | 2023-08-11T03:16:13.993820 | 2021-10-07T20:50:20 | 2021-10-07T20:50:20 | 414,753,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,418 | py | import c3aidatalake
from sklearn.preprocessing import LabelEncoder, OneHotEncoder
import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
import numpy as np
# dataLineList = c3aidatalake.fetch(
# "linelistrecord",
# {
# "spec" : {
# "filter" : "",
# "limit" : 1000000
# ... | [
"bhavyanshmishra@gmail.com"
] | bhavyanshmishra@gmail.com |
c71f82e456fbc16e7dbd2539b8d844179602b5d2 | 2ca1107adc19c43118558f3487d6bb474da3a324 | /wemo_integration.py | f74b4ce9efa333650812c9358b531ee787808736 | [] | no_license | TMo484/homeButler | c631d4cc38f19b80bff37e84522b2f9c32e26c50 | eed7cff0d59b694d020d52b486069fa4c70952f1 | refs/heads/master | 2020-08-10T07:28:07.433166 | 2019-10-10T22:07:26 | 2019-10-10T22:07:26 | 214,293,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 27 20:24:54 2017
@author: Tom Mori
"""
import ouimeaux.environment as wemo_env
from PIL import Image as img
try:
env = wemo_env.Environment()
env.start()
env.discover(seconds=10)
except OSError:
print ("Environment already started")
cla... | [
"noreply@github.com"
] | TMo484.noreply@github.com |
f6b76b989bff888993a075ab96a520c07bf1df26 | f54b7fa675df8d0e30c447d7212f7116f16b7e42 | /Kattis/electricalOutlets.py | 851ff22acf1fead374bcf7e4ac700dc3180133ac | [] | no_license | ManuLam/Competition | eccee2c3432d46e1e3d028f6ebc04285d396c85a | a01ea254243b4799bd8c44cd94c95e74786415af | refs/heads/master | 2023-06-27T16:56:58.845783 | 2021-08-01T10:26:04 | 2021-08-01T10:26:04 | 76,399,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | for _ in range(int(input())):
outlets = list(map(int, input().split()))[1:]
print(sum(outlets) - len(outlets) + 1)
| [
"noreply@github.com"
] | ManuLam.noreply@github.com |
6495be93d060a7d4678fb013b797c6512d410bea | eb65bf1aabd08aef7e06dc4479f49314dae1318d | /tools/u5patch.py | 2ee018a373733aa58287b49fe0c361ae5a95c049 | [
"Apache-2.0"
] | permissive | Drunella/u5remastered | 0fc5a9131eda1eefb40570b894d3cf7e53493be6 | 3325533760ec6c1d03710172d142ad454e17d98b | refs/heads/master | 2023-05-13T02:24:01.950150 | 2023-05-09T19:26:18 | 2023-05-09T19:26:18 | 182,454,812 | 20 | 3 | Apache-2.0 | 2021-11-21T22:27:40 | 2019-04-20T21:12:06 | Assembly | UTF-8 | Python | false | false | 12,569 | py | #!/usr/bin/env python3
# ----------------------------------------------------------------------------
# Copyright 2019 Drunella
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http:/... | [
"48769805+Drunella@users.noreply.github.com"
] | 48769805+Drunella@users.noreply.github.com |
5d0f9e57bb6660e97598c6c6b079cd2ef7cb2e2d | c67d9ef4ce3c27d0b7cfc5ef5cbfbbaf6e4c40a2 | /cparser.py | b5af5650f9e86104f82821d9a85d66fd1a40982e | [] | no_license | jefree/CienciasParser | aac63693186aba84eb3a2dd815b1e3184e23b895 | c4b1a62503f775ef2cc7b0150e93ea07c9507741 | refs/heads/master | 2020-05-19T18:43:19.482824 | 2015-05-14T18:37:11 | 2015-05-14T18:37:11 | 35,629,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,457 | py | from ctree import Tree
class Parser(object):
def __init__(self, scanner):
self.scanner = scanner
def compile(self):
if (self._gen_tree()):
self._process_tree()
def _gen_tree(self):
s = self.scanner
if (s.next() != 'BEGIN'):
print("Error: the prog... | [
"jgarzon920429@gmail.com"
] | jgarzon920429@gmail.com |
b43e5c81f7e1013715b2ee93728217f0d437096a | c000c69e65d89851d264089118a87103dc252d8c | /preprocess/gen_h5_alibaba_train_part_25000_1024_9_drop0.001.py | 7a692f736e615cff3afd885ee7cdd771ff26f3db | [] | no_license | daqingyi770923/BDCI2018-pointnet- | dd96c610f954254a85ea4b864936db69e5d4d064 | 26ae723ad4baf41df765bc76fc748fbd1a72b259 | refs/heads/master | 2022-10-25T08:57:44.750390 | 2020-06-15T14:02:26 | 2020-06-15T14:02:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,209 | py | import os
import numpy as np
import sys
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
ROOT_DIR = os.path.dirname(BASE_DIR)
sys.path.append(BASE_DIR)
sys.path.append(os.path.join(ROOT_DIR, 'utils'))
import data_prep_util
import indoor3d_util
from tqdm import tqdm
data_dir = "/media/training"
indoor3d_data_dir =... | [
"357787252@qq.com"
] | 357787252@qq.com |
fa73f9959ecf4202b9cf34bd3d9e1fd01ac91e7b | 89c4a43a505df8fdf1f0d7386988c4896c2e631b | /google/ads/googleads/v6/enums/types/campaign_draft_status.py | 34bd35db00b4fe08cb76ba66e68970f75c6342cc | [
"Apache-2.0"
] | permissive | hurricanelennane/google-ads-python | a0a1fed690776a8bb2e81f637eb7eae10fb4992f | 310a488b6fdad9d5beea8fa4b166edce779a2511 | refs/heads/master | 2023-07-04T03:07:53.344466 | 2021-07-16T19:06:36 | 2021-07-16T19:06:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"noreply@github.com"
] | hurricanelennane.noreply@github.com |
2366599f0e567f608fa33005f7ca20f30c303877 | 462c56e7454c97e0541588b9be66a4e216ea20fd | /119.pascals-triangle-ii.py | 7fd4a9b31ba4be874c9ab04d023f055a5b8a5048 | [] | no_license | LouisYLWang/leetcode_python | d5ac6289e33c5d027f248aa3e7dd66291354941c | 2ecaeed38178819480388b5742bc2ea12009ae16 | refs/heads/master | 2020-05-27T08:38:48.532000 | 2019-12-28T07:08:57 | 2019-12-28T07:08:57 | 188,549,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | #
# @lc app=leetcode id=119 lang=python3
#
# [119] Pascal's Triangle II
#
class Solution:
def getRow(self, rowIndex: int) -> List[int]:
if rowIndex == 0:
return [1]
if rowIndex == 1:
return [1,1]
res = [1]
priorRow = self.getRow(rowIndex - 1)
i = 0
... | [
"louis.yl.wang@outlook.com"
] | louis.yl.wang@outlook.com |
32d5f48e8d864d4c8e95ca5f5239e4c7abc433c0 | 44aa618e1b38bae7bde045f9d3593d9aa1e1e849 | /ex38.py | df0dcce94be9c6b2e22e4af2082b042acf776e9d | [] | no_license | disdi/LearnPythonTheHardWay | 828099bd7f9d6230e7d7666e0823be77848d297c | eae3cfc431740c330cd99bc8b22ee279120b289c | refs/heads/master | 2020-12-11T07:17:28.098088 | 2013-06-24T11:28:47 | 2013-06-24T11:28:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | ten_things = "Apples Oranges Crows Telephone Light Sugar"
print "Wait there's not 10 things in that list, let's fix that."
stuff = ten_things.split(' ')
more_stuff = ["Day", "Night", "Song", "Frisbee", "Corn", "Banana", "Girl", "Boy"]
while len(stuff) != 10:
next_one = more_stuff.pop()
print "Adding: ", next_one
... | [
"c.dutson@ry.com"
] | c.dutson@ry.com |
4e0ce17491f810d996a01eec19880f1dcc905d48 | a35eafada6a3fcb30d3e61954c9172b425879d9a | /Collector.py | ab174fc084ed240432f8c27923b84319bb23ad90 | [] | no_license | rpeace/contagion | 21d498ada8109e40af81e2f78407bd9d9d378c94 | b47f725256c4a51e7c0321298003e58644b06eb1 | refs/heads/master | 2016-09-06T11:58:54.381253 | 2015-04-18T09:23:28 | 2015-04-18T09:23:28 | 33,201,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,154 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Mar 23 10:15:44 2015
@author: rob
"""
import pandas.io.data as web
import pandas as pd
import datetime
from datetime import timedelta
from dateutil import parser as dateparser
import connection
class Collector:
def __init__(self):
return
def get_stock_data... | [
"rob.peace@gmail.com"
] | rob.peace@gmail.com |
98b26fe08f7c83923cba3d13f8204b817a4a9ce8 | 2581f2c98d497a6adf9bbb62730b02efea08cf80 | /stubs/scales/meter.pyi | cc7fd7bfd725f7e6a9b3eac07b4e7b0c4866789b | [] | no_license | drewp/rdfdb | 1ebbb5cf892fd86f6e3c571b94a97ecd07dd7340 | 8c71f02f989b2de1a4921640d1ca765e6d9efdb6 | refs/heads/master | 2021-04-27T00:31:22.493060 | 2019-08-09T06:15:15 | 2019-08-09T06:15:15 | 123,776,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | pyi | # Stubs for scales.meter (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from collections import UserDict
from greplin.scales import Stat
from typing import Any, Optional
TICKERS: Any
TICKER_THREAD: Any
class MeterStatDict(UserDict):
def __init__(self) -> None: ...
de... | [
"drewp@bigasterisk.com"
] | drewp@bigasterisk.com |
fa21bda381341340951d8b81a85368b0e5429b0f | b25d2a64ec600db2cee7a70e81e84127c67e8b7a | /backend/admin/myGAN/urls.py | 4ccde8eaff21f0e82f06654f45d0fa40ce31557f | [] | no_license | jun951231/my-django-new | e5b48c3f0f67c79fe4b8d01a17ec70b79f023971 | b1a68ef88f49871eb4ba04635f425dbe9e0f9428 | refs/heads/main | 2023-08-24T02:35:04.817430 | 2021-10-29T09:18:54 | 2021-10-29T09:18:54 | 413,241,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | from django.conf.urls import url
from admin.myGAN import views
urlpatterns = {
url(r'autoencodersGans_process', views.autoencodersGans_process),
} | [
"jun951231@gmail.com"
] | jun951231@gmail.com |
16851733ca7f1bda85d54a12b6eaaa4a3d14a0ce | e0b0abc1e8d442adb63cf0e5b8641f4185c5611c | /manage.py | f16ab303512e46b533318951b49e21403bd1a635 | [] | no_license | nramiscal/petDemo | f7d0c149941b2efabdb74a4e10717f540b6d7eee | c4d341105c1b1f14e868f198199fe37cf3687c8f | refs/heads/master | 2020-05-14T08:21:23.669095 | 2019-04-17T23:02:24 | 2019-04-17T23:02:24 | 181,721,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'pets.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you... | [
"nramiscal@gmail.com"
] | nramiscal@gmail.com |
e829bbaaca6fdc6a724b41833d5f5934453f1b83 | 75e951dcf749f62f2a292774968fe95fc4a353c8 | /boa3/neo/__init__.py | d2af9ae09d866dbb6fe33b73fd8e4d6db9a71ff1 | [
"Apache-2.0"
] | permissive | jplippi/neo3-boa | e0a199d1ed2fa39abe09ebd3c013c360ca87f544 | 052be4adebb665113715bb80067d954f7ad85ad5 | refs/heads/development | 2022-08-19T10:17:43.610854 | 2020-05-25T20:30:42 | 2020-05-25T20:30:42 | 265,959,419 | 0 | 0 | Apache-2.0 | 2020-05-25T20:39:59 | 2020-05-21T21:54:24 | Python | UTF-8 | Python | false | false | 727 | py | def to_script_hash(data_bytes: bytes) -> bytes:
"""
Converts a data to a script hash.
:param data_bytes: data to hash.
:type data_bytes: bytearray or bytes
:return: the scripthash of the data
:rtype: bytes
"""
from boa3.neo import cryptography
return cryptography.hash160(data_bytes... | [
"mirellamedeiros.09@hotmail.com"
] | mirellamedeiros.09@hotmail.com |
7f85211534fa866b3fccc650122149034106ce76 | 08056428e2e12c192a06ccf2b775df09263582dd | /arcade/examples/particle_fireworks.py | b40b57bd1b70238f28cf4c6cd58265775b52e0c0 | [
"MIT"
] | permissive | chris48s/arcade | 57d2c4f5986216748adc420d4d2f09153f96f417 | 930ecd8be2d47db1f65173c6f1afc00c0df545c8 | refs/heads/master | 2020-07-13T04:35:30.235743 | 2019-08-28T12:54:43 | 2019-08-28T12:54:43 | 204,991,051 | 0 | 0 | NOASSERTION | 2019-08-28T18:52:19 | 2019-08-28T17:52:18 | null | UTF-8 | Python | false | false | 13,870 | py | """
Particle Fireworks
Use a fireworks display to demonstrate "real-world" uses of Emitters and Particles
If Python and Arcade are installed, this example can be run from the command line with:
python -m arcade.examples.sprite_list_particle_fireworks
"""
import arcade
from arcade import Point, Vector
from arcade.util... | [
"paul@cravenfamily.com"
] | paul@cravenfamily.com |
31be6f4b62905f6ea83850ef965d4edc0e6821ea | f2624e2bb23f9f10e30a2467ef184ed9dd6b0103 | /instances/instance3.py | e225e54fac88491c52e20b27cd0defce68e6e32a | [] | no_license | malachaifrazier/mlst | c291dc968680f5387a7628f4e3ed108c963065b8 | c61391022691a5076ca29141792064f3c9a1139f | refs/heads/master | 2021-01-19T06:27:39.254664 | 2013-07-11T21:08:09 | 2013-07-11T21:08:09 | 11,454,892 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | import networkx as nx
from random import random
def instance3():
lst = []
count = 0
size = []
leaves = 0
while(count < 100):
x = int(random()*100)%10
if(count + x + 1 > 100):
break
lst.append(nx.star_graph(x))
count = count + x + 1
r = 100 - ... | [
"phyowaikyaw@gmail.com"
] | phyowaikyaw@gmail.com |
433adea21fe955288a57dca9a564e92adabeb86b | 0fc790d17c40b8f984aa01d1b784d941a82a2caa | /unit_test.py | 8cd87bc1560da3e98c84713181816894228e00e5 | [] | no_license | phillipgray/random | 261d8279c6e72a5599384af14cb5e72c040d3913 | 556fb67c1a2e3e6dcc8cf0e615e2d65d68bd7b03 | refs/heads/master | 2021-01-10T19:24:36.348871 | 2015-04-30T20:24:47 | 2015-04-30T20:24:47 | 34,476,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | import unittest
def add_1(x):
return x + 1
class MyTest(unittest.TestCase):
def test(self):
self.assertEqual(add_1(1), 2)
if __name__ == '__main__':
unittest.main() | [
"escapethegray11235@gmail.com"
] | escapethegray11235@gmail.com |
39465c0f010c5f9b2cfb5dfa8e11781ff9c0b318 | 1cead6e92058c34e9d1379a35c65c3fc7c503d94 | /flaskapp/app/main/__init__.py | 9ae93ba93e68bce5d68f270ecac053827d1a1905 | [] | no_license | montisan/flaskapp | c7905e9040b28e2c371c9a48149db1c811792744 | 1e397c805bb0b17abcbe52a0af4526ef326157ca | refs/heads/master | 2021-09-20T03:39:15.550502 | 2018-08-03T00:45:44 | 2018-08-03T00:45:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | from flask import Blueprint
main = Blueprint('main',__name__,template_folder='pages',static_folder='static')
from . import views, errors | [
"i@hncoder.com"
] | i@hncoder.com |
4d21d4acf766cfa503fdad6e98b08ec213996475 | f6ab40bba379b470347d3a818b4b74e226034412 | /samza-test/src/main/python/standalone_integration_tests.py | 84054136133ae4c9c25bb1a1fa6da2e4e1d5cc4c | [
"MIT",
"OFL-1.1",
"Apache-2.0"
] | permissive | bringhurst/samza | 0c623879144d82dd1a5876b384427df469317148 | 77dec99be3d40a0d111dbf22d8b49a3f102d3ba3 | refs/heads/master | 2023-02-21T10:41:27.800517 | 2023-02-01T21:33:05 | 2023-02-01T21:33:05 | 19,000,323 | 2 | 0 | Apache-2.0 | 2021-03-02T23:29:11 | 2014-04-21T17:25:06 | Java | UTF-8 | Python | false | false | 1,123 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# 'License'); you may not u... | [
"xiliu@linkedin.com"
] | xiliu@linkedin.com |
4203d852f944d89d80287233c98c87ed74f6ebd4 | 9198d8ee7f56fd1723a4e16e503f47e94b4a376e | /optevolver/hyperparameter/__init__.py | d9bd9ca0275b22d73b75d61b94ee18b042b6329c | [
"MIT"
] | permissive | pgfeldman/optevolver | f39529e1f83cc850344b191a55359e3cd18d0911 | cdb15a8cf40749e20a3bcb72b87a46f269d3eaf5 | refs/heads/master | 2020-09-30T01:29:09.290125 | 2019-12-23T14:57:04 | 2019-12-23T14:57:04 | 227,165,706 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 58 | py | name = "hyperparameter"
"""
The hyperparameter module
"""
| [
"philip.feldman@asrcfederal.com"
] | philip.feldman@asrcfederal.com |
399e58269bd4f66695f421807152aa52627ff652 | 82a9077bcb5a90d88e0a8be7f8627af4f0844434 | /google-cloud-sdk/lib/tests/unit/surface/storage/list_test.py | eb6c5f661193d257bacafa028af1ae6c5b203704 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | piotradamczyk5/gcloud_cli | 1ae2553595e569fad6ce84af62b91a7ee5489017 | 384ece11040caadcd64d51da74e0b8491dd22ca3 | refs/heads/master | 2023-01-01T23:00:27.858583 | 2020-10-21T04:21:23 | 2020-10-21T04:21:23 | 290,238,061 | 0 | 0 | null | 2020-10-19T16:43:36 | 2020-08-25T14:31:00 | Python | UTF-8 | Python | false | false | 2,158 | py | # Lint as: python3
# -*- coding: utf-8 -*- #
# Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | [
"code@bootstraponline.com"
] | code@bootstraponline.com |
d646b8ec935a81c7baa643d281c1ad1485502308 | a9c0daa4a7b9a4d7341afcab270c5b5debb8c13f | /env/lib/python3.6/copyreg.py | e492049eb2a920d7955e40b850a43d8d3b20bc6c | [] | no_license | phamcong/alienator-plf | bad8c4e003fd189c43243b31ef2b975b6f154754 | ea65628af66fbca51f2248ceb4ba93f858dbddce | refs/heads/master | 2022-11-26T01:28:38.286261 | 2017-11-07T15:12:08 | 2017-11-07T15:12:08 | 109,412,097 | 0 | 1 | null | 2020-07-25T23:43:17 | 2017-11-03T15:30:22 | JavaScript | UTF-8 | Python | false | false | 50 | py | /Users/cuongpham/anaconda/lib/python3.6/copyreg.py | [
"ccuong.ph@gmail.com"
] | ccuong.ph@gmail.com |
2b81fe8b642216b2df6c12e404c1d5540a6c855c | 46796f2ed269ad127c887b62946ca0ccfe955dd6 | /fishing/fishinggame.py | e79396ed1eea063714ef5f4442bcd72f5852e2df | [] | no_license | Walker144/Game | 2d09ec2e3f2ecedc5430c47981a3e345a6e67c27 | 039874d1cd539c6d43bebd30cf2c3f2666960f12 | refs/heads/main | 2023-09-02T17:12:40.360546 | 2021-11-15T21:02:58 | 2021-11-15T21:02:58 | 425,958,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,238 | py | import pygame
from pygame.locals import *
import random
import sys
clock = pygame.time.Clock()
screen = pygame.display.set_mode((1000,768))
pygame.init()
FONT = pygame.font.Font('assets/COMIC.ttf',32)
BIGFONT = pygame.font.Font('assets/COMIC.ttf',64)
SMALLFONT = pygame.font.Font('assets/COMIC.ttf',20)
def Collisiond... | [
"86158990+Walker144@users.noreply.github.com"
] | 86158990+Walker144@users.noreply.github.com |
4169e465d2091e5039d52cd701a70031a0bd8b68 | 96624ca3647681bc8c55562cd9ca46aec1749bf3 | /RF/data.py | 17594174c102f3c11960ae683649f1eb5a3eb986 | [
"Apache-2.0"
] | permissive | KushajveerSingh/ds_cup | 5c2bf0107825b4899aa951577c26ae65f9d17460 | ed1baa05e845ac926e94312c9f268748c8146fc7 | refs/heads/main | 2023-04-23T03:20:54.298450 | 2021-05-06T04:51:08 | 2021-05-06T04:51:08 | 351,270,810 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,232 | py | import hydra
import pandas as pd
from sklearn import preprocessing
import os
from pathlib import Path
def handle_columns(cfg, df, median_dict, label_encoder, is_train=False):
# Add column for missing values
if cfg.data.add_missing_col_rep_income:
df['isNaN_rep_income'] = (df['rep_income'].isnull()).as... | [
"kushajreal@gmail.com"
] | kushajreal@gmail.com |
80f87f52243e0c3d72db8f910d0adf58a4128eea | 3a2cc6f79c7d9d134a7f8dace045349a22cb4601 | /gcd2.py | 5b8a91954639fcf7ae1a3a2e9f75548eff314952 | [] | no_license | Hasil-Sharma/Spoj | de6dff1e5540b8982eb968b47aad4e14f03bd372 | a6b466ab2a57dcf80550d14a17efeeb44e91f5ce | refs/heads/master | 2016-09-06T16:04:19.111437 | 2014-07-26T19:27:58 | 2014-07-26T19:27:58 | 11,535,313 | 4 | 8 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | def gcd(a,b):
if b == 0:
return a
else:
return gcd(b,a%b)
def main():
t = int(input())
i = 0
while i < t:
i += 1
a,b = map(int,input().split())
k = gcd(a,b)
print (k)
if __name__ == '__main__':
main() | [
"hasilsharma7@gmail.com"
] | hasilsharma7@gmail.com |
d8d2a48e35e097239649055a3fa18543ec8d028e | 3a70760cfd19466f90ef74dde44de6b5c04feeda | /Business_trips/BTA/migrations/0009_auto_20170609_0911.py | 9cabdbc28b2fd29651a2452d97c7e667c4a10fa9 | [] | no_license | Ronypea/BTA | 7dc0a9e04ff0cc323bea062ca02ddf15d5ae65db | 33e3f8e2a7a847724f0c58dc97d5ed8569003d34 | refs/heads/master | 2021-01-25T09:26:24.088656 | 2017-06-09T19:49:50 | 2017-06-09T19:49:50 | 93,834,813 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-06-09 06:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('BTA', '0008_auto_20170609_0836'),
]
operations = [
migrations.AddField(
... | [
"noreply@github.com"
] | Ronypea.noreply@github.com |
64ba14cf3090b20c47f17a0556b3cdf435c71fbf | e917c394b3c19e59eb23027c52d5fce175b107a0 | /codekata/absolute_beginner/interest.py | c7e5832f0fc9c25ffce4da995acd7751bd58be64 | [] | no_license | gayathrithinagaran/guvi | 0fdc9c9e88204ec0b624bc48d60d42bd06228184 | 02b0c27ac9e81471ea24e4de27af5794ead48a23 | refs/heads/master | 2021-01-04T09:56:21.213702 | 2020-06-10T02:31:14 | 2020-06-10T02:31:14 | 240,496,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | p, t, r = [float(x) for x in input().split()]
s=p*t*r/100
print("%.2f" %s,end="")
| [
"noreply@github.com"
] | gayathrithinagaran.noreply@github.com |
1a69b108104ab3d42180bb32cb033b0b7bc040e7 | c67ecce3b45796a6f9167a7e64f5b0a2c140acbe | /config/settings.py | 0284c6f853597e1d6d59f78df16c239996662065 | [] | no_license | kuratov-v/task_manager | f422aeb3891c82d375cef4cba143a4ca413965a8 | 80ac3c70e35af9820b16a41bb342d48690768ece | refs/heads/master | 2023-03-26T07:31:57.028453 | 2021-03-21T15:01:09 | 2021-03-21T15:01:09 | 300,302,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,329 | py | from pathlib import Path
import os
from datetime import timedelta
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.getenv("SECRET_KEY")
# SECURITY WARNING: don't run ... | [
"kuratovv29@gmail.com"
] | kuratovv29@gmail.com |
700bebf351fba21aaf94d65d5388820ac3aabefd | bc3301f15d5b096825d21fd1e0546a15f2dcbde1 | /Apps/HttpRequestPrediction.py | d75db8c20d4b301ef23258e22dfd4963159a96e2 | [] | no_license | MoleImg/TFWork | 2ada8622a6dea33998d77d04ef6a22d72a84b37b | 51b6189e65ccdaae1aa2d862d63b902cdae1e091 | refs/heads/master | 2021-09-07T13:58:20.637051 | 2018-02-23T22:39:47 | 2018-02-23T22:39:47 | 105,696,179 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,519 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.preprocessing import MinMaxScaler
import tensorflow as tf
def create_dataset(data, time_step):
data_x, data_y = [], []
for i in range(data.shape[0] - time_step -1):
x = data[i:(i+time_step),:]
y = data[(i+1):(i+... | [
"ACM@CHOUdeMacBook-Pro.local"
] | ACM@CHOUdeMacBook-Pro.local |
e3178c94dd414b8249f7deca07e3952bfa9009ff | 415828cfdba3c6c1622b98d625f8d99508044dd8 | /Mocks/Steering.py | 2119bb2d40b8eaef5f0657ea2878dce5469b3d80 | [
"MIT"
] | permissive | Solar-Gators/emulators | 9013f092dc5d941e2404476f9041b5e1367bc1c2 | d2e68d06a867d65601b7cbadd7dffdf62cb7844d | refs/heads/master | 2023-03-12T12:23:28.865070 | 2020-08-20T13:02:58 | 2020-08-20T13:02:58 | 275,932,558 | 0 | 0 | MIT | 2020-09-29T04:03:40 | 2020-06-29T21:44:15 | Python | UTF-8 | Python | false | false | 1,123 | py | import importlib
import ctypes
import random
from .Message import Message
# Emmulates the main AUX steering board
class AuxSteering(Message):
def __init__(self, addr_CAN, addr_telem, emulator=None):
super().__init__(addr_CAN, addr_telem)
self.emulator = emulator
self.cplusOn = 0
self... | [
"johnjcarr17@gmail.com"
] | johnjcarr17@gmail.com |
db9049fd0309b22d7af58a3011228d7f0efa94b6 | e1fffa90c2489e3eca4c6ad70790a7d8338ac6a4 | /src/doctors/views.py | ea694ac017d3c206bce102fa1faca5c9f3e70d19 | [] | no_license | jessbsm/DocSpeed | 45cd7bbeb6e903c42eb130cb4a7b5ec83382ec92 | bc0aca7b126e6ab13c4ab79304225acb296bf157 | refs/heads/master | 2021-01-10T09:04:02.018678 | 2016-02-05T16:31:10 | 2016-02-05T16:31:10 | 51,158,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,418 | py | from django.contrib import messages
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render, get_object_or_404, redirect
from .forms import DoctorForm, PatientForm
from .models import Doctor, Patient, adress
def doctor_create(request):
form = DoctorForm(request.POST or None)
... | [
"corthiclem@gmail.com"
] | corthiclem@gmail.com |
f991fc5987296eb0dd0aa9b3c43811c58f52deef | d432f605e3b7fb329318b85fd455bcf48121493e | /gallow.py | 54a0b89ed1bc6f8c2e7611067c26c108ef7aa075 | [] | no_license | YuriyShashurin/Gallow_practice | 4de0b32d29f3c83fed3f47e9738554e629cba07e | 61b14015df79b23d1fa2e765cfbdf502fe76f9b7 | refs/heads/master | 2023-03-12T14:22:04.038328 | 2021-02-27T16:42:23 | 2021-02-27T16:42:23 | 342,030,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,246 | py | import random
WORDS = ['skillfactory', 'testing', 'blackbox', 'pytest', 'unittest', 'coverage']
def random_word(WORDS):
return random.choice(WORDS)
class GallowGame():
def __init__(self, *args):
#Для целей тестирования подставляем заданное значение в self.name, если передан параметр при создании экзе... | [
"shashurin.edu@mail.ru"
] | shashurin.edu@mail.ru |
34b85967a366d74bb07f2b4deb500fcab28393c9 | c4bb0da038b32b3f11698774efa5e180e4196aff | /testcase/testcase1.py | d1b356818767f6a094b5d71db36bbcc73bd12c61 | [] | no_license | wy142222/pytest_exercise | 8f6b22a6d59457a8c4c8c4f065b6998cd06b3064 | 5c2e02ea524744bed300a86281d0d1e38cf941bc | refs/heads/master | 2023-03-03T07:26:01.923012 | 2021-02-07T11:36:23 | 2021-02-07T11:36:23 | 335,199,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | '''
作业:
补全计算器(加减乘除)的测试用例,编写用例顺序:加-除-减-乘
创建 fixture 方法实现执行测试用例前打印【开始计算】,执行测试用例之后打印【计算结束】
将 fixture 方法存放在 conftest.py ,设置 scope=module
控制测试用例顺序按照【加-减-乘-除】这个顺序执行
结合 allure 生成本地测试报告
'''
import pytest
import cal
c= cal.Cal()
@pytest.mark.run(order=1)
def test_add(fixture_cal_add):
add_result=c.add(fixture_cal_add[0],fix... | [
"17621623292@163.com"
] | 17621623292@163.com |
362fdcadf30efa40066a99c2e193a071f11fedca | 34d31b5ca9695d8621cdc8a5ec19dc5c6c866474 | /Problems/Test/task.py | 43b5488e5859912be084a9e3d0dc339a30219026 | [] | no_license | niipinto001/Simple-Chatty-Bot | d60b67c0caedc20d9616e390f661d6cf34f9a2c7 | accfb4e152b49f7f81d036d6eb76d380324e42f1 | refs/heads/master | 2022-10-23T10:39:26.432260 | 2020-06-20T01:36:00 | 2020-06-20T01:36:00 | 273,617,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | data = (input())
print(data)
| [
"niipinto001@gmail.com"
] | niipinto001@gmail.com |
dbf61aafeff31ea51c1687ffd2de5c5002338014 | 4ec22ca9646ae1495e58d787849c63130868fdc5 | /MovieRater/Scrapers/metacritic.py | 12a5be05dd99621392aa184f1d418f7103247db2 | [] | no_license | Skumar30/MovieRating | d9563555d14af27ce057617cd417c60686d121b7 | ad138783d16da509c4e48bd13b0b4c990a9d7908 | refs/heads/master | 2020-04-01T03:44:10.835324 | 2018-10-14T14:04:06 | 2018-10-14T14:04:06 | 152,834,445 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | import scrapy
class metaSpider(scrapy.Spider):
name = 'meta'
start_urls = ['https://www.metacritic.com/browse/movies/title/dvd']
def parse(self, response):
print ("its runnning")
SET_SELECTOR = '.title'
flag = False
for object in response.css(SET_SELECTOR):
... | [
"srk004@ucsd.edu"
] | srk004@ucsd.edu |
2e7a302f37e01983e5cce2dbf5631abfb32dbcac | e811662c890217c77b60aa2e1295dd0f5b2d4591 | /pinduoduo.py | 1e343affa54327a68a706b640607c00d12be0d0f | [] | no_license | rewonderful/MLC | 95357f892f8cf76453178875bac99316c7583f84 | 7012572eb192c29327ede821c271ca082316ff2b | refs/heads/master | 2022-05-08T05:24:06.929245 | 2019-09-24T10:35:22 | 2019-09-24T10:35:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,529 | py | # #!/usr/bin/env python
# # _*_ coding:utf-8 _*_
# import random
# # def partition(nums,l,r):
# # pivot = nums[l]
# # while l<r:
# # while l<r and nums[r] >= pivot:
# # r -= 1
# # nums[l] = nums[r]
# # while l < r and nums[l] < pivot:
# # l += 1
# # nums[r... | [
"457261336@qq.com"
] | 457261336@qq.com |
dec4dc95994248dc87845a908849e9cca3616727 | 2a54f25eec0496a0bc5b6ba1d3913959c22c6319 | /mysite/mysite/settings.py | ebb5352c202b22a01d7ca134222902f503c1761e | [] | no_license | junes7/django_relation | 95e0b9d1dcd26ad4e0c8ab74a98cbf40f15676fe | eea639a826b0d5f93edbcf2fa140caa5e35ac6ca | refs/heads/master | 2022-11-13T17:16:23.846428 | 2020-06-26T12:29:39 | 2020-06-26T12:29:39 | 274,003,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,638 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.1.15.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
fr... | [
"2junes@naver.com"
] | 2junes@naver.com |
5468368bce8994b9273e3e024c8aa7ae2d284ad9 | 52bb7bb5b5e907695e987f12516ba5e044434cd9 | /base_python/0118/shuixianhua.py | 94f40573db1fbf3d227265b7c963d3654a57f885 | [] | no_license | yamonc/bigData_course | 89b5765f5cb33c46feb3d4a79baefa33d86e55db | ded64ec5a3bc3f1d4ef38ec60882f074c30ba77c | refs/heads/master | 2022-12-08T23:37:57.674823 | 2020-08-10T12:34:23 | 2020-08-10T12:34:23 | 257,631,919 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | # 水仙花数也被称为超完全数字不变数、自恋数、自幂数、阿姆斯特朗数,它是一个3位数,
# 该数字每个位上数字的立方之和正好等于它本身,例如:$1^3 + 5^3+ 3^3=153$。
for num in range(100, 1000):
# 求出个位数
low = num % 10
# 求出 十位数
mid = num // 10 % 10
# 求出 百位数
high = num // 100
if num == low ** 3 + mid ** 3 + high ** 3:
print(num) | [
"1165828007@qq.com"
] | 1165828007@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.