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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
80eec8664ce238ba64458a1eab5e43600de6ac96 | 6af7d27d52844240fef42978fe4e739b23c80fa9 | /mock-hsm/hsm_listener.py | 65d570a4880e989bfb59a6043fb83390d9d02905 | [] | no_license | rkbalgi/python-scripts | 52342a5c1559978998c5807299d02c858a2b005d | 7a2e2dcb2131a86e5825a781ddf07a260e3cb40a | refs/heads/master | 2021-01-22T10:32:23.256187 | 2017-05-29T11:04:11 | 2017-05-29T11:04:11 | 53,861,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,380 | py | import threading
import socket
import hsm_client_session_handler
import sys
import logging
import mock_hsm_ui
class HsmListenerThread(threading.Thread):
def __init__(self, port):
threading.Thread.__init__(self, name='Thread - Hsm-Listener')
self.port = port
self.log = logging.getLogger('Hs... | [
"pinkcat17"
] | pinkcat17 |
05f9847aeb2b22b0db42d2ff89f2abe32e34b431 | 26dd1f6d64227035d947b94405c291b4311c1ba7 | /django_app/bilateral_data.py | f6368e779fd2eadd7f93d2deb4b9ccb412d6be64 | [] | no_license | hayleefay/hayleecodes | 3a700219781fd1bcd55e5d00ddf3c652735e601a | ab4e7eb9cd660b9fbcf3a7106a89f159cf239df3 | refs/heads/master | 2021-01-19T14:42:28.621825 | 2019-06-05T14:21:43 | 2019-06-05T14:21:43 | 88,184,661 | 0 | 1 | null | 2017-04-27T20:22:31 | 2017-04-13T16:24:53 | Python | UTF-8 | Python | false | false | 1,470 | py | # Creating a script that inputs the bilateral csv into my django psqldb
import os
import django
import pandas as pd
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'hayleecodes.settings')
django.setup()
from mysite.models import Bilateral
bilateral_data = pd.read_csv('django_app/bilateral_flow.csv', low_memory=Fals... | [
"hayleeham@gmail.com"
] | hayleeham@gmail.com |
b18cf7ab8a7089ef90a6f7a75b3c13911e42ba76 | 24b7f29f8a3b59165dea16b94bdf973196d14b4e | /backend/dating/admin.py | 7ec91e27ab611a2676a20848fbe2ec9db8a2ea7b | [] | no_license | crowdbotics-apps/pumpkin-29320 | eb5c10c72341378dbef3a160b8e6f6e7c151f0a7 | 764677ffa078076d8041caea2f9c74afc8490b49 | refs/heads/master | 2023-06-28T02:04:55.191999 | 2021-08-01T17:23:54 | 2021-08-01T17:23:54 | 391,691,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | from django.contrib import admin
from .models import Setting, Profile, Inbox, Dislike, Match, UserPhoto, Like
admin.site.register(UserPhoto)
admin.site.register(Like)
admin.site.register(Profile)
admin.site.register(Match)
admin.site.register(Inbox)
admin.site.register(Setting)
admin.site.register(Dislike)
# Register... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
942fbf0ecdb26e480bf20310aca128665a9d7794 | e75ff80e3d69c28a409e6527c25627d45bd12eab | /test/LowerMinisterNamesTest.py | 6436396c1a1bceb2af564327ecc9253c41780deb | [] | no_license | rabriol/naive_bayes_classification | 1b44fcc4df5c26b6de9e5b30d2f485107a6a8014 | e13d123847ec20250b30dfc4490f15399750b963 | refs/heads/master | 2021-01-13T16:56:18.875394 | 2017-01-16T02:57:16 | 2017-01-16T02:57:16 | 79,077,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,325 | py | # coding=utf-8
__author__ = 'brito'
if __name__ == '__main__':
minister_names = ('Adalício Nogueira',
'Adaucto Cardoso',
'Alberto Torres',
'Aldir Passarinho',
'Alencar Araripe',
'Alfredo Buzaid',
'Alfredo Pinto',
'Aliomar Baleeiro',
'Amaral Santos',
'Amaro Cavalcanti',
'Americo Braziliense',
'Americo Lobo',
'Amph... | [
"rabriol@Admins-MacBook.local"
] | rabriol@Admins-MacBook.local |
7bf5c4ef4883730ab765d40a24eac81b6858e456 | f1a66e50ed8423de48411186ab205a6e7ac4c29b | /bookmarks/bookmarks/urls.py | 36e00afdf607727dbb3f4d7dd61129d676834ee9 | [] | no_license | Zorro-Lin-7/DjangoByExample | 57ec916528b262495b43997a4fe56cdeaaa5256c | 0432ad9f45a6e9777fcc6a7948cd34c41d7ad999 | refs/heads/master | 2021-01-25T11:02:47.566715 | 2017-07-17T09:38:35 | 2017-07-17T09:38:35 | 93,905,625 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | """bookmarks URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-b... | [
"linzhun7@gmail.com"
] | linzhun7@gmail.com |
ad25cd071ce59b69379abe51bd402b5d6ba2967b | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_1/87.py | d7cf4af0fea932c17348dece3e0217dfe2a7bd93 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | import sys
from array import array
def main():
N = int(sys.stdin.readline())
for case in xrange(N):
S = int(sys.stdin.readline())
engine = dict([(sys.stdin.readline(), i) for i in xrange(S)])
Q = int(sys.stdin.readline())
queries = [engine[sys.stdin.readline()] for i in x... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
ec3c13e38a130b81855f34290c24718a9a265513 | 7f5e39adc33b71e226a425c8e05012f9c449d834 | /bots/verivox-de/helpers.py | 16ad0517ffe0d706bb07d7f854ad201954ca8fd2 | [] | no_license | nzzdev/st-methods | a87eb4967b64bd1079a1a42e280fcf7679b6eb7d | fa12656afa043303ec99374b51c5e12762f20a35 | refs/heads/master | 2023-08-17T03:32:33.553268 | 2023-08-16T19:22:08 | 2023-08-16T19:22:08 | 107,977,306 | 52 | 8 | null | 2022-11-24T16:20:14 | 2017-10-23T12:12:52 | Jupyter Notebook | UTF-8 | Python | false | false | 2,210 | py | import pandas as pd
import json
import requests
from requests.adapters import HTTPAdapter, Retry
import logging
def download_data(url, headers=""):
logging.basicConfig(level=logging.INFO)
s = requests.Session()
retries = Retry(total=10, backoff_factor=1,
status_forcelist=[502, 503, 504... | [
"31181952+somm-doe@users.noreply.github.com"
] | 31181952+somm-doe@users.noreply.github.com |
d9b459037cbbf593d289eda101e458bd82c16e30 | 3c5b38954f5cb1e09b08b721610ab0f04ed69fa8 | /excel_log.py | cd2d0885fee95e65d8e3b5fbff69076ffef30de4 | [] | no_license | nicolas1805961/amundi_scripts | e15eff64643f948aee1c8252e479076b6698a62b | 98df6dab98a59491938c06fea97c0019c1d4ad7e | refs/heads/master | 2020-07-24T20:31:26.334407 | 2019-12-19T14:50:52 | 2019-12-19T14:50:52 | 208,040,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,362 | py | import csv
import xlsxwriter
values = ["log_sid", "Address", "User_Name", "time_stamp", "date_time", "session_id", "Access_Profile", "Client_Hostname"]
csv.register_dialect('myDialect', delimiter = ',', quoting=csv.QUOTE_MINIMAL)
col = []
file = input("Please enter the file name to format:")
file = file + ".csv"
out_... | [
"nicolas.portal@amundi.com"
] | nicolas.portal@amundi.com |
a87dc8f3080ad1af54ea9204960917049462444e | bd45e8359651aa56592e223f9b903f4fbb011dae | /UI/src/tkinter_t2.py | 03724d6dab1f243c6648df67992ca5e143f4b5b0 | [] | no_license | siroikisetu/eclipse-workspace | ac11e76dfc9db068a23c7e834c1e1eae7e081531 | ec537401b1f3bdc79d9461474ebfbe2a62e4b4f6 | refs/heads/master | 2020-03-19T19:58:52.843800 | 2018-06-11T06:16:28 | 2018-06-11T06:16:28 | 136,882,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | #coding=utf-8
from tkinter import * # 导入 Tkinter 库
root = Tk() # 创建窗口对象的背景色
# 创建两个列表
li = ['C','python','php','html','SQL','java']
movie = ['CSS','jQuery','Bootstrap']
listb = Listbox(root) # 创建两个列表组件
listb2 = Listbox(root)
for item in li: ... | [
"34596651+siroikisetu@users.noreply.github.com"
] | 34596651+siroikisetu@users.noreply.github.com |
7b2ebd64fecfce81d2d79080991d9d1198da040a | b02a2c1e8cf778f8f810897c478abcec720b7220 | /ds_algos_primer/python/linked_lists_part_2.py | c0c87d766c2ad39b46a856faeb85ef430e5d63a7 | [] | no_license | naraekwon/CodingInterviewMastery | d8596a4decb52086ea2eefa32ebccd4a25c6181a | c14ceaa19649269467160a5bf53e4a3d927e97a5 | refs/heads/main | 2023-09-05T16:28:25.253482 | 2021-11-04T18:56:19 | 2021-11-04T18:56:19 | 428,470,905 | 0 | 0 | null | 2022-02-13T19:54:09 | 2021-11-16T00:58:46 | null | UTF-8 | Python | false | false | 4,394 | py | """
Title: Linked List Solutions Part 2
This file contains the template for Exercise Sets #2-5 of the Linked List
exercises in the DS & Algos Primer. Fill in the exercises here and refer to
linked_list_solutions_part_2.py for the complete code samples.
Execution: python linked_lists_part_2.py
"""
"""
A simple singly... | [
"sam@byte-by-byte.com"
] | sam@byte-by-byte.com |
cb9dc25d7bf21bb48137dd82b2ed0480c6ab4710 | 2dfbd1328e4dd6dc9852d52e90cd627b402059e1 | /OOPALL/Hakrrank_problem/maps.py | 28d019687100f1ad9574de624ed7de3829190ac5 | [] | no_license | Bappy200/Python | 2817bcb32bf751033fadc960694704a546055e47 | 0ad3d53cc204af361890182585cdf9bd3ec9a199 | refs/heads/main | 2023-03-01T05:29:32.994940 | 2021-02-12T23:08:36 | 2021-02-12T23:08:36 | 338,268,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | n = int(input())
while (n > 0):
n1 = int(input())
s = 0
while (n1 > 0):
a = int(input())
s = s + a
n1 = n1 - 1
print(s)
n = n - 1 | [
"sbappyi200@gmail.com"
] | sbappyi200@gmail.com |
e0ceae55d4e631d23c39dffa689763972b6f1b35 | c4f55a244a72449da32eb95c28f1498483bdb40b | /Defference of any number.py | 5e7f6072a3b334e5529ff7bbe39f9e8479e05221 | [] | no_license | chavitodionisio/Differences-of-any-number | 76d83e7da75b54a0d046a8a641b2a2aa8e08f556 | b801d394b938d5f5ff749dcb5ec47308593949ac | refs/heads/master | 2021-02-18T05:03:00.837561 | 2020-03-05T13:00:37 | 2020-03-05T13:00:37 | 245,163,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | num1 = int(input("Enter first Number:\n"))
num2 = int(input("Enter Second number:\n"))
answer = num1 - num2
print()
print("The Diffrence between first and second number is: ", answer) | [
"noreply@github.com"
] | chavitodionisio.noreply@github.com |
16acd034ab01fe86fb480e059e14cb74d58d4c10 | 6bbba511254c1cd9ece47c8c1558a79746e9998d | /kriging/stations_v1.py | ccb6fa82d24c566993ea96b90335d4ee7b328e53 | [] | no_license | profcarlos/MSG | 1e99292653878465db9aa888f55e029c29344601 | 3ab5b478777622f8abfe461a6450fec1f0a3cc0f | refs/heads/master | 2021-01-22T19:55:18.205573 | 2018-09-25T11:13:30 | 2018-09-25T11:13:30 | 100,710,099 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,838 | py | import sys
sys.path.insert(0, 'C:\\Users\\carlos\\Dropbox\\newPython\\utils')
sys.path.insert(0, 'C:\\Users\\carlos.silveira\\Dropbox\\newPython\\utils')
import numpy
import sys
import subprocess
import os
import glob
from utils import *
inputDir = 'z:\\OUTROS\\INMET\\'
subfolder = 'BCK_ANO_year\\'
filen... | [
"noreply@github.com"
] | profcarlos.noreply@github.com |
c914a8b2559ac7573d889ba0c0485586ee917073 | 607758c00b94a0a0d04143b2e1bce50cad510d25 | /apps/context_processors.py | 75b6e91b21ba6a4995f093737cb7d1729c5260ab | [] | no_license | kailIII/demo | bfe767c93bfcd2fe8ec8e5a127d4d7761795b86c | 676e5f4f51eafbd15bc0e7195cbbe6e1ed9545db | refs/heads/master | 2021-01-15T13:00:54.277594 | 2014-09-17T16:44:13 | 2014-09-17T16:44:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | __author__ = 'root'
import django
from apps.home.models import userProfile
def user_image(request):
try:
image = None
user = request.user
up = userProfile.objects.get(user=user)
image = '/%s'%up.photo
except:
image = '/static/img/user.gif'
return image
def my_pro... | [
"jc.fie.umich@gmail.com"
] | jc.fie.umich@gmail.com |
727e16449c31d0c1b22b78350eca61a16af0476f | 789eb9836ef1b4082a0658b2c98d8c6b45294e8f | /Django_app1/models.py | 9e12ea46c52284de93060e1bfbfa05b7f3597e45 | [] | no_license | view1994/djago_proj1 | fcd067461d7cbaf5b54913b0123bc4053b90cac7 | 81b16579c5a1aba49cc5abacb737426391744cea | refs/heads/master | 2020-04-29T03:22:37.787928 | 2019-05-30T10:02:51 | 2019-05-30T10:02:51 | 175,807,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | from django.db import models
from mongoengine import *
from mongoengine import connect
connect('wbsite', host='127.0.0.1', port=27017)
# ORM
# Create your models here.
class AccountInfo(Document):
# 账号信息数据库数据结构
login_flag = BooleanField( default= False)
usr_name = StringField(primary_key= True)
passwor... | [
"379144671@qq.com"
] | 379144671@qq.com |
e709d51744615b258a4f725ad7bd8c4f43704cb7 | fe882b0e0c2c95e476d7ab1d7afeade5e04ed310 | /okno.py | 0403388145c3db7c07f98050da8e0c23c4c09603 | [] | no_license | trofimov87/python | 0ce731f88342493dc911d0298ae6c32896742e89 | ea8498202c3b630b2dbf3b9f7c7e625fb5dd4f44 | refs/heads/master | 2020-06-15T16:29:12.585509 | 2019-07-09T05:49:21 | 2019-07-09T05:49:21 | 195,342,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,147 | py | from tkinter import *
from tkinter import messagebox
from datetime import date
class okno:
def proverka(self):
log = self.ent1.get()
p = self.ent2.get()
if log == "admin" and p == "admin":
messagebox.showinfo("Отчёт!", "Логин и пароль введены верно!")
else:
m... | [
"trofimov-egor-87@yandex.ru"
] | trofimov-egor-87@yandex.ru |
0ce2d25ddc74d179b2a58c323d5412be17f0ea72 | a01348fc9b634dcc73ddb209ef64e261b633e51d | /sanity/Sprint-5-test/connectMinio.py | 4c37080e719b6881883c9660ed556ec41488f232 | [] | no_license | 00mjk/Deduplicating-Cloud-functions | 65db59ca69c1c35e447c1cd84f7fc669cffb356e | fe893dcbbc6b182f842c42d7b057ef0b909c0a2a | refs/heads/master | 2023-03-20T06:00:46.680981 | 2019-05-04T19:01:47 | 2019-05-04T19:01:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | from minio import Minio
from checksum import calculate_checksum
from minio.error import ResponseError
from connectCouchdb import connect_couchdb,addFunctionIfNotExist
def connect_minio():
mc = Minio('52.116.33.131:9000',
access_key='sanity',
secret_key='CloudforAll!',
... | [
"asupat12@gmail.com"
] | asupat12@gmail.com |
dfad328393c8ffd2e9dce2259caa4f0b4ed8b721 | 6d21002d0a6ba249e2b9772b2edf097514f3109b | /ppo2/ppo2_agent_custom.py | 4719a4e7a8e52ae6245cbd614f01d1c4f9447d3d | [
"MIT"
] | permissive | gardenermike/openai-retro-contest-experiments | 4069a6635e1eac6c5e923933187220c7b0bd96ea | 2a6bfb00ba9c03b73ec1547143e653636fa368d3 | refs/heads/master | 2020-03-19T11:50:27.462937 | 2018-06-11T14:23:28 | 2018-06-11T14:23:28 | 136,480,133 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,618 | py | #!/usr/bin/env python
"""
Train an agent on Sonic using PPO2 from OpenAI Baselines.
"""
import tensorflow as tf
from baselines.common.vec_env.dummy_vec_env import DummyVecEnv
import baselines.ppo2.ppo2 as ppo2
#import ppo2 as ppo2
import baselines.ppo2.policies as policies
from baselines.a2c.utils import conv, fc, c... | [
"mike.challis@ryedigital.com"
] | mike.challis@ryedigital.com |
bfaf2638b2d779abc676e6ed5fdc62a1205d8d56 | f56260df9a0db96d4cc215bca9d2f679ac443526 | /psf.py | da4a506aa53f804b2d6ae65a228655263a1d900a | [] | no_license | augucarv/PSF-photometry | 24c7831464ff1b9c7057e0ca7a4b05d06a465f68 | e6b5cd2029ec902c79f023af15f0334eee233d50 | refs/heads/master | 2022-12-25T18:48:52.163276 | 2020-10-06T21:09:41 | 2020-10-06T21:09:41 | 235,566,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,823 | py | # This code uses the catalogs made with match_py and performs PSF photometry
# by using photutils's DAOPhotPSFPhotometry.
#
# INPUTS: (1) Catalog obtained from match_cat.py
# (2) FITS image of the region you want to evaluate
# (3) Catalog or table with the sources chosen to create the PSF
# OUTPUTS: ... | [
"noreply@github.com"
] | augucarv.noreply@github.com |
777fa31ed54f0883f564c29385341735844ca14c | 227d5f958b6d7bf8a5bf91479c599d9c4bd800c5 | /tests/unit/customizations/test_assumerole.py | 08d51fce09a6d85ad282680ad2e22832c35ba2d9 | [
"Apache-2.0"
] | permissive | defconcepts/aws-cli | 81c7c0d678f23d5dbcfa5dfbae3d8ff42afb1ab8 | b9984c9b21221fe34db4b7e01739797c4fed01d2 | refs/heads/develop | 2020-12-11T08:08:05.576167 | 2015-11-13T23:07:54 | 2015-11-13T23:07:54 | 46,190,524 | 1 | 0 | null | 2015-11-14T20:17:47 | 2015-11-14T20:17:47 | null | UTF-8 | Python | false | false | 16,156 | py | # Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file acc... | [
"js@jamesls.com"
] | js@jamesls.com |
6773476a091ee16de4a729e1fd6a17925b4f75bd | 9c974edd8b0b733fb0eceeca6929bfc7053016e3 | /medium/29.py | c360430dbde8b94bbca7321e276b0dda976630e3 | [] | no_license | MaoYuwei/leetcode | df8ce2fdf73dffe737624f8d37a0f9263df87770 | 69478ccbf3323689cd22c3e64f39da642fe137d6 | refs/heads/master | 2020-03-22T07:40:35.530814 | 2019-08-02T03:12:31 | 2019-08-02T03:12:31 | 139,717,041 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | # Divide Two Integers
class Solution(object):
def divide(self, dividend, divisor):
"""
:type dividend: int
:type divisor: int
:rtype: int
"""
ret = 0
a = abs(dividend)
b = abs(divisor)
while a >= b:
count = 1
sum = b
... | [
"maoyuwei@nuaa.edu.cn"
] | maoyuwei@nuaa.edu.cn |
08d92cbf11ee4861a7e748e92822518f1b1a8e23 | b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1 | /tensorflow/contrib/rnn/python/kernel_tests/rnn_test.py | 7a50d68d5b9dd0a4091b3b5ef2e4445e5a0ce8dc | [
"Apache-2.0"
] | permissive | uve/tensorflow | e48cb29f39ed24ee27e81afd1687960682e1fbef | e08079463bf43e5963acc41da1f57e95603f8080 | refs/heads/master | 2020-11-29T11:30:40.391232 | 2020-01-11T13:43:10 | 2020-01-11T13:43:10 | 230,088,347 | 0 | 0 | Apache-2.0 | 2019-12-25T10:49:15 | 2019-12-25T10:49:14 | null | UTF-8 | Python | false | false | 20,079 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"v-grniki@microsoft.com"
] | v-grniki@microsoft.com |
26e51cc0dae9c24e7ff06f11b954400c926013a1 | f3897bbf525cb86e79d536e10aaf9d56ea32823f | /Chess-ELO-Mongo-Pipelines/mongo_aggregator/mongo_aggregators.py | 83e2d6936757af0fd37478334183394a126e1bbe | [] | no_license | amanagarwal03/Chess-ELO-Predictor | e3f3e87f2b0475e80e7a377c2249c9f26270cab7 | 562ca14a7a0170b0edbf8767bd2ec6f5d550bd94 | refs/heads/master | 2022-12-08T12:08:18.157465 | 2020-03-04T00:20:12 | 2020-03-04T00:20:12 | 244,763,716 | 0 | 0 | null | 2022-12-08T07:31:30 | 2020-03-03T23:30:42 | Jupyter Notebook | UTF-8 | Python | false | false | 3,125 | py | __author__ = 'Mayank Tiwari'
import errno
import os
from datetime import datetime
now = datetime.now()
import logging.config
from models.game import *
from util import *
# ROOT_DIR = os.path.abspath(os.path.join(os.path.split(__file__)[0], '..'))
# sys.path.append(ROOT_DIR)
'''
Loading the Logging library here
''... | [
"amanagarwal03@MacBook-Pro.local"
] | amanagarwal03@MacBook-Pro.local |
7c7c986ec8247f700d45abb685745ff743b71d29 | 981be8c453a98801950efbdeaea7b57c27854176 | /venv/Lib/site-packages/wsgidav/error_printer.py | 52b19d58723b814c6a3045dcd17667d0ac318618 | [] | no_license | overburdeni/SpiderMan | 04ee7427d69ce08bf1751f8bc9cc5a9a323a3719 | 7a16151ac59accd7f7b95acf54c6a9fa191abccd | refs/heads/master | 2022-12-01T23:38:33.199517 | 2020-08-06T15:54:13 | 2020-08-06T15:54:13 | 285,609,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,129 | py | # -*- coding: utf-8 -*-
# (c) 2009-2020 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
# Original PyFileServer (c) 2005 Ho Chun Wei.
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license.php
"""
WSGI middleware to catch application thrown DAVErrors and ret... | [
"1678458207@qq.com"
] | 1678458207@qq.com |
994658cd4a34e6ab2d1d8577cba58f08f1193a90 | 0e76f9a3db8392050fd07c22cf8668672f377162 | /blog.py | e505dc79f97cb5036d52a93b32fc9cc2308a528d | [] | no_license | alvmillan/flask-blog | 2e6bd0d11ca34d5feb760b527d9cb11425defcfb | 3fd355e9467a3b61f0bfbce71e49f3f0046bbb2e | refs/heads/master | 2021-01-12T17:22:46.172242 | 2016-10-22T12:14:37 | 2016-10-22T12:14:37 | 71,553,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,043 | py | #blog.py - controller
#imports
from flask import Flask, render_template, request, session, \
flash, redirect, url_for, g
import sqlite3
from functools import wraps
#configuration
DATABASE = 'blog.db'
USERNAME = 'admin'
PASSWORD = 'admin'
SECRET_KEY = 'hard_to_guess'
app = Flask(__name__)
# pulls in app configurati... | [
"amillan@protonmail.com"
] | amillan@protonmail.com |
0f419fc26d221b44ddcc1eef9896202cd8814fdc | fb612ae638e6d25f30fd930b7e9ddd9af6553b6f | /multi_gpu_main.py | 914efc2dbcddc6858d75781f918fcb0bda250d20 | [] | no_license | jxz542189/atrous_crf | 5fe1c42fde71859cf51265aa2cce5e256b674145 | ae5614cc77c772d2b1d1bc86aca02f2e5b4a2f7a | refs/heads/master | 2020-04-11T17:50:04.244094 | 2018-12-16T06:55:22 | 2018-12-16T06:55:22 | 161,975,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,211 | py | import tensorflow as tf
from tensorflow import data
from datetime import datetime
import multiprocessing
import json
import shutil
import os
from model.model import Model
from utils.data_processor import DataProcessor, get_seg_features
import numpy as np
from utils import tf_metrics
tf.reset_default_graph()
path = o... | [
"1318394945@qq.com"
] | 1318394945@qq.com |
8fa80e0d3e25278dde5c59bfe9d1f68560057a19 | 48f297637ae79f0242e4cbc0944b68e5ae331a13 | /0273_integer-to-english-words.py | f42bd331af3aa9d0b62aa78d2f8203bd3f4ed008 | [] | no_license | bolatov/leetcode | a1ff46be79ccb46e7c8e8b754ef35579ce4bd863 | 8da24f993535cf22ae1af5b8a98fd9dada22b498 | refs/heads/master | 2020-04-17T08:59:23.516987 | 2019-12-19T14:50:15 | 2019-12-19T14:50:15 | 65,895,687 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | digits = ['', 'One', 'Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', 'Nine']
teens = ['Ten', 'Eleven', 'Twelve', 'Thirteen', 'Fourteen', 'Fifteen', 'Sixteen', 'Seventeen', 'Eighteen', 'Nineteen']
tens = ['', '', 'Twenty', 'Thirty', 'Forty', 'Fifty', 'Sixty', 'Seventy', 'Eighty', 'Ninety']
class Solution:
... | [
"noreply@github.com"
] | bolatov.noreply@github.com |
113ed67923dd0c3f1bb09d16b1bbcf84ce4e7f7e | 4a6b4d54c4a1e99cb46c704a6c9ef24d9725317e | /enemies.py | 509eac7b1b5c8b2cb70f5db4c430582f08d2a6fd | [] | no_license | NCavaliere1991/space-invaders | c3ca38911cafed6ddedb06d3d85c095f589c40b8 | c16de1f4943622399db25b0eac86a4b852895ffb | refs/heads/main | 2023-04-03T08:00:30.840478 | 2021-04-09T03:33:19 | 2021-04-09T03:33:19 | 340,783,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,162 | py | from turtle import Turtle
import random
class Enemies(Turtle):
def __init__(self):
super().__init__()
self.enemy_list = []
self.make_enemies()
self.moving_right = True
self.enemy_bullet = None
self.move_speed = 0.1
def make_enemies(self):
x, y = -250, 25... | [
"noreply@github.com"
] | NCavaliere1991.noreply@github.com |
3b5d2409423e635de41b65955729f39ee28a7878 | 7367236c0b9cc395f041867d78ae2f576e772274 | /flaskapp.py | 03d55dc5ec613e76182efe6ecb88488bbb2e70f3 | [
"Apache-2.0"
] | permissive | stackparty/hiring-engineers | a0a21e889bae0552f4810900803d382c8dbccc6e | f5bb4dc88d0d3c6ad7611c6eda0de1123d1c7170 | refs/heads/master | 2021-04-15T13:25:39.657721 | 2018-03-24T12:37:09 | 2018-03-24T12:37:09 | 126,187,967 | 0 | 0 | Apache-2.0 | 2018-03-21T14:04:38 | 2018-03-21T14:04:37 | null | UTF-8 | Python | false | false | 973 | py | from flask import Flask
import logging
import sys
# imported ddtrace modules
from ddtrace import tracer
from ddtrace.contrib.flask import TraceMiddleware
tracer.configure(hostname='127.0.0.1') # configured for localhost as lazy
# Have flask use stdout as the logger
main_logger = logging.getLogger()
main_logger.setLe... | [
"noreply@github.com"
] | stackparty.noreply@github.com |
97be4605ce53217537e3575cdcfee5cde7088155 | b7eed26cf8a0042a61f555eed1e9bf0a3227d490 | /students/synowiec_krzysztof/lesson_02_flow_control/the_number_of_zeros.py | 1e52b6e558a734c741f88e015c19612c4194c9bb | [] | no_license | jedzej/tietopythontraining-basic | e8f1ac5bee5094c608a2584ab19ba14060c36dbe | a68fa29ce11942cd7de9c6bbea08fef5541afa0f | refs/heads/master | 2021-05-11T11:10:05.110242 | 2018-08-20T12:34:55 | 2018-08-20T12:34:55 | 118,122,178 | 14 | 84 | null | 2018-08-24T15:53:04 | 2018-01-19T12:23:02 | Python | UTF-8 | Python | false | false | 209 | py | def main():
n = int(input())
numberOfzeros = 0
for x in range(0, n):
if (int(input()) == 0 ):
numberOfzeros += 1
print(numberOfzeros)
if __name__ == '__main__':
main()
| [
"synulewar@gmail.com"
] | synulewar@gmail.com |
44c0e522433573ee5bf9d1aa518fc2bca5ad04d7 | 9fb51d04354b18144234ce11e0aec3f2b62ebe5f | /pages/migrations/0004_auto_20200407_1910.py | 908fa5bc9e60a53f38cdbbbaf5cb51371eaeb4fc | [] | no_license | madrix01/Posty | ce64797c80f94ceb35c009e36ebc6765988fa767 | 70e6a0f1a019176273df3ca4df58acd678fbbdc3 | refs/heads/master | 2021-05-25T16:07:52.402938 | 2020-04-07T14:40:05 | 2020-04-07T14:40:05 | 253,819,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | # Generated by Django 3.0.4 on 2020-04-07 13:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pages', '0003_auto_20200407_1655'),
]
operations = [
migrations.AlterField(
model_name='post',
name='description',
... | [
"51414879+madrix01@users.noreply.github.com"
] | 51414879+madrix01@users.noreply.github.com |
c994f3b51493b3cbea3626fe6ac85e3aea76467f | 4aa7a4d0525095725eb99843c83827ba4806ceb1 | /tf/tf20_rnn1.py | bb6180d40fd285e1019eb214504f5f0962ba6ca1 | [] | no_license | seonukim/Study | 65a70f5bdfad68f643abc3086d5c7484bb2439d4 | a5f2538f9ae8b5fc93b5149dd51704e8881f0a80 | refs/heads/master | 2022-12-04T17:04:31.489771 | 2020-08-21T00:35:15 | 2020-08-21T00:35:15 | 260,144,755 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,536 | py | ## Tensorflow - RNN
import numpy as np
import tensorflow as tf
# data : hihello
idx2char = ['e', 'h', 'i', 'l', 'o']
_data = np.array([['h', 'i', 'h', 'e', 'l', 'l', 'o']], dtype = np.str).reshape(-1, 1)
print(_data)
print(_data.shape) # (7, 1)
print(type(_data)) # <class 'numpy.ndarray'>
... | [
"92.seoonooo@gmail.com"
] | 92.seoonooo@gmail.com |
0777e6b1e3a96ca28ed9d2a1e5077e6ed5062469 | 8eaf88fb487e075ecbb66a23a92d269c10f40a6f | /DAndB/d_and_b/d_and_b.py | cbfb61fa2d9b7f9372ccfe95c2fba62a94cdd0a4 | [] | no_license | smallliang/Boxereum | 933135964ed93f1d0c8186dcb64fc93e28a0e443 | 340e848bb0329bc04c45d53f46332ccf5420c1bb | refs/heads/master | 2020-03-22T17:01:32.231180 | 2018-07-20T09:27:07 | 2018-07-20T09:27:07 | 140,367,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,110 | py | # -*- coding: UTF-8 -*-
import json, time
from .game import *
from .player import *
class DotsAndBoxes:
def __init__(self, window_controller=None):
self._current_game = None
self._history = None
self._current_step = None
self._red_player = None
self._blue_player = None
... | [
"gafei_han@163.com"
] | gafei_han@163.com |
91466eeda4cf8c699e0377984a6ca5727ab863cd | b2d9d48585748adaacda73c59eb8de129f519632 | /vxi11cmd_custom.py | ddefc43e0d7b995168a2ed6c45ad0d0366b862b8 | [] | no_license | W5Jinlon/mo-han-toolbox | aff18f6f30abe4c3852bbde2fc0b876c033383e1 | b386864cd8c3dd52113742c19e5d53774d7b46da | refs/heads/master | 2022-07-17T01:22:20.939722 | 2020-05-21T02:43:05 | 2020-05-21T02:43:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,778 | py | #!/usr/bin/env python3
# encoding=utf8
import vxi11cmd
class VXI11CmdCustom(vxi11cmd.VXI11Cmd):
DATA_ITEMS_TRIPLE = ['urms', 'umn', 'irms', 's', 'p', 'lamb', 'fu', ]
DATA_ITEMS_SIGMA = ['urms', 'umn', 'irms', 's', 'p', 'lamb', ]
DATA_ITEMS = [i + ',1' for i in DATA_ITEMS_TRIPLE] + \
[i +... | [
"zmhungrown@gmail.com"
] | zmhungrown@gmail.com |
bf74e55be99a9dee4af75cc81b3b169667e7704f | e12070bd51f1b2b3ba308b74325d4ff3fc3639b4 | /prep_data.py | 442d2531c29e2486aea724f8fed5c0d85c9e7ed1 | [
"Apache-2.0"
] | permissive | achbogga/achunet | e058c45d105879a6290b16b09f8e09ff36bd260e | e8b27b0840929e823a5109d43302afbf721d41d2 | refs/heads/master | 2021-01-19T01:54:57.750169 | 2017-04-05T02:41:30 | 2017-04-05T02:41:30 | 87,256,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,050 | py | import numpy as np
from scipy.ndimage.interpolation import zoom
def downsample_video(video, output_frames):
from scipy.ndimage.interpolation import zoom
output_vid = zoom(video, [(float(output_frames)/video.shape[0]),1,1,1])
return output_vid
def read_video_to_frames(filename = 'train_001.avi', output_res... | [
"achbogga@indiana.edu"
] | achbogga@indiana.edu |
3acd554dc2ba13468602c99b2c04b21b6bdeb1f8 | f3b903183d0438b293817ce564e9772dc707fd32 | /roadmap/migrations/0001_initial.py | 2fdbdd48f97ac8587b8eea6dfb52287b78196c62 | [] | no_license | RathiRohit/Collaborative-Education-Platform | f40bd1337224f9f7383855b4a806120b9f8abe85 | 4e16ce61532ff638bc17256544b71a83bc8de6e4 | refs/heads/master | 2020-03-13T15:31:42.162510 | 2018-04-24T14:55:05 | 2018-04-24T14:55:05 | 131,178,726 | 1 | 0 | null | 2018-04-26T15:52:14 | 2018-04-26T15:52:14 | null | UTF-8 | Python | false | false | 809 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2018-04-15 14:52
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Roadma... | [
"onkarsathe27@gmail.com"
] | onkarsathe27@gmail.com |
1b36a9a66459082bdd8db0595a6759ab6a28e64f | 5b2c9386534dab0afc006ae44f3f19b527c3dae5 | /source/classifiers/ir_relevance.py | f777104243f8557988cf4dc2075f3d792c3147e0 | [] | no_license | saurabhc123/unsupervised | d1cd2820fa7ee6269acb6d176e99799475337947 | 6a36fcfacea9d788e5274b4cde763104d2231789 | refs/heads/master | 2020-03-18T15:38:53.519559 | 2018-07-30T02:16:47 | 2018-07-30T02:16:47 | 134,920,402 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,553 | py |
from tensorflow.contrib.rnn import BasicLSTMCell
from tensorflow.python.ops.rnn import bidirectional_dynamic_rnn as bi_rnn
import time
from torch.utils.data import DataLoader
from classifiers.prepare_data import *
# Hyperparameter
from data_processors.noise_remover import NoiseRemover
from data_processors.tweet_bas... | [
"saurabc@yahoo.com"
] | saurabc@yahoo.com |
e2e5f556f421cbb5df0de52853da00ef2563b495 | 3ae70c39236906bdbf3e5a4e3c4a9054595ef341 | /classify/cmp.py | c900de2412c24ddc196b2e66a9e8b5892146e764 | [] | no_license | pcschneider/eroML | 75e3b48d6ec738199c92ceb86fbe686c0cb4636f | 444fc9412e324d51019e98c8adb35383fa602fcf | refs/heads/master | 2023-05-01T00:42:46.229076 | 2021-03-25T11:31:09 | 2021-03-25T11:31:09 | 370,687,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | import numpy as np
from astropy.io import fits as pyfits
fn = "major_eFEDS_classified.fits"
ff = pyfits.open(fn)
fd = ff[1].data
gi = np.where(fd["category"] == 0)[0]
s_names = fd["original_srcID"][gi]
print(s_names, len(s_names))
fn1 = "../ero_data/efeds_c001_V3_main_HamStar_internal.fits"
ff1 = pyfits.open(fn1)
f... | [
"astro@pcschneider.eu"
] | astro@pcschneider.eu |
6f3673227637351a7965acc9379c4b76317ddca5 | 9e26b28f74585a4f95476847f6e886ecf3bff0a1 | /mywork/stat/core/eventype.py | c26470fd2d9ab45ebb863b9128c86dc221a8d7c9 | [] | no_license | wanziforever/tools | 28e4aa30377395fd9966407051e92f83efd23481 | 49f8de6e3dd18846c8b5f187507513312778a7ed | refs/heads/master | 2016-09-06T10:30:28.303092 | 2015-06-04T01:53:18 | 2015-06-04T01:53:18 | 6,934,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | #!/usr/bin/env python
''' define all the event type, currently only timer and socket
message event were supported '''
class EVENTYPE(object):
INVALID = 0
TIMEREXPIRE = 1
NORMALMSG = 2
| [
"wanziforever@gmail.com"
] | wanziforever@gmail.com |
21296bb60e05156762f7d9539dbfee8c6ea02205 | c5116fa01aab6d1c0a68b1e6f0b27ea453a714be | /tests/test_20_main.py | 773eeab9680a6f2e0f2686ecabb5c4b7d4dc8990 | [
"Apache-2.0"
] | permissive | ecmwf/cfgrib | 1848ed6be566ecd05f31212dd41618d2e85cc5f8 | 00e936e4677cf2ff434f928c1f3740dcb3581ec9 | refs/heads/master | 2023-08-08T23:39:02.128983 | 2023-06-02T13:52:20 | 2023-06-02T13:52:20 | 141,110,423 | 366 | 68 | Apache-2.0 | 2023-09-06T12:35:59 | 2018-07-16T08:34:34 | Python | UTF-8 | Python | false | false | 375 | py | import click.testing
from cfgrib import __main__
def test_cfgrib_cli_selfcheck() -> None:
runner = click.testing.CliRunner()
res = runner.invoke(__main__.cfgrib_cli, ["selfcheck"])
assert res.exit_code == 0
assert "Your system is ready." in res.output
res = runner.invoke(__main__.cfgrib_cli, [... | [
"a.amici@bopen.eu"
] | a.amici@bopen.eu |
350d498add8f9c0bd0aacea3c76b8f490284b7d6 | e1c9ba82c0d68c1c3170bb49428274246aeaba20 | /src/assets/scene_config/pandemic/5/solution.py | 1e0100e5107fa1f2300d7c0f72d9d83ad115b9ee | [
"Apache-2.0"
] | permissive | zheka2304/kiddo | 032c7505d7362341dda2d4a2c7f859aac74f9523 | 58fc41bd8d1ee93c9af464179fe6e3c0d6150b50 | refs/heads/master | 2023-07-24T20:27:29.205146 | 2020-11-16T12:27:55 | 2020-11-16T12:27:55 | 384,953,198 | 1 | 0 | Apache-2.0 | 2021-07-11T13:19:31 | 2021-07-11T13:19:31 | null | UTF-8 | Python | false | false | 199 | py | import player
player.put_on_mask()
player.go_right(4)
player.go_down(4)
player.go_right()
player.get_products()
player.go_left(4)
player.go_up()
player.go_left()
player.go_up(4)
player.wash_hands() | [
"denis.tsyplakov@onsolve.com"
] | denis.tsyplakov@onsolve.com |
ae5b78d881838cb1b4a291f55be0ef3b54f4fe10 | 32544e36cf43e0ff41bdec6aab4a9c7e2d6506fd | /11_subseq/maxseq.py | 87b9ca2c3a361de9fedb141d04f57930da620cbb | [] | no_license | luispabreu/p3ws | 9374bfadcbda85b874c9dd441caf962fbcc8eea2 | e7ef18d36a222a2d4f2ef0b506a45a1d896f8273 | refs/heads/master | 2023-02-05T21:33:13.523410 | 2020-12-18T18:27:50 | 2020-12-18T18:27:50 | 319,834,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | def maxSeq(list):
if len(list) < 2:
return len(list)
length_now = 1
length_max = 1
for i in range(1,len(list)):
if list[i] > list[i-1]:
length_now += 1
else:
length_now = 1
pass
if length_now > length_max:
length_max = lengt... | [
"lep43@duke.edu"
] | lep43@duke.edu |
6080bf13c35035ee28bb2bd1fa4394aa388aaa81 | 175978fc145804d2a348f25fc39d7c6050d23b06 | /338. Counting Bits.py | 706181271dcd18f2fe90fa86830f4c155d109584 | [] | no_license | daxiangpanda/leetcode | 4738c9a5b274686f5af0ab0a00b55d9abd92969e | e00db2936db64dc200ad62a18d0bc7af4599b013 | refs/heads/master | 2021-01-09T21:46:45.360041 | 2019-01-27T10:18:57 | 2019-01-27T10:18:57 | 49,489,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | #!/usr/bin/env python
# encoding: utf-8
# 算法挺好的 也不知道是怎么想出来的
class Solution(object):
def countBits(self, num):
lst = [0] * (num + 1)
milestone = 0
nextMilestone = 2
for i in range(1, num + 1):
if i == nextMilestone:
milestone = nextMilestone
... | [
"313514820@qq.com"
] | 313514820@qq.com |
d4355072527465d76b91d5813414594d7050b896 | 1f56491c9f009295fe443cce59fb3ecebbe0bd45 | /weather.py | 3d71e5c15bdd9c6b79f71f210377aa52a417b19b | [] | no_license | MechOrigin/dialogflow-webhook-weather | d95400d00982c2f8dad8091ff73797bc54c70054 | e895d55d7222d5dcf5f35930ba65a01ea1e9fc00 | refs/heads/master | 2021-01-26T09:00:23.757962 | 2020-03-26T15:20:16 | 2020-03-26T15:20:16 | 243,395,122 | 0 | 0 | null | 2020-02-27T00:27:06 | 2020-02-27T00:27:05 | null | UTF-8 | Python | false | false | 2,156 | py | from flask import Flask,request,make_response
import os,json
import pyowm
import os
app = Flask(__name__)
owmapikey=os.environ.get('9648b1724d6c1b3023a40af748a3b846') #or provide your key here
owm = pyowm.OWM(owmapikey)
#geting and sending response to dialogflow
@app.route('/webhook', methods=['POST'])
def... | [
"noreply@github.com"
] | MechOrigin.noreply@github.com |
8e5245dcebd5cadbdeaa80b6aab19e6bfad12ecc | bc6d580c3a28f0c19e12176db7b4fac31848f6ea | /temp.py | ccad1df251f2de864ec1536f0996c6563cb6665c | [] | no_license | soumalipal/BTP | 1f2ae1067319367fa029eb263c4b581c2713f9c8 | 376c7cdbda589ef1cf066e82f2a152051e4f2372 | refs/heads/master | 2020-04-26T09:12:04.787029 | 2019-03-01T15:17:02 | 2019-03-01T15:17:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,240 | py | import tkinter as tk
import serial
import time
import os
from PIL import ImageTk
#import RPi.GPIO as GPIO
#Function Definitions
#Find Connected Arduinos
def find_dev():
global left_ar,right_ar,rpm_ar,cabin_ar,back_ar
devices=os.listdir("/dev")
for dev in devices:
if dev[0:6]=="ttyUSB" or dev[... | [
"verma1997@gmail.com"
] | verma1997@gmail.com |
c2b28cb187efe12273a5b0dac1b810439e8b15c0 | 09d349155446f2f32519cfc7deb7f79b1138a158 | /bluegriffon/actions.py | b7ad185f9ae865049030bba33396598bc95bda1b | [] | no_license | marcin-/pardususer.de | 632d7fb4c5a9252dbcf82711a5da126523d3b8e8 | 1d4bb1d1f9da113cf2b8cbcc6b544ec9b9616862 | refs/heads/master | 2016-09-05T23:22:38.726769 | 2012-10-08T20:40:39 | 2012-10-08T20:40:39 | 6,114,809 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
#Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import get
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
def setup():
shelltools.system("tar -jxvf %s-%s-L... | [
"marcin.bojara@gmail.com"
] | marcin.bojara@gmail.com |
79f03d9d426e4d5f9502ae84952938e4ad0411aa | 6cb23c2937bfbf3a91bacb661677e6425399eb7f | /Appium/demo/zhuye.py | 744aa112a0a0ea2582a062c62ff48fabefb9d356 | [] | no_license | jinyaxuan1119/test | d65c2a578ab48ed3dddb658610579be629fb7c98 | e61163308d0071d8f0a1b0658f2e0642c1c3be97 | refs/heads/master | 2023-05-26T21:21:36.851829 | 2023-05-10T10:32:57 | 2023-05-10T10:32:57 | 241,112,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | from selenium.webdriver.common.by import By
from Appium.demo.hexin import HeXin
class Zhuye(HeXin):
def click_sousuo(self):
return self._driver.find_element(By.ID,"") | [
"jinyaxuan_test@sina.com"
] | jinyaxuan_test@sina.com |
20ce49a41a21f7f150a97dc9ae000af2a1a46c30 | 9953156013e0d572f01715ce5e0716918fb4e7c1 | /polls/models.py | 92f41fa8822682aa9c06492c577633951858e666 | [] | no_license | cohki0305/django-tutorial | 20a6681afcae52a3153ed07e40456c96f7c22712 | 99d685453c2ed6496eaee8e512705ca06bb447e5 | refs/heads/master | 2021-08-31T21:28:41.688548 | 2017-12-23T01:03:43 | 2017-12-23T01:03:43 | 114,948,161 | 0 | 0 | null | 2017-12-23T01:03:45 | 2017-12-21T01:30:01 | Python | UTF-8 | Python | false | false | 550 | py | from django.db import models
# Create your models here.
class Question(models.Model): # modles.Model: 継承元, OR マッパー?
question_text = models.CharField(max_length=200) # 何でこいつだけ CamelCase?
pub_date = models.DateTimeField('date published') # オプションとして人間可読なフィールド名を指定
class Choice(models.Model):
question ... | [
"cohki0305@gmail.com"
] | cohki0305@gmail.com |
e622e6f9dcd6b08fdbcf2d8614ca4f86f2da6d2a | 7305127e14995404d6ca5653b50c43370b6af815 | /bookwyrm/models/readthrough.py | 61cac7e6ab4dc5378d474a80549a3317f23a5393 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | nornagon/bookwyrm | 2cdda17b1fffd09c932cf09bfdc48021f24fbfb6 | 53e34cf7de47e988386c80933b59326667f7aa4b | refs/heads/main | 2023-02-10T04:24:24.528971 | 2021-01-07T00:05:46 | 2021-01-07T00:05:46 | 327,500,772 | 2 | 0 | NOASSERTION | 2021-01-07T04:16:36 | 2021-01-07T04:16:35 | null | UTF-8 | Python | false | false | 780 | py | ''' progress in a book '''
from django.db import models
from django.utils import timezone
from .base_model import BookWyrmModel
class ReadThrough(BookWyrmModel):
''' Store progress through a book in the database. '''
user = models.ForeignKey('User', on_delete=models.PROTECT)
book = models.ForeignKey('Edi... | [
"mousereeve@riseup.net"
] | mousereeve@riseup.net |
371048d4f86718481ae9a1618e377c44396fff3b | 7805134ab326271dfceccdfe29cdbc2f85a40e85 | /ncarrara/budgeted_rl/tools/utils_run.py | c1117dce7fe7ebd81ad8c00b7f296816c1177861 | [] | no_license | ncarrara/budgeted-rl | 9248c9a206bfa2c6c588e9cde0219f443922e3f7 | b588361a263022eb624fe83e8b16abac4e68e33e | refs/heads/master | 2020-08-18T18:35:11.731139 | 2019-10-17T15:35:08 | 2019-10-17T15:35:08 | 215,821,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,451 | py | from collections import Iterable
import numpy as np
import ncarrara.budgeted_rl.bftq.pytorch_budgeted_fittedq as pbf
from ncarrara.budgeted_rl.tools.policies import policy_factory
from ncarrara.utils.datastructure import merge_two_dicts
from ncarrara.utils.math_utils import set_seed
from ncarrara.utils.os import make... | [
"nicolas.carrara1u@gmail.com"
] | nicolas.carrara1u@gmail.com |
58cbb3a8e9131a30feccda6177ed9c6a44a48c25 | f9237f8db69af2590b90b4c40f8ed1ddabe7c703 | /test/test_standard.py | 6322d7f9100d896954f7d39477809b05f343edec | [
"MIT"
] | permissive | Vaziria/stattest | d1ca89b6b090a40abf32c6071b988894ed39585f | 82fd47a93a7b6f5c54a61080498dbf71413ce5bd | refs/heads/master | 2023-08-28T04:30:20.430307 | 2021-10-29T22:40:33 | 2021-10-29T22:40:33 | 351,990,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | import time
from test_server import io_loop, test
def test_using_distributed(benchmark):
def run():
io_loop.run_until_complete(test())
benchmark(run) | [
"manorder123@gmail.com"
] | manorder123@gmail.com |
603ce5a4b3d247a939d7be67cce624b99f22c876 | 5dea5b2aee34962d6ecff89da9d4b2f7499c85ce | /rasputin/labs/migrations/0001_initial.py | 527c304c7ecfd219e96476c293d37e693c15513a | [
"BSD-3-Clause"
] | permissive | goldhand/terpene | 3a691fde0258d9a40dd505b10f6ea7fbb5245815 | 6cd1d8839abb8eacabde32140489463099d982fc | refs/heads/master | 2023-04-01T05:29:17.196607 | 2014-11-19T20:49:42 | 2014-11-19T20:49:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,259 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.Create... | [
"will@django.nu"
] | will@django.nu |
090f9208b53e74dcd17d537b19804743a8aa1995 | 66ed253c19ac712cb5f7c6e3e33d6c6e45e1cadb | /test_hw1.py | 56991535778f6255850978c7bedcf082c0143d60 | [] | no_license | GeorgeNekws/2017sum_era1_kol3 | a05b3d77bbd54061eb1676cbadee8c96dab616f5 | 1e993b16fbe454da0443ef8bf5cb5889298738f2 | refs/heads/master | 2021-01-19T03:01:17.212308 | 2017-04-25T15:47:07 | 2017-04-25T15:47:07 | 87,303,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,896 | py | # GeorgeNekws
import unittest
from matrix_module import Matrix
import math
class test_matrix_operations(unittest.TestCase):
def setUp(self):
self.obj = Matrix([1, 1, 1, 1] , [2, 2, 2, 2])
def test_add_between_matrices(self):
self.assertEqual([3, 3, 3, 3] , self.obj.addition([1, 1, 1, 1] , [2, 2, 2, 2]) )
... | [
"gtsikriteas@uth.gr"
] | gtsikriteas@uth.gr |
b310a26be8babcba616413af5ffda081b6b8d4a0 | 70205da2c939cdee904420f73eb76df05e9a0d80 | /String/214.py | dc602cd45a94b19da56fdca78177cc4269389c43 | [] | no_license | ShangruZhong/leetcode | 4f9a1ae7d71a73bbd8fc42a55c6c12d61f47589e | 6582b0f138a19f9d4a005eda298ecb1488eb0d2e | refs/heads/master | 2020-04-12T01:29:52.990418 | 2017-06-25T13:48:35 | 2017-06-25T13:48:35 | 42,118,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | """
214. Shortest Palindrome
Brute force solution, why not KMP?
@date: 2017/01/24
"""
class Solution(object):
def shortestPalindrome(self, s):
"""
:type s: str
:rtype: str
"""
reverse = s[::-1]
for i in xrange(len(s) + 1):
if s.startswith(reve... | [
"draco.mystack@gmail.com"
] | draco.mystack@gmail.com |
24b34b4e2935a0873c6ed9f8dd9f18757c6170cc | 6d9d6c52ad77c92de5fe194468eb86ea6ac1ea72 | /Startcamp/dayone/lotto.py | 96799c4f6ddf3657664dbe5b0346865ebd30aac1 | [] | no_license | Wonsang-Joo/TIL | 80e91d0027309da8af1409cfdf7d62419e97895a | 5b095b49c5ba7b1ec9ddd6eedf0126c523d8b8a3 | refs/heads/master | 2023-04-08T16:54:01.638298 | 2021-04-01T14:48:23 | 2021-04-01T14:48:23 | 329,817,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | #import문은 스크립트 파일 최상단에
import random
numbers = range(1, 46)
# print(numbers)
lucky_numbers = random.sample(numbers, 6)
# print(lucky_numbers)
#정렬
print(sorted(lucky_numbers)) | [
"nigagaraha@naver.com"
] | nigagaraha@naver.com |
196ac8aa67084770b50f05d2fc6acd8a17d1aa71 | 080919d33b7b016a854a6bb8de5927fc66a58b74 | /JokeRecommender/lib/python3.6/_bootlocale.py | 69455e67e024913c30c31f5dbda668c80c3b4ab4 | [] | no_license | anjaliverma96/Project_test | d6872103912804d0ddcd72d6cd00d2d9344c12ca | 38a301973326b5d24c78514c76f8ef05ca247b5a | refs/heads/master | 2022-12-11T00:05:45.727270 | 2019-06-13T06:55:30 | 2019-06-13T06:55:30 | 191,632,055 | 0 | 0 | null | 2022-12-08T01:05:05 | 2019-06-12T19:26:24 | Python | UTF-8 | Python | false | false | 57 | py | /Users/anjaliverma/anaconda3/lib/python3.6/_bootlocale.py | [
"anjaliverma2020@u.northwestern.edu"
] | anjaliverma2020@u.northwestern.edu |
929a196f65d8e6bc7b0b5b6553c806a5e7cf401b | 9569292f00f459a77cb61250f32ce7bbc45181f5 | /main.py | 7ec7277a2decf0d49e2ed1844851e4646104a842 | [] | no_license | Sasayaki7/A-Star | a8cf2dc6a145179dd80504a7b06629e50f1a4eaa | 510ef781a3e3cedf5dea546f8d008e1bdd32d678 | refs/heads/master | 2023-07-19T21:49:47.409115 | 2021-08-29T05:50:08 | 2021-08-29T05:50:08 | 362,492,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | import astargui
gui = astargui.AStarApplet()
gui.run()
| [
"50351133+Sasayaki7@users.noreply.github.com"
] | 50351133+Sasayaki7@users.noreply.github.com |
c850902c967838dc029860db23de8f5c1cfcb0f5 | a51795ac9ec30826d1dd049e5a9a10a5fcfcf332 | /cart/serializers.py | 9d3e6a804ac8764b5f8e50f7d1b2225415175aa8 | [] | no_license | GurungAman/Khaja-khaja | 71efb2870ea4e5c20e5a40f545a8ac7f94985b45 | 075025491e0d7dae36f98053a5571c93157f0700 | refs/heads/master | 2023-09-05T14:28:22.455462 | 2021-10-20T05:55:02 | 2021-10-20T05:55:02 | 389,515,986 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | from django.contrib.auth import get_user_model
from rest_framework import serializers
from .models import OrderItem
from restaurant.models import FoodItems
from user.models import Customer
User = get_user_model()
class OrderItemSerializer(serializers.ModelSerializer):
class Meta:
model = OrderItem
... | [
"amenag30@gmail.com"
] | amenag30@gmail.com |
b94818c0353b6a951d62578237c10906cd914980 | 03c083f3d817e054f9490e8eb6ddc2c780833674 | /FileManager.py | a1b1940ce83d3080ca9327fa661b89f1c0daae30 | [] | no_license | mapic91/FileManager | c2a7640da52ae9a6f94ead3b039798164151a91b | 194bc4f22354f799be7cc81acdd3d342afb5233c | refs/heads/master | 2021-06-26T04:36:40.433356 | 2020-09-19T11:08:05 | 2020-09-19T11:08:05 | 128,938,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,964 | py | from flask import Flask, url_for, request, render_template, redirect, send_from_directory
from werkzeug.utils import secure_filename
import os
import re
import mimetypes
import shutil
import base64
from urllib import parse
root_path = os.getenv("FileManager_Root_Path")
passwod = os.getenv("FileManager_Login_Password")... | [
"mapic91@gmail.com"
] | mapic91@gmail.com |
c9df2a1953a51ae76421896271d2507d8f35d214 | 2259aac861af506d6189c7dc1a9af8a2c3f25b7f | /Calendar.py | 8f3571bf91b79b1ac46af40d7948b0b5ce6faa00 | [] | no_license | kteel620/Python-Files | e19085975b9dbbc6ad833b2ce41fa27a2cd48e30 | eaf5712ad34c15982ac4f72b1c7d6b212be97c0b | refs/heads/master | 2021-01-15T21:34:06.661720 | 2019-06-22T02:29:10 | 2019-06-22T02:29:10 | 99,876,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,452 | py | '''Program that lets a user interact with a calendar-like app.'''
from time import sleep, strftime
const_var = 'Keshav'
calendar = {}
def welcome():
print("Welcome to the calendar, " + const_var)
sleep(1.0)
print(strftime("%A, %B %d %Y"))
print(strftime("%I:%M:%S %p"))
sleep(1)
print("What ... | [
"noreply@github.com"
] | kteel620.noreply@github.com |
575e4e0842798328d732603296abdcd280b6eed1 | e4767f88a8e1bbfc5661d774aedd772f746119d3 | /Contest Questions/CCC2018J1JG.PY | b69a2d6b84f863ceb42894e3a350a6ee3a7e05f6 | [] | no_license | jaimangledhill/Year9DesignCS-PythonJG | 8c45f120f24d10376e989885487fcfbcf7b0c724 | f93a8ed7d63a0c1835dfb67aabbcdd9b26d3565f | refs/heads/master | 2020-03-28T12:58:04.165143 | 2018-11-28T23:59:05 | 2018-11-28T23:59:05 | 148,352,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34 | py | print ("Welcome to the CCC2018J1") | [
"jaiman.gledhill@Gledhill.local"
] | jaiman.gledhill@Gledhill.local |
deba6641d4c3c9e73e4fe824920baee96c8765a3 | 41b1a27b59dca48469ecbbca5c36a93753dde316 | /lithops/config.py | e171f45dce14c07f408750ded67e747ef65e4fb6 | [
"Apache-2.0"
] | permissive | 963086989/lithops | 269a4b09117980d748d92018841d4130f9a541a6 | 44ef83e3511c40b49cab86356e2434b688e2a3f2 | refs/heads/master | 2023-07-30T00:03:07.539008 | 2021-09-14T03:17:09 | 2021-09-14T03:17:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,421 | py | #
# (C) Copyright IBM Corp. 2021
# (C) Copyright Cloudlab URV 2021
#
# 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 ap... | [
"josep.sampe@gmail.com"
] | josep.sampe@gmail.com |
438f66724fca30c63a1c3a9e16e4d7e4d1621a92 | 533ec52d57d4ea55307ec6245a31acf91b76240f | /telegrambot/simple.py | 8649c9ffa3c6cad24a9d864a2e37aafd9b4e65d9 | [] | no_license | priteshgudge/telegrambot | d10759437b497f8e507189c73db07e4fbe91764b | 91860c0fef060d821d282c513436beee60857dc7 | refs/heads/master | 2020-06-13T02:30:14.029408 | 2016-12-03T08:16:41 | 2016-12-03T08:16:41 | 75,461,377 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | import telebot
TOKEN = "298441962:AAES7xnrWjy2eppOMX5YvfDd1flXSOkxJ6M"
bot = telebot.TeleBot(TOKEN)
@bot.message_handler(commands=['start', 'help'])
def send_welcome(message):
bot.reply_to(message, "Howdy, how are you doing?")
@bot.message_handler(func=lambda message: True)
def echo_all(message):
bot.reply_t... | [
"pritesh.gudge@agrostar.in"
] | pritesh.gudge@agrostar.in |
07363b4e0d5d306973bb0914451ce518775d9dad | 892238666cc505d563d3f716876b5f192787fb1e | /Others/movefiles.py | d1908fc5a7f098b3e9f89c02de2ee47fd84b3936 | [] | no_license | LucasWangZH/Auxiliary_Scripts | c0055c77d8e89e9a4841a53133da4629919fe532 | b3ba1591c94414158bbf8c69ca87d79145a80f5b | refs/heads/master | 2020-09-14T11:01:02.790994 | 2019-11-21T07:16:29 | 2019-11-21T07:16:29 | 223,109,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 14 11:06:59 2019
@author: slkj
"""
import os, random, shutil
def movefile(dir):
pathDir = os.listdir(dir)
# num是要随机选取的图片数量
num = 130
sample = random.sample(pathDir,num)
print(sample)
for name in sample:
#若果是拷贝,不是移动,就把move改为copyfile
sh... | [
"wangzh@deepblueai.com"
] | wangzh@deepblueai.com |
e8ad1e80765394c19fc8f08d99cbdd4bb83036fe | d2fc3b933468f462153d2390724d7a134f5bd0d1 | /Service_2/application/routes.py | a8da1fb6a3295fc9259da52f950e1413b549737f | [] | no_license | Shana12345/LatestDocker | 2350f74efe6bf68521a19ae998ddd33b9bd1711e | dfb789ffc95a5ee783feb8bf1656894ce801273f | refs/heads/master | 2023-04-04T08:52:15.818331 | 2020-11-15T14:01:01 | 2020-11-15T14:01:01 | 254,642,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | from application import app
import random
@app.route('/randomFS', methods=['GET'])
def beginning():
list = ['Riley','Jordan','Angel','Spencer','Hayden','Phoenix']
return list[random.randrange(6)] | [
"shana_charlery@msn.com"
] | shana_charlery@msn.com |
566c6a43df5d4c9261bf3f643a8bf8c76be190a1 | 7aff02a15c6309f0e6938109be78062eded5c0ec | /fetch_viruses/merge_viruses.py | 1a887211cd25f140f6a4cfdab41dfa1350297d5e | [] | no_license | sridhar0605/picobio | 1ee4373f56155aaa6f5d6e7d3c90f8d9b4039197 | ba6ac0bf1112edd32ef5c7cb28d409c3c11dc5d6 | refs/heads/master | 2021-01-20T06:18:02.329566 | 2017-02-09T18:05:37 | 2017-02-09T18:05:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,227 | py | # Prepares merged FASTA files to use for BLAST databases
#
# v000 - proteins only
# v001 - date based filename
# - CDS nuc sequences too
# v002 - Use BLAST friendly names
# v003 - multiple sets of viruses
# v004 - fixed missing | in fna names
# v005 - Handle feature extraction via Biopython
# - Tested under P... | [
"p.j.a.cock@googlemail.com"
] | p.j.a.cock@googlemail.com |
153deac2f217521b1526f12edc90ff24f03b488f | 49aa1aa5eeb2a49d2f38a5c53344107eb339d606 | /oddeven.py | ce9521e28d2212114745759842a2ce1ba2c67f5d | [
"MIT"
] | permissive | ISE2012/ch5 | 7394fd5e6579a7ed22be4efa9bc960ccb70a1b56 | cce470d418419bff0c9d37233755ee39e1362a27 | refs/heads/main | 2022-12-24T22:49:34.660291 | 2020-10-14T09:55:31 | 2020-10-14T09:55:31 | 303,972,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 14 07:14:51 2020
@author: ucobiz
"""
for num in range(1,11):
print(num)
if (num % 2): # will be 1 (True)
print("The number", num ,"is odd")
else: # divides cleanly into 2
print("The number", num,"is even")
| [
"noreply@github.com"
] | ISE2012.noreply@github.com |
b381fca8415ae5b9a92e8edaee8fe9658b27599c | 1af36fcd4ac2a303870f9602ba980abd58830be8 | /user.py | 5bcfb684ea6faed7b596d24cd4a9d889daa99ab7 | [] | no_license | arash-rasouli/SAD_Final_CA5 | 355b4cfa8f029fa5befb0b2aab28a0d78ab6e2cd | 7075c75a5a8342c728df4c232f9a5db1ca5e88b9 | refs/heads/master | 2023-06-16T04:22:41.181240 | 2021-06-25T15:08:39 | 2021-06-25T15:08:39 | 380,273,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from datetime import *
class User:
def __init__(self, userId, name):
self.name = name
self.userId = userId
| [
"arash3908@gmail.com"
] | arash3908@gmail.com |
2c3fd44d91c0bcc6b6c08ec140620817fb6b324f | 7cb20a102caca2d87395978d3daf2af19facfd8c | /SapFlask/models.py | cb3e1ba980b45ee6bee155fcd9d49255ed18477e | [] | no_license | mecomontes/Flask | 8426216fc0eccf55393f70779f0dcf8f5c940384 | 214b5f9592d0254b631cc51dd3e82a074b72b5ef | refs/heads/main | 2023-06-18T09:26:15.466768 | 2021-07-15T22:32:19 | 2021-07-15T22:32:19 | 386,441,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | from app import db
class Persona(db.Model):
id = db.Column(db.Integer, primary_key=True)
nombre = db.Column(db.String(250))
apellido = db.Column(db.String(250))
email = db.Column(db.String(250))
def __str__(self):
return (
f'Id: {self.id}, '
f'Nombre: {... | [
"1574@holbertonschool.com"
] | 1574@holbertonschool.com |
8a36a2e30de9202bf868ea60648ddcb795903c12 | 82bb063c2b5e70b0e2ab308b6446822352fadd74 | /test/Akuna1.py | 6d947efb21f029c35464f62b051b55e1990652fd | [] | no_license | yaolinxia/leetcode_study | dfc0ff04eff0a4c2fd6efb20bf3525c7397461db | c2250f2c7365976a6767e3c12760474f7a6618eb | refs/heads/master | 2021-04-03T08:32:10.782215 | 2020-09-10T23:39:39 | 2020-09-10T23:39:39 | 124,657,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | #!/usr/bin/env python
# _*_ coding:utf-8 _*_
def find_minima(n, m):
# print(m[0][1])
# print(len(m[0]))
# row = len(m)
# col = len(m[0])
l = []
for i in range(0, n):
for j in range(0, n):
# 四个顶角考虑下
# if i == 0 and j == 0:
# if m[i][j] < m[i+1][j] ... | [
"18860976931@163.com"
] | 18860976931@163.com |
4e05a75483d1f170b9cea614ab19f774a8429930 | 305237c7969ddaa3c45fc155e61f976eb7cac167 | /docs/conf.py | 339b1e68d5af6549d6ed7b48fb0e975ba24b9088 | [
"MIT"
] | permissive | yuyang0809/led_tester | e6c437f76f9d1fca93e6532bb07c8f6ba4568137 | b5a3c4e86a370ac71606f7aaecdea8fd6d5d7c64 | refs/heads/master | 2022-07-31T06:52:50.119277 | 2018-03-09T17:43:02 | 2018-03-09T17:43:02 | 123,455,000 | 0 | 0 | MIT | 2021-06-01T21:57:14 | 2018-03-01T15:37:53 | Python | UTF-8 | Python | false | false | 9,146 | py | # -*- coding: utf-8 -*-
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.
import os
impo... | [
"yu.yang@ucdconnect.ie"
] | yu.yang@ucdconnect.ie |
82d4033851b3c6f9e9fdb3f26a0dc8847a06ff54 | 1feb1c79c7f05f3ec040eed1415beccf90435299 | /Stats_Analysis/additional_analysis/bin_FSM_IDACI/helper_files.py | 200376fb3f6e2eab5d8312dbab3b411fe98f9b7d | [] | no_license | KeepFloyding/IP-research | 5221b95f56d91472817568b15cdc7bb294647bc4 | 8b9ab874141b560c24ad56bd83e34b1a86020d31 | refs/heads/master | 2021-09-05T01:55:55.614248 | 2018-01-23T16:13:44 | 2018-01-23T16:13:44 | 110,840,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,896 | py | from sklearn.linear_model import LinearRegression
from sklearn.metrics import r2_score
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
def test_correlation(df, x_array, y_array, corrType):
store_array = []
for item_x in x_array:
for item_y in y_array:
score,... | [
"andris.piebalgs@outlook.com"
] | andris.piebalgs@outlook.com |
143f894e3dc1b6349d616866a30f02042fedef89 | 1906c642d582a2a43a9627e9d46fa93c5bfd3e52 | /data_generator.py | 3a7e75b0486f58d7bd774fea80b3cf372a878d8f | [] | no_license | conwayok/SelfHealth | c2af0c9f52231517716282b9c587b571be726f09 | b7d964155ba390549310a79a27bf14da966e0f1d | refs/heads/master | 2021-10-09T12:25:19.154736 | 2018-12-28T06:27:40 | 2018-12-28T06:27:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | import datetime
import random
days_to_generate = 3650
today = datetime.datetime.now().date()
file = open('selfHealth_%s.json' % today, 'w+')
file.write('[')
for i in range(days_to_generate):
file.write('{')
file.write('"dataDate":"%s"' % today)
file.write(',')
file.write('"hoursOfSleep":"%s"' % str(ra... | [
"kable2580@gmail.com"
] | kable2580@gmail.com |
de4f12747776cd7e0245e3b437a89aeec88d6a30 | d92330be8ea281bdfefff5d17039b1a6d44057dc | /src/stiamro/google/analytics/browser.py | c692f160eb0d72abbc4950e0171977d888ce7702 | [] | no_license | avoinea/stiamro | 2af6f2329abafb59b7e6b54abacb95c8f6b3d697 | 5ee6ec3b754a776cb87a9fa452e21cb2afbf38f9 | refs/heads/master | 2021-01-18T14:38:49.669592 | 2011-03-11T10:39:44 | 2011-03-11T10:39:44 | 1,397,488 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,893 | py | """ Analytics browser pages
"""
import operator
import logging
from zope.component import getUtility, queryUtility
from content import AnalyticsReport
from interfaces import IAnalytics, IGoogleAnalyticsConnection, IAnalyticsReport, IXMLParser
from zope.publisher.browser import BrowserPage
logger = logging.getLogger('... | [
"alin@serenity.(none)"
] | alin@serenity.(none) |
487e0c33c65897ca4b50123a2888585b84e4b51b | 20e97864e2330c386a8385bd12982cddb140a55d | /Motivator/main/urls.py | e1e7a1b81eaa39742a8b504b2a629f9bc5965f20 | [] | no_license | nnbzh/Motivator | 6624d75c281118bfc23f8a5ed5350d23c8149a83 | 86a4bb4f08524ef54ef4d3f88935b46e3c816e58 | refs/heads/main | 2023-04-30T04:05:21.472519 | 2021-05-13T14:55:52 | 2021-05-13T14:55:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | from django.urls import path, include
from rest_framework_jwt.views import obtain_jwt_token
from main.views import ProfileViewSet
urlpatterns = [
path('profile/', ProfileViewSet.as_view({'get': 'list', 'put': 'nullify'})),
path('profile/<int:pk>/', ProfileViewSet.as_view({'get': 'profile_detail',
... | [
"zhumanrakhat01@gmail,com"
] | zhumanrakhat01@gmail,com |
09fde6504d7896ffd9a4db03c813edbf6647aac8 | eb5783ab8a9fe673abe1caf66e7e55908d8c53fc | /image_holder.py | c60f1e2b3f306b93b9da5970853c662102cc26b6 | [] | no_license | romka-u/space-gravity | 704bb4195cfdb6700d8948e7ad0a53008895b34e | 2a30e24d8843e0a0fb2a82cd0a7af2d83ba1d06e | refs/heads/master | 2021-01-23T15:42:38.361284 | 2012-08-13T08:48:34 | 2012-08-13T08:48:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py |
import pygame
import os
class ImageHolder(object):
def __init__(self):
self.spaceship = {"red": self.load("my_spaceship_red.png"),
"blue": self.load("my_spaceship_blue.png")}
planets_names = ["planet2.gif", "planet6.png",
"planet3.gif", "planet4.gif", "plan... | [
"mailromka@gmail.com"
] | mailromka@gmail.com |
43ac35f1a33abcfc28501852aea767ff85e56cbf | c7800138a8486bfc76243e5c26d40fdc6980fa24 | /rnns/mlp_dist/rnn_forecast.py | d1bb7668ed9637c84716d0ad7672cb09a1fed475 | [] | no_license | mlap/neon4cast-aquatics | fac5a9a8fd8db36cec864e36fb364d37e057a41c | 9fdd15a5e074bd91d56bbcdec88e734af599bb54 | refs/heads/master | 2023-06-23T23:12:06.128009 | 2021-07-21T16:18:41 | 2021-07-21T16:18:41 | 332,877,284 | 0 | 1 | null | 2021-07-23T15:31:20 | 2021-01-25T20:40:14 | HTML | UTF-8 | Python | false | false | 1,983 | py | import torch
from sklearn.preprocessing import MinMaxScaler
from utils import *
import argparse
# Argument parsing block; to get help on this from CL run `python tune_sb3.py -h`
parser = argparse.ArgumentParser()
parser.add_argument(
"--png-name",
type=str,
default="trash_forecast",
help="Name of the p... | [
"marcuslapeyrolerie@me.com"
] | marcuslapeyrolerie@me.com |
72eeb848f907ec2810966c49410de30a3fa39571 | ce777e3af08dd7391ea9755647d5ad3b37ee5a0d | /kannada_digit_recognition.py | 3bef5244144b5ae14aba47964bada2780f0da021 | [] | no_license | darshanja/kannada-MNIST | 23c7d4be65baeac1fdf005fe113ed0eb79b0f69c | 04cc3d3459782a1cd0df2a6f13fe070cb19f00d3 | refs/heads/master | 2021-01-04T00:26:21.896460 | 2020-02-13T16:04:32 | 2020-02-13T16:04:32 | 240,301,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,901 | py | from keras.models import Sequential, load_model
from keras.layers import Dense, Dropout, Flatten, Conv2D, MaxPool2D
from keras.optimizers import Adam, RMSprop
from keras.preprocessing.image import ImageDataGenerator
from keras.callbacks import ReduceLROnPlateau
def init_model():
### Model Definition
... | [
"noreply@github.com"
] | darshanja.noreply@github.com |
3a3541f8ed55a568db3eb577e181365595254391 | a2262c5abcd242bbcc8b37f16c815950113123a8 | /src/mi/client/modules/actions/installrpm.py | 7eed798f8ecdf86b0654cac44ff4aa30ac6f1c3c | [] | no_license | MagicGroup/magicinstaller2 | 9945db3a0dc18cec395fb493492c93a561ad181f | 7c543ca38343c44179eeaf5eaaebe178248971a3 | refs/heads/master | 2021-10-27T22:01:54.728592 | 2013-06-06T07:19:11 | 2013-06-06T07:19:11 | 2,591,373 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,984 | py | import os, time
from mi.client.utils import logger, CF, _
'''
We use callback method to interact with tackactions.py(It is GUI of install action)
self.cb0_insert_next_disc Install package out of range, ask GUI to insert next disc.
self.cb0_install_pkg_err Install package error, ask GUI to retry or abo... | [
"zy.netsec@gmail.com"
] | zy.netsec@gmail.com |
d3846f6490834dd0e965029972e889ece8282130 | 2501e59588cb38f00c0e1ef4c99936e1a809e4af | /venv/Scripts/runxlrd.py | 7aeed4004a3b6a8630e3787ad48138d19ebb57f7 | [] | no_license | jasnPackage/ChenweiManager | 97cebc5e268a490fbb11bdcf830f2fc6081d3f18 | 8dfb5decf1891374395210475148daa07755f8d9 | refs/heads/master | 2022-12-03T17:14:47.202809 | 2020-08-25T09:20:46 | 2020-08-25T09:20:46 | 290,368,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,346 | py | #!C:\Users\Administrator\PycharmProjects\zhandian_jiekou\venv\Scripts\python.exe
# Copyright (c) 2005-2012 Stephen John Machin, Lingfo Pty Ltd
# This script is part of the xlrd package, which is released under a
# BSD-style licence.
from __future__ import print_function
cmd_doc = """
Commands:
2rows Print ... | [
"amazinglala@163.com"
] | amazinglala@163.com |
f2c9f6c41b7100c977f20edceab2a62490d65917 | a8f222e132fb4d235d2e52069a0bd8820b0a69ef | /flaskapp.py | e69e8dbd10be63a8fa06c9669d8c281e78a22490 | [] | no_license | virtis16/Data_visulaization_AWS_RDS | b1227d452623afbe3e53e2a3f1d3a36762545ec4 | d0c3ba8418d3c5cfceef96c3f69ed0ba300b1de8 | refs/heads/master | 2021-04-09T11:30:58.245135 | 2018-10-09T05:11:09 | 2018-10-09T05:11:09 | 125,573,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,760 | py | import os, re, time, memcache
from flask import Flask, render_template, request, redirect, session
from random import randint
from datetime import datetime
import sys, csv
import pymysql
ACCESS_KEY_ID = '######'
ACCESS_SECRET_KEY = '##############'
BUCKET_NAME = '####'
hostname = '####################3'
username = '... | [
"virtibipin.sanghavi@mavs.uta.edu"
] | virtibipin.sanghavi@mavs.uta.edu |
a02b1b4faab9a1399cfe1621d15f118c5bbd2a1d | 8cd06b330687331cc03974a0d6477b303e2def7b | /backend/todo/admin.py | e26b1b9def871eaf41554b7ec882bc560597adcb | [] | no_license | justinformentin/fullstack-base | b0c0dcfc45f6e7843ff8d53f06e8a542a058f270 | 3407a86552fb311ece9114ea83a485add190ca68 | refs/heads/master | 2023-01-05T09:23:17.228075 | 2019-11-30T23:04:24 | 2019-11-30T23:04:24 | 224,877,445 | 1 | 1 | null | 2023-01-04T13:25:08 | 2019-11-29T15:18:50 | Python | UTF-8 | Python | false | false | 728 | py |
# todo/admin.py
from django.contrib import admin
from .models import (Todo, Customer, Snippet)
class TodoAdmin(admin.ModelAdmin):
list_display = ('title', 'description', 'completed')
class CustomerAdmin(admin.ModelAdmin):
list_display = (
'first_name',
'last_name',
'email',
'phone',
... | [
"justin.formentin@gmail.com"
] | justin.formentin@gmail.com |
7e02f53f868875096ec81111f8ae33d6515129ed | 4f9257cc5fc94d6947373ece3921a9a34ff60cb2 | /pkg/query/qry.py | 04302d465ab4f57a106e1c089520d63ef89396fe | [] | no_license | harpreet1302/testing533 | 6b09465872a5d799682ea627866c8fdf11296d23 | 526ce400e16c6e234264c1a95a1d889117abe25d | refs/heads/master | 2020-04-11T02:10:46.905308 | 2018-12-12T05:45:56 | 2018-12-12T05:45:56 | 161,437,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py |
# coding: utf-8
# In[ ]:
import pandas as pd
def count(df):
try :
if len(df) != 0 :
return (len(df))
except :
print("Data Frame is empty")
def fltr(df,agel,ageu,sall,salu):
try :
if len(df) != 0 :
return df[(df.age > int(agel)) & (df.... | [
"harpreet1302"
] | harpreet1302 |
312fe181545ad7384059df1ba7cad7856e2da5e4 | f6ae370247bc72c6101a6b150ad2ba90880c0c66 | /assignment3/cs231n/rnn_layers.py | 88022784b12680f2b1cfaf76bfd0e18108d0ba4c | [] | no_license | douyh/cs231n_assignment | 60a75b8a8fd5282a521569c816ef530391aa55ec | c490d85cd5d4470d819c6cde2acfc52185268b43 | refs/heads/master | 2021-09-04T00:51:40.180435 | 2018-01-13T16:09:29 | 2018-01-13T16:09:29 | 115,477,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,848 | py | from __future__ import print_function, division
from builtins import range
import numpy as np
"""
This file defines layer types that are commonly used for recurrent neural
networks.
"""
def rnn_step_forward(x, prev_h, Wx, Wh, b):
"""
Run the forward pass for a single timestep of a vanilla RNN that uses a ta... | [
"noreply@github.com"
] | douyh.noreply@github.com |
a8421853195f74811a37464d18aae3b0494b4b76 | ebae48030f2c4dc61a2721a742cce6e8be0b1a4c | /backend/heir/migrations/0002_heir_user.py | 1da85f51f13d9626935ca809e6d114783d046847 | [] | no_license | TestamentSoar/testament | f751f285451a6e16dc4a846f581af33417af629e | e29a8c366f20312cdf42ed1bddd27da1d832bc62 | refs/heads/master | 2023-01-09T23:05:16.169195 | 2019-11-10T06:51:28 | 2019-11-10T06:51:28 | 220,591,069 | 0 | 0 | null | 2022-12-11T12:38:12 | 2019-11-09T04:27:17 | JavaScript | UTF-8 | Python | false | false | 579 | py | # Generated by Django 2.2.7 on 2019-11-09 12:38
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('heir', '0001_initial'),
migrations.swappable_dependency(setting... | [
"asuhacoder@gmail.com"
] | asuhacoder@gmail.com |
f87ee193e778f285703837298bdc7b1351873aaf | 713deead16f883ea2987b135d212de89de650e06 | /DAY4/romeo.py | 9c9dec734add15855e2dc047566a500313825321 | [] | no_license | paratropper/starting | a0ce9bd159ab6c100c96ae4020c69bf3af09af76 | 6724c098664748a60f076695bc127278f9c2a647 | refs/heads/master | 2020-06-04T07:19:09.296278 | 2019-06-14T10:39:57 | 2019-06-14T10:39:57 | 191,920,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 6 16:33:52 2019
@author: HP
"""
character = {}
file = open("romeo.txt", mode = "rt")
with open ("romeo.txt", 'rt'):
for line in file:
file.readline().split(" ")
for word in file:
if word in character.keys():
character[word] ... | [
"raghavparashar2105@gmail.com"
] | raghavparashar2105@gmail.com |
62d9ce930c9ad1aa3a0d9988ea318b7e9d503152 | f92c1be1627642ebdb507ad13aba44ac5a52586f | /groupBY.py | cf8ff2933edcaf2f7dd05baa9c18d7c124769369 | [] | no_license | naveenrajut/MYfirst | bb035f55e9fcb93121897bd95cc413ccb947e66b | 24c9e14ab3491ab40308e9b2b19782e2d05a0161 | refs/heads/master | 2021-05-09T19:00:07.117564 | 2018-08-03T03:07:40 | 2018-08-03T03:07:40 | 119,179,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py |
"""
from __future__ import print_function
from itertools import *
for i,j in groupby(map(int,list(raw_input()))):
print(tuple([len(list(j)), i]) ,end = " ")
"""
from itertools import groupby
| [
"noreply@github.com"
] | naveenrajut.noreply@github.com |
7fcf54c6ab50c34fa058b3055a4d7cdd27efe590 | ad2729cc3daf640d5d307ea661997845e1892722 | /Question4/Question4.py | 9feb015c0c0fd2ab9dec22abff2502369259138f | [] | no_license | NdukuCarole/Day-6 | 06d79bea9738ecc71b1821bc2310b4e30a99382a | 89b08e739b1c3330362b89f087f9efc7eadc50ec | refs/heads/main | 2023-06-06T16:03:43.888636 | 2021-06-30T06:55:41 | 2021-06-30T06:55:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | import csv
# use your own csv
info = csv.DictReader(open("covid.csv"))
print("CSV file as a dictionary:\n")
#display data of the csv file
for column in info:
print(column) | [
"noreply@github.com"
] | NdukuCarole.noreply@github.com |
835347cdcd02e23a7a22f743827346c501f182c4 | c47a9d1b857ceb5927ef5ea2143dbb798a9e38c0 | /lessons/lesson-1/solutions/p2.py | 17bea734b0be0cba86748384171a083a7b8d8382 | [] | no_license | ScottRMalley/intro-programming | 3f74390c3fd62e12bb7d60024ad7878458bcf0f4 | a13d5eee4dce646e69143566dd9a367d8358a167 | refs/heads/master | 2023-02-24T07:31:05.010763 | 2021-01-31T14:19:52 | 2021-01-31T14:19:52 | 299,049,406 | 0 | 1 | null | 2021-01-31T14:19:53 | 2020-09-27T14:26:54 | Python | UTF-8 | Python | false | false | 358 | py | import sys
if(len(sys.argv) < 2):
print('Please input a word')
else:
word = sys.argv[1]
is_palindrome = True
for i in range(len(word)//2):
if not (word[i] == word[len(word)-i-1]):
is_palindrome = False
if is_palindrome:
print(word + ' is a palindrome')
else:
... | [
"srmalley-sphereon@github.com"
] | srmalley-sphereon@github.com |
92865cb0988244782e03d7e6649c67dd04e8b3fc | 93b22689089e32ce4e7b69f1c9f91e1c5908f4d9 | /ble_modules/ble_load_data.py | aae1b69fea1a0fbf5843c3b9322125c3ec54be83 | [] | no_license | y411186312/vsi_ble_bool | 0b58d2d76fe293f61f7dd10cd70e80c10fd5486b | bed3006ec1e10c8a497bb6eef7f78797e4cd2165 | refs/heads/master | 2020-03-29T18:02:51.158225 | 2018-11-14T08:12:42 | 2018-11-14T08:12:42 | 150,192,042 | 0 | 0 | null | 2018-11-14T08:12:43 | 2018-09-25T01:45:25 | Python | UTF-8 | Python | false | false | 8,253 | py | import sys,os,time,binascii,json
#sys.path.append(os.getcwd())
import includes.ble_common_class as comm_cls
import ble_modules.ble_cmd_buffer as buf_Cls
#name OGF
event_file_list = [
"HCI_Events.data"
]
EVENT_DATA_SUFFIX = "_Return_Parameter.data"
packetType = [
" ",
"Cmd Packet",
"ACL Data Packet",
"Sync Pac... | [
"jianjun.yang@verisilicon.com"
] | jianjun.yang@verisilicon.com |
ad54650741f2e89368f0bc7e5da5295a2146878e | 4722a265adcece16fd13e214cc3181a487bd7915 | /category.py | 46d5988dc1e80bffb96b08abd1310504eda88daa | [] | no_license | stradtkt/game_api | 8a7adf48b4780e5ce4f1fe6455e60bce928d49ea | 624040bd6c7b6aed01828b9d84802a01a2f8a4bf | refs/heads/master | 2020-08-06T09:43:48.495943 | 2019-10-05T06:03:20 | 2019-10-05T06:03:20 | 212,929,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,940 | py | import sqlite3
from flask_restful import Resource
class Category(Resource):
def get(self, name):
game = self.find_by_name(name)
if game:
return game
return {"message": "Platform not found"}
@classmethod
def find_by_name(cls, name):
conn = sqlite3.connect('games.... | [
"stradtkt22@gmail.com"
] | stradtkt22@gmail.com |
8ca8f2c3e5ea24a215316ed5900f17d04a6072fb | 3d5642fd6ec2e89ed87438ebd3c55ef97c04eadf | /nfnets/utils.py | a082b98b534dad65a36233a27bc9e527c161b491 | [] | no_license | peternara/Transformer-Recommender | 725218fbd1be32cdd7246ee4b3c831927cd44619 | f5b9bb01f6ca9be282233a1458b06a70c4642dcd | refs/heads/main | 2023-03-22T02:43:45.041901 | 2021-02-28T15:53:29 | 2021-02-28T15:53:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py | import torch
from torch import nn
from nfnets import WSConv2d
def replace_conv(module: nn.Module, conv_class=WSConv2d):
"""Recursively replaces every convolution with WSConv2d.
Usage: replace_conv(model) #(In-line replacement)
Args:
module (nn.Module): target's model whose convolutions must be rep... | [
"noreply@github.com"
] | peternara.noreply@github.com |
b5a44008058029d6497dabbfbf18ebed04eba4fd | cd7e0fa02276f289a883ec4999d613ce144e4b3c | /cv_cw2/proto/corner_harris.py | e3214fe94d4b95bdbaa849bf3b7f56421989f39d | [] | no_license | eubinecto/cv-cw2 | 337ce026c7b757af9fbcf11e4cc4bf333c303998 | a4f8c315a69be8a054c7428436d5cd8c49810446 | refs/heads/main | 2023-05-15T04:21:02.214018 | 2021-05-27T05:51:29 | 2021-05-27T05:51:29 | 369,805,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | import numpy as np
import cv2
from cv_cw2.paths import BERNIE_JPEG
import matplotlib.pyplot as plt
from scipy.ndimage import gaussian_filter
def main():
# read bernie as a gray image
bernie: np.array = cv2.imread(BERNIE_JPEG, cv2.IMREAD_GRAYSCALE)
bernie = gaussian_filter(bernie, 0.5)
kps = cv2.corner... | [
"tlrndk123@gmail.com"
] | tlrndk123@gmail.com |
db390961179380ef85d957a425ab19eb1f46d760 | d6f40f5c3e4f1e9fcbf8d5fb495f72ed11844e76 | /P48/test.py | d95031ea554c9a3aa4bfc825340cd8de5b52189b | [] | no_license | sakamoto2019/python-99 | 019a9414c9e30c4bb225a277b361cde988330efd | 45a0b4054e1881ca9872b01b0b33efec09f53bab | refs/heads/master | 2020-07-02T03:06:14.897472 | 2019-08-19T04:07:37 | 2019-08-19T04:07:37 | 201,396,592 | 0 | 0 | null | 2019-08-19T04:07:38 | 2019-08-09T05:31:14 | Python | UTF-8 | Python | false | false | 1,164 | py | import sys
import unittest
from main import table
sys.path.append('../')
from P46.main import AND, OR, EQ
class Test(unittest.TestCase):
def test_size2(self):
self.assertEqual(table(lambda a, b: AND(a, OR(a, b))),
[
[True, True, True],
... | [
"daisuke.develop@gmail.com"
] | daisuke.develop@gmail.com |
93efaa4bb153fd02946d5bfa88b60510b117e571 | 0d483b997d4e0a818f3c388e3997db9a20378926 | /accounts/urls.py | ec9db4785d1879de0354afc0fa8fcc1cf52f4067 | [] | no_license | guptabhishek8/cse4 | 7676b4240e610a9c5d7c729e53bad0c132c5867c | ab11c2e3aaa5de4dbddc7d3ec619ffff727353f4 | refs/heads/master | 2021-09-29T05:43:27.763759 | 2020-02-01T18:19:13 | 2020-02-01T18:19:13 | 237,559,441 | 0 | 0 | null | 2021-09-22T18:30:14 | 2020-02-01T04:05:59 | HTML | UTF-8 | Python | false | false | 655 | py | from django.urls import path
from django.conf.urls import url
from . import views
from django.contrib.auth.views import LoginView, LogoutView
urlpatterns = [
path('', views.index, name='index'),
url(r'^signin/', views.signin, name="signin"),
url(r'^postsignin/', views.postsignin, name="postsignin"),
ur... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
256dc3949b5884d61d38068d042134c5851a1e4a | b556e612ce736a137c1fd6e820675c2b05a2dd62 | /posts/serializers.py | 8a36e34e08522b44052e7020b516663a13ee8b12 | [] | no_license | adhiman1999/djangoBlogAPI | a1990248e4dc348c88e969be73755b9627c36bb4 | 52acda8be88561d829ce0023f70e848c39dba077 | refs/heads/main | 2023-06-09T12:11:53.280729 | 2021-07-04T11:43:01 | 2021-07-04T11:43:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | from rest_framework import serializers
from .models import Post
class PostSerializer(serializers.ModelSerializer):
class Meta:
model = Post
fields = ('id', 'author', 'title', 'body', 'created_at',)
| [
"adhiman1999@gmail.com"
] | adhiman1999@gmail.com |
d1b2971e1a82f56173d3c5463430dd1325cefc8f | 44f1973af95503e8dcddb4eddd04270908172018 | /CS-121/Assignment 1/c/TwoGramFrequencyCounter.py | de629caf732f43cb3a9f11f904373f8927771dcf | [] | no_license | donglil/UCI | e997f1cdd05be1af52cd495da89d5d21451dce9d | 2738d4edde8ea0e9ebc4068d0f691dac10829584 | refs/heads/master | 2020-12-11T07:45:36.229893 | 2015-04-21T01:50:07 | 2015-04-21T01:50:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | __author__ = 'Viral_Shah'
from b.WordFrequencyCounter import compute_word_frequencies
import itertools
def compute_two_gram_frequencies(words: list):
"""
:param words: takes in a list of strings
:return: returns a list of frequency objects
Uses Python's itertools to take pairwise pairs of strings ... | [
"vrshah@uci.edu"
] | vrshah@uci.edu |
c774923c4adcd8df1a711581705bcb2009cd8c5c | 38ec04c9a1941f1524c2fde59f8cb06074a3be8e | /src/expenses_tracker/expenses_tracker/expenses/views.py | 1d1ddd40de085cfb07960acbc2c4587d5c2c1ea3 | [] | no_license | ivelinakaraivanova/SoftUniPythonWebBasics | 7fec8ac6e3cb4248f3c8286f2194a30c34ac20ac | 0a49c5f5e1c36240a8888ce92e2a48016c84571c | refs/heads/main | 2023-06-09T12:42:30.764565 | 2021-07-05T10:17:02 | 2021-07-05T10:17:02 | 373,289,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,867 | py | from django.shortcuts import render, redirect
from expenses_tracker.core.profile_utils import get_profile
from expenses_tracker.expenses.forms import CreateExpenseForm, EditExpenseForm, DeleteExpenseForm
from expenses_tracker.expenses.models import Expenses
def home(request):
profile = get_profile()
if not p... | [
"73067985+ivelinakaraivanova@users.noreply.github.com"
] | 73067985+ivelinakaraivanova@users.noreply.github.com |
d3b1d9f3f0d4403423097a07d210622c11a907f2 | 24d8bc5f09f8b8e484ab76aa317c5436a7ddf43c | /Code-it/Greedy Algorithm - 수강신청.py | 4e0a1d30c94c1ed2bf035e3dd6ec30c27a7e0b67 | [] | no_license | GroundP/Algorithm | c00de37256a193c42051eb58aa8157d0d1882f67 | 1dd4d22141a43be99a9aaff6ba00e04b66e4cccb | refs/heads/master | 2020-07-27T09:21:28.814675 | 2019-10-04T16:07:13 | 2019-10-04T16:07:13 | 209,044,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,974 | py | """
이번 학기 코드잇 대학교의 수업 리스트가 나왔습니다.
[(4, 7), (2, 5), (1, 3), (8, 10), (5, 9), (2, 6), (13, 16), (9, 11), (1, 8)]
리스트에 담겨있는 튜플들은 각각 하나의 수업을 나타냅니다. 각 튜플의 0번째 항목은 해당 수업의 시작 시간, 그리고 1 번 항목은 해당 수업이 끝나는 시간입니다. 예를 들어서 0번 인덱스에 있는 튜플값은 (4, 7)이니까, 해당 수업은 4교시에 시작해서 7교시에 끝나는 거죠.
(2, 5)를 듣는다고 가정합시다. (4, 7) 수업은 (2, 5)가 끝나기 전에 시작하기 때... | [
"bloom0819@naver.com"
] | bloom0819@naver.com |
24d94894ab51cc872088cfbec9ddf99e63313312 | 4cb77681b2a007d7c83ea0e540f619c3a1faacae | /unit/gather.py | c06209de1d97073816ca7d564e248e46f6353068 | [
"LicenseRef-scancode-public-domain"
] | permissive | odeke-em/mocollab | 35cb9d5ccd2440528dad6ee4167eb7ba4b7fd7c8 | 53785e5371b304a0571db627d8e7c2afc31355b4 | refs/heads/master | 2020-05-20T05:55:10.876429 | 2015-03-17T05:10:07 | 2015-03-17T05:10:07 | 31,869,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,903 | py | def gather(transport, unit_list, value):
"""
Finds the maximum possible "value" of troops that can be loaded
in to the remaining space of a transport.
Input:
transport - The transport unit to be loaded.
unit_list - The list of units that can be loaded onto transport.
You may assume tha... | [
"brennen.mcphee@gmail.com"
] | brennen.mcphee@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.