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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2d43f4dfb1eaf4ad3fad458a1b6c1adda9da703d | e941fed78264cbb32df8909d881c64721f75b295 | /home/urls.py | faf95fcd176062a101b39b0173ae70922090e0a6 | [] | no_license | PelaNisha/third_django-user-auth- | 3f5e7418438cef9416d54de290a75e7632965876 | d6eef69e00909b4489e6258151e9345fce0cf31b | refs/heads/master | 2023-05-27T22:57:43.864612 | 2021-06-05T15:45:12 | 2021-06-05T15:45:12 | 371,736,249 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | from django.contrib import admin
from django.urls import path, include
from home import views
urlpatterns = [
path('', views.index, name = 'home'),
path('login', views.loginUser, name = 'login'),
path('logout', views.logoutuser, name = 'logout'),
] | [
"nishapela777@gmail.com"
] | nishapela777@gmail.com |
7b1992faec0c1b2d12b7ad49f4d454f2fe93c9e7 | ac042704660f07263a9b7918c9d19e8027e2c01b | /qn 13.py | 0a8a84e201e1017ecb24dbbf67cab6fd0d002f36 | [] | no_license | Prashant414/python | 23387f2d205ceb36f141e4b4529ff9c3e80d2679 | f5ff2b280b4bf29df2723b9d1d16690e65aaf62f | refs/heads/main | 2023-03-21T10:23:32.119726 | 2021-03-09T17:59:45 | 2021-03-09T17:59:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | # Print First 10 natural numbers using while
i=0
while i<=10:
print(i)
i=i+1
| [
"prashantshyam09@gmail.com"
] | prashantshyam09@gmail.com |
8065cd7502032e1ffa597e2ed1a2c51f7334439f | 91f9d18a82b106bdadeaccc19dd6bab658ef6ea4 | /datastructures/LinkedList.py | 8f75d58c86a7c71592719932be3b00d45f2f5f7f | [] | no_license | elianajn/CP307 | 6ae518ee449c5d9230b37ce17566e226da101625 | dd132429299e0fe570fd6f5e1e706c31fd4a16da | refs/heads/main | 2023-01-15T18:07:52.215792 | 2020-11-11T18:40:22 | 2020-11-11T18:40:22 | 305,578,531 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,512 | py | class ListNode:
def __init__(self, data):
self.data = data
self.prev = None
self.next = None
def __repr__(self):
return str(self.data)
class LinkedList:
def __init__(self):
self.first = None
self.last = None
self.current_size = 0
def size(self... | [
"elianajneu@gmail.com"
] | elianajneu@gmail.com |
081db6e86bf88d1f2fc3d81b85d4d5b8b30fe946 | c98672a6ea8cf91130dc5acbcc1b4bba4f7d2045 | /workTool.py | 2e59ff0c5edc8b87d70571fede4dd48b674f3fa2 | [] | no_license | kexin-do/python-book-down-biquge | f8e335b3450d5a9825e445aa5a178656426d1417 | 45489a7e0a499b12758ec278f75310fc4037e7d9 | refs/heads/master | 2020-07-19T13:10:36.726886 | 2019-09-05T02:21:05 | 2019-09-05T02:21:05 | 206,455,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,092 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 12 15:13:31 2018
@author: root
"""
from bs4 import BeautifulSoup
from enum import Enum
import requests,time,sys
selectorType = Enum('selectorType',('book','menu','text'))
contents = {}
class WorkTool:
def __init__(self,target,charset='utf-8'):
self.s... | [
"kexin_do@163.com"
] | kexin_do@163.com |
658bfe4a687bf49d9390ea8b857434f7f6b6ae1b | fe8a8101f3b028161cc5a191680b0608b48baa6e | /python-study/dataType/dataType5.py | 2c3685831c4e7c8eb30ac5234a041009e5e369db | [] | no_license | prkhyo/coding-test | b61953829b7536d4901ba386e05d64459190718f | 3938902e8d768d6da63fa338758bb92723f663a8 | refs/heads/master | 2023-08-31T21:07:08.044407 | 2021-09-26T17:05:09 | 2021-09-26T17:05:09 | 388,933,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,586 | py |
# ์งํฉ ์๋ฃํ
# ์งํฉ์ ํน์ง : ์ค๋ณต ํ์ฉ X, ์์ X
# ์งํฉ์ ๋ฆฌ์คํธ ํน์ ๋ฌธ์์ด์ ์ด์ฉํด์ ์ด๊ธฐํํ ์ ์์
# ์ด๊ธฐํ ๋ฐฉ๋ฒ
# (1) set() ํจ์ ์ด์ฉ
# (2) ์ค๊ดํธ{} ์์ ๊ฐ ์์๋ฅผ ์ฝค๋ง,๋ฅผ ๊ธฐ์ค์ผ๋ก ๊ตฌ๋ถํ์ฌ ์ฝ์
# ๋ฐ์ดํฐ์ ์กฐํ ๋ฐ ์์ ์ ์์ด์ O(1)์ ์๊ฐ์ ์ฒ๋ฆฌ ๊ฐ๋ฅ
# ์งํฉ ์๋ฃํ ์ด๊ธฐํ ๋ฐฉ๋ฒ1
data = set([1, 1, 2, 3, 4, 5, 5])
print(data) # {1, 2, 3, 4, 5} -> ์ค๋ณต ์์ ์ ๊ฑฐ
# ์งํฉ ์๋ฃํ ์ด๊ธฐํ ๋ฐฉ๋ฒ2
data = {1, 2, 4, 5, 5, 5,... | [
""
] | |
6968bced836ffb47e8b4d896ae663bc05f94bc97 | 3f6f4c7360898b1761efca0f868970c7521839d7 | /install.py | 1c693aee56c974c70ac7b59ce652d41adf951f1a | [] | no_license | westporch/ipmitool_time_sync | dc1859dda0222aa2a5904d5386ea70e8998faab3 | 3ec23da4da11c604f3a04e8e515e0d71afad7fc2 | refs/heads/master | 2021-01-10T02:17:25.875101 | 2015-12-02T03:00:28 | 2015-12-02T03:00:28 | 47,167,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | #!/usr/bin/python
#Hyeongwan Seo
import os;
os.system("chmod 655 ipmitool_time_sync.sh")
ABS_PATH=os.getcwd() + "/./ipmitool_time_sync.sh"
#๋ถํ
์ ์คํฌ๋ฆฝํธ๋ฅผ ์๋ ์คํํ๋๋ก /etc/rc.d/rc.local์ ์ ์คํฌ๋ฆฝํธ๋ฅผ ๋ฑ๋กํจ.
f = open("/etc/rc.d/rc.local", "a")
data = ABS_PATH
f.write('\n' + data)
f.close()
| [
"westporch@gmail.com"
] | westporch@gmail.com |
6ca84c2dba4135fe731d4c342f84ee3cb1aca083 | 3cfc01eab152e5b97554a0965e79fc1221b71321 | /pitches.py | 0248bae1ee649a43672db25dff4671911742178f | [
"MIT"
] | permissive | ZhouLihua/leetcode | 5ebe8bd9dcd04bf2c822cfb3c338d2d25231bba5 | 7a711e450756fb7b5648e938879d690e583f5957 | refs/heads/master | 2021-11-18T17:26:53.492232 | 2021-09-17T07:58:25 | 2021-09-17T07:58:25 | 127,875,412 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | import sys
import math
def total_Hours(speed, pitches):
totalHour = 0
for pitch in pitches:
totalHour += math.ceil(pitch / speed)
return totalHour
if __name__ == "__main__":
try:
line = sys.stdin.readline().strip()
if not line:
raise Exception("negative")
va... | [
"jerry.zhou@dell,com"
] | jerry.zhou@dell,com |
e8602b17915bca9838d8ff2d73861d1902c2a90a | 4acdda2a7e17c8cfbaa8fe2cb6c39db964dc25d2 | /tests/test_blog.py | 3d745bac59ddce2a126679d8c6ad7ae0acc1e9b2 | [
"MIT"
] | permissive | Vitalis-Kirui/Personal-Blog | c5dafb0aac197effac92d191ca39a25495108140 | 49af71b70f32ff4a588df26cd38091a6d80eb805 | refs/heads/master | 2023-07-31T00:49:04.553066 | 2021-09-26T19:47:50 | 2021-09-26T19:47:50 | 409,132,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | import unittest
from app.models import Blog, User
class BlogTest(unittest.TestCase):
def setUp(self):
self.user_id = User(username='vitalis', password='computer', email='vitalis@gmail.com')
self.new_blog = Blog(blog_title='My Birthday',posted_at='14/3/1998', blog_content='The date I took my first ... | [
"vitalis.kirui@student.moringaschool.com"
] | vitalis.kirui@student.moringaschool.com |
411d7c55267cfccce2048ad8cd1fd9304f605fe2 | 8a1a0a657a400ffac264bbf9eec55eb3c0a264c8 | /pyverilog-0.9.1/pyverilog/utils/scope.py | 1511633b52a9806ea8375b332551fbb3e0337bbf | [] | no_license | gayatri267/PyverilogTutorial | e82295f7ba329dda6b438e54c2d667e15ce015ce | a63fa9fe3acef4afc9d7bbe8a742996039560d8a | refs/heads/master | 2021-09-07T02:42:35.992051 | 2018-02-16T01:17:04 | 2018-02-16T01:17:04 | 112,436,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,129 | py | #-------------------------------------------------------------------------------
# scope.py
#
# classes for definition of scope
#
# Copyright (C) 2013, Shinya Takamaeda-Yamazaki
# License: Apache 2.0
#-------------------------------------------------------------------------------
import sys
import os
import copy
sco... | [
"gayatri267@gmail.com"
] | gayatri267@gmail.com |
de0b7d4aab3481f7eee89ede7eb41a802bda201e | 1ac173361f4de3e0a2fed0b3454d57b6bbf77d0c | /rapi/principal/migrations/0030_auto_20160622_1713.py | 7c2757888796db93a9945d408b45416073603930 | [] | no_license | Alpha004/Raph2 | c75274d826ef2de0ac69d37e771cb11084f1d7ae | c4e0c608ea4eb8f2bcdd2c34ded48340532a05c2 | refs/heads/master | 2021-08-28T19:58:04.125143 | 2016-07-27T05:01:29 | 2016-07-27T05:01:29 | 63,810,009 | 0 | 0 | null | 2021-07-30T01:01:52 | 2016-07-20T19:52:28 | HTML | UTF-8 | Python | false | false | 607 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.3 on 2016-06-22 17:13
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('principal', '0029_auto_2016... | [
"jesusalren93@gmail.com"
] | jesusalren93@gmail.com |
d9d4fc280b8d97cbb947ddebab7ab59ca5aa1ae2 | 512267fc9295a9296dc9da3f0947e324a2f37984 | /startingout/tests.py | 39beac1031a362881763120ddc9bc09c60cfd163 | [] | no_license | joroson/startingout | b55bd8c45c4b70ae5147f0a98a6adf6888d2ed51 | 92091ae7f73f246c6cc700d5effe4e9da91f8bef | refs/heads/master | 2023-03-02T18:01:54.362286 | 2021-02-01T10:18:10 | 2021-02-01T10:18:10 | 317,985,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | import unittest
from pyramid import testing
class ViewTests(unittest.TestCase):
def setUp(self):
self.config = testing.setUp()
def tearDown(self):
testing.tearDown()
def test_my_view(self):
from .views.default import my_view
request = testing.DummyRequest()
info ... | [
"joe@10kinds.tech"
] | joe@10kinds.tech |
c1ee39b1b2a7ca3e916a559da292bc53bfdc5b74 | 017f62ebc7357dc665723a5b4fa75294f31fda8f | /lib/jnpr/eznc/resrc/srx/nat/nat_proxy_arp.py | 10fe27280370f10dad027ec9771f769faed67709 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | cro/py-junos-eznc | c2588d9fde7b65ec523c558d741716f3a19621c7 | 4c111476cc8eb7599462379ddf55743ae30bbf5c | refs/heads/master | 2021-01-20T16:36:20.034788 | 2013-11-19T19:17:32 | 2013-11-19T19:17:32 | 14,535,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,235 | py | # 3rd-party modules
from lxml.builder import E
# module packages
from ...resource import Resource
from .... import jxml as JXML
class NatProxyArp( Resource ):
"""
[edit security nat proxy-arp interface <if_name> address <ip_prefix>]
Resource namevar:
tuple(if_name, ip_prefix)
Description:
This res... | [
"jschulman@juniper.net"
] | jschulman@juniper.net |
b65c7ff857bea66c9ec4b62378b036c2c3736f91 | a25d5619405bf737c82b662e8132a19048ca454c | /bin/pip3.6 | 8e69065add3182dec6089a4cc75682b65541ded8 | [] | no_license | daisakuhazui/django | 8d87df6e95a9dcac2499c62ffc99b76e8610c06d | 0204f0228657846f6f4895ce3a6bba74126d7ba6 | refs/heads/master | 2020-03-19T01:23:04.650085 | 2018-05-31T06:30:17 | 2018-05-31T06:30:17 | 135,541,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | 6 | #!/Users/daisakuhazui/develope/django/tutorial/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"daisakuhazui@MacBook-3.local"
] | daisakuhazui@MacBook-3.local |
1e274d74ad26e7dd53ac6e762c283f06a179f1b5 | f15d80adc1f2b48d571811c0e6ec67ba63dac836 | /camera-test.py | 4fcafb352bb246453ce908ade5b81752aa3fda58 | [] | no_license | rozymahsun/facenetattendance | 51c672e39c53e38a4b3ad7716822b88853c8455e | 4f6dd57a464c6ff0999cd9026a10e231dfedead3 | refs/heads/master | 2020-03-18T23:58:43.294627 | 2018-05-31T06:13:18 | 2018-05-31T06:13:18 | 135,444,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | import numpy as np
import cv2
import datetime
cap = cv2.VideoCapture(0)
cap.set(cv2.CAP_PROP_FRAME_WIDTH, 320)
cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 240)
#cv2.VideoCapture.set(CV_CAP_PROP_FRAME_WIDTH, 640)
#cv2.VideoCapture.set(CV_CAP_PROP_FRAME_HEIGHT, 360)
#cap.SetCaptureProperty(CV_CAP_PROP_FRAME_WIDTH,
#cap.set(cv2.... | [
"rozymahsun@gmail.com"
] | rozymahsun@gmail.com |
eac0b5d45b5a0ac966f08a4b8b83a3c1d6fdf69c | dea690c107a041ebae0d30ba5ae143c39661303d | /Pong/Bola.py | e2edcfce4df8d6f1caa89a73f45f0b475e4ee7c7 | [] | no_license | esponja92/pyolito | 73b04f27089b16cc50baa260ec52170c55450b65 | 142fd9b3370ca254ff6cb49652543b73303c7a70 | refs/heads/main | 2023-03-13T12:43:05.417946 | 2021-03-28T02:27:30 | 2021-03-28T02:27:30 | 352,139,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,039 | py | import pygame
from ObjetoAtivo import ObjetoAtivo
class Bola(ObjetoAtivo):
def __init__(self, centro_x, centro_y, raio, cor):
self.largura = 15
self.altura = 15
self.velocidade = 5
self.inicial_x = centro_x
self.inicial_y = centro_y
self.cor = cor
self.ra... | [
"hugodantas@tic.ufrj.br"
] | hugodantas@tic.ufrj.br |
0f3fc8831e53c6a2ac259688095352d63dd2b74e | 3f893fef9b7b22bd6fd801b9bcb956e7912f302c | /aliu/packages.py | 9ff4a1b654df8f45e44eb4ca90b90335ed7d0325 | [
"MIT"
] | permissive | a2liu/pytill | 63eb54a9bf8fb3554c8f5052232662cd58f2e949 | f05587707495471bc7403f9582cc89ad455a6a5f | refs/heads/master | 2020-04-14T19:12:45.197035 | 2019-01-05T01:13:06 | 2019-01-05T01:13:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | import sys
PACKAGE_DIR = '/Users/aliu/code/python/packages/'
def add_local(*packages):
for package in packages:
sys.path.insert(0,PACKAGE_DIR+package)
| [
"albertymliu@gmail.com"
] | albertymliu@gmail.com |
0170c0c289bd5cba1649c1763329778c4f8675d5 | fc36b33714a04eb3f916fb6d58f1935482ae1dee | /blog/models.py | 5591dbc876494f8f4f8674ec2fd394a46728819f | [] | no_license | williamleeIao/my-first-blog | ec03645fb5d58a08561362b6b8f4239165feee04 | 91e4401cc844301d09106d6985aa9bf76bf60497 | refs/heads/master | 2020-03-14T15:32:32.525071 | 2018-05-01T02:56:19 | 2018-05-01T02:56:19 | 131,669,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | from django.db import models
from django.utils import timezone
# Create your models here.
class Post(models.Model):
author = models.ForeignKey('auth.User', on_delete=models.CASCADE)
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(
default=ti... | [
"wilee_6@hotmail.com"
] | wilee_6@hotmail.com |
24589718db31ecf9fa0256f8e90ded54357ef870 | 21b4410b96d7f56ce8b27dc1015680e926eb5fce | /ModuloString/aula135.py | 742f365aa3ddafc5bedff1760f647bcb804c7b2f | [
"MIT"
] | permissive | pinheirogus/Curso-Python-Udemy | ddef17ae861279ec8e6cc44183b91bbe11bbd100 | d6d52320426172e924081b9df619490baa8c6016 | refs/heads/main | 2023-07-17T12:01:23.731329 | 2021-09-01T01:49:21 | 2021-09-01T01:49:21 | 401,896,087 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py |
from string import Template
from datetime import datetime
with open('template.html', 'r', encoding='utf8') as html:
#Neste caso, o arquivo estรก sendo lido e passando uma string para a classe Template
template = Template(html.read())
data_atual = datetime.now().strftime('%d/%m/%Y')
corpo_msg = templat... | [
"pinheirogustavo@gmail.com"
] | pinheirogustavo@gmail.com |
163bceb89be6c5814429028d9689ebf667748722 | 169776e1b0ce571a4083b650dde4637d11767084 | /challenge_3/outings.py | 8dbe59d89ab7f7e9ee3d249267e82fbe90c8d6f5 | [] | no_license | Nesken-weche/Gold_challenges | 1a97c0e20b87bde5f6057f82df5c50289ed65410 | 155bad1560db0a0fe9536338f8c09e9fdd704324 | refs/heads/master | 2020-04-24T16:32:24.664326 | 2019-02-22T18:37:31 | 2019-02-22T18:37:31 | 172,111,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py |
class Outing:
def __init__(self, eventType, attendees, date, total_cost_per, total_cost_event):
self.eventType = eventType
self.attendees = attendees
self.date = date
self.total_cost_per = total_cost_per
self.total_cost_event = total_cost_event
def __repr__(self):
... | [
"wnesken@gmail.com"
] | wnesken@gmail.com |
8f26c0707c6e96062c78e160ebb53b168b45685b | b18ff1d2a88cdad6d8ca73a8e6c34943f7bee055 | /toolcall/models/__init__.py | b223e50a69b3e81be3d40cd155596ad4cbf3849e | [
"MIT"
] | permissive | thebjorn/toolcall | 9c812d608a67990dfb04b4e8bc1ebfcd4e7440c3 | 2c1597c8224958b4751cfb09f7a1b4439ca6df09 | refs/heads/master | 2021-06-13T21:33:12.495795 | 2019-08-31T10:50:55 | 2019-08-31T10:50:55 | 147,824,176 | 0 | 0 | MIT | 2021-06-10T20:46:47 | 2018-09-07T13:02:31 | HTML | UTF-8 | Python | false | false | 53 | py | # -*- coding: utf-8 -*-
from .tool_models import *
| [
"bp@datakortet.no"
] | bp@datakortet.no |
903984715773801ca2e11ea4b30d93214d206d25 | 30d9898c1b4a2be116e8c764ae91fb5ff4b216f5 | /project_pythonๅบ็ก/4.18.py | 0c2bf7fa8ef697d14e8da6126a06f633fc696337 | [] | no_license | CgangerCG/PythonLearning | 402a267c84d73f903e8290ea3a20208fd9fdf183 | 67616bfd2aa709b6344e6b7d0124f1e8d710246d | refs/heads/master | 2020-03-28T20:16:20.273278 | 2018-09-17T01:56:32 | 2018-09-17T01:56:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | import random
print(random.sample(range(100),10))
print(random.randrange(1,100,2))
print(random.choice("abcdefghij"))
print(random.choice(['apple','pear','peach','orange'])) | [
"34260109+chengang0727@users.noreply.github.com"
] | 34260109+chengang0727@users.noreply.github.com |
5d5cdb112efb4d4444cc8f3b8bea1c8cfc78507e | fe68647975427e507a21baf0ce59123d9c67cf46 | /myblog/settings.py | cb88e6d40fbf62c00e07a13fb3be986c75b1d694 | [] | no_license | ankitdevelops/blogforcoders | cf923fb1113286f678b86b0bf9a2619d124248a7 | 8bf1746713957afc98944ee7ad1855067c63babe | refs/heads/master | 2023-04-29T14:00:14.960962 | 2021-05-15T04:53:52 | 2021-05-15T04:53:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,217 | py | """
Django settings for myblog project.
Generated by 'django-admin startproject' using Django 3.1.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib ... | [
"heyankitandrel@gmail.com"
] | heyankitandrel@gmail.com |
60d963412a48fad3faf24a928539525426ead706 | 41d5dbdba29881755a44ee4e4fc15afd1f70e83b | /events/models.py | 4baceaf5ada3724abb836862c652100e5daacb5c | [] | no_license | aniket1004/adminpanel | 9493500856f5175317d74e6c6322085ac9f5101f | fdb5e40c55294762eb2959834c5297d307eb654a | refs/heads/master | 2023-04-23T14:38:18.730038 | 2021-05-03T12:19:08 | 2021-05-03T12:19:08 | 363,909,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | from django.db import models
# Create your models here.
class Event(models.Model):
name = models.CharField(max_length=100,blank=False,)
slug = models.CharField(max_length=100,blank=False,)
date = models.DateField(auto_now=False, auto_now_add=False)
| [
"aniketdhole1004@gmail.com"
] | aniketdhole1004@gmail.com |
b92646d2d8bb086be2c6d59e672848ab3b3050cf | 8036b9e0a3ba8c8042e5fb04f67d0b846fb05b1a | /spouts/tdms_spout.py | 4409f2e7f28349d84425b7b6633844bde4d6282d | [] | no_license | shouwang-sun/processing_node | 4b90632f36cf2f0ea0962dbc24820a80ac996ffd | a78ae07a513368fbd43fff4cf3a20ac63a12d3f3 | refs/heads/master | 2020-03-23T04:10:47.420093 | 2018-07-16T00:48:45 | 2018-07-16T00:48:50 | 141,068,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | # -*- coding: utf-8 -*-
__author__ = 'SUN Shouwang'
import time
from os import listdir, path
import nptdms
class TdmsSpout(object):
def __init__(self, folder, channel_list):
random_index = [3, 0, 2, 5, 1, 7, 4, 8, 6, 9]
self.file_list = [path.join(folder, listdir(folder)[ind]) for ind in random... | [
"shouwang.sun@aliyun.com"
] | shouwang.sun@aliyun.com |
013a8c17bd649838df798ceb7233a19105545f6b | 1f269060150f19de1b123589037ca0cde82cbca6 | /task2.py | 6aa9db3b93a6e8bdace68504ec6032dbed93a64d | [] | no_license | ndk03/Image-Filtering-and-template-matching | d6b9298971f14e8428d015afd8156974990f70ef | a3c116db68a3196189bc7579080102aaf736f40b | refs/heads/master | 2022-12-10T03:22:18.783343 | 2020-08-31T18:32:35 | 2020-08-31T18:32:35 | 291,792,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,619 | py | import argparse
import json
import os
import utils
from task1 import *
def parse_args():
parser = argparse.ArgumentParser(description="cse 473/573 project 1.")
parser.add_argument(
"--img-path",
type=str,
default="./data/proj1-task2.jpg",
help="path to the image")
parser.a... | [
"noreply@github.com"
] | ndk03.noreply@github.com |
8edf96788c2caa2a1890ea500b31a820d27944dc | baf9b3674cedea6ebf75f5b0f3618528bf385bb3 | /basket/migrations/0002_auto_20210722_1001.py | 45fd523d60e3e91b853eacea86fd7423613b58a6 | [] | no_license | ElfKnell/spiridonis | 3377f73a23802017e3f97f4601bc3f8541c5cb0b | 95cb29f02ec9d0745b68520e520f80a45a618dca | refs/heads/master | 2023-07-06T15:39:09.985267 | 2021-08-17T11:59:12 | 2021-08-17T11:59:12 | 385,142,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | # Generated by Django 3.2.4 on 2021-07-22 07:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('basket', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='basket',
name='summa',
),
... | [
"akyrych84@gmail.com"
] | akyrych84@gmail.com |
9d6439a6b2d66e84bc71bc05fe37f2fd23593da6 | fc23456b470ed67b2052faa8d8b40af57243c66e | /core/mysite/submodels/image.py | f8b8dbcf44ff277c61fc933c5b5d144c3864fb99 | [] | no_license | hamedsalim1999/doprax-django-with-docker | 3b0918fe974dbf7ba8a5e5337dbcb1621be44c99 | d0ebe6268bb7d36f39934db21ab45ec479aea51f | refs/heads/master | 2023-07-18T05:15:13.816184 | 2021-09-08T17:39:04 | 2021-09-08T17:39:04 | 404,428,747 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | from django.db import models
from django.core.files import File
import secrets
import os
from django.urls import reverse,reverse_lazy
from django.conf import settings
from .base import Publish,Timestamp
from django.utils.text import slugify
class Image(Timestamp):
title = models.CharField(max_length=128, null=Tru... | [
"hamediran1999@gmail.com"
] | hamediran1999@gmail.com |
6ec36cea031f3fe6e3bb6b5a147da2fb27a1a303 | f5599ceb7e04828bdd26cb4c27ffd76396d33a72 | /app/datasets.py | c2c1ae86b3f4d6d1fbd68fec7e4ec280d2414096 | [
"MIT"
] | permissive | TLMichael/Acc-SZOFW | 4d41436ff258d6678728fa70f070657632bdcf05 | ed1b0947bf43da02d2648c84e9dca0686fc41976 | refs/heads/main | 2023-01-09T13:57:25.829712 | 2020-10-15T06:32:25 | 2020-10-15T06:32:25 | 238,661,607 | 3 | 0 | MIT | 2020-09-06T03:13:38 | 2020-02-06T10:22:42 | Python | UTF-8 | Python | false | false | 6,972 | py | import numpy as np
import os.path as osp
from sklearn.datasets import load_svmlight_file
import torch
from torch.utils.data import Dataset
from torchvision import transforms, datasets
# DEVICE = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
DEVICE = torch.device('cpu')
PHISHING_PATH = '~... | [
"tlmichael@nuaa.edu.cn"
] | tlmichael@nuaa.edu.cn |
9e9bd761750fdacff2550f9144c914ddc1e8529c | 7bead245354e233f76fff4608938bf956abb84cf | /test/test_docx_table_cell.py | f1aec4840f9d6c266499020f55fa9f2df8b0c8a9 | [
"Apache-2.0"
] | permissive | Cloudmersive/Cloudmersive.APIClient.Python.Convert | 5ba499937b9664f37cb2700509a4ba93952e9d6c | dba2fe7257229ebdacd266531b3724552c651009 | refs/heads/master | 2021-10-28T23:12:42.698951 | 2021-10-18T03:44:49 | 2021-10-18T03:44:49 | 138,449,321 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | # coding: utf-8
"""
convertapi
Convert API lets you effortlessly convert file formats and types. # noqa: E501
OpenAPI spec version: v1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import cloudmersive_convert_api_... | [
"35204726+Cloudmersive@users.noreply.github.com"
] | 35204726+Cloudmersive@users.noreply.github.com |
30244110794a223bf5bf5b3dc1c1b5ebab399117 | 9ac19ccdfcb0de2b9ec4295e3291cfc2a597e70f | /bert_variant/datautils/configs/base.py | 32c5d241c1f384d54014014c424c9659757ba6df | [] | no_license | pdsxsf/AgriNER | 30ffac831861a3656e2b51e6ee4bc1823a643afe | 766c1e165c77d10956b5a262ebc4b5d75638bcc3 | refs/heads/master | 2023-03-24T03:59:36.687709 | 2021-03-24T06:50:59 | 2021-03-24T06:50:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py |
from pathlib import Path
BASE_DIR = Path('datautils')
config = {
'data_dir': BASE_DIR / 'dataset',
'log_dir': BASE_DIR / 'output/log',
'writer_dir': BASE_DIR / "output/TSboard",
'figure_dir': BASE_DIR / "output/figure",
'checkpoint_dir': BASE_DIR / "output/checkpoints",
'cache_dir': BASE_DIR / ... | [
"2838588360@qq.com"
] | 2838588360@qq.com |
fde928b59f07ba939d51ffedbd226a131c7d7bf2 | da496ed0de7c5a768ddd42241363c82e15133b7f | /api/coachApi.py | b9538d3618e3bfd32ec24b6dc352b4a14b776cca | [] | no_license | benwong9832/SoccerAnalysisAndPrediction | ffb5e592f267f1d15db5618488e4309a71f3a4f9 | b4e2bc584723a6c1cb5b82b89549a7923cb7dc70 | refs/heads/main | 2023-03-09T16:16:23.434848 | 2021-02-13T06:26:11 | 2021-02-13T06:26:11 | 329,558,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,163 | py | import api.config as cf
import requests
import json
import os
from datetime import datetime
import codecs
import time
# f = open("C:/Users/kenpe/PycharmProjects/soccersApi/data/teams/primite_leayg/teams_primite_leayg_2013.json", "r")
# print(f.read())
config = cf.config()
seasons = config.seasons
leagu... | [
"kenpetere@gmail.com"
] | kenpetere@gmail.com |
aa75e48a6f029780cc486fc33fe08e38602e0b2b | eb1896359cd718ba86f2e0657872710e914c6161 | /app/admin/invite_view.py | 27f6c07094b2bc383d60e4f37371fb2999ae1793 | [
"MIT"
] | permissive | dwcaraway/govly | 575333c6a5cb4cad6c2615e5d4152330d85ff72b | c3a134c2d8ae911c0ab05d9b96014a7c18bfac45 | refs/heads/master | 2020-12-26T04:37:39.642750 | 2015-12-22T02:08:21 | 2015-12-22T02:08:21 | 34,965,531 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,380 | py | __author__ = 'dave'
from . import MyModelView
from ..models.users import Invite
from wtforms import form, fields, validators, ValidationError
from flask_admin import expose
from flask import current_app, url_for, render_template
from flask_security import current_user
from urlparse import urljoin
from ..framework.util... | [
"dave@fogmine.com"
] | dave@fogmine.com |
aa5650cfa845d0f8a1a8b2048a907d06c2b3d36d | 1061216c2c33c1ed4ffb33e6211565575957e48f | /python-legacy/test/test_custom_profile_field.py | 9c780d683beda23dc85ae0a5a0c376b149184f96 | [] | no_license | MSurfer20/test2 | be9532f54839e8f58b60a8e4587348c2810ecdb9 | 13b35d72f33302fa532aea189e8f532272f1f799 | refs/heads/main | 2023-07-03T04:19:57.548080 | 2021-08-11T19:16:42 | 2021-08-11T19:16:42 | 393,920,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,526 | py | # coding: utf-8
"""
Zulip REST API
Powerful open source group chat # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import openapi_client
from openapi_client.models.cus... | [
"suyash.mathur@research.iiit.ac.in"
] | suyash.mathur@research.iiit.ac.in |
8149ad53008be36f6ec49fd392e43c5a4ce75f24 | 36261c250e1715255b7a22df9b59f3da0d288968 | /app/forms.py | 3e684e1319591d4db5763ec15d03f9e16d00a79b | [] | no_license | karishay/tiny_teacher | 06017c044f7697488c4289d46580c54c4d489d75 | 3918b785511f3551ba67b3aeafae8b7c06d7a3f5 | refs/heads/master | 2021-01-19T20:29:56.700039 | 2015-05-03T00:59:45 | 2015-05-03T00:59:45 | 28,541,948 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from wtforms import Form, TextField, TextAreaField, PasswordField, validators
class LoginForm(Form):
email = TextField("Email", [validators.Required(), validators.Email()])
password = PasswordField("Password", [validators.Required()])
| [
"kari.shay@gmail.com"
] | kari.shay@gmail.com |
1a442203491aa25653aae444c840e22b780f5b94 | 35c98eaa78de7bec7f985d62febb62f17a2177fc | /nlde/engine/eddynetwork.py | eef6a1c1c01f51fac5239869918e7fcaa182346c | [] | no_license | maribelacosta/nlde | a24499e8115c62352a6e16746ef89ca06252ed40 | df6d850b23ba617ae6872798c3165f01de8c5e68 | refs/heads/master | 2022-04-25T17:54:45.593633 | 2020-04-23T10:12:25 | 2020-04-23T10:12:25 | 258,157,557 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,963 | py | """
Created on Mar 23, 2015
@author: Maribel Acosta
"""
from eddyoperator import EddyOperator
from nlde.util.sparqlparser import parse
from nlde.util.explainplan import explain_plan
from nlde.planner.optimizer import IndependentOperator, create_plan
from multiprocessing import Process, Queue
class EddyNetwork(object... | [
"maribel.acosta@kit.edu"
] | maribel.acosta@kit.edu |
b7c41240fa74e52ba4534e26961d3cbf7322a0d6 | 43ed422113d58b27d5012f5ccf405700a46fc0f2 | /MaskRCNN/model/loss.py | eb4cb8a2d3d03b016b3857b3071a40cc1977da99 | [] | no_license | wprazuch/DeepLearningPlayground | 99a86945818e8a42e77408369e566b793ac612b9 | 53859fb4fd7bfc314121c85870afabd47627ce73 | refs/heads/master | 2022-12-16T05:50:22.757434 | 2020-09-03T09:23:26 | 2020-09-03T09:23:26 | 187,896,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,227 | py | import tensorflow as tf
import tensorflow.keras.backend as K
from utils import batch_pack_graph
def smooth_l1_loss(y_true, y_pred):
"""Implements Smooth-L1 loss.
y_true and y_pred are typically: [N, 4], but could be any shape.
"""
diff = K.abs(y_true - y_pred)
less_than_one = K.cast(K.less(diff, ... | [
"wojciechprazuch3@gmail.com"
] | wojciechprazuch3@gmail.com |
a737506c9c92729017569ef7d60e7a6f191776fd | 06de6ed71aa33d99b11bb1176c2db8244e9a93f7 | /Driver/RightHand_NS.py | 14b4d2b51d46a17243a6cadaa490dbb78ff98524 | [] | no_license | janenie/MCM_c | b646b0586aaca6cee118a443d20053c53b454d23 | 6148bae0189949630329e3f9932a3d88650e3770 | refs/heads/master | 2021-01-22T07:27:25.542793 | 2014-02-10T21:08:12 | 2014-02-10T21:08:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,357 | py | import random
from system import *
class FSA(object):
def __init__(self):
return
def decideLane(self,driver):
driver.lane = "Right"
def judge(self,driver):
velocity = driver.velocity
accelorate = max(1 , driver.maxa - driver.roadFc)
moderat... | [
"janlovefree@gmail.com"
] | janlovefree@gmail.com |
689f7241d4dc56a641bc73e4a10d491e1b16ae55 | a86864b0ca6bc1d4dbdd22c26257340b8131e859 | /forms/contract_award.py | 24bb6668c834f1225f8d923038e604378fd92b82 | [
"MIT"
] | permissive | pudo-attic/ted-xml | 95d00f4f02ce16677da7672d4f40478ef13fac11 | 627c100ba464f574c2c71f7584f05f3aabf480e8 | refs/heads/master | 2021-01-01T05:31:32.156917 | 2013-09-13T13:13:29 | 2013-09-13T13:13:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,149 | py | from pprint import pprint
from parseutil import Extractor
LOOKUP = {
'appeal_body': {
'std': './/PROCEDURES_FOR_APPEAL/APPEAL_PROCEDURE_BODY_RESPONSIBLE//',
'util': './/APPEAL_PROCEDURES/RESPONSIBLE_FOR_APPEAL_PROCEDURES//',
'mil': './/PROCEDURES_FOR_APPEAL/APPEAL_PROCEDURE_... | [
"friedrich@pudo.org"
] | friedrich@pudo.org |
804db3ce7450bad877259edbd96312fba3b9df27 | 6cb9f81432fd3f4b3f98c7df293acd5bb6829cbf | /cookiesDemo.py | 774092f8c17cc38643221b936a8b0ec5eea098b3 | [] | no_license | ruivers/Flask_on_date | ae69b7c2c37020486e9a4adbafb3bcecfb372d1a | 19884abe2d5e1b3033771fd9e9d87f2a1e966bda | refs/heads/master | 2020-03-18T05:28:21.096446 | 2018-05-29T05:42:49 | 2018-05-29T05:42:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | from flask import Flask
from flask import request
app = Flask(__name__)
@app .route('/')
@app.route('/')
def index():
resp = make_response(render_template('home.html'))
resp.set_cookie('username', 'the username')
return resp
if __name__ == '__main__':
app.run(host='0.0.0.0')
| [
"ruiweilai@163.com"
] | ruiweilai@163.com |
482518e8aa5babb705a3fb0fb72f1cd3ebccfe8f | 2f02494259ddd45ad0b961a14364a70eb78994a6 | /exam-review/9/clark-bains/problem9-tester.py | e333239558760ce6b5a9fb6979af73a4e116a3b6 | [] | no_license | malcolm-smith/1405-practice | 331a513795494d21d52597b54ab91e7c535f2f2e | 6265bf4a13f1b21b51c184c5c092f3b8557e0804 | refs/heads/master | 2022-03-24T15:15:11.948946 | 2019-12-18T04:55:40 | 2019-12-18T04:55:40 | 209,166,774 | 2 | 6 | null | 2019-12-23T19:41:37 | 2019-09-17T22:19:12 | Python | UTF-8 | Python | false | false | 3,247 | py |
import copy
import importlib
modname = "problem9"
funcname = "isvalidseries"
information = [[[[8, 4, 8, 3, 1, 2, 7, 9], 3, 19], False], [[[2, 4, 8, 3, 1, 2, 7, 9], 3, 19], True], [[[2, 4, 8, 3, 1, 2, 7, 9], 3, 16], False], [[[5, 5, 5, 5, 5, 5, 5, 5], 3, 19], True], [[[5, 5, 5, 5, 5, 5, 5, 5], 4, 19], False], [[[5, 5,... | [
"clarkbains@gmail.com"
] | clarkbains@gmail.com |
c3902da83d4bbf653f3646329166df8e9cb6ac8a | afe6819d7b22d1023ca05356ac16bbb059936a45 | /venv/bin/pytest | 85e15de5a4aacad50194ac120c96c29ad163de1c | [] | no_license | MaximkaKash/todo | 91a518fa314c232794292bf1dc299d646b7f2167 | ab5c1c5f045bfe0dd4cb778d67081888e67a4fe7 | refs/heads/main | 2023-07-23T13:34:37.169958 | 2021-09-11T08:29:06 | 2021-09-11T08:29:06 | 404,414,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | #!/home/maksim/python/todo/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pytest import console_main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(console_main())
| [
"kanashitsusu@gamil.com"
] | kanashitsusu@gamil.com | |
b0852cf85d9083b3a78990c4c4ecb96b24190dc2 | 191d18fae52df2b10fc3c78676612ce0828c1ad8 | /essentials/multi_server.py | b345cfc321697ef93d206779c4ae5ae4b88e165c | [
"MIT"
] | permissive | yada-yoda/pollmaster | 1e44ef42f68bf971e67b75c84842556d2ef2d687 | c7431d6b952599671c6408209528dceaad19116e | refs/heads/master | 2021-10-19T14:32:24.222515 | 2019-02-21T18:57:07 | 2019-02-21T18:57:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,061 | py | import time
import discord
from essentials.settings import SETTINGS
from utils.paginator import embed_list_paginated
async def get_pre(bot, message):
'''Gets the prefix for a message.'''
if str(message.channel.type) == 'private':
shared_server_list = await get_servers(bot, message)
if shared... | [
"matnad@gmail.com"
] | matnad@gmail.com |
d65909b61cd0a46b411ee9e6d5f181c7f00dbd42 | 454c0564acc5d6b194603985a5dcb792651661dc | /manualDrive/__init__.py | 798ed7c79ce972c1abc398024d90e358beb9414c | [] | no_license | rsoome/Digi6RX2017 | 64eed9be3f2202e9d5bf00e96af232a1b3104563 | 26bcb2e6169c90b71cfa23f29e27f4c51c0936e1 | refs/heads/master | 2021-08-24T02:27:18.708506 | 2017-11-26T22:13:10 | 2017-11-26T22:13:10 | 104,649,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | import manualDrive.ManualDrive | [
"rsoome16@gmail.com"
] | rsoome16@gmail.com |
3e5c4ac18106af76ebc63078c8b44562469ecb48 | 91fbfa52c5eea1f3d0df8fc7c634eedf0fe67c68 | /Python/pythonREST.py | 719a206bcd12191a8748cdc4d2a541fd36f05dbc | [] | no_license | M-Anwar/ARGEL | 57e54e887ffc82f9abe712a33aa2822a4cf47aba | 2d779f5da65d043cd94b46822b619fd11259abdc | refs/heads/master | 2021-01-21T04:31:40.242700 | 2016-07-15T03:14:00 | 2016-07-15T03:14:00 | 50,461,572 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | import requests;
import json;
print("hello world gonna make a REST call\n");
# Replace with the correct URL
url = "http://localhost:3000/api/helloworld"
myResponse = requests.get(url)
print ("Response: {0}".format(myResponse.status_code))
# For successful API call, response code will be 200 (OK)
if(myResponse.ok):
... | [
"muhammedshabbeer@hotmail.com"
] | muhammedshabbeer@hotmail.com |
140bcc017ac11e31a04350b4432b9f9da84b34d4 | a0b048e4f5c3bc8db7bf3ce2c39ae5387d74d99f | /nnet/nn_models/Parser_biaffine.py | d11f1b78f32df5e7e56e2661c6e0f321a25a1f59 | [] | no_license | AndreiC9/SRL_DEP | 49ce8d985b9290fb23a264b3b46b354be3138021 | 231a2533bb84e24d7eb0681b3d1190809faafeb8 | refs/heads/master | 2021-03-04T17:05:42.179139 | 2020-04-13T13:45:03 | 2020-04-13T13:45:03 | 246,051,575 | 0 | 0 | null | 2020-03-09T14:03:51 | 2020-03-09T14:03:50 | null | UTF-8 | Python | false | false | 12,986 | py | from __future__ import unicode_literals, print_function, division
from io import open
import unicodedata
import string
import re
import random
from nnet.util import *
import nnet.decoder as decoder
import numpy as np
import torch
import math
import torch.nn as nn
import torch.autograd
from torch.autograd import Variab... | [
"Rui.Cai@ed.ac.uk"
] | Rui.Cai@ed.ac.uk |
65ef2c35a54d445ef9cd2c14e351b654783cbda1 | 8799db59af87cc332a26aabb7082e89d812d3c0d | /venv/bin/django-admin.py | f4ed5fa8883ae9e6a801faca212daaa66ab060e0 | [] | no_license | kureLeGrill/telegramBotGanna | fbbb7de887de3f9eb4c5319f512d3dfb551d65c2 | cff4be229ab57975d9dea22b3d1911394e844450 | refs/heads/master | 2022-12-13T22:01:59.490215 | 2020-09-07T17:24:50 | 2020-09-07T17:24:50 | 292,842,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | #!/home/ed/PycharmProjects/HannaTelegramBot/venv/bin/python
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admin.py was... | [
"vetok88@gmail.com"
] | vetok88@gmail.com |
388a367dcb7a39b2bc2e59de0a6af9923be7e32e | 91a549716b68535644814e46f8d4fcf8b714b496 | /node_modules/sharp/binding.gyp | 3a1893849fa97075fce86029e22b2f48262dde25 | [
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | KishanMaurya/personal-portfolio | 837d4c0b075a414b5bf85477e39fe9a9134ad0c1 | 2df0f228e6fe494b795381d45ae39ddc18095c44 | refs/heads/master | 2023-02-19T15:28:24.326898 | 2020-08-01T16:56:47 | 2020-08-01T16:56:47 | 284,300,267 | 3 | 0 | MIT | 2021-01-06T08:28:21 | 2020-08-01T16:47:37 | JavaScript | UTF-8 | Python | false | false | 6,787 | gyp | {
'targets': [{
'target_name': 'libvips-cpp',
'conditions': [
['OS == "win"', {
# Build libvips C++ binding for Windows due to MSVC std library ABI changes
'type': 'shared_library',
'defines': [
'VIPS_CPLUSPLUS_EXPORTS',
'_ALLOW_KEYWORD_MACROS'
],
... | [
"kkmaurya.0095@gmail.com"
] | kkmaurya.0095@gmail.com |
0a77cc0e157849e364d05eba2e50154cbdd20923 | 6db36a7bc7a45d8a5dfd53d3660d45ac475d5c03 | /mysite/main/migrations/0010_auto_20190612_1728.py | f9b7c212467546b24b3722a9fde6226caab4a0e7 | [] | no_license | matimontes/Grupo47 | f63c52a3533d8f5ad35f4ae2e2cbcd0dea32eb4e | 1ca077a2563aec8d5052565e8aa854ee15797758 | refs/heads/master | 2020-05-04T17:11:58.792406 | 2019-07-18T02:44:18 | 2019-07-18T02:44:18 | 179,302,112 | 2 | 1 | null | 2019-06-16T19:58:43 | 2019-04-03T14:00:37 | Python | UTF-8 | Python | false | false | 361 | py | # Generated by Django 2.2.1 on 2019-06-12 20:28
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('main', '0009_auto_20190610_1706'),
]
operations = [
migrations.AlterModelOptions(
name='puja',
options={'ordering': ['subast... | [
"mati.montes@hotmail.com"
] | mati.montes@hotmail.com |
2909402b00fb3a6e6b883535089989ab85eb7e84 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/graph_objs/mesh3d/legendgrouptitle/_font.py | 766e46a49d072ae53fadbf9814e540e8ef7dfdbb | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 8,471 | py | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "mesh3d.legendgrouptitle"
_path_str = "mesh3d.legendgrouptitle.font"
_valid_props = {"color", "... | [
"nicolas@plot.ly"
] | nicolas@plot.ly |
e1606654ea93653cb2dce8ceff18357e12273bfa | 5112b951c8bf666a16c00f238a469a015453598a | /src/models/blog.py | 90ed237ebe726bda13addbb2205ae39e99402edc | [] | no_license | jushita/web-blog | c99172e5b3a4b05554565b84056cee8997deae69 | b0ff36036c66e145922be1ae8d546622391a4208 | refs/heads/master | 2021-01-01T20:21:08.127012 | 2017-07-30T20:41:41 | 2017-07-30T20:41:41 | 95,841,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | import uuid
import datetime
from src.models.post import Post
from src.common.database import Database
__author__ = 'jrahman'
class Blog(object):
def __init__(self, author, title, description, author_id, _id=None):
self.author = author
self.author_id = author_id
self.title = title
... | [
"jushitaa@gmail.com"
] | jushitaa@gmail.com |
2ba209f565ab992e4ee4495511470584b0b781b0 | d19f6d677f1598f2840822d53f7217fbca0bc77c | /additional files/hand_rank.py | a832f1d1b71303c7ba87308d670340cd64d28677 | [] | no_license | molex/Python_Scripts | ec11f800e79ee515ed15d1929d29ddac726bf488 | 134ea6407e744fb5cf9f8b02f16ce612e52ebc19 | refs/heads/master | 2021-01-21T12:10:52.206371 | 2016-04-20T14:05:47 | 2016-04-20T14:05:47 | 5,499,911 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,929 | py | # -----------
# User Instructions
#
# Modify the hand_rank function so that it returns the
# correct output for the remaining hand types, which are:
# full house, flush, straight, three of a kind, two pair,
# pair, and high card hands.
#
# Do this by completing each return statement below.
#
# You may assume the fol... | [
"molex333@gmail.com"
] | molex333@gmail.com |
1bd3328dc8166ab5d74439832d739adbdd69d664 | 206123d13078ae1d08aa20f98b76349210165c17 | /trees/binary_tree/main.py | 6613b96cc99d8342504d3b5b07d749f089d94455 | [] | no_license | Avinashgurugubelli/python_data_structures | b29e13bafd3190abe7c93102705d01f41a8d411f | 7141d237112e13fc90dc81702263d121779036d1 | refs/heads/master | 2022-12-18T23:49:56.137001 | 2019-08-01T19:04:07 | 2019-08-01T19:04:07 | 157,427,278 | 0 | 0 | null | 2022-06-21T21:37:53 | 2018-11-13T18:31:48 | Python | UTF-8 | Python | false | false | 629 | py | # Below os and sys imports required to match the custom imports
import os, sys
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.dirname(CURRENT_DIR))
from binary_tree_node import BinaryTreeNode
from binary_tree import BinaryTree
from .utils.binary_tree_traversal_types import BinaryTreeT... | [
"avinashgurugubelli@gmail.com"
] | avinashgurugubelli@gmail.com |
00f4f432b42195fe0d5718333d4fea31f17c3546 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /layout-blt/configs/bert_layout_publaynet_config.py | c468d18d59fde1f6a87c790cc4dbb6815ec3e80b | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 2,219 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
0f64588d8eabb24d126ca11a7baf5283462f158f | ebd1e49fc405d6711c36c1aa16450682176f622f | /Snake Water Gun.py | 7e48498b5554b0b51a248e0c32c873f40db05603 | [] | no_license | lokesh2509/Snake-Water-Gun | 332b775984cc5849cce35f97fd5be86cb71769f5 | cd5b6f53aa1bc1bb832c5b6612c8b2367585c846 | refs/heads/main | 2023-07-04T14:16:23.839595 | 2021-08-19T06:40:12 | 2021-08-19T06:40:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,686 | py | #Snake Water Gun
"""Create a program using while loop or for loop and use random module. take input from user and also use random. If
the inut and random value mathecs show you won. The game willl continue till 10 times and then shows the score"""
"""Following are the rules of the game:
Snake vs. Water: Snake dri... | [
"noreply@github.com"
] | lokesh2509.noreply@github.com |
921548cdfb11ada7eb5d4be07398294bf09ce197 | b9963ffb80aad7e057bc375edb85ac7ed5a837d0 | /adventofcode2017/03b.py | 44f43305774184f644e62bce54dfc526c453e223 | [
"MIT"
] | permissive | matslindh/codingchallenges | a2db9f4579e9f35189f5cdf74590863cf84bdf95 | a846e522f7a31e988c470cda87955ee3ef20a274 | refs/heads/main | 2022-12-23T15:56:19.776354 | 2022-12-15T21:03:37 | 2022-12-15T21:03:37 | 76,491,177 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | from itertools import repeat
from math import floor
map = []
s_y = s_x = 1001
for y in range(0, s_y):
map.append(list(repeat(0, s_x)))
x = y = floor(s_x/2)
map[y][x] = 1
x += 1
dir = 'R'
written = 0
while written <= 289326:
if dir == 'R':
if not map[y-1][x]:
dir = 'U'
else:
... | [
"mats@lindh.no"
] | mats@lindh.no |
1055aa3e500f07c7be0eca6e0c57b8bee6333395 | 68329275022f3a392161b7746caf899e2516d547 | /10. HAFTA ODEVI AMIRAL BATTI.py | b6ac42ae3962c3e2410678e7b78ee2d2c2d19535 | [] | no_license | Osmandursunn/10.Hafta-Odev | 32e2f75870a0b4085190dc8443162987b90dd517 | 1f3a0ad4642a7818ac8aa3cec919b040bd178f52 | refs/heads/master | 2020-07-09T21:29:31.590476 | 2019-08-24T00:31:51 | 2019-08-24T00:31:51 | 204,088,061 | 0 | 0 | null | 2019-08-24T00:30:31 | 2019-08-24T00:30:31 | null | UTF-8 | Python | false | false | 8,894 | py | import random
import time
print('\u272A'*16,"AMIRAL BATTI",'\u272A'*16,sep="")
print("""
*******************************************************
*******************************************************
AMIRAL BATTI OYUNUNA HOSGELDINIZ
*******************************************************
****... | [
"noreply@github.com"
] | Osmandursunn.noreply@github.com |
2bb7dd33ca94ab0010891f6b17ba99ddfad25061 | 0911ccd808776b1e1e1ebaffcf0b77162653621b | /1_Intro_to_Python/2_Variables.py | 3b6b06c14a15a0e907b197525fe06145be9bb9c1 | [] | no_license | harfordt/Python-Lessons | 088494e3eaa204705df7fb021ba74eb7eba6741b | 885c871f2192b4abbf52ea8f1159bc1b13158e0d | refs/heads/master | 2020-09-25T17:54:48.662540 | 2019-09-10T08:46:19 | 2019-09-10T08:46:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,332 | py | ####################################################################################################################################################
# This lesson is to store some information in a location on the computer called a Variable. A Variable can change over the course of the program. #
# We will then print t... | [
"pravinvaz@gmail.com"
] | pravinvaz@gmail.com |
5d1f9fac5630919623b5c3ad9f7d43e77f63a1a3 | 275f85955acabac247fe306b0161a6d758f4d057 | /ArielZurita/tests/test.py | 52e515731976567f27fef1d1405f7c5ada8f8990 | [] | no_license | mauricioZelaya/QETraining_BDT_python | 295bb58a99a36b0b973afd153109c510191b4ec7 | d7cc798e7063ab32e5002e4deda3ddec8a8a0c59 | refs/heads/master | 2021-05-08T05:01:13.181273 | 2017-11-24T21:53:46 | 2017-11-24T21:53:46 | 108,473,352 | 0 | 0 | null | 2017-11-24T21:53:47 | 2017-10-26T22:43:32 | Python | UTF-8 | Python | false | false | 954 | py | def listMonths():
monthEntered = str(input("Enter a month \n"))
months = ["january", "february", "march", "april", "may", "june", "july", "august", "september", "octuber", "november", "december"]
days = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
if monthEntered in months:
index = months.i... | [
"Ariel Zurita@jalasoft.local"
] | Ariel Zurita@jalasoft.local |
95e084e2db2796dd5bfa76335cfa156cdae7f351 | 71cea814dcf5ceb6d2b3a86f33273e532f5a9b77 | /simpa_tests/automatic_tests/TestPathManager.py | 554e50fb7053f0a7d56d466388f64b2150d14285 | [
"MIT"
] | permissive | mschllnbrg/simpa | 7744bba073f9c01b7a60f076a49fe80b5e6d12fa | 2ca2b81039a7252da7c618d8ba69527f2d6f240f | refs/heads/master | 2023-06-19T18:59:02.301717 | 2021-06-24T12:47:55 | 2021-06-24T12:47:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,862 | py | """
SPDX-FileCopyrightText: 2021 Computer Assisted Medical Interventions Group, DKFZ
SPDX-FileCopyrightText: 2021 VISION Lab, Cancer Research UK Cambridge Institute (CRUK CI)
SPDX-License-Identifier: MIT
"""
import unittest
import os, inspect
from simpa.utils import PathManager
from pathlib import Path
from dotenv imp... | [
"janek.grohl@cruk.cam.ac.uk"
] | janek.grohl@cruk.cam.ac.uk |
c02f87454674133188c46ec524fb31ff09fa867f | 245ab7db202f911acdf3c8091c204c485f6745ae | /parse_players.py | e1bc63030cd746589a989c8c8a271ec0483acdd3 | [
"MIT"
] | permissive | AVirolainen/football_guess | 2c4fd54b41fe6be748940a3729bf72b890bfac68 | 86c8c5ef2b428a9bde4d98e00df70ed08b1f89fd | refs/heads/main | 2023-04-08T07:07:04.657425 | 2021-04-08T22:11:27 | 2021-04-08T22:11:27 | 356,186,003 | 0 | 0 | MIT | 2021-04-09T07:56:27 | 2021-04-09T07:56:26 | null | UTF-8 | Python | false | false | 340 | py | from bs4 import BeautifulSoup
url = 'example.html'
players = open('players.txt', 'a')
soup = BeautifulSoup(open(url), 'html.parser')
table_wiki = soup.find('table', {'id': 'playerTopList'})
for td in table_wiki.find_all('td', {'class': 'name'}):
players.write("_".join(td.text.replace('\n', '').split(' ')) + '\n... | [
"jackshendrikov@gmail.com"
] | jackshendrikov@gmail.com |
48439c3e69fc5c2270951aa9ecbeed3a36dac1ef | e66e30711887a8bad38deeaa0da2558b333deb1c | /ship.py | 06d8fa89d7afa4fa043532042d692fea175fcaa5 | [] | no_license | Duanhs/Alien-Invasion | 9012de22fec46975f0ccefd734598b7572f327b5 | 8f44669c3e82e6e8ad4457ee7d8277c75f1d80f3 | refs/heads/master | 2020-04-10T12:46:57.514041 | 2018-12-09T11:29:37 | 2018-12-09T11:29:37 | 161,032,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | import pygame
class Ship():
def __init__(self,screen):
self.screen = screen
self.image = pygame.image.load('images/ship.bmp')
self.rect = self.image.get_rect()
self.screen_rect = screen.get_rect()
#ๅฐ้ฃ่น็ไฝ็ฝฎ่ฎพ็ฝฎๅฐๅฑๅนๅบ้จไธญๅคฎ
self.rect.centerx = self.screen_rect.centerx
... | [
"duanhongsi@meituan.com"
] | duanhongsi@meituan.com |
f829374ecf93d80a724d38e00dff9ecc2cb9c16b | f68065baf489013c926dcfea9994878716d19586 | /accounts/views.py | 323deb2d9a062d75f066d39db1854285279ddd21 | [] | no_license | groyce/pots | 06667fdc686b74a897c42879cbed5803e9efb154 | ac839943c84c3135cb4596a8f734e4a061086e10 | refs/heads/master | 2020-04-10T01:42:55.863071 | 2018-12-06T19:47:18 | 2018-12-06T19:47:18 | 160,723,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,905 | py | from django.http import HttpResponse
from django.shortcuts import render
from django.contrib.auth import authenticate, login
from .forms import LoginForm, UserRegistrationForm, UserEditForm, ProfileEditForm
from django.contrib.auth.decorators import login_required
from .models import Profile
def user_login(request):
... | [
"groyce@unomaha.edu"
] | groyce@unomaha.edu |
8cd85855d175d322e73f636de7aed0b6850bdf52 | 2f233b31ea7ffefad4b901b561f341fabe3bbb1f | /2017/02a.py | 77f9ee8c4d1e176ea1331fdbdd314eff205802e3 | [
"MIT"
] | permissive | cz-fish/advent-of-code | 066b63c3ac2e3b13bf88ae86843a7a9a7b687e96 | ecbcef544e8d89ec019464811760ce86f84dbc6e | refs/heads/master | 2023-08-03T19:41:23.186666 | 2023-03-14T08:59:04 | 2023-03-14T08:59:04 | 226,355,674 | 0 | 0 | MIT | 2023-07-20T02:51:13 | 2019-12-06T15:17:10 | Python | UTF-8 | Python | false | false | 593 | py | #!/usr/bin/env python3
grid = []
with open('input02.txt', 'rt') as f:
for ln in f.readlines():
grid.append([int(x) for x in ln.strip().split('\t')])
print(sum([max(l) - min(l) for l in grid]))
print('-----')
s = 0
for ln in grid:
srt = sorted(ln)
stop = False
for i in range(len(srt) - 1):
... | [
"filip.simek@gmail.com"
] | filip.simek@gmail.com |
305a52c242ec94adeaaf52fb037f2f4072fe2272 | 8961efe29765a8093bcd669adb3fa6ca186eadfd | /toolbox/attacks/FGSM-Attack/run_all.py | de63948e966ad6a4eb5ec4441dfcdcc3b516de03 | [] | no_license | JayceeLee/adversarial-toolbox | 12bfe720fd0984b6dc1c10d61486b2e36f22fde9 | 01d624d995d3c55d220cdf570ca00510f32cc43a | refs/heads/master | 2020-03-27T04:22:55.631986 | 2018-02-06T01:25:27 | 2018-02-06T01:25:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | python fgsm_inception_v3.py
python fgsm_inception_resnet_v2.py
python fgsm_resnet_v2_101.py
| [
"nealeratzlaff@gmail.com"
] | nealeratzlaff@gmail.com |
7b971f292708ee7e0c19c8b4c0113acc5eaa8c75 | 07d110e3350b42982c493be12fbdce0d5b6acdd3 | /users/migrations/0002_auto_20200819_2130.py | bdcda405b91eeddfc0baf8726df33e2862574693 | [] | no_license | AlissonS47/django-challenge | 387f99067e4b478db20de27e7922abe96e79555b | 2ca67ac0696bd30f94236832514641374347a73e | refs/heads/master | 2022-12-08T07:19:16.718695 | 2020-09-05T00:09:22 | 2020-09-05T00:09:22 | 287,840,861 | 0 | 0 | null | 2020-08-15T23:29:22 | 2020-08-15T23:29:22 | null | UTF-8 | Python | false | false | 382 | py | # Generated by Django 3.1 on 2020-08-20 00:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='naver',
name='admission_date',
... | [
"tec.alisson47@gmail.com"
] | tec.alisson47@gmail.com |
38249fa8185cebfdb4c30d7dddd3e605bad8b96b | 5bf245e55b756ca3e664d857f36db092855c7a98 | /externals/mne/fixes.py | 399715ee615775de35fa7a26ddf1c8dde4d48d47 | [
"BSD-3-Clause"
] | permissive | kingjr/decoding_challenge_cortana_2016_3rd | b264fabbe8fb2f3788d11dc2c4deebcf217a64a5 | 26c2ebf5200b5a5cd268fa73ac3928d7257d08d3 | refs/heads/master | 2021-01-20T17:54:12.617430 | 2016-07-13T22:31:58 | 2016-07-13T22:31:58 | 63,120,115 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 33,605 | py | """Compatibility fixes for older version of python, numpy and scipy
If you add content to this file, please give the version of the package
at which the fixe is no longer needed.
# XXX : originally copied from scikit-learn
"""
# Authors: Emmanuelle Gouillart <emmanuelle.gouillart@normalesup.org>
# Gael Varo... | [
"jeanremi.king+github@gmail.com"
] | jeanremi.king+github@gmail.com |
69e047b18d45718a8b61d0b513fee6d2958265d9 | 9c371b80b2b0cc610ba53c1d719f9ccf6150ea32 | /Task-2/codeforces/cf-71A.py | 55e74f433fc43d154cbb83ab9f037b4c9596ceef | [] | no_license | praveenjm2000/amfoss-tasks | cd329021fdd67cb86ceccceaa364c425bf2f3c40 | 3509c578b55e9f0154b2eeb646cac7de2473f4b9 | refs/heads/master | 2020-06-28T14:44:41.777644 | 2019-09-18T17:25:44 | 2019-09-18T17:25:44 | 200,258,896 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | s=input('Enter the word: ')
l=len(s)
print(s[0],l-2,s[l-1],sep='') if(l>10) else print(s)
| [
"noreply@github.com"
] | praveenjm2000.noreply@github.com |
bd51f7d2254adf5b66b9f623b6a902a082b95b74 | 52bd6040667388c1cb25802feeaa78260d870858 | /finalscripts/fit_lines_4triangles.py | 4456c45b406ef44ae98b5229d27ab8c10ea46bc7 | [] | no_license | mainCSG/DotTuning | 837bb418618b6df4e15db8190953a0456094f856 | b2cb52cdd343ea64d39c6e75fd8f340d2b709198 | refs/heads/master | 2020-07-02T08:32:20.558372 | 2019-08-09T19:43:01 | 2019-08-09T19:43:01 | 201,474,350 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,492 | py | # it takes 5 vertices as the input along with the cluster. It first finds the boundary points and
# puts the point into 5 groups based on which edge it is closest to. Then fits a line through these groups
import matplotlib.pyplot as plt
# from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import pandas as pd
# ... | [
"51793790+zachparrott@users.noreply.github.com"
] | 51793790+zachparrott@users.noreply.github.com |
56b112ec026b96dc86c4812ccb51a04bbdb70086 | 9b9e4af541fdf3609fdcd4c4f880cfc04c2de610 | /utils/testing_fashionmnist.py | ace075520517204059a29f98648c2319b4b7a616 | [] | no_license | HeleneFabia/fashion-mnist | e1f279c62197ae7037c09ab39a1042699901aab2 | 3510dfa0af9708088ac17e912d9e4c61913f614b | refs/heads/master | 2023-01-08T02:29:16.187348 | 2020-11-04T07:14:18 | 2020-11-04T07:14:18 | 299,336,341 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,687 | py | from sklearn.metrics import accuracy_score
import torch
from torch.nn import functional as F
from torch import nn
from torch.utils import data
from torch.utils.data import DataLoader
import matplotlib.pyplot as plt
from matplotlib.pyplot import plot
import numpy as np
def test_model(net, test_ds, device):
"""
... | [
"noreply@github.com"
] | HeleneFabia.noreply@github.com |
dc543898fee01c7ed58926a7c5f42df05801e873 | 9cf369ce8ea40142917e0fae6dd0dae7d60667ed | /Blog/apps/blog/models.py | c2ba5823d8771f31d2476275e125bf9e399a106c | [] | no_license | wcleonard/interview | ef60b5a2bec36bc3a077b54ceb88ea43a30ab3d2 | bf396556d1a65fbae536373967e2d1bf6de52b4d | refs/heads/master | 2022-11-30T17:12:18.545996 | 2019-07-10T08:51:53 | 2019-07-10T08:51:53 | 187,006,175 | 0 | 0 | null | 2022-11-22T03:49:12 | 2019-05-16T10:29:38 | JavaScript | UTF-8 | Python | false | false | 3,042 | py | from django.db import models
from django.utils.timezone import now
class Tag(models.Model):
name = models.CharField(verbose_name='ๆ ็ญพๅ', max_length=64)
created_time = models.DateTimeField(verbose_name='ๅๅปบๆถ้ด', default=now)
last_mod_time = models.DateTimeField(verbose_name='ไฟฎๆนๆถ้ด', default=now)
# ไฝฟๅฏน่ฑกๅจๅๅฐๆพ... | [
"wancanin@163.com"
] | wancanin@163.com |
119d5dd6903d69bdfa649d76ecd2c0552b636918 | 5099e029c341e6111a331c66a49c8ef2a295d441 | /common/encryption.py | c6c087cdd4eb2cc808303177e9ae97091aa4778a | [] | no_license | cherrishes/weilaiDemo | 6abfcd8260f0ca515fa8a92aef53546362f28b34 | c6e3a6341630de0f7906055e4120f1bb0f258d64 | refs/heads/master | 2021-01-10T13:40:43.437971 | 2016-04-05T11:06:11 | 2016-04-05T11:06:11 | 54,546,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # !/bash/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'rdy'
import hashlib
def md5(val):
"""
ๅญ็ฌฆไธฒMD5ๅ ๅฏ
:param val:
:return:
"""
if isinstance(val, str):
m = hashlib.md5()
m.update(val.encode('utf-8'))
return m.hexdigest()
else:
return ''
if __name__... | [
"rendy@56iq.com"
] | rendy@56iq.com |
5a04ed0ab197d53e561347947e8dc56c871128b9 | 7365ae430024c039e3079e9cc0cc2fcb6079ee22 | /zshprompt2.py | d5c18461a73ad013cee929509fa085472b5ceab6 | [] | no_license | jedamus/zsh-config | fef7757b9302ae45920948f4232829aea89ef61c | 0c6eda9a604095ea14493835bca0ad7dd5919114 | refs/heads/master | 2023-01-21T11:03:08.620219 | 2023-01-09T08:22:44 | 2023-01-09T08:22:44 | 42,779,306 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,418 | py | #!/usr/bin/env python2
# coding=utf-8
# erzeugt Mittwoch, 11. Mรคrz 2015 21:01 2015 von Leander Jedamus
# modifiziert Samstag, 13. August 2022 08:49 von Leander Jedamus
# modifiziert Montag, 02. Mai 2022 20:27 von Leander Jedamus
# modifiziert Montag, 07. Mai 2018 22:24 von Leander Jedamus
# modifiziert Montag, 21. Sep... | [
"ljedamus@web.de"
] | ljedamus@web.de |
8c2130f6ba303911b5d6f295829119020fd3ec10 | f4927e1b2ad87cff185a9d6a5100c40ffcf85ffd | /blog/urls.py | 18a04bd99c32e5a1a9735ba30accbc1160739c29 | [] | no_license | abhitechno01/my-first-blog | e930d184b6ee6e4c3075be85a8a41c7e5a00d6f7 | a14163e98735674b6b6338d7daeea3893bd9240d | refs/heads/master | 2021-01-10T14:47:57.687645 | 2017-03-05T09:21:33 | 2017-03-05T09:21:33 | 47,018,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.post_list, name='post_list'),
url(r'^post/(?P<pk>[0-9]+)/$', views.post_detail, name='post_detail'),
url(r'^post/new/$', views.post_new, name='post_new'),
url(r'^post/(?P<pk>[0-9]+)/edit/$', views.post_edit, name='post_edit'),
... | [
"abhi.techno01@gmail.com"
] | abhi.techno01@gmail.com |
c108208bc9db3256a41319f9146f6ee3f21eaa0b | 34edc8b21515817caa87aedeb07b87515c33ebd0 | /basket/migrations/0020_auto_20180522_2041.py | 2124680ee2ea695b05fe1a93fcea0fe017647183 | [] | no_license | waelbeso/Ftrina | b20c277030132b195af621d9e739040d42943a9b | 449868f8c095bb920a2aef2e2dc4cb80de8ec82a | refs/heads/master | 2022-09-06T16:34:40.391965 | 2018-05-27T12:19:05 | 2018-05-27T12:19:05 | 134,336,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2018-05-22 20:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('basket', '0019_auto_20180522_2035'),
]
operations = [
migrations.AlterField... | [
"waelabbas@live.com"
] | waelabbas@live.com |
4a83f922a050991ffa8ce57cd3a8290bb54b295d | 95501489b913ca04f3756edff53ab1dd1eb22595 | /keras_contrib/backend/theano_backend.py | 8195937327b5621395fd14643009ac68e04c1c79 | [
"MIT"
] | permissive | mustgoplay/keras-contrib | 5c6965c923e3a579fbac3fc62b89445623c38bd8 | d1f0eed42441ec1e83bbf6b2d005588bab54c0f3 | refs/heads/master | 2020-05-30T03:18:02.649351 | 2017-02-21T03:16:01 | 2017-02-21T03:16:01 | 82,624,770 | 0 | 0 | null | 2017-02-21T02:06:22 | 2017-02-21T02:06:21 | null | UTF-8 | Python | false | false | 4,543 | py | import theano
from theano import tensor as T
from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams
from theano.sandbox.neighbours import images2neibs
from theano.tensor.signal import pool
from theano.tensor.nnet import conv3d2d
from theano.printing import Print
try:
import theano.sparse as... | [
"noreply@github.com"
] | mustgoplay.noreply@github.com |
f6066d060c195e6f9ef837b859b666ab4f30bdb8 | 096167807fa625681beae7e25919357c90b89e75 | /emails/models.py | 1fb86f349ab69c1489f2ef26d7c95be401ff5b2d | [] | no_license | bussiere/Sumomo | c849484fbae37490998bcc44e232bf6a252fe9d7 | ac3efc46014e66e193c5f852d121a25dd0a9ec5e | refs/heads/master | 2021-01-19T11:34:42.645970 | 2012-08-31T04:15:32 | 2012-08-31T04:15:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | from django.db import models
# Create your models here.
class Contact(models.Model):
Emails = models.TextField(null=True, blank=True)
class Email(models.Model):
Sender = models.ForeignKey("Contact",related_name="Sender", null=True, blank=True)
Recepter = models.ManyToManyField("Contact", related_name="Re... | [
"bussiere@gmail.com"
] | bussiere@gmail.com |
2cf4e7801619ee837dad4b3378ec60eb0aef2667 | 444468f946f906063b79e381cba03f8027553024 | /tools/demo.py | 89fdcc9c70324c0b877086fb8b77e9f2a5508c19 | [
"MIT"
] | permissive | neuqgz/modify-faster-rcnn-tf | ea0af9f42b986373db64b723b5295c31aed3f047 | e935660d7645d405be309843d1778adc6cd57332 | refs/heads/master | 2020-03-21T23:49:16.571284 | 2018-06-30T10:29:27 | 2018-06-30T10:29:27 | 139,207,861 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,631 | py | #!/usr/bin/env python
# --------------------------------------------------------
# Tensorflow Faster R-CNN
# Licensed under The MIT License [see LICENSE for details]
# Written by Xinlei Chen, based on code from Ross Girshick
# --------------------------------------------------------
"""
Demo script showing detections... | [
"1072464610@qq.com"
] | 1072464610@qq.com |
698b0601027480d0838e9463b081837db17caabc | 55631088b41f203027c399a501e9c344d99d7dae | /app/routes/route.py | 10c6bf047ce1e8f1b929d235addd7ce365157c0e | [] | no_license | subham2126/Rest-API-using-Flask-and-Cassandra | 89f5e4885b3b0ed28e35fc6f8eb472f1e341333d | 0fb8a9f828a0fcb39d2f99c97fbca79c8e96ef29 | refs/heads/master | 2021-08-22T03:38:50.863931 | 2017-11-29T05:12:06 | 2017-11-29T05:12:06 | 112,316,110 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,043 | py | from flask import Blueprint,Flask,request
import json
from cassandra.cluster import Cluster
cluster = Cluster(["127.0.0.1"])
api = Blueprint('api', __name__,url_prefix='/module');
class myClass:
@api.route('/login')
def login_in():
session = cluster.connect('tutorialspoint')
rows = session.ex... | [
"subham.gupta@medlife.com"
] | subham.gupta@medlife.com |
85f6c6841803ce1581908c6771d2ce379cf2641b | 5937db09510fecf857f4e6064a5edef84d30fb5b | /cracker.py | 89cf7604776722567a37bd38085753fcda325ef3 | [
"MIT"
] | permissive | ak9999/dict-bruteforce-unix | c32d24d9bc8117622a726eaf248f23b6b2767d84 | a5a5c38a2502434f51b3a3ca3f98bb7a31c81fcc | refs/heads/master | 2020-12-21T17:22:17.237691 | 2016-07-04T21:04:00 | 2016-07-04T21:04:00 | 60,309,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | #!/usr/bin/env python3
import sys
import crypt
import spwd
'''
Author: Abdullah Khan
Program: cracker.py
Description: Dictionary-based /etc/shadow file cracker.
Usage: cracker.py <path/to/dictionary/file>
'''
def crack(username, enc_password, dictionary):
if not dictionary:
exit(1)
salt = enc_passwor... | [
"khanabdullahj@gmail.com"
] | khanabdullahj@gmail.com |
1c9832b0b85c1b52d6843f79ec2dcb1fa84e81b1 | 68ab00c77312827e522151e6e9f2fff166e85b9c | /mypy_boto3_builder/structures/collection.py | 41b5f2550bb9a33bdb6cd53825ecc814e7734f48 | [
"MIT"
] | permissive | pyto86pri/mypy_boto3_builder | 2cdfb3ed55ea1ff23cdffd5a9ee5400e71562450 | e8132dc4632430e0abd4cd330af51a8b1c82028f | refs/heads/master | 2023-01-25T04:06:11.174287 | 2020-12-03T23:39:06 | 2020-12-03T23:39:06 | 319,283,736 | 0 | 0 | MIT | 2020-12-07T10:29:52 | 2020-12-07T10:29:51 | null | UTF-8 | Python | false | false | 1,280 | py | """
Boto3 ServiceResource or Resource collection.
"""
from typing import Set
from mypy_boto3_builder.import_helpers.import_string import ImportString
from mypy_boto3_builder.structures.class_record import ClassRecord
from mypy_boto3_builder.type_annotations.external_import import ExternalImport
from mypy_boto3_builder... | [
"volshebnyi@gmail.com"
] | volshebnyi@gmail.com |
d39213359879393713f56cfeaab771126b841676 | ec205806d24c256cb276534b9fc2cdc80fb728b6 | /16_user_name.py | cd328a7bf9482113d4eeb6c49092a69c05729904 | [] | no_license | siddhusalvi/basic-python | a4094665f8c22fa164f749b8bc6884970922abb9 | 8b637a9a468110c95f02871f2bb947913b495014 | refs/heads/master | 2020-12-12T03:47:54.803601 | 2020-01-16T11:53:46 | 2020-01-16T11:53:46 | 234,035,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | """
Write a Python program to get the current username
"""
import getpass
print("Current username is :", getpass.getuser())
| [
"siddheshsalvi525@gmail.com"
] | siddheshsalvi525@gmail.com |
c9272ab9ce25ad997cef0881159ae4bc9c13e0ef | e0d9844e123fa0706388814b9f29758258589487 | /torch/distributions/distribution.py | 33c48de39d91713f0e5c6f65b31cd98687ac56d8 | [] | no_license | pigpigman8686/seg | b5cf5261a5744e89ed5e5b145f60b0ccc3ba2c0c | 61c3816f7ba76243a872fe5c5fc0dede17026987 | refs/heads/master | 2023-04-10T22:22:35.035542 | 2021-04-22T06:24:36 | 2021-04-22T06:24:36 | 360,398,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,229 | py | import torch
import warnings
from torch.distributions import constraints
from torch.distributions.utils import lazy_property
from typing import Dict, Optional, Any
class Distribution(object):
r"""
Distribution is the abstract base class for probability distributions.
"""
has_rsample = Fal... | [
"952361195@qq.com"
] | 952361195@qq.com |
cb8a5a7e749c620eccbb32e9dae70307ab887439 | 6d5a85bb2347f06d5d23ced47fdbcd3966ec9db3 | /resources/tests/test_resource_api.py | 47d0857c50ab918096a48be26e691585124a7025 | [
"MIT"
] | permissive | City-of-Lappeenranta/Respa | e3224a469fb175b22f79cad4f4f96fe658f892bb | 6559359e4ad800d582bb19b9a421d78500b272e8 | refs/heads/master | 2022-12-12T12:10:14.323868 | 2022-04-04T06:43:21 | 2022-04-04T06:43:21 | 165,219,424 | 0 | 0 | MIT | 2022-12-07T23:55:22 | 2019-01-11T09:45:47 | Python | UTF-8 | Python | false | false | 22,999 | py | import datetime
import pytest
from copy import deepcopy
from django.core.urlresolvers import reverse
from django.contrib.gis.geos import Point
from django.utils import timezone
from freezegun import freeze_time
from guardian.shortcuts import assign_perm, remove_perm
from resources.models import (Day, Equipment, Period... | [
"andrey.aleksandrov@octo3.fi"
] | andrey.aleksandrov@octo3.fi |
e9d942313fddaf59f9f83f27c7bc26137e53b214 | 8cd4e38f9cc69f384175458eb308c56a591a782d | /Pulso polรญtico por provincias en Ecuador/Script usados/sucumbiosAA.py | 38c0422e6a3dd233455ea3c5eb1ad60e57332c11 | [] | no_license | Jonathan141999/proyecto-analisis-de-datos-JEGY | cb328b57cd51b56c9d13de5da05832770f663437 | 42391badeb510e1a484774a3fd229abe4d5d55f3 | refs/heads/master | 2023-03-23T17:38:14.733267 | 2021-03-19T19:47:44 | 2021-03-19T19:47:44 | 348,162,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py |
import sys
import couchdb
from tweepy import Stream #autentica las credenciales
from tweepy import OAuthHandler #
from tweepy.streaming import StreamListener #hereda la clase
import json
###API ########################
ckey = "X1cHhuKlzjY6eUQ2J6i4MuVUR"
csecret = "kEd5yq95noDC726oYSGYSXkuF4S71kj2IFauS3qmOGIDQHJ7XC"... | [
"jona94alquinga@gmail.com"
] | jona94alquinga@gmail.com |
0047d29abf94e16535d124ff7d4ef10ea63e1275 | 0bbddea89877506c12b62137ed77ff47d1bb2f05 | /manage.py | 78234b70a42c1efda4fafcd4a46620f18889214c | [] | no_license | TheHene/owlt | 93fa9df61fccbc5997f433ca1feeae157cf9bbab | c7f4eff9fca87f0116813b04311b7c1bf3052ef3 | refs/heads/master | 2020-03-18T15:24:34.458671 | 2018-05-29T20:32:11 | 2018-05-29T20:32:11 | 134,905,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "owlp.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you... | [
"hendrik.setzer@hotmail.de"
] | hendrik.setzer@hotmail.de |
6fb95dced758154aad6d1a944de9536f17a0b428 | 1a2cc414889af45a08af88e30253761fc9a804b1 | /scripts/fastest-infra-wheel-mirror.py | 4c75acfa79263972d9b05dc3332a181089101e2b | [
"Apache-2.0"
] | permissive | jimmy42/openstack-ansible | eb098ff8ca360ce712c692084f7cbe34cd18e9b2 | 77cd6b1d3fc67bff4936b793e7949bf757a6f31c | refs/heads/master | 2023-01-08T18:20:11.333027 | 2016-06-02T15:25:50 | 2016-06-02T15:25:50 | 60,303,603 | 0 | 0 | Apache-2.0 | 2022-12-24T00:58:30 | 2016-06-02T23:17:57 | Python | UTF-8 | Python | false | false | 5,668 | py | #!/usr/bin/env python
#
# Copyright 2016, Rackspace US, Inc.
#
# 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 applicab... | [
"jesse.pretorius@rackspace.co.uk"
] | jesse.pretorius@rackspace.co.uk |
5390d4b1ceb14885cc274564814a2e976a44a68f | b7716089291b9f915c326ad43b6df50e286860b9 | /nasa/__init__.py | 2a2ba71fe5345a2a0c07dd7b0015a295b5d71a4b | [
"MIT"
] | permissive | saturnfive050/aio-nasa | bf20110e3a26f9239dba097ded288e82339c6746 | 62fc6dcafb0417e2ec79709fd46d8500652d3ae5 | refs/heads/master | 2022-11-16T03:27:38.445440 | 2020-07-13T19:05:21 | 2020-07-13T19:05:21 | 279,712,917 | 0 | 0 | MIT | 2020-07-14T23:17:06 | 2020-07-14T23:17:06 | null | UTF-8 | Python | false | false | 150 | py |
from .nasa_client import NASA
# from .base_client import BaseClient
from .apod.apod_client import APOD
from .insight.insight_client import InSight
| [
"48489521+nwunderly@users.noreply.github.com"
] | 48489521+nwunderly@users.noreply.github.com |
1412f35638ca0ea7b9a84f157d78d221431a2524 | 810ce1c1ac47743e253171ec7541c0e431d952c2 | /small_programme/crawler/crawling.py | e445437136947a14712e6ade780429dd6b18b819 | [] | no_license | hjlarry/practise-py | 91052c25dc7ab706c6234f6d657db76667a27124 | 871e06b9652d356f55e3888f1f7ea180ac2b1954 | refs/heads/master | 2022-09-11T17:47:48.557194 | 2022-08-10T02:07:24 | 2022-08-10T02:07:24 | 136,263,989 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,379 | py | import asyncio
import collections
import logging
import re
import time
import urllib
import cgi
import sys
import aiohttp
from reporting import report
LOGGER = logging.getLogger(__name__)
logging.basicConfig(level=logging.DEBUG)
FetchStatistic = collections.namedtuple(
"FetchStatistic",
[
"url",
... | [
"hjlarry@163.com"
] | hjlarry@163.com |
d807abdc220d8649a4f546bf8715b4be597aec77 | 5a71ca1f5c964f803350e3c1238cb48986db565c | /coinlibbitfinex/tests/test_bitfinex_streamapi.py | 25331ab7bbc5c1144c8083305e500db7203b9b85 | [] | no_license | tetocode/coinliball | fd644cbc16039ecad7e43228ea4e287ead5c8e5f | 41ebbac13c1fbba98aedaa766b9a505cb157f374 | refs/heads/master | 2022-09-28T21:58:08.130006 | 2020-06-04T03:00:56 | 2020-06-04T03:00:56 | 269,247,318 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,491 | py | import time
from queue import Queue, Empty
import pytest
from coinlib.datatypes.streamdata import StreamData
from coinlibbitbankcc.streamapi import StreamApi
WAIT = 3
N = 10
def test_subscribe(stream_api: StreamApi):
xrp_usd_params = {
'event': 'subscribe',
'channel': 'book',
'pair': 'X... | [
"_"
] | _ |
bbb2322ace2b612dcc069fc950c3e1896bb9a0ac | d6659785d05e35daa190470e55fd662bf0235497 | /models/sfrtrans.py | baeb6989667c5c76dd7701a6f1ec54ee6e45ee19 | [] | no_license | fahihdrh/wuliang | 2fc3aae1c729112a7ee85cf2b573ccb197ff29d1 | 949eadacb13856e1d39986404e9d717fe39282da | refs/heads/master | 2023-06-28T04:22:02.836370 | 2023-06-15T01:47:21 | 2023-06-15T01:47:21 | 76,614,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,763 | py | import torch
from models.utils import SATransformer, CATransformer
import torch.nn as nn
from mmcv.cnn.bricks.conv_module import ConvModule
from einops import rearrange
class SFRTrans(nn.Module):
""" backbone_dim: The number of channels of feature maps output from the backbone (UNet Encoder).
seq_dim: The... | [
"237583937@qq.com"
] | 237583937@qq.com |
4fd2db085bebdf0fb2594d570603ecce95d71f50 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03227/s459999028.py | 03236a4d5fabd077163769a4c50f0ed805cccd94 | [] | 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 | 146 | py | def main():
s = input().rstrip()
if len(s) == 2:
print(s)
else:
print(s[::-1])
if __name__ == "__main__":
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9b5798055f88b7a1a338ac59202cf9820a91f147 | 48bf18fd4c495aaec8c3c03cb5f56a0cd511dd70 | /todolist/urls.py | c7ad30b772ca89b1f4b40db77d77645b3a0cdc83 | [] | no_license | williampepple1/Todolistwithdjango | c1f587eba8e038f9008a5a444c24296ce4fc90e8 | 0533a775753be74c9b5e30a5c5d6627c68f92293 | refs/heads/main | 2023-04-22T15:37:53.033204 | 2021-05-08T15:35:16 | 2021-05-08T15:35:16 | 364,580,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | """todolist URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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-base... | [
"36817380+williampepple1@users.noreply.github.com"
] | 36817380+williampepple1@users.noreply.github.com |
e2e77603dceef720d9b2f0d2b691e2c6403a7e9c | f5bb79f7925d53ccaf21d2c98334222a8aa9a377 | /Hackerrank/06. Itertools/maximize-it.py | 6b8675cd3f6adf041adbe3ad186ab97932d8929f | [] | no_license | StanislavRadkov/python-learning | 511b1d8b80fb1eff500739d0c24b42af84948e75 | 46268b3107510b4a7ad9fbc868372de22b7459ae | refs/heads/master | 2021-03-24T12:12:51.303476 | 2017-09-11T12:27:26 | 2017-09-11T12:27:26 | 101,641,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | import itertools
k, m = map(int, input().split(" "))
arrays = [map(int, input().split(" ")[1:]) for _ in range(k)]
def f(*nums):
return sum(x * x for x in nums) % m
print(max(itertools.starmap(f, itertools.product(*arrays)))) | [
"stanislavradkov@skyscanner.net"
] | stanislavradkov@skyscanner.net |
d8bef9d2257e646945921eef2184ee0089672dc5 | dabc9c7ec7cce125a12c6243ff67fd91e620d636 | /tap/line.py | 2784be13d982350342f9cef81eb316a081153234 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | Mark-E-Hamilton/tappy | 7634209c2862c9e837b58602d4b59636fd9a8e89 | 62c1a4ef1d9e724d3c7bbb31361c17c3bf071d04 | refs/heads/master | 2021-01-15T09:04:09.813683 | 2016-03-21T04:51:45 | 2016-03-21T04:51:45 | 53,630,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,921 | py | # Copyright (c) 2016, Matt Layman
class Line(object):
"""Base type for TAP data.
TAP is a line based protocol. Thus, the most primitive type is a line.
"""
@property
def category(self):
raise NotImplementedError
class Result(Line):
"""Information about an individual test line."""
... | [
"matthewlayman@gmail.com"
] | matthewlayman@gmail.com |
033451d08b6344e87d7017977780ce8cefee7dea | 405c89cf9ca91b3bf72c030410afbd7e4ba797e8 | /odl_boke/my_app/migrations/0016_subproject_settime.py | 33eb4fb66496f7ccfd06f24b5d2f0255a6ccf4d1 | [] | no_license | andwang130/django_web | 11941c1cc43314399ab9d487a02836e718c70369 | 85f0adb0f142fdb4dbdd49cb01e0763e74624fec | refs/heads/master | 2021-01-25T01:07:55.892949 | 2018-06-14T01:57:32 | 2018-06-14T01:57:32 | 123,306,749 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | # Generated by Django 2.0.1 on 2018-01-20 15:53
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('my_app', '0015_auto_20180120_2300'),
]
operations = [
migrations.AddField(
model_name='subproject',... | [
"627656470@qq.com"
] | 627656470@qq.com |
97876c1143af3c1bbcf63ea5db171555c18fc239 | 242086b8c6a39cbc7af3bd7f2fd9b78a66567024 | /python/PP4E-Examples-1.4/Examples/PP4E/Gui/Intro/gui3.py | 6617d3e8edd2b088131c50e73653265dc000e795 | [] | no_license | chuzui/algorithm | 7537d0aa051ac4cbe9f6a7ca9a3037204803a650 | c3006b24c4896c1242d3ceab43ace995c94f10c8 | refs/heads/master | 2021-01-10T13:05:30.902020 | 2015-09-27T14:39:02 | 2015-09-27T14:39:02 | 8,404,397 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | import sys
from tkinter import *
def quit(): # a custom callback handler
print('Hello, I must be going...') # kill windows and process
sys.exit()
widget = Button(None, text='Hello event world', command=quit)
widget.pack()
widget.mainloop()
| [
"zui"
] | zui |
c2c72dd6a4037f0038e162dee8fcec72aba8097c | 68f6e727e8f95391d6381669c72857f8bc4ac142 | /source/demo_dqn_multi_new/dqfd_multi_largebasic_one_rocket_hate_exp036.py | ae1a5e8972266c05c9fe4b18f4b4c0a6df9c049f | [] | no_license | ushitora/vizdoom_experiments | db6b6279ce0b248c1e933340d518ce90189be37d | fcc6febcbd9039b0f0f0aea1d472b2226b5395e5 | refs/heads/master | 2020-04-28T09:40:56.209848 | 2019-03-12T10:00:28 | 2019-03-12T10:00:28 | 175,175,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71,570 | py | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
import multiprocessing
import skimage.color, skimage.transform
from vizdoom import *
import os, time, random, threading, h5py, math,pickle
import tensorflow as tf
import numpy as np
from game_instance_basic import GameInstanceBasic, GameInstanceSimpleDeathmatch
from glo... | [
"kikuchi.yutaro.s1@dc.tohoku.ac.jp"
] | kikuchi.yutaro.s1@dc.tohoku.ac.jp |
a1c2a87889a40ad080a4ee6a9d04be8cc1ac71a4 | bd6bf1f587cce6ecf9088f6e97034c5a45ea968b | /write_file.py | b81b15175e6473c09d3585c802bcf7aa2c7dd9dc | [] | no_license | daisykha/pythonSimpleProgram | b4d6670c53b7dd36f4310fa149df3cacb3348d48 | 02835eaaeee473dbc6e2f47c081a05c5e759dd2c | refs/heads/master | 2022-03-21T17:24:11.531308 | 2022-02-08T19:40:14 | 2022-02-08T19:40:14 | 213,254,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | #Q1
#a_word="abc"
#file_name=open("text.txt","w")
#file_name.write(a_word)
#file_name.close()
#Q2
#def saveListToFile(sentences, filename):
# filename = open(filename,"w")
# for i in sentences:
# filename.write(i)
# filename.write("\n")
# filename.close()
#file_name=input("Enter file name: ")
... | [
"noreply@github.com"
] | daisykha.noreply@github.com |
b11986b3974295a315c63bf1ec08b07e1e0e3087 | dde9442399c78414c05f7f36803c861638065ca3 | /Multidimensional-Lists-Exercise/Radioactive-Mutant-Vampire-Bunnies.py | a22c9f63fe0ef1c68063385ce0f936bf2bfc334d | [] | no_license | Vigyrious/python_advanced | 6778eed9e951b5a11b22f6c6d8ea5b160c3aa00d | 67db470e78b194aea1f9a35283d5a88b0f6ab94c | refs/heads/main | 2023-03-23T12:24:59.688699 | 2021-03-12T20:53:04 | 2021-03-12T20:53:04 | 347,192,305 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,396 | py | row, col = map(int, input().split(" "))
matrix = []
[matrix.append(list(input())) for _ in range(row)]
movements = list(input())
player_row, player_col = [[row_index,col_index] for row_index in range(row) for col_index in range(col) if matrix[row_index][col_index] == "P"][0]
is_dead = False
has_won = False
while not is... | [
"73179295+Vigyrious@users.noreply.github.com"
] | 73179295+Vigyrious@users.noreply.github.com |
082dec6b6de5e27366fa56a22a7a33984dbdfd45 | b851b6db51b0948d3a2a1c27d4616ecc451bcbe0 | /PetriDish/ConcurrentTransition.py | 8299dc50bd8347b66aece27f93d567607bec1d4a | [] | no_license | jomondogu/petri-dish | 321bb90d0084b357b6f8e52667d243bea45d7b0c | 5098e1baf4d35dd61e9eaad34777b7e292f614cd | refs/heads/master | 2020-04-11T10:17:49.442439 | 2018-12-14T00:22:08 | 2018-12-14T00:22:08 | 161,710,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,778 | py | import sys
import time
from threading import Thread
class Transition(Thread):
def __init__(self, id = 0, inputs = None, outputs = None, position = [0,0]):
super(Transition, self).__init__()
self.id = id
if inputs is None:
self.M = 0
self.inputs = []
... | [
"noreply@github.com"
] | jomondogu.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.