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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2e80e582c43e38753bb554cab935deaee82d3b23 | 308115edf754d0e94637f35b3a0bd4a15e6b66b3 | /train_stylegan2encoder.py | d0b31a7fa30cf26efad6f743e2b957c80d62010e | [] | no_license | manoj04418/AudioStyleNet | ba4e9d480c2034b98a66ee4f83be3ed99ea4d965 | 070e7214ec73f5d81c77d367eb656469d1a1ad84 | refs/heads/master | 2023-08-16T08:09:56.808367 | 2021-03-26T07:58:02 | 2021-03-26T07:58:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,898 | py | import argparse
import numpy as np
import os
import random
import torch
from datetime import datetime
from glob import glob
from lpips import PerceptualLoss
from my_models import style_gan_2
from my_models.models import resnetEncoder
from PIL import Image
from torch.utils.tensorboard import SummaryWriter
from tqdm imp... | [
"felix.meissen@gmail.com"
] | felix.meissen@gmail.com |
32a95aa4742fabf685bb335ad6a630b7ee37a801 | 975b2d421d3661e6770b601929d5f11d981d8985 | /msgraph/generated/models/data_subject_type.py | 8af8f9227c69c2dc7db37be9eb47d8afd69c4c11 | [
"MIT"
] | permissive | microsoftgraph/msgraph-sdk-python | a7c551b85daadeebf76ec4ae12668664ea639b42 | 27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949 | refs/heads/main | 2023-09-03T21:45:27.989672 | 2023-08-31T06:22:18 | 2023-08-31T06:22:18 | 534,665,999 | 135 | 18 | MIT | 2023-09-14T11:04:11 | 2022-09-09T14:00:17 | Python | UTF-8 | Python | false | false | 357 | py | from enum import Enum
class DataSubjectType(str, Enum):
Customer = "customer",
CurrentEmployee = "currentEmployee",
FormerEmployee = "formerEmployee",
ProspectiveEmployee = "prospectiveEmployee",
Student = "student",
Teacher = "teacher",
Faculty = "faculty",
Other = "other",
Unknown... | [
"GraphTooling@service.microsoft.com"
] | GraphTooling@service.microsoft.com |
8f209de234a34528ade5241ac82fef81134e5bf2 | fb65ca093a02aeb0399e8d27c3a9e15715ac4476 | /tensorflow_图片_输入管道.py | 15b0d1d7232aef63830afcb51cd379a42a5a4b7a | [] | no_license | goodboyv/tensorflow | 978ddc4ac9bc8a8f5f0b599be850e2de335c5974 | 88c5dfa7b495a28cacdc508770781c8e56bb8d63 | refs/heads/master | 2022-08-01T11:58:58.225702 | 2020-05-16T12:01:15 | 2020-05-16T12:01:15 | 264,424,703 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,314 | py | """
通过输入管道将图片文件加载进来
"""
import tensorflow as tf
from tensorflow import keras
import os
# 解决“Failed to get convolution algorithm. This is probably because cuDNN failed to initialize”错误
from tensorflow.compat.v1 import ConfigProto
from tensorflow.compat.v1 import InteractiveSession
config = ConfigProto()
config.gp... | [
"2081787990@qq.com"
] | 2081787990@qq.com |
7ee4bfe3f288a7a5093db109a8acc3b6a2ee88a4 | 122739f3577d686f864dc90f4b67e32c7c7ad66a | /Palazzowebadmin/app/admin/model/devices.py | 628892bddd8bf818ca898c1f6bcf7fe7adf2eaf4 | [] | no_license | hi-ngscomas/Calendarbyvuejs | 2a3d733dbcf67cf8c1ee8816bdabcce0c242e4f1 | 135d71544e235e39aac5f9c5aa5408d30242a64f | refs/heads/master | 2023-05-09T07:28:20.378302 | 2021-05-30T08:34:54 | 2021-05-30T08:34:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,851 | py |
from app import db
from app.base.models import Devices
from sqlalchemy import extract, and_
from app.admin.model.util import Fillter
class StatisticDevices(Fillter):
def __init__(self):
super().__init__()
devicesdb = Devices.query.all()
self.total = len(devicesdb)
self.device... | [
"jayce7g@gmail.com"
] | jayce7g@gmail.com |
2a96a014e7ea6461ad66e66872e3828dc59bf21b | 4189c0da869e4853e7549be3778faf7a343aa517 | /실습3/04.py | 782e8fc2312e5fb838c1f580221034a96f3fa5c4 | [] | no_license | eomwonju/2018_Python | 4837f90e262f17811bb49cd411d4a22d204eee81 | 1369cc39a1736c12162268ce19c337ec6d77c821 | refs/heads/master | 2020-04-07T20:39:20.948807 | 2018-11-22T12:44:18 | 2018-11-22T12:44:18 | 158,697,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | kor1=int(input())
eng1=int(input())
math1=int(input())
kor2=int(input())
eng2=int(input())
math2=int(input())
kor3=int(input())
eng3=int(input())
math3=int(input())
grade=[[kor1,eng1,math1],[kor2,eng2,math2],[kor3,eng3,math3]]
number=int(input())-1
grade[number].sort()
print(grade[number],max(grade[number]),min(grade[n... | [
"dnjswn9612@naver.com"
] | dnjswn9612@naver.com |
34405ad77c78331d0d5982215aff3c9b75139970 | 54ddb3f38cd09ac25213a7eb8743376fe778fee8 | /topic_08_functions/examples/6_visibility_global.py | ec56199933ecb0c82714c47ca80123e9fa749b43 | [] | no_license | ryndovaira/leveluppythonlevel1_300321 | dbfd4ee41485870097ee490f652751776ccbd7ab | 0877226e6fdb8945531775c42193a90ddb9c8a8b | refs/heads/master | 2023-06-06T07:44:15.157913 | 2021-06-18T11:53:35 | 2021-06-18T11:53:35 | 376,595,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | x = 0
def outer():
x = 1
def inner():
global x
x = 2
print("inner:", x)
inner()
print("outer:", x)
outer()
print("global:", x)
# inner: 2
# outer: 1
# global: 2 | [
"ryndovaira@gmail.com"
] | ryndovaira@gmail.com |
8c2cc9343d4ad97d237dbd7df7f0698a79203475 | 6d70fd02b547b02683a7a840f6e55d2c46b61374 | /generator/group.py | 9b760c8f4f34c1b6b25f5ec32e936a72cee2a339 | [
"Apache-2.0"
] | permissive | Yaremenko-R/python_training | 26d1b009e99d22d34ddbb010227ccaa8cbf1c8fe | f198b898bd9947afd4f71bc01f992909df392a57 | refs/heads/master | 2020-06-16T12:35:14.292934 | 2019-09-08T15:36:40 | 2019-09-08T15:36:40 | 195,576,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | from model.group import Group
import random
import string
import os.path
import jsonpickle
import getopt
import sys
try:
opts, args = getopt.getopt(sys.argv[1:],"n:f:", ["number of groups", "file"])
except getopt.GetoptError as err:
getopt.usage()
sys.exit(2)
n = 3
f = "data/groups.json"
for o, a in opt... | [
"roman.jaremenko@gmail.com"
] | roman.jaremenko@gmail.com |
66925b569b205b36e465e85da39a6c1ca0b998ab | cccf8da8d41ae2c14f5f4313c1edcf03a27956bb | /python/python2latex/writeLTXtextrm.py | 25de7160851c9ab2eed55ced5886e34a78ecaea7 | [] | no_license | LucaDiStasio/transpilers | e8f8ac4d99be3b42a050148ca8fbc5d025b83290 | c55d4f5240083ffd512f76cd1d39cff1016909b8 | refs/heads/master | 2021-01-12T01:57:00.540331 | 2017-11-01T13:59:55 | 2017-11-01T13:59:55 | 78,448,378 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,283 | py | # Autogenerated with SMOP
from smop.core import *
#
@function
def writeLTXtextrm(filepath=None,args=None,options=None,*args,**kwargs):
varargin = writeLTXtextrm.varargin
nargin = writeLTXtextrm.nargin
##
#==============================================================================
# Copyright (c)... | [
"luca.distasio@gmail.com"
] | luca.distasio@gmail.com |
b0c7aa07a5f5dc73137d86a8f5ec8461b7805bbc | ba2f57223fa087c62104e2713227cb57aee4e766 | /PILS/venv/lib/python3.6/functools.py | 0016b86034fc880f766b1cec75cf56922a55b15a | [] | no_license | jgrosjean/pushIT_backend | b3274ffe0be075dce0c68bf351e502ed9f313231 | be25c87624b8ced419e75a257a919300d8c4caad | refs/heads/master | 2020-04-02T01:03:39.965175 | 2018-10-25T06:32:56 | 2018-10-25T06:32:56 | 153,835,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | /home/joris/anaconda3/lib/python3.6/functools.py | [
"jorissou@hotmail.fr"
] | jorissou@hotmail.fr |
755af9fb42c7da87a00587b067028beb4e042622 | 86040778faefede48ee9aac94adf3f480ac6802b | /GUI/client.py | 4dff001fb804a590fdedffadd761a1d0adcece3b | [] | no_license | parthivi1607/Python-GUI | d564889c758f2dfa29e776d9e22eb892dd23166d | 5dbf27622b8619da8b419ac0cd45b0973cb520a0 | refs/heads/master | 2022-12-17T18:13:12.646038 | 2020-09-18T19:49:07 | 2020-09-18T19:49:07 | 204,162,284 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,584 | py | import time
import subprocess
from time import sleep
import threading
import sys, os
import cv2
import numpy
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtCore import QThread, pyqtSignal, Qt
from PyQt5.QtGui import QPixmap, QImage
from PyQt5.QtWidgets import QApplication, QWidget, QLabel, QPushButton
import s... | [
"noreply@github.com"
] | noreply@github.com |
7e770218789b9204692a23c99f1cd102e33b5da8 | 0b7391603d4d1b200e9c1aa48a71b46e08b00b4e | /spectre_real_time_detection/netlink_process_monitor.py | cb6b962a4cf53240e27095a6debb4a3b424ac2fd | [
"MIT"
] | permissive | m3y54m/spectre-real-time-detection | 2d3809abbe5157cd6854f2a94fa04f9ce360f301 | d01169ada0e3d4527d07b48b6cbe26334422b81f | refs/heads/master | 2022-02-14T23:04:44.639896 | 2018-10-16T16:00:59 | 2018-10-16T16:00:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,422 | py | import os
import socket
import struct
from process_monitor import ProcessMonitor
if getattr(socket, "NETLINK_CONNECTOR", None) is None:
socket.NETLINK_CONNECTOR = 11
CN_IDX_PROC = 1
CN_VAL_PROC = 1
NLMSG_NOOP = 1
NLMSG_ERROR = 2
NLMSG_DONE = 3
NLMSG_OVERRUN = 4
PROC_CN_MCAST_LISTEN = 1
PROC_CN_MCAST_IGNORE = 2... | [
"philipp@altmeyer-home.de"
] | philipp@altmeyer-home.de |
7192366e4ae340bd2c198365d98840df2c9196e1 | 18f14fd5a4b884e470856a052cb30e02492956d2 | /event_sys/login_register/views.py | 311d003f2a7ccb7b9c282b35c2e8bf8c05661944 | [] | no_license | kingcrimeson/for_imu_event_sys | 86865c78b73781a35e452aa9f1a83367c80c43e4 | f95e7d43caa04c11419a073a6177926843eaa40c | refs/heads/master | 2021-01-04T06:10:51.206181 | 2020-02-21T15:30:11 | 2020-02-21T15:30:11 | 240,424,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,272 | py | from django.shortcuts import render
from django.http import JsonResponse
from . import models
import json
import datetime
# Create your views here.
def login(request):
userName = request.POST.get('username')
passWord = request.POST.get('password')
try:
user = models.User.objects.get(name=userName... | [
"616094580@qq.com"
] | 616094580@qq.com |
6544b9969952acc8db8e3615fa65c06dc351bb87 | 84ef54b603255f7597e07061393ecac8f1417579 | /PyToshi.py | 4af58261f7d578f9e0a46a6be8603113be1fcb46 | [] | no_license | EpochCR/PyToshi | 4e89c5220df4cb439e233e97c1f607bc2b799173 | c6782177a1398419f3a9e2621141c6fdfbb14910 | refs/heads/master | 2021-05-28T04:15:04.796826 | 2014-09-18T21:17:23 | 2014-09-18T21:17:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,820 | py | #By: Justin Chase (Onename.io/juju)
#Description: Simple and Small API for interacting with a given toshi node
import json
import urllib2
#Global declaration for api version to use
VERSION='v0'
#Pre: Given a URL to query returns an Object
#Post: Returns the entire json object
def getData(URL):
try:
data=json.load(... | [
"jujowned@Gmail.com"
] | jujowned@Gmail.com |
57370cd2601b3305ff7b1c621574b8fb07cf2667 | d198498188c4bbc3840da495e4124bb32f48a055 | /spark/EMRScripts/Facts/EmployeeOperationalEfficiencyDelivery.py | f2fc6b211e69443e709ae0ad9db34241ccdd036b | [] | no_license | SrikarNimmagadda/datalake | b34354292246deedd06630a344d88430899ae360 | 35c9bccdbf2df67a9fd361362674023d3acc5632 | refs/heads/master | 2020-03-10T02:42:36.775143 | 2018-04-17T19:05:02 | 2018-04-17T19:05:02 | 129,143,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,757 | py | from pyspark.sql import SparkSession
import sys
class EmpOprEffDelivery(object):
def loadDelivery(self):
spark = SparkSession.builder.appName("DimEmployeeOperationalEfficiencyDelivery").getOrCreate()
OperationalEfficiencyInput = sys.argv[1]
DimEmpOperEffOutput = sys.argv[2]
DimOpE... | [
"praveen.khare@capgemini.com"
] | praveen.khare@capgemini.com |
9929b0cde55f59cda90e7746be2576bcac35ce2a | 8ecdfb1e7c2cf34bfe5a072f5652d7c17ae471d7 | /scripts/twohalo_summed_nfw_matching_sim_fit.py | 00713bcee2c03d7d667fc2f0403161a11b739a26 | [] | no_license | nbatta/maszcal | e0a554f21a8379bea230db2ed375927282315ae5 | d16e51414db0be5209b7f016d43e29c6d50034dd | refs/heads/master | 2023-04-10T18:35:55.977964 | 2021-04-15T12:02:55 | 2021-04-15T12:02:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,739 | py | import datetime
import numpy as np
import pathos.pools as pp
import emcee
from sklearn.gaussian_process.kernels import Matern
import multiprocessing
import supercubos
import maszcal.cosmology
import maszcal.corrections
import maszcal.data.sims
import maszcal.data.obs
import maszcal.density
import maszcal.fitutils
impor... | [
"dylan@dylancromer.com"
] | dylan@dylancromer.com |
44dbc8c0db47e95a7155b1fc93e35cb1d9ea9a4c | c14915ef9613ed3cef1eabd2ab43481452d4668f | /manage.py | b19c69327a1ead7f3acd97938c2856f5eb253d04 | [] | no_license | vehrka/nws | afa581ea16e3ab1b875340d3f152e67b1dccdcf7 | 013981370ca3b3c5b4bc197b562ad0119c23a97a | refs/heads/master | 2020-08-05T12:08:53.828344 | 2014-12-11T12:28:51 | 2014-12-11T12:28:51 | 27,679,337 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | #!/usr/bin/env python
import os
from app import create_app, db
from app.models import User, Approle, RArousr
from flask.ext.script import Manager, Shell
from flask.ext.migrate import Migrate, MigrateCommand
print(os.getenv('FLASK_CONFIG'))
app = create_app(os.environ.get('FLASK_CONFIG') or 'default')
manager = Manager... | [
"vehrka@gmail.com"
] | vehrka@gmail.com |
5b4266ba6d8a5fec113fbe458257cc89b8ca52fa | c1edfae302e1bbdc39b3867d033204ec39f14691 | /two_pass_macro_processor.py | 250d40dd94c01d095dd05ef6db468ff89b11a58d | [] | no_license | aayush1909/System-Programming-and-Compiler-Construction | 3e1fd64a960bdea7d043dcb6a0d0b6805b272127 | e43a757dc5fd9686357bf0037c11ba840fb3b7b9 | refs/heads/master | 2022-10-18T03:35:05.850019 | 2020-06-12T04:11:43 | 2020-06-12T04:11:43 | 271,704,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,475 | py | path = r'C:\Users\Aayush\Desktop\macro.txt'
f = open(path, 'r')
#Open the macro file and read only
contents = f.read().split("\n")
#Split at /n
mnt, mdt, ala, pass1, pass2, arg, arg1, hashes, r, commas = [], [], [], [], [], [], [], [], [], []
mntc = 1
mdtc = 1
flag = 0
check = 0
i = 1
for line in contents:
if line ... | [
"36561691+aayush1909@users.noreply.github.com"
] | 36561691+aayush1909@users.noreply.github.com |
36aa53c07596f0697adcc2a9facc301ec460cbac | c9a6b59b7164b6e402105c802b91d6c2695cec21 | /blog/templatetags/isliked.py | 36f43c2eee37d031b1f40c6b9824525f9ca61c65 | [] | no_license | harunurkst/amar-campus | 9b9d10e216c9e85b2c78e0c6720310084d389187 | fe0474274fb7419ef70f9463842260af7d6dea2f | refs/heads/master | 2021-01-18T20:24:40.343852 | 2017-04-25T06:07:26 | 2017-04-25T06:07:26 | 86,963,328 | 1 | 5 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | from django import template
register = template.Library()
@register.filter(name="is_liked")
def is_liked(user):
post_id = request.POST.get('id', None)
post = get_object_or_404(Post, pk=post_id)
if post.likes.filter(id=user.id).exists():
post.likes.remove(user)
is_liked = False
else:
... | [
"harun1393@gmail.com"
] | harun1393@gmail.com |
6232de3bbca0e57c1093bee259d0a43e5ebee148 | 1bd1f19405a7d27b6c4fac0e696753c8327941c4 | /Tasks/prepare_data_4_dnn.py | 9f858c613b27bc503675b08be5e29a60c14f2de7 | [] | no_license | piaoxue85/stock_dummy | 4b33b800e5ea1ca7415fedaf4e25e692fb0f458b | afc719f206800784c2a2fefb2398098e2b0a9dc0 | refs/heads/master | 2020-04-22T20:51:22.268920 | 2018-04-20T15:46:08 | 2018-04-20T15:46:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,732 | py | #!/usr/bin/env python3
import os, sys
PROJECT_ROOT = os.path.dirname(os.path.dirname(__file__))
sys.path.append(PROJECT_ROOT)
from Visualizers.CandleChart import plot_kchart
from DataProviders.DailyData import *
from sklearn.model_selection import train_test_split
from keras.models import Sequential
from keras.layer... | [
"jixian@shadowgrid.io"
] | jixian@shadowgrid.io |
16b3158a216f4e50888e8ce251bd1ba84e5c5141 | a41fd1098360b1d893462646accfe60146ee99f9 | /SMS/wsgi.py | 5a7eb6d7d89f5320c4028571d59e2b16aec9e603 | [] | no_license | gushedaoren/python_sms | 4377ce605f4202758bfd747b52abcac85080c970 | 9c40f5497db1462fe27e02228e38de9e78529971 | refs/heads/master | 2020-05-17T00:46:44.950177 | 2015-02-27T08:17:30 | 2015-02-27T08:17:30 | 31,374,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | """
WSGI config for SMS 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/1.7/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "SMS.settings")
from django.core.wsgi impo... | [
"gushedaoren@gmail.com"
] | gushedaoren@gmail.com |
0550ec5d659f9f7971ec3fb42ac6a203b3bb51f0 | 8544a6f63436a0f3fb43f93dce751ea35d527472 | /Homeworks/LinkedBinaryTree.py | 4ea3345ca0b76705bb4c1d5f29c69c60e51d957b | [] | no_license | HengningZhang/Data-Structure-Python | cb505ee6633b83ae829e0649008f4f55112fe468 | f81243e5da5859f2242adf58394e5e00fb53c422 | refs/heads/master | 2020-08-30T12:57:16.367298 | 2019-10-30T21:37:21 | 2019-10-30T21:37:21 | 218,387,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,644 | py | import ArrayQueue
class LinkedBinaryTree:
class Node:
def __init__(self, data, left=None, right=None):
self.data = data
self.parent = None
self.left = left
if (self.left is not None):
self.left.parent = self
self.right = right
... | [
"noreply@github.com"
] | noreply@github.com |
25df9c11bca5396a9a38a826bf35ebbb3932fe78 | 33cb118354eb5ce25b1c81482ca6f97ebf1a9a0b | /100kHz_pulsing.py | e5f8df91a3f621cad31edf43c1af58edb1353c5d | [] | no_license | N0AHt/AutoMonaco | e01c9d496b9c67963b82e06e217105ca7248d02b | cd0e978a0b908135b312e95a1f317e09dedae374 | refs/heads/main | 2023-06-07T07:58:12.242733 | 2021-06-23T13:49:28 | 2021-06-23T13:49:28 | 305,406,470 | 1 | 0 | null | 2021-06-23T13:49:28 | 2020-10-19T14:12:09 | Python | UTF-8 | Python | false | false | 1,887 | py | from ArduinoGate import ArduinoGate
from Monaco import Monaco
import numpy as np
import time
import sys
#set to 10kHz
laser = Monaco(Port_id = 'com1', power = 50.5, pulse_freq = 1000)
gate = ArduinoGate(port ='com4', baudrate = 9600, timeout = 5)
#Laser Set-up
laser.set_parameters(power = 5, RRD = 10)
#set to 40 puls... | [
"n.telerman@gmail.com"
] | n.telerman@gmail.com |
8a80b2970cb995223ca3fbd816ed35588374d4ce | 41c399b5abfbcb41340070293df4d0dc3b846cab | /stage 6/mountainCar_dql_er.py | 0ab6485df7a7fea78492511b1dc5718d01acdeef | [] | no_license | wegfawefgawefg/GrokkingDRL_book | 650d74857cd67fa75556e91bbfd7a6286fb2873f | 87fafb6a77a6c1faa43fa1aa1e169eaf1b582437 | refs/heads/master | 2021-06-12T21:17:06.701873 | 2020-05-08T18:45:02 | 2020-05-08T18:45:02 | 254,401,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,633 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import numpy as np
class ReplayBuffer():
def __init__(self, maxSize, stateShape):
self.memSize = maxSize
self.memCount = 0
self.stateMemory = np.zeros((self.memSize, *stateShape), dtype=np.float32... | [
"668es218pur@gmail.com"
] | 668es218pur@gmail.com |
1fa19d44a1c11b59e3a25c948ed5ac15c23cdb30 | 8c917dc4810e2dddf7d3902146280a67412c65ea | /v_11/EBS-SVN/trunk/purchase_custom/__manifest__.py | 90748a083184db83669186389d9fa5f1e7757874 | [] | no_license | musabahmed/baba | d0906e03c1bbd222d3950f521533f3874434b993 | 0b997095c260d58b026440967fea3a202bef7efb | refs/heads/master | 2021-10-09T02:37:32.458269 | 2018-12-20T06:00:00 | 2018-12-20T06:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | # -*- coding: utf-8 -*-
{
'name': "purchase_custom",
'summary': """
Short (1 phrase/line) summary of the module's purpose, used as
subtitle on modules listing or apps.openerp.com""",
'description': """
Long description of module's purpose
""",
'author': "My Company",
'... | [
"bakry@exp-sa.com"
] | bakry@exp-sa.com |
53c61da6f4e2ef43c423c4f2ef4f9741ddbf5082 | 81df901093eacd7d1233a7e97c6bf9b6360b66b3 | /opencv_basic_handle/opencv_16.py | a6396eecdb72bf5198d2bbfa3467eba8a54332b3 | [] | no_license | ldgang0530/wxgzh | 44e090400f54b0432de3f8e14ff04b77351ac7a0 | cfcd2ebcc01e743679ee4fb69d020eb1cd6d7950 | refs/heads/master | 2020-03-22T16:11:42.131048 | 2018-09-17T15:41:20 | 2018-09-17T15:41:20 | 140,309,865 | 7 | 4 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
'''
@Project name: opencv_basic_handle
@Product name: PyCharm
@Time: 2018/8/17 23:07
@Author: ldgang
'''
import numpy as np
import cv2
if __name__ == "__main__":
img = cv2.imread('img/meixi1.jpg')
lower_reso = cv2.pyrDown(img)
higher_reso2 = cv2.pyrUp(img)
... | [
"821019341@qq.com"
] | 821019341@qq.com |
f0c000c385e5e99b30e9dd62e795c72a1a7c90be | c1241460a1f53404b126f26cb9f2c03d94e2fa67 | /todo/models.py | d2e15c978bf5b96a41c5e2fce23b7b4526d4b036 | [] | no_license | TechBenefits/todoproject | c7ac0a49636a10bcdad22f518d0ae74cf141256b | 1a92100fe10d73711f435f2fea5745839307959d | refs/heads/master | 2023-04-03T04:07:24.329180 | 2021-04-11T03:38:33 | 2021-04-11T03:38:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | from django.db import models
# Create your models here.
CHOICE = (('danger','high'),('warning','normal'),('primary','low'))
class TodoModel(models.Model):
title = models.CharField(max_length=100)
memo = models.TextField()
priority = models.CharField(max_length=50,choices=CHOICE)
duedate = models.Date... | [
"77223001+TechBenefits@users.noreply.github.com"
] | 77223001+TechBenefits@users.noreply.github.com |
e3d03d32e51e516989a28022f99a1ecc931a3bb1 | cb0e7d6493b23e870aa625eb362384a10f5ee657 | /solutions/python3/0199.py | 55bf7f22754e31867cd312d03f303f6cb6b10e0b | [] | no_license | sweetpand/LeetCode-1 | 0acfa603af254a3350d457803449a91322f2d1a7 | 65f4ef26cb8b2db0b4bf8c42bfdc76421b479f94 | refs/heads/master | 2022-11-14T07:01:42.502172 | 2020-07-12T12:25:56 | 2020-07-12T12:25:56 | 279,088,171 | 1 | 0 | null | 2020-07-12T15:03:20 | 2020-07-12T15:03:19 | null | UTF-8 | Python | false | false | 384 | py | class Solution:
def rightSideView(self, root: TreeNode) -> List[int]:
def dfs(root: TreeNode, depth: int) -> None:
if not root:
return
if depth == len(ans):
ans.append(root.val)
dfs(root.right, depth + 1)
dfs(root.left, depth +... | [
"walkccray@gmail.com"
] | walkccray@gmail.com |
b7ac2271f415f595aa5380f77be150c49345beab | f0e25779a563c2d570cbc22687c614565501130a | /Think_Python/ackermann.py | 58574bbcd3d3e680558b07a0a04c15c6a2349f44 | [] | no_license | XyK0907/for_work | 8dcae9026f6f25708c14531a83a6593c77b38296 | 85f71621c54f6b0029f3a2746f022f89dd7419d9 | refs/heads/master | 2023-04-25T04:18:44.615982 | 2021-05-15T12:10:26 | 2021-05-15T12:10:26 | 293,845,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | """This module contains code from
Think Python by Allen B. Downey
http://thinkpython.com
Copyright 2012 Allen B. Downey
License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html
"""
def ackermann(m, n):
"""Computes the Ackermann function A(m, n)
See http://en.wikipedia.org/wiki/Ackermann_function
n, m: n... | [
"cherry.kong0907@gmail.com"
] | cherry.kong0907@gmail.com |
3f24d53f0fb6532ff6c2a8719adfb0f3918614fd | ff7fb26c005ebfca38f5db316acf90637bfbbdea | /deploy/bin/deploy-startserver | fe40ff4dbe36aae463e108e8e119d2ac51cce3ef | [] | no_license | zenweasel/deploy | f2d9119f08d2b429f7ba89c57b2963fa11c9da1a | f36afe66963944cd74cf6a5a64f6af432f1f8269 | refs/heads/master | 2020-12-24T12:14:12.424812 | 2013-08-12T07:33:41 | 2013-08-12T07:33:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,510 | #!/usr/bin/python
# coding: utf8
# Deploy
import os
import sys
from deploy.conf import APPS_HOME, SOCKS_HOME, GIT_HOME, SUPERVISOR_CONFD, NGINX_SITES, NGINX_SITES_ENABLED, GIT_USER
from deploy.models import App
if len(sys.argv) < 2:
print "usage: deploy-startserver <appname> [<domain.com www.domain.com>]"
... | [
"sika.ondrej@gmail.com"
] | sika.ondrej@gmail.com | |
8006cb19b34e6a2408ca925cd93aaa3a5f3bdfca | c1dddae88707b41da3e1c98d2ac779e3f48f205d | /permit/migrations/0001_initial.py | 8ec12055056b1f571ff0a29176b8993f4a6dc1f6 | [] | no_license | sach01/revenue | eda23b0b5b9441bb769250c23d4ab9e2e3312a26 | 0cf80fc77bfa1a820e4d5b126d822e4dadfd3b54 | refs/heads/master | 2023-08-23T21:16:34.266044 | 2021-10-29T21:31:40 | 2021-10-29T21:31:40 | 422,717,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,276 | py | # Generated by Django 3.2.8 on 2021-10-29 20:23
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import permit.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | [
"sachbob22@gmail.com"
] | sachbob22@gmail.com |
f7eaadb3ee801b8011e2fddd03a055902f2da614 | 41e7b5e8407d1a03d2c3474864f8ca7f12077e85 | /Week 3/For loop/Practice Quiz/question_2.py | bf195824cda48b47ddae19e5a108265c487fc8ab | [] | no_license | sohanjs111/Python | 91f631b8558ed2655076e3711710c43935e64563 | e1453494478c66b991db6de638895d9e837ca635 | refs/heads/main | 2023-01-04T10:38:59.099607 | 2020-10-28T04:37:37 | 2020-10-28T04:37:37 | 305,313,110 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | # Question 2
# Fill in the blanks to make the factorial function return the factorial of n. Then, print the first 10 factorials (from 0 to 9) with
# the corresponding number. Remember that the factorial of a number is defined as the product of an integer and all
# integers before it. For example, the fac... | [
"noreply@github.com"
] | noreply@github.com |
cf656015240fd1666f35557334a292e64fb592c1 | 0d72003c802d14f137f92f172bdf60b04a8f6376 | /arkanoid/main.py | a50e65cc5c9e646bf9d915e59888b5b78817625d | [] | no_license | 3ooowojtooo/scripts | 857162a3aae8b710964cbc13d04c7e048bf28870 | e5786b293ad97a424d83159c223a1f7111abd369 | refs/heads/master | 2023-02-19T16:24:34.608651 | 2021-01-24T17:58:43 | 2021-01-24T17:58:43 | 325,132,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from game import Game
import pygame
def run():
game = Game()
game.run()
if __name__ == '__main__':
pygame.init()
run()
| [
"goralczyk4@gmail.com"
] | goralczyk4@gmail.com |
d9e0bc511e4e2824de47b2ed8a38c4a528b2ad2b | 1333a965058e926649652ea55154bd73b6f05edd | /4_advanced/ai-py-param-validation/src/paramvalidator/exceptions/validation_exception.py | 594afb62d07c15d96b2052c9d63a8accbf4eb5fb | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | grecoe/teals | 42ebf114388b9f3f1580a41d5d03da39eb083082 | ea00bab4e90d3f71e3ec2d202ce596abcf006f37 | refs/heads/main | 2021-06-21T20:12:03.108427 | 2021-05-10T19:34:40 | 2021-05-10T19:34:40 | 223,172,099 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | """
(c) Microsoft. All rights reserved.
"""
class ParameterValidationException(Exception):
"""
Base exception for parameter validation
"""
def __init__(self, message):
self.message = message
def __str__(self):
return self.message
| [
"grecoe@microsoft.com"
] | grecoe@microsoft.com |
cd6aa742377e3fee9534925e58cd0315280f6565 | edcd74f8f65119bdbe737360c2ca33b4a6da160a | /hadoop/Streaming/external.py | 1afebc0aa8721d409282bc89c00507e4d23ec6c2 | [] | no_license | hyunjun/practice | 72e83de6a1d5e04ddcd16526f16110ea2dd00373 | 5376dd48b1cefb4faba9d2ef6a8a497b6b1d6c67 | refs/heads/master | 2023-08-31T07:00:37.320351 | 2023-08-17T07:29:24 | 2023-08-17T07:29:24 | 2,704,126 | 3 | 2 | null | 2022-12-14T20:25:07 | 2011-11-03T18:28:44 | Python | UTF-8 | Python | false | false | 53 | py | #!/usr/bin/env python
#-*- coding: utf8 -*-
NUMBER=1
| [
"morpheus.0@daumkakao.com"
] | morpheus.0@daumkakao.com |
a7be7d0c99595985e6a9bcda3ec4af33a03ae376 | 18057e01c81dc792a73a2e0bd1a4e037de8fefcb | /kaohantei/ninsiki.py | 606ec732585a18eb525347fe8015002c5d6950de | [] | no_license | kentahoriuchi/Kenta | 15e80018f5c14e1409ac13a7a52c4f64acdce938 | 97bb657a37f0d89525b04f9157a223b47664793e | refs/heads/master | 2020-03-22T14:21:30.221093 | 2018-07-08T14:22:15 | 2018-07-08T14:22:15 | 140,173,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | from keras.models import load_model
from keras.utils.np_utils import to_categorical
from keras.optimizers import Adagrad
from keras.optimizers import Adam
import numpy as np
import cv2
import sys
dir = "face.jpeg"
img = cv2.imread(sys.argv[1])
filepath = "sys.argv[1]"
cascade_path = "haarcascade_frontalface_defaul... | [
"dorahori_108@yahoo.co.jp"
] | dorahori_108@yahoo.co.jp |
7706ae0bf014db30fd66cd10abc6cb7c45aa5a7a | 39fb7c1357cd80b96f7627cd49affa32135751b3 | /ia-aula6.py | b49102f77e3485d7405c27b5ef94e35a18714c99 | [] | no_license | feitosajoas/inteligencia-artificial | 47485407e07f359eb98b61792d05872389c96fbc | 4527ba8ce47b9e7e9cbd39e0a22c6a58c550f597 | refs/heads/master | 2021-07-10T23:03:35.628211 | 2020-10-28T02:35:11 | 2020-10-28T02:35:11 | 209,197,617 | 0 | 1 | null | 2020-10-28T02:35:12 | 2019-09-18T02:16:48 | Python | UTF-8 | Python | false | false | 470 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 29 20:34:17 2019
@author: Aluno
"""
from sklearn import metrics
nb_predict_train = modelo_vl.predict(X_treino)
print("Exatidão (Accuracy): {0:4f}".format(metrics.accuracy_score(Y_treino, nb_predict_train)))
print()
#Verificando a exatidão do modelo de dados de teste
n... | [
"joasfeitosadelimasilva@gmail.com"
] | joasfeitosadelimasilva@gmail.com |
c92faa3593a9cf6697e43fd3f35ed02a2fd07a83 | 7e256f6c3c7a2d46a14ee2ea37fd0ad1a4943801 | /pyramid_test.py | 253d52edd3163a61334ca856f48d56cb0f4af8ab | [] | no_license | jiteshpabla/python-web-server | e39e686d5425f938b30ec3623409a54a2beb8fa7 | aa983a1b07f91113d552d746e3e0b35bde69ce58 | refs/heads/master | 2020-09-11T10:21:09.755712 | 2019-11-16T02:27:37 | 2019-11-16T02:27:37 | 222,033,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,139 | py | from pyramid.config import Configurator
from pyramid.response import Response
def hello_world(request):
return Response(
'''<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, ... | [
"noreply@github.com"
] | noreply@github.com |
84286b8c7b5c0646eca3e8e89198d7205be33144 | a885e22606c6abaaf625c8d494a6f11217ff8a99 | /06/Python/FileManipulation/FileParser.py | f86dc2936e26c7cc9da652134319a6a81dce908f | [
"CC0-1.0"
] | permissive | auserj/nand2tetris | ff37009ca90fe7320dda06504a3c6ebda7eabb23 | 4d1e173724a8a278a6632fcbb4fc46d65c076f5f | refs/heads/master | 2021-06-12T05:32:09.362447 | 2016-12-22T13:28:07 | 2016-12-22T13:28:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,721 | py | from FileError import *
# Define a set of constants for various instruction types
NO_COMMAND = 0
A_COMMAND = 1
C_COMMAND = 2
L_COMMAND = 3
class Parser(object):
def __init__(self, fileName):
"""
Costructor Parser(fileName)
Open 'source' and get ready to parse it.
'source' may be... | [
"koo0905@gmail.com"
] | koo0905@gmail.com |
70ca19b3a39bd60cc546450ba5b33ac6732acf77 | 21429a1f4df1540845003f078e518ac04f198872 | /04/ukoly/ukol_7.py | a90afc0dfd9affca8ae60cfd492c25c30d9737df | [] | no_license | MonikaMudr/pyladies | c905bad6295e5b8c690547bb7f31c145f850b03f | c49c43bb622d83d61db80087d5d41b92f4906da5 | refs/heads/master | 2020-05-04T12:42:17.724104 | 2019-08-21T21:24:08 | 2019-08-21T21:24:08 | 179,130,869 | 0 | 0 | null | 2019-06-13T19:32:06 | 2019-04-02T17:55:43 | Python | UTF-8 | Python | false | false | 1,005 | py | rodne_cislo = input('Zadej rodne cislo: ')
# a) je ve spravnem formatu, 6 cislic/4 cislice?
cislo_seznam = rodne_cislo.split('/')
if len(cislo_seznam[0]) == 6 and len(cislo_seznam[1]) == 4:
print("Rodne cislo ma spravny format.")
cislo_bez_lomitka_string = ''.join(cislo_seznam)
cislo_bez_lomitka = int(cislo_bez_lo... | [
"monika.mudrochova@gmail.com"
] | monika.mudrochova@gmail.com |
a696e181257b4b2e59d74725a93997db07b786d3 | deb5a6bbf4495a77ba4a724fb646ea7589baad50 | /Python/kodolamacz-tasks/web-scraping/venv/bin/chardetect | 869dabb23202a5675301ae7e5d4bf049997d5335 | [
"MIT"
] | permissive | mmarkie2/Studies | c9fed78eb3c9fa675793557bb9c99e3577dbc663 | 5db8f261e549281f6d4604737909899bbd510be0 | refs/heads/master | 2023-01-21T23:39:25.676219 | 2020-11-22T16:04:20 | 2020-11-22T16:04:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | #!/home/kamil/dev/Studies/Python/kodolamacz/web-scraping/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"kamil.cinner@gmail.com"
] | kamil.cinner@gmail.com | |
26a9e2aeacc446c77d067e7cc55ffa06bcee09f1 | c0f9b7093c08e4c17b435472ac2f881e97382d07 | /in_action/uds_server.py | e9ab34da90fc70e05910afbc369af236da5ce7e6 | [] | no_license | chenluj/socket.py | 36d499bc8e10826447332b8ee58642fc37dd2e22 | ff6dcfa9275088dbe8e5b087b0db502241712a9f | refs/heads/master | 2020-04-08T14:50:32.424524 | 2016-11-07T12:16:19 | 2016-11-07T12:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | import socket
import os
server_address = '/tmp/uds_socket'
# Make sure the socket does not already exist
try:
os.unlink(server_address)
except OSError:
if os.path.exists(server_address):
raise
if __name__ == '__main__':
uds_sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
uds_sock.bin... | [
"jiacai2050@gmail.com"
] | jiacai2050@gmail.com |
ee6bcc6c3c1e3a1f3d10c271973c9330861c4882 | e09d60c5a5f70c76a0abe88399d10332141b4c16 | /app_tourist/models.py | 8a035aa7144343cce63fe8684ab296b2ff0de4ce | [] | no_license | zulevicius/tourist-system | 9f84e7ee3abb7149b31acd6874b5cd94ec314b51 | 98e49fd6c7a16a39f1061477dc72b5e019a9c6af | refs/heads/master | 2020-07-15T22:52:36.617629 | 2017-02-07T15:08:16 | 2017-02-07T15:08:16 | 73,956,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,958 | py | import os
from django.conf import settings
from django.contrib.auth.models import User
from django.db import models
from sorl.thumbnail import get_thumbnail
class Place(models.Model):
title = models.CharField(max_length=50, verbose_name="Pavadinimas")
address = models.CharField(max_length=64, verbose_name="A... | [
"z.ulevicius@gmail.com"
] | z.ulevicius@gmail.com |
7a52bd2dc5f9b0f200ec0b550facbc8715441923 | 043ca446cbee59c1926de7473869ef34748e5b2b | /_2019/windmill.py | c133ab63983de261a692cf2dd68f69183eeb79b6 | [
"MIT"
] | permissive | soubam/videos | 785d04907d6955456797f989893b3f811c7f721e | 04a00e521808e2b733903bd1c91435a29ba2c678 | refs/heads/master | 2023-08-28T15:38:08.284733 | 2021-11-11T23:22:35 | 2021-11-11T23:22:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120,504 | py | from manim_imports_ext import *
import json
class IntroduceIMO(Scene):
CONFIG = {
"num_countries": 130,
"use_real_images": True,
# "use_real_images": False,
"include_labels": False,
"camera_config": {"background_color": GREY_E},
"random_seed": 6,
"year": 201... | [
"grant@3blue1brown.com"
] | grant@3blue1brown.com |
b7721870d8d7c53ef25f4eb6c25ca932b7aa76e7 | 10d8fab4b21d55cfef0139c04a7f70881f5196f4 | /Stack/simplify-directory-path-unix-like.py | db6af1a41488710662509a134bcd9f11f7e8172a | [] | no_license | wilfredarin/geeksforgeeks | a2afcfd2c64be682b836019407e557332d629ab8 | 5e27cb6706e0ae507694c2170fa00370f219c3e6 | refs/heads/master | 2021-08-07T05:48:39.426686 | 2020-08-19T07:25:19 | 2020-08-19T07:25:19 | 212,023,179 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,284 | py | """Simplify the directory path (Unix like)
Given an absolute path for a file (Unix-style), simplify it. Note that absolute path always begin with ‘/’ ( root directory ), a dot in path represent current directory and double dot represents parent directory.
Examples:
"/a/./" --> means stay at the current directory 'a... | [
"noreply@github.com"
] | noreply@github.com |
b43d82fb78149e56282cf3ad8b5b861b1b7f4b4b | df5e4878cc75f7cde18ec10697751dc59f09ea8b | /hilbert_gp/model.py | 283f944f97e0c34e9020bc70ded313fcc9549ae6 | [] | no_license | sabazm/hilbert_gp | a6c1687bbf9119a870e3f8e9bb4a7ced170403ab | a616c0fc0b5334f44654cb344918b24209849dbf | refs/heads/master | 2022-10-25T07:59:56.284228 | 2020-06-11T00:57:47 | 2020-06-11T00:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,063 | py | import numpy as np
import time
from scipy.optimize import minimize as fmin
from scipy.stats import norm
from .kernels import se_kernel, se_psd, sm_kernel, sm_psd
class HilbertGP():
def __init__(self, x_train=None, y_train=None, kernel='SE', L=1, m=10, kern_params=None, sigma_noise=0, Q=1, tresh=1e-50):
se... | [
"acuevas@dim.uchile.cl"
] | acuevas@dim.uchile.cl |
95ed8c363573b268961767c6ac445034981aa4fc | 56b7e5ed6941fc4b83148e00bd51421dc3ac993a | /66. Plus One.py | 5c90b466a6c9b5ec1b9b720e95ceb7cf9d7e3afa | [] | no_license | samir-0711/Leetcode-Python | f960e15015a3f2fd88f723d7f9237945a7133553 | d75876ae96bcd85c67bbfbf91bbc0f0bc773e97c | refs/heads/master | 2022-12-18T05:27:48.224001 | 2020-09-30T21:03:42 | 2020-09-30T21:03:42 | 300,061,318 | 0 | 0 | null | 2020-09-30T20:59:42 | 2020-09-30T20:59:42 | null | UTF-8 | Python | false | false | 1,094 | py | """
Given a non-negative integer represented as a non-empty array of digits, plus one to the integer.
You may assume the integer do not contain any leading zero, except the number 0 itself.
The digits are stored such that the most significant digit is at the head of the list.
"""
import unittest
"""
@param {int[]} di... | [
"bruce.tw.weng@foxconn.com"
] | bruce.tw.weng@foxconn.com |
35c4942e0f75a3a37ef04795fdbe9fad405ccc41 | 89feacc8862ab26448b3c9fb24cdb2c7732e87c3 | /AIND-Simulated_Annealing-master/AIND-Simulated_Annealing_modified.py | 735ebbd09a5be810a4c95ec11079466471e1a433 | [
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | alirezakfz/ArtificialIntelligenceIntro | b5d51525ca96ae757c36cd5fc61fba2148234428 | 1e286beb83d3e9e6633ec07727a3b099aa9f1099 | refs/heads/master | 2023-01-08T19:00:49.571227 | 2020-11-07T21:05:28 | 2020-11-07T21:05:28 | 287,332,620 | 0 | 0 | null | 2020-08-13T21:33:37 | 2020-08-13T16:47:03 | Python | UTF-8 | Python | false | false | 7,883 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Sep 14 13:39:26 2020
@author: Ali
"""
import json
import copy
import numpy as np # contains helpful math functions like numpy.exp()
import numpy.random as random # see numpy.random module
# import random # alternative to numpy.random module
import math
import matplotlib.... | [
"alireza_kfz@yahoo.com"
] | alireza_kfz@yahoo.com |
bdb9812cf2874f454a6ae0a548efa9589981824c | 3528abad46b15133b2108c237f926a1ab252cbd5 | /Core/_Axiom/Transport.py | bc2b7d2b4e8787c324fb18ec12fce7581ef3879f | [] | no_license | scottmudge/MPK261_Ableton | 20f08234f4eab5ba44fde6e5e745752deb968df2 | c2e316b8347367bd157276f143b9f1a9bc2fe92c | refs/heads/master | 2020-03-20T10:56:32.421561 | 2018-06-14T19:12:47 | 2018-06-14T19:12:47 | 137,389,086 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,693 | py | # Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/_Axiom/Transport.py
# Compiled at: 2018-04-23 20:27:04
from __future__ import absolute_import, print_function, unicode_literals
import Live
from .consts import *
class Transport:
u""" Class represent... | [
"mail@scottmudge.com"
] | mail@scottmudge.com |
9278f86695c4fc6937ea768b72bb61e5c71688ee | 78f1aaaeffb8f48b4a012f6700125348e396fe90 | /LaTeX/report_test/inscription.py | 8ccb0e4f4401712eef83783f0a0e9257a9b68f92 | [] | no_license | fthuin/software_engineering_project | eda625fe90f04f2a0d4652be6d77cd92a240a014 | 3e2bc1bb1ba4655060c3c41367bb736961eae031 | refs/heads/master | 2021-01-16T23:01:33.869567 | 2015-12-15T20:29:02 | 2015-12-15T20:29:02 | 42,591,013 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,614 | py | # -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import NoAlertPresentException... | [
"florian.thuin@student.uclouvain.be"
] | florian.thuin@student.uclouvain.be |
5dbea0ee8b5ef1ca38d84fa1aaf715f0c794feb4 | d89581e043a154a56de69f419f9e7c2f67cf4ff2 | /Apps/Engines/Nuke/NukeTools_1.01/Python/minorVersionUp.py | 214d1a6323b578537a59a33a18fc91be3ffd8409 | [
"MIT"
] | permissive | yazici/CyclopsVFX-Unity | 38b121333d5a5a610cf58489822c6f20f825be11 | 6ab9ab122b6c3e6200e90d49a0c2bf774e53d985 | refs/heads/master | 2020-04-29T15:05:04.942646 | 2017-11-21T17:16:45 | 2017-11-21T17:16:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,921 | py | #The MIT License (MIT)
#
#Copyright (c) 2015 Geoffroy Givry
#
#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, m... | [
"geoff.givry@gmail.com"
] | geoff.givry@gmail.com |
596bb733389d3312a61f9cba6e2875ed33693b7f | 724dbf71205afd3859fc0678f606d1c515ceb787 | /votes/polls/migrations/0001_initial.py | d49df27e62686ace2992257322c46dc9353f5771 | [] | no_license | sudheer-sanagala/learn-django | e98c5269759da0d046df0a5d97b21fd2335b374a | 588846e8c2aac09f73a19a0ffe2e7d318d0acd04 | refs/heads/main | 2023-07-18T00:23:14.857952 | 2021-09-04T19:09:37 | 2021-09-04T19:09:37 | 402,900,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,081 | py | # Generated by Django 3.2.7 on 2021-09-04 19:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Question',
fields=[
... | [
"ssanagala@specialized.com"
] | ssanagala@specialized.com |
5ed0361a1766243a5343de6cfa83213a5432970f | 73bbedbfb6f9ec5c7e91379f97307a747932b297 | /aula_11_operadores_logicos.py | d871d33bfecddab133799fbf0fedc02428a367f8 | [] | no_license | JonhFiv5/aulas_python | 6a9d02cca398edbe801c2daa399babf4a73ab6b4 | ce6ea83840aff9a2befb4d8397cc272cb3f9bd32 | refs/heads/master | 2022-11-27T21:12:11.533906 | 2020-07-22T11:32:40 | 2020-07-22T11:32:40 | 278,350,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | # São usados entre dois ou mais valores booleanos (comparações)
var_a = 1
var_b = 1
var_c = 2
condicao_verdadeira = var_a < var_c
condicao_falsa = var_a > var_b
# or - Retorna True caso alguma condição seja True
print(condicao_verdadeira or condicao_falsa)
# and - Retorna True caso ambas as condições sejam True
pri... | [
"joaok231@gmail.com"
] | joaok231@gmail.com |
02a11109051358ff22ca0f72ae912390e9c857de | 91541bf75ab22d7260a88c6be37ee62136f17c35 | /Tasks/task3/prototypes/tests.py | 3c0138b391c6f94285e4c1f520fdb182d4b55612 | [] | no_license | arti32lehtonen/mmp_prac_2017 | 08eb38699c2b6a156e9d56badb4a73044d0e22a4 | 9cc74b8d27798f1ad32465585f1861dccf76cd4c | refs/heads/master | 2021-01-22T15:51:21.880469 | 2017-12-10T11:18:14 | 2017-12-10T11:18:14 | 102,383,186 | 3 | 19 | null | 2018-05-22T16:14:54 | 2017-09-04T16:55:26 | Jupyter Notebook | UTF-8 | Python | false | false | 4,643 | py | import numpy as np
import imp
import svm
import oracles
from numpy.testing import assert_almost_equal, assert_array_almost_equal
import py.test
def create_context():
np.random.seed(100)
X1 = np.random.multivariate_normal(mean=np.array([-2, -2]), cov=np.eye(2), size=(100))
X2 = np.random.multivariate_no... | [
"artems-07@mail.ru"
] | artems-07@mail.ru |
b6151a8204b0a987982f6155238e148849b1a420 | 931fefea1da279fd182ba0036dc273d70da3f0d5 | /Utilities/Bbox.py | d8080240bf23ee522f554a7013b3c20ee9f35152 | [] | no_license | Maxime2O/cnn-classif | e63e34d1539576eba81efd6c0b7fcbfc072ca4ea | 3bb8910ac0fc8c2233ac587d528bb9b5012a73cd | refs/heads/master | 2020-08-01T17:04:20.996081 | 2019-09-26T10:09:10 | 2019-09-26T10:09:10 | 211,054,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py |
class Bbox:
def __init__(self, left, right, top, bottom, label):
self._left = left
self._right = right
self._top = top
self._bottom = bottom
self._label = label
def SetLabel(self, label):
self._label = label
def GetLabel(self):
return self._label
| [
"maxime.ottavi@orange.fr"
] | maxime.ottavi@orange.fr |
ee5b17f31d37c9dc6c237d3fbc7081642a5f41c1 | fd1b86f939a88299a877901d284a8bc05b6c70fb | /4s_data_total.py | 399cd9121a29974b97b4374f2202b51142dc354b | [] | no_license | yifanlu1992/turtle-code | 532b202f366562c535f12bd869d254107f5bc80d | 561bd767eab821b94a90b89de53e14b75aaf3a81 | refs/heads/master | 2020-12-11T03:32:56.236724 | 2017-09-29T18:26:36 | 2017-09-29T18:26:36 | 68,643,691 | 0 | 1 | null | 2016-10-24T17:34:07 | 2016-09-19T20:28:42 | Python | UTF-8 | Python | false | false | 1,557 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 13 10:38:00 2015
output 4second_turtle_up_down.csv and 4second_turtle_tdr.csv
@author: zdong
"""
import pandas as pd
import numpy as np
from turtleModule import str2ndlist
##################################3
data1=pd.read_csv('12487up_down.csv') #read file
up1=pd.Series(... | [
"noreply@github.com"
] | noreply@github.com |
c9d7559137e15e7041411bc11d03a93cdb49206a | 0b9bc16398582a9d1365696672d5740eb69b7b1e | /Semana6/analista/analista.py | edab87f04df8327f5c09271a5d0ca5ea716781ef | [] | no_license | vitorbarbosa123/lp1-python | 1b092748295c58c25766fe38a7748448ccb07615 | a6e876936a85d8f8ad5640f8ab307bd3a3c34744 | refs/heads/master | 2023-08-23T11:04:53.489564 | 2021-10-20T14:12:25 | 2021-10-20T14:12:25 | 387,443,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | def analisa_equidistantes(inteiros):
p1 = 0
p2 = (len(inteiros)-1)
lista = []
while True:
if p1 >= ((len(inteiros)-1) // 2) and len(inteiros) % 2 != 0:
break
elif p1 > ((len(inteiros)-1) // 2):
break
elif (inteiros[p1] % 3 == 0 and inteiros[p2] % 3 == 0) a... | [
"vitorbarbosa789@gmail.com"
] | vitorbarbosa789@gmail.com |
e63eab83fba29930e7acfd5611a54d2825c18d2f | 2ece725cd6d8c8474142b9d2356ccde3c86eaa6a | /comment/forms.py | 126a96e1dcca12270df01d8cb1b51e82225f731e | [] | no_license | ws-tkos/test | 0475dccda13d9f52e29baebd46645b11149f77df | 8a44c21c9015fb6132aba90021cdc586352a95bb | refs/heads/master | 2022-05-25T11:15:20.120370 | 2022-03-21T08:28:32 | 2022-03-21T08:28:32 | 243,448,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | from django import forms
from ckeditor.widgets import CKEditorWidget
class CommentForm(forms.Form):
course_id = forms.IntegerField(widget=forms.HiddenInput)
chapter_num = forms.IntegerField(widget=forms.HiddenInput)
text = forms.CharField(widget=CKEditorWidget())
def clean(self):
course_id = ... | [
"wangsheng0224@icloud.com"
] | wangsheng0224@icloud.com |
d3a1c4a014e244b6ab4565a5e932f0082a4ab67a | b3f58deae474db9035cd340b4e66b3e6bdafdeca | /components/proximity_auth.gypi | 3b4307df79370a117178a4013c1d5396e3ea6421 | [
"BSD-3-Clause"
] | permissive | quanxinglong/chromium | 0c45f232254c056e27f35e00da8472ff3ac49fd9 | 16dda055c8799052d45a593059b614ea682d4f6c | refs/heads/master | 2021-01-24T17:58:29.213579 | 2015-08-10T19:39:07 | 2015-08-10T19:39:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,788 | gypi | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
# GN version: //components/proximity_auth and
# //components/proximity_auth/ble.
'target_name': 'proximity_auth',
... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
975050352947450358340060f69ced694a7463e3 | 143eb3ced0ff1f9cad745c620fcb572f72d66048 | /Assignment4/atom3/Kernel/GenericGraph/models/test_GenericGraph_mdl.py | fd96c32e3307d5950cd3b3ee0c3afc1ddfd9c6c7 | [] | no_license | pombreda/comp304 | 2c283c60ffd7810a1d50b69cab1d5c338563376d | d900f58f0ddc1891831b298d9b37fbe98193719d | refs/heads/master | 2020-12-11T07:26:19.594752 | 2014-11-07T12:29:28 | 2014-11-07T12:29:28 | 35,264,549 | 1 | 1 | null | 2015-05-08T07:18:18 | 2015-05-08T07:18:18 | null | UTF-8 | Python | false | false | 1,825 | py | from graph_ASG_ERmetaMetaModel import *
from stickylink import *
from widthXfillXdecoration import *
from ASG_GenericGraph import *
from ASG_GenericGraph import *
from GenericGraphNode import *
from GenericGraphEdge import *
from ATOM3Enum import *
from ATOM3String import *
from ATOM3BottomType import *
from ATOM3Const... | [
"shankland@bigvikinggames.com"
] | shankland@bigvikinggames.com |
65b3e12a7a4232da82a51c7d4fddf642b3b3700e | 2df82b931c89ac70d49b0716d642d8e355926d50 | /product/urls.py | 87647f6494c6266c870dd2feb79bc260185026f8 | [] | no_license | khanansha/producthunt | 1a638104e83803b9afc4a51ff3ead438ae47cab6 | 03b8d45091c88a2ff142f0a3082910ac1fa0ba41 | refs/heads/master | 2021-05-26T03:21:35.246011 | 2020-04-08T08:41:17 | 2020-04-08T08:41:17 | 254,031,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | from django.urls import path, include
from . import views
urlpatterns = [
path('create', views.create, name='create'),
path('<int:product_id>', views.detail, name='detail'),
path('<int:product_id>/upvote', views.upvote, name='upvote'),
]
| [
"anjumkhan88987@gmail.com"
] | anjumkhan88987@gmail.com |
6d9a639c0ed2bf501ea300fdb80882b5d949cf03 | 46ad481d15bbd7c2a164c012aac2a4546f322737 | /src/skrough/algorithms/hooks/__init__.py | 0df64e4ca0f5f47121252afccd8436a07e2931d0 | [
"MIT"
] | permissive | sebov/scikit-rough | 4d4a3cc747e645de48a615a486c0dfac84a8abe2 | f71464a852c615c0b8b072b554ac1337700d3288 | refs/heads/main | 2023-06-07T21:45:12.692350 | 2023-05-29T06:58:09 | 2023-05-31T18:34:12 | 336,888,672 | 1 | 3 | MIT | 2023-09-09T14:30:27 | 2021-02-07T21:00:43 | Jupyter Notebook | UTF-8 | Python | false | false | 532 | py | from . import (
filter_hooks,
finalize_hooks,
init_hooks,
inner_init_hooks,
inner_process_hooks,
inner_stop_hooks,
pre_candidates_hooks,
prepare_result_hooks,
select_hooks,
stop_hooks,
)
from .common import process_elements
__all__ = [
"filter_hooks",
"finalize_hooks",
... | [
"12091011+sebov@users.noreply.github.com"
] | 12091011+sebov@users.noreply.github.com |
4e89cfb0cb47b0cc333f20c69ac5a681e6326b5c | a7fed70e69a2c74387270d32d4a4096d1ecd3e47 | /Project/Fifa_Site/Fifa_Site/wsgi.py | 48559a0d5ac0d6b696429146041db2c939936fa7 | [] | no_license | adityamd/Fifa19_Project | bad48d847879e966d37875b039685dd1cf561052 | 4dc6ae1d89634a8bb6785437fea3b14e810fe6e2 | refs/heads/master | 2021-02-05T20:34:25.523025 | 2020-03-03T14:21:11 | 2020-03-03T14:21:11 | 243,828,998 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for Fifa_Site 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"aditya.t2210@gmail.com"
] | aditya.t2210@gmail.com |
b98dfa1240d8bb0330bd47a98fbbe848f5c6744d | e9ef3cd143478660d098668a10e67544a42b5878 | /Lib/corpuscrawler/crawl_kjh.py | ed7f0805140a95e20c6d09212308da8737fd583b | [
"Apache-2.0"
] | permissive | google/corpuscrawler | a5c790c19b26e6397b768ce26cf12bbcb641eb90 | 10adaecf4ed5a7d0557c8e692c186023746eb001 | refs/heads/master | 2023-08-26T04:15:59.036883 | 2022-04-20T08:18:11 | 2022-04-20T08:18:11 | 102,909,145 | 119 | 40 | NOASSERTION | 2022-04-20T08:18:12 | 2017-09-08T22:21:03 | Python | UTF-8 | Python | false | false | 809 | py | # Copyright 2018 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 or agreed to in writing, ... | [
"sascha@brawer.ch"
] | sascha@brawer.ch |
c91e5c25e81bc959c3e7b691ba5705953353d1c7 | a7b3a7e355beef4b4beb85d3fc7aca98f8eb264b | /project/src/plot_factory.py | a3f8400cfa4d21c59a8b3756b3512bd894caf034 | [] | no_license | mmalk03/zmum | 95cce3f1a7d5a0aaafa43597b91eb0975a011726 | 38d7d6c4d9a3bbf974ff50c85a14696fca0787e6 | refs/heads/master | 2020-12-10T00:49:35.177556 | 2019-06-06T16:58:42 | 2019-06-06T16:58:42 | 233,462,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,123 | py | import numpy as np
import seaborn as sns
from matplotlib import pyplot as plt, cm
from sklearn.metrics import roc_curve, roc_auc_score
def plot_feature_scatter(df1, df2, features):
sns.set_style('whitegrid')
plt.figure()
fig, ax = plt.subplots(4, 4, figsize=(14, 14))
i = 0
for feature in features... | [
"m.malkinski87@gmail.com"
] | m.malkinski87@gmail.com |
e3fdb266c1eccd0fe7b37d9e9c90b9ef47a6f43b | 62320ca17595594fe5fed15791d25eb8165f642b | /src/PSPNet_zoo/resnet.py | 4ef84469e30b4fcc553aad01d06b863f4e680ae5 | [
"MIT"
] | permissive | Shankar-Balajee/ModelZoo_PyPi | c83aa1bebb5d5f265b5def6623badfd394c88748 | e3a22ac21b1a2f0865cdc5237a32d9c9a40913d9 | refs/heads/main | 2023-07-26T15:17:52.759694 | 2021-09-03T10:16:35 | 2021-09-03T10:16:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,828 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import os
import urllib.request as urllib
from tqdm import tqdm
model_urls = {
'resnet50': {'url': "https://download.pytorch.org/models/resnet50-19c8e357.pth", 'id': 'resnet50-19c8e357.pth'},
'resnet101': {'url': "https://download.pytorch.org... | [
"vinayakguptapokal@gmail.com"
] | vinayakguptapokal@gmail.com |
c3aee2a86ade2c88379db04f652422edc9b6f8a2 | d5820a49dd6779f31c654794dc5737c6d710f800 | /swagger_2/settings.py | 59c20a81e8ae155ae75816e42f812c7ed35289db | [] | no_license | ajing2/swagger_2 | 3bb95e64f5107371faed9db4228b56eeb3dd88b3 | be8cd8c6b383e5613f003c1ccfe3356859f7b6db | refs/heads/master | 2020-03-18T18:29:56.549799 | 2018-05-28T01:49:31 | 2018-05-28T01:49:31 | 135,096,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,456 | py | # -*- coding: utf-8 -*-
"""
Django settings for swagger_2 project.
Generated by 'django-admin startproject' using Django 1.11.13.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/r... | [
"lingjing@jd.com"
] | lingjing@jd.com |
aeeee04864a4e9f90e0b78751f06a0c1734023fe | ffca2ab12cb1dad9e3ddd6bf0f615cef91db62e5 | /test.py | cf87ab1380fb1dd2c650be87a67e7c934d453c5d | [
"MIT"
] | permissive | CyborgVillager/Block-Tower-Defense | 0ee26678bb00951b1168f5bc20c762c04cf8a648 | 287da85c852e8596de9e57827845c6d7db286ec9 | refs/heads/master | 2020-12-02T02:22:29.347524 | 2019-12-30T10:54:27 | 2019-12-30T10:54:27 | 230,857,127 | 0 | 0 | MIT | 2019-12-30T06:00:15 | 2019-12-30T06:00:14 | null | UTF-8 | Python | false | false | 1,138 | py | import pygame
pygame.init()
screen = pygame.display.set_mode((640, 480))
pygame.display.set_caption("Hello, world!")
background = pygame.Surface(screen.get_size())
background = background.convert()
background.fill((100, 60, 25))
clock = pygame.time.Clock()
keepGoing = True
color = (100, 100, 100)
size = (150, 50)
po... | [
"almawijonathan@gmail.com"
] | almawijonathan@gmail.com |
c53a23663b9b08422e55a259e9a10dd51bb8149a | 0c788d99d49f0694b07770e5ece8caabcf96f0e7 | /Django/image-share/shareimg/urls.py | 18459a6329fff62c5818d854b132d0dbb74e9ef6 | [] | no_license | jakegny/UdemyClasses | 1c5baec9f6ee1461fc548299985e683acb3ef219 | 5530b485b978e70ae8e5609c341131f2d3e76e31 | refs/heads/master | 2020-04-14T21:07:44.131735 | 2015-04-03T02:00:13 | 2015-04-03T02:00:13 | 33,340,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | from django.conf.urls import patterns, include, url
import views
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'image_share.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^$', views.upload, name = "main"),
url(r'^handl/$', views.hnd_load, name = "handl"),
)
| [
"jakegny@gmail.com"
] | jakegny@gmail.com |
4323a39ffac9bd87a3cddaf52a6097edcf7604b2 | 62c973701af3cccd3d0e6a5411aaee40c2773c2c | /Helato/apache/override.py | b4f95f0947f9d41ab39522c4109aa3938c555ef2 | [] | no_license | OriginalName75/HelatoEclipse | 3b949cad1460341c58ef7148a85574a29f09c60c | bbcc00570cffa8ca5f1e24f170d1b5adf03af7cf | refs/heads/master | 2021-01-18T22:06:31.714315 | 2016-05-31T13:08:09 | 2016-05-31T13:08:09 | 46,481,413 | 4 | 1 | null | 2016-05-17T08:47:18 | 2015-11-19T09:20:51 | HTML | UTF-8 | Python | false | false | 130 | py | # override.py
from mysite.settings import *
DEBUG = False
ALLOWED_HOSTS = ['http://146.185.169.251/', 'http://146.185.169.251/'] | [
"originalname@R2D2"
] | originalname@R2D2 |
8d97933803e80e49fb4e60afa204ec1d45bdb4fa | 17068e0746a4b678d2533bf95472932bf2eca956 | /pa2/dbengineRTP.py | 8a2c444911f38bed3288b9e2dfd51a20f9592b36 | [] | no_license | jleopold28/Networking | 1561e2526fce68063bd9d3b5a4be288ed7fe4963 | a745ebb9f22ae35a48d1f4ac69eb8924490929d2 | refs/heads/master | 2021-01-21T13:53:38.332382 | 2016-06-03T20:49:01 | 2016-06-03T20:49:01 | 53,606,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,833 | py | #RDT server for RDBA
import sys
import csv
sys.path.insert(0,'..')
from rtp import *
sock = None
db = {}
def clientSession(conn_id,addr):
print "STARTING CLIENT SESSION at " + str(addr)
while 1:
data = sock.getData(conn_id)
if data:
if data == "CLOSE CONNECTION":
sock.serverClose(conn_id)
print "CLOS... | [
"jleopold28@gmail.com"
] | jleopold28@gmail.com |
9b2280aaa62bce457de3844979d9cb4df6f1b6e2 | 2eab2bdaecb05d9428777a33b19c72e63f674af0 | /json格式.py | d58f1cb39fa70ed15aa8eb81c2fb93bec39e5a46 | [] | no_license | qishuhua/pythonworkspace | 8c4bb899f30d1c098dcf3ade54bc684d1616ec42 | 6ec78b8ffce11bfc6cf6ef06b38983fe51796d44 | refs/heads/master | 2023-05-06T19:31:55.263724 | 2021-06-02T12:35:44 | 2021-06-02T12:35:44 | 372,472,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | #!/usr/bin/python
# coding=utf-8
__author__ = 'qishuhua'
import json
student = {
'name': 'qishuhua',
'age': 1,
'status': True
}
print(type(student))
stu_json = json.dumps(student)
print(type(stu_json))
print('json class{}'.format(stu_json))
stu_dict = json.loads(stu_json)
print(type(stu_dict))
print(stu_... | [
"qishuhua@aliyun.com"
] | qishuhua@aliyun.com |
d5a5c939def085847ffa6a958f51d3a0dee2867d | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /Sourcem8/pirates/world/ZoneLOD.py | 484017d0780e356d8af203a398a3626258d15e5c | [] | no_license | BrandonAlex/Pirates-Online-Retribution | 7f881a64ec74e595aaf62e78a39375d2d51f4d2e | 980b7448f798e255eecfb6bd2ebb67b299b27dd7 | refs/heads/master | 2020-04-02T14:22:28.626453 | 2018-10-24T15:33:17 | 2018-10-24T15:33:17 | 154,521,816 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,823 | py | from pandac.PandaModules import *
from direct.showbase.DirectObject import DirectObject
from direct.showbase.PythonUtil import *
from otp.otpbase import OTPGlobals
from pirates.piratesbase import PiratesGlobals
class ZoneLOD(DirectObject):
notify = directNotify.newCategory('ZoneLOD')
def __init__(self, unique... | [
"brandoncarden12345@gmail.com"
] | brandoncarden12345@gmail.com |
cbd02d3ba28c6fc5e5debf0c2425543ebcca898d | a3e9a8e3bcaeddfa812ac13e49eaa12c11ad9671 | /bigtree/stupidtreelogic.py | 75040cfa0c628c88748c07231bdea202c513bee6 | [] | no_license | winzard/pythontreetest | 3088a8a110161ecbb7ead49d07dd384e6dc9b4fd | 30cb3183299fb193cbfe27fd1dfad261304998ee | refs/heads/master | 2021-01-17T17:04:40.761128 | 2014-02-10T09:47:14 | 2014-02-10T09:47:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,858 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
__author__ = 'winzard'
from _sqlite import OperationalError
import spring_loader as ya_loader
from models import Category
from random import randint
from django.db import transaction
from django.db.transaction import commit_manually
import datetime
def loadSpring(*... | [
"max.vasenkov@gmail.com"
] | max.vasenkov@gmail.com |
06766dea102009e8f0eb1834d1a6fa2ffa3fdca0 | 2a55c33047229256be920f63f9ef1736a32630a2 | /product/migrations/0013_auto_20190817_0400.py | 34c2b5b6aaa7a7c7bebbbd111a986f081dc9d83d | [] | no_license | kimlongngin/krtshop | ee00f8870f98579f5c603384a7e5ac08e56c7951 | da69e50015032bf06302b6267630991a4130510d | refs/heads/master | 2022-12-08T23:06:25.709558 | 2020-09-04T08:04:55 | 2020-09-04T08:04:55 | 292,787,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | # Generated by Django 2.1.8 on 2019-08-17 04:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0012_auto_20190817_0352'),
]
operations = [
migrations.AddField(
model_name='stocklocation',
name='email'... | [
"kimlong.planb@gmail.com"
] | kimlong.planb@gmail.com |
0232b2d463e1dd4b362167020da3de183a87eb6a | e6ebf8c660093d93ededd8f417524fd42fd68b92 | /data_preprocessing.py | db79db0173e04cc432c6c6a585b9bf68a98b1bfa | [] | no_license | DreamingPiggy/weibo_analysis | eb7561d2aa7347b8ae76a39e40f1d7b5d095437e | f93e8eb47ed468f38cd39f6a0acd4f72ee7d5abe | refs/heads/master | 2021-01-15T21:01:59.682268 | 2013-05-27T16:46:19 | 2013-05-27T16:46:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,446 | py | #!/usr/bin/env python
#coding=utf8
'''
Created on Apr 9, 2013
@author: yoyzhou
'''
import os
from os.path import join
from mimify import File
def concatenateAll(following_files_folder):
'''
Concatenate all weibo info resided in following files, in which each line presents a following user.
... | [
"iamyoyozhou@gmail.com"
] | iamyoyozhou@gmail.com |
90a7f3069e9ba241a85b3768ad2c418119a66401 | 1fef4a7758973d7627d5f00ba7eaa73f51fb30b5 | /simple_structure.py | bdf72007d7888863642ddd907ef47a1f4d4bc5ec | [
"MIT"
] | permissive | peeomid/python_messengerbot | e3d0133ffe701feaba2fa61db5331a903d9424dc | 4864d44f91c2bf321b6efa34f9f6e1a5255173ae | refs/heads/master | 2020-06-30T17:26:11.477684 | 2016-11-17T16:12:20 | 2016-11-17T16:12:20 | 67,304,594 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,707 | py | import os
import sys
import json
import requests
from flask import Flask, request, send_from_directory
import datetime
from random import randint
import env
from pybotkit import MessengerClient, messages, attachments, templates, elements
from pybotkit.event_handler import EventHandler
from pybotkit.utils import log,... | [
"lihavim@gmail.com"
] | lihavim@gmail.com |
0a20b519e36d3fe04ae35a352b79a0081867267e | 948d85dc37425569ad1af07f7d684a473ae9bbb2 | /manage.py | dc394f8209349ff67271af77701d24a4789e339a | [] | no_license | KedarDalvi/RC | 2c2e6ac759ab9b9eecc4edb8e96b528d522360c3 | ed669010089d6b7e56dabd98b3f5c41fa6816d69 | refs/heads/master | 2022-12-14T22:34:08.057256 | 2020-08-30T08:24:11 | 2020-08-30T08:24:11 | 290,490,187 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Rc.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError... | [
"kedardalvi2001@gmail.com"
] | kedardalvi2001@gmail.com |
da0ba7cd9b9e5a83beedfa9578e7f6870895f0c9 | c509f7652eef8069aa9660a884fe830d77f9ec55 | /examples/unity_loop.py | 7e204ff3da40d81b4b5a72cb723c758770b8aebd | [] | no_license | addy369/AnimalAI | e1e8d872f3bf71d9e101b1fb2c3160032ba88293 | 36a645f394affdff03e41253a5af9efaa05f71fd | refs/heads/master | 2023-03-31T00:22:16.644128 | 2020-03-30T08:35:05 | 2020-03-30T08:35:05 | 246,068,955 | 4 | 2 | null | 2023-03-24T23:25:12 | 2020-03-09T15:13:52 | Python | UTF-8 | Python | false | false | 1,045 | py | from animalai.envs import UnityEnvironment
import trainMLAgents.py
env= init_environment() # environment is created
#instantiate the agent??
tc = TrainerController(model_path, summaries_dir, run_id + '-' + str(sub_id),
save_freq, maybe_meta_curriculum,
load_model, train_... | [
"adityam0309@gmail.com"
] | adityam0309@gmail.com |
b6f879be814c5cb7ae7e78b1b76cb8c2557580c5 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_4_neat/16_0_4_kylewilson_d.py | f0a169990ea6d378bafc747d1a45704aacf52a63 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 355 | py | f = open("D-small-attempt0.in", "r")
fo = open("out.txt","w")
count = int(f.readline())
for case in xrange(0,count):
print case
line = f.readline().split()
k = line[0]
c = line[1]
s = line[2]
fo.write("Case #" + str(case + 1) + ":")
if s < k:
fo.write(" IMPOSSIBLE")
else:
for x in range(int(k)):
fo.wr... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
b554c0b71d5bee4daa9510fd41908b0cb3d74c0d | 6a7dc0545ee35353fb25d70f2389b33500320c04 | /main.py | b3c0093aeb04efe96920a5bc0aaab9be11e44f3f | [] | no_license | baiest/to_do_list_flask | 0248662c1220f0cd3955492e3787395b2ee55d41 | f3e3d993e98e0374b59b61e82011743347404927 | refs/heads/main | 2023-02-22T23:13:41.842941 | 2021-01-26T00:18:34 | 2021-01-26T00:18:34 | 332,302,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,559 | py | from app import create_app
from flask import render_template, session, redirect, url_for, flash
from app.forms import TodoForm, DeleteTodoForm, UpdateTodoForm
from flask_login import login_required, current_user
import unittest
from app.firestore_services import get_todos, put_todo, delete_todo, update_todo
app = cre... | [
"ballesteros.juan@correounivalle.edu.co"
] | ballesteros.juan@correounivalle.edu.co |
07632b55cea18f87762376f2c17c30d0fd1d32bc | ba694353a3cb1cfd02a6773b40f693386d0dba39 | /sdk/python/pulumi_google_native/compute/v1/network_attachment_iam_policy.py | a5af364be5feb5a7850e9d4462d7156faf070069 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-google-native | cc57af8bd3d1d6b76f1f48333ed1f1b31d56f92b | 124d255e5b7f5440d1ef63c9a71e4cc1d661cd10 | refs/heads/master | 2023-08-25T00:18:00.300230 | 2023-07-20T04:25:48 | 2023-07-20T04:25:48 | 323,680,373 | 69 | 16 | Apache-2.0 | 2023-09-13T00:28:04 | 2020-12-22T16:39:01 | Python | UTF-8 | Python | false | false | 22,498 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _u... | [
"noreply@github.com"
] | noreply@github.com |
b94aad03b01170dad9bc7eb234f9262aa45ddac0 | c980910c2d5666f4028e779bb84bb7282402b259 | /testdirect.py | 5afb353541a04a0029385c8e7fbf1a8e87ada5cf | [] | no_license | wuzhanmin/verpy3 | 3aad2cd46e4952f30049c678683ba7d7d575c79c | 907193999de9236c67737abb207e1028b94bf437 | refs/heads/master | 2021-03-18T00:22:13.131781 | 2019-04-24T07:26:48 | 2019-04-24T07:26:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,031 | py |
from analyzer.IOAnalyzer import IOAnalyzer
from analyzer.ModuleAnalyzer import ModuleAnalyzer
from analyzer.PreprocLexer import PreprocLexer
from analyzer.AnalyzerOption import AnalyzerOption
import logging
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
ch = logging.StreamHandler()
ch.setLevel(l... | [
"duc1810@gmail.com"
] | duc1810@gmail.com |
56889f0ab29684b663aee7c46f69f844f56e2992 | 02b9e7e899eef725fd4bcf7ea226d63e835c3a82 | /script/main.py | 5203556dbbedff93a16c1cfab319db8d5aa74d77 | [] | no_license | zijun726911/Traffic-Simulation | f4f225e459b983e21c0da26f94b854b6808d2efd | 80ff4988f0aaf1121d71ed2e39664ded934e0aee | refs/heads/master | 2020-09-26T12:18:38.693665 | 2020-03-14T01:36:41 | 2020-03-14T01:36:41 | 226,253,840 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | from script.packetPreprocessing import *
from script.packetsHandler import *
import decimal
import seaborn as sns
import matplotlib.pyplot as plt
import pandas as pd
import math
import random
if __name__ == '__main__':
fileName=""
packets=readPcap(fileName)
timestamps=readTimestamp()
timestamps,byteS... | [
"zijun112233@163.com"
] | zijun112233@163.com |
cbd889ff5c640ed8ee678127da06bba58df1a488 | edf0ecad87dd6ffb1e7a8c9a619289b56f13b949 | /keras_autoencoder/anomaly_detection.py | b11fd37d652806eaf87df1aa6370cbce27c3f541 | [] | no_license | TSKumarage/Python_Autoencoder | fc359b988e9286ddda54174f7059fa46192dc8a0 | ec4539fbd2f1cf27a92ca1dcdabe7369eb257a7a | refs/heads/master | 2021-01-13T08:00:39.196594 | 2016-12-23T04:57:46 | 2016-12-23T04:57:46 | 69,786,685 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,616 | py | import numpy as np
import pandas as pd
from tqdm import tqdm
from sklearn import metrics
from keras.models import Model
from sklearn import decomposition
from keras import regularizers
from sklearn import preprocessing
from keras.layers import Input, Dense , Lambda, K, LSTM, RepeatVector
from keras import objectives
fr... | [
"tskumarage@gmail.com"
] | tskumarage@gmail.com |
8349543e501ac1b4e2175a3e921803512980fb64 | 1663bbd8466895d4731efb7b82cc331af8a89827 | /small_app/migrations/0002_auto_20191206_0023.py | f453a8c32b85e9b258933cd51aed3b470191c2e8 | [] | no_license | sivalavinod/small_project | 703c1f7bc6a9d738f998df8aa26b35fe107cc94b | 258f5d72faaa85754b6cf155318aee9b59cdaaef | refs/heads/master | 2020-09-29T22:38:56.913044 | 2019-12-11T18:41:42 | 2019-12-11T18:41:42 | 227,139,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | # Generated by Django 2.2.7 on 2019-12-05 18:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('small_app', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='emp',
name='d_o_j',
),
... | [
"ffs"
] | ffs |
7f33ebf6e4c0e218d49274dab77575fbad6f4e72 | b3638a57ff986c9af7281f057bd4cb5641c11589 | /백준/210803_최단경로/11404플로이드.py | e3904cdf037eb2b00770b01adef797ef64f2da63 | [] | no_license | commGom/pythonStudy | 6adc01faddbe3ef88e0cbab9da174caa77857ff7 | a5d52e66dfd0b3b7538454ca2b6fcd9665f83e6c | refs/heads/main | 2023-08-25T12:21:27.670495 | 2021-10-04T08:19:42 | 2021-10-04T08:19:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | # 5
# 14
# 1 2 2
# 1 3 3
# 1 4 1
# 1 5 10
# 2 4 2
# 3 4 1
# 3 5 1
# 4 5 3
# 3 5 10
# 3 1 8
# 1 4 2
# 5 1 7
# 3 4 2
# 5 2 4
import sys
input=sys.stdin.readline
# 도시의 갯수 N, 버스의 갯수 M
N=int(input())
M=int(input())
# 버스의 도착도시, 드는 비용 값을 저장할 graph
#버스의 출발도시 도착도시 드는비용 순으로 값을 M번 받는다
graph=[[0 for col in range(N+1)] for row ... | [
"babywhitebear2021@gmail.com"
] | babywhitebear2021@gmail.com |
a9e6cc39a7869c34273a0f3409a6edd340630e7d | fbccf46f718dc3804235493ccd45a0ae6cc3ad3c | /scrapy20200907/main.py | c048b95409c63045b103a1577450b29d6b3e5218 | [] | no_license | asd5354123/QuestionMaster20200907 | 7ef05b423650820cab4ae36c685a6af47863c53f | f488a26ce2ee4093524e8b1fae51efdc37de5f02 | refs/heads/main | 2023-08-01T17:10:27.404106 | 2021-10-08T09:33:07 | 2021-10-08T09:33:07 | 414,911,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61,042 | py | import requests,os
from urllib.request import urlretrieve
import re
from bs4 import BeautifulSoup
from urllib.error import HTTPError
import time
yearlist=['2002%20Nov/0580_w02_','2003%20Jun/0580_s03_', '2003%20Nov/0580_w03_','2004%20Jun/0580_s04_', '2004%20Nov/0580_w04_','2005%20Jun/0580_s05_', '2005%20Nov/0580... | [
"noreply@github.com"
] | noreply@github.com |
011f5b4b76bd6f2e3f5f1d5c414e65815e8fd891 | edf400af43348b517fb33e939333b1322845af5d | /mysite/config/settings.py | c8668737c60b0163332b6c3eae1ef0e64e13fbbb | [] | no_license | 22jaeho/django-website-project | 0d8e2f26018e85d4afe8e96818e6932e6716a805 | 57ce69e1c42e197014b9b4269dd4339be79a3b95 | refs/heads/main | 2023-05-28T02:33:04.360732 | 2021-06-14T01:58:05 | 2021-06-14T01:58:05 | 376,675,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,299 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 3.0.6.
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/
"""
from pathlib imp... | [
"wogh9296@naver.com"
] | wogh9296@naver.com |
0468f8f8d3852fec3500d09cba904bdbd0e2e2c9 | bc9abf538f5d4093324b2f055f0b090fe4b03247 | /python/etc/primer3d.py | e4712fca4b2656dfe05717a7fff112e19d3cfd1f | [] | no_license | galaxysd/GalaxyCodeBases | 3c8900d0c2ca0ed73e9cf4c30630aca4da6cc971 | 58946261bf72afd6a7287e781a2176cdfaddf50e | refs/heads/master | 2023-09-04T04:59:35.348199 | 2023-08-25T01:04:02 | 2023-08-25T01:04:02 | 33,782,566 | 7 | 6 | null | 2020-09-04T06:06:49 | 2015-04-11T16:12:14 | C | UTF-8 | Python | false | false | 4,773 | py | #!/usr/bin/env python3
import argparse
import logging
import primer3 # https://github.com/libnano/primer3-py
# https://brcaexchange.org/variants and click "Show All Public Data", then click "Download" to get `variants.tsv`.
# gzcat ~/Downloads/variants.tsv.gz|head -n30|awk -F'\t' '{if (length($124)+length($125)==2 ||... | [
"galaxy001@gmail.com"
] | galaxy001@gmail.com |
ae33f1cbdd4cd82db2461d5661e591c2bc6e1004 | 8d441592edd4ce7fbbbfe1bec794e9d8dc503963 | /swagger_client/models/connector.py | 99384708b5a236182da9ca0c8e1945e488c3baef | [] | no_license | QuantiModo/quantimodo-sdk-python | 328c45befe5a4d63cc398171aab2137549c74f22 | ed863a38c3dc98b60a9fcb8f31416390a8d1a610 | refs/heads/develop | 2022-08-10T07:03:37.765512 | 2015-11-05T06:57:20 | 2015-11-05T06:57:20 | 34,023,219 | 0 | 0 | null | 2019-04-07T21:52:13 | 2015-04-15T23:11:20 | Python | UTF-8 | Python | false | false | 7,733 | py | # coding: utf-8
"""
Copyright 2015 SmartBear Software
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 applica... | [
"m@quantimodo.com"
] | m@quantimodo.com |
ea89ac27577193d64355e94381429f12cf74c5e0 | 2aad62f10e0ef44de64be455b642570c1315e839 | /data vis/2-1.py | 5451f12356ff585494205d65bf3b52a0d79217db | [] | no_license | deshiyan1010/iNeuron-Submission | 9c821dfd84421469861088f6dffb1c807db70dbf | a05d3952079c0d97a6833d0b245674c6082649dd | refs/heads/master | 2022-12-12T16:56:43.738184 | 2020-09-09T15:25:52 | 2020-09-09T15:25:52 | 264,190,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | import numpy as np
import matplotlib.pyplot as plt
from scipy import optimize
np.random.seed(0)
x_data = np.array(range(1,13,1))
y_data_max = [39, 41, 43, 47, 49, 51, 45, 38, 37, 29, 27, 25]
y_data_min = [21, 23, 27, 28, 32, 35, 31, 28, 21, 19, 17, 18]
def test_func(x, a, b,c):
return (a*np.sin(b * x))+c
param... | [
"noreply@github.com"
] | noreply@github.com |
8ccd0a9d9f470f637a6757c06c5c76520fbf0a9d | af9a2af3192035a8d51c1084773af2d06357e676 | /assign.py | 1b6002fa72ba1af59468f7fc027eafe153cc8c80 | [] | no_license | ShivanshThakur/CSE | b80ff4c867ecfcfefa1b10edc3a4b304b0a30aab | 6350cbc5abef866abd7a4dee134df67f22fea35a | refs/heads/master | 2020-07-07T14:26:53.840847 | 2020-01-17T08:08:20 | 2020-01-17T08:08:20 | 203,375,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 26 19:54:03 2019
@author:
"""
width=17
height=12.0
d='.'
print(width)
print(width/2)
print(width/2.0)
print(height/3)
print(d*10) | [
"noreply@github.com"
] | noreply@github.com |
217989fa3591eada71f3986a3f8d7079071acfa7 | d52ee2f7ec5dcd8825f4e221a7f084d488d35634 | /new_scripts/baselines/dmass/model/seq2seq.py | 8e1de823151e02d643e898a3ce67afbef2823090 | [] | no_license | rekriz11/sockeye-recipes | 9dbf96140e4d9d546210dd1c29801132e1b9201c | 644363b92e2f38311cc2b7e926b6558aa41900f3 | refs/heads/master | 2020-03-29T16:52:52.542574 | 2020-03-13T18:18:25 | 2020-03-13T18:18:25 | 150,131,769 | 5 | 3 | null | 2018-09-24T16:15:47 | 2018-09-24T16:15:46 | null | UTF-8 | Python | false | false | 16,250 | py | from model.graph import Graph
from model.graph import ModelOutput
from model.seq2seq_beamsearch import beam_search
import tensorflow as tf
from util import constant, nn
class Seq2SeqGraph(Graph):
def __init__(self, data, is_train, model_config):
super(Seq2SeqGraph, self).__init__(data, is_train, model_con... | [
"rekriz@seas.upenn.edu"
] | rekriz@seas.upenn.edu |
19caae95af6c0631aaf988b0928f7b54e00fb786 | 34b52f18adecc867d65034cef3251e18329c6ad7 | /Chapter04/01_cartpole.py | f857608c1cad37e05c453824e08da2f684e2b6b3 | [] | no_license | fdamken/deep-reinforcement-learning-hands-on | 4742418705c15096f6deff541910707109eefbee | 220f7269d520bccc8d71f69eb53bd40894c14ede | refs/heads/master | 2022-11-28T21:25:29.281710 | 2020-03-27T18:08:39 | 2020-03-27T18:08:39 | 248,737,337 | 0 | 0 | null | 2022-11-22T04:59:15 | 2020-03-20T11:19:29 | Python | UTF-8 | Python | false | false | 4,595 | py | from collections import namedtuple
from typing import List
import gym.envs.classic_control
import gym.wrappers
import numpy as np
import torch
from tensorboardX import SummaryWriter
from torch import nn, optim
log = gym.logger
log.set_level(gym.logger.INFO)
HIDDEN_SIZE = 128
BATCH_SIZE = 16
PERCENTILE = 70
LEARNING... | [
"fabian.damken@prodyna.com"
] | fabian.damken@prodyna.com |
52b50d41733d2b7f1878b20de3028584c876b7da | c478dca898173af5c863cf483d29c82cb2ab9c51 | /igtiflixweb/igtiflixweb/settings.py | 60dcb19bed43b04260d80368898dd917d0a701ee | [] | no_license | lucaslimaax/igti_flix | d68e226596e15c7f662069ea87151cf9af7287d2 | b6ebaeaaf0ed5fc76e5c1e38f378c7750b0bc300 | refs/heads/main | 2023-01-13T10:47:38.995690 | 2020-11-13T21:20:20 | 2020-11-13T21:20:20 | 308,042,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,077 | py | """
Django settings for igtiflixweb project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pat... | [
"38673203+lucaslimaax@users.noreply.github.com"
] | 38673203+lucaslimaax@users.noreply.github.com |
9a0dae0128bd1372ce165605968c29d209acedfc | 3b84bd9bfc7941258fcddf7deb81c24a49b27e94 | /lesson6/word_count.py | 0bd52c42679422799f1fe250a17899f09edcefd5 | [] | no_license | MikaCK/WPA | e4f45bffe5619defe95ddaed91da92f0edb8dc39 | cc77da7f864f4bb63753d0be9014b75ba82d239f | refs/heads/main | 2023-05-03T03:49:55.533815 | 2021-06-01T06:15:52 | 2021-06-01T06:15:52 | 367,100,786 | 0 | 0 | null | 2021-05-15T20:48:38 | 2021-05-13T15:58:47 | null | UTF-8 | Python | false | false | 317 | py | import urllib.request
import ssl
if __name__ == "__main__":
data = str(
urllib.request.urlopen(
"https://raw.githubusercontent.com/tomaspekarovic/PythonAcademy3/main/Lekcia6/scratch.txt",
context=ssl._create_unverified_context()
).read().decode("utf-8"))
print(data) | [
"ziczaces@hotmail.com"
] | ziczaces@hotmail.com |
e89a3ca80f84c77222fec002d558bcbaf39520b6 | 80eec4c7acbf8fe829275a66080530b98768db6c | /din_action/models.py | ff5fb2c831e0b644ca04d805a93923c1a5068868 | [] | no_license | xoxzo/din-action-server-demo | ae48ddcae7d76a876e8436d7533ec3ad09548479 | fb251e34e6a21afa50308d7e7b17bd05f641cf21 | refs/heads/master | 2020-12-30T14:01:33.358654 | 2017-06-02T01:06:13 | 2017-06-02T01:06:13 | 91,282,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | from django.db import models
class DinAction(models.Model):
action_text = models.CharField(max_length=500) | [
"nonaka@mac.com"
] | nonaka@mac.com |
8b6e54b4d98c1c2543bf213e466580c90ac468b3 | 1b728a01097465b06bee000c365674edf68d7bc8 | /webDemo/back-end/recognizer/urls.py | 18a6fa29af4102ef1b1ba908d4af16b4456df681 | [] | no_license | dalision/IVA-Xception | 88716dcec0da8f4f99dbbdb44f043f3e2941c1b7 | 082bf180847bfb2de75d29257f97818d0771589f | refs/heads/master | 2023-08-15T19:01:05.292854 | 2021-10-20T07:13:37 | 2021-10-20T07:13:37 | 342,869,074 | 15 | 2 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | from django.urls import path, include
from . import views
urlpatterns = [
path('upload/', views.upload),
path('recognize/', views.recognize),
path('upload_seperate/', views.upload_seperate),
path('seperate/', views.seperate),
path('download/', views.download),
]
| [
"1172863239@qq.com"
] | 1172863239@qq.com |
5f2dc070f45be301b05bb8c86338167ddb8cb177 | 72e5ced466f66f4fdbe98dc3334e8b116905b6b8 | /web_flask/6-number_odd_or_even.py | 32d02ba07cf82550b84ed329551cb0814ae8535a | [] | no_license | CutiePizza/AirBnB_clone_v2 | 39f0b5f671b60797db1a324b99c1655d9fbb2671 | 1b3310ba81a15c81c9220dfcb3c36616a5118e63 | refs/heads/master | 2021-05-18T01:59:32.440511 | 2020-04-22T22:51:48 | 2020-04-22T22:51:48 | 251,056,797 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | #!/usr/bin/python3
from flask import Flask, render_template
"""
file five
"""
app = Flask(__name__)
@app.route("/", strict_slashes=False)
def hello_hbnb():
return ("Hello HBNB!")
@app.route("/hbnb", strict_slashes=False)
def hbnb_only():
return ("HBNB")
@app.route("/c/<text>", strict_slashes=False)
def h... | [
"ines.chokri97@gmail.com"
] | ines.chokri97@gmail.com |
d2fe44622bb24756b61b213bf3e55799154afa69 | ca752ad55da471392e8690437d9a672c9a52bf2a | /manage.py | 30ad0b0215c06bac6732623c2d633d4d66ec30aa | [] | no_license | fortable1999/zhaomengblog | 9280f8bbb1b8f8bbb8e56e26b0b7fb074e07685b | f9ee379affee99ebf8a4a6da2b322fb469451fe9 | refs/heads/master | 2021-01-10T21:30:37.297876 | 2013-07-12T13:05:47 | 2013-07-12T13:05:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "zmblog.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"fortable1999@gmail.com"
] | fortable1999@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.