blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
e75b174da365df8b83a6955eb68b0452c45eddf3 | e19e9da795664645e38c95a6bae27a8c50a63bc0 | /examples/probzoo/nlpca_mnist.py | c8b2501d321128782113c126b9ceed0add4b5579 | [
"Apache-2.0",
"BSD-3-Clause",
"Minpack"
] | permissive | xcgfth/InferPy | 185003e323c14c35433f88ca95ac7c6e301cb71d | c0503de31ba8f248ddda64bf55ab2a54d0b24713 | refs/heads/master | 2020-06-11T00:00:37.536557 | 2019-05-27T18:04:46 | 2019-05-27T18:04:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,272 | py | # required pacakges
import inferpy as inf
import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
from inferpy.datasets import mnist
# number of components
k = 2
# size of the hidden layer in the NN
d0 = 100
# dimensionality of the data
dx = 28*28
# number of observations (dataset size)
N = 1000
... | [
"rafacabanas@gmail.com"
] | rafacabanas@gmail.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 |
f370719f650e1ac160855baefd47d9249b6345fa | 4f1b4a8040fdd31ed795b08a0ab88e87a8840a28 | /PYT/block1_part1.py | b35ac2d2d80278ad5f241aef9f498cecdbbc381c | [] | no_license | atinanit/master_upf | d0a8cf66d85505e1d962f0f40ac601ca151217a8 | 1920db7e0619c04ee6286e09a156a412bdea7cfd | refs/heads/master | 2021-01-18T09:12:12.186315 | 2016-01-20T10:46:28 | 2016-01-20T10:46:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | #!/usr/bin/python3
# encoding: utf-8
import numpy as np
def get_sphere_volume(radius):
"""Calculate the volume of a sphere
>>> get_sphere_volume(5)
523.5987755982989"""
assert radius > 0
return 4 / 3 * np.pi * radius ** 3
def recursive_factorial(n):
"""Calculates recursively the factorial
... | [
"llrs@users.noreply.github.com"
] | llrs@users.noreply.github.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 |
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 |
3641a73ee26062916ed3b69d6410289a73e49b66 | 65efd0155b68b3cd3101930cad1273fdb9892dca | /unsave.py | 57d34eae30136b34d8e51721ddcd3a8a883f64a8 | [] | no_license | BenJamesmudd/random-replier | 0320d4cfdec5063cfab7306978d474b0de9a4814 | 59ac701bd28b3e2f4e1e88d4529d6067c3b9ded4 | refs/heads/master | 2020-06-26T12:10:05.537196 | 2019-07-30T09:48:45 | 2019-07-30T09:48:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | import praw
import pdb
import re
import os
import time
import random as rando
reddit = praw.Reddit('bot1')
def unsave():
saved = reddit.user.me().saved(limit=1000)
for s in saved:
try:
s.unsave()
print("Unsaved post")
except AttributeError as err:
print(err)
print("Uns... | [
"capnben2009@hotmail.com"
] | capnben2009@hotmail.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 |
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"
] | noreply@github.com |
506ad697da20580fe7c04f475cd6a9627d12a143 | 3fb0ce33f00b96ae3808a32da44de3e887434afb | /.提出一覧/AtCoder/ABC152/b/main.py | db01e75914ac864f9d5405badbb44bdf931bfdbe | [] | no_license | Yukikazari/kyoupuro | ca3d74d8db024b1988cd0ff00bf069ab739783d7 | 343de455c4344dbcfa4524b492f7f6205c9db26f | refs/heads/master | 2023-02-21T01:53:52.403729 | 2021-01-27T03:55:01 | 2021-01-27T03:55:01 | 282,222,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | #!/usr/bin/env python3
#import
#import math
#import numpy as np
#= int(input())
#= input()
a, b = map(int, input().split())
print(str(a) * b if a < b else str(b) * a)
| [
"haya_nanakusa793@yahoo.co.jp"
] | haya_nanakusa793@yahoo.co.jp |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 | |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 | |
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 |
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"
] | noreply@github.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 |
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"
] | noreply@github.com |
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 |
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 |
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 |
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"
] | noreply@github.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 |
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 |
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 |
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 |
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"
] | noreply@github.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 |
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 |
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 |
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 |
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"
] | 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 |
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 |
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"
] | 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 |
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 |
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 |
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 |
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 |
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"
] | noreply@github.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 |
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 |
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"
] | noreply@github.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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
98b78f3268db38bac68e8acc941af25952d0a630 | 19d178c8ca18dfbb2aba6658328840dbae76f6ee | /app_blog/migrations/0013_auto_20191007_1345.py | ee13c457c822707ffd1bb146cf513905b611e9cc | [] | no_license | mhosseinifar8/hamtimi.ir | ef60560a45661b118bb2130a9a5e4b91ff74bb0b | 0dfbd776446cbe46eb4836ba8ea09d6ba7041be4 | refs/heads/master | 2023-05-12T09:23:31.010553 | 2023-05-08T11:32:52 | 2023-05-08T11:32:52 | 230,537,781 | 0 | 0 | null | 2022-12-08T05:31:55 | 2019-12-28T00:36:03 | HTML | UTF-8 | Python | false | false | 787 | py | # Generated by Django 2.2.1 on 2019-10-07 13:45
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django_jalali.db.models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"mhosseinifar8@gmail.com"
] | mhosseinifar8@gmail.com |
03e79652d0133719abfc84b5c90cf805874bda49 | e8035180df87df7fc4644c9464d7c6167cef8cb6 | /plotting/coverage_scores_distribution.py | 76634852165e19be8165915b458a988a4c2a92be | [] | no_license | elhossary/bioinformatics_analysis_toolbox | ad5cb575cb55fe367541e03cb374eca6eb772a1b | f45b80b94dcbffced6874f43a223dedecd131491 | refs/heads/master | 2022-05-11T00:40:01.615531 | 2022-03-28T12:21:58 | 2022-03-28T12:21:58 | 235,318,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,552 | py | from wiggle_parser.wiggle_parser import WiggleParser as wp
import matplotlib.pyplot as plt
import pandas as pd
import collections
import numpy as np
def main():
f_wigs_parsed = wp("test_data/cholerae/TERM-SEQ_LAST-BASE_12898-BCM-rep2_S38_R1_001_div_by_12099864.0_multi_by_10181443.0_forward.wig").parse()
r_wigs_parse... | [
"muhammad_elhossary@hotmail.com"
] | muhammad_elhossary@hotmail.com |
802caa784aff470ce4839a56761cdd49d43d388a | 06b2eed882d8d7034fb7c57b648d5aa37d7f617b | /pycharmproject/爬虫/菜鸡/gifduoxiancheng.py | 4c717acdfc70ad2136f7dce63eb021d9e85d0c52 | [] | no_license | 1974410167/python_projects | 558e2e7a4ea66b083ebd6d2f808b725e1bd153d6 | 81a97cbf41de12bdc3dbc46edf2931075ac4f758 | refs/heads/main | 2023-06-22T09:41:22.038620 | 2023-06-09T15:09:44 | 2023-06-09T15:09:44 | 355,036,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,002 | py | import requests
import queue
import time
from bs4 import BeautifulSoup
import threading
def g_url(q1):
number=0
for i in range(46300,46391):
if number==10:
break
for j in range(0,10):
if number==10:
break
url = "https://www.youquba.net/xieedong... | [
"1974410167@qq.com"
] | 1974410167@qq.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 |
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 |
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 |
f3fbd2e411ceb2a5359ad514111e225891eb4183 | ae6314707ce8957d042b5ba9ee13a5867f01fde8 | /app/models.py | 3e555b543fe842e868d819eb608be24c29d5daa2 | [] | no_license | jfobranco/backends-python-flask | 047ad49d2516f1b09381efbeb76c6ec644d70dc2 | fca7c6f9462703d86e7c79ca3e47be90a8dded70 | refs/heads/master | 2020-06-02T20:29:32.410244 | 2019-06-12T20:49:53 | 2019-06-12T20:49:53 | 191,300,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,966 | py | from datetime import datetime
from . import db
from . import ma
from marshmallow import fields
user_company = db.Table('user_company', db.Model.metadata,
db.Column('user_id', db.Integer, db.ForeignKey('user.id')),
db.Column('company_id', db.Integer, db.ForeignKey('company.id'))
)
class User(db.Model):
id ... | [
"jbranco@infoform.ch"
] | jbranco@infoform.ch |
ee6e5c0ec249a18a7dd998a57ddf1e14f10b54a2 | bbf2f01b73933b3007672990754ba54bde7ac2fb | /dice_loss.py | 3502f4585d1c3dc6142bd4d81d4a93ce5fdfbe08 | [] | no_license | Onojimi/src | 1990a04cc476df8d0bbf0187f76bd41a571dfa93 | 40acc51811f99329fe6541ccb008771b08d7f068 | refs/heads/master | 2020-06-30T19:34:34.460321 | 2019-08-13T13:16:33 | 2019-08-13T13:16:33 | 200,929,064 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | import torch
from torch.autograd import Function, Variable
class DiceCoeff(Function):
def forward(self, input, target):
self.save_for_backward(input,target)
eps = 0.001
self.inter = torch.dot(input.view(-1), target.view(-1))
self.union = torch.sum(input) + torch.sum(target) + ... | [
"18811505578@163.com"
] | 18811505578@163.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"
] | noreply@github.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 |
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 |
5259ec6a7bb88e550da99198f863c2cb61a1921f | 2927e0d5db7663edbca707e7a0ebbc3a10121387 | /test/test_write_annotations.py | e210d6ef9103f6138cac5ca7d138307c6b85ce6b | [
"Unlicense",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | JalexCode/picta-dl | 9f8b6e594dda63ace55fac028930adc8ccd52e68 | b3136628a05add1786566b5dc7e6369065192aa5 | refs/heads/master | 2023-04-30T01:49:11.885419 | 2021-05-22T03:59:54 | 2021-05-22T03:59:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,541 | py | #!/usr/bin/env python
# coding: utf-8
from __future__ import unicode_literals
# Allow direct execution
import os
import sys
import unittest
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from test.helper import get_params, try_rm
import io
import xml.etree.ElementTree
import picta... | [
"“oleksis.fraga@gmail.com”"
] | “oleksis.fraga@gmail.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 |
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 |
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 |
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 |
a2e28acd3151a925d1407eb7e6d3c1e8a179109e | 22805f9ae50e713a2aaad878743897ca1fcab613 | /Python/gui.py | 022c422b7566bb81337d869d11dfa94d6b3d93b4 | [
"Apache-2.0"
] | permissive | jyang-2/SimpleITK-Notebooks | 089826b1347caa433a34244801aa0755f1a39c66 | d417d468e61ad016f87f4e5fc85f8e9b231e7d79 | refs/heads/master | 2020-05-18T14:36:31.107970 | 2017-02-22T17:05:29 | 2017-02-22T17:05:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,376 | py | import SimpleITK as sitk
import matplotlib.pyplot as plt
import ipywidgets as widgets
from IPython.display import display
import numpy as np
class RegistrationPointDataAquisition(object):
"""
This class provides a GUI for localizing corresponding points in two images, and for evaluating registration results us... | [
"zivyaniv@nih.gov"
] | zivyaniv@nih.gov |
3de303636eb4a814554222054cd999e407b70762 | 7637cc91b47c36a223baa764df67646843f0002c | /Loss.py | 65ca2732b5d911146be7730cfe3feaf13b71be51 | [] | no_license | architect-01/MDNN | 907c198bbcb457930f8c9a7f9df79dff42540804 | 911392d90fb9fd09fc85e5af13111a95e3d4aebc | refs/heads/main | 2023-04-18T02:29:18.071292 | 2021-04-26T19:28:52 | 2021-04-26T19:28:52 | 361,482,394 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | import numpy as np
class Loss:
""" Define loss function """
def __init__(self, func_name = 'categorical_cross_entropy'):
"""Sets the loss function
Parameters
----------
func_name : str
Name of the loss function.
Returns
... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.