blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
607250c2ca29295053d3ba2e5639b4b102ba1fb8 | 5f5f9fb972d6c8236142413876fee737b11b0090 | /Assignment4/comp/code_lstm/max_predictions.py | 9da8ed5ca0836e69d7c306c3c2a0b5fe796f133f | [] | no_license | agarwal-ayushi/Machine-Learning-Assignments | c634d48996dd975874ff7383aac46e626bcb338d | 53262ba02ce440946e0aa92d6385f94bd79b32c5 | refs/heads/master | 2022-12-17T00:15:25.626464 | 2020-09-16T17:19:33 | 2020-09-16T17:19:33 | 235,383,698 | 1 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from models_rasha import Encoder_Rasha, Decoder_Rasha
import numpy as np
def to_device(data, device):
if isinstance(data,(list,tuple)):
return [to_device(x,device) for x in data]
return data.to(device)
device = torch.device(... | [
"ayushi.mnnit@gmail.com"
] | ayushi.mnnit@gmail.com |
74a2ad6e251baa847e24ec5c7ee551c2e7349fbe | a232988fe8f247fbd56f7a91748ccfbf73326265 | /blog/blog/views.py | 739eb639313cb9e904159fe63b5e39ce4fd5f797 | [] | no_license | Vigs16/hello-world | 32236f6258ce42e6d8f5ef5139ecd84090be37bd | 4212e0669944f22d0d3148516b97bf9fec95b72d | refs/heads/master | 2021-01-20T13:03:51.843003 | 2017-05-30T04:52:13 | 2017-05-30T04:52:13 | 90,442,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | from flask import render_template
from flask import request, redirect, url_for
from . import app
from .database import session, Entry
PAGINATE_BY = 10
@app.route("/")
@app.route("/page/<int:page>")
def entries(page=1):
# Zero-indexed page
page_index = page - 1
count = session.query(Entry).count()
s... | [
"vigs16@outlook.com"
] | vigs16@outlook.com |
123de62f0fc26c6891df29d80121cecdcef6d869 | bdea01d7702bec417772442f54744a5abcab8090 | /contours.py | 133c0683fc36f14bed0b04a8bd385e80397e1ea8 | [] | no_license | arbaza/open-cv | 6e21565e34e9e208d39a8d391137d038cef930f0 | 576d4f210f1ca764f9ae8d442e730bd6ee9a798a | refs/heads/main | 2023-02-10T11:27:05.228090 | 2020-12-30T18:19:09 | 2020-12-30T18:19:09 | 325,618,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | import numpy as np
import cv2 as cv
img = cv.imread('Photos\Euro.jpg')
cv.imshow('image', img)
cv.waitKey(0)
#Grayscale
gray = cv.cvtColor(img, cv.COLOR_BGR2GRAY)
blank = np.zeros(img.shape[:2], dtype = 'uint8')
cv.imshow('Blank', blank)
#blur
# blur = cv.GaussianBlur(gray, (5,5), cv.BORDER_DEFAULT)
# cv.imshow("Bl... | [
"arbaaz_arbazzz@yahoo.com"
] | arbaaz_arbazzz@yahoo.com |
1767ed91cd5ecb9dc4967b259a9c41f4baf56d84 | 093d2e689823e5716c46b09511d8adebb2320573 | /Python Competitive Program/count occurance in tuple.py | c4103e6f394595ad87dceed955728d81a0eb86fe | [] | no_license | gauravk268/Competitive_Coding | 02813a908e4cd023e4a7039997e750d1fdae6d92 | 783c246dbaf36425a5b7cb76b4e79e2b7ba1a10c | refs/heads/master | 2022-10-15T02:25:41.598723 | 2022-10-03T06:09:17 | 2022-10-03T06:09:17 | 235,630,000 | 20 | 22 | null | 2022-10-03T06:09:18 | 2020-01-22T17:45:32 | C++ | UTF-8 | Python | false | false | 138 | py |
# Count occurrences of an element
str=input("Enter the string : ")
word_count={char:str.count(char) for char in str}
print(word_count)
| [
"mishraravi179@gmail.com"
] | mishraravi179@gmail.com |
d0ca2d9cd484b355ced743af6aebbbdb18d8529a | 3cf8d34cc1ea0ef7857742211bed333ee0400e63 | /46.py | 422649ee9f326b4384db1ce35c43258bbd08ace6 | [] | no_license | ElseVladimir/py_tasks | 2dd11130cae83af772f4cb89d04e80da9dbcf070 | bdfa6e4dbb06b67eb79f3a06ba4ab1bf6052d1a6 | refs/heads/master | 2023-01-27T21:54:18.911645 | 2020-12-02T15:51:55 | 2020-12-02T15:51:55 | 303,987,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,203 | py | """
В этой задаче вам необходимо воспользоваться API сайта artsy.net
API проекта Artsy предоставляет информацию о некоторых деятелях искусства, их работах, выставках.
В рамках данной задачи вам понадобятся сведения о деятелях искусства (назовем их, условно, художники).
Вам даны идентификаторы художников в базе Arts... | [
"voinvova95@gmail.com"
] | voinvova95@gmail.com |
feaced22bf438e634a1320d815dfdf7b85c5bbe9 | 5f5fb1cec25f432a8cc1c73fb9943b0b45588042 | /Base/BaseElementEnmu.py | c2416f791cdbf7aa1296caec5b556acaa7dc11fd | [] | no_license | qijianxiaobai/Python-Appium | 732f64c8e982f1a660b1c45bdf3a73c692e04417 | caef97e5eaa6f739b08a85194bfb61a2666419b6 | refs/heads/master | 2020-04-11T11:36:43.266070 | 2018-12-17T10:10:02 | 2018-12-17T10:10:02 | 161,753,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py |
class Element(object):
# 常用操作关键字
find_element_by_id = "id"
find_elements_by_id = "ids"
INDEX = "index"
find_elements_by_xpath = "xpaths"
find_element_by_xpath = "xpath"
find_element_by_css_selector = "css"
find_element_by_class_name = "class_name"
CLICK = "click"
BACK = "back"
... | [
"ad2156@email.vccs.edu"
] | ad2156@email.vccs.edu |
b6223ed96517013e0969b1c9d814fc5c4699d324 | 9ee84830f4360c063c1bb9fe0d7312e5fdab47d9 | /例子-0911-02.py | 0e43c38a239c44c7dbc3d1b443786146afc9123d | [] | no_license | hcl621/python | 05974f23548f7afd5d8643d9cf1fd4f5b1937186 | af8972dc2918640451c13fa76447f2088054b38c | refs/heads/master | 2020-07-09T22:07:52.317034 | 2019-10-08T12:40:53 | 2019-10-08T12:40:53 | 204,094,003 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | #coding=utf-8
try:
j
except NameError as e:
print('catch error!!!')
| [
"noreply@github.com"
] | noreply@github.com |
1638e966bc35966aa652f2387e6f29f7caad377c | 9c4c895d23f8109d6ddd8c26937e33d905665b6e | /testing/readfile.py | 6d4e684df232b8e6e6116a8e879e9fd3030994f6 | [] | no_license | shaybix/Raazi | 401b3b4cd8ef31248f9efb58d8750a25ad319718 | 1fee51d2bdfb0a023c51ae5bc906f03f4e055544 | refs/heads/master | 2021-01-21T21:39:43.959826 | 2016-03-21T00:42:02 | 2016-03-21T00:42:02 | 18,281,430 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | import sqlite3
connection = sqlite3.connect('sample.sqlite3')
cursor = connection.cursor()
output = cursor.execute('Select * from main')
f = open('sample2.txt', 'w')
fetch = cursor.fetchone()
#lines = []
#
#for line in f:
# lines.append(line)
#
#
#print lines[]
#print fetch[0]
#print "----------------"
#pri... | [
"shayba@shaybix.com"
] | shayba@shaybix.com |
631a2dcb65f7b01f394a4887810810476c69ec19 | 933376c11498a6567da8d7eb7d2675100895c3ba | /pyzoo/zoo/chronos/forecaster/tcn_forecaster.py | 1d2359d1cc2e54a9820e4f91c65c4ff5cd87761b | [
"Apache-2.0"
] | permissive | intel-analytics/analytics-zoo | 320a461765f86d41dd456b598b1cf1d51d57f4c4 | 7cc3e2849057d6429d03b1af0db13caae57960a5 | refs/heads/master | 2023-08-13T20:47:58.621714 | 2023-07-06T00:49:11 | 2023-07-06T00:49:11 | 90,328,920 | 3,104 | 996 | Apache-2.0 | 2023-09-06T01:51:18 | 2017-05-05T02:27:30 | Jupyter Notebook | UTF-8 | Python | false | false | 5,894 | py | #
# Copyright 2018 Analytics Zoo Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"noreply@github.com"
] | noreply@github.com |
448adf2f39782bfbffbcd858cbcdfd29fa0d2642 | d4822b0a4bf2279f31edf5eceddac884f77de5b0 | /order/permissions.py | 6f85f40a9a84eafa2238d36dbc52d85319088402 | [] | no_license | xizlt/api_sport | bb05fa36272782bd91796ac8acb72e16cb38d881 | 55bbccfb344528016e4f903bcadad6ffaa02db17 | refs/heads/master | 2023-03-05T02:32:33.215134 | 2021-02-21T21:49:28 | 2021-02-21T21:49:28 | 297,443,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,128 | py | from rest_framework.permissions import SAFE_METHODS, BasePermission
class OrderPermission(BasePermission):
def has_object_permission(self, request, view, obj):
return bool(
request.method in SAFE_METHODS or
request.user and
request.user.is_authenticated and (obj.user ==... | [
"ivantreada@gmail.com"
] | ivantreada@gmail.com |
a74472db035ea74db466460bf3be92ed1ad179cf | 5e5a2823a212f8b3b71863b95c73f7b259220070 | /runspider.py | e769984489a93842dddebe27c14329e34c9a40e5 | [] | no_license | everyday-stoke-phosphate/kyodo_scraping | 85f28d59460507e357bf0f7d13c9778136420821 | a7bf5c27507174217dbf8d8e3e79ddac7eb3c2f9 | refs/heads/master | 2021-03-04T06:49:03.876710 | 2020-03-15T01:55:37 | 2020-03-15T01:55:37 | 246,015,135 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | # -*- coding: utf-8 -*-
from scrapy.crawler import CrawlerProcess
from scrapy.utils.project import get_project_settings
def main():
# 設定の変更 基本的にsetting.pyに記述
# 特に何か変えるときには設定内容を指定
settings = get_project_settings() # FEED_URI='results.json')
process = CrawlerProcess(settings)
spider_name = "kyodo_a... | [
"test@htrghttesjthehukyjthrdjhe.greafewufgwuag"
] | test@htrghttesjthehukyjthrdjhe.greafewufgwuag |
65eb25457df6d77b41c68d357cd137870ad8fe15 | f23c47a5495799015c8b803420813a6ee8d6d2a4 | /options/base_options.py | b8f879c556236b9d0b3fbbe242454ad2911e94d6 | [] | no_license | eitan3/continuous_view_synthesis_gluon | d3f5e74553ddfb480ba24861cc4cd39acbb7a1ce | b3d90378f0e49a165ae85a9249ee3e5d208348eb | refs/heads/master | 2022-12-02T16:16:37.440990 | 2020-08-21T17:17:33 | 2020-08-21T17:17:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,605 | py | import argparse
import os
from util import util
class BaseOptions():
def __init__(self):
self.parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
self.initialized = False
self.isTrain = True
self.opt = None
def initialize(self):
# b... | [
"eitanhadar4@gmail.com"
] | eitanhadar4@gmail.com |
e3bffa2e9644e317f97a756bd852d57fe28c1fae | 50d8f7a805546edd768a245a544d3a362b674a73 | /03.image_stitch/image_stitch.py | 41706bca2902d0384ccbd7b7ef406ad1dddb2547 | [
"MIT"
] | permissive | Taishuaibo/pycv-training | 0d3f812a7e57acc8496ced9ada5879ee9f8a33f5 | a9ad8755c82bff62e907099ebac7587422b28ccd | refs/heads/main | 2023-05-05T15:51:19.394705 | 2021-05-30T01:08:17 | 2021-05-30T01:08:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,064 | py | import cv2
import numpy as np
def cv_show(name, img):
cv2.imshow(name, img)
cv2.waitKey(0)
cv2.destroyAllWindows()
def createFeature(img):
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
# 建立SIFT生成器
sift = cv2.xfeatures2d.SIFT_create()
# 检测SIFT特征点,并计算特征描述子
(kps, features) = sift.detectAn... | [
"coscyber@gmail.com"
] | coscyber@gmail.com |
1cc38e8e931283f05c93bbaab335422b6e5f0351 | 61191088ee4a257b15fad0b8fe53641c70ca78f1 | /vectdraw/draw/colour.py | b318d51482b6c8587b1dc0087345978adbb1cebc | [] | no_license | ajpen/Vectdraw | 2e0394a6ff646f408a683033ef14692b6d7fd048 | 3b0d941b31f759737bd52210ac9738d1ef7b5aaa | refs/heads/master | 2022-11-14T09:51:58.772146 | 2020-07-08T21:40:53 | 2020-07-08T21:40:53 | 277,761,591 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py |
"""
Class for rgba colour representation
"""
class Colour(object):
red = 0
green = 0
blue = 0
alpha = 255
def __init__(self, rgba=None):
"""
Returns a colour instance. If nothing is passsed, the default
is 0,0, 0, 255 for red, green, blue and alpha respectively
:param rgba: ... | [
"anferneejervis@gmail.com"
] | anferneejervis@gmail.com |
98166df402980f456d8048e29aa8a450f9257655 | 80d879a552ce00a9bc73a26d0ddb74c278867b1f | /scripts/080_hilo_concrete.py | 4abf39886121d03650f95582dad542dc8c6f5d56 | [] | no_license | whiskyching/WS-EscobedoGroup | 4a25abe62fac91b82d3b1abd74ddc02af107457f | bd36d623ec2f60638fe3f330b9ad92c810804e8d | refs/heads/main | 2023-03-20T07:03:19.594765 | 2021-03-16T13:15:14 | 2021-03-16T13:15:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,119 | py | import os
import compas
from compas.utilities import pairwise
from compas_rhino.artists import MeshArtist
HERE = os.path.dirname(__file__)
DATA = os.path.join(HERE, '../data')
FILE = os.path.join(DATA, 'session.json')
session = compas.json_load(FILE)
mesh = session['mesh']
# =======================================... | [
"vanmelet@ethz.ch"
] | vanmelet@ethz.ch |
ecfbc6fbd378e0f496251bdb6fea828ba8ec686d | 09d6a9e95f0156e577e068899f20959abb0f733a | /train/trainers/trainer_controller.py | 483cbb084ec931370e279710580127352d459a36 | [] | no_license | miyosuda/animalai | 45267cd6dc63306e97f28d2217046f9e10b5b460 | 94d9d5e3acc593da878fa3dc3f38348567417578 | refs/heads/master | 2020-07-10T06:31:29.100908 | 2020-01-17T19:26:34 | 2020-01-17T19:26:34 | 204,193,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,122 | py | # -*- coding: utf-8 -*-
# # Unity ML-Agents Toolkit
# ## ML-Agent Learning
"""Launches trainers for each External Brains in a Unity Environment."""
import os
import logging
import shutil
import sys
from typing import *
import numpy as np
import tensorflow as tf
from animalai.envs import BrainInfo
from animalai.envs.... | [
"miyoshi@narr.jp"
] | miyoshi@narr.jp |
b2b0b0aec75a1ce380bcdf00f88afd9502f5a719 | 5cfea22c5b2c401acae9d429915ed9ba7a73024a | /pausemenu/menues/mainmenu.py | bfd1af3639d97960f8a1cdb1a197442a06296a7d | [] | no_license | LookACastle/Oiram | f48fe3f0c9c6e3cc14737d37e5d91013414a4671 | 2302c929c874eb44fa38e6308d49e4d7a415095d | refs/heads/master | 2022-03-15T06:09:09.106758 | 2019-10-26T23:09:57 | 2019-10-26T23:09:57 | 108,526,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | from pausemenu.menuitem.button import *
from constants import *
class MainMenu:
def __init__(self, screen):
options = ["Resume", "Options", "Save", "Exit"]
actions = [resumeAction, optionAction, saveAction, quitAction]
self.objects = []
y = 0
maxwidth = 0
for i in range(0, len(options)):
button = Butto... | [
"martinpinholt@hotmail.com"
] | martinpinholt@hotmail.com |
92296cabb36cdc43ac8a55f79c416c6d3190cc2b | f332244831040530c8d4d3ff42ee4e06078ca22b | /cart/views.py | eed5c0e9c50a9e6889b30cec001caa5258639029 | [] | no_license | worlddeleteRin/cosmetics | f8f1bd8a3d9b6b149ae29126fa6f4bd6bb5e72b1 | f7d593f3206606d24084d6281bd6d5472654da25 | refs/heads/master | 2023-03-04T04:34:59.349269 | 2021-02-13T19:43:37 | 2021-02-13T19:43:37 | 296,117,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,561 | py | from django.shortcuts import render
from django.http import HttpResponse, HttpResponse, HttpResponseRedirect, JsonResponse
from django.shortcuts import render, get_object_or_404
from django.urls import reverse
from .models import *
from products.models import *
from collections import defaultdict
import pandas as p... | [
"noname@MacBook-Pro-Rin.local"
] | noname@MacBook-Pro-Rin.local |
25239a74775ef3920fb3ecec660792a627e451bc | e69053a7cc99efc9ed560b32f378920613e77517 | /coins_optimal.py | 04fcbabd8130821f86d267f59ed2c2ff2b0ab462 | [] | no_license | aantillonl/CakeInterviewProblems | 41a2a719364440a11af6841ce3b2e334c207c456 | d671aa6b196a433963f62ef5217582d3f80c6c63 | refs/heads/master | 2021-08-23T12:13:22.811133 | 2017-12-04T21:34:52 | 2017-12-04T21:34:52 | 112,225,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | # Your quirky boss collects rare, old coins...
# They found out you're a programmer and asked you to solve something they've been wondering for a long time.
# Write a function that, given:
# an amount of money
# a list of coin denominations
# computes the number of ways to make the amount of money with coins of the a... | [
"aantillonl@gmail.com"
] | aantillonl@gmail.com |
803fe059f40e4b681949b8595a78dbf9f235cec5 | 7fbd07ed9d23381f73d408cb3a845e94c81ca496 | /mysite/settings.py | 6e3598873769ed4c12d9fe5ad4c2b240db9f6a16 | [] | no_license | halildilaver/E-CommercewithDjango | a1be0ce32f07f7b8874571140f845a8bf1ecc205 | b867a87bf4c272c461a75a5bc50af0895bcb85f7 | refs/heads/master | 2020-06-03T14:51:21.131135 | 2019-06-12T17:08:06 | 2019-06-12T17:08:06 | 191,613,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,641 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# ... | [
"halildlvr@gmail.com"
] | halildlvr@gmail.com |
5e2e9ee1d976ed4b9dae0c19f9e48d49c14d8d4a | d4442db5a7ab9db2b04fef640a9864f3fba54758 | /src/python/WMCore/Services/Dashboard/DashboardAPI.py | 9f90e4842ae59431378744395dc3404a30601661 | [] | no_license | stuartw/WMCore | fa25ff19ab5058a635d35d3c58a0ac56a3e079a1 | 38c39c43f7237fd316930839674ac9be3c0ee8cc | refs/heads/master | 2021-01-18T07:18:18.324604 | 2012-10-18T22:30:34 | 2012-10-18T22:30:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,823 | py | #!/usr/bin/python
"""
This is the Dashboard API Module for the Worker Node
"""
from WMCore.Services.Dashboard import apmon
import time
from types import DictType, StringType, ListType
#
# Methods for manipulating the apmon instance
#
# Internal attributes
apmonInstance = None
apmonInit = False
# Monalisa configura... | [
"sfoulkes@4525493e-7705-40b1-a816-d608a930855b"
] | sfoulkes@4525493e-7705-40b1-a816-d608a930855b |
1bd71c4ddec832e0d21c4f00197795038c20d8e4 | e5b5e21451f21bab50ed40eba73fbb1146a166b5 | /ecommerceproject/cart/views.py | a97556adf7f9f6ee15a81b6041b207180a3c90e5 | [] | no_license | Ebyprogramz/grocerystore | 64b46f16c98523bca9b5664bb7437ba549cb51e6 | 91afce25766879d3891f8b1e46b42cef09560f0f | refs/heads/master | 2023-08-15T01:45:16.668194 | 2021-09-29T05:37:30 | 2021-09-29T05:37:30 | 410,158,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,121 | py | from django.shortcuts import render, redirect, get_object_or_404
from store.models import Product
from .models import Cart,Cart_Item
from django.core.exceptions import ObjectDoesNotExist
# Create your views here.
def cart_id(request):
cart=request.session.session_key
if not cart:
cart=request.session.c... | [
"eby.hanson@yahoo.in"
] | eby.hanson@yahoo.in |
69de6c1c8c8510d0f6fd116fd216eb399a3db19a | a3d73905af9102c6388b7501aa5067e4008d4c6a | /Programming Assignment 3/histogram.py | 73be3f9db0101a93413a4962ca936d1b64d4ba93 | [] | no_license | ShumbaBrown/CSCI-100 | b9a5b6c4446a5fdec3044d82eca3f59e502d5372 | 8eec33e39b26e10ddf9b8395fafe861cf1eb53ec | refs/heads/master | 2020-05-23T06:25:34.908759 | 2016-10-07T05:25:15 | 2016-10-07T05:25:15 | 70,217,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | def PrintHistogram(nums):
# Prints the histogram for a list of numbers
# Dictionary to hold each key (number) and value (number of occurences)
numbers = { }
# Iterate through all the values in the list
for i in nums:
# Increment the number of asterics for the corresponding value in the di... | [
"shumbabrownjc@gmail.com"
] | shumbabrownjc@gmail.com |
4670ba9b785563921ebd4e8eb26fa337062abb5b | 1625edfe28b4b0979fd32b4a3c5e55249a993fd5 | /baekjoon14915.py | 7648498a85fccf5a369e7197408b17d1726a754d | [] | no_license | beOk91/baekjoon2 | b8bf504c506c6278899d4107ecfe51974ef13f5e | 39569f8effb8e32405a7d74d98bdabcab783ec56 | refs/heads/master | 2023-05-11T20:11:19.015113 | 2020-09-14T23:58:49 | 2020-09-14T23:58:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | m,n=map(int,input().strip().split())
def conversion(m,n):
c="0123456789ABCDEF"
if m<n:
return str(c[m])
else:
return conversion(m//n,n)+str(c[m%n])
print(conversion(m,n)) | [
"be_ok91@naver.com"
] | be_ok91@naver.com |
d7551e573e1989b8a7920c2d5ef568749c8cd130 | 642716a67e15459d713217ed02aa38d56348ff89 | /SF_Movies/urls.py | 2462fc91656ad0ae785117573efd3b5c33275fe6 | [] | no_license | zxzhang/coding-challenge-tools | 42eaa2355ad66e82abe2ac6401d702f505d3ff06 | cfc8c3a446331d2f29dae4fe972cfa7f7fdcb25d | refs/heads/master | 2021-01-19T07:24:06.713307 | 2015-05-20T01:43:52 | 2015-05-20T01:43:52 | 34,290,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from django.conf.urls import include, url
from django.contrib import admin
from django.views.generic import RedirectView
RedirectView.permanent = True
urlpatterns = [
url(r'^$', RedirectView.as_view(url='/movies')),
url(r'^movies/', include('movies.urls')),
url(r'^admin/', include(admin.site.urls)),
]
| [
"zxzhang1991@gmail.com"
] | zxzhang1991@gmail.com |
f28822e33cbfcd736db6cbcf9f5ff11dd18a9614 | abcc4679e9977e8e92f029da56f80e3cad69ecbb | /app/models.py | 00c875aec8e8ce243df5431ff3a634beb7b9d1a0 | [] | no_license | emjrymer/MovieRating | ecf2d5d1c096d65c5861f6b6e0511e368a1d4307 | 3785eeab01ffb23efe402f19bdc1a26bbb6f192c | refs/heads/master | 2021-06-04T16:05:58.996506 | 2016-03-15T20:41:59 | 2016-03-15T20:41:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | from django.db import models
# Create your models here.
class Rater(models.Model):
age = models.IntegerField()
gender = models.CharField(max_length=2)
occupation = models.CharField(max_length=50)
zip_code = models.CharField(max_length=10)
class Movie(models.Model):
movie_title = models.CharFiel... | [
"emjwivell@gmail.com"
] | emjwivell@gmail.com |
00c251321617e1466a341cd899b00c702a0c9568 | bf5058783d658d958bf84910721e828f1316dbbe | /SisconcBNB/apps/alumnos/forms.py | 3345e54865c0d2970346942ce640ffe139b4b2fa | [] | no_license | djangoadminn/jose | 3acfe5a2861305c94658f3177d61ea8c557b3d01 | 1567894037548b7b452ac202b972cf0b1867a064 | refs/heads/master | 2021-01-22T08:38:31.707532 | 2017-05-27T22:20:12 | 2017-05-27T22:20:12 | 92,627,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,729 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from django import forms
from SisconcBNB.apps.alumnos.models import Alumno
from SisconcBNB.apps.alumnos.models import Seccion
from SisconcBNB.apps.alumnos.models import Inscripcion
from SisconcBNB.apps.alumnos.models import Enfermedad
from SisconcBNB.apps.alumnos.models impo... | [
"josejavamax@hotmail.com"
] | josejavamax@hotmail.com |
b3ffb1f7298e5fec7c80d71946a31e424ff4682d | f3a31d0692f0cc4deb5d23f9da38eb69623ca8d1 | /Dynamics/Finite-sized_SIAM/fig_4.py | 2ada6228f29e1b93cfd3e04bbda484ce20125030 | [] | no_license | soumyodipto/SIAM | f2039d5796412db1e2204b65f1b43189227c521b | 4c7a96684dff759d0da453ed437827dd1b3da0fd | refs/heads/master | 2021-09-09T09:25:10.994397 | 2018-03-14T19:01:36 | 2018-03-14T19:01:36 | 107,188,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,409 | py | from os import path
import h5py
import numpy as np
import matplotlib
import matplotlib.patches as mpatches
import pylab as plt
from matplotlib.ticker import AutoMinorLocator
from matplotlib.ticker import AutoMinorLocator
from matplotlib.ticker import FormatStrFormatter
majorFormatter = FormatStrFormatter('%g')
plt.r... | [
"noreply@github.com"
] | noreply@github.com |
983aa7b87ff0971ad8a96fbf487455eb742081e6 | 27cf8262cbe20597e61f89bdc2849aaa5c5ce4f4 | /dao/reaction_dao.py | 420b1a99c48e129bdc5294de13579a84b212162b | [] | no_license | rfgsantos/Moodler-Web-Server | dfa69efa01a7ac10a170c69b4ff969daae82114e | be6b1d414a9f5ff201ce9f01fb721102af1473e3 | refs/heads/master | 2022-12-10T22:00:29.131783 | 2018-07-16T03:31:50 | 2018-07-16T03:31:50 | 139,902,354 | 1 | 1 | null | 2022-12-08T02:15:15 | 2018-07-05T21:27:13 | Python | UTF-8 | Python | false | false | 1,756 | py | from datetime import date, datetime, timedelta
from utils.python_database_connector import DatabaseConnector
from dtos.reaction_dto import Reaction
class ReactionDao:
def __init__(self):
self.db = DatabaseConnector()
def __new__(cls):
if not hasattr(cls, 'instance'):
cls.instance = ... | [
"rui.filipe.santos07@mail.com"
] | rui.filipe.santos07@mail.com |
ec232876bf6ba4dec0f2ee9821f5917b1a88791d | 584aefa111a279250bde4d2d0fa3fc64fda8706b | /models/WGANGP.py | ff09e4911cd4bc750e115cbf2f42ba8bc9bbbbd4 | [] | no_license | shotakikuchi/GenerativeDeepLearning | cce2b851ba722b44432566a7b5bc02d1c950c0f7 | a67bc43986df63065e81a3a840160e25099653bc | refs/heads/master | 2020-07-02T16:43:09.508058 | 2019-08-17T13:10:14 | 2019-08-17T13:10:14 | 201,592,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,689 | py | from keras.layers import Input, Conv2D, Flatten, Dense, Conv2DTranspose, Reshape, Lambda, Activation, \
BatchNormalization, LeakyReLU, Dropout, ZeroPadding2D, UpSampling2D
from keras.layers.merge import _Merge
from keras.models import Model, Sequential
from keras import backend as K
from keras.optimizers import Ad... | [
"goodtime683@icloud.com"
] | goodtime683@icloud.com |
fc87922135a12612cfa4e49ab3c08ee5f38e1ebe | af69497f9f5fb62ee894646a1804494f167f25a7 | /genbci/run_wgan_SSVEP.py | b6cead987f96a4be0902f71c396b33af585bd50e | [] | no_license | dpstart/genbci | afa1cacff63080d12337b98e066e5ebb2c733c03 | aeccce878a5d6ba668f65d4d181874059fe1b8f9 | refs/heads/master | 2022-12-28T02:00:23.647306 | 2020-10-09T13:32:27 | 2020-10-09T13:32:27 | 260,474,268 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,280 | py | import argparse
import numpy as np
import random
import os
import matplotlib.pyplot as plt
import torch.nn as nn
import torch.nn.functional as F
import torch.autograd as autograd
import torch
from genbci.generate.model import (
SSVEP_Discriminator as Discriminator,
SSVEP_Generator as Generator,
)
# from gen... | [
"danielepaliotta96@gmail.com"
] | danielepaliotta96@gmail.com |
1c848701cc7ee159f0646499637a78c5cdd12204 | 8337a3098a922b37185ab8bf3e1abe52d527c25e | /my_app/migrations/0002_auto_20151104_1503.py | f9d9637d9b77d8e1c662664586618f5272e3a86a | [] | no_license | dimejy2/StatsFootball | f1e72cf29a658985725774e6145802e2f2c1d713 | dce84f9a5c217243dba9e1f49efe959e5c90c695 | refs/heads/master | 2021-01-10T21:59:25.003768 | 2015-12-01T17:21:13 | 2015-12-01T17:21:13 | 47,205,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | 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),
('my_app', '0001_initial'),
]
oper... | [
"dimejy2@gmail.com"
] | dimejy2@gmail.com |
601e04d3f95736775c8e3eee23c2ea0fc2a6192b | 216ddf61c5be758efde2b50fa476ada5354aced5 | /galaxy/gen_test.py | dddbbbb2c8f96cf24df4b8d0981a9c43604dbf60 | [] | no_license | cameronfabbri/ICGANs | 4600020238d6884b710ea0b035b84e86c73705f1 | d6be1a3e752959754be1dbf8af2ead8f75048b37 | refs/heads/master | 2021-01-16T18:11:38.596295 | 2017-11-26T22:35:16 | 2017-11-26T22:35:16 | 100,050,914 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,823 | py | '''
Generates a dataset of encodings from real images using the trained encoder.
'''
import matplotlib.pyplot as plt
from tqdm import tqdm
from matplotlib.pyplot import cm
import scipy.misc as misc
import tensorflow as tf
import tensorflow.contrib.layers as tcl
import cPickle as pickle
import numpy as np
import ar... | [
"cameronfabbri@gmail.com"
] | cameronfabbri@gmail.com |
c8ae13ad78da181556b71e88b5de8e8f6e4b91ab | 38e622a5daafbf115c88e7a1def650e14eedc455 | /apps/users/adminx.py | 15a5d9dfdfcc6058c2809c0e8ee1c43dee8e9da1 | [] | no_license | sunysir/Django-1.10-xadmin-mooc | aa66ae39c4204d24cb472a706382b606b48f9b19 | 4188590daedff52d34e2155c78e68735f5cdf690 | refs/heads/master | 2020-03-21T15:57:25.423422 | 2018-07-29T14:28:36 | 2018-07-29T14:28:36 | 138,742,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | # _*_ encoding: utf-8 _*_
import xadmin
from users.models import Banner, EmailVerifyRecord
from xadmin import views
__author__ = 'suny'
__date__ = '2018/7/20 16:27'
class BaseSetting(object):
enable_themes = True
use_bootswatch = True
class GlobalSetting(object):
site_title = '慕学在线后台管理系统'
site_foot... | [
"694190253@qq.com"
] | 694190253@qq.com |
8426e077cebea70246a5e452b3422803b8c9272e | 4b2b6a8c2caf0f06e0ce47bbb9174ec4db07adaf | /code/stg_node.py | bcbc4a9401548f48edd347e32cd99be7b3057024 | [
"MIT"
] | permissive | StanfordASL/NHumanModeling | 052e89e8950b54a63a40655527ab29aeed5a48d9 | 0ae2297f563599601b1777a3fc825c43f1a461cd | refs/heads/master | 2021-03-27T20:53:13.930366 | 2019-02-10T01:11:42 | 2019-02-10T01:11:42 | 123,646,313 | 15 | 11 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | class STGNode(object):
def __init__(self, node_name, node_type):
self.name = node_name
self.type = node_type
def __eq__(self, other):
return (isinstance(other, self.__class__)
and self.name == other.name
and self.type == other.type)
... | [
"borisi@cs.stanford.edu"
] | borisi@cs.stanford.edu |
52a6526d5fb09f675ab48c251acde7cab3c2e1fc | 3329be589ec0376495948d52c234a31f8ed07cf8 | /utils/ckpt_utils.py | 0ba977f956bdac4fa96f168c7e709765e5746e2b | [] | no_license | arthurtibame/tensorflow_api_utils | 908a68a9c7524b91a340c6a7a02d8d12b8a69ae4 | d6b5fd42dd3445989b9db15431bda0f2e8358c02 | refs/heads/main | 2023-01-18T21:46:20.804311 | 2020-11-26T08:21:48 | 2020-11-26T08:21:48 | 316,155,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,365 | py | import json
import os
def chk_model(model_name):
return os.path.isdir(model_name)
def download_ckpt(model_name):
r"""
if model folder not exists then download
the check point from tensorflow model zoo
model names are as following url: https://github.com/tensorflow/models/blob/master/research/obj... | [
"arthurtibame@gmail.com"
] | arthurtibame@gmail.com |
4fed9fbfe9b53e716ee5f6989ea66c9f22c91f8b | 2c311a5ce7dd08fd56de05dfcbcf2717406e12a3 | /examples/bootswatch_example/bootswatch_example/urls.py | 21479c51d35af7cf6f0a144ed704deb4bde8fc7a | [
"BSD-2-Clause"
] | permissive | nschlemm/django-themeswitch | b2e40c067fa008cb32f02a6114b2c374e644a1cc | 371495b05abe14fddc2cabc9468f4fb2aedf77f7 | refs/heads/master | 2021-01-22T10:19:36.535062 | 2014-04-08T15:19:48 | 2014-04-08T15:19:48 | 17,511,440 | 11 | 1 | null | 2014-03-07T16:19:16 | 2014-03-07T11:00:24 | Python | UTF-8 | Python | false | false | 192 | py | from django.conf.urls import patterns, include, url
urlpatterns = patterns(
'',
url(r'', include('themeswitch.urls')),
url(r'^$', 'bootswatch_example.views.home', name='home'),
)
| [
"moritz@tibidat.com"
] | moritz@tibidat.com |
abe1005bd1d0c5882d3e588d9d3a1e4a7486c579 | 44197b58b52349b0557f4d2327be292d1c01ea50 | /test/test_data_62.py | 2dd9de7ce8a273d4da81d28b4534861d76aaff37 | [] | no_license | jonpurdy/netbox-swagger-python-client | 58b2b7984ea24a690d8910f6a6a496b99e5098f9 | 6bfe8cf3bb753c4d293dd56a541fac026642207f | refs/heads/master | 2021-06-28T03:16:09.670793 | 2017-09-17T18:15:54 | 2017-09-17T18:15:54 | 103,851,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | # coding: utf-8
"""
NetBox API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version:
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import u... | [
"jon@knowroaming.com"
] | jon@knowroaming.com |
6d11a2a08e99746fcf09d5f7a1e8b2a1c35a11e3 | 9716316eb0c5b5a1487866d37b58efc116511d22 | /charmdet/runReconstruction.py | 7e60609548ccbac61bb0a6d7f587dec8d911689f | [] | no_license | klleung/FairShip | 68245fcd042f47a5ed2feeaad1c2e84e5aa21241 | a7e67ac58387f651722068e8325513b5e0d6832a | refs/heads/master | 2020-06-06T23:02:00.991756 | 2019-07-19T12:23:35 | 2019-07-19T12:23:35 | 192,870,986 | 2 | 0 | null | 2019-06-20T07:26:44 | 2019-06-20T07:26:44 | null | UTF-8 | Python | false | false | 15,856 | py |
import os,subprocess,ROOT,time,multiprocessing
from rootpyPickler import Unpickler
from rootpyPickler import Pickler
import pwd
ncpus = int(multiprocessing.cpu_count()*3./4.)
pathToMacro = '$FAIRSHIP/charmdet/'
def count_python_processes(macroName):
username = pwd.getpwuid(os.getuid()).pw_name
callstring = "ps -f -... | [
"Thomas.Ruf@cern.ch"
] | Thomas.Ruf@cern.ch |
8716e411d7d36e6f03e049d7e4f758924e44cc44 | 169d68e02baceb04ce672c7771db351f71a1e47e | /untitled1/venv/Scripts/easy_install-script.py | bf6482875831339e7b62872ab6bf7d1f6f64f1fc | [] | no_license | yycarry1994/Pycharm_Project | 056959b2b14c171d1d5d87388ce0bd9bc97bd7d5 | da0d6176cccc365554aa46d47f33e7e1120e6e33 | refs/heads/master | 2020-06-28T10:12:29.711669 | 2019-08-02T09:23:41 | 2019-08-02T09:23:41 | 200,204,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | #!C:\Users\86181\PycharmProjects\untitled1\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|... | [
"yangbin-3@thunisoft.com"
] | yangbin-3@thunisoft.com |
94fa74e2b0d75f11f63daaf66cc8d206618c6999 | a9dd70520385b155d2f929127616d496fd89cd53 | /onecollect.py | 4ccf00cf62c39d3e08e3b1e5a884cf93f6fa30d1 | [] | no_license | singer0503/auto_show_mac_address | ce6917e1d05fab40f3d2a9c1017003eb30096580 | 9cce22d167a734335de04dde65d07359c8b8a587 | refs/heads/main | 2023-01-01T14:26:07.620655 | 2020-10-20T10:07:51 | 2020-10-20T10:07:51 | 305,604,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,659 | py | import time,multiprocessing,os
import paramiko #Note: 提供 ssh 功能模組
import re #Noet: 正則表達式模組
import sys #Noet: 檢測錯誤模組
import traceback #Noet: 檢測錯誤模組
try:
from config import * #Note: 把 config.py 讀進來
except:
hosts = ''
username = ''
password = ''
cmds = ''
stdmore = re.comp... | [
"singer0503@gmail.com"
] | singer0503@gmail.com |
072edfb2aef8eea1bcec97a890b4d476ea0fb2ba | e3fbb84151f39c3e576bd857a94256e9ecfc2817 | /0x07-python-test_driven_development/tests/6-max_integer_test.py | 73b68c8c52f56476a1d8122a16c47d872dda234f | [] | no_license | Myduzo/holbertonschool-higher_level_programming | 1a6ed5eb499b16f968aed4522c464e5c9f89a41e | aee7350473a8f740f6eb8e3f1abbb359d88cae0f | refs/heads/master | 2022-12-19T18:59:29.672269 | 2020-09-24T15:18:24 | 2020-09-24T15:18:24 | 259,302,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | #!/usr/bin/python3
"""Unittest for max_integer([..])
"""
import unittest
max_integer = __import__('6-max_integer').max_integer
class TestMaxInteger(unittest.TestCase):
def test_list(self):
"""Empty list test"""
self.assertEqual(max_integer([5, 0, 2, 9]), 9)
self.assertEqual(max_integer([0,... | [
"sahli.youssef@outlook.com"
] | sahli.youssef@outlook.com |
3d9f60873d750960d9d30489e80d15c58a53b641 | 152d5204595c4f38be21d85907af54012fb3fece | /python/A1014280203/0/0.py | d1aa0de267004157929207e14a6341ce63895ea3 | [] | no_license | Fayostyle/spiderstudy | 09f7dc0792c64083cbdb7e5b19a025dc05d5d1f2 | 6687e9a192f83f125d532b5df898790acc47f965 | refs/heads/master | 2022-11-30T10:45:21.260739 | 2019-09-19T07:31:50 | 2019-09-19T07:31:50 | 132,615,459 | 0 | 0 | null | 2022-11-22T00:37:43 | 2018-05-08T13:47:01 | HTML | UTF-8 | Python | false | false | 252 | py | from PIL import Image, ImageFont, ImageDraw
image = Image.open('0.png')
w, h = image.size
font = ImageFont.truetype('arial.ttf', 50)
draw = ImageDraw.Draw(image)
draw.text((4*w/5, h/5), '5', fill=(255, 10, 10), font=font)
image.save('0.0.png', 'png')
| [
"phuang5945@163.com"
] | phuang5945@163.com |
1ec736c4ee5667fdac6c32e4c815c223c8fd9563 | 183892abe5d5481d037e5568c4505f0fc3370a23 | /nn_sa.py | 125440347ced3cad9e15a827a21f423212b28fd8 | [] | no_license | nani67/SportsAnalytics_ML_DL | 0c921b384a6f6c1f0a4de57ff1a556979f4be310 | 3c0f492130324e813e33444e7ee1a197b2e5697c | refs/heads/master | 2020-08-28T10:49:39.629789 | 2019-10-27T12:47:27 | 2019-10-27T12:47:27 | 217,677,816 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | import keras
from keras.models import Sequential
from keras.layers import Dense
import pandas as pd
import numpy as np
dataset = pd.read_csv("sample_data.csv")
X = dataset.drop(["Date","Referee"],axis=1)
Y = dataset["FTR"]
X_train = X[0:15]
X_test = X[15:]
Y_train = Y[0:15]
Y_test = Y[15:]
model =... | [
"pnani18dec@gmail.com"
] | pnani18dec@gmail.com |
6dee1b5890f0ba2108624a4a64c8378c3f83a85a | 1f5d98c97ac9ff75b1d6b81f0a4a5110b05d4284 | /posts/api/views.py | a71629961d4f008f12bdb8916786235c9f681cc8 | [] | no_license | DukhDmytro/social_network | 70cdd4aeb1448fdbacce6d32f627b421b8614a8c | a8d563b17ffc90dc467c67150fd4f0e7aa5f3992 | refs/heads/master | 2022-12-12T21:04:17.354395 | 2020-03-03T13:34:45 | 2020-03-03T13:34:45 | 241,352,402 | 0 | 0 | null | 2022-12-08T03:38:56 | 2020-02-18T12:12:34 | Python | UTF-8 | Python | false | false | 1,764 | py | from django.shortcuts import get_object_or_404
from rest_framework import status
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from rest_framework.viewsets import ModelViewSet
from rest_framework.decorators import action
from rest_framework.pagination import PageNum... | [
"cowboybebop4991@gmail.com"
] | cowboybebop4991@gmail.com |
49d91b038609858a956b8fc002568e272efc77f6 | f7c3b1f65cc4d6dba1dc9dcf70f523497a14d791 | /mujoco/tf_commons/ops.py | ff3b576def5ff27fcc5369b938fb8a9e04891c09 | [
"MIT"
] | permissive | hiwonjoon/ICML2019-TREX | b9cac1ac5d97b22374a92f2f3cf5d8956cdb2482 | 44f92b61ca6c79ac22d468382d4f2fbee164fb7a | refs/heads/master | 2021-06-16T15:52:33.325054 | 2021-04-10T04:57:24 | 2021-04-10T04:57:24 | 184,654,702 | 76 | 24 | MIT | 2020-01-28T22:11:19 | 2019-05-02T21:36:24 | Python | UTF-8 | Python | false | false | 19,966 | py | import tensorflow as tf
class Conv2d(object) :
def __init__(self,name,input_dim,output_dim,k_h=4,k_w=4,d_h=2,d_w=2,
stddev=0.02, data_format='NCHW',padding='SAME') :
with tf.variable_scope(name) :
assert(data_format == 'NCHW' or data_format == 'NHWC')
self.w = tf.ge... | [
"hi.wonjoon@gmail.com"
] | hi.wonjoon@gmail.com |
6cc605df33d06fc2f8575460a8beca5e972c9fe6 | f65b633d0760e20ef5e0066be10aa18168f5659e | /documents/views.py | 448b7e5a09e37e05fa8e98adc18b108ace1694e2 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | boxed/curia | a2b5ce5feda114bac1637de112b20026dabee5ae | c19f12f77b570b180acf4ec1ee05ea77b87b5fc9 | refs/heads/master | 2021-03-12T22:53:36.748160 | 2014-10-20T16:56:45 | 2014-10-20T16:56:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,834 | py | import re
from datetime import datetime
from django.contrib.auth.views import login_required
from django.http import HttpResponse, HttpResponseRedirect
from django.utils.simplejson import dumps
from django.contrib.auth.models import User,Group
from django.utils.encoding import smart_unicode
from curia.documents.model... | [
"boxed@killingar.net"
] | boxed@killingar.net |
6e42e56cfec64fcecc126ae040f1964ab67867ca | adde969450333a4a459e7122521eb20fea9659f7 | /python-flask/openapi_server/test/test_default_controller.py | 16f79d5d61294677c3ddcdee117e032d41c016dd | [] | no_license | mishin/money-tracker-api-docs | 49c480765ecaacd8ff448fa7d264de590239b572 | 9b0f03fd054f54f136d1d28f2d20ecec9515210a | refs/heads/master | 2022-04-12T23:14:33.557855 | 2019-12-07T15:08:19 | 2019-12-07T15:08:19 | 271,111,873 | 1 | 0 | null | 2020-06-09T21:18:06 | 2020-06-09T21:18:05 | null | UTF-8 | Python | false | false | 2,819 | py | # coding: utf-8
from __future__ import absolute_import
import unittest
from flask import json
from six import BytesIO
from openapi_server.models.expense_request import ExpenseRequest # noqa: E501
from openapi_server.models.expense_response import ExpenseResponse # noqa: E501
from openapi_server.models.expenses_res... | [
"kawakawaryuryu@hotmail.co.jp"
] | kawakawaryuryu@hotmail.co.jp |
5c4f26641289e95cd612cadb24473c07e4a66f3e | 94551b3b0513f4f2b3930d9c28b36de079fac487 | /config_param_creator.py | 47c0c32a11d039deac4b9fd6858cc6a93e1a3bf1 | [] | no_license | KWiecko/su2_gui_pub | 92b0f10f0a208c57cad62b216b0f1d1e4e1e1566 | 8d781f1a3c1c231527c47f1289277a7851a64329 | refs/heads/master | 2020-07-13T07:19:52.893502 | 2019-09-25T07:36:55 | 2019-09-25T07:36:55 | 205,030,690 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,470 | py | import pyforms
from pyforms.basewidget import BaseWidget
from pyforms.controls import ControlButton, ControlBase
from su2_basic_widget import SU2BasicWidget
from su2_config_creator import SU2Config
from config_param_creator_ctrl import ConfigParamCreatorCtrl
class ConfigParamCreator(SU2BasicWidget):
# label = ''... | [
"konrad.wiecko@gmail.com"
] | konrad.wiecko@gmail.com |
5738640214bb8de04103ec491a2e51acea88a2f5 | 4182189a2624d4aa36619915b7dba42fc5ecdaad | /xxxRekt/urls.py | e179cc2dd01d6dffeacffb8380cffad8d245d708 | [] | no_license | HackerProjects/lindahearts | 3b74e187176404b587bb55b03301f285966d393f | 37492d88ebd28d65b225125b9c75547cb8687a10 | refs/heads/master | 2020-03-21T15:34:51.570455 | 2018-06-26T11:08:07 | 2018-06-26T11:08:07 | 138,721,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | from django.contrib import admin
from django.urls import path, re_path, include
from django.contrib.staticfiles.urls import static, staticfiles_urlpatterns
from . import settings
urlpatterns = [
path('admin/', admin.site.urls),
re_path(r'', include('home.urls'))
]
urlpatterns += staticfiles_urlpatterns()
urlp... | [
"cjhoussem@gmail.com"
] | cjhoussem@gmail.com |
0c61ce225d80072549a004ed2591a718c5672896 | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flashblade/FB_2_8/models/target_get_response.py | ac033a0a864676d3ec597b61877bb7714e0e01c8 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 4,220 | py | # coding: utf-8
"""
FlashBlade REST API
A lightweight client for FlashBlade REST API 2.8, developed by Pure Storage, Inc. (http://www.purestorage.com/).
OpenAPI spec version: 2.8
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typ... | [
"tlewis@purestorage.com"
] | tlewis@purestorage.com |
048f1454876a4040818f971ff05431b5505e1f2b | 4e31845d08ae3d8a525ce67bb1abab271e037eca | /FirefoxBotAD/fb.sikuli/sikuli.puller.v1.1/puller.py | f1a63ecf8fb0612ea8c16c81a1b1770b513c721d | [] | no_license | AdCrushMedia/sikuli | d1a17b814ec5b80c6107828dd0d8c2c89ae24995 | 7dd03f7653a3ecef25eb1ceb1970baca4e4cfd9b | refs/heads/master | 2021-06-15T22:08:46.487573 | 2017-05-02T19:23:33 | 2017-05-02T19:23:33 | 73,114,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,196 | py | import os
import sys
import json
import time
import getopt
import shutil
import ctypes
import zipfile
import hashlib
import paramiko
import functools
import subprocess
from collections import defaultdict
_NEW_ = "*new*"
_UPD_ = "*upd*"
_DEL_ = "*del*"
_ZIP_ = '.zip'
_JSON_ = '.json'
_PKGVER_ = 'version'+ _JSON_
_C... | [
"matthew.best@toptal.com"
] | matthew.best@toptal.com |
c9baa64f4b82950354c16fb73ca806ec1d27be5f | a9c3be4041c2a93fcdf3407a03ca33ceb839dc12 | /Hostel Management Project/hostel_mgmt/right_frame.py | 25d8a4c86dbe4ae8f65cebd1bd6f2edf351c440e | [] | no_license | Soham-Chatterjee/Hostel_mgmt | 082bcbeb76fe06ddf606b517c8d690ebb7184014 | 8225181ff8cc1fbcf6c9cf35087d9bd6123ce5eb | refs/heads/main | 2023-02-20T17:15:36.119611 | 2021-01-23T16:25:35 | 2021-01-23T16:25:35 | 317,414,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,947 | py | import tkinter
from hostel_mgmt import root
from PIL import Image, ImageTk
from hostel_mgmt.design import right_frame
def on_enter(btn):
btn['bg'] = "bisque"
def on_leave(btn):
btn['bg'] = "bisque3"
image_load = Image.open("./Fee Chart.png")
image_render = ImageTk.PhotoImage(image_load)
pos ... | [
"noreply@github.com"
] | noreply@github.com |
36fd9544ce7e5544264fcd2e31e7b8e4bac2fe1b | 70caddd0199b026b9fae11bc8da4bbc875b3a737 | /test1/sentence_test.py | 1b40fd4ee85bc018354c8ad8ba5cfc080b841880 | [] | no_license | zzxzzg/python | 997e36fc9e8676dfb108082d273c03eb40eb2fae | d58d142ea5d5fb7f1197cf2981ece85909ddb0ba | refs/heads/master | 2020-06-13T12:39:53.612822 | 2016-12-20T10:35:18 | 2016-12-20T10:35:18 | 75,379,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | #! /usr/bin/env python3
# 使用 elif替代 else if ,去掉大括号,使用缩进来分割代码块
# if condition_1:
# statement_block_1
# elif condition_2:
# statement_block_2
# else:
# statement_block_3
#注意冒号!!!
# while 判断条件:
# 语句
#另外,在Python中没有do..while循环。
# while还提供了else的语句配对,当不满足条件的时候运行else(只运行一次)
count = 0
while count < 5:
... | [
"xiaobanma2292@gmail.com"
] | xiaobanma2292@gmail.com |
445508632ba9ca0cb62f6858ef1bb3b3b3ba0625 | f98dc868a74dc7a9b128a2d4ce2c53224dd11f63 | /intermediate_source/pipeline_tutorial.py | 49b37b1f564e74c3f8bc8ff8d8be0e03ec5f33b8 | [
"BSD-3-Clause"
] | permissive | walkingpanda/tutorials | ebe69e3fa8818b596922136273c74f6b0ab3b479 | 973193b4e28f4c277e14dcd93fd199f26cd1038b | refs/heads/master | 2023-05-29T23:34:27.635650 | 2021-06-14T21:05:10 | 2021-06-14T21:05:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,273 | py | """
Training Transformer models using Pipeline Parallelism
======================================================
**Author**: `Pritam Damania <https://github.com/pritamdamania87>`_
This tutorial demonstrates how to train a large Transformer model across
multiple GPUs using pipeline parallelism. This tutorial is an ex... | [
"noreply@github.com"
] | noreply@github.com |
bb4bfb31dbd4a51179b6d3da13cc9b01c3d47928 | a691ae93f31f7fac56027c9f5205731ea1d63c66 | /euler/euler1/euler1.py | b6bc320e2955d56cfc1ca2eb988f97a3f83d111c | [] | no_license | KnoxMakers/CodingWorkshops | c5cbb4ac0dd8abd7a68efc3b8eb3ad1f6b107658 | 12a0698f31d05c4e63d964dd3f9bc134086636e5 | refs/heads/master | 2021-01-19T07:56:27.199119 | 2018-12-05T23:57:33 | 2018-12-05T23:57:33 | 7,244,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | #!/usr/bin/python
x = range(1,1000)
woot = 0
for i in x:
if not i%3 or not i%5:
print i, "is a multiple of 3 or 5"
#woot += i
woot = woot + i
print "Total:",woot
| [
"relative.prime@gmail.com"
] | relative.prime@gmail.com |
20f03c830a4454b43d9ab80e86ffc4f75dbfde63 | 370090ab025824b5d38618a6c845fb5f293efe38 | /manage.py | 070e489cdb724e330a0ddd103793cf82b814ab50 | [
"MIT"
] | permissive | Antavio/Moringa-Project-Awards | 4bcb1d325226cc9dcd239556c085e8d8d47491ab | 941d6ca0e8978cbb54bb8858ac02bed34fd73306 | refs/heads/master | 2021-09-08T04:06:14.895597 | 2019-05-29T07:37:46 | 2019-05-29T07:37:46 | 188,390,930 | 0 | 1 | MIT | 2021-09-08T01:00:56 | 2019-05-24T09:12:00 | Python | UTF-8 | Python | false | false | 812 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Project_Awards.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure th... | [
"njuguna13@gmail.com"
] | njuguna13@gmail.com |
d1e5565535aa6454248bea2abdc3892524a84c42 | 36c95182453f97bc5587ac8f5f763641b9739dce | /src/video/urls.py | a32614ee211a03c78eb98a09f2c48450c2ca6018 | [] | no_license | DreamfoxTeam/MyDream.API.Video | ea8d4194ccbc2f4f247645cf116070bc44b4c4b8 | 72abd0258a8e0a46cc337210b32c69720f81a858 | refs/heads/master | 2020-04-05T02:21:45.808768 | 2018-11-25T13:37:15 | 2018-11-25T13:37:15 | 156,474,229 | 0 | 0 | null | 2018-11-25T13:37:16 | 2018-11-07T01:44:14 | Python | UTF-8 | Python | false | false | 825 | py | """video URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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 v... | [
"msgrubler@gmail.com"
] | msgrubler@gmail.com |
7ea45cbd4ae13f3f6d4ca94d080968135b93965b | af9c3ca608bd3c0b9aa664756fad5f4da495a163 | /second.py | af911857c52401f822e540b0d1b302e42872dfc8 | [] | no_license | 1186141415/COVID-19 | 6f3e397fa73f1b6e845a8db69c02300aa5157e7e | 52f4788b563dae776059a621125e605051175cdf | refs/heads/master | 2022-09-27T16:58:27.788021 | 2020-06-06T04:21:54 | 2020-06-06T04:21:54 | 255,866,776 | 1 | 3 | null | 2020-06-06T03:23:58 | 2020-04-15T09:23:55 | Jupyter Notebook | UTF-8 | Python | false | false | 10,964 | py | import pandas as pd
# 导入matplotlib
import matplotlib.pyplot as plt
import matplotlib.dates as dates
import matplotlib.ticker as ticker
import datetime
# 读取数据
today_world = pd.read_csv("today_world_2020_04_03.csv")
name_dict = {'date':'日期','name':'名称','id':'编号','lastUpdateTime':'更新时间',
'today_confirm':'当日新... | [
"1186141415@qq.com"
] | 1186141415@qq.com |
419e7e0ab8339ade64f7a829744f7147b5e4a0f3 | 72e3cb4dbc09423433040bf0ef56c07b8539c136 | /6/7.py | c39351cdf3d3ae53bf24f4ced3a453606d6ef94b | [] | no_license | refanr/2020 | 50cefe20519f2693d2133181a718046734f2ca3d | 51ae536f21f0c5b20dc067180d54392a09b3d5cb | refs/heads/master | 2023-01-04T21:38:08.327450 | 2020-10-20T14:48:30 | 2020-10-20T14:48:30 | 292,705,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | my_int = int(input('Give me an int >= 0: '))
# Fill in the missing code
working_int = my_int
quotient = 1
bin_str = ''
while quotient > 0:
if working_int % 2:
bin_str += '1'
else:
bin_str += '0'
quotient = working_int // 2
working_int = quotient
bin_str = bin_str[::-1]
print... | [
"refan@Reynirs-Air.lan"
] | refan@Reynirs-Air.lan |
6fe67275ed3c74ae869826a226fcfe2957de6f5b | 0aeb4ce84990053523a95b7d260bb89ea8958de4 | /Python_Labs/Remote File Inclusion/app/RFI.py | 5dba120b7f28b83d3f554958710598fa90ba9d66 | [] | no_license | Helmanso/Lplatform_All_Labs | 52474256b73662edf3e72c2be75345ac79162764 | 963438e7f0f55130a2241bd7124b8b9c3563277a | refs/heads/master | 2022-12-08T02:43:10.359270 | 2020-08-29T14:11:48 | 2020-08-29T14:11:48 | 288,520,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | from flask import Flask, request, url_for, render_template, redirect
import datetime, requests, os, validators
try:
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse
app = Flask(__name__, static_url_path='/static', template_folder='.', static_folder='static')
app.config['DEBU... | [
"hakimel0047@gmail.com"
] | hakimel0047@gmail.com |
fd282217f2a3abbd3385cb2e72791deea7441668 | 771ed599c431f7cc05b4b90895cea24dac3895ba | /utils/edit_misc.py | d3baf8250121fd7a05b544a6510ad407f7a5672b | [] | no_license | baaaad/coco-edit | 8e5395a52f1f1b85db62393c2ac2ab1d00230c7a | b70e36bf05be5af16923f5ca0b8cce91ec9c29d1 | refs/heads/main | 2023-07-14T23:40:54.684513 | 2021-08-13T07:22:57 | 2021-08-13T07:22:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,978 | py | import numpy as np
def edit_distance(sent1, sent2):
# edit from sent1 to sent2
# Create a table to store results of subproblems
m = len(sent1)
n = len(sent2)
dp = [[0 for x in range(n+1)] for x in range(m+1)]
# Fill d[][] in bottom up manner
for i in range(m+1):
for j in range(n+1)... | [
"mwb@zju.edu.cn"
] | mwb@zju.edu.cn |
a8aed15c162e96815fa1961c2bdd1299d9c3454d | a29a73de4df917da642adec96286d7ed3b2a0a42 | /TankDPPO/kankan.py | 0315d142c18ecb16f26c20009d72880e4e7f967d | [] | no_license | tankche1/Learn-To-Run | 9f0546f2d2c74cf18879579a3ccb2aeb3bea2765 | 27a48c8e1ec5864ab58caa9df4098a1089641cc0 | refs/heads/master | 2021-03-24T11:07:15.949621 | 2017-10-18T14:43:41 | 2017-10-18T14:43:41 | 101,266,609 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,281 | py | """
A simple version of OpenAI's Proximal Policy Optimization (PPO). [https://arxiv.org/abs/1707.06347]
Distributing workers in parallel to collect data, then stop worker's roll-out and train PPO on collected data.
Restart workers once PPO is updated.
The global PPO updating rule is adopted from DeepMind's paper ... | [
"15307130191@fudan.edu.cn"
] | 15307130191@fudan.edu.cn |
c99a631a7811780613dfb8c523090511e72b47ed | 7e2198e218bbec882cce3d2db246e3e41db70f51 | /getIamgeStatsPytorch.py | 54ba8af415ee43a98282091f7ed4e3272c26d3be | [
"MIT"
] | permissive | adityag6994/pytorch_ssd_training | 72445d1150f0115aac4c978b6cf9c28c1e4cdab4 | 404f3cbef815e314337ec2c1b4f06a2403a7ce03 | refs/heads/master | 2023-05-08T21:13:34.538207 | 2021-05-25T02:06:06 | 2021-05-25T02:06:06 | 368,198,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | import torch.utils.data
from datasets import *
from utils import *
# Data parameters
data_folder = 'data/rafeeq/' # folder with data files
keep_difficult = True # use objects considered difficult to detect?
# Model parameters
# Not too many here since the SSD300 has a very specific structure
n_classes = len(label_m... | [
"agupta@neurala.com"
] | agupta@neurala.com |
d9e0220046732ed6ddb31fb31a5d9bdbd1e08ecf | a28df6dc7901e0799ddbcdd43dc17f1f966e5eb5 | /interview_preperation_kit/arrays/array_manipulation/editorial.py | 586037ec6827623696fb06fc01fac1bee8c27853 | [] | no_license | jlucasldm/hackerrank | ede7aafa0131171a358c1601a0ccb26da4f3b5dc | 3189c3b9844eaff5873f4d4cf6c94aaf3b88b864 | refs/heads/master | 2023-07-30T22:18:30.166508 | 2021-09-12T20:15:00 | 2021-09-12T20:15:00 | 396,453,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | def arrayManipulation(n, queries):
arr = [0] * (n+1)
# add the value at first index
# subtract the value at last index + 1
for q in queries:
start, end, amt = q
arr[start-1] += amt
arr[end] -= amt
# max value and running sum
mv = -1
running = 0
for a in arr:
... | [
"jlucas.ldm@gmail.com"
] | jlucas.ldm@gmail.com |
5c8fe94773b018fec08156dff5a0e0e776f1b94c | 159a08aeb28fecfaeaa85cd253d1435255aad466 | /HW13/HW13.py | 6a47e237671b35e83c0ac065e22a314261858c4b | [
"MIT"
] | permissive | ji3g4aunaun/assignment-speech-recognition | ee5220fb8588fee11316d63545935f562a1531c1 | 794907a417d054477812c1f50695312601eae929 | refs/heads/master | 2020-03-24T07:33:05.884142 | 2018-07-25T20:49:48 | 2018-07-25T20:49:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | py | import numpy as np
from dspBox import str2ndar
obs1 = str2ndar(open('observation1.txt', 'r').read())
obs2 = str2ndar(open('observation2.txt', 'r').read())
obs3 = str2ndar(open('observation3.txt', 'r').read())
# 助教附的oberservation3.txt跟上次一樣沒有換行,所以只會讀到49個狀態,如果加了換行可以讀到50個。
a1 = np.array([[0.2, 0.7, 0.1], [0.1, 0.2, 0.7], ... | [
"jason860421@gmail.com"
] | jason860421@gmail.com |
9ff1afa9d84a4c4fd731361a64cad925d42d083b | b69314d436bc921289a418a373ef6035d40886d5 | /Top.py | a2396ba726fcc614f1215667d07bccc3a0f51ab0 | [] | no_license | Ashfaaq98/SDN_POX_Controller-Load_Balancer | c4329d18b6e1dc1d85ec62c9fbfaf2b371c083cb | 0e1b96120264e574393c964f051bd366c21767ca | refs/heads/main | 2023-08-26T00:11:48.368747 | 2021-10-17T18:09:29 | 2021-10-17T18:09:29 | 413,499,988 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | #! /usr/bin/python
from mininet.net import Mininet
from mininet.node import Controller, OVSKernelSwitch, RemoteController
from mininet.cli import CLI
from mininet.log import setLogLevel, info
def emptyNet():
net = Mininet(controller=RemoteController, switch=OVSKernelSwitch)
c1 = net.addController('c1', con... | [
"ashfaaq.farzaan@gmail.com"
] | ashfaaq.farzaan@gmail.com |
33cb9493d7550749594d94675bba7dd68faf783d | d92cd1bce2af9d86e83a732a26419be0d76ae8eb | /demo_final/mvc/controllers/alumnos/delete.py | b4f77f02691bb3d8c541d728780cb34b2d8396fd | [] | no_license | MariaFernandaReyesLopez/demo_web_page | fd0973d0cc362dc3cc24784c0fdf10cb58154e2a | 40879f2265c068fed226b4bc560efd975d56974d | refs/heads/master | 2022-11-29T13:03:08.334216 | 2020-08-13T21:18:04 | 2020-08-13T21:18:04 | 287,380,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | import web
import mvc.models.alumnos as alumnos
model_alumnos = alumnos.Alumnos()
render = web.template.render("mvc/views/alumnos/", base="template")
class Delete():
def GET(self, id_alumno):
try:
result = model_alumnos.view(id_alumno)[0]
return render.delete(result... | [
"noreply@github.com"
] | noreply@github.com |
5a346858f79c757e13d5570ec88addd3bfc652ac | 0ae6e24fa95b8a22d9fe9d36f8786cdc4adbceac | /tests/test_api.py | 1c95830966214ef48771a702eba86858d69f7bfe | [] | no_license | lopezjimenezjesus/flasktaskr | cd0c407d7dec0920a1bf2eabb39f1b40ea04fa03 | f7167092a0a99969a730c3d80290ce0919de8ddb | refs/heads/master | 2022-11-10T00:31:22.165929 | 2016-12-18T01:15:41 | 2016-12-18T01:15:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,473 | py | import os
import unittest
from datetime import date
from project import app, db
from project._config import basedir
from project.models import Task
TEST_DB = 'test.db'
class APITest(unittest.TestCase):
#######################
# setup and tear down #
#######################
def setUp(self):
... | [
"gesusjl@gmail.com"
] | gesusjl@gmail.com |
b91ee62ab15974dcb724ceeb00d00689410e332f | 7bf1dc58ba0884ed957efdb5459ae44851b2b36e | /practice_450/greedy/33_rearrange_characters.py | 858f75ba242070202848f0f4f1146c91f0ceea28 | [] | no_license | ksaubhri12/ds_algo | 672260f07f41bcfc33f8ac23a64085a1f27ab4a5 | 46505b89371cae3321f48609dd755c7e5cfed302 | refs/heads/master | 2023-05-12T08:37:06.789111 | 2023-05-03T03:06:49 | 2023-05-03T03:06:49 | 211,793,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | def rearrange_characters(input_string: str):
n = len(input_string)
dict_value = {}
for i in range(0, n):
if input_string[i] in dict_value:
dict_value[input_string[i]] = dict_value[input_string[i]] + 1
else:
dict_value[input_string[i]] = 1
sorted_count_list = sort... | [
"kalpesh@getvokal.com"
] | kalpesh@getvokal.com |
ab7a78b9db6f60371ee1fac74f8b8411ff23aa43 | a179d2abea58ee4d987bf05729a5e7df727af3cd | /instaclone/settings.py | 6e13a5e35aa00ba74ca16a19dd70fe50c0cb34ee | [
"MIT"
] | permissive | Derrick-Nyongesa/instagram-clone | ced05a4c334c9e95e96bec9a3883b448c5fa95c6 | 2f3c018c33aa440160401f0c1878a2670f2f0081 | refs/heads/main | 2023-05-14T01:32:36.211904 | 2021-05-26T13:42:26 | 2021-05-26T13:42:26 | 369,403,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,796 | py | """
Django settings for instaclone project.
Generated by 'django-admin startproject' using Django 3.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from path... | [
"nyongesaderrick@gmail.com"
] | nyongesaderrick@gmail.com |
acd62ee375dff59ca59e70a02bc32374c22f0693 | 02f25642ee890ef749e29ead0009309519412906 | /serverCS.py | 58c4bc85c86c48f3550e3d72e54eb0ded880163f | [] | no_license | romantikatara/Analytics_Model_Deployment | c753da09b8df26f6a20780316fbcf5f36668a4cf | 6e70c3cc8fe095a97350483ec7e3321a4f8967d5 | refs/heads/master | 2020-07-30T19:05:05.015626 | 2019-09-23T14:14:12 | 2019-09-23T14:14:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,185 | py | # Membuat API dari model Machine Learning dengan menggunakan flask
# Ingin mengeload model .pkl ke suatu server
'''
Code ini mengambil data JSON dengan POST request suatu tampilan prediksi menggunakan model yang telah di-load.
Kemudian mengeluarkan hasil dengan format JSON.
'''
# Import libraries
import numpy as np
f... | [
"noreply@github.com"
] | noreply@github.com |
ec491a079245a58e14d42601f0fca085af3e714e | 12738d4511f72cf8ac2f8a63df635f74698d5f63 | /configs/fpn_resnext50_32x4d_cityscapes_2gpu_f.py | 77269bafb8deda39295a9c1c77835019749bb104 | [
"MIT"
] | permissive | ternaus/iglovikov_segmentation | 5731bbd0cbf7125bdc121e7357820b8bec8297ae | 5a9463031e5da7c2cf34c967a4f2657416c11bd2 | refs/heads/master | 2020-08-09T12:26:44.779660 | 2019-12-15T21:59:42 | 2019-12-15T21:59:42 | 214,087,415 | 18 | 1 | MIT | 2020-04-03T02:16:36 | 2019-10-10T04:35:44 | Python | UTF-8 | Python | false | false | 3,589 | py | # Cityscapes. 2 x TeslaV100
from pathlib import Path
import albumentations as albu
import cv2
import segmentation_models_pytorch as smp
import torch
from torch.optim import Adam
from src.loss import CCE
ignore_index = 255
num_classes = 19
encoder_type = "resnext50_32x4d"
preprocess_parameters = smp.encoders.get_... | [
"viglovikov@lyft.com"
] | viglovikov@lyft.com |
298c5334b8cb8458e240533cc78ba90bc20dd8b5 | 5964e11c3d1ea543e139c6a4a66751a611fd0ac5 | /test/test_forest_delete.py | 63d8f63b4002dea380136151df3c75eb74080640 | [
"Apache-2.0"
] | permissive | codycollier/booster | 333a60caeb4df554d49d1cd8251fc4c58b57c76c | 8639d74cc98c4276fba281bbe244795e8f44a833 | refs/heads/master | 2020-04-16T17:42:04.494735 | 2019-07-12T03:25:21 | 2019-07-12T03:25:21 | 2,858,765 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,131 | py | #!/usr/bin/env python
import unittest
import boostertest
class TestForestDelete(boostertest.BoosterTestCase):
""" Test the forest-delete action """
def setUp(self):
""" Set the action and other commonly used fixture data """
self.params = {}
self.params['action'] = "forest-delete"
... | [
"cody@telnet.org"
] | cody@telnet.org |
b2db820fc500dacc8d7771ff92eaa649fc902760 | cb28de2d461cb7f099ca8b61bb5b2015dff0c776 | /spyder_scripts/jan_workshop/ex4.py | 27323317afdf37ef6f16d56f2e58bb6d7681a0bc | [] | no_license | chuymtz/python_scripts | 04082241ae3e3c3a4772aa45f6d667e665f7200c | 6b06a44671ddbafd073764e50bab9117ee72d2cc | refs/heads/master | 2021-01-17T17:37:03.486857 | 2016-06-11T03:11:22 | 2016-06-11T03:11:22 | 60,887,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | # -*- coding: utf-8 -*-
"""
Python Workshop 1/30/2015
Exercise 4
1. Write a function that returns its GC-content when a sequence is given
GC_Content = (#G + #C) / length(seq)
2. SeqForEX4.txt contains 5 different DNA sequences with its corresponding
headers, find a way to read in the 5 sequences alone ... | [
"mtzgtzjesus@gmail.com"
] | mtzgtzjesus@gmail.com |
dc764acc87abd223ec64716f693f78733a9ce009 | acdbaf53db693f63313ee5811b15c810b6f2df60 | /backend/test_flaskr.py | 763983588893e2501ddf8728dcbbe0672423c72d | [] | no_license | fanchenjie/Trivia | 5de5482b163496f6126cadd51cae8b4b797a4499 | 6fe9fc8175fd6d651a582f40a1ad67cbf68425e8 | refs/heads/main | 2023-01-15T11:26:08.678506 | 2020-11-20T23:10:32 | 2020-11-20T23:10:32 | 302,809,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,213 | py | import os
import unittest
import json
from flask_sqlalchemy import SQLAlchemy
from flaskr import create_app
from models import setup_db, Question, Category
class TriviaTestCase(unittest.TestCase):
"""This class represents the trivia test case"""
def setUp(self):
"""Define test variables and initiali... | [
"fanchenjie@seattleu.edu"
] | fanchenjie@seattleu.edu |
ee760f49be6ef89ccf152093972a09626ddee30f | 6d0eb72dfbc165b6129d955b9fe5e4a1d8b1681e | /rules/file_dialogue.py | ca404e0aed146b539dd034ef7b3ef3ab64df350a | [] | no_license | seekM/.caster | 4ee55974e75ef8cab04b21866959664d551e14a5 | f36152e6d60a2b9a486493c3271d204388b1bfaf | refs/heads/master | 2020-05-17T14:31:23.156785 | 2019-06-18T22:02:17 | 2019-06-18T22:02:17 | 183,766,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,700 | py | from dragonfly import (AppContext, Dictation, Grammar, IntegerRef, Key, MappingRule,
Pause, Repeat, Text)
from dragonfly.actions.action_mimic import Mimic
from castervoice.lib import control, settings
from castervoice.lib.dfplus.additions import IntegerRefST
from castervoice.lib.dfplus.merge imp... | [
"seekm@users.noreply.github.com"
] | seekm@users.noreply.github.com |
ce74370ba73cd08e5d80892ce3594a66fbe400e2 | 1496fd578daaf13bebccd68057c455b74481b8de | /week3/hangman/ps3_hangman.py | 89ffb62c683272716b7e0678921ac1462f6ae894 | [] | no_license | leahfrye/MITx-6.00.1x | 274c58a6d7ca4c64dbd1bda5c2f102012f4a4f17 | 41e26ded3606b83b21998777ff32cf862e2b7f1d | refs/heads/master | 2021-09-03T14:43:04.654759 | 2018-01-09T21:43:45 | 2018-01-09T21:43:45 | 115,056,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,980 | py | # Hangman game
#
# -----------------------------------
# Helper code
# You don't need to understand this helper code,
# but you will have to know how to use the functions
# (so be sure to read the docstrings!)
import random
import string
WORDLIST_FILENAME = "C:\projects\mitCourse6.00.1x\week3\hangman\words.txt"
def... | [
"lefrye@nps.edu"
] | lefrye@nps.edu |
2f43fcb6f336490af1bbc1d36b02d53bc911db08 | 78cff47ad6e4c8dc600249915aff2a3c54b723a2 | /AntiAlias.py | c2d25ee7bdcaf3239d2397ab1d5d6b0e1b66e246 | [] | no_license | willstem/Research_Tools | c6e7e526863abbe048a1c973430211a2bfa36b5b | 42e5dbed7ed786e212a1115974c2235de26cf63a | refs/heads/master | 2020-03-22T05:57:43.184438 | 2018-07-03T15:17:08 | 2018-07-03T15:17:08 | 139,602,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,083 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Jun 30 11:24:23 2018
@author: will
"""
import matplotlib.pyplot as plt
import numpy as np
from scipy.signal import butter, lfilter
def cosine(t, amp, freq, phase = 0):
return amp*np.cos(2*np.pi*freq*t + phase)
def view_section(datax, datay, samp_density, ... | [
"will.d.stem@gmail.com"
] | will.d.stem@gmail.com |
e3baf698b803e39d4869c69af482d97836496848 | 91d96fc4084a55a74f761ed7bc7d0adba533618a | /projects/pset2.0_Forkable_Difficulty_Adjusting/blockchain-visualizer/visualize.py | 352b2f7230f8cd77c28efa64538cda9744295698 | [
"MIT"
] | permissive | Averylamp/mas.s62 | 169bb76f1289a3d4569a952075bfb8e7842e1dca | 382dc036ae014785be4c464ed8c4aef533fd52ab | refs/heads/master | 2020-03-17T16:14:56.613227 | 2018-05-17T03:56:09 | 2018-05-17T03:56:09 | 133,741,785 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,143 | py | import pickle
from datetime import datetime
from datetime import timedelta
import matplotlib.pyplot as plt
import graphviz
def mine_rate_info(endpoint_block, origin_block, block_information, time_interval):
endpoint_dt = datetime.fromtimestamp(highest_block[0]['timestamp'])
origin_dt = datetime.fromtimestamp(block_i... | [
"averylamp@gmail.com"
] | averylamp@gmail.com |
8c08e9331e2a444c62e36c3a44d664c13b4c40df | 122cef3b7e5c65f4df2b5d17b88bbb6986c16b3f | /script_1.py | 462eafb9a1a567ee22ba559cf0538723cbbe4ca1 | [
"MIT"
] | permissive | markregine/FHIR_Python_fhirclient_testing_open | 98d843c6d2c223256afbb948c256d09fa7276e84 | 44061ee1522bfc7de5fe553683d6cb778c4b5f4e | refs/heads/master | 2020-04-30T02:44:19.943085 | 2019-03-19T18:13:00 | 2019-03-19T18:13:00 | 176,568,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
from fhirclient import client
import fhirclient.models.patient as p
import fhirclient.models.bundle as bundle
settings = {'app_id':'xxxx',
'api_base': 'https://r2.smarthealthit.org',
'patient_id': 'smart-1137192'}
# In[2]:
settings = {'app_id'... | [
"noreply@github.com"
] | noreply@github.com |
447215391bd91ac4d5a721c47f8d0298d4eb5b3f | c001d8cff7e634bfa19d682ccdcf5261bc7bf397 | /cotizacionweb/migrations/0005_auto_20160420_1104.py | f9051f65ba22309b3fc40fa1bad989072d8ebdc8 | [] | no_license | yusnelvy/mtvmcotizacionv02 | 4053a6883519901e3652a141ef83c297c5aa0ccd | f0d94faff9c721f25018b7db12a07786508da565 | refs/heads/master | 2021-01-21T12:58:49.014716 | 2016-05-06T20:49:59 | 2016-05-06T20:49:59 | 50,135,715 | 0 | 0 | null | 2016-05-25T12:32:34 | 2016-01-21T20:48:27 | CSS | UTF-8 | Python | false | false | 2,464 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('contenedor', '0005_contenedortipicopormueble_tipo_de_contenido'),
('cotizacionweb', '0004_auto_20160414_1529'),
]
operations... | [
"yusnelvy@gmail.com"
] | yusnelvy@gmail.com |
5957173b293dfaea06fcdce0d133e9d754b9f80c | c030e3de3b6822c859f453456dc5f34845ae86da | /2.add-two-numbers.py | 511ca1d156495ca20cf1d8ba552cce7057e77629 | [] | no_license | xxli807/PythonForFun | 5ca07e5728d04e08019efe33f8bc126256ec05e6 | 5c980466146450309949388ca3ab0cedcf5f12fc | refs/heads/master | 2020-05-16T23:24:57.798569 | 2019-05-11T12:28:38 | 2019-05-11T12:28:38 | 183,364,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | #
# @lc app=leetcode id=2 lang=python3
#
# [2] Add Two Numbers
#
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode:
root = ListNode((l1.val + l2.val) %... | [
"lxx871030@gmail.com"
] | lxx871030@gmail.com |
8ffd467913fac03b01efbb61d71509207cf1337c | c5cee987dd9fc79778ae0804048af13f76d7567f | /perTreatment.py | 9b3b7a6b280e3e55d11461e487913dfcd2ed9ed5 | [] | no_license | LingGuguang/new-word-discover | 063dcdf0cc3d95be2306ed8405e3c8cf43d8e829 | 37640afeb8c10216fb44d05d7ed7a1171910f710 | refs/heads/master | 2020-06-01T16:25:11.812212 | 2019-06-08T06:07:35 | 2019-06-08T06:07:35 | 190,849,114 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | from Delete import Delete
import pandas as pd
import jieba
import re
# #以下为弹幕去重
txt = 'danmu.txt'
save_txt = 'save.txt'
ammos = []
with open(txt, 'r', encoding='utf-8') as t:
for ammo in t.readlines():
ammos.append(ammo[:-1])
#print(len(ammos)) = (48000)
dele = Delete(ammos)
ammos = dele.delete()
ammos ... | [
"1186986256@qq.com"
] | 1186986256@qq.com |
c856a237edfe16a2af62af7f31bb6f4ea80ef390 | c96a5c821a24cdb41095d33ee734f94f35e81fb2 | /octoprint_rgbcontrol/__init__.py | 055ce2c4304023baf7719c59ff01a1c596c927cd | [] | no_license | mikedmor/Octoprint_RGBControl | 7915c806942f53c930ed672be71bdd7a2784699b | 0711896004079cc2efcdf74775a44f2892c16d0f | refs/heads/master | 2020-03-16T23:10:44.868686 | 2018-05-12T20:31:27 | 2018-05-12T20:31:27 | 133,068,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,607 | py | # coding=utf-8
from __future__ import absolute_import
import octoprint.plugin
import octoprint.settings
class RGBControlPlugin(octoprint.plugin.StartupPlugin,
octoprint.plugin.TemplatePlugin,
octoprint.plugin.SettingsPlugin,
octoprint.plugin.AssetPlugin... | [
"mikedmor@gmail.com"
] | mikedmor@gmail.com |
dd9b515004d1932557315b736706692edce7c9f4 | a7a11639a6c7fddc702b55530b7a86e77796813c | /green_rose_shop/settings.py | 43f273257b1b5a1fa5f4fca49f6f37292fd1e069 | [] | no_license | venindobhasa/green_rose_shop | 2f9f9ec7eaa25e7e9f85d7d5da8c9dcf15e195c3 | 44ae92c29fe9eebbdc5c63177292907697263a17 | refs/heads/master | 2022-11-05T04:30:14.459444 | 2020-06-19T02:50:21 | 2020-06-19T02:50:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,458 | py | """
Django settings for green_rose_shop project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import... | [
"saunghninsi91@gmail.com"
] | saunghninsi91@gmail.com |
f25e7844fc3f123aff20df8ed51e37a677b10356 | 1107279f4447455a2fea8ff4341e856845cf8e57 | /testes/I2C_sniffer.py | faa21308ec2891c94910ec8d4369c332d9d2c356 | [] | no_license | rmborges/Distributed-Lighting-Control | a0d9cea26b5c538bc41d328e94bc805c97b56a9f | e59a8c5f299cbf739352d1db98787e934e9c4c16 | refs/heads/master | 2021-03-30T18:03:04.574228 | 2018-01-07T15:59:11 | 2018-01-07T15:59:11 | 113,502,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,913 | py | #!/usr/bin/env python
import time
import pigpio
class sniffer:
"""
A class to passively monitor activity on an I2C bus. This should
work for an I2C bus running at 100kbps or less. You are unlikely
to get any usable results for a bus running any faster.
"""
def __init__(self, pi, SCL, SDA, set_as... | [
"rafael.m.borges@tecnico.ulisboa.pt"
] | rafael.m.borges@tecnico.ulisboa.pt |
40723c472ada5bfb1875a6690c1f32bc5eb18c60 | ee193c0df3494673769e107094402a28bfbeba74 | /remove_topics.py | 49749093c06a9e673d5cc0b266c106b56ab9ef08 | [] | no_license | always-akshat/summarization | a41ad675989712def846af32d49ec87a65fe826d | 25f65abfcd2301c4879e8f21e5f5d0e4973aa31c | refs/heads/master | 2020-04-14T09:25:03.713117 | 2014-10-28T05:50:40 | 2014-10-28T05:50:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22 | py | __author__ = 'akshat'
| [
"always.akshat@gmail.com"
] | always.akshat@gmail.com |
77b98aa829530524b65763daa60caaacde33ebbb | 6a0ae86bca2d2ece6c92efd5594c0e3b1777ead7 | /EDBRCommon/python/datasets/summer12_MWp_350_gg_cff.py | 990eb65ae0bde2bdcbdbdfc05e23b0bd86d0be75 | [] | no_license | wangmengmeng/ExoDiBosonResonances | c4b5d277f744e1b1986df9317ac60b46d202a29f | bf5d2e79f59ad25c7a11e7f97552e2bf6a283428 | refs/heads/master | 2016-09-06T14:54:53.245508 | 2014-06-05T15:02:37 | 2014-06-05T15:02:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,971 | py | import FWCore.ParameterSet.Config as cms
readFiles = cms.untracked.vstring()
source = cms.Source("PoolSource",
noEventSort = cms.untracked.bool(True),
duplicateCheckMode = cms.untracked.string("noDuplicateCheck"),
... | [
"mengmeng.wang@cern.ch"
] | mengmeng.wang@cern.ch |
d8740f4f41ffea793ecdef962f03b008182d8ec7 | c07ecb7b177d3296580dec755e4c5a34c01f4132 | /120_Triangle.py | 3b5add816517340c3027d281b3ef7a59950e827b | [] | no_license | bokveizen/leetcode | 78c6e00a97ab9b658752dfcbf6380918ce5611d7 | 7c7eb77e23310563dbbabae4ff9c726620a8dd6d | refs/heads/master | 2021-07-09T19:59:15.338846 | 2021-03-18T06:28:14 | 2021-03-18T06:28:14 | 231,543,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | # https://leetcode-cn.com/problems/triangle/
class Solution:
def minimumTotal(self, triangle: List[List[int]]) -> int:
n = len(triangle)
temp = triangle[-1] # triangle[n-1]
while True:
if n == 1:
return temp[0]
temp = [min(temp[i], temp[i + 1]) for i ... | [
"boqvezen97@kaist.ac.kr"
] | boqvezen97@kaist.ac.kr |
edb0dd2db6e36653e6d52a2316956c6790eed846 | e3fe44de92acb664c65dfc53c4dc7450ea994c81 | /utils/fast_inverse.py | 1ede5e863c4570d8c6bc7af2a213ff1c3677bc66 | [] | no_license | chixma/Visual-Template-Free-Form-Parsing | a723022857b1a9adb641d1f9c9f39564ed65f67f | b05e80f5fbc5b1296ab1e4b968ae206b7e556e4b | refs/heads/master | 2020-07-22T13:27:39.873315 | 2019-09-06T20:42:32 | 2019-09-06T20:42:32 | 207,217,082 | 1 | 0 | null | 2019-09-09T03:33:43 | 2019-09-09T03:33:43 | null | UTF-8 | Python | false | false | 1,420 | py | import numpy as np
import torch
def adjoint(A):
"""compute inverse without division by det; ...xv3xc3 input, or array of matrices assumed"""
AI = np.empty_like(A)
for i in xrange(3):
AI[...,i,:] = np.cross(A[...,i-2,:], A[...,i-1,:])
return AI
def inverse_transpose(A):
"""
efficiently ... | [
"herobd@gmail.com"
] | herobd@gmail.com |
ddebfadd0c2daa17807f8177153eeb52ef49dbd9 | df2499ddc1e44aa36cf82d652a3d4501efdeea14 | /burnerbotserver/admin.py | 3ae9dd6521daad321efcb966d5637ac8d4d5ae87 | [] | no_license | johngrantuk/burnerbotserver | 5e232c85df58076818c4d5353440bfa0b82545c2 | 3a102d46073a6ed25ca8cca8a4cea465f6d65cdc | refs/heads/master | 2020-05-17T00:19:01.545866 | 2019-04-25T09:04:06 | 2019-04-25T09:04:06 | 183,393,293 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | from django.contrib import admin
from .models import UserDetail
admin.site.register(UserDetail)
| [
"johngrantuk@googlemail.com"
] | johngrantuk@googlemail.com |
c869b985f6efcc06cb7b2c9d71bff7a64242bbeb | 856c2ce82997975f747f04b823819e6c65624477 | /blog/urls.py | f69c1a3a567d53eeb5703fa1058d4968a4795da9 | [] | no_license | leadmeout/simple_blog | 348f83db921d6b0a9cf46d24cdb87b160552d61f | edfef1295dbaa9a35d60e6d7fa4cfb0c9a267da0 | refs/heads/master | 2023-01-04T10:30:15.605104 | 2020-10-28T20:14:49 | 2020-10-28T20:14:49 | 308,122,152 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | """blog 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 vi... | [
"markhorvat@protonmail.com"
] | markhorvat@protonmail.com |
2a46dd981ecb739e9e46f9c71da3e33492974bb5 | a075ee186532121edbe5febd9978d9c98fb7d888 | /app/test/test_service.py | 2d99be24b353940df520ed27d15ce723d6f85acc | [] | no_license | HoonJin/fastapi-sample | ef68c77b4129bf6d855ef23d19089aba4e81f3ee | 0b535711e47bf0c0b2d2b2e984859223d0bfb502 | refs/heads/master | 2022-12-24T00:27:41.655204 | 2020-09-29T10:10:52 | 2020-09-29T10:10:52 | 249,173,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | from config.exceptions import NotFoundException
from database import db
from .test_dao import TestDao
class TestService:
@staticmethod
async def get_all_pagination(page: int, per_page: int) -> dict:
total_cnt = await TestDao.get_all_count()
total_page = int(total_cnt / per_page) + (0 if total_... | [
"bwjhj1030@gmail.com"
] | bwjhj1030@gmail.com |
7e6327db88706423541fdcd736a385bd77c5cb65 | 4cbe1145ef29aab3ef17c5ebd74dd94c2fece7c7 | /Guess_the_country_name.py | 90fcc438f7e08aaa6de061bf0db40eacbdddfe9e | [
"MIT"
] | permissive | jyothi1910/Guess_the_country_name | 2903b4d943b8d9495559c8d68756fbc9ce88e0d8 | fc154488a4f3ff6aa7e27a127963f2c5a4c42628 | refs/heads/main | 2023-06-06T09:53:28.414026 | 2021-06-21T07:00:16 | 2021-06-21T07:00:16 | 378,835,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py |
import random
Country_names=["India","Korea","Japan","China","USA"]
print(Country_names)
randomName = random.choice(Country_names)
for guessTaken in range(1,4):
guess=input("Take a guess:")
if guess != randomName:
print("Your guess is wrong, try another guess")
elif guess == randomName:
... | [
"noreply@github.com"
] | noreply@github.com |
f956625b352f998eb26833b0e51195907af6cf82 | b3bac39420c4864de4a9f53a27845ba71e4f08fa | /App.py | 864555395f640864608ca50ba8d233c23cbcf07b | [] | no_license | nickbetke/Music-Mood-Recognition | bb2c6377de99b47b3e629bb02853412e63494e80 | 3811e0d3bb28ae4e06039f7d2ab463cbcc7a667f | refs/heads/master | 2021-02-10T02:55:55.878712 | 2020-10-17T14:35:53 | 2020-10-17T14:35:53 | 244,346,711 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,490 | py | import tkinter as tk # python 3
from tkinter import *
from tkinter.ttk import *
from tkinter import font as tkFont
from tkinter.filedialog import askopenfilename
from tkinter import messagebox
import numpy as np
from pydub import AudioSegment as pas
import librosa as lr
import joblib
global do
class SampleApp(t... | [
"noreply@github.com"
] | noreply@github.com |
da05f206093955bc97ef19a62bc0a70e69711fc6 | 5e9dacbb7a9613b7c8d8c92398bb66926a314c38 | /script.py | ecff88305875f987118660b170ce2849290d9f87 | [] | no_license | pol9111/tencent_WechatOffAcc_auto | 645b95bfd893706df4651f1e8f67ea1dc57a03de | 3aa2a9a8a78796d5b829f9bf49cc849713ed41b7 | refs/heads/master | 2020-03-24T16:24:08.783424 | 2018-07-30T04:07:14 | 2018-07-30T04:07:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | import json
import pymongo
import re
from config import *
def response(flow):
global like_num, title, pub_time, read_num, comment_num
client = pymongo.MongoClient(MONGO_URL)
db = client[MONGO_DB]
table = db[MONGO_COLLECTION]
# 获取微信广告json文件, 里面有阅读数和点赞数
url_msg = 'mp.weixin.qq.com/mp/getappmsgex... | [
"biscuit36@163.com"
] | biscuit36@163.com |
f9da954cdcb17cee51e9d873568d288fdf2c9cdb | f6f29c2fa719c53eee73de2acd86db9e1278182e | /code_wars/calculating_with_functions.py | a3f2c7e84a244f5b3dd4d6052494c5ab40d538cb | [] | no_license | byt3-m3/python_code_practice | ca08320e1778449d30204b65f15903d5830b7975 | 40e215c4d4ab62cf7d55d2456d94550335825906 | refs/heads/master | 2023-07-24T08:29:06.624850 | 2021-09-04T02:39:32 | 2021-09-04T02:39:32 | 256,984,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,290 | py | '''
This time we want to write calculations using functions and get the results. Let's have a look at some examples:
seven(times(five())) # must return 35
four(plus(nine())) # must return 13
eight(minus(three())) # must return 5
six(divided_by(two())) # must return 3
Requirements:
There must be a function for each nu... | [
"cbaxtertech@gmail.com"
] | cbaxtertech@gmail.com |
a901c6830b2d98e5814d5c7d028e4744d7464039 | fa8344a5f37ffd5f10bef00a6f7cab6acc6382f7 | /apps/family/views.py | 5b69f137536d5f86284785fb0032fdfff6f28e77 | [] | no_license | hustels/django-crud-ajax-demo | 2fcd8d3e1c050a76ec1d7e16cfd04fbf1175d8fa | 06de79bf60918b7e270491e4d5cbc7e1422ffd23 | refs/heads/master | 2021-01-12T19:43:44.480199 | 2011-11-16T01:07:31 | 2011-11-16T01:07:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,466 | py | # -*- coding: utf-8 -*-
from django.views.generic.simple import direct_to_template
from django.http import HttpResponse
from django.db.models import Q
from family.models import People
from family.forms import PeopleForm, ImporterForm
def index(request, form=None, peoples=None, importer_form=None):
if form is Non... | [
"gustavo@gustavohenrique.net"
] | gustavo@gustavohenrique.net |
ec9c7d2a3db1de8e236b53724f1cbf8c028163a0 | 8638bf84783732f87d88b02ad0a41f68684fbe1f | /plotsprecht.py | 4bb13dda0e82bafc31cdb209b2b5a4505d07baeb | [] | no_license | JLammering/V-351 | fa7f43d025e44426e143b12e4517a4bd734fe559 | 2532300f9ae01a3acc68afc2061efacf349b12e4 | refs/heads/master | 2021-01-10T16:30:20.834091 | 2016-01-13T12:43:44 | 2016-01-13T12:45:33 | 48,593,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,216 | py | import matplotlib.pyplot as plt
import numpy as np
#from itertools import chain
#Messdaten einladen
# k, U = np.genfromtxt('datenb_1.txt', unpack = True)
# #plt.plot(f, U, 'k.', label = r'Messdaten')
#
# N=9
#
# ind = np.arange(N)
# width = 0.3
# ax = plt.subplots()
#
#
# rects = ax.bar(ind, U, width, color ='r')
# ax... | [
"jlammering@me.com"
] | jlammering@me.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.