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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1e4cd8ed5c9c2fd78cfccda92d0753fde46d8b3d | 1c9d9a4fdcc4f8d5ae420dd876fef054c38a89aa | /raypath_plot.py | a258f27ef90f109e9bb977bf023c5126d705b549 | [] | no_license | tianyining/arabian-anisotropy | 751a673a3a3bc48ede6cf9485b8220548eb0bcfd | afc826c6554a502000495a86cfcbbf365c1e75cd | refs/heads/master | 2023-03-25T07:57:04.797570 | 2021-03-18T14:19:27 | 2021-03-18T14:19:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,359 | py | """
for plotting raypath coverage plots. Draws lines for each station pair. Can be run for all periods or a single period
"""
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
from formatter import read_raw_file
import matplotlib.cm as cm
from matplotlib.colors import Normalize
def plot(period, ax):
df =... | [
"jbr43@cam.ac.uk"
] | jbr43@cam.ac.uk |
55107bfc0b70cbf0ce0416d7d702e61475dc14dd | f26521284741a1f730e2d52de7426807247e08b6 | /Python/Topics/Class/Who is who/main.py | 2bcfcf86bdc076784c5ae9755f976ba6ac78e8bc | [
"MIT"
] | permissive | drtierney/hyperskill-problems | 0e6fe8ca418d1af700a5a1b1b2eed1f1f07b8e9e | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | refs/heads/main | 2021-10-25T07:02:50.838216 | 2021-10-16T19:08:49 | 2021-10-16T19:08:49 | 253,045,232 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | class Angel:
color = "white"
feature = "wings"
home = "Heaven"
class Demon:
color = "red"
feature = "horns"
home = "Hell"
the_angel = Angel()
print(the_angel.color)
print(the_angel.feature)
print(the_angel.home)
the_demon = Demon()
for attribute in ['color', 'feature', 'home']:
print(ge... | [
"d.r.tierney@hotmail.co.uk"
] | d.r.tierney@hotmail.co.uk |
7fc96a9563536b294dc30fc237fda52fbf8b6ed9 | 709d63cce6db2c6e42f06f88f7e96e1f822ff773 | /heuristic/functions/routing_costs.py | 4eb313c3bb40550b6939ed416e71b3be0f87a199 | [
"MIT"
] | permissive | cryptonome/OR-Analysis | 09bc567ae213c47d6160c985ff648b44690ce766 | 2070e2dee49f1556fcaa00044d3512e4ba08550f | refs/heads/master | 2022-04-12T04:51:51.494249 | 2020-03-31T09:42:17 | 2020-03-31T09:42:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,751 | py | import numpy as np
from heuristic.classes import Problem, Route, Solution
from heuristic.constants import DEPOT
def routing_costs(sol: Solution) -> np.ndarray:
"""
Computes routing costs for each customer, as the cost made currently for
having a customer in a route, against the alternative of not having ... | [
"noreply@github.com"
] | cryptonome.noreply@github.com |
4ff46f654c2a228d62028ea69d5fe8eb18d0d44b | 78ff488fdc75774abc808c9a4c0dd9566b23ae49 | /58103-Scalco-Valentina/TP3/Test1.py | 5164be4821681fb51b34d688f1f22dd74a60a059 | [] | no_license | valenscalco/um-programacion-i-2020 | 3dc84d2ca3337f129e6d85f5f0803277615031ec | 07d25a1999fbef2cff266fa3e27b77e4a8293f4b | refs/heads/master | 2022-07-17T13:01:19.565251 | 2020-05-20T16:45:48 | 2020-05-20T16:45:48 | 250,258,900 | 0 | 0 | null | 2020-03-26T12:57:44 | 2020-03-26T12:57:43 | null | UTF-8 | Python | false | false | 3,434 | py | import unittest
from Cajero import Atm, CantidadError, ValueError, MultiplicidadError, BilleteError, DisponibilidadError
from Billetes import Billete_1000, Billete_500, Billete_200, Billete_100
class TestAtm(unittest.TestCase):
def setUp(self):
self.cien = Billete_100("pesos", "$")
self.docientos ... | [
"mv.scalco@hotmail.com"
] | mv.scalco@hotmail.com |
ece8c2bdbe9075b3980b6da4c1de9129bd71031b | 495f28047fcc69ee4b579f90b421a9d87aa38f93 | /archconvnets/convnet2/python_util/data.py | a5a01dd5207b4816ae7c9cca0c8405e49f682eca | [
"Apache-2.0"
] | permissive | shyamalschandra/archconvnets | 10dfffa5f29f8b35e2a7d095c934d2112bcc1f45 | 147d8eab7cd21c53b6689a8364cdb613bd602aa6 | refs/heads/master | 2021-01-22T16:38:46.513143 | 2015-01-21T21:14:50 | 2015-01-21T21:14:50 | 29,734,254 | 1 | 0 | null | 2015-01-23T13:47:35 | 2015-01-23T13:47:35 | null | UTF-8 | Python | false | false | 39,138 | py | # Copyright 2014 Google Inc. 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 applicable law or ag... | [
"dyamins@gmail.com"
] | dyamins@gmail.com |
2dc9330666f5fbcb6526ba3adaba2c90af3de318 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03032/s021397547.py | d664139ae2e131d0ee24b03e0e38925747d285b4 | [] | 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 | 371 | py | from bisect import bisect_left
N,K = map(int,input().split())
V = list(map(int,input().split()))
vmax = -10**9
for n in range(min(N,K)+1):
A = V[:n]
for m in range(min(N,K)-n+1):
B = V[N-m:]
B = B+A
B = sorted(B)
ind = bisect_left(B,0)
k = min(ind,K-n-m)
v = sum(B... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
87d2010ca3b5538ef7cbec7886af70655cd31c84 | cf587df9bebf15a88582b3d16d0f680478c636fb | /regenerator/__init__.py | e391fc753813be469f56a27210452ba3c510fc82 | [
"BSD-2-Clause"
] | permissive | ghas-results/regenerator | 69383b7467474d7a4a2a47af947e34435ac07c4b | 933e690b122df86b1d4b8404a47ea227eb478f4c | refs/heads/main | 2023-08-09T22:56:16.705355 | 2021-03-11T23:54:38 | 2021-03-11T23:54:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | '''Reentrant generator (regenerator) stream.'''
from .stream import *
| [
"Elliott.Forney@ibm.com"
] | Elliott.Forney@ibm.com |
cbba4063f542e0bf519d84589276fccc8b5d45c3 | e7e5ac71c941e3daf82781249ae6d32d8614f78e | /2021/day-01/solve.py | 7cf5aad6252eabebb08679fdc50aa41991bf2cad | [
"MIT"
] | permissive | amochtar/adventofcode | 7f952ebee6b41aa5147cc788710fb054579742e7 | 292e7f00a1e19d2149d00246b0a77fedfcd3bd08 | refs/heads/master | 2022-07-14T22:46:21.175533 | 2021-12-15T08:14:17 | 2021-12-15T08:28:43 | 222,647,709 | 1 | 0 | MIT | 2022-06-22T04:45:13 | 2019-11-19T08:36:02 | Python | UTF-8 | Python | false | false | 575 | py | #!/usr/bin/env python
import aoc
@aoc.timing
def part1(inp: str):
depths = aoc.ints(inp)
return sum(1 for (a, b) in aoc.sliding_window(depths) if b > a)
@aoc.timing
def part2(inp: str):
depths = map(sum, aoc.sliding_window(aoc.ints(inp), 3))
return sum(1 for (a, b) in aoc.sliding_window(depths) if ... | [
"ade@instruqt.com"
] | ade@instruqt.com |
a30102c8069f2a64288c65f21399ddc2787cc43d | a2dcc2f7dcdb3a91383965dbb03858af7c765faa | /hashtags.py | b297e984c6ec4b4402203f534e1ed687df2873ee | [] | no_license | namitamhatre411/Sunny-with-a-chance-of-hashtags | b71de30bd1253889ef4a25594a815128b1adbe24 | f06353c985fc907f43f9230c53d864bb6e4b1bb2 | refs/heads/master | 2020-12-31T00:00:12.905472 | 2017-01-31T21:09:43 | 2017-01-31T21:09:43 | 80,562,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | import pandas as p
from sklearn.pipeline import Pipeline
from sklearn.naive_bayes import MultinomialNB
import scipy
import numpy as np
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.svm import LinearSVC
from sklearn import svm
import ... | [
"namitamhatre@Namitas-MacBook-Pro.local"
] | namitamhatre@Namitas-MacBook-Pro.local |
515ae7d62a3dd2af4a836e14d6f535ba3807c999 | d0cb60e92e6196f5621421301b5ba5ef778caa1c | /mysite/misiproba/urls.py~ | c84095cf797ee25dbc4b364d38964dede43e584f | [] | no_license | har11/djangotest | 9be5bf17fff2baef10879d2f7478ea5bffca6805 | 42d52bd69f445522bdd7650684e88b9321e2fda8 | refs/heads/master | 2020-05-18T08:03:46.440734 | 2013-10-23T20:23:20 | 2013-10-23T20:23:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | from django.conf.urls import patterns, url
from misiproba import views
urlpatterns = patterns('',
url(r'^$', views.IndexView.as_view(), name='index'),
url(r'^newuser', views.newuser, name='newuser'),
url(r'^(?P<user_id>\d+)/edituser/$', views.edituser, name='edituser'),
url(r'^(?P<user_id>\d+)/deleteu... | [
"har11&freemail.hu"
] | har11&freemail.hu | |
cb742459992f786fe4dc3efed83b660e36559b65 | 502ef945542800f9dd33ef93ba8222aa7e9fcd1b | /microblog/config.py | eae5f8416ece81a1b1c21f91c41a3468f11634b4 | [] | no_license | csbarker/lets_play_python | cd12e254998ed460712ab07ab2b2df4a3548a8aa | 309a70fe700d36ff0e8063bba90cb64679269bc0 | refs/heads/master | 2021-01-19T14:33:07.223991 | 2014-05-24T14:37:48 | 2014-05-24T14:37:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
# Database
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
# Search
WHOOSH_BASE = os.path.join(basedir, 'search.db')
## Settings
CSRF_ENABLED = True
SECRET_KEY = 'y... | [
"callum.scott.barker@gmail.com"
] | callum.scott.barker@gmail.com |
c71cb016fd30053e434a2b42e23a96a22cca55b8 | 8bada7f2a894b1cc8d7e12b56c7df7d9cbb236e2 | /asynccsv.py | be7d2112ac76df01415362aea15f6c89c08f4049 | [
"MIT"
] | permissive | mattmiller87/RLScrape | 34ac573fe1c44eb0066b41040f1f930f872f1d2c | 6848d68d5997eb816b15663dbfe36066d36621ac | refs/heads/master | 2021-07-11T02:31:33.331638 | 2020-12-17T23:47:20 | 2020-12-17T23:47:20 | 225,527,126 | 3 | 4 | MIT | 2020-12-17T20:38:49 | 2019-12-03T03:59:49 | Python | UTF-8 | Python | false | false | 9,343 | py | #!/usr/bin/python3
import requests
import csv
import datetime
import argparse
import os
import re
from tqdm import tqdm as pbar
import asyncio
from aioify import aioify
from setup_logging import logger
from rlscrape import Webscrape
readibletime = datetime.datetime.now().strftime("%Y-%m-%d_%H-%M-%S") # used for csvW... | [
"mattmiller87@gmail.com"
] | mattmiller87@gmail.com |
fb8ffbf6f78bc4503c579c9c4ea54aee03334dc4 | 956ca85f1bf075aeebaa42de79122a07f17c57d5 | /NewsEnv/NewsPortalProject/News/migrations/0002_auto_20200319_2142.py | 88507e8a8e491b530b9538bf728af04df2c7da44 | [] | no_license | mandeep111/NewsPortal | a1478f597e8fc41e95b1799ed6ef847f03a9e200 | e9471bbdcc57fb83b8cace35daf6c27321e90850 | refs/heads/master | 2022-09-21T07:19:22.717374 | 2020-03-20T15:25:44 | 2020-03-20T15:25:44 | 245,451,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # Generated by Django 3.0.4 on 2020-03-19 15:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('News', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='news',
name='views_count',
f... | [
"mandeepdhakal11@gmail.com"
] | mandeepdhakal11@gmail.com |
8d8b0ab231964b949fd0e44dbc04b96e34e71f6c | e2eba55bfcd30ec6109243ad83efa3be4f9d086a | /platzigram/settings/prod.py | 234d11bac9a6f0e7a4131af55e3ef991691d9270 | [] | no_license | peralson/instagram-copy | 7c40cdea9efaa09ee1428ee757498e85f28bd77f | 129689da28c0477f08a3d0af4b9cabcca5af7954 | refs/heads/master | 2022-04-28T18:05:27.384470 | 2020-04-13T23:01:12 | 2020-04-13T23:01:12 | 255,396,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | from platzigram.settings.base import *
DEBUG = False
ALLOWED_HOSTS = ['platzigram.clapfy.es']
STATIC_ROOT = 'staticfiles'
MEDIA_URL = '/' | [
"pabloperaltapalacios@gmail.com"
] | pabloperaltapalacios@gmail.com |
704c62b00673b310a92ce453c982ad8a31dd5b8b | 13844d7554ecb6349fb62bca925b85eb37142771 | /TrueValueDetection.py | 194237dd33ef0c7e26d226e6b76673c548a4a66e | [] | no_license | YEJINLONGxy/shiyanlou-code | 35138656cb141b22beb0d039de8ca39434815dc8 | 6dd71f17dabc2fbfeb38ea488e514dc281ac16f4 | refs/heads/master | 2020-06-26T13:17:19.618178 | 2019-08-22T08:53:05 | 2019-08-22T08:53:05 | 199,642,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | #!/usr/bin/env python3
#检测真值的优雅方式是这样:
if x:
pass
#不要像下面这样做:
if x == True:
pass
| [
"1067530182@qq.com"
] | 1067530182@qq.com |
e6af2017b432e17d227eb8a96646038566ecc7c5 | 40c1db9961c99487cf718b7d95da7998a41e6bb8 | /itens/models.py | 21785a367d3d62a1b2b02ac668fab6e80f988a71 | [] | no_license | FSaeta/Projeto-PPADS | 4c9c3e28da34d2fa50ef0592585f5db7a0c4f722 | e8ca98e58b97c87fb4db893efbad3c99a73e60ac | refs/heads/master | 2023-07-21T05:46:04.286122 | 2023-07-06T15:43:50 | 2023-07-06T15:43:50 | 374,760,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,415 | py | from django.db import models
from django.urls.base import reverse
from datetime import datetime
from usuarios.models import Usuario
class Categoria(models.Model):
nome = models.CharField("Categoria", max_length=255)
def __str__(self):
return self.nome
class Itens(models.Model):
data_criacao = mod... | [
"fek2009@bol.com.br"
] | fek2009@bol.com.br |
8e404c16fc03ee455cc24ff6bbe18e6b0d3b45f9 | 1d632e96cb738fe219bd9033a2a92560934fb575 | /project-euler/euler108.py | 598e5975d49a0d5d6371e0f4b9ae222ab9f6452c | [] | no_license | mathyomama/scripts | 8d02025e0f5654210ec38f5ada11f7cd84013a24 | 50afd1b15b1cbfa54b5193cb4b6016a7700f531f | refs/heads/master | 2020-09-22T11:26:43.336236 | 2015-05-29T15:12:57 | 2015-05-29T15:12:57 | 6,764,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | #!/usr/bin/env python
import sys
# incase you forget, the way to solve this problem is by realizing that
# f(n) = floor(number_of_factors(n^2)/2) + 1
def main():
limit = int(sys.argv[1])
n_dict = dict()
x = 3
running = True
while running:
for y in range(2, x + 1):
if x*y%(x + y) == 0:
test = x*y/(x + ... | [
"mathyomama@gmail.com"
] | mathyomama@gmail.com |
ae5d7ca9a3ec119ef5e31e62cd5e3e54613f467f | d8e7b9e1436266e7178fb37b74301d958c4b4507 | /counsel/log.py | 79706795b227b4745dee1e21e6e597dd0c03733c | [] | no_license | actionml/counsel | a6a3e4e33c05cda5164bf6ea9533a932184df30d | e7c3c369304e6a17201977fe25915a2c3afeb635 | refs/heads/master | 2020-03-10T06:53:54.893153 | 2018-04-12T12:36:09 | 2018-04-12T12:36:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | import logging
class OutputFormatter(logging.Formatter):
def format(self, record):
args = {
'levelname': record.levelname,
'message': record.msg
}
fmt = '[{levelname}] {message}'.format(**args)
return fmt % record.args
## Use root logger. Since a child hand... | [
"dennybaa@gmail.com"
] | dennybaa@gmail.com |
7cd796d4633b40da9af7960b2669410ebd453ada | d3cbf5af9aa3f9945c12831a1a0d30f8ee6265da | /count.py | 3e84ef67571b2863d2f4bde036105909ac55b0c5 | [] | no_license | LongNKCoder/algorithm_learning | d5faf846feec75700e5cad723ea9d566a96bac9b | 5f89873ded68b662059adf036d8651f5b73c417d | refs/heads/main | 2023-04-20T18:37:04.290832 | 2021-05-12T10:48:21 | 2021-05-12T10:48:21 | 349,301,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | def countConsecutive(number):
# constraint on values of L gives us the
# time Complexity as O(N^0.5)
count = 0
L = 1
while( L * (L + 1) < 2 * number):
a = (1.0 * number - (L * (L + 1) ) / 2) / (L + 1)
if (a - int(a) == 0.0):
count += 1
L += 1
return count
number = 15000000000000
print(countConsecutive... | [
"lk.nguyen@linkbynet.com"
] | lk.nguyen@linkbynet.com |
fafd1bed26be13432e33d8cefeb83118b95437c0 | 61b610cb0a2344786de832e0a0a2fea9f4fc539e | /2.py | 985113c9535284b0736bd3ab7b66a105803b5af4 | [] | no_license | JorgeVazquez19/PythonFirstSteps | 7cfe1cb5ca9fb396189b7d07bd46d7373102c7b0 | 66518c307bc449ffa987cd99e164b83cc199287b | refs/heads/master | 2020-04-20T06:01:50.322635 | 2019-02-01T09:28:15 | 2019-02-01T09:28:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | import re
from pip._vendor.distlib.compat import raw_input
password = raw_input("enter password: ")
reMayus = r'[A-Z]+'
reMinus = r'[a-z]+'
reNum = r'[0-9]+'
reExt = r'[\W]+'
if len(password) == 12 and re.match(reMayus, password) and re.match(reMinus, password) and re.match(reNum, password) and re.match(reExt, pass... | [
"jorgitoovazquez@hotmail.com"
] | jorgitoovazquez@hotmail.com |
053ad976e6336633dc0f6004015d55286c7bdfaf | 35edabd50da3f037b12b9f1f4954d04663173fa2 | /basic_ref/009.collection_list_comprehension_array_filter.py | a61d758f1b686bae2608a8fed90f6db6baf5a56b | [] | no_license | udayshi/ev3 | eede6309bdb3732a2500709273eab36b7ca0a614 | 48d4f4c6c917f64db9148856419cfb429e1f225a | refs/heads/master | 2020-04-01T17:57:26.426379 | 2018-11-01T16:00:21 | 2018-11-01T16:00:21 | 153,461,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | mylist = [1, 4, -5, 10, -7, 2, 3, -1]
pos = [n for n in mylist if n > 0]
| [
"uday.shiwakoti@mullenlowegroup.com"
] | uday.shiwakoti@mullenlowegroup.com |
6d85b979f8691ff29a9f9be5767f2375a74ff9fc | e4b2ef5734175d0ca5bf109b18e0f43943686903 | /bookManagePj/gui/calc2.py | ef59972d22563f3084e6f4a2549cfeb98c93a782 | [] | no_license | jungaSeo/python_pj1 | a23659eb42ac7391ab3d9c22eec79a07b5b19fce | 704b2ab91bcb2d39c7feb62ba4a37f41041f0320 | refs/heads/master | 2020-05-04T20:37:09.806985 | 2019-04-13T10:00:22 | 2019-04-13T10:00:22 | 179,444,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,468 | py | import sys
from tkinter import *
def clear():
txtDisplay.delete(0, END)
return
root = Tk()
frame = Frame(root)
frame.pack()
root.title('Calculator')
num1 = StringVar()
topframe = Frame(root)
topframe.pack(side=TOP)
txtDisplay = Entry(frame, text = num1, bd=20, insertwidth=1, font=30)
... | [
"zzang@DESKTOP-8JUBML4"
] | zzang@DESKTOP-8JUBML4 |
a485431bb651f6d2ee5e57cfeb93176fd651c79e | 3e7476abe9667208eb3aa1788237d783cc116665 | /lotte_project/asgi.py | 08729e2af9cd464c3ec54c2bfecae8fa7c73ec3f | [] | no_license | Beans9605/heroku_lotte | dbf190221730d75a608f14658d94843390279a54 | dcaeacac81da50d78dc72bae05ab276512ed6538 | refs/heads/master | 2023-01-16T03:33:01.052234 | 2020-10-25T16:47:49 | 2020-10-25T16:47:49 | 307,112,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
ASGI config for lotte_project 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... | [
"alkad1234@likelion.org"
] | alkad1234@likelion.org |
4370cb702c00e24272c7131dbaca565ca7cca73e | 3567d260437aabb73fe7ace92a76afba658444a0 | /main.py | 56de48d02027237feaabfb4d8c9b2f0d76fe0809 | [] | no_license | tiamesfa12/checkers-python | 99fbf45b135521829c122ed1b38790ca0399ee66 | 86110dd9d6d960c832025e4919c96f3cdaa19c18 | refs/heads/main | 2023-02-27T04:16:45.416961 | 2021-02-01T18:15:51 | 2021-02-01T18:15:51 | 335,039,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | import pygame
from checkers2.constants import WIDTH, HEIGHT, SQUARE_SIZE, RED
from checkers2.game import Game
from minimax.algorithm import minimax
FPS = 60
WIN = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("Checkers")
def get_row_col_from_mouse(pos):
x, y = pos
row = y // SQUARE_SIZE
col... | [
"noreply@github.com"
] | tiamesfa12.noreply@github.com |
9aff4776e7a2ddf4284e16a6e8a0267f27c5ea27 | 1cb7aeb570630c9743a5b0dc7a254197d26016de | /py/testdir_ec2_only/test_parse_syn_s3n_thru_hdfs.py | 877490a8fb08c2a833f6b77182c24885c8f4cc5c | [
"Apache-2.0"
] | permissive | devinshields/h2o | 576dbebc663265190cfca3fe8341b10d2243213c | 9d8b782e5cb7f38f3cb0086fef15ecec7d9282d5 | refs/heads/master | 2021-01-18T04:57:34.703132 | 2013-08-27T00:57:51 | 2013-08-27T00:57:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,071 | py | import unittest, time, sys, random
sys.path.extend(['.','..','py'])
import h2o, h2o_cmd, h2o_hosts
import h2o_browse as h2b
import h2o_import as h2i
class Basic(unittest.TestCase):
def tearDown(self):
h2o.check_sandbox_for_errors()
@classmethod
def setUpClass(cls):
# assume we're at 0xdata... | [
"kevin@0xdata.com"
] | kevin@0xdata.com |
d6664e32d60cee4b037eec8832a8a5700d57d63a | e81576012330e6a6024d14f3e241f88ca34b73cd | /python_code/vnev/Lib/site-packages/jdcloud_sdk/services/resourcetag/models/ResourceReqVo.py | d520231ef4b8a9e9d0ce52cfcf8615761daffcb6 | [
"MIT"
] | permissive | Ureimu/weather-robot | eba6a84147755aa83c941a306bac1a7c4e95e23e | 7634195af388538a566ccea9f8a8534c5fb0f4b6 | refs/heads/master | 2021-01-15T07:23:42.274413 | 2020-03-23T02:30:19 | 2020-03-23T02:30:19 | 242,912,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,909 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"a1090693441@163.com"
] | a1090693441@163.com |
c60612d9601f0566000fea65a50c4c4af60a5282 | a1da8f289df9c088f13528feb8bcac339c005539 | /consensus_and_profile.py | 20e6b8294e23e1319be8abc6c72b2bb294794686 | [] | no_license | ajduberstein/rosalind_problems | 2b4a0d6efb9ae0b556d4c211617a013b42909d23 | f780b1b1a0ddbc5e75ca9ae6cc71a317cd219dab | refs/heads/master | 2021-01-13T01:40:55.709112 | 2014-05-22T19:12:36 | 2014-05-22T19:12:36 | 19,955,710 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | #In progress
def prune(input_dset):
f = input_dset.replace('\r\n','')[1:]
f = f.split('>')
f = [list(x[13:]) for x in f]
import copy
transposed = copy.deepcopy(f)
for x in xrange(0,len(f)):
for y in range(0,len(f)):
transposed[y][x]... | [
"ajduberstein@gmail.com"
] | ajduberstein@gmail.com |
acb9e1b2cbf7f2394c9d8d1e97788526cd9e0a63 | 7d275c13fedf0e44f128f3f55edf077f11898183 | /airlines.py | 6d96904d732e20e22d43a9f7c26f2758f602ac2f | [] | no_license | ShubhamDS-P/Clustering | 30a29f5335ca117de7cbccbdd5373c706fda0f06 | ee7cff405d41ae831fd7e44853f6f36cf44317f9 | refs/heads/main | 2023-02-14T04:24:44.822595 | 2021-01-10T11:34:23 | 2021-01-10T11:34:23 | 328,367,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,317 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jan 10 12:21:48 2021
@author: Shubham
"""
import pandas as pd
import numpy as np
import matplotlib.pylab as plt
from scipy.cluster.hierarchy import linkage
import scipy.cluster.hierarchy as sch
from sklearn.cluster import AgglomerativeClustering
from sklearn.clu... | [
"noreply@github.com"
] | ShubhamDS-P.noreply@github.com |
e4b473a220b5e55ed9ddc61367215546c54a10f9 | 565008d400f39cd5f820ac5c0bfdfdff12d8ba85 | /untitled4/lab6/migrations/0001_initial.py | fa5525dc724bad8bdb62d2e7e44118b5d27e8a24 | [] | no_license | VladimirBurash/Lab6 | 3ef58b072c25ba8312f61814116e16f2554cec1c | f8996b37db486f31c48cb879df60cab8b094b2cd | refs/heads/master | 2020-06-10T13:03:49.506464 | 2016-12-08T17:05:37 | 2016-12-08T17:05:37 | 75,958,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2016-12-08 16:40
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Artist... | [
"noreply@github.com"
] | VladimirBurash.noreply@github.com |
355fbfb179587e34aec6a725fa153e1adf273f2a | 7c302a09def89d3c363e344856e7312ef812c767 | /users/forms.py | 3b43eda2d73b6a5f32cfd83440802d0b9e1206d0 | [] | no_license | Evishka/django-custom-signup | 4da10da94b0921420af15ccf8ee0201838ffd856 | c2230e3a26dd0389107a597d7f2574e31cd1aaf6 | refs/heads/master | 2022-12-15T01:12:04.177456 | 2019-10-23T05:27:47 | 2019-10-23T05:27:47 | 216,969,661 | 0 | 0 | null | 2022-12-08T06:46:19 | 2019-10-23T04:43:57 | Python | UTF-8 | Python | false | false | 682 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from .models import CustomUser
class CustomUserCreationForm(UserCreationForm):
class Meta:
model = CustomUser
fields = ('first_name','last_name', 'email','personal_url')
def signup(self, reques... | [
"luce_fioca@hotmail.com"
] | luce_fioca@hotmail.com |
7cb408bfb81428efbabb5ac73ccd502f8f7242e8 | aa560d3f82f207f713d026a439a061fb5e4131db | /AMTPL/wsgi.py | 34b3f4400824cdd5e8a9d96ebc4ffd6618a4a6a9 | [] | no_license | galactic0/areon-web-deploy-v1 | bb9a2fba9783c73a48bde8cd40ff078e6f0a51bf | bf80b046426c0d3284e8027beb389604cef522ff | refs/heads/master | 2022-09-04T01:33:32.511790 | 2020-05-26T15:15:46 | 2020-05-26T15:15:46 | 267,224,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for AMTPL project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"aps1aman@gmail.com"
] | aps1aman@gmail.com |
b6b87d81e355a4f8bff6abb5d8f6e610fc0bb9d5 | 68271a37c3c4dd3d31b24c0cddbf574472f9f6a5 | /backend.py | 7e19cee00e6f11342bb1cc90a70ae13c0cee22f0 | [
"MIT"
] | permissive | LSaldyt/automata | 8bcbb269bdfdf01803d66b77eb31be0a7eddb83b | ff0ba058f087fbcd7958866019b4b7cb43e924bd | refs/heads/master | 2020-04-28T19:01:49.703783 | 2019-04-22T21:06:01 | 2019-04-22T21:06:01 | 175,497,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | from mpl_toolkits.mplot3d.art3d import Poly3DCollection
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import numpy as np
def cuboid(o, size=(1,1,1)):
X = [[[0, 1, 0], [0, 0, 0], [1, 0, 0], [1, 1, 0]],
[[0, 0, 0], [0, 0, 1], [1, 0, 1], [1, 0, 0]],
[[1, 0, 1], [1, 0, 0], [... | [
"lucassaldyt@gmail.com"
] | lucassaldyt@gmail.com |
9524be5e345203545d7e2e5af8b43f43ec21f9fe | 1141157442bda8d53840ca3bf2e304f779078134 | /competitiveSTDP/ReadDataFunction.py | d90ca688e477cf0707ff2b6322520e36693909f3 | [] | no_license | MyWhiteCastle/ECE523 | 2ea03b9f02bb980dbaf18a1df93568c8f5cc1cc4 | bb2e61b7cbbf9d875c82be6179fc0c6ace78799a | refs/heads/master | 2020-04-05T06:10:22.885834 | 2017-12-09T23:27:00 | 2017-12-09T23:27:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,637 | py | from skimage import filter as filt
import pickle
import numpy as np
def readData():
#---------------------------------------------
with open('train0.pkl', 'rb') as input:
train0 = pickle.load(input)
with open('test0.pkl', 'rb') as input:
test0 = pickle.load(input)
#-----------------... | [
"zhengzhongliang93@gmail.com"
] | zhengzhongliang93@gmail.com |
e878d66b3561fbb082d23f955080de3cb97a19a0 | ab1ceae0751891a72ffa49f0a3b7b5c6212f05d9 | /Basic/S2_03basic_variables.py | f77dc7e18c35444d1f689ab22ba5317e8e1ecb68 | [] | no_license | Leeeungrae/PythonLibraries | c36a0da91ce99d3aa581b15ab150e809db514a79 | d9f9c5aaf63e6ccf54b8e4c0df1eb1002004b3be | refs/heads/master | 2020-08-06T17:26:24.460839 | 2019-11-16T13:29:54 | 2019-11-16T13:29:54 | 213,091,886 | 0 | 0 | null | 2019-10-18T13:51:06 | 2019-10-06T01:05:26 | null | UTF-8 | Python | false | false | 1,304 | py | #list
mylist = [1, 2, 3, 4, 5]
mylist1 = ['a', 'b', 'c']
mylist2 = [1, 'a', [100, 200, 300], 2]
#list 인덱스
print(mylist[1])
print(mylist2[2][1])
#mylist2[3] = 100
print(mylist2)
#List size
print(len(mylist))
print(len(mylist2))
#append함수
data1 = ["korea", "Japan", "America"]
data1.append("china")
print(data1)
#pop함... | [
"reisei88.dev@gmail.com"
] | reisei88.dev@gmail.com |
cb3a40bd30ee7d01016f649a788ffdf93f58f8d8 | 9c9453734273da52b416ab9dfd5ad97bd03c6774 | /learntools/kt/tests/test_kt_data.py | 32d47faeac8cc102ed4510bcd7a5d19029543e29 | [] | no_license | summyfeb12/vector_edu | 08411ae19b3bc4a2b6a2951957b4d76dc75acac7 | d929498cf3e393aeeac408d6f72066563762fd7d | refs/heads/master | 2021-01-22T00:20:10.951181 | 2015-01-27T03:07:16 | 2015-01-27T03:07:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | import numpy as np
from learntools.kt.data import prepare_new_data2, prepare_new_data
from test_kt import use_logger_in_test
# TODO: this test is out of date. Replace it with a better one
'''
@use_logger_in_test
def test_prepare_dataset():
dataset_name = 'data/data4.gz'
ds, train_idx, valid_idx = prepare_new... | [
"yueranyuan@gmail.com"
] | yueranyuan@gmail.com |
cd6cd17cd062d3d35aa0116da8ae24d23f41ecbe | 17fb6b997c2ab707651fe719f1456dfae3aae052 | /leetcode/146_LRU_Cache.py | 85ccc923e353d4f69b50b49c2f176c49fb7b70a2 | [] | no_license | dmitry-pechersky/algorithms | 40b6184400bcf818c2590b9413ce1bf510b3b355 | 74f13f6e256c2e0c1503ec4bafa6b3e0f227fe2c | refs/heads/master | 2023-05-31T14:20:51.882551 | 2023-05-11T06:59:53 | 2023-05-11T06:59:53 | 122,305,451 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,912 | py | from unittest import TestCase
from collections import OrderedDict
class LRUCache:
def __init__(self, capacity: int):
self.capacity = capacity
self.dic = OrderedDict()
def get(self, key: int) -> int:
if key in self.dic:
self.dic.move_to_end(key)
return se... | [
"@none@none.com"
] | @none@none.com |
afbc0ea56e7cb155afec46f10c5e11b4625c3058 | abad82a1f487c5ff2fb6a84059a665aa178275cb | /Codewars/7kyu/so-easy-charge-time-calculation/Python/test.py | 0c7363e56959f0d28c875a4cc5375e8de39a6d2e | [
"MIT"
] | permissive | RevansChen/online-judge | 8ae55f136739a54f9c9640a967ec931425379507 | ad1b07fee7bd3c49418becccda904e17505f3018 | refs/heads/master | 2021-01-19T23:02:58.273081 | 2019-07-05T09:42:40 | 2019-07-05T09:42:40 | 88,911,035 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | # Python - 3.6.0
Test.describe('Basic Tests')
Test.assert_equals(calculate_time(1000, 500), 2.6)
Test.assert_equals(calculate_time(1500, 500), 3.9)
Test.assert_equals(calculate_time(2000, 1000), 2.6)
Test.assert_equals(calculate_time(5000, 1000), 6.5)
Test.assert_equals(calculate_time(1000, 5000), 0.26)
| [
"d79523@hotmail.com"
] | d79523@hotmail.com |
64b76f3987df38265342911529b1721376420922 | a52c7be812be43fbfa5844f5b89a25b1bdb091fa | /datelib.py | 3b1947b66a3ef083dbf0a23f6a9ed36ea9cc92c2 | [] | no_license | rteak/Project001 | 3aec3ef97897210f73d1074e00c6ec267f719553 | 1ee63dfd590c8beb5377b4492170990556b022be | refs/heads/master | 2022-08-01T19:38:28.496415 | 2020-05-27T09:26:20 | 2020-05-27T09:26:20 | 267,269,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | # =============================================================================
# 日数計算
# =============================================================================
import datetime as dt
def day_count(fromdate, todate, delimiter='/'):
# 年月日の分割(from)
fy = int(fromdate.split(delimiter)[0])
fm = int(fromdat... | [
"62337633+rteak@users.noreply.github.com"
] | 62337633+rteak@users.noreply.github.com |
5f12c80b451d8ec28245197bdea90002f9550948 | ead63de23c659abe3c85897c03ea3316f2ce3b28 | /model.py | e401f1a8e93aef766d33c85b1207f6b534a97922 | [] | no_license | yqGANs/LCCGAN-v2 | 0f751574b4c61b2d4323d380f625d0de4795234f | d86f61e7f99d43efcdd428cc2ed0f09ee1dc7aaa | refs/heads/master | 2022-11-25T14:29:39.151224 | 2020-07-23T12:38:45 | 2020-07-23T12:38:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,940 | py | import torch
import torch.nn as nn
from torch.autograd import Variable
class lcc_sampling(nn.Module):
def __init__(self, anchor_num, latent_dim):
super(lcc_sampling, self).__init__()
self.anchor_num = anchor_num
self.latent_dim = latent_dim
self.register_buffer('basis', torch.zeros... | [
"scottgyguo@tencent.com"
] | scottgyguo@tencent.com |
e4349aad71a7bcb2e770564e0eb5f182520eb84b | 1cacad76550376a93dc5b87798e9624f22129879 | /docs/source/conf.py | 4eeb5cb8935ea679341c97f381b91f519e3ebbf5 | [
"CC0-1.0",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | clakech/metrics | 9ae4c5b9a9f5db10bc1040de43ac4d9fee42734f | c32f8bd8304267af09582f7979d69e2df8d69ca3 | refs/heads/master | 2020-12-25T03:10:34.158983 | 2012-02-19T07:06:07 | 2012-02-19T07:06:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,359 | py | # -*- coding: utf-8 -*-
#
# Dropwizard documentation build configuration file, created by
# sphinx-quickstart on Mon Feb 13 11:29:49 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# ... | [
"coda.hale@gmail.com"
] | coda.hale@gmail.com |
12231e5e5f721075626108298acb1a8317dc3ade | 178fef62f033068be8591057470af2be16542d40 | /gym_ple/ple_env.py | aea8f15ad9026c9020833bfc0e9e9aa956cefaaa | [] | no_license | nju-fuzy/envs | 632dd0541a67503cbcf13a8a85cc305cc08c6a04 | e5ef685b2536a00088eef03d6f9f20152d4d0fc8 | refs/heads/master | 2020-08-07T18:55:45.774585 | 2019-02-11T03:33:05 | 2019-02-11T03:33:05 | 213,557,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,264 | py | import os
import gym
from gym import spaces
from ple import PLE
import numpy as np
class PLEEnv(gym.Env):
metadata = {'render.modes': ['human', 'rgb_array']}
def __init__(self, game_name='FlappyBird', display_screen=True, ple_game=True):
# set headless mode
os.environ['SDL_VIDEODRIVER'] = 'dum... | [
"lxcnju@163.com"
] | lxcnju@163.com |
1cad71006bfaaca4c9073496567deaea73f84e40 | c191d7db16366f1532c05c6bc238c59f378f008a | /zscanFitter.py | 52938f9afe2a92ace41b1d0549f4d42b9e9f10b3 | [] | no_license | hurxx018/FFS | 410b9cd07da0b2a16c06fc59da31d61d35a4803e | eeaf4dcc76709e58d8775f36ce82354de8262b3b | refs/heads/master | 2020-04-16T18:02:12.130907 | 2017-08-25T01:20:34 | 2017-08-25T01:20:34 | 65,945,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,570 | py | import numpy as np
from zscan_tools.zscanPSFGLsp import zscanPSFGLsp
from zscan_tools.zscanMultiLayer import zscanMultiLayer
from mpfit.mpfit3 import mpfit
class zscanFitter(object):
"""docstring for zscanFitter."""
#TO DO: explain each geo in detail
geodict = {"BASE":-1, "SLAB(L)":0, "UP":1, "DOWN":2, "... | [
"hurxx018@gmail.com"
] | hurxx018@gmail.com |
c607744fc4be9e2f417a02ea253ce40dd63c83cf | 5548c05a98ae86df08c21a275f028dfc64bd2819 | /data_script2PP.py | 025a4c4e9a298489da618df97cdadcf2ca244d28 | [] | no_license | nanomer/GLUE-Data-Analysis | 999d2c18715aa40784d792e363d20a7c35c45f45 | 8586e798479ef83b80fd7531ba2ce661fd7f75ef | refs/heads/master | 2020-07-29T13:30:39.415595 | 2019-11-23T22:52:31 | 2019-11-23T22:52:31 | 209,821,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,722 | py | #!/usr/bin/env python3
import sys
import xlsxwriter
from xlsxwriter.utility import xl_rowcol_to_cell
import os
from scipy import stats
# ASSUMPTIONS:
# 1. Step size of x-axis is 1 or -1
# 2. Everything is named correctly
# 3. For every IDVG there is a corresponding IDVD file
# 4. Always 0, -20, -40, -60, -80, -100
#... | [
"melissayang@utexas.edu"
] | melissayang@utexas.edu |
03a60dacf44e74f548d5b2e88d788ae264bcd283 | 326142a582c8864240064692a6500dc12da91697 | /78_Subsets.py | f08f9628475b776d6ce844ea498b5b8e5ab2f963 | [] | no_license | qscez2001/leetcode | 960e775f3c7190ea2f2c3078a25714aafaf8801b | f124203c13b2e539acc7a863ec9b1a56363b1f96 | refs/heads/master | 2022-02-26T03:35:14.308765 | 2022-02-07T07:22:48 | 2022-02-07T07:22:48 | 238,398,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,100 | py | '''
Given an integer array nums, return all possible subsets (the power set).
The solution set must not contain duplicate subsets.
Example 1:
Input: nums = [1,2,3]
Output: [[],[1],[2],[1,2],[3],[1,3],[2,3],[1,2,3]]
Example 2:
Input: nums = [0]
Output: [[],[0]]
'''
def subsets(nums):
subsets = []
dfs(nums, 0... | [
"qscez2001@gmail.com"
] | qscez2001@gmail.com |
22f53a51f9d56c1020e164b962c2a83a03669e8f | a1c9c55e1520356113a320be18e8fcb31654a944 | /archive/0.10/generated/seaborn-jointplot-5.py | 97b6478b704f4f926f64361289dfc029bff368a4 | [] | no_license | seaborn/seaborn.github.io | bac12a9255b41c7971e9e94ea393d372ef66ef62 | f70445bc3456f0216169806c2daf03452ca1eba4 | refs/heads/master | 2023-01-06T10:50:10.789810 | 2022-12-30T19:59:55 | 2022-12-30T19:59:55 | 70,731,605 | 16 | 5 | null | 2022-06-28T00:32:07 | 2016-10-12T18:56:12 | HTML | UTF-8 | Python | false | false | 147 | py | g = (sns.jointplot("sepal_length", "sepal_width",
data=iris, color="k")
.plot_joint(sns.kdeplot, zorder=0, n_levels=6))
| [
"mwaskom@nyu.edu"
] | mwaskom@nyu.edu |
c9cce2b5cdc0b337efc02782fc1719281c024b43 | 3c4bd9f5d989a700220e900aaeefb20a723f7b76 | /www/popviv/popviv/settings.py | 0bbf2c9754252bb29ee39f0fdba722ff45da0761 | [] | no_license | popviv/django-web | 0dc8e95e888dedd133bcb842ad856681e126d621 | 100fbfcac623c4ff6f111d39a0f06e2ae5e9c152 | refs/heads/master | 2021-01-09T06:20:27.262586 | 2017-02-05T04:03:00 | 2017-02-05T04:03:00 | 80,967,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,244 | py | """
Django settings for popviv project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
imp... | [
"popviv@163.com"
] | popviv@163.com |
7c455d82ac872f0ef5ae750b0acf3d726db9b587 | b7423aabf39b7ebacbd57388d20de1a9bf43f2f2 | /coding-bat/logic-1/sorta_sum.py | 1d74d2b7a01b52980779c5ec0e070d93ebb8306d | [] | no_license | usman-tahir/python-snippets | b9e2bfe8e96d321314b2e87560c2fa3cd102d0e8 | cfe564ecb5a27d8b61c8c9930458bf3fdeab4d8e | refs/heads/master | 2021-01-12T13:56:06.263461 | 2017-05-07T17:53:53 | 2017-05-07T17:53:53 | 68,925,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | # Given 2 ints, a and b, return their sum. However, sums in the range 10..19
# inclusive, are forbidden, so in that case just return 20.
def sorta_sum(a, b):
result = a + b
if result in range(10, 20):
return 20
return result
| [
"tahir.usman.ali94@outlook.com"
] | tahir.usman.ali94@outlook.com |
e7cc18d0c214ed28a66649510ef8b99453ab4b5a | 6f7b63a20d827673db2a12974ec13e0e932c6d6f | /lesson2/task3.py | 547ec4aeed81674ce1024bb3aa17dc5b18c018ab | [] | no_license | Tskon/Pyton-gb | 075652867c98cf43cc3c60af2eb4872c22a69921 | 0aeadee644b2c998216b6549eee44bfeec8650a4 | refs/heads/master | 2020-03-29T10:11:46.691809 | 2018-10-18T17:39:17 | 2018-10-18T17:39:17 | 149,793,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | # Дан список заполненный произвольными целыми числами. Получите новый список, элементами которого будут только уникальные элементы исходного.
numList = [1, 15, 3, 1, 2, 12, 3]
# 1 вариант - убираем лишние дубли
uniqNumList1 = list(set(numList))
print('без дублей', uniqNumList1)
# 2 вариант - только неповторяющиеся ... | [
"tsekhmeister.k@gmail.com"
] | tsekhmeister.k@gmail.com |
962f542aade17ca44777f2b58fcf4e28890718e0 | 59fc88b3c777fb3b86753eed5e6b1cc79976da75 | /transpose.py | 442ee531b0d8d9a24d1e3f623f6203044fd2bdb1 | [] | no_license | atharvsinha/basicpythontranspose | 8d8ece1174d46939864f1fb0089d7f4f69c0dfa0 | 3651524347c96ecd9642d15bc4bd2b9253c9e7a8 | refs/heads/main | 2023-01-23T10:19:17.199398 | 2020-12-04T17:52:14 | 2020-12-04T17:52:14 | 318,591,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | import numpy as np
m, n = input('Enter 2 space separated integers as dimensions of an m.n 2D matrix:').split()
m, n = int(m), int(n)
matrix = np.array(list(map(int, input('Enter m.n values to be inserted in the matrix').split())))
matrix = np.reshape(matrix, (m, n))
print(matrix)
transposed =[]
[[transposed.appe... | [
"noreply@github.com"
] | atharvsinha.noreply@github.com |
2f71df85a3d2d1e020f3b4c9a12f04577e62cffd | 0c2dff339fe515e90dd98bd96c286d3603e6efdd | /hw1/release/secretExchange/naive/utils.py | ce1aa2a540892fe2705e62244265612445744bbb | [] | no_license | KevinPan0508/crypto-HW | e97fb5632e21c30336052762f38cd0e17792cf2a | f94c3df53f93934f86e09fc6a81611c364976c32 | refs/heads/main | 2023-06-19T05:29:35.919399 | 2021-07-09T05:43:10 | 2021-07-09T05:43:10 | 384,327,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,035 | py | #!/usr/bin/python3 -u
import os
import random
from enum import Enum
from Cryptodome.Cipher import AES
class State(Enum):
Initial = 0
WaitKey = 1
WaitMessage = 2
Finish = 3
class Station:
def read(self, prefix: str):
content = input().strip()
assert content.startswith(prefix)
... | [
"k0922322268@gmail.com"
] | k0922322268@gmail.com |
b97ce95ce7e648eb306f1d1b9ecb4fb53d4ed64c | 4c5feb80b04f267e10ae03659a0e0bff6545b02b | /handler.py | 3a370e6e870fc208a0282a2d2f816ecc714cd989 | [] | no_license | IonianIronist/mini-python-database | 250f8b440be74b160356f6f5888f17037244b138 | 32caf7e59c989493b255ed9491b3478ed3e975b8 | refs/heads/master | 2020-09-12T18:20:12.639016 | 2019-11-18T17:56:24 | 2019-11-18T17:56:24 | 222,509,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,728 | py | import functions as fn
# MAIN CODE FILE
file_sz = 15000 # writing file size
tupples_lst = [] # tupple buffer
data = "data.csv" # data file name
to_write = ["ordered", "heap_file"]
fn.readnstore(data,tupples_lst) # read the data, put it in the <tupples_lst>
tupples_num = len(tupples_lst) # how many tupples in the... | [
"noreply@github.com"
] | IonianIronist.noreply@github.com |
d346a54dd0ef28cd1f3d2d688b9393ef1b0a680f | f127484351afb41f748967a9f76d0fd10a7f36a5 | /weather/views.py | df4a90105f1034b35043740664d4d39e28301e81 | [] | no_license | Megha912/the_weather | aa4eb4b85d179c232541fd3324e4203f237f0d5c | b74ff5bf56985ca76bb38c7d00343b3f79c600eb | refs/heads/master | 2022-04-18T15:59:42.070959 | 2020-04-20T18:00:29 | 2020-04-20T18:00:29 | 257,363,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,681 | py | import requests
from django.shortcuts import render , redirect
from .models import City
from .forms import CityForm
def index(request):
url = 'http://api.openweathermap.org/data/2.5/weather?q={}&units=imperial&appid=271d1234d3f497eed5b1d80a07b3fcd1'
err=''
message=""
message_class=""
if request.met... | [
"2017143@iiitdmj.ac.in"
] | 2017143@iiitdmj.ac.in |
aecfb00725f4f7bd87e9f9c56ba210a02afbef5d | 780c1cfe89f5e913d44308b31ce6ce0844426ef2 | /Python/ProblemSet03/Solutions.py | 20b203f772b90bfd4c675974c4de2217fbaa38b0 | [] | no_license | Hariniraghavan12/GraduateTrainingProgram2018 | 80f3969d31de097df14e1012af7987fa34d2ca67 | 01af138707d4653bd9072ca53de60904b83b53c9 | refs/heads/master | 2020-04-15T15:20:53.689103 | 2019-06-07T06:58:01 | 2019-06-07T06:58:01 | 164,792,309 | 0 | 0 | null | 2019-01-09T05:10:55 | 2019-01-09T05:10:55 | null | UTF-8 | Python | false | false | 6,763 | py | #1.A string slice can take a third index that specifies the "step size;" that is, the number of spaces between successive
#characters. A step size of 2 means every other character; 3 means every third, etc.
#>>> fruit = 'banana'
#>>> fruit[0:5:2]
#'bnn'
#A step size of -1 goes through the word backwards, so the slic... | [
"noreply@github.com"
] | Hariniraghavan12.noreply@github.com |
dba057dbb9a90222fe78013ed507874e4483c622 | 26b8745c37acd8127a4913671dd59f781c1ac3db | /getProxy_freeproxylists.py | 11b1ec61c71b4e967fa443e5116c47667b9f94df | [] | no_license | hsh075623201/crawlProxyIps | 696e40064bd13cbcb14a4d469c07a2b547073244 | 55773b25146b6283d054243c6ee9fc1c92f10fc3 | refs/heads/master | 2020-07-14T01:10:52.336412 | 2017-12-01T04:02:10 | 2017-12-01T04:02:10 | 66,363,614 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,247 | py | #coding:utf-8
import requests
from requests.packages.urllib3.util.retry import Retry
from requests.adapters import HTTPAdapter
from bs4 import BeautifulSoup
import time
import pymysql.cursors
import random
import re
from config import *
UA = [
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/201001... | [
"shihuai.du@aihuishou.com"
] | shihuai.du@aihuishou.com |
56f93826cccd3b8c8efa2400ea3934ed95d6102e | db0e991d02a50eda222aaebeb7a5772b9cba467f | /account/admin.py | 6db31fc81344fb402617759b0d2e5180d5105ae8 | [] | no_license | iamrraj/Djanog_Learn | 1ba90ac797b284c5e2a7dd733fd61353ee8af241 | c522b41411415585468cadfe6999262a6c9b487d | refs/heads/master | 2020-04-17T09:48:09.414269 | 2019-01-18T21:24:53 | 2019-01-18T21:24:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,221 | py | from django.contrib import admin
from .models import Profile,Categoty,Product,Slide
# Register your models here.
class ProfileAdmin(admin.ModelAdmin):
list_display = ('user','location')
list_display = ('user','birth_date','email_confirmed', 'location')
list_filter = [ 'location', 'user' ]
search_field... | [
"rajr97555@gmail.com"
] | rajr97555@gmail.com |
002dabe336a49ac40c5c2814c38695ab8728203e | a06619819f686dbf42277fd6382a0de6af2090ea | /password_generator.py | 9b3096f3b76a2e4ed3fe6051101956d7ad51c3be | [] | no_license | martinpzj/PasswordGenerator | 3fb0cc0fd757ad6dc1e2ec5ecaa91b464adf814a | 90f4d0d477ed744232dfd72192f166a505764a17 | refs/heads/master | 2020-03-28T13:06:29.719913 | 2018-09-11T19:15:15 | 2018-09-11T19:15:15 | 148,366,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | import random
#combination of numbers, symbols, uppercase letters, lowercase letters
def generator(length):
password = ''
while len(password) != length:
password = password + random.choice(characters)
return password
characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&()*+,-./:;<=... | [
"mperez58@ucsc.edu"
] | mperez58@ucsc.edu |
e49326fac55a8895944075f1fa4486e0bc5a5f82 | 55d89253f2c16983629220a54ffe2c1801803aca | /src/p55.py | 0bb62e01637a19b669e7c473e38dba57ee150475 | [] | no_license | YeWenting/LeetCode-Sulotion | a1fbbb3499a844578c7e068f12a002a3d6a736af | 373a9a69b151c1a8de132915f10c5bbaa2ceb22c | refs/heads/master | 2021-07-13T01:31:36.091179 | 2017-10-18T12:12:59 | 2017-10-18T12:12:59 | 105,343,996 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | class Solution(object):
def canJump(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
farest = 0
n = len(nums)
for i in range(n):
if i <= farest:
if i + nums[i] >= n - 1:
return True
elif i ... | [
"Wenting_Ye@Outlook.com"
] | Wenting_Ye@Outlook.com |
b00dbf73d1e70aebddeedd3ffd333d028987ef80 | b0a73293e98e271ca9f3dcdf8aa67250aeb0c863 | /Decorator/DekoratorStopki2.py | 988192c52196dfa789114d4ed69ac8c1469cb20e | [] | no_license | gorkaMaksymilian/design-patterns | 84df1bdb530d3158b80d9cc1560c720b8ceca69b | 8a861612bbae33344d670cc3cdb7d00135ec7c09 | refs/heads/master | 2020-09-13T12:14:21.256238 | 2019-12-17T17:15:58 | 2019-12-17T17:15:58 | 222,775,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | from DekoratorPotwierdzenia import DekoratorPotwierdzenia
class DekoratorStopki2(DekoratorPotwierdzenia):
def __init__(self, zamowienie):
super().__init__(zamowienie)
def drukuj(self):
super().drukuj()
self.drkStopka()
def drkStopka(self):
print("STOPKA 2")
| [
"noreply@github.com"
] | gorkaMaksymilian.noreply@github.com |
422a26973120e08992ce53e7ece4c144afdd9166 | 5c667c2136db43f8c3b07bf29a4e450c47c09122 | /autoClicker/AutoClicker.spec | 229a8ff774ecfa7275606e93502d03616cc6c7ca | [] | no_license | g-ulrich/AutoClicker | 51d8a209f87c437be3f1902d4bc5a52b24029703 | 4a21d6a1c6c4f730a1d2456fe626a168faee3754 | refs/heads/main | 2023-04-22T05:56:19.597633 | 2021-05-03T13:47:06 | 2021-05-03T13:47:06 | 348,132,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,130 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['AutoClicker.py'],
pathex=['C:\\desktop2\\2021\\scripts\\python\\PyCharmProjects\\SuperClickerUtility\\venv\\Lib\\site-packages', 'C:\\desktop2\\2021\\scripts\\python\\PyCharmProjects\\SuperClickerUtility'],
bin... | [
"noreply@github.com"
] | g-ulrich.noreply@github.com |
203a76dcf6c688c6596d22764c7c4afa44ab6b6b | fdaf0e943a58279a1a50ae7cbdc73d3195c71676 | /instagram_web/util/mailgun.py | 6a4bc6d9d7f38328d31aaa7daf7bce3b77dca24c | [] | no_license | WinsonTay/nextagram | 10126e9e971197135ef00ba05ae67098de354e5c | e40fc8c5a303cac74e92a1c772d19e811ffcc903 | refs/heads/master | 2022-12-13T19:19:26.173376 | 2020-03-23T03:02:19 | 2020-03-23T03:02:19 | 245,326,205 | 0 | 0 | null | 2022-12-08T01:51:30 | 2020-03-06T04:01:05 | Python | UTF-8 | Python | false | false | 400 | py | import requests
import os
def send_simple_message():
return requests.post(
"https://api.mailgun.net/v3/sandbox14a64d8d03af4c9badd9c1f2ee2a0d0a.mailgun.org/messages",
auth=("api", os.getenv("MG_API_KEY")),
data={"from": "Excited User sandbox14a64d8d03af4c9badd9c1f2ee2a0d0a.mailgun.org",
"to": ["weeshen90@gmail... | [
"weeshen90@gmail.com"
] | weeshen90@gmail.com |
c1c7e98416024eb3e29fc245b4b49b8df8efa47b | 75a98dd6c84220441832ac7f5b5046a4777d9af4 | /sliding_window.py | 2c77952dab04c0803fc0446cf386c9b95f4fd822 | [] | no_license | Hyunwoo-Park-Yonsei/Sliding_Window | 9a94799ac32eba437e4afe96577508f58e35a78c | 2fb5cfcdb0fd2fd9cdaac25df9ca2ec6d598b8f2 | refs/heads/main | 2023-07-01T19:10:55.227303 | 2021-08-03T14:16:50 | 2021-08-03T14:16:50 | 392,334,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,364 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
import cv2, random, math, copy
Width = 640
Height = 480
#동영상 읽기
cap = cv2.VideoCature("xycar_track1.mp4")
window_title = 'camera'
#와핑한 이미지의 사이즈 bird eye view로 본 것의 이미지의 사이즈
warp_img_w = 320
warp_img_h = 240
#와핑할때 의 margin 값
warpx_margin =20
warpy_ma... | [
"kevin3671@naver.com"
] | kevin3671@naver.com |
0eef10b543a679ae323f4025fc2649ebd3f9cf06 | 0c67de0db2d3ef93d6a4b6ea865eee6d41c071ba | /aloja-tools/src/parsers/yarn-parser.py | 2f79d28061a40e6a0c30e8a65fcaeb56e2d2fcbe | [
"Apache-2.0"
] | permissive | Aloja/aloja | 1cbaee62a8456d79a627519874fcb3ec2f92671e | ebd336da944bc46443f9f97fe7253af850c608dc | refs/heads/master | 2021-05-22T08:55:19.366358 | 2021-02-17T14:24:30 | 2021-02-17T14:24:30 | 21,858,831 | 25 | 16 | null | 2017-11-17T15:50:18 | 2014-07-15T12:33:19 | JavaScript | UTF-8 | Python | false | false | 6,531 | py | #!/usr/bin/env python
import sys,os
import argparse
import re
import time
import datetime
import glob
import pprint
import csv
def get_id(line,type):
for word in line.split():
if (type == "application" and "application" in word):
return word
elif (type == "container" and "container_" i... | [
"alejandro.montero.rivero@gmail.com"
] | alejandro.montero.rivero@gmail.com |
e7efebf2086ec9f0d18bc80cfbe417810cd984a8 | 34b3d2bcfb1982ee69a379df90da993ee7df046b | /pybo/models.py | 2e6e73888549915daad574b5404c09a81443bb8b | [] | no_license | swanne-dev/swannepy | aa732ff31eda8bceb9f4566be2200c45dc52cc8d | 7dc2aa215adc0186e8eccaf756a3ab0584c8fe5e | refs/heads/master | 2023-03-25T19:39:49.685541 | 2021-03-20T13:43:05 | 2021-03-20T13:43:05 | 349,740,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | py | from django.contrib.auth.models import User
from django.db import models
# Create your models here.
class Question(models.Model):
author = models.ForeignKey(User, on_delete=models.CASCADE,
related_name='author_question')
subject = models.CharField(max_length=200)
content = m... | [
"swanne.njs@gmail.com"
] | swanne.njs@gmail.com |
0988817d20c1b9ff5aeed8eef0f7a93ff66730ed | 4774d125ec2006e803788737e95a5a76b6df145f | /python-packages/contract_wrappers/src/zero_ex/contract_wrappers/order_conversions.py | a639ffe1c524751abf3d0b0d1cf09538b6aa6d5e | [
"Apache-2.0"
] | permissive | 0xProject/0x-monorepo | 6e71def8d1f0548fdc5f49b5d404f89e66afaca1 | 53b5bb16d8b4c9050a46978b6f347ef7595fe103 | refs/heads/development | 2023-07-10T02:38:56.466840 | 2021-04-24T01:16:16 | 2021-04-24T01:16:16 | 92,181,371 | 1,132 | 527 | NOASSERTION | 2021-06-26T03:02:14 | 2017-05-23T14:17:33 | TypeScript | UTF-8 | Python | false | false | 7,334 | py | """Utilities to convert between JSON and Python-native objects.
Converting between the JSON wire format and the types accepted by Web3.py (eg
`bytes` vs `str`) can be onerous. This module provides conveniences for
converting Exchange structs between JSON and Python objects.
"""
from copy import copy
from typing impo... | [
"noreply@github.com"
] | 0xProject.noreply@github.com |
478a63c1e761ce405aaf06043f87d35e372cd8ac | aaded28b4be880ef3635695e6f576463becb7805 | /api/admin.py | 5c27ef06dcad8607856a7f0b3c9e56d7fd6bc275 | [] | no_license | Raghava248/todo_drf | 312038e0557896b657842a5621dc7f963add82a5 | 805103ba9cee872bb15b5a00873116bc96ee65cc | refs/heads/master | 2023-08-25T05:21:44.338950 | 2021-10-29T05:42:14 | 2021-10-29T05:42:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | from django.contrib import admin
from . import models
# Register your models here.
admin.site.register(models.Task)
| [
"raghava.mittu@gmail.com"
] | raghava.mittu@gmail.com |
afdd99802f2c3e8b542e770aaf8599a418822320 | 2298c6afb9fc3877a2bf283e7e7422ac1843cabd | /python-studentmgmt/run.py | 8aebcb755642578db26ac2fe956f4df57b022a95 | [] | no_license | desrop/student-course-mgmt | 32d4e86c5a5ab3bf1531652dad9ce5b78f04cdc9 | e3213b7be5fc2f2e005219f977d4b3af3883f3b3 | refs/heads/master | 2020-04-29T12:02:57.237635 | 2019-04-07T15:52:59 | 2019-04-07T15:52:59 | 176,123,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | from studentmgmt import app
if __name__ == '__main__':
app.run(debug=True) | [
"dean.desrosiers@gmail.com"
] | dean.desrosiers@gmail.com |
d707e48f2206d0063a2ee821c1c8af3036bea642 | 998195df831258000d53402dd1a0f84e4b08a54c | /resources/virtual/__init__.py | 8ee0ef15ef26eb390ac6b76f609216f0e76cedeb | [
"MIT"
] | permissive | GerasimovRM/Where-I-Am | 2ceb0e1e9b4494ffb672b00a0d2197d3c390cda1 | 58f6f0d1533421890f199dacabe523a447486b9f | refs/heads/master | 2022-12-09T17:06:43.660654 | 2020-03-31T21:39:32 | 2020-03-31T21:39:32 | 249,545,743 | 0 | 0 | MIT | 2022-12-08T03:52:26 | 2020-03-23T21:15:44 | Python | UTF-8 | Python | false | false | 37 | py | from .virtual_user import VirtualUser | [
"romagrizly@gmail.com"
] | romagrizly@gmail.com |
330f15d9c0a1213fd20d89c663d6431dc1aafdf4 | fd1dd65c5dd4495dba1e94fcf44dc8c45e8908ef | /myenv/bin/pip | 50aa6f472314e96ed16169d483c3949e190e74e5 | [] | no_license | ayushin78/django-blog | 0a1e9eabfa5159696ee98d37eecd9d1ada4bd6a2 | df8334f3c85a7e57d6d4dc81610d5250b4b31a6a | refs/heads/master | 2020-03-21T15:50:05.777763 | 2018-07-08T10:10:16 | 2018-07-08T10:10:16 | 138,735,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | #!/home/ayushin78/djangogirls/myenv/bin/python3.5
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ayushin78@gmail.com"
] | ayushin78@gmail.com | |
aacf718ffaf5dc66b0a37c3bc12ef730d77e3012 | 1fd1c877b0560ce579349d794642d36ad18330d9 | /prac_08/unreliable_car_test.py | 588ea0a804fafb26c253d3daeaa0233cc61c1cdd | [] | no_license | malia-d/cp1404practicals | cbc83478fdf363175e745af8018262712b15b18f | 4367e29e5b711fa89cd055c8a57f4f8fa3568742 | refs/heads/master | 2023-05-06T00:25:29.344351 | 2021-05-30T12:17:15 | 2021-05-30T12:17:15 | 348,734,500 | 0 | 1 | null | 2021-05-30T12:17:16 | 2021-03-17T14:12:35 | Python | UTF-8 | Python | false | false | 741 | py | """
Test the Unreliable Car class by creating two cars, one with high reliability and one with low reliability. Test both
cars multiple times and print the distance each car has driven.
Unreliable Car Test. Created by Malia D'Mello, May 2021.
"""
from prac_08.unreliable_car import UnreliableCar
def main():
"""T... | [
"malia.dmello@my.jcu.edu.au"
] | malia.dmello@my.jcu.edu.au |
d3631e9c43a81f9d30d6e22c349820df2729ef75 | 6c362fb828bf364f36f93a00e85d8fdaeaafc64d | /poe-sledgehammer/poe-sledgehammer.py | 263b0d59296b583f58c470c176d651ddd12a2137 | [] | no_license | jcostom/pyez-toys | 8ded93428a831307ea8561066b04babdd9c05a4d | 806b71476c39e3427b93ef52c674a66b8fb4c4c6 | refs/heads/main | 2023-08-16T00:11:18.175728 | 2023-07-27T02:52:35 | 2023-07-27T02:52:35 | 58,584,766 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,970 | py | #!/usr/bin/env python3
# This tool is a blunt instrument - HANDLE WITH CARE.
# It disables PoE on all ports, commits the configuration,
# then executes a rollback 1 and commits again.
# You would only use this tool if you wanted to completely
# disable PoE then rollback that change.
import argparse
import logging
imp... | [
"jcostom@jasons.org"
] | jcostom@jasons.org |
ccfcc55c4c14c4b986184af7508e852d73a51294 | 124537802d65a56bcc8221196add1d3b62bb46d9 | /mysite/application/admin.py | f9d77ee33249e1619d52b0b003ec40d2bd308b71 | [] | no_license | Watson-Sei/Django-Girls-Tutorial | a9c749c334ea0c0786c80fa8a9492ee29a222184 | 3e5c3735aa25e8f819228d34a50c47c0820fafc3 | refs/heads/master | 2022-12-09T13:13:29.430290 | 2020-07-30T04:38:56 | 2020-07-30T04:38:56 | 247,466,139 | 2 | 0 | null | 2022-11-22T05:23:55 | 2020-03-15T12:55:09 | Python | UTF-8 | Python | false | false | 312 | py | from django.contrib import admin
from .models import Post,Like,Question,QuestionLike, Question2
from markdownx.admin import MarkdownxModelAdmin
admin.site.register(Post)
admin.site.register(Like)
admin.site.register(Question,MarkdownxModelAdmin)
admin.site.register(QuestionLike)
admin.site.register(Question2)
| [
"seinabehack@gmail.com"
] | seinabehack@gmail.com |
b9b1e7f05c541f5842356071d917aea0d8095dd2 | e6ea9634d8ed01fcd203ff65bfdc350c735c485d | /maskrcnn_benchmark/structures/bounding_box.py | 05b8aa9dfacb51f5e3cf64fa1d794afd6bb4da5a | [] | no_license | salvatorepolizzotto/oshot_detection | 5edbbf5be062f3924cfe71a657e4cb526296a75f | a1259d34e4c66156bbbf048d1e9655e8ad24c336 | refs/heads/master | 2022-12-15T07:26:57.934777 | 2020-08-26T18:37:23 | 2020-08-26T18:37:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,165 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import torch
# transpose
FLIP_LEFT_RIGHT = 0
FLIP_TOP_BOTTOM = 1
ROTATE_90 = 2
ROTATE_180 = 3
ROTATE_270 = 4
class BoxList(object):
"""
This class represents a set of bounding boxes.
The bounding boxes are represented as a Nx4 Tensor... | [
"ant.dinnocente@gmail.com"
] | ant.dinnocente@gmail.com |
a55ff55edf59f5225b76b60492f4fd70d55087df | 0e033cadbbd9fa3d3898936411343741f418b902 | /daily-data/data_pb2.py | a8e4ab91f66c10fe8c2da9d45d968e5b5e69616f | [] | no_license | BSVino/DAData | b5fe004025fd5c4cedda0133b7e30d14136373c7 | 4c821345b8999a820d24bbbb29889de8c03be933 | refs/heads/master | 2021-01-18T14:33:46.552060 | 2014-11-27T03:25:57 | 2014-11-27T03:25:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 31,687 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
from google.protobuf import descriptor
from google.protobuf import message
from google.protobuf import reflection
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)
import math_pb2
DESCRIPTOR = descriptor.FileDescriptor(
name='... | [
"jorge@lunarworkshop.com"
] | jorge@lunarworkshop.com |
6c8b0d28a63bb2ea5c3b6e93e7362380b4638fbc | be34946b978f7c6dc4be5a3cf53156167a8eea77 | /sampling.py | 5cc6ca871e7e7927666f79187f2cb82f0c2f7221 | [] | no_license | ZhenxiangWang/Link-Prediction | e5ccd017f7449dd44a9b9141b0f322fde4141ab4 | c143b2b016a37f36a12ec57a0cf35a963bbba9ca | refs/heads/master | 2020-03-28T05:18:06.540314 | 2018-09-10T04:33:51 | 2018-09-10T04:33:51 | 147,767,914 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,221 | py | import numpy as np
print("Loading train data......")
train_data={}
with open('train.txt','r') as train:
for line in train:
neighbour_list=[int(i) for i in line.split()]
train_data[neighbour_list[0]]=set([neighbour_list[i+1] for i in range(len(neighbour_list)-1)])
def get_train_sources_and... | [
"noreply@github.com"
] | ZhenxiangWang.noreply@github.com |
e7dc87d8f60339b7be557f18f118cc68c3545903 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2098/49405/273048.py | cff498a9698319a280edf449fde35bbd033aa422 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | a = int(input())
b = 1
while b < a:
b *= 26
for i in range(b, 0, -1):
print(chr(a // b + ord("A") - 1), end="")
a %= 26
b //= 26
if a > 0: print(chr(a + ord("A") - 1)) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
50fe6dc2ba53bceded57e2bc29077589d7d54e66 | c77aa0dafe8d4f3f47c4d17e06939f49a347b31c | /env/bin/django-admin.py | 62e177aab5954f33fcf7a537d3d52bad081b34c7 | [] | no_license | aruncognicor/VAbackendTool | a2dc3cf22483e2e955b91b61632c6f3a3dbcd716 | ff86a505bfd9e2c0c7e221a059ced16dadda5f49 | refs/heads/master | 2016-08-12T03:45:06.154833 | 2016-01-12T04:47:45 | 2016-01-12T04:47:45 | 49,475,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | #!/home/arun/Documents/projects/backend_tool/env/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"arun@thanzi-Vostro-270s.(none)"
] | arun@thanzi-Vostro-270s.(none) |
dcd624ef125ecb43865c6cf90b0020339955f483 | 87f31b789750f6b545d6a79bd0b7028ebf4126c7 | /vislab/_results.py | 1716115a35aa0d860c71db36fd53bb1bdebffacc | [
"BSD-2-Clause"
] | permissive | hertzmann/vislab | db4d1b9e63e9bb8a33e491cff433e02c0315ca81 | fcded208637fb51edfeaef1bde0bf766f9af1941 | refs/heads/master | 2021-01-24T04:20:32.382941 | 2016-07-12T20:21:28 | 2016-07-12T20:21:28 | 13,571,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,575 | py | import os
import pandas as pd
import cPickle
import numpy as np
import vislab
def load_pred_results(collection_name, cache_dirname, multiclass=False, force=False):
"""
Return DataFrame of prediction experiment results and Panel of per-image
predictions.
"""
if not os.path.exists(cache_dirname):
... | [
"sergeykarayev@gmail.com"
] | sergeykarayev@gmail.com |
3ba84876fba42a1e11f5c5082263a679fefaafe0 | bf05cde65299758a3e3579ceec78048be9cd2e2c | /__init__.py | bea9caed2f92e001565baeb13e484e89f0358f3e | [] | no_license | krislmassey/DpdkElmoConfig | 21c5d7fd4d850dd11d37941a1ffc2e201fdcdc1d | 8a0b5bdb6953544bc9b3ef23aa8b35c9dc31c82d | refs/heads/master | 2020-12-30T09:26:25.598812 | 2015-07-14T18:00:47 | 2015-07-14T18:00:47 | 39,090,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,703 | py | '''
Download test_cli Python Package
--------------------------------
The test_cli Python package can be downloaded from
:releasezip:`here <http://elmo.adtran.com/doc/api>`.
.. warning:: The test_cli does **not** support Python 3! Please use Python 2.7.
.. warning:: Currently, this package does **not** support ELMO... | [
"kristenmassey@yahoo.com"
] | kristenmassey@yahoo.com |
4d9f52c9e77a45559205cc135334a7f3d9ce7dc0 | cce0f2236140b4cd5dbf76bd704ef56dd86429b2 | /tests/test_models.py | 22b32152a2204f83e5b0da98c578dc6d2d86f64f | [
"MIT"
] | permissive | nightlyds/library-api | d22ec784562e46f95824c579a2273e55692d7ece | aef059dc8e833976b594788295418ce9d22ad8b1 | refs/heads/main | 2023-06-23T03:24:14.979344 | 2021-07-21T19:44:14 | 2021-07-21T19:44:14 | 383,460,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,666 | py | import pytest
from library import bcrypt
from library.models import Genre, Author, Book, \
User, Order, OrderItem, Review, ReviewImage
from sqlalchemy.exc import IntegrityError
@pytest.fixture
def initialize(session):
genre = Genre(id=101, name='comedy')
author1 = Author(id=101, firstname="test firstname... | [
"safonov.danil.cw@gmail.com"
] | safonov.danil.cw@gmail.com |
b9b0349e2f15cb79dfa7708c61f629acb8d06ad9 | 399b6f19250ea7e7abbf16020195fce9e81e0e41 | /python_Basics/abnormal/abnormal.py | b88a90c34f5efa1abb7e3353c549e81771fe2ec7 | [] | no_license | zhanghui0228/study | 87cd248a2f3e4af38bf0d2416fed0b9515f54f45 | 43351858858e087d060630f2669e30546acbaf8f | refs/heads/master | 2020-07-23T05:50:02.556812 | 2020-05-24T10:40:04 | 2020-05-24T10:40:04 | 207,463,463 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,759 | py | #abnormal 异常处理
'''
内置的异常类:
exception 几乎所有的异常类都是从它派生而来的
AttributeError 引用属性或给它赋值失败时引发
OSError 操作系统不能执行指定的任务(如打开文件)时引发,有多个子类
IndexError 使用序列中不存在的索引时引发,为LookupError的子类
KeyError 使用映射中不存在的键时引发,为LookupError的子类
NameError 找不到名称(变量)时引发
SyntaxErro... | [
"helloworldhui@163.com"
] | helloworldhui@163.com |
94542bccbb0867623afc8de7f1953f075ba9a6c6 | 7d105a72821a0fdc19923177f7bdd65846a64af1 | /mikomiko_hk_v3.py | 496e61bd628b01ae7a0c4abdbef25788e70fcd84 | [
"MIT"
] | permissive | tiankong1999/ArcFace-Multiplex-Recognition | 5c5ab115469db3c84f914e6307dada71439a68f4 | 16a075e499a2cf7dd6ee3e0204b6309946bc9c23 | refs/heads/master | 2020-05-24T15:45:06.579777 | 2019-05-16T21:04:44 | 2019-05-16T21:04:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,716 | py | # coding: utf-8
import cv2
import os
import numpy as np
import time
from termcolor import colored
from helper import read_pkl_model, start_up_init, encode_image
from multiprocessing import Process, Queue
import asyncio
import socketio
import IPCamera.interface as ipc
import face_embedding
import face_detector
async d... | [
"1996scarlet@gmail.com"
] | 1996scarlet@gmail.com |
0f002addf74bef460a8840967aaf1a0aba19ff6d | 47136f769b2e870242f438927cee8dabcbca94c0 | /week8/informatics/4/F.py | ac3e3e385b9712dcdb1ec40e27313b118220704f | [] | no_license | Almanova/WebDevelopment-Spring2020 | de97b5aba1f13a766e2ef183151e39db3c8bba53 | 0abdee8f25dee1a4d32da2b633903d33936b6e77 | refs/heads/master | 2023-01-11T08:20:27.232203 | 2020-04-17T01:31:01 | 2020-04-17T01:31:01 | 236,373,539 | 0 | 0 | null | 2023-01-07T16:25:00 | 2020-01-26T20:42:31 | TypeScript | UTF-8 | Python | false | false | 177 | py | n = int(input())
list = input().split()
cnt = 0
for i in range(1, n - 1):
if int(list[i - 1]) < int(list[i]) and int(list[i + 1]) < int(list[i]):
cnt += 1
print(cnt) | [
"almanovamadina@yahoo.com"
] | almanovamadina@yahoo.com |
2280537cfc1cb168db84141e3af868073fca59d3 | 4cc25f1df9530daf2f46648df3997099f2a1b85e | /source/aws/services/iam.py | 7775689bfafbbd074c1d57dce09a1dffef59cd80 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mcripps9/aws-control-tower-customizations | ccc2cb6eb067edb2524a0a5efbafc08d484eb1db | e88025eda57adbfcab12e79fbbf12e580e9a9ccd | refs/heads/master | 2022-04-16T12:33:36.623952 | 2020-04-15T20:59:04 | 2020-04-15T20:59:04 | 256,033,675 | 0 | 0 | Apache-2.0 | 2020-04-15T20:50:40 | 2020-04-15T20:50:39 | null | UTF-8 | Python | false | false | 1,821 | py | ##############################################################################
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"). #
# Y... | [
"jleavert@amazon.com"
] | jleavert@amazon.com |
e54d5f06e5fc1b80bc598b447f5332574e03328c | 35f7970d0423dac96f1fefda6fb2246ada0bd483 | /catkin_ws/build/rotors_joy_interface/catkin_generated/pkg.installspace.context.pc.py | fe71778c0472e11f9e3595aebb9f1e531858b5eb | [] | no_license | HugoGrellier/ros_project_bebop | 7c169635fa5ffe664bdb4155bac212a0a5f7b941 | d6c8c3ada879747a7b070dc88646d4c3b86d28c5 | refs/heads/master | 2023-02-09T10:37:22.209574 | 2020-10-20T18:52:04 | 2020-10-20T18:52:04 | 306,311,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;geometry_msgs;mav_msgs;sensor_msgs;trajectory_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFI... | [
"hugo.grellier@cpe.fr"
] | hugo.grellier@cpe.fr |
d9595880395a2d6b6d84ff064f4f1997d10f39cc | 68c0fa1e3f8bcc53d352c112c559cbd2981b3dfa | /src/main/python/tasks/workers.py | babfde41be47a2af1234d75e1d2f3f3741af7895 | [] | no_license | boyunli/article-generator | d647e47536c7a17b60c2fed988980501b1f70315 | 4cf45733a4ddfd3feeb5607f398860c78314ece7 | refs/heads/master | 2020-03-08T18:41:09.764569 | 2018-07-04T09:15:05 | 2018-07-04T09:15:05 | 128,314,361 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # coding=utf-8
from celery import Celery
from python.sites.news.sohu import SoHu
from python.sites.news.toutiao import TouTiao
from python.sites.news.wechat import Wechat
celery_app = Celery('article', include=['python.tasks.workers'])
celery_app.config_from_object('python.tasks.celery_config')
@celery_app.task(bi... | [
"liling@meifang.com"
] | liling@meifang.com |
617da9ce72d24b2fca23ff0772bcfbdf9521d87f | 294e5260acb7aa0c888e6462ae0c114de95c8a18 | /morus_msgs/cfg/MavPosCtlParams.cfg | f3c0b726f2f9ababe1a452299781ddbfa9f612a3 | [] | no_license | larics/morus_uav_gazebo | c8d344ab60b847965dcf3f19fcc0fe542f16773b | 15dfc5fb36f0e646547b6e4d3cb5c1561e8f3144 | refs/heads/master | 2021-01-20T10:55:31.086516 | 2018-05-17T14:35:48 | 2018-05-17T14:35:48 | 51,870,669 | 6 | 7 | null | 2017-10-11T10:27:09 | 2016-02-16T21:13:50 | Python | UTF-8 | Python | false | false | 1,507 | cfg | #!/usr/bin/env python
PACKAGE = "mav_msgs"
from dynamic_reconfigure.parameter_generator_catkin import *
gen = ParameterGenerator()
gen.add("x_kp", double_t, 0, "X ctl PID P gain", 0.01, 0, 1000)
gen.add("x_ki", double_t, 0, "X ctl PID I gain", 0, 0, 1000)
gen.add("x_kd", double_t, 0, "X ctl PID D gain", 0, 0, 1000)
... | [
"tomislav.haus@gmail.com"
] | tomislav.haus@gmail.com |
6291822cb31b4bf8385ea3f7c22d79a5f2a4e13f | fb5b1b8dce103dea28be52f7bbd9ea84da2cec81 | /kolibri/core/discovery/api.py | 1a8389a92afb0d82f12c4c2108850fecba086a18 | [
"MIT"
] | permissive | lyw07/kolibri | d7f6f92656faa0483cd2cbdf57a3b6c54d52c2f2 | 11e0d01e2bc43850a6dfd4238e6408004449c3dc | refs/heads/develop | 2021-01-02T09:40:04.457976 | 2019-05-20T21:29:27 | 2019-05-20T21:29:27 | 99,255,547 | 1 | 0 | MIT | 2018-03-08T18:43:36 | 2017-08-03T16:53:09 | Python | UTF-8 | Python | false | false | 380 | py | from rest_framework import viewsets
from .models import NetworkLocation
from .serializers import NetworkLocationSerializer
from kolibri.core.content.permissions import CanManageContent
class NetworkLocationViewSet(viewsets.ModelViewSet):
permission_classes = (CanManageContent,)
serializer_class = NetworkLoca... | [
"jamalex@gmail.com"
] | jamalex@gmail.com |
0c3368f28cc8a7287541310f6418e199dc6aefbd | 7bf8719d2f31702d8161329c6f1553e15643802a | /products/migrations/0001_initial.py | 2c2451f1e1e290f4a353117c47068cff81bc8243 | [] | no_license | Code-Institute-Submissions/e-commerce | d3529ac7935daf7f767a07d9de8dab33390bec6b | 2309c2b80ad785ad56024473f8e2a36b73cc4e66 | refs/heads/master | 2020-03-17T10:10:37.660519 | 2018-05-14T06:57:44 | 2018-05-14T06:57:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-03-20 14:20
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product'... | [
"cristian.burloiu@yahoo.ro"
] | cristian.burloiu@yahoo.ro |
5d2241b7297c60cb21d4db6772de0c17b076f8ef | d7bba9a2ba17831d58a34b3338f8f1e8d566d262 | /blog/migrations/0001_initial.py | 56985464e1503737df695d7509ef7569b1e4c854 | [] | no_license | harmi2009/my-first-blog | 16943a25901929faddf16a2f5dc6281f35449ae6 | bb8a29e35bee07ef0b829e9cb5c69e676d74640d | refs/heads/master | 2022-12-21T08:05:07.001697 | 2020-10-05T21:44:53 | 2020-10-05T21:44:53 | 300,715,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-10-02 18:56
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dep... | [
"harmi2009@gmail.com"
] | harmi2009@gmail.com |
d3b51dffc41c9928f3160d598f19f4ab7ba584b4 | 3df0309a9269ade9d1a6c70d7608880cc90ed2ab | /GT668/Samples/Python/DataStorage.py | 9a9d1b00b28c5468428c76d9df3031877036c5cf | [] | no_license | motogo/PRCCounterApp | 3e8a2f9339f4937e67673d1a7c72b3c053fafca7 | 3bcfa8166801b29de036a6d7b79f8c5b3debcf53 | refs/heads/master | 2022-12-19T16:52:39.734844 | 2020-10-22T21:30:47 | 2020-10-22T21:30:47 | 306,461,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,732 | py | from GT668Driver import *
gt = GT668Driver()
gt.initialize(0)
# size of array per channel
size = 10
# read timeout
timeout = 10.0
# configure inputs
gt.set_input_prescale(GT668.Signal.GT_SIG_A, GT668.Prescale.GT_DIV_1)
gt.set_input_threshold(GT668.Signal.GT_SIG_A, GT668.ThresholdMode.GT_THR_VOLTS, 0.0)
# configur... | [
"horst.ender@softend.de"
] | horst.ender@softend.de |
8b0fa8d0528ab3c49f1ccebb016a8ebf942927bc | 6234b81db8f4edce8e33fb80602a5b334a5f7587 | /wiki/encyclopedia/views.py | cdb0591a8cf8e7cb0ae73f58b2905471895ae36e | [] | no_license | Razeen-Shaikh/cs50-web-projects | 000b3ac03e5f35cf1fc724dec3159967d1d55741 | be597e545cd3cb6d66ff3fec171f42a2ed5147ff | refs/heads/master | 2023-01-11T07:41:03.110580 | 2020-11-07T05:56:29 | 2020-11-07T05:56:29 | 305,310,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,991 | py | from django.shortcuts import render, redirect
from django import forms
from . import util
from random import choice
class NewEntryForm(forms.Form):
title = forms.CharField(
label="Title",
widget=forms.TextInput(
attrs={
'class': 'ml-2 px-2'
}
)
)... | [
"razeen9796@outlook.com"
] | razeen9796@outlook.com |
5c154ddbe4004a161a0f02a8e1c1ecaa29732ce9 | 17a464cf499ea9cc492a9775fa4ea8314858bf8c | /storage/migrations/0002_auto_20210226_1933.py | 2aa6b900772828cc9913bfb4a036bd1e7ca79b97 | [] | no_license | Miladrzh/graph-calc | 8feeb7ffb266ac37508c2df09af624ea8a651a4d | 4452b1d3cb7779120717d54a95744880ee68cba2 | refs/heads/master | 2023-04-18T00:09:45.619274 | 2021-04-19T18:45:42 | 2021-04-19T18:45:42 | 342,690,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | # Generated by Django 2.1 on 2021-02-26 19:33
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('storage', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='generatedgraph',
... | [
"miladrzh@gmail.com"
] | miladrzh@gmail.com |
584ba2592b9203d3fc17548082493d44770f5f55 | 18f152fd5028f92769d991291e967b39fb4fdae7 | /problem23.py | a64c9576760bc38c309c6f08c89faa4cf7e4270f | [] | no_license | ethanluckett/projecteuler | a9a7ce36fbb1118ed4b3951d7ba80d6b00622821 | 46b0348a2d94c32217cf77adb8d81f93d96c268c | refs/heads/master | 2020-05-18T20:55:29.760927 | 2019-05-08T15:23:15 | 2019-05-08T15:23:15 | 184,646,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | import math
import sys
def is_abundant(n):
divisors = set([1])
for i in range(2, int(math.ceil(math.sqrt(n)))+1):
if n % i == 0 and n != i:
divisors.add(i)
divisors.add(n/i)
return sum(divisors) > n
def problem23():
# numbers which cannot be written as sum of two+ abu... | [
"ethanluckett@gmail.com"
] | ethanluckett@gmail.com |
d06a16fc3cb7202fdd9058558cf45839be272a0b | e0980f704a573894350e285f66f4cf390837238e | /.history/menus/wagtail_hooks_20201030120530.py | 0719f7961b7e5d8a34a3fef28930d93e6014a64d | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | """ Kategoria zostanie dodana w pasku bocznym u admina"""
from wagtail.contrib.modeladmin.options import ModelAdmin
import ModelAdmin, decorator
class MenuAdmin(ModelAdmin) | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
32ee9b2d8471e963468143f7e7d5b60c5c33dd40 | 6d0436f5684a5c829247f1e15c1eab69b3b14e34 | /api/core/blacklist_helpers.py | 2ee79f60a4088329742a0d40b2e80508e45f0601 | [
"MIT"
] | permissive | reddimohan/flask-rest-api-barebones-with-authentication | 61881e83e0d16d821ec5368190c2a6133a1a260e | 6daf04355531dd8d60937cdfa54967dd01e6ff54 | refs/heads/master | 2023-04-08T02:07:30.271224 | 2023-03-02T15:00:54 | 2023-03-02T15:00:54 | 210,322,303 | 6 | 5 | null | 2023-03-21T09:31:37 | 2019-09-23T09:59:52 | Python | UTF-8 | Python | false | false | 3,126 | py | from datetime import datetime
from database import TokenBlacklist
from exceptions import TokenNotFound
from flask_jwt_extended import decode_token
from main.db import MongoDB
db = MongoDB()
def _epoch_utc_to_datetime(epoch_utc):
"""
Helper function for converting epoch timestamps (as stored in JWTs) into
... | [
"reddimohana@gmail.com"
] | reddimohana@gmail.com |
adb9f5111e2b6fde239785e3fac1f6d150e83c22 | 6fdbdb53b6c6696199282e3f7f8b86793dd2f2c2 | /venv/lib/python3.7/site-packages/optimal/__init__.py | ed2032bb81c9a35376fb89df3764ab581227c146 | [] | no_license | juliusHin/KNR_Stock_Prediction | 5695fc95e1c430bfa281856a0e7b61e79032921c | 76580ceb891d1abd2af2fee347acb250f0c00ef8 | refs/heads/master | 2022-12-12T20:20:07.442221 | 2019-10-26T03:53:49 | 2019-10-26T03:53:49 | 173,898,473 | 2 | 0 | null | 2022-12-08T01:40:18 | 2019-03-05T07:39:47 | Python | UTF-8 | Python | false | false | 1,599 | py | ###############################################################################
# The MIT License (MIT)
#
# Copyright (c) 2014 Justin Lovinger
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the ... | [
"juliustanuwijaya.indonesian@gmail.com"
] | juliustanuwijaya.indonesian@gmail.com |
1004d99114b248ed344c94db0103a2832b8dcf5b | 3a4ef39655fbea6d5a59f630fd4777c8eab2a17a | /staticfiles/staticfiles/pan_kanapka/wsgi.py | 95d14b8e2a49a6d4de7764edeba712f9eb41f960 | [] | no_license | jundymek/pan-kanapka-api | 8a88c3ae8ff5be295ab4c102a2db32780f14726f | df734bef6295d3869455939382849449d589984f | refs/heads/master | 2022-12-17T06:26:42.409765 | 2020-02-12T17:11:03 | 2020-02-12T17:11:03 | 231,992,946 | 1 | 0 | null | 2022-12-08T04:26:18 | 2020-01-06T00:06:27 | JavaScript | UTF-8 | Python | false | false | 400 | py | """
WSGI config for pan_kanapka project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"jundymek@gmail.com"
] | jundymek@gmail.com |
92ab4157ebd650e6d13fedc3a76a0f3f01379d4c | 813be230bf3d9aa532c23c8250e32262323e4e80 | /arpreq.py | f217512974f254a2e7cd9ed5162041e14f2475bd | [] | no_license | Odin-SG/ArpFake | b4cc7767fec04bb684ae6fb3a8d66e65a39de83f | bb6d41d0793675b2f78cd5d76a43b7b18b6a9776 | refs/heads/master | 2023-05-08T20:02:38.342511 | 2021-06-04T13:13:27 | 2021-06-04T13:13:27 | 347,054,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | import socket
from struct import pack
from uuid import getnode as get_mac
def main():
dest_ip = [10, 7, 31, 99]
local_mac = [int(("%x" % get_mac())[i:i+2], 16) for i in range(0, len("%x" % get_mac()), 2)]
local_ip = [int(x) for x in socket.gethostbyname(socket.gethostname()).split('.')]
sock = socket.... | [
"gongn640@gmail.com"
] | gongn640@gmail.com |
6d9c457530aa6d98022e26c72bdaf60d244eb673 | fc0d9b3107d7afeeed8d9df733219aa77c4a0d10 | /models/pumped_hydro/ev.py | c54c9197a686d518259c6e02dae6314b793bd62f | [
"Apache-2.0"
] | permissive | switch-model/DEPRECATED-switch-hawaii-studies | 007931f8bb58480db81b8c59031e8d911a14567e | 685085c7e3734db75b6bf9744aa05024389e1bc1 | refs/heads/master | 2021-06-01T00:16:50.557334 | 2016-06-29T09:42:11 | 2016-06-29T09:42:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,053 | py | import os
from pyomo.environ import *
from switch_mod import timescales
def define_components(m):
m.ev_gwh_annual = Param(m.LOAD_ZONES, m.PERIODS, default=0.0)
# TODO: calculate these data better and get them from a database
# total miles traveled by vehicle fleet (assuming constant at Oahu's 200... | [
"mfripp@hawaii.edu"
] | mfripp@hawaii.edu |
0d63ef8757c6bbbe4b2869b89a3fa0c54f9021dd | 84da64c474e17a039ad22337ff111c6bf87ee0c6 | /comprehension.py | 4d01c3cb6723f76618cd075aa70f02f863069179 | [] | no_license | karibou/python_training | 525829bd6c046c82daa4a9d3828ca6652b046e11 | 9d0a9bd1d02675f5c6eff185cc5275d84a6a7ac0 | refs/heads/master | 2020-09-22T01:41:19.246336 | 2014-10-13T11:28:54 | 2014-10-13T11:28:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | #!/usr/bin/python
l = ['toto','tata','tutu']
l2 = []
for i in l:
if 'o' in i:
l2.append(i)
print l2
l3 = [ i for i in l if 'o' in i]
print l3
| [
"louis.bouchard@ubuntu.com"
] | louis.bouchard@ubuntu.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.