blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bd509e62a5dae0682157782a571e4f334b77a8a4 | f3d723c72c67b7550ba5a770c7deb73bd8ea1145 | /config.py | 6a0d3aa1fc64b0cb23e61500f4acf717749e781f | [] | no_license | jideyue/fisherblue | 22ee5945a3a72fcced83e76f064c05f5156de6b8 | 012a379ae8a8f923017a22aae616a3cd0aeab434 | refs/heads/master | 2020-03-26T05:07:39.262455 | 2018-08-13T07:25:29 | 2018-08-13T07:25:29 | 144,538,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:Eric.yue
DEBUG = True | [
"gide@gidedeMacBook-Pro.local"
] | gide@gidedeMacBook-Pro.local |
f0307471b5e465d7da731f0ccd730b7f2a73f094 | 7505e343750b6cbaac73721f701d7a429c5cc3d7 | /mysite/settings.py | acb40a4cecd72011f33e191ac49a6051514e7ebe | [] | no_license | Sachinys/blog-o-blog | 4407d0c92164f99e0ca8d6c51f883b10ab8688a3 | e2e7087884b03a1b3617a6463e83d532bb6fab85 | refs/heads/master | 2020-04-08T05:33:22.853708 | 2019-03-05T19:35:03 | 2019-03-05T19:35:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,209 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.9.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# ... | [
"yadavsachin980@gmail.com"
] | yadavsachin980@gmail.com |
d82b4cb5bd62d1de0d86ea4400e81bedefb8f708 | 4d5406aa8edfe69099a606445cdac5816f6d968d | /Abortions Data Project.py | bcc05987929d2acdcbd3aecec241ce2632963c64 | [] | no_license | ayianshariff2/projects | 508b3e4663022f8fb891d94cdee32008009e1c32 | 9ed06f0d31cad256a57f9583024ffc8f4b4f94c8 | refs/heads/main | 2023-07-13T20:23:23.141679 | 2021-08-26T03:19:08 | 2021-08-26T03:19:08 | 399,657,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,275 | py | #!/usr/bin/env python
# coding: utf-8
# In[572]:
import pandas as pd
import seaborn as sb
import matplotlib.pyplot as plt
import numpy as np
from scipy import stats
# In[573]:
df = pd.read_csv('set2.csv')
# In[574]:
df
# In[575]:
df.head()
# In[576]:
len(df)
# In[577]:
#Check for null values
df.i... | [
"noreply@github.com"
] | ayianshariff2.noreply@github.com |
16a1a44017eb6823b1f695144095e61915b378cc | 4b9854d1013b94153597eb5160ff5200e9d446d4 | /account/migrations/0002_auto_20201021_1204.py | 2f8ae694d751228bd70e9d701d036ebf22812f68 | [] | no_license | munyuaDeveloper/ClothStore | 045a898d7516bb2836fd37bb7dc2b3f640f2ea70 | 6688bb8eeda2f92e890bf7e2354039d14cc499af | refs/heads/master | 2023-01-20T13:05:42.266241 | 2020-11-17T14:18:27 | 2020-11-17T14:18:27 | 303,913,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | # Generated by Django 3.0 on 2020-10-21 12:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='customuser',
name='age',
),
... | [
"munyuapeter07@gmail.com"
] | munyuapeter07@gmail.com |
6f9ee6cc0c96b1a1e6c6fa704f0b38168df5a054 | 34a9bb179b7b5d9272a329267b9737a7bf8cacab | /P3/sample_files/get_color_blobs.py | 1f23edd366d86e51e0fb55df2fb887ab3babba27 | [] | no_license | DavidSolanas/Robotica | e914593ef3ae0b610d33d96689d1ad0fd82e3565 | a455a0eb8356ed51d778a37f04ff78494a89d333 | refs/heads/master | 2022-08-02T17:28:43.153429 | 2020-05-10T10:23:25 | 2020-05-10T10:23:25 | 243,767,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,680 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
###########################################
# Autores: Daniel Cay (741066) #
# Javier Fañanás (737987) #
# David Solanas (738630) #
# #
# Fichero: get_color_blobs.py #
# Robótica... | [
"davidsolanas086@gmail.com"
] | davidsolanas086@gmail.com |
0bcf0a54afced4499c0a42ab843f633e044d053a | a116fe99cc50e7caabb673791e8119331328af92 | /src/testStock.py | 4ebcfb94e3e0f5d63dbd9a683e5473213db5a56a | [
"MIT"
] | permissive | isabelcabezasm/webscraping | 4cbdce9dbcc3495ad770b03a5d3f25ebb2c37b73 | 72ee7dc83a7b06d7d55791bbb7899c299e37205a | refs/heads/main | 2023-01-06T02:19:42.766512 | 2020-11-02T23:29:01 | 2020-11-02T23:29:01 | 305,077,476 | 0 | 1 | MIT | 2020-10-31T17:00:11 | 2020-10-18T10:38:55 | Python | UTF-8 | Python | false | false | 3,969 | py | import unittest
import os
from bs4 import BeautifulSoup
from stock import StockScraper
from companydetail import DetailScraper
from testfixtures import TempDirectory, compare
class TestStocks(unittest.TestCase):
def setUp(self):
self.url = "https://www.bolsamadrid.es"
self.domain = "/esp/aspx/Merc... | [
"noreply@github.com"
] | isabelcabezasm.noreply@github.com |
f6bd82993ae840507e4fbd7155d586ca64141a99 | 625bbdeb7e970fca57b75eafbfaf1d1850f894a6 | /lib/wrangler/assets/__init__.py | 8231dd31b0b8c3ad6be569e302dada2194fcb3c2 | [] | no_license | adorsk/wrangler | e7dd333867c68cf7d6fc092355ba51fc2a8903c9 | caa9bd3e56167066bbb87b374a80b818007a230f | refs/heads/master | 2021-01-02T09:26:04.981721 | 2013-01-14T14:35:11 | 2013-01-14T14:35:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | from .git import GitAsset
from .rsync import RsyncAsset
from .hg import HgAsset
from .url import UrlAsset
| [
"adorsk"
] | adorsk |
3ca6551deb30d9c7166d57cb5154c352f1e3c392 | f577b89057fba4a775826a98a43a8e2f2328b1c3 | /weibo_mainpage/rabbit/rabbit.py | e0dd91e20df33eb104d5c1d8d9dac69eaa9d693f | [
"MIT"
] | permissive | basicworld/robots | 739362242dd01c739cb35b7c220c6261e1817603 | 502d6c6245298de7f9eadb6585287f7983e577a8 | refs/heads/master | 2021-01-10T13:25:10.269383 | 2016-04-05T01:56:37 | 2016-04-05T01:56:37 | 54,764,438 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 20,578 | py | # -*- coding:utf8 -*-
"""
Intro: tool kit
Author: basicworld@163.com
function_performance_statistics(): decorator
time_generator(): create time
list_converter(): convert to list
CsvManager(): wrapper csv model
MySQLManager(): wrapper MySQLdb
ZipManager(): wrapper zipfile
EmailSender(): wrapper mailer
test_func(): inne... | [
"basicworld@163.com"
] | basicworld@163.com |
6b1e7845039e2ed8549a871f5ea179611f0d8c80 | e2df68f0cc2aacbfa25467f537e08d846d96c29b | /kruskals.py | fa8024c5aed7cb1db91d5a4c21ba51265a330784 | [] | no_license | TheGigacorn/MSTMoCities | 65f66d82a92a2a1e7ffe4b8f0fdb814a867f2079 | 678052a7607dce9fc662308615b0f1fea83d1b38 | refs/heads/master | 2020-05-16T06:48:37.959396 | 2019-04-23T04:48:35 | 2019-04-23T04:48:35 | 182,859,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,065 | py | from collections import defaultdict
import math
import time
import matplotlib.pyplot as plt
class Graph:
def __init__(self,vertices):
self.V= vertices #No. of vertices
self.graph = [] # default dictionary
# to store graph
# function to a... | [
"bplwvb@mst.edu"
] | bplwvb@mst.edu |
0dcd82336e3db1d7df0829c2e2d1a24a356fd976 | fde5ac5880b0de1d5fc1338e0853adc7ecf793a9 | /ecommerce/utils.py | 20868231a45b66368e6d42195f2d5a4e739d4b25 | [
"MIT"
] | permissive | minaeid90/ecommerce | 7e039081a748d85d41155768ae98fd0e06f5157c | 8b14db5426ded6c7b208f98aa5b4fce425a818b9 | refs/heads/master | 2021-04-18T19:02:09.998943 | 2018-04-05T15:59:40 | 2018-04-05T15:59:40 | 50,954,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | import random
import string
from django.utils.text import slugify
def random_string_generator(size=10, chars=string.ascii_lowercase + string.digits):
return ''.join(random.choice(chars) for _ in range(size))
def unique_order_id_generator(instance):
new_order_id = random_string_generator()
Klass = insta... | [
"minaeid90@gmail.com"
] | minaeid90@gmail.com |
3e4d99f36c8c903cccb781857fee3486693f6ec6 | fae3ed93ef1984d422e94405e8d487c0e4c5f35e | /update_tweet_data.py | a92d645da306a81894325c13184818e29fef4a96 | [] | no_license | zebra-ok/twilytic-scripts | 689a90f5f22e432bbed5e8437da9317b83c01f34 | 1f3d2766c59e67edce2cb42903ae710165c39fdc | refs/heads/master | 2022-02-25T23:22:35.115217 | 2018-06-14T12:55:26 | 2018-06-14T12:55:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,620 | py | # pylint: disable=invalid-name
# pylint: disable=missing-docstring
# pylint: disable=trailing-whitespace
import logging
from datetime import datetime
import json
import rethinkdb as r
import tweepy
from tweepy_conf import init
from db_conf import get_conf
logging.basicConfig(filename='update_tweet_data.log',level=... | [
"art1fa@mailbox.org"
] | art1fa@mailbox.org |
bedcb1cd98634f43542af670fd42167c69f12f34 | 5bfcc6d8f9bc10838bc2548fbd9a7e7a7fc60e50 | /Graphing/GraphRead.py | a891f5abfb0cb89713e100fcf526928022e113f0 | [
"Apache-2.0"
] | permissive | siracoj/backbreaker | eb4799d8cbcfcc5857bd7e999dec2f4607c47fb1 | 1dd44adeaf54b4f5ac1783d0ecbeaaf8585a3f8e | refs/heads/master | 2021-01-02T09:19:08.680507 | 2014-04-17T21:36:22 | 2014-04-17T21:36:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,321 | py | import sys, serial
import numpy as np
import math
from time import sleep
from collections import deque
import matplotlib as mpl
from matplotlib import pyplot as plt
# class that holds analog data for N samples
mpl.rcParams['toolbar'] = 'None'
x_range = np.arange(0,5000,50)
fig = plt.figure()
class AnalogData:
# c... | [
"siraco.jared@gmail.com"
] | siraco.jared@gmail.com |
c74d344b017ab3629cf1934df349f896dd505283 | 8dbbbc9935ba68f06ce739d550a0b3f1a50f3f11 | /doc/conf.py | 50d3550c6cf1fd2f761aed292fcd6e11cb2c4eb0 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | jimjh/arc_cache | 9d0e8abe952a6e16a6eb382a65b9976f194a9c0f | 14e38f430d6e522af1b5ec411901c0a74dac1593 | refs/heads/master | 2021-01-10T09:11:19.895220 | 2015-11-27T06:11:55 | 2015-11-27T06:11:55 | 46,739,524 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 9,417 | py | # -*- coding: utf-8 -*-
#
# arc_cache documentation build configuration file, created by
# sphinx-quickstart on Thu Nov 26 21:50:47 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
#... | [
"j@affirm.com"
] | j@affirm.com |
661e449305c2c0c8994a9579eee3b9b288b21f0d | 9bb4c1fcf85b7ac041c686ca32b275cfa08135a3 | /ex13.py | d8393eec00c2a6d69cedf5898515fcf7dd326485 | [] | no_license | sunminnies/python3 | 0c24efde867e9194a8843752f61ea2545d8c6cff | b1830757aabcd8397c1aa8e1b2475d4018f847eb | refs/heads/master | 2023-06-15T11:07:39.668296 | 2021-07-13T01:52:27 | 2021-07-13T01:52:27 | 381,970,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | # 로그인 기능 만들기
userid = input('아이디는? ')
passwd = input('비밀번호는? ')
if userid == 'admin' and passwd == 'hanbitac':
print('로그인 되었습니다')
else:
print('암호를 다시 확인하세요!')
# for
for i in range(5):
userid = input('아이디는? ')
passwd = input('비밀번호는? ')
if userid == 'admin' and passwd == 'hanbitac':
print(... | [
"sunminnies@gmail.com"
] | sunminnies@gmail.com |
70725fd03a32f7caaa5d0ec5734c24663ce2dccb | 6117df1c489ff4d61b1e94b95477f00547112ca4 | /orders/migrations/0001_initial.py | ca987f7b868fc13204ac98c718ef615179fb3cd4 | [] | no_license | ameerabdulaziz/idealistic-solutions | 48cb08f3197dc9988a2b39c18007fdc9e103cd18 | cfcb6db1705700f2ccc5bb8cb600b120ecbc6317 | refs/heads/master | 2022-04-13T17:36:06.280882 | 2020-03-21T15:24:13 | 2020-03-21T15:24:13 | 168,604,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,401 | py | # Generated by Django 2.1.1 on 2018-12-22 19:59
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"ameer@idealisticsolutins.com"
] | ameer@idealisticsolutins.com |
22b5c47ace4373fa2c39747c3096d6fc1bc089b4 | cd8e2a926cbf734a08c06e3cff5af2ebff0489e5 | /scripts/haptic_sampler.py | acb1c4ad8d3a98cf26b2bb83c97e61ed2b01858d | [] | no_license | nalt/ros-lwr-controller | b21e5a22fffb22840a8f0d415d8575c3f3f57590 | bba1ece978f82dd5cee563728b0375b39178c8a7 | refs/heads/master | 2020-03-30T05:50:33.183909 | 2012-12-05T15:56:15 | 2012-12-05T15:56:15 | 7,019,551 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,062 | py | #! /usr/bin/env python
## \file
# Simple haptic surface sampler with joint control and force stopping
# \date 2012-04-25
# \author (c) Nicolas Alt, TU München
#
# Tool: Stabilo; operating just above ground
import roslib; roslib.load_manifest('lmtlwr')
import rospy
import actionlib
import math
import numpy
import ... | [
"nalt@sequoia.lmt.ei.tum.de"
] | nalt@sequoia.lmt.ei.tum.de |
8227d8adb533bf9ac1fdebbe182365cd93f83286 | f4fb91924eb2fd61f8fcae03287cf3577cc42083 | /comptes/forms.py | b31c49729e34d8ec5e8753fc1ef9470f2b1cfc50 | [] | no_license | nicos199-sudo/special | 82ae4499eb675f8404e9ede87d21554d19c4b03c | a0ad17481fdca464e7b3d77852c0ff138bd1b567 | refs/heads/master | 2022-09-18T04:42:30.239280 | 2020-06-04T11:07:21 | 2020-06-04T11:07:21 | 269,307,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | from django.forms import ModelForm
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django import forms
from .models import *
class ClientForm(ModelForm):
class Meta:
model = Client
fields = '__all__'
exclude = ['user']
class CommandeForm(ModelForm):
cla... | [
"ngerojeannicola@gmail.com"
] | ngerojeannicola@gmail.com |
d249830d869859d5f6d4d86807c9ed8c54a6335f | da83493df863566de4c009d41efc33755cb04a70 | /aiB/ai2组代码小样集合/一级学科分类.py | a27f37e82b14da4b87a9c75cb4e87eacfbfd352d | [] | no_license | Fattyzqrrrrr621/REC2020 | 0bac1b0d54a1cc86ec43f1eae692fbc30699f126 | 91d1dc7a2138eb04ae87b20bd2e77d1903d97df8 | refs/heads/main | 2023-02-01T20:43:44.115828 | 2020-12-18T13:04:26 | 2020-12-18T13:04:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,341 | py | import sqlite3 as db
from fuzzywuzzy import fuzz
import numpy as np
import re
def readFronSqllite(db_path,exectCmd):
conn = db.connect(db_path) # 该 API 打开一个到 SQLite 数据库文件 database 的链接,如果数据库成功打开,则返回一个连接对象
cursor=conn.cursor() # 该例程创建一个 cursor,将在 Python 数据库编程中用到。
conn.row_factory=db.Row # 可访问列信息
... | [
"2516795059@qq.com"
] | 2516795059@qq.com |
58ecace582d6ca62ff42c4695fd8cfeb69cb11c9 | 8377c6e663b5d77c955fab318419979fed8d02b5 | /src/FinanceDataLib/YahooFinance/YahooApi.py | 74432f3b3dda5460beef763e8ac842e2ef2abc07 | [
"MIT"
] | permissive | stephenmm/FinanceMarketDataGrabber | fc1d67203f71c842eb534982e747f690f887869b | eb9441cfa40da0df66536bf2610794fffb346948 | refs/heads/master | 2022-03-11T01:42:07.355519 | 2022-03-05T18:32:25 | 2022-03-05T18:32:25 | 69,380,838 | 0 | 0 | null | 2016-09-27T17:18:51 | 2016-09-27T17:18:51 | null | UTF-8 | Python | false | false | 1,235 | py | #-------------------------------------------------------------------------------
# Name: YahooApi
# Purpose:
#
# Author: RedSpiderMkV
#
# Created: 02/06/2014
# Copyright: (c) RedSpiderMkV 2014
# Licence: <your licence>
#------------------------------------------------------------------------------... | [
"redspidermkv@hotmail.com"
] | redspidermkv@hotmail.com |
69f035562688ade17a95403c296d102b6063d786 | 8bb5a204ea02eec4ecbdd789689cae690e949318 | /bert/model.py | 237120b9a37f1920610c48798af295201f69a076 | [] | no_license | sin392/pytorch_dl_advanced | 0c62cb375953851c5240ff40b540646f49e8c045 | 06cdc2795c6f8e7dc488eb42735ac7e188f3f5a6 | refs/heads/master | 2022-03-16T06:25:58.151972 | 2019-12-12T07:19:24 | 2019-12-12T07:19:24 | 227,530,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,362 | py | import torch
import torch.nn as nn
class BertLayerNorm(nn.Module):
def __init__(self, hidden_size, eps=1e-12):
super(BertLayerNorm, self).__init__()
self.gamma = nn.Parameter(torch.ones(hidden_size))
self.beta = nn.Parameter(torch.zeros(hidden_size))
self.valiance_epsilon = eps
... | [
"shinpei.mine@ghelia.com"
] | shinpei.mine@ghelia.com |
f1a4740244d7d79698de5bfe6929228015adab91 | 19d03121aba06ddb160cf07b70764c538a39ded0 | /downloader.py | 25ebd629dfee4d6aa01ba4cf7f40e1a9ac7f18e9 | [
"MIT"
] | permissive | anjkt/youtube-comment-downloader | 2559f2c51c65667ae65453950109023169aaeff9 | 6ff9d79214ee016ad08863cd404193a3767e926f | refs/heads/master | 2022-11-05T04:17:15.549409 | 2020-06-20T19:09:01 | 2020-06-20T19:09:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,159 | py | #!/usr/bin/env python
from __future__ import print_function
import io
import json
import os
import sys
import time
import argparse
import lxml.html
import requests
from lxml.cssselect import CSSSelector
YOUTUBE_VIDEO_URL = 'https://www.youtube.com/watch?v={youtube_id}'
YOUTUBE_COMMENTS_AJAX_URL_OLD = 'https://www.y... | [
"ebouman@gmail.com"
] | ebouman@gmail.com |
6c3bba20ec805200458dbe36a64ff4bfa77495a4 | ecec79bb8270a0ad18d988f45834fe6bbf0a230d | /chapter3/abcdCallStack.py | fdff22b84307959975ed29e9819e5916ba23d40e | [] | no_license | Kmolina009/Automating_The_Boring_Stuff_With_Python | 6f2c8a97ab82776017423e33058ecb35f805b378 | ca55c56fcd3dbd3c871d3fb1d3e3ec4e522c4c4f | refs/heads/master | 2022-11-21T00:35:40.804367 | 2020-07-15T01:50:25 | 2020-07-15T01:50:25 | 278,202,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,151 | py | # Call Stack Notes
# based on a meandering conversation
# Conversation flow as follows
# Talk about your friend Alice
# -But it reminds you of your buddy Bob
# - Which requires a prior explanation of your couin carol
# -Once done with you go back to the bob story
# Return to alice story
# -Then rememb... | [
"kevenmolina@gmail.com"
] | kevenmolina@gmail.com |
de193a33ceea4e3e99cd82ca4674f53887a12ec8 | 1caa196158639d04c1a976bf9ffad2e84cb9cbf1 | /XOR.py | 1d43d3b5afc0742128cfc33becb7863adb69fb0e | [] | no_license | Josephbakulikira/Multilayer-Perceptron-Neural-Network | cbece23e2eb8257da21c688df2ec56a075d1f28d | ba69d058b44d0d3f6e622048e6899de324baee5c | refs/heads/master | 2023-02-23T07:54:17.192716 | 2021-01-24T00:29:37 | 2021-01-24T00:29:37 | 330,283,064 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,558 | py | import pygame
import os
import random
import math
from Matrix import *
from Network import *
os.environ["SDL_VIDEO_CENTERED"]='1'
width, height = 1000, 1000
size = (width, height)
black, white = (0, 0, 0), (255, 255, 255)
pygame.init()
screen = pygame.display.set_mode(size)
pygame.display.set_caption("Neural Network... | [
"48150537+Josephbakulikira@users.noreply.github.com"
] | 48150537+Josephbakulikira@users.noreply.github.com |
7fe5a14eea56e4e00848afe7f1069cd9f0415125 | 330aebe4ce7110310cccf68cfe6a4488a78f315e | /samples/RiskManagement/DecisionManager/dm-with-decisionprofilereject-response.py | 6f40ef12e14e17569321bceeb2dbca2ca4ffcceb | [
"MIT"
] | permissive | shalltell/cybersource-rest-samples-python | c8afdae73af8aaa14606f989d7baea8abbf41638 | d92375fb1878ee810f4028a8850e97398533dbd0 | refs/heads/master | 2022-11-01T03:23:33.492038 | 2022-01-28T11:29:44 | 2022-01-28T11:29:44 | 222,025,982 | 0 | 0 | MIT | 2019-11-16T00:43:46 | 2019-11-16T00:43:45 | null | UTF-8 | Python | false | false | 3,994 | py | from CyberSource import *
import os
import json
from importlib.machinery import SourceFileLoader
config_file = os.path.join(os.getcwd(), "data", "Configuration.py")
configuration = SourceFileLoader("module.name", config_file).load_module()
# To delete None values in Input Request Json body
def del_none(d):
for ke... | [
"gnongsie@visa.com"
] | gnongsie@visa.com |
64ef4fa79f8741acd28d7665ec8477adb22b8eeb | da88a63b5f4d79a8fb348d1945d174a457cf9f96 | /main.py | 88068e63b1459aa911ec978252c076c796e9b9b3 | [] | no_license | brijeshk72/Python-Blog-Using-Flask | f86786e233e9b521768130c22066b9d1a0e96fc2 | 584401593c06967d33ab721ebfe4b3adc0b425b5 | refs/heads/master | 2020-04-13T22:50:13.234778 | 2018-12-29T09:54:00 | 2018-12-29T09:54:00 | 163,489,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,901 | py | from flask import Flask, render_template, request, session, redirect
from flask_sqlalchemy import SQLAlchemy
from datetime import datetime
app = Flask(__name__)
app.secret_key = 'super-secret-key'
#use mysql using xamp
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql://root:@localhost/theprogrammer'
db = SQLAlchemy(app... | [
"kushwahab46@gmail.com"
] | kushwahab46@gmail.com |
396235894b95cd014ecd7bec324bfb81095fdd64 | afeb32c03025148bc2aebf41f3a0b8f5c88d7cda | /units/unitExceptions.py | e16cc7c45c3bad756e7db941dd28d5b0a9934f2d | [] | no_license | Lanternglow/netrogue | 3572548fa0a8a982384dae8882b17d4a04293857 | d4c43f12ffd499e4d8a61b2cae0e63c38bb0f112 | refs/heads/master | 2021-09-16T09:45:34.859841 | 2018-06-19T02:30:37 | 2018-06-19T02:30:37 | 106,349,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | class UnitException(Exception):
pass
| [
"lmbreith@gmail.com"
] | lmbreith@gmail.com |
8c4361dac1a2cd18af87b703b76388b96d34d7c5 | 1a5e5b9e3d5935d2c01a943c21b7b84eb0e08a31 | /code/taskr/migrations/versions/47dd94328078_create_boards_table.py | b0a96d6232b93e597c9fd29f44d632849dbf6e05 | [] | no_license | emersonmx/python-sandbox | 169acd88b6ce2177d161277907213e70dfa48a19 | a85b53de37de692b332665a221055a8d7285ae8a | refs/heads/master | 2022-04-13T01:08:58.248809 | 2020-02-16T02:56:04 | 2020-02-16T02:56:04 | 114,257,987 | 0 | 0 | null | 2020-03-15T04:53:11 | 2017-12-14T14:08:48 | CSS | UTF-8 | Python | false | false | 1,462 | py | """Create boards table
Revision ID: 47dd94328078
Revises: 2b475e04e295
Create Date: 2020-01-03 15:05:42.599308
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '47dd94328078'
down_revision = '2b475e04e295'
branch_labels = None
depends_on = None
def upgrade():
... | [
"emersonmx@gmail.com"
] | emersonmx@gmail.com |
4b0ea99eff4e729a94f0677558b74c62d76c5ab5 | 2e505f3a1a623f48635b2472151acfa385a50a53 | /Assignment 2/Submission/reducer5.py | c29ce0e9f9b83c45f71854e485aa130a68130e91 | [] | no_license | anujns/Predictive-Analytics | b72cb888b06cb52153cd4185e424723d74070300 | 1147a44f9f3dc625186bce85e073fa1d56779fd7 | refs/heads/master | 2022-10-06T23:12:15.036351 | 2020-06-02T15:17:02 | 2020-06-02T15:17:02 | 268,118,104 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | #!/usr/bin/python3
import sys
import numpy as np
from scipy import stats
joiner = {}
k = 10
for rows in sys.stdin:
cols = rows.split('\t')
info = [cols[1], cols[2]]
x = np.asarray(info)
x = x.astype(np.float)
x = x.reshape((1, x.shape[0]))
if cols[0] in joiner:
y = np.append(joiner[cols[0]], x, axis=0)
... | [
"noreply@github.com"
] | anujns.noreply@github.com |
a4e6b874d050466e0e0c21621b6f343699221890 | e97a9cf8e864aaa985fd4c8e19d4c0cd70bed07f | /Basic_python/Дз4/Dz4_8.py | eb36a4d1338aa6615521da46c9283d4d5bea15ef | [] | no_license | MaxFallishe/Python__web | c101f2bb3c2aa8f1461404dd14765690ba0af481 | f357c5c3c283cfc72b79b432629fa5d2cc8bea4e | refs/heads/master | 2020-05-27T03:22:22.669551 | 2019-07-21T17:36:04 | 2019-07-21T17:36:04 | 188,463,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,535 | py | countries = {"Казахстан":{"Численность":"17","Столица":"Астана","Площадь":"2725000"},"Россия":{"Численность":"144","Столица":"Москва","Площадь":"17100000"},"США":{"Численность":"325","Столица":"Вашингтон","Площадь":"29834000"}}
def main():
while True:
switch = input("Введите комманду:\nadd - добавить стра... | [
"n13b@inbox.ru"
] | n13b@inbox.ru |
7c1b9f264bcfb0bd0e843a7d934d19969470efd3 | dafe53f683a521389c66fc77dddb5f15aa9d0783 | /M101P/week-1/pyhon/python-lists-operators.py | 3b5c904f14ce0968eb6a95c51123205a17f9c135 | [] | no_license | bozhink/mongodb-university | a56fde17d2f0af325875c9ad5e50b62c0b379abc | ec0de61cd658980f61ed8054fd1516814fc63896 | refs/heads/master | 2020-04-04T10:40:21.194742 | 2017-08-05T12:17:47 | 2017-08-05T12:17:47 | 54,334,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | # slices
fruits = ['orange', 'apple', 'banana', 'pear', 'kiwi']
# ending value is exclusive!!!
print(fruits[0:2])
print(fruits[1:])
print(fruits[:3])
print(fruits[:100])
print(fruits[:])
| [
"bozhink@gmail.com"
] | bozhink@gmail.com |
72f69b747fecdf40adb0073f9d4e7909a2b9a84f | 41eae1a352841af0c76dda8d44be296c8c2c6c9d | /codes/Logistic Regression/MoonshapeClassification.py | 11728ffb081ecc2a81ca4ce637a4c2f8af0e7258 | [] | no_license | jayadeepshitole/neuralnetworksanddeeplearning | 220a822f3ac25eb4da3b46bbdebd43cce8792242 | e952bbffa1087392bf6b7b293524b4e6d08661f0 | refs/heads/master | 2020-03-11T02:52:02.153560 | 2018-05-18T11:35:15 | 2018-05-18T11:35:15 | 129,730,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | # -*- coding: utf-8 -*-
"""
Created on Sun May 6 13:33:22 2018
@author: sangi
Reference: http://www.wildml.com/2015/09/implementing-a-neural-network-from-scratch/
"""
import numpy as np
from sklearn import datasets
import matplotlib.pyplot as plt
import os
# set current directory
os.chdir("F:\\neuralnetworksanddeepl... | [
"shitolejayadeep@gmail.com"
] | shitolejayadeep@gmail.com |
68a9a4ecc777d21a889c8cc5a4102076c9afd9b3 | 291b547ae132822060ffe4a4f0e3b21d64148279 | /Python_learning/XYJ_jieba_statistics/jieba_test.py | 30c002acfbb8ce93176b879bd6c7824b6302a6ff | [] | no_license | uniqueness001/Learning_summary | 015e3f52bac47e14fb7525c93357799e9cf03985 | 252213a158a57831f3f6b42fa0e15eacfb28569f | refs/heads/master | 2022-10-25T14:30:11.261320 | 2018-08-25T08:08:56 | 2018-08-25T08:08:56 | 112,351,937 | 0 | 1 | null | 2022-10-10T03:48:04 | 2017-11-28T15:18:42 | Python | UTF-8 | Python | false | false | 1,453 | py | #encoding: utf-8
import sys
#sys.setdefaultencoding('utf-8')
import jieba
import jieba.analyse
import xlwt # 写入Excel表的库
if __name__ == "__main__":
wbk = xlwt.Workbook(encoding='ascii')
sheet = wbk.add_sheet("wordCount") # Excel单元格名字
word_lst = []
key_list = []
for line in open('D:/xiyouji/xi09... | [
"33412869+uniqueness001@users.noreply.github.com"
] | 33412869+uniqueness001@users.noreply.github.com |
3db8cc700f54172ca0df61fabe31b15378b807bd | 21eac24f748eb69ab5916e91ad668d3f35f21b9a | /todo/admin.py | 320fda1966c2a98e8e8007ceb629c2723ecb07c4 | [] | no_license | sorokin21/ToDo | 74b27f87500f6d577758a577d1cbe82f63e97f0a | aae174e35a878a84b37d39204b9020ea3a267826 | refs/heads/master | 2023-02-23T12:37:34.137176 | 2021-01-30T08:02:23 | 2021-01-30T08:02:23 | 334,360,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | from django.contrib import admin
from .models import To_do_list
# Register your models here.
admin.site.register(To_do_list) | [
"sorokin21@hotmail.co.uk"
] | sorokin21@hotmail.co.uk |
6107c9b99f080aadc2604b747d9111565a5bf906 | b16ebbadfd630b92068645ec671df8182fadf4fc | /registration_redux/signals.py | 1b40767539169cfd6ba31f89e35edb5c20c4ecc9 | [] | no_license | IOEWRC/stu_teach | 352bb7326645eacf340131c632eab5a28549d393 | 953931febab33d69a71c83e9ca44d376aa1d7320 | refs/heads/master | 2022-12-17T15:08:49.148449 | 2018-10-02T15:26:41 | 2018-10-02T15:26:41 | 141,098,799 | 0 | 3 | null | 2022-12-08T01:02:04 | 2018-07-16T06:57:08 | Python | UTF-8 | Python | false | false | 946 | py | from django.conf import settings
from django.contrib.auth import get_backends
from django.contrib.auth import login
from django.dispatch import Signal
# An admin has approved a user's account
user_approved = Signal(providing_args=["user", "request"])
# A new user has registered.
user_registered = Signal(prov... | [
"pawanpaudel93@gmail.com"
] | pawanpaudel93@gmail.com |
379c50a6ecec4c9c82ed9bdac93c0d7e143ef324 | 0a1c01ee48a1f04b522348083fa5d9cd6621c7d1 | /classify_images.py | 129b11ba1575318e921a1b89426a9ddfe9f5ad30 | [] | no_license | dkumarvaishnav/Pre-trained-Image-Classifier-to-Identify-Dog-Breeds | 5a564d48af886d82f964f5e5d651fc89503494ea | 960244ba9496f5db89fa20845b51a5d8339a3613 | refs/heads/master | 2023-07-12T18:26:37.838739 | 2020-11-28T15:43:56 | 2020-11-28T15:43:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,891 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# */AIPND-revision/intropyproject-classify-pet-images/classify_images.py
#
# PROGRAMMER: Annika Lisa Lang
# DATE CREATED: 19.06.2020
# REVISED DATE:
# PURPOSE: C... | [
"Lang-annika@t-online.de"
] | Lang-annika@t-online.de |
7e242efa021e02ddb4c45c4aa5f27ccfce32fe04 | 5e830653fc69b74b0d820082ebed70bb937e447e | /accounts/views.py | 9db03a6d408cf7dd3eb9c0ef17b0c3f94e348121 | [] | no_license | NikhilOO7/developer-boards | e9b9c8f8e2109ee68a6f3d7c17ba92a2b27df688 | 271081849e336c07ef1b71f9431d4a9b746d8cd4 | refs/heads/master | 2020-03-23T10:47:05.690799 | 2018-07-27T07:48:42 | 2018-07-27T07:48:42 | 141,461,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib.auth.forms import UserCreationForm
from django.shortcuts import render, redirect
from django.contrib.auth import login as auth_login
from .forms import SignUpForm
# Create your views here.
def signup( request ):
if request.method ... | [
"NikhilOO7@users.noreply.github.com"
] | NikhilOO7@users.noreply.github.com |
8b28fd82bc10035cc495833b4a786fe2900c6066 | 87113bef5d7d0a1fc486954c7655161002e21632 | /0_basic/Lenet5.py | 0797bc79bdaefc6652bb19d784e618e71da2438b | [] | no_license | C7H10N2/pytorch-implementation | b8f326cc8997d4464937f03028567a0a7c5c522e | 20c41f6bf8aa4a4c3de4a0a1bb6a1857637417cc | refs/heads/master | 2023-04-25T17:56:11.503024 | 2021-05-19T03:31:17 | 2021-05-19T03:31:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,199 | py | # -*- coding: utf-8 -*-
"""
https://tutorials.pytorch.kr/beginner/blitz/neural_networks_tutorial.html#sphx-glr-beginner-blitz-neural-networks-tutorial-py
Neural Networks
===============
Neural networks can be constructed using the ``torch.nn`` package.
Now that you had a glimpse of ``autograd``, ``nn`` depends on... | [
"kimnanhee97@gmail.com"
] | kimnanhee97@gmail.com |
d548603c64903fac22071a503e75ae1a71dc916b | a857d1911a118b8aa62ffeaa8f154c8325cdc939 | /toontown/coghq/StageLayout.py | 23c0e7977545f6bd7cd2ff51688e1ff22f9c1976 | [
"MIT"
] | permissive | DioExtreme/TT-CL-Edition | 761d3463c829ec51f6bd2818a28b667c670c44b6 | 6b85ca8352a57e11f89337e1c381754d45af02ea | refs/heads/main | 2023-06-01T16:37:49.924935 | 2021-06-24T02:25:22 | 2021-06-24T02:25:22 | 379,310,849 | 0 | 0 | MIT | 2021-06-22T15:07:31 | 2021-06-22T15:07:30 | null | UTF-8 | Python | false | false | 9,093 | py | from direct.directnotify import DirectNotifyGlobal
from direct.showbase.PythonUtil import invertDictLossless
from toontown.coghq import StageRoomSpecs
from toontown.toonbase import ToontownGlobals
from direct.showbase.PythonUtil import normalDistrib, lerp
import random
def printAllCashbotInfo():
print 'roomId: roo... | [
"devinhall4@gmail.com"
] | devinhall4@gmail.com |
a4c5738a473170741a1f6b08a464fd02088bf873 | 7dae5c2536a2e3e2f8efa0480aa71a08a311849d | /migrations/versions/4ad6d590a93f_pass_secure.py | 2d72ec77439f25976b87a3777cdca21e95dfdab5 | [
"MIT"
] | permissive | Derrick-Nyongesa/QwertyBlog | 9a2997d116db39c551193b54f0aecbdb896646da | aa534c6fd475d4cf58f559ef7159b5cefe0ceed3 | refs/heads/main | 2023-04-24T05:18:13.975385 | 2021-05-01T11:15:11 | 2021-05-01T11:15:11 | 363,079,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | """pass_secure
Revision ID: 4ad6d590a93f
Revises: f59a0d1927f8
Create Date: 2021-04-29 14:06:19.867578
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '4ad6d590a93f'
down_revision = 'f59a0d1927f8'
branch_labels = None
depends_on = None
def upgrade():
# ##... | [
"nyongesaderrick@gmail.com"
] | nyongesaderrick@gmail.com |
51d7ebaef36df5d39a4073f4807e43896d1fd031 | 38fc869a2f6f04dc570cabdad7d3c2b049a374dc | /project/clusterMaster.py | 5dcfc0b56cbc546ad6ff4787b1d1cb54414b181b | [] | no_license | pitassi17/Computational-Biology | 8290784328ea5003067a1ef455ea7139645e0275 | 10a158e87b82d9cb354df55c7bfb736aa440219a | refs/heads/master | 2021-01-15T14:47:29.502167 | 2015-12-07T20:21:33 | 2015-12-07T20:21:33 | 47,576,581 | 0 | 0 | null | 2015-12-07T20:12:26 | 2015-12-07T20:12:26 | null | UTF-8 | Python | false | false | 588 | py | # graphing imports!
import matplotlib.pyplot as plt
import matplotlib.colors as colors
# clustering
from csvReader import CSVReader
from k_means import KMeans
inputFile = "microarraydata.csv"
k = 4
csvReader = CSVReader()
microarrayData = csvReader.read(inputFile)
print microarrayData
kmeans = KMea... | [
"piekstra17@up.edu"
] | piekstra17@up.edu |
4fcaa2d051c434e59bd6f959c59caf469b9b1eda | 7d0f0b2aa31863fe66df2941f10379cd8d204fb4 | /.py/whichweek.py | f7edde81a3e4d6d2efa9e1d790ea2fd175899005 | [
"MIT"
] | permissive | colevahey/pickem | 9de1294c80f76b06b615742ba2349265ba8f5202 | 1c0910a3e1b160787eeeff6dced82a59ae20fbc7 | refs/heads/master | 2021-07-14T12:52:22.536461 | 2019-01-05T22:56:07 | 2019-01-05T22:56:07 | 102,991,497 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | from datetime import date, timedelta
import json
def getweek():
saturdays = json.load(open('saturdays.json','r'))
inversesaturdays = {y:x for x,y in saturdays.items()}
today = date.today()
if today.weekday() == 5:
nextsaturday = today + timedelta(days=7)
lastsaturday = today
... | [
"rcvahey01@gmail.com"
] | rcvahey01@gmail.com |
92977a8e1a7fba7692d6e2a1e648ce2923636a61 | d6fe71e3e995c03b8f5151ab1d53411b77b325ba | /walklist_api_service/models/inline_response2014.py | dd612deaed7f317b142c07f218d808e84fcda9a9 | [] | no_license | mwilkins91/petpoint-scraper | 95468ae9951deaa8bd3bef7d88c0ff660146c1a3 | dd0c60c68fc6a7d11358aa63d28fdf07fff3c7cd | refs/heads/master | 2022-11-27T00:02:50.654404 | 2020-08-09T18:41:40 | 2020-08-09T18:41:40 | 286,180,666 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,125 | py | # coding: utf-8
"""
The Enrichment List
The THS enrichment list # noqa: E501
OpenAPI spec version: 1.0.0
Contact: contactme@markwilkins.co
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
def getResponse():
from walklist... | [
"contactme@markwilkins.co"
] | contactme@markwilkins.co |
74fba975f88c9bc0507ee477cd163042b89458b6 | 27332af67598d7de0ae72d89a7c387df13361ce8 | /lib/scripts/experiments/mass_spec/mass_spec.py | cc10485ea21382da9e542f023b137b5f3065311d | [] | no_license | barium-project/barium | 8cf953d2d4d9efee19eb3455055af678cc6135a5 | 7626cb4d23ed6df5c4a092206adc4aac52ba38a8 | refs/heads/master | 2023-04-11T00:44:24.272453 | 2023-03-14T23:22:06 | 2023-03-14T23:22:06 | 53,459,858 | 6 | 2 | null | 2021-02-01T19:26:06 | 2016-03-09T01:58:54 | Python | UTF-8 | Python | false | false | 4,111 | py | import labrad
from labrad.units import WithUnit as U
from common.lib.servers.abstractservers.script_scanner.scan_methods import experiment
from twisted.internet.defer import inlineCallbacks, returnValue
import numpy as np
import time, os
import datetime as datetime
class mass_spec(experiment):
name = 'Mass Spec'... | [
"physics.justin.christensen@gmail.com"
] | physics.justin.christensen@gmail.com |
1c6efefd10cc1575b034c42546a5a161e9fdbbdc | d4ea02450749cb8db5d8d557a4c2616308b06a45 | /students/Wieslaw_Pucilowski/lesson07/run_html_render.py | a3007f693d3347f8e12c7734222d46e13c11e2e9 | [] | no_license | UWPCE-PythonCert-ClassRepos/Self_Paced-Online | 75421a5bdd6233379443fc310da866ebfcd049fe | e298b1151dab639659d8dfa56f47bcb43dd3438f | refs/heads/master | 2021-06-16T15:41:07.312247 | 2019-07-17T16:02:47 | 2019-07-17T16:02:47 | 115,212,391 | 13 | 160 | null | 2019-11-13T16:07:35 | 2017-12-23T17:52:41 | Python | UTF-8 | Python | false | false | 5,395 | py |
#!/usr/bin/env python3
"""
a simple script can run and test your html rendering classes.
Uncomment the steps as you add to your rendering.
"""
from io import StringIO
# importing the html_rendering code with a short name for easy typing.
import html_render as hr
# writing the file out:
def render_page(page, fil... | [
"vieslavp@yahoo.com"
] | vieslavp@yahoo.com |
fe75c0da2e6b55da800b0f5dd8d9fa4cb4206590 | 28e8ab381a8c1b4321cd83acff6aa33468166d6b | /python3.4Smartforest/lib/python3.4/site-packages/django/forms/__init__.py | 134584aaf812602cd5d897f7a5b392d7e8a175df | [
"MIT"
] | permissive | letouriste001/SmartForest_2.0 | 343e13bc085d753be2af43aecfb74a5fffaa5e3b | 109b78bf1e8c8404800f377ab969395ccbb617be | refs/heads/master | 2020-12-21T16:54:22.865824 | 2016-08-11T14:17:45 | 2016-08-11T14:17:45 | 59,734,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | """
Django validation and HTML form handling.
"""
from django.core.exceptions import ValidationError # NOQA
from django.forms.boundfield import * # NOQA
from django.forms.fields import * # NOQA
from django.forms.forms import * # NOQA
from django.forms.formsets import * # NOQA
from django.forms.models import * # ... | [
"aubert.christophe.pro@gmail.com"
] | aubert.christophe.pro@gmail.com |
00399bbc18382cdeb29ebcb76adabb06a7be9947 | 852e395cb2f6373eec4464e1d04e2fe6aaefcdc5 | /python_bitcoin/myenv/bin/pip | c2a85a54be6669ef6929368b99b93d9a5bb2f6ed | [] | no_license | kumasss/prerocal_file | 91261c68ce6d9d9227aa72d1c764f0495416787e | 230ebadf0a731ec97fdd5df59e871f9cef9f4b83 | refs/heads/master | 2020-05-22T12:39:46.158156 | 2019-05-13T03:49:43 | 2019-05-13T03:49:43 | 186,341,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | #!/Users/yuya.sss/python_bitcoin/myenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"soccer.kumakuma@gmail.com"
] | soccer.kumakuma@gmail.com | |
953e64fb3caf2c5d7bf8bf957f54b8c6c1dac2c5 | 004a8aa61b5e66645acb3ec6612a265b63a8fbad | /12_RNN基本结构与CharRNN文本生成/12_5_实现char RNN.py | 398d1232ee85719012e9f783b68ceecad7bbf3cc | [] | no_license | Asher53/deeplearning_recording | a120b4333a84610112d31ca594de9ed81fc4b20a | 6013fdaeece501f7da3c743864eec7fa46e604c9 | refs/heads/master | 2022-10-02T07:11:22.019048 | 2019-06-28T01:22:15 | 2019-06-28T01:22:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,170 | py | # coding: utf-8
from __future__ import print_function
import tensorflow as tf
import numpy as np
import time
import os
def pick_top_n(preds, vocab_size, top_n=5):
p = np.squeeze(preds)
# 将除了top_n个预测值的位置都置为0
p[np.argsort(p)[:-top_n]] = 0
# 归一化概率
p = p / np.sum(p)
# 随机选取一个字符
c = np.random.ch... | [
"noreply@github.com"
] | Asher53.noreply@github.com |
4c51d5551470c2a1accda560407256b08e83f5f4 | ad5b72656f0da99443003984c1e646cb6b3e67ea | /src/bindings/python/src/openvino/test_utils/__init__.py | 39abacb8fe3698459c5cead72b53daa782322b5c | [
"Apache-2.0"
] | permissive | novakale/openvino | 9dfc89f2bc7ee0c9b4d899b4086d262f9205c4ae | 544c1acd2be086c35e9f84a7b4359439515a0892 | refs/heads/master | 2022-12-31T08:04:48.124183 | 2022-12-16T09:05:34 | 2022-12-16T09:05:34 | 569,671,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from .test_utils_api import compare_functions
| [
"noreply@github.com"
] | novakale.noreply@github.com |
0316dcf52783cc155aa2ac466ad7f4c013023780 | fe8439dc8518bda50c9b60fb62784c034d7d09b9 | /flearn/models/client.py | db8234d4b65a7c8bcc7a3876d7262bfe351a5a3b | [] | no_license | Tzq2doc/fair_flearn | fdf4ce87d2382216a50575fffcf1bba15d6aa264 | 610b458312559a5ce70203f23efeb0ab9963e765 | refs/heads/master | 2022-09-08T05:13:09.293362 | 2020-05-30T06:27:04 | 2020-05-30T06:27:04 | 272,985,210 | 1 | 0 | null | 2020-06-17T13:44:50 | 2020-06-17T13:44:49 | null | UTF-8 | Python | false | false | 3,666 | py | import numpy as np
class Client(object):
def __init__(self, id, group=None, train_data={'x':[],'y':[]}, eval_data={'x':[],'y':[]}, data_seed=1, model=None):
self.model = model
self.id = id # integer
self.group = group
data_x = train_data['x'] + eval_data['x']
data_y = ... | [
"tian.li@pku.edu.cn"
] | tian.li@pku.edu.cn |
c5bfaa02ed8273e71e8371037f535317df82e060 | cf56c1a7baf97f7f0d15140ce7a58c5866b69d31 | /boridge/__init__.py | b8927b419b6747d302391859c700b5c66a1cf22e | [
"MIT"
] | permissive | matthew-c-lenert/BoRidge | 109a0910e06e15a51f7c4974bde9c8b2e3c0f7ec | 08ab34a6e03315f8b0eed74a5f38280ca8cce42a | refs/heads/master | 2020-04-04T20:52:21.768400 | 2020-02-26T01:55:40 | 2020-02-26T01:55:40 | 156,264,124 | 1 | 0 | null | 2019-05-15T21:09:27 | 2018-11-05T18:31:42 | Python | UTF-8 | Python | false | false | 46,607 | py | # Required dependancies: datetime, decimal, joblib, math, numpy, os, pandas, re, scipy, shutil, sklearn, sys, tempfile, time, traceback
#
# Version from 07-18-2018
import pandas as pd
import numpy as np
import re
import sys
import random
import sklearn.metrics as sklearn
import decimal
from sklearn.linear_m... | [
"noreply@github.com"
] | matthew-c-lenert.noreply@github.com |
2a190607625a690d7574afa6ac51c511908c664d | 2ddc456deb713a182692f04a0f58b6219c683c3d | /manage.py | 83e6cb6b4ad6924c454de15cd1c2a04e74b6ca2b | [] | no_license | rabithakuri/blog | feabb6ffcac216abd6c081544f95dd46d773a76e | 59af4161fa751b7c5b49ac97100b3175f2e32d44 | refs/heads/master | 2023-01-03T17:11:53.568997 | 2020-10-28T03:44:41 | 2020-10-28T03:44:41 | 307,582,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | 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', 'intern_project.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"you@example.com"
] | you@example.com |
12d9b34285fa7b3e71476926e0a9884f2362dda6 | 169d35ae620fb4ad6ccdb9ead5084a6ed191d3c1 | /uadt/automation/scenario.py | ca85e37045e300eeacdc0fcbc7e7f8fde0ea2e3f | [] | no_license | tbabej/uadt | 4d7622fb0f8a5c84bebf96b0df87cb63ae22bec7 | 71ff8f610b7616fdc8cad61399f9c0149786e192 | refs/heads/master | 2022-02-17T11:39:45.305507 | 2019-09-04T15:15:46 | 2019-09-04T15:15:46 | 91,985,528 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,186 | py | import datetime
import contextlib
import os
import random
import re
import subprocess
import shlex
import time
import json
from selenium.common.exceptions import StaleElementReferenceException
from uadt import config, constants
from uadt.plugins import PluginBase, PluginMount
from uadt.automation.generator import Dat... | [
"tomasbabej@gmail.com"
] | tomasbabej@gmail.com |
85f84b67d1b2cb8761c55bef22b426d2bd620955 | 951be66388c5965e7f5aa7007c10eca218decf96 | /check_vec_numbs.py | 978b24b8c91008f26d7473240644f98e99390292 | [] | no_license | tweirick/okstate_bioinformatics_command_line_programs | 4d443494a1662ef34b2193a43e61e914577138b0 | addd1848d462aa197e7fcc494963c3117cf2ef06 | refs/heads/master | 2021-01-13T02:27:56.720518 | 2014-10-01T09:26:13 | 2014-10-01T09:26:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | from glob import glob
import argparse
parser = argparse.ArgumentParser(
description=open(__file__).read().split("'''")[1],
formatter_class=argparse.RawDescriptionHelpFormatter)
parser.add_argument('--file_set',
help=''' ''',
required=True)
args = parser.parse_args()
for file_name in sorted(glob(args.file_set... | [
"tweiric@login1.cluster"
] | tweiric@login1.cluster |
1c5cfabdcdba1ebffd3c748531bf3238a64f616e | 61d4600d49d5eea489f8023e7832bcbd20e4ab72 | /hw.py | d2758bf726e5cc9d5338336192621c7020b8a033 | [] | no_license | ofekalon/myrepo | f04b10e871638169e2a52136d9de7e5b5dff6345 | 4e61bccccdefee806ed928961c7e803f3f4e0f6f | refs/heads/master | 2021-01-21T14:29:05.710747 | 2017-06-24T10:49:51 | 2017-06-24T10:49:51 | 95,291,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | print("hello world");
print("hello world");
print("try me");
| [
"alon.ofek@carlsonwagonlit.com"
] | alon.ofek@carlsonwagonlit.com |
9f615d297850b1db7d562b902a3778ee3561ff0c | c8d5e55cc930a4c1205b0c1bf0d754f7e11b203f | /libs/utils/__init__.py | 747ffd94f3c7ee0f244c871bffed8e9471172c9c | [] | no_license | addewyd/VKGroups | f5ed722f05aeeb8c821ab71900016edff317764e | 464cd19f087e2bfc40ca6de72140c5db28ff7bff | refs/heads/master | 2021-04-03T08:45:17.231114 | 2018-03-04T13:54:59 | 2018-03-04T13:54:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | '''
VKGroups
Copyright © 2010-2018 HeaTTheatR
Для предложений и вопросов:
<kivydevelopment@gmail.com>
Данный файл распространяется по условиям той же лицензии,
что и фреймворк Kivy.
'''
from . showplugins import ShowPlugins
from . authorization import GetAndSaveLoginPassword, AuthorizationOnVK
| [
"gorodage@gmail.com"
] | gorodage@gmail.com |
bc265595870eb2d54708331a0825dc7192597e13 | 0af2dd9a7ba560d0b782e7834d862f89fe546bbb | /lui_testing/python_mic/py_dir_n_deps/server/__main__.py | ee73bbe70b18c5052053bae2b75223e5e18432cb | [] | no_license | luisodls/dui_prototyping | 8b017eb3589f6fa80792b6f54b702061d30deda9 | 184d7fed891fae67bd8b662e4a287942753caadd | refs/heads/master | 2023-09-04T01:51:14.455210 | 2023-08-29T20:56:21 | 2023-08-29T20:56:21 | 162,447,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | # this file is needed for importing dependencies
| [
"luis.fuentes-montero@diamond.ac.uk"
] | luis.fuentes-montero@diamond.ac.uk |
873143313afb0facd2542a27e7582d112616f35b | df9919563b03ed6892a653409bcc387f671d8f27 | /training/roof_learning_curve.py | a6300aadb142b0923b59d0766ae065b159b19c0f | [] | no_license | bbrangeo/RoofResearch | a93362a18fe7314790351fa6ea62736095e8c62e | 85d270ff623ce7c4ab7a0eb98817739d13f0e49a | refs/heads/master | 2020-08-08T08:56:06.179906 | 2019-09-02T13:34:10 | 2019-09-02T13:34:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,451 | py | from __future__ import print_function, division
import os
import torch
import torch.nn as nn
import pandas as pd
from skimage import io, transform
import numpy as np
import matplotlib.pyplot as plt
import torch.optim as optim
from torch.optim import lr_scheduler
import time
import copy
plt.switch_backend('agg')
from to... | [
"xwzhangcs@gmail.com"
] | xwzhangcs@gmail.com |
82d4c92e0a76a51b782ab665521c5d0dbd3f5d41 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/552.py | 2a8dec0e8ed629d049222f52c7953ccea67f7d3e | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py |
def test(list):
for i in range(0, len(list)-1):
if(valueList[i] > valueList[i+1]):
return False
return True
def list2text(list):
result = "";
for i in list:
if(result != "" or i!=0):
result += str(i)
if(result == ""):
result = "0";
return result
t = int(input())
for line in range(... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
582bf5f9051294271888ac9eec91a708994d2d15 | b8f2d2db5f5bf3adeff5987432149f728487f982 | /analis.py | 7b32e430bd6b5e777193cda0c38792fb3c1c7487 | [] | no_license | deadsummer/project | 604ada12c0ca742d4d5a3e30dd52a05c2b089bd4 | f71e619ba39702fee358c122c50d12a4a599d334 | refs/heads/master | 2021-01-10T11:55:13.809765 | 2015-06-02T09:06:50 | 2015-06-02T09:06:50 | 36,566,562 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,633 | py | import urllib.request
import codecs
import text_analysis as txtan
import numpy as np
import scipy
import math as math
import numpy as np
import scipy.sparse as sp
class max_n:
m_array=[]
m_poses=[]
def init(self,n):
self.m_array=[0]*n
self.m_poses=[0]*n
def add(self,a,pos):
for i in range(len(self.m_array... | [
"deadsummer@yandex.ru"
] | deadsummer@yandex.ru |
3df4e7d4ff82d728df10dcf56e22536bfddd6d48 | ec299f1d1890cba03ddf8195b94b2f2381f0e354 | /django_app/review_evaluation/settings.py | dbbc8b29a2111c75016715bbf6d8d6a811f6bfb9 | [] | no_license | KennyQAlatreon/review-predict | 63e5341dd40a81c6eb0300c5357c4d1549e92045 | 2f504dba8f251f6a973acd37dbe055f72c8a5df4 | refs/heads/master | 2023-08-07T04:01:54.834291 | 2021-09-22T04:39:41 | 2021-09-22T04:39:41 | 408,309,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,848 | py | from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = 'django-insecure-_r4y#_hqhr3zln316b916uoiq(amhi1kn19g%42eh%(8ls-!(v'
DEBUG = False
ALLOWED_HOSTS = ['127.0.0.1', 'review-prediction-greenargo.herokuapp.com']
# App... | [
"igordaor@gmail.com"
] | igordaor@gmail.com |
73c9350fb729554093fb260cd443910048c1e353 | 6e8dad2f7f096e85ca5cda62a89f26400d491691 | /tests/datasource_tests.py | 52674a20e726489cb444efc1a2036216b4b7dccb | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause"
] | permissive | akovalyov/incubator-superset | b0338c749e263ecf08e6cccc7a2887a4524abee7 | da813b7ee38fde9b908bb2143e9094dc4a312d23 | refs/heads/master | 2020-04-16T21:44:12.059272 | 2019-01-15T16:53:24 | 2019-01-15T16:53:24 | 165,937,866 | 0 | 0 | Apache-2.0 | 2019-01-15T23:11:48 | 2019-01-15T23:11:48 | null | UTF-8 | Python | false | false | 1,791 | py | """Unit tests for Superset"""
import json
from .base_tests import SupersetTestCase
from .fixtures.datasource import datasource_post
class DatasourceTests(SupersetTestCase):
def __init__(self, *args, **kwargs):
super(DatasourceTests, self).__init__(*args, **kwargs)
def test_external_metadata(self):
... | [
"noreply@github.com"
] | akovalyov.noreply@github.com |
bc898e92e9e66309beb24fbd438d511bef84c028 | 651fcc2b12ebfa6a6c08191b99d0cfc5d97ce696 | /rough.py | 0dad8942e7f5ba1a3904278b3e1fc166015fa70e | [] | no_license | Pradeep-1991/flipkart | 0c4fbcd1fb5a7df500720dfe5ce9317bc72879d4 | af378a37e1792e199d702eb4a9f77737e8e3962e | refs/heads/master | 2023-07-13T13:11:14.146515 | 2021-08-09T16:21:19 | 2021-08-09T16:21:19 | 394,336,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
driver = webdriver.Chrome(r"D:\selinium_drivers\chromedriver_win32\chromedriver")
driver.get("http://admin-demo.nopcommerce.com")
time.sleep(5)
driver.find_element_by_xpath("//button[contains(text(),'Log in')]").click()
time.... | [
"pradeep.mohanta174@gmail.com"
] | pradeep.mohanta174@gmail.com |
e47e235835021d606679656350c01c4d39ecbd47 | 08856897aa05f422bb8dd6382e00757a84622385 | /main.py | 2b6f1626af47cc5b6c8e34bf71102de46eb50b6c | [] | no_license | Rifatkazak/GUESS-A-NUMBER | 37933c64e5e9b57c0e377b321a5513f59ecd3578 | 42eeb394698302010492363b3a6560f68aee4851 | refs/heads/main | 2023-04-23T23:49:15.293476 | 2021-05-12T09:29:40 | 2021-05-12T09:29:40 | 366,662,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,555 | py | #Number Guessing Game Objectives:
# Include an ASCII art logo.
import random
from logo import logo
# Allow the player to submit a guess for a number between 1 and 100.
# Check user's guess against actual answer. Print "Too high." or "Too low." depending on the user's answer.
print(logo)
def game():
level = input... | [
"noreply@github.com"
] | Rifatkazak.noreply@github.com |
a1798960bba2a2bf7f329d1a5edd1ceab9269e7c | b2d68526156565514fa47ea3c1f506502eeaf43b | /blog/blog_app/migrations/0003_post_tags.py | aa56cc0d867c9e5ef5e0c81f4b97f936f658af1d | [] | no_license | argomauro/djangoBlog | f3b117acb704a50ef5e61e975517cfc790994012 | f0e7c64787ddcaa970aa34afad085de40724bfa5 | refs/heads/master | 2022-07-24T20:46:59.381658 | 2020-05-07T09:10:41 | 2020-05-07T09:10:41 | 259,262,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | # Generated by Django 3.0.3 on 2020-05-04 10:37
from django.db import migrations
import taggit.managers
class Migration(migrations.Migration):
dependencies = [
('taggit', '0003_taggeditem_add_unique_index'),
('blog_app', '0002_auto_20200427_1308'),
]
operations = [
migrations.Ad... | [
"margoneto@publisys.it"
] | margoneto@publisys.it |
32426cd9c50043fc96fe0ec9292ceef0fc80a361 | 0897dd7e6af13e1e9351355b64aa6b41a13bd4cc | /venv/bin/pip3 | 8db447afd962bf6d7f6f38615fde54b892d73a7f | [] | no_license | qinxinzhang/crawler | 1a2abc99b9333863d9c355c8ba52d8be1ba74906 | 01b238c2bdfc3b481b85c29453a7be3b82ff6f42 | refs/heads/master | 2023-02-03T14:56:27.652280 | 2020-12-14T15:39:25 | 2020-12-14T15:39:25 | 321,203,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | #!/Users/QINXIN/Desktop/crawler/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"qinxin.zhang@lotusflare.com"
] | qinxin.zhang@lotusflare.com | |
fbcc9047fdafcfdc19b941e2b8a2371cda700b01 | f7965cec09f5b65cb44298601bb1ad2f05b7e97e | /list/acronym.py | 119e39c5a5bdcb2484559a9bb1fe86bb28a7a192 | [] | no_license | bearhsiang/PythonIsSoEazy | e48a8ebd58b9a1fdf69b9c768a5e145fd11e8986 | 0c4ca0d0807a90a3a797823d5af219cfa8a23933 | refs/heads/master | 2023-07-11T02:36:36.352511 | 2021-08-16T06:18:05 | 2021-08-16T06:18:05 | 272,434,795 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | s = input()
s = s.split()
acronym = ''
for word in s:
acronym += word.upper()[0]
print(acronym) | [
"b05902066@ntu.edu.tw"
] | b05902066@ntu.edu.tw |
2fa456882736882bc307aaa5816c9685777aa6ed | bf195b9d811ffc40650479e9d81a031b0b673602 | /cmp/utils/pfp/native/compat_io.py | 56bccae3d5c85b212d0cf2a2f3117d3dac51584e | [] | no_license | Leonardo-DiCaprio/fileFuzz | 37ff4ecffde9130ff59e1f830540938772e072ed | 681fb86fb18ccb077a15ffd1d5ab8f0b196d53c2 | refs/heads/master | 2022-12-28T06:13:12.723699 | 2020-10-13T06:19:31 | 2020-10-13T06:19:31 | 303,592,950 | 3 | 1 | null | 2020-10-13T06:14:39 | 2020-10-13T05:01:31 | C | UTF-8 | Python | false | false | 18,248 | py | #!/usr/bin/env python
# encoding: utf-8
"""
This module of native functions is implemented for
compatability with 010 editor functions. Some of these functions
are nops, some are fully implemented.
"""
import six
import sys
from pfp.native import native
import pfp.fields
import pfp.errors as errors
import pfp.bitwra... | [
"liutianpeng@bytedance.com"
] | liutianpeng@bytedance.com |
e9f43c27997f35af4a8f3833aa859c669f99e6a1 | 82b31507da398a946cd72154fcfeb0bd32466c3a | /hackerrank/warmup/time_conversion.py | 4bbcfa4f8defd7e8c424c876de27d26e859aba02 | [] | no_license | segunfamisa/algorithms | 739acd7d521619fd5ba3191742535a75cb475e46 | 1c126fa043c265915230fb459cb9b80c698c4ef5 | refs/heads/master | 2021-01-19T01:23:51.324231 | 2016-08-10T15:16:05 | 2016-08-10T15:16:05 | 65,079,179 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | '''
Time Conversion problem
https://www.hackerrank.com/challenges/time-conversion
'''
import sys
def Solution():
time = raw_input().strip()
hh, mm, ssA = time.split(':')
ss = ssA[:2]
isAm = ssA[2:] == "AM"
if isAm:
if int(hh) >= 12:
hh = "00"
print hh + ":" + ... | [
"segunfamisa@gmail.com"
] | segunfamisa@gmail.com |
6a390e996183e380ebbdb7e1d9c41c3fc684a21d | 1ba81f4e70a12733500a9ed26c5200ce1ec7887e | /trainRNN.py | 445b4106718ec230864b897486b95ee3e84228a8 | [] | no_license | catjacks38/DiscordRNNBot | 177cdf7834044026a0e037f13e1c67a580433d20 | 4b9dbc65fc13ee6cc3439e185d0a8ba2aa0cb605 | refs/heads/master | 2023-06-03T07:34:59.427689 | 2021-06-17T13:27:19 | 2021-06-17T13:27:19 | 280,445,131 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | from textgenrnn import textgenrnn
import sys
textgen = textgenrnn()
textgen.train_from_file('Dataset Path', num_epochs=int(sys.argv[1]), batch_size=1024)
textgen.generate(5, temperature=1.0)
| [
"noreply@github.com"
] | catjacks38.noreply@github.com |
4906d39a1057e93faf7d69afd2e60f797e83a1e4 | c2d8971b952f4c9de8257fc8532ced014b8ece8b | /euler.py | 9969b52ba289325fc075fc11e48d5623779a5b1b | [] | no_license | mcfunley/euler | 4681e1108e10873d5830326202af44d6bfeefe10 | 1982835d19bbe05c137ad6d0fd628eb64f026585 | refs/heads/master | 2021-06-04T00:46:41.213217 | 2018-12-01T16:29:15 | 2018-12-01T16:29:15 | 1,213,649 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,360 | py | from math import sqrt
def digits(n):
result = []
while n:
result.append(n % 10)
n //= 10
return list(reversed(result))
def from_digits(ds):
return sum(n*10**i for i, n in enumerate(reversed(ds)))
def partitions(xs):
"Generates all in-order partitions of a list xs"
yield [xs]... | [
"mcfunley@gmail.com"
] | mcfunley@gmail.com |
d00cf81be96508993266d1e2ce2c256492cdc4ce | 6be28298b7dd93caefe3c4eadfb2932038971b2b | /1_d-as-deploy/test_main.py | 9b03794c03b00be8d81df2692677bf315d2c1cd0 | [] | no_license | kirylvolkau/Python-Level-Up | c10bc6b58d0fece3cd41a99b1814bdc3d313b623 | 66c2cfa98eb84d2576b4043191b55133f13c7722 | refs/heads/master | 2022-12-23T00:10:16.205028 | 2020-05-04T12:00:05 | 2020-05-04T12:00:05 | 251,677,101 | 0 | 2 | null | 2022-12-08T09:30:15 | 2020-03-31T17:18:30 | Python | UTF-8 | Python | false | false | 1,664 | py | from fastapi.testclient import TestClient
from main import app
import pytest
client = TestClient(app)
client.delete('/all')
test_ID = 0
test_patients = dict()
#task 1 test
def test_root():
reponse = client.get('/')
assert reponse.status_code == 200
assert reponse.json() == {'message': 'Hello World during the coro... | [
"volkaukiryl@gmail.com"
] | volkaukiryl@gmail.com |
a2719a71fac5334a309b96124fe91009c8c42e51 | 165f0b1ecae095b3406e97f36f054df1b40dc39c | /Python/02-09-2017/diif_printStr.py | ce67a403de7056572a7b8d1362907d1cf0bfd8cf | [] | no_license | bsuresh0212/Data-Science | 8cc48edd3092c267095effe9207c59be37a65231 | 41d7dc599d2f40ef90ee1b2bd6cbcc39e3e3d2ae | refs/heads/master | 2021-01-19T13:22:59.511375 | 2018-05-11T04:19:31 | 2018-05-11T04:19:31 | 100,838,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py |
name = input("Enter your name\n") #waiting for user input then it will print what user entered put it into next(new) line
# print("Hi %s ,Welcome" %name)
age = float(input("What is your age\n")) #our input type caste str to float
gender = input("What is your Gender\n") #simple user input
# %s string
# %d decimal va... | [
"sureshuce@gmail.com"
] | sureshuce@gmail.com |
939c71aa8b29bf220f070292d7d0b065b769b8b0 | bbff45f38e3c1041ebfb59acc734c3c841be734d | /Python Web Crawling/domain.py | 0f3edd6b8035127817b14a0b46e816f17bb3096f | [] | no_license | Aniket-99/Python-programs | 525e1defc1fe8566b55cad2d4956170222a80ece | 53c5a08dbc23df3ac62e0fd4d01c664e045b0708 | refs/heads/master | 2021-07-14T05:24:22.238385 | 2020-07-12T22:58:46 | 2020-07-12T22:58:46 | 184,638,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | from urllib.request import urlparse
# Get domain name(example.com)
def get_domain_name(url):
try:
results = get_sub_domain(url).split('.')
return results[-2] + '.' + results[-1]
except:
return ''
# Get sub domain name (name.example.com)
def get_sub_domain(url):
try:
return urlparse(url).netloc
except... | [
"Aniketkarmakar89@gmail.com"
] | Aniketkarmakar89@gmail.com |
21772bf6cf966f109bb0f281fa46481eee23f896 | 5328dc6a2c382ba58895c66275540821984dd060 | /pythonage1/python/car_playinggame.py | 760410e7f9ca4f8895b404f8e8610e0c675c5ada | [
"MIT"
] | permissive | yorkshireandrew/pythonage | b63ecb728c46daa19ef4d4bc9b10420cd6aae256 | cb329cc12e8a3652ec4d94a6de878ee1da9ac63d | refs/heads/master | 2020-03-28T09:40:47.987305 | 2018-09-09T19:39:59 | 2018-09-09T19:39:59 | 148,051,374 | 0 | 0 | null | 2018-09-09T19:40:00 | 2018-09-09T17:56:15 | Python | UTF-8 | Python | false | false | 4,704 | py | from pythonage.playinggame import PPlayingGame
class Car_PlayingGame(PPlayingGame):
def __init__(self, user, game, launch_info=None):
# First thing we must do is initialise our super class
# We tell it the name of the game it is playing so it can be shown in logging
super().__init__... | [
"andrewpate08@hotmail.com"
] | andrewpate08@hotmail.com |
15da464f52cba33dd25e81a33b7b3e1747037f71 | 0188e55312dfd18e23bdcc226e01578cd8cc70f6 | /DuplicateArea2x2.py | 3fcc9eca7eb83d5831714db4a2fc99dc79ec3e3f | [] | no_license | dpark827/KekoaCamera | d24767d2164faadc5fff04ec7e0e7ff438bd3b1a | f8d3f198cbcb70b6de65cf3ac57c0eb2e8b57c54 | refs/heads/master | 2021-09-07T13:36:02.017515 | 2018-02-12T17:00:20 | 2018-02-12T17:00:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | from mcpi.minecraft import Minecraft
mc = Minecraft.create()
Pos=mc.player.getPos()
block10=mc.getBlockWithData(Pos.x,Pos.y-1,Pos.z)
block20=mc.getBlockWithData(Pos.x+1,Pos.y-1,Pos.z)
block30=mc.getBlockWithData(Pos.x,Pos.y-1,Pos.z+1)
block40=mc.getBlockWithData(Pos.x+1,Pos.y-1,Pos.z+1)
block11=mc.getBlockWithData(Po... | [
"ipollard287@lsr7.net"
] | ipollard287@lsr7.net |
c5ec3cebc6acd55c78f200d64e7195209a6a3380 | 8eeef634531bddfd99bad995517a6dc2750e5815 | /tests/TestServidorHTTPConfiguracion.py | 4d385d32ef1d5c2c8e778218724c9a2373bb1195 | [] | no_license | GabrielMartinMoran/balizaIntegracionContinua | 99c882b9376520d832ef72c3e98194835aaf1b37 | 7f82c917793716fef30d30d0cd0a2d98ffda6d47 | refs/heads/master | 2021-06-08T14:14:44.112718 | 2021-04-27T18:06:17 | 2021-04-27T18:06:17 | 153,819,687 | 0 | 0 | null | 2021-04-27T18:07:03 | 2018-10-19T17:37:59 | JavaScript | UTF-8 | Python | false | false | 1,808 | py | #----------------------------- IMPORTAMOS EL DIRECTORIO src ---------------------------
import os
import sys
#IMPORTAMOS DEL PADRE
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../src')))
#--------------------------------------------------------------------------------------
import unitt... | [
"moran.gabriel.95@gmail.com"
] | moran.gabriel.95@gmail.com |
91b6a476fe7d9d21254cc4a6578ee34d79761a72 | e823bc36af457f229f6879d6e6a3ef6247c129aa | /virtualenv/Lib/site-packages/pyasn1/type/base.py | fa876834167f552414fead63c978417aa938685f | [
"MIT"
] | permissive | William-An/DFB_Final | e772fa979c41f2f83a4bf657cde499456215fb3b | 49a9244c98116574676992ebecd1d9435e1d5b1e | refs/heads/master | 2022-11-07T15:47:36.189057 | 2017-07-22T01:01:37 | 2017-07-22T01:01:43 | 97,426,562 | 1 | 1 | MIT | 2022-10-15T02:45:57 | 2017-07-17T02:21:42 | Python | UTF-8 | Python | false | false | 18,819 | py | #
# This file is part of pyasn1 software.
#
# Copyright (c) 2005-2017, Ilya Etingof <etingof@gmail.com>
# License: http://pyasn1.sf.net/license.html
#
import sys
from pyasn1.type import constraint, tagmap, tag
from pyasn1 import error
__all__ = ['Asn1Item', 'Asn1ItemBase', 'AbstractSimpleAsn1Item', 'AbstractConstructe... | [
"China_Aisa@live.com"
] | China_Aisa@live.com |
aef13a7b41487583f123a213fe1955cb8f2e7758 | 80467964af6eee056718fdf43904f023aedcbf36 | /users/migrations/0009_auto_20150420_1255.py | 25123e9faa13f8f04020a13a63cd87d743d0afcf | [
"MIT"
] | permissive | Sult/evehub | ef3edff43af2edf28143ecddd542b4976179785d | 61872390d25dd089958f6b4bbc7677f8dd137297 | refs/heads/master | 2021-01-19T10:37:15.824549 | 2015-04-20T17:16:06 | 2015-04-20T17:16:06 | 34,274,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('users', '0008_auto_20150419_2136'),
]
operations = [
migrations.RenameField(
model_name='profile',
o... | [
"hans110@hotmail.com"
] | hans110@hotmail.com |
d8a3aae6171fa26b3a934f1e429d256b4b71d9e1 | 640209e4f699a555778f70420a7338cafba32e51 | /com/ibm/cloud/ngbm/redfish/factory/ClientFactory.py | e578467d704275398e3bf316b619b5243a1c8d8b | [] | no_license | James-Moore/redfish | 42d485f5b331744a7b8013132d6695bd880d3cae | 3480a5c9d07a5d2a366021ba3d2f9f91a5007835 | refs/heads/master | 2022-10-12T16:46:42.519367 | 2020-05-28T20:28:19 | 2020-05-28T20:28:19 | 265,365,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | import redfish
from redfish.rest.v1 import HttpClient
import pprint as p
import com.ibm.cloud.ngbm.redfish as rf
class ClientFactory:
def __init__(self):
pass
def createClient(self) -> HttpClient:
return redfish.redfish_client(base_url=rf.target, username=rf.username, password=rf.password,
... | [
"James.Moore@ibm.com"
] | James.Moore@ibm.com |
f41106bef823a3fe07429986f1651ecbf09f9cb6 | ced428c3935f81c452a32a598d76fd9bebb7e239 | /ex20-29/ex29.py | b93f7355b133b62d9ca6d0b795d97ee9abb2ceee | [] | no_license | fcontreras18/lpthw | 3bcf74276e1f66b6eef2430e660742590937051a | 8a1f466dfee5515958621dbd92de32c80fcf12c7 | refs/heads/master | 2021-01-20T10:41:31.249366 | 2017-03-16T16:33:52 | 2017-03-16T16:33:52 | 83,936,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | people = 20
cats = 30
dogs = 15
if people > cats:
print "Too many cats! The world is doomed!"
if people < cats:
print "Not many cats! The world is saved!"
if people < dogs:
print "The world is drooled on!"
if people > dogs:
print "The world is dry!"
dogs += 5
if people >= dogs:
print "Peopl... | [
"fcontreras18@gmail.com"
] | fcontreras18@gmail.com |
22b1198f010dde12d103a5f65f822ee6e9dd0675 | e9fade80d627161ace797e6e80c54e328da4cf46 | /issure_tracker/accounts/migrations/0001_initial.py | 468da38e15e4ee1e580be4f953070a92552736f3 | [] | no_license | nurbekov0001/tracer | 1d48558f4064fd8c8382c16c57b11dbef21554e9 | 3daff8790efd87f99459d9ab9824960a0b8159a8 | refs/heads/master | 2023-04-17T16:06:01.446028 | 2021-04-22T10:04:48 | 2021-04-22T10:04:48 | 346,675,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | # Generated by Django 3.1.7 on 2021-04-16 13:03
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"nurbekovbekbolot090501@gmail.com"
] | nurbekovbekbolot090501@gmail.com |
513f6a85f513250674a0329b3e5b13a71f2ada85 | 77741ac3384cf80ba9f5684f896e4b6500064582 | /PycharmProjects/继承/09-super().py | a9a8a4081e86dbcffdb4377fb61750a70e521906 | [
"MIT"
] | permissive | jiankangliu/baseOfPython | 9c02763b6571596844ee3e690c4d505c8b95038d | a10e81c79bc6fc3807ca8715fb1be56df527742c | refs/heads/master | 2020-05-09T12:11:02.314281 | 2019-04-13T01:17:24 | 2019-04-13T01:17:24 | 181,104,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,658 | py | class Master(object):
def __init__(self):
self.kongfu = '[古法煎饼果子配方]'
def make_cake(self):
print(f'师傅运用{self.kongfu}制作煎饼果子')
# def xx(self):
# print('aaaaa')
# 黑马学校类
class School(Master):
def __init__(self):
self.kongfu = '[黑马煎饼果子配方]'
def make_cake... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
d88da65f761f4d5d8d53ca64d624e00f32ca08cf | 79f5263b2d8a8d99f0ae5f61504c5b034d77ae3c | /src/BallTrap/UserWall.py | 54cea7a5abbeaa2fbe36b67e8d7d82fd4744c9ea | [] | no_license | arendon13/ABall | 15a766e492c2cf272fc3bb4be8e6e900b7ad7ac5 | 48ec485ad55d94bfa40c469d375c60d0e9e3bab4 | refs/heads/master | 2021-06-04T05:13:53.510051 | 2016-10-03T00:32:03 | 2016-10-03T00:32:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,796 | py | '''
Created on May 29, 2015
@author: Adrian
'''
import pygame
import math
class UserWall(pygame.sprite.Sprite):
def __init__(self, x, y, width, height, color, h_walls_list, v_walls_list, ver, hor, setx, sety):
"""
Creates a user wall object to display on the screen. The user wall
... | [
"arendon094@gmail.com"
] | arendon094@gmail.com |
e967bcff7f25d3a1b9a44f62a6b4854e116c433b | df7799144c92eb410eda1b02cc51ba5fda176970 | /vgg/VGG.py | 5084d6ea557690f931ea7c9820b0b6145fa8df52 | [] | no_license | tonyli0803/DeVISE | b744784361d6531a2c404a30b2a1c5f9fd404fa3 | d7c5c3c74fb4f9ebe23ca536f57035f9286a1fd3 | refs/heads/master | 2020-03-07T10:05:24.320055 | 2018-03-30T12:03:39 | 2018-03-30T12:03:39 | 127,422,970 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,723 | py |
import tensorflow as tf
import tools
#%%
def VGG16(x, n_classes, is_pretrain=True):
x = tools.conv('conv1_1', x, 64, kernel_size=[3,3], stride=[1,1,1,1], is_pretrain=is_pretrain)
x = tools.conv('conv1_2', x, 64, kernel_size=[3,3], stride=[1,1,1,1], is_pretrain=is_pretrain)
x = tools.pool('pool1', x, ... | [
"tonyli0803@gmail.com"
] | tonyli0803@gmail.com |
12d7519cb4e68a6aa38375d6fb2442102e95a9f0 | 42d0544ab7d3285ca75bcd4ba98ed80c7b96cc7e | /vq_gnn_v1/utils/num_nodes.py | 6aa3d9b8bf7e8b08c3b71c6e9af942e9303d582b | [] | no_license | icloudsong/VQ-GNN | e2da4ba6f0a9dcf0cb2a528aac8a6239444d9f27 | 8a69c718334379886e29644a7ce2e4f3d1a1315c | refs/heads/main | 2023-08-27T16:03:14.840746 | 2021-11-10T02:31:56 | 2021-11-10T02:31:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | from copy import copy
from typing import Optional
import torch
from torch import Tensor
from torch_sparse import SparseTensor
@torch.jit._overload
def maybe_num_nodes(edge_index, num_nodes=None):
# type: (Tensor, Optional[int]) -> int
pass
@torch.jit._overload
def maybe_num_nodes(edge_index, num_nodes=None... | [
"devnkong@gmail.com"
] | devnkong@gmail.com |
0486c60b04b1fa850ec127fc53d1eea7ecfd4cd0 | e7bd5cd9eef027dadeb7f0d2ef260bf8a8a2a509 | /pytest/src/tensorflow/cifar10/cifar卷积.py | 77eba983c41edf17fdfa4348dfa6ab79faafa515 | [] | no_license | zhaojian770627/python | ced5fc24dbe07fb581151f07c7da14f33c32c3a4 | 41d2aebef19e9c5888f1743ed23d93a36710d8b5 | refs/heads/master | 2021-05-11T01:47:06.205668 | 2019-10-27T08:55:14 | 2019-10-27T08:55:14 | 118,342,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,694 | py | import cifar10_input
import tensorflow as tf
import numpy as np
# 取数据
print("begin")
batch_size = 128
images_train, labels_train = cifar10_input.inputs(eval_data=False, batch_size=batch_size)
images_test, labels_test = cifar10_input.inputs(eval_data=True, batch_size=batch_size)
print("begin data")
def weight_variabl... | [
"zhaojian770627@163.com"
] | zhaojian770627@163.com |
71403311fd91a38643279f6a1ab85e96977ce19f | bd942bebab19363c6a7f3cde66c71b9878b53404 | /tornado/streams/preprocess.py | 244e592a480191d15ae0754bd501fd2e1eebd448 | [] | no_license | dongshixu/ConceptExplorer | 027992080146047764baf60c39f989ad050b92f2 | 12443b4b00c816fe8401c6b193329a6ffad7c708 | refs/heads/master | 2021-04-08T01:49:16.616366 | 2020-03-20T10:58:40 | 2020-03-20T10:58:40 | 248,726,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,350 | py | """ Data pre-process model for datasets.
"""
import os
import csv
import numpy as np
from scipy import sparse
import matplotlib.pyplot as plt
from streams.dataset import Dataset
from streams.aqi import AQI
class DataPreProcess(object):
def __init__(self, dataset, sub_dataset, split=True):
""" Initialize ... | [
"623752785@qq.com"
] | 623752785@qq.com |
ea8ae38ffef451b1f2ab5900a8ca407cd803dc86 | 8c887e9f80e8a39048ea2311c6168c9f49e8a8a4 | /deepspeed/ops/sparse_attention/matmul.py | 51135bd1057948721eab8242ff6ce50c528476c1 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | awan-10/DeepSpeed | 166300e1b2c282e0f083a7dd7396e4d6fe7869bc | 80e263c571599a93f412c850f0ff7a44a9051a90 | refs/heads/master | 2023-08-11T14:27:20.553156 | 2021-10-11T19:43:27 | 2021-10-11T19:43:27 | 283,855,495 | 0 | 0 | MIT | 2020-11-18T18:54:03 | 2020-07-30T19:02:37 | Python | UTF-8 | Python | false | false | 36,641 | py | # DeepSpeed note, code taken & adapted from commit 9aa94789f13ada713af36cfd8cca2fc9a7f6b79a
# https://github.com/ptillet/torch-blocksparse/blob/master/torch_blocksparse/matmul.py
import importlib
import warnings
import torch
import math
import triton
import triton.language as tl
import triton._C.libtriton as libtriton... | [
"noreply@github.com"
] | awan-10.noreply@github.com |
8020ca7ef37b274f589b2f89fbd6d159e803707f | 6c95ccf96eaf9afb965563a7531a54e4c52bef0e | /motion.py | ddcafd2635feee1578e90a44ec1a267dcc9ab7c0 | [] | no_license | Annish1234/My-python-files | c0f2ec235b381fb742b11cbf97158a30a1a9a4b3 | a064bd01bb173ba3ed8c5b371bcdffe9830abd1f | refs/heads/master | 2021-01-22T10:46:14.835454 | 2018-10-06T05:19:39 | 2018-10-06T05:19:39 | 102,338,497 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | #!/usr/bin/python3
import os
import time
from gpiozero import MotionSensor
pir = MotionSensor(4)# this number 4 indicates the pin connected in the raspberry pi
while True:
if pir.motion_detected:
print("perimeter breached code red")# this text is printed when motion is decteted from PIR sensor and it captu... | [
"noreply@github.com"
] | Annish1234.noreply@github.com |
9aa31a97bc045ffaabe6bf7a8769159053162e78 | 5ef4e62333f4317d4bb00fd585fe6a90a7867791 | /in-class/commandLine.py | 3b9296052dc0e42cd2413561c3ffa7cceda30812 | [] | no_license | ruklakhani/CS-1.2 | ae5ebf44e40346b839ba9026cae6a4c4635cfa30 | 506524a5315e9c890b6f76d616a271b312227d35 | refs/heads/master | 2021-07-09T11:12:27.230210 | 2020-03-03T21:48:57 | 2020-03-03T21:48:57 | 235,853,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | import sys as sys
if __name__ == "__main__":
args = sys.argv
print(args[1:])
| [
"ruk.lakhani@students.makeschool.com"
] | ruk.lakhani@students.makeschool.com |
cb0501f60881b8defe1ce5355d09bf8137610de3 | a6aae9c647233edacbcb3b6efb593f822367587c | /cmsplugin_news/admin.py | 48714c2b106f0c88e42e9f2e32ba6ef91ac5701e | [] | no_license | silenceforest/cmsplugin-news-fork | 7b06e844cbc284d7c88df63733ce3fadc5667875 | 96aae7166d3d4a56b3098639272f82ba0c17fb86 | refs/heads/master | 2021-01-02T23:03:06.310191 | 2014-06-07T17:54:11 | 2014-06-07T17:54:11 | 1,389,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,009 | py | from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ungettext
from django.contrib import admin
from django.http import HttpResponse
from django.core import serializers
from cmsplugin_news.forms import NewsForm
from cmsplugin_news.models import News
class NewsAdmin(admin.M... | [
"andrey.neprokin@kofax.com"
] | andrey.neprokin@kofax.com |
6fab7818ccd44f9d8e135e272604f7c03df0ca0f | afa750180681580d0b3fe1ae484c1248e36ffc09 | /caphe1-master/home/urls.py | a79ab699bba54441edf60220c0e34d6d48a8f34f | [] | no_license | hamy2898/caphe1 | 9a20bc5a9d504943a2911fe108363d6e5607b493 | 4dd8d263fdb66f4e36a6e37cd6b217ef602b5e7b | refs/heads/master | 2020-09-09T03:44:52.850450 | 2019-11-19T10:30:37 | 2019-11-19T10:30:37 | 221,338,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | from django.urls import path, include
from .views import IndexView, SignUpDoneView, SignUp,Product1, detail,AboutView,noidung_baiviet,addcart,Contact
from django.urls import reverse_lazy
from django.contrib.auth import views as auth_views
app_name = 'home'
urlpatterns = [
path('login/', auth_views.LoginView.as_... | [
"hamy2898@users.noreply.github.com"
] | hamy2898@users.noreply.github.com |
433b32bb5daca94ed59dd9026ce5d90ddf8b386b | a230088db9185a549fc63db351cc3558fbf78fe8 | /tests/gallery/test_gallery.py | 147c5bae1edb6779c17447d57a4b498268546f16 | [
"MIT"
] | permissive | ciphertechsolutions/construct | 7cebb8ec1634fafcbd1d89af3772fdcbec9509c3 | e75adbee3cc2bc3fc0326166d623566bf4358424 | refs/heads/master | 2020-05-17T06:06:49.291119 | 2019-07-04T01:49:02 | 2019-07-04T01:49:02 | 183,551,585 | 0 | 0 | NOASSERTION | 2019-10-19T22:37:53 | 2019-04-26T03:38:32 | Python | UTF-8 | Python | false | false | 286 | py | from declarativeunittest import *
from construct import *
from construct.lib import *
from gallery import pe32file
def test_pe32():
commondump(pe32file, "python37-win32.exe")
commondump(pe32file, "python37-win64.exe")
commondump(pe32file, "SharpZipLib0860-dotnet20.dll")
| [
"arek.bulski@gmail.com"
] | arek.bulski@gmail.com |
9cbbdaf5e2f75a5838f72471abdb487fd31d6622 | cdfc436a5109309803830909f44bafd4eb2d9127 | /DRIVEUAE/config.py | e1c0140b5d19bc51f8842df435dd430b0dbb9323 | [] | no_license | prataplyf/driveUAE | 5808c71a12afc0c52306dabd8c65b80622fcad1d | 4efc9a934c64245802a1cb8fa026094e63db33f1 | refs/heads/master | 2022-12-11T03:07:52.854223 | 2021-05-27T10:02:21 | 2021-05-27T10:02:21 | 249,393,103 | 1 | 0 | null | 2022-12-08T03:52:04 | 2020-03-23T09:55:30 | Python | UTF-8 | Python | false | false | 1,000 | py | from DRIVEUAE import module as ml
# MongoDB
# mailid:
myclient = ml.pymongo.MongoClient("mongodb+srv://prataplyf:Ashish12@ashish-hbjy0.mongodb.net/test?retryWrites=true&w=majority")
mydb = myclient.DriveUAE
allcars = mydb["allCars"] # academy funnel
carbrands = mydb['carBrands']
# SECURITY KEYS
# Stripe Payment TEST ... | [
"prataplyf@gmail.com"
] | prataplyf@gmail.com |
588530018639fb7b71b841d7011ad8ebe13ccd45 | 1a90cadb7957aa7ad989680a538786ec063623ce | /HandTrackingModule.py | 16bbf6b52cd5bb98fd754a028a3ad307eabbb79f | [] | no_license | Vallabh0007/Hand_Volume_Control | a37a59f4565f10812030c9647cbff11cf76d9a23 | 48c268eeeb255f1a058569b6504ee4b5c912cf7c | refs/heads/main | 2023-06-26T09:48:44.639169 | 2021-07-31T19:04:01 | 2021-07-31T19:04:01 | 372,176,491 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,355 | py | import cv2
import mediapipe as mp
import time
class handDetector():
def __init__(self,mode=False,maxHands = 2, detectionCon=0.5 , trackCon=0.5 ):
self.mode = mode
self.maxHands = maxHands
self.detectionCon = detectionCon
self.trackCon = trackCon
self.mpHands = mp.solutions.... | [
"67462145+Vallabh0007@users.noreply.github.com"
] | 67462145+Vallabh0007@users.noreply.github.com |
16dcea427773aa54448743767824c63ff781732c | 01fb2c2bc14c85576417fe08974a1fd2cfd92a5e | /waveletAnalysis/Lab1(FFTandIFFT)/implementationFFT.py | 01eff8c1f259fffa448192b865fee0d733220667 | [] | no_license | Topaz41/Study | 58502d8ddd07f2137bf43c3dec9e08183ce19294 | 40beadaa6d5d65c0ac4bbe6e8c15ec83fd44946a | refs/heads/master | 2021-07-09T15:00:45.425388 | 2020-08-03T14:31:12 | 2020-08-03T14:31:12 | 178,233,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,235 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import numpy as np
import math as math
import random
import time
from scipy import linalg, sparse
import warnings
warnings.filterwarnings('ignore')
matrix_type = 'coo'
def I_n(n):
return sparse.identity(n, dtype=float, format='coo')
def omega_n(n):
return np.... | [
"zeeny123@mail.ru"
] | zeeny123@mail.ru |
79435fffffd54d4dd35c5ea37db3e9fa998944b7 | 99ada05e0088a8e93400b245c02fb0b28ef91a2d | /api_v1/containers/shop/views.py | 90df9332a7860db17f2d5387f1c797548f3e16de | [
"MIT"
] | permissive | eric-scott-owens/loopla | 789fdf128393c29ced808b10e98eb55d5a0ed882 | 1fd5e6e7e9907198ff904111010b362a129d5e39 | refs/heads/master | 2022-12-12T17:30:44.373305 | 2019-08-01T06:17:05 | 2019-08-01T06:17:05 | 199,980,906 | 0 | 0 | MIT | 2022-12-11T00:23:28 | 2019-08-01T05:08:43 | JavaScript | UTF-8 | Python | false | false | 6,925 | py | import copy
from datetime import datetime
from django.contrib.auth.models import User
from django.conf import settings
from django.db import transaction
from rest_framework import status
from rest_framework.decorators import api_view
from rest_framework.response import Response
import stripe
from shop.models import Ord... | [
"eric.owens@loopla.com"
] | eric.owens@loopla.com |
9e657d429e415c3ebb87220383af0eee0fd9cbcc | 4b9aa0266bebbd693b9145803fd1d07ccf8703e7 | /4_antecedencia_das_reservas.py | 5d36ef10befffda6770eee461c15c7e41eb2789c | [] | no_license | manaces560/Seazone-Code-Challenge | 86c6d4ebb7ceab6b7d31ed8c2388bbfb4323559a | cb47d03238f5eb9cf13f3a3776076a735d8bce00 | refs/heads/main | 2023-05-30T16:31:43.971910 | 2021-06-10T05:10:01 | 2021-06-10T05:10:01 | 374,865,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,465 | py | import pandas as pd
import matplotlib.pyplot as plt
# lendo a tabela
priceav = pd.read_csv("desafio_priceav.csv")
##################### processando "priceav" linha por linha ######################
soma_instervalo_dias=0
dados_validos=0
dados_validos_fim_semana=0
soma_intervalo_dias_fim_semana=0
for n in range (le... | [
"manaces8383@gmail.com"
] | manaces8383@gmail.com |
c7e6ee10b4abb24b07b8592e4400bb53ff52d466 | bb8b9a9ab8b07d734a5e9eb10f2c1e001f656436 | /__openerp__.py | 42be1b51307ff99e5b86e2ab433191b5fe6550a3 | [] | no_license | eoconsulting/purchase_supplier | 1dd467ac01d7ad8d804751af8f95f5085f27ad4b | a3b74721ff4f7a0d315872b6fcc1787d69ee3fe1 | refs/heads/master | 2021-01-10T20:26:05.133750 | 2013-10-08T02:57:03 | 2013-10-08T02:57:03 | 7,001,140 | 0 | 2 | null | 2013-09-03T00:37:40 | 2012-12-04T14:25:46 | Python | UTF-8 | Python | false | false | 1,823 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) Javier Duran
# Mariano Ruiz (Enterprise Objects Consulting)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero G... | [
"mrsarm@gmail.com"
] | mrsarm@gmail.com |
2b35ca0f012801259ec34a07446e644854724d8d | 1d322661c86e55bbb1754ba314982ae36955c3dc | /Go-Exchange/web_project/urls.py | 9ecec46dc92b9df3e350adc16f381f361ae5bb89 | [] | no_license | anajag99/Go-Exchange | c0f67edfa3c91ce379b4c565a1f5978790909f84 | ee7e98befc3bf96ee13aef57916a616fac32e2e5 | refs/heads/master | 2023-01-20T11:50:23.569055 | 2020-11-28T08:35:43 | 2020-11-28T08:35:43 | 316,684,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | """web_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"jagtapanagha350@gmail.com"
] | jagtapanagha350@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.