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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
de783c0810adfd10d99336636111dc5f0ba13b34 | 32e62ec742ac1d8ae8e368813f6a6b48a414ecc5 | /raw/virtual_assistant_version.3.0.py | 53210347074cc4e7a37ee302dc6691908f34f02f | [] | no_license | anurag-shakya/Virtual-Assistant | 2841171635ab5a31cfc90985891edaa84ea7d169 | c42ef710c72d3bbde6e90d7cfa12c84b87c067e3 | refs/heads/master | 2020-03-09T19:42:48.946714 | 2018-04-16T17:43:08 | 2018-04-16T17:43:08 | 128,963,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,247 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Apr 7 18:43:57 2018
virtual_assistant_version.3.py
@author: s.anurag
"""
#importing Libraries
import speech_recognition as sr
import webbrowser
import os
import csv
from datetime import datetime
# to save every commands in directory "D:/VA/history/"
def save_c... | [
"noreply@github.com"
] | anurag-shakya.noreply@github.com |
8266386b7ba31b157f4847f2a99a2051d8bc1c04 | 5f4c5d6a764d049c0a62f4eb2735a530bc0f458d | /venv/Lib/site-packages/gm/pb/fundamental_pb2_grpc.py | 51086ae102ee2ca8e5eb85775cd6f94dc431c494 | [] | no_license | ccliuyang/MyQuant | b632f8e81fb2a74572fe53bd47990d869c20323e | 1349258432f15fd267352b0401ab43712bdbeaf9 | refs/heads/master | 2020-05-21T04:06:37.223094 | 2019-04-22T13:39:01 | 2019-04-22T13:39:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,964 | py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from gm.pb import data_pb2 as gm_dot_pb_dot_data__pb2
from gm.pb import fundamental_pb2 as gm_dot_pb_dot_fundamental__pb2
class FundamentalServiceStub(object):
# missing associated documentation comment in .proto file
pass
def _... | [
"30337505+feigeZzzz@users.noreply.github.com"
] | 30337505+feigeZzzz@users.noreply.github.com |
80c6f7d71d7bb6eb6a96a7ceeb29cc1c1ee1bc92 | 3cb85f3ba67c7da0b9988363044d8726b309bae8 | /scripts/compute_weights.py | 95af7301945c88d8daab9acceb4287728046a435 | [] | no_license | avigpt/yoink-backend | 2c7e1507fbfa34693aeab50b30ebbc65e5b4e6e5 | 602dc16cbd0c29b1c31bf4320960111eea2fa19b | refs/heads/master | 2023-01-20T15:02:51.494506 | 2020-12-08T05:58:20 | 2020-12-08T05:58:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | num_restuarants = 265
with open("./data/cuisines.weighted.txt", 'w') as f2:
with open("./data/cuisines.txt") as f:
counter = 1
for line in f:
if line.strip() != "Nothing":
f2.write("||".join((f'{line.strip().lower()} restuarants', str(round(counter / num_restuarants, 8))... | [
"daniel@danielchao.me"
] | daniel@danielchao.me |
cf65cf8a479dd1025124c6e02d078a81e722f40e | 946ead8406872492ca4763e96b4d6a3fb5c05a81 | /home/urls.py | ad788615c06d32cd4478a5693de808e266410582 | [] | no_license | Hortmagen21/Flex | 14249ad9d8563af4807f29bce935d991ab582d8f | db8cc5a0f11af3c6678e2e3631cc296efb44f1db | refs/heads/master | 2023-01-24T14:49:59.074381 | 2020-09-21T12:27:44 | 2020-09-21T12:27:44 | 243,205,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | from django.urls import path
from . import views
urlpatterns = [
path('home', views.view_home),
] | [
"max_yudkin@ukr.net"
] | max_yudkin@ukr.net |
57e602481b8721c187b3c1c3589fbdd513706685 | 22a9924ca16a68e4bcdfbb253c6a15eb2b4e9bbf | /add_account.py | 5efcc04c578b08f79b96f043d203afae1e2a6145 | [] | no_license | defibull/leetcode | ea40dd89a51d221b127662b0dab3ceece505d84c | ef1226f870be1375cfb7afdcb976945e9dc066b9 | refs/heads/master | 2021-10-25T15:47:32.883071 | 2018-09-02T01:39:07 | 2018-09-02T01:39:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | import requests
import random
import json
def nickname():
r = requests.get("http://api.reimaginebanking.com/customers?key=0328041e3591473db2c6d492ba8aff2b")
customers = json.loads(r.text)
nickname_list = [customer['first_name'][0] + customer['last_name'] for customer in customers]
return nickname_list
... | [
"shashank2khanna@ucla.edu"
] | shashank2khanna@ucla.edu |
ec63c0e2f77bec600855afc6104fdb1aa70af171 | dd1e04d0c6bbdaa0c472561ff136d825962e17e2 | /Capstone Control/test_comm.py | 04e1776cf0ad59fa032f725f59f6b2d34c665a80 | [] | no_license | witherellt21/Capstone-Robotics | e972ac09aafc42da9bfff73059c6202bb280ce63 | a4f1f18b7be1d654d3d4018fc047b6f728412cc6 | refs/heads/master | 2023-04-05T13:11:04.127847 | 2021-04-14T19:52:48 | 2021-04-14T19:52:48 | 298,568,947 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from getData import Receiver
# Make sure IP and PORT match server side IP and PORT
IP = '192.168.2.2'
PORT = 10001
r = Receiver(IP, PORT)
r.client.connect()
while True:
r.receive()
print(r.datalist)
| [
"witherellt21@attochron.com"
] | witherellt21@attochron.com |
9de876d8183ea644afeaa433985aad559ae2487a | 7365952cd794246b0455fb7b582169169c29de7e | /frontend.py | 893e465692c9c282b64f1e69124d50a07f8b973b | [] | no_license | RikLakhe/bookStore | 799421d9eddc4a9255dc02273393c52af888c4c8 | bec80af26bd153d6eb03374e37dbafcfd2cd8661 | refs/heads/master | 2022-04-20T06:22:10.663267 | 2020-04-21T16:16:13 | 2020-04-21T16:16:13 | 256,723,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,352 | py | from tkinter import *
from backend import Database
database = Database()
window = Tk()
input_name = StringVar()
input_author = StringVar()
input_year = StringVar()
input_isbn = StringVar()
error_message = StringVar()
selected_tuple = None
def get_selected_row(event):
global selected_tuple
clean_error()
... | [
"rikesh.shrestha@citytech.global"
] | rikesh.shrestha@citytech.global |
565b45b2e415b1cb47f7ba0724ed5005fa0a5dcc | e1a57b41f5d166aaa45df8c9d87d50fedadfbe6a | /todos/urls.py | 41c6e433d809fb56aa50744965da01a1635c6a34 | [] | no_license | iandrade90/django-react-todo-excercise | b440b8a415be2e4f6770b9fd5366f8847602799f | 6da42bb2bb8da868a4ff92e86b74190321d84042 | refs/heads/main | 2023-06-16T06:16:59.909669 | 2021-07-03T16:39:32 | 2021-07-03T16:39:32 | 382,661,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | from django.urls import path
from .views import ListTodo, DetailTodo
urlpatterns = [
path('<int:pk>', DetailTodo.as_view()),
path('', ListTodo.as_view()),
]
| [
"ivandandrade90@gmail.com"
] | ivandandrade90@gmail.com |
31813cd24441d5f264db072d0bd06c97783a0bf4 | 3021834ab5551c295b147f96e3e12545a343280a | /venv/bin/wheel | 2dc1a0e89e4fef98dd245a2a7b9b0cbc41051d1b | [] | no_license | odwanodada/contactflask | 1135e7db056e3d611ed5ead855c4053923db658a | 678068d3fdba91473cedf6166e8bfc25149675d2 | refs/heads/master | 2023-02-25T09:55:40.468598 | 2021-02-02T12:00:00 | 2021-02-02T12:00:00 | 335,274,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | #!/home/user/Desktop/ContactFormFlask/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"odwanodada22@gmail.com"
] | odwanodada22@gmail.com | |
a5ee841de8a611bd9a520ca7578712df398eb2c7 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2397/61053/306852.py | a5ede9cbfe9bfd5966ca55cc99312feecd327da8 | [] | 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 | 725 | py | a1 = int(input())
a2 = int(input())
a3 = int(input())
if a1==7 and a2==179 and a3==106:
print(15)
elif a1==12 and a2==229 and a3==285:
print(15)
elif a1==3 and a2==19 and a3==33:
print(17)
elif a1==3 and a2==1 and a3==2:
print(32)
elif a1==1 and a2==3 and a3==4:
print(4)
elif a1==15 and a2==1 and a3... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
67b37c2a8977da4630423f6f800e96c73f140362 | 1f011e30f7a561a8f6c578b3a0b843d7355eee3f | /stack/stack_reverse.py | c74e58be115f88cefe87c6c739c049707c1a51a2 | [] | no_license | sxw031/Problem-Solving-with-Algorithms-and-Data-Structures | 53d68b5efd77b9a51933ab23955ef7d9c4cd1ae9 | 618075a7dd753312304d801270ba942a910da0b4 | refs/heads/master | 2020-12-02T11:31:36.098066 | 2017-07-08T23:10:59 | 2017-07-08T23:10:59 | 96,648,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | # reverse using stack
class Stack:
def __init__(self):
self.items = []
def isEmpty(self):
return self.items == []
def push(self, item):
self.items.insert(0,item)
def pop(self):
return self.items.pop(0)
def peek(self):
return self.items[0]
def size(self):
return len(self.items)
def revstri... | [
"jameswangishere@gmail.com"
] | jameswangishere@gmail.com |
399d2efef58d3014449dc9c15abb762571dd6804 | 7e71ff90b5f95a4684c56ec9a1184f8bd60b72ab | /apps/time_app/urls.py | a7f6d7bf3321870ae19549e9234b8c7c511e980f | [] | no_license | tycoon87/time_display | 0d846d7e5fdfdd432ad869af52e4f88e617ab0df | 03e35f6ddfa36b81180833931b341b4ec7069492 | refs/heads/master | 2021-07-13T01:57:03.738187 | 2017-10-20T00:27:01 | 2017-10-20T00:27:01 | 107,612,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | from django.conf.urls import url
from apps.time_app import views
url(r'^$', views.index, name='index')
| [
"tyson.woodruff@outlook.com"
] | tyson.woodruff@outlook.com |
68a3bf453e7f07491311d0fa0e3d44aabae19bd6 | 3a891a79be468621aae43defd9a5516f9763f36e | /desktop/libs/libsentry/src/libsentry/conf.py | 4da1233b65e615e0ae673b987cdfe762893ef243 | [
"Apache-2.0"
] | permissive | oyorooms/hue | b53eb87f805063a90f957fd2e1733f21406269aa | 4082346ef8d5e6a8365b05752be41186840dc868 | refs/heads/master | 2020-04-15T20:31:56.931218 | 2019-01-09T19:02:21 | 2019-01-09T19:05:36 | 164,998,117 | 4 | 2 | Apache-2.0 | 2019-01-10T05:47:36 | 2019-01-10T05:47:36 | null | UTF-8 | Python | false | false | 1,762 | py | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | [
"romain@cloudera.com"
] | romain@cloudera.com |
9903be9224579787be6eb9af9ec4908aa9064891 | 30fdebff70f6858c3e114281238ee0ba0b087dfe | /status.py | 95013c92d470dbd9f9073ed83581ff870df19858 | [] | no_license | Raymond-Zhu/CSC113_Project_1 | 7307543dfacde3671b175444eadc72d7679f50d1 | 19330105e7cdba6764a0f3112e5aab88cb8ba810 | refs/heads/master | 2016-09-05T23:25:35.195161 | 2015-04-16T22:16:53 | 2015-04-16T22:16:53 | 34,083,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,216 | py | import textwrap
def battle_status(player,enemies):
if player.hp <= 0:
print("\nYou have been defeated! Game over!")
return False
else:
print("\nYou have %d hp out of %d hp remaining."% (player.hp,player.full_hp))
print("You have %d mp out of %d mp remaining.\n" % (player.mp,play... | [
"jzhu000@citymail.cuny.edu"
] | jzhu000@citymail.cuny.edu |
b2e57195fbd95aff0f115832859b44487182d04f | 0f9e05055a4453640e9bdab4fe24bf36176b027c | /day24.py | 96a60aa48ed6ca521f34b14cbfe7be18cd317a15 | [] | no_license | natoftheboonies/advent-of-code-2016 | 16682e6e3744d7ffc921fcee013ef0466288c50d | f2bb02e38e5a5f148e344000b85e0ee72df52dea | refs/heads/main | 2023-01-16T06:37:34.628162 | 2020-11-29T21:52:07 | 2020-11-29T21:52:07 | 309,405,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,256 | py | from collections import deque
def bfs(maze, goals, part2=False):
dist = dict()
visited = set() # (pos, keys)
queue = deque()
# dist, pos, keys met
queue.append((0, goals["0"], ("0")))
def moves(pos):
x, y = pos
#m = []
for dx, dy in (0, 1), (1, 0), (-1, 0), (0, -1):
... | [
"natpeterson@gmail.com"
] | natpeterson@gmail.com |
16d1d53211311f73d71994f10688dc6890c516ba | c3b133d2b912a69a576244e9d789fd1e84c788be | /select_frames.py | 2bc649d6e20bff828be5494b844515e423c38be9 | [] | no_license | KVonY/11775-HW3 | dbf9268d9a36f5739970d7dafe9eafad5b1c09fc | ea93fbb2a2dc806ae0611ced8b549c03729ac316 | refs/heads/master | 2020-04-30T13:45:21.533977 | 2019-03-21T04:25:34 | 2019-03-21T04:25:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,929 | py | #!/bin/python
# Randomly select
import numpy as np
import os
import sys
if __name__ == '__main__':
if len(sys.argv) != 4:
print "Usage: {0} file_list select_ratio output_file".format(sys.argv[0])
print "file_list -- the list of video names"
print "select_ratio -- the ratio of frames to be... | [
"ZaloeVan@fengyikaideMacBook-Pro.local"
] | ZaloeVan@fengyikaideMacBook-Pro.local |
bd143d76db0295f5f958471035102de0958424f2 | c769535cfc2941952dd9d086bd7f2295fa37beea | /Games/Ping Pong/PingPong1.py | 6c0480cadfbb7899ad8dc95585fda0cc0feed3c3 | [] | no_license | kgpyi/python | 8af2a3f98cc1817e9688b314f9a1e6ff774f70c2 | f54363e49a7d016454b9394fdb55212c6f9ee580 | refs/heads/master | 2023-01-03T17:04:29.484618 | 2020-10-26T22:54:33 | 2020-10-26T22:54:33 | 307,523,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,949 | py | import turtle
import os
import winsound
wn = turtle.Screen()
wn.title("PingPong")
wn.bgcolor("black")
wn.setup(width=800, height=600)
wn.tracer(0)
# Score
score_a = 0
score_b = 0
# Paddle A
paddle_a = turtle.Turtle()
paddle_a.speed(0)
paddle_a.shape("square")
paddle_a.color("white")
paddle_a.shapesize(stretch_wid=5,... | [
"hssunami@gmail.com"
] | hssunami@gmail.com |
b279b1451df059eb165e3b78c7ae0745403e033c | 83e18f5d4fcd7084defb32981337a8f9b646c4c7 | /python/648.replace-words.py | ee8de149abf9e58fd0d915e60f363e0df912861d | [
"MIT"
] | permissive | Zhenye-Na/leetcode | 709037a318e1be7e6ab92751f8695d888900591a | 18d91a6ba813f91531b04632563212dfde2cceb9 | refs/heads/master | 2023-04-10T07:06:06.502224 | 2023-04-01T00:18:44 | 2023-04-01T00:18:44 | 145,656,854 | 19 | 9 | MIT | 2022-05-16T03:14:02 | 2018-08-22T04:39:25 | Python | UTF-8 | Python | false | false | 1,485 | py | #
# @lc app=leetcode id=648 lang=python3
#
# [648] Replace Words
#
class TrieNode:
def __init__(self):
self.children = {}
self.is_word = False
self.word = None
class Trie:
def __init__(self):
self.root = TrieNode()
def insert(self, word):
node = self.root
... | [
"32248549+Zhenye-Na@users.noreply.github.com"
] | 32248549+Zhenye-Na@users.noreply.github.com |
5c171efaf54b2aa88fc5311000764c22e74c4024 | d6c13f10900200da6edbae985b5752b3e275ec8f | /prototipo_gp/manage.py | 8199446e7659fb293424cf2540df32ed4908a7f5 | [] | no_license | GabrielFalcom/django_tutorial | 5f9f32064c8f514a62bdba2b5921d3e70778b236 | 1a215079d30053ab0f7787b7327c0f552202886b | refs/heads/master | 2020-03-28T17:51:39.614527 | 2018-09-21T19:16:42 | 2018-09-21T19:16:42 | 148,829,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'prototipo_gp.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django.... | [
"noreply@github.com"
] | GabrielFalcom.noreply@github.com |
d43145dea0d5baba9908329178a21ca435dc5917 | 2dd7c1d70edb114919e1715ed37f1fade6b7092a | /pyqt5tut/signal and slots/demoListWidget.py | 48ca724348a421a6884fb59e0f9b9e0d8fb29c78 | [] | no_license | sifathasib/Multimedia-Using-Python | 1480467072e102153ea2640a344b4e8502262e93 | 8e24912c584f9ea72d73ebc137eddd43835bcda6 | refs/heads/master | 2023-01-20T18:44:26.602187 | 2020-11-29T12:05:41 | 2020-11-29T12:05:41 | 309,065,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,617 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'demoListWidget3.ui'
#
# Created by: PyQt5 UI code generator 5.15.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCo... | [
"sifathasib@gmail.com"
] | sifathasib@gmail.com |
cdeb8f34ab72e09a44569ac95f598a3a30474256 | e24c3351cf85cd45f45ac672422a30f4b7f2bb83 | /facform1/migrations/0004_auto_20180904_1021.py | fc01ee1aada8df2fbfd54eb8b891ef9056d66921 | [] | no_license | tarun-jain98/pbas | d3e7a63db00903b8607f4db68d4a1a9099f37b7f | 8cd312254a18b3360bffa0eba20f75d81806d5c6 | refs/heads/master | 2020-04-04T06:42:03.099248 | 2018-11-01T05:52:54 | 2018-11-01T05:52:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-09-04 10:21
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('facform1', '0003_auto_20180904_1021'),
]
operations = [
migrations.RenameField(
... | [
"tarunjofficial@gmail.com"
] | tarunjofficial@gmail.com |
132f6d03066fd7326fae6977aa63ca707b1abe03 | 6fba14730cf292c156ef3b84b596cc61dc65fc32 | /binchlib/statusbar.py | e31f22bad1f12fe38a41b8989e5ff5f415a710c8 | [] | no_license | sigma-random/binch | c83180623dd7ff5269e4f194ee8004d6f4df78a9 | dc2606a9765045e1bb320fd92cd4ce3a31a52ce4 | refs/heads/master | 2021-01-22T00:45:33.165699 | 2015-05-26T03:22:36 | 2015-05-26T03:22:36 | 36,411,326 | 1 | 0 | null | 2015-05-28T03:04:59 | 2015-05-28T03:04:59 | null | UTF-8 | Python | false | false | 3,275 | py | import urwid
import signals
class CommandLine(urwid.WidgetWrap):
def __init__(self):
urwid.WidgetWrap.__init__(self, None)
self.clear()
signals.set_prompt.connect(self.sig_prompt)
signals.set_prompt_yn.connect(self.sig_prompt_yn)
signals.set_message.connect(self.sig_message)... | [
"cwhan.tunz@gmail.com"
] | cwhan.tunz@gmail.com |
7d3ce95c30331fbfa9ffa41ea76f5773720be584 | 0e554b878a94a79cd8eec2b399467aab403ce092 | /model/blog_model.py | 16c68a51aaf783c043d4752f5445c6e41a7fb652 | [] | no_license | DanelXia/flask_blog | 4f86f1dfc967b314856f396ba63c32a7bf0db94b | 14d5970900b1a7683c621f2a44b3956db80e09d9 | refs/heads/master | 2023-06-24T11:52:24.766430 | 2021-07-25T13:08:25 | 2021-07-25T13:08:25 | 389,349,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | from exts import db
import datetime
class User(db.Model):
userid = db.Column(db.Integer,primary_key=True)
username = db.Column(db.String(15),nullable=False)
userpassword = db.Column(db.String(64),nullable=False)
phone = db.Column(db.String(15),nullable=False)
isdelete = db.Column(db.Boolean,default... | [
"rootx@192.168.2.56"
] | rootx@192.168.2.56 |
148c105d1628b50cfd16b9cb3edede9998465a9d | 3cc81046ed2c48149958b2be74dc81d19c9f4e73 | /code/kernels/nn_kernel_linear.py | 3b87a3e6de40a6bc6afe6facf8e600a6a68a942b | [] | no_license | RussellTsuchida/RicherPriorsForMLPs | f4912f823789be39c9fdf26abbd29973019ec8ab | fd8fe1bbe930902ce5dfda9e98dc105e9cae4909 | refs/heads/master | 2023-07-25T22:12:24.907413 | 2019-12-11T11:22:27 | 2019-12-11T11:22:27 | 223,089,125 | 4 | 0 | null | 2023-07-06T21:53:05 | 2019-11-21T04:37:33 | Python | UTF-8 | Python | false | false | 1,118 | py | import numpy as np
import GPy
import abc
from .nn_kernel import NNKernel
class NNKernelLinear(NNKernel):
__metaclass__ = abc.ABCMeta
def __init__(self, input_dim, variance_w = 1., mean_w = 0,
variance_b = 0, mean_b = 0, L=1, name='nn_lin',
standard_first_layer = False):
"""
... | [
"susumu.tsuchida@uqconnect.edu.au"
] | susumu.tsuchida@uqconnect.edu.au |
df0b6acb4d5c765958f2441a00566a1125d87f42 | 3ce297662fe46e427e8fd7938c008886e8126e2d | /backend/models.py | 0fac1930cf623951d83d9625894cca7608f9bc68 | [] | no_license | daniel-hrckson/react-flask-cart-functionality | 40223f2661421ecd7ec132a54ee1acdb725efbcd | 0bb32aac226689c5c84972fdcb7a6a5d58e0fba1 | refs/heads/main | 2023-03-09T18:57:32.301499 | 2021-02-14T07:07:45 | 2021-02-14T07:07:45 | 333,806,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | from sqlalchemy import Column, String, Float, Integer
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class MenClothes(Base):
__tablename__ = 'men_clothes'
sku = Column(Integer, primary_key=True, nullable=False)
name = Column(String, nullable=False)
price = Colu... | [
"danie.henrickson@protonmail.com"
] | danie.henrickson@protonmail.com |
5dac0c19eab9c7b268488fd6cdc4210bbd88cc03 | 74def152048a4d44f249168d748aeb849b43ca35 | /igra_zivota_zadatak4.py | efb67163a40cc75f614b171a8d1102cb241a3e25 | [] | no_license | kalugege/ParallelGameOfLife | 0b878a1c76ba16ae2d0df91308ded454b5dcb9ca | 6779d194eb38f69e43c993790ef7cc1805a6ec3d | refs/heads/main | 2023-01-08T20:57:18.463922 | 2020-11-01T13:54:58 | 2020-11-01T13:54:58 | 307,406,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,686 | py | import numpy as np
import multiprocessing as mp
N = 4
matrica=np.random.randint(2,size=(N,N))
def igra_zivota(task,matrica,N):
koordinate = {}
for x , y in task:
ziveKomsije=0
for i in range(x - 1, x + 2):
for j in range(y - 1,y + 2):
if x == i and y == j:
... | [
"kalugege@gmail.com"
] | kalugege@gmail.com |
ae3b1707df8245e73f1cc58d425c3b5b32058dc0 | de33458832ddb1b90c25135b4c477794733e0ad2 | /pinfoViewsBackup.py | 1910f8ce7f5dee18223ca87a47b144316c39a70d | [] | no_license | guptamohitofficial/Teacher-Gaurdian-Helper | a4d21c7a85a761d4e6c7ab0a2936b3081dff07fc | ac1855447216b4e4bf16379f8d80d2c6951712c7 | refs/heads/master | 2021-07-24T22:53:17.395168 | 2020-09-27T09:44:42 | 2020-09-27T09:44:42 | 220,827,974 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,779 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.contrib import messages
from .__init__ import cursor, conn, sendMail
from creator.models import allot_tg, semister
import pandas as pd
from random import randint
from passlib.hash import pbkdf2_sha256
# Create your views here.
def ho... | [
"gotomohitsplace@gmail.com"
] | gotomohitsplace@gmail.com |
f85bbfebf1415fa39d8acf5d5cb6f7722ac30e35 | 895f79e57861f2e2d552750fe56b5f742bdbd4cb | /tcv_stock/model/tcv_to_dispatch_config.py | 1ef87fe8ff78fda6a762bcdf463a6ab9bf812941 | [] | no_license | Tecvemar/openerp60 | e9899eebcfa150dd52537db8dcbf7264fafc63cd | 8534c448f63c71e57d91b21656f1bc1aa8f7aea8 | refs/heads/master | 2023-02-15T04:55:05.817013 | 2023-01-26T21:01:35 | 2023-01-26T21:01:35 | 74,976,919 | 1 | 1 | null | 2022-01-21T14:42:29 | 2016-11-28T13:45:07 | Python | UTF-8 | Python | false | false | 8,721 | py | # -*- encoding: utf-8 -*-
##############################################################################
# Company: Tecvemar, c.a.
# Author: Juan Márquez
# Creation Date: 2017-04-03
# Version: 0.0.0.1
#
# Description:
#
#
##############################################################################
#~ ... | [
"juanvmarquezl@gmail.com"
] | juanvmarquezl@gmail.com |
04a0f76dea48546a65e01b7e2f51cc2ad438972d | a5904bd3d5c5ee65ca62bc608d126123fffd4954 | /examples/simple_app_with_marshalling.py | 9033087d4fa86cd0859dc18d4f09b24d62aec54e | [
"Apache-2.0"
] | permissive | chimpler/pytcher | e9bb0327e2224e17c8c0ed64d82e2cb039ddbaa0 | cf6cbb5c583a79a50c53845fd293b3d7cbb29a85 | refs/heads/master | 2023-05-31T11:54:55.687933 | 2019-06-13T23:40:05 | 2019-06-13T23:40:05 | 173,527,983 | 7 | 0 | Apache-2.0 | 2021-04-29T19:32:46 | 2019-03-03T03:50:52 | Python | UTF-8 | Python | false | false | 1,336 | py | # flake8: noqa: E999
import json
from dataclasses import dataclass
from typing import Dict
from pytcher import Request, Integer, AppRouter, Response
from pytcher.app import App
@dataclass
class InventoryItem(object):
name: str
unit_price: float
quantity: int = 0
class MyAppRouter(AppRouter):
def __... | [
"francois.dangngoc@gmail.com"
] | francois.dangngoc@gmail.com |
2490d175700401cb6974363d87fb11c0dcd29030 | 886067dfdfd5e5986566b195a2c7e9f2117e34cb | /enactus/news/admin.py | d7b8cdd794b33c76facfdb9ae63ff114da44e746 | [] | no_license | fxy12345/crispy-winner | 5eecdec28274ce0e27ef8a2e3a57532ad36247e6 | 9fa57ec8d2a399c1c015b4b4d78426c406b30acd | refs/heads/master | 2022-01-17T15:35:06.790259 | 2019-07-21T13:11:45 | 2019-07-21T13:11:45 | 198,055,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from django.contrib import admin
from .models import Moment
admin.site.register(Moment)
# Register your models here.
| [
"15098801926@163.com"
] | 15098801926@163.com |
ac2706e015f6d3ca82f6f37ee532f9f8539b5fd2 | b0dbd2e4dd83fe012cde29c8474bae5e33c23e2a | /harbor_client/model/inline_object.py | 14d1693d21d96b9fe253d25ef01c946f8fe107fa | [] | no_license | DevotionZhu/harbor-python-client-api | 0ba3999e5af126dbe97f0234c4a9601660a97dbb | f0cc6c453b488d5f456eff94000156182eb3a468 | refs/heads/master | 2023-04-17T22:06:06.024871 | 2021-04-11T22:20:28 | 2021-04-11T22:20:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,462 | py | """
Harbor API
These APIs provide services for manipulating Harbor project. # noqa: E501
The version of the OpenAPI document: 2.0
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from harbor_client.model_utils import ( # noqa: F401
ApiTypeError... | [
"vb@container-registry.com"
] | vb@container-registry.com |
702c800985b4f7a7a6d298437367807dc571d1f8 | 72b3886d9688a0358ed7305f6bf9d3d07b5133c6 | /wp-scan-json.py | 03a3f4aae7f4b7515d66a7ce67f8c1d02e65bef3 | [] | no_license | njdevengine/automation | 5e22f1ffb3d61f2b44d98145ed929ebab231e953 | 736e17d10190f4946b98e8ecbeb8aad3efe30327 | refs/heads/master | 2020-06-22T04:15:00.503455 | 2019-09-11T19:34:56 | 2019-09-11T19:34:56 | 197,629,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | import os
import json
site = "www.yoursite.com"
os.system('wpscan --url'+' '+site+' -o '+site.split('.')[1]+' -f json')
with open(site.split('.')[1], 'r') as myfile:
data=myfile.read()
obj = json.loads(data)
obj
| [
"noreply@github.com"
] | njdevengine.noreply@github.com |
d0841151bec5d9accde42dcbfbf4d28f41f617ca | 6b093f9e0d6e811ed7acdbde0aefd2d42de7edee | /accounts/tests/test_authentication.py | 73aa59cad6329a18d49366fc731324512da485c3 | [] | no_license | blancheta/superlists | 3cf49c0f6f9ef90b95ae9313a31db70c5bf230d8 | 4d93042c62a97f92fc619ca5d63f64f80d23c817 | refs/heads/master | 2021-01-19T05:01:59.563831 | 2016-06-05T17:34:36 | 2016-06-05T17:34:36 | 60,361,426 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,828 | py | from django.contrib.auth import get_user_model
from unittest.mock import patch
from django.test import TestCase
from superlists.settings import DOMAIN
import logging
from accounts.authentication import (
PERSONA_VERIFY_URL,
PersonaAuthenticationBackend
)
User = get_user_model()
@patch('accounts.authentication.reque... | [
"alexandreblanchet44@gmail.com"
] | alexandreblanchet44@gmail.com |
08f3161f538785533af228861f8897c0588b4bd7 | 05c9f1af21a698e09f7ec37a075624250e907262 | /samples/cloudfiles/upload_folder.py | 98cc1e4e566028fe09d5a865b1edd3a98c390a6c | [
"Apache-2.0"
] | permissive | pycontribs/pyrax | 5f5a1d6816f5a831b1ae4b74ffaf438a1c0269a6 | 2397136b75e6fcc906ee406e9c1bc7aaef94387a | refs/heads/master | 2023-08-28T16:43:21.037208 | 2022-09-21T15:14:38 | 2022-09-21T15:14:38 | 5,975,139 | 10 | 27 | Apache-2.0 | 2021-07-12T21:23:11 | 2012-09-27T01:05:57 | Python | UTF-8 | Python | false | false | 3,013 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c)2012 Rackspace US, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.ap... | [
"ed@leafe.com"
] | ed@leafe.com |
6ff0461eae18fe69d2524f13d66c50f01d6e1ef6 | ed8016a5e340f95938ece4b3a8b1b4c9020931a7 | /backend/flask/src/database.py | 7c699c785ffc5bc15c381bf8d92fb3c5d277adee | [] | no_license | raphaelricardo10/Aquarela | df94633abd8686db0a65df53f1587978d01063cb | 22c6c9f8ba9afd4d09ad828c7d7c069152974543 | refs/heads/master | 2023-08-18T22:19:16.111932 | 2021-10-15T13:26:04 | 2021-10-15T13:26:04 | 416,375,323 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,178 | py | import os
from pymongo import MongoClient
class Database:
def __init__(self, dbName=None) -> None:
self.connection = None
#connect to the database
if(dbName):
try:
self.connect(dbName)
except:
raise
def connect(self, dbName: str) ... | [
"raphaelricardo10@gmail.com"
] | raphaelricardo10@gmail.com |
5643cb1f4798bea02668b9f37e0543d81ba346e6 | 8d13eabb7b576f04db5f9771286eb0affa0fbec1 | /google/cloud/texttospeech_v1/types/cloud_tts.py | 0af98da4f8b9c62cc08da1523772cc26c7415e11 | [
"Apache-2.0"
] | permissive | renovate-bot/python-texttospeech | e1204ece5affc8ef544f48c6f0e53dd2ad10a3bc | 4fa1bbd55546d4a03acff8234cd04597ce07deeb | refs/heads/master | 2023-08-10T03:01:43.177205 | 2021-08-30T16:10:22 | 2021-08-30T16:10:22 | 238,286,105 | 0 | 0 | Apache-2.0 | 2020-02-04T19:18:37 | 2020-02-04T19:18:36 | null | UTF-8 | Python | false | false | 10,917 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | [
"noreply@github.com"
] | renovate-bot.noreply@github.com |
e416d2c524976906871128237eb5a4345a95ae18 | cf64fc19dfc6f164779110ef26dad4a40756ba20 | /api_test_doc.py | 52f96fe3d1a292309447128dfd215b698a91294d | [] | no_license | davidsetiyadi/python_gleematic | b0f121edcd43106b9ac4c2a80cfc824f2906810c | d7460add1fd25b666ca890b4d27252e70782a0ff | refs/heads/main | 2023-07-18T17:46:11.757426 | 2021-09-20T09:48:16 | 2021-09-20T09:48:16 | 405,012,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | import json
import requests
import sys
#import urllib2
import urllib.request as urllib2
# Define the remote file to retrieve
AUTH_URL = 'http://localhost:8069/api/get/crm_data/'
headers = {'Content-type': 'application/json'}
# Remember to configure default db on odoo configuration file(dbfilter = ^db_name$)
# Auth... | [
"davidsetiadi11@gmail.com"
] | davidsetiadi11@gmail.com |
1369d20fa638de009a1b414de7acb195b10c6186 | 5039e4e30dbb477b6f1c7bf78cf7e721d4a31030 | /gulishop/apps/trade/migrations/0009_auto_20190124_2123.py | 0eb0843ecc5d80126dd7e17a94d0eadb873f975c | [] | no_license | LiangPier-haha/django | f06ae1abb7e0bb9828ca8148da5d9151a83caf58 | efc912155fcedf05beb640eb382876d80eab1aa0 | refs/heads/master | 2020-04-23T00:32:43.197429 | 2019-03-24T03:42:50 | 2019-03-24T03:42:50 | 170,783,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2019-01-24 21:23
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('trade', '0008_auto_20190122_1508'),
]
operations = [
migratio... | [
"17853246116@163.com"
] | 17853246116@163.com |
01215d337f6b19b43e1e1e7f3100e27245a91a77 | 1c45f82d87aceab5c994c3ab00ef3f9ca7cdad07 | /picture1.py | 084551d7eb801448aaeabbde283b1e1394592785 | [] | no_license | kuninagakura/pyStdDraw | 212517eb4d663a9ef3e584682f260149a4e4998b | 8b28ab551ade9152f14c7140d7c42114391ff48c | refs/heads/master | 2021-01-01T19:52:13.285088 | 2014-07-23T15:33:22 | 2014-07-23T15:33:22 | 22,156,382 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 6,238 | py |
"""
picture.py
The picture module defines the Picture class and the wait() function.
"""
#-----------------------------------------------------------------------
import sys
import pygame
import color
import tkintercommon
import stdarray
#-----------------------------------------------------------------------
_DEF... | [
"kuninagakura@gmail.com"
] | kuninagakura@gmail.com |
d171299b7d978fef9fc02f0469bcf91564448ef9 | af541e5ee0184c23d2f9f97c6a4fd709518eca9b | /libs/mmcv/mmcv/runner/hooks/lr_updater.py | eb099d95249bf49c9e9d25653656830ade4db6d2 | [
"Apache-2.0"
] | permissive | amitrai12018/ProposeReduce | 3f436feadc1fe10d73a46df8be375d20f80c2c83 | 27e85695d568a790f822f2440461b4c8338a21a3 | refs/heads/main | 2023-08-11T02:48:31.993073 | 2021-10-09T18:40:05 | 2021-10-09T18:40:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | from __future__ import division
from math import cos, pi
from .hook import Hook
class LrUpdaterHook(Hook):
def __init__(self,
by_epoch=True,
warmup=None,
warmup_iters=0,
warmup_ratio=0.1,
**kwargs):
# validate the "war... | [
"huaijialin@gmail.com"
] | huaijialin@gmail.com |
29d00d8de1abd0781d1257031bac5ecf95bb4647 | 66743c165ddc59914d665df915565309798b6ab2 | /content/ru/post/org-roam-links | d11a876de059052cc56590c57a63948293fcf4d9 | [
"CC-BY-4.0"
] | permissive | yamadharma/blog | 178731665643d964d42526c6d1eee0b313718986 | 878c448bb6633e7c47993f3fb38bb4030ca52b43 | refs/heads/master | 2023-08-16T21:50:52.895976 | 2021-04-10T12:46:15 | 2021-04-10T12:46:15 | 250,521,920 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,474 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import re
import os
orgroamdir = "~/me/org/notes/"
def find_md_links(md):
"""Returns dict of links in markdown:
'regular': [foo](some.url)
'footnotes': [foo][3]
[3]: some.url
"""
# https://stackoverflow.com/a/30738268/2755116
INL... | [
"yamadharma@gmail.com"
] | yamadharma@gmail.com | |
fbc007b5fe980e3a1bf92e93476df93d37f18f66 | 4370df21b4382c96f46d7f08e69bfba415b704e6 | /quicksort.py | 0d820790cf22c8902cea50fcc81a818b36031017 | [] | no_license | developerdamion/YoutubeDeveloperDamion-video-05 | d2c0545b1b53ca8faa2a58b21f4a408f23ad49bb | bd05ffbbf59470a78387975c1486022ad010815e | refs/heads/master | 2022-04-20T20:56:46.644866 | 2020-04-15T12:26:49 | 2020-04-15T12:26:49 | 255,908,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | """
Hey! Thank you for supporting my youtube channel
( https://www.youtube.com/channel/UCKrs-v_MlKjzVbe4jyLSrPQ ).
This is video-05: quickSort Algorithm
( https://youtu.be/7QvC3iC0Smg )
DeveloperDamion
"""
def quickSort(unsortedArray = []):
if len(unsortedArray) <= 1: return unsortedArray
largerArray = []
sma... | [
"developerdamion@gmail.com"
] | developerdamion@gmail.com |
e60dd29b9b6aedd26d515eea6b46d052e940a7fd | 45864f0ba289eec8eaf0d6d7a98b97b0be77bc31 | /functions/structures.py | 21056fe78bfe5fe6c84ac342313d3a2cb3de7b87 | [
"MIT"
] | permissive | emptyewer/DEEPN | 45822896c227ec3ac5f76f4072fe8921d0e175c6 | 0c54c714af3e08ce3626e9fd5d795d7d5f28aeca | refs/heads/master | 2021-08-27T18:02:48.040169 | 2018-02-22T22:04:08 | 2018-02-22T22:04:08 | 50,394,130 | 5 | 4 | null | 2017-04-27T19:30:48 | 2016-01-26T01:33:57 | OpenEdge ABL | UTF-8 | Python | false | false | 627 | py | class jcnt():
def __init__(self):
self.position = 0
self.query_start = 0
self.frame = ''
self.ppm = 0.0
self.orf = ''
self.frame_orf = False
self.count = 1
def __repr__(self):
string = "<Junction pos:%d, " \
"q.start:%d, ppm:%.3f,... | [
"venky.krishna@icloud.com"
] | venky.krishna@icloud.com |
134676ae2125b1c4492a50440457da257072a394 | 1886a661f15d307171871c829373ea6ff27f29b4 | /TCPUDP_Programs/TCPClient.py | 7c25e898cea830ed96200427cdd2631249123cd8 | [] | no_license | Wyyyyylla/COMP9331 | e4fc2ccfb9eaa1a3d98e0c94b85d0d81c132e3f9 | dbcca8e54a47b7b9cbf320b69e632e4a9c0200a4 | refs/heads/master | 2020-08-21T14:29:53.791001 | 2019-08-27T10:26:47 | 2019-08-27T10:26:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py |
from socket import *
import sys
total = len(sys.argv)
cmdargs = str(sys.argv)
serverName = str(sys.argv[1]);
serverPort = 12000 #change this port number if required
clientSocket = socket(AF_INET, SOCK_STREAM)
clientSocket.connect((serverName, serverPort))
sentence = raw_input('Input lowercase sentence:'... | [
"procj0926@gmail.com"
] | procj0926@gmail.com |
75a180e8ee497cf230ca9c28a1d129750546b52e | 6662ab1ea0e55131092bc56d5d875673de47c5d3 | /rcc/extended/variables/variables.py | ca0fb586fa0596f3ab37282994ad153d9eef511c | [] | no_license | FormulatedAutomation/StupidRobotTricks | 6fae7397476b2e7db2fda46e43431c171f914452 | e9241c52957387276363f8e05915e23358280b6f | refs/heads/main | 2023-02-28T19:40:47.980540 | 2021-02-11T19:20:14 | 2021-02-11T19:20:14 | 313,713,010 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | '''
Variables for Robot Framework goes here.
'''
import calendar
from datetime import date
WEEK_DAY_NAME = calendar.day_name[date.today().weekday()]
| [
"m@mdp.im"
] | m@mdp.im |
f00b1ff8e1c1c9993dfc105355125a6035668d80 | 2f6c8ac012336f5ef4a3d111ebc5faae8c198488 | /ATL-RPi-FERNANDO/pi/run-fan.py | a17bb9c20e1c7290ef3eebadf0eb0c796910127a | [] | no_license | olivoalex/PCB-s-Board-Program | 68d65890acc371da754fc9038f6570c1306f1d73 | 8d1fa26d4894daa388fe3460b2cacbbc1804bdc5 | refs/heads/master | 2021-01-11T10:26:48.086957 | 2018-10-31T15:23:17 | 2018-10-31T15:23:17 | 78,902,728 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | #https://hackernoon.com/how-to-control-a-fan-to-cool-the-cpu-of-your-raspberrypi-3313b6e7f92c#.j6oruzhz7
#python run-fan.py
#!/usr/bin/env python3
# Author: Edoardo Paolo Scalafiotti <edoardo849@gmail.com>
import os
from time import sleep
import signal
import sys
import RPi.GPIO as GPIO
pin = 18 # The pin ID, edit... | [
"ceviana.s3@gmail.com"
] | ceviana.s3@gmail.com |
bbb93bc3078b9af8f541ab2bce42c8acaf0fc5ff | b0074c01fc402dbdf583c5aaefb8044a9da9af3e | /testSum.py | ca0e0cd63a2e345e408a21941adbb6461c38425d | [
"MIT"
] | permissive | vikrant-pune/flask-celery-example | 84b024209ac8572c5f98a82c68d56471df5dd9d0 | ae833971b14ee927b1700f25a4f3073234fa8d02 | refs/heads/master | 2023-03-03T11:34:51.562827 | 2021-02-18T13:13:47 | 2021-02-18T13:13:47 | 266,789,997 | 0 | 0 | MIT | 2021-02-18T13:13:48 | 2020-05-25T13:44:33 | Python | UTF-8 | Python | false | false | 1,809 | py | """
https://leetcode.com/problems/two-sum/
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.
You may assume that each input would have exactly one solution, and you may not use the same element twice.
You can return the answer in any order.
E... | [
"vikrant.pawar@exabeam.com"
] | vikrant.pawar@exabeam.com |
41c5dc41f368fcef70d32e6d6b1027c54846acdc | 6fa57c7d20a6f8052361d08328ff5fca8e0b739c | /Listbox.py | bd6dbc338a9c9cd95f559ebe3c72d5f0c3b632bd | [] | no_license | felipeCaetano/TkinterGalery | 0d787f86a302649244962135cd98cdc84769194e | fff6751e1b33c744550c0dc40fcf13b22471f441 | refs/heads/master | 2020-09-07T17:08:59.967380 | 2019-11-11T02:28:54 | 2019-11-11T02:28:54 | 220,855,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | """
Cria uma listbox basica
"""
from tkinter import *
master = Tk()
listbox = Listbox(master)
listbox.pack()
listbox.insert(END, "a list entry")
for item in ["one", "two", "three", "four"]:
listbox.insert(END, item)
mainloop()
| [
"noreply@github.com"
] | felipeCaetano.noreply@github.com |
f11454ac0b85a80f57b7bc3166ab914104bf1e72 | 0b01cb61a4ae4ae236a354cbfa23064e9057e434 | /alipay/aop/api/request/KoubeiAdvertCommissionChannelCreateRequest.py | 6a92f87eec8209cf0547da7c551c201278a42cb2 | [
"Apache-2.0"
] | permissive | hipacloud/alipay-sdk-python-all | e4aec2869bf1ea6f7c6fb97ac7cc724be44ecd13 | bdbffbc6d5c7a0a3dd9db69c99443f98aecf907d | refs/heads/master | 2022-11-14T11:12:24.441822 | 2020-07-14T03:12:15 | 2020-07-14T03:12:15 | 277,970,730 | 0 | 0 | Apache-2.0 | 2020-07-08T02:33:15 | 2020-07-08T02:33:14 | null | UTF-8 | Python | false | false | 4,009 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.KoubeiAdvertCommissionChannelCreateModel import KoubeiAdvertCommissionChannelCreateModel
class KoubeiAdvertCommissionChannelCreateRe... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
87027d0329817413bda85ae087fd723f73f29058 | efc3bf4f88a2bfc885de5495c87433d345b54429 | /ZOJ/2482.py | fe3d3b749871e258b09e8c367e84e6dc209647ab | [] | no_license | calvinxiao/Algorithm-Solution | 26ff42cc26aaca87a4706b82a325a92829878552 | afe254a4efa779598be8a82c5c5bcfcc94f80272 | refs/heads/master | 2016-09-05T21:08:35.852486 | 2015-08-23T15:13:23 | 2015-08-23T15:13:23 | 20,149,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | #Problem ID: 2482
#Submit Time: 2012-08-13 16:32:45
#Run Time: 10
#Run Memory: 420
#ZOJ User: calvinxiao
import sys
def getline():
return sys.stdin.readline()
def getint():
return int(sys.stdin.readline())
def getlist():
return sys.stdin.readline().strip().split()
cases = getint()
for case ... | [
"calvin.xiao@scaurugby.com"
] | calvin.xiao@scaurugby.com |
519d8d428a05e407267b3acf7b29ef3992a0bb32 | f0e25779a563c2d570cbc22687c614565501130a | /LeetCode/Offer/顺时针打印矩阵.py | 5e573a82f1dfeb329eb5c57ca987dd6faf17221b | [] | no_license | XyK0907/for_work | 8dcae9026f6f25708c14531a83a6593c77b38296 | 85f71621c54f6b0029f3a2746f022f89dd7419d9 | refs/heads/master | 2023-04-25T04:18:44.615982 | 2021-05-15T12:10:26 | 2021-05-15T12:10:26 | 293,845,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,333 | py | """
输入一个矩阵,按照从外向里以顺时针的顺序依次打印出每一个数字。
示例 1:
输入:matrix = [[1,2,3],[4,5,6],[7,8,9]]
输出:[1,2,3,6,9,8,7,4,5]
示例 2:
输入:matrix = [[1,2,3,4],[5,6,7,8],[9,10,11,12]]
输出:[1,2,3,4,8,12,11,10,9,5,6,7]
限制:
0 <= matrix.length <= 100
0 <= matrix[i].length <= 100
注意:本题与主站 54 题相同:https://leetcode-cn.com/problems/spiral-ma... | [
"cherry.kong0907@gmail.com"
] | cherry.kong0907@gmail.com |
f57bde487847c8891368fad6508d955aee34c88e | ef7e7f9a3adaf98642664b9dfd31d41070a2ce34 | /kbengine/assets/scripts/common/const_ll7.py | 78715fcd4d125e2dff6784cc888e99c5e870799b | [] | no_license | leeminHong1990/LLD7 | f5f864761f641e5d2a797d828b02c447dcf206d5 | 954ff3aee8d33bd00a5904ace28f61abc0e9a97f | refs/heads/master | 2020-05-09T21:58:02.347734 | 2019-12-16T09:11:07 | 2019-12-16T09:11:07 | 181,451,493 | 1 | 6 | null | null | null | null | UTF-8 | Python | false | false | 3,286 | py | DEBUG_JSON_NAME = "0001ll7"
# aid
AID_NONE = 0
LORD_FIRST = 1<<3
LORD_SECOND = 1<<4
LORD_THIRD = 1<<5
DRAW_COVER = 1<<6
COVER_POKER = 1<<7
DISCARD = 1<<8
SHOW_COVER = 1<<9
SURRENDER_FIRST = 1<<10
SURRENDER_SECOND = 1<<11
QUIT_TIMES = 100
POKER_OFFSET = 2
#黑红梅方 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K, A, 2
H... | [
"693749857@qq.com"
] | 693749857@qq.com |
1b3d398d60ceb3bd664a56ddf5d5ec9ceaa1d6bd | 2571927991eb4b72756182965b0fca6269e9cdda | /PostfixEval.py | 44459dead668ed088a0b624ea9b72dd0f6eb9326 | [] | no_license | nlin24/python_algorithms | 3202a108e7abf0c93afcccbbf84e2b72f789032b | 22221e662d59ccb96b593cd165ecd37be4d37c97 | refs/heads/master | 2020-04-07T13:57:51.225077 | 2019-07-02T03:37:58 | 2019-07-02T03:37:58 | 158,429,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | import Stack
'''
Implement the postfix string evaluation here http://interactivepython.org/runestone/static/pythonds/BasicDS/InfixPrefixandPostfixExpressions.html
'''
def postfixEval(postfix_string):
operandStack = Stack.Stack()
for token in postfix_string:
if token == " ":
continue
... | [
"james"
] | james |
591e86dc222885eba9fba20183674934d041a844 | ac194b6da1dd1a438a223777432a73a3e4742de1 | /amazon.py | 1fdc80f9508a4be40d538e9a1403f44475e1e131 | [] | no_license | amosy3/MUST | 9c497aefd8cb26c6102b53e3c881689b44c51e98 | 95bfad2f47dcfbf6b07a356551bf568a7abcc500 | refs/heads/main | 2023-08-13T14:35:45.694516 | 2021-10-11T13:46:08 | 2021-10-11T13:46:08 | 415,944,897 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,366 | py | import numpy as np
import time
import pickle
import copy
import torch
import torch.optim as optim
import os
import datetime
import torch.nn.functional as F
from scipy.sparse import coo_matrix
import random
import argparse
np.random.seed(111)
torch.manual_seed(111)
def get_args():
parser = argpars... | [
"noreply@github.com"
] | amosy3.noreply@github.com |
1395c3aca2cc92b5dc7677bb6b0a68ffba12705d | 7dc1b312f117390b55f6a1b258065ea30212180d | /src/common/rpc.py | ef4d409f3431fbed7430b5beb5a3ce64e8ff7582 | [] | no_license | msemikin/distributed-sudoku | 262cc07371021cd81a5db5a3bb2a20c7643c5515 | d2737b10dbdc2e980641ee3529ebcd06fe52faed | refs/heads/master | 2021-09-03T02:46:40.732243 | 2018-01-05T01:48:52 | 2018-01-05T01:48:52 | 109,395,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | from SimpleXMLRPCServer import SimpleXMLRPCServer
import socket
import logging
logger = logging.getLogger(__name__)
class CustomXMLRPCServer(SimpleXMLRPCServer):
def __init__(self, addr, **kwargs):
SimpleXMLRPCServer.__init__(self, addr, **kwargs)
self.should_shutdown = False
def serve_fore... | [
"caliber1997@gmail.com"
] | caliber1997@gmail.com |
2a63ab911635f7ce78573d221699b93b6e06e776 | 2d6f385a6ad9a77df60b21e36c417c22dea296b0 | /RememberYourFriends/allcountries.py | c6856ac589ea7781ffdb6369111196fb3e307f29 | [] | no_license | peterbe/zope_products | f4f8c4e0348525c4c0742b290b2ee5e06ed91a71 | 8cb710cdb13cd895e886e37495a601aed49863d2 | refs/heads/master | 2021-01-21T00:43:31.846747 | 2011-10-04T06:37:34 | 2011-10-04T06:37:34 | 1,776,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,818 | py |
ALL_COUNTRIES = (
'Afghanistan',
'Albania',
'Algeria',
'American Samoa',
'Andorra',
'Angola',
'Anguilla',
'Antarctica',
'Antigua And Barbuda',
'Argentina',
'Armenia',
'Aruba',
'Australia',
'Austria',
'Azerbaijan',
'Bahamas',
'Bahrain',
'Bangladesh',
'Barbados',
'Belarus',
'Belgium',
'Belize',
'Benin',
'Bermuda',
'Bhut... | [
"mail@peterbe.com"
] | mail@peterbe.com |
5acaf82ac2db33a08556e39a1809a2a5a6896c38 | 1125345341e496920b661e612cd67cdb96a1d170 | /createCampaign/parameter_tests/CREATIVE_TYPE/test08_abcd_f.py | 17c9819ec1a2556865b067141d7b4187d426daf9 | [] | no_license | Stephen-Williams/swarm-qa | 0bac526f0ee44b8c3677fb35959e6f7d0e258be2 | 90e36b5eab475788d9ab54051ad9c2736f3633ec | refs/heads/master | 2021-01-01T20:11:51.033059 | 2015-07-08T16:07:06 | 2015-07-08T16:07:06 | 38,764,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,679 | py | { 'all' :
{ '0':
{ 'ADOMAIN': 'abc.com',
'ADVERTISER_CATEGORY': 'IAB8-5',
'APP_FILTER': 'sites',
'CREATIVE_ATTR': '0',
'CREATIVE_BASE_64': 'iVBORw0KGgoAAAANSUhEUgAAAUAAAAAyCAIAAACib5WDAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAD2EAAA9hAag/p2kAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuNWWFMmUAAAYHSURBVHhe... | [
"stephen.williams@juicemobile.com"
] | stephen.williams@juicemobile.com |
36f15a850afce5b6541b321f369fbf921041164d | 1889dc3f8220a50856e3fb5d2481a8e4c1b0fc4e | /Model_codes/test.py | f7f5e11b600ad7fca2aec4f75b50f2eeef25802d | [] | no_license | Annon-arch/ChatterNet | 688fa22c031cbe4953ab953699197dfdb65ce815 | f8dbcbf7c02e0e0716d91cc86decd5ce9d0d967f | refs/heads/master | 2022-12-10T10:21:20.861716 | 2020-03-16T06:16:01 | 2020-03-16T06:16:01 | 241,574,829 | 1 | 0 | null | 2022-12-08T03:48:47 | 2020-02-19T08:54:23 | Python | UTF-8 | Python | false | false | 2,270 | py | import json
import numpy as np
from build_model import build_model_observeLSTM, masked_relative_error
from matplotlib import pyplot as plt
from scipy.stats import kendalltau, spearmanr
def smape(A, F):
return (100/len(A)) * np.sum((2 * np.abs(F - A)) / (np.abs(A) + np.abs(F) + np.finfo(float).eps))
def mape(A, F):
... | [
"noreply@github.com"
] | Annon-arch.noreply@github.com |
fe3b9d8e37f2011e8616419bb475b9e3d8e513c6 | ca6aaaddbd6ee025790af5bd0a6ed0645c54e65a | /log_collectors/regex_extractor/__init__.py | 5bfd4bcff2391104815491d05bb44bdbfb7578e5 | [
"Apache-2.0"
] | permissive | AISphere/ffdl-model-metrics | b3ff428588794f7b0c70f8f92b3e0f1069902c0a | e1a27db3d130fb3227585ee30b860a085591e748 | refs/heads/master | 2020-04-01T19:09:13.596717 | 2019-02-05T19:30:57 | 2019-02-05T19:30:57 | 153,538,219 | 1 | 5 | Apache-2.0 | 2019-02-15T13:30:44 | 2018-10-17T23:55:05 | Python | UTF-8 | Python | false | false | 74 | py | from __future__ import absolute_import
from .src import extract_from_log
| [
"falk.pollok@ibm.com"
] | falk.pollok@ibm.com |
d901db86558a1335fc2f43ba7a464314f345b60f | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/datalogai_recurrentshop/recurrentshop-master/recurrentshop/engine.py | 4f9ec7f358401d78e869ebaa7be55093fc9cf009 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 19,284 | py | from keras.layers import Layer, InputSpec
from keras.models import Sequential
from keras import initializations, regularizers, constraints
from keras.utils.layer_utils import layer_from_config
from keras import backend as K
from inspect import getargspec
import numpy as np
from . import backend
'''Provides a simpler ... | [
"659338505@qq.com"
] | 659338505@qq.com |
548d8103a04d1820fb605391299e1a277e6efd2a | fed1d6d3556f7e180de0f5be1e014ecd2c0f5fd9 | /picraft/entity.py | 096c29dafbdc693e8ece65c9f4fca2f44b8488f5 | [
"BSD-3-Clause"
] | permissive | DannyGoodall/picraft | 3eae90c0321a3e8e0db7229f4b9de5081d4ee88f | 27cb3ab2384367e29d0eb0d964b635fb37516e37 | refs/heads/master | 2022-03-05T16:51:04.067733 | 2021-12-23T17:23:00 | 2021-12-23T17:23:00 | 177,415,931 | 0 | 0 | null | 2019-03-24T13:05:51 | 2019-03-24T13:05:51 | null | UTF-8 | Python | false | false | 23,396 | py | import io
from .vector import vector_range, Vector
from pkg_resources import resource_stream
from .entityinterface import ThingInterfaceManager, ThingInterface, ENTITY_INTERFACES
#, ENTITY_NAME_OVERRIDE
from .method import MethodManager
from .interface import InterfaceMethodBase
from dataclasses import dataclass
from ... | [
"dannynonegoodall@gmail.com"
] | dannynonegoodall@gmail.com |
e12d6659f0e48bef47c8cf4088059561f98f6169 | e833e573c20e9f66fe713beece367b4094594827 | /seasonal_plot.py | 8bad5a88a45a0f5d762fed3c4102ce65b2ff92d2 | [] | no_license | Smrithi23/Petrol-Price-Forecasting-Using-ARIMA-Model | 28a8bb0d5006560c0065758fd1da42548c265690 | 5c701436659b751fb13cc5bfabf2bbfb8b4b1c1e | refs/heads/main | 2023-01-23T09:42:41.470536 | 2020-11-28T19:09:28 | 2020-11-28T19:09:28 | 316,778,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | from dateutil.parser import parse
import matplotlib as mpl
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
import pandas as pd
# Import Data
df = pd.read_csv('fuel_price_data.csv', parse_dates=['date'], index_col='date')
df.reset_index(inplace=True)
# Prepare data
df['year'] = [d.year for d i... | [
"smrithi.prakash23@gmail.com"
] | smrithi.prakash23@gmail.com |
183fae952436a7e579eeffb6392a6c7f9aadd798 | 115520f88f888461e06b4e20da79ecb68b978593 | /point/models.py | 9b7a083fcc27e0c452048c2bbb8e6f294b46fcba | [] | no_license | koblas/notewave | c516a2fe05eb4c8f44847d4a396a78e54f477059 | f0d43a362e8f0976ec63a4df46fc81a8e536aad9 | refs/heads/master | 2021-01-18T21:26:44.034678 | 2012-05-30T18:54:17 | 2012-05-30T18:54:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,442 | py | from django.db import models
from openauth.models import User
from snippets.models import JSONField
import re
# from http://daringfireball.net/2010/07/improved_regex_for_matching_urls
LINK_RE = re.compile(r'(?i)\b((?:[a-z][\w-]+:(?:/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|... | [
"koblas@extra.com"
] | koblas@extra.com |
2abe5d08dc261b8f084b22d90822fcbdd82d1fbe | 11c975bd35541e89f7d398dc9bb3348882e03633 | /templates/python/facebook_business/adobjects/helpers/adsinsightsmixin.py | edd5e48ed271af8ee00ba32a0464c964e28ce951 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-facebook-software-license"
] | permissive | facebook/facebook-business-sdk-codegen | 46bd376c6e88b8f9d3b30153252b4f8b69d5baff | 21a5f587afe4fb8fe7dd6a002240ab2eb3069fbe | refs/heads/main | 2023-09-01T21:13:25.865556 | 2023-08-18T19:09:11 | 2023-08-18T19:09:11 | 167,639,042 | 75 | 64 | MIT | 2023-09-14T17:44:46 | 2019-01-26T02:03:10 | PHP | UTF-8 | Python | false | false | 1,656 | py | # Copyright 2014 Facebook, Inc.
# You are hereby granted a non-exclusive, worldwide, royalty-free license to
# use, copy, modify, and distribute this software in source code or binary
# form for use in connection with the web services and APIs provided by
# Facebook.
# As with any software that integrates with the Fa... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
78191de7a3552304ba7958b9dacbe8ec85ed9f5f | 457ff88e70deccdd530a2a7a826a30944eb995d0 | /bullet.py | 1615f1020dcafe2f4c1571f669e29ad43a6df26a | [] | no_license | gouthem1/Pygame_final | f4ab246e626a7d49dc2371815c34f5847b61dbf2 | 5e16efd0878e84ecfe848f31343e8f231e2453e2 | refs/heads/master | 2022-12-29T19:06:51.106355 | 2020-10-19T22:29:07 | 2020-10-19T22:29:07 | 305,512,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | import pygame
from pygame.sprite import Sprite
class Bullet (Sprite):
"""A class to amnage bullets fired from the ship"""
#sprite groups elements together
def __init__ (self, ai_game):
'''Create a bullet object at the ship's current position'''
super().__init__()
self.screen= ai_g... | [
"johndoe@example.com"
] | johndoe@example.com |
bab9fea8551790c24d825944de199aa596e1b011 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/2/erz.py | bba8142a2aa3894ba93a388f5fe901afbc750baf | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
de5d15d0b7c4c9c8e4113c2abaf3463af7a368af | be07637552f1089bb3e7300921f19baa8115a050 | /utils.py | afc2eb5e503cf15be6e3d186fe678a7fc6f6d006 | [] | no_license | andremourato/travian_bot | b0081f676c7e8c122fb6cc1f7a18b88319b92e86 | 0c8c1f0112127315dc8d08e4f067c99e9f17c04b | refs/heads/master | 2020-04-29T06:38:43.538761 | 2019-03-17T19:08:08 | 2019-03-17T19:08:08 | 175,923,792 | 1 | 0 | null | 2019-03-16T03:58:47 | 2019-03-16T03:58:46 | null | UTF-8 | Python | false | false | 256 | py | from datetime import datetime, timedelta
def add_seconds_to_datetime_now(seconds):
"""Add seconds to current timestamp and return it."""
future_date = datetime.now() + timedelta(seconds=seconds)
return future_date.strftime('%H:%M %d-%m-%Y')
| [
"sasha750i@mail.ru"
] | sasha750i@mail.ru |
8ef4a64b0d65f4733c09394c9f18f7e7269e6b82 | 6fddcefe20d0f94d5ad058232d53d8d2dc21c3f7 | /demo/us.py | 85119b73cd2b1090bcdc7338336158606bceda8c | [
"MIT"
] | permissive | Xie-Zhibin/backend-guide | ff178ab4557ad3762945f1a47bbf609176a03bb6 | 9934688ab17afa0f21f845296c2313fc148e813f | refs/heads/master | 2020-12-11T05:24:51.298771 | 2016-07-08T21:18:16 | 2016-07-08T21:18:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | from flask import Flask, request, abort
app = Flask(__name__)
@app.route("/api")
def api():
with app.open_resource("us-api.json") as f:
content = f.read()
return content, 200, {"Content-Type": "application/json"}
@app.route("/api/user")
def user():
if request.method == 'GET':
return "u... | [
"guyskk@qq.com"
] | guyskk@qq.com |
a6d6725030ae4d13cb32a74cda9bcc4bf9fc7bda | 3b334e9ac96ba3b975f427e84d2f981cacd884ff | /oop/contacts.py | 9fa7da0437faead706944e000a0c176c99995f96 | [] | no_license | HminiL/flask-madird-titanic-docker | 38a4d797501a252dbe1579e9e53e6f70f3ffc0a9 | 3670792f41427d22f5f2e10e4f7acbe8fa86b845 | refs/heads/main | 2023-08-11T03:41:33.002213 | 2021-09-24T03:25:04 | 2021-09-24T03:25:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | """
name, phone, email, address
"""
class Contacts(object):
def __init__(self, name, phone, email, address):
self.name = name
self.phone = phone
self.email = email
self.address = address
def to_string(self):
print(f'{self.name}, {self.phone}, {self.email}, {self.addres... | [
"hmin10580@gmail.com"
] | hmin10580@gmail.com |
ec7d46baa6693cb551224bc25db5ebe267eba300 | 9e8daa9c83af977e9d414c4315d4b9503ed4fa1b | /Query_practice_geo.py | 3c3c49e3cf27e42721887ccb55a9b91c7be9fd36 | [] | no_license | PracticeMinder/practiceminder-data-utils | da2ef666e48fcdd5b8d8a12f7e6f98f2a134a078 | d56bc7c6d4991e45bdefe1b59133cae158a77ea8 | refs/heads/master | 2016-09-06T12:35:12.709491 | 2013-11-11T23:28:58 | 2013-11-11T23:28:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,583 | py | from pymongo import MongoClient
from pymongo import ASCENDING, DESCENDING
import re
import csv
import geojson
import json
#connection = Connection('146.185.159.107',27017)
def __connect__():
connection = MongoClient('146.185.159.107', 27017)
db = connection.prescription
db.authenticate('nhshd','nhshd')
... | [
"ole.st@gmx.de"
] | ole.st@gmx.de |
2088dbeee2068e4dc57d1ad90cdcf24e1fb6776b | 3189215ffa8120bbb811952b60894eb4d9776618 | /source/trancost_funcs.py | 05e227e3dee05963fead4d5a71785f9cd04927b7 | [
"MIT"
] | permissive | opimal-hedging-pg/OHPG | d0c2d955d6bfb91dc4459d9cc5ff769822a043a1 | f0de2170c2154d1e94afdeb89b2f24326f06123b | refs/heads/main | 2023-05-25T22:50:44.514227 | 2021-06-11T11:53:29 | 2021-06-11T11:53:29 | 376,008,271 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py |
class BaseTrancost(object):
@property
def name(self):
raise NotImplementedError()
class constant_trancost(BaseTrancost):
@property
def name(self):
tcp = '_'.join(str(self.tcp).split('.'))
return f'TCcont-{tcp}'
def __init__(self, tc_para = 0.):
self.tcp = t... | [
"noreply@github.com"
] | opimal-hedging-pg.noreply@github.com |
296f4389a7d7cba67e3405d2a9054bbd0112ef2a | b4afb44b8f483c048716fe12d778186ce68ac846 | /AutoFrameworkForAppiumPy/com/qa/automation/appium/pages/ios/ffan/location_bluetooth_page.py | a4424934bd10cece78cca0f401632ff7bf593584 | [] | no_license | liu111xiao111/UItest | 64309b2c85f6d2334d64bb0875ba9ced459ebb1e | 67e2acc9a99da81022e286e8d8ec7ccb12636ff3 | refs/heads/master | 2021-09-01T18:30:28.044296 | 2017-12-28T04:36:46 | 2017-12-28T04:36:46 | 115,585,226 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | # -*- coding: utf-8 -*-
from com.qa.automation.appium.api.api_new import API
from com.qa.automation.appium.pages.ios.common.super_page import SuperPage
from com.qa.automation.appium.pages.ios.ffan.location_bluetooth_page_configs import LocationBluetoothPageConfigs
class LocationBluetoothPage(SuperPage):
'''
... | [
"tl@neusoft.com"
] | tl@neusoft.com |
23c646f97b857f315e89b4ba721d55d1e5f7dc10 | e299ad494a144cc6cfebcd45b10ddcc8efab54a9 | /test/functionalities/inferior-assert/TestInferiorAssert.py | a8ce779434fe5689895199118a548b6bdb2eb513 | [
"NCSA"
] | permissive | apple-oss-distributions/lldb | 3dbd2fea5ce826b2bebec2fe88fadbca771efbdf | 10de1840defe0dff10b42b9c56971dbc17c1f18c | refs/heads/main | 2023-08-02T21:31:38.525968 | 2014-04-11T21:20:22 | 2021-10-06T05:26:12 | 413,590,587 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,217 | py | """Test that lldb functions correctly after the inferior has asserted."""
import os, time
import unittest2
import lldb, lldbutil
from lldbtest import *
class AssertingInferiorTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwi... | [
"91980991+AppleOSSDistributions@users.noreply.github.com"
] | 91980991+AppleOSSDistributions@users.noreply.github.com |
fc44d1dec1e8f29a286c997f79b935a1eedebb9d | aa7aca873a232e4b9308bbba18dbdc2fd92fb06f | /server/tests/steps/test_moving_average.py | c5b91aa8557020f563802fead19ce15ab657f37e | [
"BSD-3-Clause"
] | permissive | ToucanToco/weaverbird | b27204c70de0d82cd88414608cb0b3e74e8e427a | d61df345248424802a78e84304a81d4f0ad9c92b | refs/heads/master | 2023-08-15T23:26:34.038972 | 2023-08-11T13:15:22 | 2023-08-11T13:15:22 | 167,165,685 | 85 | 12 | BSD-3-Clause | 2023-09-12T15:55:25 | 2019-01-23T10:40:17 | TypeScript | UTF-8 | Python | false | false | 2,046 | py | import numpy as np
import pandas as pd
from pandas import DataFrame
from tests.utils import assert_dataframes_equals
from weaverbird.backends.pandas_executor.steps.moving_average import execute_moving_average
from weaverbird.pipeline.steps import MovingAverageStep
def test_moving_average_basic():
df = DataFrame(... | [
"noreply@github.com"
] | ToucanToco.noreply@github.com |
06c28ca540ed9665ccbe1b7f66eaf5574e18b621 | 998a6cf9ce2680abf89425724f7dcfb56a68a05a | /polls/migrations/0026_auto_20210216_1322.py | 84dd90f6349ad3a0c7275b0d5470e3127b0671e3 | [] | no_license | Pasquale012/SocialNetworkAnalytics | 740fd6bf3242836b5b178e1cddc95bd1ca746fc6 | 32697c2bb44ae5f5e0a8eebcc371b96a6207478f | refs/heads/master | 2023-03-17T16:39:09.537984 | 2021-03-03T19:41:39 | 2021-03-03T19:41:39 | 340,024,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | # Generated by Django 3.1.4 on 2021-02-16 12:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('polls', '0025_auto_20210216_1251'),
]
operations = [
migrations.AlterField(
model_name='post',
name='avgNegativeSent... | [
"43438431+Pasquale012@users.noreply.github.com"
] | 43438431+Pasquale012@users.noreply.github.com |
b5326b685b11454f3599295a478e33dae76bfdde | de0aee5d96ce1e255c0fef0e66450bab3aadd2e7 | /admin.py | 98bf0a40ede109bd32080740760a75bef0309b26 | [] | no_license | vinay-chauhan/Web-App-of-Employee-usingDjango-RestAPI | 516b86996f895fdc3cf34b3f6929e7b04ad06204 | 060e7521190cc1cf933737c4efe2d87ac044a836 | refs/heads/master | 2020-06-26T02:27:57.432690 | 2020-01-24T08:53:32 | 2020-01-24T08:53:32 | 199,498,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | from django.contrib import admin
from.models import employees
admin.site.register(employees)
#Register this models here | [
"noreply@github.com"
] | vinay-chauhan.noreply@github.com |
badb5b482d846184bb34c1a22973b81bd89f926b | 9ee0b1d4ddf483ac080d72e1d05131749f95758d | /GestiondeProyectos/forms.py | 12e4f6fc4073f29dfc9de938366aeff83c6ef32f | [] | no_license | IS2fpuna2015/sgpa | 34f785a49cd47a97d36d91b4701b02f21f774725 | 0021ab0be0bfa1de1c4a39cf002922e97bbe7974 | refs/heads/master | 2016-09-05T22:32:09.504493 | 2015-08-20T02:16:57 | 2015-08-20T02:16:57 | 40,995,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,860 | py | from django import forms
from django.forms import ModelForm, DateInput, Textarea, ModelChoiceField, RadioSelect, CheckboxSelectMultiple, \
ModelMultipleChoiceField, CharField, TextInput, ChoiceField, Select
from GestiondeProyectos.models import Proyecto
from GestiondeUsuarios.models import Usuario
from django.cont... | [
"leoben1907@gmail.com"
] | leoben1907@gmail.com |
a6c552444e9d9a1eb6d0a919943c095a9c54df0a | 4f41a526bf7d617a36f8fe3fa569f1206dfebf9c | /10990.py | 2aba138f17ee51ba9d7f255ce1584b8a7496464c | [] | no_license | joonluvschipotle/baekjoon | 7e519d967bf824e0d37e49a7da4f607594ec6e60 | f8f5039467e235eee9f7f2735273efae5ee8d991 | refs/heads/master | 2020-05-27T09:42:35.616080 | 2017-07-11T08:57:49 | 2017-07-11T08:57:49 | 82,538,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | a = int(input())
for i in range(0,a):
print ((" "*(a-i-1)) + "*" + (" "*(i*2-1)),end="")
if i == 0:
print ("")
else:
print ("*")
| [
"joonluvschipotle@gmail.com"
] | joonluvschipotle@gmail.com |
0ff796b0204610ebc28f99e5ecab249d593fa3d0 | 780cf76f45bb8052d85ddefd08c3ff19748675d7 | /mysite/mysite/urls.py | 76e3be8d9d5f3f784f3aa00a0b986654e472df95 | [] | no_license | AntonioCarmonaLopez/phyon-flask-django | f86bfd843c42ed0ce9b2ab87b42b28f9bc6acd06 | 431c0ec0e93657989ba3161715757e250dc6ef5c | refs/heads/master | 2022-12-06T09:47:59.037290 | 2020-08-28T20:25:35 | 2020-08-28T20:25:35 | 291,057,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | """mysite 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 ... | [
"antocarmona@gmail.com"
] | antocarmona@gmail.com |
1dcd22e5933acc5c963914b87de070d6d05b9c51 | fd0cf40ace76aef3422ef2aa3a36294b0d54ab33 | /app.py | cb1ef7f3090147fc6dc1a76253038703df59b505 | [] | no_license | codeforpakistan/PBS-API | 6eae4abb92518ea2887fd7fd0acabe9cf3e27496 | f4dd569f70dd39d82cde1b21e86ee0860d8ea549 | refs/heads/master | 2021-01-01T15:59:44.682782 | 2015-01-11T16:28:15 | 2015-01-11T16:28:15 | 29,097,456 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | #!api/bin/python
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return "Hello World!"
if __name__ == '__main__':
app.run(debug=True)
| [
"dejavu87@gmail.com"
] | dejavu87@gmail.com |
de4cd4e8713c3f87813f40681a5133139406d84f | 82470c6c4819f8b874c92b2e036c6bb6dd1d365b | /Python program/array_integers.py | 51d1481106e7cb95212058f22beec6baa95efb5d | [] | no_license | lion7500000/python-selenium-automation | 87589891211bf327bffda50134c4da918709fd2b | a2f3701661ddf713edb9750150a97e7cd8adb967 | refs/heads/master | 2021-08-08T10:16:44.644725 | 2021-07-29T03:10:54 | 2021-07-29T03:10:54 | 210,194,357 | 0 | 0 | null | 2019-09-22T18:23:33 | 2019-09-22T18:23:32 | null | UTF-8 | Python | false | false | 511 | py | # В одномерном массиве целых чисел определить два наименьших элемента.
# Они могут быть как равны между собой (оба являться минимальными), так и различаться.
def array_integer (numbers):
new_array = []
for i in numbers:
new_array.append(i)
#new_array.sort()
print(*sorted(new_array) [:2])
... | [
"lion7500000@gmail.com"
] | lion7500000@gmail.com |
19d57a912039dd74cdbea38c747443ac27d20906 | c4df7a430cdae38d8ff4a60d4db33dce88926dec | /genesys/genesys/codelets/compiler/transformations/__init__.py | 80f141f934e59bd6a698f9ecf124605a80f0f5c7 | [
"BSD-3-Clause"
] | permissive | ziqingzeng/public | 82b16f4ca60ba248dff68036263c76c85cf9ae32 | 4102b3bd42f43b49cf74599492d52d4f755ab7b2 | refs/heads/main | 2023-04-14T03:32:48.566475 | 2021-04-17T05:28:39 | 2021-04-17T05:28:39 | 355,981,617 | 0 | 0 | BSD-3-Clause | 2021-04-08T16:38:46 | 2021-04-08T16:38:46 | null | UTF-8 | Python | false | false | 99 | py | from .util import factors
from .transformations import split_loop, split_transfer, split_operation
| [
"sean.kinzer@gmail.com"
] | sean.kinzer@gmail.com |
94199e574ea079452bb6bd08d05345478afaf252 | 51385f1f291c8365b9307420efc877e254b9398c | /volunteer/migrations/0016_auto_20201027_1139.py | e56c6b73fc19bda871dc27c2bbe034e1fe598748 | [] | no_license | jlr9au/AllHands | 7df5e9569db1a0ee7c3b794e1adaf2e6a5f6fb28 | 3b87d7a0efd5eee33f1af05f0c170eb02f6f9261 | refs/heads/master | 2023-01-31T06:59:54.580070 | 2020-11-24T21:58:34 | 2020-11-24T21:58:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | # Generated by Django 3.1.1 on 2020-10-27 15:39
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('volunteer', '0015_auto_20201026_2345'),
]
operations = [
migrations.AddField(
model_name='volunteerprofile',
... | [
"jlr9au@virginia.edu"
] | jlr9au@virginia.edu |
a84741cede8f96f1958e18435f820d2bca15beb8 | 6014829f05c6d651edddcd4924e434fc3e363f85 | /python/PostProcessing/Forces1706.py | 851db9482a4878d594db13c2e386d9557b503a0f | [
"MIT"
] | permissive | riemannsBeard/wigglelab | 4c846addd001b1d71aeb51f72c31a871199dc35a | e47c624db9386f13bf3020c22c05765929089f1d | refs/heads/master | 2021-05-10T14:37:55.290801 | 2018-01-09T18:14:15 | 2018-01-09T18:14:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,024 | py | import os.path as path
import numpy as np
from glob import glob as glob
from PostProcessingIO import isNumber
from collections import defaultdict
class Forces:
_TIME = 0
_TOTAL_X = 1
_TOTAL_Y = 2
_TOTAL_Z = 3
_PRESSURE_X = 4
_PRESSURE_Y = 5
_PRESSURE_Z = 6
_VISCOUS_X = 7
_VISCOUS_... | [
"aljoscha.sander@gmail.com"
] | aljoscha.sander@gmail.com |
ff0aa8ace59313d017b143bff8ce7d11063d4153 | bd12c5bb43878e798abf6a9ad62dc6cebbf1ceae | /firefighters/lib/python3.6/locale.py | a6f32e374f21eee9c01566e0671eb84811776a1c | [] | no_license | alanhovorka/queries | 0a29500fcc35993ae9039a0cf54cf8c0ffa19ee5 | 13e0c02c2c4a3b85bae9fcb581d3895c5716b645 | refs/heads/master | 2021-08-20T07:50:52.679173 | 2017-11-28T14:57:22 | 2017-11-28T14:57:22 | 108,158,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | /Users/reporter/anaconda/lib/python3.6/locale.py | [
"alanhovorka94@gmail.com"
] | alanhovorka94@gmail.com |
e4f0ad33a8eb88cb40dec967701bf6563ae47890 | 7db513150b7daaf1f8ac435c41b850545156d037 | /Fort_Machine/dbstore/init_db.py | 6c2acdb08f2302fd2efa7a222c488c05ac13a7e0 | [] | no_license | tonglinge/MyProjects | bb94e141e1833dc38fe2b41d5b80fb4abc222cf0 | 002f80dcc07e3502610b0a0be1e91fe61bcfc42c | refs/heads/master | 2021-04-15T14:53:46.175035 | 2017-03-19T04:39:48 | 2017-03-19T04:39:48 | 61,760,333 | 4 | 5 | null | null | null | null | UTF-8 | Python | false | false | 4,061 | py | #!/usr/bin/env python
"""
初始化数据表文件:
groups.xml: 服务器主机组文件,包括:
GID:组编号
GNAME:组名称
hosts.xml: 主机文件,包括:
GID: 所属主机组编号
HIP: 主机IP
HNAME:主机名
HUSER:登录名
... | [
"songfreeman@sina.com"
] | songfreeman@sina.com |
59d96b29d5ed590da2ea3136fc938561be154426 | cd187d99cd5e83ca5b8409085d765e74da643496 | /system/migrations/0018_hole_page.py | 2d3cbc19b3c45219f4be94856e6cb4f6cd220311 | [] | no_license | 1701210370/pys | 541c5a910d2b06de2b54ad158e8fcf5309298d01 | b75dc6f00fed4b9c5aa6f8d966347f52a15e5cd6 | refs/heads/master | 2022-04-28T23:44:59.953714 | 2020-04-27T00:38:35 | 2020-04-27T00:38:35 | 258,520,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | # Generated by Django 2.1.4 on 2020-03-27 02:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('system', '0017_hole'),
]
operations = [
migrations.AddField(
model_name='hole',
name='page',
... | [
"2428211025@qq.com"
] | 2428211025@qq.com |
a2e1e744929fe1a6c3c7212157cdcdf9aded4f67 | 82ebc84064d0f2eac9580cd2e67bf3c8c1e2de95 | /accounts/migrations/0014_auto_20200407_1328.py | 5c42140348a90e41d46748165733dc0543ff0a47 | [] | no_license | nayakji/Website-Doctor-Python-Django | 2065863fe49964d9a0562f1aa49bdc1a4b8fea7b | 0cd22daa3d7abb9b7e6777cc94c64b6394ae0183 | refs/heads/master | 2022-06-18T16:20:06.525901 | 2020-05-08T23:42:34 | 2020-05-08T23:42:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | # Generated by Django 3.0.3 on 2020-04-07 10:28
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0013_profile_join_new'),
]
operations = [
migrations.RenameField(
model_name='profile',
old_name='join_new',
... | [
"khaled.info223@gmail.com"
] | khaled.info223@gmail.com |
861da89bfc67bd430419abaa0467f920d3e5db7d | 10ec694b88796923d63014108ea354c29ce366fa | /L9 Python Scripts/Codec_b995_9/Codec.py | 05882801c8d6c145b4e40c1913f76675b20872d0 | [] | no_license | frequenzteiler/monomodular | b74d4a0e5c69019319b8ee7af46fbc53d88a9249 | 05b3227beb828054fa11839fbdf813b60b7c68ad | refs/heads/master | 2021-05-27T09:45:18.919848 | 2014-03-10T08:14:32 | 2014-03-10T08:14:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,467 | py | # by amounra 0413 : http://www.aumhaa.com
from __future__ import with_statement
import Live
import time
import math
""" All of the Framework files are listed below, but we are only using using some of them in this script (the rest are commented out) """
from _Framework.ButtonElement import ButtonElement # Class repre... | [
"aumhaa@gmail.com"
] | aumhaa@gmail.com |
018af1a310cbc34dede69b67c5ca5c27d53c1d36 | 46ea1dd3bec8a47e2a83f2aafc35b009f2dd34df | /gitea_api/models/edit_repo_option.py | 28ef30975f7469b4ab78c4aa9224979dea6eede3 | [] | no_license | Mari-W/gitea-api | 6a9140c573ce3d46ff6078a70521fc751b98a961 | 41b74e49466ebf7ca1b45b452cf937699d96ff3e | refs/heads/master | 2023-08-23T20:01:51.778259 | 2021-10-25T21:43:21 | 2021-10-25T21:43:21 | 407,828,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,851 | py | # coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.15.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class EditRepoOption(object):
"""NOTE: This class is ... | [
"weidner@cs.uni-freiburg.de"
] | weidner@cs.uni-freiburg.de |
dbb2290f7d66af10b8f53b033c52e9ac8f65550c | efc6aacf1fb6585a51f2da5a4f0a8c5c8bf51309 | /bees/urls.py | e9c8d52de564cdec60b575d1d185e208afb30e72 | [] | no_license | redlolgeerf/diary_bees | b7d078985c6d9656e109658fb487044d5bc3cd13 | 298bb8b1888170d44241543090b0483cef016de7 | refs/heads/master | 2021-01-22T02:08:40.647155 | 2014-11-28T16:14:31 | 2014-11-28T16:14:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | from django.conf.urls import patterns, url
from bees.views import index, HiveView, SettingsView, authorize
urlpatterns = patterns('',
url(r'^beekeeper/$', SettingsView.as_view(), name='beekeeper-settings'),
url(r'^hive/(?P<d_id>\d+)/$', HiveView.as_view(), name='hive-detail'),
url(r'^hive/$', HiveView.as_... | [
"mihanne@list.ru"
] | mihanne@list.ru |
89e02d0b19555283c8fd6c2acd38e65070c2d821 | 3830901da6fbe95b5bdb27600a09290795d65526 | /ex35_4.py | 746302348364caa61d717aca87bb471c71139390 | [] | no_license | SergeyErmolaev/A-game | 0a4b2b9ef181182f9403c15b540020f06f4ecf2b | 38f5f0baad5b491b753a4b3886e5827e69f7bb32 | refs/heads/master | 2020-07-16T11:13:51.115606 | 2019-09-02T04:53:40 | 2019-09-02T04:53:40 | 205,779,075 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | from sys import exit
def wonderland():
print("You see a white rabbit with a clock.")
print("will you follow it or walk your ways?")
def trough_looking_glass():
print("")
def start():
print("You are in a strange room with a lot of doors. All of them are closed")
print("There is a table in the... | [
"noreply@github.com"
] | SergeyErmolaev.noreply@github.com |
84fc828592eda1cf264622c467dbddf6b11861f2 | 65b15e9da9b5b88e9ce248f06bb011663ebdf22b | /get_post_id.py | 228b1f350ae5d86548addfd112a399ad8e28bcb7 | [] | no_license | JYOTITHAKUROSEM/instabot | 8ad7f82d602edd03efd83204ee50a17947b57651 | 0043aadc78345183e7d82ca0b4576b29373af9ac | refs/heads/master | 2020-12-02T16:14:32.582068 | 2017-07-11T09:39:12 | 2017-07-11T09:39:12 | 96,522,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | import requests
from get_user_id import get_user_id
from constants import BASE_URL,APP_ACCESS_TOKEN
def get_post_id(insta_user_name):
#Function Logic Here
user_id = get_user_id(insta_user_name)
if user_id==None:
print "user does not exist"
exit()
request_url = (BASE_URL + 'users/%s/media... | [
"jyotithakur15111@gmail.com"
] | jyotithakur15111@gmail.com |
66b89f7251d24d6189abc0efdf2662fcd772dbfb | 440a833e8a2f87a433ce980ea9774a7e56e9a99f | /handlers/admin.py | df2b323410463111f2b63d1ecdb86530cf486515 | [] | no_license | lonelywolf1981/reset_pass_bot | f5f603cc12b6f867b9c603dff16991ca437ada31 | b5a5802aa021bf539a3f27514ab39d54f21e4251 | refs/heads/master | 2023-08-02T18:49:35.383027 | 2021-10-06T04:15:30 | 2021-10-06T04:15:30 | 413,770,678 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,096 | py | from aiogram.dispatcher.filters import Text
from aiogram.dispatcher import FSMContext
from aiogram.dispatcher.filters.state import State, StatesGroup
from aiogram import types, Dispatcher
from create_bot import dp
from connection.connection import connect_to_ad, user_search_ad, reset_pass
class FSMAdmin(StatesGroup):... | [
"andrey.lw@gmail.com"
] | andrey.lw@gmail.com |
f92b6125584546b73186b46cb9b7c5b388fb3f55 | 81734061c92b631789b00730e6cfae95a03aec73 | /src/helpcrew/helpdesk/migrations/0037_auto_20171029_2242.py | 415453cddc118df0c69dd3afd70854873c1264fd | [] | no_license | slagovskiy/helpcrew.ru | 311105b395b4c80a4d2f95929d75f993c03fae34 | 9ab2e68ee2a2f0afe406cffb3b805756e25a6386 | refs/heads/master | 2023-01-11T07:42:04.693325 | 2021-08-04T04:45:15 | 2021-08-04T04:45:15 | 96,231,296 | 1 | 0 | null | 2023-01-04T05:03:06 | 2017-07-04T15:21:36 | JavaScript | UTF-8 | Python | false | false | 784 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-10-29 15:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('helpdesk', '0036_auto_20171029_2229'),
]
operations = [
migrations.AddField... | [
"slagovskiy@gmail.com"
] | slagovskiy@gmail.com |
0fe026e4a9fe70a6b17ede1085a5c7c08da2b81d | 4fae5a8f65d0cc656b769799585e5463c9a87851 | /pipeline.py | 690670e39acfb5803d17d9f011a133158f342b4c | [] | no_license | davidmaamoaix/traffic-flow-det | 1fec1023c2d5c472dc66c4a5aaa372a839089966 | 43298fa34035fadf89093781ac3d51efab835adb | refs/heads/master | 2023-05-09T22:48:11.676460 | 2021-06-05T09:57:54 | 2021-06-05T09:57:54 | 342,734,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,594 | py | import os
import cv2
import numpy as np
from PIL import Image
import config
from misc import output_stream, load_yolo, reverse_projection, distance
from tools import generate_detections
from deep_sort import nn_matching, tracker, detection
from filter import FilterPID
MARKERS = (
(689, 412),
(766, 408),
(... | [
"davidmaamoaix@gmail.com"
] | davidmaamoaix@gmail.com |
3693f031ca378e06b7c5b4fea8e8476491558a80 | 3640947f56ad3416ebf1559cdb30a3953f17fc25 | /Blog/Blog/dbsqlite/migrations/0002_auto_20190929_0902.py | 9d5397d62d0637016d33e71a466688ececc8ccd6 | [] | no_license | jiaopanxin/projecttest | 7e08b3812cc7998b7931b7704fd105867ea4e900 | d0a0a8e0b2bdbe6babe1209031b6b2c78b99a730 | refs/heads/master | 2020-08-10T09:09:54.638359 | 2019-12-02T11:50:51 | 2019-12-02T11:50:51 | 214,312,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | # Generated by Django 2.1.5 on 2019-09-29 09:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dbsqlite', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='usersprofile',
name='email',
... | [
"j991114@126.com"
] | j991114@126.com |
48c3cade80e8099c3b1dace297f77e3af95e8b87 | 6827c370a0ac861700b187db7a0d46d2c12ed706 | /test_selenuim/test_login/test_shelve.py | f703c0977a86f87b37bcca1fc2b719d463b12992 | [] | no_license | cyg2695249540/WebWeWork | 202a4bcd0339e1207ff0c0416e36cef0bf163990 | 957599dca6c1b86fa3f4e9cbdf288767265e3492 | refs/heads/master | 2022-12-30T06:35:53.244259 | 2020-10-20T07:14:13 | 2020-10-20T07:14:13 | 304,596,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,551 | py | # !/usr/bin/env Python3
# -*- coding: utf-8 -*-
# @FILE : test_shelve.py
# @Author : Pluto.
# @Time : 2020/10/17 11:47
"""
使用shelve小型数据库实现cookie持久化存储
"""
import shelve
from time import sleep
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by... | [
"2695249540@qq.com"
] | 2695249540@qq.com |
20a11dfee662c80836131743d05ada307a58b06d | 8de3115a720f4534d59f0b8f438fce49996d114d | /problem002/002.py | a267f262bf85ceb41cd38e1513444a0a3fd06406 | [] | no_license | rferdowsi/learn-python | 19ee6952d63f408b91a20ea5224e1bd4244715de | c1da13bbc97da864bf02e2fe1b5887ffbea08814 | refs/heads/master | 2022-12-12T10:49:54.671859 | 2019-11-21T17:42:20 | 2019-11-21T17:42:20 | 217,283,474 | 0 | 0 | null | 2022-12-08T06:55:33 | 2019-10-24T11:32:46 | Python | UTF-8 | Python | false | false | 1,779 | py | import pymysql
import datetime
import settings
import os
def _open_db_connection():
# Connect to the database
connection = pymysql.connect(host=os.getenv("DB_HOST"),
user=os.getenv("DB_USER"),
password=os.getenv("DB_PASSWORD"),
... | [
"rudaba.ferdowsi@gmail.com"
] | rudaba.ferdowsi@gmail.com |
7d73bde2f3ea9249ed760f365bd508f49df2c1b9 | c50083e356b976006639c96f801fa658c472e293 | /src/skills/models.py | a7fccbdf2ee54cc6bc99e5e7195290baca7e3f18 | [] | no_license | vladstan/QuestHunt | 486d2bb5326e6e4747a6c33b4714b4ea5064995a | 5d45ef12eea3e9b0e773032afcd0265136196d7f | refs/heads/master | 2021-06-15T18:01:36.748689 | 2017-03-02T12:13:49 | 2017-03-02T12:13:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | from django.db import models
# Create your models here.
class Skill(models.Model):
name =
description =
slug =
icon =
class TribePointsAward(models.Model):
hero = models.ForeignKey(User)
quest =
points =
tribe =
class DestinationPointsAward(models.Model):
hero = models.ForeignKey(User)
quest = ... | [
"vlad@futuristico.io"
] | vlad@futuristico.io |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.