blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6538486fea182499046079d127ad288a683d5a91 | 5a45cf619c853e125a9b02b894dfd5235b21b95a | /monkey_study/study_python04_function.py | 0e0b8a417e6f6cf2fe3ab96e6a0e27770254f368 | [] | no_license | SmartComputerMonkey/python | 833554d2a6a4ae3b95a8a00baba062a77a7b7f78 | 37dab2648bd2e71f01672a5459f3f7faff28e22a | refs/heads/master | 2021-09-02T12:20:13.736401 | 2018-01-02T15:06:29 | 2018-01-02T15:06:29 | 116,026,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "Monkey"
#集合操作
#作用
#1、去重,把一个列表变成集合,就自动去重了 无序
list_1 = [1,4,5,7,3,6,7,9]
list_1 = set(list_1)
print(list_1,type(list_1))
#2、关系测试,测试两组数据之前的交集、差集、并集等关系
list_2 = set([2,6,0,66,22,8,4])
print(list_1,list_2)
#取交集
print(list_1.intersection(list_2))
#取并集
print(list_... | [
"18731788052@163.com"
] | 18731788052@163.com |
45cf4712437f3c195508edc962277b1397c02ff0 | 734b4605f0a8fc217e9d0eb9062e76d70ada61b2 | /noxfile.py | 260a1972b6558b609426f95693c250ddadec6433 | [
"BSD-3-Clause"
] | permissive | themperek/cocotb | ab77f6509ad1203b05675962435c562265384c1f | a6cf91bbc9c88323c3dd5bbceddc4abb5c650a27 | refs/heads/master | 2023-02-19T06:57:31.478370 | 2022-02-27T13:13:29 | 2022-02-27T13:13:29 | 28,962,065 | 0 | 1 | NOASSERTION | 2022-02-27T12:50:24 | 2015-01-08T11:01:13 | Python | UTF-8 | Python | false | false | 2,535 | py | # Copyright cocotb contributors
# Licensed under the Revised BSD License, see LICENSE for details.
# SPDX-License-Identifier: BSD-3-Clause
import glob
import nox
test_deps = ["coverage", "pytest", "pytest-cov"]
dev_deps = [
"black",
"isort",
"mypy",
"pre-commit",
"nox",
"tox",
"flake8",
... | [
"noreply@github.com"
] | noreply@github.com |
4217f6b86b63e379d08ad2b72ab3612fb8b4a7f4 | e518f1493a2c5ea52dbe98d7de7e078459fcff30 | /Supervised_Learning/data_prep.py | 2f1f0b30418febfdbc14993f40e6c30ea2070b40 | [] | no_license | wegesdal/udacity-ml | aa63232ef1573cead7623b8c5b6684f9da5797bf | e875cb92130bebe1c02afd7f24da4ec63ae9269c | refs/heads/master | 2021-01-08T16:23:44.766653 | 2020-02-28T17:24:23 | 2020-02-28T17:24:23 | 242,078,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | import numpy as np
import pandas as pd
admissions = pd.read_csv('~/udacity-ml/Grad_Descent_Backprop/binary.csv')
# Make dummy variables for rank
data = pd.concat([admissions, pd.get_dummies(admissions['rank'], prefix='rank')], axis=1)
data = data.drop('rank', axis=1)
# Standarize features
for field in ['gre', 'gpa']... | [
"william.egesdal@gmail.com"
] | william.egesdal@gmail.com |
6aba9aaca7ac55616fed63285f0ad9fca9ee20de | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/CodeJamData/11/43/8.py | 1daa4631c758b6fd37cdadd9427a6c8fdeb77665 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | import sys
import fractions
infile = sys.stdin
def genprimes():
composites = {}
candidate = 2
while True:
if candidate not in composites:
yield candidate
composites[candidate*candidate] = [candidate]
else:
for p in composites[candidate]:
... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
8e6e213730e86c9fdb515f40d12b56ea422c269c | a2b3184d40a6a9b519184efd5e9a81e26057e9a0 | /my_stuff/download_Example.py | ad5e69a1aa3d0fbd5767273687b455fcf6fb5704 | [] | no_license | plevp/my_first_repo | 823c65f0fde9b86dd5b400a1831d21d85ea0d6d0 | 470dfdc7507031d745a732f467bd2aff64ed4588 | refs/heads/master | 2020-04-16T06:34:53.691638 | 2017-02-18T22:15:54 | 2017-02-18T22:15:54 | 21,724,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | import urllib2
import sys
import os
import BeautifulSoup
from subprocess import call
try:
url = "http://web.eecs.umich.edu/~radev/coursera-slides"
s = urllib2.urlopen(url)
soup = BeautifulSoup.BeautifulSoup(s)
print soup.prettify();
ass = soup.findAll("a")
print len(ass)
for item in ass:
p... | [
"lev.plotnikov@gmail.com"
] | lev.plotnikov@gmail.com |
6aff66d18128171ac9f85987412455f9d5b05661 | ea4fad285f1dcad4c48bb888df5e4b6afb533b7b | /Cap12_modulos/01_datetime/script7.py | 9abdd0802a1df451df0294cf8af6877965bd0cde | [] | no_license | frclasso/FCGurus_python1_turma_novembro2019 | 0856cb8eaa25ec20ae207960666f1c12f96160e9 | 5f97eb4b40d115d4c9846be91448e9183823bea8 | refs/heads/master | 2021-02-16T20:38:27.969672 | 2020-06-18T00:17:51 | 2020-06-18T00:17:51 | 245,042,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | from datetime import datetime, timedelta
# situacao oo D-1
now = datetime.now().date()
print(now)
delta = timedelta(days=1)
ontem = now - delta
print(ontem)
data_futura = timedelta(days=7)
print(f'Daqui uma semana: {now + data_futura}') | [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
2f15ae48032d0568fa73e6ec1d2b3b2099398289 | da35eb3d2cf487e2d726246f523b04d55c323fb4 | /vsm/ui/views/__init__.py | e64e76d922ec0b19a7ef9d1062d4a186bcb0ca49 | [
"MIT"
] | permissive | rabramley/volca_sample_manager | 89282d042133d063f579a6b56d36441d9444feef | 6c43371f8a7087c620e4b89de0eaa84d5a6ee904 | refs/heads/master | 2022-11-09T16:52:12.940718 | 2020-06-22T18:24:18 | 2020-06-22T18:24:18 | 255,284,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | __all__ = [
"home",
"sample",
"bank",
] | [
"rabramley@gmail.com"
] | rabramley@gmail.com |
e80b5c44eb6124ea2d6363b55ff01e9442c18c23 | 0806547e7c839c16cc674d22d26a0b7d635c5bc7 | /motioncontrol/test.py | 6f4cd3f8df6e579ccf31ddba99d6e38b14cebf7b | [] | no_license | vinx-2105/service_bot | 957643f9a1c98f407aebd304baa5c1c15df0f643 | a5512ac23abc3de5c1621dfb9de4eaf26bd092c9 | refs/heads/master | 2020-04-08T00:36:18.274938 | 2019-03-09T16:20:44 | 2019-03-09T16:20:44 | 158,858,221 | 3 | 0 | null | 2018-12-01T16:40:38 | 2018-11-23T16:54:32 | Python | UTF-8 | Python | false | false | 850 | py | import sensorcontrol as sc
import motorcontrol2 as mc
from time import sleep
s1=3
s2=5
s3=7
s4=11 #near=12
s5=13
m11=29
m12=33
m21=35
m22=37
motors=mc.MotorControl(m11,m12,m21,m22)
motors.stop()
#motors.moveForward()
#sleep(5)
#motors.turnRightHard()
motors.turnLeftHard()
#motors.moveForward()
#motors.moveBackward()... | [
"chhabra99yogesh@gmail.com"
] | chhabra99yogesh@gmail.com |
09997bd5dea4b9c39aa7c798831e80d5613be12e | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/bure.py | 03da775208dc23e73d5b48559ccb7fa18d6d8e33 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 101 | py | ii = [('LyelCPG.py', 1), ('DibdTRL2.py', 2), ('ClarGE3.py', 1), ('DibdTRL.py', 3), ('EvarJSP.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
c49ae8d8c49637e49f65333414193c822ec7852d | 93ae61e5f79ff927d94f41c7700c0dc0dff89e6a | /WaveletStatistics/WaveletStatistics.py | f252b8b050e7f18f76499e064ae2265745d68e21 | [] | no_license | mohanakannan9/hcp_qc_tools | 9449ecd61b5bf04bf094028021049dff49c1d96c | 18629756f2076320ebb75efa6c46446298286ecc | refs/heads/master | 2021-01-18T14:23:13.968763 | 2015-06-23T04:37:15 | 2015-06-23T04:37:15 | 37,896,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,352 | py | '''
Created on Jun 19, 2012
@author: Tony
'''
import os
import csv
import time
import math
import numpy
import pywt
import socket
import argparse
import nipy as nip
import nibabel as nib
from scipy import stats
import matplotlib.cm as cm
import matplotlib.pyplot as pyplot
import matplotlib.animation as animation
#i... | [
"mohanakannan9@gmail.com"
] | mohanakannan9@gmail.com |
ba180a8e28a502a2bcab2b680e0e5285541eb57a | f9970fd94692bfd7ec392f399dd37f998df3e96c | /lstm_example.py | af28af4699da0e0023ffbe65babc8aca8204d63b | [] | no_license | nickc92/RNNBaroque | 3b7805a5f9bd6f951483d0c61aec15f9337d5586 | a051ee2bb49d7ba9f6ce91cdb10d234a6aad1770 | refs/heads/master | 2021-01-01T05:44:38.675654 | 2016-04-16T00:59:53 | 2016-04-16T00:59:53 | 56,019,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,027 | py | '''
Recurrent network example. Trains a 2 layered LSTM network to learn
text from a user-provided input file. The network can then be used to generate
text using a short string as seed (refer to the variable generation_phrase).
This example is partly based on Andrej Karpathy's blog
(http://karpathy.github.io/2015/05/2... | [
"nickcholy@gmail.com"
] | nickcholy@gmail.com |
bec52e31f3f9e2329eccde05952eb6b19156e2d2 | 37e87b3d5e1ee9009f0ea0671bc0c6edf0e233b7 | /1754.py | 745bbc7fc7f3f3e7d42efdd00102de494df876ed | [] | no_license | Jane11111/Leetcode2021 | d9f4987792938597bf89ff72ba6bbcb4a3f9d081 | a95b871578aae0103066962c33b8c0f4ec22d0f2 | refs/heads/master | 2023-07-14T21:29:41.196752 | 2021-08-23T03:28:02 | 2021-08-23T03:28:02 | 344,804,297 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | # -*- coding: utf-8 -*-
# @Time : 2021-08-02 10:57
# @Author : zxl
# @FileName: 1754.py
class Solution:
def recSolve(self,word1,word2, dic):
if word1 in dic and word2 in dic[word1]:
return dic[word1][word2]
if len(word1)>len(word2):
return self.recSolve(word2,word1... | [
"791057615@qq.com"
] | 791057615@qq.com |
9cd58d170c9cab86fd373a9198bfa34b390ef2b4 | b049ec2f36bb63537ca5b73717635f2dc0126cda | /082_Remove_Duplicates_from_Sorted_List_II/082_3.py | 060c0985c2219257f846524bcbf2f4b26f2269b7 | [] | no_license | massquantity/LeetCode | 01d29fe8922b7545140015efbda0f71b04043124 | e298cdab86a4de81bf5a44579c54b5bc7bcb1618 | refs/heads/master | 2021-07-20T07:18:38.109707 | 2021-07-03T04:11:15 | 2021-07-03T04:11:15 | 135,297,184 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | class Solution:
def deleteDuplicates(self, head):
"""
:type head: ListNode
:rtype: ListNode
"""
if head is None:
return head
dummy = ListNode(-1)
prev, curr = dummy, head
dummy.next = head
while curr and curr.next:
... | [
"wdmjjxg@163.com"
] | wdmjjxg@163.com |
8c5f1d9b0745df1b33cb6e671fe0a3981a7cb2b4 | 7f5a40df7ff2c27511c76ae0beb163032cf51e0a | /verificadorPreco/asgi.py | f98af017258f143d7d9af9ecb01178077ef2b819 | [] | no_license | GabsZero/verificador-precos | 951218af29be53fbc921871485a2661de96a37ed | 3ec890034040604eb26d6c0f362e530b8628cde3 | refs/heads/master | 2023-06-19T05:17:27.135758 | 2021-07-15T01:57:25 | 2021-07-15T01:57:25 | 377,661,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
ASGI config for verificadorPreco project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJA... | [
"joaogbdesouza@gmail.com"
] | joaogbdesouza@gmail.com |
570459047883049dee58a550be237d8fe4f4553c | 0ca559977e4956d568fd935f36eab4b80c1f43af | /ACILoginTest.py | 8c4e04fe0e10ea2f1bff3e78f7b582404fd1350b | [] | no_license | andersnlindstrom/hello-world | aca393f64770982a297e3d3ca0cc637e9c8b4aa2 | 37fe2b4f0ff7d0764d097a8a88d3ae6d53eaed65 | refs/heads/master | 2020-05-04T10:45:26.281476 | 2019-04-05T12:36:26 | 2019-04-05T12:36:26 | 179,094,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | import requests
url = "https://apic/api/aaaLogin.json"
payload = "{\n \"aaaUser\":{\n\t\"attributes\":{\n\t\t\"name\":\"admin\",\n\t\t\"pwd\":\"cisco123\"\n\t}\n }\n}"
headers = {
'cache-control': "no-cache",
'postman-token': "68f4acae-0950-10e4-5c8a-7687bc2c3c1d"
}
try:
response = requests.request("... | [
"anders.n.lindstrom@users.noreply.github.com"
] | anders.n.lindstrom@users.noreply.github.com |
ed87c08e4fe58665c25ec1881f82a5337ac1ea37 | 2d227925231be797cc78b644358ecd3adf00fba7 | /ce/c006.py | 1d4b91367360be704c383fd204a29c486ecb8dc8 | [] | no_license | egalli64/pythonesque | 6bb107189d4556d832175d41366ea0b18ed6ea1d | 154042c5ae5cf43a0ae2c03d509fc48d1dc19eb8 | refs/heads/master | 2023-07-07T05:50:14.711023 | 2023-07-01T10:52:24 | 2023-07-01T10:52:24 | 53,720,525 | 21 | 7 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | """
CodeEval Longest Common Subsequence
author: Manny egalli64@gmail.com
info: http://thisthread.blogspot.com/2017/02/codeeval-longest-common-subsequence.html
https://www.codeeval.com/open_challenges/6/
"""
import sys
def solution(line):
ver, hor = line.split(';')
t = [[0 for j in range(len(hor)+1)] for... | [
"egalli64@gmail.com"
] | egalli64@gmail.com |
989f929f6df8b2b70b0efbbf999227eacf81b9e6 | 212f6e4848796aecfb5b4ab8d640003d1ca6f33c | /apps/Main/migrations/0042_test_folder.py | 7a6ac9801f61b4c5eed050962dacb5c3b6403bb7 | [] | no_license | OlegEfremov/MathBaseRepo | 257827db5efd1263e0e955c9ad7b2fcf8b1c4722 | f3ca9b5f9e8b502a770bde9b2e205fa0cf6ecffa | refs/heads/master | 2022-12-02T05:23:42.020082 | 2020-04-30T16:22:32 | 2020-04-30T16:22:32 | 252,153,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,791 | py | # Generated by Django 2.0.2 on 2018-12-17 20:23
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import mptt.fields
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('Main'... | [
"olegefremov70@mail.ru"
] | olegefremov70@mail.ru |
29e80556b879a6f36290bc913a188945529be4e2 | 4e013a13f4569403f95faa2f753c09bfb51cba97 | /models.py | e66d5741650279a03c190f465fb9e8730e9b72e8 | [] | no_license | jmlc101/build-a-blog | 876554b954751f40359e1e1b3ae1edd87c1aef27 | cbedebf5f1a677d23f0df2dd0d86779ef99342c7 | refs/heads/master | 2021-05-05T15:22:51.185613 | 2018-01-30T18:56:54 | 2018-01-30T18:56:54 | 117,300,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | from app import db
class Blog(db.Model):
id = db.Column(db.Integer, primary_key=True)
title = db.Column(db.String(120))
body = db.Column(db.String(2000))
def __init__(self, title, body):
self.title = title
self.body = body | [
"jmcclusky17@gmail.com"
] | jmcclusky17@gmail.com |
71f18c299dfb9cc9acedc7d2a7d11aad44c6280d | 49e17d736df9889b3a0d91705abd0f3ed579d17c | /quests/Rune_Memories.py | 32215014bbf320e31eaed75dda4cd9080a7bfd6c | [] | no_license | TheWhirl/RunescapeQuestWebsite | 4f258c04a1c1e6bb9f6d9e0fa63fdcab452ccfc2 | 8d5dacbc8251bd1f2dded4ffa04400ed48e0f1fb | refs/heads/master | 2020-05-16T02:54:35.603906 | 2018-12-23T13:03:58 | 2018-12-23T13:03:58 | 182,643,424 | 0 | 0 | null | 2019-04-22T07:22:00 | 2019-04-22T07:21:59 | null | UTF-8 | Python | false | false | 468 | py | import os
import sys
sys.path.insert(0,
os.path.dirname(os.path.realpath(__file__))[
0:-len("quests")])
from QuestInfo import Quest
class Rune_Memories(Quest):
def __init__(self):
super().__init__("Rune Memories")
self.age = 5
self.difficulty = "Novice... | [
"musomaddy@gmail.com"
] | musomaddy@gmail.com |
dcfded448d6345ebdb38ac170e01942675fa0d6d | e594d131c45606c750cf1e673ae538c84a74b37b | /passeggio_random.py | 0dc4b36693c0cb14e59cf5d00ccea609f07415ef | [
"Apache-2.0"
] | permissive | profeder/picar | 99e21dfd59237c8b2ad4fa666a78825004724d99 | ab8c7b663839c105f234f7435b0828ee1b089b3c | refs/heads/main | 2023-02-15T03:41:42.252624 | 2021-01-10T16:51:20 | 2021-01-10T16:51:20 | 326,012,890 | 0 | 0 | Apache-2.0 | 2021-01-10T16:51:21 | 2021-01-01T16:17:33 | Python | UTF-8 | Python | false | false | 1,022 | py | import logging
import random
import time
import picar_4wd as fc
SCAN_SLEEP = 0.1
MIN_DIST_FOLLOW = 30
def lettura_media(angolo):
res = 0
for i in range(1, 3):
res = res + fc.get_distance_at(angolo)
time.sleep(0.1)
logging.warning('score media: ' + str(res/3))
return res / 3
def sca... | [
"federico.profeti@gmail.com"
] | federico.profeti@gmail.com |
f1534e1fb1fcaf82d7446a42500e6405d5618b50 | fa8f727395f4443ddc7ec2d85e7e95fd04296e31 | /TemplatesForeachApplication/settings.py | 4af23de2b9fad1417932c68aa5ff85332827a800 | [] | no_license | Sudeep152/DjangoFirst | a201b7b7e1abf978cc720ba7ff218362b30ee0f0 | b637cc554877e7265849d67d1d023c0c5a3671ef | refs/heads/main | 2023-02-22T16:11:58.037499 | 2021-01-30T06:43:45 | 2021-01-30T06:43:45 | 334,343,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,221 | py | """
Django settings for TemplatesForeachApplication project.
Generated by 'django-admin startproject' using Django 3.1.5.
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/setting... | [
"sudeepdahiya152@gmail.com"
] | sudeepdahiya152@gmail.com |
e8ddcddc4326d24787d09b33f0101c842cddc72f | d58d32c97f0d1dd1340100ae2a1480b138a57223 | /mysite/polls/migrations/0001_initial.py | fd4b3d358ee6767d5e0669ec594c52a105c4cfc2 | [] | no_license | imvivek71/go | e550130ff72bda9d7bf1dfe00ddb0d0e5ef87c1d | 7c1eb161fc9722a9a4584650a35ad0d83bcfd71a | refs/heads/master | 2020-04-19T23:27:42.372659 | 2019-02-23T13:18:45 | 2019-02-23T13:18:45 | 168,496,283 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | # Generated by Django 2.1.5 on 2019-01-29 08:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Choice',
fields=[
... | [
"vivekgoswami71@gmail.com"
] | vivekgoswami71@gmail.com |
63c7dd9959ca37a1284a4920c6a40d2fac2de29d | e3acba4c1cb6b7a7f4744e9917adc7df3108de43 | /checkout/migrations/0001_initial.py | 3c45898332d2354a65285e45246cbc682cec2bcc | [] | no_license | AntoineZakaria/ta3refa | 2ebec89d9acc78d2caa6d9af39fa60814d880fd2 | 041730988c52d9ef57164f62b268274e4fc20a89 | refs/heads/master | 2023-02-14T13:39:07.736232 | 2021-01-14T11:01:04 | 2021-01-14T11:01:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | # Generated by Django 3.1.3 on 2021-01-09 17:02
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Cart',
fields=[
... | [
"tonyzakaria53@gmail.com"
] | tonyzakaria53@gmail.com |
b941dbdf6608660fd07a54ac390d3b319989cc89 | 64e00b058909c83e436b18b50636f280660fa5fb | /HW3_client.py | 30304d82436798fb01d757d4aa7bf394642fd769 | [] | no_license | TheBell/HW3 | 726c995de4777973a2fcc6b21eaa112e5e87dcdb | d305a647f7425250fb49bea260a41fd35cd694d7 | refs/heads/master | 2021-04-27T20:39:08.650147 | 2018-02-21T19:31:30 | 2018-02-21T19:31:30 | 122,383,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | #!/usr/bin/env python3
"""
The client prompts the user for server information, then requests the desired resource.
"""
__author__ = "Brian Bell" | [
"bell0x2a@gmail.com"
] | bell0x2a@gmail.com |
0b062341f348382fb2174eea58bec2dd55d84e8f | 691d8f198075f558e2563b61cb63ddc198ad3cf6 | /django_simple_file_handler/tests/functions.py | 364b1c260c9f4500915fe796c51dd534020d7b3f | [
"MIT"
] | permissive | jonathanrickard/django-simple-file-handler | 826e160c6730e49cf410fe6bf66c9352bd4eb7c0 | 1dfd1332cb199b155c9951162cb0b5d18a219852 | refs/heads/master | 2023-06-23T20:09:06.867318 | 2023-06-18T20:39:08 | 2023-06-18T20:39:08 | 133,997,025 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,157 | py | from io import (
BytesIO,
)
from PIL import (
Image,
)
from django.conf import (
settings,
)
from django.contrib.auth.models import (
User,
)
from django.core.files.uploadedfile import (
SimpleUploadedFile,
)
from django.test import (
RequestFactory,
)
from django.urls import (
reverse,
... | [
"jonathan.rickard@gmail.com"
] | jonathan.rickard@gmail.com |
4247728a0bc10edab8316c0580e6e45f50a400bc | d4f2e2e3552ab4b111f78cfbad0d30c144201093 | /2016-12-20/condition.py | 59437d61dfcf241af110530a1ce821908201cf9e | [
"Apache-2.0"
] | permissive | dongweiming/mp | c1e9f6f2c1fd8adbd4d7b8ffc45c5cc288cdcd80 | 129c31c818e1f0c39c983aad1f2f1ad9fa7efb1c | refs/heads/master | 2023-04-29T07:56:27.198574 | 2022-10-30T04:20:09 | 2022-10-30T04:21:27 | 75,051,758 | 96 | 35 | Apache-2.0 | 2023-04-17T17:34:17 | 2016-11-29T06:44:53 | Python | UTF-8 | Python | false | false | 1,139 | py | import asyncio
import functools
async def consumer(cond, name, second):
await asyncio.sleep(second)
with await cond:
await cond.wait()
print('{}: Resource is available to consumer'.format(name))
async def producer(cond):
await asyncio.sleep(2)
for n in range(1, 3):
with awai... | [
"ciici1234@hotmail.com"
] | ciici1234@hotmail.com |
e0cf13b8071e20ef7e9bafa62f969adf7f851808 | e60804cd0f7b22b37af05fdc68eba510bc751df5 | /backend/app/settings/globals.py | f5735cd931c6cb22e8fa362f8340421fcf372c3d | [
"MIT"
] | permissive | kartikeyhadiya/base-fastapi-postgresql | f3254b75c491667ffce30be86f7de04f0399dac0 | 7e3a2916910155cd83b10cd7fec42eba7b1d3a95 | refs/heads/master | 2023-06-28T03:50:59.968192 | 2019-12-15T12:33:42 | 2019-12-15T12:33:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,340 | py | from pathlib import Path
from typing import Optional
from starlette.config import Config
from starlette.datastructures import CommaSeparatedStrings
from ..models.pydantic.database import DatabaseURL
p: Path = Path(__file__).parents[2] / ".env"
config: Config = Config(p if p.exists() else None)
DATABASE: str = confi... | [
"belyynikolay@gmail.com"
] | belyynikolay@gmail.com |
1944c86dc0a809a8876e5cf7f16fa6264c4e98f9 | 8ce2ef401bfa8a7edc075f30671ceb7e12001566 | /tensorflow/python/data/experimental/kernel_tests/optimization/map_and_batch_fusion_test.py | ddf3cbbcc358d765beb4bca3ae4ffdf26f2da9ca | [
"Apache-2.0"
] | permissive | TomZRoid/tensorflow | e8167a31dcd707279365c8ee5ec283c00edaafba | 89390faf68c153ef8bea0e20ba128c0d54cee0e0 | refs/heads/master | 2020-03-30T22:38:50.662448 | 2018-11-08T06:25:34 | 2018-11-08T06:25:34 | 151,673,686 | 2 | 0 | Apache-2.0 | 2018-10-05T05:15:45 | 2018-10-05T05:15:44 | null | UTF-8 | Python | false | false | 1,813 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
4cc35bb659adad7f05acfac926f47dc77eb1db92 | 872e7437a22e684c0fecce76e679464bb68e434d | /Anna_old/py_scripts/bioscripts/get_records.py | 6b5b4dc9c4715dfd10d01a01288f03c984e341a0 | [] | no_license | tskalicky/ngs | d9a3c4da69544c9d5ae72c71167f2078137d1775 | 6056c627cdf23eca357bbb7cba0465abf6398f43 | refs/heads/master | 2020-12-30T22:34:28.112079 | 2018-10-31T09:09:39 | 2018-10-31T09:09:39 | 80,538,797 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | #!/usr/bin/python
from Bio import SeqIO
l = [
"utg000008l|quiver|quiver|quiver",
"utg000035l|quiver|quiver|quiver"
]
fasta = '/home/anna/bioinformatics/genomes/trypanoplasma/pacbio_consensus_quiver3.fasta'
results = []
for record in SeqIO.parse(fasta, "fasta"):
if record.id in l:
results.append(record)
... | [
"tomas.skalicky@seznam.cz"
] | tomas.skalicky@seznam.cz |
ffeab7b06ec3fa59a92748cd8b44f1c7fda09477 | ee53b0262007b2f0db0fe15b2ad85f65fafa4e25 | /Leetcode/1802. Maximum Value at a Given Index in a Bounded Array.py | 57f92a8cbed1157b36ba6a7e5e1529599eefce52 | [] | no_license | xiaohuanlin/Algorithms | bd48caacb08295fc5756acdac609be78e143a760 | 157cbaeeff74130e5105e58a6b4cdf66403a8a6f | refs/heads/master | 2023-08-09T05:18:06.221485 | 2023-08-08T11:53:15 | 2023-08-08T11:53:15 | 131,491,056 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,128 | py | '''
You are given three positive integers: n, index, and maxSum. You want to construct an array nums (0-indexed) that satisfies the following conditions:
nums.length == n
nums[i] is a positive integer where 0 <= i < n.
abs(nums[i] - nums[i+1]) <= 1 where 0 <= i < n-1.
The sum of all the elements of nums does not excee... | [
"xiaohuanlin1993@gmail.com"
] | xiaohuanlin1993@gmail.com |
42907b1228eb954d41ab0118f4a4e4f1361bf709 | b95112b5b66551a15ddb5075dd9f6e343d10ee26 | /code/get_distances.py | 9a2ea6e1b19a67542e5ca4ede04ad9875bd924c6 | [] | no_license | yrahul3910/neunet-less-data | ae3221ebec84f1ff49e2d079730ebf3e706a3345 | 1ad31d57a02a259ea31121a8f905ef4a8b7e32b9 | refs/heads/master | 2022-03-27T16:16:13.602531 | 2019-12-14T23:37:05 | 2019-12-14T23:37:05 | 215,572,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | import sys
if len(sys.argv) < 2:
print('Usage: get_distances DEFAULT [SKIP_LIST]')
sys.exit()
benchmark = sys.argv[1]
skip_list = []
if len(sys.argv) == 3:
skip_list = [int(x) for x in sys.argv[2].split(',')]
for line in sys.stdin:
diff = sum([x != y for i, (x, y) in enumerate(zip(benchmark, line)) ... | [
"yrahul3910@gmail.com"
] | yrahul3910@gmail.com |
88988fca20b95aa138cf1a987f42ff4bc6f62a97 | f1239327d95cca232eab7d4fea44ebf5b7bc6bd5 | /admincode/pipelines.py | 31fe2c676dd12aabe94f2bef544a2f72e779db86 | [
"MIT"
] | permissive | znwang25/china_admincode | f18a1903d00a3aac869b850413542457a46eb3a1 | f934efcba67df5069abd96985db2cecd91745940 | refs/heads/master | 2020-04-18T01:34:40.472033 | 2019-11-01T20:21:13 | 2019-11-01T20:21:13 | 167,123,701 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import csv
from admincode import settings
def write_to_csv(item):
writer = csv.writer(
open(settings... | [
"znwang25@gmail.com"
] | znwang25@gmail.com |
6ddbb987fa0dd007cc0828650cb5d5937259c11f | e5fc82e9239fcf42278f6d9e4e1354051dc8caa3 | /movie/utilities/utilities.py | 5d81c420f551eefbaf4e6d6077ec49a1fed9e2d2 | [] | no_license | nelf450/cs235A2 | d5e960954be0ce8650669112165ee22f2036728b | c2ae823eaca5afcfcbe3d2b49e8f097c9f2ad272 | refs/heads/master | 2023-01-03T12:14:19.536071 | 2020-10-25T03:53:01 | 2020-10-25T03:53:01 | 307,019,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | from flask import Blueprint, request, render_template, redirect, url_for, session
import movie.adapters.repository as repo
import movie.utilities.services as services
# Configure Blueprint.
utilities_blueprint = Blueprint(
'utilities_bp', __name__)
def get_tags_and_urls():
tag_names = services.get_tag_name... | [
"nelf450@aucklanduni.ac.nz"
] | nelf450@aucklanduni.ac.nz |
eb8f9cb1d25fe781f7b72df3fa2d511e38289fea | 4b64581f4466aa2b72b33033109666c9c3c0b05c | /LaunchQueens.py | 18bf1933779ab250f609b83422205893ee9ecd46 | [] | no_license | nbah22/genetic-algorithms | d7328411a07e22f44f3e74489278d1f1f0b468d9 | 499287acfbab4cf205e6ed8fe70916294a49770c | refs/heads/master | 2020-04-06T03:39:50.718211 | 2015-06-28T23:01:59 | 2015-06-28T23:01:59 | 13,321,641 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | py | import Queens
import Genetic
# You can change some parameters and see what happens
# This can be done in graphical interface as well
params = {'random_parents': False,
'size': 45,
'num_of_children': 200,
'max_num_of_mutations': 0, # The larger are fields - the more mutations you will ne... | [
"nbah22@gmail.com"
] | nbah22@gmail.com |
17c702bc5916dd7aea358f9bcdb2e71b7c61a6dc | dfdaf4966cd3b0c47b3b5ccf41133b1f4baac403 | /setup.py | 406c4a03dc12cd57c9effdc8526db74c58e05dd2 | [
"MIT"
] | permissive | Sh4zKh4n/Pytorch_pdegraph | 9758e8262e89c76f8e399e8ebdf14bde00a232bd | fade6817e437b606c43221a5ca13bdaeec563fff | refs/heads/master | 2022-12-11T17:59:10.760167 | 2020-08-28T08:12:44 | 2020-08-28T08:12:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | import pathlib
from setuptools import setup, find_packages
HERE = pathlib.Path(__file__).parent
README = (HERE / "README.md").read_text()
install_requires = [
'torch',
'numpy',
'mnist',
'tqdm',
'scikit-learn',
'scikit-image',
'matplotlib',
'open3d-python',
]
setup(
name="torch_pd... | [
"rteja764@gmail.com"
] | rteja764@gmail.com |
208056b3f005ddfc905796dddb9364838d0a6d02 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/4480/codes/1582_994.py | fc8433cd4c0f2fea91b41300cbedfed0b955ef4e | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | print ('Universidade Federal do Amazonas') | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
e310f2d2eed1605ce5b40d533cafd8c25822b9a4 | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20191218/example_monogusa/09capture-with-handofcats.py | d2d792f64692b455c6adba2f7ca93f33b2510763 | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 614 | py | from handofcats.injector import Injector
def hello(*, name: str, age: int, debug: bool = False) -> None:
pass
def use_normal():
import argparse
parser = argparse.ArgumentParser(prog="app.py")
Injector(hello).inject(parser, callback=id)
print(parser.format_help())
def use_gencode():
from c... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
1c1e5e463bda3a74a20c39f85114242681831ddd | 1925c535d439d2d47e27ace779f08be0b2a75750 | /leetcode/check_if_a_string_contains_all_binary_codes_of_size_k.py | 90b69cee7a1b726a338e511297af4446937bbbc6 | [] | no_license | arthurDz/algorithm-studies | ee77d716041671c4b8bb757d8d96f3d10b6589f7 | 1e4d23dd0c40df34f58d71c7ca3e6491be732075 | refs/heads/master | 2023-04-27T12:17:06.209278 | 2021-04-30T20:16:18 | 2021-04-30T20:16:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | # Given a binary string s and an integer k.
# Return True if all binary codes of length k is a substring of s. Otherwise, return False.
# Example 1:
# Input: s = "00110110", k = 2
# Output: true
# Explanation: The binary codes of length 2 are "00", "01", "10" and "11". They can be all found as substrings at indic... | [
"yunfan.yang@minerva.kgi.edu"
] | yunfan.yang@minerva.kgi.edu |
123c97dcd7e1ada86865ddbcf3b3efd923ec16f9 | 88ce88b6bd1094b36d6cde6e6f0468505874944b | /auth_management/exceptions.py | e58b73fd7999bf105b7b89e91c34ac59275a16c5 | [] | no_license | ncadet-dev/spotify_app | 7577c88cca8e62399ee608b0741e97f9edeed820 | d96abf6e89794146844aa61339c8b4fe82af4e47 | refs/heads/main | 2023-08-06T11:19:52.067745 | 2021-10-06T15:05:23 | 2021-10-06T15:05:23 | 413,426,433 | 0 | 0 | null | 2021-10-05T09:07:02 | 2021-10-04T13:10:06 | Python | UTF-8 | Python | false | false | 184 | py | class RefreshTokenError(Exception):
pass
class PostRefreshError(Exception):
pass
class GetTokenError(Exception):
pass
class SpotifyCallbackError(Exception):
pass
| [
"c.nicolas334@gmail.com"
] | c.nicolas334@gmail.com |
110659b82bd5ddd48884ff74d5b4155c136c50cf | 987ee03ea7792f6baa025b7ae124e0b72e86cb04 | /tensorflow_lattice/python/parallel_combination_test.py | a13601c33c85338f6f1b52e965873280c1bf3b5a | [
"Apache-2.0"
] | permissive | synergy-robotics-a-b/lattice | dfb3f6f8e97fa0d9d68076656c8a491e27e1ddf1 | c570ca899d7b4942c34f9c522639aeff2891d089 | refs/heads/master | 2021-01-05T08:41:49.884489 | 2020-02-16T20:20:58 | 2020-02-16T20:20:58 | 240,958,475 | 0 | 0 | Apache-2.0 | 2020-02-16T20:11:31 | 2020-02-16T20:11:31 | null | UTF-8 | Python | false | false | 4,949 | py | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"m.milanifard@gmail.com"
] | m.milanifard@gmail.com |
43ed1c4789051834c5c479e059e2bf7302d8d337 | f558bd0fa161866efbf98e457f2758c528b9858e | /web/urls.py | bbd1475ea4cd555d2b31127f1d3acdc659747485 | [] | no_license | mk2devdrc/prospective | 7fdd2d5459598fd2370bf922b9da4dac89009cb0 | d76bd27a26429fa13c03ed72e2cb9b8fb037abbb | refs/heads/master | 2021-07-06T05:06:21.918720 | 2017-09-30T16:48:50 | 2017-09-30T16:48:50 | 105,322,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py |
from django.conf.urls import url
from .views import HomeView, NewsDetail, LingalaNewsDetail, LingalaHomeView
urlpatterns = [
url(r'^$', HomeView.as_view(), name='home'),
url(r'^lingala-news/$', LingalaHomeView.as_view(), name='ndaku'),
url(r'^news/(?P<pk>\d+)/$', NewsDetail.as_view(), name='news-detail')... | [
"wilfreidmk@Mkwilfreids-MacBook-Pro.local"
] | wilfreidmk@Mkwilfreids-MacBook-Pro.local |
de015127c98a226b7aa9d3066d8bdafd60ee2f8d | 4aa6dbb5ea8634f5ece8c348c11847e922cf7300 | /14lab/venv/bin/wheel | feeb6e7a4ae558e26a5138dcac8657ad1e12b9ba | [] | no_license | TarasBeshlei/Phyton_Labs_Repository | 691bcfbcf3eb24030789831ecdf4687fad10d077 | 4794d64ed71cf63923a542c951ce8ccfb0eb9f7c | refs/heads/master | 2020-03-17T14:09:20.387704 | 2018-06-10T18:22:50 | 2018-06-10T18:22:50 | 133,660,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | #!/Users/tarasbeshlei/PycharmProjects/14lab/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"beshleytaras@gmail.com"
] | beshleytaras@gmail.com | |
ab566c1bb95c162f58c9548bfbe6a1038e553846 | e9326fcc42808c1a53de42ee18cb92512b467c67 | /plugins/Tester/smoothMeshPreview.py | 01941cd47eb7a3c62f839f029c0dd6d1aef7e73d | [
"MIT"
] | permissive | sol-ansano-kim/medic | 40bae740c5c9cd24823b5ca6a6d0481d540c8253 | af644292ab859d97b96612a8d1f13dff4d8a3411 | refs/heads/master | 2023-08-24T18:14:48.554708 | 2023-08-19T00:52:49 | 2023-08-19T00:52:49 | 76,765,218 | 68 | 21 | MIT | 2023-08-19T00:52:50 | 2016-12-18T05:45:18 | C++ | UTF-8 | Python | false | false | 836 | py | import medic
from maya import OpenMaya
class SmoothMeshPreview(medic.PyTester):
def __init__(self):
super(SmoothMeshPreview, self).__init__()
def Name(self):
return "SmoothMeshPreview"
def Description(self):
return "Mesh(s) is set 'smooth mesh preview' on"
def Match(self, no... | [
"defreturnnone@gmail.com"
] | defreturnnone@gmail.com |
8135ad047d4ca05966dbca2d26535b5a3edddf97 | a335acaaf118c287bd98e1db518b5a84ade263b1 | /ziming/plot.py | e3cf3635cf2e812d305f42f30b15461b7f2f5a9f | [] | no_license | sserpolar/RPi-PID-Control | ef37f2022b34d1ecdbabf71fa895f83b8158b0b5 | 452ab109cd0f183d3ab6f49f648e134e774ada77 | refs/heads/master | 2021-03-01T01:52:51.210754 | 2020-03-08T00:17:48 | 2020-03-08T00:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | import datetime as dt
import matplotlib.pyplot as plt
import serial as sl
import matplotlib.animation as animation
arduino = sl.Serial('/dev/cu.usbmodem14101',9600)
fig = plt.figure()
ax = fig.add_subplot(1, 1, 1)
#ax = plt.axes(xlim=(0,100),ylim=(0,100))
x_read= 0
y_read = 0
x = []
y = []
def animate(i,x,y):
x_re... | [
"zimingwu@dhcp-128-189-221-26.ubcsecure.wireless.ubc.ca"
] | zimingwu@dhcp-128-189-221-26.ubcsecure.wireless.ubc.ca |
d78e0cb287626db951e263789077b6a94e58ca96 | 7c0ea37adb824e803b175e94e014ba8b6f947300 | /englishPremierLeaguePlayerImageScraper.py | 0ff2d36d8de26bc72a0ee893e91b7da9d8f96a50 | [] | no_license | gitter-badger/ratingsAggreGator | 991fd72754d71e91ec841ed959a15ad712210c52 | 00f55c47c17dce68bde28be03812ef2a319f7335 | refs/heads/master | 2020-12-28T20:54:08.977478 | 2014-12-17T15:06:41 | 2014-12-17T15:06:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | # -*- coding: utf-8 -*-
# both for scraping
import requests
import urllib2
from bs4 import BeautifulSoup
# just for console output - not needed in production
# <production>
from pprint import pprint # makes viewing the json nicer
import sys
# </production>
import unicodedata
import json
# name of file to write to
jso... | [
"jdavies.thfc@gmail.com"
] | jdavies.thfc@gmail.com |
525e1a3aa1635693d0ad0fe5e94982a6497ea136 | e55dcd2fa719a1375062792e1d4fc991fd4d8b59 | /advent4.1.py | b9a707e9ede470679b42530ee543c4a8e0c968cc | [] | no_license | crsayen/aoc19 | b9868c7a47a7bb5eb4a14ae9108e3cdbf9ada7ea | 3a1d7e1aaec13a841a9309b17b2edf9a56987a09 | refs/heads/master | 2021-02-14T02:48:45.951986 | 2020-03-21T23:19:49 | 2020-03-21T23:19:49 | 244,759,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | print( len( list( filter(
lambda x: sorted(x) == list(x) and len(set(x)) < len(x),
[ str(i) for i in range(245318,765747)]
)
)
)
)
| [
"chrissayen@iMac.local"
] | chrissayen@iMac.local |
000eccbdf5bd4384aeabf11d2d6e4a9053d1d7de | 6863c783fe9dc0804c66948f1684f1bdf7d27152 | /pylottery.py | a2dc6b18e45fe4d8f388bf395109aa5d33cc53d6 | [] | no_license | leonardobiffi/PyLottery | 86ad26acbb4f50ece0c47888037a7d00d5bc7714 | 4d3d461dd0bedcb2e102cc5efee77b53b2833983 | refs/heads/master | 2020-03-26T19:13:46.200990 | 2018-08-18T21:40:29 | 2018-08-18T21:40:29 | 145,254,418 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,040 | py | #!/usr/bin/python3
import random
def tamanhoJogo(jogos):
"""
Função que retorna o tamanho de cada jogo
"""
tamanho = {}
j = 0
for i in jogos:
tamanho[j] = len(i)
j += 1
lista = []
for i in range(3):
menor = min(tamanho,key=tamanho.get)
lista.append(menor... | [
"leonardobiffi@outlook.com"
] | leonardobiffi@outlook.com |
2f821830b7cb2d8d648335b132f96d30a25c668d | f8203899e7842979bae0c53953ae47c821636d18 | /d01/d01/spiders/d011.py | 17d7586846febb4a6782680d7416cfb68ee8c6e2 | [] | no_license | Hodo7amShichiYA/Spider_of_sbbbs | b43bda17dfb4e4db79c437b495b19e2bc1b167db | 20ded7e5628085fb48369fbccc35dd7c53563562 | refs/heads/master | 2020-04-26T22:19:29.089809 | 2019-03-05T03:59:04 | 2019-03-05T03:59:04 | 173,869,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | import scrapy
class d01(scrapy.Spider):
name = "sbbbs" # 定义蜘蛛名
start_urls = ['http://www.mcbbs.net/forum-serverpack-1.html']
def parse(self, response):
#此处可改成其他需要的元素
titles = response.xpath('//a[@class="s xst"]/text()').extract()[6:]
links = response.xpath('//a[@class="s xst"]/@h... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
b9910e6316e3960560fee7410bd0e6d805e0eb0e | da4dffe79e819bbf6e465dca91f6e6554075d7d1 | /homepage/urls.py | c11125dee780d6c4700d87d9258b8efc0a4d06f0 | [] | no_license | nijasnazar33/djangotweet | 4b8fe7db546a51b720c79e5e1accf2a17a028010 | 669561259a517029e7b0eca64907546f89b3412b | refs/heads/master | 2021-01-21T11:00:08.397498 | 2017-10-23T17:55:07 | 2017-10-23T17:55:07 | 91,717,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | from django.conf.urls import url
from . import views
app_name = 'homepage'
urlpatterns = [
url(r'^$', views.homepage, name='home'),
url(r'^tweet', views.post_tweet, name='tweet')
]
| [
"nijasnazar33@gmail.com"
] | nijasnazar33@gmail.com |
4d8d220df9039a463611466e77177472111529df | d75552622878007331992896e7789991bd1c286e | /paymentsApp/server.py | f764b734ad225fa4f6b5ae9183ebe8dadf548000 | [] | no_license | niko-vulic/stripeDemo | a48cdccd6e7d3166a0f8ab439e159509114c3361 | 6c563eec17d09b0d7ecbb9e0ee6b448dc591f67f | refs/heads/master | 2023-08-11T02:57:42.699163 | 2021-10-01T13:01:41 | 2021-10-01T13:01:41 | 411,742,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,441 | py | #! /usr/bin/env python3.6
"""
server.py
Stripe Sample.
Python 3.6 or newer required.
"""
import os
from flask import Flask, redirect, request
import stripe
# This is a sample test API key. Sign in to see examples pre-filled with your key.
keyFile = open('../api_key.txt', 'r')
stripe.api_key = keyFile.readline().rstr... | [
"niko.vulic@outlook.com"
] | niko.vulic@outlook.com |
e2d8680645410a5c6393bb727e6e36244893314e | 942f1c46c63f631633f142c472c72a96730cb899 | /nesi/vendors/EdgeCore/baseCommandProcessor.py | da70ae143f35ccda075546a5d0a732d9f37fc338 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | inexio/NESi | 8dbd316a5d97678a2d87ca06d80b885d7a95be9e | 920b23ccaf293733b4b571e4df27929c036257f7 | refs/heads/master | 2023-04-05T14:05:25.240645 | 2021-04-19T14:36:44 | 2021-04-19T14:36:44 | 290,719,851 | 32 | 3 | BSD-2-Clause | 2021-02-24T11:38:26 | 2020-08-27T08:26:24 | Python | UTF-8 | Python | false | false | 2,391 | py | # This file is part of the NESi software.
#
# Copyright (c) 2020
# Original Software Design by Ilya Etingof <https://github.com/etingof>.
#
# Software adapted by inexio <https://github.com/inexio>.
# - Janis Groß <https://github.com/unkn0wn-user>
# - Philip Konrath <https://github.com/Connyko65>
# - Alexander Dincher <... | [
"janis.gross.jg@gmail.com"
] | janis.gross.jg@gmail.com |
a2e235204de6344d779d65c61785099129a621ec | c173af0aaaf6d7b6ba6d0ecf0eb87156b1219e33 | /gru.py | 6b604f9abcaa4eaae2b651b11d796a0fa2c5b7ae | [] | no_license | mattcoldwater/rnn_visual | 7be0029009766219434f1d091797ea4a24fb6594 | 84df6d06cc18f3005f5a94875eea6cfe949beecb | refs/heads/main | 2023-02-02T06:13:31.427287 | 2020-12-19T03:47:09 | 2020-12-19T03:47:09 | 313,677,701 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,835 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import argparse
import time
import shutil
import os
os.environ["CUDA_VISIBLE_DEVICES"] = '0'
import os.path as osp
import csv
import numpy as np
import pickle
import torch
import torch.nn as nn
import torch.opti... | [
"mattcoldwater@gmail.com"
] | mattcoldwater@gmail.com |
69c652cee462458bb2db86a54d1df8cbfb004867 | 1c006b2d9a04385efe3894659c9f47b86093a6c2 | /src/shared/protocol/flt/src/Header.py | 0627944faad3670e5786c686009c5f679560d3ee | [
"Apache-2.0"
] | permissive | kpotash/bond-trader | 7f665264e1b3e80d6827feae5ff6b6203dd31a47 | cb29c2f75b64b27a8f93308566c0c3cc8426b336 | refs/heads/master | 2020-05-26T00:34:34.837057 | 2014-09-01T03:49:41 | 2014-09-01T03:49:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,012 | py |
import Message
from dateutil import parser
class Header(Message.Message):
def msgType(self, value = None):
if None == value:
return self.__buf[0:2].strip()
else:
self.__buf = self.__buf[:0] + str(value).ljust(2, " ")[:2] + self.__buf[2:]
def brokerId(self, value = None... | [
"abhik.nandi+kp@gmail.com"
] | abhik.nandi+kp@gmail.com |
f8b965867f05d23d429655dfbe85f81713996f13 | eb5db30573b14ae5fc285bc156597aa246fb7800 | /2021/days/9/d9.py | 85ef06019e2e831ef3934e5afa2853f860cbd409 | [] | no_license | petevdp/advent | bce2bc2d468d13f89ae1e455a5944c14cba3939e | fea4cdd9c0afe11580df841147116e357eb98612 | refs/heads/master | 2023-02-22T18:06:59.129497 | 2023-01-03T01:21:47 | 2023-01-03T01:21:47 | 230,809,651 | 0 | 0 | null | 2023-02-11T02:22:45 | 2019-12-29T22:17:38 | Python | UTF-8 | Python | false | false | 1,787 | py | # %%
from math import prod
from itertools import product, islice
from typing import NamedTuple
from collections import defaultdict
class Coord(NamedTuple):
x: int
y: int
def get_input(path="./input"):
cave_map = {}
with open(path) as f:
for i, line in enumerate(f.read().strip().split("\n")):... | [
"pjvanderpol@gmail.com"
] | pjvanderpol@gmail.com |
1bcfc69637c816b8ad9a31732db0e3e249dd6045 | 7ad486dd24efd1a1b981bc0ab92d10f2d0d67484 | /socializing/socializing/wsgi.py | ef6919022c49060f795c27706c296596c0d69f4f | [] | no_license | skerdilajdhoxha/bloggerista | 49667f390b84594ed66d64447861fbc32c051c2f | f89f60585009453d47061b771e297f79b67d0e32 | refs/heads/master | 2021-01-13T12:17:40.975566 | 2017-09-24T00:05:16 | 2017-09-24T00:05:16 | 78,279,063 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for socializing 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.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... | [
"skerdilajdhoxha@gmail.com"
] | skerdilajdhoxha@gmail.com |
73c00f601e495fc7b7f37d8e43c1b3b2f92ed274 | b749fb5cdfebc50a72b6b67e3cdec8fcdf06b279 | /ejercicio_django/Shoppy/Shoppy/settings.py | 29ff454ec752086b4c32c0d565f4f07ab9dfe3f5 | [] | no_license | rcaracheo/PythonDjango2016 | 119a0a0a46dcd14249092bb5a66ec2461e1dc1bc | c136aaf29b3479eed59952121013a61c8e8d77e6 | refs/heads/master | 2021-01-16T20:12:13.503224 | 2016-02-23T02:57:51 | 2016-02-23T02:57:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,594 | py | """
Django settings for Shoppy project.
Generated by 'django-admin startproject' using Django 1.9.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
# ... | [
"fjmoralesp@outlook.com"
] | fjmoralesp@outlook.com |
7c6c80d22bbfbf8e8e0d3374f30b231ef0101084 | 22e6f489e0108728eb7ddd86bc7a310e32a8a5cd | /_validate_init.py | cf531e613b74035e1e1bd7d2622f4da2dcf0f0c2 | [] | no_license | darrent1974/csiroct_gui | 0db797bbb6ee9e6e74db82e55230c9be3cb257a7 | 679c2902b3122a7af0115557a114dbf92b37bb5e | refs/heads/master | 2020-07-29T21:49:49.970338 | 2019-09-21T11:36:37 | 2019-09-21T11:36:37 | 209,974,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,653 | py | """
DO NOT MODIFY
This file is used to validate your publish settings.
"""
from __future__ import print_function
import os
import sys
import importlib
components_package = 'csiroct_gui'
components_lib = importlib.import_module(components_package)
missing_dist_msg = 'Warning {} was not found in `{}.__init__.{}`!!!'... | [
"darren.thompson@csiro.au"
] | darren.thompson@csiro.au |
2717efe3f5ccd767c14dae4d6a22b9acc6630463 | bdb747f21b3bdcccf1c62c45a0ed0983453eff7d | /DUHaat_repo/wsgi.py | 33cb3dbed3e6d6d711fc5b3b3e3e08a686011ddf | [] | no_license | rakibsxyz/DuHaat | 2a19225c77f430c87f63d62feac742daf2d3f24f | 3c01e7a44838225fbe52a1ee2df15fd5ebed5f57 | refs/heads/master | 2020-09-04T17:25:45.115480 | 2019-11-05T19:14:28 | 2019-11-05T19:14:28 | 219,831,026 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for DUHaat_repo 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"bsse0903@iit.du.ac.bd"
] | bsse0903@iit.du.ac.bd |
6df12d3c420cbf59fc22dda5431dbff3d9053ca5 | 358452ad16fac0bbd70b365133a393fb7ea8bb1d | /Shannon&ShannonElias.py | 4c11429d9a20249607027d8f2efcf6f05df7b818 | [] | no_license | Diegobr21/InformationTheoryActs | 5683aa6d4e943fb3793ab749626fca122a2515b5 | 2bae8750dccd9ab298b226dbed6f326b0673be22 | refs/heads/develop | 2023-05-29T10:19:33.413981 | 2021-06-02T23:30:17 | 2021-06-02T23:30:17 | 341,319,544 | 0 | 0 | null | 2021-05-02T17:13:51 | 2021-02-22T19:53:16 | Python | UTF-8 | Python | false | false | 353 | py | from expansion_binaria import *
n = int(input('Ingresa la cantidad de frecuencias de entrada: '))
frecuencias = []
for i in range(n):
frecuencias.append(int(input(f'Ingresa la frecuencia #{i+1}')))
F_i = [0 for i in range(len(frecuencias))]
for i in range(len(F_i)):
if(i != 0):
F_i[i] = frecuencias[... | [
"jdiegobrana@gmail.com"
] | jdiegobrana@gmail.com |
20be259ec7b4d702f1bf25b5ab6b3905499b1437 | 351f4305b4617607c9a835161caab2c1ebb0984b | /project/mystorage/serializers.py | 75b51b878301ae5586d2c8ce2f8559440a9ed957 | [] | no_license | su-mmer/Django-Rest-Framework-Practice | 366e642979affd6bc8883e3897928bb416767073 | 03ba23a2e05eafc631dfc449df4f96ba2cc85302 | refs/heads/master | 2020-08-29T11:56:46.311248 | 2019-10-28T10:53:59 | 2019-10-28T10:53:59 | 218,024,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | from .models import Essay, Album, Files
from rest_framework import serializers
from rest_framework.parsers import MultiPartParser, FormParser
class EssaySerializer(serializers.ModelSerializer):
# author 자동 지정
author_name = serializers.ReadOnlyField(source = 'author.username')
# 건드릴 수 없게 Read Only로 지... | [
"noreply@github.com"
] | noreply@github.com |
be93be576c7a3ab73bd98f6a24157ea38b574474 | 9e1b576181d37cd9f1a9a928e0ec7f8709532616 | /tests/test_tf_installation.py | d3fc639b660c982fc0c81229ccf21e616a53c465 | [
"MIT"
] | permissive | epiception/conda-envs | 740232fbb145a26611dbc57a9881699d2fdcfdcb | 12f971b275317f596edb68b00d9b3172521e1e7d | refs/heads/master | 2020-06-17T08:48:27.146490 | 2019-07-05T21:32:42 | 2019-07-05T21:32:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | import tensorflow as tf
print ("Tensorflow version is: " + str(tf.__version__))
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
| [
"abhay.gupta@here.com"
] | abhay.gupta@here.com |
1dd6df95270703d99548b7418f4d7d489d73ea75 | fa346a2d5886420e22707a7be03599e634b230a9 | /temboo/Library/Facebook/Reading/Comments.py | 817a8e4924ba298d8dd8ae34188b7b3e705c3d1d | [] | no_license | elihuvillaraus/entity-resolution | cebf937499ed270c3436b1dd25ab4aef687adc11 | 71dd49118a6e11b236861289dcf36436d31f06bc | refs/heads/master | 2021-12-02T17:29:11.864065 | 2014-01-08T04:29:30 | 2014-01-08T04:29:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,026 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# Comments
# Retrieves comments for a specified Graph API object.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography import Chor... | [
"cedric.warny@gmail.com"
] | cedric.warny@gmail.com |
fc963b9a72250626ca1b8f53b5928b488a4c5672 | ebb3ea3ee89fba55758227e3b4b35660dd1a3c4d | /tools/__init__.py | 41e51c4ceb3de11049b8163eacb3abfbaf7c6246 | [] | no_license | mamazu/Platformer | f762e51b18fe2a7584d4fab4d9d0cfdbaa1b92be | c35c777ca4e24261e40d3ebef9f6c0bbb92df17a | refs/heads/master | 2021-01-11T17:45:42.912965 | 2017-03-24T21:50:19 | 2017-03-24T21:50:19 | 79,838,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | if __name__ == "__main__":
print("This is a module")
quit()
| [
"maxo.pech@gmail.com"
] | maxo.pech@gmail.com |
7898833fe7c1ed8ac9c9f7097f5c7cf53f16f80c | f39dc9cc34f385d8fe627035f5f35b8b02da9798 | /items/loot/dragon_sword.py | 23a8208339f16df9e324c34c92839822624d1a99 | [] | no_license | NikAlexSer/RogueBot | 600fdcd2633cb8de0b78768f5072dcd4894c7ba9 | fefcb2b5fc866c0c7df1084d1de53287b1cd933c | refs/heads/master | 2020-12-29T00:29:16.745304 | 2016-09-05T08:13:28 | 2016-09-05T08:13:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | name = 'Драконий убийца'
description = (
'Был вместо зуба у дракона, но теперь ты можешь использовать его по назначению'
)
price = 1000
fightable = True
def fight_use(user, reply, room):
if room.code_name == 'dragon' or room.code_name == 'quinquepede':
reply('Это может показаться читерским, но ты выиграл этот по... | [
"yegorf1@gmail.com"
] | yegorf1@gmail.com |
c7b182554b0de3362170d0fe63c80c2eceb54be4 | d2f91b93ad42aaefa5fc315a9b3a5d45d07fa705 | /slbman/venv/Lib/site-packages/aliyunsdkecs/request/v20140526/DescribePhysicalConnectionsRequest.py | b5c6d435434a6a186174e4f7bf930b93c20e79e7 | [] | no_license | junlongzhou5566/managePlatform | 66cb5bc5b176147ff0038819924f7efa8df1d556 | 3201ba1a11b05c86db5f42aa9ca8eaf1cc20e216 | refs/heads/master | 2021-03-29T00:58:23.337808 | 2020-03-17T09:50:21 | 2020-03-17T09:50:21 | 247,910,365 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,855 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"645647713@qq.com@qq.com"
] | 645647713@qq.com@qq.com |
9c4a76f5f68f7fa8377da427d2cea7db34426b7d | ac9334216a536004f5fe042263c7ae171fdca271 | /migrations/versions/950bee344977_.py | 3fb2c52270382e08a5be5094c09873e6c9254e2a | [] | no_license | metalsalmon/remote_monitoring | 08510fe4ac9ecfc1411c7c87413829ef0cb43ed5 | 3d23d39e75540d0322181b810e3f4a1c0c0d5d59 | refs/heads/main | 2023-05-28T04:39:28.007354 | 2021-06-11T20:00:44 | 2021-06-11T20:00:44 | 346,487,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,819 | py | """empty message
Revision ID: 950bee344977
Revises: e1612c42a720
Create Date: 2021-04-11 23:32:21.620355
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '950bee344977'
down_revision = 'e1612c42a720'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"snincak.a@gmail.com"
] | snincak.a@gmail.com |
66041a83a9acec3ff7db307d6826a333b8ffb02e | 8132857837286e5df8a4ec32d4f23ad734d6da24 | /myvenv/bin/player.py | 9587565474f8a795893514901f6ffbe506a9b7e6 | [] | no_license | JavierMerinoMomblona/Project | 20ea2ee2b5fa7a2d4110defad1c7287a5f9a52e4 | d8f318c1b33bb61aff0377fb7192c8bf0a561348 | refs/heads/master | 2021-01-20T03:09:03.118517 | 2017-06-07T07:50:08 | 2017-06-07T07:50:08 | 89,500,645 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,117 | py | #!/home/zener/Escritorio/Project/myvenv/bin/python3
#
# The Python Imaging Library
# $Id$
#
from __future__ import print_function
import sys
if sys.version_info[0] > 2:
import tkinter
else:
import Tkinter as tkinter
from PIL import Image, ImageTk
# ---------------------------------------------------------... | [
"j.m.m.1995@hotmail.com"
] | j.m.m.1995@hotmail.com |
b7a20171862937dfd200ebe2f84aa71b9545acdf | 3591038a7059c508f0348dd108774ec9b4da8aff | /sampleapi/urls.py | d19094ac33b405fade6e04bf8ce84b935179b1a3 | [] | no_license | shimayu22/sample-same-bitrhday-filter | 3714c286807522905cfc795a2cb08fbf0fba855e | e775779f0c9e12a5127f14ce6a2eb593f1eef377 | refs/heads/main | 2023-01-22T19:29:16.366079 | 2020-12-04T05:47:01 | 2020-12-04T05:47:01 | 318,034,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | from django.urls import path, include
from rest_framework import routers
from sampleapi import views
router = routers.DefaultRouter()
router.register('sampleapi', views.SampleViewSet)
app_name = 'sampleapi'
urlpatterns = [
path('', include(router.urls))
] | [
"shimayu22@gmail.com"
] | shimayu22@gmail.com |
aff0c71df2d45a0a7a4311c12e2db3a4653a78a2 | bfbf4c7df621a8190f00f58d981b6ccfb4dc3382 | /41_time_series/bitcoin_test.py | 336710402ee99e7f267207540c8768ba034d139b | [] | no_license | zjtprince/DataAnalysisTraining | 5786725431c7f47041826bc08cad0109c9902c77 | 4c2167e0edbddbeb74621d2a02d3ee56f85586a2 | refs/heads/master | 2023-01-28T16:42:05.457291 | 2020-12-13T06:38:04 | 2020-12-13T06:38:04 | 320,966,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,416 | py | import pandas as pd
from datetime import datetime
from statsmodels.tsa.arima_model import ARMA
import warnings
import matplotlib.pyplot as plt
from itertools import product
warnings.filterwarnings('ignore')
data = pd.read_csv('~/Documents/bitcoin/bitcoin_2012-01-01_to_2018-10-31.csv')
print(data.head())
# print(da... | [
"zjtprince@qq.com"
] | zjtprince@qq.com |
a00369c266d381ed72f02fee382f751a5e84f1d8 | 7fa7cfa9024eaa17e897a0c518c6aab5dc23c91a | /view/add_file.py | 87fcb80f08b6e597af20443c7081a61313f6ad66 | [] | no_license | leejunbo/mnm | 35a34712c30671e36b69b78df5643d31c62612fc | a8eaad2362820e677bee43bb35f31ea3ab206ada | refs/heads/master | 2020-03-27T00:59:06.780282 | 2018-08-24T03:07:16 | 2018-08-24T03:07:16 | 145,672,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | def add_domain_file(cls_path,cls_name,cls_ip,domain, ip, port=""):
path = cls_path+"/"+cls_name+"/"+cls_ip
f = open(path+"/" + domain +".conf", "w+", encoding='utf8')
f.write(
"\tserver{ \n"
"\t\tlisten 80;\n"
"\t\tserver_name " + domain + ";\n"
"\t\tlocation / {\n"
... | [
"1452118567@qq.com"
] | 1452118567@qq.com |
2eb62323804f63d3092822f470a42ecd66af9815 | 449b523a8ff9603ad2d3a5c3a0e7eb31fd862be6 | /myutils/elk/elk.py | c85da860e38c7da0e17f8a35ac0d760ac8f01e7e | [] | no_license | mrgrit/utils | d0d56afcfa43be8a48a7d9bbe6fb97d9d598cbda | 2e5cd7d7562f571edf8220d1bc4f2de0abde0a0c | refs/heads/master | 2021-07-25T05:16:59.852032 | 2017-11-04T05:14:36 | 2017-11-04T05:14:36 | 108,482,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,575 | py | import queue
from threading import Thread
import json
from datetime import date
import os
import time
import datetime
from datetime import date
import pandas as pd
import xlrd
from elasticsearch import Elasticsearch
import pycurl
import requests
max_result_window = 5000000
es = Elasticsearch([{'host': '10.24.50.20',... | [
"vulcanus@naver.com"
] | vulcanus@naver.com |
7f8820cdc1afaa4e19ce098706a5396267019fb1 | 8295fbbadc6c5cdda363cb9401363ab0cfba6f82 | /Python/5kyu_TheHashtagGenerator.py | a814f641ce843383cf97d35d354fe975064cc62e | [] | no_license | codingPineAppl3/codewarskata | 41d60d0bacc7b5b114eaadbd5085debc8a3681b2 | 2975f0fac276dd62822a1d75b0a8ca9920d5e14a | refs/heads/master | 2022-11-21T18:07:20.600474 | 2020-07-24T08:46:08 | 2020-07-24T08:46:08 | 282,054,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | import string
def generate_hashtag(s):
if s == '' or len(s) > 140:
return False
else:
return '#' + s.title().replace(' ', '') | [
"xiaomin.jin@stud.h-da.de"
] | xiaomin.jin@stud.h-da.de |
4393994aaeb11a94ff7b2fd0c48e2dd2d36c7608 | 54d7c3738617048788944d134667b50e9fa9e452 | /Prueba_FPGA/FullMode/FullMode_v3/top_v3.py | 43cd753f8f8f98806eb5e6ece2d7ddc691a07e63 | [] | no_license | diegoa314/tesis | f0cf4851981e9fbb1e9e97b6aae620bf1945a41d | 973483d6ee0736379538ebede03cd0e7d5edeab1 | refs/heads/master | 2020-10-01T08:02:11.128730 | 2020-08-10T21:30:23 | 2020-08-10T21:30:23 | 227,494,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,694 | py | from migen import *
import sys
sys.path.append('/home/diegoaranda/Documents/Tesis/Prueba_FPGA')
import cmoda7
sys.path.append('/home/diegoaranda/Documents/Tesis/8b10b')
from encoder_comb import *
sys.path.append('/home/diegoaranda/Documents/Tesis/Prueba_FPGA/FullMode')
from transmitter40b import *
sys.path.append('/hom... | [
"diegoaranda@localhost.localdomain"
] | diegoaranda@localhost.localdomain |
2d930ec01c0e552c9e873a6319556a5188e44369 | fc3753c9e35f4f1741554060e3c1993930d4ba1b | /PaddleOCR/PPOCRLabel/setup.py | d33238a800ddc620f469ead15ab355cd0e718de2 | [
"Apache-2.0"
] | permissive | TangJiamin/Ultra_light_OCR_No.23 | 0ba5fdce78993e6843875ed6d81e6708878defc6 | 594aa286dc2f88614141838ce45c164647226cdb | refs/heads/master | 2023-06-12T21:44:54.444624 | 2021-07-09T06:36:20 | 2021-07-09T06:36:20 | 383,319,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,880 | py | # Copyright (c) <2015-Present> Tzutalin
# Copyright (C) 2013 MIT, Computer Science and Artificial Intelligence Laboratory. Bryan Russell, Antonio Torralba,
# William T. Freeman. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the "S... | [
"787592346@qq.com"
] | 787592346@qq.com |
60716b5d9dba982f6c0d54154ed12c4e22c43271 | 6f09561b1f11cba0403b13b7e7ec9ebc75bbae94 | /utils/flags/_base.py | 5755228263b288a359e1fc8396a5c52f5159e093 | [] | no_license | a68b57/sea_dog | af7c43a4cb76656d5a2e655aa987f2af496a88ed | 2b77492163068e8cb5580d32c5a3cdc9df1bd0f4 | refs/heads/master | 2020-04-08T19:54:37.031276 | 2019-01-03T09:39:49 | 2019-01-03T09:39:49 | 159,675,929 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,618 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"dingmingcheng@163.com"
] | dingmingcheng@163.com |
0edbaca525d80501f909ef612a51414f6cc1dfb8 | 2caad56ceeb9ff2840783373b9c38d14cf3eefbe | /GarageDeamon/Main.py | 039519d14434ab3c23287ba804aa617784de00da | [
"Apache-2.0"
] | permissive | schitic/garage | e2ab3764e2c61e456ef0e3a42674be8b60fc092d | ee5d7700d9e2d9af6a2aba0f02a6fdf5ec9c940c | refs/heads/master | 2020-05-27T00:54:43.734721 | 2019-06-29T09:52:05 | 2019-06-29T09:52:05 | 188,430,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,194 | py | #!/usr/local/bin/python
from GarageDeamon.Loader import ActorLoader, SensorLoader
from GarageDeamon.Logger import LogCreator
import logging
import RPi.GPIO as GPIO
import signal
import sys
class GarageDeamon:
def __init__(self):
# Start logging
self.log = LogCreator()
signal.signal(signal... | [
"stefan-gabriel.chitic@cern.ch"
] | stefan-gabriel.chitic@cern.ch |
c12710419cb9815b8a919a42a5c142b1d2df886e | 4a312f99444ef43be9e42702f032ab3540589f2a | /models/tganv2_gen.py | 1313d0b50864727405d54304226a5f51f589e85b | [] | no_license | Zasder3/Tganv2-PyTorch-Train-Sparsely--Generate-Densely | ef8005d25b5485e9963b7a8c4585300cb09f8fdf | fe40dde8117a4f6c55d1a5a9d163abaa96150c0c | refs/heads/master | 2022-11-14T21:43:36.451941 | 2020-07-10T02:01:35 | 2020-07-10T02:01:35 | 278,507,068 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,278 | py | import torch
import torch.nn as nn
import numpy as np
import math
class CLSTM_cell(nn.Module):
def __init__(self, n_filters):
"""Convolutional LSTM Cell
Args:
n_filters (int): Number of LSTM channels
"""
super(CLSTM_cell, self).__init__()
self.w_x = nn.Conv2d(n... | [
"cadergator1@hotmail.com"
] | cadergator1@hotmail.com |
ddb20467c5291607a5703e8e18cb1de813e55600 | f37bb5242abb372f6d01b72907f770cbce5a5dd2 | /excise_precursors.py | a32ede6b75d28290d850dd20540ca2f2e7ad94a2 | [] | no_license | Frankyyoung24/mornafinder | a3b19e03b223d5fdf36f8417c87c4468a0ddb644 | faa9793b00180e31a4246cdaa280891ca83bd4db | refs/heads/master | 2020-04-30T05:23:53.124611 | 2019-03-20T01:21:22 | 2019-03-20T01:21:22 | 176,626,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,258 | py | #!/usr/bin/env python
from __future__ import print_function
import sys
import re
import argparse
import getopt
from port import print_stderr, str_reverse, tr, substr
import os
hash_pos = {}
count_lines = 0
count_excisions = 0
freq_min = 2
usage = '''
{} file_fasta file_arf precursor.coords
This script excises poten... | [
"noreply@github.com"
] | noreply@github.com |
b508f86c0c3c578717c29afdc02b6162f9c09a52 | 00f152d7e7c9fd6a903dd010adf133a5b1e6ee92 | /jurnal/migrations/0001_initial.py | 2d4432f0342de656560e0518b841f9a01cbfba54 | [] | no_license | dastan2807/minfin | 19ed1bf5ecb077686fd190ab908477be1681b0c0 | 293ff2503f85432a54c26bf8162a2eae33f5d017 | refs/heads/master | 2023-04-24T19:56:27.552266 | 2021-04-19T07:24:14 | 2021-04-19T07:24:14 | 357,477,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | # Generated by Django 3.1.6 on 2021-03-09 08:23
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Jurnal',
fields=[
('id', models.AutoField(a... | [
"bakytbekov.dastan.2000@gmail.com"
] | bakytbekov.dastan.2000@gmail.com |
d5c8ce90c05eaf291e3fdf6e3ab0d68e747fd05b | 300757d6dc740015bd8ffbb94bc9abe7d6a756e1 | /interface/apps/core/fields.py | 4fabfa88ff13946859b56ceae5b27f20994b67d1 | [
"BSD-2-Clause-Views"
] | permissive | orzubalsky/inventory | 817d17e6f0d00a2ac8a73e1ab1ba081515d79d82 | 436a45e504c5c77206226f146787f208600b6ead | refs/heads/master | 2021-01-10T20:10:34.879441 | 2013-12-07T17:29:57 | 2013-12-07T17:29:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,227 | py | from django.db.models import *
class ArrowField(FloatField):
"""
This is basically a FloatField, with its own form widget
"""
def formfield(self, **kwargs):
# This is a fairly standard way to set up some defaults
# while letting the caller override them.
defaults = {'form_class... | [
"juviley@gmail.com"
] | juviley@gmail.com |
d1d9d6d2566f5c1b96b3ccf428145aeb695f0e09 | fef19f8073762de02edfc4227e9d971fd4b3ba63 | /Part_I_Basics/exercises/exercise_7_8_deli.py | 5b36c6bb18b1962b7eda790ca2e52487bc3f89a4 | [] | no_license | shaoda06/python_work | a461bed73d3e6ef9fddaacc5abeb01d3c75de3e0 | f7c3f77e8165019536c76edd9fbe24615f58e433 | refs/heads/master | 2020-05-07T20:36:48.695960 | 2020-02-10T23:22:54 | 2020-02-10T23:22:54 | 180,868,360 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | # 7-8. Deli: Make a list called sandwich_orders and fill it with the names of
# various sandwiches. Then make an empty list called finished_sandwiches.
# Loop through the list of sandwich orders and print a message for each
# order, such as I made your tuna sandwich. As each sandwich is made, move it
# to the list of f... | [
"shaoda06@gmail.com"
] | shaoda06@gmail.com |
ec75025a07918ec8efd71c026a763f57b1f89aed | 5f6adaf9a8927bd598e25d96040e4a5d34d905fb | /v2/python-crash-course/projects/mpl/dice_visual.py | d7116f47a2be17eb128afde2dacd5c44bb4e031c | [] | no_license | jsore/notes | 10d9da625dd8f6d1c1731c6aad40c6bdbf15a23f | 09b658d7425e2f6c0653810a2a73d8b001fb9288 | refs/heads/master | 2021-10-12T17:55:30.501885 | 2021-10-11T21:48:27 | 2021-10-11T21:48:27 | 158,454,447 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | # roll a D6, print the results and sanity check the results
from plotly.graph_objs import Bar, Layout
from plotly import offline
from die import Die
# create two D6 dice, make some rolls and store them
die_1 = Die()
# die_2 = Die()
# a 10 sided die
die_2 = Die(10)
results = []
# for roll_num in range(1000):
for rol... | [
"jus.a.sorensen@gmail.com"
] | jus.a.sorensen@gmail.com |
d62aa9230dce227610caed3b3e0b53237f5eabc4 | d818226860d0ed797c243748c29ef968181e5c24 | /Assignments/Week-2/Q3.py | 7962d8044ccbd230f58e1f5ce0c90fb235c26a31 | [] | no_license | iShibi/DAA | 06a9d9efe89c10b0060aa2b8d78dcacea845505a | 24773e80de0f79e877ce6ff0df1f3bdf43bc1173 | refs/heads/main | 2023-07-15T13:45:07.899928 | 2021-08-25T07:46:39 | 2021-08-25T07:46:39 | 386,178,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | # Problem: Given an array of nonnegative integers, design an algorithm and a program to count the
# number of pairs of integers such that their difference is equal to a given key, K
'''
Input:
2
5
1 51 84 21 31
20
10
24 71 16 92 12 28 48 14 20 22
4
'''
def binary_search(arr, arr_size, key):
left = 0
right ... | [
"shubhamparihar391@gmail.com"
] | shubhamparihar391@gmail.com |
09b30d4fe64b66d29f5074b472e7849b91f29656 | 7c1c5f90018ad0210a8af77ffa498c14a03fd67b | /Ejercicios/Ejercicio4.py | 6ac99dfbf3baeb2bfc397d7f8dd37ccac35097e1 | [] | no_license | yesheng01/Python | d1f44324a74f46efe7e7926f8ab8e5433f582bc6 | 4bcec73dd72acee0379610b607275f0151a40d46 | refs/heads/master | 2023-04-30T14:58:44.483650 | 2021-05-19T17:17:03 | 2021-05-19T17:17:03 | 363,954,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | import random
z = random.randint(0,10)
o = int (input ("Introduce un numero a adivinar: "))
if o == z :
print("Has adivinado el numero , el numero era : ")
print(z)
else:
print("No has adivinado el numero") | [
"shengyefe@gmail.com"
] | shengyefe@gmail.com |
ab00202d074ba58c601f2e880f68762b98f44b30 | 03ff74fff064b69e5b41af42372a6cc33738c294 | /project_advance_views/Blog/migrations/0010_auto_20190213_0508.py | 0eeb124c5b9ce6e724cc710c6900785a4bb8bb8d | [] | no_license | rosaridho/DJANGO_MVC | 189a6ba400984e91dd0b057072f8e60348619242 | 44e6f0bd0dcd7e9d268dc2580770c79d54aeda85 | refs/heads/master | 2022-11-28T04:57:03.973009 | 2019-02-13T13:55:28 | 2019-02-13T13:55:28 | 170,068,288 | 0 | 0 | null | 2022-11-22T03:25:38 | 2019-02-11T04:34:06 | HTML | UTF-8 | Python | false | false | 397 | py | # Generated by Django 2.1.5 on 2019-02-13 05:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Blog', '0009_auto_20190213_0506'),
]
operations = [
migrations.AlterField(
model_name='artikel',
name='gambar',
... | [
"muhammadridhorosa@gmail.com"
] | muhammadridhorosa@gmail.com |
2cbdf69f111c9413e10a9c43442208ae677b6d1b | 5d5330cef6eab6e023cc098d790b8ca70ec4b7f7 | /reddit_bot.py | d5f92deaa5801a99125590f7f8ecff569d8cb6c7 | [] | no_license | ParthKasat/Reddit-Comment-Bot | 0e70e3a3db99d23cff688a20ef9ab7cf39599c6d | a5d2ee76175e5512470ae443ec449f27392cff60 | refs/heads/master | 2021-03-13T14:05:39.291076 | 2020-05-30T12:26:19 | 2020-05-30T12:26:19 | 246,687,043 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 3,492 | py | # -*- coding: cp1252 -*-
import praw
import time
import os
import random
import re
list = [
'And you have my bow.',
'THEY’RE TAKING THE HOBBITS TO ISENGARD. ',
'A red sun rises. Blood has been spilled this night.',
'THIS FOREST IS OLD. VERY OLD. FULL OF MEMORIES...AND ANGER.',
'YOUR FRIENDS ARE WITH YOU, ARAGORN.',
'A ... | [
"noreply@github.com"
] | noreply@github.com |
a8fb8eef1296caf6df290c606178f4ae0661760e | 3784e8bd314141f0b1331aba62da086ac759078b | /lists/migrations/0001_initial.py | b365b5667c9f173d31add7549f12ba3811215ba7 | [] | no_license | raultr/TddWithPython2ed | de05cfc606e4a1035cc0d1d2a9df147dfcf8ff55 | fdaadd46d0e3066c0fd72f575c838198f6be543b | refs/heads/master | 2021-04-27T21:50:44.778271 | 2018-04-16T22:56:43 | 2018-04-16T22:56:43 | 122,408,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | # Generated by Django 2.0.2 on 2018-03-07 03:28
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Item',
fields=[
('id', models.AutoField(aut... | [
"raultr@gmail.com"
] | raultr@gmail.com |
5532f494f2ef358d96e325ef055515c9012608eb | da93ce28d8d7e77886a3aaeb4026126adeb18256 | /test/test_plots.py | b16c7656893533c6d86922164d34643dbbb7d459 | [
"MIT"
] | permissive | javilor/pysmap | 45185fa8c9f8261e656f1fd8256ec30a23297007 | cf677a13d98c201d647e21eb240a55e948868241 | refs/heads/master | 2020-12-28T19:33:44.359653 | 2016-08-03T20:00:34 | 2016-08-03T20:00:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,931 | py | import os
import unittest
from datetime import datetime
from test.config import config
from pysmap import SmappCollection
from pysmap import plots
class TestPlots(unittest.TestCase):
def test_control(self):
self.assertTrue(True)
def test_tweet_field_grouped_by_timeslice_hours(self):
output_p... | [
"yvanscher@gmail.com"
] | yvanscher@gmail.com |
5e8f1800dbb09da5655a3988e1d33f9394c22cf0 | 99291222b1b54a17a10c1662f428648349bb15b3 | /examples/airflow_ingest/airflow_simple_dag.py | e687e51dd076503fc625080373449148e9ef54ec | [
"Apache-2.0"
] | permissive | rberrelleza/dagster | ee3c9c80f092b6d817e8bd546eb0d3c5852c0de3 | 7ad30528a4a92945967d68e59e27727a1e839c2b | refs/heads/master | 2022-12-03T11:12:32.585772 | 2020-08-07T23:25:30 | 2020-08-07T23:25:30 | 286,546,665 | 1 | 1 | Apache-2.0 | 2020-08-10T18:09:13 | 2020-08-10T18:09:12 | null | UTF-8 | Python | false | false | 828 | py | # pylint: disable=pointless-statement
from airflow import models
from airflow.operators.bash_operator import BashOperator
from airflow.operators.dummy_operator import DummyOperator
from airflow.utils.dates import days_ago
args = {
'start_date': days_ago(2),
}
simple_dag = models.DAG(dag_id='simple_dag', default_... | [
"cat@elementl.com"
] | cat@elementl.com |
6c722f6089a18873fe08626dfd4350be1d26bbe2 | c166d8a39a5f1c3aa66b7eb87005da0362f86a45 | /mypdf/myapp/migrations/0006_my_pdf_image.py | d0c38b4dab2e18cabf9e575699e5d95133553246 | [] | no_license | Neeraj452/NeerajPDF.gethub.io | f3ce201223e75e5968f31210bbcdab872950d6ec | 235473da3f34b2f2500d55c56ae83b9bf4e8ad5d | refs/heads/master | 2022-11-05T10:08:14.682992 | 2020-06-27T04:56:42 | 2020-06-27T04:56:42 | 275,302,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # Generated by Django 3.0.5 on 2020-04-26 01:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0005_auto_20200426_0202'),
]
operations = [
migrations.AddField(
model_name='my_pdf',
name='image',
... | [
"neerajmaurya75725611@gmai.com"
] | neerajmaurya75725611@gmai.com |
1872be9679ed8fea47a535b1690d027b326a9ce1 | 933b6a50ce1d60373015c472c21bd9bd6dfdb44b | /lib/pusher_utils.py | f5dd1dc730969cc31b8307019f64ee8c06f0815b | [] | no_license | dlf412/push_to_url | 9fb9334de47d4513d4a5602ffeafe84ec3a0de0e | fbd22deed50cce32f3b695a90d4f09bee7e0225d | refs/heads/master | 2022-10-20T03:04:33.114591 | 2022-10-08T08:56:17 | 2022-10-08T08:56:17 | 60,494,043 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,415 | py | #!/usr/bin/env python
# encoding: utf-8
from hashlib import md5, sha512
from time import time as now
import requests
from requests import RequestException as PushError
def generate_push_url(url, apikey, invalid_sec):
ts = int(now()) + invalid_sec
at = md5(sha512("{}{}".format(apikey, ts)).hexdigest()).hexdi... | [
"dlf412@126.com"
] | dlf412@126.com |
f4da4a713f6c8a9b04ce91771f32a79242ad9ed9 | 859582d1ecb81f1024ed5fd337e57bcfa5119cf4 | /app/models/user.py | 945b768567f5bdb7668a52554b490aa10cc76d9a | [
"MIT"
] | permissive | lxy370/PickLight | 01a7534311398c71ce39ee3b5e5fb5cbbbac51dc | 6e88a81f336e7fc239a6aa7afc2c10c80b250829 | refs/heads/master | 2020-05-07T08:22:30.321410 | 2019-03-17T15:29:11 | 2019-03-17T15:29:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,477 | py | # -*- coding: UTF-8 -*-
__author__ = 'Sliver'
from flask import current_app
from flask_login import UserMixin
from sqlalchemy import Integer, String, Column, Float, Boolean
from werkzeug.security import generate_password_hash, check_password_hash
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
... | [
"sliver@MacBook.local"
] | sliver@MacBook.local |
4dddc5101c9ecead38ab7a6e3dfa5601de36522c | 05a50cac9824f300cbb27594d2ce81c7eb59ddf9 | /VetDataHub/urls.py | 9649b1095ddba9daf49a064432c2ccfa9eb9d679 | [
"MIT"
] | permissive | nkoroi/KVDH | 7817809fa0f55dba753a40e06ae3cf9b3f410df7 | 622a2331325de113b95791b74c1f74383dcbd7f1 | refs/heads/master | 2021-07-10T03:34:01.589942 | 2017-10-02T09:18:47 | 2017-10-02T09:18:47 | 105,516,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,314 | py | """VetDataHub URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class... | [
"nkoroi@catstride.co.ke"
] | nkoroi@catstride.co.ke |
e9d73fa529be24c12126c57aee29a3464f5e754b | 53b8560a0b3d7e55b330f95c350c61359c5e41a2 | /Data Wrangling with MongoDB/Lesson07-Quiz14-Inserting-Multiple-Documents/insert.py | 06995ce9ac35bd74c49ecbb6ee2e87c82ef82ef0 | [] | no_license | nbrahman/Udacity | 2c5426c6cf82ed0066bb3e14afaf8b73b088b75c | a7b0a894c01fb1240a8dd25dac84b6ef060b9752 | refs/heads/master | 2021-01-01T20:02:01.915859 | 2017-07-29T16:12:37 | 2017-07-29T16:12:37 | 98,743,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | #!/usr/bin/env python
"""
Add a single line of code to the insert_autos function that will insert the
automobile data into the 'autos' collection. The data variable that is
returned from the process_file function is a list of dictionaries, as in the
example in the previous video.
"""
from autos import process_file
d... | [
"nikhil.brahmankar@gmail.com"
] | nikhil.brahmankar@gmail.com |
bf56a0dc1f6922ec054372e2560c38e84666b4ce | a41422faf07bfca1e6a543d3fb50525a972f6424 | /datasets.py | 41ee173946aba961bd1e7a077460591a04135195 | [] | no_license | lichingcat/gifsplanation | f22a19475da50b497be741f278ba8b3ae23a2f8c | a974ac28d64c086915e75c7cc83f51b74baf35dc | refs/heads/main | 2023-06-18T20:53:29.827644 | 2021-07-20T23:54:44 | 2021-07-20T23:54:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,405 | py |
import torchvision, torchvision.transforms
import sys, os
sys.path.insert(0,"../torchxrayvision/")
import torchxrayvision as xrv
import matplotlib.pyplot as plt
import torch
from torch.nn import functional as F
import glob
import numpy as np
import skimage, skimage.filters
import captum, captum.attr
import torch, to... | [
"joseph@josephpcohen.com"
] | joseph@josephpcohen.com |
0dce11e7728e7a633f374d4822fdb1e8af240194 | b2ce0c6f6eeebb46b4d9bea75b336a002143d83a | /workshop1-python/face_finder_realtime_snapper.py | e9464b7f2b6f33e69e81003ece69790056eb7c74 | [] | no_license | anirudhb/deco3eday | 72e0457d2c5ca59bf9b92ae8f26422111dd3fb8a | fc34a9bfac362cd8dfcdfb24ed78e072597dcd37 | refs/heads/master | 2020-05-09T18:20:19.581177 | 2019-11-16T20:46:35 | 2019-11-16T20:46:35 | 181,338,344 | 0 | 0 | null | 2019-11-16T20:46:37 | 2019-04-14T16:35:42 | Python | UTF-8 | Python | false | false | 2,809 | py | import numpy as np
import cv2 as cv
rectangles = False
face_cascade = cv.CascadeClassifier("haarcascade_frontalface_default.xml")
eye_cascade = cv.CascadeClassifier("haarcascade_eye_tree_eyeglasses.xml")
smile_cascade = cv.CascadeClassifier("haarcascade_smile.xml")
nose_cascade = cv.CascadeClassifier("haarcascade_mcs_n... | [
"anirudh.qazxswced@gmail.com"
] | anirudh.qazxswced@gmail.com |
6146fd84ce66a4085dbb03cc7e8f50eac208595a | 5fbf2e1f3eca4893865aad5b2217552f9cf1399a | /commonlit/settings.py | 58ac5ff31f161ba69a73dfcd5e2934d1a33296f3 | [] | no_license | gautierdag/commonlit | 8d05ae5f0781ee495410dd502f80c990920c1589 | 1f5553ef00d2e326c767d9a50df0be5e07d606bc | refs/heads/main | 2023-08-04T00:27:52.189681 | 2021-09-30T11:37:48 | 2021-09-30T11:37:48 | 380,170,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | from pydantic import BaseSettings
class Settings(BaseSettings):
wandb_api_key: str
class Config:
env_file = ".env"
env_file_encoding = "utf-8"
case_sensitive = False
env_settings = Settings()
| [
"gautier.dagan@gmail.com"
] | gautier.dagan@gmail.com |
67c98c9b9e286dcaee963e51d9d74d2fbb0d7091 | 14028bea18dcd4f89fca2306bf51dcbf6acabb44 | /apps/fhir/bluebutton/tests/test_fhir_resources_read_search_w_validation.py | 02943d51949acf9d4fc60ef3ea7a8e05e6c3d19d | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | CMSgov/bluebutton-web-server | 5694c7149d9f2f6efed9a2814c928d8a7539e4cb | fb0904c0b9d77dfb00523fe6ce69b946b640441e | refs/heads/master | 2023-09-01T18:17:31.088628 | 2023-08-25T20:43:14 | 2023-08-25T20:43:14 | 50,062,960 | 30 | 33 | NOASSERTION | 2023-09-14T10:24:34 | 2016-01-20T21:52:00 | Python | UTF-8 | Python | false | false | 22,028 | py | import json
from django.test.client import Client
from django.urls import reverse
from httmock import all_requests, HTTMock
from oauth2_provider.models import get_access_token_model
from apps.test import BaseApiTest
AccessToken = get_access_token_model()
C4BB_PROFILE_URLS = {
"INPATIENT": "http://hl7.org/fhir/u... | [
"noreply@github.com"
] | noreply@github.com |
6254bd3142e966181c216656c684fe9d81042c50 | 357d2b6e8aaee85da51811f0b15e984fac9e011d | /foodflex/__main__.py | 9a0ffde04554252810d03d204bb5d55785dd1f7a | [
"MIT",
"Bitstream-Vera"
] | permissive | Chasbob/food-flex-discord | 658486156367c078654d71ddfd4c4475b9b6c845 | ed2641f938b575815de8789c8c816cdb23b998e7 | refs/heads/master | 2020-09-22T12:33:42.008636 | 2020-04-06T12:34:42 | 2020-04-06T12:34:42 | 225,196,090 | 0 | 0 | MIT | 2019-12-01T16:55:37 | 2019-12-01T16:55:37 | null | UTF-8 | Python | false | false | 71 | py | from . import foodflex
if __name__ == "__main__":
foodflex.main()
| [
"will@will-russell.com"
] | will@will-russell.com |
a70da63ae03009e13e1e3cec021e48b1e4d3eed3 | cfbebe41bba40833b1863e0c36fa92d0cef9bdc4 | /find_procedure.py | 0742151bd31f8a830ce5bdca5c06710bdef2b8d2 | [] | no_license | VoloshinAndrei/HomeWork_2_4 | 91721429f072354c8a6a8c4477eca7bd7db0a455 | 40e6f41ab2f17991abed07ab0e4a361a11dc2c96 | refs/heads/master | 2021-04-27T00:08:59.752946 | 2018-03-21T18:31:15 | 2018-03-21T18:31:15 | 123,757,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,869 | py | # Задание
# мне нужно отыскать файл среди десятков других
# я знаю некоторые части этого файла (на память или из другого источника)
# я ищу только среди .sql файлов
# 1. программа ожидает строку, которую будет искать (input())
# после того, как строка введена, программа ищет её во всех файлах
# выводит список найденных... | [
"voloshin_av@list.ru"
] | voloshin_av@list.ru |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.