blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
369622df5c701abf16f6bf72301fcc3bffb351ea | b521dc15d543d0af5e686288c9c75bae1699c43e | /pf9_saml_auth/_loading.py | f4cbe1f600aa8ed8c3e54045ddb4c8474a9dbdbe | [
"Apache-2.0"
] | permissive | platform9/pf9-saml-auth | 238aeafa7adf6cffce4c21d5dfa551e3582edbb6 | be7d1185a4995fcdd2a72914a627767b9dbe0c7b | refs/heads/master | 2022-02-11T02:52:56.949512 | 2022-02-02T09:31:15 | 2022-02-02T09:31:15 | 74,042,883 | 4 | 4 | Apache-2.0 | 2020-04-30T12:43:57 | 2016-11-17T15:57:27 | Python | UTF-8 | Python | false | false | 2,862 | py | # Copyright 2018 Platform9 Systems, Inc.
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy
# of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in wr... | [
"blake@platform9.com"
] | blake@platform9.com |
7b9d04e66e845f505ab372d46b372709360fb3a1 | 88b7ca99fc3d2a849aab70998e076bfe209d83fb | /astra.api/leaves.api.python/app.py | cf56d6f1f769e8972633857a6d2e56a65bed8bb2 | [] | no_license | deepakpal9046/cassandra.api | d6b6f0fae80370d70d05a90ad15026444134776b | ee12ab2c36121a2f5551eb8bcb1727fd36e3ec57 | refs/heads/master | 2022-11-07T20:55:50.980747 | 2020-06-24T12:11:44 | 2020-06-24T12:11:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,580 | py | from cassandra.cluster import Cluster
from cassandra.auth import PlainTextAuthProvider
import json
import requests
from datetime import datetime
from flask import Flask, jsonify, request, abort, Response
import hashlib
from bs4 import BeautifulSoup
import re
import readtime
#Helper method for filling in other fields ... | [
"onanomnachi@gmail.com"
] | onanomnachi@gmail.com |
35f7d533079f2ce00d0fad40cdd4c2be49cc93a6 | a4db807dd7834485f0a3b3052493a1e265afbd3c | /captionGen/imagemovie/urls.py | 5c4a4fd3f8e2808d4f945b949585023f8099e876 | [] | no_license | Justin-Yuan/AI-Hackathon-Challenge | 46721335083e81bdf7aaa1483cc3867a08c4249c | ce2a7d7601831b20e46f6468e687a07d1dcd9da0 | refs/heads/master | 2021-03-16T09:20:09.124576 | 2017-06-26T16:07:43 | 2017-06-26T16:07:43 | 94,962,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | from django.conf.urls import url
from django.contrib import admin
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^getCap/', views.getcap_ajax, name='getcap'),
] | [
"chuahn.chen@mail.utoronto.ca"
] | chuahn.chen@mail.utoronto.ca |
640af0d793d6d48d54700b61b37fc6fcd564d74e | c79025a46ab0ffc0bf8efe49219e745a52c74f5c | /levels/repository/game_repository.py | ec9dd014475267d87e5059bf6270efda9a810f91 | [] | no_license | iconbet/daolevels-score | 00a3dc84b8795353b792b5d77c342888981f9041 | d0721567cb334b391481fe3dfd20e651a12a37f1 | refs/heads/master | 2023-05-03T00:46:51.887663 | 2021-05-27T04:37:11 | 2021-05-27T04:37:11 | 299,701,491 | 0 | 0 | null | 2021-05-27T04:37:12 | 2020-09-29T18:16:14 | Python | UTF-8 | Python | false | false | 8,804 | py | from ..scorelib.id_factory import *
from ..scorelib.utils import *
from iconservice import *
from .game_model import *
from ..game.consts import *
# ================================================
# Interface to the game repository
# ================================================
class GameNotFoundException(Excep... | [
"iconbetcomadmin@protonmail.com"
] | iconbetcomadmin@protonmail.com |
f8482f84e76853cc7b2a70e7460d1e2cd3e290db | 6ac77834909c485686638d27c0bf41e6d1765cf7 | /src/database/module_user.py | b042699456da0a2849bcae55811c5f87ed51da84 | [] | no_license | YangXinNewlife/gears | 4144e451861efb0f3ae1d738eb5fcd6cec46a833 | 486b1ce5a7b8d8682bb1394be8f5dd6ae0fca837 | refs/heads/master | 2021-01-20T01:41:30.074696 | 2017-05-26T08:17:45 | 2017-05-26T08:17:45 | 89,316,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,005 | py | #-*- coding:utf-8 -*-
__author__ = 'yx'
from module_base import *
import sys
reload(sys)
class ModuleUser(ModuleBase):
def __init__(self, table="t_user"):
self.schema = "ehc"
self.table = table
self.table_name = "\"%s\".\"%s\"" % (self.schema, self.table)
# def __init__(self, table_... | [
"yangxin@zetyun.com"
] | yangxin@zetyun.com |
09b89ca51e6bbbbe4c1935147f3a39a1116fcd05 | 844dade1ffa4c7e2e6aa0425d13e2bf2906e2518 | /projectile.py | b37146f4b2ac9f75b1977773b5726dcccb5807e3 | [] | no_license | antoineba35/jeux | 191c3d7efbe2e9d289bb2651bcf1e87140fe926b | 50df12bdb109f5825e194f20e71566398e62cfbb | refs/heads/master | 2023-03-24T10:02:45.460544 | 2021-03-21T17:33:25 | 2021-03-21T17:33:25 | 350,070,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | import pygame
#définir la classe qui va gérer le projectile de notre joueur
class Projectile(pygame.sprite.Sprite):
#définir le constructeur de cette classe
def __init__(self, player):
super().__init__()
self.velocity = 5
self.player = player
self.image = pygame.image.load('ass... | [
"61510528+antoineba35@users.noreply.github.com"
] | 61510528+antoineba35@users.noreply.github.com |
6889d8e59a67f9193a50dcbe67b3a7bcee624f70 | 2a0e31e16dbec7bd8d9f1e311c7bc7f062991c9b | /2018/day6.py | d839150b74e86fec12a1cde13f1c253c90cea6e5 | [] | no_license | Wytzepakito/AdventOfCode | 2c71642c3b3a76313db4ce7b14ed5aaf9234452d | 348dda36ad9d17a22bae1ed7ebbac583789e21e6 | refs/heads/master | 2023-05-26T02:26:56.804225 | 2023-05-21T15:14:50 | 2023-05-21T15:14:50 | 326,149,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,963 | py | string="""cady
ipldcyf
xybgcd
gcdy
dygbc
rwhvugmspoyzfbnlcxqtdj
avqdpntxrclufbjswgzh
qbvwgzpfsrjtdxnculh
jhrpclwdxgqibfsntzuv
gxqezucvaowipbsdr
zvoqciegxabwudrps
gecawpxvdrqzioubs
vlta
tavl
latv
znjwr
grzynwjdpe
jnrwz
mldxjabiuckefzrhywogtq
hgflyratmezidxowc
gwiavxlrstzfchymoed
oyedcrlfmawhxvzgit
kl
kql
kl
lk
lk
... | [
"wytze.gelderloos@booking.com"
] | wytze.gelderloos@booking.com |
710bafb6e75878a0ed6c139caf4c0f43bac256d9 | 66f4c011237e9fcad12d5f5508589b01a66a2a91 | /neural_sp/models/modules/attention.py | 23eead75b60255abae0090078e2902d3e3121e7e | [
"Apache-2.0"
] | permissive | nikhil-garg/neural_sp | 5004624ed1c23ff1ce5fefba1538e25eabab1e8c | 0df9107bf2515f6fba6d2a5910c6878daa06193f | refs/heads/master | 2023-01-22T14:44:17.338339 | 2020-10-31T13:49:50 | 2020-10-31T13:49:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,022 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2018 Kyoto University (Hirofumi Inaguma)
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""Single-head attention layer."""
import numpy as np
import torch
import torch.nn as nn
class AttentionMechanism(nn.Module):
"""Single-head attention... | [
"hiro.mhbc@gmail.com"
] | hiro.mhbc@gmail.com |
f1860b88fd3a16e0fc14778977b69c573bb604b4 | 9c5d600e6798af39e822a87fa9cfc159d09f200e | /Ejercicio 2.py | f2ed321f6ff0cb99f94c6e133ba26ccae0e6703c | [] | no_license | Guillermoneme95/Curso-Python | 14cd40a0fccb3a4e2edc2f8552a78716acce85d8 | ec26a07ffe42cd132cb6161f8a9b5778eb9df565 | refs/heads/main | 2023-03-27T02:46:22.722584 | 2021-03-18T22:47:40 | 2021-03-18T22:47:40 | 349,229,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | '''Escriba un programa que tenga dos listas y que a continuacion, cree las siguientes listas
(en las que no debe haber elementos repetidos)
-Lista de elementos que aparecen en las dos listas
-Lista de elementos que aparecen en la primera lista pero no en la segunda
-Lista de elementos que aparecen en la segunda l... | [
"noreply@github.com"
] | noreply@github.com |
62a3e940766f49a1361fa806c29ca65246258810 | a6da9040a6dad7db109cc163b76acd3e6c8be56f | /hafta01/ders06.py | 8dfdb173da15c242146905782db437de1c0a0502 | [] | no_license | sinanurun/Python_8181 | f04677ada7f1f6daadddaaf49211b20e8197ad7f | 710b2bc4573d22988376fd3680c5be0dc011f5bc | refs/heads/master | 2020-04-27T13:14:14.544839 | 2019-04-15T04:50:33 | 2019-04-15T04:50:33 | 174,362,253 | 21 | 10 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | # ad = input("adınız nedir")
#
# if ad == "fatih" or ad == "serhat":
# print("bilişmcisin")
# else:
# print("farklı branştasın")
cinsiyet = input("cinsiyet")
meslek = input("mesleğiniz")
if cinsiyet =="kadın" and meslek =="bilisim":
print("8 Mart dünya kadınlar gününüz kutlu olsun")
else:
print("her g... | [
"sinanurun24@gmail.com"
] | sinanurun24@gmail.com |
f384f7043c6fe8a175a0cbb3f67e5e18f17a0766 | 77ab8707d588cb9b9186926d37a075997912958d | /restaurants/migrations/0006_remove_restaurantlocation_my_date_field.py | ffb7ac40317884d38f16786a50772d50b2092c62 | [] | no_license | chanduchowdary/trydjango1-11 | 6df33ec7f6c81c26cf8f20d5100f3b879dc9cd09 | bc755b190825e726edac90aeca987cdebde8ce70 | refs/heads/master | 2021-01-15T11:39:13.874054 | 2017-08-10T22:49:58 | 2017-08-10T22:49:58 | 99,629,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-07 19:29
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('restaurants', '0005_auto_20170807_1920'),
]
operations = [
migrations.RemoveField(
... | [
"MPROGA1\\chandra.sekhar@a1-m-d02.mproga1.com"
] | MPROGA1\chandra.sekhar@a1-m-d02.mproga1.com |
31d37ea5367ad2ba461b4028cc146828551bad82 | 131ccf66fb787e9b1f0773a25fa518d1f2a3c5d0 | /gui_programming/menu_demo.py | 4621009871473d50b9017a2adab00a3842a40797 | [] | no_license | jocogum10/learning-python-programming | a0ba62abde49fd79762bcb7ba4a94bf8126afa77 | 035858bd332e3970d95db8bce7b1175e450802db | refs/heads/master | 2020-07-07T17:08:00.743196 | 2019-12-13T05:32:47 | 2019-12-13T05:32:47 | 203,416,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,770 | py | #!/usr/local/bin/python
"""
Tk8.0 style main window menus
menu/tool bars packed before middle, fill=X (pack first=clip last);
adds photo menu entries; see also: add_checkbutton, add_radiobutton
"""
from tkinter import *
from tkinter.messagebox import *
class NewMenuDemo(Frame):
def __init__(self, parent=None):
... | [
"jocogum10@gmail.com"
] | jocogum10@gmail.com |
5555d92655b3c29e89c2358b93be0e313d1b0343 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03103/s900243702.py | 79c2efdabaa3a89657cec5473f6e626b9bfafc0b | [] | 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 | 369 | py |
n,m = map(int,input().split(" "))
li = []
for i in range(n):
a,b = map(int,input().split(" "))
li.append((a,b))
li.sort()
result = 0
count = 0
flag = False
for i in range(m):
for j in range(li[i][1]):
result += li[i][0]
count += 1
if count == m:
flag = True
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
10d2aace338c8dc62b7801769ff4021d7196fd15 | 60a05514f503c5b3e3219673300bcbbb4ffd4f73 | /marcelo/ROSPlan_exp1_exp2/devel/lib/python2.7/dist-packages/rosplan_knowledge_msgs/srv/_GetDomainTypeService.py | 368be4291d5354e5815bec6a6ad48eee23908402 | [] | no_license | marceloparavisi/term-projects-2016 | b27a34be59cfdd502f1cbfa4009ac1552f0d166c | 5c0dba5b28be1d375566a5a5d4473f5553b9eb37 | refs/heads/master | 2020-06-19T13:13:23.154921 | 2016-11-27T18:17:10 | 2016-11-27T18:17:10 | 74,902,995 | 0 | 0 | null | 2016-11-27T17:28:53 | 2016-11-27T17:28:53 | null | UTF-8 | Python | false | false | 7,898 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from rosplan_knowledge_msgs/GetDomainTypeServiceRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class GetDomainTypeServiceRequest(genpy.Message):
_md5sum = "d41... | [
"marcelo.paravisi@osorio.ifrs.edu.br"
] | marcelo.paravisi@osorio.ifrs.edu.br |
8efa01ed76eae5849d15dc59d388ddc79b4635a7 | f1e2048ab6cf4c425b8f41759bc175fab2e00e14 | /formateoDeListas.py | d1787cf6f438e85708d107af0615d6b5db07b2e1 | [] | no_license | apcl/PythonSomeScript | c88fa12986019bc32eac63478044140adaccc8f5 | 04a2900c900f88b6718c638c4395192acabafac5 | refs/heads/master | 2021-01-21T05:36:52.592002 | 2016-07-28T18:06:58 | 2016-07-28T18:06:58 | 63,792,133 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | lista = ['a','b','c','h']
def transList(listaNew):
lista.sort()
listaFin = []
lenLista = len(lista) - 1
loop = 0
while loop <= lenLista:
itemList = 0
lista2 = []
while itemList <= loop:
lista2.append(lista[itemList])
itemList = itemList ... | [
"noreply@github.com"
] | noreply@github.com |
bc728071d8ce05a274be6f3ab7e50341062153cc | a127d0feb3bcf4f2581f385bb24f2b789c771c9c | /2syo/17.py | 81b2851a04ffe18296b8930111e36f4c0080e7e3 | [] | no_license | NgoVanDau/nlp100knock | 01383e4cc5a1470508744668103b9ea1a238b892 | 3ef63c0d2dfb55c0e6a31aced645f284325a98a5 | refs/heads/master | 2023-03-22T13:19:23.932429 | 2018-08-05T05:27:11 | 2018-08-05T05:27:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | '''indexが入ってしまうので少し意図とずれますが,とりあえず先に進みます'''
import pandas as pd
# f = open('hightemp.txt', 'r')
# lines = f.readlines()
# f.close()
# hightemp = pd.read_table('input/hightemp.txt')
# print(hightemp)
cols = ['prefecture','city','degree','date']
hightemp = pd.read_table('input/hightemp.txt', header=None)
hightemp.colum... | [
"kota.k.1132.pda@gmail.com"
] | kota.k.1132.pda@gmail.com |
d08267f515d69e1eef0c178c63de1c3b573886df | 925f09617b8351ce669d4c9195f07a17c22efe7f | /pythontestprogramming/文本框.py | eb30ea57c19872f60d1cd1841faddd25ab000925 | [] | no_license | Lmuxin/pythonTest | 188294db178ae05338a4aa7ac4f3f6c136e2baff | 54bff2b9b53103ab932606feae1d9f2ee316ee6a | refs/heads/master | 2022-12-15T13:24:08.776768 | 2020-08-29T10:56:38 | 2020-08-29T10:56:38 | 291,253,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | from tkinter import *
root=Tk()
Label(root,text='账号:').grid(row=0,column=0)
Label(root,text='密码:').grid(row=1,column=0)
v1=StringVar()
v2=StringVar()
e1=Entry(root,textvariable=v1)
e2=Entry(root,textvariable=v2,show="*")
e1.grid(row=0,column=1,padx=10,pady=5)
e1.grid(row=1,column=1,padx=10,pady=5)
d... | [
"209459110@qq.com"
] | 209459110@qq.com |
87e87f00a5c20ffdfe4b0152d20cec17ef61e0d5 | 89a675a65084ad56cc924e66c2bf9d403254e7f3 | /clubcarmona/migrations/0022_auto_20160824_1918.py | fdb8e110243b0f7f5ccda8fdf5caca68a49ec490 | [] | no_license | SebastianUtreraBonet/clubcarmonapaez | 80bc6fad3cf5aaf6195ffa19b65d5766a3e9eea6 | cbb3f0065f8efbad9c79b735c4dd124bad3ef0bd | refs/heads/master | 2021-01-15T15:32:24.194891 | 2016-09-02T12:53:38 | 2016-09-02T12:53:38 | 62,885,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import datetime
class Migration(migrations.Migration):
dependencies = [
('clubcarmona', '0021_auto_20160824_1917'),
]
operations = [
migrations.AlterField(
model_name='pa... | [
"admin1@clubcarmonapaez.com"
] | admin1@clubcarmonapaez.com |
b480d82638b4bd8f35a63ca73e763ad9d980e4d1 | 942e48931509b4c856b8195a3f0be833d0c7b1b2 | /SLX_tools.py | 805cc2f68f64cfbb602679824913c17fd97e3f78 | [] | no_license | stephanieleroux/SHARED_NOTEBOOKS | b1cbb2c3b77879c926ca6f41878c9b4361467cc5 | 9fa16cd5475da05343058b1ebe0f11ecaa0ba6d6 | refs/heads/master | 2023-02-17T14:20:30.164424 | 2023-02-07T14:07:52 | 2023-02-07T14:07:52 | 82,224,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,803 | py | #!/usr/bin/env python
########################################################################
# name: SLX_tools.py
"""
This is a collection of routines to read 3DA data on the server on which i work, and it also contains a few routines i use to extract a subregion of the data and plot a time spectrum o... | [
"leroux.ste@gmail.com"
] | leroux.ste@gmail.com |
4fd6ba69c09912a57f088d6eca85959f9b3d0369 | e84255d04ae9fa46b763c162e4f966cc84737a23 | /Yashika/main/urls.py | cd1cf794ab4236d6a8a630c9fc1f26b947311873 | [] | no_license | friskycodeur/the-uplift-project-assignments | d895eb21de4362dbb1454513a283c0f605464465 | 9ca48bc30c599abd3387b0fb2555c68369bdbd2f | refs/heads/main | 2023-07-27T19:52:22.941198 | 2021-07-19T18:33:37 | 2021-07-19T18:33:37 | 374,764,215 | 5 | 21 | null | 2021-07-20T12:03:44 | 2021-06-07T18:30:24 | HTML | UTF-8 | Python | false | false | 132 | py | from django.urls import path
from main import views
urlpatterns = [
path('',views.index),
path('yashika/', views.yashika)
] | [
"yashikajotwani12@gmail.com"
] | yashikajotwani12@gmail.com |
afef8abb92d0af4654e49110bfda23bb203cb3b5 | af72f2280b14372afc3f1a9d1f034b1a11923d18 | /tugas2/udpfileclient.py | f6e3891d8b71e149dba0f1f06bc994947bec935d | [] | no_license | atikakiki/PROGJAR_05111740000015 | bbfe87c9fedc083cb11d963572d641abc659b7e8 | 6b9ac8f4ea512fe2dfa2e4a078c88a387d5e7cf9 | refs/heads/master | 2020-12-28T00:14:09.712382 | 2020-05-20T16:29:18 | 2020-05-20T16:29:18 | 238,117,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | import socket
import os
TARGET_IP = "10.151.254.249"
TARGET_PORT = 5006
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
namafile="bart.png"
ukuran = os.stat(namafile).st_size
fp = open('bart.png','rb')
k = fp.read()
terkirim=0
for x in k:
k_bytes = bytes([x])
sock.sendto(k_bytes, (TARGET_IP, TARGET_PO... | [
"atikarizki41@gmail.com"
] | atikarizki41@gmail.com |
2b0bc666656905d1597df03460c58546c1d69407 | c0e6217fa2922dd726de2af56343e9724deac9f4 | /sparkmach/.ipynb_checkpoints/sparkmach_benchmark-checkpoint.py | a38ed85a54698b0280fea91419fe5f12760da743 | [
"MIT"
] | permissive | gusseppe/sparkmach | 12f4ed6e037371d7b619988bf6929b4525f0e5d1 | fe1f7c4cce43b7958422b18292e25817c9b19e1b | refs/heads/master | 2022-09-09T22:21:58.197303 | 2022-09-01T10:55:03 | 2022-09-01T10:55:03 | 69,617,514 | 1 | 0 | null | 2016-09-30T01:18:09 | 2016-09-30T00:00:05 | Python | UTF-8 | Python | false | false | 2,610 | py | import bus_times
import os
import define
#import analyze
import prepare
import feature_selection
import evaluate
import tools
from pyspark.ml.feature import StringIndexer
from pyspark import SparkContext, SparkConf
from pyspark.sql import SQLContext, Row, SparkSession
from pyspark.sql.types import *
#name = "datasets... | [
"hackersvlc@gmail.com"
] | hackersvlc@gmail.com |
19842f088f7b8feaf1c34853366f4f1851fb997b | 9303910239ca531d512460553e291960f3b0bd1c | /setup.py | 866ecd51fea15b427bb5e38717130887e781a264 | [
"BSD-3-Clause"
] | permissive | basnijholt/pyfeast | 2c81e67b221a2450f514b7da853342d91eae54bd | b6d8832b3a101900ed8b50127c1884ef74b34750 | refs/heads/master | 2020-03-18T08:06:20.356311 | 2018-05-23T18:08:54 | 2018-05-23T18:33:48 | 134,490,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,208 | py | #!/usr/bin/env python3
import configparser
import sys
import os.path
import numpy
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
from create_cython_files import create_feast_pxd, create_feast_pyx
def guess_libraries():
"""Return the configuration fo... | [
"basnijholt@gmail.com"
] | basnijholt@gmail.com |
4ba22a2cd9579de26bad0952e3b979925435e5ce | 1763b41a702b8e8b15e3767676fb201de927cca6 | /Yelp_CF.py | 09913bdba4902eb3c7adf26662e19e3115f1eda4 | [] | no_license | chixujohnny/Yelp_project | fe81701d642729cf850c1a4adf5734cc052561d3 | 844da018885b107246c39c1942cec0575e051b59 | refs/heads/master | 2021-01-12T06:23:22.318169 | 2017-05-11T10:42:10 | 2017-05-11T10:42:10 | 77,352,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | # coding: utf-8
#####################
# 基于协同过滤的推荐 #
#####################
import json
def CF_Data_Preprocess(review_path):
# 搞一个 dict
# {'user_id':['business_id', 'stars', 'date']}
User_Rate_Dict = {}
lines = open(review_path)
for line in lines:
line_json = json.loads(line)
... | [
"1390463349@qq.com"
] | 1390463349@qq.com |
9d762fd0e7c422218e547c5cb69f8b1a0f8bdd98 | ca1151bb86a2445d74b24e6ec27c353a36cc511e | /setup.py | d932b3a8d81634b19ad4eeaced1b1a66de5c8646 | [
"MIT"
] | permissive | williamfzc/stagesep2 | 6739c8f32a5fb81f4907e92aa953b2b2d437cbdd | 20c00187c86e8b807bbb3373f58918a575c2ccc9 | refs/heads/master | 2020-04-06T22:06:21.683906 | 2019-08-17T10:07:31 | 2019-08-17T10:07:31 | 157,824,967 | 22 | 3 | MIT | 2019-03-13T07:55:29 | 2018-11-16T06:49:13 | Python | UTF-8 | Python | false | false | 865 | py | from setuptools import setup, find_packages
setup(
name='stagesep2',
version='0.2.6',
description='Analyse, and convert video into useful data.',
author='williamfzc',
author_email='fengzc@vip.qq.com',
url='https://github.com/williamfzc/stagesep2',
packages=find_packages(),
license='MIT... | [
"178894043@qq.com"
] | 178894043@qq.com |
8418799c18e15d8c13597f3980d03bba15c71a7f | 5c9dd8aa0bd7a7feec1a3e8800d4c21b05efb90f | /tests/test_check_password.py | 19fcd4dc3345f7a191f096876b04d37d3cda5b82 | [
"MIT"
] | permissive | johneastman/Diceware | 36216519647e80dce36629269963c05e60816026 | ee838ad2d7da62dde5bee455b8224ecf1e6146ce | refs/heads/main | 2022-03-02T00:56:37.482933 | 2022-01-27T00:42:02 | 2022-01-27T00:42:02 | 141,037,282 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,809 | py | """A command-line tool for generating passwords using the Diceware method.
MIT License
Copyright (c) 2018 John Eastman
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | [
"radon@Johns-MacBook-Pro.local"
] | radon@Johns-MacBook-Pro.local |
50919b9b4b4fc7e90b50db101a01e081dc6c81d0 | 833b637c394ef03f742c8d233da064a0263cd3f4 | /scrolling-text-from-file.py | afe37fdc430f721ee7e012dae84567768a36a6d8 | [] | no_license | jdepp/LED-Matrix | 826af1450ce4a9d11e73aed529ced3bdd08ac41a | dd2ec8d8ab12e8089baff384602c959c4b994751 | refs/heads/master | 2020-03-19T00:59:42.511346 | 2018-06-16T16:51:08 | 2018-06-16T16:51:08 | 135,515,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,846 | py | import time
import sys
import os.path
from os import path
from rgbmatrix import RGBMatrix, RGBMatrixOptions, graphics
from PIL import Image
if(len(sys.argv) != 2):
print("Need 1 arg: name of the file to be read")
sys.exit(0)
# Configuration for the matrix
options = RGBMatrixOptions()
options.rows = 16
option... | [
"jmd221@pitt.edu"
] | jmd221@pitt.edu |
ed198b0758dac5003ce09351d4079cb5619e0763 | 2855e3d71e4d1df1b71df7f7d20dd6461cc73899 | /demo.py | 0900f8d2f6b0986f7e2b2ad152c0199ce958f6d0 | [] | no_license | geofrey/recombine | 397f0a9810af4279ebcf1ab86989ab87f2a863e1 | 7b000434dfe49bf30a04009fb9b5cbdbd2981324 | refs/heads/master | 2021-06-22T06:29:29.995269 | 2020-04-04T16:38:25 | 2020-04-04T16:38:25 | 100,722,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,349 | py | #!/usr/bin/python3
import pygame
import time
from abstract_animation import Animation
pygame.init()
surface = pygame.display.set_mode((500,500))
window = surface.get_rect()
throttle = 1.0/30
global_y = 0
class Slider(Animation):
def __init__(self):
now = time.time()
super().__init__(now, now+5)
... | [
"nuez.jr@gmail.com"
] | nuez.jr@gmail.com |
46c9b8b47c3cd345f702bc36f2b15a40bbc41c16 | b2392918eb6a0f55aecb3dd16d2d0104f0b2454b | /afii/inventory/views.py | d6dd6e48f6de6e77c771772a30bfee6fdb99155b | [] | no_license | kovalewvladimir/afii | f6f880dd5170c0877c031af5582d16914c9ef636 | e945778223a20c8227604fd634e8ef4590d91d68 | refs/heads/master | 2022-05-01T09:36:12.109654 | 2020-03-24T06:44:04 | 2020-03-24T06:44:04 | 65,185,330 | 1 | 0 | null | 2023-09-05T10:57:20 | 2016-08-08T08:07:28 | Python | UTF-8 | Python | false | false | 3,509 | py | from django.utils.decorators import method_decorator
from django.contrib.auth.decorators import login_required
from django.shortcuts import get_object_or_404
from django.views.generic import ListView
from inventory.table import Button
from space import models
@method_decorator(login_required, name='dispatch')
class ... | [
"kovalew.vladimir@gmail.com"
] | kovalew.vladimir@gmail.com |
fead0cca964ebd1f00c689804d51ce2713ebd14d | 2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5 | /tools/mo/openvino/tools/mo/front/tf/eye_ext.py | 5d3d6a98ec66e62414bd7e1a061691591880c645 | [
"Apache-2.0"
] | permissive | openvinotoolkit/openvino | 38ea745a247887a4e14580dbc9fc68005e2149f9 | e4bed7a31c9f00d8afbfcabee3f64f55496ae56a | refs/heads/master | 2023-08-18T03:47:44.572979 | 2023-08-17T21:24:59 | 2023-08-17T21:24:59 | 153,097,643 | 3,953 | 1,492 | Apache-2.0 | 2023-09-14T21:42:24 | 2018-10-15T10:54:40 | C++ | UTF-8 | Python | false | false | 559 | py | # Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from openvino.tools.mo.ops.eye import TFEye
from openvino.tools.mo.front.extractor import FrontExtractorOp
from openvino.tools.mo.front.tf.extractors.utils import tf_dtype_extractor
class EyeExtractor(FrontExtractorOp):
op = 'Eye'
... | [
"noreply@github.com"
] | noreply@github.com |
35e314afa1dcfeb8ab892aef284463a762a4934d | 01675acfa153b5d67d2b34024b3ee07e7a46802c | /lab-7-syhien/testcases/baseTestcase.py | 430b8dd67779de82ea9af0c21f6ec353eec86673 | [] | no_license | syhien/Nanjing-University-Computer-Network-Lab | 2f68e71912249542317e2a47cdc1c6ab03a8f8c6 | 358ff581de5542fb8113108ec21dd700ff12163f | refs/heads/main | 2023-05-15T19:51:28.708374 | 2021-06-21T11:59:37 | 2021-06-21T11:59:37 | 378,913,572 | 8 | 4 | null | null | null | null | UTF-8 | Python | false | false | 5,235 | py | #!/usr/bin/env python3
import unittest
import time
import pathlib
from http import HTTPStatus
from utils.rpcServer import Calls
from utils.network import curl, createUrl
__all__ = ['BaseTestcase']
class BaseTestcase(unittest.TestCase):
def __init__(self, rpcserver, checkDir, targetFiles,
*args,... | [
"syhien@outlook.at"
] | syhien@outlook.at |
f0ff87f952dbdad6e73da14b8b144422cbe2b991 | 1ee3273f0a1f3073884d99ad65450b0b137982ff | /gamefolder/Multiplication.py | bc6c0867f41cbf00bef7f436ac96c55fb0eeeabb | [] | no_license | ElizaL24/GameDesign2021 | 2ab53c7bc14bf2f459eb5129c4bf9a51b5795aad | f16eceeae86e76bb1a37c804a53a62b5a8a68ed0 | refs/heads/main | 2023-06-07T17:52:22.710670 | 2021-06-27T14:58:41 | 2021-06-27T14:58:41 | 372,859,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | #Eliza Lamster
#6/4/2021
#We are going to print a multiplication table for 2
# Using print statement
# input --> variable is a container to keep data
# They need to have a valid and unique name. Will have unique address
base = 2
var2 = 7
print (1 * base)
print (2 * base)
print (3 * base)
print (4 * base)
print (5 * bas... | [
"lamstere24@greenhill.org"
] | lamstere24@greenhill.org |
2930323535af8a58d68ef73ac15111cc0cad5aab | 1329beaa0a5a11c7fd0da0a7dfcc715a7ec466ab | /issues/tests.py | a75e4682f1d4ad446caa8ee4f8f6a640c513f3ab | [] | no_license | saor48/tracker | c88be329b0c4fe10fc7e58c444b8ef45862dba19 | a1cd1b248fb0e10e9ba3a62ae52092414ac8c8bc | refs/heads/master | 2022-12-10T17:23:10.854997 | 2020-03-27T19:13:42 | 2020-03-27T19:13:42 | 158,866,058 | 0 | 1 | null | 2022-12-08T01:27:39 | 2018-11-23T18:26:00 | JavaScript | UTF-8 | Python | false | false | 332 | py | from django.test import TestCase
from .models import Issue
# Create your tests here.
class IssueTests(TestCase):
"""
Here we'll define the tests
that we'll run against our Post models
"""
def test_str(self):
test_name = Issue(name='A product')
self.assertEqual(str(test_name), '... | [
"saor@ezspeak.eu"
] | saor@ezspeak.eu |
27eed3180da2baf43e1371c07c35c138a088b286 | c1f273bf89dc438d9958e9b77b926f250d22f49b | /Python/Two Arrays and swaps.py | 1c2e02ca0f8aba97ae0fde27f0e45da31a9b9074 | [] | no_license | AhmedGamal710/Problem-Solving-Solutions | c4e625eed014ab7ce5c1fe61c5b76dca5a0c40f2 | b634c74bc8460eed14746ccbea97114d8e995d33 | refs/heads/main | 2023-08-29T00:49:20.308974 | 2021-09-28T14:27:12 | 2021-09-28T14:27:12 | 409,276,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py |
I = lambda : map(int, input().split())
T = int(input())
for _ in range(T):
n,k = I()
a = list(I())
a.sort()
b = list(I())
b.sort()
l,r = 0,n-1
for _ in range(k):
if a[l] < b[r]:
a[l] = b[r]
l, r = l+1,r-1
print(sum(a))
'''
'''
| [
"ag242938@gmail.com"
] | ag242938@gmail.com |
cea4e4dee62916de6a5a27c0bb9c5f3daec34fb0 | e1659d3909f7163d43394fefdbcd9a119516216a | /pltTester.py | 5e123242f957ffe0563236a5583eebeccfadb383 | [] | no_license | parry1233/Pyrthon_practice | 9ec92eacca46bb35699585799174c314897923ab | 0626f5db298524c926553953510356e713718c95 | refs/heads/main | 2023-03-25T01:50:31.730640 | 2021-03-28T16:48:03 | 2021-03-28T16:48:03 | 336,991,244 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | import matplotlib.pyplot as plt
dataX = [0,0,2,3,4]
dataY = [0,1,3,8,9]
print("The last data of X and Y is: ",dataX[-1],",",dataY[-1]) #-1 means the last variable in arrays
plt.plot(dataX,dataY)
plt.show()
plt.clf #clean up and refresh the plot
plt.scatter(dataX,dataY)
plt.show()
plt.clf
data=[20,100,80,90,50,46,60... | [
"ch.parry1233@gmail.com"
] | ch.parry1233@gmail.com |
4a3b1b573648ba62962d8a0fb045ecc9762ef908 | b8cc1c96aa366adeabc716fa0658aefafd0321cb | /sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/125_certificate_add_new_columns.py | a0d4f90401a4597c2097be15477f8ca3a1bf1a3c | [
"Apache-2.0"
] | permissive | starlingx/config | 0ad00b1f090f56d7373bd9dfaffd33f4947d899f | 18bcdce8164e16fb72c7548783a4538bab9c2002 | refs/heads/master | 2023-08-25T02:26:24.900208 | 2023-08-22T18:10:41 | 2023-08-22T18:10:41 | 238,467,688 | 18 | 15 | Apache-2.0 | 2021-08-31T12:02:50 | 2020-02-05T14:20:07 | Python | UTF-8 | Python | false | false | 852 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (c) 2022 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
from sqlalchemy import Column
from sqlalchemy import MetaData
from sqlalchemy import String
from sqlalchemy import Table
def upgrade(migrate_engine):
meta = MetaData()
meta.bi... | [
"karla.karolinenogueirafelix@windriver.com"
] | karla.karolinenogueirafelix@windriver.com |
2d751778471d2380f1b33864fb939fd9813989c2 | 7a3e6411527e825fab26dcad38201d2c9c29138e | /qc/migrations/0003_add_task_editor.py | 2582f59fafe2635a53b622a947938936b953c4ff | [] | no_license | edward79519/qcsystem | 33513376231bc84fb7350dd8348b5e805660f112 | 49689d18e9f054f84a65fb720603d70952ae0641 | refs/heads/master | 2023-07-09T03:57:21.247044 | 2021-08-09T09:44:51 | 2021-08-09T09:44:51 | 363,846,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | # Generated by Django 3.1.8 on 2021-05-25 19:14
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('qc', '0002_add_task'),
... | [
"edward79519@gmail.com"
] | edward79519@gmail.com |
8e6522b5d9298bc373d900d22c02feb549c6b8dd | 018a699d6b6bd75389fa95e6b602fb1eace072c9 | /Scripts/BowlingScoreCalculatorTests.py | a7e6397164bc79875e40b498ba69fda8ba643b1d | [] | no_license | MartinBR24/BowlingScoreCalculator | 6e227562612629d452807b737996f66bcdcd4033 | a0f76559984b1f0d2b41083f8bbb3c7945fa0e4f | refs/heads/master | 2020-03-12T18:18:18.125826 | 2018-04-24T15:15:55 | 2018-04-24T15:15:55 | 130,757,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,181 | py | import unittest
import os
import sys
# Add the directory to script under test to the Python path (wants absolute paths)
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)) + "/BowlingScoreCalculator.py");
# Do the import
import BowlingScoreCalculator
class BowlingScoreCalculatorTests(unittest.TestCase):
... | [
"mbagge@outlook.com"
] | mbagge@outlook.com |
2e570f8767164bc06f3238c56d727bd5017f2900 | 7e164d1357cf0ce030014085c9fa420e4c5abeb3 | /LeetCode/Subsets.py | 917638a3e6c2227f02c3452d8bb39256ee864add | [] | no_license | patkhai/LeetCode-Python | 82634b23ee08114ddf16c07bc87dcd79815adda7 | ee9ff62a55cc3ffb080a234c99e4f91c83e20e71 | refs/heads/master | 2022-08-11T00:14:13.935565 | 2022-08-02T18:22:17 | 2022-08-02T18:22:17 | 231,704,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | '''
Given a set of distinct integers, nums, return all possible subsets (the power set).
Note: The solution set must not contain duplicate subsets.
Example:
Input: nums = [1,2,3]
Output:
[ [3], [1], [2], [1,2,3], [1,3], [2,3], [1,2], [] ]
'''
#Iteratively O(2^N) O(2^N)space
#Initialize list with empty list inside... | [
"patrick.phyo@gmail.com"
] | patrick.phyo@gmail.com |
cb46d7a694f13221c80daa958dce1233160bbfab | 5bb6560c218129bc523ac5ddaf3fba3f3f687175 | /final.py | 0b5b8ddb2a313ce35c72b3b63b2683228d4b85bb | [] | no_license | Aniket2124/Python-Insight | e7d7178f56f2a9b38258ba14a9c1d587f826e8ba | 6f52b7d48c00e29d0bc665db096c2f74ea688811 | refs/heads/master | 2023-05-13T00:53:49.708841 | 2021-05-15T18:06:46 | 2021-05-15T18:06:46 | 353,270,154 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,684 | py | from random import shuffle
def createDeck():
Deck = []
facevalues = ["A", "J", "Q", "K"]
for i in range(4): # there are four different suits
for card in range(2, 11): # Adding numbers 2-10
Deck.append(str(card))
for card in facevalues:
Deck.append(card)
... | [
"patilaniket04@gmail.com"
] | patilaniket04@gmail.com |
899cc64061decf12bb2bd8c033f3463ca50b0dbf | 4377781898f3a086f891a404068ed552ee6de91a | /accounts/admin.py | c6df8bd8ee754e59a2bab4848ea7e2357dd1c1b1 | [
"MIT"
] | permissive | hbuiOnline/CRM | 0dee1f7ac25e57ad77a53ed9ba5626242f3c09ba | e8535c05d3955ff681af08f5b3b565c71c96ac01 | refs/heads/main | 2023-04-04T09:13:48.292685 | 2021-04-02T01:33:20 | 2021-04-02T01:33:20 | 343,238,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | from django.contrib import admin
# Register your models here.
from .models import * # To import all the model from .models, then specify those in register
admin.site.register(Customer)
admin.site.register(Product)
admin.site.register(Order)
admin.site.register(Tag)
| [
"61067968+hbuiOnline@users.noreply.github.com"
] | 61067968+hbuiOnline@users.noreply.github.com |
066291f00bc82bb4c50fb40d8a3a8cbff7fe0091 | 41a1dcf9675bfabee0428c34ca3bd1d38f1cdb2a | /talleres/Problema_vectores.py | 608dd3ed2ee726e7d14e0692d6049528404b111e | [] | no_license | nikarcia/NicolasGarcia2 | 745eb3d18dc7d400edb2b2100d301f1f3c04fae3 | 484c5e78340cd792be5761be36ac1a7c5bd99712 | refs/heads/master | 2020-04-20T05:34:25.818700 | 2019-11-12T02:02:09 | 2019-11-12T02:02:09 | 168,659,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | #-----------------------------------------------
#Taller problema vectores
#nicolas garcia
#-----------------------------------------------
import matplotlib.pyplot as plt
import numpy as np
from scipy.interpolate import barycentric_interpolate
puntosx=[14.6, 14.7, 14.6, 14.8, 15.2, 15.6, 15.7, 17.0, 17.6, 1... | [
"noreply@github.com"
] | noreply@github.com |
0f4493a58692c4e873baf26363f2c70e10e5f104 | 4680cdcec4a2a7e3fd5141c33234ef2a71afda8a | /main_iris.py | 258bdb3bc7ee79406deaad9a397dc08da156083b | [] | no_license | zzr0702/A-Constant-Approximation-Algorithm-for-Capacitated-Correlation-Clustering-Problem | 29d4bcf3ff9d8fd376c1bc6e668df502bde2bc85 | 567c4018d9e7536f0d130bffa3f917110d041de8 | refs/heads/main | 2023-04-26T13:00:18.397830 | 2021-05-17T06:39:27 | 2021-05-17T06:39:27 | 368,081,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | from JiSai.JiSai_Project_4 import function
from openpyxl import Workbook
import numpy as np
wb = Workbook()
ws = wb.active
N = list(np.arange(10, 30, 10))
PERCENTAGE = [0.15, 0.20, 0.25, 0.35]
for i in range(len(N)):
ws.cell(2+i,1,N[i])
for p in range(len(PERCENTAGE)):
ws.cell(1, p+2, 'U:' + str(PERCENTAGE[p... | [
"zhaozhongrui0702@outlook.com"
] | zhaozhongrui0702@outlook.com |
fdf424eee2f27ab5cace42d7bc08dc5d1a7ca0e7 | 35268b7eb9edad57a80d491cef0b264b1c0706f8 | /trabalho_flask4/trabalho_flask3/Flask/App/home/inscreva_se.py | 3f0be3213c12aee05ddc21cd97e46696bb4318d2 | [] | no_license | RosyProgramming/PyCharmProject | 3b9fbcb06705c07ac2fbb841e9f1632ef66e1907 | a79780db94e5d5e7ce2ef753785307cea5b75369 | refs/heads/master | 2023-07-12T22:10:16.358958 | 2021-08-11T01:08:55 | 2021-08-11T01:08:55 | 394,819,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | from flask.templating import render_template
from . import home
from ...models.formulario import cadastroForm
@home.route('/increva-se', methods=["GET", "POST"])
def comunidade():
form = cadastroForm()
if form.validate_on_submit():
print(form.name.data)
print(form.email.data)
print(fo... | [
"rosanadeoliveira0215@gmail.com"
] | rosanadeoliveira0215@gmail.com |
9733459a54e617651fef38718354a15b84ea3f49 | 1c85b00e551eb18707b1729370b141b6fb8bb91a | /msg_board/bot/app/bot.py | db48fc78ed91e9aceb50b032444618cf1b724d55 | [] | no_license | minyeonmeow/ADLCTF_2020WEB | 55cf6fb4ee2e155c1d330f2b75e6d0ebe779ee03 | 63f755d87616cf71b388534e7a3d7cf3be37eefa | refs/heads/master | 2023-07-10T23:33:26.267864 | 2021-02-21T18:34:10 | 2021-02-21T18:34:10 | 398,244,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,405 | py | # selenium bot written by davidhcefx, 2020.12.16.
import time
import traceback
from urllib3.exceptions import MaxRetryError
from selenium.webdriver import Remote
from selenium.webdriver.chrome.options import Options
from selenium.common.exceptions import WebDriverException
FLAG = "ADLCTF{51mp1e_R3fl3c7!0n_X55_4774ck_-... | [
"davidhu0903ex3@gmail.com"
] | davidhu0903ex3@gmail.com |
bcb2ce087fbad3ae19149873413994e787dc378c | 5bd1dce7d76892de109ebd39c80631de081c5239 | /utils/response_utils.py | 2106415a44bf4d2b291b8237e24aea97bfe71a0e | [] | no_license | nguyenhv01012000/zoohackathon_backend | 363daa43f1e9c45130b43c12f29fac170008391e | 49c1ed3cdce72db596f5129d0d3cdbf866bb9118 | refs/heads/main | 2023-09-04T20:30:03.301620 | 2021-11-15T03:15:31 | 2021-11-15T03:15:31 | 375,674,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | from rest_framework.response import Response
def to_json(
data=None,
error=None,
status=None,
template_name=None,
headers=None,
exception=False,
content_type=None,
):
pre_data = {"data": data, "error": error}
data = {k: v for k, v in pre_data.items() if v is not None}
return Re... | [
"nguyenhd01012000@gmail.com"
] | nguyenhd01012000@gmail.com |
420b7dde5c7f879259a4d295a2879d5337315c01 | 38433574de70ccc0472daeabb614b491ac8526c0 | /sqlalchemy-stubs/dialects/firebird/fdb.pyi | d4d08d972401a15e71addb27f7142773657389cf | [
"MIT"
] | permissive | Parnassius/sqlalchemy2-stubs | 28fd7611a50b60415062fdb6d367da14c9a69462 | 68f8417888456588714fcced1c6799f3eb00ff2d | refs/heads/main | 2023-09-01T18:03:58.568139 | 2021-10-14T17:54:15 | 2021-10-14T17:54:15 | 363,415,451 | 0 | 0 | MIT | 2021-10-14T20:29:03 | 2021-05-01T13:22:32 | Python | UTF-8 | Python | false | false | 402 | pyi | from typing import Any
from .kinterbasdb import FBDialect_kinterbasdb as FBDialect_kinterbasdb
from ... import util as util
class FBDialect_fdb(FBDialect_kinterbasdb):
def __init__(
self, enable_rowcount: bool = ..., retaining: bool = ..., **kwargs: Any
) -> None: ...
@classmethod
def dbapi(cl... | [
"mike_mp@zzzcomputing.com"
] | mike_mp@zzzcomputing.com |
e5f65f77df2260dd3efa5fb59971d518f10a7410 | 481641e0179b5d416a7c48481455874767ae2575 | /Course Schedule.py | c2898ffbfd7fa05912babe048fa6ac2bbf524b85 | [] | no_license | nixonpj/leetcode | 776dad03a9de43a8c046b1ea1bbb3dd5e9f256ca | de756337b11e578e25f6d0cc0c70a22ae0b8fdc5 | refs/heads/main | 2023-05-01T11:38:44.530120 | 2021-05-17T15:13:16 | 2021-05-17T15:13:16 | 304,484,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,949 | py | """
There are a total of numCourses courses you have to take, labeled from
0 to numCourses - 1. You are given an array prerequisites where
prerequisites[i] = [ai, bi] indicates that you must take course bi first
if you want to take course ai.
For example, the pair [0, 1], indicates that to take course 0 you
ha... | [
"nixon.pj93@gmail.com"
] | nixon.pj93@gmail.com |
0b53643e6c106365bda081bdb298e397550c27bd | c40d1eb90464fa61c7c290ccd4f4a6416d7ed2ff | /1094. Car Pooling.py | 3cdb8a616a16184f9f22f3d0baaab05d4e69970d | [] | no_license | mh-rahman/Programming-Practice | 2bebdd5c68490882efefa9e262d2a90bb0da51fa | e4ceb275a6c9a56999289751f13e74548d9cd185 | refs/heads/master | 2021-07-26T12:48:43.158183 | 2020-09-19T22:34:25 | 2020-09-19T22:34:25 | 219,614,371 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | class Solution:
def carPooling(self, trips: List[List[int]], capacity: int) -> bool:
trips.sort(key = lambda x: (x[1],x[2]))
passengers, dropHeap = 0, []
heapq.heapify(dropHeap)
for nPassengers, startLoc, endLoc in trips:
#Drop passengers
while dropHeap and dr... | [
"rahmanhaseeb32@gmail.com"
] | rahmanhaseeb32@gmail.com |
aed28bd0ef2231428b46e295139737e68ba28d41 | 28a222679d77acca49d3c382cdd7ba11309eaa37 | /main-experts-syntax.py | 667ad91ad4dc39711abd1d3f2fd2a104139f7d74 | [] | no_license | mouadmarmouchi/3D-CNN-Gesture-recognition | 11307e9a5b428e04b5619b9c1d907fae5cacdd75 | 99c374bd1c7b0d99715a8392d8359431489c0ffc | refs/heads/master | 2022-01-18T19:10:21.056138 | 2019-07-02T20:45:57 | 2019-07-02T20:45:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,240 | py | #!/usr/bin/env python
# coding: utf-8
# In[2]:
import numpy as np
import cv2
import tensorflow as tf
import matplotlib.pyplot as plt
# In[3]:
from tensorflow.python.client import device_lib
print(device_lib.list_local_devices())
# In[4]:
import os
import math
import pandas as pd
import matplotlib.image as i... | [
"anass.morahhib@gmail.com"
] | anass.morahhib@gmail.com |
2b88f62dd1b9a1df8490fb76cdba99b56462e518 | f58d52bfe0b666846b08ee2e026e539e040f1a82 | /directoryHelpers.py | 6b0aaed3cca35bee33066d36043d80030ab1b803 | [] | no_license | draghan/snakeDirHelpers | c5ee8c8d260d00815e4ed2175d36cc0487691d34 | 8373daef7d08d976b022d083fbff56918e1a46a3 | refs/heads/master | 2021-01-05T08:43:50.714437 | 2020-02-16T20:16:57 | 2020-02-16T20:16:57 | 240,959,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,274 | py | from pathlib import Path
from shutil import move
def is_existing_directory(directory: Path):
return directory.exists() and directory.is_dir()
def ensure_is_existing_directory(directory: Path):
if not is_existing_directory(directory):
raise NotADirectoryError(str(directory) + " is not a dir")
def l... | [
"draghan2@wp.pl"
] | draghan2@wp.pl |
0f86c4a4bcc5d4c3fb54cde5c432c044d8ed5b7c | 5dce9375b343f68bbef1951a9f5294d10b8eb6cf | /app.py | 68dff4a798db6e94056cf28c8947aaaa722b1a42 | [] | no_license | abhigun1234/3ri | 82d40264001855a4fad2206f63f72b2e02b9447a | 60ba8064f1e3e313f2e75d63169ce7d58505b0c9 | refs/heads/master | 2020-03-18T08:59:24.478312 | 2018-05-23T08:28:49 | 2018-05-23T08:28:49 | 134,538,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | from flask import Flask,request,jsonify
from flask import render_template
#from database.dbhelper import *
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
@app.route('/coursedetails',methods = ['POST', 'GET'])
def getCourseDetails():
str={
"courses": [
{
"durati... | [
"AG00341558@TechMahindra.com"
] | AG00341558@TechMahindra.com |
8bb252afb4067b58069f6b9377b10913461f63c5 | c0ec8563efa462cbcdbfba55552fd50f994f6cb0 | /gitee/models/code_forks_history.py | 250e04dc60ae647d80ecb7af6ccc93de3971694f | [
"MIT"
] | permissive | kingreatwill/pygitee | 191487e208f42a42efb3f10d69fe0e40229de768 | 7622314a4dbb08cf2f729b6cdd0a2887b96e394e | refs/heads/master | 2022-12-18T08:10:06.079301 | 2020-09-10T09:05:34 | 2020-09-10T09:05:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,982 | py | # coding: utf-8
import pprint
import re # noqa: F401
import six
class CodeForksHistory(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
... | [
"kingreatwill@qq.com"
] | kingreatwill@qq.com |
864cfe6ca7cb9e8a0d840fa7b0fd3f5bb4df3542 | c7d4b0a7278df76c65108a637be0ee144f3b0edd | /graphite_api/finders/__init__.py | 4b4f76a120412c53cbd1f6dfeaef5925ff3e0f34 | [
"Apache-2.0"
] | permissive | dkulikovsky/graphite-api | e21f0441319e9a58a6f06bfee8369e8d0f13cab8 | f42d14eb2bd8112f12212318f8ca5b6f859b12f0 | refs/heads/master | 2021-01-23T00:25:39.428369 | 2015-07-08T23:27:09 | 2015-07-08T23:27:09 | 38,269,511 | 2 | 1 | null | 2015-06-29T20:26:27 | 2015-06-29T20:26:27 | null | UTF-8 | Python | false | false | 1,546 | py | import fnmatch
import os.path
def get_real_metric_path(absolute_path, metric_path):
# Support symbolic links (real_metric_path ensures proper cache queries)
if os.path.islink(absolute_path):
real_fs_path = os.path.realpath(absolute_path)
relative_fs_path = metric_path.replace('.', os.sep)
... | [
"brutasse@gmail.com"
] | brutasse@gmail.com |
bbc3b2f01d15aefafafc0291fdcd1983564c2963 | 9286d6d6d50794b51f2e7d1a49484481eab76cea | /train.py | 103b91f979fde8d995eb303e337fc99bb8581518 | [] | no_license | oppurity12/BERT-Korean-Classification | 82ba91808eaa4b66858572201a2d4c6c6297bb68 | 9de934d784d9fb21bb52b1265a182e305e5d40fa | refs/heads/master | 2023-04-21T19:44:42.111585 | 2021-05-06T15:49:45 | 2021-05-06T15:49:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,821 | py | from typing import Union
from absl import app, flags, logging
from configparser import ConfigParser
import torch
from transformers import BertTokenizer
from pytorch_lightning import Trainer, seed_everything
from pytorch_lightning.callbacks import ModelCheckpoint, EarlyStopping, LearningRateMonitor
from pytorch_lightni... | [
"namdori61@gmail.com"
] | namdori61@gmail.com |
2fa05b1d216249b5cab111a5a004c50d74328970 | cc43149992c5f79718279ee47e5db4617b1b42e9 | /pytorch_toolkit/nncf/examples/common/models/classification/squeezenet.py | 8bac5c962959fb4ff1fec14ff7328bba41855a48 | [
"Apache-2.0"
] | permissive | tongni1975/openvino_training_extensions | 174be009bb2fedf6bc774426f340960a90635600 | 3ff9796a2fc413564726916d5c11b42738bb40ef | refs/heads/develop | 2020-06-07T19:06:46.120350 | 2020-04-17T11:27:08 | 2020-04-17T11:27:08 | 193,077,317 | 0 | 0 | Apache-2.0 | 2020-04-17T11:47:00 | 2019-06-21T10:12:20 | Python | UTF-8 | Python | false | false | 5,531 | py | """
Copyright (c) 2019 Intel Corporation
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 to in writin... | [
"48012821+AlexanderDokuchaev@users.noreply.github.com"
] | 48012821+AlexanderDokuchaev@users.noreply.github.com |
64c1045202362e9df3a8617adcc31a5af1b480d9 | 5cdd561cbc68168b0302e404478133543ce6dbef | /nven/lib/python2.7/site-packages/django_extensions/management/commands/dumpscript.py | fcb43b1172730c6f0949610eed0fb8ac1785bacb | [] | no_license | whcy/sclm | 4c429e072bb01470f67130127a1d2af9499ccfea | 06317e61ec40d82f09856dcf41922f12254229b7 | refs/heads/master | 2021-01-24T08:20:27.122932 | 2017-06-07T10:59:03 | 2017-06-07T10:59:03 | 93,381,010 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,543 | py | # -*- coding: utf-8 -*-
"""
Title: Dumpscript management command
Project: Hardytools (queryset-refactor version)
Author: Will Hardy (http://willhardy.com.au)
Date: June 2008
Usage: python manage.py dumpscript appname > scripts/scriptname.py
$Revision: 217 $
Description:
Generates a Py... | [
"dvstrom@gmail.com"
] | dvstrom@gmail.com |
4a4f6a87898935031496d356b8102e195edc411c | 40678178b2df7e68e5afcc38d1b138cfbbe72a5a | /Meta/Tools/work-log | 20bfee7f76280799faf06c53334eaa267e158161 | [] | no_license | Tkocz/CG_lab3 | cf0f3783efcfc4addda7e6693b35fd46288a3aeb | c0883a775c1b0a078f4236350532081ea7f32ef2 | refs/heads/master | 2021-06-16T21:17:53.282034 | 2017-05-09T15:28:54 | 2017-05-09T15:28:54 | 89,566,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,645 | #!/usr/bin/env python3.6
#---------------------------------------
# IMPORTS
#---------------------------------------
import argparse
import getpass
import os
import sys
import time
#---------------------------------------
# CONSTANTS
#---------------------------------------
# Meta
AUTHOR = "Philip Arvidsson <phili... | [
"tkocz999@gmail.com"
] | tkocz999@gmail.com | |
e9aaab04f5e0d71796289921761c59e41979baee | 6c388ebc80fb81bb5a2872b6846b3083186895e8 | /emross/utility/calculator.py | ad79a226b70d3fac2aaf50a9b613fc65c9592298 | [] | no_license | cwild/emrosswar-bot | 46cfed71ef900ea8eeedabacf76e5537c1347541 | cd77999fb5fc2d4da0eeaa8048af85cd49177e84 | refs/heads/master | 2021-01-17T08:39:28.365185 | 2015-12-05T22:40:00 | 2015-12-05T22:40:00 | 64,415,407 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,068 | py | from __future__ import division
import copy
import math
from emross.alliance import AllyTech
from emross.arena.hero import Gear, Hero
from emross.military.camp import SoldierStat, DEFAULT_SOLDIER_STAT_MODIFIERS, SOLDIER_STAT_MODIFIERS
from emross.research.studious import Study
from emross.utility.base import EmrossBas... | [
"chris@cryformercy.com"
] | chris@cryformercy.com |
778d357332cacdc19fb547a4c212f8b92c9a0f89 | a549501da5c9095e823ce6ff4170b38296ffeccb | /webBuild/webotron/webotron.py | be4b59c7742c20cb42bb452f33a131e49684a3e4 | [] | no_license | silva918/pythonAWS | eacedc14d1fb96debccecf7fdda90beb6569b384 | dd3798bb4f00eca8ba44ce8021f433b2330f2214 | refs/heads/master | 2022-02-01T21:33:47.839508 | 2020-02-18T15:05:11 | 2020-02-18T15:05:11 | 241,165,447 | 0 | 0 | null | 2022-01-21T20:17:13 | 2020-02-17T17:18:01 | Python | UTF-8 | Python | false | false | 551 | py | import boto3
import click
session = boto3.Session(profile_name='calmCluster')
s3 = session.resource('s3')
@click.group()
def cli():
"Webotron deploys websites to AWS"
pass
@cli.command('list-buckets')
def list_buckets():
"List all s3 buckets"
for bucket in s3.buckets.all():
print(bucket)
@cl... | [
"mjsilva918@gmail.com"
] | mjsilva918@gmail.com |
0c51ebf65252ca92623f48ee3e31a27e7172a463 | 385cfbb27ee3bcc219ec2ac60fa22c2aa92ed8a0 | /ThirdParty/libtorrent-rasterbar-0.15.6/bindings/python/simple_client.py | 57b768eb4016c69c94062d05ebbe6f8ed61c45ba | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | palestar/medusa | edbddf368979be774e99f74124b9c3bc7bebb2a8 | 7f8dc717425b5cac2315e304982993354f7cb27e | refs/heads/develop | 2023-05-09T19:12:42.957288 | 2023-05-05T12:43:35 | 2023-05-05T12:43:35 | 59,434,337 | 35 | 18 | MIT | 2018-01-21T01:34:01 | 2016-05-22T21:05:17 | C++ | UTF-8 | Python | false | false | 868 | py | #!/bin/python
# Copyright Arvid Norberg 2008. Use, modification and distribution is
# subject to the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
import libtorrent as lt
import time
import sys
ses = lt.session()
ses.listen_on(6881, 689... | [
"rlyle@palestar.com"
] | rlyle@palestar.com |
1772d683502fc9f664f1d57a65d22f3ba4895777 | ed4c280468176d1ad4aeebdf6f38e32189649142 | /Module 01/Latihan soal/ppt03-01.py | e8f3cbe3c824d302e3ffbbefef70a2f59792ab2f | [] | no_license | faridrah0514/JC-Data-Science | 7d821e93ada2735fa02a8a837fac4108a21653fa | f676e0ac22ef57e1d08d4d72c12a8e963cab47cf | refs/heads/master | 2020-09-05T19:40:04.712762 | 2019-12-17T12:11:27 | 2019-12-17T12:11:27 | 220,194,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | def segitiga(x):
maks=x
for _ in range(x):
print("* "*maks)
maks-=1
segitiga(6)
| [
"fithrirosalia@Pithes-MacBook-Air.local"
] | fithrirosalia@Pithes-MacBook-Air.local |
45c97a6fa3e4599d45c0aa35d5f342860e090646 | fdec1e3b52a513c41fa9c4f5d1a5f85b55b2c071 | /ProFive/settings.py | 7799d430a6a1748909242f615719f79343607ee0 | [] | no_license | alecabt85/django-deploy | 8440dc407e962c22a6309ca6fe68f2619e0f1441 | 28d763dd404af527ad7e919c169bcbf28a17b51b | refs/heads/master | 2020-04-18T20:37:52.857941 | 2019-01-26T21:49:38 | 2019-01-26T21:49:38 | 167,742,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,720 | py | """
Django settings for ProFive project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
#... | [
"alecabt85@gmail.com"
] | alecabt85@gmail.com |
ea400d3b5f0ad457cae4af10cb257e224a88cc0a | 9d41f4df737dc2e6fd3fcf4c6f50028fd483cdd0 | /python_Django/fc_community/board/migrations/0002_auto_20200430_1106.py | 66d148799c461106ca4773eddece35b4ca8a41f6 | [] | no_license | Ha-Young/byte_degree_python | 33a730f4c1f4a99fea03fb923ad73edee2dd1d48 | 7fcbfed832dec3d7cb8503b86d9457e1f2ae0ccf | refs/heads/master | 2022-11-16T16:54:52.978443 | 2020-07-04T14:32:16 | 2020-07-04T14:32:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # Generated by Django 3.0.5 on 2020-04-30 11:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('board', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='board',
name='registered_dttm',
... | [
"hayeong28@naver.com"
] | hayeong28@naver.com |
60d65e916f80d51a0db3e7fd1f807313c2db0084 | 700a3f062fe303bae79d7126cbe708d5ce97c28e | /python/binary_heap.py | 9ce91f15fd13be3f429dd9998f2b49ef1a67539a | [] | no_license | flandb/algorithms-and-data-structures | 9c4c015182c89ef4baf63f5c335a72a9919d912a | 41d4d63beb05db33850bbb53763f8031f8656c92 | refs/heads/master | 2020-04-05T14:47:33.741542 | 2018-11-12T23:53:58 | 2018-11-12T23:53:58 | 156,941,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | """
Binary heap data structure implementation to be used for efficient sorting,
priority queue implementation, heapsort, etc.
The main operations supported by binary heaps are:
insert(x): inserts item x into heap in position with proper dominance.
delete(): removes and returns root node of heap, and rebalances.
heapif... | [
"fland066@umn.edu"
] | fland066@umn.edu |
e295f4546f92d704e963f88e2f69e970dcdbf3df | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_gainsay.py | 0939ed1baa146c43e3236b450df317cc19978b75 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py |
#calss header
class _GAINSAY():
def __init__(self,):
self.name = "GAINSAY"
self.definitions = [u'to refuse to accept something as the truth: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'verbs'
def run(self, obj1 = [], obj2 = []):
return self.json... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
5f845fcfe8d5f5b4783319225725ddc65453e8a7 | 3bae85ebe1a72d89b0311223f55eb5bf4492e202 | /0708/bioinformatics_1_4.py | 290c5058f91414b463dad5ff07e317222c325c9e | [] | no_license | Cyntha-K/bioinfo-lecture-2021-07 | 3610694a9fb991a2c786ac9fe95c9a7a98012183 | c27b1473cabfee4b3a1da4c702d6c962eb11a612 | refs/heads/main | 2023-06-12T19:16:02.583514 | 2021-07-09T04:55:47 | 2021-07-09T04:55:47 | 382,994,667 | 1 | 0 | null | 2021-07-05T06:15:04 | 2021-07-05T02:40:56 | Python | UTF-8 | Python | false | false | 270 | py | num1 = input("Enter a integer: ")
num2 = input("Enter another: ")
num1 = int(num1)
num2 = int(num2)
if num1 > num2:
print(f"{num1} is greater than {num2}.")
elif num2 > num1:
print(f"{num1} is less than {num2}.")
else:
print(f"{num1} is equal to {num2}.")
| [
"cyn518089@korea.ac.kr"
] | cyn518089@korea.ac.kr |
d4170b9e0ca94148fc85d95e21c364927137cb10 | 18b114c315c1b9302757dc6e2c577faeb8b1ee85 | /other.py | 26db107d36571e24c544c72f1eaa55047386e2e0 | [] | no_license | Zakgriffin/OptiBolt | bcd1d154535c3b6ead568e0c3efd1d3556ec34ba | e6bdf673974d1ce610e861fe6014320d2b2d19ad | refs/heads/master | 2020-08-10T10:28:14.444897 | 2019-10-12T21:02:07 | 2019-10-12T21:02:07 | 214,324,821 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,934 | py | # Utility functions
import cv2
def roundRect(frame, topLeft, bottomRight, lineColor, thickness, lineType, cornerRadius):
# Draws a rect with rounded corners
"""
corners:
p1 - p2
| |
p4 - p3
"""
(tlx, tly) = topLeft
(brx, bry) = bottomRight
p1 = [tlx, tly]
... | [
"noreply@github.com"
] | noreply@github.com |
80bc211900a7a621c6a743b3a35a654f6ac3259c | 4ac16514be64f6ed06e436ed67d3061f65391c6f | /dataPreprocess.py | 85bbf137acb0987556de78a569a480e07e492c86 | [
"Apache-2.0"
] | permissive | liqianxi/cmput466-project | 9cc975adc1100d648b3a4e92714aba67fb3b4a19 | c4f65f224627b87b921e68a680546dfde7f13445 | refs/heads/main | 2023-04-01T12:42:40.987266 | 2021-02-23T21:25:06 | 2021-02-23T21:25:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,282 | py | # Author: Shway Wang
import string
import math
import numpy as np
import matplotlib.pyplot as plt
from sklearn.feature_extraction.text import CountVectorizer
DATA_PATH = './datasets/' # the place to read from
PROCESSED_PATH = './processed_datasets/' # the place to write to
'''
The categories are:
business(510), enter... | [
"shuwei4@ualberta.ca"
] | shuwei4@ualberta.ca |
c229dd764455e9277b1faf6484d4928e4c8dacb8 | 39d3fb67909ffe2116f0e59de5915ce910cd71f2 | /coordtransform.py | 63b2e224ab523e88ca960459c62415c070ed41ac | [
"Apache-2.0"
] | permissive | ruanhailiang/pcap_velodyne | f1d2a24a7b6d480ec2c893820c4af9d67ecd5f59 | 646086d723bc91988b127a00a92deee595366eb4 | refs/heads/main | 2023-05-06T03:41:27.988718 | 2021-05-28T00:33:41 | 2021-05-28T00:33:41 | 371,537,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,513 | py | import math
x_pi = 3.14159265358979324 * 3000.0 / 180.0
pi = 3.1415926535897932384626 # π
a = 6378245.0 # 长半轴
ee = 0.00669342162296594323 # 偏心率平方
def gcj02_to_bd09(lng, lat):
"""
火星坐标系(GCJ-02)转百度坐标系(BD-09)
谷歌、高德——>百度
:param lng:火星坐标经度
:param lat:火星坐标纬度
:return:
"""
z = math.sqrt(ln... | [
"hailiang.ruan@emapgo.con.cn"
] | hailiang.ruan@emapgo.con.cn |
e0592f161bf2de964d519535fe37439934f2f94f | ea79767729a484aaddd99e55cc367870d4f6303e | /tests/test_logger.py | 425f5f8cb1d424fc4cb1a328f018a5864a520c48 | [
"MIT"
] | permissive | jwenjian/naz | cb9ecfe073bdf0ed5de7ab9c3592e00e3cd9c654 | 905ce81703e5bb0068915d48e72fc9dca8cda4ab | refs/heads/master | 2020-07-13T16:39:01.328528 | 2019-08-29T08:33:42 | 2019-08-29T08:33:42 | 205,116,398 | 0 | 0 | MIT | 2019-08-29T08:25:46 | 2019-08-29T08:25:46 | null | UTF-8 | Python | false | false | 6,642 | py | # do not to pollute the global namespace.
# see: https://python-packaging.readthedocs.io/en/latest/testing.html
import io
import logging
import datetime
from unittest import TestCase
import naz
class TestLogger(TestCase):
"""
run tests as:
python -m unittest discover -v -s .
run one testcase as... | [
"noreply@github.com"
] | noreply@github.com |
a3b73c3749b7367a19feaad712a6f42ab7b5c2c7 | 6e0aed240f49ca92979529348776f63895aea52d | /assignment2/cs231n/classifiers/cnn.py | 1533e3f0e066f3a406e6a326c28883e61b159b7e | [] | no_license | haotian-liu/cs231n_spring_2019 | 459e5acc17454c67ff3d3e180889da4790aec5fe | 8b247f6f9724bd3f3f85fbdab7b222fec269f00a | refs/heads/master | 2022-06-20T23:19:50.381761 | 2019-10-30T00:34:16 | 2019-10-30T00:34:16 | 199,765,717 | 1 | 0 | null | 2022-06-16T23:29:50 | 2019-07-31T02:49:50 | Jupyter Notebook | UTF-8 | Python | false | false | 7,923 | py | from builtins import object
import numpy as np
from cs231n.layers import *
from cs231n.fast_layers import *
from cs231n.layer_utils import *
class ThreeLayerConvNet(object):
"""
A three-layer convolutional network with the following architecture:
conv - relu - 2x2 max pool - affine - relu - affine - sof... | [
"liuhaotian.cn@gmail.com"
] | liuhaotian.cn@gmail.com |
4a32f943bb5c65cdb56fb518fb0a3507f4f4cd52 | ca5aeb4589129e2bd497820a219bc9ccf8dbe448 | /settings.py | 289a7d8026f17ade5f28174ae1a23629f04fb0e0 | [] | no_license | cryptobuks1/ntua-blockchain | 5bb96adb68a9547429b47dd89b864d8448497afc | 39daa40072315dc970e4f0bfabaeded6c9469c6b | refs/heads/master | 2021-04-03T17:59:48.205108 | 2020-03-18T23:12:38 | 2020-03-18T23:12:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py |
bootstrap_ip='127.0.0.1'
bootstrap_port=25000
baseurl_bootstrap = 'http://{}:{}/'.format(bootstrap_ip, bootstrap_port)
N = 2 | [
"megisoglou56@gmail.com"
] | megisoglou56@gmail.com |
e50a9558ec7bb9882fb6b4ca98dadc71811a1e7f | e1a9b780001ed72d0456d8ef021a54c1d33698fb | /testing.py | c0b7e219de34f0b66a7a21e046dda06555e07ae1 | [] | no_license | HaoWangSir/Incomplete_Morelli_F16_6DoF_model | 377f9f3c96e1a9970aa984b516dc820ce25b7cb0 | 79bd097d273880a093243f34a9072f2a30f24e6e | refs/heads/master | 2022-12-22T11:21:54.577045 | 2020-09-27T15:41:42 | 2020-09-27T15:41:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Sep 27 10:21:03 2020
@author: johnviljoen
"""
| [
"noreply@github.com"
] | noreply@github.com |
5269f777df1e7ace397a05ef6872a8fbb0fd441d | a83750e9faa4d9993d88bfcc2225ccc8f21f54df | /test/acceptance/features/steps/generic_testapp.py | becec22b3a6eb280263de1d9321987689a5c56ee | [
"Apache-2.0"
] | permissive | jasperchui/service-binding-operator | a4d5718c7ac1663147389ceb3c37cd8721b241db | 4db22cdc3cbfd293eaf89adaee6b0b87093c33f0 | refs/heads/master | 2023-08-21T00:11:51.818537 | 2021-10-25T19:40:00 | 2021-10-25T19:40:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,065 | py | from app import App
import requests
import json
import polling2
from behave import step
from openshift import Openshift
from util import scenario_id
from string import Template
class GenericTestApp(App):
deployment_name_pattern = "{name}"
def __init__(self, name, namespace, app_image="quay.io/redhat-develop... | [
"noreply@github.com"
] | noreply@github.com |
4af59c391442069a35ecf45a5a1fbca57644fd8d | d44e7d85d4d8c601965c3dfdd09937b76b292d6f | /practice_06_06.py | c1d866fd9ec7ad4b4cc82167b478aa173e8f9d90 | [] | no_license | Jean-1220/study_python | 84a0a34c0f7a16f13288871b5c1f4ec26b013d1a | 3bddf1d28875ddf69769b82dd7fc07be46bbb551 | refs/heads/master | 2023-04-28T15:29:03.732120 | 2021-05-25T08:38:02 | 2021-05-25T08:38:02 | 367,266,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | #함수_지역변수(함수 내에서만)와 전역변수(모든 공간 내에서)
gun = 10
def checkpoint(soldiers) : #경계근무
global gun #전역공간에 있는 gun을 사용
gun = gun - soldiers
print("[함수 내] 남은 총 : {0}" .format(gun))
def checkpoint_ret(gun, soldiers) :
gun = gun - soldiers
print("[함수 내] 남은 총 : {0}" .format(gun))
return gun
print("전체 총 : {0}... | [
"123sijin@sookmyung.ac.kr"
] | 123sijin@sookmyung.ac.kr |
2921430855c379808e74762e18129a8ff3f0a1ca | b1b4459b4381282befe620a65f34fd4080168380 | /openstack_dashboard/dashboards/logdashboard/overview/views.py | bee688a4494c2a2bcdac9ead6a5bb0bc6761f17f | [
"Apache-2.0"
] | permissive | binhnq94/horizon-dev | e896b68336fdc5cb4c96ce92a1db7ff3274945f5 | db426842116af515f00b9e7c887f4f3f9f28298c | refs/heads/master | 2021-08-02T13:44:30.832281 | 2015-11-25T09:19:43 | 2015-11-25T09:19:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,748 | py | from horizon import tables
import json
from .tables import LogsTable
class IndexView(tables.DataTableView):
table_class = LogsTable
template_name = 'logdashboard/overview/index.html'
def get_context_data(self, **kwargs):
context = super(IndexView, self).get_context_data(**kwargs)
instanc... | [
"nhat.hqh@gmail.com"
] | nhat.hqh@gmail.com |
f29deaf14bab8489c926ab0ad41dce81b2526ce0 | 2db1617bb32629f450f41c020fb7f2215bb7ed72 | /app.py | f4d6489fdd6594c393bd360a8be33554862785fd | [] | no_license | irenenev24/MS-3-PROJECT | 7e521bef57dedbaae3bbc922c7d46e2cef9bc21b | 34459236dc6ee0d1294e0bdbece122aa019b9ad4 | refs/heads/main | 2023-08-25T00:16:28.379192 | 2021-10-11T13:21:45 | 2021-10-11T13:21:45 | 415,892,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | import os
from flask import Flask
if os.path.exists("env.py"):
import env
app = Flask(__name__)
@app.route("/")
def hello():
return "MS3 Let's do this!!"
if __name__ == "__main__":
app.run(host=os.environ.get("IP"),
port=int(os.environ.get("PORT")),
debug=True)
| [
"irenenev24@gmail.com"
] | irenenev24@gmail.com |
a1bf58caf56b60e5719c7fc530e190fc47be1930 | 655513776f1b6de25b24464326cf427c67583d81 | /biquad.py | ac3cf669ba12b43db49759a8f49f33a1a6c94ecf | [
"MIT"
] | permissive | ionjet/cross5548pt | ae9469c573ee8d9a5a0060deb23bc779436a6b46 | 0e0e78e279319e512c9a445b618e66b48d904160 | refs/heads/master | 2021-06-08T09:15:43.921632 | 2016-09-09T21:42:04 | 2016-09-09T21:42:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,358 | py | """ Biquad calculator """
import math
class BiquadCalc:
"2nd order biquad filter coefficient calculator."
W = 0; W2 = 0; WQ = 0; N = 0;
#================================================
# shared for both lp, hp
#================================================
def __init__(self, Fs, Fc, Q = mat... | [
"gitstrah@gmail.com"
] | gitstrah@gmail.com |
bf3d97883fb6de10cbf4c6932474ff76f422b2e9 | e9a0f2719d2512e49ee3ebbd046a2eca15c96710 | /cospro_winter2/day03/m03_02.py | 2c504b1d7cdbf84387f71b52a89ee7793c55d0b2 | [] | no_license | choigabin/Certificate_Cospro | bedf3d07177306522efa3f75dbe8f6b3ca6b47d7 | ab6823e220f48a4adadaaa52d79937f4ebb7dc6d | refs/heads/master | 2023-06-11T22:02:38.694299 | 2021-06-30T00:05:45 | 2021-06-30T00:05:45 | 381,527,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | #예산을 배분하기 위한 금액을 구하는 함수 빈칸 채우기
#리스트의 모든 요소들의 합 구하기
def func_a(arr):
total = 0
for i in arr: #리스트의 길이만큼 포문 돌리기
total += i #요소를 total에 누적
return total
def solution(total, arr):
result = []
req_total = func_a(arr) #매개변수로 받은 arr 리스트 요소들의 합
for i in arr: #arr 리스트의 길이만큼 포문 돌리기
if req_... | [
"63983505+choigabin@users.noreply.github.com"
] | 63983505+choigabin@users.noreply.github.com |
e3eacf33e3d17fd71a56200cba97e1286fd108bc | 0a04adf5d94cce2890382c60062baea4d34b0026 | /13_roman_to_integer.py | 632bc313b03e9c6df2eceba9454ffa0878a0c0ef | [] | no_license | steamed-stuffed-bread/Leetcode-calender | a8432e143de30bfb544cf3932ba3d1cdec195d45 | 5c757fac0c95f69078fff414985a904a4632a350 | refs/heads/master | 2021-09-09T20:49:03.135164 | 2021-08-28T02:47:13 | 2021-08-28T02:47:13 | 162,267,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | # easy
class Solution(object):
def romanToInt(self, s):
"""
:type s: str
:rtype: int
"""
n = len(s)
res = 0
G = {'M':1000,
'D':500,
'C':100,
'L':50,
'X':10,
'V':5,
'I':1}
for i in ... | [
"probation2@ctrlworks.com"
] | probation2@ctrlworks.com |
397ef26f523edeb63c9bc75e90425a4be6ca01c7 | 149e9e52304a970ffb256f290fce5f614c9e20c4 | /Python Programming language/DataCampPractice/Intermediate Python for DS/DictionariesAndPandas/DeP2.py | 2c6e6d638adfb8dd2b65d73c8fa29af218c8603c | [] | no_license | Pasquale-Silv/Improving_Python | 7451e0c423d73a91fa572d44d3e4133b0b4f5c98 | 96b605879810a9ab6c6459913bd366b936e603e4 | refs/heads/master | 2023-06-03T15:00:21.554783 | 2021-06-22T15:26:28 | 2021-06-22T15:26:28 | 351,806,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | # Definition of dictionary
europe = {'spain':'madrid', 'france':'paris', 'germany':'berlin', 'norway':'oslo' }
# Add italy to europe
europe["italy"] = "rome"
# Print out italy in europe
print(europe["italy"])
print("italy" in europe)
# Add poland to europe
europe["poland"] = "warsaw"
# Print europe
print(europe) | [
"55320885+Pasquale-Silv@users.noreply.github.com"
] | 55320885+Pasquale-Silv@users.noreply.github.com |
8fa3fd812fc43dff6fa52450683a67457e1731cd | e34e1c7c32678956965465cd4f9e3667dae5a372 | /ARePa_t/ZEO/zeo_structure.py | 0d8c3f434d3ce3f2365de1f404f995c58aace5a3 | [] | no_license | JFajardoRojas/ARepPa | b0ad773709aec96d1378734984ef579124dc09cc | 6249509cabd8a663b196614a6d3e0ef3a2a92717 | refs/heads/main | 2023-08-02T04:13:41.033732 | 2021-10-08T22:28:04 | 2021-10-08T22:28:04 | 406,616,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | import os as os
import numpy as np
#Create the list of zeolites from a directory zeo_change
zeo_list = os.listdir("zeo_2change")
for zeolite in zeo_list:
zeolite_now = open("zeo_2change/"+zeolite, "r")
zeolite_file = zeolite_now.read()
zf = zeolite_file.split() | [
"noreply@github.com"
] | noreply@github.com |
396ac6353a07611482c52c04745f06b1db6ba5fd | df7b18485061874f7f9351380433b9d182e4153c | /assertpy/contains.py | 83eae001f75fc41f2ad62693e0f71e1a1ece63bf | [
"BSD-3-Clause"
] | permissive | LiorElb/assertpy | 2b072b8a3fbfae144e3d6c2037fd6a91a72ece52 | 0b1509b859f790473d5b678affb842c0e7e67e15 | refs/heads/master | 2023-01-28T02:25:40.431335 | 2020-12-10T19:04:58 | 2020-12-10T19:04:58 | 315,979,100 | 0 | 0 | BSD-3-Clause | 2020-12-10T19:05:00 | 2020-11-25T15:25:58 | null | UTF-8 | Python | false | false | 13,690 | py | # Copyright (c) 2015-2019, Activision Publishing, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of ... | [
"justin@saturnboy.com"
] | justin@saturnboy.com |
01ad4c119d207878433dd5e98f8b899093558fac | f2c5da66d44215833f6b18dbe2627fcedb21d015 | /DataGeneration/main.py | cdf592b92fac5a9ebdf7cccda713d59102edec9e | [] | no_license | kcp210/SER531-Group14 | 36afc137882f8d3778d16532a5836370742e2810 | 037e35375d7e1c87ff105af75164fa1eb915bded | refs/heads/main | 2023-01-29T00:26:39.528014 | 2020-12-04T17:58:42 | 2020-12-04T17:58:42 | 311,814,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,728 | py | # Data Script
import csv
import random
from event import Event
from person import Person
def array_to_csv_row(array):
ret_val = ''
for value in range(len(array)):
ret_val += array[value]
if value != len(array) - 1:
ret_val += ','
print(ret_val)
return ret_val
# Entrypo... | [
"jack.macarthur99@gmail.com"
] | jack.macarthur99@gmail.com |
6056a503e78ac628a535c6d0a46fb63e45d0c5e7 | 59be1e78898765e2b696bd3dc51100a20c988cde | /sdk/sig_utils/ecdsa_utils.py | 402bd03dc7f2c09a97d25ebc47c7562df858105d | [] | no_license | Loopring/hello_loopring | 76202d27dae9ccb180b3be449e3e32303b09e25e | 0f86004f3695eb5296cad51a086bd360ed4cb1b7 | refs/heads/loopring-v3 | 2023-06-09T10:30:19.226839 | 2021-12-02T09:21:43 | 2021-12-02T09:21:43 | 252,555,145 | 44 | 33 | null | 2023-08-08T08:13:26 | 2020-04-02T20:06:56 | Python | UTF-8 | Python | false | false | 8,971 | py | import eip712_structs
from eip712_structs import EIP712Struct, Address, Array, Boolean, Bytes, Int, String, Uint
from eth_abi import encode_single, encode_abi
from py_eth_sig_utils import utils as sig_utils
from web3 import Web3
from sdk.ethsnarks.jubjub import Point
from sdk.ethsnarks.field import FQ
class EIP712:
... | [
"wangyue@loopring.org"
] | wangyue@loopring.org |
149d557ac1dea626cc2958b53eecea08941aa706 | ab1db689341ee0e1e08045c13028dd0f441720b3 | /app/email.py | 5c37dee31071d17663b124add42e976cdc57beac | [] | no_license | Yikoufang/flaskwebdevelope | eaaf1c31803f50fdd0e9d3dfeaecf708270c19da | 843a29cd205cdcc608a368c5be4e805ba3ad5af9 | refs/heads/master | 2022-12-11T13:34:15.925608 | 2019-01-25T05:50:21 | 2019-01-25T05:55:26 | 167,481,287 | 0 | 0 | null | 2022-12-08T01:21:04 | 2019-01-25T03:50:23 | Python | UTF-8 | Python | false | false | 732 | py | # -*- coding:utf-8 -*-
from flask_mail import Message, current_app
from flask import render_template
from . import mail
from manage import app
from threading import Thread
def send_async_email(app, msg):
with app.app_context():
mail.send(msg)
def send_email(to, subject, template, **kwargs):
msg = Message(current_a... | [
"13610411519@163.com"
] | 13610411519@163.com |
d538f7ca981b14e465fa2478a47261e5423f2c3d | ddf4dc05a7937d3227195c5696c39892f6645468 | /Dgesl.py | 4fc8bf448f8cd75610375bda0bf435c5ebc7aace | [
"MIT"
] | permissive | sevenian3/ChromaStarPy | e8cf475c85d85a67e7a9a55360b4c743a9e162ae | 103d3d0df6d9574c49818f149e1cae8100455d10 | refs/heads/master | 2023-07-21T14:42:20.712164 | 2023-07-06T18:09:20 | 2023-07-06T18:09:20 | 90,990,031 | 8 | 3 | MIT | 2018-03-03T17:26:00 | 2017-05-11T14:43:01 | Python | UTF-8 | Python | false | false | 6,151 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 6 11:42:29 2019
@author:
"""
import math
import numpy
#from scipy.linalg.blas import daxpy
#from scipy.linalg.blas import ddot
#from scipy.linalg.blas import dscal
#from scipy.linalg.blas import idamax
#from Documents.ChromaStarPy.GAS.blas.Daxpy import dax... | [
"noreply@github.com"
] | noreply@github.com |
6063132c57fcd1b0d1e934a33eeae1e6af1f7f94 | 6b182e089b9e109c5279a0ea1373d6f89f1e21e4 | /todo/tarefas/urls.py | 5ea6b07860b9c50bd60ce4f154a2206a67fb4971 | [] | no_license | murilexbarbosa/desenvolvimento-web-com-python-e-django | 69585106f4c28795c93f2c73446e33b497cc42ee | 5b6762fdb4e162a66d9f4e6c845b9644ef16b13f | refs/heads/master | 2020-03-23T10:03:33.981422 | 2018-09-06T18:46:41 | 2018-09-06T18:46:41 | 141,423,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'lista-categoria/', views.lista_categoria, name='lista_categoria'),
url(r'nova-categoria/', views.nova_categoria, name='nova_categoria'),
url(r'nova-tarefa/', views.nova_tarefa, name='nova_tarefa'),
url(r'delete-tarefa/(?P<id>[0... | [
"muka040789@hotmail.com"
] | muka040789@hotmail.com |
217e3f356c285d0b8b0da2c8c12ff234b8ca8f10 | 1064db5dfd154c4bc600e0e03841b0f73f0eefbc | /home/api/v1/urls.py | 68d0f35d9043e634ceb843ff272945032f9cd6ae | [] | no_license | crowdbotics-apps/web-29-dev-5196 | 3303921a0e5c8794e8e67f55c9841f3ec7610c16 | 7beda8f7d57ce9b9858a46f7e3940d6eed4b5725 | refs/heads/master | 2023-05-26T23:00:23.271209 | 2020-05-29T12:47:07 | 2020-05-29T12:47:07 | 267,768,914 | 0 | 0 | null | 2021-06-13T04:08:30 | 2020-05-29T04:59:18 | Python | UTF-8 | Python | false | false | 614 | py | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .viewsets import CustomTextViewSet, GgfhgfhViewSet, HomePageViewSet
from home.api.v1.viewsets import (
SignupViewSet,
LoginViewSet,
HomePageViewSet,
CustomTextViewSet,
)
router = DefaultRouter()
router.register... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
7ef6fcc3128d7c7e99964dc4e1684bbcad223956 | f9f6016813f847016a91e08821ec619f2de831d9 | /virtual/bin/gunicorn_paster | 8ad3aed6ae056b2bae3f3c145adf8bd632b521c5 | [
"MIT"
] | permissive | drewheathens/News-Highlight | b2ae1cb59c070981959f6e1de9ed6358d0deb5e8 | 2c46c883b3610c3022c0b06dc2a743e1b721a579 | refs/heads/master | 2020-04-20T07:29:57.068992 | 2019-02-06T10:59:14 | 2019-02-06T10:59:14 | 168,712,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | #!/home/evans/Desktop/core/python/News-Highlight/virtual/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.pasterapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"mudavadie@gmail.com"
] | mudavadie@gmail.com | |
ea267e1cecf3b67905f6d11ca24ad6210adec139 | 3712eb55a03f8a7610fd99c5b2cdb91ef74775b5 | /home/views.py | ed940bf21dbf43858f4fb75b826341a78fbd3d10 | [
"MIT"
] | permissive | Orangeplumber/apal-2.0 | 67f769cab66c8413cd754f55130f53c0fc176336 | 40591e8cc8cfe8e5e8678943ba8d78bff45b7c81 | refs/heads/master | 2022-12-09T17:02:28.910947 | 2019-07-22T17:50:27 | 2019-07-22T17:50:27 | 171,350,110 | 0 | 0 | MIT | 2022-11-22T02:23:52 | 2019-02-18T20:18:27 | CSS | UTF-8 | Python | false | false | 830 | py | from django.shortcuts import render
from django.urls import reverse
from django.views import generic
import re
from django.http import HttpResponseRedirect
from .models import Pack
class OfferView(generic.ListView):
template_name='home/index.html'
context_object_name='pack_list'
def get_queryset(self):
"""Retu... | [
"harnish1198@gmail.com"
] | harnish1198@gmail.com |
b519873c7e7930fe29a267e4c36515857efbccb9 | fc583f120e2c392c28bf1c7fb732d69c88df8f43 | /main/start.py | 934a3fe9b5df392e82402efb31a7c5b3e6eca732 | [] | no_license | renoki-games/Metin2BE-game | 75661c9c7066abd431fad83b3b3344d163d95682 | 7d9502093dd806450c6f9dcca8c8ecfae92e5720 | refs/heads/master | 2023-03-06T15:08:59.030948 | 2021-02-07T19:56:36 | 2021-02-07T19:56:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,333 | py | #!/usr/local/bin/python2.7
#### @martysama0134 start scripts ####
### TODO fix -s -w for srvr and not only channels
from subprocess import check_output as sp_co, call as sp_call, CalledProcessError as sp_CalledProcessError
from os import getcwd as os_getcwd, chdir as os_chdir
from platform import system as p_system
v_... | [
"Lead0b110010100@outlook.com"
] | Lead0b110010100@outlook.com |
98661a7646afcda1edc0dedb83f90e8b72a50dc0 | 650b516b1214c4d44fd6f04941e87e28e9049cde | /addons/plugin.video.fanfilm/resources/lib/libraries/cleandate.py | 85151cc3c8bb936f60ac45d4dfad364b8b419655 | [] | no_license | MultiWu/build | b85cc45a33b871f4ade58de8457fcd094761f385 | f50a64f674b6499668e0a5758fe0879b016f5c38 | refs/heads/master | 2022-10-31T20:35:53.382826 | 2019-12-20T22:50:16 | 2019-12-20T22:50:16 | 228,462,984 | 0 | 3 | null | 2022-10-07T08:47:18 | 2019-12-16T19:46:39 | Python | UTF-8 | Python | false | false | 1,884 | py | # -*- coding: utf-8 -*-
'''
Covenant Add-on
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 3 of the License, or
(at your option) any later version.
This prog... | [
"oliwierminota@gmail.com"
] | oliwierminota@gmail.com |
9c826bc2fab50ecf724ee80a666a7970c6748606 | d2562b13340e1f2b6b817b3b10949942891bd3a1 | /models/graph/custom_aggregator_layers/__init__.py | 27cc3df9c336710ba64385f5b815c305ec7dfe61 | [] | no_license | OrionUnix/GraphSAGE | 2e7083d2fe980d417c5d1e64655c20ded09e3458 | 772c76671da85e8171f3e05936b6796815701ae7 | refs/heads/master | 2022-11-30T04:48:50.738446 | 2020-08-05T20:49:39 | 2020-08-05T20:49:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | from .protein_aggregator import ProteinAggregator
from .ppi_aggregator import PPIAggregator
__all__ = ['ProteinAggregator', 'PPIAggregator'] | [
"shigapovafz@gmail.com"
] | shigapovafz@gmail.com |
72f1bd95c8bf5c2d517389c3660ff9f0a40b4a8f | 6e7643061a508ee0a87cc961590d861998b0df38 | /project_blog/App_Login/migrations/0001_initial.py | a93d7e769e8631b8b7425e59df8f6033c593dd03 | [] | no_license | Arman170616/Django_deployment | 49ce044bc1a7c2357e9529f613276b49d42f3e3f | 9f6b54f9f47c1ee4a49aae52bb03c503cceb0c6d | refs/heads/master | 2022-11-06T23:10:27.898683 | 2020-06-25T19:09:28 | 2020-06-25T19:09:28 | 263,139,319 | 1 | 1 | null | 2020-06-02T17:07:58 | 2020-05-11T19:34:03 | Python | UTF-8 | Python | false | false | 793 | py | # Generated by Django 3.0.4 on 2020-05-12 07:07
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"armanice09@gmail.com"
] | armanice09@gmail.com |
416be490276271568c133407975891c44a56e873 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/countingE_20200723125242.py | ee2eed06a056b5d20bc8221422b9c32e3af0b259 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | def counting(arr):
# keep count of the occurrences
m = max(arr)+1
counts = [0 for i in range(m)]
outputs = [0 for i in range(m)]
# we keep the record of the occurences of the various numbers
for i in range(len(arr)):
counts[arr[i]] +=1
# now to get the running sum
total = 0
... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
7000364dbe6d566f301d1972a2bebd9c1f7666da | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/others/DeepFM_for_PyTorch/deepctr_torch/layers/interaction.py | d6e7ba6d8917cface0acbf225497622269efc13f | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"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 | 30,854 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# 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 o... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
ceb260d92ce076edc6667af71efeafacc7197966 | d66b5c1d54fcde6c1ea1617622e9ec7e87d18c98 | /deploy_service_from_model.py | 6ea52f1e19971c04ca42b48fcdd76c930f01a075 | [] | no_license | Seb-Good/mnist-azure | 221d40271e36be2e918ac421bc2ea444edbfa2a8 | e1b2dbc43748c98619048b86f0465d7c8cd790d3 | refs/heads/master | 2020-05-17T21:04:25.694068 | 2019-05-19T20:46:35 | 2019-05-19T20:46:35 | 183,963,264 | 0 | 0 | null | 2019-04-29T19:44:26 | 2019-04-28T22:00:49 | null | UTF-8 | Python | false | false | 2,257 | py | """
deploy_service_from_image.py
By: Sebastian D. Goodfellow, Ph.D., 2019
"""
# 3rd party imports
from azureml.core import Workspace
from azureml.core.model import Model
from azureml.core.image import ContainerImage
from azureml.core.webservice import Webservice, AciWebservice
from argparse import ArgumentParser, Argu... | [
"sebi.goodfellow@gmail.com"
] | sebi.goodfellow@gmail.com |
8decbdca81e3e4b91373b7e04f95168420879c90 | 98d9305b1717642bcfb842eecd84d63b6eeaf759 | /Funtions/Favorite Book.py | e2892efd0cc0ff10b3dc5face5cc9e96c6f9880e | [] | no_license | er-aditi/Learning-Python | 5ceb020f4df8db9e34df78edfaecca3e1854c8a9 | 297eda435ee2e1cee643f94ea4c5de6a82e3c8a7 | refs/heads/master | 2020-03-24T17:22:22.129081 | 2019-06-19T05:47:26 | 2019-06-19T05:47:26 | 142,856,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | #Parameter
def favorite_book(title):
print("One of my favorite books is Alice in " + title)
#Argument
favorite_book("Wonderland")
| [
"aditijainnoida85@gmail.com"
] | aditijainnoida85@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.