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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
12e031215e23497b73989ea4cf0808a1ec95f07e | 575ad5e7d90ae1c8121bcb8250cff94290e6ada8 | /Day3/fft1.py | e871f4320311f97675cb183a391145c391847372 | [] | no_license | sammita94/Image-Lab | 472aaa8db7b1fd71269450c99cb704bfd0a9f797 | a3c548ba23bf4da89220c503e7eacdea0a1e653c | refs/heads/master | 2020-07-23T05:49:57.441291 | 2016-11-16T04:27:12 | 2016-11-16T04:27:12 | 73,814,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | """Code for Discrete Fourier Transform using numpy functions
"""
import cv2
import numpy as np
from matplotlib import pyplot as plt
img = cv2.imread('fft.jpg',0)
#Fourier Transform
f = np.fft.fft2(img)
#Shifting the DC component from top left to center
fshift = np.fft.fftshift(f)
#Finding the Magnitude Spectrum... | [
"sammitachakravarti@yahoo.com"
] | sammitachakravarti@yahoo.com |
2d220c223d8de7d4b6a23be7c9e63a51b4fe4af8 | 05f759e98eefcb7962f3df768fc6e77192311188 | /prepro.py | e276e2d990eb9a35f4fef940fdc81b9d31ad80dc | [
"Apache-2.0"
] | permissive | 1048693172/transformer | 17c76605beb350a7a1d6fe50a46b3fbbefb16269 | fd26fab9a4e36816223d80e8287c0b08a6d645d0 | refs/heads/master | 2020-04-15T17:44:58.943322 | 2019-01-09T15:14:40 | 2019-01-09T15:14:40 | 164,885,732 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,267 | py | # -*- coding: utf-8 -*-
#/usr/bin/python2
'''
June 2017 by kyubyong park.
kbpark.linguist@gmail.com.
https://www.github.com/kyubyong/transformer
'''
from __future__ import print_function
from hyperparams import Hyperparams as hp
import tensorflow as tf
import numpy as np
import codecs
import os
import regex
from colle... | [
"1048693172@qq.com"
] | 1048693172@qq.com |
7f370a2f39867e89d89ab28e23fdbd1bf78c5c33 | affb8d9028f52201dc56dff947502134dcac3066 | /class-06/demo/big_O.py | a4cb31e5067e800c86925b9dfb3be4fe661ec627 | [] | no_license | maisjamil1/amman-python-401d1 | 10aa4d81c9082fbdf18badc3de060ce1d5309e1a | 25c37a5a7c023b5a24ba7a6cc303338b62548f83 | refs/heads/master | 2022-12-28T19:23:11.143932 | 2020-10-13T11:58:30 | 2020-10-13T11:58:30 | 287,927,879 | 0 | 0 | null | 2020-08-16T11:11:27 | 2020-08-16T11:11:27 | null | UTF-8 | Python | false | false | 2,410 | py | # Measure # of operations
n = 7 #1 operation
for i in range(n):
print(i) # n operations
# n+1 operations
# n = 5 > 6
# n = 100 > 101
# n = 1000000 > 1000001
# O(n+1)
# O(n)
def testing_bigoh(n):
for i in range(n):
for j in range(n):
print(i,j) # n*n (n^2)
# testing_bigoh(8)
# O(n^2)
nums1 = [2, ... | [
"ahmad.alawad.sf@gmail.com"
] | ahmad.alawad.sf@gmail.com |
729aafbd622a90e8bebf023ef2424d3fcf61b70c | afea9757be324c8def68955a12be11d71ce6ad35 | /willyanealves/services/migrations/0014_auto_20201209_1623.py | aa5563d97e9d3dbc154b4da10bedc96ae1265e5e | [] | no_license | bergpb/willyane-alves | c713cac3ec3a68005f3b8145985693d2477ba706 | 8b2b9922ba35bf2043f2345228f03d80dbd01098 | refs/heads/master | 2023-02-10T19:57:50.893172 | 2021-01-11T16:17:14 | 2021-01-11T16:17:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | # Generated by Django 3.1.2 on 2020-12-09 19:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('stock', '0001_initial'),
('services', '0013_remove_kititem_price'),
]
operations = [
... | [
"jocsadm@gmail.com"
] | jocsadm@gmail.com |
041cf40053b8f029ba5b1f64754d2048cbb70f5e | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res_bw/scripts/common/lib/idlelib/grepdialog.py | 05f4b74a7d37f75455c785428aa681b07d431a4b | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 4,154 | py | # 2015.11.10 21:36:11 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/idlelib/GrepDialog.py
import os
import fnmatch
import sys
from Tkinter import *
from idlelib import SearchEngine
from idlelib.SearchDialogBase import SearchDialogBase
def grep(text, io = None, flist = None):
root = text._root... | [
"info@webium.sk"
] | info@webium.sk |
5aa4ab44e8db688f1fcc7c5792a3d330f805cc4b | e214193fdbc342ce1b84ad4f35bd6d64de7a8767 | /bsn/common/tcp_server.py | af016b7a5eaa3c469a037f78f5023f18cf39703e | [] | no_license | bsn069/py | 78f791dab87c3246a1a173263a703c63c543c8ad | 3b6c2070d38f61eb8511495d38b1cec522ad6de7 | refs/heads/master | 2020-03-10T04:30:00.282303 | 2018-10-07T15:29:45 | 2018-10-07T15:29:45 | 129,193,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,793 | py | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
from bsn.common import file_import_tree
file_import_tree.file_begin(__name__)
import asyncio
from bsn.common.ip_port import CIPPort
from bsn.common.ip import CIP
from bsn.common.port import CPort
from bsn.common import err
import logging
import enum
from bsn.common impor... | [
"513026809@qq.com"
] | 513026809@qq.com |
489be89dfb47f43097ad446f460e1cbd05328464 | 2cfe527e8a5d9c44aa0f83574b1016ec35755446 | /PyFunnels/PyF_theharvester.py | 4b3c10eeaa1b0b57eb4a4a85d46a07744ac7e1e2 | [
"MIT"
] | permissive | polling-repo-continua/PyFunnels | e3d7a6a89d0369914f5b7ca160c16ea9ebe025c6 | f8089c3c39248eb1ef97f2681c43f76f55a07900 | refs/heads/master | 2022-02-14T12:07:09.866528 | 2019-08-13T17:52:07 | 2019-08-13T17:52:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | import xml.etree.ElementTree as ET
class PyFtheHarvester:
CAPABILITIES = ['domains', 'ips', 'emails']
def __init__(self,
file,
list_domains = [],
list_ips = [],
list_emails = []
):
self.file = file
self.list_domains = list_domains
self.l... | [
"noreply@github.com"
] | noreply@github.com |
097abd80763e1b42f4d5a68c9500b5438fdc4a1e | 748cbfda91c8088c8feac93f0dac884a0d334e1c | /jaspar.py | 836b84189a87fefd25d408829b74dd56eea8d398 | [] | no_license | jlwetzel/zfcode | e2aca0b8661079734953cb3d1a9970e2939e1584 | 52e6fba51dbe74d5da9871cbaf28dbc24b7ccad7 | refs/heads/master | 2020-06-30T02:54:17.754259 | 2013-07-30T23:57:27 | 2013-07-30T23:57:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,003 | py | # Code for reteiving and maniupulating the JASPAR sql_table files
# and the JASPAR PWM file.
import os
JASPAR_BUILD = '2009-Oct12-NonRedundant'
prefix = '../data/JASPAR/' + JASPAR_BUILD
protTab = prefix + '/sql_tables/MATRIX_PROTEIN.txt'
annotTab = prefix + '/sql_tables/MATRIX_ANNOTATION.txt'
speciesTab = prefix + ... | [
"jlwetzel@cs.princeton.edu"
] | jlwetzel@cs.princeton.edu |
c91563eee6c60960746a34671256bdc380a91e08 | af3ec207381de315f4cb6dddba727d16d42d6c57 | /dialogue-engine/test/programytest/storage/stores/nosql/mongo/store/test_sets.py | b4a1ce00829727f91194650b0127c7d2bb059299 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mcf-yuichi/cotoba-agent-oss | 02a5554fe81ce21517f33229101013b6487f5404 | ce60833915f484c4cbdc54b4b8222d64be4b6c0d | refs/heads/master | 2023-01-12T20:07:34.364188 | 2020-11-11T00:55:16 | 2020-11-11T00:55:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,711 | py | """
Copyright (c) 2020 COTOBA DESIGN, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distri... | [
"cliff@cotobadesign.com"
] | cliff@cotobadesign.com |
e7b6ed30d1d3b6ae95bd07204d6d545021943528 | a3ffecad8d176142f0f9b7504503365b8e64bd69 | /turtle2/n2.py | 2bd41ffc2fb2ecbcdad4ab57df34e1a505316357 | [] | no_license | dumb-anchovy/mipt_python_1sem | 517a497d879be1f32530c023af2a9481430c024f | 76d4f378ff74345ac3107d42ce16a68cc5d2e46f | refs/heads/main | 2023-08-27T16:48:18.210559 | 2021-11-02T11:25:17 | 2021-11-02T11:25:17 | 410,534,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,199 | py | import turtle as t
a0 = [0, 0, 40, 0, 0, -80, -40, 0, 0, 80, 0, 0]
a1 = [0, -40, 40, 40, 0, -80, -40, 80]
a2 = [0, 0, 40, 0, 0, -40, -40, -40, 40, 0, -40, 80]
a3 = [0, 0, 40, 0, -40, -40, 40, 0, -40, -40, 0, 80]
a4 = [0, 0, 0, -40, 40, 0, 0, -40, 0, 80, -40, 0]
a5 = [40, 0, -40, 0, 0, -40, 40, 0, 0, -40, -40, 0... | [
"noreply@github.com"
] | noreply@github.com |
93106b10ac49c4459a2aba027ec3a84d8b8ae976 | ebb4b093fe5b0f1d806ad5b566d80eee0a63148e | /citydata/parse_census.py | a653771485315e3e460da679736118e3599a332a | [] | no_license | kris-samala/LBSN | b8d8e8660afed0e67870ba31ee9532dde72d3f4e | 9005e66df22cb2fb7ff8da64baddbb399e8c975c | refs/heads/master | 2020-12-24T13:36:00.649302 | 2012-06-07T06:27:10 | 2012-06-07T06:27:10 | 3,608,883 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | import sys
import fileinput
import pickle
#python parse_census.py [state_abbr] [census_raw] census.out
out = open(sys.argv[3], 'wb')
census = {}
state_abb = {}
if len(sys.argv) < 4:
print "Filename required."
else:
for line in fileinput.input(sys.argv[1]):
line = line.split(',')
state_abb[lin... | [
"mksamala@gmail.com"
] | mksamala@gmail.com |
ed2d0c4a5ef120704b2f17e4f84a75fac344740a | 6c53b41340bcacd08b2cbb01214f20beab27fe6b | /env/bin/symilar | db333a323b6132593cc12b208bbc4246dfe55f95 | [
"MIT"
] | permissive | daydroidmuchiri/News-Highlight | 8a9e71ed284622d78a1bdff0e1d4fc26bc999c89 | ab7a9ea7bd29c8ca37e8f923af310999fd4cecde | refs/heads/master | 2021-06-24T17:32:37.913494 | 2019-10-22T07:41:03 | 2019-10-22T07:41:03 | 214,965,319 | 0 | 0 | null | 2021-03-20T02:00:37 | 2019-10-14T06:31:26 | Python | UTF-8 | Python | false | false | 275 | #!/home/daniel/Desktop/python/projects/co/news-highlight/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_symilar
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_symilar())
| [
"daydroidmuchiri@gmail.com"
] | daydroidmuchiri@gmail.com | |
b8d0505385eafd32d112698612fb8469b9c0428a | f06336d8ffcc6028679dff525c60f056f0436e92 | /ChatAj/ChatAj/asgi.py | c257802471be095579816096409cebce83be6805 | [] | no_license | AngelJadan/Primeras-Practicas-con-django | 440fc7efe9c6e49274294765714703ab1c936f8c | fe89c57b16eddb5dcce131212ac5dc3035f41303 | refs/heads/main | 2023-08-19T16:32:19.854395 | 2021-10-14T19:54:51 | 2021-10-14T19:54:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
ASGI config for ChatAj project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"angel.jadan12@gmail.com"
] | angel.jadan12@gmail.com |
94a4be74fbb2627846ed9d68f324dbf2a692b318 | f749d098555c7be9e1693aab470ed260779baf1e | /函数/main.py | c6d78391b84e124ffaa1df7dcb2585cd93198ef4 | [] | no_license | es716/study-Python | 77ece1828aec0d383c5376eddcf4b7bc593c53c1 | 3a7879e23468f981801ee4428583e0cd13848b08 | refs/heads/master | 2021-01-11T00:20:56.205252 | 2016-10-11T04:08:05 | 2016-10-11T04:08:05 | 70,545,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#==============================================
from test import my_abs,power,add_end,calc,person,person1,person2
names = [1, 2, 3]
print(my_abs(-90))
print (power(25, 5))
print (power(25))
print (add_end())
print (add_end())
print (calc(1,2,3))
... | [
"es97@sina.com"
] | es97@sina.com |
6db8075e420794f1f1c675a8d8c85b56937e0f2f | 3240f07f724583313f154ca52d617447a582fa60 | /python-village/conditions-and-loops/ini4.py | 2c52ceaed225258b96b4f4581e6e097d3ae319fa | [
"MIT"
] | permissive | uabua/rosalind | 65b7bf312a1d826e6863ff84f61b43a7c7b3d8bb | 37b3b1a1ef2a245f979ce1c2f08c4d7535d38195 | refs/heads/master | 2021-08-18T22:41:28.360916 | 2021-02-20T19:21:32 | 2021-02-20T19:21:32 | 245,150,385 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | """
ID: INI4
Title: Conditions and Loops
URL: http://rosalind.info/problems/ini4/
"""
def sum_of_odd_integers(start, end):
"""
Counts the sum of all odd integers from start through end, inclusively.
Args:
start (int): starting number in range.
end (int): ending number in range.
Retur... | [
"mariami.chakhvadze.1@btu.edu.ge"
] | mariami.chakhvadze.1@btu.edu.ge |
faf52cb7ec3df25b917e3e95f90c424dd7835be9 | 6c516e6bfb610209b82fd5b97b8cc56613d46813 | /day8/dict01.py | cad85366580f9596c59e34bb69c6e77cbbc0226a | [] | no_license | Eric-cv/QF_Python | 7497d1629d24b78aad141d42de5a28b00da207a4 | 8832faaf63e6fbaaeb2d50befa53d86547c31042 | refs/heads/master | 2022-06-16T21:34:48.077318 | 2020-05-11T11:57:03 | 2020-05-11T11:57:03 | 263,021,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | # dictionary 字典
'''
应用:
貂蝉 --- ['屠龙刀','手榴弹'] 800
诸葛亮 --- ['鹅毛扇','碧血剑','98k枪'] 300
字典:
特点:
1.符号:{}
2.关键字:dict
3.保存的元素的:key:value 键值对
列表 元组 字典
[] () {}
list tuple dict
ele ele key:value #element 元素
'''
# 定义
dict1 = {} # 空字典
dict2 = dict() # 空字典 list=list() 空列表 tuple=tuple() 空元组
dict3 =... | [
"zhangqi_@pku.edu.cn"
] | zhangqi_@pku.edu.cn |
0800aa7da0792d7332654f3ccb4b3ad85fd99712 | 59216c8fa10e1b35b6defecd0d103cb29413a4b3 | /stupyde/fixes/utime.py | 770d09f1dd24cec15d64c648ddf3db69ee16d05b | [
"MIT"
] | permissive | pmp-p/stupyde | d0ca43e1ea5dbec6ce074afc301df6f40985d2e3 | 725bfc790999589c20fb2eea5dc75e03fc5d7ff4 | refs/heads/master | 2021-07-18T03:44:13.272593 | 2020-05-10T04:56:57 | 2020-05-10T04:56:57 | 152,827,405 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | import time as _time
MICROPY_PY_UTIME_TICKS_PERIOD = 2**30
if sys.version_info[0:2]>(3,7):
_PASSTHRU = ("time", "sleep", "process_time", "localtime")
def clock():
return _time.process_time()
else:
_PASSTHRU = ("time", "sleep", "clock", "localtime")
for f in _PASSTHRU:
globals()[f] = getattr(... | [
"mail.peny@free.fr"
] | mail.peny@free.fr |
60aab1d320ca746684132493414659925b08ba03 | e916c49c5fa662e54c9d9e07226bc2cd973d2bf1 | /ucf11/mobilenet_twostream2_max.py | a3016608854db500c3c5ee8969cc9ce7ca2bf52f | [] | no_license | Zumbalamambo/cnn-1 | 7111a3ff70344a9c118971f22539fedaffc394fb | 0cc6ef095f5b03152696a75f44109cb67d62cd0e | refs/heads/master | 2020-03-14T04:07:22.213824 | 2018-03-30T09:02:51 | 2018-03-30T09:02:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,298 | py | import keras
import sys
from keras.models import Model
from keras.layers import Dense, Conv2D, Activation, Reshape, Flatten, Input, ZeroPadding2D, Maximum
import get_data as gd
from keras import optimizers
import pickle
import random
import numpy as np
import config
# train: python mobilenet_two_stream.py train 32 1 1... | [
"huuthai37@gmail.com"
] | huuthai37@gmail.com |
9a7a6e1d171bf14644f7c0a4335a2de37ac7d303 | cfb33f980471042e104a928a09c2e23b983b485f | /Subset/binsearch.py | a5b297922a5780e65cf3005ff88eedc028e2e2ec | [] | no_license | shilpchk/NetworkStructure | 22d819ed9bce217f04366b0f61533ef3e135848a | 5ea3126455ccfe5a8e7fc1e40fd08b9bd6f9e921 | refs/heads/master | 2021-01-19T11:09:24.447938 | 2017-04-11T12:55:52 | 2017-04-11T12:55:52 | 87,933,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | def binsearch(value, arr, N):
low=0; high=N;
while(low < high):
mid = low + int((high-low)/2);
if(arr[mid] < value):
low = mid+1;
else:
high = mid;
return low
| [
"shilpchk@gmail.com"
] | shilpchk@gmail.com |
468a0df45f7aa90ff9775925bbb385b03026e242 | e271c9699d07f4b627ac4cf71b4bb4c233af2eb1 | /packassembler/tests/base.py | 16139e28f40f950802e6ff24fb9993d5d3a3ac3e | [
"Apache-2.0"
] | permissive | PackAssembler/PackAssembler | 379912ff59a00797a35e70ce51ac5cfc7db3b3fc | 284a5f31ec2f05f71fe30397a6da069a0a8cb45f | refs/heads/master | 2016-09-05T17:26:21.017491 | 2014-07-07T13:09:13 | 2014-07-07T13:09:13 | 11,825,806 | 0 | 1 | null | 2014-04-22T03:07:13 | 2013-08-01T19:30:34 | Python | UTF-8 | Python | false | false | 1,119 | py | from pyramid import testing
from copy import copy
class DummyRequest(testing.DummyRequest):
session = {}
def flash(self, msg):
self.session['flash'] = [msg]
def flash_error(self, msg):
self.session['error_flash'] = [msg]
class BaseTest:
def _get_test_class(self):
pass
... | [
"stephenmac7@gmail.com"
] | stephenmac7@gmail.com |
fce283892ba59dcf2ba42e224830b42612d88aa5 | ec3e9925af8742d578fd11aac6f000ced71aa9f5 | /crm_app/migrations/0001_initial.py | a8d2064e20aeff0443aad84487887d739acbfa32 | [] | no_license | amrit-kumar/CRM-Customer-relationship-management- | cfd3ec42a975e7b987d76abe465cb2ec9eec62b4 | d41b482166557e17825b2a010d24bb03ee469245 | refs/heads/master | 2021-06-25T06:37:51.721771 | 2017-08-12T09:43:23 | 2017-08-12T09:43:23 | 96,964,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,216 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2017-01-17 10:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='MsgRepo... | [
"kumaramrit38@gmail.com"
] | kumaramrit38@gmail.com |
abdf9a3a6958959db50b3339852f2f49dff0d58a | cf57c29736ff6841b0024740201f7fe5dc9430da | /amiibo_comments/wsgi.py | f7000b8488316dbcb8098eccde6cf68555a4ee81 | [] | no_license | zedsousa/amiibo_comments | 9e224da4e1b48171536ba6919bf47527f940632e | 7254f4feb7cd61b38d7036e27a84b18169379abd | refs/heads/main | 2023-07-08T04:38:37.551955 | 2021-08-16T00:34:34 | 2021-08-16T00:34:34 | 396,533,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for amiibo_comments project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJAN... | [
"jose.sousa1251@gmail.com"
] | jose.sousa1251@gmail.com |
3f23b2f1a0f51f385862ff8d5a5ea6f26947847e | b4cd6acd822dc2fbc97908aafc910e60bf597756 | /web_s/env/lib/python3.7/keyword.py | c829f53b9c895483ad9f7c5c7ba0a5b6f6bf08e7 | [] | no_license | vaibhavCodian/Stock-Prediction-Web-App | 868685786c43155ae4abcf7dd6c4590802faa168 | 54ca117150c71a2a017c0ba4b8d91324a7645a8b | refs/heads/master | 2021-02-12T14:06:53.216536 | 2020-04-28T17:50:24 | 2020-04-28T17:50:24 | 244,597,359 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | /home/vaibhav/anaconda3/lib/python3.7/keyword.py | [
"30vaibhavshukla@gmail.com"
] | 30vaibhavshukla@gmail.com |
8255c837aa16fadcba7eb5b77f8cdb00c4d40c4e | 6b97237bfd9647f7a90c1d1c33b4453c07e56839 | /routingpolicy/peeringdb.py | 1785b3738e64605815f3565b2ae6a6f5cfd0589e | [
"MIT"
] | permissive | 48ix/routingpolicy | 4e9803659daf84478e3bf41db90a8df642fb50e8 | fd3e9547a5c54bd78ee2144786f6b30fdf41d7ef | refs/heads/master | 2023-01-30T03:20:37.440933 | 2020-12-16T17:19:39 | 2020-12-16T17:19:39 | 295,359,872 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,392 | py | """Get Participant Information via the PeeringDB API."""
# Standard Library
from typing import Tuple, Sequence
# Third Party
from httpx import AsyncClient
# Project
from routingpolicy.log import log
async def max_prefixes(asn: int) -> Tuple[int, int]:
"""Search PeeringDB for an entry matching an ASN and return... | [
"matt@48ix.net"
] | matt@48ix.net |
0a32d2b6c410aca949535c18a0afdc1811fa82de | d77cee829ec56d2ef12446bf1ebc75cf3a1d8de8 | /src/confluence/urls.py | 11ca30b6e7eba5d7d393b109c004ba297c8ac408 | [
"MIT"
] | permissive | thisisayush/Confluence | 6a508fdd96aebf38a9d063760fed7709c1a968f5 | a7e7b3b4d45ae9577f44d112c7383e4e101f3dd6 | refs/heads/master | 2021-04-15T08:02:05.097647 | 2017-03-02T19:15:49 | 2017-03-02T19:15:49 | 94,565,851 | 0 | 0 | null | 2017-06-16T17:15:55 | 2017-06-16T17:15:55 | null | UTF-8 | Python | false | false | 946 | py | """confluence URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | [
"sanyam.khurana01@gmail.com"
] | sanyam.khurana01@gmail.com |
f1ea3f92b383d226f7bc949e68085f65407309e1 | 97fd76dd9f2fd29a6418e26b8f8d21f330b58a9c | /tests/test_main.py | 2025733d3b9de2147a4a03c1f3d06c4a418c6312 | [
"MIT"
] | permissive | sudeep611/nepserate | d53d39ca4c204508621379787ac8d4cbb40a68d3 | b7247839ed1675eeaecf6cac4124507a35f6c8d3 | refs/heads/master | 2021-05-29T15:35:24.690452 | 2014-10-31T16:56:06 | 2014-10-31T16:56:06 | 25,625,531 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | # Test Script
# If this test pass then everything should work fine
from nepserate import ScrapeRate
import unittest
class TestScrapeRate(unittest.TestCase):
def test_result(self):
ns = ScrapeRate()
# Check if the return type is list
self.assertEqual(type(ns.getRate("ADBL")), type([]))
if __name__ == '__mai... | [
"sudeep611@gmail.com"
] | sudeep611@gmail.com |
c941709fbed0b9fa452dac0e4e3ea4916d99de51 | 3b630e8ffae16049b09ea90b3d4af4e2c7b9483b | /firstphy.py | 35ea0b20e4778b407114c119c477c625d43f2d8e | [] | no_license | shafifx/myhub | fe91a2d46c0ba7f7d58057e1d05aecc067989fc9 | a3939fe4743a80535af1334f1f7fc78f28482745 | refs/heads/main | 2023-06-06T22:34:09.271540 | 2021-07-08T16:17:53 | 2021-07-08T16:17:53 | 383,184,433 | 0 | 0 | null | 2021-07-08T16:17:53 | 2021-07-05T15:21:38 | Python | UTF-8 | Python | false | false | 43 | py | hry pythonhttps://github.com/shafifx/myhub
| [
"noreply@github.com"
] | noreply@github.com |
7c1cf7586a7cc9ff5c8a7ecd4890b9115290f894 | f578bf168e4f8df91007bae7a2352a31cd98d375 | /CraftProtocol/Protocol/v1_8/Packet/Play/ConfirmTransactionClientPacket.py | 784d4f7628593a4131223067b1b3c32efe08486b | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Toranktto/CraftProtocol | 97a4e4f408e210494f6acbec0f30c477bb55f8fa | a6f4a67756c3868820ab76df5e148d76b020d990 | refs/heads/master | 2021-07-18T11:04:13.432733 | 2018-09-09T17:23:51 | 2018-09-09T17:23:51 | 144,491,218 | 11 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | #!/usr/bin/env python
from CraftProtocol.Protocol.Packet.BasePacket import BasePacket
from CraftProtocol.Protocol.Packet.PacketDirection import PacketDirection
from CraftProtocol.StreamIO import StreamIO
class ConfirmTransactionClientPacket(BasePacket):
PACKET_ID = 0x32
PACKET_DIRECTION = PacketDirection.CLI... | [
"toranktto@gmail.com"
] | toranktto@gmail.com |
61d903d2962755912aa8dac21eaa78b97774cbf8 | 5b473f7876104de55b0ac19616c9ef0976c2f224 | /cals/NoiseDiode/ND_atten_fit.py | ab7a122198042084db22e7ce4274e87374b7e8a6 | [] | no_license | SDRAST/Receivers_WBDC | 80f3c2481fb09b9875b9ecd1687a4cc194ab9005 | 3e1d49d3daf361608331fcdf3c6c3e41b4ad9de9 | refs/heads/master | 2022-12-23T20:21:22.281484 | 2020-09-30T23:00:19 | 2020-09-30T23:00:19 | 291,369,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,642 | py | # -*- coding: utf-8 -*-
"""
These data are from the calibration log for Fri Apr 8 16:03:55 2011
Add ctrl_voltage as a method to ND. ND should probably be raised to a class
"""
import numpy as NP
from pylab import *
import scipy
def ctrl_voltage(ND):
coefs = array([ 3.85013993e-18, -6.61616152e-15, 4.62228606e... | [
"tbhkuiper@gmail.com"
] | tbhkuiper@gmail.com |
22eee1e5ce8c1bd1a482bcb953ffebe1d366e5d7 | 1c73ef51b70251ed6ed24ce7a9ea08e601b602dd | /insert_mysql.py | 2672456d4f9ab5af82e2e0d026f684b8fa32ba81 | [] | no_license | java2man/restful-client | 21487f0a8361c499277d6863e86d0fdf4060ff46 | d1cc2a3b3995214d9c71ad50a5149f145fd3063e | refs/heads/master | 2021-01-22T04:11:07.756990 | 2017-02-10T01:50:50 | 2017-02-10T01:50:50 | 81,513,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,067 | py | # -*- coding: utf-8 -*-
import sys
import mysql.connector
from mysql.connector import conversion
class DBOperator:
def __init__(self, user, password, host, database):
self.conn = mysql.connector.connect(user=user, password=password, host=host, database=database)
self.cur = self.conn.cursor()
def myprint(self, s... | [
"zheng-49@mt.com"
] | zheng-49@mt.com |
3979ad9eea86bdb41c9f35d9812b87941eb06226 | 5ed4a4dc164791157d089568a6a256372262f6d4 | /7.9.aux_NM.py | 0f4e42b0ac10c712a35ad01de06f2b6434811b62 | [] | no_license | Valkyries12/algoritmos-programacion1 | 72cf6c2146ff8822b1ff8aa8bf6d7c4c677fc55e | 20a5861c85e2841fdba9574c4b08cec6b2200b15 | refs/heads/master | 2020-07-02T08:16:53.670119 | 2019-08-18T01:59:09 | 2019-08-18T01:59:09 | 201,470,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | #Ejercicio 7.9. Escribir una función que reciba como parámetro una cadena de palabras separadas por espacios y devuelva, como resultado, cuántas palabras de más de cinco letras tiene la cadena dada.
def cantidad_mas_de_cinco(cadena):
""" devuelve cuantas palabras tienen mas de 5 letras """
lista = cadena.spli... | [
"nico.caruso1992@outlook.com"
] | nico.caruso1992@outlook.com |
78f31a9c174255d188697506e1941c866f62891c | 8f949493064b77dd3f19ceeed1e86382ace176d6 | /posts/urls.py | 3f113ad6817989d01a71ca2970489a00507bc58f | [] | no_license | sudhanshu-jha/simplesocial | 44a19a1b1051dcc8577de5d87660a5b890b829d1 | 6d40293be75703d5498025150acf9e91bae6f77c | refs/heads/master | 2020-04-17T07:41:54.207867 | 2019-01-18T10:24:14 | 2019-01-18T10:24:14 | 135,698,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | from django.conf.urls import url
from . import views
app_name = "posts"
urlpatterns = [
url(r"^$", views.PostList.as_view(), name="all"),
url(r"new/$", views.CreatePost.as_view(), name="create"),
url(r"by/(?P<username>[-\w]+)/$", views.UserPosts.as_view(), name="for_user"),
url(
r"by/(?P<user... | [
"noreply@github.com"
] | noreply@github.com |
0ff0703817449a164cc4148e5e772d7aad82761d | 20a0bd0a9675f52d4cbd100ee52f0f639fb552ef | /transit_odp/data_quality/migrations/0010_auto_20191118_1604.py | 1dbd2499c70b6991917a996f3979d7d53de8b877 | [] | no_license | yx20och/bods | 2f7d70057ee9f21565df106ef28dc2c4687dfdc9 | 4e147829500a85dd1822e94a375f24e304f67a98 | refs/heads/main | 2023-08-02T21:23:06.066134 | 2021-10-06T16:49:43 | 2021-10-06T16:49:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,602 | py | # Generated by Django 2.2.7 on 2019-11-18 16:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("data_quality", "0009_auto_20191118_1029"),
]
operations = [
migrations.RemoveField(
model_name="service",
name="repo... | [
"ciaran.mccormick@itoworld.com"
] | ciaran.mccormick@itoworld.com |
c833bef47a138873f53849c9dffd03c4f3bb8c82 | f54e711cb7fa9ec0295d1e5519fde39778299c48 | /blogProject/myApp/migrations/0004_comment_name.py | 0e5793a15f0e9b585a0ce290649d05cbf9f3c64e | [] | no_license | Sushma-RV99/blog-repo | bb9c795784fd82178384ede75ef369d64997fa1a | a1443c963fdcaaf38904b3f6faa90401a396564e | refs/heads/master | 2023-02-11T06:07:48.709194 | 2021-01-08T14:23:36 | 2021-01-08T14:23:36 | 327,924,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | # Generated by Django 2.2 on 2021-01-01 15:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myApp', '0003_comment'),
]
operations = [
migrations.AddField(
model_name='comment',
name='name',
field=mo... | [
"sushmavbharadwaj99@gmail.com"
] | sushmavbharadwaj99@gmail.com |
33eadd24b48302614418717e1f4b4966a2618001 | 5b6ec20f6a62e2daf46e13c8740e9d8c8f4ff0e2 | /mvloader/nrrd.py | 68430da6cbbd010a39c01834606f84bae565ca30 | [
"MIT"
] | permissive | dichetao/mvloader | 946575ee2cad2daa2d4ae507ba44bf120e100966 | 4244ba30f4c8f92ccf7605dc0134ef32706a70a2 | refs/heads/master | 2021-09-23T14:23:26.151457 | 2018-09-24T14:11:24 | 2018-09-24T14:11:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,901 | py | #!/usr/bin/env python
# coding: utf-8
"""A module for reading NRRD files [NRRD1]_, basically a wrapper for calls on the pynrrd library [NRRD2]_.
References
----------
.. [NRRD1] http://teem.sourceforge.net/nrrd/format.html (20180212)
.. [NRRD2] https://github.com/mhe/pynrrd (20180212).
"""
import nrrd
import numpy a... | [
"simon.pezold@unibas.ch"
] | simon.pezold@unibas.ch |
22cd4aa937ae8cfd23745a3259f156cd50b64a4e | cb3583cc1322d38b1ee05cb1c081e0867ddb2220 | /donor/migrations/0014_auto_20210331_0404.py | b1189bdce3ff86f5f1436a2a55ec393aa74d80f9 | [
"MIT"
] | permissive | iamgaddiel/codeupblood | 9e897ff23dedf5299cb59fd6c44d9bd8a645e9c6 | a0aa1725e5776d80e083b6d4e9e67476bb97e983 | refs/heads/main | 2023-05-07T23:34:27.475043 | 2021-04-24T20:49:08 | 2021-04-24T20:49:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | # Generated by Django 3.1.6 on 2021-03-31 11:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('donor', '0013_auto_20210330_0743'),
]
operations = [
migrations.AlterField(
model_name='appointment',
name='d_id',
... | [
"www.spbiology@gmail.com"
] | www.spbiology@gmail.com |
b933acdeb2309ba593e6d9e9d9d667aff904c210 | 520c5877c4f7e33b66a955bde8eb0b613b99666a | /lyric_generation/embedding.py | 4970fcff859b9802952e2bb645b2b409cfea1c74 | [] | no_license | richardsavery/interactive-hiphop | 53db132369bb354c626d5a28635d1bba857a12d8 | 41bb1b7a7eb2a6bc1eb33a7f4cdf640e4cda7ff1 | refs/heads/master | 2022-02-23T20:30:52.354441 | 2022-02-10T03:58:17 | 2022-02-10T03:58:17 | 206,121,157 | 3 | 2 | null | 2022-02-11T03:00:55 | 2019-09-03T16:21:45 | Python | UTF-8 | Python | false | false | 829 | py | from gensim.test.utils import datapath, get_tmpfile
from gensim.models import KeyedVectors
from gensim.scripts.glove2word2vec import glove2word2vec
import pickle
# GLOVE_FILE = "/Users/brianmodel/Desktop/gatech/VIP/interactive-hiphop/lyric_generation/glove.840B.300d.txt"
WORD2VEC_FILE = "/Users/brianmodel/Desktop/gat... | [
"brian.model@gmail.com"
] | brian.model@gmail.com |
46e316c0cc99e56127b71e1ee886f2f946be6258 | 1b6da6feaeeaa3801279781ab8421e7294c5b393 | /python27/py_auto_test/test_cases/utility_mysql.py | f2253b0fd0e97f23add55b6d6364cf3cd8efa204 | [] | no_license | doorhinges0/my_projects | 703bbc92425e6c0604088d546b84be6dca37c0cd | f981ca0bfd79c3a119cd52155028f3f338378690 | refs/heads/master | 2021-01-13T12:00:06.992906 | 2015-12-28T12:00:42 | 2015-12-28T12:00:42 | 48,828,883 | 0 | 1 | null | 2015-12-31T02:24:37 | 2015-12-31T02:24:37 | null | UTF-8 | Python | false | false | 1,354 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
import mysql.connector
# 注意把password设为你的root口令:
conn = mysql.connector.connect(user='root', password='trxhfly', database='account_system_db', use_unicode=True)
def get_user(type, id):
if type not in ('uid','acc','phone','email'):
return None
if not id:
... | [
"1817201531@qq.com"
] | 1817201531@qq.com |
1b1ef729bfe6870880ec2b3f58f8d04117f29bc5 | ddf9d47a06ce85f9d06ec4923982f96996e028a7 | /Notebooks/Entrenamiento Modelo/CustomHyperModelImages.py | 2f49fceefd6a2ddbc8d07d8b4f3d7947bbe71e0f | [] | no_license | SebasPelaez/colombia-energy-forecast | f7b7a184026d3eb22a2087fda39249998ba1128e | 269d432dfda0e976aa06d1b9b7804945d9362af3 | refs/heads/master | 2023-04-14T18:36:14.294769 | 2021-04-21T14:01:58 | 2021-04-21T14:01:58 | 286,310,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,779 | py | import tensorflow as tf
import CustomMetrics
from kerastuner import HyperModel
class ArquitecturaI1(HyperModel):
def __init__(self,input_shape,n_steps_out):
self.input_shape = input_shape
self.n_steps_out = n_steps_out
def build(self, hp):
model = tf.keras.Sequential()
model... | [
"sebaspvilla@hotmail.com"
] | sebaspvilla@hotmail.com |
f427c925290c5a2a81db95be3c0f18e6c3e33066 | dccd1058e723b6617148824dc0243dbec4c9bd48 | /atcoder/abc048/a.py | 2a32b441150b9a7e79505fe4330cbbf200516869 | [] | no_license | imulan/procon | 488e49de3bcbab36c624290cf9e370abfc8735bf | 2a86f47614fe0c34e403ffb35108705522785092 | refs/heads/master | 2021-05-22T09:24:19.691191 | 2021-01-02T14:27:13 | 2021-01-02T14:27:13 | 46,834,567 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | for s in input().split():
print(s[0],end="")
print()
| [
"k0223.teru@gmail.com"
] | k0223.teru@gmail.com |
2d85e566ab46559127ff094934cff6b9e3b4a756 | e72db255e41332c113f929eb63815b2169038209 | /Chapter08/audio-encode-server-4/audio_encode_server/s3.py | 8585e1faf5d52e430754cde9e22635bf0eee6396 | [
"MIT"
] | permissive | PacktPublishing/Hands-On-Reactive-Programming-with-Python | b196b971fe49a36da9f979790b8c31c98a659031 | 757d45e2023032c6074e26ad252530f3c89978bf | refs/heads/master | 2023-02-07T01:03:37.648175 | 2023-02-05T18:21:17 | 2023-02-05T18:21:38 | 128,761,473 | 75 | 19 | null | null | null | null | UTF-8 | Python | false | false | 2,077 | py | import asyncio
from collections import namedtuple
from io import BytesIO
import reactivex as rx
import boto3
from boto3.session import Session
from cyclotron import Component
Source = namedtuple('Source', ['response'])
Sink = namedtuple('Sink', ['request'])
# Sink objects
Configure = namedtuple('Configure', [
'a... | [
"romain.picard@oakbits.com"
] | romain.picard@oakbits.com |
f4d0fbd3015939c5f1fbedeb7e90834ae6473193 | b02a2c1e8cf778f8f810897c478abcec720b7220 | /ds_algos_primer/python/arrays_and_strings_solutions.py | a70325060b6be3c328ac7c8980a14ffffa4407b0 | [] | no_license | naraekwon/CodingInterviewMastery | d8596a4decb52086ea2eefa32ebccd4a25c6181a | c14ceaa19649269467160a5bf53e4a3d927e97a5 | refs/heads/main | 2023-09-05T16:28:25.253482 | 2021-11-04T18:56:19 | 2021-11-04T18:56:19 | 428,470,905 | 0 | 0 | null | 2022-02-13T19:54:09 | 2021-11-16T00:58:46 | null | UTF-8 | Python | false | false | 15,724 | py | """
Title: Arrays and Strings Solutions
This file contains the solutions for the Arrays and Strings exercises in
the DS & Algos Primer. If you have not already attempted these exercises,
we highly recommend you complete them before reviewing the solutions here.
Execution: python arrays_and_strings_solutions.py
*** ... | [
"sam@byte-by-byte.com"
] | sam@byte-by-byte.com |
c82b677441afb16074f0386638f5da0f86f9303e | 56a8d1f72b005bd52560c3804541be729876aa9f | /rotation.py | 2f05ebde4daf3525b7c39a173e8cbb402cf3dc59 | [] | no_license | drrobotk/pycodilitytests | e5e13c9dd683207290e598e577d73555c0ef29ed | acb5a8ad52135fa327fb97d7c42f95ae23cb3389 | refs/heads/master | 2021-04-14T03:16:33.397722 | 2020-03-22T15:23:57 | 2020-03-22T15:23:57 | 249,203,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | # you can write to stdout for debugging purposes, e.g.
# print("this is a debug message")
def solution(A, K):
k = 0
# write your code in Python 3.6
if len(A) != 0:
for i in range(K):
k = A[len(A)-1]
A.pop()
A.insert(0,k)
return A
if __... | [
"noreply@github.com"
] | noreply@github.com |
e8a033aa3f8f48fd75b3f9aca077478771f2bb75 | 01f09bdec77ee7823919824ac25cb1a3610790cb | /d2_Assignment_07_a.py | 8a77cb92183fcedb51f410582e51d30fbffb372e | [] | no_license | SYN2002/PYTHON-LAB | 3da5bda642d7a139ccf39e350750da8d4f5128d0 | dd93fa884415f423988375f2d3b0f058bc253135 | refs/heads/main | 2023-08-27T11:53:53.075132 | 2021-10-17T15:31:00 | 2021-10-17T15:31:00 | 406,604,738 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | n1=int(input("Enter the lower limit: "))
n2=int(input("Enter the uper limit: "))
i,j,c=1,0,0
print("The prime numbers are: ")
for i in range(n1,n2+1):
c=0
for j in range(1,i+1):
if(i%j==0):
c=c+1
if(c==2):
print(i,end=" ") | [
"khanra.sayan2002@gmail.com"
] | khanra.sayan2002@gmail.com |
261b9e2fe87ce74a8028d94c3c61852211f01d39 | 1d482878230a6c6cbef7680f3910561a4b35c35c | /element/scripts/migrations/0021_auto_20180218_0632.py | dacc71e2958595a88be73d43e5bd6e43cab8ed4d | [] | no_license | karthikvasudevan92/elem | ac5355fe029251b7de76428a558049ab949689df | f5dad5cdfaba736843d29c781ec253d2cee51ccd | refs/heads/master | 2021-04-28T03:47:23.643252 | 2018-03-17T13:10:07 | 2018-03-17T13:10:07 | 122,144,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | # Generated by Django 2.0.1 on 2018-02-18 06:32
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('scripts', '0020_auto_20180218_0621'),
]
operations = [
migrations.AlterField(
model_name='scrip... | [
"vasudevankarthik92@gmail.com"
] | vasudevankarthik92@gmail.com |
0f0a43f2a910cb3bd27dccab958083608f47a592 | 0258e0c9595406ceb3de32067aff776bc2a58fa8 | /06_p12.py | a649f413d98bebdcef131856db0da2a3d6949b5d | [] | no_license | akromibn37/python_code | 72c016c361b3ba2e04c83e1d1a703171b0bd8819 | 41d1a09f8ec8696e37ad83c1a0cb6506c7f0f4f6 | refs/heads/master | 2020-03-21T22:57:25.111642 | 2018-06-29T14:14:33 | 2018-06-29T14:14:33 | 139,157,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | data = input().strip()
l = []
for x in range(len(data)):
l.append(data[x])
num = int(input().strip())
out = ""
i = 0
while i<num:
out = ""
command = [e for e in input().split()]
if command[0] == "in":
l.insert(int(command[2]),command[1])
elif command[0] == "out":
l.pop(int(command[1]))
elif comm... | [
"apple@Apples-MacBook-Pro.local"
] | apple@Apples-MacBook-Pro.local |
d1a50b99473a4235042bb673ae4d5648722d7914 | 720dcd12b8fb7ab26125317a6f3d00c2623e5f13 | /chatbotQuery/__init__.py | fe8fcde48e539b7f3222f7e172a5b2d88236c54b | [
"MIT"
] | permissive | tgquintela/chatbot_query | 78e6f21268e06572009295c271c277ef89f2dcbc | 4c5160992a444f828da019ae57a802467a13c2fa | refs/heads/master | 2021-01-01T18:00:46.261089 | 2017-10-13T18:03:32 | 2017-10-13T18:03:32 | 98,224,976 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,896 | py |
"""
TODO
----
Decorator for message collections
"""
import copy
class ChatbotMessage(dict):
"""
Compulsary elements
-------------------
- message
- collection
- from [user, bot]
"""
def __init__(self, message):
self.update({'message': '', 'collection': False})
self... | [
"tgq.spm@gmail.com"
] | tgq.spm@gmail.com |
8ab81a05046b4fbe1d20f70062f9411fee994e8d | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_to_M_Gk3_no_pad/pyr_Tcrop255_pad20_jit15/Sob_k17_s001/pyr_4s/L4/step10_a.py | 75773149c2e2458db22e88582b00384156b134b7 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,921 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
de47d3adc3f532d09cc14eab66da496c3a9dfa6a | 5f82cd4c97e3bc950799f3d2feedd8e5f800dc4c | /FNN.py | 7e0a73075675825258d17f22f9d8062db01426e9 | [] | no_license | Zhetuo-Zhao/deepLearning_template | 77f0b79d229999f009de61fe43c5d80a85ce7743 | c477a4eccb24cd833e2cbdd9840923f5d3f6ebb1 | refs/heads/master | 2022-12-19T05:19:28.724019 | 2020-09-16T06:11:17 | 2020-09-16T06:11:17 | 295,637,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,401 | py | # %%
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
mnist=input_data.read_data_sets("/tmp/data/", one_hot=True)
n_nodes_hl1=500
n_nodes_hl2=500
n_nodes_hl3=500
n_classes=10
batch_size=100
x=tf.placeholder('float',[None, 784])
y=tf.placeholder('float')
def neural_network_model(d... | [
"zzhaoaa@gmail.com"
] | zzhaoaa@gmail.com |
d1193d44c5e75ff605a3a7007ffa13f5294f8fb5 | e6120961ab5a2005e86cf772e56d694878b8cb35 | /Finance/Old_Finance/MyFinance8.py | c3c87e529104e1875500a06c8783c14c4d4e7ac1 | [] | no_license | marcelo-alves87/STN-PythonLearning | a81e1d379dc28fd0334883dc7f930c7aadc6f047 | c2d31c0ae55a302d8cd35636ed02673452536f8e | refs/heads/master | 2023-08-22T09:05:56.313556 | 2023-08-20T21:33:16 | 2023-08-20T21:33:16 | 139,202,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,580 | py | import numpy as np
import pandas as pd
import pandas_datareader.data as web
from collections import Counter
from sklearn import svm, cross_validation, neighbors
from sklearn.ensemble import VotingClassifier, RandomForestClassifier
def process_data_for_labels(ticker):
hm_days = 7
df = pd.read_csv('ibovespa_join... | [
"marceloalves87@gmail.com"
] | marceloalves87@gmail.com |
e6417d749e8b17495ea9739ff8246df8c4a1a1eb | f5fe67aada0fca0ebc71d605e4a2dd3d60695a25 | /Evelyns Dateien/Grundpraktikum 2/US3/profil_streu_34.py | 2ee8df1f9cba6afa10dd8360dd49b71308ac5b84 | [] | no_license | rkallo/APWS1718 | 25eb10a88783434c81ebf1902936ceb6fc06ab0d | 5e124d5342ef2fd333311ddb4d323744323b68b8 | refs/heads/master | 2021-08-28T06:45:08.518688 | 2019-11-21T18:05:29 | 2019-11-21T18:05:29 | 223,233,392 | 2 | 1 | null | 2021-08-22T19:20:50 | 2019-11-21T17:59:30 | TeX | UTF-8 | Python | false | false | 479 | py | import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit
from pylab import figure, axes, pie, title, show
from fractions import *
x, y = np.loadtxt('streu_34.txt', unpack=True,delimiter=',')
plt.figure(1)
plt.plot(x, y,'rx', label='Messdaten')
plt.ylabel(... | [
"ramonagabriela.kallo@tu-dortmund.de"
] | ramonagabriela.kallo@tu-dortmund.de |
de220ce4ab36c212e05c19db10caeba92cbbe9e1 | 9f0d913822de7ebb86d9a2634e3b99d452db83ee | /py/folder2zip.py | 83bec69e42cb6e9818dbedca25d2eeee81ab084e | [] | no_license | esabox/code-desu | 3029e71d031a26c4da7687a394e4f497e09acabf | 63b3756035163cc3f480a0e87127eed93b090dfb | refs/heads/master | 2023-03-30T09:02:55.631388 | 2021-04-09T04:58:04 | 2021-04-09T04:58:04 | 222,210,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,994 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# フォルダの中のフォルダを無圧縮zip化
import os
import glob
import re
import sys
import shutil
gomibako = '/Users/kazoku/.Trash/'
def main():
print(sys.version)
print(sys.argv)
work_dir = '/Users/kazoku/Desktop/book/'
# workdirの引数があれば
if 1 < len(sys.argv):
... | [
"esabox@live.jp"
] | esabox@live.jp |
2d5543f03917a6065eba621b789a7e27e75d8cf2 | 21c1da4a354037f8aed1fb323d64295f1d40d0c6 | /additive-number/solution.py | 3f0c8e98f8f5ab4e12f51b90f3a53185f8d49432 | [] | no_license | hsinhoyeh/leecode | b0de2334a1bcd9277335fba4ae7e3519775da8f9 | 7760d44f7a9038f48e12eabb6d5bafd182a0a8f6 | refs/heads/master | 2021-01-10T10:11:40.259319 | 2017-08-11T01:31:22 | 2017-08-11T01:31:22 | 45,776,150 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,931 | py | import math
class NextNum(object):
def __init__(self, num, start_index, max_len=None):
self.num = num
self.start_index = start_index
self.end_index = start_index
self.max_len = max_len
self.last_val = None
def next(self, nlen=1): # default, lookup the number with len=1
... | [
"yhh92u@gmail.com"
] | yhh92u@gmail.com |
d4db6548602d798752d08f491cc5d988c7ab352a | ce46bd76dac66e5ff6cfa6556c9d549af324f48e | /ml-progress-bot/download_media.py | 41ffb527fb8f60c7b463737282c8784264a7a0f9 | [
"MIT"
] | permissive | yell/kaggle-camera | f21b56277c278395496dc78bafbdb41de60439de | 7b471c3631343f6f7fd7adf1a80b2edb46d62f0b | refs/heads/master | 2023-08-26T04:49:11.158767 | 2021-11-05T14:54:58 | 2021-11-05T14:54:58 | 117,623,865 | 8 | 5 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | from telethon.sync import TelegramClient
api_id = 'TODO'
api_hash = 'TODO'
client = TelegramClient('test_session', api_id, api_hash)
client.start()
print(dir(client))
for message in client.get_messages('ml_progress_bot', limit=10000):
client.download_media(message)
| [
"yell.bondarenko@gmail.com"
] | yell.bondarenko@gmail.com |
a70ed864f8709eca7cb6f56bd0f9445ad1b82d1b | b828fc06f40d1754dc5d6ab87b7360b97dff2938 | /intrinio_sdk/models/zacks_long_term_growth_rate.py | 38b6c21e356c2fd74ea5df4aca5ee4409d3c9166 | [] | no_license | dhruvsagar/python-sdk | 90302f3727022b9bc2dea83c7df2268bac180281 | 792f8b47a5d3238a92f62b40d164639850d9c4cb | refs/heads/master | 2022-06-04T20:38:51.263726 | 2020-05-05T20:24:29 | 2020-05-05T20:24:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57,035 | py | # coding: utf-8
"""
Intrinio API
Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API ... | [
"mvonlintel@hotmail.com"
] | mvonlintel@hotmail.com |
835fa05e3acbfa8beb25f0ef8b975295d4668c90 | 20002b0c41f0ff67553ea7ffb6568975792d8c95 | /main.py | 37a235d422efc3a4b23733caa5426aac6eee1393 | [] | no_license | hugos0910/Data_Science_London | be18667fd0121ba0b2549f02263fcad6d2a54448 | 74dcdd7d2504f0ba9be9b58acb01d2e305827b12 | refs/heads/master | 2021-01-18T06:00:53.529998 | 2016-09-21T17:17:48 | 2016-09-21T17:17:48 | 68,791,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,502 | py |
import numpy as np
import pandas as pd
import util
from sklearn.neighbors import KNeighborsClassifier
from sklearn.decomposition import PCA
from sklearn.svm import SVC
# Import data
print('Importing data...')
train = pd.read_csv('train.csv', header = None)
test = pd.read_csv('test.csv', header = None)
label = pd.read... | [
"hugochiang0990@gmail.com"
] | hugochiang0990@gmail.com |
67cd9c4d1cbc6de5a7be578e14c812fc18dd3f18 | 2edbe77571e522722a759921cd45cf6ff540e87d | /quene/marketmodel.py | da9893a00121afcdaeb56f737460e67203feb162 | [] | no_license | nasty11pig/pyStudy | 5253da4334c3e51bff938d1343a85ff76cd1c0d6 | da33c6c59bc84689c4aae8771be4ad36671ab5bf | refs/heads/master | 2020-03-17T01:08:35.501268 | 2018-05-26T15:51:38 | 2018-05-26T15:51:38 | 133,141,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | # -*- coding: utf-8 -*-
class MarketModel():
def __init__(self, lengthofSimulation, averageTimePerCus,
probabilityofNewArrival):
self._probabilityofNewArrival = probabilityofNewArrival
self._averageTimeperCus = averageTimePerCus
self._lenthofSimulation = lengthofSim... | [
"50954250@qq.com"
] | 50954250@qq.com |
ab7427ee9ab9e98e843967f814b678f41e26f819 | a0406e59552037a3277d51eb9994565d3f557d7f | /book_lib/presentation/resource/book.py | c60de1f3f7e52df92f27bfa9d0b5430f5ae8b497 | [] | no_license | eezhal92/flask-sqlalchemy | 84bbf18fc041a2339842d56a7924a10f0332b975 | 7092651a5b5b73f1366c1c2473aab9b1c4eedea5 | refs/heads/master | 2021-07-12T10:10:54.572392 | 2017-10-17T11:47:39 | 2017-10-17T11:47:39 | 106,980,363 | 0 | 1 | null | 2017-10-17T11:47:40 | 2017-10-15T03:19:24 | Python | UTF-8 | Python | false | false | 454 | py | """Books Controller."""
from flask import jsonify
from flask_restful import Resource
from book_lib.infrastructure.repository.book import BookRepository
class Book(Resource):
"""."""
def __init__(self, **kwargs):
"""."""
self.db = kwargs['db']
self.book_repo = BookRepository(self.db)
... | [
"arkinthesky.69@gmail.com"
] | arkinthesky.69@gmail.com |
f354b13480738cfc382c8ee67d5d250310c01f13 | eebeeb2c31dc90b21878196502efec9086b87c46 | /07/vmparser.py | b63709acbddb5f5c3126b6dab11a6926fae4627c | [] | no_license | festa78/nand2tetris | 6f07673d69277125331f7536f18214dce64d8008 | 815f887c584d3de91591abe44123ee5c3b006575 | refs/heads/master | 2023-03-06T00:46:01.412600 | 2021-02-07T12:35:33 | 2021-02-22T08:53:08 | 328,305,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,696 | py | class Parser:
COMMAND_TYPES = (
'C_ARITHMETIC',
'C_PUSH',
'C_POP',
'C_LABEL',
'C_GOTO',
'C_IF',
'C_FUNCTION',
'C_RETURN',
'C_CALL',
)
COMMAND_TO_TYPES = {
'and': COMMAND_TYPES[0],
'or': COMMAND_TYPES[0],
'not': ... | [
"nonamehorses78@gmail.com"
] | nonamehorses78@gmail.com |
58529c5f530f1fe4e00a6432565eb83f72ad4840 | f9c3c75718f5cfb3827658f8cedaa1fb8e289011 | /BujaMovies/migrations/0018_auto_20190903_2229.py | 77723265ca8edf07a4838817bed39093d340faac | [] | no_license | twizy/BullyHoodyGit | 7559c70269cd3b0abafb662a56fa33d95df9d6ff | 1a75617954428c70c82cf355f5aab0cb822ebc7a | refs/heads/master | 2020-07-12T21:25:29.609503 | 2019-09-03T21:50:57 | 2019-09-03T21:50:57 | 204,909,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | # Generated by Django 2.2.3 on 2019-09-03 20:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('BujaMovies', '0017_auto_20190903_2118'),
]
operations = [
migrations.AddField(
model_name='films',
name='film',
... | [
"twizalain@gmail.com"
] | twizalain@gmail.com |
79445dc9be69e70168bbf832fc269c16f8377373 | c5859d1bdf44c8452563f856dc4191b74e85ce21 | /custom_components/image_processing/tagbox.py | 163ce385bf2c8182fd5f439a3f58b3d206199a0e | [] | no_license | balloob/homeassistant-config | 46774ea88ced4414e48e4f1f40af63ff67b6f990 | 9f341e4b695db56f3c4af7299a336d5a0f60cdcf | refs/heads/master | 2020-03-21T03:10:31.729526 | 2018-06-18T18:27:54 | 2018-06-18T18:27:54 | 138,039,924 | 11 | 0 | null | 2018-06-20T13:56:12 | 2018-06-20T13:56:12 | null | UTF-8 | Python | false | false | 4,157 | py | """
Component that will search images for tagged objects via a local
machinebox instance.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/image_processing.tagbox
"""
import base64
import requests
import logging
import time
import voluptuous as vol
from h... | [
"arsaboo@gmx.com"
] | arsaboo@gmx.com |
a39cbb706ac3420712b45eb050eae01efddba13e | 1e3f458b297b349eb875aebab254e05cdad2458e | /guessno.py | 6d6b1cee5d25c4ad5b2e5dd171bb21ffbf8c8694 | [] | no_license | mezeru/Python_Coding | 899169e162d01a2a1f6f043e45f3b07dc68e1001 | 99941431025b5c35731903dabb6c9e6106f59fcc | refs/heads/master | 2023-07-04T11:51:28.174018 | 2021-08-06T20:05:58 | 2021-08-06T20:05:58 | 255,226,334 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | import random
def rnum():
return (random.randint(0,10))
fnum=rnum()
cou = 0
while True:
print("Guesses the no :")
cou=cou+1
G=int(input())
if fnum == G :
print("You guessed right in " + str(cou)+" Guess")
break
elif fnum > G:
print("You guessed... | [
"noreply@github.com"
] | noreply@github.com |
c261e60b78e10d19087b88625ff766401bcafd78 | 0bcd538401c0f7ffa61047c44ca5f497afc56f82 | /datasets/flowers.py | ed865e8b5d968ed02fc87f1c1cd0d06a01e91ad0 | [
"Apache-2.0"
] | permissive | Ningchen-Wang/DCGAN | fae14ae1bb6147caf600396d1689cc3877dacb37 | 4ba9fd4cdb89c809e90511427f85e88a589671be | refs/heads/master | 2021-08-10T11:09:44.577277 | 2017-11-12T13:36:22 | 2017-11-12T13:36:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,267 | py | # Copyright 2016 The TensorFlow Authors. 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.0
#
# Unless required by applicable ... | [
"wnctsinghua@163.com"
] | wnctsinghua@163.com |
a3832070b1ec7002d6f2dd0a9f5bd280d29a3962 | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/tensorflow/python/keras/layers/cudnn_recurrent 2.py | 96ae66c775e623fff4738688d4f11005c5261b33 | [] | no_license | Akira331/flask-cifar10 | 6c49db8485038731ce67d23f0972b9574746c7a7 | 283e7a2867c77d4b6aba7aea9013bf241d35d76c | refs/heads/master | 2023-06-14T16:35:06.384755 | 2021-07-05T14:09:15 | 2021-07-05T14:09:15 | 382,864,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:52c49577848819c4116b99c29c11e765e7a2d686e7ccb4dc7b84454bdf31510f
size 20854
| [
"business030301@gmail.com"
] | business030301@gmail.com |
088293b7dea6a8f0f04a083b5246bc45e276a471 | c584fd0c13d2f396aaf940e9d4e774f01ce5e2ce | /apps/users/apps.py | 5838b89ccd4979ad020b44afbd2652bfef00306a | [] | no_license | wxrapha/RoadBicycle | ee07601458b5af72b1a853b2c4c969d6cdf81ae8 | 0f990267a47b738e97880c999ed3bc054c2889c7 | refs/heads/master | 2021-07-10T13:30:25.484884 | 2017-10-10T23:52:14 | 2017-10-10T23:52:20 | 103,798,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | from django.apps import AppConfig
class UsersConfig(AppConfig):
name = 'apps.users'
verbose_name = u'用户信息'
| [
"xiehao@xiehaodeMacBook-Pro.local"
] | xiehao@xiehaodeMacBook-Pro.local |
170eb1cf38678e8baf10258b548535244e7f2996 | 12df1e58fe493c4a929e6d54a938f9b357964701 | /Day-5 Closest Value in BST.py | 68d748a07e7b9618aa7fce5bd8d1b7190170c74e | [] | no_license | Anshul-Dagar/100-Day-Coding-Challenge | 132dadc50b572428c7e33ceda329770d8766965a | 33f10cc6357d4ca3fa8a16cc954f6559f39e73bb | refs/heads/main | 2023-02-12T04:04:12.389433 | 2021-01-09T13:56:36 | 2021-01-09T13:56:36 | 326,140,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,768 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jan 6 19:30:49 2021
@author: ironman
"""
class BST:
def __init__(self,value):
self.value=value
self.left=None
self.right=None
def insert(self,value):
currentnode=self
while True:
if ... | [
"noreply@github.com"
] | noreply@github.com |
889f0a628633729df0d4a4bc22d12bf0d72f43b7 | 548e34ebef0904ad21efa3fd53a10b6af1011152 | /uva/10180 - geom/gen_data.py | 8b3c2f71c5cacf2a069b847041645d4e8e623ae2 | [] | no_license | eric7237cire/CodeJam | 1646f43ec34b87edf8029b839b01fb0d667758ce | ca9dd1ddad5c42a02731c3c7c8e4342bd5c9ee9d | refs/heads/master | 2021-06-08T17:47:53.204535 | 2018-01-01T15:34:29 | 2018-01-01T15:34:29 | 1,331,950 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | import sys
import random
import math
random.seed()
T = 30000
MAX = .1
print( str(T) )
for t in range(T):
r = random.random() * MAX
p = 0
list = []
while len(list) < 4:
x = -MAX + random.random() * MAX * 2
y = -MAX + random.random() * MAX * 2
if math.hypot(x, y) <= r + .00001:
continue
list.a... | [
"eric7237cire@gmail.com"
] | eric7237cire@gmail.com |
4f763a66d6c6077358c6dadee57b52bddcadf918 | 2a9572e6f1cfb329a12d6835071483ec89ec6538 | /flask_test/flask_blog.py | 1ceec00beaf74f9b274f237f1860dfff21615f7f | [] | no_license | Cezar04/petproject | c8a4c810a8b05d0645dc36601539034dc35be6b5 | 9093d2435f779235db5f9e79417395e4dd13e8b0 | refs/heads/master | 2022-11-13T11:12:29.785362 | 2020-07-03T11:14:25 | 2020-07-03T11:14:25 | 276,875,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,859 | py | from flask import Flask, render_template, url_for, flash, redirect, request
from forms import registration_form, login_form, post_form
import data_manager
app = Flask(__name__)
app.config['SECRET_KEY'] = 'haker'
posts = [
{"author":"Gigel",
"title": "blog post 1",
"content":"First post content",
"... | [
"noreply@github.com"
] | noreply@github.com |
6e40ec6f6b3b14aa33b9e1e5a07f218ba7ee36e0 | 00d2f3fde2c3d9e03a1babc958e35285d5798352 | /removedependent.py | 626bf7416873208dd75191cd10f065def3a4c318 | [] | no_license | N-S-Krishnan/Database-GUI-Elmasri-and-Navathe- | 14043e90c2e25e6c5ab080cc5efe985731479b93 | f8a60edad75505ad0587f3a3562cfc14cc0d018f | refs/heads/main | 2023-04-22T07:34:54.141788 | 2021-04-26T01:07:05 | 2021-04-26T01:07:05 | 361,572,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,474 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'removedependent.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 i... | [
"noreply@github.com"
] | noreply@github.com |
574dd0cb3d9db506563978325c04ba1163e9ff93 | 6b00aa745fbd266b0eb5413eed4852aef9294b2b | /voice2voice_pytorch/voice2voice.py | 6c5131e12ca04272744b97ad106d85fb03e1d4c5 | [
"MIT"
] | permissive | 19ai/voice2voice | 86172969917e5114d1c6eefc15b32f0216e10b6f | 1938737b9c1a15b045a49460e026b533eff62019 | refs/heads/master | 2020-04-23T03:13:21.369798 | 2018-09-22T08:00:13 | 2018-09-22T08:00:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,630 | py | # coding: utf-8
import torch
from torch import nn
from torch.nn import functional as F
import math
import numpy as np
from .modules import Conv1d, ConvTranspose1d, Embedding, Linear, GradMultiply
from .modules import get_mask_from_lengths, SinusoidalEncoding, Conv1dGLU
def expand_speaker_embed(inputs_btc, speaker_e... | [
"wuhecong@163.com"
] | wuhecong@163.com |
de3fe45a87e82c646b0708bb94ef18a5f539f842 | 4d675034878c4b6510e1b45b856cc0a71af7f886 | /mmdet/models/seg_heads/panoptic_fusion_heads/heuristic_fusion_head.py | 06c1de2b9010fef13bd2322bbd3352d82a1f3e2f | [
"Apache-2.0",
"BSD-2-Clause-Views",
"MIT",
"BSD-2-Clause"
] | permissive | shinya7y/UniverseNet | 101ebc2ad8f15482ee45ea8d6561aa338a0fa49e | 3652b18c7ce68122dae7a32670624727d50e0914 | refs/heads/master | 2023-07-22T08:25:42.646911 | 2023-07-08T18:09:34 | 2023-07-08T18:09:34 | 263,555,721 | 407 | 58 | Apache-2.0 | 2023-01-27T01:13:31 | 2020-05-13T07:23:43 | Python | UTF-8 | Python | false | false | 4,482 | py | # Copyright (c) OpenMMLab. All rights reserved.
import torch
from mmdet.core.evaluation.panoptic_utils import INSTANCE_OFFSET
from mmdet.models.builder import HEADS
from .base_panoptic_fusion_head import BasePanopticFusionHead
@HEADS.register_module()
class HeuristicFusionHead(BasePanopticFusionHead):
"""Fusion ... | [
"noreply@github.com"
] | noreply@github.com |
69ef378642a90c904e60bcd86fa6932e967ed311 | 032117bbf248a76abd25fcc2355bc8ade84fa76a | /inheritance_4.py | b62203cddf2bf1a42b3576a58752aaab34cfb71a | [] | no_license | shefaligoel136/python_summer_training | ba8f28f6af008584b4239c73d466e4e9d35b4b01 | 0b97fea050342fe4ed95b18c5f7ed885a6c8ca23 | refs/heads/master | 2022-11-13T07:22:32.855717 | 2020-07-06T08:33:19 | 2020-07-06T08:33:19 | 277,480,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # using super
class a:
def __init__(self):
print("initof A")
def feature1(self):
print("feature 1 is working")
def feature2(self):
print("feature 2 is working")
class b(a):
def __init__(self):
super().__init__()
print("initof B")
def feature3(self):
print("feature 3 is working")
def fea... | [
"goel136shefali@gmail.com"
] | goel136shefali@gmail.com |
bded7a0abc4bf1dc4955561f7e0715bcba19006f | 7bd5ca970fbbe4a3ed0c7dadcf43ba8681a737f3 | /codeforces/cf326-350/cf334/b.py | 3d79209e1a77d7ad5f7c126cf1c70b802e0ece89 | [] | no_license | roiti46/Contest | c0c35478cd80f675965d10b1a371e44084f9b6ee | c4b850d76796c5388d2e0d2234f90dc8acfaadfa | refs/heads/master | 2021-01-17T13:23:30.551754 | 2017-12-10T13:06:42 | 2017-12-10T13:06:42 | 27,001,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | # -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll
mod = 10**9 + 7
class UnionFind:
def __init__(self, size):
self.rank = [0] * size
self.par = range(size)
self.g_num = size
def find(self, x):
if x == self.par[x]: return ... | [
"roiti46@gmail.com"
] | roiti46@gmail.com |
9f173ba385b704082ea7dd42c3c5fcdda3c25bb0 | 8e6c4def374ba21c934f6856c0333a1e8bff69db | /190415/randomTest2.py | 059ba08f9ea23984706e9c2cf9d8f94c9a6c3e4f | [] | no_license | inuse918/Python_Practice_2 | d5a930a95b51181330abc6601d80f71b67780740 | de4dd6ec8d96e9d259566916b9e7f08402e7917d | refs/heads/master | 2020-05-06T13:20:08.153295 | 2019-12-25T23:07:47 | 2019-12-25T23:07:47 | 180,128,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | import random
time=random.randint(1,24)
sunny=random.choice([True,False])
print("지금 시각은 ",str(time),"시 입니다.")
#if (sunny==True)and((time>=6)and(time<=9)):
# print("현재 날씨는 화창합니다.")
if sunny:
print ("현재 날씨는 화창합니다.")
else :
print("현재 날씨는 화창하지 않습니다.")
# 종달새가 노래를 할 것인지를 판단해보자
if time>=6 and time<9 and sunny:
... | [
"s2018s34@e-mirim.hs.kr"
] | s2018s34@e-mirim.hs.kr |
be7ba6113a8c980e9031c22cdb4c40498940dcc3 | c6bded1f43beb191c9c5fd7a96edc6f6bc366781 | /src/crawl_CF.py | d56d19a0593dac3dfdc11e4f72b330cb8d5b56d0 | [] | no_license | Renjerhady/EloR | 13d7a432504367755cda2200d08fd209fe7504a8 | 51edfaa260b491a7310815bbf961a3a099becbe7 | refs/heads/master | 2022-02-23T15:59:27.078638 | 2019-10-21T06:43:36 | 2019-10-21T06:44:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,830 | py | from bs4 import BeautifulSoup
import requests
import itertools
def get_soup(url):
headers = {
"User-Agent": "Pied Piper (www.arameb.com)",
"From": "Aram Ebtekar"
}
response = requests.get(url, headers=headers)
soup = BeautifulSoup(response.content, "html5lib")
return soup
def ... | [
"aramebtech@gmail.com"
] | aramebtech@gmail.com |
cd65aa3b646cd5e825a104e8767b2dbe1068af20 | b741252e3677dd2e981d452a14b41b182ebac18b | /hexomap/virtualdiffractor.py | eaab8a5029aa9b9ea1c36e5495136a499c652b89 | [
"BSD-3-Clause"
] | permissive | KedoKudo/HEXOMAP | 01960559c2c88fc37962f966ed43b13b169bc90f | 81f1c200fe5a3ad035adf22e941e08588192d513 | refs/heads/master | 2020-04-29T05:41:27.724239 | 2019-08-26T19:06:24 | 2019-08-26T19:06:24 | 175,891,640 | 0 | 0 | null | 2019-03-15T21:10:54 | 2019-03-15T21:10:53 | null | UTF-8 | Python | false | false | 7,181 | py | #!/usr/bin/env python
"""
Module of components for virtual diffraction.
"""
import os
import yaml
import numpy as np
from dataclasses import dataclass
from itertools import product
from hexomap.orientation import Frame
from hexomap.npmath import norm
from hexomap.utility import iszero
# --... | [
"zdms1987@hotmail.com"
] | zdms1987@hotmail.com |
f4777bda143cb4bb504692f3c4f72056032d0fb3 | ce7c501af175bcf7834d2f2b896bb6b7f8527bce | /main.py | 290f602c537818c5f2dc519cb94786b326e956aa | [] | no_license | Harikrishnan6336/Python_Learn_From_Home | b167657c8a8661dbb87e4c9263f9ab2555af4426 | 7d2567e11e6c45a44627108b194cbbd74c963cd7 | refs/heads/master | 2021-03-30T09:45:01.294468 | 2020-03-17T19:54:10 | 2020-03-17T19:54:10 | 248,039,844 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,640 | py | #This code is meant to be submitted to Python Learn From Home program by TinkerHub
class Tech:
info = {}
#The key of the dictionary is the name of the participant.
#And the value is a list comprising of [stack, designation, available time]
# Adds the tech stack of the participant
def addStacks(... | [
"noreply@github.com"
] | noreply@github.com |
92f03d5304cd9df07112f72bed3d35156851705e | f80f7529a68c168fd19dda179ad5ea762a7faa90 | /alembic/versions/ec62bcefe99d_create_categories_table.py | 6205d6232105826d204aa36c96074971f3eba8f4 | [
"MIT"
] | permissive | luisignaciocc/python-books-scraper | 76b9509444ca52af65411ca821ea9ffd8ff23a03 | a8dba19c1fd49a746711235219eb528a9743d108 | refs/heads/master | 2023-05-06T07:07:03.641242 | 2021-05-26T13:49:19 | 2021-05-26T13:49:19 | 349,744,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | """Create categories table
Revision ID: ec62bcefe99d
Revises:
Create Date: 2021-03-28 14:19:59.387880
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'ec62bcefe99d'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands... | [
"luis.cabezas@aukko.cl"
] | luis.cabezas@aukko.cl |
098998f8d95c610204722f8f0990286191492db1 | e9a0efee2089b1c3bf843633c7b226638bc09e0d | /DataStructures and Algorithms/Ammortization onArrays/CaesarCipher.py | 5bb577ea9668f61442f19fefda679a1816f4a8c4 | [
"MIT"
] | permissive | abhishekratnam/Datastructuresandalgorithmsinpython | 41226cf41d288e24dbe9cd9643650151cb2a1037 | 9339319f441755797f4d2818ac9cf742a63ab5ea | refs/heads/master | 2020-04-15T03:16:24.337787 | 2019-02-01T23:47:52 | 2019-02-01T23:47:52 | 164,342,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,445 | py | class CaesarCipher:
"""Class for doing encryption and decryption using a Caesar Cipher."""
def __init__(self,shift):
"""Construct Caesar Cipher using given integer shift for rotation."""
encoder = [None] * 26
decoder = [None] * 26
for k in range(26):
enco... | [
"noreply@github.com"
] | noreply@github.com |
5c0d30018cbe2c3ef11519938d2dcc3bbcfa328b | 267ab87884d6c74f8d676c1b6cfebf7e217e2ea7 | /index/views.py | 79a1320fcddf6b714ccc0465ccd2299e1bfd4d22 | [] | no_license | Emehinola/charlotte | 0d564181de1f5419a67c06e7dba5cd81796cb1aa | c3175757f5ce7d3ceab272dad9a866c4bea4bd1d | refs/heads/master | 2023-04-23T00:38:18.965089 | 2021-04-30T19:34:17 | 2021-04-30T19:34:17 | 363,119,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | from django.shortcuts import render
from django.views import generic
from blog.models import Article, categories
# Create your views here.
class Home(generic.ListView):
model = Article
paginate_by = 30
template_name = 'index/home.html'
def get_context_data(self, **kwargs):
context = {
... | [
"emehinolasam01@gmail.com"
] | emehinolasam01@gmail.com |
2c003bc352ae9a2de24edeacf73478e603742dce | d27e62cb69beddbb52c63be4a7a1f54cf258ba67 | /services/users/project/api/models.py | 548b3d7c296c65573824fe23d1bb24b316ab824c | [] | no_license | gavinest/testdriven-app | 7f7f04278f148e42d30fa3b33b84c63bde0888ed | 44d83fc087e2adedeba48adbe739875d427a1de2 | refs/heads/master | 2020-03-29T18:17:21.734301 | 2018-10-24T12:59:35 | 2018-10-24T12:59:35 | 140,979,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,389 | py | import datetime
from flask import current_app
from sqlalchemy.sql import func
import jwt
from project import db, bcrypt
class User(db.Model):
__tablename__ = 'users'
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
username = db.Column(db.String(128), unique=True, nullable=False)
e... | [
"gav.estenssoro@gmail.com"
] | gav.estenssoro@gmail.com |
782847f05170889d6029e3cdac7acaa33f694b98 | 075d1037a4fc26dfb6a2255f439d80b634cfcd62 | /DataModel.py | 31ddfe0e2b304a5d8b55833ba0ba7f0b4651f863 | [] | no_license | ducdan/fruitsandgreens | bffe45acb5b1a2570c56238326f4bcc0dc1c3ace | d6b8a8fab16acdb6cc5f4bb5a1983b4cb8cbc756 | refs/heads/master | 2021-01-20T06:05:34.055289 | 2017-04-30T10:19:00 | 2017-04-30T10:19:00 | 89,843,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,957 | py | from flask import Flask, render_template,request
from flask_sqlalchemy import SQLAlchemy, Model
from sqlalchemy import Column, ForeignKey, Integer, String, Text, CHAR, DATE, Float, DECIMAL
app = Flask(__name__)
app.config.from_pyfile('config.cfg')
db = SQLAlchemy(app)
class NCC(db.Model): # Nhà cung cấp
ID_NCC ... | [
"51200482@hcmut.edu.vn"
] | 51200482@hcmut.edu.vn |
aa455216150fa5289d9f7ee746c32197e99a6b16 | 474d8f5a63af01233bec76f154ddf05f9114cab0 | /pysleuth/controllers/components/keylogger/_controller.py | 0fb6061a6d3305fe0d0ab093b58a6bfe959731ae | [] | no_license | yuhisern7/PySleuth | 50cb94983b5c9ba0ed42a1b998252882ef4159e4 | 5235536c6be4815e03b47bf896bbeec323917b25 | refs/heads/master | 2023-03-27T22:56:55.952649 | 2020-11-13T07:04:02 | 2020-11-13T07:04:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | from ....core.components.keylogger import KeyLogger
from ..._base import BaseController
from ....core import output
logger = output.Loggers.getMaster(__name__)
class KeyLoggerController(BaseController):
def __init__(self):
super(KeyLoggerController, self).__init__()
self.worker = KeyLogger()
... | [
"ashwin5059198@gmail.com"
] | ashwin5059198@gmail.com |
8543bcbeaead0694113b144c40525f0d8ca0ac1d | cc54cf98ec7c1dc88eae06ad12b9c66dc8d500b9 | /intrinio_sdk/models/api_response_crypto_true_strength_index.py | bd1b9566f61dd243b6253547bf33ae54da7f8950 | [] | no_license | sanderbrauwers/python-sdk | 0b3caef4c51c7f4192d315a4636e7278de2dc252 | 81f6facb30e7781c70ba0000485a0d994a82dbf8 | refs/heads/master | 2020-05-27T09:57:51.492025 | 2019-05-24T10:53:21 | 2019-05-24T10:53:21 | 188,575,545 | 0 | 0 | null | 2019-05-25T14:24:44 | 2019-05-25T14:24:44 | null | UTF-8 | Python | false | false | 14,157 | py | # coding: utf-8
"""
Intrinio API
Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API ... | [
"kgmillerdev@gmail.com"
] | kgmillerdev@gmail.com |
0e28bd12d0e6eb69f2357634329e50e95b087d15 | 8444ea5cd42c09a7061b481fcb8135f72201d57e | /FileMiner/setup.py | 34c5deb70de7b44f9bacfa68b8bc8558705ba4a0 | [
"MIT"
] | permissive | Igerald/FileMiner-PythonPackageConcept | 9c7489bd5b4f75da713756c3a296cc5f6cd6c7d3 | 77ab9884a0e3848613fa75a5a143072cd3e6122c | refs/heads/master | 2020-09-20T13:13:53.682202 | 2019-11-27T18:26:47 | 2019-11-27T18:26:47 | 224,491,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | import setuptools
with open("README.md",'r') as f:
long_text = f.read()
setuptools.setup(
name = "FileMiner",
version = "1.0.0",
author = "Isaiah Gerald",
author_email = "e0dasci@gmail.com",
description = "pkg-template-description",
long_description = long_text,
long_descri... | [
"noreply@github.com"
] | noreply@github.com |
a477f4d1d68a1a8e7fa815af261bde37f854edfe | 15298143f536b3f253ddbbe08c49593c225bfa0f | /tools/docker_deployement/main.py | 6d89429a4ed415af57c17592de618e8f71b0ec6e | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | djangobrunink/CellProfiler | dfe3bc0c20681729ddd8cc782dedb3ea89341e36 | cf845a1be4168a799a8bc2b25438b0cff6f1e275 | refs/heads/master | 2023-01-03T06:18:52.871747 | 2020-08-28T22:57:31 | 2020-08-28T22:57:31 | 285,306,031 | 0 | 0 | NOASSERTION | 2020-08-05T14:05:26 | 2020-08-05T14:05:26 | null | UTF-8 | Python | false | false | 1,322 | py | import glob
import os
from pathlib import Path
import docker
import pickle
def main():
# Path to the docker files.
docker_file_path = Path() / "docker_image_files"
# The name under which the docker image is stored.
image_tag = "j0rd1smit/detectron2"
# the path to the image files
images_path... | [
"djangobrunink@gmail.com"
] | djangobrunink@gmail.com |
7eb92eae0eafa08bc10dc542f03fc7ae30bbba8b | 711a550352cb39cc551118f0f4902f5dae8e94ed | /group/settings.py | be433a50b2e743f28f33b147e0801f65270f13d8 | [] | no_license | zj199664/lingshi | db9470e697f65890ffc0b9416d6e7ecc2d716c0c | a9a958b4963df97078f64366c51b1c246220a5cb | refs/heads/master | 2020-04-17T22:20:40.151045 | 2019-01-25T06:06:36 | 2019-01-25T06:06:36 | 166,990,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,077 | py | import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'kbj19x!%9-l$c2$b861a^^e(t$+4ff%6h74g!*+hr628ky$0-m'
# SECURITY WARNING: don't run w... | [
"1192217818@qq.com"
] | 1192217818@qq.com |
f2ad5621b9935aa53f1cff63460954ae5de1d0e6 | 6a74988075c2d33a5264b238d292c898f21ec792 | /application/controller/index_controller.py | 014fe93db65f61ccb2cf341ea8b1080d2209d080 | [] | no_license | gabsgc/covid-19-journal | 09caa7e25868b2678981c922f4740243526ea49a | 8821a54c3224ea55d085f0bcb82b799a4d477c6d | refs/heads/master | 2023-04-10T22:52:11.200175 | 2021-05-01T19:42:26 | 2021-05-01T19:42:26 | 363,299,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | from application import app
from flask import render_template
from application.model.entity.estado import Estado
from application.model.dao.estado_dao import EstadoDAO
from application.model.entity.noticia import Noticia
@app.route("/")
def index():
estado_list = EstadoDAO().findAll()
noticia1 = EstadoDAO().f... | [
"gabriellagarccia@gmail.com"
] | gabriellagarccia@gmail.com |
8eefdcd0f560f9474b98e085a4292b064e7dce77 | 65329299fca8dcf2e204132624d9b0f8f8f39af7 | /napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/mt_ipv6_reachability/prefixes/prefix/subTLVs/__init__.py | 21732f34697d6d2ac9444bb3316752278e827cf6 | [
"Apache-2.0"
] | permissive | darylturner/napalm-yang | bf30420e22d8926efdc0705165ed0441545cdacf | b14946b884ad2019b896ee151285900c89653f44 | refs/heads/master | 2021-05-14T12:17:37.424659 | 2017-11-17T07:32:49 | 2017-11-17T07:32:49 | 116,404,171 | 0 | 0 | null | 2018-01-05T16:21:37 | 2018-01-05T16:21:36 | null | UTF-8 | Python | false | false | 11,048 | py |
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from decimal import Decimal
from bitarray import bitar... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
f53cb9f9b4e947f1003e4e98baf2915ae2275bf4 | af60902eefaf2310f80ece1ac74885534aa43155 | /back/accounts/urls.py | 3e250509de14976bf9a60de4ee141f0238d919de | [] | no_license | uutaein/s1_netflixa | 9a773cbc2e4e16b31773284ea2a81db88c20e990 | 97ca2c3c04ec2672c6cca620f36915ae5cb4c9e7 | refs/heads/master | 2022-12-06T00:40:51.422333 | 2020-08-17T04:49:26 | 2020-08-17T04:49:26 | 274,104,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | from django.urls import path
from . import views
app_name = 'accounts'
urlpatterns = [
path('', views.user_list, name='user_list'),
path('<int:user_pk>/', views.detail, name='detail'),
# path('delete/', views.delete, name='delete'),
path('<int:user_pk>/follow/', views.follow, name='follow'),
# path... | [
"macaron61@gmail.com"
] | macaron61@gmail.com |
92329172eff2e4b3144e1abe0fa2c4fa8e730893 | 947d4102433b136ac65e6bbebd28ca51c53d1f5f | /ansible/library/reduce_and_add_sonic_images.py | baf99702c89fb32e4cb5718a65e1c501a6c3a86c | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | SW-CSA/sonic-mgmt | eac574040a20cea724208a442f7492f840dd1ec3 | d50a683dc3ab0206e1fef9230c136b4c19b084f1 | refs/heads/201811 | 2023-09-01T13:14:29.166752 | 2019-03-21T08:08:43 | 2019-03-21T08:08:43 | 142,762,730 | 2 | 5 | NOASSERTION | 2019-11-05T06:55:46 | 2018-07-29T13:21:25 | Python | UTF-8 | Python | false | false | 4,535 | py | #!/usr/bin/python
DOCUMENTATION = '''
module: reduce_and_add_sonic_images
version_added: "1.0"
short_description: remove excessive sonic images and install new image if specified
description: remove excessive sonic images from the target device.
Note that this version doesn't guarantee to remove older images. Image... | [
"noreply@github.com"
] | noreply@github.com |
780b80fa6885808a6cd823a419b5f2faea5eb627 | 48d6f70f2a97659ccc60e50c222477b98adb57b4 | /XOR/tensorflow_xor.py | c7046d300ce77228c508b6219a4ed9e646ea3e81 | [] | no_license | Anosy/tensorflow_DL | e1953112fb11f44fe2ac879b8e142a7e428478c0 | 5b64d3d1a3dbb481b7382100fb00006ab021408a | refs/heads/master | 2020-03-25T22:51:30.972034 | 2018-09-18T02:29:22 | 2018-09-18T02:29:22 | 144,246,341 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,600 | py | import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
# 定义学习率和输入的样本
learning_rate = 0.001
x_data = np.array([[0., 0.], [1.0, 0.0], [1.0, 1.0], [0.0, 1.0]])
y_data = np.array([[0], [1], [0], [1]])
# 定义占位符
x = tf.placeholder(dtype=tf.float32, shape=(None, 2))
y = tf.placeholder(dtype=tf.float32, sha... | [
"543695676@qq.com"
] | 543695676@qq.com |
d3ee284525c5c73036ffb401d8d4eb660df05e36 | 0017cece1870cafa316a8a72b5ff0551ca508385 | /agent_code/new_agent/transition_creator.py | 5a18a929c6aff058fe21969ac488a1245c716bd7 | [] | no_license | christian-lang-git/IFML-project | a43a6ee7421be4203b590ce30c82c72f4b3a7a99 | ec78df3f8290acd350990ade1f50e823080a5ad9 | refs/heads/master | 2023-03-30T16:01:15.486123 | 2021-03-28T19:32:31 | 2021-03-28T19:32:31 | 345,751,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,541 | py | from .preprocessing import *
def generate_8_transitions(old_state, action_index, new_state):
"""
Generates 8 transitions via rotation and mirroring.
Reward and termination flag are not included since they are constant for all 8 transitions.
"""
#the original transition
original = [old_state... | [
"christian.lang92@gmx.de"
] | christian.lang92@gmx.de |
91cb763aa8be76ec2433bcc71f0dbe10801c7b84 | daf6302fc060c45832b377c91a099a2c59fe878f | /loss.py | 8a486863754effdb7468e7d8c4ba3d5df1fe810b | [] | no_license | BUCT-Vision/Vessel-wgan-pytorch | 2277af4b5cb5a386550d03f431f00ed4df508b00 | d78a3e95a41e19e809c4ae10ebb88b57e20cf468 | refs/heads/master | 2020-03-18T23:39:26.929120 | 2018-05-29T15:11:54 | 2018-05-29T15:11:54 | 135,416,942 | 1 | 0 | null | 2018-05-30T09:03:37 | 2018-05-30T09:03:37 | null | UTF-8 | Python | false | false | 619 | py | import torch
import torch.nn.functional as F
import torch.nn as nn
# Recommend
class CrossEntropyLoss2d(nn.Module):
def __init__(self, weight=None, size_average=True):
super(CrossEntropyLoss2d, self).__init__()
self.nll_loss = nn.NLLLoss2d(weight, size_average)
def forward(self, inputs, targets... | [
"2595847310@qq.com"
] | 2595847310@qq.com |
668657bcff004b73d7f1774f4f953091a5bf649f | 3f55607c033fef615f8d0f9ef8d284f43d1709a1 | /shop/shop/settings.py | 04d5a80fe47afc58d6e082ce02f49aedb74d8b9d | [] | no_license | aakashres/shoppingcart | d37f7425f8585ac0463153a90ae4f1d2ed49c460 | 2060fac698130b78860072f5fcc0532ec716d087 | refs/heads/master | 2022-11-09T15:55:27.061262 | 2017-04-04T15:00:08 | 2017-04-04T15:00:08 | 273,651,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,505 | py | """
Django settings for shop project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
#... | [
"aakash.shres@gmail.com"
] | aakash.shres@gmail.com |
d9268d7f1a2b9e313336b8fa0a6b1d32d9ac827f | f1a80d9a4c4ff74142dd62096843cd0318389573 | /handlers/verifycode.py | 8bd4bae53f87446b9395d175695bb1b1448ec73d | [] | no_license | jenifly/tornado_Restful | ccc354a4034804ff47d19911ae4ef4d555d6b0b5 | ddd8cf49268049c23878b4ebcd84a87ed622b0c2 | refs/heads/master | 2020-09-04T11:24:32.140200 | 2020-04-20T01:04:58 | 2020-04-20T01:04:58 | 219,719,866 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,737 | py | import logging
import orjson
from typing import (Union, Dict)
from handlers import ApiHandler
from tornado.escape import utf8
from tornado.util import unicode_type
from config import IMG_CODE_EXPIRES_SECONDS
from utils.captcha.captcha import captcha
class ImageCodeHandler(ApiHandler):
route = r'/api/imgcode'
... | [
"1439916120@qq.com"
] | 1439916120@qq.com |
eb99dc50f86c3cd3d0216e7cd42345dc5877551e | c6348569359f6e2412ee2f3ef918e99601112629 | /RetoLiver/models.py | d111ef7b043a9e434feeb4e9b888fb8a1f873ccc | [] | no_license | MarcoBosglez/Reto_Liverpool | 9592434e23c55c9a83c2395b927a329fd187f487 | edd87fb273fa6169dd253ab8f3eb5e6f63eb6043 | refs/heads/main | 2023-05-02T00:37:31.481108 | 2021-04-30T23:53:20 | 2021-04-30T23:53:20 | 358,956,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | from django.db import models
# Create your models here.
class Reto(models.Model):
phone = models.IntegerField()
email = models.CharField(max_length=30) | [
"mark.bosglez@gmail.com"
] | mark.bosglez@gmail.com |
c20219e71fe96fd7ae87fe46a2305941c63e2a61 | 161f02552f5b50d395aedb2a8354b830efe09ef3 | /setup.py | ecc057a51d2f31c09576bd383975eb71a6d7869d | [
"MIT"
] | permissive | DuongVu39/HAM_Python | 8f79f8d6ca383b0b47ec9ae7cd3884d7313c3026 | 890229beb71848697c27baa767556265d60657c2 | refs/heads/master | 2021-05-02T07:30:01.436525 | 2018-04-18T00:35:15 | 2018-04-18T00:35:15 | 120,830,699 | 0 | 0 | MIT | 2018-04-05T06:42:09 | 2018-02-08T23:26:58 | Python | UTF-8 | Python | false | false | 336 | py | from setuptools import setup
setup(
name='HAM_Python',
version='v1.0',
author='Duong Vu, Jordan Dubchak, Linsey Yuo',
long_description=open('README.md').read(),
install_requires=['setuptools', 'pandas','numpy', 'seaborn', 'matplotlib'],
include_package_data=True,
license='MIT ... | [
"jordandubchak@gmail.com"
] | jordandubchak@gmail.com |
d2e145a737723d90d40cb49ba1513f4ce09da229 | d0fcc2198f1caf5633c4fc0d004ba68714396f1b | /bc4py/utils.py | d1c4a85cb4d9f0df6c85fb081bee3a4001b51119 | [
"MIT"
] | permissive | webclinic017/bc4py | 4bfce04b666c2aaadda4b7ecc2a8270839231850 | 620b7d855ec957b3e2b4021cf8069d9dd128587a | refs/heads/master | 2022-12-09T22:23:49.842255 | 2019-06-21T14:24:17 | 2019-06-21T14:24:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,100 | py | from bc4py.config import C, V
from bc4py.gittool import get_current_branch
from bc4py.chain.utils import GompertzCurve
from Cryptodome.Cipher import AES
from Cryptodome import Random
from Cryptodome.Hash import SHA256
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter
from logging import getLogger, DEBU... | [
"thhjuu@yahoo.co.jp"
] | thhjuu@yahoo.co.jp |
b19b553273708892d03cdfc7f70263dea147d7d4 | fcd1ac6d7349aea4219a22b6e3ae82797c98b5da | /src/components/action_selectors.py | 16ad8ef4056972b1c1f2af98029a0df20ce6f9e0 | [
"Apache-2.0"
] | permissive | multiagent-arn/ARN | ce339a1be37fa457cd29b68dde25a6d55ad72761 | eb566fcab409965ea4684b6a18c433d34562d0d6 | refs/heads/master | 2022-12-08T13:40:33.362080 | 2019-05-23T03:08:16 | 2019-05-23T03:08:16 | 185,226,977 | 2 | 0 | Apache-2.0 | 2022-11-22T03:14:23 | 2019-05-06T15:49:09 | Python | UTF-8 | Python | false | false | 2,337 | py | import torch as th
from torch.distributions import Categorical
from .epsilon_schedules import DecayThenFlatSchedule
REGISTRY = {}
class MultinomialActionSelector():
def __init__(self, args):
self.args = args
self.schedule = DecayThenFlatSchedule(args.epsilon_start, args.epsilon_finish, args.eps... | [
"arn.multiagent@gmail.com"
] | arn.multiagent@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.