blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fab7aa822ba2ce976ce6e3bd28674cdc8684e220 | 1132a279441daf848dc3069f5ad5992b4f666cdd | /popula_banco.py | b751e97c93c57eb24ee2595efe4e0842ab5cc7a6 | [] | no_license | douglaswestley/HCV | 30ae05cdbea941ab2b3b99d05354bf3ba66c5da1 | df230dd2c9c12fa21ffa775b11e286c82b777a35 | refs/heads/master | 2020-03-31T19:05:40.397902 | 2018-12-13T13:30:42 | 2018-12-13T13:30:42 | 152,484,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | from models import Usuario, Ocorrencia, db
def cria_tabelas():
db.create_tables([Usuario, Ocorrencia])
def cria_usuarios():
usuarios = []
| [
"walicen.r@gmail.com"
] | walicen.r@gmail.com |
cfceca1971b875e30b97e489d0c32d251e87113c | 5df97f6d539126c70f19ba7d480b3939ba20c657 | /source/5.大数据获取/Xpath/XPath_example.py | 72ed545f73e80a0a6bc31d70aa29a1193314af7a | [] | no_license | wulichunchun233/Pythonbigdata | 524b15be7c4e07680ee136923af38dc28d8cfdde | 48cb82a153d42b7ef5cba4d6a397cac8e2b9749d | refs/heads/master | 2022-08-10T11:29:40.917347 | 2020-05-22T01:11:58 | 2020-05-22T01:11:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | from lxml import etree
# 读取html内容
html = etree.parse(r"../data/Xpathexample.html", etree.HTMLParser())
result = etree.tostring(html)
print(result.decode("utf-8"))
# 获取所有节点
allnodes = html.xpath("//*")
print(allnodes)
# 获取指定节点
all_p = html.xpath("//p")
print(all_p)
# 获取子节点
child_a = html.xpath("//p/a")
print(child_a... | [
"zhangxiao@nwpu.edu.cn"
] | zhangxiao@nwpu.edu.cn |
c2992a7f38bba9ba03dfa6c43ae76a6eb594705b | 35d8cdd1eded0b7a6a6c09d386befe1891be347a | /userbot/plugins/hack.py | f28b4eb79ee5d0e33bb8439e8892f3554a315f76 | [
"MIT"
] | permissive | shashi50505/Jarvis2 | 2de5a8ccecac0b36af1b280b39ff785efe6b31dc | 977784224a13a15b76724792e3dbbf1e3ceab86d | refs/heads/master | 2022-04-26T09:38:02.574973 | 2020-04-24T14:38:01 | 2020-04-24T14:38:01 | 258,545,735 | 1 | 0 | MIT | 2020-04-24T15:07:32 | 2020-04-24T15:07:31 | null | UTF-8 | Python | false | false | 2,518 | py | """Emoji
Available Commands:
.emoji shrug
.emoji apple
.emoji :/
.emoji -_-"""
from telethon import events
import asyncio
from uniborg.util import admin_cmd
from telethon.tl.functions.users import GetFullUserRequest
@borg.on(admin_cmd(pattern=r"hack"))
async def _(event):
if event.fwd_from... | [
"noreply@github.com"
] | noreply@github.com |
621c91fb8cb28da16efc9fafb61faa465152baca | e9d0eb9ab40639ee6c3182cfa134f91197ba4fe6 | /roslib/substitution_args.py | 67cd9c5a4e538d3d557d99cba523b7e0ae5da4a3 | [] | no_license | Vbilot/Minoides_NN | 0e97232c5833278aa41e9f10df69caba8a475cac | 560f0c1a3b61eca7d8853fb5b841261d2cc4bc75 | refs/heads/master | 2020-03-19T03:21:27.110113 | 2018-06-01T13:51:09 | 2018-06-01T13:51:09 | 135,720,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,407 | py | # Software License Agreement (BSD License)
#
# Copyright (c) 2008, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above... | [
"simon.vernin@depinfonancy.net"
] | simon.vernin@depinfonancy.net |
4167e094c91aa9c0a85a31b45af335cbc7bac7a9 | 1d0228317b822e6697d9d7167961caa4512ae6a8 | /three_layer_example.py | 7dd0695e78b1ba9e1414e7193fee2831632febf3 | [
"Apache-2.0"
] | permissive | HugoJBello/tests-text-recognition-python | 4a608bc0120f7016e93a679e785df83ad65230db | 5c6a07e1714e581fe30cf6d7e1b0fe2b8b3158cc | refs/heads/master | 2020-09-05T04:26:44.306940 | 2019-12-17T13:13:16 | 2019-12-17T13:13:16 | 219,982,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | #https://en.wikipedia.org/wiki/Backpropagation#Finding_the_derivative_of_the_error
##https://iamtrask.github.io//2015/07/12/basic-python-network/
import numpy as np
def nonlin(x,deriv=False):
if(deriv==True):
return x*(1-x)
return 1/(1+np.exp(-x))
X = np.array([[0,0,1],
[0,1,1],
[... | [
"hjbello.wk@gmail.com"
] | hjbello.wk@gmail.com |
7f79426c1201450a250c2aaa0f77a5cad09a76d9 | 1d147a6bac841011957cb26eb3481c595a134d0d | /meeting_action_plan/meeting_action_plan/local_settings.py | 38303a68864a985eb000d26d4f2f397f5d1a3e03 | [] | no_license | technomicssolutions/meeting-action-plan | 0db165961d5129134c93c952076cc7280b337696 | 71238bfc5ab9973cfc895785f958d21e360cb901 | refs/heads/master | 2021-01-23T21:36:16.481470 | 2014-08-11T05:48:12 | 2014-08-11T05:48:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2', #'mysql', 'sqlite3' or 'oracle'.
'NAME': 'meeting_action_plan', # Or path to database file if using sqlite3.
# The following settings are not used with sqlite3:
'USER': 'krishna',
... | [
"anoop@technomicssolutions.com"
] | anoop@technomicssolutions.com |
d1d7f72fe670ad80b483cebe8ae97847b8fc2824 | 9acb59a2aee291f3ce63e23492d668780134795b | /passwords.py | 28463d87d5238edf0fab97040322f6191f6fc021 | [] | no_license | mauropappaterra/Password-Generator | 4b62c0c4224df2beea8b4006a3e48adbab60a4a2 | 1d5bc0c680401517209a253968ffc6be24b8a60d | refs/heads/master | 2023-05-12T10:13:36.048279 | 2018-01-20T11:27:16 | 2018-01-20T11:27:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | # Password-Generator
# passwords.py
# Created by Mauro J. Pappaterra on 07 of November 2017.
import model as m
import view as v
import controller as c
c.start(m,v) | [
"mauropappaterra@gmail.com"
] | mauropappaterra@gmail.com |
fd56ab226506e3b5d7d35df470f981c5dfecfd85 | e0aa52c1704bfe7b1348eeb88e046c34e8b14212 | /ejercicio_3.py | 040eae85a73a4bbbc0fe0f96de83edb2ec35722c | [
"MIT"
] | permissive | juandab07/Algoritmos-y-programacion | 53378a2b5ed1d8d16b43b3f438134b176e04a888 | f3c10f5c4620b15432ecfe2b9f5831437a49ace9 | refs/heads/main | 2023-05-12T21:36:09.438550 | 2021-05-21T23:32:32 | 2021-05-21T23:32:32 | 357,763,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | """
entradas
venta1->float->v1
venta2->float->v2
venta3->float->v3
sueldobase->float->SB
salidas
comision->float->c
sueldototal->float->sueldototal
"""
#entradas
v1=float(input("digite la venta 1 " ))
v2=float(input("digite la venta 2 " ))
v3=float(input("digite la venta 3 " ))
sueldobase=float(input("digite el sueldo... | [
"noreply@github.com"
] | noreply@github.com |
7c94c4246337922503c3c04bb85a88472f19f303 | 7caa2803db67f5c609865fe0f5c4d24bbbdb4afe | /leetcode/621-task-scheduler/main.py | ce57a5a949b68ada661a286438c646a3b5b02b77 | [] | no_license | ataul443/AlgoDaily | 106fd9e496ede30bfdf223ce54dcac2b14852815 | b8ae4f80cf162681aaff1ff8ed6e1e4d05f2010d | refs/heads/master | 2022-11-20T10:47:52.683016 | 2020-07-16T13:27:55 | 2020-07-16T13:27:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,729 | py | import heapq
from collections import *
"""
1st approach: maxheap
- similar to lc358
1. count occurence for each task
2. in each iteration
- pop the tasks from maxheap n+1 times
- put the tasks back to the queue with decremented count
3. remove trailing '-'(idle)
Time O(nlog2... | [
"chan9118kin@gmail.com"
] | chan9118kin@gmail.com |
ed08064f64c5c4407c7c2f69b59101480452a297 | fa795af74cda4d92604fa3332179ba939460a9b5 | /JUBioactivities/QSARDB/Zhang_Property_logKMXa_Cuticular_polymer_matrix/__init__.py | adddf136cd274fcf5c3c41ccd4a71b4f7ab2e83c | [] | no_license | JenniferHemmerich/JUBioactivities | 7329a89db0e2790aff9bcfe153ab4dcd2c19a489 | 87054ac135d91e034dcfb6028562b4a7930a3433 | refs/heads/master | 2020-04-26T03:56:36.177955 | 2019-03-07T13:08:08 | 2019-03-07T13:08:08 | 173,284,341 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | import os.path
import pandas as pd
from ... import utils
import glob
__data_src__ = [os.path.join(__path__[0], "compounds/InChI_from_XML.csv")]
__data_src__ += list(sorted(glob.glob(os.path.join(__path__[0], "properties/*.txt"))))
def read_data(raw=False):
dat = pd.read_csv(__data_src__[0], index_col=0)
pro... | [
"jennifer.hemmerich@univie.ac.at"
] | jennifer.hemmerich@univie.ac.at |
eb05a439ca3e8cb84a9dd47e7476548ed343a980 | 5db75589901eb5eb991d8efd5aa043fbd475179c | /leetcode/strStr.py | 6af411d87627e6fa6c68306c8bebf86d0cfe9c05 | [] | no_license | cizixs/playground | b15f503ddb7a406791443768b6325776c9fe6f22 | eea3668cc80d7f328359a56144a5344029e83b47 | refs/heads/master | 2021-01-22T02:53:09.981444 | 2014-10-26T07:19:17 | 2014-10-26T07:19:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | class Solution:
# @param haystack, a string
# @param needle, a string
# @return a string or None
def strStr(self, haystack, needle):
if len(haystack) < len(needle):
return None
if needle == "":
return haystack
result = haystack.find(needle)
if resu... | [
"vagrant@precise64.(none)"
] | vagrant@precise64.(none) |
25c7bb17dfa66c9a49f81d72ac5b1b2985f076b2 | 8375c46ae4a2c74007a24fb740386e177d7e4853 | /week09/2792_jimin3263.py | f67631739c840fd5190b83cbfd3b4d11b208ecb4 | [] | no_license | hyeji1221/SMU_Algorithm | 36f96f3423a8cc6e82511d4aa7ba481e76f59c8d | 7d22529b2467e8c2c6f25770a7926bdf0c419b0d | refs/heads/main | 2023-08-13T22:00:20.139790 | 2021-10-10T14:02:12 | 2021-10-10T14:02:12 | 348,924,731 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | #같은 색 보석만 가질 수 있음
#가장 많이 가진 보석의 수가 최소가 되도록
import sys
input = sys.stdin.readline
n,m = map(int,input().split())
jewelry=[]
for i in range(m):
jewelry.append(int(input()))
#시작 = 1, 질투심 = mid
start, end=1, max(jewelry)
while start <= end:
mid = (start+end) // 2 #한 명당 가져가는 보석 수
sum = 0 #보석을 가져간 사람
for... | [
"noreply@github.com"
] | noreply@github.com |
861261d5bcc093077a78e927032649deaa9cc080 | c89d50f7554f2eb551e5a493b7b9614c478a8ac2 | /R/prepare_data.py | 9f0a7a147a47fbfe77d3233e002876b1d03693e0 | [] | no_license | junnyhe/Code | c741d5f6b559ef0d4fbb37f8b67f5dd59d89b3d4 | b698e4831bc240dbc1229c21c71ceb88733aabd2 | refs/heads/master | 2020-04-11T09:44:22.451742 | 2015-08-30T02:28:51 | 2015-08-30T02:28:51 | 31,276,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,456 | py | import csv
import gzip
# change delimiter to "|"
def convert_data(infile_name,outfile_name):
# remove space in header, and strange characters in data
infile=gzip.open(infile_name,'rb')
incsv=csv.reader(infile)
outfile=open(outfile_name,'w')
outcsv=csv.writer(outfile,delimiter='|')
... | [
"junnyhe@gmail.com"
] | junnyhe@gmail.com |
b02b6f4a8dad54e71517c5a53c23626326299904 | 1a36f8f77ca3d3093b51932f8df15b3c2fad3ae4 | /mlx/filesystem/local_filesystem.py | 599111e0fe82594c1cd126f3a05558c81109f986 | [
"Apache-2.0"
] | permissive | lewfish/mlx | 3c2477aa2fc53f5522e4e70975f0e430090c3024 | 027decf72bf9d96de3b4de13dcac7b352b07fd63 | refs/heads/master | 2020-04-20T13:57:36.831202 | 2019-10-08T00:37:55 | 2019-10-08T00:37:55 | 168,884,084 | 0 | 0 | Apache-2.0 | 2019-10-08T00:37:56 | 2019-02-02T22:13:28 | Jupyter Notebook | UTF-8 | Python | false | false | 4,068 | py | import os
import shutil
from datetime import datetime, timezone
import glob
from mlx.filesystem import (FileSystem, NotReadableError)
def make_dir(path, check_empty=False, force_empty=False, use_dirname=False):
"""Make a local directory.
Args:
path: path to directory
check_empty: if True, ch... | [
"lewfish@gmail.com"
] | lewfish@gmail.com |
ad69e12979db906d8d65bf568e8987344c009603 | 436bdc7ba4879be8640bda0378c1d7b4a4552956 | /Recommenders/SLIM_BPR/Base/Evaluation/Evaluator.py | c4608fa9e7c322206a8f3587d2f92cdf9360a6e3 | [
"MIT"
] | permissive | GiorgioPolla/recommender_systems_challenge | 391fa7d260a77ad804db443bbbcf5dc316b96243 | ad55f843df98ca93b02211cb050190a24165853e | refs/heads/master | 2020-08-06T13:08:29.803683 | 2019-10-03T01:46:17 | 2019-10-03T01:46:17 | 212,986,864 | 1 | 0 | MIT | 2019-10-05T11:18:23 | 2019-10-05T11:18:23 | null | UTF-8 | Python | false | false | 35,902 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on 26/06/18
@author: Maurizio Ferrari Dacrema
"""
import numpy as np
import scipy.sparse as sps
import time, sys, copy
from enum import Enum
from SLIM_BPR.Base.Evaluation.metrics import roc_auc, precision, recall, recall_min_test_len, map, ndcg, rr, arhr, \... | [
"paolo1.romeo@mail.polimi.it"
] | paolo1.romeo@mail.polimi.it |
e91f3640bd3681937eaa767062459684b6b2edcb | a3bc83cb82694e440db524c576fdcfd2b4e358bf | /notifications/admin.py | 137219de046c3d6a85dda63037e2ae67b1e19a1f | [] | no_license | Resbel-960/Cocktail-app1 | df5628a712876cc8ea2207cde857e47343be3492 | 2cf71ea35c374f1c72d74064db382133dbad461a | refs/heads/master | 2022-12-01T05:23:50.448173 | 2020-07-18T20:15:17 | 2020-07-18T20:15:17 | 275,412,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | from django.contrib import admin
from .models import *
# Register your models here.
class NotificationAdmin(admin.ModelAdmin):
pass
admin.site.register(Notification, NotificationAdmin) | [
"resbel.zy@gmail.com"
] | resbel.zy@gmail.com |
ff3daba57560d371425b2d9a26fc6c1e778b2b8c | 7e14ab86c9cdf9655ed5835f79000b52a487fdab | /lista01/ex05_l01.py | 156ac7bf1ee5bd9fc4a68b0d0ffb665e861846d8 | [] | no_license | cafecompython/FATEC | eb200bdb66b155e1e604ed98527f84f7cf8c9042 | 3c7004184f8a898e2dff69d0e34f68961f85327b | refs/heads/master | 2020-05-01T10:55:50.381107 | 2019-03-24T15:06:11 | 2019-03-24T15:06:11 | 177,430,611 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | '''05- Dados três números, A0, LIMITE e RAZÃO, imprima todos os números gerados pela PA (Progressão Aritmética)
cujos valores são menores que o LIMITE. A PA tem valor inicial A0 e razão RAZÃO.'''
A0 = int(input('Digite o valor inicial da PA (A0): '))
LIMITE = int(input('Digite o valor do limite da PA (LIMITE): '))
RAZ... | [
"dasilva.mcg@gmail.com"
] | dasilva.mcg@gmail.com |
df1e8ddb3ba1beb120cad87ac180615319b306b8 | fd9c57d21df2604dc98e9ac1d1699577485a9d57 | /conn_mysql/http.py | 00f612e6cc67e8c6bc1c34227872ac8ae703fadb | [] | no_license | klobodnf/XCLK_engine | 6c46729ab39b313941c067591250b84761ce36b1 | 7184f6383c56bbd6788cbe4e78a2cacc31a4c609 | refs/heads/master | 2021-01-01T06:05:35.619194 | 2012-06-29T02:25:35 | 2012-06-29T02:25:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,511 | py | #!/usr/bin/env python
import urllib2
import httplib
import socket
import re
import time
import splite_query_sql
import progressbar
FLAG_TIMEOUT = 0x0001
FLAG_NOTFOUND = 0x0002
FLAG_BROKEN = 0x0010
FLAG_NOT_ENOUGH = 0x0020
FLAG_NOT_MATCH = 0x0100
FLAG_OK = 0x0200
FLAG_STATUS = 0x0000
BOOL_PRODUCT_A = 0x... | [
"kaidxc@gmail.com"
] | kaidxc@gmail.com |
d5d1a0aeb4cdff1b577aa3fbecad4cbe580a5a0b | 93813fecd8722805d680b730ec9864d2a3ee6744 | /test_dmp/move_r_arm_prepick.py | 7320abd54b3f802418e1a1ce0ff214f756470a61 | [] | no_license | tony1994513/birl_trajectory_planner | 88c5d7f0353b9d3b0b2e06d7b7de546c5d26e31d | 6f147430bf059a1bdbc2a6cd42f1e4e6fa108f9d | refs/heads/master | 2020-04-10T09:25:32.197475 | 2019-02-28T08:03:59 | 2019-02-28T08:03:59 | 160,935,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | #!/usr/bin/env python
import baxter_interface
import rospy
if __name__ == '__main__':
rospy.init_node("set_right_arm_py")
names = ['right_e0', 'right_e1', 'right_s0', 'right_s1', 'right_w0', 'right_w1', 'right_w2']
joints = [0.23354857495555426, 1.458432234082057, 0.6991117440787773, -1.1083011192472114, ... | [
"470963660@qq.com"
] | 470963660@qq.com |
06c0697c042852553ea8f2603afaca223ce2c5c1 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_81/311.py | d316cf2c5a48f65d437f14d31ee4f5b5c78d65a5 | [] | 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 | 2,068 | py | def crash():
assert 1==2
def percentage(arrayWins):
wins = arrayWins.count('1')
losses = arrayWins.count('0')
return float(wins)/(wins+losses)
def average(arrayWins):
return float(sum(arrayWins))/len(arrayWins)
fileLoc = '/Users/alarobric/Downloads/'
#fileLoc += 'A-small-attempt... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
2112370b9ee110bc0a76c7315ceefa5583dfb1d4 | 37fb5b66145831f67d90f2810cef470e35e07810 | /hzspell.py | 1e0d677e85bed13d7804d40dee380bde3d37b287 | [] | no_license | jiangce/tglib | 8c7ac21334f014ff393199592f988a7e75d96142 | 8f9d1b2f229f91a51629fd5a3c762d65cf8839c6 | refs/heads/master | 2021-01-10T09:07:50.734054 | 2015-12-15T07:51:33 | 2015-12-15T07:51:33 | 36,805,416 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,567 | py | # -*- coding: utf-8 -*-
'''
汉字转拼音库
Created on 2012-7-2
@author: JC
'''
import sqlite3, os, copy
class Spell(object):
'''
汉字拼音转换类
'''
def __init__(self):
self._dbname = os.path.join(os.path.dirname(__file__), 'hzspell.db3')
self._connect = sqlite3.connect(self._dbname)
self._c... | [
"jiangce@togeek.cn"
] | jiangce@togeek.cn |
684d31fbe3f918f028cd2d51377441f62427ae18 | d532aa2d02ea19ad8608ae33ce0c10cb87d212da | /todolist_app/migrations/0002_alter_tasklist_options.py | 81b25aa98632185363853cb91c6bb6c86cfb52cc | [] | no_license | ollie-buja/TO-do_Web_App | 701c930d83d8d788edfd3704fa5d5883b4daab2a | 8074c51cf9758169d776d7d270509113c47673ac | refs/heads/master | 2023-07-28T10:50:14.614650 | 2021-09-10T19:46:21 | 2021-09-10T19:46:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | # Generated by Django 3.2.7 on 2021-09-05 05:35
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('todolist_app', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='tasklist',
options={'verbose_name': 'Ta... | [
"psingh9_be20@thapar.edu"
] | psingh9_be20@thapar.edu |
97949505090c172520f2c6090895995db830ebf0 | 2f7a05fe584a948d203f0236b6f139220865aabc | /plugins/proofpoint_tap/komand_proofpoint_tap/actions/get_delivered_threats/action.py | a4321b2083f98276d5524bcb628bb3c75b9588c5 | [
"MIT"
] | permissive | Kano69/insightconnect-plugins | 6671995e9c3127137f59939369ab79bdd152127d | 4dc54260470cd8a3d1cb31ae1c48ad3e8ec75194 | refs/heads/master | 2023-08-25T19:14:14.919805 | 2021-10-15T15:01:18 | 2021-10-15T15:01:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | py | import insightconnect_plugin_runtime
from .schema import GetDeliveredThreatsInput, GetDeliveredThreatsOutput, Input, Output, Component
# Custom imports below
from komand_proofpoint_tap.util.api import Endpoint
from komand_proofpoint_tap.util.util import SiemUtils
class GetDeliveredThreats(insightconnect_plugin_runti... | [
"noreply@github.com"
] | noreply@github.com |
ce415090b6138be5793ba020c8a4743552fcc53e | d10a8465ab3e3fa93cd1feeb6cfb3b2321016b99 | /index.py | 490640d2d5f16200a207b5b48068f335d0b0dd22 | [] | no_license | rintcius/xuanji.appspot.com | 2cc125bf419d716e72b7d30000ed7e9173735f63 | ca4ba727285ed2a8b7fe006ab19856708a40ce7b | refs/heads/master | 2021-01-16T20:14:06.990238 | 2013-09-29T07:15:39 | 2013-09-29T07:15:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | import cgi
import os
import webapp2
from google.appengine.ext.webapp import template
from python_grading import python
class MainPage(webapp2.RequestHandler):
def get(self):
path = os.path.join(os.path.dirname(__file__), 'index.html')
self.response.out.write(template.render(path, {}))
app = webap... | [
"xuanji@gmail.com"
] | xuanji@gmail.com |
f5841c57d24414e3a0fe5cfb04bd2b17d71eda5d | ae2e4f2c99225f81891b65b23be7d33262d8fa96 | /app/core/proyectos/migrations/0001_initial.py | 7fa6763594150d9e0ccebc9056697cd78bbc3751 | [] | no_license | DFCCyii/python-chekinassist | cfd83e65ea511c3268632b3ceed6bf36e74d42fe | 8f4e68a94f937b8644d88b31c62443eaad87cf4f | refs/heads/master | 2022-10-30T08:35:18.268959 | 2020-06-18T22:40:37 | 2020-06-18T22:40:37 | 273,351,573 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | # Generated by Django 2.2.12 on 2020-05-21 21:02
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='TipoDocu',
fields=[
('id', models.AutoFiel... | [
"57962258+DFCCyii@users.noreply.github.com"
] | 57962258+DFCCyii@users.noreply.github.com |
b5d6de9593ee541239e8199b21cbfbc25541f3d2 | 058abd6c057053502ceb4be6a7ef03af7d49ce4b | /com/gefeng/python/auto/web_test/first.py | 3da5553659e9b3770d3679a78562eef86db5077e | [] | no_license | gefeng77/PycharmProjects | dbeb272cd573e9362cdb2a7cb9731e696be3c419 | d072a4a2a54e8c59ccb6f6e9a79f550ee51bd0ac | refs/heads/master | 2022-07-06T14:09:39.947712 | 2020-05-19T09:58:56 | 2020-05-19T09:58:56 | 260,398,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,370 | py | # coding=utf-8
import time
from selenium import webdriver
import logging
from selenium.webdriver.common.keys import Keys
import ddt
class DriverTest(object):
"""第一个web自动化的项目"""
def __init__(self):
# 加启动配置,不再弹出窗口受自动化控制的信息
opt = webdriver.ChromeOptions()
opt.add_experimental_option('exc... | [
"gefeng_zhang@outlook.com"
] | gefeng_zhang@outlook.com |
2ab1669412b023ea423bb110ed68de70c027e4f6 | c80d09cb1b2bb6dc05eee0a175375616fb117843 | /multiprocess.py | 7666763d0c488630da7f415f3324604ff77c0d63 | [] | no_license | Firdauzfan/StreamingRTSPtoHTTP_PythonFlask | d51a18a677e9fb93f371d9628bb463ef70807453 | d4a2c78f58284d36aaaa7dd547ce1cc2963da6a3 | refs/heads/master | 2020-03-26T13:03:40.175679 | 2018-08-16T01:30:04 | 2018-08-16T01:30:04 | 144,921,026 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | python3.6 main.py & python3.6 main2.py & python3.6 main3.py & python3.6 main4.py & python3.6 main5.py & python3.6 main6.py & python3.6 main7.py & python3.6 main8.py & python3.6 main9.py & python3.6 main10.py
| [
"firdauzfanani@gmail.com"
] | firdauzfanani@gmail.com |
67d1a7aec25553058c4254040b54d6a8a5445f7d | cab849efeeacb5c2b7301abd9fd4aea3caf2e19e | /oned.py | bf7a7114dccae81b7d4fd0e521b1e730de45a2ba | [
"Apache-2.0"
] | permissive | koskinap/diffusion-maps | 1c900d1c28fd41b57d0c8d706cf4782ba5372d5e | 3b63e7509f1351b6bb2f08a5db79f7724cb31cfd | refs/heads/master | 2020-04-09T16:54:12.829073 | 2016-08-31T22:18:52 | 2016-08-31T22:18:52 | 60,640,246 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,926 | py | """Diffusion Maps implementation as part of MSc Data Science Project of student
Napoleon Koskinas at University of Southampton, MSc Data Science course
Script 6: Visulisation-scatterplot of timepoints in 2D-3D space,
using a selected dimensionality reduction technique to find patterns
"""
import openpyxl
import nu... | [
"zenapolewn@gmail.com"
] | zenapolewn@gmail.com |
b350298359633aa5540142780f7a08b46f312a36 | 39f57d87d5ab3825c79893bccd0df1ec93157e1e | /venv/Scripts/easy_install-3.7-script.py | 554591b5d81ad073b9b70ab97ae6c7691a1b5b50 | [] | no_license | Jxxyy/Flask | 68ea81aef8d9a53543f0ee095b65feb665358918 | 13f8262bd24d2fe03dda13470144f05320d7ed74 | refs/heads/master | 2022-11-11T22:55:11.253717 | 2020-06-27T13:08:09 | 2020-06-27T13:08:09 | 270,966,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | #!C:\Users\Administrator\Desktop\py\Flask\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.py... | [
"smtliuguiqian@163.com"
] | smtliuguiqian@163.com |
41269b1ad756a575af19cebe13ff3c5e99daf49d | f9ca841a8f8658006b46e56c0a9f959f8da977cd | /python/active/evaluation_mixture.py | 8150aa118f33744c7c3dfdef7d2292fb3729bd25 | [
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause"
] | permissive | akosiorek/uncertainty | 76cfc276a2ed5ddfe6430ad553c650773e84d5d2 | 9ddd4390e808dc4ef7b7378061de736245ca4f13 | refs/heads/master | 2021-01-24T16:10:53.365169 | 2016-03-16T13:10:25 | 2016-03-16T13:10:25 | 37,138,375 | 0 | 2 | null | 2016-02-25T20:40:00 | 2015-06-09T14:50:23 | C++ | UTF-8 | Python | false | false | 2,694 | py | #!/usr/bin/env python
import numpy as np
import os
import sys
os.environ['GLOG_minloglevel'] = '1'
import caffe
import utils
from evaluation import NetEvaluation
UNCERTS = ['max_unc', 'entropy_conf', 'entropy_ip2', '2_max_ip2', 'entropy_weighted', '2_max_weighted']
NUM_UNC = len(UNCERTS)
# TODO: doesn't work
cla... | [
"kosiorek.adam@gmail.com"
] | kosiorek.adam@gmail.com |
9679529a9dde00019de6a05fe0284c7722312008 | 5194ac62e9cc9a30fd0eff9c0277510357ff378c | /domain/models.py | dd85caf4bb83a63e83b8b954d0c84239adb6bbab | [] | no_license | weilaibuxiangshuo/domainurl | ec64cdf4ba9b091f499753e62044c2a36e5194ce | ca104a7f33478acf13c3d39c85eb9ce7481bc530 | refs/heads/master | 2020-07-21T17:00:47.772406 | 2019-09-22T07:08:52 | 2019-09-22T07:08:52 | 206,926,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
from django.conf import settings
class NewUser(AbstractUser):
class Meta:
db_table='newuser'
ordering=["-id"]
class Role(models.Model):
name=models.CharField(max_length=128)
relationship=models.ManyToManyFiel... | [
"weilaibuxiangshuo@gmail.com"
] | weilaibuxiangshuo@gmail.com |
b95757190f75c244f98cde51fd55a1f6010f586e | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/ecf3f471c55ae18f8a0bbf4c7170104a63eeceb8-<solve>-bug.py | e8fa2b2c9ec86842a0502cfe3dd6c00fb1c8305d | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,350 | py | def solve(self):
'\n Runs the DifferentialEvolutionSolver.\n\n Returns\n -------\n res : OptimizeResult\n The optimization result represented as a ``OptimizeResult`` object.\n Important attributes are: ``x`` the solution array, ``success`` a\n Boolean fla... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
1875bce78efad2960af669395345413da4028522 | 684646e6d3fc5d1d679ac4f7c4c5a1d0c5feecd3 | /assigmenrAPI/settings.py | 1b3ed9bd52bd4b207c1c02deb81c6b412eb7c4ff | [] | no_license | balrajsingh98/ADVISOR-API-DJANGO | 189070ce49d962077e3561aa1972b83197215712 | 40e2d4f725054d775750e6b18db81f8b1142453e | refs/heads/main | 2023-04-20T02:49:31.148469 | 2021-05-14T08:10:17 | 2021-05-14T08:10:17 | 367,294,072 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,096 | py |
from pathlib import Path
import django_heroku
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
# SECURITY WARNING: ... | [
"balrajdhunna877@gmail.com"
] | balrajdhunna877@gmail.com |
dcb4ae59c70db67fe8f6876b55b6de52dc773861 | c975c0d4ad15a704ce29b6b9960fad3f09b43a90 | /relayer-poc/src/ICONProofManager/merkle_tree.py | 72aa4f1bf774ec0fb56b297993f98c0c7b613d91 | [] | no_license | rodrigoieh/icon-btp-0.5-PoC | 747ee5ce13e866d4fa8004056c9b95e4228410f9 | 9e0c7423b8db198cc5d795ebaffe1d5020b30779 | refs/heads/master | 2022-03-19T11:39:43.353999 | 2019-12-09T05:35:23 | 2019-12-09T05:35:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,157 | py | # -*- coding: utf-8 -*-
# Copyright 2019 ICON Foundation
#
# 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 ... | [
"dongchang.yoo@icon.foudation"
] | dongchang.yoo@icon.foudation |
f6090b4123803ea0f46d3530ec0f174c8b4fa349 | c4e9b3e5686ed8c6e885aa9f6a72a571f4b33db6 | /matplotlib_study/multiplot.py | 1d61e196cd0bb3e007ee0e6d62a3ce621c044f01 | [] | no_license | WhiteCri/learn-advanced-python | c2a081db0f901bb76e470341497014b4384ba803 | 8111cb12e8b05a9168a0236e05f4a6a1cda255eb | refs/heads/master | 2023-04-13T22:55:49.060522 | 2021-04-28T05:00:49 | 2021-04-28T05:00:49 | 345,628,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(-3, 3, 30)
y = x**2
plt.plot(x, y)
plt.show()
x = np.linspace(-3, 3, 30)
y = x ** 2
plt.plot(x, y, 'r.')
plt.show()
plt.plot(x, np.sin(x))
plt.plot(x, np.cos(x), 'r-')
plt.plot(x, -np.sin(x), 'g--')
plt.show() | [
"sjrnfu12@naver.com"
] | sjrnfu12@naver.com |
d080d3e8d1b6f4511ea71577ee373dcddf86faf3 | 559e6745868358da529c2916180edc90b97f852a | /tests/test_connection_serial.py | b455ad3694f789772efba6de4bee9a93bb5f2feb | [
"MIT"
] | permissive | SwiftyMorgan/msl-equipment | 712290579e49682337548f8c4294907e9b56d5a3 | 56bc467e97a2a0a60aa6f031dd30bf1d98ebda5c | refs/heads/master | 2020-04-21T14:49:23.902185 | 2019-01-18T18:43:16 | 2019-01-18T18:43:16 | 169,647,690 | 0 | 0 | MIT | 2019-02-07T22:08:37 | 2019-02-07T21:46:56 | Python | UTF-8 | Python | false | false | 1,958 | py | import os
import time
import threading
try:
import pty
except ImportError:
pty = None
import pytest
from msl.equipment import EquipmentRecord, ConnectionRecord, Backend, MSLConnectionError
@pytest.mark.skipif(pty is None, reason='pty is not available')
def test_connection_serial_read():
term = b'\r\n'... | [
"joe.borbely@gmail.com"
] | joe.borbely@gmail.com |
f73d3aa3fd0c4fe52cb8b168f061e0bde93a90a1 | 1daf0a34dab33f3835a91951e68607098fe0e2d2 | /lesson_3/test_fixture2.py | 0a8ec3653677beaaf79f069a0966f0ff8c833fda | [
"Apache-2.0"
] | permissive | Ryne777/Stepik_auto_test | 1cd83f1e27cc1f5af7bc2ce14257bc1f0dcd4b7c | 7543c6616db9945fd56433877a292a9bfe80eb8d | refs/heads/master | 2021-06-30T09:10:06.636951 | 2020-02-03T09:57:57 | 2020-02-03T09:57:57 | 237,384,597 | 0 | 0 | Apache-2.0 | 2021-06-02T01:00:08 | 2020-01-31T07:55:53 | Python | UTF-8 | Python | false | false | 664 | py | import pytest
from selenium import webdriver
link = "http://selenium1py.pythonanywhere.com/"
@pytest.fixture
def browser():
print("\nstart browser for test..")
browser = webdriver.Chrome()
return browser
class TestMainPage1():
# вызываем фикстуру в тесте, передав ее как параметр
def test_guest_... | [
"Rune777@yandex.ru"
] | Rune777@yandex.ru |
84d16dc699f540476901eb0935eba31f39b44c87 | cace862c1d95f6b85a9750a427063a8b0e5ed49c | /binaryapi/ws/chanels/statement.py | 1feab178b3ce9eabd3e3223fa3549dc1c82fe4f4 | [] | no_license | HyeongD/binaryapi | 65486532389210f1ca83f6f2098276ecf984702b | e8daa229c04de712242e8e9b79be3b774b409e35 | refs/heads/master | 2023-08-29T13:24:58.364810 | 2021-10-26T19:00:59 | 2021-10-26T19:00:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,393 | py | """Module for Binary statement websocket channel."""
from binaryapi.ws.chanels.base import Base
from typing import Any, Optional, Union
from decimal import Decimal
# https://developers.binary.com/api/#statement
class Statement(Base):
"""Class for Binary statement websocket channel."""
name = "statement"
... | [
"mdn522@gmail.com"
] | mdn522@gmail.com |
6330a3d49b55978d4a13312745a4615c598b435e | e74e0b41a2265acf0c74d6556de20908a0629973 | /jal/ui_custom/reference_selector.py | 2f93fa1c5418d4426f65c7ac59e575eb3933929b | [] | no_license | TonnyRed/jal | 8a6ffb7aa3c47161d94a4ae52654ea625b105895 | 8a2e96d1c04e335da4a2374a88c3038541fcaf7e | refs/heads/master | 2023-02-23T13:23:38.078159 | 2021-01-24T18:20:53 | 2021-01-24T18:20:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,743 | py | from abc import ABC, abstractmethod
from PySide2.QtCore import Qt, Signal, Property, Slot, QModelIndex
from PySide2.QtWidgets import QWidget, QHBoxLayout, QLineEdit, QLabel, QPushButton, QCompleter
from jal.ui_custom.helpers import g_tr
from jal.ui_custom.reference_data import ReferenceDataDialog, ReferenceTreeDelega... | [
"55182132+titov-vv@users.noreply.github.com"
] | 55182132+titov-vv@users.noreply.github.com |
13c975a6ae894724b03aac3011e92c806b5a20a2 | d0e19a354bc07f4f05c14729c2eac615196285dd | /test_tools/simgen_ta.py | 4106f5d4699b3223cc2228e7847695fafe5ea1c7 | [
"BSD-3-Clause"
] | permissive | cwlan2016/crystal | 0d2c19d484e58835ab8d819dfa85f4322a503160 | ff2f0a9d0691128b2c346ae8ffb8a2f6dc1a8916 | refs/heads/master | 2020-04-24T01:22:24.502588 | 2019-02-12T14:30:47 | 2019-02-12T14:30:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,578 | py | #!/usr/bin/env python2.7
import sys
import argparse
import traceback
import os
from collections import namedtuple, OrderedDict
from shutil import copy, rmtree
import traceback
import subprocess
import itertools
import re
import random
run_path = os.path.dirname(sys.argv[0])
crystal_path = os.path.dirname(run_path)
... | [
"tim.ist@gmail.com"
] | tim.ist@gmail.com |
b25e06f2bc54a3f76bc9352a300577225c3d2139 | 799d71270d6888b2ece01d757597a60cbe681ed3 | /CodePath-Before-Session/Week-1/ReverseString.py | 078297f897eed28f4ee827057f83df6cfcdb22a2 | [] | no_license | kesongxie/CodePath-Before-Session | dcc13c673599fcc01d275515b16201661498a257 | 73f0043c92de79025c7c2e5bf8915e98ff598ff9 | refs/heads/master | 2020-06-28T10:28:49.840773 | 2017-07-20T09:36:24 | 2017-07-20T09:36:24 | 97,092,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | class ReverseString:
# @param A : string
# @return string
# the sky is blue
def reverseWords(self, A):
str = self.reverse(A)
words = str.split(" ")
result = ""
for w in words:
result = result + self.reverse(w) + " "
return result.strip()
def rev... | [
"k8xie@ucsd.edu"
] | k8xie@ucsd.edu |
cbb7ec17c1c86b0fa6909c6cc39ce21228241646 | 3e6311b0aa835985ca4734d4e53e0b0a80242437 | /manage.py | 4462a42ea2cb4c1b20fcb36dac547ac364813bfa | [] | no_license | Amechi101/amechi-portfolio | 50d8ae9cc1a6744b98a9d0e4dd864fda87173cfe | 3a2bdd6f6b908c79cabead0f6efb6f00462d9725 | refs/heads/master | 2021-01-18T22:58:03.813769 | 2018-04-26T17:55:14 | 2018-04-26T17:55:14 | 39,911,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "portfolio_amechi.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"egbe@usc.edu"
] | egbe@usc.edu |
243c8ea96740e0a146a8cdb1c453cdbdfbc3abfa | d9d2e02d32472c1627171c7a0ac874ac1d084604 | /src/method/Recursive.py | e0cc86716f80c901df390eb69b6cdb619fec965e | [] | no_license | alantaorenjie/PythonBasis | 973cf727a30746eecf6d823182f6304852b9d3a1 | ff2e6e1688e92c742f66a04cfda890b2eaae7eb4 | refs/heads/master | 2020-04-01T01:04:33.486571 | 2018-10-18T08:22:19 | 2018-10-18T08:22:19 | 152,725,264 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | # 递归
def fact(n):
if n == 1:
return 1
return n * fact(n - 1)
print(fact(10))
| [
"987687115@qq.com"
] | 987687115@qq.com |
d8168e3f6a90bc8d05c37a0e1a8fefc1ca182380 | 343d17359f0c735e60dede9b61f1d8964ec8d612 | /ex26.py | 1910a8e5cb7dc538801c5d069070858b2f348b4d | [] | no_license | Durell/LPTHW | 2e10ce0e4df5d17cb8d3aa4e9091fb6e4a79cdc3 | c3b1ab685eb2ae68f0e418d137f383d1ad7241c8 | refs/heads/master | 2021-06-01T17:25:05.915818 | 2020-10-23T23:11:47 | 2020-10-23T23:11:47 | 10,677,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,294 | py | def break_words(stuff):
"""This function will break up words for us."""
words = stuff.split(' ')
return words
def sort_words(words):
"""Sorts the words."""
return sorted(words)
def print_first_word(words):
"""Prints the first word after popping it off."""
word = words.pop(0)
print word... | [
"durell@sagacious.pw"
] | durell@sagacious.pw |
fd8ba7457853c480f4536bb86ddc6b051a090e0a | 779291cb83ec3cab36d8bb66ed46b3afd4907f95 | /notebook/2020-02-25_gene_dists.py | fb81557f52dcb9ae4b74edaec0aa9f2c2a93caf2 | [] | no_license | Shengqian95/ncbi_remap | ac3258411fda8e9317f3cdf951cc909cc0f1946e | 3f2099058bce5d1670a672a69c13efd89d538cd1 | refs/heads/master | 2023-05-22T06:17:57.900135 | 2020-11-01T17:16:54 | 2020-11-01T17:16:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | # %%
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from ncbi_remap import plotting
# %%
plt.style.use(("sra_talk", "sra"))
plt.style.use("sra")
# %%
gene_metadata = (
pd.read_feather(
"../../larval_gonad/references/gene_annotation_dmel_r6-26.feather",
... | [
"justin.m.fear@gmail.com"
] | justin.m.fear@gmail.com |
7d0a001fbe71572a586e106d8d22b957dfb9d5d7 | 692020d0c3053c4f646c578632ed403b9f1a4ffa | /django_test/django_test/urls.py | 03863f4d7a7c35025bea92272f537d28fa9bed41 | [] | no_license | elprimoa/HCMF_test | 7a5cd1d0bdefdbe491b9f5a12b414b34773407d6 | db56f3d2993688fcc0fe40646400859f0466ada5 | refs/heads/master | 2016-08-11T08:16:04.990473 | 2015-12-11T02:49:33 | 2015-12-11T02:49:33 | 47,784,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | """django_test URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class... | [
"el.primo.arguello@gmail.com"
] | el.primo.arguello@gmail.com |
1074b0e0aebfa01825348e37667bb191d4251df9 | 8722d34d6174609479a23ba860065c031e9a792c | /decorators_test.py | faa09fd2b2fef099ae81330f7aa75a9111153d1e | [] | no_license | reisthi/python-excercises | 80b3c0219cd40ae91b5932a0a0dd6b8c728977c2 | 0f915701c9255c7ba4ebf25ed44516bfd8a3c6be | refs/heads/master | 2021-09-10T16:17:57.933334 | 2018-03-29T04:42:17 | 2018-03-29T04:42:17 | 126,124,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,629 | py | """Tests for decorator exercises"""
from io import StringIO
from textwrap import dedent
import unittest
from unittest.mock import patch, MagicMock
from functools import partial
from helpers import redirect_stdout
from decorators import (call_logger, jsonify, groot, four, hide_errors,
catch_all,... | [
"thiagoth.reis@gmail.com"
] | thiagoth.reis@gmail.com |
633d28bde38ed552095728743f672de268168a1c | f97e0399580e0bb8d4646e67734987ef91a5d5a8 | /textutils/views.py | d2e9834332470717fc7ee3b7f50d117d76fed59c | [] | no_license | hone191/ttext | 95ba8743d1432b1a418e5fc6667c2cb172f52df5 | 3d4635b8542f4aa60ddf13da837947c1042e71fe | refs/heads/master | 2021-05-18T09:58:36.481604 | 2020-03-30T15:05:10 | 2020-03-30T15:05:10 | 251,201,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,830 | py | # i have created thi file - ashish
from django.http import HttpResponse
from django.shortcuts import render
def index(request):
return render(request, 'index2.html')
def analyze(request):
djtext = request.POST.get('text', 'default')
removepunc = request.POST.get('removepunc', 'off')
fullcaps = requ... | [
"sharma02honey@gmail.com"
] | sharma02honey@gmail.com |
1f5087d804203813a77c97cb25b4da086faba8ee | f50beb40257eb24074a68cb6f5b7240c57273fad | /Kirkorov/wsgi.py | 2297d94adb4d760225e7cbb2321454bef10b1377 | [] | no_license | iseedeadpeople1005000/myrepo | a03ffed7d61540b88e68ffcb99cd5597e1e597ff | a36223808b9ccbde398d1f46b9e315830dd86151 | refs/heads/master | 2020-04-17T10:55:20.007571 | 2019-01-19T08:59:35 | 2019-01-19T08:59:35 | 166,519,115 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for Kirkorov 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"tapakah88"
] | tapakah88 |
1b84fa331d69434152a0e1fe0408b0732002943f | 191a5cd1e2a4fd62edaaddfbc7a6040f46b216b5 | /labellab-flask/api/controllers/mlclassifierscontroller.py | e60f1bf4a27e9b2c125ac3c1cbf59aa2ab50cbd9 | [
"Apache-2.0"
] | permissive | rochakjain361/LabelLab | 29d96fad6f7b5a330d876afe553b075a574b5af4 | bb14fadb485fc3bec8dacb9ed7a2690b45281fbe | refs/heads/master | 2022-12-04T03:34:23.328093 | 2020-08-05T11:12:33 | 2020-08-12T14:49:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,635 | py | from flask.views import MethodView
from flask import make_response, request, jsonify, current_app, send_file
from flask_jwt_extended import jwt_required
import pandas as pd
import json
import os
import zipfile
from api.config import config
from api.models.MLClassifier import MLClassifier, optional_params
from api.mode... | [
"oshan.ivantha@gmail.com"
] | oshan.ivantha@gmail.com |
1c2c2d2f98992bc9fa0977afd50f1cab2695d4d5 | 0948951b5f2485c5175f68de473fa67e425a4556 | /model/summaries.py | 70250861e66214af7a57cfbbc0ff195acb0e2995 | [] | no_license | RafalStaszak/tf_tutorial | ad15489435f6d68916c22293e6084163ee40be6b | fcd7db75f2b04b6ed099f689e3e905ded273d921 | refs/heads/master | 2020-07-03T12:26:42.146288 | 2019-08-12T10:23:27 | 2019-08-12T10:23:27 | 201,903,913 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,409 | py | import tensorflow as tf
from tensorflow.contrib import summary as summary
from system.misc import makedirs
import matplotlib.pyplot as plt
import io
import os
import shutil
class BaseMetrics:
def __init__(self) -> None:
super().__init__()
def compute(self, inputs, outputs, losses):
pass
cl... | [
"staszak.raf@gmail.com"
] | staszak.raf@gmail.com |
d0396051443f673a29251a79bc65ffdc88a90964 | d3f160634f3e76a473c6b41e836cb6a236acb803 | /svo/pages.py | afbd26d0aa5939ed4d1b7d8c646a6f12942e5459 | [] | no_license | kutrifd/project | 823a276c130f8ce72fb3ad3e397bd22145157d4b | 1506c1abf25e9d2ac443d3d4bb1a017291bfc246 | refs/heads/master | 2023-02-06T20:22:55.323517 | 2020-12-23T02:29:43 | 2020-12-23T02:29:43 | 323,373,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,703 | py | from otree.api import Currency as c, currency_range
from . import models
from ._builtin import Page, WaitPage
from .models import Constants
import random, json
from .forms import SVOFormSet
class Results(Page):
...
def vars_for_template(self):
return {'angle': round(self.player.svo_angle)}
class Sv... | [
"timilsinaraja@gmail.com"
] | timilsinaraja@gmail.com |
9d897d6ed3fda5c5f149ab8b4972b2966d008f86 | 7d19b8a32c7be4a7039c4b40e1b7838fca8a915c | /week2-turtle/turtlework.py | ce668ea2f61e47b9cada0aeb1ff10851adaaa4f5 | [] | no_license | graywen24/Python3study | df81d34cb3d2c254d5f55e505cf78771df23cc7d | 3b6b26697723d584039a49ed85396f6fe9e0e944 | refs/heads/master | 2023-07-12T22:37:58.153682 | 2021-08-26T18:08:24 | 2021-08-26T18:08:24 | 266,841,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | import turtle as t
t.fd(100)
t.fd(100)
t.left(90)
t.fd(100)
t.left(45)
t.fd(140) | [
"wenwen@1-net.com.sg"
] | wenwen@1-net.com.sg |
02d58505fe3fecede29bf87a52d2e4de86729e6f | bd6b9cfdc872adfb52beaca0c32658ebad4847d5 | /homework1/bnqsl.py | 3f6912842538baf407f5b837e023662b7368a0bc | [] | no_license | 2082033549/FCXPYN | 917cf006d79c9798be1396a9335987af68b937c8 | 0f65836aa0d178e00e0101d8d6f3023a0179cb44 | refs/heads/master | 2021-02-14T21:39:33.039446 | 2020-06-25T08:40:12 | 2020-06-25T08:40:12 | 244,836,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | #6 前面2个元素为0,1,输出100以内的斐波那契数列;
a=0
b=1
print(a)
for i in range(1,100):
if i==b+a:
print(i)
a,b=b,i | [
"2082033549@qq.com"
] | 2082033549@qq.com |
a5321564803e00cd859e5c843c4764bf33849218 | 7606d8bf415d44f311d0a41423bc7744397253b3 | /contrib/devtools/copyright_header.py | a4f1b0dd30cae849d7bc5d4d0c34f5d5a704a39b | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | martin-braun/REC | 211c0ff17489c92160a74241f9f0de97e45ae0ed | 148063bd6afe431c565f3ae3e75f010b11b3d4e8 | refs/heads/master | 2023-03-15T11:30:35.878465 | 2021-03-05T09:16:18 | 2021-03-05T09:16:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,944 | py | #!/usr/bin/env python3
# Copyright (c) 2016-2018 The Bitcoin Core developers
# Copyright (c) 2018-2019 The PIVX developers
# Copyright (c) 2019-2020 The PIVX developers
# Copyright (c) 2021 The Real E Coin developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensou... | [
"80086420+Real-E-Coin@users.noreply.github.com"
] | 80086420+Real-E-Coin@users.noreply.github.com |
6765e6eccaa7845dd1dfbcce37ca3e18dfc8895e | 8f0c5cb4938cffb0fb931c9bed6ce3e74d63e342 | /trydjango/settings.py | 932475114b7fe2005eb83556f701b6668ca2e373 | [] | no_license | Mehedi2885/trydjango2 | acce9b3643769759c62fbc6475c6a3e68b162f1f | e1bfe3c14ef2df573d062b60a4a671d74103717b | refs/heads/master | 2022-04-22T20:14:59.813475 | 2020-04-28T20:11:20 | 2020-04-28T20:11:20 | 257,658,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,356 | py | """
Django settings for trydjango project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"mehedi_45seafarer@yahoo.com"
] | mehedi_45seafarer@yahoo.com |
f11fe1dffdbf3c1f881723ca551483226c636db0 | 1e4dc77fa72cc611581c6936630041ab4a5fdb26 | /lib/python3.6/site-packages/menu_generator/utils.py | 74dbef66fd4debb94c65a99a334e14288d96b1d5 | [] | no_license | fouriejoubert/storage | a4920b2da1c6e1180e372d0ce1e104ef541f672f | b3cb9e5b926667048d34a321e4ba3c9abdddd0b7 | refs/heads/master | 2020-03-11T09:56:45.306798 | 2018-04-18T15:06:04 | 2018-04-18T15:06:04 | 66,633,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | from importlib import import_module
def get_callable(func_or_path):
"""
Receives a dotted path or a callable, Returns a callable or None
"""
if callable(func_or_path):
return func_or_path
module_name = '.'.join(func_or_path.split('.')[:-1])
function_name = func_or_path.split('.')[-1]
... | [
"fourie.joubert@up.ac.za"
] | fourie.joubert@up.ac.za |
583519b92ce761d0e1e0e72bd672705a1b529dcb | aae0432eede626a0ac39ff6d81234e82f8d678c2 | /leetcode/algorithm/sum-root-to-leaf-numbers.py | cee216d9b117a9ebbc548177066cf7319651a4e1 | [] | no_license | KIDJourney/algorithm | 81c00186a6dfdc278df513d25fad75c78eb1bf68 | e1cf8e12050b9f1419a734ff93f9c626fc10bfe0 | refs/heads/master | 2022-11-24T09:30:16.692316 | 2022-11-06T09:33:51 | 2022-11-06T09:33:51 | 40,428,125 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def sumNumbers(self, root):
"""
:type root: TreeNode
:rtype: int
"""
self.num_strings = []
if root :
self.vi... | [
"siyu.wang@ele.me"
] | siyu.wang@ele.me |
a8883efda963384543236424e552a81c232f9147 | 63249c777db6ee393a328bda8fd88df7f6a2632e | /venv2/bin/pygmentize | 633bc43ee622901436f11d1b5da48c766207c77b | [
"BSD-3-Clause"
] | permissive | tomorrow9913/django-script-slide | d7d674e107e18f3d3050e4951a3bfefaec1cbd76 | ad6f5631898e0035bd8a938bcabffdb5290d7d09 | refs/heads/master | 2022-12-23T16:03:17.406452 | 2020-09-24T03:44:03 | 2020-09-24T03:44:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | #!/Users/jihoon/Desktop/p1045_speechx/server/django-script-slide/venv2/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from pygments.cmdline import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"jihoon522@naver.com"
] | jihoon522@naver.com | |
5e6416fa20b7c75266a35c0f033ba4e3ad7dab6e | 20a0bd0a9675f52d4cbd100ee52f0f639fb552ef | /config/urls/admin.py | aef939fc4dc34e06fb39b702a80393a1c2a7734d | [] | no_license | yx20och/bods | 2f7d70057ee9f21565df106ef28dc2c4687dfdc9 | 4e147829500a85dd1822e94a375f24e304f67a98 | refs/heads/main | 2023-08-02T21:23:06.066134 | 2021-10-06T16:49:43 | 2021-10-06T16:49:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,837 | py | from django.conf import settings
from django.contrib import admin
from django.urls import include, path
from django.views import defaults as default_views
from transit_odp.common.utils.custom_error_handlers import (
page_not_found,
permission_denied,
)
from transit_odp.common.views import ComingSoonView
from t... | [
"ciaran.mccormick@itoworld.com"
] | ciaran.mccormick@itoworld.com |
a64f61789af45f794ceb817f356e38ac2bcfa265 | 12a6f15a0ed1af285459ea61707984c0a4fd368d | /code/python_utilities_py3/irrigation_hash_control_py3.py | 24d9d2e7bcde5e8236fe9d6b2f1f0b511c9663d0 | [
"MIT"
] | permissive | NanoDataCenter/nano_data_center | 66ec84ef8f78a6d35238bd18c71bb774b38b37db | 76ad521e1a5139a37df80214af1413d2fd4ade60 | refs/heads/master | 2022-12-12T13:58:04.761671 | 2020-09-18T17:33:32 | 2020-09-18T17:33:32 | 119,457,568 | 2 | 2 | MIT | 2022-12-06T19:37:49 | 2018-01-29T23:58:26 | C | UTF-8 | Python | false | false | 8,570 | py |
import time
import redis
import json
from redis_support_py3.construct_data_handlers_py3 import Generate_Handlers
from redis_support_py3.graph_query_support_py3 import Query_Support
class Generate_Hash_Control_Handler():
def __init__(self,redis_site_data):
qs = Query_Support( redis_server_ip = ... | [
"glenn-edgar@onyxengr.com"
] | glenn-edgar@onyxengr.com |
1815295498b45c650cf9af7a74816a3bf40d03f8 | f7c6301ee418f6424ce2af4a05fa832fffe4c733 | /main.py | 03bf62d95877c2bb7f6bf2f8f275f8ff69b5e51d | [] | no_license | el-rizado/bullstock_game | 2a9a03c4505230f60cbcae88ae8696e2c523a9d9 | f87b16ea2e5570a7887444cc83c6826273d1440c | refs/heads/master | 2023-01-24T21:32:48.405781 | 2020-11-24T04:52:38 | 2020-11-24T04:52:38 | 315,522,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,411 | py | from random import randint
def play():
number = generate_random()
score = 100
bull = 0
stock = 0
finish = False
while not finish:
guess = int(input("Enter your number : "))
bull, stock = check(number, guess)
if bull == 4:
finish = True
print(f"Yo... | [
"amirhosseinmohseni1996@yahoo.com"
] | amirhosseinmohseni1996@yahoo.com |
0e3fc320d97a5fbbc2435d6b87cf9ab9b631be44 | dbead8c0f305e5489a3f5b4d54dad86649f9073a | /main.py | b66ec77bbe141f37f542b643adea2842d6915b7e | [] | no_license | LucasAraujoDeSa/python-calculadora | 5f3f67f1b0a73e720dfae7f0636a6950ddefde10 | 8b469d8befc899028374f38871c3a2f90812ec59 | refs/heads/main | 2023-08-22T05:20:18.606888 | 2021-10-04T19:51:45 | 2021-10-04T19:51:45 | 413,564,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from helper.calc_helper import calc
resp = int(input("[1] - somar \n[2] - subtrair \n[3] - multiplicar \n[4] - dividir\n\n:"))
n1 = int(input("\nDigite um numero: "))
n2 = int(input("Digite outro numero: "))
calc(n1, n2, resp)
| [
"andrelucassaaraujo@gmail.com"
] | andrelucassaaraujo@gmail.com |
5646bc2bfa01644e7dd33329cbf23c8c0eaf4687 | c2b8c609a28aa3889fc31e7f8e5dce63c1b3f4e8 | /shop_v3/app/shops/forms.py | e06a5809c944fb1ce7421037234d176200bf6d43 | [] | no_license | artemlukyanovich/cursor_project_1 | 4de85d8bc379511702f120139519e8a28a90c086 | 73d4f0dcc022e107e460f98960978c5b9dad0005 | refs/heads/master | 2022-09-19T12:24:13.528070 | 2020-01-09T21:49:51 | 2020-01-09T21:49:51 | 221,288,464 | 0 | 0 | null | 2022-09-16T18:15:59 | 2019-11-12T18:48:47 | Python | UTF-8 | Python | false | false | 871 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField, IntegerField, SelectField
from wtforms.ext.sqlalchemy.fields import QuerySelectField
from wtforms.validators import DataRequired, Email, EqualTo, ValidationError, NoneOf
from app.db import Shops, Products
class... | [
"artemlukyanovich@gmail.com"
] | artemlukyanovich@gmail.com |
84e47d5f381560982a153b6a526e0e7ae4d2d1ba | 04e9f29b71eb2e580b659001dd5fd04e49461c7b | /algorithm/dynamic program.py | f569a62bdd82c2261e39ca730c7c7d133d6202ef | [] | no_license | liuyangc3/test | 4d53b9f994d95237167c443a7e8c44b802507a9d | a1621073e61a67ae09e45132a223a2544098d7f0 | refs/heads/master | 2020-12-15T21:24:37.403010 | 2019-09-30T09:04:36 | 2019-09-30T09:04:36 | 37,116,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | # -*- coding:utf-8 -*-
coins = [1, 3, 5]
def dp(money):
"""递归"""
if money == 0:
return 0
result = []
for i in range(len(coins)):
coin = coins[i]
if money >= coin:
result.append(dp(money - coin) + 1)
return min(result)
print dp(11)
| [
"liuyangc3@126.com"
] | liuyangc3@126.com |
ee7afa76eefd6ef3c782aa27cbdca01b72931430 | 96ffe2926805aad83e6380cedfac3a09bed2c33e | /editor/views/views_mail.py | d68f18f4c606350b534dda710f911b349cf04323 | [] | no_license | comcur/ProBEG | 3d168362c41c0d7832de30812adf1fc70f9aa838 | 0634d052ffbf96a9f133087a1af9a11ec263a593 | refs/heads/master | 2022-07-02T22:26:09.984541 | 2020-05-13T21:05:10 | 2020-05-13T21:05:10 | 262,343,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,575 | py | # -*- coding: utf-8 -*-
from django.shortcuts import render, get_object_or_404
from django.template.loader import render_to_string
from django.contrib.auth.models import User
from django.http import HttpResponse
from django.contrib import messages
import json
from results import models
from .views_common import group_... | [
"C:\\Users\\riK\\AppData\\Roaming\\The Bat!"
] | C:\Users\riK\AppData\Roaming\The Bat! |
bb6672627931c34ac6c1db97baaee78f6b15e688 | f4c3befa7df6e58acff59433d5232877f8ec035d | /src/fts3/model/base.py | 874102daff5f607ba3301062d0c3efce5f73e64a | [] | no_license | mhellmic/fts3 | 4694b7e93e48dfc4a80c968dc34078837aee6d33 | baae08dec18c8de319ca222b4e85432d2c35fe55 | refs/heads/master | 2020-04-10T14:50:21.752985 | 2013-05-14T09:43:07 | 2013-05-14T09:43:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,306 | py | from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.types import TypeDecorator, String
import json
import types
Base = declarative_base()
class Json(TypeDecorator):
impl = String
def process_bind_param(self, value, dialect):
return json.dumps(value)
def process_result... | [
"a.alvarezayllon@gmail.com"
] | a.alvarezayllon@gmail.com |
7bc56bc8747880d6a4458dcecb7ad15846f54719 | a1d3792812471af6648a58c8990a9f8f84e4451a | /backup/tool_backup_005.py | 6478098eb5b699eac99654a27fcd4723fe876607 | [] | no_license | Chandan-IITI/CIFDM | cbef06a5b20e16df9b203860474af738687fe278 | b74445ee313d0548ac8d4e4d32d8507b73c17860 | refs/heads/master | 2023-06-01T18:25:22.413136 | 2021-06-21T23:33:28 | 2021-06-21T23:33:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,656 | py | from time import time
from sklearn.metrics import accuracy_score, roc_auc_score, precision_score, recall_score
from torch.utils.data import DataLoader
import numpy as np
from dataset import StreamDataset, data_select, data_select_mask, ParallelDataset
import torch
def init_weights(w, m='kaiming'):
if m == 'kaimin... | [
"newhand555@gmail.com"
] | newhand555@gmail.com |
cb49ea9751b360e8bbd4776dcadc2cf0ac212e79 | 6e8258a7209d6c26c4f8fd0293d4de04bbc6a499 | /assignment2/cs231n/classifiers/fc_net.py | e53105f15e14f72a1bef2de9ca09eb7b5a9a6e0d | [] | no_license | SalilJain/CS231N | 5c6c1c627352763d748f4dc6fc3207a005e4fca0 | 1a82105f61d71ce1e680b01225def8cd310e8128 | refs/heads/master | 2021-05-02T11:09:23.498591 | 2018-02-08T14:37:34 | 2018-02-08T14:37:34 | 120,771,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,739 | py | import numpy as np
from cs231n.layers import *
from cs231n.layer_utils import *
class TwoLayerNet(object):
"""
A two-layer fully-connected neural network with ReLU nonlinearity and
softmax loss that uses a modular layer design. We assume an input dimension
of D, a hidden dimension of H, and perform classific... | [
"salil@iMac.local"
] | salil@iMac.local |
1cf826f3434f222f6a1c0f07c95f350a136bcbdf | 975b2d421d3661e6770b601929d5f11d981d8985 | /msgraph/generated/identity_governance/lifecycle_workflows/deleted_items/workflows/item/versions/item/tasks/item/task_processing_results/item/task/task_request_builder.py | 74e143cd39a71216df1663f18b9b3b6904c52782 | [
"MIT"
] | permissive | microsoftgraph/msgraph-sdk-python | a7c551b85daadeebf76ec4ae12668664ea639b42 | 27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949 | refs/heads/main | 2023-09-03T21:45:27.989672 | 2023-08-31T06:22:18 | 2023-08-31T06:22:18 | 534,665,999 | 135 | 18 | MIT | 2023-09-14T11:04:11 | 2022-09-09T14:00:17 | Python | UTF-8 | Python | false | false | 4,988 | py | from __future__ import annotations
from dataclasses import dataclass, field
from kiota_abstractions.base_request_builder import BaseRequestBuilder
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAda... | [
"GraphTooling@service.microsoft.com"
] | GraphTooling@service.microsoft.com |
ce51b6f5e22af967bc66a411ca6233d7435f87f9 | 22de68c5ee09703196c0e3c7f80dbdfd08052444 | /eduportal/__init__.py | 089aeee24cd7a5bb7e2e3afa18f96f462160ddaf | [] | no_license | danielkwak81/eduweb | 4018b0d7bb736c43005b0f068deaf8d38a3e70f8 | 2c2e33634a1250fd407177c9ada3d231097ce60b | refs/heads/master | 2021-01-06T09:37:07.004412 | 2020-02-19T14:48:50 | 2020-02-19T14:48:50 | 241,282,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | from flask import Flask, render_template
app = Flask(__name__)
app.debug = True
@app.route('/')
def index():
return render_template('index.html') | [
"spacegem@hanmail.net"
] | spacegem@hanmail.net |
368ae4b7b7dec9859c614e448a364e6c36d5dae8 | dbc0c06b091befb8629d3692d70f360b48bc014f | /app_auth/urls.py | d32f9871249833569da4f2000b4b24189a285fa8 | [] | no_license | Guy-Sylvestre/Blog_Django_Basic | 042a28767eab85cf1177ca8b083196075dd23348 | 49320c76b387b1b697f53745ef45c7c2d1ba4af1 | refs/heads/master | 2023-07-27T05:05:51.184793 | 2021-09-06T16:27:13 | 2021-09-06T16:27:13 | 403,687,692 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | from django.urls import path
from . import views
urlpatterns = [
path('connexion/', views.login_blog, name="login-blog"),
path('inscription/', views.register_blog, name="register"),
path('deconnexion/', views.register_blog, name="logout"),
]
| [
"guysylvestre876@gmail.com"
] | guysylvestre876@gmail.com |
5aaf36d65f2c7c1dbb09cf57c4219b92bf214e2e | 1d3e2ee455d498cb47518b052db238b7c21e4f7e | /functions_task.py | 14d4d52fd7b85bba674bd1c177d845c7f2a04e53 | [] | no_license | dawoodalo/python | 7d564a6225fb1b67c3d3b741ac73d816f4eb06b8 | cbde6d98606a7b7a37f6044e97f67a17c466002d | refs/heads/master | 2020-06-29T12:15:20.282575 | 2019-08-16T14:47:54 | 2019-08-16T14:47:54 | 200,532,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | def check_birthdate(y,m,d):
import datetime
date_object = datetime.date.today()
past_check = date_object > check_birthdate
return past_check
def calculate_age(y,m,d):
from datetime import date
calc_year = date.today().y - y
calc_month = date.today().m - m
calc_day = date.today().d - d
print("You are %s year(s... | [
"Dawood@dlp-20.as5.sa-ap2.bih.net.ba"
] | Dawood@dlp-20.as5.sa-ap2.bih.net.ba |
a748b336fcd793f28754cc0d84d532703d2cbad0 | 6720b215ef1f519bdd05ab070b7b2d5d927f01f1 | /tests/test_onboarding.py | 80374c590f82ff89749c3589c53cf500347e0814 | [
"Apache-2.0",
"Python-2.0"
] | permissive | BunsDev/dydx-v3-python | 59c1628f7bf6ddc1ff4fbec10a9dd8d2d4283564 | 92cd856cc3c166d9b5349dda40153a60f9655b4f | refs/heads/master | 2023-08-29T02:00:58.475313 | 2021-11-05T00:46:20 | 2021-11-05T00:46:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,815 | py | from web3 import Web3
from dydx3 import Client
from dydx3.constants import NETWORK_ID_MAINNET
from dydx3.constants import NETWORK_ID_ROPSTEN
from tests.constants import DEFAULT_HOST
GANACHE_PRIVATE_KEY = (
'0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d'
)
EXPECTED_API_KEY_CREDENTIALS_MAINNE... | [
"noreply@github.com"
] | noreply@github.com |
1e3147ce017be5104caacd8c442fd114bdde63b9 | d0aff3e48f93cc9aeb9d523bd24f6e6da1432dc7 | /bridge/bridge/asgi.py | 639c557466ac712f6193fd43490b4fcf45c9f7f6 | [] | no_license | GodefroyCourtin/projet3-bridge | c4a362ae1b6a586fcc43b006a4d901e1f5a12129 | 0276cea354aa0fa2bbbd1c3ef679cb0150f815cd | refs/heads/main | 2022-12-27T22:48:45.379276 | 2020-10-16T12:09:05 | 2020-10-16T12:09:05 | 303,383,658 | 0 | 2 | null | 2020-10-16T12:09:06 | 2020-10-12T12:23:34 | HTML | UTF-8 | Python | false | false | 389 | py | """
ASGI config for bridge 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.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"courtin.godefroy@gmail.com"
] | courtin.godefroy@gmail.com |
f9fedff9e4d783a6823b9fb25ad4aa897ee8700d | 556e88a954cf031460ea7fdf3791eb968ca4fbdd | /fluent_python/chapter_10/ch10_vector_v3.py | 6491b78aa2e5ea74affc5864f33b6aa2955b4065 | [] | no_license | feng-hui/python_books_examples | c696243fcb8305be495f44d1a88a02e7f906b7bd | e38542db7be927cdaa5d85317a58a13b3a13ae25 | refs/heads/master | 2022-03-07T00:37:29.311687 | 2019-09-28T15:15:20 | 2019-09-28T15:15:20 | 122,941,867 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,568 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# @time : 2018-11-09 21:44
# @author : feng_hui
# @email : capricorn1203@126.com
import reprlib
from array import array
from math import sqrt
import numbers
class Vector(object):
type_code = 'd'
shortcut_names = 'xyzt'
def __init__(self, components):
... | [
"982698913@qq.com"
] | 982698913@qq.com |
16dac679155fab07d8d00cc3ffb06a639fe17af4 | 9053fc02207c8e913c1fd8547ee3d0581d69e709 | /main.py | deab52d8742cf243553820b62af4df7c5d08bfa1 | [] | no_license | neil-ash/PairBoost | 29ed58cd008ce7e85d46c3d24819c413d7b1a9f3 | 6bea58921223af6d6c391400514adf8393595229 | refs/heads/master | 2022-12-29T16:48:17.224758 | 2020-10-16T01:03:16 | 2020-10-16T01:03:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,149 | py | import numpy as np
from sklearn.preprocessing import minmax_scale
from sklearn.utils import shuffle
from sklearn.model_selection import train_test_split
from sklearn.svm import SVC, LinearSVC
from sklearn.tree import DecisionTreeClassifier
from sklearn.neighbors import KNeighborsClassifier
from sklearn.ensemble import ... | [
"noreply@github.com"
] | noreply@github.com |
e3d5233ed380d8424d31d8ec58827f40bb02cd72 | 38d7109b78e0d009759586f49f506ac25eac6c5f | /orca/topology/manager.py | 87b235f773094269199a88aef782950de6a366a9 | [
"Apache-2.0"
] | permissive | MoonkiHong/orca | 19694dfe01a1bfbed9e4911b3c80e66ee78874bc | 28267c23eff2886f7b22a539c6e77faa2a2a6223 | refs/heads/master | 2021-01-14T15:21:15.785498 | 2020-02-23T12:57:25 | 2020-02-23T12:57:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | import cotyledon
from orca.graph import drivers as graph_drivers
from orca.graph.graph import Graph
from orca.topology import linker, probe
from orca.topology.alerts.elastalert import manager as es
from orca.topology.alerts.falco import manager as falco
from orca.topology.alerts.prometheus import manager as prom
from ... | [
"zurkowski.bartosz@gmail.com"
] | zurkowski.bartosz@gmail.com |
fd9dedd40c5875b91d01842224c9c34416f4c108 | b07efb6ecf50e50f665dfc3a03aa56e61b2cb0b8 | /ProjetoFinal/Resto.py | 417ad6e2385e41f82ffd21b5978c382f1dd1a35e | [] | no_license | GiovanaPalhares/python-introduction | a4443d57d72dd37aeceaef3dccf8307432821c35 | fa6055cd8d11e3ad38db77949a8dd7fa80023aae | refs/heads/master | 2022-11-12T13:55:58.721560 | 2020-07-03T14:47:39 | 2020-07-03T14:47:39 | 272,278,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | def computador_escolhe_jogada(n, m):
computador_remove = 1
while computador_remove < m:
resto = n - computador_remove
if resto % (m + 1) == 0:
break
else:
computador_remove += 1
return computador_remove
print(computador_escolhe_jogada(2, 1))
| [
"61204787+GiovanaPalhares@users.noreply.github.com"
] | 61204787+GiovanaPalhares@users.noreply.github.com |
b0f80eb2b1f7e213f697b4799f1b0d39d340b773 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/cloud/videointelligence/v1p3beta1/videointelligence-v1p3beta1-py/google/cloud/videointelligence_v1p3beta1/services/streaming_video_intelligence_service/transports/__init__.py | a2b915bf9cbce5897c92f4aaabe34406b5a83a45 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
8a26720902cf836409e8ebd5f93052f2c796be52 | 4254a8927f90af6278ccb4e3f4df8208e39f4a22 | /lib_analysis/corr_util.py | d97f33b5dd6ca1be345fbadc14cc7094d66286bd | [] | no_license | cmcneile/lqcd_analysis | af763cd78ec198d57496acf669946b54dccb3e91 | 8ce5e7308acef3d7b4eee7bcbc2476f69c54f0ad | refs/heads/master | 2021-01-20T15:36:39.510706 | 2019-10-31T15:22:33 | 2019-10-31T15:22:33 | 63,353,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,808 | py | #
# Utilities for analyzing correlators
#
#
import os.path
import re
import math
#
# load the correlators
#
def count_sample2( dirname , tag ):
print "Counting files in " , dirname
f = os.listdir(dirname)
L = []
for line in f:
if re.search(tag,line) :
print line
L.append(line)
re... | [
"craig.mcneile@plymouth.ac.uk"
] | craig.mcneile@plymouth.ac.uk |
689ac4f69d3187d98b49df89fa50967afc3b4e37 | c97a1581873a1d1c4dfa103191a4c604a2c4a5f6 | /Violent Python Scripts/Chapter 2/05. Botnet.py | f66055781c7aec1c366bd0ea7c9c00de723fa4e0 | [] | no_license | NorHereNorThere/ViolentPythonScripts | d10591151db347fd2e944393f552e2403f2cdce0 | 950573b22469c25ae324488a640a0a38b2b0d1ed | refs/heads/master | 2021-07-26T19:29:51.010482 | 2020-05-04T11:40:37 | 2020-05-04T11:40:37 | 167,846,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | import argparse
from pexpect import pxssh
class Client:
def __init__(self, host, user, password):
self.host = host
self.user = user
self.password = password
self.session = self.connect()
def connect(self):
try:
s = pxssh.pxssh()
s.login(self.... | [
"forkunal@gmail.com"
] | forkunal@gmail.com |
dc22911d4c16baa6e34f9c880c9217005414e46d | a1b06fb10c9dcc3864721db69265a8680031c70d | /webapp/settings.py | 3f0f0d0b9103422568fc8d474023a22e521f01d0 | [] | no_license | sumkit/SavePablo | f183e771f0bfcf9591fa692155e1ffaef38d9353 | 02a99a6159cdfbef5daf403f3e432cc3ca0906bd | refs/heads/master | 2021-01-21T13:14:47.531211 | 2016-05-16T03:09:11 | 2016-05-16T03:09:11 | 52,162,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,202 | py | """
Django settings for webapp project.
Generated by 'django-admin startproject' using Django 1.8.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths... | [
"skitahar@andrew.cmu.edu"
] | skitahar@andrew.cmu.edu |
17ec92e3ac05477b8868ff0e22788a7ce32eae7b | bf683eb4a6080cf67669de90d1afdad53fccb738 | /Lib/site-packages/django/contrib/auth/views.py | 49fdda6e3b9e67e8b78fa213022329bba45d3e69 | [
"MIT"
] | permissive | mspgeek/Client_Portal | cd513308840aa4203554ebc1160f17f0dd4b17cf | 0267168bb90e8e9c85aecdd715972b9622b82384 | refs/heads/master | 2023-03-07T21:33:22.767108 | 2020-04-08T01:43:19 | 2020-04-08T01:43:19 | 253,946,635 | 6 | 0 | MIT | 2022-12-31T07:01:43 | 2020-04-08T00:43:07 | HTML | UTF-8 | Python | false | false | 22,536 | py | import warnings
from urllib.parse import urlparse, urlunparse
from django.conf import settings
# Avoid shadowing the login() and logout() views below.
from django.contrib.auth import (
REDIRECT_FIELD_NAME, get_user_model, login as auth_login,
logout as auth_logout, update_session_auth_hash,
)
from django.contr... | [
"kspooner13@yahoo.com"
] | kspooner13@yahoo.com |
1894781641cde3799ecfe8fa7fdd9baca4bf5e21 | f656a2bb66b8117cceb42ca98ce52efdef38916c | /retails/admin.py | 2a1cba2e820c2c970b2d7eaaebcd3270bdf03835 | [
"MIT"
] | permissive | Choi702/djangox-template | 67114bf5bb4c2ea29f0da773b5b294bdc8640049 | c87f4d36b49276e8b10558bfd25e684b261b0c76 | refs/heads/master | 2023-03-24T03:15:15.934178 | 2021-03-11T22:20:54 | 2021-03-11T22:20:54 | 346,569,885 | 0 | 0 | NOASSERTION | 2021-03-11T22:20:55 | 2021-03-11T03:47:50 | Python | UTF-8 | Python | false | false | 118 | py | from django.contrib import admin
from .models import Retail
# Register your models here.
admin.site.register(Retail)
| [
"jaeychoi1@gmail.com"
] | jaeychoi1@gmail.com |
beb821f3cc90f44821a938294045ee17ad8ac929 | 8fde060e1f1ce83f1b095a865d1d0bfb35897d92 | /help_me_decide/settings.py | e6f8e111edc5320ac428b74a2a82a10f1e2ade4f | [] | no_license | theadityat24/help_me_decide | eba911ca4af2fa5574039c78cf6bb538c1070adc | 7fd91239b29f027b9a45672f8b431c0dde7fa1fc | refs/heads/master | 2022-07-21T06:47:09.704235 | 2020-05-17T14:32:41 | 2020-05-17T14:32:41 | 264,680,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,110 | py | """
Django settings for help_me_decide project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import ... | [
"52205250+theadityat24@users.noreply.github.com"
] | 52205250+theadityat24@users.noreply.github.com |
ab79f50b8cf2c03b8bc2c37cd7454d33601b2013 | 005c50fb5d059612e980007a32ee0aff04b46b56 | /utils/custom_messages.py | aa05463e3c712702c31023c7be98d5a45323cf1a | [] | no_license | abdul-mumeen/The-Dojo | 53278ed86a09291f0d3e33d055481e7f86891e98 | be2bf296d9aed939d60d20ea3c76535038b93bf2 | refs/heads/master | 2021-06-12T15:37:59.060767 | 2017-03-15T18:45:05 | 2017-03-15T18:46:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,801 | py | invalid_command = (
'Invalid Command: the value(s) are not entered' +
' correctly!\nKindly check the usage below'
)
unexpected_error = "The operation failed due to unexpected error!"
welcome_message = (
"\t\tWelcome to The Dojo Office Allocation Program!\n"
"\t\t\t(type help for a list of commands.)\n"... | [
"abdulmumeen.olasode@andela.com"
] | abdulmumeen.olasode@andela.com |
a657e6d4c9173f92b431711e52ec68f74ebbd3f6 | d755b136be415824dba66c5ae3bd5b39f3e765be | /learning_logs/models.py | 848e6b31c08022660783029a67e7fc6daf61eea9 | [] | no_license | mingsec/mingsec-learning-log | dede846a201a18393f824d014a1261dc05ce7b9d | e4e46e48e9a3647969ddc0633911ed9fca7d0493 | refs/heads/master | 2020-04-04T19:01:06.403605 | 2018-11-12T01:34:29 | 2018-11-12T01:34:29 | 156,188,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
#在此处创建你的模型。
class Topic(models.Model):
"""用户学习的主题"""
text = models.CharField(max_length=20)
name = models.CharField(max_length=40)
date_added = models.DateTimeField(auto_now... | [
"nikit@qq.com"
] | nikit@qq.com |
9c991ec69bad62640f04f63e38a2696ca97388f3 | adce51841e863bb3d678b1619102fc5f7db2da0f | /src/model.py | b6fbb8115aa7401d7364447ad84f22eb4d81dfa5 | [] | no_license | bcaitech1/p2-tab-Jo-ad-fontes | 489383d2df9c7d731452b4c036b5486ae6a83e1b | 5dfbf23738880fc327cb3e14d2bbc2aeb28943f2 | refs/heads/main | 2023-04-16T06:59:47.556695 | 2021-04-26T11:48:21 | 2021-04-26T11:48:21 | 360,066,250 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,669 | py | import pandas as pd
import numpy as np
import os, sys, gc, random
import datetime
import dateutil.relativedelta
import wandb
from sklearn.model_selection import StratifiedKFold, TimeSeriesSplit
from sklearn.metrics import roc_auc_score
import lightgbm as lgb
import xgboost as xgb
from catboost import CatBoostClassi... | [
"choa873@gmail.com"
] | choa873@gmail.com |
e47193ed11bd9d0fe2046a3291cee676d776ccd3 | ac8ffabf4d7339c5466e53dafc3f7e87697f08eb | /python_solutions/1425.constrained-subsequence-sum.py | 4038454a87a6aa43af1ce0804ead5dafa93468e9 | [] | no_license | h4hany/leetcode | 4cbf23ea7c5b5ecfd26aef61bfc109741f881591 | 9e4f6f1a2830bd9aab1bba374c98f0464825d435 | refs/heads/master | 2023-01-09T17:39:06.212421 | 2020-11-12T07:26:39 | 2020-11-12T07:26:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,261 | py | from collections import Counter, defaultdict, OrderedDict, deque
from bisect import bisect_left, bisect_right
from functools import reduce, lru_cache
from typing import List
import itertools
import math
import heapq
import string
true = True
false = False
MIN, MAX = -0x3f3f3f3f, 0x3f3f3f3f
#
# @lc app=leetcode id=1425 ... | [
"ssruoz@gmail.com"
] | ssruoz@gmail.com |
e8a25edf6cf55a7d26838fd9f347dbeacacfc73f | 188fa261446cee9fc1b56029e884c8e74364a7f4 | /huseinhouse.com/MBTI-Study/soaning/function.py | c72af9fc818dc9cea5ec2ca6b50fa4a8414cc176 | [
"MIT"
] | permissive | huseinzol05/Hackathon-Huseinhouse | 026cc1346afb127aa2675be94a818ebf35f72bb5 | 6796af2fe02f10d7860ac8db27bd24fa27b8bb01 | refs/heads/master | 2021-06-29T23:04:35.027212 | 2020-09-07T04:01:49 | 2020-09-07T04:01:49 | 147,768,669 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,469 | py | import textract
import re
import pandas as pd
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.pipeline import Pipeline
from sklearn.linear_model import SGDClassifier
from sklearn.preprocessing import LabelEncoder
import sklearn.datasets
import nltk
nltk.data.path.append('/home/husein/nltk_data/... | [
"husein.zol05@gmail.com"
] | husein.zol05@gmail.com |
50d26aab78618b859e96ab1d988d23e0c79009b2 | 992a31c82c3c5b8d7aea6ebcb04719daf69c0260 | /frasco_users/jinja_ext.py | 94dabfe6172f538e36f0c834a7677a21b6738dd3 | [
"MIT"
] | permissive | frascoweb/frasco-users | 6b93772c35e929eefc54eeb38373df9f9c50d450 | 16591ca466de5b7c80d7a2384327d9cf2d919c41 | refs/heads/master | 2020-12-23T18:13:23.273442 | 2018-12-14T15:24:05 | 2018-12-14T15:24:05 | 31,929,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,305 | py | from jinja2 import nodes
from jinja2.ext import Extension
from frasco.templating import jinja_fragment_extension
from flask_login import current_user
class LoginRequiredExtension(Extension):
"""Jinja extension that adds a {% login_required %}{% endlogin %} block.
The content will only be outputted if the user... | [
"maxime.bouroumeau@gmail.com"
] | maxime.bouroumeau@gmail.com |
b0fb2160ae3308b14f82c19fd930021f3db68660 | b8d286c69d89ea42f532c2784ec2aa1633c57d8f | /tests/test_devices/test_snmp_handler_interface.py | 18fd9b196f28aff00a5d291019c027a4e5ac06f7 | [
"Apache-2.0"
] | permissive | dirkakrid/cloudshell-networking-devices | 460f85268998f6403fb1a0567d8303e0e92ace27 | 6e62b8ab4c1d8dbe8a68d6ff2d34094b3b90a548 | refs/heads/master | 2021-01-21T19:40:12.388282 | 2017-05-10T13:20:01 | 2017-05-10T13:20:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | import unittest
from cloudshell.devices.snmp_handler_interface import SnmpHandlerInterface
class TestSnmpHandlerInterface(unittest.TestCase):
def setUp(self):
class TestedClass(SnmpHandlerInterface):
pass
self.tested_class = TestedClass
def test_get_snmp_service(self):
""... | [
"anton.p@qualisystems.com"
] | anton.p@qualisystems.com |
7563930f056c4b2e3cdb6d402f35c1cb25e23e79 | c3d8fa3d29da6d809cf2a35904124a84223ba6d3 | /pelicanconf.py | 412fb47f05c204b84a22c32c99d4eee423ac30a2 | [] | no_license | moraleseconomia/pelican-netlifyCMS | ee70911509349185227b028ce7260e91469d5b0d | 140f329b4442122d2068aa24460ebf0646036485 | refs/heads/master | 2021-01-02T20:33:36.751524 | 2019-05-15T12:44:17 | 2019-05-15T12:44:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
SITENAME = "Create Insurance"
SITEURL = "localhost:8000"
LOAD_CONTENT_CACHE = False
PATH = "content"
OUTPUT_PATH = "dist"
TIMEZONE = "GMT"
DEFAULT_LANG = "English"
# Feed generation is usually not desired when developing
FEED_A... | [
"danny.burnett@brokertech.co.uk"
] | danny.burnett@brokertech.co.uk |
275e33e9e41f58b015be34ecee98851acc81ef13 | 540eca7619a4b91424f1d1f269e9ef2c31e2321b | /test/functional/abandonconflict.py | 6919a062c4c70bd4043a8f696a20358c3b68652f | [
"MIT"
] | permissive | Roshanthalal/RECAP-Core | 66406b8327ae233dd507b232e049a9acf10539b1 | ade84a0a11fe6d3769e7256c8f5117b9480d7e60 | refs/heads/master | 2022-11-19T10:05:32.551958 | 2020-07-27T05:03:06 | 2020-07-27T05:03:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,714 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the abandontransaction RPC.
The abandontransaction RPC marks a transaction and all its in-wallet... | [
"shamim.ice.ewu@gmail.com"
] | shamim.ice.ewu@gmail.com |
24761c6b683e51ac7360d6e904cff18de7631d50 | 85f46093b5adca2b40927a446cdec1e7cf94f782 | /morvanzhou scraping educate/accelerate scraping/asyncio_scraping.py | 38e500e21e33867c854a552d8edf77d5f4863f3a | [] | no_license | Jade-Ray/python_scraping_learn | a9c118c6bc9d19673f6b06379a863bd48ce26ec7 | 6dc6845f52de99a0b7d45ac523f969a820aa6301 | refs/heads/master | 2020-04-15T01:15:23.707352 | 2019-01-29T15:40:42 | 2019-01-29T15:40:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,971 | py | import aiohttp
import asyncio
import time
from bs4 import BeautifulSoup
from urllib.request import urljoin
import re
import multiprocessing as mp
base_url = "https://morvanzhou.github.io/"
# base_url = "http://127.0.0.1:4000/"
# DON'T OVER CRAWL THE WEBSITE OR YOU MAY NEVER VISIT AGAIN
if base_url != "http://127.0.0.... | [
"503976309@qq.com"
] | 503976309@qq.com |
bd7ae759e1b554b45f9f64006950c113633b77d5 | ce89a3a1e0fe4b5241c70ba7a3b8cb3bc5714901 | /src/web/nonebot_hk_reporter/__init__.py | 9d28b3fe761f0247318a66bfb9a8888fd72df879 | [
"MIT"
] | permissive | FzWjScJ/CoolQBot | 63d49480606e6a062adfea29d07dc7923be9b5f7 | c02f0a103cfda9d3e52f6301fe57afc2bc738fe0 | refs/heads/master | 2023-07-16T17:54:03.503980 | 2021-08-29T09:43:33 | 2021-08-29T09:43:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,566 | py | """ nonebot-hk-reporter
修改自 https://github.com/felinae98/nonebot-hk-reporter
"""
from nonebot import CommandGroup, logger
from nonebot.adapters import Bot, Event
from nonebot.adapters.cqhttp import GroupMessageEvent
from nonebot.adapters.cqhttp.message import Message
from nonebot.adapters.cqhttp.permission import GROU... | [
"noreply@github.com"
] | noreply@github.com |
3b36a5574b0a4af2f6f7c3b9f078b85906312c9f | f42b1fced8d1176fab28dac26f212f8df2feb172 | /main.py | 1f48647ffbfd832cde485397d041a4ef1023f9c3 | [] | no_license | CalenDario13/DataManagment-NoSQL | 51b51071c25e2b20e9a3951c8745777f31b6b26d | 7590436fa5aae6f9260127fddf8718df6ca408c4 | refs/heads/master | 2022-09-24T00:14:05.625646 | 2020-05-30T10:03:41 | 2020-05-30T10:03:41 | 268,035,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,397 | py | import numpy as np
import pandas as pd
import time
from statistics import mean, stdev
import matplotlib.pyplot as plt
import pymongo
from bson.code import Code
import utils as u
m = u.mongo()
PATH = '/Users/Dario/Google Drive/DS/First Year - Secon Semester/DM/homeworks/hw_3/data/'
# Create collections:
'''
m.cr... | [
"noreply@github.com"
] | noreply@github.com |
46395836a66c9b240f1f6bf42244e1caaa28557f | 5995b7b3f3839fc09a9be15ee2e03af11bc8ecf7 | /Apps/Actividades/migrations/0002_auto_20171029_0036.py | 1d03e5e484a6d65981765375a17b0116b49bf6b1 | [] | no_license | AWS-UNIVALLE/events_ABC | f8a52f813ff5c95c86bdc171f7a9fa9adbe7d58a | 0015f9226cc39707c64936f9721fa6c673cd16f7 | refs/heads/master | 2021-05-16T04:47:41.591816 | 2017-12-14T21:56:32 | 2017-12-14T21:56:32 | 106,205,326 | 0 | 0 | null | 2017-12-14T22:04:52 | 2017-10-08T19:53:17 | HTML | UTF-8 | Python | false | false | 863 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-29 00:36
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('Usuarios', '0001_initial'),
('E... | [
"edvalencia09@gmail.com"
] | edvalencia09@gmail.com |
fe56a2ff0ffcf42e8944467913cdfb6f6c350f64 | 1fcca3bbc6b4477c65cfcd075f78211529b10082 | /Homework/Software_Testing/fibonacci_test.py | 26abb9f1c8c98ca47571d8af02e822d727500fad | [] | no_license | namt9/CS112.L21.KHCL | 48dc4140d47f6112c5331c86cb0f709a447f00b3 | eef9fc0f973a018c8779b7908e1152ce787abb14 | refs/heads/main | 2023-03-30T05:59:46.419485 | 2021-03-28T15:25:22 | 2021-03-28T15:25:22 | 352,474,682 | 2 | 0 | null | 2021-03-29T00:51:47 | 2021-03-29T00:51:46 | null | UTF-8 | Python | false | false | 1,534 | py | #Importing library and Add function
import unittest
import random
from fibonacci_1 import fibonacci_1
from fibonacci_2 import fibonacci_2
#Creating class unittest
class TestAdd(unittest.TestCase):
def test_1_manual(self):
with open("Test_in.txt", 'w+') as f_in: #Creating new file input
... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.