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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
29808cebdfec5d1a1a3db83d6c8537604d827cd9 | baba372d7b36d2aeed0f2cb9d86b449f73a02384 | /ultimatelabeling/siamMask/models/mask.py | 494fb59ea488bf58003318398c77c9798ad65e6d | [
"MIT"
] | permissive | alexandre01/UltimateLabeling | 0c577f0d458d74568aae4314bc958ec6b2abc57c | d0c6010da1c3d5e2fce2044111069cdf86df246b | refs/heads/master | 2023-02-21T20:02:30.809271 | 2023-02-15T08:38:51 | 2023-02-15T08:38:51 | 189,499,472 | 298 | 42 | MIT | 2022-06-21T22:03:45 | 2019-05-31T00:15:54 | Python | UTF-8 | Python | false | false | 523 | py | # --------------------------------------------------------
# SiamMask
# Licensed under The MIT License
# Written by Qiang Wang (wangqiang2015 at ia.ac.cn)
# --------------------------------------------------------
import torch.nn as nn
class Mask(nn.Module):
def __init__(self):
super(Mask, self).__init__(... | [
"alexandre.carlier01@gmail.com"
] | alexandre.carlier01@gmail.com |
4bd522ee91096abba12454ecea7d90ac9d60bc03 | e47f6b71e3e1278c4605fc55bf4f49612a9e2fab | /second_week/firstday/main.py | 455fc959dae19a841372355af393f0c577c4d33d | [] | no_license | jinhanlai/DLStudy | bbed2ea61060389aa447e426f5419ebe3d5e23e0 | 1fb7460820aa0ea1760856bbc408e2f8138761e8 | refs/heads/master | 2020-12-09T14:19:00.828091 | 2020-01-12T05:14:02 | 2020-01-12T05:14:02 | 233,331,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,922 | py | # _*_ coding:utf-8 _*_
"""
@author: LaiJinHan
@time:2019/7/27 21:50
"""
import numpy as np
import matplotlib.pyplot as plt
import sklearn
import sklearn.datasets
from DLStudy.L_layer_network import *
from DLStudy.second_week.firstday import init_utils, reg_utils, gc_utils
from DLStudy.second_week.firstday.... | [
"laijinhan@126.com"
] | laijinhan@126.com |
126855637a4d88d391af38ee4179e683dff52074 | 0a839af5f62b1a8011e4fbd81213642078f9af11 | /testing/districts.py | bd0daa380e854d01b52a35854469937728b9c258 | [] | no_license | davidy9000/NSHacks-Bank-Mobile | 79b91871704a4a51ad2d58cb6d901a0fdef566d0 | cf703e5adf610627da8115b59a90744faf05a80f | refs/heads/master | 2020-04-07T01:11:04.048175 | 2018-11-17T14:49:27 | 2018-11-17T14:49:27 | 157,933,739 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,992 | py | import matplotlib as plt
import pandas as pd
import numpy as py
import folium
import os
import json
#import osmnx as ox
capOneLocFile = "Capital_One_Locations.csv"
commDistFile = "nycd.csv"
cOneLocations = pd.read_csv(capOneLocFile)
commDist = pd.read_csv(commDistFile)
districtNY = 'nycommdistrict.geojson'
commDist2... | [
"davidy.9000@gmail.com"
] | davidy.9000@gmail.com |
aa82cd8b14ac750d2e51a46add5665e8f8f4ab0c | d1c5176a1cb370addfb3ef0dabb303fefb9c6f87 | /struktury_danych/min i max while true.py | 568704eb6ce757f8f1a4e50e3f14fb5be05b0b45 | [] | no_license | fzubowicz/Python_bootcamp | 72d58f49f744ae5711f65446433b49be26e4351c | 12d6624f0070038a8a0f28a2d09325a2100f0941 | refs/heads/master | 2020-03-22T12:58:41.499223 | 2018-07-08T14:58:27 | 2018-07-08T14:58:27 | 140,074,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py |
komunikat = 'Podaj kolejną liczbę lub wpisz [koniec]'
res = input(komunikat)
# najpierw obsłużwyjątkowe sytuacje
if res == 'koniec':
exit('Nie wyrałeś żadnej liczby')
liczba = int(res)
min = liczba
max = liczba
while True:
res = input(komunikat)
if res == 'koniec':
break
liczba = int(res)
... | [
"fzubowicz@gmail.com"
] | fzubowicz@gmail.com |
48d706e3b94d4786ec4f67c5be3a9ae9818344ab | 419eb22ddf7afed1cd0dd6a914430b67bf951e51 | /backend/backend/urls.py | 786e8200bf100467e34420a3968051d26e256ca4 | [] | no_license | kadumuri1994/django-react-todo-app | 1de6ea8d5a739299a8e7c83587b1439fa1b3b098 | 822c2cbb8f8989a24ab5e6f732404b72b5478645 | refs/heads/master | 2022-12-07T09:39:51.756371 | 2020-08-28T14:11:44 | 2020-08-28T14:11:44 | 291,063,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | """backend URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"vamshi1000@gmail.com"
] | vamshi1000@gmail.com |
b75a006234cd636a9f0b674101009b376cf4ede1 | e5a0a77a66563511c72feda18229712f109ab16d | /code/Chapter 14 - configparser/crud_config.py | f82dbd809b9feb0fd1c7fc3301b61832c269eb04 | [] | no_license | driscollis/Python-101-Russian | 0136b3fe3edee025e4408a89c0461bb79ab4be07 | 28ce6727ef56dee8b6966526c5f80d8323ec9d73 | refs/heads/master | 2021-10-20T23:31:05.413934 | 2018-10-23T06:54:30 | 2018-10-23T06:54:30 | 149,648,717 | 0 | 2 | null | 2018-10-23T06:54:31 | 2018-09-20T17:53:06 | Python | UTF-8 | Python | false | false | 760 | py | import configparser
import os
def crudConfig(path):
"""
Create, read, update, delete config
"""
if not os.path.exists(path):
createConfig(path)
config = configparser.ConfigParser()
config.read(path)
# read some values from the config
font = config.get("Settings", "font... | [
"mike@pythonlibrary.org"
] | mike@pythonlibrary.org |
7ceae1ad282b1059676d6451c86751575d7e1e6b | a40950330ea44c2721f35aeeab8f3a0a11846b68 | /OpenCV-python读取监控/发送照片.py | 7485633f350fd958947abde317da53ecd06ae10f | [] | no_license | huang443765159/kai | 7726bcad4e204629edb453aeabcc97242af7132b | 0d66ae4da5a6973e24e1e512fd0df32335e710c5 | refs/heads/master | 2023-03-06T23:13:59.600011 | 2023-03-04T06:14:12 | 2023-03-04T06:14:12 | 233,500,005 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | import cv2
import socket
import pickle
import base64
import numpy as np
network = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
frame = cv2.imread('B.jpeg')
new_frame = cv2.resize(frame, (int(frame.shape[1] * 0.2), int(frame.shape[0] * 0.2)))
tx_data = pickle.dumps((b'\x01', new_frame))
print(len(tx_data))
head,... | [
"443765159@qq.com"
] | 443765159@qq.com |
bb4412640665c78c6c83623e2f5858eb4ea901a8 | cc2320819a23ff1e5270d474b806e087b2dbceaf | /rabbit_subr/pipelines.py | 38ed8018f3a9b22f1b25b74316cc79fd13d1258a | [] | no_license | cbscientist/rabbit_scrapy | cbc9c65f85b13de46192453893cb1871bfb4c730 | 490177b9e67375037351d5b85b9c1eac4002310c | refs/heads/master | 2021-01-01T18:54:07.164982 | 2015-03-25T17:29:19 | 2015-03-25T17:29:19 | 32,879,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
class RabbitSubrPipeline(object):
def process_item(self, item, spider):
return item
| [
"clairesalling@gmail.com"
] | clairesalling@gmail.com |
c1d2f5c25c0936309c89953f0cef51921de927b6 | e34cbf5fce48f661d08221c095750240dbd88caf | /python/day26/learncrm/crmAdmin/templatetags/__init__.py | a32c81fa794bf67b4db658cf0d748f8b0d206638 | [] | no_license | willianflasky/growup | 2f994b815b636e2582594375e90dbcb2aa37288e | 1db031a901e25bbe13f2d0db767cd28c76ac47f5 | refs/heads/master | 2023-01-04T13:13:14.191504 | 2020-01-12T08:11:41 | 2020-01-12T08:11:41 | 48,899,304 | 2 | 0 | null | 2022-12-26T19:46:22 | 2016-01-02T05:04:39 | C | UTF-8 | Python | false | false | 55 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
# by Wendy | [
"284607860@qq.com"
] | 284607860@qq.com |
0a50a5878a88fadb82d274ab672c616160eb913b | 79e8e93a6807a4e2bd4923e0d9b78e3a7b38bb0b | /python/round2/permutations.py | 9ef6c0e553d85cf6940d2bfd03b7f8a1e35da930 | [] | no_license | djole103/algo | 2885c30e927898c749e99ee05ff6c8f43033c9eb | 5c60dc77fcc091d1b2c52de99ee3071d82e1e17f | refs/heads/master | 2020-04-12T02:28:58.300269 | 2017-04-19T23:18:04 | 2017-04-19T23:18:04 | 43,453,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | import collections
#O(n) storage
def isPermutation(str1, str2):
if str1 == None or str2 == None: return False
d = collections.defaultdict(int)
for l in str1:
d[l] +=1
for l in str2:
if l not in d:
return False
d[l] -= 1
if d[l] < 0:
return False
... | [
"djordje_7@hotmail.com"
] | djordje_7@hotmail.com |
e72ebda3a718398a198f24705840c971e2f4a7d4 | 1923a90cc154450343ed650085f2ee97ddca9181 | /env/bin/django-admin.py | 7832d88c4053a01efa8647914e0bbf68cc1843f7 | [] | no_license | Demieno/django-gulp-docker-ansible | 230c95a107a5e28b8ed55f2f0d26d8075df130ec | f2e2f74f70c32c02f65a702033042c540bac938a | refs/heads/master | 2020-03-07T18:06:59.295552 | 2018-04-01T12:58:01 | 2018-04-01T12:58:01 | 127,628,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | #!/var/idpowers/redcross/env/bin/python3.5
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"demienokam@gmail.com"
] | demienokam@gmail.com |
4a25485e686ee71a8779acb9894ac44d2da004f1 | d1309391f108e044dab2b51f6bed61588c1163b0 | /DigiZiaApp/migrations/0003_phone_specification.py | 937ac458a56424d3a48d60a473362ca1bd8a019c | [] | no_license | ziashanehbandi/DigiZia | 0cb7e94845d25c563e95d4ddb41c8b3517adea15 | bb3639a8daccc0eef3119e284ee10f0a06f12093 | refs/heads/main | 2023-04-16T13:31:58.396982 | 2021-04-27T16:25:49 | 2021-04-27T16:25:49 | 362,179,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # Generated by Django 3.1.7 on 2021-04-26 18:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('DigiZiaApp', '0002_auto_20210426_0331'),
]
operations = [
migrations.AddField(
model_name='phone',
name='specificati... | [
"ziashanehbandi@gmail.com"
] | ziashanehbandi@gmail.com |
8441c2afa17f311500ce9da51fa3705416fa4148 | 3843509791dd0c30c5c9631cff776ee77ba887cd | /runner.py | aa7e398eaf66937b10a920510c584dc3586551c9 | [] | no_license | nsbradford/HorizonCV | 570098d4907a6536df12e0d1b7b64b769ad6ecf5 | ec535a93f7e8eb44891d59e874d837ebf4ea83c3 | refs/heads/master | 2022-11-15T14:14:32.768599 | 2022-11-05T23:08:16 | 2022-11-05T23:08:16 | 87,033,799 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | """
runner.py
Nicholas S. Bradford
4/12/2017
"""
import nose
import cv2
import numpy as np
from horizoncv import demo
def testAll():
print('Test...')
argv = ['fake',
'-verbosity=2',
'--nocapture',
'--with-coverage',
'--cover-package=horizoncv'... | [
"nsbradford@gmail.com"
] | nsbradford@gmail.com |
7805244463d2fd3897904857f92487d73aff4204 | 0f6d8b0864d01c1e97bf9852fcf35866adfe0606 | /PythonGrammar/oop_and_control_flow.py | e1ee463994162938c8a84567ea529a409226d955 | [] | no_license | NicholasZXT/DataAnalysis | afe94d0cf200911ffcab133912774255a589547f | 0c3d8f872cc8db45bf5b36423bea7fc35de27a3e | refs/heads/master | 2023-08-16T19:39:56.000845 | 2023-08-10T09:07:11 | 2023-08-10T09:07:11 | 214,614,649 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,675 | py | import sys
import os
from collections import namedtuple
# ========= 类的定义和使用 ====================
def __Class_Practice():
pass
# 定义类
class Person:
address = 'China'
def __init__(self,name,sex,weight,height):
self.name = name
self._sex = sex
self.__weight = weight
self.__hei... | [
"1036562425@qq.com"
] | 1036562425@qq.com |
313ce40ebd7cc63db4407f9138208d991cdc68dc | 13f6dcc2141ad5e93c5b7f35d014ef66182a6ab9 | /AppDia/programas/generar_pdf_hoy.py | 432e24aa3d138342534f3ede929866d47c14bd63 | [] | no_license | joseluciano57/proyecto_heroku | 52a28256b3612726760bef64d9b8097e2003069b | 6d2e681b0e60e7b0665ccb1786612f6ae9b1c7ff | refs/heads/main | 2023-03-11T01:53:49.890895 | 2021-02-24T19:58:56 | 2021-02-24T19:58:56 | 341,221,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,156 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jul 12 17:49:59 2020
@author: SYSTEM
"""
from datetime import (date,datetime,timedelta)
import numpy as np
from .libreria_loteria import (lee_datos,conseguir_secuencias_iguales,secuencias_con_iguales_sin_orden,
conjuntos_N_iguales_sin_orden,deter... | [
"jlmaldonaj@gmail.com"
] | jlmaldonaj@gmail.com |
5fd162325d1b76f2416508c204ac01e3912b2b7c | eb067a086adce4571a8d69db5423db41d8817d0d | /test.py | e28ceca3d03757572d445f642b7afc80d5a00003 | [] | no_license | thomasballinger/simplerest | 09f47d1e6a3a4f5b6dc5de0f511dfd9d14783e8a | d0309b5a9439de8c16d107d33e4784e0a9b068a9 | refs/heads/master | 2016-09-15T19:00:37.995063 | 2014-05-22T13:12:18 | 2014-05-22T13:12:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | import socket
server = socket.socket()
server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
server.bind(('', 7000))
server.listen(5)
while True:
s, (ip, port) = server.accept()
data = ''
data = s.recv(10000)
print data
s.send("your page")
s.close()
| [
"thomasballinger@gmail.com"
] | thomasballinger@gmail.com |
e07ee7440dc3f636815f2f06a2a2aff021cb0f83 | 359dcdb32288a300d3dcd9402532e4433c1b0c81 | /directionalvi/utils/test/test_load_data.py | afedefc3fba0490903eb1e5cd336eb9579df3d8e | [] | no_license | kkang2097/GP-Derivatives-Variational-Inference | 7d94cec6171a20587887282724dd87ec37f2131f | 0699c5ef20132f92e0bd4f41525eb09f6fd2c118 | refs/heads/main | 2023-08-20T10:43:31.166748 | 2021-10-25T20:46:21 | 2021-10-25T20:46:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | import os
import sys
sys.path.append("../")
from load_data import *
args = {}
args["n_train"] = 12000
args["n_test"] = 2040
args["seed"] = 3
#cwd = os.getcwd()
#print(cwd)
#print("hi")
train, test, dim = load_helens("../../../data/MtSH.mat", **args)
print(len(train))
print(train[0])
print(len(test))
print(dim) | [
"albert11813@gmail.com"
] | albert11813@gmail.com |
4ff46f654c2a228d62028ea69d5fe8eb18d0d44b | 78ff488fdc75774abc808c9a4c0dd9566b23ae49 | /58103-Scalco-Valentina/TP3/Test1.py | 5164be4821681fb51b34d688f1f22dd74a60a059 | [] | no_license | valenscalco/um-programacion-i-2020 | 3dc84d2ca3337f129e6d85f5f0803277615031ec | 07d25a1999fbef2cff266fa3e27b77e4a8293f4b | refs/heads/master | 2022-07-17T13:01:19.565251 | 2020-05-20T16:45:48 | 2020-05-20T16:45:48 | 250,258,900 | 0 | 0 | null | 2020-03-26T12:57:44 | 2020-03-26T12:57:43 | null | UTF-8 | Python | false | false | 3,434 | py | import unittest
from Cajero import Atm, CantidadError, ValueError, MultiplicidadError, BilleteError, DisponibilidadError
from Billetes import Billete_1000, Billete_500, Billete_200, Billete_100
class TestAtm(unittest.TestCase):
def setUp(self):
self.cien = Billete_100("pesos", "$")
self.docientos ... | [
"mv.scalco@hotmail.com"
] | mv.scalco@hotmail.com |
5adbfd7cbeb0d5d743b0f47012cd9121dca75e95 | 941142d175ab166c6a37d9d8dae038431506d503 | /linebot/mi-bot/wsgi.py | 685eaa98da6ff8efba1c1299b1f006a65a3448df | [
"MIT"
] | permissive | jphacks/FK_1707 | e4a2e5db6f16463d5ea1783705404ccb67df8400 | 9c8a7513eb8ca3d06d68de93568ca1aa0631760c | refs/heads/master | 2021-07-22T18:41:00.761123 | 2017-10-29T04:50:24 | 2017-10-29T04:50:24 | 105,496,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | """
WSGI config for mi_bot 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | [
"bskzxc@gmail.com"
] | bskzxc@gmail.com |
7924494e333eaaa3fc1fb45014a438dff96f2abb | c5542154b44f1b228cdadeaf44c6a5998ed37ed4 | /base/day3/if/2numif.py | cf3ae469fede9e992a02e8e751cd5ee19d44e9a9 | [] | no_license | ThrallOtaku/python3Test | a31a2de1576b3a3c1062a7d6908119d7cbf21b36 | c62e6024bbbeafd396b68e40332991758914ba0b | refs/heads/master | 2020-03-07T22:45:47.403999 | 2018-06-08T10:19:42 | 2018-06-08T10:19:42 | 127,763,269 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | '''
x=10
num= 10 if x>18 else 20
print(num)
'''
#ages=10
#price= 20 if ages>=16 else 10
import os
os.system("calc") if 3>12 else os.system("notepad") | [
"tanght@11wlw.com"
] | tanght@11wlw.com |
883ef4f1e95ccb4ad230631341e6db9e90dcbc54 | 2011727bd90b0ffcb1da5a95bfdb28cbafc00a7c | /rpc.py | 97c347a07c9c8080661df9f60c2cf5c9c9235892 | [
"MIT"
] | permissive | ronitray95/rpc_ftp_example | 3311009462a587b4a8a870abe4562e58c98a31b4 | 91c33c54b11a5fe8f02a9f880271e7fcd749371b | refs/heads/master | 2023-03-02T19:57:17.958155 | 2021-02-10T05:13:00 | 2021-02-10T05:13:00 | 337,624,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | #!/usr/bin/env python3
import os
from ftplib import *
FTP_URL = 'localhost'
FTP_PORT = 5000
def initFTP(cmd, *args):
ftp = FTP()
ftp.connect('localhost', FTP_PORT)
resp = ftp.getwelcome()
# print(resp)
resp = ftp.login('user', '12345')
# print(resp)
fname = 'cmd.txt'
with open(fname... | [
"ronitray95@gmail.com"
] | ronitray95@gmail.com |
90794ec95294eccc4e08c6f9a498c9ec16f50c87 | fa9acf77eeab5a3f8d29e3f8b87c6aea3e44f8bf | /common/dataset/CifarDataset.py | ffe6fb4ff31fe41707f6f9bcd0f3505431a8b90b | [] | no_license | dshelukh/CapsuleLearner | 624837947b6fa81ad60aa7a29968bbcc6fb64c0f | 00e4f76b406251d426d3e5cb3e7cfd1d5f796ed8 | refs/heads/master | 2022-01-22T00:35:23.487975 | 2019-06-18T15:37:09 | 2019-06-18T15:37:09 | 116,154,345 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,181 | py | '''
@author: Dmitry
'''
from common.dataset.DatasetBase import *
import pickle as pkl
import tarfile
import os.path
import numpy as np
'''
import time
import os
import urllib.request
from scipy.io import loadmat
import sys
'''
def random_translate(image, vbound = (-2, 2), hbound = (-2, 2)):
v = np.random.randint... | [
"dshelukh@gmail.com"
] | dshelukh@gmail.com |
87d2010ca3b5538ef7cbec7886af70655cd31c84 | cf587df9bebf15a88582b3d16d0f680478c636fb | /regenerator/__init__.py | e391fc753813be469f56a27210452ba3c510fc82 | [
"BSD-2-Clause"
] | permissive | ghas-results/regenerator | 69383b7467474d7a4a2a47af947e34435ac07c4b | 933e690b122df86b1d4b8404a47ea227eb478f4c | refs/heads/main | 2023-08-09T22:56:16.705355 | 2021-03-11T23:54:38 | 2021-03-11T23:54:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | '''Reentrant generator (regenerator) stream.'''
from .stream import *
| [
"Elliott.Forney@ibm.com"
] | Elliott.Forney@ibm.com |
3b34c3aa261597bb0b7a20265a7d26473b548dd0 | a50a4e874d3d203344a47bc7ad9c317b213eab90 | /base/config.py | 28c8fb077efd365c3408ab3d90723e234358ad31 | [] | no_license | fjl121029xx/yarn-api-python | d5b61ca0695d5fdc4f8923d5814f6576c3c87509 | 4468609dea2d7630fd9fc3dabbe7c02ded7aa4a1 | refs/heads/master | 2020-12-04T02:02:40.913088 | 2020-02-27T08:08:18 | 2020-02-27T08:08:18 | 231,563,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,782 | py | AppConfig = {
'DOHKO': {
# 'livyServerUri': 'http://172.20.44.6:8999/sessions/',
# 'yarnServerUri': 'http://172.20.44.6:8088/ws/v1/cluster/apps/',
# 'livyServerPath': '/usr/hdp/current/livy2-server/bin/livy-server',
'livyServerUri': 'http://172.26.25.148:8999/sessions/',
'yar... | [
"sishengqikuo_xx@163.com"
] | sishengqikuo_xx@163.com |
515ae7d62a3dd2af4a836e14d6f535ba3807c999 | d0cb60e92e6196f5621421301b5ba5ef778caa1c | /mysite/misiproba/urls.py~ | c84095cf797ee25dbc4b364d38964dede43e584f | [] | no_license | har11/djangotest | 9be5bf17fff2baef10879d2f7478ea5bffca6805 | 42d52bd69f445522bdd7650684e88b9321e2fda8 | refs/heads/master | 2020-05-18T08:03:46.440734 | 2013-10-23T20:23:20 | 2013-10-23T20:23:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | from django.conf.urls import patterns, url
from misiproba import views
urlpatterns = patterns('',
url(r'^$', views.IndexView.as_view(), name='index'),
url(r'^newuser', views.newuser, name='newuser'),
url(r'^(?P<user_id>\d+)/edituser/$', views.edituser, name='edituser'),
url(r'^(?P<user_id>\d+)/deleteu... | [
"har11&freemail.hu"
] | har11&freemail.hu | |
32c84120721d4e812bb8463b78c62dc17ef51e5d | a2da066b6729f208f578307e18700dded468547a | /src/extract_img_features.py | 345d3bb9d2ba5f5ea2ecf3a5ffc9eb863fd6679a | [
"Apache-2.0"
] | permissive | aleSuglia/guesswhat | 2195b31db2c043e263769301da1d853817a90417 | 659d1361b6b49e68ec6087b154490adf9c483908 | refs/heads/master | 2020-09-02T10:51:28.378853 | 2020-06-28T13:16:45 | 2020-06-28T13:16:45 | 219,205,640 | 0 | 0 | Apache-2.0 | 2019-11-02T19:48:24 | 2019-11-02T19:48:24 | null | UTF-8 | Python | false | false | 3,407 | py | #!/usr/bin/env python
import os
from argparse import ArgumentParser
from os import listdir
from time import time
import h5py
import numpy as np
import tensorflow as tf
import tensorflow.contrib.slim.python.slim.nets.vgg as vgg
from PIL import Image, ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True
from tqdm import tqd... | [
"alessandro.suglia@gmail.com"
] | alessandro.suglia@gmail.com |
a52af025f64100a1354ba9ff12d253bd3a3be007 | 4741174571b160b62ce5f3dc5f505b7e06819f69 | /linked list/add 1 to number.py | cbec023fd4bc92b92f77b17833938ac13aac062b | [] | no_license | AprajitaChhawi/geeksforgeeks | 754554f86e66ab3ca861966b02e36d246e0efc21 | 06fb42dfaaaa85c1a5bb9ca3a4b13a050fb782bf | refs/heads/master | 2022-12-27T07:35:19.516512 | 2020-10-15T15:48:40 | 2020-10-15T15:48:40 | 291,464,370 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,537 | py | #User function Template for python3
'''
class Node:
def __init__(self, data): # data -> value stored in node
self.data = data
self.next = None
'''
def addOne(head):
curnode=head
prenode=None
while(curnode.next):
temp=curnode.data
a=a*10+temp
c... | [
"noreply@github.com"
] | AprajitaChhawi.noreply@github.com |
55107bfc0b70cbf0ce0416d7d702e61475dc14dd | f26521284741a1f730e2d52de7426807247e08b6 | /Python/Topics/Class/Who is who/main.py | 2bcfcf86bdc076784c5ae9755f976ba6ac78e8bc | [
"MIT"
] | permissive | drtierney/hyperskill-problems | 0e6fe8ca418d1af700a5a1b1b2eed1f1f07b8e9e | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | refs/heads/main | 2021-10-25T07:02:50.838216 | 2021-10-16T19:08:49 | 2021-10-16T19:08:49 | 253,045,232 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | class Angel:
color = "white"
feature = "wings"
home = "Heaven"
class Demon:
color = "red"
feature = "horns"
home = "Hell"
the_angel = Angel()
print(the_angel.color)
print(the_angel.feature)
print(the_angel.home)
the_demon = Demon()
for attribute in ['color', 'feature', 'home']:
print(ge... | [
"d.r.tierney@hotmail.co.uk"
] | d.r.tierney@hotmail.co.uk |
1e4cd8ed5c9c2fd78cfccda92d0753fde46d8b3d | 1c9d9a4fdcc4f8d5ae420dd876fef054c38a89aa | /raypath_plot.py | a258f27ef90f109e9bb977bf023c5126d705b549 | [] | no_license | tianyining/arabian-anisotropy | 751a673a3a3bc48ede6cf9485b8220548eb0bcfd | afc826c6554a502000495a86cfcbbf365c1e75cd | refs/heads/master | 2023-03-25T07:57:04.797570 | 2021-03-18T14:19:27 | 2021-03-18T14:19:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,359 | py | """
for plotting raypath coverage plots. Draws lines for each station pair. Can be run for all periods or a single period
"""
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
from formatter import read_raw_file
import matplotlib.cm as cm
from matplotlib.colors import Normalize
def plot(period, ax):
df =... | [
"jbr43@cam.ac.uk"
] | jbr43@cam.ac.uk |
688a69eeefdd18fc59f72c8a0c55e7ada6bac042 | 00ccdc877771cb0cf493526d1e201e0f625bf5e7 | /dohq_teamcity/models/vcs_root_entry.py | 71eac569239c8a77d6638dac74da2b020c9df602 | [
"MIT"
] | permissive | expobrain/teamcity | a52928045166bb5d34f4a0396cb840bfee8f43d5 | 9f04c0692a2c5b277a608c2f11cc1fb48e0c87e2 | refs/heads/master | 2020-04-13T13:11:07.270515 | 2018-10-18T01:40:06 | 2018-10-18T01:40:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,526 | py | # coding: utf-8
from dohq_teamcity.custom.base_model import TeamCityObject
# from dohq_teamcity.models.vcs_root import VcsRoot # noqa: F401,E501
class VcsRootEntry(TeamCityObject):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
""... | [
"allburov@gmail.com"
] | allburov@gmail.com |
7fc96a9563536b294dc30fc237fda52fbf8b6ed9 | 709d63cce6db2c6e42f06f88f7e96e1f822ff773 | /heuristic/functions/routing_costs.py | 4eb313c3bb40550b6939ed416e71b3be0f87a199 | [
"MIT"
] | permissive | cryptonome/OR-Analysis | 09bc567ae213c47d6160c985ff648b44690ce766 | 2070e2dee49f1556fcaa00044d3512e4ba08550f | refs/heads/master | 2022-04-12T04:51:51.494249 | 2020-03-31T09:42:17 | 2020-03-31T09:42:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,751 | py | import numpy as np
from heuristic.classes import Problem, Route, Solution
from heuristic.constants import DEPOT
def routing_costs(sol: Solution) -> np.ndarray:
"""
Computes routing costs for each customer, as the cost made currently for
having a customer in a route, against the alternative of not having ... | [
"noreply@github.com"
] | cryptonome.noreply@github.com |
a30102c8069f2a64288c65f21399ddc2787cc43d | a2dcc2f7dcdb3a91383965dbb03858af7c765faa | /hashtags.py | b297e984c6ec4b4402203f534e1ed687df2873ee | [] | no_license | namitamhatre411/Sunny-with-a-chance-of-hashtags | b71de30bd1253889ef4a25594a815128b1adbe24 | f06353c985fc907f43f9230c53d864bb6e4b1bb2 | refs/heads/master | 2020-12-31T00:00:12.905472 | 2017-01-31T21:09:43 | 2017-01-31T21:09:43 | 80,562,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | import pandas as p
from sklearn.pipeline import Pipeline
from sklearn.naive_bayes import MultinomialNB
import scipy
import numpy as np
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.svm import LinearSVC
from sklearn import svm
import ... | [
"namitamhatre@Namitas-MacBook-Pro.local"
] | namitamhatre@Namitas-MacBook-Pro.local |
e6af2017b432e17d227eb8a96646038566ecc7c5 | 40c1db9961c99487cf718b7d95da7998a41e6bb8 | /itens/models.py | 21785a367d3d62a1b2b02ac668fab6e80f988a71 | [] | no_license | FSaeta/Projeto-PPADS | 4c9c3e28da34d2fa50ef0592585f5db7a0c4f722 | e8ca98e58b97c87fb4db893efbad3c99a73e60ac | refs/heads/master | 2023-07-21T05:46:04.286122 | 2023-07-06T15:43:50 | 2023-07-06T15:43:50 | 374,760,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,415 | py | from django.db import models
from django.urls.base import reverse
from datetime import datetime
from usuarios.models import Usuario
class Categoria(models.Model):
nome = models.CharField("Categoria", max_length=255)
def __str__(self):
return self.nome
class Itens(models.Model):
data_criacao = mod... | [
"fek2009@bol.com.br"
] | fek2009@bol.com.br |
ae5d7ca9a3ec119ef5e31e62cd5e3e54613f467f | d8e7b9e1436266e7178fb37b74301d958c4b4507 | /counsel/log.py | 79706795b227b4745dee1e21e6e597dd0c03733c | [] | no_license | actionml/counsel | a6a3e4e33c05cda5164bf6ea9533a932184df30d | e7c3c369304e6a17201977fe25915a2c3afeb635 | refs/heads/master | 2020-03-10T06:53:54.893153 | 2018-04-12T12:36:09 | 2018-04-12T12:36:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | import logging
class OutputFormatter(logging.Formatter):
def format(self, record):
args = {
'levelname': record.levelname,
'message': record.msg
}
fmt = '[{levelname}] {message}'.format(**args)
return fmt % record.args
## Use root logger. Since a child hand... | [
"dennybaa@gmail.com"
] | dennybaa@gmail.com |
2dc9330666f5fbcb6526ba3adaba2c90af3de318 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03032/s021397547.py | d664139ae2e131d0ee24b03e0e38925747d285b4 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | from bisect import bisect_left
N,K = map(int,input().split())
V = list(map(int,input().split()))
vmax = -10**9
for n in range(min(N,K)+1):
A = V[:n]
for m in range(min(N,K)-n+1):
B = V[N-m:]
B = B+A
B = sorted(B)
ind = bisect_left(B,0)
k = min(ind,K-n-m)
v = sum(B... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
cb742459992f786fe4dc3efed83b660e36559b65 | 502ef945542800f9dd33ef93ba8222aa7e9fcd1b | /microblog/config.py | eae5f8416ece81a1b1c21f91c41a3468f11634b4 | [] | no_license | csbarker/lets_play_python | cd12e254998ed460712ab07ab2b2df4a3548a8aa | 309a70fe700d36ff0e8063bba90cb64679269bc0 | refs/heads/master | 2021-01-19T14:33:07.223991 | 2014-05-24T14:37:48 | 2014-05-24T14:37:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
# Database
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
# Search
WHOOSH_BASE = os.path.join(basedir, 'search.db')
## Settings
CSRF_ENABLED = True
SECRET_KEY = 'y... | [
"callum.scott.barker@gmail.com"
] | callum.scott.barker@gmail.com |
c71cb016fd30053e434a2b42e23a96a22cca55b8 | 8bada7f2a894b1cc8d7e12b56c7df7d9cbb236e2 | /asynccsv.py | be7d2112ac76df01415362aea15f6c89c08f4049 | [
"MIT"
] | permissive | mattmiller87/RLScrape | 34ac573fe1c44eb0066b41040f1f930f872f1d2c | 6848d68d5997eb816b15663dbfe36066d36621ac | refs/heads/master | 2021-07-11T02:31:33.331638 | 2020-12-17T23:47:20 | 2020-12-17T23:47:20 | 225,527,126 | 3 | 4 | MIT | 2020-12-17T20:38:49 | 2019-12-03T03:59:49 | Python | UTF-8 | Python | false | false | 9,343 | py | #!/usr/bin/python3
import requests
import csv
import datetime
import argparse
import os
import re
from tqdm import tqdm as pbar
import asyncio
from aioify import aioify
from setup_logging import logger
from rlscrape import Webscrape
readibletime = datetime.datetime.now().strftime("%Y-%m-%d_%H-%M-%S") # used for csvW... | [
"mattmiller87@gmail.com"
] | mattmiller87@gmail.com |
7cd796d4633b40da9af7960b2669410ebd453ada | d3cbf5af9aa3f9945c12831a1a0d30f8ee6265da | /count.py | 3e84ef67571b2863d2f4bde036105909ac55b0c5 | [] | no_license | LongNKCoder/algorithm_learning | d5faf846feec75700e5cad723ea9d566a96bac9b | 5f89873ded68b662059adf036d8651f5b73c417d | refs/heads/main | 2023-04-20T18:37:04.290832 | 2021-05-12T10:48:21 | 2021-05-12T10:48:21 | 349,301,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | def countConsecutive(number):
# constraint on values of L gives us the
# time Complexity as O(N^0.5)
count = 0
L = 1
while( L * (L + 1) < 2 * number):
a = (1.0 * number - (L * (L + 1) ) / 2) / (L + 1)
if (a - int(a) == 0.0):
count += 1
L += 1
return count
number = 15000000000000
print(countConsecutive... | [
"lk.nguyen@linkbynet.com"
] | lk.nguyen@linkbynet.com |
cbba4063f542e0bf519d84589276fccc8b5d45c3 | e7e5ac71c941e3daf82781249ae6d32d8614f78e | /2021/day-01/solve.py | 7cf5aad6252eabebb08679fdc50aa41991bf2cad | [
"MIT"
] | permissive | amochtar/adventofcode | 7f952ebee6b41aa5147cc788710fb054579742e7 | 292e7f00a1e19d2149d00246b0a77fedfcd3bd08 | refs/heads/master | 2022-07-14T22:46:21.175533 | 2021-12-15T08:14:17 | 2021-12-15T08:28:43 | 222,647,709 | 1 | 0 | MIT | 2022-06-22T04:45:13 | 2019-11-19T08:36:02 | Python | UTF-8 | Python | false | false | 575 | py | #!/usr/bin/env python
import aoc
@aoc.timing
def part1(inp: str):
depths = aoc.ints(inp)
return sum(1 for (a, b) in aoc.sliding_window(depths) if b > a)
@aoc.timing
def part2(inp: str):
depths = map(sum, aoc.sliding_window(aoc.ints(inp), 3))
return sum(1 for (a, b) in aoc.sliding_window(depths) if ... | [
"ade@instruqt.com"
] | ade@instruqt.com |
fb8ffbf6f78bc4503c579c9c4ea54aee03334dc4 | 956ca85f1bf075aeebaa42de79122a07f17c57d5 | /NewsEnv/NewsPortalProject/News/migrations/0002_auto_20200319_2142.py | 88507e8a8e491b530b9538bf728af04df2c7da44 | [] | no_license | mandeep111/NewsPortal | a1478f597e8fc41e95b1799ed6ef847f03a9e200 | e9471bbdcc57fb83b8cace35daf6c27321e90850 | refs/heads/master | 2022-09-21T07:19:22.717374 | 2020-03-20T15:25:44 | 2020-03-20T15:25:44 | 245,451,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # Generated by Django 3.0.4 on 2020-03-19 15:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('News', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='news',
name='views_count',
f... | [
"mandeepdhakal11@gmail.com"
] | mandeepdhakal11@gmail.com |
4370cb702c00e24272c7131dbaca565ca7cca73e | 3567d260437aabb73fe7ace92a76afba658444a0 | /main.py | 56de48d02027237feaabfb4d8c9b2f0d76fe0809 | [] | no_license | tiamesfa12/checkers-python | 99fbf45b135521829c122ed1b38790ca0399ee66 | 86110dd9d6d960c832025e4919c96f3cdaa19c18 | refs/heads/main | 2023-02-27T04:16:45.416961 | 2021-02-01T18:15:51 | 2021-02-01T18:15:51 | 335,039,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | import pygame
from checkers2.constants import WIDTH, HEIGHT, SQUARE_SIZE, RED
from checkers2.game import Game
from minimax.algorithm import minimax
FPS = 60
WIN = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("Checkers")
def get_row_col_from_mouse(pos):
x, y = pos
row = y // SQUARE_SIZE
col... | [
"noreply@github.com"
] | tiamesfa12.noreply@github.com |
053ad976e6336633dc0f6004015d55286c7bdfaf | 35edabd50da3f037b12b9f1f4954d04663173fa2 | /basic_ref/009.collection_list_comprehension_array_filter.py | a61d758f1b686bae2608a8fed90f6db6baf5a56b | [] | no_license | udayshi/ev3 | eede6309bdb3732a2500709273eab36b7ca0a614 | 48d4f4c6c917f64db9148856419cfb429e1f225a | refs/heads/master | 2020-04-01T17:57:26.426379 | 2018-11-01T16:00:21 | 2018-11-01T16:00:21 | 153,461,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | mylist = [1, 4, -5, 10, -7, 2, 3, -1]
pos = [n for n in mylist if n > 0]
| [
"uday.shiwakoti@mullenlowegroup.com"
] | uday.shiwakoti@mullenlowegroup.com |
8d8b0ab231964b949fd0e44dbc04b96e34e71f6c | e2eba55bfcd30ec6109243ad83efa3be4f9d086a | /platzigram/settings/prod.py | 234d11bac9a6f0e7a4131af55e3ef991691d9270 | [] | no_license | peralson/instagram-copy | 7c40cdea9efaa09ee1428ee757498e85f28bd77f | 129689da28c0477f08a3d0af4b9cabcca5af7954 | refs/heads/master | 2022-04-28T18:05:27.384470 | 2020-04-13T23:01:12 | 2020-04-13T23:01:12 | 255,396,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | from platzigram.settings.base import *
DEBUG = False
ALLOWED_HOSTS = ['platzigram.clapfy.es']
STATIC_ROOT = 'staticfiles'
MEDIA_URL = '/' | [
"pabloperaltapalacios@gmail.com"
] | pabloperaltapalacios@gmail.com |
fe76135fa9eccd572a16fd5da8714993539e245e | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_03_01/operations/_route_filters_operations.py | 0a30eb3cd481c39e0c762bf92fbb47cf91856be2 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 25,449 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | YijunXieMS.noreply@github.com |
704c62b00673b310a92ce453c982ad8a31dd5b8b | 13844d7554ecb6349fb62bca925b85eb37142771 | /TrueValueDetection.py | 194237dd33ef0c7e26d226e6b76673c548a4a66e | [] | no_license | YEJINLONGxy/shiyanlou-code | 35138656cb141b22beb0d039de8ca39434815dc8 | 6dd71f17dabc2fbfeb38ea488e514dc281ac16f4 | refs/heads/master | 2020-06-26T13:17:19.618178 | 2019-08-22T08:53:05 | 2019-08-22T08:53:05 | 199,642,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | #!/usr/bin/env python3
#检测真值的优雅方式是这样:
if x:
pass
#不要像下面这样做:
if x == True:
pass
| [
"1067530182@qq.com"
] | 1067530182@qq.com |
9aff4776e7a2ddf4284e16a6e8a0267f27c5ea27 | 1cb7aeb570630c9743a5b0dc7a254197d26016de | /py/testdir_ec2_only/test_parse_syn_s3n_thru_hdfs.py | 877490a8fb08c2a833f6b77182c24885c8f4cc5c | [
"Apache-2.0"
] | permissive | devinshields/h2o | 576dbebc663265190cfca3fe8341b10d2243213c | 9d8b782e5cb7f38f3cb0086fef15ecec7d9282d5 | refs/heads/master | 2021-01-18T04:57:34.703132 | 2013-08-27T00:57:51 | 2013-08-27T00:57:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,071 | py | import unittest, time, sys, random
sys.path.extend(['.','..','py'])
import h2o, h2o_cmd, h2o_hosts
import h2o_browse as h2b
import h2o_import as h2i
class Basic(unittest.TestCase):
def tearDown(self):
h2o.check_sandbox_for_errors()
@classmethod
def setUpClass(cls):
# assume we're at 0xdata... | [
"kevin@0xdata.com"
] | kevin@0xdata.com |
8e404c16fc03ee455cc24ff6bbe18e6b0d3b45f9 | 1d632e96cb738fe219bd9033a2a92560934fb575 | /project-euler/euler108.py | 598e5975d49a0d5d6371e0f4b9ae222ab9f6452c | [] | no_license | mathyomama/scripts | 8d02025e0f5654210ec38f5ada11f7cd84013a24 | 50afd1b15b1cbfa54b5193cb4b6016a7700f531f | refs/heads/master | 2020-09-22T11:26:43.336236 | 2015-05-29T15:12:57 | 2015-05-29T15:12:57 | 6,764,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | #!/usr/bin/env python
import sys
# incase you forget, the way to solve this problem is by realizing that
# f(n) = floor(number_of_factors(n^2)/2) + 1
def main():
limit = int(sys.argv[1])
n_dict = dict()
x = 3
running = True
while running:
for y in range(2, x + 1):
if x*y%(x + y) == 0:
test = x*y/(x + ... | [
"mathyomama@gmail.com"
] | mathyomama@gmail.com |
fafd1bed26be13432e33d8cefeb83118b95437c0 | 61b610cb0a2344786de832e0a0a2fea9f4fc539e | /2.py | 985113c9535284b0736bd3ab7b66a105803b5af4 | [] | no_license | JorgeVazquez19/PythonFirstSteps | 7cfe1cb5ca9fb396189b7d07bd46d7373102c7b0 | 66518c307bc449ffa987cd99e164b83cc199287b | refs/heads/master | 2020-04-20T06:01:50.322635 | 2019-02-01T09:28:15 | 2019-02-01T09:28:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | import re
from pip._vendor.distlib.compat import raw_input
password = raw_input("enter password: ")
reMayus = r'[A-Z]+'
reMinus = r'[a-z]+'
reNum = r'[0-9]+'
reExt = r'[\W]+'
if len(password) == 12 and re.match(reMayus, password) and re.match(reMinus, password) and re.match(reNum, password) and re.match(reExt, pass... | [
"jorgitoovazquez@hotmail.com"
] | jorgitoovazquez@hotmail.com |
6d85b979f8691ff29a9f9be5767f2375a74ff9fc | e4b2ef5734175d0ca5bf109b18e0f43943686903 | /bookManagePj/gui/calc2.py | ef59972d22563f3084e6f4a2549cfeb98c93a782 | [] | no_license | jungaSeo/python_pj1 | a23659eb42ac7391ab3d9c22eec79a07b5b19fce | 704b2ab91bcb2d39c7feb62ba4a37f41041f0320 | refs/heads/master | 2020-05-04T20:37:09.806985 | 2019-04-13T10:00:22 | 2019-04-13T10:00:22 | 179,444,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,468 | py | import sys
from tkinter import *
def clear():
txtDisplay.delete(0, END)
return
root = Tk()
frame = Frame(root)
frame.pack()
root.title('Calculator')
num1 = StringVar()
topframe = Frame(root)
topframe.pack(side=TOP)
txtDisplay = Entry(frame, text = num1, bd=20, insertwidth=1, font=30)
... | [
"zzang@DESKTOP-8JUBML4"
] | zzang@DESKTOP-8JUBML4 |
acb9e1b2cbf7f2394c9d8d1e97788526cd9e0a63 | 7d275c13fedf0e44f128f3f55edf077f11898183 | /airlines.py | 6d96904d732e20e22d43a9f7c26f2758f602ac2f | [] | no_license | ShubhamDS-P/Clustering | 30a29f5335ca117de7cbccbdd5373c706fda0f06 | ee7cff405d41ae831fd7e44853f6f36cf44317f9 | refs/heads/main | 2023-02-14T04:24:44.822595 | 2021-01-10T11:34:23 | 2021-01-10T11:34:23 | 328,367,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,317 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jan 10 12:21:48 2021
@author: Shubham
"""
import pandas as pd
import numpy as np
import matplotlib.pylab as plt
from scipy.cluster.hierarchy import linkage
import scipy.cluster.hierarchy as sch
from sklearn.cluster import AgglomerativeClustering
from sklearn.clu... | [
"noreply@github.com"
] | ShubhamDS-P.noreply@github.com |
c60612d9601f0566000fea65a50c4c4af60a5282 | a1da8f289df9c088f13528feb8bcac339c005539 | /consensus_and_profile.py | 20e6b8294e23e1319be8abc6c72b2bb294794686 | [] | no_license | ajduberstein/rosalind_problems | 2b4a0d6efb9ae0b556d4c211617a013b42909d23 | f780b1b1a0ddbc5e75ca9ae6cc71a317cd219dab | refs/heads/master | 2021-01-13T01:40:55.709112 | 2014-05-22T19:12:36 | 2014-05-22T19:12:36 | 19,955,710 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | #In progress
def prune(input_dset):
f = input_dset.replace('\r\n','')[1:]
f = f.split('>')
f = [list(x[13:]) for x in f]
import copy
transposed = copy.deepcopy(f)
for x in xrange(0,len(f)):
for y in range(0,len(f)):
transposed[y][x]... | [
"ajduberstein@gmail.com"
] | ajduberstein@gmail.com |
a485431bb651f6d2ee5e57cfeb93176fd651c79e | 3e7476abe9667208eb3aa1788237d783cc116665 | /lotte_project/asgi.py | 08729e2af9cd464c3ec54c2bfecae8fa7c73ec3f | [] | no_license | Beans9605/heroku_lotte | dbf190221730d75a608f14658d94843390279a54 | dcaeacac81da50d78dc72bae05ab276512ed6538 | refs/heads/master | 2023-01-16T03:33:01.052234 | 2020-10-25T16:47:49 | 2020-10-25T16:47:49 | 307,112,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
ASGI config for lotte_project project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO... | [
"alkad1234@likelion.org"
] | alkad1234@likelion.org |
355fbfb179587e34aec6a725fa153e1adf273f2a | 7c302a09def89d3c363e344856e7312ef812c767 | /users/forms.py | 3b43eda2d73b6a5f32cfd83440802d0b9e1206d0 | [] | no_license | Evishka/django-custom-signup | 4da10da94b0921420af15ccf8ee0201838ffd856 | c2230e3a26dd0389107a597d7f2574e31cd1aaf6 | refs/heads/master | 2022-12-15T01:12:04.177456 | 2019-10-23T05:27:47 | 2019-10-23T05:27:47 | 216,969,661 | 0 | 0 | null | 2022-12-08T06:46:19 | 2019-10-23T04:43:57 | Python | UTF-8 | Python | false | false | 682 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from .models import CustomUser
class CustomUserCreationForm(UserCreationForm):
class Meta:
model = CustomUser
fields = ('first_name','last_name', 'email','personal_url')
def signup(self, reques... | [
"luce_fioca@hotmail.com"
] | luce_fioca@hotmail.com |
d6664e32d60cee4b037eec8832a8a5700d57d63a | e81576012330e6a6024d14f3e241f88ca34b73cd | /python_code/vnev/Lib/site-packages/jdcloud_sdk/services/resourcetag/models/ResourceReqVo.py | d520231ef4b8a9e9d0ce52cfcf8615761daffcb6 | [
"MIT"
] | permissive | Ureimu/weather-robot | eba6a84147755aa83c941a306bac1a7c4e95e23e | 7634195af388538a566ccea9f8a8534c5fb0f4b6 | refs/heads/master | 2021-01-15T07:23:42.274413 | 2020-03-23T02:30:19 | 2020-03-23T02:30:19 | 242,912,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,909 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"a1090693441@163.com"
] | a1090693441@163.com |
9524be5e345203545d7e2e5af8b43f43ec21f9fe | 1141157442bda8d53840ca3bf2e304f779078134 | /competitiveSTDP/ReadDataFunction.py | d90ca688e477cf0707ff2b6322520e36693909f3 | [] | no_license | MyWhiteCastle/ECE523 | 2ea03b9f02bb980dbaf18a1df93568c8f5cc1cc4 | bb2e61b7cbbf9d875c82be6179fc0c6ace78799a | refs/heads/master | 2020-04-05T06:10:22.885834 | 2017-12-09T23:27:00 | 2017-12-09T23:27:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,637 | py | from skimage import filter as filt
import pickle
import numpy as np
def readData():
#---------------------------------------------
with open('train0.pkl', 'rb') as input:
train0 = pickle.load(input)
with open('test0.pkl', 'rb') as input:
test0 = pickle.load(input)
#-----------------... | [
"zhengzhongliang93@gmail.com"
] | zhengzhongliang93@gmail.com |
7cb408bfb81428efbabb5ac73ccd502f8f7242e8 | aa560d3f82f207f713d026a439a061fb5e4131db | /AMTPL/wsgi.py | 34b3f4400824cdd5e8a9d96ebc4ffd6618a4a6a9 | [] | no_license | galactic0/areon-web-deploy-v1 | bb9a2fba9783c73a48bde8cd40ff078e6f0a51bf | bf80b046426c0d3284e8027beb389604cef522ff | refs/heads/master | 2022-09-04T01:33:32.511790 | 2020-05-26T15:15:46 | 2020-05-26T15:15:46 | 267,224,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for AMTPL project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"aps1aman@gmail.com"
] | aps1aman@gmail.com |
e878d66b3561fbb082d23f955080de3cb97a19a0 | ab1ceae0751891a72ffa49f0a3b7b5c6212f05d9 | /Basic/S2_03basic_variables.py | f77dc7e18c35444d1f689ab22ba5317e8e1ecb68 | [] | no_license | Leeeungrae/PythonLibraries | c36a0da91ce99d3aa581b15ab150e809db514a79 | d9f9c5aaf63e6ccf54b8e4c0df1eb1002004b3be | refs/heads/master | 2020-08-06T17:26:24.460839 | 2019-11-16T13:29:54 | 2019-11-16T13:29:54 | 213,091,886 | 0 | 0 | null | 2019-10-18T13:51:06 | 2019-10-06T01:05:26 | null | UTF-8 | Python | false | false | 1,304 | py | #list
mylist = [1, 2, 3, 4, 5]
mylist1 = ['a', 'b', 'c']
mylist2 = [1, 'a', [100, 200, 300], 2]
#list 인덱스
print(mylist[1])
print(mylist2[2][1])
#mylist2[3] = 100
print(mylist2)
#List size
print(len(mylist))
print(len(mylist2))
#append함수
data1 = ["korea", "Japan", "America"]
data1.append("china")
print(data1)
#pop함... | [
"reisei88.dev@gmail.com"
] | reisei88.dev@gmail.com |
e4b473a220b5e55ed9ddc61367215546c54a10f9 | 565008d400f39cd5f820ac5c0bfdfdff12d8ba85 | /untitled4/lab6/migrations/0001_initial.py | fa5525dc724bad8bdb62d2e7e44118b5d27e8a24 | [] | no_license | VladimirBurash/Lab6 | 3ef58b072c25ba8312f61814116e16f2554cec1c | f8996b37db486f31c48cb879df60cab8b094b2cd | refs/heads/master | 2020-06-10T13:03:49.506464 | 2016-12-08T17:05:37 | 2016-12-08T17:05:37 | 75,958,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2016-12-08 16:40
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Artist... | [
"noreply@github.com"
] | VladimirBurash.noreply@github.com |
64b76f3987df38265342911529b1721376420922 | a52c7be812be43fbfa5844f5b89a25b1bdb091fa | /datelib.py | 3b1947b66a3ef083dbf0a23f6a9ed36ea9cc92c2 | [] | no_license | rteak/Project001 | 3aec3ef97897210f73d1074e00c6ec267f719553 | 1ee63dfd590c8beb5377b4492170990556b022be | refs/heads/master | 2022-08-01T19:38:28.496415 | 2020-05-27T09:26:20 | 2020-05-27T09:26:20 | 267,269,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | # =============================================================================
# 日数計算
# =============================================================================
import datetime as dt
def day_count(fromdate, todate, delimiter='/'):
# 年月日の分割(from)
fy = int(fromdate.split(delimiter)[0])
fm = int(fromdat... | [
"62337633+rteak@users.noreply.github.com"
] | 62337633+rteak@users.noreply.github.com |
b6b87d81e355a4f8bff6abb5d8f6e610fc0bb9d5 | 68271a37c3c4dd3d31b24c0cddbf574472f9f6a5 | /backend.py | 7e19cee00e6f11342bb1cc90a70ae13c0cee22f0 | [
"MIT"
] | permissive | LSaldyt/automata | 8bcbb269bdfdf01803d66b77eb31be0a7eddb83b | ff0ba058f087fbcd7958866019b4b7cb43e924bd | refs/heads/master | 2020-04-28T19:01:49.703783 | 2019-04-22T21:06:01 | 2019-04-22T21:06:01 | 175,497,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | from mpl_toolkits.mplot3d.art3d import Poly3DCollection
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import numpy as np
def cuboid(o, size=(1,1,1)):
X = [[[0, 1, 0], [0, 0, 0], [1, 0, 0], [1, 1, 0]],
[[0, 0, 0], [0, 0, 1], [1, 0, 1], [1, 0, 0]],
[[1, 0, 1], [1, 0, 0], [... | [
"lucassaldyt@gmail.com"
] | lucassaldyt@gmail.com |
5f12c80b451d8ec28245197bdea90002f9550948 | ead63de23c659abe3c85897c03ea3316f2ce3b28 | /model.py | e401f1a8e93aef766d33c85b1207f6b534a97922 | [] | no_license | yqGANs/LCCGAN-v2 | 0f751574b4c61b2d4323d380f625d0de4795234f | d86f61e7f99d43efcdd428cc2ed0f09ee1dc7aaa | refs/heads/master | 2022-11-25T14:29:39.151224 | 2020-07-23T12:38:45 | 2020-07-23T12:38:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,940 | py | import torch
import torch.nn as nn
from torch.autograd import Variable
class lcc_sampling(nn.Module):
def __init__(self, anchor_num, latent_dim):
super(lcc_sampling, self).__init__()
self.anchor_num = anchor_num
self.latent_dim = latent_dim
self.register_buffer('basis', torch.zeros... | [
"scottgyguo@tencent.com"
] | scottgyguo@tencent.com |
afbc0ea56e7cb155afec46f10c5e11b4625c3058 | abad82a1f487c5ff2fb6a84059a665aa178275cb | /Codewars/7kyu/so-easy-charge-time-calculation/Python/test.py | 0c7363e56959f0d28c875a4cc5375e8de39a6d2e | [
"MIT"
] | permissive | RevansChen/online-judge | 8ae55f136739a54f9c9640a967ec931425379507 | ad1b07fee7bd3c49418becccda904e17505f3018 | refs/heads/master | 2021-01-19T23:02:58.273081 | 2019-07-05T09:42:40 | 2019-07-05T09:42:40 | 88,911,035 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | # Python - 3.6.0
Test.describe('Basic Tests')
Test.assert_equals(calculate_time(1000, 500), 2.6)
Test.assert_equals(calculate_time(1500, 500), 3.9)
Test.assert_equals(calculate_time(2000, 1000), 2.6)
Test.assert_equals(calculate_time(5000, 1000), 6.5)
Test.assert_equals(calculate_time(1000, 5000), 0.26)
| [
"d79523@hotmail.com"
] | d79523@hotmail.com |
cd6cd17cd062d3d35aa0116da8ae24d23f41ecbe | 17fb6b997c2ab707651fe719f1456dfae3aae052 | /leetcode/146_LRU_Cache.py | 85ccc923e353d4f69b50b49c2f176c49fb7b70a2 | [] | no_license | dmitry-pechersky/algorithms | 40b6184400bcf818c2590b9413ce1bf510b3b355 | 74f13f6e256c2e0c1503ec4bafa6b3e0f227fe2c | refs/heads/master | 2023-05-31T14:20:51.882551 | 2023-05-11T06:59:53 | 2023-05-11T06:59:53 | 122,305,451 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,912 | py | from unittest import TestCase
from collections import OrderedDict
class LRUCache:
def __init__(self, capacity: int):
self.capacity = capacity
self.dic = OrderedDict()
def get(self, key: int) -> int:
if key in self.dic:
self.dic.move_to_end(key)
return se... | [
"@none@none.com"
] | @none@none.com |
12231e5e5f721075626108298acb1a8317dc3ade | 178fef62f033068be8591057470af2be16542d40 | /gym_ple/ple_env.py | aea8f15ad9026c9020833bfc0e9e9aa956cefaaa | [] | no_license | nju-fuzy/envs | 632dd0541a67503cbcf13a8a85cc305cc08c6a04 | e5ef685b2536a00088eef03d6f9f20152d4d0fc8 | refs/heads/master | 2020-08-07T18:55:45.774585 | 2019-02-11T03:33:05 | 2019-02-11T03:33:05 | 213,557,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,264 | py | import os
import gym
from gym import spaces
from ple import PLE
import numpy as np
class PLEEnv(gym.Env):
metadata = {'render.modes': ['human', 'rgb_array']}
def __init__(self, game_name='FlappyBird', display_screen=True, ple_game=True):
# set headless mode
os.environ['SDL_VIDEODRIVER'] = 'dum... | [
"lxcnju@163.com"
] | lxcnju@163.com |
22f53a51f9d56c1020e164b962c2a83a03669e8f | a1c9c55e1520356113a320be18e8fcb31654a944 | /archive/0.10/generated/seaborn-jointplot-5.py | 97b6478b704f4f926f64361289dfc029bff368a4 | [] | no_license | seaborn/seaborn.github.io | bac12a9255b41c7971e9e94ea393d372ef66ef62 | f70445bc3456f0216169806c2daf03452ca1eba4 | refs/heads/master | 2023-01-06T10:50:10.789810 | 2022-12-30T19:59:55 | 2022-12-30T19:59:55 | 70,731,605 | 16 | 5 | null | 2022-06-28T00:32:07 | 2016-10-12T18:56:12 | HTML | UTF-8 | Python | false | false | 147 | py | g = (sns.jointplot("sepal_length", "sepal_width",
data=iris, color="k")
.plot_joint(sns.kdeplot, zorder=0, n_levels=6))
| [
"mwaskom@nyu.edu"
] | mwaskom@nyu.edu |
56f93826cccd3b8c8efa2400ea3934ed95d6102e | db0e991d02a50eda222aaebeb7a5772b9cba467f | /account/admin.py | 6db31fc81344fb402617759b0d2e5180d5105ae8 | [] | no_license | iamrraj/Djanog_Learn | 1ba90ac797b284c5e2a7dd733fd61353ee8af241 | c522b41411415585468cadfe6999262a6c9b487d | refs/heads/master | 2020-04-17T09:48:09.414269 | 2019-01-18T21:24:53 | 2019-01-18T21:24:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,221 | py | from django.contrib import admin
from .models import Profile,Categoty,Product,Slide
# Register your models here.
class ProfileAdmin(admin.ModelAdmin):
list_display = ('user','location')
list_display = ('user','birth_date','email_confirmed', 'location')
list_filter = [ 'location', 'user' ]
search_field... | [
"rajr97555@gmail.com"
] | rajr97555@gmail.com |
962f542aade17ca44777f2b58fcf4e28890718e0 | 59fc88b3c777fb3b86753eed5e6b1cc79976da75 | /transpose.py | 442ee531b0d8d9a24d1e3f623f6203044fd2bdb1 | [] | no_license | atharvsinha/basicpythontranspose | 8d8ece1174d46939864f1fb0089d7f4f69c0dfa0 | 3651524347c96ecd9642d15bc4bd2b9253c9e7a8 | refs/heads/main | 2023-01-23T10:19:17.199398 | 2020-12-04T17:52:14 | 2020-12-04T17:52:14 | 318,591,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | import numpy as np
m, n = input('Enter 2 space separated integers as dimensions of an m.n 2D matrix:').split()
m, n = int(m), int(n)
matrix = np.array(list(map(int, input('Enter m.n values to be inserted in the matrix').split())))
matrix = np.reshape(matrix, (m, n))
print(matrix)
transposed =[]
[[transposed.appe... | [
"noreply@github.com"
] | atharvsinha.noreply@github.com |
cb3a40bd30ee7d01016f649a788ffdf93f58f8d8 | 9c9453734273da52b416ab9dfd5ad97bd03c6774 | /learntools/kt/tests/test_kt_data.py | 32d47faeac8cc102ed4510bcd7a5d19029543e29 | [] | no_license | summyfeb12/vector_edu | 08411ae19b3bc4a2b6a2951957b4d76dc75acac7 | d929498cf3e393aeeac408d6f72066563762fd7d | refs/heads/master | 2021-01-22T00:20:10.951181 | 2015-01-27T03:07:16 | 2015-01-27T03:07:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | import numpy as np
from learntools.kt.data import prepare_new_data2, prepare_new_data
from test_kt import use_logger_in_test
# TODO: this test is out of date. Replace it with a better one
'''
@use_logger_in_test
def test_prepare_dataset():
dataset_name = 'data/data4.gz'
ds, train_idx, valid_idx = prepare_new... | [
"yueranyuan@gmail.com"
] | yueranyuan@gmail.com |
7c455d82ac872f0ef5ae750b0acf3d726db9b587 | b7423aabf39b7ebacbd57388d20de1a9bf43f2f2 | /coding-bat/logic-1/sorta_sum.py | 1d74d2b7a01b52980779c5ec0e070d93ebb8306d | [] | no_license | usman-tahir/python-snippets | b9e2bfe8e96d321314b2e87560c2fa3cd102d0e8 | cfe564ecb5a27d8b61c8c9930458bf3fdeab4d8e | refs/heads/master | 2021-01-12T13:56:06.263461 | 2017-05-07T17:53:53 | 2017-05-07T17:53:53 | 68,925,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | # Given 2 ints, a and b, return their sum. However, sums in the range 10..19
# inclusive, are forbidden, so in that case just return 20.
def sorta_sum(a, b):
result = a + b
if result in range(10, 20):
return 20
return result
| [
"tahir.usman.ali94@outlook.com"
] | tahir.usman.ali94@outlook.com |
e4349aad71a7bcb2e770564e0eb5f182520eb84b | 1cacad76550376a93dc5b87798e9624f22129879 | /docs/source/conf.py | 4eeb5cb8935ea679341c97f381b91f519e3ebbf5 | [
"CC0-1.0",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | clakech/metrics | 9ae4c5b9a9f5db10bc1040de43ac4d9fee42734f | c32f8bd8304267af09582f7979d69e2df8d69ca3 | refs/heads/master | 2020-12-25T03:10:34.158983 | 2012-02-19T07:06:07 | 2012-02-19T07:06:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,359 | py | # -*- coding: utf-8 -*-
#
# Dropwizard documentation build configuration file, created by
# sphinx-quickstart on Mon Feb 13 11:29:49 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# ... | [
"coda.hale@gmail.com"
] | coda.hale@gmail.com |
d346a54dd0ef28cd1f3d2d688b9393ef1b0a680f | f127484351afb41f748967a9f76d0fd10a7f36a5 | /weather/views.py | df4a90105f1034b35043740664d4d39e28301e81 | [] | no_license | Megha912/the_weather | aa4eb4b85d179c232541fd3324e4203f237f0d5c | b74ff5bf56985ca76bb38c7d00343b3f79c600eb | refs/heads/master | 2022-04-18T15:59:42.070959 | 2020-04-20T18:00:29 | 2020-04-20T18:00:29 | 257,363,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,681 | py | import requests
from django.shortcuts import render , redirect
from .models import City
from .forms import CityForm
def index(request):
url = 'http://api.openweathermap.org/data/2.5/weather?q={}&units=imperial&appid=271d1234d3f497eed5b1d80a07b3fcd1'
err=''
message=""
message_class=""
if request.met... | [
"2017143@iiitdmj.ac.in"
] | 2017143@iiitdmj.ac.in |
e7cc18d0c214ed28a66649510ef8b99453ab4b5a | 6f7b63a20d827673db2a12974ec13e0e932c6d6f | /lesson2/task3.py | 547ec4aeed81674ce1024bb3aa17dc5b18c018ab | [] | no_license | Tskon/Pyton-gb | 075652867c98cf43cc3c60af2eb4872c22a69921 | 0aeadee644b2c998216b6549eee44bfeec8650a4 | refs/heads/master | 2020-03-29T10:11:46.691809 | 2018-10-18T17:39:17 | 2018-10-18T17:39:17 | 149,793,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | # Дан список заполненный произвольными целыми числами. Получите новый список, элементами которого будут только уникальные элементы исходного.
numList = [1, 15, 3, 1, 2, 12, 3]
# 1 вариант - убираем лишние дубли
uniqNumList1 = list(set(numList))
print('без дублей', uniqNumList1)
# 2 вариант - только неповторяющиеся ... | [
"tsekhmeister.k@gmail.com"
] | tsekhmeister.k@gmail.com |
a55ff55edf59f5225b76b60492f4fd70d55087df | 0e033cadbbd9fa3d3898936411343741f418b902 | /daily-data/data_pb2.py | a8e4ab91f66c10fe8c2da9d45d968e5b5e69616f | [] | no_license | BSVino/DAData | b5fe004025fd5c4cedda0133b7e30d14136373c7 | 4c821345b8999a820d24bbbb29889de8c03be933 | refs/heads/master | 2021-01-18T14:33:46.552060 | 2014-11-27T03:25:57 | 2014-11-27T03:25:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 31,687 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
from google.protobuf import descriptor
from google.protobuf import message
from google.protobuf import reflection
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)
import math_pb2
DESCRIPTOR = descriptor.FileDescriptor(
name='... | [
"jorge@lunarworkshop.com"
] | jorge@lunarworkshop.com |
aecfb00725f4f7bd87e9f9c56ba210a02afbef5d | 780c1cfe89f5e913d44308b31ce6ce0844426ef2 | /Python/ProblemSet03/Solutions.py | 20b203f772b90bfd4c675974c4de2217fbaa38b0 | [] | no_license | Hariniraghavan12/GraduateTrainingProgram2018 | 80f3969d31de097df14e1012af7987fa34d2ca67 | 01af138707d4653bd9072ca53de60904b83b53c9 | refs/heads/master | 2020-04-15T15:20:53.689103 | 2019-06-07T06:58:01 | 2019-06-07T06:58:01 | 164,792,309 | 0 | 0 | null | 2019-01-09T05:10:55 | 2019-01-09T05:10:55 | null | UTF-8 | Python | false | false | 6,763 | py | #1.A string slice can take a third index that specifies the "step size;" that is, the number of spaces between successive
#characters. A step size of 2 means every other character; 3 means every third, etc.
#>>> fruit = 'banana'
#>>> fruit[0:5:2]
#'bnn'
#A step size of -1 goes through the word backwards, so the slic... | [
"noreply@github.com"
] | Hariniraghavan12.noreply@github.com |
1cad71006bfaaca4c9073496567deaea73f84e40 | c191d7db16366f1532c05c6bc238c59f378f008a | /zscanFitter.py | 52938f9afe2a92ace41b1d0549f4d42b9e9f10b3 | [] | no_license | hurxx018/FFS | 410b9cd07da0b2a16c06fc59da31d61d35a4803e | eeaf4dcc76709e58d8775f36ce82354de8262b3b | refs/heads/master | 2020-04-16T18:02:12.130907 | 2017-08-25T01:20:34 | 2017-08-25T01:20:34 | 65,945,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,570 | py | import numpy as np
from zscan_tools.zscanPSFGLsp import zscanPSFGLsp
from zscan_tools.zscanMultiLayer import zscanMultiLayer
from mpfit.mpfit3 import mpfit
class zscanFitter(object):
"""docstring for zscanFitter."""
#TO DO: explain each geo in detail
geodict = {"BASE":-1, "SLAB(L)":0, "UP":1, "DOWN":2, "... | [
"hurxx018@gmail.com"
] | hurxx018@gmail.com |
c1c7e98416024eb3e29fc245b4b49b8df8efa47b | 75a98dd6c84220441832ac7f5b5046a4777d9af4 | /sliding_window.py | 2c77952dab04c0803fc0446cf386c9b95f4fd822 | [] | no_license | Hyunwoo-Park-Yonsei/Sliding_Window | 9a94799ac32eba437e4afe96577508f58e35a78c | 2fb5cfcdb0fd2fd9cdaac25df9ca2ec6d598b8f2 | refs/heads/main | 2023-07-01T19:10:55.227303 | 2021-08-03T14:16:50 | 2021-08-03T14:16:50 | 392,334,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,364 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
import cv2, random, math, copy
Width = 640
Height = 480
#동영상 읽기
cap = cv2.VideoCature("xycar_track1.mp4")
window_title = 'camera'
#와핑한 이미지의 사이즈 bird eye view로 본 것의 이미지의 사이즈
warp_img_w = 320
warp_img_h = 240
#와핑할때 의 margin 값
warpx_margin =20
warpy_ma... | [
"kevin3671@naver.com"
] | kevin3671@naver.com |
e49326fac55a8895944075f1fa4486e0bc5a5f82 | 55d89253f2c16983629220a54ffe2c1801803aca | /src/p55.py | 0bb62e01637a19b669e7c473e38dba57ee150475 | [] | no_license | YeWenting/LeetCode-Sulotion | a1fbbb3499a844578c7e068f12a002a3d6a736af | 373a9a69b151c1a8de132915f10c5bbaa2ceb22c | refs/heads/master | 2021-07-13T01:31:36.091179 | 2017-10-18T12:12:59 | 2017-10-18T12:12:59 | 105,343,996 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | class Solution(object):
def canJump(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
farest = 0
n = len(nums)
for i in range(n):
if i <= farest:
if i + nums[i] >= n - 1:
return True
elif i ... | [
"Wenting_Ye@Outlook.com"
] | Wenting_Ye@Outlook.com |
002dabe336a49ac40c5c2814c38695ab8728203e | a06619819f686dbf42277fd6382a0de6af2090ea | /password_generator.py | 9b3096f3b76a2e4ed3fe6051101956d7ad51c3be | [] | no_license | martinpzj/PasswordGenerator | 3fb0cc0fd757ad6dc1e2ec5ecaa91b464adf814a | 90f4d0d477ed744232dfd72192f166a505764a17 | refs/heads/master | 2020-03-28T13:06:29.719913 | 2018-09-11T19:15:15 | 2018-09-11T19:15:15 | 148,366,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | import random
#combination of numbers, symbols, uppercase letters, lowercase letters
def generator(length):
password = ''
while len(password) != length:
password = password + random.choice(characters)
return password
characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&()*+,-./:;<=... | [
"mperez58@ucsc.edu"
] | mperez58@ucsc.edu |
c9cce2b5cdc0b337efc02782fc1719281c024b43 | 3c4bd9f5d989a700220e900aaeefb20a723f7b76 | /www/popviv/popviv/settings.py | 0bbf2c9754252bb29ee39f0fdba722ff45da0761 | [] | no_license | popviv/django-web | 0dc8e95e888dedd133bcb842ad856681e126d621 | 100fbfcac623c4ff6f111d39a0f06e2ae5e9c152 | refs/heads/master | 2021-01-09T06:20:27.262586 | 2017-02-05T04:03:00 | 2017-02-05T04:03:00 | 80,967,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,244 | py | """
Django settings for popviv project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
imp... | [
"popviv@163.com"
] | popviv@163.com |
203a76dcf6c688c6596d22764c7c4afa44ab6b6b | fdaf0e943a58279a1a50ae7cbdc73d3195c71676 | /instagram_web/util/mailgun.py | 6a4bc6d9d7f38328d31aaa7daf7bce3b77dca24c | [] | no_license | WinsonTay/nextagram | 10126e9e971197135ef00ba05ae67098de354e5c | e40fc8c5a303cac74e92a1c772d19e811ffcc903 | refs/heads/master | 2022-12-13T19:19:26.173376 | 2020-03-23T03:02:19 | 2020-03-23T03:02:19 | 245,326,205 | 0 | 0 | null | 2022-12-08T01:51:30 | 2020-03-06T04:01:05 | Python | UTF-8 | Python | false | false | 400 | py | import requests
import os
def send_simple_message():
return requests.post(
"https://api.mailgun.net/v3/sandbox14a64d8d03af4c9badd9c1f2ee2a0d0a.mailgun.org/messages",
auth=("api", os.getenv("MG_API_KEY")),
data={"from": "Excited User sandbox14a64d8d03af4c9badd9c1f2ee2a0d0a.mailgun.org",
"to": ["weeshen90@gmail... | [
"weeshen90@gmail.com"
] | weeshen90@gmail.com |
dba057dbb9a90222fe78013ed507874e4483c622 | 26b8745c37acd8127a4913671dd59f781c1ac3db | /getProxy_freeproxylists.py | 11b1ec61c71b4e967fa443e5116c47667b9f94df | [] | no_license | hsh075623201/crawlProxyIps | 696e40064bd13cbcb14a4d469c07a2b547073244 | 55773b25146b6283d054243c6ee9fc1c92f10fc3 | refs/heads/master | 2020-07-14T01:10:52.336412 | 2017-12-01T04:02:10 | 2017-12-01T04:02:10 | 66,363,614 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,247 | py | #coding:utf-8
import requests
from requests.packages.urllib3.util.retry import Retry
from requests.adapters import HTTPAdapter
from bs4 import BeautifulSoup
import time
import pymysql.cursors
import random
import re
from config import *
UA = [
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/201001... | [
"shihuai.du@aihuishou.com"
] | shihuai.du@aihuishou.com |
aa489f1fe7cdd8c01481666d4bcbffd497c31c99 | 47040e0580b8fc79d9ec9d7aafdd6bebb89e7938 | /rx_modeling.py | 8e25bf74730770e486652acd53c9a91ca9dbed73 | [] | no_license | yesuuu/rx_tools | 97b817460632f0f7de8200685ecd10a7e0a2ce25 | 4fc3e7a03ad89b9d213b65b26de64785a5830452 | refs/heads/master | 2021-01-10T01:14:55.294869 | 2018-09-14T13:25:35 | 2018-09-14T13:25:35 | 54,356,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60,905 | py | import sys
import os
import time
import datetime
import datetime as dt
import re
# import random
import subprocess
import numpy as np
import pandas as pd
import statsmodels.api as sm
import statsmodels.formula.api as smf
import scipy.stats as stats
import matplotlib
import matplotlib.pyplot as plt
from sklearn.decompos... | [
"rxfan@wizardquant.com"
] | rxfan@wizardquant.com |
b97ce95ce7e648eb306f1d1b9ecb4fb53d4ed64c | 4c5feb80b04f267e10ae03659a0e0bff6545b02b | /handler.py | 3a370e6e870fc208a0282a2d2f816ecc714cd989 | [] | no_license | IonianIronist/mini-python-database | 250f8b440be74b160356f6f5888f17037244b138 | 32caf7e59c989493b255ed9491b3478ed3e975b8 | refs/heads/master | 2020-09-12T18:20:12.639016 | 2019-11-18T17:56:24 | 2019-11-18T17:56:24 | 222,509,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,728 | py | import functions as fn
# MAIN CODE FILE
file_sz = 15000 # writing file size
tupples_lst = [] # tupple buffer
data = "data.csv" # data file name
to_write = ["ordered", "heap_file"]
fn.readnstore(data,tupples_lst) # read the data, put it in the <tupples_lst>
tupples_num = len(tupples_lst) # how many tupples in the... | [
"noreply@github.com"
] | IonianIronist.noreply@github.com |
422a26973120e08992ce53e7ece4c144afdd9166 | 5c667c2136db43f8c3b07bf29a4e450c47c09122 | /autoClicker/AutoClicker.spec | 229a8ff774ecfa7275606e93502d03616cc6c7ca | [] | no_license | g-ulrich/AutoClicker | 51d8a209f87c437be3f1902d4bc5a52b24029703 | 4a21d6a1c6c4f730a1d2456fe626a168faee3754 | refs/heads/main | 2023-04-22T05:56:19.597633 | 2021-05-03T13:47:06 | 2021-05-03T13:47:06 | 348,132,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,130 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['AutoClicker.py'],
pathex=['C:\\desktop2\\2021\\scripts\\python\\PyCharmProjects\\SuperClickerUtility\\venv\\Lib\\site-packages', 'C:\\desktop2\\2021\\scripts\\python\\PyCharmProjects\\SuperClickerUtility'],
bin... | [
"noreply@github.com"
] | g-ulrich.noreply@github.com |
03a60dacf44e74f548d5b2e88d788ae264bcd283 | 326142a582c8864240064692a6500dc12da91697 | /78_Subsets.py | f08f9628475b776d6ce844ea498b5b8e5ab2f963 | [] | no_license | qscez2001/leetcode | 960e775f3c7190ea2f2c3078a25714aafaf8801b | f124203c13b2e539acc7a863ec9b1a56363b1f96 | refs/heads/master | 2022-02-26T03:35:14.308765 | 2022-02-07T07:22:48 | 2022-02-07T07:22:48 | 238,398,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,100 | py | '''
Given an integer array nums, return all possible subsets (the power set).
The solution set must not contain duplicate subsets.
Example 1:
Input: nums = [1,2,3]
Output: [[],[1],[2],[1,2],[3],[1,3],[2,3],[1,2,3]]
Example 2:
Input: nums = [0]
Output: [[],[0]]
'''
def subsets(nums):
subsets = []
dfs(nums, 0... | [
"qscez2001@gmail.com"
] | qscez2001@gmail.com |
4d9f52c9e77a45559205cc135334a7f3d9ce7dc0 | cce0f2236140b4cd5dbf76bd704ef56dd86429b2 | /tests/test_models.py | 22b32152a2204f83e5b0da98c578dc6d2d86f64f | [
"MIT"
] | permissive | nightlyds/library-api | d22ec784562e46f95824c579a2273e55692d7ece | aef059dc8e833976b594788295418ce9d22ad8b1 | refs/heads/main | 2023-06-23T03:24:14.979344 | 2021-07-21T19:44:14 | 2021-07-21T19:44:14 | 383,460,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,666 | py | import pytest
from library import bcrypt
from library.models import Genre, Author, Book, \
User, Order, OrderItem, Review, ReviewImage
from sqlalchemy.exc import IntegrityError
@pytest.fixture
def initialize(session):
genre = Genre(id=101, name='comedy')
author1 = Author(id=101, firstname="test firstname... | [
"safonov.danil.cw@gmail.com"
] | safonov.danil.cw@gmail.com |
b00dbf73d1e70aebddeedd3ffd333d028987ef80 | b0a73293e98e271ca9f3dcdf8aa67250aeb0c863 | /Decorator/DekoratorStopki2.py | 988192c52196dfa789114d4ed69ac8c1469cb20e | [] | no_license | gorkaMaksymilian/design-patterns | 84df1bdb530d3158b80d9cc1560c720b8ceca69b | 8a861612bbae33344d670cc3cdb7d00135ec7c09 | refs/heads/master | 2020-09-13T12:14:21.256238 | 2019-12-17T17:15:58 | 2019-12-17T17:15:58 | 222,775,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | from DekoratorPotwierdzenia import DekoratorPotwierdzenia
class DekoratorStopki2(DekoratorPotwierdzenia):
def __init__(self, zamowienie):
super().__init__(zamowienie)
def drukuj(self):
super().drukuj()
self.drkStopka()
def drkStopka(self):
print("STOPKA 2")
| [
"noreply@github.com"
] | gorkaMaksymilian.noreply@github.com |
0eef10b543a679ae323f4025fc2649ebd3f9cf06 | 0c67de0db2d3ef93d6a4b6ea865eee6d41c071ba | /aloja-tools/src/parsers/yarn-parser.py | 2f79d28061a40e6a0c30e8a65fcaeb56e2d2fcbe | [
"Apache-2.0"
] | permissive | Aloja/aloja | 1cbaee62a8456d79a627519874fcb3ec2f92671e | ebd336da944bc46443f9f97fe7253af850c608dc | refs/heads/master | 2021-05-22T08:55:19.366358 | 2021-02-17T14:24:30 | 2021-02-17T14:24:30 | 21,858,831 | 25 | 16 | null | 2017-11-17T15:50:18 | 2014-07-15T12:33:19 | JavaScript | UTF-8 | Python | false | false | 6,531 | py | #!/usr/bin/env python
import sys,os
import argparse
import re
import time
import datetime
import glob
import pprint
import csv
def get_id(line,type):
for word in line.split():
if (type == "application" and "application" in word):
return word
elif (type == "container" and "container_" i... | [
"alejandro.montero.rivero@gmail.com"
] | alejandro.montero.rivero@gmail.com |
c607744fc4be9e2f417a02ea253ce40dd63c83cf | 5548c05a98ae86df08c21a275f028dfc64bd2819 | /data_script2PP.py | 025a4c4e9a298489da618df97cdadcf2ca244d28 | [] | no_license | nanomer/GLUE-Data-Analysis | 999d2c18715aa40784d792e363d20a7c35c45f45 | 8586e798479ef83b80fd7531ba2ce661fd7f75ef | refs/heads/master | 2020-07-29T13:30:39.415595 | 2019-11-23T22:52:31 | 2019-11-23T22:52:31 | 209,821,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,722 | py | #!/usr/bin/env python3
import sys
import xlsxwriter
from xlsxwriter.utility import xl_rowcol_to_cell
import os
from scipy import stats
# ASSUMPTIONS:
# 1. Step size of x-axis is 1 or -1
# 2. Everything is named correctly
# 3. For every IDVG there is a corresponding IDVD file
# 4. Always 0, -20, -40, -60, -80, -100
#... | [
"melissayang@utexas.edu"
] | melissayang@utexas.edu |
2f71df85a3d2d1e020f3b4c9a12f04577e62cffd | 0c2dff339fe515e90dd98bd96c286d3603e6efdd | /hw1/release/secretExchange/naive/utils.py | ce1aa2a540892fe2705e62244265612445744bbb | [] | no_license | KevinPan0508/crypto-HW | e97fb5632e21c30336052762f38cd0e17792cf2a | f94c3df53f93934f86e09fc6a81611c364976c32 | refs/heads/main | 2023-06-19T05:29:35.919399 | 2021-07-09T05:43:10 | 2021-07-09T05:43:10 | 384,327,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,035 | py | #!/usr/bin/python3 -u
import os
import random
from enum import Enum
from Cryptodome.Cipher import AES
class State(Enum):
Initial = 0
WaitKey = 1
WaitMessage = 2
Finish = 3
class Station:
def read(self, prefix: str):
content = input().strip()
assert content.startswith(prefix)
... | [
"k0922322268@gmail.com"
] | k0922322268@gmail.com |
d707e48f2206d0063a2ee821c1c8af3036bea642 | 998195df831258000d53402dd1a0f84e4b08a54c | /resources/virtual/__init__.py | 8ee0ef15ef26eb390ac6b76f609216f0e76cedeb | [
"MIT"
] | permissive | GerasimovRM/Where-I-Am | 2ceb0e1e9b4494ffb672b00a0d2197d3c390cda1 | 58f6f0d1533421890f199dacabe523a447486b9f | refs/heads/master | 2022-12-09T17:06:43.660654 | 2020-03-31T21:39:32 | 2020-03-31T21:39:32 | 249,545,743 | 0 | 0 | MIT | 2022-12-08T03:52:26 | 2020-03-23T21:15:44 | Python | UTF-8 | Python | false | false | 37 | py | from .virtual_user import VirtualUser | [
"romagrizly@gmail.com"
] | romagrizly@gmail.com |
478a63c1e761ce405aaf06043f87d35e372cd8ac | aaded28b4be880ef3635695e6f576463becb7805 | /api/admin.py | 5c27ef06dcad8607856a7f0b3c9e56d7fd6bc275 | [] | no_license | Raghava248/todo_drf | 312038e0557896b657842a5621dc7f963add82a5 | 805103ba9cee872bb15b5a00873116bc96ee65cc | refs/heads/master | 2023-08-25T05:21:44.338950 | 2021-10-29T05:42:14 | 2021-10-29T05:42:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | from django.contrib import admin
from . import models
# Register your models here.
admin.site.register(models.Task)
| [
"raghava.mittu@gmail.com"
] | raghava.mittu@gmail.com |
330f15d9c0a1213fd20d89c663d6431dc1aafdf4 | fd1dd65c5dd4495dba1e94fcf44dc8c45e8908ef | /myenv/bin/pip | 50aa6f472314e96ed16169d483c3949e190e74e5 | [] | no_license | ayushin78/django-blog | 0a1e9eabfa5159696ee98d37eecd9d1ada4bd6a2 | df8334f3c85a7e57d6d4dc81610d5250b4b31a6a | refs/heads/master | 2020-03-21T15:50:05.777763 | 2018-07-08T10:10:16 | 2018-07-08T10:10:16 | 138,735,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | #!/home/ayushin78/djangogirls/myenv/bin/python3.5
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ayushin78@gmail.com"
] | ayushin78@gmail.com | |
e7efebf2086ec9f0d18bc80cfbe417810cd984a8 | 34b3d2bcfb1982ee69a379df90da993ee7df046b | /pybo/models.py | 2e6e73888549915daad574b5404c09a81443bb8b | [] | no_license | swanne-dev/swannepy | aa732ff31eda8bceb9f4566be2200c45dc52cc8d | 7dc2aa215adc0186e8eccaf756a3ab0584c8fe5e | refs/heads/master | 2023-03-25T19:39:49.685541 | 2021-03-20T13:43:05 | 2021-03-20T13:43:05 | 349,740,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | py | from django.contrib.auth.models import User
from django.db import models
# Create your models here.
class Question(models.Model):
author = models.ForeignKey(User, on_delete=models.CASCADE,
related_name='author_question')
subject = models.CharField(max_length=200)
content = m... | [
"swanne.njs@gmail.com"
] | swanne.njs@gmail.com |
dcd624ef125ecb43865c6cf90b0020339955f483 | 87f31b789750f6b545d6a79bd0b7028ebf4126c7 | /vislab/_results.py | 1716115a35aa0d860c71db36fd53bb1bdebffacc | [
"BSD-2-Clause"
] | permissive | hertzmann/vislab | db4d1b9e63e9bb8a33e491cff433e02c0315ca81 | fcded208637fb51edfeaef1bde0bf766f9af1941 | refs/heads/master | 2021-01-24T04:20:32.382941 | 2016-07-12T20:21:28 | 2016-07-12T20:21:28 | 13,571,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,575 | py | import os
import pandas as pd
import cPickle
import numpy as np
import vislab
def load_pred_results(collection_name, cache_dirname, multiclass=False, force=False):
"""
Return DataFrame of prediction experiment results and Panel of per-image
predictions.
"""
if not os.path.exists(cache_dirname):
... | [
"sergeykarayev@gmail.com"
] | sergeykarayev@gmail.com |
d3631e9c43a81f9d30d6e22c349820df2729ef75 | 6c362fb828bf364f36f93a00e85d8fdaeaafc64d | /poe-sledgehammer/poe-sledgehammer.py | 263b0d59296b583f58c470c176d651ddd12a2137 | [] | no_license | jcostom/pyez-toys | 8ded93428a831307ea8561066b04babdd9c05a4d | 806b71476c39e3427b93ef52c674a66b8fb4c4c6 | refs/heads/main | 2023-08-16T00:11:18.175728 | 2023-07-27T02:52:35 | 2023-07-27T02:52:35 | 58,584,766 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,970 | py | #!/usr/bin/env python3
# This tool is a blunt instrument - HANDLE WITH CARE.
# It disables PoE on all ports, commits the configuration,
# then executes a rollback 1 and commits again.
# You would only use this tool if you wanted to completely
# disable PoE then rollback that change.
import argparse
import logging
imp... | [
"jcostom@jasons.org"
] | jcostom@jasons.org |
0988817d20c1b9ff5aeed8eef0f7a93ff66730ed | 4774d125ec2006e803788737e95a5a76b6df145f | /python-packages/contract_wrappers/src/zero_ex/contract_wrappers/order_conversions.py | a639ffe1c524751abf3d0b0d1cf09538b6aa6d5e | [
"Apache-2.0"
] | permissive | 0xProject/0x-monorepo | 6e71def8d1f0548fdc5f49b5d404f89e66afaca1 | 53b5bb16d8b4c9050a46978b6f347ef7595fe103 | refs/heads/development | 2023-07-10T02:38:56.466840 | 2021-04-24T01:16:16 | 2021-04-24T01:16:16 | 92,181,371 | 1,132 | 527 | NOASSERTION | 2021-06-26T03:02:14 | 2017-05-23T14:17:33 | TypeScript | UTF-8 | Python | false | false | 7,334 | py | """Utilities to convert between JSON and Python-native objects.
Converting between the JSON wire format and the types accepted by Web3.py (eg
`bytes` vs `str`) can be onerous. This module provides conveniences for
converting Exchange structs between JSON and Python objects.
"""
from copy import copy
from typing impo... | [
"noreply@github.com"
] | 0xProject.noreply@github.com |
ccfcc55c4c14c4b986184af7508e852d73a51294 | 124537802d65a56bcc8221196add1d3b62bb46d9 | /mysite/application/admin.py | f9d77ee33249e1619d52b0b003ec40d2bd308b71 | [] | no_license | Watson-Sei/Django-Girls-Tutorial | a9c749c334ea0c0786c80fa8a9492ee29a222184 | 3e5c3735aa25e8f819228d34a50c47c0820fafc3 | refs/heads/master | 2022-12-09T13:13:29.430290 | 2020-07-30T04:38:56 | 2020-07-30T04:38:56 | 247,466,139 | 2 | 0 | null | 2022-11-22T05:23:55 | 2020-03-15T12:55:09 | Python | UTF-8 | Python | false | false | 312 | py | from django.contrib import admin
from .models import Post,Like,Question,QuestionLike, Question2
from markdownx.admin import MarkdownxModelAdmin
admin.site.register(Post)
admin.site.register(Like)
admin.site.register(Question,MarkdownxModelAdmin)
admin.site.register(QuestionLike)
admin.site.register(Question2)
| [
"seinabehack@gmail.com"
] | seinabehack@gmail.com |
b9b1e7f05c541f5842356071d917aea0d8095dd2 | e6ea9634d8ed01fcd203ff65bfdc350c735c485d | /maskrcnn_benchmark/structures/bounding_box.py | 05b8aa9dfacb51f5e3cf64fa1d794afd6bb4da5a | [] | no_license | salvatorepolizzotto/oshot_detection | 5edbbf5be062f3924cfe71a657e4cb526296a75f | a1259d34e4c66156bbbf048d1e9655e8ad24c336 | refs/heads/master | 2022-12-15T07:26:57.934777 | 2020-08-26T18:37:23 | 2020-08-26T18:37:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,165 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import torch
# transpose
FLIP_LEFT_RIGHT = 0
FLIP_TOP_BOTTOM = 1
ROTATE_90 = 2
ROTATE_180 = 3
ROTATE_270 = 4
class BoxList(object):
"""
This class represents a set of bounding boxes.
The bounding boxes are represented as a Nx4 Tensor... | [
"ant.dinnocente@gmail.com"
] | ant.dinnocente@gmail.com |
e7dc87d8f60339b7be557f18f118cc68c3545903 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2098/49405/273048.py | cff498a9698319a280edf449fde35bbd033aa422 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | a = int(input())
b = 1
while b < a:
b *= 26
for i in range(b, 0, -1):
print(chr(a // b + ord("A") - 1), end="")
a %= 26
b //= 26
if a > 0: print(chr(a + ord("A") - 1)) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.