blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b49a2361ae55bc3867dea12e98fd98daf22d2e36 | d26c44a84a824f63cfdcf7c45d26f14940179701 | /core/utils.py | 30423ef39200ea368629d1ea5cad2a3e49f7a893 | [
"MIT"
] | permissive | TebogoNakampe/transfer-learning-for-sign-language-recognition | 5c8871b5f0207bacefcc2f516d69f090e16d3f91 | e0627115e6b68d6b85244d484011bb3895ccf4ee | refs/heads/master | 2022-12-05T13:31:22.665213 | 2020-08-29T18:42:02 | 2020-08-29T18:42:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | from pathlib import Path
import pandas as pd
from pandas import DataFrame
def package_path(package):
"""Returns the location of the passed package.
Arguments:
package: A package object.
Returns:
An absolute Path object pointing to the package's location.
"""
return Path(package.... | [
"roman.toengi@gmail.com"
] | roman.toengi@gmail.com |
6ff9a5a62dbdaa0426570202d6055465fd0c676f | 8b1af009f41fe550379f0380f7cc4d024646da3c | /usePackage.py | e82027e39a587bf84d7f8cec6e2c1c08582f5e58 | [] | no_license | jgk98f/Python-3-Fun | b976b9a4d3335fbbc8456f77e410b4e4b269fd51 | bf532c08c530751f304d9b998f56551933eeb80c | refs/heads/master | 2021-07-22T23:44:59.900597 | 2017-11-02T01:32:13 | 2017-11-02T01:32:13 | 109,201,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | #!/usr/bin/python3
##
# Author: Jason Klamert
# Date: 11/1/2017
# Purpose: My first package use in Python 3!
##
import Package
Package.hi()
Package.hello() | [
"noreply@github.com"
] | jgk98f.noreply@github.com |
1d568fd6979787b84243352a436927ec1d71fbed | 18772c6c85f9dc50ebde176d03a586bc4c7c031c | /apps/course/models.py | d96292a6ce8ebc513bad0ec5f24c77ab88035de3 | [] | no_license | hanjiangxue20/Online | 220d9ad919fc34ceacdf5c0b2aa1771f7a6f84c3 | 2ee25d1ea84b7e1c103ccd7829412781d21eb50d | refs/heads/master | 2020-03-13T20:17:35.139561 | 2019-01-28T10:03:04 | 2019-01-28T10:03:04 | 131,270,828 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,202 | py | from datetime import datetime
from django.db import models
# Create your models here.
class Course(models.Model):
"""
课程
"""
DEGREE_CHOICES =(
('cj','初级'),
('zj','中级'),
('gj','高级'),
)
name = models.CharField("课程名", max_length=50)
desc = models.CharField('课程描述',max... | [
"2038770992@qq.com"
] | 2038770992@qq.com |
3e306235707e7aa903ba5a43be32b5ea1def345c | 3535bac8b6641d7e6742e39de178508a208dbd0c | /checkout/migrations/0005_auto_20210227_1256.py | 83e32758c10a03e725cbb2142de3e28dc3b55f32 | [] | no_license | Lindsaykerr1994/Onwards-And-Upwards-Backend | a5f397fdcc7e19c8d99b6087734a5786e475c53a | 3fc2e6862f1f62667c6c3daacdea12862034f681 | refs/heads/master | 2023-03-28T17:08:08.946017 | 2021-04-06T13:36:21 | 2021-04-06T13:36:21 | 336,790,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # Generated by Django 3.1.6 on 2021-02-27 12:56
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('checkout', '0004_auto_20210227_1250'),
]
operations = [
migrations.RenameField(
model_name='payment',
old_name='appointment_... | [
"lindsaykerr1994@gmail.com"
] | lindsaykerr1994@gmail.com |
cd388b1fa34c8b7c139387d2f9da86e2be08a184 | bf9c1aa7ac16d467921affa7381dae301e0a1308 | /apps/articles/urls.py | 4ba8201ad1d278b04f4c849955da1484c39b3dd6 | [] | no_license | clincher/ecigar | ec12223bbbcad383e30ea588babee0a89b15db9d | f534bee7ede5c3af882792616c440c7736193fd0 | refs/heads/master | 2020-12-24T15:14:18.688748 | 2016-12-26T00:29:44 | 2016-12-26T00:29:44 | 2,352,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | from django.conf.urls.defaults import patterns, url
from django.views.generic import ListView, DetailView
from models import Article
urlpatterns = patterns('',
# Products
url(r'^stat.html$',
ListView.as_view(model=Article),
name='article_list'
),
url(r'^stat(?P<slug>[0-9A-Za-z-_.//... | [
"va.bolshakov@gmail.com"
] | va.bolshakov@gmail.com |
56052fc5690dc0fbd9529a96cbe1b602c35676a9 | dfc827bf144be6edf735a8b59b000d8216e4bb00 | /CODE/postprocessing/Thesis/GaussBump/SimpleRead.py | d19224edb9ae2717dba2faecbed8532dbb7825c9 | [] | no_license | jordanpitt3141/ALL | c5f55e2642d4c18b63b4226ddf7c8ca492c8163c | 3f35c9d8e422e9088fe096a267efda2031ba0123 | refs/heads/master | 2020-07-12T16:26:59.684440 | 2019-05-08T04:12:26 | 2019-05-08T04:12:26 | 94,275,573 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,952 | py | import csv
from numpy.linalg import norm
from scipy import *
import os
from pylab import plot, show, legend,xlim,ylim,savefig,title,xlabel,ylabel,clf, loglog
from numpy import ones
wdir = "/home/jp/Documents/PhD/project/data/ThesisRedo2019/DryForced/FEVM2NoRegTol/12/"
sdir = "/home/jp/Documents/PhD/project/master/... | [
"jordanpitt3141@github.com"
] | jordanpitt3141@github.com |
e3683f15f1c1f8d0bfab9cf5561642086cd81dd5 | 824b494a9d789cb2afd1397cacb50b91efeb6fb9 | /redfox.py | 003ae78a290bf4a3acbbc3174266b1a8cbfb902d | [] | no_license | zymil/RubberDucky-Hunter | 6cada22b9d68fddf59dd079434e8a5bf7a343d04 | d363b3cd35cfcbdc3994ffca47df04a0224819e8 | refs/heads/main | 2023-08-30T20:18:01.519497 | 2021-11-16T19:32:15 | 2021-11-16T19:32:15 | 322,376,724 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | from pynput.keyboard import Key, Listener
import logging
import time
import ctypes
#.pyw fica invisivel
prevTime = 0
def timeElapsed(start, end):
delta = end - start
return delta
def stop(key):
if key == Key.esc:
return False
def keypress(Key):
global prevTime
now=time.... | [
"noreply@github.com"
] | zymil.noreply@github.com |
74be85ae36daaeda3ba64f5a7f31c7a1529b699e | 1c41c592389d45d1d933d5063cbbf08d02128816 | /parse.py | 9268d64a6f169992ede36775aa3d41f5421ff269 | [] | no_license | oscarkraemer/monitorsite | d2dba3f84fb2b7674e8d1f43772bdf829b2d7a4d | 024ed61e1b088f87fdf00ee4f81a5bb7de88d2ec | refs/heads/master | 2021-01-10T22:00:40.817990 | 2014-08-13T13:58:44 | 2014-08-13T13:58:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | #!/usr/bin/python
import os
worda = '</li> <li> <a href="'
wordb = '" tar'
wordc = worda + "http"
wordNot = "://dashb-ssb"
print "var links =["
with open("source.html") as file:
for line in file:
if (wordc in line) and (not wordNot in line) :
x = line.index(worda)
y = line.index(wordb)
print ... | [
"carloscarkraemer@gmail.com"
] | carloscarkraemer@gmail.com |
a7bb04d8878e8e6537e23b80cfc69d208b58298b | a317b83f20068b15086276046344c92db4743d4d | /test/08_manylinuxXXXX_only/cibuildwheel_test.py | 69c28fcdf413a2effc5e7a9ab8e511d549bff471 | [
"BSD-2-Clause"
] | permissive | mtreinish/cibuildwheel | 13b5e010d70847ed45aeab760d67b318d09c28d6 | 973ecf53b3e654ec998928ddd5f39169c1fd6ead | refs/heads/master | 2020-12-19T08:20:44.573759 | 2020-01-19T01:07:33 | 2020-01-19T01:07:33 | 235,678,862 | 0 | 0 | NOASSERTION | 2020-01-22T22:19:02 | 2020-01-22T22:19:01 | null | UTF-8 | Python | false | false | 1,194 | py | import os, pytest
import utils
@pytest.mark.parametrize('manylinux_image', ['manylinux1', 'manylinux2010', 'manylinux2014'])
def test(manylinux_image):
project_dir = os.path.dirname(__file__)
if utils.platform != 'linux':
pytest.skip('the docker test is only relevant to the linux build')
# build... | [
"noreply@github.com"
] | mtreinish.noreply@github.com |
876ed83ba6bdb4eb06e312ab60f046c7fccfd56f | d29f24a74972a4f25d5e64beaf973c20fcff9f15 | /Task8(Statistics Questions)/Binomial Distribution II.py | 38625e5e00338a08418c0f7984d6ba6841f77fdd | [] | no_license | jadhavmayur/innomatics_internship_APR_21 | c5490126ca49c6b7838c537defd73620cd988c88 | 1ee6d6c3df907f96a4fa13ec8bd2c95d61316b7a | refs/heads/main | 2023-05-30T17:33:07.631679 | 2021-06-30T05:20:57 | 2021-06-30T05:20:57 | 363,411,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
def fact(a):
fact_a=1
for i in range(1,a+1):
fact_a=fact_a*i
return fact_a
def comb(a,b):
m=fact(a)
n=fact(b)
r=fact(a-b)
comb=m/(n*r)
return comb
f,g=map(int,input().split())
g=g
d=2
p_s=f/100... | [
"noreply@github.com"
] | jadhavmayur.noreply@github.com |
67609da91082ac8c072982adcffd6dfb9232253c | 15f7c52c87376c62ff79cb0b5955bd09e471b119 | /LearnCython/Week1/Examples/animal_list.py | e4757e6ba94f80ea1a9025be91b5ad77b958cecb | [] | no_license | rkillam/LearnPython | 6a7d7be75f44ab4f008ee88b174521a39453b06e | ebf8f1ed150d4ad1e9cf8f1ad464ecbcc41c3c7d | refs/heads/master | 2021-01-22T01:05:40.035312 | 2015-11-02T19:16:34 | 2015-11-02T19:16:34 | 41,547,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | import animal_class
def make_animal():
name = input('Name > ')
noise = input('Noise > ')
return animal_class.Animal(name, noise)
def get_query():
name = input('Name > ')
noise = input('Noise > ')
return name, noise
def menu():
print('add to add an animal')
print('find to find an add... | [
"richard.killam@gmail.com"
] | richard.killam@gmail.com |
afdd51818b626fec3bf43a0127ea2a00c1b514e9 | 977209e7e742e0e72d854e290ed74118a6f5565f | /dcard.py | 9b4492e648aeaf071a726e1eaeb4e3c6ddd39e3e | [] | no_license | willlaiwk/python-learning | 4a660f24bf7f2082248343fb72ded20591ebf874 | a8234f2f801abde816069636210ef6cce0f4b2fb | refs/heads/master | 2020-03-13T04:51:41.069273 | 2018-04-25T08:17:00 | 2018-04-25T08:17:00 | 130,971,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | import re
import requests
from bs4 import BeautifulSoup
url = 'https://www.dcard.tw/f'
resp = requests.get(url)
soup = BeautifulSoup(resp.text, 'html.parser')
dcard_title = soup.find_all('h3', re.compile('PostEntry_title_'))
print('Dcard 熱門前十文章標題:')
for index, item in enumerate(dcard_title[:10]):
print("{0:2d}. {1... | [
"will.lai.wk@gmail.com"
] | will.lai.wk@gmail.com |
6c3e7fc9c00e28e7d4c427f240777b256f2819b6 | 4aa79c6400a98dba78273d7d172dae19e0e1ffd4 | /solutions/passengers/exploit.py | 62cdf9df3a619dc6f4c49f99988d1d228bd4740b | [
"MIT"
] | permissive | 0MazaHacka0/qctf-starter-2018 | b72d34b882e7b6c0e7e32b59d4dd931f5dea4a0a | f4eef0fd41d777661b9fbcc61dcee9709d9f6268 | refs/heads/master | 2020-04-08T09:18:26.837344 | 2018-03-14T06:43:54 | 2018-03-14T06:43:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,504 | py | from pwn import *
def apply(pc, fname, lname, country, age):
pc.recvuntil('>> ')
pc.sendline('1')
pc.recvuntil(': ')
pc.sendline(fname)
pc.recvuntil(': ')
pc.sendline(lname)
pc.recvuntil(': ')
pc.sendline(country)
pc.recvuntil(': ')
pc.sendline(age)
def show_applicants(pc):
... | [
"mpivko@yandex.ru"
] | mpivko@yandex.ru |
10cf35387c58f6777201f92dc51ac6d979c06436 | def03550c8f728635be1628e49cdbd09b90675d6 | /google-python-exercises/basic/string1.py | a7a7fc92e32a86487f8dba78295242c72961ded4 | [
"Apache-2.0"
] | permissive | tiesnoordhuis/python | ba025fb44faec7210cb28e55f9a2296da25bdffe | 3dd760bb8705bee385ef0c76adb1807bb60aa382 | refs/heads/master | 2021-01-22T22:33:57.669980 | 2018-06-07T10:51:12 | 2018-06-07T10:51:12 | 85,548,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,560 | py | #!/usr/bin/python -tt
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
# Basic string exercises
# Fill in the code for the functions below. main() is already se... | [
"tiesnoordhuis@gmail.com"
] | tiesnoordhuis@gmail.com |
26ad7a8c0fa7479ac8feb34f02f69340084c2f5a | 8431c62f2862f4c6ea8609631806ca7ac3865b95 | /loopuntil1.py | 3602a2f9a83cf7e5e85b241e40c6d76e34b57810 | [] | no_license | sharikagunalan/guvi-task | 1bbab0cf81fcbf7e20b547da3a19c4e71b44d55e | 72cb650115f62fb6ce0b8169791510dbb260a796 | refs/heads/master | 2020-12-22T19:05:06.387582 | 2020-01-29T07:04:19 | 2020-01-29T07:04:19 | 236,901,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | while True:
print("enter the value")
x=input()
if(x=="q"):
break
| [
"noreply@github.com"
] | sharikagunalan.noreply@github.com |
b347b4988d4ba504e2cb28606864befe47bcb34d | 7ba6fc111bdbce41a640e17c3ed1d0b2cbd0f433 | /app/views/main.py | c430018c84a6375912a86244b89a9444558ad344 | [] | no_license | arush15june/circl-cve | 9a2a1680bdf353241afdf278a690a89c9cbec06b | 49b354d0a0a0d4d259f7458ea7c0e56e48301552 | refs/heads/master | 2020-07-28T19:12:22.189142 | 2019-08-07T11:50:21 | 2019-08-07T11:50:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,556 | py | # -*- coding: utf-8 -*-
import syslog
from flask import Blueprint, render_template, flash, redirect, url_for, request, jsonify, escape
from flask_login import login_required, current_user
from sqlalchemy import desc
import os
import form_class
import models
from utils import admin_required, gpg
main_blueprint = Blue... | [
"swapnilansh182@gmail.com"
] | swapnilansh182@gmail.com |
a12a2f37cb428903860417ef23a04a630d2274bd | 766c83688c5288c7bd4f862e686eb2de65808e83 | /src/simapi_simulation/fmu_simulator/simulator_api/sim_api.py | 6e84b69fcbf6a886900898276d89c075c7891328 | [
"MIT"
] | permissive | fabianoP/SimApi-Python | 086172d4416b29f503dbaec41462e9a5dbb19738 | 78548056b12aa96fea1a2a52b95b03ec22602199 | refs/heads/master | 2021-05-26T03:32:45.221631 | 2020-04-05T22:49:42 | 2020-04-05T22:49:42 | 254,034,535 | 0 | 0 | null | 2020-04-08T08:52:15 | 2020-04-08T08:52:15 | null | UTF-8 | Python | false | false | 1,824 | py | import subprocess
from bottle import request, route, run, response
import os.path
import json
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
def write_json(data, filename):
with open(filename, 'w') as f:
json.dump(data, f, ensure_ascii=False, indent=4)
def write_time_step(t... | [
"richard.brady@ucdconnect.ie"
] | richard.brady@ucdconnect.ie |
352497cdfd93bf546ea40d18ab959251d15042f2 | f199dbeb753133634e7e26bd54807fde96f36db6 | /src/ggrc/utils/query_helpers.py | 6cc5a5789a1dc077f3aeb64d212413a1c697be67 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | gaurav46/ggrc-core | 40a86f7a182c81f6902bcd26ea63487e028fbfc8 | 5f4ea7173ec1da7763bd5b4fef39858c8be07df2 | refs/heads/develop | 2023-02-06T05:15:17.866451 | 2016-12-01T14:17:27 | 2016-12-01T14:17:27 | 75,402,854 | 0 | 0 | Apache-2.0 | 2023-02-02T01:56:55 | 2016-12-02T14:32:52 | Python | UTF-8 | Python | false | false | 10,111 | py | # Copyright (C) 2016 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""This module helper query builder for my dashboard page."""
from sqlalchemy import and_
from sqlalchemy import case
from sqlalchemy import literal
from sqlalchemy import or_
from sqlalchemy import true
fro... | [
"egor.hamaliy@gmail.com"
] | egor.hamaliy@gmail.com |
9f6271f117c0ab0c85097b6f105c3ca916c22e44 | d02509b92518ed5f8346881b694e991a83ff53ea | /userauth/views.py | 5e3443eaf633855f7f121d9e3d91e25e667841dd | [] | no_license | navneet35371/nasa | 5d2e611f8e586c62101b01202ea24f6d350144cf | 1f4920c5eea4e0fa17c55dccbd3a18fb2c2ac52d | refs/heads/master | 2020-04-14T23:47:56.643495 | 2015-01-22T11:50:10 | 2015-01-22T11:50:10 | 29,232,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,432 | py | from django.shortcuts import redirect, render
from forms import UserProfileForm, UserForm
from django.http import HttpResponse, HttpResponseRedirect
from userauth.models import UserProfile
from django.contrib.auth import authenticate, login, logout
def register(request):
if request.method == "POST":
form =... | [
"navneet.anand@hindustantimes.com"
] | navneet.anand@hindustantimes.com |
ad22f84b58e508cdc703f33fb7ebed7d52fae2f5 | 6df6bc35c0d80019f78c91a58c9a15d8b2c7ea0e | /day19/main.py | d91ae61ceadb8a5e4e96aa1139ac19ae89dbf983 | [] | no_license | asek-ll/aoc2020 | 5d17393991eb09eec7db653983101c51c844037a | c4669b81d48d00c313710c00b7c2d58b6beef0ad | refs/heads/master | 2023-02-03T10:55:58.342577 | 2020-12-25T06:42:36 | 2020-12-25T06:42:36 | 322,400,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,384 | py | import sys
import re
if len(sys.argv) <= 1:
raise Exception("No inputs")
with open(sys.argv[1], 'r') as f:
lines = f.readlines()
ll = [l.rstrip() for l in lines]
i = 0
rules = {}
while len(ll[i]) > 0:
id, content = ll[i].split(': ')
rules[int(id)] = content
i += 1
msgs = []
i += 1
while i < ... | [
"sopplet@gmail.com"
] | sopplet@gmail.com |
d18620da13c960ce0882d348267c07c270b7ad42 | 99970ce2ea23b10951a56ef9306b72c31e49f965 | /example.py | e262b83c9e0bdbcefb4b577e63e5ee2d926496c1 | [] | no_license | nrgriffith/weatherbox | a46445a2ae5454c0738a759cf5bfafd2adbb94c3 | 5d895a25f71c958dacd8dfa7423d08a090d13f60 | refs/heads/master | 2021-08-16T13:53:08.323029 | 2020-03-29T17:43:32 | 2020-03-29T17:43:32 | 141,052,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | #!/usr/bin/env python
import pywapi
import pprint
pp = pprint.PrettyPrinter(indent=4)
results = pywapi.get_weather_from_noaa("KIOW")
pp.pprint(results)
| [
"n.r.griffith@gmail.com"
] | n.r.griffith@gmail.com |
644fdd029bf79449f51c0f2c4eac8215ce5af9ee | b3c0c6fd366062ce7dcd71b3fe24e5923000cbd3 | /manage.py | e4994cccd77cdabb2d5cda30fd4bc28e88dbec97 | [] | no_license | MPPilon/Cask | efad776d0d382c6c4834fd4f8c41172f3287f0e9 | 7e083808842d1d3bf003a95f5e5dda5e3fd3f81e | refs/heads/master | 2021-01-18T23:08:09.223753 | 2017-04-19T16:38:07 | 2017-04-19T16:38:07 | 87,090,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "MobDevProject.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure tha... | [
"MPPilon@gmail.com"
] | MPPilon@gmail.com |
a83179b42d24a1910173bf0fce81b41c9b7b7940 | 40ae6e73b128fe1cbf103774efc0dfa71f000444 | /tabuada.py | 5a6a328b1737058b062599d81bcf206885d01ae4 | [] | no_license | ThiagoTuissiPaiao/tabuada | 33ee9f49074a9a351e78d161e9534388bf450af6 | 2e64b69c9c24b9906b522047fb9e0694f7937dc9 | refs/heads/main | 2023-04-14T02:17:21.296690 | 2021-04-13T02:21:09 | 2021-04-13T02:21:09 | 357,398,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | num = int(input('Digite um número para ver a sua tabuada: '))
print('{} x {:2} = {}'.format(num, 1, num*1))
print('{} x {:2} = {}'.format(num, 2, num*2))
print('{} x {:2} = {}'.format(num, 3, num*3))
print('{} x {:2} = {}'.format(num, 4, num*4))
print('{} x {:2} = {}'.format(num, 5, num*5))
print('{} x {:2} = {}'... | [
"noreply@github.com"
] | ThiagoTuissiPaiao.noreply@github.com |
bfa24597022d4728e653fc7e9ace43a97674c837 | 17ca59add5aa68394f57f918944feda400887520 | /video/merge_video.py | 4e8eb0b1449a73c534351eab853acc9e78e18bae | [] | no_license | KHUtone/VLOC | 9064024805b902dd49e53c342c6a12d9e4d38add | f7e1d2f1f7a31b86c83d18b0f0602d1a7fc718d0 | refs/heads/master | 2020-11-28T02:00:43.425217 | 2019-12-31T13:10:30 | 2019-12-31T13:10:30 | 229,674,564 | 0 | 0 | null | 2019-12-31T12:59:47 | 2019-12-23T04:10:48 | Java | UTF-8 | Python | false | false | 891 | py | import cv2
import numpy as np
import os
def frames_to_video(inputpath,outputpath,fps):
image_array = []
files = []
for path in inputpath:
files = [f for f in os.listdir(path) if os.path.isfile(os.path.join(path, f))]
#files.sort(key = lambda x: int(x[5:-4]))
for i in range(len(files)):
... | [
"rladnjsrb9999@naver.com"
] | rladnjsrb9999@naver.com |
36f0c2503555c6c05554aba80e07ccabf726f6b2 | 7337c58669cba9e87adeb195a7bfe689eb75ff58 | /src/edinet/app/eagle/migrations/0001_initial.py | 4db83e60a3d07f24a6e1a2767ae8ab1f7ca2d554 | [
"Apache-2.0"
] | permissive | ryuichi1208/air-pipeline | 71d6542f6cced966d5877f1f56baa42639b4f4c2 | c98382ea95cbef6a7dc529281a474ee33bede7cb | refs/heads/master | 2023-05-28T15:00:35.312378 | 2022-11-16T17:00:21 | 2022-11-16T17:00:21 | 229,581,131 | 0 | 0 | Apache-2.0 | 2023-05-08T20:29:24 | 2019-12-22T14:33:50 | Python | UTF-8 | Python | false | false | 5,017 | py | # Generated by Django 2.2.2 on 2019-07-03 04:01
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Company',
fields=[
... | [
"ryucrosskey@gmail.com"
] | ryucrosskey@gmail.com |
28a18024931d35956963b6fac5363369c4a32ded | 47d6351c6a45b448857da5d4b597eb1d752d8612 | /newnew_collect.py | b99ea5990f9587fb6357fa278b372afe6f6db3b1 | [] | no_license | PotatoInHotToffeen/shixisenganalyse | 3074d02e902fab8f593d0515de801e307ade66af | 1fa14a6bf2ac811420ec8586b8df428a8e928a3c | refs/heads/master | 2020-03-13T03:03:44.123848 | 2018-04-25T02:52:16 | 2018-04-25T02:52:16 | 130,936,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,529 | py | # -*- coding: UTF-8 -*-
import re
import requests
import MySQLdb
import time
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
from cStringIO import StringIO
from fontTools.ttLib import TTFont
_pat_font_content = re.compile('myFont; src: url\("data:application/octet-stream;base64,(.+?)"')
_pat_font = re.compile... | [
"786757336@qq.com"
] | 786757336@qq.com |
4afd37c750cfc496c579ea48617490c7e9cfc5cf | 4f428027c235d4567d436efae6861200d8ae661c | /easypadel/templatetags/mathtools.py | 39d19eb72dabf777fe2cc6b47ad0676bdc21c50f | [] | no_license | jorgeron/mytfg | 058008225f73cfb72c4af307162f7d14e913e2f1 | 879571674d7845c46520a554ac27efe2f10fbedc | refs/heads/master | 2021-01-20T14:54:18.755250 | 2017-06-01T14:21:39 | 2017-06-01T14:21:39 | 82,786,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | from django import template
register = template.Library()
@register.simple_tag()
def porcentaje(parte, total, *args, **kwargs):
return (parte*100)/total | [
"jorgeron1993@hotmail.com"
] | jorgeron1993@hotmail.com |
6c708d71414961bfd27dd63946aaa70d181350d5 | 6dc463ce97fc275787cfdef563317f3f7e4f5fcf | /radio_table_widget_app/widgets.py | 557a613116b686330885748746143cf0bdc904d1 | [] | no_license | chapkovski/table_radio_widget | 7ea7506d801213cb24a832096fbf88ab7eb89c92 | 320a2b2f5462c6abe8bd0a355b1b4ac8defe3adf | refs/heads/master | 2020-03-22T09:29:23.298900 | 2018-07-06T17:24:23 | 2018-07-06T17:24:23 | 139,840,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | from django.forms import RadioSelect
class TableRadio(RadioSelect):
template_name = 'widgets/multiple_input.html'
option_template_name = 'widgets/input_option.html'
def __init__(self, top_row=None, bottom_row=None, attrs=None, choices=(), ):
self.top_row = top_row
self.bottom_row = bottom... | [
"chapkovski@gmail.com"
] | chapkovski@gmail.com |
ee1b7226a561379a914fa3fd752b3bd10cec0b11 | 4b5ef8e75387ffdc2e3e310938aa1ccad5fb3a45 | /drop_and_grab_algorithm.py | 759b12c43e99e2fe571faf383ef7ee68155a14f3 | [] | no_license | JeDeveloper/qscout | baa35c884a69880ffbcea93a14d22e382f4c6bc7 | 93fa90d82eec22fde09940dccfd2a1ab93b7f825 | refs/heads/master | 2023-02-21T18:34:51.542873 | 2021-01-11T21:34:41 | 2021-01-11T21:34:41 | 320,684,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,693 | py | from qgis.core import (QgsProcessingParameterFile)
from qgis import processing
from .qscout_pin_algorithm import *
from .pin_dropper_algorithm import *
from .grid_aggregator_algorithm import *
from .value_grabber_algorithm import QScoutValueGrabberAlgorithm, band_field
class DropAndGrabAlgoithm(QgsProcessingAlgorithm... | [
"joshuaevanslowell@gmail.com"
] | joshuaevanslowell@gmail.com |
e3bf9ce6464b09b76421075ddc04b704216d9611 | 2625c81908b8ba4f9acd7287f19aa43897a01490 | /1. MNIST and softmax/1.MNIST_softmax.py | 3873f53606711e1f5c00128a4bde4ab1d42c5a78 | [] | no_license | George-wu509/Deep-learning-team-tutorial | 534c0a5662303e758351e768255a00b311bedd00 | b44a66301dd218e8743c4389c167304e4a75132a | refs/heads/master | 2020-12-24T21:45:13.265592 | 2016-05-05T03:18:34 | 2016-05-05T03:18:34 | 57,171,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,732 | py |
# ------ This is Deep learning team tutorial example1: MNIST and softmax regression -----
# Download MNIST data from server using input_data.py
# You can use the following link to get input_data.py code:
# https://github.com/tensorflow/tensorflow/blob/r0.8/tensorflow/examples/tutorials/mnist/input_data.py
# Use inp... | [
"wu509@purdue.edu"
] | wu509@purdue.edu |
d706cbc2c581af29582c417ee42d30c6d487eef0 | ad715f9713dc5c6c570a5ac51a18b11932edf548 | /tensorflow/lite/testing/op_tests/scatter_nd.py | 8a365ae5b96365937c5c2c28468aa81e1870ed84 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | rockzhuang/tensorflow | f1f31bc8edfa402b748c500efb97473c001bac95 | cb40c060b36c6a75edfefbc4e5fc7ee720273e13 | refs/heads/master | 2022-11-08T20:41:36.735747 | 2022-10-21T01:45:52 | 2022-10-21T01:45:52 | 161,580,587 | 27 | 11 | Apache-2.0 | 2019-01-23T11:00:44 | 2018-12-13T03:47:28 | C++ | UTF-8 | Python | false | false | 2,856 | py | # Copyright 2019 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 |
29a18faaa50dc981225e58ae908f3d2125f8b8f8 | 0e65bf60d9ffc64bbb8e300b90fa87b27316eb9b | /app/view/dialog.py | 9697a0346dae4342898309a67634342b626f254a | [] | no_license | artu-hnrq/Ine5420 | ee2996f7c096982f375b658beb90bab7aa3bc786 | b32c8841dcfc02be4c2c7517a7f810899ae11a85 | refs/heads/master | 2022-09-07T20:30:34.349925 | 2020-03-09T02:52:41 | 2020-03-09T02:52:41 | 202,533,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | from app.view import UserInterface
class Dialog(UserInterface):
def __init__(self, title, text):
super().__init__()
self.window.set_title(title)
self.builder.get_object("text").set_text(text)
self.builder.get_object("ok_button").connect("clicked", self.quit)
| [
"Arthur.Henrique.Della.Fraga@gmail.com"
] | Arthur.Henrique.Della.Fraga@gmail.com |
56e863d35664bee987c60e191072ea3ecebfd4c6 | 0ab0403303090c3ebaa6b55635c1247576eb1dbb | /models/quantize_affine.py | 8fea43ff96fb14aaacb4c3cf72634ca5ae07aaf4 | [] | no_license | silvrwolfboy/learning-compressible-subspaces | c8bc0d89c45f8894a318b2a74601a819deeb84a4 | 308f5216c7b0c15a0ebc88c7cec3e7d28c82b6c1 | refs/heads/master | 2023-08-28T06:32:33.669751 | 2021-10-27T16:22:28 | 2021-10-27T16:22:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,297 | py | #
# For licensing see accompanying LICENSE file.
# Copyright (C) 2021 Apple Inc. All Rights Reserved.
#
import collections
import numbers
from typing import Any
from typing import Optional
import numpy as np
import torch
from torch import autograd
from torch import nn
from .special_tensors import RepresentibleByQuant... | [
"mchorton@apple.com"
] | mchorton@apple.com |
20a405147dc239db1af8b180b78f4310c43f38b0 | ae66ad38a7b19c01f1099d671dd127716a5d4c34 | /accounts/migrations/0025_auto_20180511_1233.py | e1d9e06c37affbd3e572a0f042dd681de84ec054 | [] | no_license | selbieh/django-freelacer-website | 6fd1eb009e9b30738bfa59fa78f530144b273231 | 0971a7fc3dc7e63a1909bb6adf3a84d7d9083324 | refs/heads/master | 2022-11-22T19:07:48.470928 | 2019-11-24T12:24:26 | 2019-11-24T12:24:26 | 172,359,908 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | # Generated by Django 2.0.4 on 2018-05-11 10:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0024_auto_20180511_1229'),
]
operations = [
migrations.AlterField(
model_name='userprofile',
name='pic',... | [
"selbieh@gmail.com"
] | selbieh@gmail.com |
dbe6152c90a1d121fb9efa404084e4479ccfa844 | d245d44d742aee4a08c45263eda6ec42bb552dbd | /prac_1/sales_bonus.py | 65643e63980b21058ced7d680f128bb1c4b20996 | [] | no_license | mpearce19/CP1404practicals | d3b6afeddabd7193ed08ce17d40460aee8173126 | 270aed43ba7a8051cab83b13ba7b888ba222fbaa | refs/heads/master | 2023-01-05T11:41:28.147753 | 2020-11-05T00:58:14 | 2020-11-05T00:58:14 | 289,182,956 | 0 | 0 | null | 2020-09-09T01:07:47 | 2020-08-21T05:11:57 | Python | UTF-8 | Python | false | false | 403 | py | # 1.
"""
Program to calculate and display a user's bonus based on sales.
If sales are under $1,000, the user gets a 10% bonus.
If sales are $1,000 or over, the bonus is 15%.
"""
sales = float(input("Enter sales: $"))
while sales >= 0:
if sales < 1000:
bonus = sales * 0.10
else:
bonus = sales * ... | [
"mitchell.pearce@my.jcu.edu.au"
] | mitchell.pearce@my.jcu.edu.au |
8e22d1ea23f7ca524327b2070d521659d9c3922e | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /3gziWsCxqGwGGZmr5_11.py | 6392e84ea4d1c88aaa1154379e9f4d945b640bab | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | """
Given two integers as arguments, create a function that finds the largest
prime within the range of the two integers.
### Examples
fat_prime(2, 10) ➞ 7
# range [2, 3, 4, 5, 6, 7, 8, 9, 10] and the largest prime is 7.
fat_prime(10, 2) ➞ 7
# [10, 9, 8, 7, 6, 5, 4, 3, 2] and the largest prime... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
02572ac0d7a899647d2e88f1a95a0f55337c7e01 | fc1c1e88a191b47f745625688d33555901fd8e9a | /meraki/models/protocol_4_enum.py | a5a84ca844f12ecbee618d6942e1886545423e86 | [
"MIT",
"Python-2.0"
] | permissive | RaulCatalano/meraki-python-sdk | 9161673cfd715d147e0a6ddb556d9c9913e06580 | 9894089eb013318243ae48869cc5130eb37f80c0 | refs/heads/master | 2022-04-02T08:36:03.907147 | 2020-02-03T19:24:04 | 2020-02-03T19:24:04 | 416,889,849 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | # -*- coding: utf-8 -*-
"""
meraki
This file was automatically generated for meraki by APIMATIC v2.0 ( https://apimatic.io ).
"""
class Protocol4Enum(object):
"""Implementation of the 'Protocol4' enum.
The protocol of the incoming packet. Can be one of "ANY", "TCP" or "UDP".
Defaul... | [
"api-pm@meraki.com"
] | api-pm@meraki.com |
90a66989e2c6b11e2cbe3b5a40014ec1d1beba97 | 36aea5790cc01c652326f6f5a5722f13ee9d498b | /m-hackathon/review10.py | e2ac404b28fb62f31280b7fb25534873fad595d3 | [] | no_license | kev158/NguyenTrongDuc-c4t | 2d9162a69dfa87e8ee24b93e4a72dc8811031cff | e1fba30f06c77bb7ab3271475d7ba6da9771ae09 | refs/heads/master | 2020-04-18T22:04:00.041524 | 2019-04-20T14:59:10 | 2019-04-20T14:59:10 | 167,783,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | dangnhap = input("tên đăng nhập:")
matkhau = input("Nhập mật khẩu:")
e = input("Nhập email:")
print(dangnhap)
print(matkhau)
print(e)
print("đăng ký thành công") | [
"trongduc811@gmail.com"
] | trongduc811@gmail.com |
b0005938274e2ee8f47d15f16514ef24a1c06540 | eeb04894d014a7bdd5501b4901e5d9818a29bd89 | /ex63.py | dead2d0dd94ebd07dbc94cc8a45553f97b113d7e | [
"MIT"
] | permissive | amarelopiupiu/python-exercicios | c9952828154abc42befffbea1b4a5a25e4c7ca62 | 4c1c535bf09854c7ce43405a4b55a2302c0edcda | refs/heads/main | 2023-05-25T08:11:34.294453 | 2021-06-09T20:32:35 | 2021-06-09T20:32:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | # Desenvolva um programa que leia o primeiro termo e a razão de uma PA. No final, mostre os 10 primeiros termos dessa progressão.
pt = int(input('Diga qual é o primeiro termo: '))
razão = int(input('Diga a razão: '))
décimo = pt + (10 - 1) * razão
for a in range(pt, razão + décimo, razão):
print(a, end=' ')
print(... | [
"femahi2020@gmail.com"
] | femahi2020@gmail.com |
c94f3a57cfa500b7fe0a09ea6af43fa08b118a3b | ba11824525c7e41da98f343517e3c47f98bc81cf | /SpectralClusteringAndKMeans.py | 89979be1f7d7655fbbf9563ae4bb8a7032db4491 | [] | no_license | mani447/PCAImplementation_Kmeans_SpectralClustering | 4320fe56377a09f521b3fd3f78f3453a5e51bf9a | 580fec27bfb19def7149f232984488ca103cd484 | refs/heads/main | 2023-07-17T06:44:56.113871 | 2021-09-01T16:52:29 | 2021-09-01T16:52:29 | 402,136,454 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,223 | py | import numpy as np
from numpy import matlib
import pandas as pd
import math
from sklearn.cluster import KMeans
from matplotlib import pyplot as plt
import cv2
def LP_Matrix_Evaluate(similarity_matrix):
diagonal_matrix = np.zeros(similarity_matrix.shape)
sum_vec = np.sum(similarity_matrix, axis=1)
np.fill_... | [
"manideepreddy580@gmail.com"
] | manideepreddy580@gmail.com |
6bb617f65ce38c6264839410620930fdf5f56e11 | 677734a1b188fc28d2af7848cd17923cd5a45871 | /PopulateCredential.py | f16b1da8f2f654883c331c204d8a97ffebe17b93 | [] | no_license | cyrexin/simplechatroom | dae66c3547dbef1cac2a12cd0eb219db2430d72c | 59797624df8ec780dbb3fa5e98aea05cdacc5736 | refs/heads/master | 2020-12-01T13:05:12.418441 | 2016-03-23T00:10:22 | 2016-03-23T00:10:22 | 54,007,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | from Encrypt import *
user_password = {
'columbia': '116bway',
'seas': 'winterisover',
'csee4119': 'lotsofassignments',
'foobar': 'passpass',
'windows': 'withglass',
'google': 'partofalphabet',
'facebook': 'wastetime',
'wikipedia': 'donation',
'network': 'seemsez'
}
f = open('user_... | [
"cyrexin@gmail.com"
] | cyrexin@gmail.com |
dc0a16d8c69607e0d52b47fbd9e0231d4266ac7f | 30ea7b9b9a88d542e9ea3c5b8def38e1b1d778e5 | /hw2/semantic_segmentation/dataset.py | 84f026529c7fbe3a2e50bf399cf78f0a53b05a9b | [] | no_license | kai860115/DLCV2020-FALL | 96ee63cc73969f4efe872870a0e6f8b0dfff08fd | cd07b9ac131b3bc5c22f92d57c80960dfc071ea3 | refs/heads/main | 2023-02-26T00:19:59.325488 | 2021-02-04T05:38:36 | 2021-02-04T05:38:36 | 335,480,530 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,944 | py | import re
import glob
import os
import random
import torch
from torch.utils.data import Dataset
import torchvision.transforms as transforms
import torchvision.transforms.functional as TF
from PIL import Image
def mask_target(im):
im = transforms.ToTensor()(im)
im = 4 * im[0] + 2 * im[1] + 1 * im[2]
target ... | [
"kai860115@gmail.com"
] | kai860115@gmail.com |
218480d8de1b32721fa9093e05f3940ed09e8600 | bf9a1254cfb4af85c62b86eba21b9ad0495dd0a7 | /cal_SaD_SaM/read_NA_NV.py | c9706b0f494f82fa33e5bd5eabe03dece36611ba | [] | no_license | garyhsieh15/cal_eq_force | 2554aa51f475298241434bc9225cc9e41e26c2cf | 4f12fde4c6903484f98f999248f1e1ad83e83d0e | refs/heads/master | 2021-08-10T12:35:37.594490 | 2017-11-12T15:05:15 | 2017-11-12T15:05:15 | 110,441,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,196 | py | #!/usr/bin/env python3
import sys
''' ----------------------------------------------------------------------------
1. 輸入斷層的位置以及距離即可以得到NA and NV
2. NA and NV包含了, dNA, dNV, mNA and mNV.
3. 程式的想法是用if來先行判斷距離的多少, 再用斷層區域來做進一步的判定其因子為多少.
---------------------------------------------------------------------------- '''
print("... | [
"garyhsieh15@yahoo.com"
] | garyhsieh15@yahoo.com |
5c8dd67ca45da6502659d71d6cc1ed997f15c654 | 81672127c3d85d90ad724788a8bfb83ba3a92bfc | /problem/lintcode/lint1216.py | 2f56fbf57f4701f337064f99329257f7fcbb47cd | [] | no_license | qdian88/pylearn | 01f8ac8db554740a7f119d5df116c8816bd094ef | 47abd49462c58765b5029699f5675f635353dc1d | refs/heads/master | 2020-05-29T21:00:05.141278 | 2019-05-30T07:27:44 | 2019-05-30T07:27:44 | 188,647,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 24 11:04:43 2019
@author: Administrator
"""
m=10**3
s_max=0
for i in range(m-1,m//10,-1):
for j in range(m-1,i-1,-1):
s=i*j
if str(s)==str(s)[::-1] and s > s_max:
s_max=s
print(s)
print(s_max) | [
"19463739@qq.com"
] | 19463739@qq.com |
2a87843282159e9c6443e44c4633d6c6cd1d6e17 | e192f4a4a829d6f58daf04782de0ba7ba87958d3 | /pytorch implementation/pytorch/data.py | 4a7e822b28708546ca34d88af53fe4c8c8d613cf | [] | no_license | Carachias/DGCNN_VoxML_Classifier | 40d4bd4d5b70ae022d0678e90bb355cd17149d63 | 24d79174942c1158fd3a3554081b92e2e185cd95 | refs/heads/master | 2023-04-16T18:48:45.081413 | 2021-05-07T13:42:17 | 2021-05-07T13:42:17 | 361,211,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,004 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Author: Yue Wang
@Contact: yuewangx@mit.edu
@File: data.py
@Time: 2018/10/13 6:21 PM
"""
import os
import sys
import glob
import h5py
import numpy as np
import torch
from torch.utils.data import Dataset
def download():
BASE_DIR = os.path.dirname(os.path.abspath... | [
"carachias@gmail.com"
] | carachias@gmail.com |
f2141c2a5ca33051d3a1f0f6e37b4171bbbfe7e4 | 8d19a7ce4deaa5f59acb8048e886ba7f05d87180 | /plotting/swa.py | 6451e09d0b9cbea33b85a7da12614eb00140cb38 | [
"MIT"
] | permissive | dejac001/MCFlow | bbc66529716e92de8b9507cc74b3de37da3d7143 | 19d1ee21318b49102842d75493a2fb830ec116f0 | refs/heads/master | 2022-12-17T15:08:46.648626 | 2020-07-26T18:24:53 | 2020-07-26T18:24:53 | 202,601,205 | 1 | 1 | MIT | 2022-12-08T10:45:35 | 2019-08-15T19:39:25 | Python | UTF-8 | Python | false | false | 2,637 | py | def make_grace(my_ax):
my_ax.tick_params(axis='y',direction='in',which='both',labelsize=10,left=True,right=True)
for dirn in ['top','bottom','left','right']:
my_ax.spines[dirn].set_color('black')
my_ax.spines[dirn].set_linewidth(1)
my_ax.tick_params(colors='black',size=5.,width=1.)
def plo... | [
"dejac001@umn.edu"
] | dejac001@umn.edu |
11022183e4676e6e9f90235da6453034baea344b | 319ee59669806935266cadd5c97bb30fca906412 | /actualapp.py | 34254941b75429343706ae35e5eab7174def3b9d | [
"MIT"
] | permissive | zenador/sporebusbot | 0cd505d03db975fca53dbe0c9759d34d66cc50b0 | 2ccc214cd8da4f8d3931db7cabfc4fb8e5183a78 | refs/heads/master | 2021-01-01T03:44:53.483042 | 2020-12-23T18:57:28 | 2020-12-23T18:57:28 | 59,570,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | #!/usr/bin/env python
from flask import Flask#, send_from_directory
app = Flask(__name__)
app.config.from_pyfile('flaskapp.cfg')
@app.route('/')
def index():
return '.'
'''
@app.route('/ATriggerVerify.txt')
def show_atrigger_verify():
return send_from_directory("", 'ATriggerVerify.txt')
'''
| [
"zenador9@gmail.com"
] | zenador9@gmail.com |
ba5f4cd07918520b871fedc8ce034363db2a0906 | 5ca893fc4b0f65774260fd8909b12706bcf1a9fa | /tests/test_is_pangram.py | 11f0a6064dcfbf21cf6c3cbecf0859e4bd203e95 | [
"MIT"
] | permissive | daveoncode/python-string-utils | 27fe323292860e78bac954177c2556aa8f3f25b5 | 78929d88d90b1f90cb4837528ed955166bf0f559 | refs/heads/master | 2022-12-11T20:14:30.087257 | 2020-03-31T11:23:35 | 2020-03-31T11:23:35 | 39,955,389 | 55 | 12 | MIT | 2022-12-08T03:44:22 | 2015-07-30T14:39:06 | Python | UTF-8 | Python | false | false | 900 | py | from unittest import TestCase
from string_utils import is_pangram
class IsPangramTestCase(TestCase):
def test_non_string_objects_return_false(self):
# noinspection PyTypeChecker
self.assertFalse(is_pangram(1))
# noinspection PyTypeChecker
self.assertFalse(is_pangram(['xx']))
... | [
"davidezanotti@gmail.com"
] | davidezanotti@gmail.com |
41520052906753d133afd2569d27beb0bd764902 | f2dc83ffed7f5f8fffc83ef66b78d0b64274f803 | /main_codes/main.py | fde287072ff2e8e239fa1c5b990bfb575ac42055 | [] | no_license | TarunGandotra/flask_ui | 42805a29f3b5b34e200311a9e76a30ce4f135dff | 22bb891f470409878a1b5a408f3741caef8bf418 | refs/heads/main | 2023-01-18T20:29:25.208084 | 2020-11-20T13:53:01 | 2020-11-20T13:53:01 | 314,558,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,224 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 17 14:49:58 2019
@author: Digiscape
# """
from fund_ref import fund
#from afn003 import AFN003
from Article_History import article_history
from BRX012 import Brx012
from rule_109 import Rule_109
from Che015 import CHE015_11
from rule_17 import Rule_17
from RU... | [
"noreply@github.com"
] | TarunGandotra.noreply@github.com |
72886476b0c8673d4ab8017cbda9bd78e3b3caf1 | cf0eb4dd2929cf6cde79b5357ff3d793a51425ce | /src/mongowave/configuration.py | 6006c444fa7862fad3c17a4231a4ea1dd5b03c72 | [] | no_license | igor-petruk/mongo-wave | 5911182942dbe8870c5bd02f81deaa9837ca4f43 | 5a63a1f303c7a31c17d4d5a5d4f5fe644ac6a7fc | refs/heads/master | 2016-09-06T14:24:03.083573 | 2012-12-13T23:59:37 | 2012-12-13T23:59:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,264 | py | from configparser import *
import os
import json
import uuid
class ConfigLocation:
@staticmethod
def CONFIG_FILE():
return os.path.expanduser("~/.mongowave")
class ClientConnection:
def __init__(self):
self.id = uuid.uuid4()
self.name=""
self.host="localhost"
self.p... | [
"igor.petrouk@gmail.com"
] | igor.petrouk@gmail.com |
148c8cc9b4af58e8cbf0df51d9ddf6cd1016874d | abda045e5516fb64f6e52031aced1da8e18e5bf7 | /tests/test_tokens.py | 7a801230e6afd238ef17921bc3cd9e9223ab3003 | [] | no_license | omar212/pascal.py | a99d92fdc7a23ca8cad4ddbd7df8f473523c6c3e | d51745bb85198c99a918e68289703a822648d3ad | refs/heads/master | 2020-05-26T05:51:37.827324 | 2014-06-19T06:51:39 | 2014-06-19T06:51:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,587 | py | import unittest
from modules.token_creator import TokenCreator
from modules.pascal_token import Token
class TestTokenAttributes(unittest.TestCase):
"""test that attribute methods return correct boolean values"""
def setUp(self):
self.tokenCreator = TokenCreator()
# paramters to creat... | [
"brianwu02@gmail.com"
] | brianwu02@gmail.com |
db32253902147d6de63a312faa4dc7a41e150337 | c016088a3bdb255d4f5253185d27b5a4c75feb1b | /11_testing_your_code/11_3/employee.py | 919260baf759a0a8360fcd951f4ce7399a8e2888 | [
"MIT"
] | permissive | simonhoch/python_basics | b0b7c37ff647b653bb4c16a116e5521fc6b438b6 | 4ecf12c074e641e3cdeb0a6690846eb9133f96af | refs/heads/master | 2021-04-03T10:11:10.660454 | 2018-03-13T20:04:46 | 2018-03-13T20:26:25 | 125,107,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | class Employee ():
"""Simple attempt to describe an employee"""
def __init__(self, first_name, last_name, annual_salary):
"""Initialization of the employee class"""
self.first_name = first_name.title()
self.last_name = last_name.title()
self.annual_salary = annual_salary
de... | [
"simonhoch1@gmail.com"
] | simonhoch1@gmail.com |
e5a7b23422f40b51cdbaf54d658a81c03f5c2e6a | 5d21443ec6f858f6d5e5d260a670c94a2bc176e7 | /spider_jiandan2.py | 1c6c56a96049301dda4fa304fee23a332061ef14 | [
"MIT"
] | permissive | Sablier/SpiderBoy | 0f7a16571ea2148508eabfe3b074ec4e63b58f3c | 53b007d0b1b6e2375e5ee71d4b4e5e7deeeacafc | refs/heads/master | 2020-05-07T18:23:43.717739 | 2019-06-12T17:09:48 | 2019-06-12T17:09:48 | 180,764,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,588 | py | """使用面向对象思想编程。使用selenium包获取html内容,使用lxml解析网页"""
import os
import requests
from lxml import etree
from selenium import webdriver
class GetJandan(object):
def __init__(self,path,page=10):
self.start_url = 'http://jandan.net/ooxx'
self.url = ""
self.save_path = path
self.page = page
... | [
"albertpeng1991@gmail.com"
] | albertpeng1991@gmail.com |
c5f63fefce90ea7f2fb12d5a4269401e45a5c574 | 2af3c577ec934c0d36ba40fbb55d1b67a99069fb | /account/migrations/0001_initial.py | f1344a6eb4f2fba47558b0d637c0a0762408b2f2 | [] | no_license | sathish-ku-mar/fynd-assignment | a3b7e16863d3db48a484aa0afde57c2d7d250899 | 93dc963d9ec441fd8a892e0d22be3af7df4aa960 | refs/heads/master | 2022-12-01T21:05:52.190085 | 2020-08-16T04:41:41 | 2020-08-16T04:41:41 | 287,740,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,497 | py | # Generated by Django 3.1 on 2020-08-15 11:31
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
... | [
"sathishkumar1954@gmail.com"
] | sathishkumar1954@gmail.com |
651b60b515fe7843967505febf81ecf3864711a5 | a7f39db24ce26ab0f02650ffd97007222aa536c5 | /so.guishiwen.org_shiwen.py | 1c43a5299d50000c95b371c9ff9420f1d01ebc75 | [] | no_license | hpifu/py-ancient | 6f51067c4c6ef1adb8241994e03dccb29e35b501 | a845e86057432a39f8239263aa7bf0e97c3f4c76 | refs/heads/master | 2022-12-13T00:40:09.735917 | 2019-10-27T05:21:52 | 2019-10-27T05:21:52 | 204,660,319 | 0 | 0 | null | 2022-07-06T20:16:22 | 2019-08-27T08:48:26 | Python | UTF-8 | Python | false | false | 1,333 | py | #!/usr/bin/env python3
import requests
from pyquery import PyQuery as pq
www = "https://so.gushiwen.org/shiwen"
def getPage(url):
res = requests.get(
url,
headers={
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-ex... | [
"hatlonely@gmail.com"
] | hatlonely@gmail.com |
90176d92ce58020a5923f9b84ebb560a8b0c83db | 3d9a2964d25cf7f3bdd03be8019e176d743e793b | /cyberAttackSimulation.py | 471c87fd70869587dd090430e7fc0573d7efb8e2 | [] | no_license | connoryin/cyber-attack-simulation | cd68e1d47be22adab7673541d795d4c44f783ad1 | 36df25102ebef807fb492c174063decc4b7b9a00 | refs/heads/master | 2020-12-22T02:57:21.518303 | 2020-02-17T22:38:10 | 2020-02-17T22:38:10 | 236,650,194 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,869 | py | from graph_tool.all import *
from numpy.random import *
import numpy as np
from random import sample, gauss
import matplotlib.pyplot as plt
from matplotlib.figure import Figure
from matplotlib.backends.backend_gtk3cairo import FigureCanvasGTK3Cairo as FigureCanvas
import sys, os, os.path
import time, math
import statsm... | [
"connor@sjtu.edu.cn"
] | connor@sjtu.edu.cn |
dd5173273d0d804b36621c3206594029a67b98df | 1d1e1ff4614e085ad5187fbc6aa68a003a5f1ac2 | /setup.py | 837db8adddf7a2f91b2082c288d1e68a96f52b8d | [
"MIT"
] | permissive | malisal/streampie | 9e83cf9ba51a7c241935d88f3821ed256de20133 | 7b1b24b01b234cd093a350f04ffaf1a4974282ad | refs/heads/master | 2021-01-10T07:51:44.333259 | 2016-04-20T17:11:07 | 2016-04-20T17:11:07 | 53,448,331 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | from setuptools import setup
with open("requirements.txt") as f:
required = f.read().splitlines()
setup(
name = "streampie",
version = "0.2.4",
description = "A simple, parallel stream processing library",
author = "Luka Malisa",
author_email = "luka.malisha@gmail.com",
license = "MIT",
url = ... | [
"luka.malisha@gmail.com"
] | luka.malisha@gmail.com |
81ca8e11005c1feb11cd0cbc18f5ea33860d493a | 8e6d78920b4d5ed60616d69cfba1824afeff611b | /backend/backend/urls.py | c0a2bb028b4fe8a80c5860a450aa2c4cfc99f5f3 | [] | no_license | shiowwj/django-react | 1c711b9bc879f13e99d1e6bc2c1e56d85a12729b | b381d48e6574eb134b8b530a758b6f7ea0719914 | refs/heads/master | 2023-01-06T07:29:36.168514 | 2019-06-19T10:04:26 | 2019-06-19T10:04:26 | 192,477,199 | 0 | 0 | null | 2023-01-04T00:45:44 | 2019-06-18T06:14:31 | JavaScript | UTF-8 | Python | false | false | 1,406 | py | """backend URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"shiowweijun@gmail.com"
] | shiowweijun@gmail.com |
627162d6e931f6e673884ff3d7894f226d49c18b | 613057da52adee14bd24c7570aa54291413f0792 | /身份证校验系统.py | f4bdfa40818d62aa7d5108cd30cf17b28e323754 | [] | no_license | han925981034/python | 565d3ee95bc73017e3658b4c8af5a455664c7e8b | 8b48b5f3481477252d66a917943f67599a8e6ea1 | refs/heads/master | 2020-08-16T14:54:17.745165 | 2019-10-16T11:26:26 | 2019-10-16T11:26:26 | 215,514,430 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,513 | py | from tkinter import *
import time,datetime
class IDCCheck():
def __init__(self):
self.win=Tk()
self.win.geometry('700x400')
self.win.title('身份验证系统')
self.win['bg'] = 'lightblue'
self.image = PhotoImage(file='11.png')
self.lable_image=Label(self.win,image=... | [
"noreply@github.com"
] | han925981034.noreply@github.com |
de0872015a00bf7aa5c3e151ddeecb83fe00d452 | 86e25f7afc5e5ca1194512b79b1e581c1a682946 | /container.py | 18bb431ac148799c895e0f70580133153fa02f99 | [] | no_license | Vlad-Iliescu/kinetic-python | 85b7442326d4814175acdf333453c0f65d85ef61 | 4b8d1b0680e410d0533e76a6edcd3fd44934a25d | refs/heads/master | 2016-09-05T23:19:25.324952 | 2012-09-07T12:07:13 | 2012-09-07T12:07:13 | 32,134,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,854 | py | __author__ = 'Vlad'
from node import Node
from util.global_options import Kinetic, write_output
class Container(Node):
def __init__(self, var_name=None, **kwargs):
super(Container, self).__init__(**kwargs)
self._parse_container_config(kwargs)
self.name = var_name
self.c... | [
"Vlad.Iliescu.88@gmail.com@42f960a1-aad4-b08e-6b72-5efd33d37d32"
] | Vlad.Iliescu.88@gmail.com@42f960a1-aad4-b08e-6b72-5efd33d37d32 |
fc0ba945af6ee21809c0c81d4d2d1d2a8b103254 | 79a3cc6868730fd5fb748dfc2c4430e6ac52b26c | /Weblogic-Deployment/roles/Application-2/templates/start-managed-servers.py | c8b0cc2118d2516e2f2ab9e670ed6b611d2b87bd | [
"BSD-3-Clause"
] | permissive | rgaddam/Weblogic-Deployement-Using-Ansible | 6b431e9238f68ba82da5d03ac3f1460ac617c891 | 0e16d4dd4263da6fd604d231b190a5fd21bc36a1 | refs/heads/master | 2022-04-06T03:38:18.851761 | 2020-02-28T21:58:23 | 2020-02-28T21:58:23 | 70,837,199 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | # Set AdminServer connection URL
ADMIN_SERVER_URL = 't3://' + '{{ admin_server_hostname }}' + ':' + '{{ admin_server_port }}';
# Connect to the AdminServer
connect('{{ weblogic_admin }}', '{{ weblogic_admin_pass }}', ADMIN_SERVER_URL);
# Start editing mode
edit();
startEdit();
# Start Managed Server-1
start('{{ man... | [
"noreply@github.com"
] | rgaddam.noreply@github.com |
5654cf482eb177451e9980b172ae3959c3598848 | c4249ce9e7cb26ae006bc9951ea676ae2250777b | /gamslib/tsp42/tsp42-scalar.py | 42958fd8ad72080b79cab8da32eb1cf7165217d6 | [] | no_license | vaidasj/alg-mod-rev | 79de3ef1e110f4bd07cbdef6951de2e4216f47f1 | a3ec6b5c21700a2f28ac6bf7db6aa22540748c6e | refs/heads/master | 2021-06-27T14:06:39.997411 | 2020-10-19T15:47:54 | 2020-10-19T15:47:54 | 180,074,989 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80,771 | py | # MIP written by GAMS Convert at 12/13/18 10:32:27
#
# Equation counts
# Total E G L N X C B
# 43 43 0 0 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | [
"v.jusevicius@gmail.com"
] | v.jusevicius@gmail.com |
278789d4b6a9951c0f6d6bf55614b7139a62b95b | 4e208d8d4f34c9f0f946d5c762dc7dc94a2593db | /apps/my_app/migrations/0001_initial.py | 47ea576627ec29e03f3dfd3eeeac42ff671a913b | [] | no_license | tarrdog/python_black_belt | 0231c71752c72c02729ad1e8627a99ce07e64c36 | fa53d48a0d42a26a5174c102c13ec33f83e79421 | refs/heads/master | 2020-12-03T00:43:00.206731 | 2017-07-03T04:05:08 | 2017-07-03T04:05:08 | 96,069,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,545 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-07-03 00:07
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"tarrdog@gmail.com"
] | tarrdog@gmail.com |
84c6464c17e376eb7e83ffc85264a665216ccf37 | c70457843b82b4ea0212feb81153be1b7cbe8240 | /lab_04/orderedset.py | fe251a155503050e7097144084a7941caccbc93b | [] | no_license | alexbardas/krr | 65b4443a784d952d0a07a0dbf7b801ef54b00bb8 | e88c40b61b9b09612f83e0cd1c488291cc0446f0 | refs/heads/master | 2016-09-01T21:07:27.774450 | 2013-01-15T23:47:01 | 2013-01-15T23:47:01 | 6,520,495 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,807 | py | import collections
KEY, PREV, NEXT = range(3)
class OrderedSet(collections.MutableSet):
def __init__(self, iterable=None):
self.end = end = []
end += [None, end, end] # sentinel node for doubly linked list
self.map = {} # key --> [key, prev, next]
if iter... | [
"alexbardas@gmail.com"
] | alexbardas@gmail.com |
6a72e0a4d419c5ee1caa5dbd06bbe9167e2bf1dd | 341662c6723e379d37eac840e3d58c2c2b8e303c | /solutions/euler6.py | 253ae8671bd2fd7116a37c0b7437bb32171d1b07 | [] | no_license | jimmyhmiller/project-euler | 571ae047b2ce66324bc407724cffefe788649c06 | 124b7b4aa3d022c3072a92f1cec76011ced866a5 | refs/heads/master | 2020-05-22T01:09:21.139071 | 2017-03-28T05:24:38 | 2017-03-28T05:24:38 | 15,573,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | #!/usr/bin/env python
def main():
sum_of_squares = sum(x**2 for x in range(1,101))
square_of_sums = sum(range(1,101))**2
print abs(sum_of_squares - square_of_sums)
if __name__ == '__main__':
main() | [
"nomicness@gmail.com"
] | nomicness@gmail.com |
01ed533f6c9a4859a87371bd27fea296ed647fc0 | e58b0929819446d737a3cf78ea39893036c7be38 | /subcmds/diff.py | 9045edc7e7a370bc23b714fbe73ff0900548f491 | [
"Apache-2.0"
] | permissive | bgabrhelik/git-repo | d732820854a7816860a5ccb968ecbfe08cf2b5d1 | c326834397ca0afe0b0a66728a18881005858f66 | refs/heads/master | 2020-12-26T00:07:57.899455 | 2015-03-26T17:00:40 | 2015-03-26T17:00:40 | 33,419,452 | 1 | 1 | null | 2015-04-04T20:34:41 | 2015-04-04T20:34:41 | null | UTF-8 | Python | false | false | 1,472 | py | #
# Copyright (C) 2008 The Android Open Source Project
#
# 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 la... | [
"matthias.putz@esrlabs.com"
] | matthias.putz@esrlabs.com |
07493ee2b882c3363f6d52bd9562f1c312196c56 | 99493b50c8be7e88090c2c5d9a9070cf33f15f3a | /小姐姐带你学自动化测试/01python/02 条件语句.py | fa9110454d699d20c423f1dc3b9116ce5e7566ed | [] | no_license | Saber1342/python | 42d2585c4e39f5b1ddca781881e76733b7d21918 | d714e6c273009bf3b9a6013ae788d8145f083f1b | refs/heads/master | 2020-12-19T11:54:55.776850 | 2020-01-23T04:59:08 | 2020-01-23T04:59:08 | 235,724,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | #该实例演示数字猜谜游戏
guess = 0
number = 5
print("猜数字游戏")
while guess != number:
guess = int(input("请输入你猜的数字:"))
if guess == number:
print("恭喜,你猜对了!")
elif guess < number:
print("在猜哦,猜的数字小了")
elif guess > number:
print("在猜哦,猜的数字大了") | [
"549755670@qq.com"
] | 549755670@qq.com |
92d4201ea1b976e5fadadf15d8d197cdf4270b45 | 13c03c269c3ed7a82e7771c5eafcaf8d4d46fa46 | /weather_DL.py | c4670b23961f46ee4ad77d0c641f80340ebfb6ff | [] | no_license | ncsa/CPRHD_SES | 533d1f1177368ccbd67588d21913863cafd7442c | 3168044825d74f776b4828cc43936eacf6859f18 | refs/heads/master | 2021-06-28T15:43:33.373380 | 2020-12-18T20:38:44 | 2020-12-18T20:38:44 | 191,447,999 | 1 | 1 | null | 2019-10-16T19:58:27 | 2019-06-11T20:56:00 | Jupyter Notebook | UTF-8 | Python | false | false | 972 | py | import urllib.request
import json
from datetime import datetime
from datetime import date
def download_weather_climate_division(date_to_start: str):
base_url = "http://data.rcc-acis.org/GridData"
start_date = datetime.strptime(date_to_start, '%Y%m%d').strftime("%Y%m%d")
end_date = datetime.today().strftim... | [
"jallen17@illinois.edu"
] | jallen17@illinois.edu |
3fa5664ac22cf3100b27dd76c6092fc14ad07bee | 975b2d421d3661e6770b601929d5f11d981d8985 | /msgraph/generated/users/item/joined_teams/item/primary_channel/files_folder/files_folder_request_builder.py | 89a7c53761dd1978c54bfab1514e71b2d63686d3 | [
"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 | 5,406 | 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 |
bb9ab0f73f6c25d085278975445f6e1ad3916472 | 6675cc79f2bad3cf8d4bbb4517c4660a14dcd425 | /Spotify/extractdata.py | 2c9c46d60ae38f4e6a01ee72b839fbe0123b7c9a | [] | no_license | minh-le1994/MinhLe | 8390a85c014421922cc0374475ce72a634e269a8 | b9392b1cffe41486a9f296d83f11123c5bded8cb | refs/heads/master | 2022-12-11T23:10:14.188875 | 2020-07-12T16:00:43 | 2020-07-12T16:00:43 | 250,595,997 | 0 | 0 | null | 2022-09-23T22:39:29 | 2020-03-27T17:11:56 | HTML | UTF-8 | Python | false | false | 3,290 | py | import requests
import pandas as pd
import json
from authorisation import SpotifyAuthorisation
class DataExtracter():
"""
Class to extract the data from the Spotify Web Api regarding the last 50 songs played and the audio features of this songs. The
class is initiated with the token needed to access ... | [
"khac.minh.le@outlook.de"
] | khac.minh.le@outlook.de |
c08a06098466014eebcd6ca0f27fc1259e9c1c1a | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /directconnect_write_f/virtual-interface_delete.py | 80e3a4f24ad845af820b46f860e9d930d4b0b178 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
d34d9478e0a08733cd8446aad7f2470cd93da574 | eb267b933b04739f05c9aff83698e70f1d5e3dce | /telegram.py | 0313ffc7a8f75e64754e0ac8bd785065e30e91e3 | [] | no_license | Tabaktom/StockTips | 3f9284910d9c0b5829aa91e93855d47ceb0f1ee3 | 95d4697eb05a55977bc4a69a69f6da8842daf3d7 | refs/heads/master | 2022-12-02T20:47:04.230078 | 2020-08-22T16:48:59 | 2020-08-22T16:48:59 | 289,527,391 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 471 | py |
def share_telegram(message):
import telepot
from secrets import telegram_chat_token
token = telegram_chat_token
botname = 'BOT_NAME'
TelegramBot = telepot.Bot(token)
#bot_id = TelegramBot.getMe()['id']
#print(bot_id)
bot_id='BOT_ID'
updates = TelegramBot.getUpdates()
send_id='C... | [
"noreply@github.com"
] | Tabaktom.noreply@github.com |
5466f06013d91cbc89027ba74e9665d8a1e56a94 | 4726d52edb8a5f091d2bd52acec561d77fb5f73d | /backend/rest/invoiceDetails/migrations/0002_auto_20201117_1158.py | a18e699d67ce0291aeb9af72f0817e012437d818 | [] | no_license | ChristianTaborda/Hyperfoods | 5d34252c1c3f91a7d899cb842007427007d3ddc3 | 47ac16b6adca28f02ba0f227acae431daeda1304 | refs/heads/master | 2023-02-06T12:00:53.884171 | 2020-12-30T23:11:41 | 2020-12-30T23:11:41 | 325,666,350 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | # Generated by Django 3.1 on 2020-11-17 16:58
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('combos', '0002_combo_imagecombo'),
('products', '0003_auto_20201116_2124'),
('invoiceDetails', '0001_initial')... | [
"christian.taborda@correounivalle.edu.co"
] | christian.taborda@correounivalle.edu.co |
3a19ba528e7e6cf2e1c340ffc2f61d93a9766961 | 306dc56bdbe12120541ec0ad80cf6e428ded2d0c | /LastQue!/connect5.py | 429c692dd7908cb47a186cbe5fe6768e615c2ecd | [] | no_license | DevTotti/Challenges | bf286b11a5405c0ae8853e00b6c4024149a77be8 | 448521de19d48ad7d061ae33c87838d661c67868 | refs/heads/master | 2020-06-21T00:37:15.330204 | 2019-07-17T02:39:14 | 2019-07-17T02:39:14 | 197,300,585 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,511 | py | """
Name: Osuntolu Paul
email: neptunecody@gmail.com
Intermediate test question 5 & 6
"""
import mechanicalsoup
import re
import json
import requests
from statistics import mean
import scipy
import scipy.stats as st
from scipy.spatial.distance import cdist
from scipy.interpolate import *
import numpy as np
s=reques... | [
"paul.bIncoM@gmail.com"
] | paul.bIncoM@gmail.com |
4293b3acde9fd16c7d98f4e36d670978acca31a3 | f73f5f5d0770f731b5e76da39131ff36c9fde11e | /django_libs/tests/models_tests.py | 7c46c414daad0a285198d5f569b7e8cfa6ef2ad1 | [
"MIT"
] | permissive | SurferTank/django-libs | fcede8d7dff4ea58c728d05ff0030a3ce892a08e | 6ad3f7cf5f9a7a4848557d73af4a93054b34e27f | refs/heads/master | 2021-02-09T01:28:32.153104 | 2020-10-26T03:11:23 | 2020-10-26T03:11:23 | 244,222,230 | 0 | 0 | MIT | 2020-03-01T20:55:22 | 2020-03-01T20:55:21 | null | UTF-8 | Python | false | false | 519 | py | """Tests for the models of the ``django_libs`` app."""
from django.test import TestCase
from ..models import ColorField
from ..widgets import ColorPickerWidget
class ColorFieldTestCase(TestCase):
"""Tests for the ``ColorField`` model."""
longMessage = True
def test_functions(self):
color_field =... | [
"tobias.lorenz@bitmazk.com"
] | tobias.lorenz@bitmazk.com |
a6a8f3e31af3d7f8c62c42ef83ed0d10121c2482 | 3a3b1b35bb1db050aecb7cfe1828516f1ce40aec | /assignment7/main.py | e34c5f1dd9bc150913bf150a9a62aee5f458acbd | [] | no_license | Shadesfear/SIP | 5249f51ec93dc92751944b3513e8214234f7af60 | e9081c6b87189bd16b074a161824b3743ca7b632 | refs/heads/master | 2021-01-06T16:23:15.379319 | 2020-03-23T22:53:52 | 2020-03-23T22:53:52 | 241,395,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Mar 23 23:52:16 2020
"""
import exer1, exer2
if __name__ == "__main__":
exer1()
exer2() | [
"Blaedelblaedel@gmail.com"
] | Blaedelblaedel@gmail.com |
574d7ca56487ba0eab4dd0ce88086455d0675b1a | bf330ac532c742b06393d170104da3995308dbf9 | /fitlife/migrations/0002_products.py | faf0eb847e3f6d99b7f253eaadf95ac35316ab75 | [] | no_license | kml95/DjangroProject | 375c3ce292e35817c3af566ffcfbf20831dc96c0 | a8f33bbab7e5ffd2a666118d1d5d32c0b0655aba | refs/heads/master | 2021-04-06T19:37:36.296828 | 2017-06-01T19:28:08 | 2017-06-01T19:28:08 | 125,425,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-05-31 16:49
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('fitlife', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"adrian.kalinowski95@gmail.com"
] | adrian.kalinowski95@gmail.com |
4467952bc3588edaf21b854d2cb536eb9a03be12 | 03034837c5f10d19fcc4dc51388f056ec43fd1d2 | /pro21.py | a5fa31a3792fe95d280dc9afd594c679ff30987a | [] | no_license | shaukhk01/project01 | e95c19844757c631f7ffbdd910b20316f49a945b | 79cfe784612fdbb4816c9fc3fc7222c845a3268f | refs/heads/master | 2020-06-26T07:20:49.844532 | 2019-08-20T06:06:40 | 2019-08-20T06:06:40 | 199,569,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | import re
def main():
matched = re.finditer('a{2}','abcdeaakkkaa')
for m in matched:
print(m.start(),'--',m.group())
main()
| [
"shaukhk01@gmail.com"
] | shaukhk01@gmail.com |
4aa6bd7f048cdaa6fcb9c0294eb8ec82785ce637 | a3e1bf40dc7b24e559ab69fbb50fa9724b4c3e20 | /scorecenter/scorecenter/settings.py | 0ddcd1102022047bfb894c3b518de21b090cfc8f | [] | no_license | andresmacha/Quiniela | e260067f80db94f023168e6073d847b52c371afe | a5e947cca473b57ff757fc677995ab2b3f03f306 | refs/heads/master | 2016-09-05T14:38:44.542513 | 2013-02-12T14:58:51 | 2013-02-12T14:58:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,646 | py | # Django settings for scorecenter project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'cham... | [
"andresalejandro13@hotmail.com"
] | andresalejandro13@hotmail.com |
08fed6bd9d3495b53532ebd0d362e54a2feacc00 | 68d0775ff5ec73901838137725642f83252c6130 | /src/python_tools/Spacecraft.py | c53b7e49e61625bca9125d014a670e3be4bd9800 | [] | no_license | bryanwweber/AWP | 3506aefc655288a6ab35b0f7e88a2fc0360eb78d | 0a316fe82cd61751a0acf5e58c966f54367b6970 | refs/heads/main | 2023-06-09T09:50:02.970273 | 2021-07-03T01:27:56 | 2021-07-03T01:27:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,744 | py | '''
AWP | Astrodynamics with Python by Alfonso Gonzalez
https://github.com/alfonsogonzalez/AWP
https://www.youtube.com/c/AlfonsoGonzalezSpaceEngineering
Spacecraft class definition
'''
# Python standard libraries
import os
import math as m
# 3rd party libraries
import numpy as np
import matplotlib.pypl... | [
"alfonso8gonzalez@gmail.com"
] | alfonso8gonzalez@gmail.com |
45a009dba2770c9039de56e2489370042d17c258 | 1ad42b8f706287b9c830590a7da8e83fbea57bb6 | /typeDensity.py | 5a7c17285f66e4cde588afe7ebfa9b7fa380bba8 | [] | no_license | ntBre/CNTResearch | 7e54d2dbc11bddd05cda6e998358c0dd9d74fb16 | 41a32423966cf09da5580339dfa933c45dc595bf | refs/heads/master | 2021-04-27T01:55:39.466045 | 2018-04-01T01:07:09 | 2018-04-01T01:07:09 | 122,684,605 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,858 | py | #Sectional distribution
def innertube(sections):
"""Takes the lampstrj file produced by the CHILL Algorithm and calculates the percent of each type of
water, printing these to files for each type of water for plotting"""
file_name = ""
tube_radius = 0
tube_length = 80
types = [[0] * sections for i in range(5)... | [
"bwestbro@stedwards.edu"
] | bwestbro@stedwards.edu |
de8a2eb24ef3c4273c3735cc6a55be8ff4758247 | 347ba5b3b5c171be17bc201d87d580b1b0a8e59c | /templates/test.py | fddb06cd2dcafdbe7f13ed21118d41b0d10c5567 | [] | no_license | hf618/Task2 | 589be10b66325ed538ed98542d618149682477f3 | e4597bc4ee4998cfa2e9abcf32c327dd8a75619a | refs/heads/master | 2023-09-01T22:27:41.845475 | 2021-10-08T17:00:12 | 2021-10-08T17:00:12 | 415,053,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from database import * # 自己写的数据库函数的包
import random
import copy
import numpy as np
a=['kim','hwang','lee','ye','wu']
#a = gain_namelist() # 名字列表
ori = a #原始数据
random.shuffle(a) # 随机排序后名字列表
print(a)
baocun = copy.deepcopy(a)
a.pop(1)
print(a)
print(baocun)
samples = random.sample(a, 3)
print(samples)
| [
"1208927463@qq.com"
] | 1208927463@qq.com |
41c56a7c5c0c9ce2bc578dda633139c181636491 | 3e21239d7b0537b038d32bda632a7137c3ce2fb0 | /coverage.py | 889b8210e523f1cdccb9a2008fea3e321059958d | [
"MIT"
] | permissive | rlopez93/seq-assembly-2 | 966cc2d80b7043fd5a76b43eff6424f5441b46c5 | d78a7ee8321dba8d025b5bf72b77454d1b6ffc36 | refs/heads/master | 2021-01-21T13:41:43.597041 | 2015-05-25T22:09:35 | 2015-05-25T22:09:35 | 35,104,802 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,780 | py | #! /usr/bin/env python2
from __future__ import print_function
import fileinput
"""
Usage: cat <map file> | python coverage.py
Note: this script assumes that all reads in
the map file are of the same gene
"""
# coverage[i] -> coverage for gene at position i
coverage = []
for line in fileinput.input():
fields... | [
"ricardolopez93@gmail.com"
] | ricardolopez93@gmail.com |
faaabc87d530eda66341796909e94a28dc6d25c5 | b306aab9dcea2dd83dda700bc9f7b9f1a32cff3a | /CAIL2020/cocr/det_infer.py | a89f3a16932ef293bd9a8018db8f313597098ffd | [
"Apache-2.0"
] | permissive | Tulpen/CAIL | d6ca9981c7ea2603ae61675ba330a9614cd9398d | c4cfa98ab4ecedbce34a7a5a186830486047540c | refs/heads/master | 2023-04-23T20:07:56.774530 | 2021-04-16T13:18:36 | 2021-04-16T13:18:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,839 | py | import argparse
import os
import sys
import pathlib
import torch
from torch import nn
from torchvision import transforms
from torchocr.networks import build_model
from torchocr.datasets.det_modules import ResizeShortSize
from torchocr.postprocess import build_post_process
import cv2
from matplotlib import pyplot as pl... | [
"bangtech@sina.com"
] | bangtech@sina.com |
f3ffceb64896a81db9b59622fbfb0a1798476e5b | ccc412c09af06cd2f55c74702436378f97ef460f | /examples/Texas_mapping_objects.py | 87bbab0b721ce3ea7b135807a6dc0fe825de4dbf | [
"MIT"
] | permissive | rasquith/choroshape | bde5237418d3e43c4321906c99732a285dfd8394 | 0e88465173fed56f0edb31b73a0a1962f3180464 | refs/heads/master | 2020-07-07T23:35:43.863863 | 2018-09-25T01:14:11 | 2018-09-25T01:14:11 | 67,946,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,744 | py | '''This file has objects used for making maps of Texas. Objects here are
intended for maps of Texas made with specific style guidelines'''
import pandas as pd
Texas_city_label_dict = {'city_names': ['El Paso', 'Odessa', 'Amarillo',
'Lubbock', 'Fort Worth', 'Dallas',
... | [
"rachel.asquith@gmail.com"
] | rachel.asquith@gmail.com |
1508d1b59f6898158e81fe6c5d740f5229815180 | 242f7b0ffeec430d67b262b724165fad343fda68 | /combinatory_analysis/comb-rep.py | 361f318f4be39a2236f0b7c25a0966d40a8e629b | [] | no_license | lnbe10/Math-Thinking-for-Comp-Sci | ea12dc212ea654b11e5499b317db37b1287bdea4 | c12f3b84c6831ef5a6bb02c04390223f17167e14 | refs/heads/main | 2023-02-26T13:50:13.755274 | 2021-02-05T07:10:27 | 2021-02-05T07:10:27 | 332,588,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,395 | py |
from itertools import combinations_with_replacement
# Question 1
# Twenty people are voting for one of 5 candidates.
# They have secret ballot, each voter votes for one of 5 candidates.
# The result of an election is the number of votes for each of the candidate.
# How many possible results can this vote have (the r... | [
"luankevinfmb@hotmail.com"
] | luankevinfmb@hotmail.com |
d46615282317fbeef2fe89137c6aeb7e9cd8cbc0 | 3f99a5be32a57c59fbf3a0dfcc74594215fb3001 | /bi_account_invoice_layout/models/account_invoice_inherit.py | 45af6190f2ffd01511cba56dae3a6a9002c8e417 | [] | no_license | Brahim820/dulexlab | b8e6891df22a4acd3d52775e61b2e9ad122a583d | 7f8f7519acb08b0b2704aeac61878f2c459d53e1 | refs/heads/master | 2020-08-01T02:52:35.343291 | 2019-09-02T09:08:52 | 2019-09-02T09:08:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,487 | py | # -*- coding: utf-8 -*-
from odoo import fields, models, api, _
class AccountInvoiceLineInherit(models.Model):
_inherit = 'account.invoice.line'
public_price_lst = fields.Monetary(string='Public Price', compute='get_public_price_lst', store=True)
phd_disc = fields.Float(string='PHD %')
dd_disc = fie... | [
"mkhairy@iskydev.com"
] | mkhairy@iskydev.com |
6e2d152884470b76fab1e4f8be0c8476ae6e0fb1 | f29e8c30b9f7b66cb66bfb634608adec74a4aee0 | /012desafio - ler preco, retorna desconto.py | f26b56ea286e0bc9a308999fc0202fc8be53aad4 | [] | no_license | brunoparodi/Curso-GUANABARA | acafe1390ccd2ba5648ca30f73f54b95a6c57201 | 16b7a293a54f1a471fa07830bc66709a88fceb79 | refs/heads/master | 2020-04-24T09:16:12.095977 | 2019-02-21T11:17:01 | 2019-02-21T11:17:01 | 171,857,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | preco = float(input('Informe o preço do produto: R$'))
desconto = preco * (5 / 100)
print('O preço com desconto é: R${:.2f}.'.format(preco - desconto))
| [
"bruno@parodi.com.br"
] | bruno@parodi.com.br |
ffa7a37033c9eee4858e1ff0293d62b027d27f1c | d3942686f0b3d5c3bb077607bdd04af082363520 | /{{cookiecutter.project_slug}}/tests/__init__.py | 79b42da3269c9b900df483f37457663f1a4bbba6 | [
"BSD-3-Clause",
"GPL-3.0-only",
"GPL-1.0-or-later",
"GPL-3.0-or-later",
"LGPL-2.0-or-later",
"LGPL-2.1-or-later",
"LicenseRef-scancode-free-unknown",
"MIT",
"ISC",
"Apache-2.0"
] | permissive | audreyfeldroy/cookiecutter-pypackage | aaa3a26c314e990f3a4867c0722fa9d06f72755c | a3bfdf11b42fcfa2d3c721270ae7a112be551eb5 | refs/heads/master | 2023-08-25T16:22:23.781780 | 2023-08-16T03:23:40 | 2023-08-16T03:23:40 | 11,407,567 | 1,427 | 661 | BSD-3-Clause | 2023-08-16T03:23:42 | 2013-07-14T18:52:05 | Python | UTF-8 | Python | false | false | 61 | py | """Unit test package for {{ cookiecutter.project_slug }}."""
| [
"eugene.kim@ntti3.com"
] | eugene.kim@ntti3.com |
d91c472494a14944078b8c134a26b081bd7333e7 | 525c3a824a5bab4d72a355bfe9d504a170793cf6 | /AltScraper/AltScraper/pipelines.py | 8b422c45455b7e0db592e7b7c96c344800ee181e | [] | no_license | khuhroproeza/AltApi | b5dce386119d49b829c4ad19306692d2a32b6b7c | 0c869c34a084e95775e0694d627098552870bd59 | refs/heads/master | 2023-03-14T03:16:30.742540 | 2021-02-21T01:04:18 | 2021-02-21T01:04:18 | 340,785,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
# useful for handling different item types with a single interface
from itemadapter import ItemAdapter
class AltscraperPipeline:
def process_it... | [
"s.khuhro@appose.com"
] | s.khuhro@appose.com |
6d858a6f7e8b2f12d4ec8b67ef93d19370d79f0f | 8398dcf8b46493c1487f23ba259d9140cc7fe556 | /visionMiniProject/kakao/face_input.py | d6bdb51f93c4d346f83121bf55e2472a8c479aa5 | [] | no_license | JU-RI/visionMiniProject | 8ac5dee87a48deafb80c0d66c9127d9368dcb4ad | b55e01a2512f976524e7d5b8c41327f234eb840f | refs/heads/master | 2020-05-23T23:59:08.187333 | 2019-05-18T07:50:05 | 2019-05-18T07:50:05 | 187,006,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,293 | py | import requests
import argparse
import sys
import math
import random
from collections import Counter
import searchdb
from PIL import Image, ImageTk
import tkinter as tk
from tkinter import filedialog
import tkinter.messagebox
photolabel, photolabel2, info_label = None, None, None
gender, age, corner = None, None, None... | [
"48680930+JU-RI@users.noreply.github.com"
] | 48680930+JU-RI@users.noreply.github.com |
88e50a08bbca948a79e849d9561cf42f78aca8d4 | 34ffaabea6d4ca25edd893e0429d846fdea78856 | /effidavit/urls.py | e6f8a71f1af46b1cbb462abc376b8f98714285b4 | [] | no_license | bkanuka/efidavit | 730e80f48dd875a77e2ea4979f0d110248c2d519 | 0ec341452ce9486ee0582c6402ebdcc325800939 | refs/heads/master | 2020-03-28T18:41:51.068012 | 2014-09-21T02:17:42 | 2014-09-21T02:17:42 | 24,279,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | from django.conf.urls import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'jumpingintodjango.views.home', name='home'),
# url(r'^blog/', include('blog.url... | [
"bkanuka@gmail.com"
] | bkanuka@gmail.com |
eea01f46700e145a52ea864f42942e182a2b4072 | 3eb781bc3669496b0de3dbe637f2ebcba5cb7fca | /blog/urls.py | 068f5a975335045a737555faa3e6e0165ae7acca | [] | no_license | kitano333/my-first-blog | 8f3508391e6d48a932fa2d5e9d1a20441dae5e15 | df94d9a1cabf0479b21f29b6bb7ad4fad60aab45 | refs/heads/master | 2020-08-02T21:41:16.166154 | 2019-10-10T16:14:04 | 2019-10-10T16:14:04 | 199,885,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | from django.urls import path
from . import views
#これはDjangoの path 関数と、blog アプリの全ての ビュー(といっても、今は一つもありません。すぐに作りますけど!)をインポートするという意味です。
urlpatterns = [
path('', views.post_list, name='post_list'),
]
#見てのとおり、post_list という名前の ビュー をルートURLに割り当てています。 このURLパターンは空の文字列に一致し、Django URLリゾルバーはURLのフルパスの前半にくっつくドメイン名(つまり、http://127.... | [
"poao333@yahoo.co.jp"
] | poao333@yahoo.co.jp |
0fcbfd1b29cd78bfc26627d84f1dc484ef4cd791 | 1dbb922246b549d2721fb0bde46b49ee94d65789 | /tests/base.py | 5cbf76b6b7e17e1ed4243858d3e555b46362405d | [] | no_license | easyNav/easyNav-sensors-wifi | a9ae91cc5ab9ffb3113d081f8b43b9761942abe0 | 00acfd48473efb52b838379a25de516d52a222d4 | refs/heads/master | 2021-01-01T15:24:36.112766 | 2014-10-16T15:58:09 | 2014-10-16T15:58:09 | 25,121,604 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# This file is part of easyNav-sensors-wifi.
# https://github.com/easyNav/easyNav-sensors-wifi
# Licensed under the MIT license:
# http://www.opensource.org/licenses/MIT-license
# Copyright (c) 2014 Joel Tong me@joeltong.org
from unittest import TestCase as PythonTestCase
c... | [
"me@joeltong.org"
] | me@joeltong.org |
6ad2e977a128e69b0bb0e99f23b1c334efee2083 | a1107969d677024c15edd4808b7006f8421d64c2 | /venv/bin/pyqt5qmlscene | 4dfe09476a0e70d19b8e96594754030ba7e767d2 | [] | no_license | vlamik19/Server-Client-learn-socked | cafe6d6faff5b76b220b48a3d06bd24ee227c763 | 6bb1b31b3f85b1fbf29c7cb5438cbf449b2aaa93 | refs/heads/master | 2022-11-28T03:43:38.760346 | 2020-07-21T15:07:06 | 2020-07-21T15:07:06 | 278,643,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | #!/home/vladmik19/PycharmProjects/server2/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pyqt5_tools.entrypoints import pyqt5qmlscene
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(pyqt5qmlscene())
| [
"madara020498@mail.ru"
] | madara020498@mail.ru | |
175b16aa461473aa8fbeb39f96459c4ddc826859 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02937/s405333986.py | 77f923e46db0a03de4ebb7d4023a7c9648601069 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | s=list(input())
t=list(input())
ns=len(s)
nt=len(t)
t_set=list(set(t))
s_set=list(set(s))
for i in range(len(t_set)):
if t_set[i] not in s_set:
print(-1)
exit()
from collections import defaultdict, deque
from bisect import bisect_right
ds=defaultdict(list)
for i in range(ns):
ds[s[i]].append(i)... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e50f135364772e42c6edaf110f4b2dd0b7d1d55c | 1fcbe1f4ec9f55b1c576e848e793228323ed2d61 | /order/migrations/0001_initial.py | 0e0281f1158c2d262d9b2bf6b5f4e14119c06c29 | [] | no_license | jzhang0228/coin_registeration | 48db7f697c0eedcaba6cbf2824f39334687a40d0 | fd6482c6390f6afac5b84a185f6fbb35a66e348e | refs/heads/master | 2021-01-10T09:30:57.131499 | 2016-04-19T06:37:43 | 2016-04-19T06:37:43 | 50,980,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,842 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-02-03 07:06
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations =... | [
"jzhang0228@gmail.com"
] | jzhang0228@gmail.com |
66710b834ba910ae871e35434ff06cc236671078 | 88a6bee119310e508bd04e87532a363eaafabc38 | /mattermostgithub/payload.py | e99404fef011930a7b6da540bed9729136c80ea1 | [
"MIT"
] | permissive | Y-Ge/mattermost-github-integration | efcd0be77649d47c22ecc2390b9210da48dde673 | 1124a0ff233b50ed6070cb84cfffd128ad219831 | refs/heads/master | 2020-05-03T06:46:05.224619 | 2019-01-16T10:17:18 | 2019-01-16T10:17:18 | 178,481,570 | 0 | 0 | NOASSERTION | 2019-03-29T22:09:52 | 2019-03-29T22:09:52 | null | UTF-8 | Python | false | false | 9,155 | py | from io import BytesIO
import requests
try:
from PIL import Image
from mattermostgithub.config import SHOW_AVATARS
except ImportError:
SHOW_AVATARS = False
class Payload(object):
def __init__(self, data):
self.data = data
def user_link(self):
name = self.data['sender']['login']
... | [
"lukas.diekmann@gmail.com"
] | lukas.diekmann@gmail.com |
9b1ea4f67a3f044fbccede3769ea8b82e6e0b05a | 5534b6f65381357d60c1c8277e27e99a98def5f8 | /2022/LeetCode/2022-11/prefix_sum.py | be837dc1b64a8e1f6cf68cd1b1216d623d82fbb5 | [] | no_license | ootz0rz/tinkering-and-hacking | 61bc326f87bca57b2c2bc660885a75b21a7b0f55 | 874ee305e53998a89ced77111aaae45b60b418e1 | refs/heads/master | 2023-01-28T05:27:02.812394 | 2023-01-24T20:05:02 | 2023-01-24T20:05:02 | 8,169,514 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,023 | py | from typing import List, Optional, Dict
# stupid...but works
import sys, os
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.dirname(SCRIPT_DIR))
from TestHarness import *
'''
Prefix sums allow us to find the sum of any subarray in O(1)O(1).
If we want the sum of the subarray from i ... | [
"ootz0rz@gmail.com"
] | ootz0rz@gmail.com |
ba5bf4df83c1a5e401c6ac4d470108fae419940f | 25bb4e760769cc483a20f27b6312698891dce034 | /python/Closures and Decorators/decorators-2-name-directory-English.py | 529c7f5310dd4be88cfeca5669d97fbd3c92bd2b | [] | no_license | rangaeeeee/codes-hackerrank | e13d22adff1ef74974e34251d9bfac6cfd36f2b0 | ce7fdf7f336c10164fd2f779d4ed3713849d7c2b | refs/heads/master | 2021-01-19T17:07:28.451983 | 2017-09-01T18:05:33 | 2017-09-01T18:05:33 | 101,049,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | from operator import itemgetter
def person_lister(f):
def inner(people):
people=sorted(people,key=lambda x: int(x[2]))
return [f(p) for p in people]
return inner | [
"rrangarajan.85@gmail.com"
] | rrangarajan.85@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.