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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0c1f81f9a662f0a04390fb702ff7088ed12059d5 | 292c6f367da29b6980b04516ed7afff6dc0e31d4 | /08-arrays-and-strings.py | 53ea6b0c8e486fc2ddeb2209a082eb538d308b12 | [] | no_license | ChrisCummins/cstp | f846e4f444b8e9420fa1e4df220f8d8f2984e87a | c7f7bda5688ed1ed6e1f8d19695dc412c8a6c564 | refs/heads/master | 2016-09-06T10:28:00.695687 | 2014-09-19T12:58:20 | 2014-09-19T12:58:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,945 | py | #!/usr/bin/env python
#
## Arrays and Strings:
#
# Solutions for the code questions posed in Cracking the Code
# Interview, Chapter 1, page 73.
#
# Exercise 1.1:
#
# Implement an algorithm to determine if a string has all unique
# characters. What if you cannot use additional data structures?
#
# This is a var... | [
"chrisc.101@gmail.com"
] | chrisc.101@gmail.com |
f46f1d3c2abf05bf55e3c91b1316976bab1b5f12 | b3e5931420805b22d1e6b1b9497d876129ff8b23 | /membership_inference_attack-master/experience_mnist.py | df9523b79c9d29826254b94215748407697251a7 | [] | no_license | MezereonXP/dp-project | faa4dac42a23908e884cfe9a04fa9559864725b1 | 0b95681a293aa8965f67a65140b42c1472c2713a | refs/heads/master | 2022-12-07T18:57:36.689574 | 2020-08-24T16:43:07 | 2020-08-24T16:43:07 | 289,939,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,212 | py | import torch
import torch.nn as nn
import torch.optim as optim
from dataloaders import *
from utils import config
import numpy as np
from model import *
from torch.optim import lr_scheduler
from trainer import *
from sklearn.utils import shuffle
from sklearn.metrics import precision_recall_fscore_support, accuracy_scor... | [
"mezereonxp@gmail.com"
] | mezereonxp@gmail.com |
48c9e68734e6c9c358b5cdfb2941ffc5f4e94408 | ef41d36bd614f2bd0b4e84d30f7a6bd95a996c04 | /alphaBetaPruning.py | d042a7423a9906eb40b6c023300fecc5649392f4 | [] | no_license | sixou/Four_in_a_Row | 97e55989e29782fb958202f18a43beabe50ceb8d | 6b2ec519773aa5584df9823a9a96d93cacf7e2e5 | refs/heads/main | 2023-02-04T21:14:52.788318 | 2020-12-28T09:43:56 | 2020-12-28T09:43:56 | 324,967,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,392 | py | # -*- coding: utf-8 -*-
"""
Created on Sat May 16 22:44:10 2020
@author: USER
"""
import game
DEPTH=2
def go(gm):
print("In go of game ", gm.board)
if game.isHumTurn(gm):
print("Turn of human")
obj= abmin(gm, DEPTH, game.LOSS-1, game.VICTORY+1)[1]
print("object board: "... | [
"noreply@github.com"
] | sixou.noreply@github.com |
419bdb1f567d2f6601df1bbb329c1740bcfe8433 | 78b0c743a59cd78f4efe819197fb77b9af5e394b | /pessoal_quadro/migrations/0048_auto_20190516_0245.py | c512b5e8abcf74fb5a3a2c75860715d57a7f6b04 | [] | no_license | ismaely/sigrh_cpl | 6c741cdb496385c7a52cdd362ec53b7bef3d53ad | 2cb5b3f3b083e2d50184b220043bcdfcab04a754 | refs/heads/master | 2021-06-24T01:11:21.832832 | 2021-01-13T10:54:50 | 2021-01-13T10:54:50 | 183,949,281 | 5 | 0 | null | 2021-01-13T10:54:51 | 2019-04-28T19:21:06 | JavaScript | UTF-8 | Python | false | false | 744 | py | # Generated by Django 2.2.1 on 2019-05-16 02:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pessoal_quadro', '0047_auto_20190516_0245'),
]
operations = [
migrations.AlterField(
model_name='despromocao',
name=... | [
"7ilipe@gmail.com"
] | 7ilipe@gmail.com |
dcf0096c49621c2910baa817fd7b4e4d6fa6e7bc | 62be5e4190cc1c239671c72187c8feaf9ab23d90 | /一致性哈希算法.py | 567c593943609c8ffed530cb362ca60a0fbc5927 | [] | no_license | zhangbo2008/Consistent-hashing-By-python-with-explanation | bc1aeb45418f2ea7d9f60750b79c4110007cc8fe | 1d77437c9166b84b46854b99fa400feec834e3e0 | refs/heads/main | 2023-04-03T19:39:49.198438 | 2021-04-06T03:03:17 | 2021-04-06T03:03:17 | 355,039,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,817 | py | '''
一致性哈希算法:
'''
# -*- coding: utf-8 -*-
import hashlib
class YHash(object):
def __init__(self, nodes=None, n_number=3):
"""
:param nodes: 所有的节点
:param n_number: 一个节点对应多少个虚拟节点
:return:
"""
self._n_number = n_number # 每一个节点对应多少个虚拟节... | [
"noreply@github.com"
] | zhangbo2008.noreply@github.com |
4afad2aa64020a390beb1483101cf70b55493038 | c678dd2e00277a83fddd89063cecd75179e95063 | /doc/listings/bnf/ex01.py | 329861d887665420d0463957afd09a1cf582ea08 | [] | no_license | fantao963/pybnf | d07fc550986346f0ca9ef16f30f578e81b471a5e | a59cd3629100927c9e472b0d887ee21c18849bb8 | refs/heads/master | 2021-01-16T22:53:56.840718 | 2010-08-16T14:38:17 | 2010-08-16T14:38:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | #!/usr/bin/env python
from bnf import Context
from bnf import Literal
if __name__ == '__main__':
context = Context('filename')
# language ::= "Hello, World!"
language = Literal('Hello, World!')
language.parse(context)
| [
"hotgloupi@trollteam.com"
] | hotgloupi@trollteam.com |
f4fc6e462b660b83289d61c769113ee873b187fb | 4216d56042a9d92f8396d44022a1198d408d3c67 | /colordetection.py | a22934054e753745560b496dcefe9f342c71c607 | [
"MIT"
] | permissive | mohamedsayed18/JDE_follow_line | c0008efec7e3ec3b65ce50f59ad99214b6bd603e | 86d5910a6ee7ea81c187a5b81032fecd82a64a4d | refs/heads/master | 2020-12-09T07:58:44.503833 | 2020-01-24T05:14:13 | 2020-01-24T05:14:13 | 233,243,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | import numpy as np
import cv2
image = cv2.imread(Russian_flag.svg) #load image
# define the lower and upper bound of our color in BGR
lower_red = np.array([0,60,255]) #lower limit
upper_red = np.array([40,0,255]) #upper limit
# this function return image with values of (0 or 1) for each pixel
# 0 if out of range, 255... | [
"mohamed95.a.s@gmail.com"
] | mohamed95.a.s@gmail.com |
10d3e77b82dc4994a6bde5ebe6467d46c720eb53 | 73827a2c82033af0a4a9e39b505bc0ef27599d6f | /Chapter 4/bookmarks/account/urls.py | 37a78e427814fe6af0bc2398fe1547be0c642ecc | [] | no_license | tehmeerali786/Django-by-Example-2 | 3c3d34518c021b7bee2454854020c0c20901c00b | af2976a0a4d11ba514415c3a4032d8b5bc8618b6 | refs/heads/master | 2020-05-01T14:50:04.393973 | 2019-04-06T21:17:14 | 2019-04-06T21:17:14 | 177,530,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | from django.urls import path, include
from django.contrib.auth import views as auth_views
from .import views
urlpatterns = [
# post views
# path('login/', views.user_login, name='login'),
path('login/', auth_views.LoginView.as_view(), name='login'),
path('logout/', auth_views.LogoutView.as_view(), name='logou... | [
"freelanceali786@gmail.com"
] | freelanceali786@gmail.com |
3a5f8eb70364316d0ea93d9c69236e97208d4ac5 | 83783b0e157a96dd0e6a4ee5590342918162d6b9 | /core/admin.py | 6587634111c1e682ff589f3f38a3ad550a8dbacb | [] | no_license | ianAraujj/grupos | 7a158fc5231139d03d8167c9931c0cbb1938a7fa | b8f486b4fedfa688086c36aa4dbb28c7dfeb601d | refs/heads/master | 2022-07-15T18:07:35.695349 | 2020-05-13T20:15:04 | 2020-05-13T20:15:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | from django.contrib import admin
from .models import Idioma, Tema, Sobre, Pesquisador, Instituicao, Linha, Publicacao, Premiacao, Projeto, Informacao, Grupo
admin.site.register(Idioma)
admin.site.register(Tema)
admin.site.register(Sobre)
admin.site.register(Pesquisador)
admin.site.register(Instituicao)
admin.site.regi... | [
"gabriel.costa.campos.13@gmail.com"
] | gabriel.costa.campos.13@gmail.com |
a1be79a17ca5bb5dfe6898fb7ef7b66d44cb6d7b | f8f2536fa873afa43dafe0217faa9134e57c8a1e | /aliyun-python-sdk-facebody/aliyunsdkfacebody/request/v20191230/DeleteFaceDbRequest.py | c205a9d5028e5151028ee5ea4c11b69a59902eae | [
"Apache-2.0"
] | permissive | Sunnywillow/aliyun-openapi-python-sdk | 40b1b17ca39467e9f8405cb2ca08a85b9befd533 | 6855864a1d46f818d73f5870da0efec2b820baf5 | refs/heads/master | 2022-12-04T02:22:27.550198 | 2020-08-20T04:11:34 | 2020-08-20T04:11:34 | 288,944,896 | 1 | 0 | NOASSERTION | 2020-08-20T08:04:01 | 2020-08-20T08:04:01 | null | UTF-8 | Python | false | false | 1,402 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
ece1502f78e665a12e5199ee02205d6070c94441 | 176052add237168bc2cf36fc9083db2c27b4a5b5 | /chimera_visualizations.py | 256d2b3150c56d94542ae2a85d68ed69182393c1 | [] | no_license | Buddyboy201/top_pro_pack_scripts | 15512ed487993904b66a869775f680036fe8c310 | bea3c768ace4b0ffde4a932083754d3aeb049b7e | refs/heads/master | 2023-07-16T03:24:10.010091 | 2021-09-02T18:54:48 | 2021-09-02T18:54:48 | 402,527,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | from pathlib import Path
from subprocess import Popen, PIPE, STDOUT, check_call, call
from threading import Thread
import argparse
def _display_chimera(row, pdb_directory, chimera_path):
#chimera_path = Path(r"C:\Program Files\Chimera 1.15rc\bin\chimera.exe")
chimera_path = Path(chimera_path)
residues = ",... | [
"aprakriya201@gmail.com"
] | aprakriya201@gmail.com |
bdd9ada6e3e25ff8707eaf6d31bc474afc410051 | 5223a4a2d4a093c18f923e9ffaab1429f0bac64e | /Musicmp3/urls.py | f765cdbdfe1f5a482a3739299e2036f85c8ea7d9 | [] | no_license | rajeshbhagure/MyMusicMp3 | 2f86128114179c48f284255ff5bd0793f36c5ecc | 05182cbb25e7ed76d300e52bcea5b199f716300d | refs/heads/master | 2022-06-20T08:29:04.648698 | 2020-05-04T02:41:07 | 2020-05-04T02:41:07 | 261,064,605 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py | """Musicmp3 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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... | [
"61898509+rajeshbhagure@users.noreply.github.com"
] | 61898509+rajeshbhagure@users.noreply.github.com |
6a41e0259d6541981609052ac07f75fbaa7d1f87 | 2fb3177fbc779dfff1a588e4bdc92d3525f79124 | /Mysite/poll/migrations/0001_initial.py | 6fe414800e68a819fb1b26eabf23855d7fb288e7 | [] | no_license | AmosChenZixuan/DjangoExercise | 22ead667cec422366279155d1b4a06e524c6b632 | 56d406fecfb62f0a9828f0c18c071ab9f4b8a7ae | refs/heads/main | 2023-08-21T17:25:23.069241 | 2021-10-15T10:19:46 | 2021-10-15T10:19:46 | 416,677,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | # Generated by Django 3.1.7 on 2021-03-23 09:36
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Question',
fields=[
... | [
"czxvvv@foxmail.com"
] | czxvvv@foxmail.com |
198be27cf7220ab00377679a79bc9c6081767406 | dcfcd43b4c00fe897866a1e1d530b0f50ed56116 | /05-高级数据类型/hm_02_del关键字.py | 22d4bd7b69452b56a9f994dd9ba59ab8930e05ca | [] | no_license | Jeremyljm/new | 8a93f4422b26272fe4a2b68bf806c40879db2d51 | 8a34245c10923a09b9e1cb178ba7fb5368b01f53 | refs/heads/master | 2020-09-22T18:06:57.789590 | 2019-12-02T05:41:10 | 2019-12-02T05:41:10 | 225,294,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
name_list = ["张三", "李四", "王五"]
del name_list[0]
# del 关键字本质上是用来将一个变量从内存中删除的
print(name_list)
| [
"178747324@qq.com"
] | 178747324@qq.com |
dfb9caed7c2ed3c5596ed79389df148b00ca4253 | f80d19d58816c14cf51b6457d017ccb1b01918ea | /pythonTests/perlinNoise.py | 9a76e437829e54f20ce8f4452533a5823e6da75d | [] | no_license | piochelepiotr/minecraftClone | 378a277d88d35ab36f1ef517598800b99355e6c5 | c4389f5f4f7a8164658e7943050119a0508dcd00 | refs/heads/master | 2021-05-11T02:53:44.298323 | 2018-11-03T02:24:20 | 2018-11-03T02:24:20 | 117,897,006 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,107 | py | #! /usr/bin/python3
from PIL import Image
import math
import random
def length(a):
(x, y) = a
return math.sqrt(x*x+y*y)
def scale(a):
(x, y) = a
l = math.sqrt(x*x+y*y)
if l == 0:
return a
return (x/l, y/l)
def vec(a, b):
"""returns vector from a to b"""
(xa, ya) = a
(xb, ... | [
"piotr.wolski@telecom-paristech.fr"
] | piotr.wolski@telecom-paristech.fr |
db1a4cfb543246788a5916186c15318d03d8f7bf | c0f1400dc19eaa1db79a4d3f8c425f5c6f4a166b | /Exam 1/Hi-Ho Cherry-O.py | 36ba5c3d7f7afb8cbbb1b1f68c1ef20024996b68 | [
"MIT"
] | permissive | leking6176/PHYS-3211 | 5ecf7cfcf15b9f36bd0da1261d5112b9249c66cc | cd3aca75a3c41a57e6525e344d933e6f7c21e3fe | refs/heads/master | 2020-07-08T06:46:56.610320 | 2019-12-11T21:02:10 | 2019-12-11T21:02:10 | 203,597,129 | 0 | 0 | MIT | 2019-08-21T14:05:37 | 2019-08-21T14:05:37 | null | UTF-8 | Python | false | false | 2,942 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Sep 26 17:55:52 2019
Exam 1 Hi-Ho Cherry-O
@author: Lauren King
"""
import numpy as np
tree=10
basket=0
w=0
q=0
spin=rand.random()*7
print("New Game: Equal Probabilities")
while basket < 10:
if spin <=1:
basket +=1
tree -= 1
... | [
"leking6176@ung.edu"
] | leking6176@ung.edu |
e5e3067412f5c4a01bdbed5af97c62c9916d777c | 2178081be880bff976c63a14a21ad03da3c0ccba | /hmparse.py | 725d7ca44a8b88979db0b69800d67b854c71edb8 | [] | no_license | Zorro666/HMTOOL | 05a4a3a5f14afb1494a9cceb27cbd943cfa55f7b | c6bb7673fe3b679df9c083aa2b46bfefda55510a | refs/heads/master | 2016-09-03T06:41:09.433119 | 2011-07-30T12:46:07 | 2011-07-30T12:46:07 | 2,098,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,789 | py | #! /usr/bin/python
import xml.etree.ElementTree
import os.path
from hmgamestate import GameStateInfo
# Example file for parsing
#<HM_GameState>
# <net_entities>
# <e AHI="000" C="SpawnPoint" CC="0" F="0x0" N="ResultViewPlayerSpawn_2" NI="1" ORI="0.00,0.00,0.93,0.37" P="" POS="102.4,83.0,40.9" />
# <e AHI="010" C="... | [
"jake@evansturner.co.uk"
] | jake@evansturner.co.uk |
08dfd545561dcc856b61ad326c14fe994437f260 | bd5582a6316f18615391ce495511fa7d72eff9e4 | /SMS_2017/main/migrations/0001_initial.py | 896a4cf0138d718d53b99e8e2fb725a9e3c11627 | [] | no_license | anirudhk686/SMS_2017 | 026e7d2451a73c7ca11bf0134c1cea3d8ed8e313 | 4bb2a98a65373a196f86796631cb8d8750e16fe3 | refs/heads/master | 2021-01-15T10:41:57.869485 | 2017-08-07T15:23:23 | 2017-08-07T15:23:23 | 99,592,276 | 1 | 0 | null | 2017-08-07T15:24:45 | 2017-08-07T15:24:45 | null | UTF-8 | Python | false | false | 753 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-21 11:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Teamin... | [
"anirudhk686@gmail.com"
] | anirudhk686@gmail.com |
a26e3688d0b024a6b2a0c96c2de2b79ce13fe12c | 5d1e43c40b78d55cb9ff9a191f02bbe15991b54a | /assignment2/cs231n/datasets/.env/bin/cygdb | 6b6f385c1e113c70275684a7e8e46bd7a6248d0b | [] | no_license | nicky4/CS231N | a70b31b013e4d2ad5f3d2b1dc6e8ac6b467ea698 | bee27e32596d75306870621a11c8f11a009358bc | refs/heads/master | 2021-01-10T06:22:41.800077 | 2016-02-06T10:01:00 | 2016-02-06T10:01:00 | 51,063,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | #!/Users/nic/Documents/Nic/Work/Winter2016/CS231N/assignment2/cs231n/datasets/.env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from Cython.Debugger.Cygdb import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"nic.zhang4@gmail.com"
] | nic.zhang4@gmail.com | |
5dd6e1266ba6e7a680ca730a91f43ac4d55d7227 | 7146e1722d6055199f40df2c6bb4c403ce1a617c | /utils.py | c0fa87367f43127983d208df232a0d3c98058f41 | [
"MIT"
] | permissive | kingster996/Web2Executable | 6baca3f3319811ad37542d132c846f60db356401 | 5486419a9f585db66551e242346668119e93b1d2 | refs/heads/master | 2020-05-20T05:56:03.124977 | 2018-02-12T03:08:53 | 2018-02-12T03:08:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,297 | py | """Utility functions for Web2Executable
This module holds utility functions that are useful to both the command line
and GUI modules, but aren't related to either module.
"""
from __future__ import print_function
import os
import zipfile
import io
import platform
import urllib.request as request
import tempfile
import... | [
"jyapayne@gmail.com"
] | jyapayne@gmail.com |
c7ca295ae615e470f14bce12ffeb05f9e2443ba5 | 4569d707a4942d3451f3bbcfebaa8011cc5a128d | /tracbibplugin/trunk/tracbib/bibtexparse.py | f91e665f26a36e46d8463dea2875e15ae25048b4 | [] | no_license | woochica/trachacks | 28749b924c897747faa411876a3739edaed4cff4 | 4fcd4aeba81d734654f5d9ec524218b91d54a0e1 | refs/heads/master | 2021-05-30T02:27:50.209657 | 2013-05-24T17:31:23 | 2013-05-24T17:31:23 | 13,418,837 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 21,101 | py | #!/usr/bin/env python
"""
tracbib/bibtexparser.py
Copyright (C) 2011 Roman Fenkhuber
Tracbib is a trac plugin hosted on trac-hacks.org. It brings support for
citing from bibtex files in the Trac wiki from different sources.
This File mostly bases on the version offered by Vidar Bronken Gundersen
and Sara Spre... | [
"Amfortas@7322e99d-02ea-0310-aa39-e9a107903beb"
] | Amfortas@7322e99d-02ea-0310-aa39-e9a107903beb |
c71741e43596ace6c69363a7cdcdabca3bb45e03 | 1625b7bb8b04fba0803015da581f4baf8a16bf13 | /apps/front/models.py | daf46503cc180bd8c2e854a814b6f75cb8e0724c | [
"Apache-2.0"
] | permissive | liuxianshengqwertyuiop/index | 0199ca2224652e51f9709d0783a189707df942a4 | 17d5ae1d44a9c4ba41cf7983e9cf5a3c43cdd927 | refs/heads/master | 2020-03-29T08:45:21.614908 | 2018-10-08T10:51:17 | 2018-10-08T10:51:17 | 149,726,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,534 | py |
from ext import db
import shortuuid
import datetime
from enum import Enum
from werkzeug.security import generate_password_hash,check_password_hash
# 0 1 2 3
class GenderEnum(Enum) :
MALE = 1
FEMALE = 2
SECRET = 3
UNKNOW = 4
class FrontUser(db.Model):
__tablename__ = "fr... | [
"43464705+liuxianshengqwertyuiop@users.noreply.github.com"
] | 43464705+liuxianshengqwertyuiop@users.noreply.github.com |
5e3cd93cb6a1a2db496f515ca70cfe22984f79b7 | 74dbd8a17c21b4a31672936360726485430869fe | /scripts/travel_gobear.py | 37984af8e7102bcd5f2c6f03ed7015cc3071830f | [] | no_license | vanthuannguyen/travel_insurance_release | 574f627d463d1fede5bf636b16edbec6a56441ac | 15b8d7b001bc10070bb5b237451a5866dc7a4d0b | refs/heads/master | 2020-04-29T01:01:50.195387 | 2019-03-15T02:20:35 | 2019-03-15T02:20:35 | 175,716,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,511 | py | # -*- coding: utf-8 -*-
import time, os
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as ec
from selenium.common.exceptions import *
from logging import getLogger
logger = get... | [
"nvthuan154@gmail.com"
] | nvthuan154@gmail.com |
bbffa112789032a599ec62a8bd35a62ca1b97de2 | af06ad698af6c23efa32e48e09d151170cb34bb8 | /Semester_1/InstantHacking/InstantHacking5.py | e6dda8d16f0b3ac31f53091f7cdbb83ed36822df | [] | no_license | lxndrblz/DHBW-Programmierung | 5581ab501a3aba730ecc8c2d70f5714ca952094e | 316767563b0dfbce457e904d283b76f06cfc114f | refs/heads/master | 2020-12-24T12:32:59.666056 | 2017-06-06T10:48:29 | 2017-06-06T10:48:29 | 72,984,385 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | def ganzZahl(nummer):
ganzZahl = 0
while ganzZahl <= nummer:
ganzZahl =ganzZahl+1
ganzZahl=ganzZahl -1
return ganzZahl
nummer = input("Bitte eine Nummer eingeben: ")
#Manuell
print "Der ganzahlige Anteil ist: " + str(ganzZahl(nummer))
#System Funktion
print "Der ganzahlige Anteil ist (system): ... | [
"mail@alexbilz.com"
] | mail@alexbilz.com |
3441df9d520fb3aa1947667ed801fc5194a3f894 | bcf4b09c7569d18a42294c6dbf46dd0545bd0130 | /configs/lunarlander_v2/distillation_dqn.py | 2630a8f47bb17e3c11d8a73f146a671571f31319 | [
"MIT"
] | permissive | SHITIANYU-hue/rl_algorithms | fd1574da612b796f70f48cb9421673083c14858b | 1f73371e2dc9d2193140dcbbf8acc5b61d238b8e | refs/heads/master | 2022-12-22T08:19:40.539389 | 2020-09-25T04:15:13 | 2020-09-25T04:15:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,590 | py | """Config for DQN on LunarLander-v2.
- Author: Kyunghwan Kim
- Contact: kh.kim@medipixel.io
"""
from rl_algorithms.common.helper_functions import identity
agent = dict(
type="DistillationDQN",
hyper_params=dict(
gamma=0.99,
tau=5e-3,
update_starts_from=int(1e4), # openai baselines: in... | [
"noreply@github.com"
] | SHITIANYU-hue.noreply@github.com |
4cdd6c7856a9920371957248d4e87d94942fc11c | 2dd26e031162e75f37ecb1f7dd7f675eeb634c63 | /examples/nlp/token_classification/data/get_libritts_data.py | 86a5d01eb9dcfb99c97bed3a3d07bd5d804fb64c | [
"Apache-2.0"
] | permissive | NVIDIA/NeMo | 1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1 | c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7 | refs/heads/main | 2023-08-21T15:28:04.447838 | 2023-08-21T00:49:36 | 2023-08-21T00:49:36 | 200,722,670 | 7,957 | 1,986 | Apache-2.0 | 2023-09-14T18:49:54 | 2019-08-05T20:16:42 | Python | UTF-8 | Python | false | false | 4,822 | py | # Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. 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 requ... | [
"noreply@github.com"
] | NVIDIA.noreply@github.com |
31b431fe415810691d171a52f289ac961c0fb559 | 29d79d1630fd09889f75c52c9c3f5a6f05599048 | /evennia/evennia/server/portal/mssp.py | 5442ccc32082bfe6643573f186da034312e69c21 | [
"BSD-3-Clause"
] | permissive | Descyndis/mud | 103584ed102f18acd1108b1c3a5d982fb676c589 | 87aebba215465e9deef1c24a3b222865cdf8e5e1 | refs/heads/master | 2022-12-27T21:19:56.287387 | 2019-04-15T03:34:40 | 2019-04-15T03:34:40 | 181,402,703 | 0 | 1 | null | 2022-12-17T23:35:55 | 2019-04-15T03:04:16 | Python | UTF-8 | Python | false | false | 6,434 | py | """
MSSP - Mud Server Status Protocol
This implements the MSSP telnet protocol as per
http://tintin.sourceforge.net/mssp/. MSSP allows web portals and
listings to have their crawlers find the mud and automatically
extract relevant information about it, such as genre, how many
active players and so on.
"""
from bui... | [
"elodis.descyndis@gmail.com"
] | elodis.descyndis@gmail.com |
230be5fdf1999d9c2dac6c255a85f6a123d9ef50 | a3f92620614de57abd0c517f2681a33e67cead5d | /main.py | b4134db5e9926c510bf87f8d65b98c0de8d927ab | [] | no_license | Abhinav-Chauhan1/Jarvis | 598ecb2bdc02bdf7ced56b13e334876473b43ed4 | da6608132a7b13a577d172872ebb32dfbe1ea71d | refs/heads/main | 2023-02-14T23:57:18.701170 | 2021-01-03T14:15:50 | 2021-01-03T14:15:50 | 321,596,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,204 | py | import pyttsx3 # pip install pyttsx3
import speech_recognition as sr # pip install speechRecognition
import datetime
import wikipedia # pip install wikipedia
import webbrowser
import os
import smtplib
import pywhatkit
import pyjokes # pip install pyjokes
engine = pyttsx3.init('sapi5')
voices = engine.ge... | [
"noreply@github.com"
] | Abhinav-Chauhan1.noreply@github.com |
6d2800c68e6aa1f895b7a76a664d5c8dcfbf3195 | 5c00b0626b4ec2bc428e565c97b4afc355198cc4 | /torchsim/core/eval/doc_generator/document.py | 5c40c8ca769c494edd4bb17a30a8e9a12773a360 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | andreofner/torchsim | 8cff778a324d4f7dc040f11a12d0dc8cd66375b7 | 81d72b82ec96948c26d292d709f18c9c77a17ba4 | refs/heads/master | 2021-10-24T05:25:33.740521 | 2019-03-22T10:20:00 | 2019-03-22T10:20:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,501 | py | from torchsim.core.eval.doc_generator.element import XmlElement
from typing import List, Any, Iterable, Dict, Optional
class Document:
"""An HTML document used to record experiment output."""
_doc_header: str
_html: XmlElement
_body: XmlElement
_elements: List[XmlElement]
def __init__(self):
... | [
"jan.sinkora@goodai.com"
] | jan.sinkora@goodai.com |
fc2d99d99f3a268a0529bac950ee9a1e8e1cafea | 43a80ed4a70bb71285790766251e4ae7d8807126 | /slicing.py | de257e7552df0a134a94b1c07d0a42a18cda50f2 | [] | no_license | crisuvas/AdvancedTopics | 677ebca8625890ae114f26ec1fecefa858637061 | 92b96cf7ebd35f2db2b010f633222ae05d7ce99e | refs/heads/master | 2020-04-07T09:37:13.983711 | 2018-11-19T16:46:42 | 2018-11-19T16:46:42 | 158,259,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | to_21 = list(range(1, 22))
odd = to_21[::2]
middle_third = to_21[7:14:1]
print(odd)
print(middle_third)
| [
"noreply@github.com"
] | crisuvas.noreply@github.com |
0beff6e4958a0376b2e17d074c1ec6db700ca442 | 3708088db561212ca57af6f22b273fc24e7de538 | /LiDarAnalysis/LiDar_DemBasedClassification_FB_part0f3basins2.py | b382eab781030db0744a14418415d4e859bb331f | [] | no_license | hhs732/chapter2 | 5310ed5975239c19f8be85194dec747c8872ee9a | d6872b39f82f0c4e2f70f4a58933bfeba741e141 | refs/heads/master | 2020-05-15T20:19:31.768295 | 2020-02-20T23:27:09 | 2020-02-20T23:27:09 | 182,478,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,107 | py | import laspy as ls
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from osgeo import gdal, ogr, osr
from mpl_toolkits.mplot3d import Axes3D
import csv
import os
class K_Means:
def __init__(self, numOfClusters=2, init_centroids=None):
self.numOfClusters = numOfClusters
self.ce... | [
"safa.hamideh@gmail.com"
] | safa.hamideh@gmail.com |
d421d8a6cb77af09a0b88d475ce0a1924f8cbbd4 | 5f0c1597fc4a31e4b5e57013a36d7eb946478f00 | /setup.py | 59aee57af603496aeb774fce64a9976d2a05a0db | [] | no_license | g-delrieu/final_project | 7d8b0614fe7a0064452aa8873aa260603a8ab1bf | b51c6d0954cf7ca28c057f235b871f6da29bc341 | refs/heads/master | 2022-12-04T13:10:58.053975 | 2020-08-17T13:21:08 | 2020-08-17T13:21:08 | 288,180,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | from setuptools import find_packages
from setuptools import setup
with open('requirements.txt') as f:
content = f.readlines()
requirements = [x.strip() for x in content if 'git+' not in x]
setup(name='final_project',
version="1.0",
description="Project Description",
packages=find_packages(),
... | [
"georges.delrieu@laposte.net"
] | georges.delrieu@laposte.net |
fc4c0d1db4eaeead8e1eb8cff28e33ab6b3f4f39 | 89ac4818b73dcc84687cbd83c45f403a79cc8f2c | /profile_dao.py | 50b09d807f1b5af48c2efc1d019ca246b00d4377 | [] | no_license | thedanielzhang/quarantine-profile-service | 1939f8a3072b9cc01b544e42f6665eb3e562e76c | 6fb582063ca7892c3dc8ecca3acc884fb6bf8dcf | refs/heads/master | 2021-05-23T14:16:10.434475 | 2020-04-05T23:57:28 | 2020-04-05T23:57:28 | 253,333,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | from flask_restful import Resource, fields, marshal_with
class ProfileDao(object):
def __init__(self, user_id, name):
self.user_id = user_id
self.name = name | [
"daniel.zhang@berkeley.edu"
] | daniel.zhang@berkeley.edu |
ddf0c274cf4d14eafea505c4824a1e8f29fbb4e7 | 9ae3f2c497935b0e7733eef7000e630c86ea7afd | /src/EmailClient.py | 4bdf3501d311fce584300383a5e3f173a6231372 | [] | no_license | bearhockey/tyrra | 0e25af719a1ff9e542b99391f711c73a6859ec83 | 7877c9551909e5e635501dd4e8eadde6a1e94160 | refs/heads/master | 2021-01-17T14:30:54.732060 | 2018-08-01T16:53:22 | 2018-08-01T16:53:22 | 44,580,223 | 0 | 0 | null | 2018-08-01T16:53:23 | 2015-10-20T03:38:03 | Python | UTF-8 | Python | false | false | 1,921 | py | import pygame
import Color
from src.components.text.TextBox import TextBox
class EmailClient(object):
def __init__(self):
self.emails = []
class Email(object):
def __init__(self, screen_width, screen_height, subject=None, message=None, font=None, small_font=None):
self.big_font_size = 24
... | [
"bobmanworld@yahoo.com"
] | bobmanworld@yahoo.com |
85bd61efaca702a1523de934ab4d8f65ceca6037 | 24d97f3af69d9664b5555aeb81e37ba7aa833690 | /utility_functions.py | 4f4b03949064d713aaa38468da7cb80aeb385e45 | [
"MIT"
] | permissive | Filippo95/SensorNetwork | 579c4fdf86ba554392feb6eed8eaa13d69eb5108 | f5129aefd6e12d078627628556ba666eb6aac67e | refs/heads/main | 2023-06-08T20:05:53.922402 | 2021-06-25T11:12:07 | 2021-06-25T11:12:07 | 369,548,450 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,637 | py | import os
import sys
import pprint
from math import sin, cos, sqrt, atan2, radians
from deprecated import deprecated
# classe di supporto per controllare la quantità
# di output stampato a video
class Verbosity:
def __init__(self, quiet, verbose, more_verbose):
self.quiet = quiet
self.verbose = ve... | [
"bettoide@gmail.com"
] | bettoide@gmail.com |
6c05152ea75bc93635a3d36a0bafa88e0bdf729c | 73921d824c55cc976a6d59b1fe3353760f27386f | /json2yaml.py | 7e5250f6ebe03d550fa6b385580e637cd5aa046e | [] | no_license | mocanug/yq | eb00771df013c8cddd6bd604389628d5900a44c8 | 4edde41062fb4b6a3a06add0820027e43572d8bf | refs/heads/master | 2021-06-17T12:09:48.620767 | 2019-05-30T05:10:05 | 2019-05-30T06:18:04 | 189,212,510 | 1 | 0 | null | 2021-03-25T22:40:02 | 2019-05-29T11:30:30 | Shell | UTF-8 | Python | false | false | 506 | py | #!/usr/bin/env python3
import sys
import json
import yaml
def main():
std_input = ""
while True:
try:
line = input()
except EOFError:
break
std_input += line
try:
json_in = json.loads(std_input)
print(yaml.dump(json_in))
except json.JSO... | [
"mocanu.georgel@gmail.com"
] | mocanu.georgel@gmail.com |
3fc4ede212e38d6330eaee78fa49f2c2513c49e1 | 27705074a8125aa8379663d4b57621ab9fe41da0 | /DEA_2nd_order_stats_tas.py | 756463ccd099e85b472f997b715578e7c379e3e4 | [] | no_license | taslandcover/DEA_testing | 98572af682d50b3b59eabab1ae53b2b61d66be9d | 19d9526e8d7a9327ddbe7fa2d21c42b03bede135 | refs/heads/master | 2022-05-05T20:41:35.833716 | 2022-04-11T04:13:42 | 2022-04-11T04:13:42 | 153,358,933 | 2 | 0 | null | 2021-10-21T22:23:02 | 2018-10-16T21:51:33 | Jupyter Notebook | UTF-8 | Python | false | false | 2,914 | py | import warnings; warnings.simplefilter('ignore')
import fnmatch
import os
import pandas as pd
import geopandas as gpd
from datacube_stats.statistics import GeoMedian
from datacube.helpers import ga_pq_fuser
from datacube.storage import masking
from datacube.helpers import write_geotiff
import xarray as xr
#get the D... | [
"noreply@github.com"
] | taslandcover.noreply@github.com |
aa0dfa44d4fa20c94bc9ea9a88d7d006a8ea3f3e | 99ba551645dc9beed36f0478b396977c50c3e7ef | /leetcode-vscode/3.无重复字符的最长子串.py | 96731b4198c1e46ad3c2adcb2621ff3ca7a1600c | [] | no_license | wulinlw/leetcode_cn | 57381b35d128fb3dad027208935d3de3391abfd0 | b0f498ebe84e46b7e17e94759dd462891dcc8f85 | refs/heads/master | 2021-08-09T17:26:45.688513 | 2021-07-15T14:38:30 | 2021-07-15T14:38:30 | 134,419,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,565 | py | #
# @lc app=leetcode.cn id=3 lang=python3
#
# [3] 无重复字符的最长子串
#
# https://leetcode-cn.com/problems/longest-substring-without-repeating-characters/description/
#
# algorithms
# Medium (33.08%)
# Likes: 3551
# Dislikes: 0
# Total Accepted: 455.9K
# Total Submissions: 1.3M
# Testcase Example: '"abcabcbb"'
#
# 给定一个字符... | [
"wulinlw@gmail.com"
] | wulinlw@gmail.com |
ff2ab21a6816a602b9b8428959d31059be5f74ce | 48ca4bbdc231e02c7c107bdcff2110e829674b8b | /fishserve/migrations/0004_auto_20170919_0117.py | bf0a64bbce168fafae3fb30a2157b353703f2b9a | [] | no_license | fisherieslogistics/py3_django_reporting_rest_api | a42b77761568e991ce15776b0a0fb675ed15be15 | 26cacc84ecc0626dcdba5aa06b3fcc8490b08775 | refs/heads/master | 2022-12-11T00:55:36.160647 | 2018-07-09T05:56:39 | 2018-07-09T05:56:39 | 100,552,776 | 0 | 0 | null | 2022-05-25T00:29:36 | 2017-08-17T02:29:33 | Python | UTF-8 | Python | false | false | 473 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-19 01:17
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('fishserve', '0003_auto_20170918_2319'),
]
operations = [
migrations.AlterFi... | [
"30398335+martin-fll@users.noreply.github.com"
] | 30398335+martin-fll@users.noreply.github.com |
3f0f76bb849e5dab384a6de2abf6d49e8355b2b8 | 4eecb0ccaaf0ec865d75a0b70d7afcb9e1824543 | /Python/Analysis/PID.py | 637b937c57842c52d0d6b1b9a5de3f1e497ccd6c | [
"Apache-2.0"
] | permissive | garethnisbet/T-BOTS | 8a82c15cd248610b82b7f4a77f83dec7dcac797a | 60fdb85faefffcbb2314f74fdd19b81f37313c8f | refs/heads/master | 2023-02-07T06:32:22.962540 | 2023-02-05T11:30:59 | 2023-02-05T11:30:59 | 136,524,216 | 27 | 10 | null | 2020-05-10T11:38:52 | 2018-06-07T19:52:32 | Python | UTF-8 | Python | false | false | 1,673 | py | import numpy as np
import matplotlib.pyplot as plt
plt.ion()
################## Functions #########################
def integrate(setpoint, Ki, ydata, dt):
integ = np.cumsum(Ki*(setpoint-ydata)*dt)
return integ
def derivative(setpoint, Kd, ydata, dt):
deriv = Kd*((setpoint-ydata[:-1])-(setpoint-ydata... | [
"garethnisbet@gmail.com"
] | garethnisbet@gmail.com |
07909fdf081f870cae5483021ef5489b39e4d9f9 | 0fc6ae6e50ce9125d67b0d5cb526ecf816e1d8f5 | /department-app/views/__init__.py | 889ce0f3e11b273e20442d230b9b1fe31d8d2076 | [] | no_license | Polina-Prakhova/Final-Project | 3fa39dbb1e70e8f3a730a45555286aef81c7eaa7 | 866f42d741dc33985619db92ca63fc7db71d725f | refs/heads/main | 2023-02-23T23:07:49.165458 | 2021-01-25T14:23:25 | 2021-01-25T14:23:25 | 312,890,102 | 0 | 0 | null | 2020-12-10T20:03:33 | 2020-11-14T19:46:31 | Python | UTF-8 | Python | false | false | 276 | py | """ Creating Blueprints for views. """
from flask import Blueprint
TEMPLATE_FOLDER = 'templates'
employee_page = Blueprint(
'employee', __name__, template_folder=TEMPLATE_FOLDER)
department_page = Blueprint(
'department', __name__, template_folder=TEMPLATE_FOLDER)
| [
"polinaprakhova@gmail.com"
] | polinaprakhova@gmail.com |
82742f8a5aa21fc09608fb3003d59f346ff7acf6 | 09d96841ed10eb30a8ed8ec3c45af693c5f0d3da | /PyPoll/main.py | 6654d2f2fc0bf5b66ce517270213b235280e86f8 | [] | no_license | Shandilya/Python-Challenge | a0f9bc713aa005c75929bfbb1655c71ba3d1cab8 | 117b42cc2405570458127cf9aa8d59a6961f1e37 | refs/heads/master | 2020-03-22T20:23:23.194864 | 2018-11-26T17:54:52 | 2018-11-26T17:54:52 | 140,595,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,406 | py | #import dependicies
import os
import csv
import sys
poll_data_csv = os.path.join("C:/Users/Deepti/washu/WASHSTL201806DATA4-Class-Repository-DATA/Week 3 - Python/Homework/PyPoll/Resources","election_data.csv")
# open and read csv commands
with open(poll_data_csv, newline ="") as electiondatacsv:
csvreader = csv.... | [
"deeptis.shandilya@gmail.com"
] | deeptis.shandilya@gmail.com |
437818b6f7b3ef1a207bae3f05b3169e8504b5f4 | 86ac26428d84993ce6cd09770f99ed4f05aa0001 | /excel_read.py | f687e135a63f8c828bd29c20396bf7e2c77cbcb5 | [] | no_license | sha1painkiller/excel-extract | 4dff4246936083b5c6716aaf0386087bb7384745 | c01483c42374bab00198208b976f4c0f0eaca7b7 | refs/heads/master | 2021-04-26T13:14:37.546729 | 2017-02-03T05:15:17 | 2017-02-03T05:15:17 | 77,613,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,958 | py | # Excel (xlsx) information retrieval
# (c) 2016, Burt Lien <burt.lien@gmail.com>
#
# used to generate a report for specific topic
import sys
import pandas as pd
#import numpy as np
def excel_find_relevant(ef, kw, complete):
df = pd.read_excel(ef, header=None, parse_cols="B:H", names=['ID','Desc','Project','Owner'... | [
"burt.lien@gmail.com"
] | burt.lien@gmail.com |
a76dd791d73a7a5c02e78172d5512eb1b90c0ba3 | 734698c9f0f26c323da62f25b4c8c99427efb534 | /ATM.py | 38a6612f78c09f7b5a05395522a21051ffe764dd | [] | no_license | yusuf17-10/C100Pro | f794dd540b85e3df7f37138f441e2a2e931faca4 | 0dc874f0ce70986d83320e2a1811ca59d2ee697b | refs/heads/main | 2023-06-24T14:25:46.939563 | 2021-07-23T15:08:00 | 2021-07-23T15:08:00 | 388,840,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | class ATM(object):
def __init__(self,cardnumber,pin):
self.cardnumber = cardnumber
self.pin = pin
def balanceenqiury(self):
print("Your Balance Is :$50")
def cashwithdrawal(self,amount):
new_amount = 100-amount
print("You Withdrawed: "+str(amount) + "Y... | [
"noreply@github.com"
] | yusuf17-10.noreply@github.com |
1192e617df7a4aa0c398c5b2ccc03bf74536c2c1 | c31713418c56a386b4911ff628ea5914b67dad03 | /zootropolis/wsgi.py | be033be94d6635cea18e8d652df2a5161c92eda9 | [] | no_license | Code-Institute-Submissions/zootropolis-stars | 348bfbb1cf4853d6e1be2d74ba8cc913c05d793d | d4839645ece69112f44f7c5e9a95dc4a46a939fb | refs/heads/master | 2023-02-27T02:54:41.131894 | 2021-02-05T21:14:13 | 2021-02-05T21:14:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for zootropolis 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/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"emal_fiza@hotmail.com"
] | emal_fiza@hotmail.com |
ee70d6fe255fa158a1c716a32c09f4a712128c92 | 9d04fa366ba7b7ab7a5bca38058f1a731af61c0b | /giris_app/urls.py | eba2c9fabd5fb7f963c418339804f23cf132dd70 | [] | no_license | ayasargithub/unv_yerles | d2bbcd03af7013c928bfd3444b5f533d64fc93df | aa468886cc6a5034c8e1d83e73b19686733db11e | refs/heads/master | 2022-09-21T10:51:05.742660 | 2020-05-31T21:36:35 | 2020-05-31T21:36:35 | 265,931,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | from django.urls import path, include
from . import views
from django.contrib import admin
urlpatterns = [
path('',views.index, name="index"),
path('unv_yerles_giris/',views.unv_yerles_giris, name="unv_yerles_giris"),
path('unv_yerles_giris/',views.unv_yerles_giris, name="unv_yerles_giris"),
]
| [
"ayse.yasar.iu@gmail.com"
] | ayse.yasar.iu@gmail.com |
d50a3d5191673cef0a00d5534f2e869693d871d5 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/SOLOv2/mmdet/__init__.py | eb5cc9b4489898143d3dc5835255d73f4a3d6927 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 677 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the BSD 3-Clause License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://opensource.org/licenses/BSD-3-Clause
#
# Unless required by applicable law or agreed to in ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
d12991a835cebea5697ad448c30115bb551da7b1 | cd04a80acfeb7c7133d44b264af4ed6b5b71838d | /resource/lib/python2.7/site-packages/Crypto/PublicKey/ElGamal.py | c15e577a5a53265f99daf84661d6a8877825a697 | [
"MIT"
] | permissive | claudiopastorini/geofire-python | d443eb918cce7da556b66d820b7a0778be961676 | 274e1b1d733a1158e4f36de40f0349dbc1ff6c34 | refs/heads/master | 2023-08-02T18:45:16.465099 | 2021-10-05T18:53:48 | 2021-10-05T18:53:48 | 413,938,148 | 0 | 0 | MIT | 2021-10-05T18:53:49 | 2021-10-05T18:37:49 | Python | UTF-8 | Python | false | false | 11,681 | py | #
# ElGamal.py : ElGamal encryption/decryption and signatures
#
# Part of the Python Cryptography Toolkit
#
# Originally written by: A.M. Kuchling
#
# ===================================================================
# The contents of this file are dedicated to the public domain. To
# the extent that dedication ... | [
"ininex@umich.edu"
] | ininex@umich.edu |
ee5342e80feb8c88b5d41d519851dca3b2602f4a | bde24afd6af173d489484b6a0677bd1ec12a320e | /src/msds510/util.py | e6c7b73e681aaf84646164cf1c9518dadc6c9288 | [] | no_license | Pandelov/msds510 | dd209a207c9d9cedf9969341d6ad90ae7639666a | 7603d0e52b3a4d6b15dc92dc8271d6832054221d | refs/heads/master | 2020-03-12T08:16:32.478483 | 2018-06-04T02:27:40 | 2018-06-04T02:27:40 | 130,524,085 | 0 | 0 | null | 2018-06-04T02:27:41 | 2018-04-22T01:06:14 | Python | UTF-8 | Python | false | false | 3,927 | py | from datetime import date, datetime
import re
import csv
def get_month(dateString):
months = ["jan", "feb", "mar", "apr", "may", "jun",
"jul", "aug", "sep", "oct", "nov", "dec"]
for i in range(0, len(months)):
if months[i] in dateString.lower():
return i + 1
return ''
... | [
"spandelov@my.bellevue.edu"
] | spandelov@my.bellevue.edu |
ed998aa5a580d6c24b8a4ee855914be86bd5091f | 888830190c874f666ff4bc49d0400951cdefface | /tests/tests_measurement.py | f9cfc5654b291d3e7fe3b38bbdb6bcb7d3314ef2 | [] | no_license | cogeorg/abm_template | 8b5e9d6ba076382b6d524a104ebd0dfcf0ade93b | b09cde92388ce9de0d5ff22f17260cce784befd9 | refs/heads/master | 2020-12-29T02:32:32.264861 | 2017-04-10T17:02:11 | 2017-04-10T17:02:11 | 45,737,598 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 43,586 | py | #!/usr/bin/env python
# [SublimeLinter pep8-max-line-length:150]
# -*- coding: utf-8 -*-
"""
black_rhino is a multi-agent simulator for financial network analysis
Copyright (C) 2016 Co-Pierre Georg (co-pierre.georg@keble.ox.ac.uk)
Pawel Fiedor (pawel@fiedor.eu)
This program is free software: you can redistribute it a... | [
"pawel@fiedor.eu"
] | pawel@fiedor.eu |
f10623356e15cb697f8b774d563e58a69ae6752b | 1442105981c685be628983823d8b0d60205dda49 | /src/transformers/models/wav2vec2/modeling_wav2vec2.py | ba151a8478aa334ec08d457ef2d9a542f498fc27 | [
"Apache-2.0"
] | permissive | ArneBinder/transformers | 5154e5989fe69b785106857028e91c296ae78c3f | ddaafd78fb9c98d4f7b5009fb1998deff4c3d6f1 | refs/heads/master | 2021-07-11T03:49:48.113732 | 2021-02-08T16:58:02 | 2021-02-08T16:58:02 | 232,599,957 | 0 | 0 | Apache-2.0 | 2020-01-08T15:55:00 | 2020-01-08T15:54:59 | null | UTF-8 | Python | false | false | 29,977 | py | # coding=utf-8
# Copyright 2021 The Fairseq Authors and the HuggingFace Inc. team. 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/... | [
"noreply@github.com"
] | ArneBinder.noreply@github.com |
b6834a2efa1f82a1a95bd21b0c7b1455a6a64ed2 | 2b4de876a79d405540890375925dfa032e492fa7 | /Packages/SplitEbinMetric.py | 865796fcef7ebcd32af8b438f90d7d337aba77fd | [] | no_license | aarentai/Metric-Matching-3D | 2e4c5f06b5b3713ee4cce44cfe4ccb7c3b448a8d | 0f43389584fb7f5d6e9fef9fb0711c5b495b1ad8 | refs/heads/main | 2023-05-26T16:48:12.314933 | 2021-03-20T17:59:16 | 2021-03-20T17:59:16 | 349,301,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,395 | py | import numpy as np
import torch
# from GeoPlot import *
from scipy.linalg import expm, logm
import warnings
import SimpleITK as sitk
import matplotlib.pyplot as plt
from IPython.core.debugger import set_trace
import scipy
# refer to martin-bauer-GSEVP[5852].pdf Section 3 Relevant properties of M and K and the matlab ... | [
"hdai@cibcgpu1.sci.utah.edu"
] | hdai@cibcgpu1.sci.utah.edu |
44b3a1fc8afd6f521d75ab0c25b1a1169eab1245 | bcb8337b488f6acb91b700a2312a5b2018855413 | /federatedml/logistic_regression/hetero_logistic_regression/__init__.py | 01fda0015f92697629eb11e65fe48dd613d46685 | [
"Apache-2.0"
] | permissive | freeeedooom/FATE | d17a4729f059cfec6bc07c3142bebcd3b470dc3c | 7bbce8ee037543f280791378681742b40a300b0a | refs/heads/master | 2020-08-19T12:15:22.517131 | 2019-10-17T07:09:22 | 2019-10-17T07:09:22 | 215,918,890 | 1 | 0 | Apache-2.0 | 2019-10-18T01:45:43 | 2019-10-18T01:45:43 | null | UTF-8 | Python | false | false | 985 | py | #
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"jicezeng@gmail.com"
] | jicezeng@gmail.com |
b99ff972f4904f5b43dfec23c0932d4e5973d2b0 | 1aa7b0160e419945bb224df76c3dda26b98ea17a | /kujiuapp/migrations/0003_auto_20190829_2338.py | 8a943eb1e6cbbf0fff5dbf501086a9a47e335c23 | [] | no_license | laosipm/django-kujiuapp | 63261a891d8f15490f0294bb6c999ccc59d21f7d | f71ad2ce45f36f2bbb2b9981db9cc3595533223e | refs/heads/master | 2021-06-13T20:30:05.246476 | 2019-09-08T13:07:26 | 2019-09-08T13:07:26 | 206,112,950 | 0 | 0 | null | 2021-06-10T21:56:12 | 2019-09-03T15:40:17 | CSS | UTF-8 | Python | false | false | 455 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('kujiuapp', '0002_category'),
]
operations = [
migrations.DeleteModel(
name='animetype',
),
migra... | [
"ledongba@163.com"
] | ledongba@163.com |
af249fb2c93c46228f83e0e3c250cac55a83c4b1 | 67d99b4761a5e86408a9e4bac67e48cbe720555c | /fundamental3_tipe_data_dictonary.py | 2cf5a33e663a83a54f9d1b8d5337141c0d5bff3d | [] | no_license | Yuwana-Patriawarman/fundamental-python-2021 | da81f67a4847877c43dc7b08c8dceb5c062352d2 | e3f9bda18685321e74f78211a123bbb27a9c3e62 | refs/heads/main | 2023-06-24T03:47:02.330519 | 2021-07-20T22:59:34 | 2021-07-20T22:59:34 | 386,840,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | """
Tipe data dictionary sekedar menghubungkan KEY dan VALUE
KVP = Key Value Pair
Dictionary = Kamus
"""
from typing import Dict
kamus_eng_in = {"anak": "son", "istri": "wife", "bapak": "father", "ibu": "mother"}
print(kamus_eng_in)
print(kamus_eng_in['bapak'])
print(kamus_eng_in['ibu'])
print("\nData dikirimkan ole... | [
"pyoewono@gmail.com"
] | pyoewono@gmail.com |
5b96bd6940bab8293320a4495a070969a68a6521 | 9391b8caee1a764829ae5c3d23b06a302a1eee3f | /TCPClienteZ.py | 6a57057f5066c7810c3b29627837465a52e82b99 | [] | no_license | vgs2/security2 | 7ca07ea77693adf9898d1fb9b89604a169c5880a | 2b6051db7c64a74da66aaf760aeb290f06251144 | refs/heads/master | 2023-07-27T07:16:21.092621 | 2021-08-22T21:52:08 | 2021-08-22T21:52:08 | 398,400,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | import socket
clientSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
clientSocket.connect((socket.gethostname(),5100))
sentence = input('lowercase sentence:')
clientSocket.send(bytes(sentence, "utf-8"))
modifiedSentence = clientSocket.recv(1024)
print('From Server:', modifiedSentence.decode("utf-8"))
clientSo... | [
"vgs2@cin.ufpe.br"
] | vgs2@cin.ufpe.br |
d5a40ea1e317a34ecf931c8eff9c9d5ae34facb9 | 49e87feb9b716972a636b72a97ee18be0f1f3f0d | /src/oidcservice/oidc/access_token.py | 174d095e1e1c6f8ae0a13df826952f6d34d467c7 | [
"Apache-2.0"
] | permissive | pi-lar/JWTConnect-Python-OidcService | b1d6cb1338861c9d7e771a1a67f4003a81319dab | cfd34fe88300a53f8f3ea748275f6f714c4571ca | refs/heads/master | 2023-03-29T11:17:05.762172 | 2020-10-05T12:57:48 | 2020-10-05T12:57:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,707 | py | import logging
from oidcmsg import oidc
from oidcmsg.oidc import verified_claim_name
from oidcmsg.time_util import time_sans_frac
from oidcservice.oauth2 import access_token
from oidcservice.exception import ParameterError
from oidcservice.oidc import IDT2REG
__author__ = 'Roland Hedberg'
LOGGER = logging.getLogger... | [
"roland@catalogix.se"
] | roland@catalogix.se |
00ed0f98404c2d5528999c3919798c3f8538be63 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02850/s576857061.py | 98f13279c663bc9d8332c53c1eae7af84cfd5d50 | [] | 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 | 1,083 | py | import sys
import itertools
sys.setrecursionlimit(1000000000)
from heapq import heapify,heappop,heappush,heappushpop
import math
import collections
import copy
import bisect
INF = 10**9+7
if __name__ == "__main__":
n = int(input())
edge = [[] for i in range(n)]
side = []
for i in range(n-1):
a... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ec7aeafa8f17df6e88c702453a4a43ad6103af3e | ac952320fd3b5ebc30f981d5400d4f55fae341cd | /animate_diffusion.py | 0f80759a04f7dd1b5429266d86e66d2168ef24c5 | [] | no_license | Lehotzky/finite-difference-3D-diffusion-equation-solver | a15b1713d06af50bfd889e8773df192122d82630 | 1e1bfc2dfcf16be85addd8091991599be92a90de | refs/heads/main | 2023-07-16T21:38:04.033453 | 2021-08-17T17:26:55 | 2021-08-17T17:26:55 | 397,338,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,325 | py | import matplotlib.pyplot as plt
from matplotlib import animation
import numpy as np
class AnimatedDiffusion():
def __init__(self, U, ind_excluded, N_x, N_r, del_x, del_r, del_t, u_max, coord_fixed, n_levels):
N_tot = N_x * N_r ** 2
N_pt = U.shape[1]
U_full = np.zeros((N_tot, N_p... | [
"noreply@github.com"
] | Lehotzky.noreply@github.com |
63a7929a3f1d5347f8cf3419feaaadfb7c8144df | 7d200b5af6a3573e1c72a21bb791fabb5040d04f | /eventex/teste42/apps.py | 14b0b99faca146cc4d35d51eba2beb485de801ee | [] | no_license | lscosta90br/eventex-lc | 38a6bed56bd37d88edbe85d5b6f3fa70ea7b335a | 43bf5edfba257cd7fa1822b0bfaa79321ba48726 | refs/heads/master | 2022-05-13T22:42:41.752411 | 2019-07-12T01:25:47 | 2019-07-12T01:25:47 | 193,165,901 | 0 | 0 | null | 2022-04-22T21:37:39 | 2019-06-21T22:15:30 | CSS | UTF-8 | Python | false | false | 89 | py | from django.apps import AppConfig
class Teste42Config(AppConfig):
name = 'teste42'
| [
"lscosta@gmail.com"
] | lscosta@gmail.com |
edef85a4c9634f236ca7b35ae3b2175b51e69589 | afbf981c90603eedee0e6a997402b09ebc110b16 | /node_modules/node-sass/build/config.gypi | a81f964290d9b272bd8696ea1b5a27f3e0781ca7 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Prakhar19999/Realest_Estate | 67be4254ed3c953685f75c2152ea9148b45109fa | 6dfb1e42dcb474d92fe3435b82893b2ee700a9e2 | refs/heads/main | 2023-06-20T14:29:43.107183 | 2021-07-16T11:29:10 | 2021-07-16T11:29:10 | 386,613,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,049 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"dcheck_al... | [
"prakhar.srivastava19999@gmail.com"
] | prakhar.srivastava19999@gmail.com |
ce417e51519ba96cf01bccb4bb5296821255a68e | b81db9f784ce21aacf57ba246a906aa232b81764 | /reminders/migrations/0002_initial.py | 860581d0102e774b02fa56a7760b99c4118e1afc | [] | no_license | kmvit/prosbi | 51c0b4e88fc645ccad68435d3cf8ad375ebac1f0 | 019b55a77e56fe53e1c524301ae95bf72fd8390c | refs/heads/master | 2021-01-22T13:38:14.056683 | 2014-12-05T18:14:06 | 2014-12-05T18:14:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,164 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Reminder'
db.create_table(u'reminders_reminder', (
... | [
"kmv-it@yandex.ru"
] | kmv-it@yandex.ru |
0730c36f35fd16df8b1036e9c139052096299020 | 698c44c9f0f3238db8b07dbee740c4d5cffd7ea5 | /example_game/bullet.py | 81dadaceedd9c127ae8a7979ceeb557857449015 | [] | no_license | Yashwant94308/games | 9ecffb99050fdb1231c5babda42eb5ef790960f9 | 9440baf1fcc5623fe769e7695a8c074a32e5e4c0 | refs/heads/master | 2022-11-07T03:31:08.314317 | 2020-06-20T06:40:11 | 2020-06-20T06:40:11 | 269,345,513 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | import pygame
from pygame.sprite import Sprite
class Bullet(Sprite):
def __init__(self, eg_settings, screen, virus):
super(Bullet, self).__init__()
self.virus = virus
self.screen = screen
self.screen_rect = screen.get_rect()
self.eg_settings = eg_settings
self.bulle... | [
"yashwant94308@gmail.com"
] | yashwant94308@gmail.com |
f275a8e46539605b5248dd2e21134aed90b5a415 | 34fafe0ce4a28a0b2ace024858868ed030d5e432 | /configs/0HSCParticleProducer_cfg_V3.py | 3e4bd053e6750695ca41b2fd2ae8710826a5de12 | [] | no_license | CMS-HSCP/SUSYBSMAnalysis-HSCP | d40fe64ece600fc0909a2c32eb07b4204784948c | 809271e1dacc98d34992561b5fcb502c01cc1172 | refs/heads/master | 2023-07-25T00:46:38.870643 | 2023-07-11T20:25:12 | 2023-07-11T20:25:12 | 164,119,298 | 3 | 16 | null | 2023-07-11T20:25:14 | 2019-01-04T14:47:05 | Python | UTF-8 | Python | false | false | 6,257 | py | import sys, os
import FWCore.ParameterSet.Config as cms
from FWCore.ParameterSet.VarParsing import VarParsing
options = VarParsing('analysis')
# defaults
options.outputFile = 'HSCP.root'
options.maxEvents = -1 # -1 means all events
options.register('GTAG', '106X_dataRun2_v20',
VarParsing.multiplicity.singleton,
... | [
"noreply@github.com"
] | CMS-HSCP.noreply@github.com |
c10023fbd1c5181e1c360c78de33a3745f8b5d7d | 62fba3c7fe99d29985f12d2915853c4269f5d2fc | /test/functional/p2p_segwit.py | cf89a54b053a9be26881f6c7f0b2417a589464d0 | [
"MIT"
] | permissive | cnccdev/wes_coind | fe88222d5f5ac9f0b91b54d2b97e34700175c912 | a15d64caa24dec050f997fe2031d518ee1d76836 | refs/heads/master | 2020-05-22T23:49:06.733413 | 2019-05-22T01:53:20 | 2019-05-22T01:53:20 | 186,550,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95,628 | py | #!/usr/bin/env python3
# Copyright (c) 2016-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test segwit transactions and blocks on P2P network."""
from binascii import hexlify
import math
import ... | [
"cncc.dev@gmail.com"
] | cncc.dev@gmail.com |
a25af1fae40ebeacc3692e36155f2a30c316c55f | d4e986cae639e4824ea7256fa727f4e8f183c516 | /pys/66.py | 7c7bbf638f50eb0af22813ccc5384703c4898aef | [] | no_license | yinzhuoqun/yzq | bc28410f5a9aee2193fb95679b93ff8133ac0f6d | 972b4b7ec23a6440910ed63f8734c96e01dcc780 | refs/heads/master | 2022-12-20T16:24:28.177467 | 2019-11-12T03:34:38 | 2019-11-12T03:34:38 | 36,655,612 | 0 | 0 | null | 2022-12-08T00:00:20 | 2015-06-01T11:09:22 | Python | UTF-8 | Python | false | false | 1,035 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'yinzhuoqun'
list = [ x for x in range(1,10)]
# print(list)
a=b=c=d=e=f=g=h=i=1
list1=[]
for x in list:
a = x
for x in list:
b=x
for x in list:
c=x
for x in list:
d=x
for x in li... | [
"zhuoqun527@qq.com"
] | zhuoqun527@qq.com |
b9a04280a76f7384059d8027d067c702f2d429fe | 11d5cc15a4f03c51f7875066b1f27eded6fab0e9 | /list/account.py | e1a5325ed5714a56817dc1aedc974fee699e37b5 | [] | no_license | pororobro/phython-oop2 | 512ef39a9831f5b77172cc7c901d33641b7baeb4 | e5e089527782eee08053257d7eaa983a6ef74ea0 | refs/heads/master | 2023-07-13T04:30:12.674657 | 2021-08-15T12:40:36 | 2021-08-15T12:40:36 | 368,100,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,659 | py |
import random
class Account(object):
def __init__(self, holder,account_number, balance):
self.bank = 'SC제일은행'
self.holder = holder
self.balance = balance
self.account_number = account_number
def get_account(self):
return f'은행이름:{self.bank} 예금주:{self.holder} 계좌번호:{se... | [
"pororobro@naver.com"
] | pororobro@naver.com |
adb391fa107985065a1f01441d28fda4de68f385 | 38f507b9b9e492bcdde1680b4eedb154ccf3476f | /anosql/__init__.py | b3f509063dfcd8066945987d0cb31ca7d2af644f | [
"BSD-2-Clause-Views",
"BSD-3-Clause"
] | permissive | rodo/anosql | a5c192f09042297ec9538f4895794ca1b936090c | ba2acc01eff36f0a96f784698917604a3f5b2ff7 | refs/heads/master | 2021-01-15T22:38:41.070581 | 2014-08-31T20:17:08 | 2014-08-31T20:17:08 | 42,585,031 | 1 | 0 | null | 2015-09-16T12:13:21 | 2015-09-16T12:13:20 | null | UTF-8 | Python | false | false | 30 | py | from core import load_queries
| [
"me@honza.ca"
] | me@honza.ca |
4ef41b22b07660f2ff7f21dbf1f9daf9ee65a518 | e88cc7e7379c99efad64fbaa5038aede2d3dcdf7 | /ESCEQ/Equinos/views.py | 8e7532642e0fcd905bef326911be3379fe954a9d | [] | no_license | yricardo79/ESCEQ | 4fffa8c8a359601bf9905d2477962511f5061206 | b3a5a5338e69c6ebf5fc585659def65ae8ac5154 | refs/heads/master | 2023-04-29T08:40:21.434166 | 2021-05-23T20:14:11 | 2021-05-23T20:14:11 | 361,932,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,010 | py | # from django.shortcuts import render_to_response, RequestContext
from django.urls import reverse_lazy
from django.views.generic import CreateView, ListView, UpdateView, DeleteView
from ESCEQ.Equinos.forms import RazaForm, ComportamientoForm, DisciplinaDeportivaForm, EquDiscForm, EquinoForm
from registro.models import... | [
"you@example.com"
] | you@example.com |
e0eee403d172e9aaa4cc79ecd8ddb1a7fcecbbb7 | 43a0980f95d071bd119abdc972b15304fc252c18 | /crypto.py | b8a9b8099eeee3319e522b2c694a3edbfd68c8b6 | [] | no_license | Agnimandur/Red-Crab-Inn-Bot | e7406f12fd108703d5bc14b154ae3b9be4d27a1b | a0401a7b178d7c44c86fc877724f2e91d4dc21f0 | refs/heads/main | 2023-07-16T15:08:05.893963 | 2021-09-04T18:45:41 | 2021-09-04T18:45:41 | 323,823,312 | 8 | 1 | null | 2020-12-31T04:11:22 | 2020-12-23T06:36:47 | Python | UTF-8 | Python | false | false | 9,661 | py | import discord
import math
import time
from datetime import timedelta
from replit import db
from conversion import get_conversion
from conversion import networth
from leaderboard import leaderboard
from leaderboard import leaderboardEmbed
from help import crypto_help
from help import make_embed
AGNIMANDUR = 48258180614... | [
"noreply@github.com"
] | Agnimandur.noreply@github.com |
9a6da703715dae0bf305cbf2fe8f307eb4975295 | 6640a76eb4c224da136da61eebb7f9e71cda21cd | /examples/basic/user/user_pb2.py | 31bc84d87a752dee7438701c146df8293ecd9d43 | [] | no_license | kevindrosendahl/ProtoDB | 47251c4657b940a0adc5476592103c2f39b0c038 | 40e8ad8f61f367e4c863d614b34150b7861c36e8 | refs/heads/master | 2020-04-15T12:43:10.802403 | 2018-12-18T01:02:56 | 2018-12-18T01:02:56 | 67,671,184 | 6 | 0 | null | 2018-10-12T05:39:31 | 2016-09-08T05:25:03 | Rust | UTF-8 | Python | false | true | 3,532 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: user.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflecti... | [
"kevindrosendahl@gmail.com"
] | kevindrosendahl@gmail.com |
01bb1e2e9d8361c3a698196c14c88c08326b0c3a | d2d2b8c217a4cb728c1ce04d545522ee5f3bff19 | /venv/Source/Homework1/Homework1_2.py | c906649f979edcf9199bcdb15bf40a33e95e0229 | [] | no_license | AlspachS/MTH451-Numerical-Methods | ebbddc557fbce011c0faaa984757a4d124f15381 | c7fba58bc70a02d04d1bc4950aa85dea35f4855b | refs/heads/master | 2020-04-06T20:08:54.815992 | 2018-11-15T19:36:51 | 2018-11-15T19:36:51 | 157,762,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | # Problem 1.2:
# Use big O notation to describe the behavior of the function:
# f(θ) = 1 − cos(θ)
# as θ becomes small. Make a table supporting your claim. | [
"steven.alspach@outlook.com"
] | steven.alspach@outlook.com |
dcbc8ff87031215c546183ab94b57b73caba4972 | 8e4ad77c242ad897eda01ba665c33cce83aeeadf | /Solutions/1686.石子游戏-vi.py | 025c16398a936e0f3d6145f6d5e10f041b0f205e | [] | no_license | targeton/LeetCode-cn | b7f4b833a7c79ce18b103b1c06ce53707a1b8c7b | d57c5ff23199c560ce3a0908e25d8aa76bbf2f49 | refs/heads/master | 2021-12-13T22:47:48.071321 | 2021-12-08T07:35:41 | 2021-12-08T07:35:41 | 195,835,667 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,558 | py | #
# @lc app=leetcode.cn id=1686 lang=python3
#
# [1686] 石子游戏 VI
#
# https://leetcode-cn.com/problems/stone-game-vi/description/
#
# algorithms
# Medium (46.30%)
# Likes: 25
# Dislikes: 0
# Total Accepted: 2.2K
# Total Submissions: 4.7K
# Testcase Example: '[1,3]\n[2,1]'
#
# Alice 和 Bob 轮流玩一个游戏,Alice 先手。
#
# 一堆石... | [
"pzhou@mail.ie.ac.cn"
] | pzhou@mail.ie.ac.cn |
0b6d48549906aa14f18cbfda4b5d13d3d04db4f9 | 4ff611caf56aa799ee8aa164a625bb71220ea67c | /forumdb.py | ec9659fad960fc91b993ca0cd77b14976c4c039c | [] | no_license | princekurt/Forum_Server | e844cd11bd89e41db22b85d35102077e27e9916b | e3eb5d980035ae3292f1bf00055e20703796edf8 | refs/heads/master | 2021-01-21T10:38:30.302456 | 2017-05-18T14:57:18 | 2017-05-18T14:57:18 | 91,701,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | # "Database code" for the DB Forum.
import datetime
import psycopg2
import bleach
DBNAME = "forum"
def get_posts():
"""Return all posts from the 'database', most recent first."""
db = psycopg2.connect(database=DBNAME)
c = db.cursor()
c.execute("select content, time from posts order by time desc")
return c... | [
"Kurtanderson234@gmail.com"
] | Kurtanderson234@gmail.com |
d04bfd06874a40c5e9dafedc0dd0cd109be0ef18 | abc6265d1201b6769de5ddffcabe0ba86b25aa1a | /dictonaries.py | 82911d1416c2a144426456dfb4ba0ce38179e4ad | [] | no_license | himanshugotra31/Day_38 | 06f3c34ce5ae976d5a3e395c6e6c66239ae055b8 | dc9713fb8fa6edbd540480dfe698b68a3c5d163a | refs/heads/master | 2023-07-20T22:51:42.324294 | 2021-09-04T08:03:30 | 2021-09-04T08:03:30 | 402,999,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # ages={}
# print(type(ages))
# ages["himanshu"]=22
# ages["sahil"]=23
# ages["virat"]=20
# print(ages)
# print(ages["himanshu"])
# print(ages.keys())
# print(ages.values())
# for t in ages.items():
# print(t)
# print(type(t))
# r=(5,6,7)
# print(type(r))
# print(r)
ages={}
ages=dict()
ages={}
ages={'hi':45, '... | [
"himanshugotra31@gmail.com"
] | himanshugotra31@gmail.com |
bfb3f0286894b88b3901e5811acc574ff7b3c880 | 738f664fa3a749ab61156f996bc53564f9bf5988 | /entity_level_sentiment.py | 3a17f6a5f0b2c9d6f5cf23ad54f6301d590dff6f | [] | no_license | webclinic017/Stock-Prediction-5 | a77d4b20159d15ed097bc371eb29556ace16d5ae | f7cee5f7cbb67e9c1f1b7ba9e7eb712eac000124 | refs/heads/main | 2023-04-25T03:40:56.637510 | 2021-05-06T09:58:10 | 2021-05-06T09:58:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,103 | py | # To add a new cell, type '# %%'
# To add a new markdown cell, type '# %% [markdown]'
# %%
import pandas as pd
from textblob import TextBlob
import re
# %%
articles = pd.read_csv("feeds/articles.csv", index_col=0, parse_dates=["published"])
articles
# %%
# Dictionary contains some banks with all kind of its names
b... | [
"rsarthakgupta@gmail.com"
] | rsarthakgupta@gmail.com |
85ffb2c97dc6bdf86485222b35936034f786c4b5 | c19bcbc98555ef06276f9f0dcffc9ac35942a7c4 | /jc/parsers/upower.py | a659717fc6aa1e6872df753ef485daa2ab7fe47f | [
"MIT"
] | permissive | kellyjonbrazil/jc | 4e81a5421cd20be5965baf375f4a5671c2ef0410 | 4cd721be8595db52b620cc26cd455d95bf56b85b | refs/heads/master | 2023-08-30T09:53:18.284296 | 2023-07-30T17:08:39 | 2023-07-30T17:08:39 | 215,404,927 | 6,278 | 185 | MIT | 2023-09-08T14:52:22 | 2019-10-15T22:04:52 | Python | UTF-8 | Python | false | false | 14,113 | py | """jc - JSON Convert `upower` command output parser
The `updated_epoch` calculated timestamp field is naive. (i.e. based on the
local time of the system the parser is run on)
The `updated_epoch_utc` calculated timestamp field is timezone-aware and is
only available if the timezone field is UTC.
Usage (cli):
$ u... | [
"kellyjonbrazil@gmail.com"
] | kellyjonbrazil@gmail.com |
a01335789376d4ea6ccf0c9557d841c67111b5dd | 3320c8368a663eb8a5519ebd8ccbbe988efc7a20 | /contacts/migrations/0001_initial.py | d7e23c6759d6d454035dbd9b5108d3024d8283e7 | [] | no_license | ineesalmeida/DjangoProject | 55622c8c6fe23641604082af55227c40d0b00450 | b9b7b1792b71ab4079098e1d53f57c9f1af3c491 | refs/heads/master | 2022-12-01T01:00:58.562954 | 2022-01-25T09:32:23 | 2022-01-25T09:32:23 | 214,301,790 | 0 | 0 | null | 2022-11-22T09:47:33 | 2019-10-10T23:12:51 | CSS | UTF-8 | Python | false | false | 989 | py | # Generated by Django 2.2.6 on 2019-10-18 19:14
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
('id', m... | [
"ineesalmeida@gmail.com"
] | ineesalmeida@gmail.com |
b92e8fb0c2f2f42f1afb07d2a15c4a2920349c8c | 9b523a5844de9722fcefa47b25a9577134d712a1 | /producer.py | fe8a760624e0e7c901d1c21ca55f263cb038da95 | [] | no_license | ucakmak02/rabbitmq | 28563c18d8174aaca7a4d16a5b99b8b29f0c8453 | 9bcaebb26c87a0f6d2cbcf7e77ec16f1558ab9ce | refs/heads/master | 2020-04-08T08:01:44.809662 | 2018-11-26T11:54:46 | 2018-11-26T11:54:46 | 159,161,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | import pika
import mysql.connector
connection = mysql.connector.connect(host='localhost',
database='mail_db',
user='root',
password='1234')
connection = pika.BlockingConnection(pika.ConnectionParameters('localhost'))
channel = connect... | [
"u.s.cakmak02@gmail.com"
] | u.s.cakmak02@gmail.com |
480f481173c4a34614549fce5ad5ab1931552caa | 226cd94f3f3b82caf1022e847cb5eaabfaf8ed98 | /Scraps/Python/py_scraps/leetcode/ZigZagLevelOrder.py | 8938b968a7ce2cc6fc86166b556e946958eb8dc5 | [
"MIT"
] | permissive | rajdeepslather/Scraps | 015c49b4f26c5fedbf5500bdd1fd9e366c64f52a | 214729529e3583ab168f36498106a6d3ba2c1a43 | refs/heads/dev | 2023-01-04T18:51:36.464892 | 2022-12-23T04:45:15 | 2022-12-23T04:45:15 | 148,342,773 | 0 | 0 | MIT | 2019-10-28T18:28:54 | 2018-09-11T15:57:06 | Java | UTF-8 | Python | false | false | 995 | py | from typing import List
import collections
# Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Node:
def __init__(self, treeNode, level):
self.treeNode = treeNode
self.level = level
class ... | [
"rajdeepslather@gmail.com"
] | rajdeepslather@gmail.com |
29edb95f18b2c32f7967358a4c9a50bee7f64b2d | 9d1238fb0e4a395d49a7b8ff745f21476c9d9c00 | /framework/Tests/PAS/PAS/DomainAccount/AddDomainAccount/API/test_add_account_without_account_permission.py | 2a99ebeceaeb81c4be8adf69220455c062d7d377 | [] | no_license | jaspalsingh92/TestAutomation-1 | a48ee1d3b73386f1bf8f53328a5b55444238e054 | e631c67255b10f150e0012991fb1474ede904417 | refs/heads/master | 2023-04-18T14:52:08.836221 | 2021-04-07T12:01:07 | 2021-04-07T12:01:07 | 357,175,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,129 | py | from Shared.API.infrastructure import ResourceManager
import logging
import pytest
logger = logging.getLogger("test")
@pytest.mark.api
@pytest.mark.pas
@pytest.mark.pasapi
@pytest.mark.bhavna
def test_add_account_without_add_account_permission(core_session, domain_config_data, create_domain, cleanup_accounts):
"... | [
"singh.jaspal92@gmail.com"
] | singh.jaspal92@gmail.com |
094e22379764b34aafa78ac1a8d8d3f198e1ac03 | f00fc0e009811a33145ab02ed050fe176db5212a | /diccionary.py | e309b80d2267b07c7e56a84e94970deecf7361af | [] | no_license | egarciago/Katas | f664d49c8ee8aa12a4df70fb21cdc46f4c33abe1 | 343900a19c30ce25c66a46b6eb9fc28d14d04a0d | refs/heads/master | 2020-04-11T01:08:47.901151 | 2018-05-12T03:04:07 | 2018-05-12T03:04:07 | 124,316,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | dict1 = {}
dict2 = {'user':'jPerez', 'pass':'132465'}
print dict2
| [
"eliezer.ggz@gmail.com"
] | eliezer.ggz@gmail.com |
ccdbe5086d288f031a86899f2e692f349f629806 | 15e174cd088f78f72a903f661e62e944a7c93908 | /sudoku/sudoku_solver/migrations/0013_auto_20200210_0205.py | 43494dcb62671835f2e5399fec060df26685fc6e | [] | permissive | Sudhir22/python-sudoku-generator-solver | f0fff58a7aeec440e2cb5ce5600ca4052136048f | 7bd61e6e7861aab9fdb8776c9e831ee917e0d16d | refs/heads/master | 2020-11-26T19:27:42.441544 | 2020-09-03T07:02:00 | 2020-09-03T07:02:00 | 229,184,985 | 0 | 0 | MIT | 2019-12-20T03:44:19 | 2019-12-20T03:44:18 | null | UTF-8 | Python | false | false | 1,229 | py | # Generated by Django 3.0.1 on 2020-02-09 15:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sudoku_solver', '0012_auto_20200116_1641'),
]
operations = [
migrations.AddField(
model_name='results',
name='age_2'... | [
"u6415626@cbenet.anu.edu.au"
] | u6415626@cbenet.anu.edu.au |
643e2a7399641fe1b7560dd285c4ac4e48ec7bf1 | 9a5661b2dbc5d1b829211ad8e50ed5764fa8048e | /project/views.py | 3e64214c09a5c28dc7f114a2549f2eadb88684b8 | [] | no_license | khoury-ds-hub/khoury-ds-hub.github.io | 9d8b29132869567e6beac9f23fe86991614acf69 | 15c537df90fb0bf656c085ca2e140785a4f1e2bc | refs/heads/master | 2020-11-24T10:06:30.242639 | 2020-02-11T02:52:28 | 2020-02-11T02:52:28 | 228,099,537 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | from flask import render_template
from app import app, pages
@app.route('/')
def home():
posts = [page for page in pages if 'date' in page.meta]
#Sort pages by date
sorted_posts = sorted(posts, reverse=True,
key=lambda page: page.meta['date'])
return render_template('index.html', pages=sorted_posts)
@app.r... | [
"49109653+stanley-c-yu@users.noreply.github.com"
] | 49109653+stanley-c-yu@users.noreply.github.com |
a16e487551648e699b5ad9047e67dabe3e34480e | 6b69dfaa8688b662f763e8fa8504276102f2559b | /py05.py | 2a4c420fa910984c96f8f34053ad6f00085a1421 | [] | no_license | LightStar0/Python- | a936184bc939933c59f3d2226e5be5cecb43efe9 | 5ebd4195cfc130f8349c9408554fac6c5404bc54 | refs/heads/master | 2020-06-03T20:17:00.407688 | 2019-06-13T07:54:45 | 2019-06-13T07:54:45 | 191,716,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | # -*- coding: utf-8 -*-
x=5
x='test' # 字串 ' " 皆可
x="test"
print(x)
a=49/3
print(a)
print(type(a))
a = int(a) #轉整數
print(a)
print(type(a))
print(id(a)) #
del a # 刪除 a 變數
#print(a)
x=int(2.5)
print(x/3)
print(x)
print("x=%.15f"%(x/3))
print("x=%.5f"%(x))
| [
"noreply@github.com"
] | LightStar0.noreply@github.com |
427be4b57c3258d6b6614e3d6dbca933bc2c194d | 6341ef1974236ca2bfe6c6044a7c8c34bba4632f | /dvhb_hybrid/user_action_log/amodels.py | 5ac283f8c93d91def7f90a6d2125f503bd85636b | [
"MIT"
] | permissive | dvhb/dvhb-hybrid | f1db73fa8eeb2a5d3d4bcb9aa2979e8bff7a99ce | 643a45976b33eb914a86a691dba510cb8e508ec9 | refs/heads/master | 2023-01-23T04:37:41.793953 | 2022-01-25T14:15:07 | 2022-01-25T14:15:07 | 80,511,300 | 28 | 17 | MIT | 2023-01-06T11:01:13 | 2017-01-31T10:37:14 | Python | UTF-8 | Python | false | false | 326 | py | from .base_amodels import BaseUserActionLogEntry
from . import models
class UserActionLogEntry(BaseUserActionLogEntry):
"""
Concrete action log entry async model class to be used when utilizing hybrid's user_action_log app
"""
table = BaseUserActionLogEntry.get_table_from_django(models.UserActionLogE... | [
"aamalev@users.noreply.github.com"
] | aamalev@users.noreply.github.com |
71cd0a8b51e18f7eb4769731a658d93eac652ed2 | 06d41f4c61f7bd71605a9d6cd9c5e66a8e2be23c | /music/admin.py | 64fd91d32779afec4cdabeaff3cacc115083ad8f | [] | no_license | nikhil16-bhaskar/Viberr | 0d30001bef42efada850d0ce7ee53d60bc5cca0a | 61d16ba9375004cd7909839badd51c370e70236b | refs/heads/master | 2020-04-27T20:28:41.218888 | 2019-03-15T04:55:44 | 2019-03-15T04:55:44 | 174,659,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from django.contrib import admin
# Register your models here.
from .models import Album, Song
admin.site.register(Album)
admin.site.register(Song)
| [
"nikhilbhaskar1697@gmail.com"
] | nikhilbhaskar1697@gmail.com |
fe434bd65b08f94459de732c1a5ce40de13dd36f | 133f480f4d3071b78fb3e2fde7b36bedcbf567ff | /attic/VodafoneMobileConnectCard/build/opt/vmc/lib/python2.5/site-packages/Vodafone_Mobile_Connect_Card_driver_for_Linux-1.99.19-py2.5.egg/vmc/test/__init__.py | a90eab0f887e310ef1bfbfd243dd5aa66e5b4ffb | [] | no_license | Croosi/vodafone-mobile-connect | 5a8fe61763c37ad64e3925400bf52bd8fe6e92da | bf7a8d53b9cade9e76a6c1543812596e166900c5 | refs/heads/master | 2021-05-28T01:17:34.588541 | 2010-04-20T20:39:16 | 2010-07-18T16:43:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2006-2007 Vodafone España, S.A.
# Author: Pablo Martí
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your o... | [
"rgalonso@gmv.es"
] | rgalonso@gmv.es |
f77dd68f34a3fd571ba7604afe7e4a1950f07c5a | ec1d00385ff1c7295c6f0da8901364886cc83bbe | /loginradius/views.py | 9104981dd2486f097c09e436c8029488d9a7315a | [] | no_license | op9494/Django_LoginRadius_Demo | 412dfbd6ccace0663305043a8a952122f9256e9b | 911e06ce4a94f77f7cf479eeffba98fe2b00f8a4 | refs/heads/main | 2023-04-30T05:48:37.355662 | 2021-05-27T07:17:12 | 2021-05-27T07:17:12 | 371,024,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | from django.shortcuts import redirect, render
from django.http import HttpResponse
from .lr import loginradius
from django.views.generic.base import RedirectView
# Create your views here.
def login(request):
return render(request,"loginradius/index.html",{
})
def dahboard(request):
return render(reques... | [
"o.pradeep64@gmail.com"
] | o.pradeep64@gmail.com |
c39a410ca2372d80328c35f88327d65bd577b0e3 | 134da7d3797b82e0e0c753f89f08663d2c9aee7f | /aps/__init__.py | 6812fc97c1d4168eb9db139739e8f535fd37ad6d | [] | no_license | kakiezhang/pyaps | 98f066f5d26e06cea8ff5fbfe6cae6f28464ee65 | 7d9e7ff4478568c9a3a0b1217447cfe29a1694c2 | refs/heads/master | 2021-01-16T18:38:29.733615 | 2014-04-23T06:46:07 | 2014-04-23T06:46:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | # -*- coding: utf-8 -*-
from aps.client import APS
__all__ = [
'APS'
]
| [
"chenlei@anjuke.com"
] | chenlei@anjuke.com |
d72a7776c5c7e045333f31c54fd2079d151931cd | afd9f3b7e7e5af52c3123eaa68296e5f4378b2aa | /PruebaFrameTkinter.py | ffc6efb8d169e012c171957a66900666e489b1c1 | [] | no_license | loqum/Curso-Python | 8e7d32e4c7356f78115d283d267b1c182256d224 | 5442e6da383613c4ba79cc46887675e0c8f7c37c | refs/heads/master | 2020-09-13T21:17:12.090886 | 2019-12-16T19:50:40 | 2019-12-16T19:50:40 | 222,905,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | from tkinter import *
class App:
def __init__(self, master):
frame = Frame(master)
frame.height = 10
frame.width = 10
frame.pack()
self.hello = Button(frame, text = "Hello", command = self.say_hello)
self.hello.pack(side = LEFT)
self.label_hello = Label(frame... | [
"loqum@users.github.com"
] | loqum@users.github.com |
182f61a71014117ff7ac3fb9d5fa0885ba103181 | 157d53570ffc165a78c48c3c25764d8e60ff2329 | /sagedining/core.py | b6626f007ac8c2c743ffe9f19dedda82e71df9a9 | [] | no_license | morzack/python-sagedining | b4a35108839b4492d1f5938ccf435d587416bd3f | bc37529628c7c7cce7eff43b92401288813bf20f | refs/heads/master | 2020-06-19T21:16:50.184112 | 2019-08-20T01:15:20 | 2019-08-20T01:15:20 | 196,876,590 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,281 | py | from time import time
from urllib.request import urlopen
from json import loads
import datetime
from .exceptions import *
class Meal:
"""Meal serving time"""
BREAKFAST, LUNCH, SNACK, DINNER = range(4)
class Day:
"""Sage days"""
SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY = range(7)... | [
"john_kesler@caryacademy.org"
] | john_kesler@caryacademy.org |
2fd3c1fc630a1c7d3726d871f7a3504999d77e45 | eb99769b7c9e0eb1cf3b88878934a400ba42f0bf | /kennels/api/serializers.py | dd79a917e4f82fe112e0bbf912035aa6d9af62c4 | [] | no_license | Levalife/petsterr2.0 | 3657b200b9e236b81896f4ac104932e85517ceb3 | 43d20e65362596d72942fe624c29fd4f84d90f9a | refs/heads/master | 2023-01-13T04:58:23.496527 | 2018-09-13T09:50:48 | 2018-09-13T09:50:48 | 203,134,329 | 0 | 0 | null | 2023-01-05T21:55:18 | 2019-08-19T08:48:32 | Python | UTF-8 | Python | false | false | 2,090 | py | # -*- coding: utf-8 -*-
from django.utils.translation import ugettext_lazy as _
from rest_framework import serializers
from kennels.KennelsHandler import KennelsHandler
from kennels.models import Kennel
class KennelSerializer(serializers.ModelSerializer):
url = serializers.SerializerMethodField(read_only=True)
... | [
"levushka14@gmail.com"
] | levushka14@gmail.com |
5eb22afee1b11d76798aa863c12c951168ce4baf | 8c985a3471ec5ff477869a22cee320d4be39727d | /Backend(Django)/farcast/manage.py | fc83d230b1ed5db3b16f3539c14e1201430164ab | [] | no_license | max-dmytryshyn/farcast-site | 4bf74b243fcedbbb5d66e55f24d88573dc7787f4 | 4e994b3a0df6e57db2dfe1fef9401fa901037795 | refs/heads/main | 2023-07-23T10:01:55.955464 | 2021-08-03T10:30:31 | 2021-08-03T10:30:31 | 359,403,884 | 0 | 0 | null | 2021-08-03T10:30:32 | 2021-04-19T09:35:16 | JavaScript | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'farcast.settings')
try:
from django.core.management import execute_from_command_line
except Impo... | [
"danilpatana1905@gmail.com"
] | danilpatana1905@gmail.com |
acd750dafe428564e0a711ba19ae364d354d9875 | 8068e14332d3a1cbf977f0099eae2756b4d5c8c6 | /ad_manager/urls.py | 08ce7ad34e175a1986cc260d9d3b80ca3d1598b9 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | mhulse/django-ad-manager | 7ac665bff46ce21c2faeaef274d41d7751403363 | c1335d2e304e20dd84ad766d57fcccbfbae60dd8 | refs/heads/master | 2021-01-25T09:59:22.349355 | 2015-03-28T19:41:23 | 2015-03-28T19:41:23 | 33,046,627 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | from django.conf.urls.defaults import *
from ad_manager.views import Api
# https://bitbucket.org/chris1610/satchmo/src/1730bf912bc1/satchmo/apps/product/urls/category.py?at=default
# http://stackoverflow.com/a/9492349/922323
urlpatterns = patterns('',
# Possible examples:
# "/grand-parent:parent:child/p... | [
"mickyhulse@gmail.com"
] | mickyhulse@gmail.com |
a005f00519d05ed8dcc4174258ff08973c071747 | 5524489fd69786605a0dc7109abe78dc599470cb | /backend/config.example.py | 663e8a86cf83d605284a9522ab2de65c8322e172 | [
"MIT"
] | permissive | rishkarajgi/flask-boilerplate | 26d5c2a1d9829a1a47f9bc81567b573b00ec7b53 | 584da59e3eb3c39261b5b435ef7eaf92bf127aeb | refs/heads/master | 2023-04-10T02:12:50.682961 | 2019-08-22T11:36:09 | 2019-08-22T11:36:09 | 203,781,041 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,620 | py | import os
from datetime import timedelta
import redis
from appdirs import AppDirs
APP_NAME = 'flask-base'
app_dirs = AppDirs(APP_NAME)
APP_CACHE_FOLDER = app_dirs.user_cache_dir
APP_DATA_FOLDER = app_dirs.user_data_dir
PROJECT_ROOT = os.path.abspath(os.path.join(
os.path.dirname(__file__), os.pardir))
TEMPLATE_F... | [
"rishabh.karajgi@capitalfloat.com"
] | rishabh.karajgi@capitalfloat.com |
eee9e4376fbb39b7af890185d892489b63b2f5ed | 25bf04731fdaf917485427332171e36446bc1a89 | /Resnet_SpeakReco.py | 4118897a9217215252e47cdd3b0086c9519cd8d0 | [] | no_license | Ming0818/Multiregion-Speaker-Recognition | 7bb9556902adfd3aa8cec344c10c8cb2aa9921d9 | 71c95f1f5f7be8058f59890b457be6785f37961a | refs/heads/master | 2020-05-16T15:26:30.517567 | 2019-03-23T05:52:02 | 2019-03-23T05:52:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,934 | py | import numpy as np
from keras import layers
from keras.layers import Input, Add, Dense, Activation, ZeroPadding2D, BatchNormalization, Flatten, Conv2D, AveragePooling2D, MaxPooling2D, GlobalMaxPooling2D
from keras.models import Model, load_model
from keras.preprocessing import image
from keras.utils import layer_utils
... | [
"Archit@Archits-MacBook-Pro.local"
] | Archit@Archits-MacBook-Pro.local |
1a87da88dc433cc3a98c815f50879c6aadb07708 | ee8541d4e8e5a41a28f9bdd5e16dc7db16e39742 | /RentBike_test.py | 007fe541876ea39c832cd2cfb8f52aa93f4c2ad8 | [] | no_license | vovojtee/Simple-bike-rental | 737f8bc8b4fbcab9d6f90cbadf9353914cdb365b | edee4d21ac6558e25ef54eefa26ed9c54532ef4a | refs/heads/master | 2022-08-28T08:59:14.964123 | 2020-05-28T13:40:25 | 2020-05-28T13:40:25 | 267,594,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,801 | py | import unittest
from datetime import datetime, timedelta
from pujcovnaKol import BikeRental, Customer
class BikeRentalTest(unittest.TestCase):
def test_Bike_Rental_diplays_correct_stock(self):
shop1 = BikeRental()
shop2 = BikeRental(10)
self.assertEqual(shop1.displaystock(), 0)
... | [
"noreply@github.com"
] | vovojtee.noreply@github.com |
fb909d916602d47b30f99cff6741b55c2ef27840 | 933d03d91112fd516d82752b93f38fe330c07ad2 | /ReadTemp.py | 4e5b9f4fddabe1972108b4f0766bf855cd6c1382 | [] | no_license | jdryden572/TempSensor | c7e13c0c747e0e3c2dca1feca075c19d681f3133 | 88c8326689c844ade333a70e8a5261ed647bd1c9 | refs/heads/master | 2021-01-21T21:48:18.300642 | 2016-05-01T18:49:48 | 2016-05-01T18:49:48 | 20,930,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,863 | py | """
ReadTemp for Raspberry Pi
James Dryden and Brett Nelson
OSIsoft
Reads temperature values from a DS18B20 sensor and writes the timestamp
and values to a .txt file
"""
import os
import glob
import time
import sys
import re
baseDir = '/sys/bus/w1/devices/'
writeFile = '/opt/LightingSystem/webServer/TempReadings.... | [
"jdryden572@gmail.com"
] | jdryden572@gmail.com |
5e88e5d73b668e61060687eb006553a3d7a0657b | 09fd4eb68ed59de9608ee2917af5eaece0de123f | /ait/core/server/broker.py | ba4dbee2cb05d9e4e931ddef0ec3db538f18a1a9 | [
"MIT"
] | permissive | seanlu99/AIT-Core | 9540450bf3a772e4c996bfa2c23b31a2cb67c9e6 | d746079bcff574d930f633bee59337eabf54e99c | refs/heads/master | 2020-06-02T15:37:40.496968 | 2019-08-20T17:33:56 | 2019-08-20T17:33:56 | 191,211,543 | 1 | 0 | MIT | 2019-06-10T17:11:23 | 2019-06-10T17:11:22 | null | UTF-8 | Python | false | false | 3,048 | py | import zmq.green as zmq
import gevent
import gevent.monkey; gevent.monkey.patch_all()
import ait.core
import ait.core.server
from ait.core import log
class Broker(gevent.Greenlet):
"""
This broker contains the ZeroMQ context and proxy that connects all
streams and plugins to each other through publish-su... | [
"anna.waldron@jpl.nasa.gov"
] | anna.waldron@jpl.nasa.gov |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.