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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
77f011c7b8d55cb52f37c07ad781342c330b4d63 | a5777f2b4f9362f6f30b3e5b23c88d4e8505b808 | /CacHamToanHoc/ham_random.py | 907eef612f60722fe2ed5b481e75847bd56806d9 | [] | no_license | Ericmanh/cac_ham_python | e7f1caf5fd01e6e29da5ed8aa97a41d1b956d981 | 0f24c723e31a76e3c338a598a9e480e2199fc822 | refs/heads/master | 2023-07-16T14:45:23.755223 | 2021-09-01T19:20:45 | 2021-09-01T19:20:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | # Random là một trong những hàm lấy số ngẫu nhiên
# randrange (x,y) --> lấy số ngẫu nhiên >=x và <y
from random import randrange
count =0
while True:
x= randrange (-100,100)
count +=1
print(x,end=",")
if x==50:
break
print("\n ơ lần ngẫu nhiên thư",count)
print("Bye!") | [
"caomanhkha@gmail.com"
] | caomanhkha@gmail.com |
c7e37831167ed1331aa25154516b4b52bf9c29cc | 6ed4367001aeb16b24353a2ae5965fcd813ac23f | /course_wor_env/Scripts/pip3.7-script.py | ad3a0afaef4b6c8f53bb7071a6ee32d61aa719dc | [] | no_license | YevheniiM/MemorizeThem | 0d8453fec31924a64311eb779db9f5ee1fdae8a4 | f9e39c278f3b98559339f53e0399856b51e57099 | refs/heads/master | 2020-03-14T23:44:39.877121 | 2018-05-19T21:38:35 | 2018-05-19T21:38:35 | 131,851,863 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | #!C:\Users\moroz.y\Study\Programing\CS_UCU\CourseWork\tests\MemorizeThemCourseWork\course_wor_env\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3.7'
__requires__ = 'pip==9.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0... | [
"xmolodtsov@gamil.com"
] | xmolodtsov@gamil.com |
5bfc033492962d2f96b50a0944a4b477d3763356 | 5fd95add9b135eac55df8c17185f0348ca1faba5 | /proj/myproject/pybo/views/main_views.py | 5976c8b6fb41a38c54aa1e7c1477f0cf95f26e87 | [] | no_license | 42azimut/jump2Flask | 1128c486a4274f2dc9ea86e14b87412c6f1cd052 | 8626b7e50ac7bc40b5424299763b5a6a305de5f4 | refs/heads/main | 2023-04-24T12:14:27.042398 | 2021-05-13T12:36:54 | 2021-05-13T12:36:54 | 326,012,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | from flask import Blueprint, url_for
from werkzeug.utils import redirect
bp = Blueprint('main', __name__, url_prefix='/')
@bp.route('/hello')
def hello_pybo():
return 'Hello, Pybo'
@bp.route('/')
def index():
return redirect(url_for('question._list'))
| [
"azimutuniverse@gmail.com"
] | azimutuniverse@gmail.com |
fbf8ce4a8f1a8fa531b08275055edceb9aa982a6 | bad44a92fb338260f9c077689d7fa5472526c3fe | /src/python/nnfusion/jit.py | 6fd2745e160f063b2ff9cf6c47e345239698423f | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | microsoft/nnfusion | ebc4c06331b8e93dbf5e176e5ecd3382e322ff21 | bd4f6feed217a43c9ee9be16f02fa8529953579a | refs/heads/main | 2023-08-25T17:41:37.517769 | 2022-09-16T05:59:01 | 2022-09-16T05:59:01 | 252,069,995 | 872 | 157 | MIT | 2023-07-19T03:06:21 | 2020-04-01T04:15:38 | C++ | UTF-8 | Python | false | false | 6,923 | py | import copy
import functools
from inspect import isfunction, ismethod, isclass
import torch
from .jit_utils import TorchModule, get_signature
from .runtime import NNFusionRT
from .config import Config
def is_method_of_instance(obj, cls):
return ismethod(obj) and isinstance(obj.__self__, cls)
def is_subclass_o... | [
"noreply@github.com"
] | microsoft.noreply@github.com |
2877f86b77d5145c624166a1fb173aaf3493ada6 | 763fd4660fff93a6fc10adf1b60e79af3937d394 | /apps/login/migrations/0001_initial.py | f54705eaaec1b74370a3f7749d522ab44785ef1f | [] | no_license | business-phil/user_dashboard | 4c888fe03ac4658bf2abf38897d95f405b24d906 | 9164f9475efdc8f3891c4e3b0e9e54c459c94efd | refs/heads/master | 2021-06-01T09:17:59.098779 | 2016-08-26T15:34:34 | 2016-08-26T15:34:34 | 66,364,971 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-08-23 19:38
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
... | [
"pfb3cn@virginia.edu"
] | pfb3cn@virginia.edu |
41cba4d61f7204ca6fb11832e4055fbadb800353 | 631ebc5d7126e7e9d5318de0d059893864e81532 | /cbv/views.py | d9586b3bf3381231d0d138f78b76a8d4ae2b2ea1 | [] | no_license | AhmedAhmedFekry/cbv_posts | 78935b444f1e62b5111d6a0b4b919999d8949d1e | b8dbc8d78d23758d5a8b7ad55a4fed9f51486183 | refs/heads/main | 2023-04-22T23:32:45.847158 | 2021-05-09T13:04:18 | 2021-05-09T13:04:18 | 365,743,901 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | from django.shortcuts import render
from django.views.generic.base import TemplateView
from core.models import Post
class Ex2(TemplateView):
template_name='cbv/temp1.html'
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["posts"] =Post.objects.all()
... | [
"ahmedahmedfekry11305654@gmail.com"
] | ahmedahmedfekry11305654@gmail.com |
1f97d1627188febbb4baa4eec25c4bcb8547e3c1 | 90590ccc0fbc0172f1aaeb46eec1734d5d2f78b9 | /Joiner.py | 9553cd3a5889c0a67ce47ac039b8f1e7ff5febaf | [] | no_license | KeparYTbcc/Discord-Joiner-pro | f03e3ee1cac7211a2f97da27dd5dc7bc80e7f003 | 8f070ed13624f3396461a82f17eb001f580966bb | refs/heads/main | 2023-09-04T05:42:01.860227 | 2021-10-21T04:22:27 | 2021-10-21T04:22:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,628 | py | import requests
from discord_webhook import DiscordWebhook
import os
import webbrowser
import sys
from time import sleep
os.system('color a')
os.system('title Mass Joiner Bot - KeparDEV ')
os.system('cls && mode 800')
words = ("""
/$$$$$ /$$
|__ $$ |__/
| $$ /... | [
"noreply@github.com"
] | KeparYTbcc.noreply@github.com |
d9d104fdad2d1d85198c5470e559124203bdd273 | 2c0df7f7feb0ad8412b71c25e36c5ed49534b384 | /chaning-package-name.py | e4c5ba911307e9dea619b6f8822d101fe3a1900d | [] | no_license | wwk5c5gh3/android-modify-packname | b8fc9d6b16fbbee117ed22fa0034518e85cfad36 | 758eadd39db5956bd4e7b32c7e4a0aad2b7d68df | refs/heads/master | 2021-06-04T18:44:01.085733 | 2016-06-13T03:01:04 | 2016-06-13T03:01:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,673 | py | # coding:utf-8
# 世界如此喧嚣 真相何其稀少
# 2016.05.26
# 原工程路径
src = "../AdSharePlugin2"
# 新工程路径
dst = "../AdSharePlugin3"
# 旧包名
oldPackage = "me.fengchuan.adshareplugin"
# 新包名
newPackage = "com.crazyspread.adshareplugin"
# 主项目名称
pro_name = "app"
# 还需要修改local.properties中的sdk.dir
# 排除的文件或目录
exclude_dir = [".svn/", ".idea/", "build... | [
"zylstc2009@gmail.com"
] | zylstc2009@gmail.com |
5f1b3bc2f31499c6f0a9fe27c78a3cd3745ad250 | 830d6959e7167d2abdbdc2c9c0729eb511237382 | /game1.py | 587e946a0666013f6d0d8917f6ba10bbccff9267 | [] | no_license | camcottle/Game-Public | 031422c0f5b5b6e8ec5cd4fe0816d49d07d69853 | 0aed140055aefab9637a2325226dbc2d3b153258 | refs/heads/master | 2022-12-02T04:53:54.294023 | 2020-08-11T23:13:12 | 2020-08-11T23:13:12 | 286,901,953 | 0 | 0 | null | 2020-08-12T02:59:34 | 2020-08-12T02:59:33 | null | UTF-8 | Python | false | false | 2,609 | py | print ("Welcome to Chose your own adventure python edition")
print ("")
def playerNames():
playerNum = int(input("How many players are playing? "))
print(playerNum)
# Great place to consider using a for loop
if playerNum == 1:
player1 = input("What is player one's first name? ")
print(... | [
"noreply@github.com"
] | camcottle.noreply@github.com |
874b9161189f66fb76d33ead2d57b360fe368c25 | 59dee7060541dbfe93136055d96a9069c765e2fd | /Hacker.py | 0d3d0658bb86a388e676af7008eac3843c3c60dc | [] | no_license | Raheemboss0071/Usmankhan3 | 75d995575a47e16738d23cbc9c1f4ee17c9b0a36 | 809132912f4dc85eacfe2e1f94a4416f00e32d9e | refs/heads/master | 2022-11-14T02:58:21.455819 | 2020-07-01T19:28:06 | 2020-07-01T19:28:06 | 276,464,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,385 | py | #!/usr/bin/python2
#coding=utf-8
import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,requests,mechanize
from multiprocessing.pool import ThreadPool
from requests.exceptions import ConnectionError
from mechanize import Browser
reload(sys)
sys.setdefaultencoding('utf8')
br = mechanize.Brows... | [
"noreply@github.com"
] | Raheemboss0071.noreply@github.com |
a6afa95b502e530d2d924043fbd73f7a2656adb5 | 7238007ee7618cac13258602900017897c960bf5 | /toBinary.py | f046ab383b306a5550371e62ac2391c29f9a286c | [] | no_license | xinwangmath/PlantedMotifSearch | e2e7a298122a43e73289a277abd3b905b5b30033 | 5688117a5b0c569fd40043a4cd37cf56cd69a113 | refs/heads/master | 2020-05-17T22:49:56.507813 | 2015-03-10T14:25:49 | 2015-03-10T14:25:49 | 31,961,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py |
def toBinary(a,n):
""" convert an integer n into a n-bit string of 0 and 1 representing the binary of a """
s = bin(a)[2:];
if len(s) < n:
s1 = '0'*(n-len(s));
s = s1 + s;
return s;
# end of function definition #
if __name__ == '__main__':
a = (int)(raw_input("please enter an integer"));
n = 10;
... | [
"ziyuexw1@gmail.com"
] | ziyuexw1@gmail.com |
c19708c6bf36cf854558739141da8850d7987462 | f5183c888d7335c52f956ee12bafe6be4e3473d0 | /www/app.py | 812b413cb39ef5984b4a98b94dcc94d0732ad589 | [] | no_license | ftong9224/awesome-python3-webapp | 3e106f7930895708ff8d999c2ceea9771966e4cb | 0ee669662fdcaf3fdcf9d88de354da02994d2bed | refs/heads/master | 2021-09-02T09:12:43.156922 | 2018-01-01T09:31:18 | 2018-01-01T09:31:18 | 114,324,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,905 | py | #!/usr/bin/env python3
# -*- coding: utf-8 _*_
__author__ = 'Ftong Tong'
'''
async web application
'''
import logging;logging.basicConfig(level=logging.INFO)
import asyncio, os, json, time
from datetime import datetime
from aiohttp import web
from jinja2 import Environment, FileSystemLoader
from config import con... | [
"ftong@163.com"
] | ftong@163.com |
42ea67672912de1d7477f0b55d7adcd814a121da | 9b2d0ccde021cec80b41a65b58ebbe1cf7ba864b | /app.py | c249e97a2535ec32e0e23798dc249af65e85d0fe | [
"MIT"
] | permissive | kunleh/SRS | 0110ae729cfa6e8a3bd7e3be4afa8b036b67baec | 23081061300a0df04c933e9671cf5a05b5c2a6d1 | refs/heads/master | 2021-04-30T03:19:38.094087 | 2017-09-24T17:32:07 | 2017-09-24T17:32:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,448 | py | '''
App: Student Record System
Stack: Python(Flask), SQLite, HTML, CSS(Bootstrap), Javascript(JQuery)
Author: Ahmed Noor
'''
### Imports
from flask import Flask, flash, redirect, render_template, request, session, url_for, jsonify, g
from flask_compress import Compress
import sqlalchemy
from cs50 import SQ... | [
"m.ahmednoor7@yahoo.com"
] | m.ahmednoor7@yahoo.com |
419801dc9b41a351205b81a2536848b549bcdca3 | 67a48a7a2db56247fdd84474efa35124565fd8b9 | /Codeforces/1567/1567a.py | d8ac3e266bff074dc1c8d5d2ab0d617f691e4d6f | [] | no_license | qazz625/Competitive-Programming-Codes | e3de31f9276f84e919a6017b2cf781c946809862 | e5df9cdc4714d78b7b6a7535ed7a45e07d3781c3 | refs/heads/master | 2022-08-30T07:57:55.172867 | 2022-08-10T08:02:07 | 2022-08-10T08:02:07 | 242,182,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | t = int(input())
for _ in range(t):
n = int(input())
arr = []
s = input()
for x in s:
if x == 'L' or x == 'R':
arr += [x]
elif x == 'D':
arr += ['U']
else:
arr += ['D']
print(*arr, sep='')
| [
"arun49804@gmail.com"
] | arun49804@gmail.com |
1de3f0d35f4975c34f1ea90e65390c64a73f455e | 849613f19ea52137ff0b5e8875d501ccfc77fef1 | /3-final-forest.py | 9e267756f65d45460f99a5798b959a45cae6280a | [] | no_license | smutaogroup/VVD_analysis | bc3b3f682fb5d341cbf5033e1f007c238b26bfce | aa19125e4352ded93c389b945137a9dfe2bcf58e | refs/heads/master | 2020-03-19T14:46:05.016613 | 2018-06-08T15:51:26 | 2018-06-08T15:51:26 | 136,638,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | #!/bin/env python
import numpy as np
from sklearn.ensemble import RandomForestClassifier
from sklearn.multiclass import OneVsOneClassifier
from msmbuilder.io import load_meta, load_trajs
import sys
from sklearn.externals import joblib
depth = 9
meta, all_data = load_trajs('alpha_carbon/')
meta, all_label = load_traj... | [
"noreply@github.com"
] | smutaogroup.noreply@github.com |
3d27cf4f50a9cc4bd469bd18977762b572f062a1 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /company/new_problem/look_week_into_different_child/woman.py | adf36b9a017251053bd4003aaba072a84a85d48d | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py |
#! /usr/bin/env python
def right_week_or_little_person(str_arg):
seem_work_for_next_man(str_arg)
print('eye')
def seem_work_for_next_man(str_arg):
print(str_arg)
if __name__ == '__main__':
right_week_or_little_person('place')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
0df540ab0532f179ce46a8102168e91cb9ce3765 | c9d162af983ca149c58e045c87cc705cdb57b398 | /instrumentor.py | ce07637261fdc29e825c01f93bfdcd1f4daa1063 | [] | no_license | arielazary/afl_preprocessing | 2361f56986ce90ac56c4dc923964fd410acbe617 | 638e70c45cd453d57358b9359b4f7e46bf07e122 | refs/heads/master | 2020-04-25T22:47:47.500534 | 2019-02-28T14:07:16 | 2019-02-28T14:07:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py |
with open('example_1.c') as f:
lines = f.readlines()
new_lines = lines.copy()
for line in lines:
if lines.index(line) == 0:
# globals
new_lines.insert(new_lines.index(line), '#include <stdio.h>\n')
if "pthread_mutex_lock" in line:
new_lines.insert(new_lines.index(line), 'float sec=... | [
"gefenk9@gmail.com"
] | gefenk9@gmail.com |
d9defe5ad47eb503e1e8834bad3974c9f76ea1ae | 33fc4f5b3b92fc5d84be6c4872094264be5c2192 | /108numpy-copy-deepcopy.py | c41df93204747de028547d6883e0e74eb2590112 | [] | no_license | greenmac/python-morvan-numpy-pandas | 2ee9f572b910f65b44fe76316774fa9f604e9eb2 | 77fe010b15074e7ecabaefc07bc80bf667575d89 | refs/heads/master | 2020-04-12T14:54:47.317643 | 2018-12-22T07:18:19 | 2018-12-22T07:18:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | # https://morvanzhou.github.io/tutorials/data-manipulation/np-pd/2-8-np-copy/
import numpy as np
# a = np.arange(4)
# b = a
# c = a
# d = b
# a[0] = 11
# print(a)
# print(b)
# print(c)
# print(d)
# print(b is a)
# print(d is a)
# a = np.arange(4)
# b = a
# c = a
# d = b
# a[0] = 11
# d[1:3] = [22, 33]
# print(a)
# pr... | [
"alwaysmac@msn.com"
] | alwaysmac@msn.com |
b192d349f8113f13b7778ea0a5d27e09e99aba44 | e7b8c14b4f590f1a1d41a8bf01c3acbdb4f32215 | /sumListNumbers.py | b68643f0b2cf641e37298d2f49cc8522f78084f2 | [] | no_license | gocersensei/python | 6e11c8cc2bef1c93127465249b83b6b5571950dd | d7bcb16c80c7f79a5ed2d08b77258d18db4d96c1 | refs/heads/master | 2023-07-28T08:50:11.628297 | 2021-09-14T11:06:39 | 2021-09-14T11:06:39 | 287,108,426 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | #
# Compete the sum of numbers entered by the user,
# ignoring non-numeric input
#
# Read the first line of input from the user
line = input("Enter a number: ")
total = 0
# Keep reading until the user enters a blank line
while line != "":
try:
# Try and convert the line to a number
num = float(lin... | [
"gocersensei@gmail.com"
] | gocersensei@gmail.com |
96862019c227fd93b2d73f7b636aa92661f6a361 | 98a3b6e871d9aea29c480402d85bf25bb7f11c1f | /train_nitre_data.py | a20c63c48a00b94bf40e8a633ea5c14510361e0d | [] | no_license | funnyday16/HardGAN | eb2e543d00b2886fbec6f75f729f34b2ed39db7a | abe9f6959179bab9bbd7ef929ae4c2af735ec691 | refs/heads/master | 2023-02-17T13:28:50.607523 | 2021-01-18T07:07:47 | 2021-01-18T07:07:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,995 | py | """
paper: GridDehazeNet: Attention-Based Multi-Scale Network for Image Dehazing
file: train_data.py
about: build the training dataset
author: Xiaohong Liu
date: 01/08/19
"""
# --- Imports --- #
import torch.utils.data as data
from PIL import Image
from random import randrange
from torchvision.transforms import Compos... | [
"noreply@github.com"
] | funnyday16.noreply@github.com |
e8ce8039f52567811f2bdb20c09583453a843219 | 018fa2ef4c1a7e4797549951a56784f5409c0f92 | /user/migrations/0001_initial.py | 1711546fb46d563d64e3b99407f2d4f040bf9340 | [] | no_license | dyx77421088/studentManage | ab2f6c25acd0331b1047f2abccca433e26c33a29 | 890cc936368654ab438171fad2392bcd61efb4bc | refs/heads/master | 2022-11-22T19:48:54.452622 | 2020-07-14T10:18:09 | 2020-07-14T10:18:09 | 279,074,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | # Generated by Django 3.0.8 on 2020-07-13 16:20
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.AutoField(aut... | [
"2639074625@qq.com"
] | 2639074625@qq.com |
bfa47be83ff0943752e0807cdd52e23b8987e48d | e804d12c678bc1035ac1def37a813ce6b41f60a6 | /games_links_parser.py | 184ecd608d693161b55a441363fbdf05263834fd | [] | no_license | ilya201551/PsGameTrader_games_parser | 76148ea80ff95a1204dfd4b5aeffd882026bee3d | d5d06b68b1e5b7e21e5debfe01b7147138bd3a8c | refs/heads/master | 2022-11-15T18:41:39.964207 | 2020-06-23T14:11:18 | 2020-06-23T14:11:18 | 274,419,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,004 | py | import requests
from bs4 import BeautifulSoup as bs
BASE_URL = 'https://nextgame.net'
GAMES_CATALOG_URL = 'https://nextgame.net/catalog/sony-playstation4/games-ps4/'
HEADERS = {
'accept': '*/*',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) \
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.... | [
"kurilchik13@mail.ru"
] | kurilchik13@mail.ru |
2d3b00cefeddbe2466d824497e9ce94a26797fab | 4d35ead619ef8ae5e94084878d4732af1e3847cb | /utils/common.py | 7d3f3958a6862b0b61f01f6a50fb546c01f5137e | [] | no_license | hallazie/OrganicGridGenerator | bea220798fa2beb734b1e0db31af7f91062ece03 | b8e4a96e827dc2fb5532de6df76b19fbaf5e1cdb | refs/heads/master | 2023-08-27T17:47:20.151036 | 2021-11-02T03:23:01 | 2021-11-02T03:23:01 | 386,870,439 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | # coding:utf-8
# @author: xiao shanghua
from src.items import *
import math
def euc_distance(v1, v2):
return math.sqrt((v1.x - v2.x) ** 2 + (v1.y - v2.y) ** 2)
| [
"hallazie@outlook.com"
] | hallazie@outlook.com |
e3243a6972f33c39d42f612fbabe048acdee4370 | 2a7f59d07ec2fe52084a1077dc0e2e70db429aff | /PetHospital-server/disease/serializers.py | 7608e0c7a9a0bcbff6ad3efc365336c042b9b7d2 | [
"MIT"
] | permissive | Tedstack/PetHospital | b73d9ab0f3aa8f8dba060c17f553125221636a1c | c4b11c82ccd18d8a5277f651befbfa60500bebc6 | refs/heads/master | 2021-04-26T23:09:53.295703 | 2019-08-29T02:14:06 | 2019-08-29T02:14:06 | 123,938,094 | 0 | 0 | null | 2020-07-15T15:35:41 | 2018-03-05T15:18:19 | TypeScript | UTF-8 | Python | false | false | 591 | py | from rest_framework import serializers
from .models import *
class DiseaseGroupSerializer(serializers.ModelSerializer):
class Meta:
model = DiseaseGroup
fields = '__all__'
class DiseaseSerializer(serializers.ModelSerializer):
class Meta:
model = Disease
fields = '_... | [
"1542752218@qq.com"
] | 1542752218@qq.com |
5e76dbde1a46d4f115b4a7aa5778b0877a4af877 | a59a7346a0cc7ed84d091da3784e01f13b67cf17 | /arts/migrations/0001_initial.py | 9a9c4f724c38997d926fd06e58f5ea05bdaed5e4 | [] | no_license | nikhilmuz/RangKshetra-API-Gateway | 5ed66ea851d451125f612c63c5be38026baa567e | b5d4a104ba7eb90dc4074cca16c9d8cdaf2be3f0 | refs/heads/master | 2020-03-28T13:51:33.515582 | 2018-10-12T17:42:36 | 2018-10-12T17:42:36 | 148,435,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-09-03 10:34
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='File'... | [
"nikhil.nikhil.muz@gmail.com"
] | nikhil.nikhil.muz@gmail.com |
f95eb6c548d33fdfb4e4c5bca3aec825ebb08bec | 8957fd60446378ba77d5920c883935bac9275933 | /btools/building/customobj.py | f74c400d927c3004785f0cf10d68d480f9d7714c | [
"MIT"
] | permissive | ranjian0/building_tools | 37f647608873288db3346bc7d2d9e2c97fbefabe | 4a5950ed712b41fa3b953ea4ac3e1b1db8d5f489 | refs/heads/master | 2023-09-04T01:53:35.926031 | 2023-03-12T09:58:05 | 2023-03-12T09:58:05 | 123,632,239 | 831 | 94 | MIT | 2021-02-08T12:58:09 | 2018-03-02T21:22:22 | Python | UTF-8 | Python | false | false | 10,758 | py | """
Tools to allow users to place custom meshes on a building
"""
import bpy
import bmesh
from mathutils import Matrix, Vector
from bpy.props import PointerProperty
from .facemap import (
FaceMap,
add_faces_to_map,
add_facemap_for_groups
)
from ..utils import (
select,
local_xyz,
... | [
"karanjaichungwa@gmail.com"
] | karanjaichungwa@gmail.com |
f170ae73cc32f8a24174a1cab8adf207eff19644 | 68cc812ca27a960b8405523f5b1dfe35380e3ff7 | /python/Flask.py | e74d13a946ee3705ef22d66a2fffa1feec9eded5 | [] | no_license | aloxvok/devopsbc | 7c1bd78456af71ed21e04448fab877b5e4fcfe66 | ba5a5d7a88ada055c86de4249b0de5194a32e741 | refs/heads/master | 2022-11-20T01:26:23.522262 | 2020-07-23T01:53:06 | 2020-07-23T01:53:06 | 266,654,300 | 0 | 0 | null | 2020-05-30T01:24:45 | 2020-05-25T01:14:45 | Python | UTF-8 | Python | false | false | 111 | py | from flask import Flask
app = Flask(__name__)
#@app.route('/')
def hello_world():
return ('Hello, World!') | [
"hpinot9@gmail.com"
] | hpinot9@gmail.com |
0dbdb5ae711a8ff93851753cea7a8f866b145477 | aa0d3ced25b3c919aefab90609acf30b7d242940 | /collatio/migrations/0003_tag_image.py | 5bda8a28ed803f7ac3dd1f336f16f0b23e7778df | [] | no_license | sanchitkripalani47/Collatio | 00428b7bf31a0d418a87f419518ae45832da2294 | 1b5037a3046226b61a41e1925763b246f18b7e6a | refs/heads/main | 2023-05-19T01:53:05.150499 | 2021-06-10T14:49:01 | 2021-06-10T14:49:01 | 343,282,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | # Generated by Django 3.0.5 on 2021-03-14 07:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('collatio', '0002_auto_20210313_2313'),
]
operations = [
migrations.AddField(
model_name='tag',
name='image',
... | [
"sanchitkripalani47@gmail.com"
] | sanchitkripalani47@gmail.com |
1d8a0f6fcb29d01cfa39a81b7af8a2a2e862f97e | f88bc2bfc596908f2155ba0c4e58fce46321d988 | /call.py | daa82ad0b71c3b1b1558f0b515311374c0201ca3 | [] | no_license | FragrantRookie/LMS-ANN-Project | 8c8de8df93f6a5ccf1d391092f8fdcbf93a1f60e | c495bf14afc2fe1dbb6bfdc4f1991839bb3ef432 | refs/heads/master | 2023-04-26T15:58:46.495484 | 2018-11-12T14:06:51 | 2018-11-12T14:06:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,066 | py | from speech_noise_removal_final import RNNFilter
from LMS_tf import LMSFilter
import matplotlib.pyplot as plt
import numpy as np
import matplotlib.ticker as ticker
import pickle
#for learning rate
lr = [0.2, 0.15, 0.1, 0.05, 0.02, 0.015, 0.01, 0.005, 0.002, 0.001] #0.75, 0.7, 0.6, 0.5, 0.4, 0.3, 0.25,
#lr = [0.002]
lr... | [
"rohitkumar97@gmail.com"
] | rohitkumar97@gmail.com |
1344db5d293e0d52eb43ae1b44c466eb59437167 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02380/s484509438.py | 102ce45748de53d8af54b0469dd1cd39937af871 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | import math
a,b,C=map(int,input().split())
radC=math.radians(C)
S=a*b*math.sin(radC)*(1/2)
c=a**2+b**2-2*a*b*math.cos(radC)
L=a+b+math.sqrt(c)
h=2*S/a
list=[S,L,h]
for i in list:
print('{:.08f}'.format(i))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
13d862da3d9fcf0fc7917109af3e9ffbe790f080 | b98d58296d7e69a189015c99c88ac0ca647f6234 | /ContaEspecial.py | fe0c2ca0111cd69572e179f55a4e012d155b6333 | [] | no_license | RaulRory/contabanco.py | 41f9a7f6b98dd91326957455baff3d9537d30b66 | 02d7f7f0a5eb3e37bbb2a3b3c0e5901c05cacd39 | refs/heads/main | 2023-03-15T02:47:35.182091 | 2021-03-20T19:35:10 | 2021-03-20T19:35:10 | 350,049,176 | 0 | 0 | null | 2021-03-21T16:07:57 | 2021-03-21T16:07:56 | null | UTF-8 | Python | false | false | 951 | py | from conta import Conta
class contaEspecial(Conta):
def __init__(self, saldo, numeroConta, nome, salario):
super().__init__(saldo, numeroConta, nome)
self.especial = salario
def criarContaSalario(self):
conta = ContaEspecial()
conta.numeroConta = input("Digit... | [
"noreply@github.com"
] | RaulRory.noreply@github.com |
0b7e9ca017455cdac19f64b9c4f129470f69599f | 677bb2d246c74ce1cacda831e4b1450d93122319 | /src/ng/menus.py | e468078ffa3049d9dd8eaee0766cd4704336aee0 | [] | no_license | skuldug12/networktools | e4b11dbcf0f6893c53ee9700fa758969d35b810d | ca8506cfa6648433be3fa936bdb30b71e1560541 | refs/heads/master | 2020-12-02T09:44:09.651455 | 2020-01-21T12:25:42 | 2020-01-21T12:25:42 | 230,969,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,450 | py | import subprocess
#colors
red = "\033[31m"
green = "\033[32m"
yellow = "\033[33m"
blue = "\033[34m"
purple = "\033[35m"
clear = "\033[00m"
#to look coOoOl
menumessages = ['''
{p}:::!~!!!!!:.
.xUHWH!! !!?M88WHX:.
.X*#M@$!! !X!M$$$$$$WWx:.
:!!!!!!?... | [
"noreply@github.com"
] | skuldug12.noreply@github.com |
c086bf9fd246880d4532c6f16e0c5ef23ca1cd7c | 8e508352419ee63f304648ab6d0fc9a950ba9850 | /app/__init__.py | 40f24c9f1dcbca0695a3f7c921aa2dae90fd123d | [] | no_license | varuntumbe/Mind_readers | 7e4c861dc53667648c56dd57571b12d40b674d0b | 44853887afeb3ddf9b14cfa56c6d8b3827ea86cd | refs/heads/master | 2022-12-26T14:25:55.487500 | 2020-10-05T04:34:27 | 2020-10-05T04:34:27 | 297,246,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | from flask import Flask
from config import Config
from flask_bootstrap import Bootstrap
from flask_sqlalchemy import SQLAlchemy
from flask_admin import Admin
from flask_migrate import Migrate
from flask_security import Security,SQLAlchemyUserDatastore
from app.adminViewModels import HomeAdminView
from werkzeug import s... | [
"varuntumbe1@gmail.com"
] | varuntumbe1@gmail.com |
fd2f9e40af42009d2df03ad31acbf7115cfbdb22 | ec0e202ba914a1d9318c449130eee74223af6c98 | /rememerme/users/client.py | c79c6d6be62bb75e649fba4b1b42f040d57849c3 | [
"Apache-2.0"
] | permissive | rememerme/users-model | 0f07c76bdbabf803fc6b8f6fe4aabcde42fe0e34 | 6b62af077ae93f073e9bb831a82ca8f011697277 | refs/heads/master | 2020-05-17T00:27:01.990149 | 2014-01-18T05:54:46 | 2014-01-18T05:54:46 | 15,694,812 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | import requests
from rememerme.users.models import User
class UserClientError(Exception):
pass
def strip_trailing_slash(url):
if url[-1] == '/':
return url[:-1]
return url
class UserClient:
DEFAULT_URL = 'http://134.53.148.103'
def __init__(self, session_id, url=DEFAULT_URL):
sel... | [
"andyoberlin@gmail.com"
] | andyoberlin@gmail.com |
7573036a1b58cfb47df0a19cefc1cb86c4072450 | abf2e9ddc4c526e402588ca1074687e6386611b5 | /ad-hoc/1708/1708.py | 3823b08e8a6a18b42996609778b5dc993333481b | [] | no_license | flavianogjc/uri-online-judge-python | 199539944066a63164294b2c1af0c32a223bdffa | 146ff723d690c25506081069648ff77dd74c3981 | refs/heads/master | 2022-05-14T21:29:28.687628 | 2022-05-01T17:46:34 | 2022-05-01T17:46:34 | 194,960,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from math import ceil
if __name__ == '__main__':
a, b = map(float, raw_input().split())
r = ceil(b / (b - a))
print(int(r))
| [
"flavianogjc@hotmail.com"
] | flavianogjc@hotmail.com |
12488c093c1b5ac0f706ce9218050aa2dd4bf6e7 | 17dce439a0fee47c783b26f8ff58f6b4b505ca09 | /app/models.py | 3d21b6e64bd314582a9d302282ff43b822ecc2b8 | [] | no_license | cbrincoveanu/django-example | c9b35129ff190da982456f132a8ff373ef71b753 | 0afc8ef5a166cdf920a2a56bc100f39a9d4af714 | refs/heads/master | 2022-12-06T07:41:17.726207 | 2020-08-15T18:22:19 | 2020-08-15T18:22:19 | 287,800,931 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,243 | py | from django.db import models
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.dispatch import receiver
class Currency(models.Model):
name = models.CharField(max_length=100)
abbreviation = models.CharField(max_length=100)
objects = models.Manager()
... | [
"c.brincoveanu@yahoo.com"
] | c.brincoveanu@yahoo.com |
5d1e42d4fcbfa344f5d00f5f5bbb49288f53b5ac | 559995c23c13f67ee6f342389d0db81081207d87 | /prjforinfcreditvilfw/vig/estisimurand/sall_aws_sandbox/template_onefile/esr_s1357_submit_job.py | 9640ff2bd0dc0bdddbcce8ae8bbcf6bb9621c9c1 | [] | no_license | MacroFinanceHub/PrjForInfCreditVilFW | 06a6c475d0c846c1578205e062acb0190bcce1c2 | d2a863656962691f8dc13d205a82c81823040c8b | refs/heads/main | 2023-07-19T05:31:15.992847 | 2021-08-30T14:44:14 | 2021-08-30T14:44:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,237 | py | """
Assume that:
1. Container on ECR has been updated to contain latest pyfan and thaijmp code
2. A task with the task name below has been submitted.
Note that for different invokations, can adjust the default command and compute
size of registered tasks.
Submit two separate tasks, representing two different regions... | [
"wangfanbsg75@live.com"
] | wangfanbsg75@live.com |
93b7f21504d58d63e17f2a7e1435cb78ca6999d6 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part009324.py | cbdf2c82d8e24b917f93048ece6a2aa7d84ec418 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
09e71736e5e525b379bb96c44c6a7660ed347411 | 6a4aa92c8cf0d7f87039ed76b822780bd525c9fb | /Home/urls.py | c3fd8014b4ef616799379978a1ed1f4f4ff90cbf | [] | no_license | ulugbek1025/Search_doctor | 8d30d6bf5a27db7d0232d7daac5f71ced050b0fe | dcfdb521af2dc3fe3127ced410924c297ea34aae | refs/heads/master | 2023-03-22T23:37:17.025941 | 2021-03-23T08:04:17 | 2021-03-23T08:04:17 | 350,627,110 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | from django.contrib import admin
from django.urls import path,include
from Home import views
from .views import(
SpecialtiesList,
ProceduresList,
ConditionList,
)
app_name='Home'
urlpatterns = [
path('',views.index,name='index'),
#Specialties
path('specialties/',SpecialtiesList.as_view(),name... | [
"ulugbekgulomov2525@gmail.com"
] | ulugbekgulomov2525@gmail.com |
76f56cd082fbe1e7dcd760ec81b2e5383bba6cbe | 03c7bed4cbc25c8468f5ccebd71d847ff694d308 | /algoexpert/continuous_median_handler.py | 3b174dee4174a0ff68a677a9f8c78430a0e7ef70 | [] | no_license | besenthil/Algorithms | faff1486c560bafbfd8f6fb7a0422d1b8b795d6e | 5e8a49ffdc7aad1925ef0354208970d3d2cb62d2 | refs/heads/master | 2022-02-14T04:26:09.282976 | 2022-02-13T13:35:12 | 2022-02-13T13:35:12 | 51,376,159 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | class ContinuousMedianHandler:
def __init__(self):
# Write your code here.
self.median = None
self.num_arr = []
self.low_index = 0
# O(nlogn) - time
# O(n) - space
def insert(self, number):
self.num_arr.append(number)
self.num_arr.sort()
if len(se... | [
"besenthil@gmail.com"
] | besenthil@gmail.com |
ff3f576564a64698fd39d488aee3b2df3873b01e | 9d8e2dd4441c50b443390f76c899ad1f46c42c0e | /mit_intro_algos/max_heap.py | 13d0a325af33fa82b8c19924971ba9c0b20d5f14 | [] | no_license | vikramjit-sidhu/algorithms | 186ec32de471386ce0fd6b469403199a5e3bbc6d | cace332fc8e952db76c19e200cc91ec8485ef14f | refs/heads/master | 2021-01-01T16:20:52.071495 | 2015-08-03T17:42:29 | 2015-08-03T17:42:29 | 29,119,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,979 | py | """
Creates a max heap, can also use heap sort algorithm on a pre created array
Uses an array to implement array
My implementation of python heapq module
"""
class MaxHeap:
def __init__(self, ar=[None]):
self.A = ar
if len(self.A) > 1:
self.__create_maxheap()
def __ma... | [
"vikram.sidhu.007@gmail.com"
] | vikram.sidhu.007@gmail.com |
f583736aeb98af156de12d7ff928aca9a305b7c8 | 711756b796d68035dc6a39060515200d1d37a274 | /output_exocyst_tags/initial_7607.py | f3e10cc911458956f628b86bc422c72bf2469275 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,587 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
3df1683b6df43174ed1afbeaa388ebae959d45e0 | 0f0451c1c3e379bb4bdd13af1a1f278a13885c45 | /Tkinter/ModuloTkk.py | e6b7cfbc63a2f0b3245414cee23762ea899698eb | [] | no_license | Nataliodg/Python | 1b860aae5135d9a5d34ca14f74f656adb8e76b11 | 59b66f1f67151eb5c3deec90249077c55291206a | refs/heads/main | 2023-01-07T11:24:45.420199 | 2020-11-14T02:09:02 | 2020-11-14T02:09:02 | 312,727,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,054 | py | #Tk hemos dicho que es una biblioteca de controles visuales que los podemos acceder desde Python y desde otros lenguajes de programación.
#En la versión Tk 8.5 sumó una nueva serie de controles visuales ( Notebook, Combobox etc.) y modernizó los que hemos visto en los conceptos anteriores.
# Para hacer uso de esta nuev... | [
"natadg@outlook.com"
] | natadg@outlook.com |
9fe14f76ed7f167080c56d6ae5377451ea028db9 | 607241e619ca499121106b218a5e00ac5244bda3 | /analysis/zeldovich_enzo_mass.py | 808a1269774d71bef4bd037a05e3c33e5614d2a5 | [] | no_license | bvillasen/cosmo_sims | 37caea950c7be0626a5170333bfe734071c58124 | 8b20dc05842a22ea50ceb3d646037d2e66fc8c9b | refs/heads/master | 2020-04-22T23:22:28.670894 | 2020-01-02T23:32:39 | 2020-01-02T23:32:39 | 114,167,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,713 | py | import sys
import numpy as np
import matplotlib.pyplot as plt
import h5py as h5
import yt
dev_dir = '/home/bruno/Desktop/Dropbox/Developer/'
cosmo_dir = dev_dir + 'cosmo_sims/'
toolsDirectory = cosmo_dir + "tools/"
sys.path.extend([toolsDirectory ] )
from load_data_cholla import load_snapshot_data
from internal_energy... | [
"bvillasen@gmail.com"
] | bvillasen@gmail.com |
f1b5e70d317865f9e1d39f6a0a2dc9db7d644297 | 7dc0d691734741233d94eab627a22087b6b08830 | /dashboard/admin.py | 618045ac9077cee68fb6e2f74e2bda11add3ffc0 | [] | no_license | IshSiva/Paper-Pro | 0aeea869fe5b7c773173c5fbfc41d9109e1ef55c | af85ba3490a92ae0300fa1873524aa9a93604265 | refs/heads/master | 2022-11-20T09:08:40.553150 | 2020-07-19T06:18:05 | 2020-07-19T06:18:05 | 280,803,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | from django.contrib import admin
from .models import Paper
admin.site.register(Paper)
# Register your models here.
| [
"ish23.siva@gmail.com"
] | ish23.siva@gmail.com |
0bf604d36670b6e71f496a6857745f8d1f01a1bc | a316f5ad014ff2dfb0d75bc4e227129eb441aa17 | /portal/models/address.py | 7bea7538eace9892166659354088dd9d9884e4ff | [
"BSD-3-Clause"
] | permissive | jmillr/true_nth_usa_portal | d39fbd3abfc850a92fe84b27981372358ffc7742 | c756147b24cbc6988ac61c601491e4604074c3a7 | refs/heads/master | 2021-07-05T11:34:19.424564 | 2017-09-01T00:16:40 | 2017-09-01T00:16:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,384 | py | """Address module
Address data lives in the 'addresses' table. Several entities link
to address via foreign keys.
"""
from ..database import db
from sqlalchemy.dialects.postgresql import ENUM
address_type = ENUM('postal', 'physical', 'both', name='address_type',
create_type=False)
address_use =... | [
"pbugni@u.washington.edu"
] | pbugni@u.washington.edu |
44c3626a05812bdb86c0889e2b76950d61f74b14 | 387b6a8dfc1cbaff159edbf5bf189efbb3532220 | /apps/awards/migrations/0005_auto_20200112_1930.py | 710a5aca670054b8d91134722f434995ddd00d9b | [] | no_license | jhurtadojerves/characters | 68d9417704c9828cb3ac93ed2dce90b8608a41d4 | c0702ef56890381801de67341e0333fb1060d08d | refs/heads/master | 2022-06-21T20:28:20.270598 | 2022-06-09T14:04:10 | 2022-06-09T14:04:10 | 207,205,432 | 0 | 0 | null | 2020-02-13T15:42:50 | 2019-09-09T02:14:26 | JavaScript | UTF-8 | Python | false | false | 1,742 | py | # Generated by Django 3.0 on 2020-01-12 19:30
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
("characters", "0013_auto_20190913_0939"),
("awards", "0004_category_award"),
]
operations = [
... | [
"juliohurtado@MacBook-Pro-de-Julio.local"
] | juliohurtado@MacBook-Pro-de-Julio.local |
095a75dc9f76da69b03dfe60e9f876793bbe6e88 | 8442bfdedfc18680be49aa77b976ed2732a13d7d | /The_Python_Book/Python_Essentials/scope.py | bff7ee120c0cc79d80c5fd3cfcb22d9706912ce8 | [] | no_license | huegli/Learning_Python | d61a236f85675ae194448bb81ff811708c926dc5 | 88565e623a3b978ce257ea2ea44dd0cfa672fe1b | refs/heads/master | 2020-04-12T01:42:05.388424 | 2018-10-09T00:04:12 | 2018-10-09T00:04:12 | 48,859,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | #!/usr/bin/env python2
cont = False
var = 0
if cont:
var = 1234
if var != 0:
print(var)
| [
"nikolai.schlegel@gmail.com"
] | nikolai.schlegel@gmail.com |
87cea978ed76cf4c8c6ec4a24f6b08a2228227d4 | 5a856ce08fc5df2c13e069bc8e6ab2b88dc97e68 | /programming/epost_zipcode_csv.py | ea0eb3e62ad13bbe44fa01086341fa3ac04e7d9e | [] | no_license | bin7808/teacher6 | b05f30b2ebd7cfb7b0b314832f0d56f192233a7e | bcc08136101979162ff738616fb9eabfd8b757b9 | refs/heads/master | 2021-01-09T06:05:04.862399 | 2016-08-12T07:41:40 | 2016-08-12T07:41:40 | 65,533,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "programming.settings")
import django
django.setup()
import csv
CSV_PATH = '20150710_seoul.txt'
reader = csv.reader(open(CSV_PATH, 'rt', encoding='cp949'), delimiter='|')
from blog.models import ZipCode
columns = next(reader)
zip_code_list = []
for idx, r... | [
"bin7808@gmail.com"
] | bin7808@gmail.com |
def370a2502681e80a7c73419b1dd663c09f1d72 | f41e861a9e4fef4606753de92ed6098ae2f8337e | /tests/tests_during_development/no_edward_tests.py | 2eb4df8ddc73dd57faebd73227a86923bc9ec034 | [
"BSD-3-Clause"
] | permissive | jpimentabernardes/scCODA | cb1910a1fc3339286784a3772f6a51b148f8c240 | db610c1bda904f79a8142da767cf8e62d1cd8d32 | refs/heads/master | 2023-02-16T05:38:10.006874 | 2020-12-08T11:08:16 | 2020-12-08T11:08:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,887 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import tensorflow as tf
import tensorflow_probability as tfp
import importlib
import pandas as pd
from tensorflow_probability.python.experimental import edward2 as ed
from scdcdm.util impor... | [
"johannes.ostner@online.de"
] | johannes.ostner@online.de |
5d9a610b671aea260855ece5544c4f19615d8bfd | cc157f558008596a8cef86fe495fe6166b154c8a | /robust/trig-pca.py | 4537416c5cc8e72ff46f7fffd5ea0fb0f441ca78 | [] | no_license | Albuso0/estimator_test | f2c2d1f1e3e812ed6a1925c70227fae6775836c3 | 085a94e13148c614123fd2277342b452660f47a2 | refs/heads/master | 2021-01-13T00:48:24.926191 | 2019-06-04T03:34:31 | 2019-06-04T03:34:31 | 51,336,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,994 | py | import numpy as np
from numpy.random import randn
from numpy.linalg import eigh, norm
def dist(u,v):
d = len(u)
c = -np.sum(u-v)/d
return norm(u-v+c*np.ones(d))
def lead_eigvec(m):
w, v = eigh(m)
idx = w.argsort()[::-1]
w = w[idx]
v = v[:,idx]
return v[:,0]
def exp(n,d,eps):
x =... | [
"pengkuny@princeton.edu"
] | pengkuny@princeton.edu |
95a8bc7f9e30737cf5cadb80f990f0fd2ae4ece8 | 7092de5632b9f0f07bd3af1d84162c36d83399bc | /20200321.py | 7f1c56773e5aaf7708bfc36fb31596384a560a67 | [] | no_license | wjc1022/hello-python | 96f98a1b51136552128b18a882721c2238db52ce | 9f2b680318d9a051ac10427ca889645f3afd54ec | refs/heads/master | 2021-03-01T06:20:15.383411 | 2020-03-24T14:41:58 | 2020-03-24T14:41:58 | 245,759,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | #廖雪峰 使用list和tuple#
# https://www.liaoxuefeng.com/wiki/1016959663602400/1017092876846880
# -*- coding: utf-8 -*-
L = [
['Apple', 'Google', 'Microsoft'],
['Java', 'Python', 'Ruby', 'PHP'],
['Adam', 'Bart', 'Lisa']
]
# 打印Apple:
print(L[0][0])
# 打印Python:
print(L[1][1])
# 打印Lisa:
print(L[2][2])
# 请问以下变量哪些是t... | [
"61908340+wzy0604@users.noreply.github.com"
] | 61908340+wzy0604@users.noreply.github.com |
8ffa5956491d37c182af81da35db2a86a9de9ff7 | 3b82764ceb20d1d969c66735d0c651f5c59559c2 | /as1/collatz.py | 681dc1e788a3ede8f7828277469d68b0411c3997 | [] | no_license | sawyermade/advanced-python | d4bb24d5b6843cb1150836b2f2613952d542b7af | dff32f8a933f641e1298d702b7ec904cf42c1a7d | refs/heads/master | 2021-08-23T06:40:35.480626 | 2017-12-03T23:38:13 | 2017-12-03T23:38:13 | 105,158,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | '''
Daniel Sawyer Assignment 1 Collatz Fall 2017
'''
def collatz_sequence():
#try and except to make sure input is integer
try:
n = int(input('Enter number: '))
# except Exception as e:
except ValueError:
#print(e)
print('Invalid input: must be an integer')
return False
print()
#if user enter 1, output... | [
"sawyermade@gmail.com"
] | sawyermade@gmail.com |
8742bce90ee9b3cc66ac7fcd32df979e8bd3a412 | c9f70590f9a2c3d5bc89ae03458947245258bc1f | /manim/AnimateExample.py | 1e25ab389beba09fec5f27649de2be7664b0b5a3 | [
"ISC"
] | permissive | thobl/ipelets | 4d3cea5a35098678d2ec3da7f0c137185ae6956e | f197e7ae52547c4ba85d2458ae0013ed8f0169f7 | refs/heads/master | 2022-11-22T01:32:26.972198 | 2022-11-07T16:53:14 | 2022-11-07T16:53:14 | 353,351,287 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,851 | py | from manim import *
class AnimateExample(Scene):
def construct(self):
self.camera.background_color = WHITE
## view 1
object_with_no_label1_v1_points = [
[-4.5511111111111, 1.44, 0],
[-6.1511111111111, 0.48, 0],
[-3.5911111111111, 0.16, 0],
]
... | [
"thomas.blaesius@kit.edu"
] | thomas.blaesius@kit.edu |
00c84dfe665dbb738ca50b70040e7c837c595038 | 4f9930e15c02cb9a09af70d66b794480b8c9bd57 | /hail/python/hailtop/pipeline/task.py | a2472c4ff18e3f5de5f9d7a3a7b3edab693c4253 | [
"MIT"
] | permissive | gsarma/hail | d76aa16d718618c1915b629077fd80cbc4d3b526 | 6aa2d945bb7d57c463d5ab9afb686f18c2941b25 | refs/heads/master | 2020-06-20T06:09:43.408615 | 2019-10-29T21:40:23 | 2019-10-29T21:40:23 | 196,250,453 | 0 | 0 | MIT | 2019-07-10T17:44:48 | 2019-07-10T17:44:47 | null | UTF-8 | Python | false | false | 12,654 | py | import re
from .resource import ResourceFile, ResourceGroup
from .utils import PipelineException
def _add_resource_to_set(resource_set, resource, include_rg=True):
if isinstance(resource, ResourceGroup):
rg = resource
if include_rg:
resource_set.add(resource)
else:
resourc... | [
"daniel.zidan.king@gmail.com"
] | daniel.zidan.king@gmail.com |
1f4b6688675f5b730dc3dd73a877fc56530df03b | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/W_w_Mgt_to_C_focus_div/ch032/Tcrop_s255_p20_j15/pyr_6s/L3/step09_6side_L3.py | bb36cd8c779761d81788e6554c71dce596961f80 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50,455 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
55143682fca9a5a372684fe6877e0b9819391f5a | b83ce8d7edc345c8db38902d08c9b3b6f1ef054c | /new_timsort.py | 1536f80a958be00f7c4705a437c94509544f8037 | [] | no_license | OlegLaiok/cs102 | 2078e9ee1b3fb766a49f93c1817ed550c272d7f7 | 76d2b6a5ebb88b0a5825c3a2f375c8be38cc5637 | refs/heads/master | 2020-08-06T00:02:00.689435 | 2020-06-27T13:40:56 | 2020-06-27T13:40:56 | 212,763,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,794 | py | import random
def GetMinrun(n: int):
r = 0 # станет 1 если среди сдвинутых битов будет хотя бы 1 ненулевой */
while (n >= 64):
r |= n & 1
n >>= 1
return n + r
def InsSort(arr, start, end):
for i in range(start+1, end+1):
elem = arr[i]
j = i-1
... | [
"noreply@github.com"
] | OlegLaiok.noreply@github.com |
daf504ddb048bd9ff53c1be218bdef13eb0e3612 | 978d8f24f4985c61c2dce534a279abe6ffeff433 | /custom_components/blueprint/__init__.py | 7f90a41bded995d9a9e736289b3e45a104db0064 | [
"MIT"
] | permissive | JiriKursky/blueprint | 3c1ad02c4726539ab07fc407b6c53ef4c903448b | 92ae97dc5fec3a9a6e6e14031c32bbf2f1953ff6 | refs/heads/master | 2022-01-27T16:24:27.521422 | 2019-07-20T10:52:46 | 2019-07-20T10:52:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,577 | py | """
Component to integrate with blueprint.
For more details about this component, please refer to
https://github.com/custom-components/blueprint
"""
import os
from datetime import timedelta
import logging
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.helper... | [
"joasoe@gmail.com"
] | joasoe@gmail.com |
30e28adb243535de755e4dcd07f8c888edccef39 | e89fafe220e0ae4a11e542e5f59f7340a6045854 | /ValidationData.py | a78b21d02a14ff9430cbc88bc7e453eb790cb3aa | [] | no_license | jvsd/AOR | 5c389be6d4de887f454933254b0c2c03dfdf8924 | 9389e3ed5b061cf7829b87a2a44f4a824e0330d2 | refs/heads/master | 2016-09-06T19:32:53.679543 | 2012-03-02T09:42:54 | 2012-03-02T09:42:54 | 3,600,062 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,434 | py | from numpy import *
from matplotlib.pyplot import *
import time
from sklearn import decomposition, svm
#from scikits.learn import datasets
#from scikits.learn import decomposition
#from scikits.learn.decomposition import pca
import cv
import Image
#Used to get validation data from an image
def GetData(src):
xt =... | [
"jamesd2@email.arizona.edu"
] | jamesd2@email.arizona.edu |
c7da1a7b1f344da46059afb5af64ce7a6b8cdca0 | 207fa9b8e324506575899a1a4c53d9f60d7020b6 | /negocios/migrations/0010_auto_20170523_1610.py | 826a55fafb273a3115dafcc1cc875449f84ffaf4 | [] | no_license | diegomjasso/MyWashCar | fa11ec6a84ae17a112ed8a5c191bc85a9c21109c | 570317aa8cbe0672f336eee01bcac0c5bfa7ae1b | refs/heads/master | 2021-01-19T10:23:02.389550 | 2017-06-16T03:08:42 | 2017-06-16T03:08:42 | 87,857,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-05-23 21:10
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('negocios', '0009_auto_20170519_1053'),
]
operations = [
migrations.AlterFie... | [
"rogelio.ortiz@softtek.com"
] | rogelio.ortiz@softtek.com |
921a1439c4b41746c803c1027e09f0d1502c2b93 | 55dc6e337e634acb852c570274a1d0358b7300a5 | /tests/core/intz/intz.py | 32ff67f7a362dffe3e6e8699ccb651f1b494c791 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | fifoteam/veriloggen | 97ad45671f053c85f495b08a030f735fd9822146 | 23cb7251c0f126d40d249982cad33ef37902afef | refs/heads/master | 2020-05-27T00:28:37.575411 | 2017-02-20T01:47:00 | 2017-02-20T01:47:00 | 82,518,602 | 2 | 0 | null | 2017-02-20T05:02:37 | 2017-02-20T05:02:37 | null | UTF-8 | Python | false | false | 989 | py | from __future__ import absolute_import
from __future__ import print_function
import sys
import os
# the next line can be removed after installation
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))))
from veriloggen import *
def mkLed():
m = Module('b... | [
"shta.ky1018@gmail.com"
] | shta.ky1018@gmail.com |
5ba6efeb55d7d6654d6594edbbbc36ac84938f00 | 1cf71a4b1c45f622376fd096cabb97052d682a2c | /src/sample/note.py | e09834fcf8e12ef33bbbdc32c7ee81870fd9ad5e | [
"MIT"
] | permissive | TestowanieAutomatyczneUG/laboratorium-10-marekpolom | 9b1c8966a73b29f3961f0f76bb56c9f7819c3483 | ba50ce33735827862d1d432e4348af6fce84ca5c | refs/heads/master | 2023-01-28T22:43:27.776778 | 2020-12-08T16:05:57 | 2020-12-08T16:05:57 | 319,340,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | import re
class Note():
def __init__(self, name, note):
try:
if name == None:
raise Exception('Name can\'t be None')
if not re.search('^[^\s]*$', str(name)):
raise Exception('Name can\'t be empty!')
self.name = str(name)
except ... | [
"marekpolom22@gmail.com"
] | marekpolom22@gmail.com |
83e4a2529c173ab183b0643cb5ba43df7aac40b2 | be0abf6c8027b27407eb5272570c7cd262a74795 | /ex3-self_learning_quant1.py | 42bd4d0c7e25f268ee7b2392521002376a2c8e40 | [
"MIT"
] | permissive | jehung/sl-quant | 70d032c78acd13a71b499d2ffe0fbb2a0a0bc325 | b1eebfa5721dd43171a762b77b1dda180d28b869 | refs/heads/master | 2021-08-15T20:04:05.651975 | 2017-11-18T06:52:27 | 2017-11-18T06:52:27 | 109,555,098 | 0 | 1 | null | 2017-11-05T05:43:37 | 2017-11-05T05:43:37 | null | UTF-8 | Python | false | false | 13,997 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import numpy as np
np.random.seed(1335) # for reproducibility
np.set_printoptions(precision=5, suppress=True, linewidth=150)
import pandas as pd
import backtest as twp
from matplotlib import pyplot as plt
from sklearn import metrics, preprocessing
from tali... | [
"jehung@me.com"
] | jehung@me.com |
39d136944a76de3a92cde68edd3581533364e3f0 | 127fa080496be33be7ac47b0125b8f8b94acf9b1 | /LocalWindows_May2021/PycharmProjects - ee361/Test/venv/Scripts/easy_install-3.6-script.py | 6bf49a4e98cf81e51e22f628d564929b3f93d9fd | [] | no_license | pschmid1818/Clarkson-School-Projects | 53d1ce7c3d62bae34835d5bae78936ea6fe0109b | 88e1e01fa0e512a1f1aaa78882e659682e271672 | refs/heads/master | 2023-05-05T14:30:45.156017 | 2021-06-01T03:33:13 | 2021-06-01T03:33:13 | 372,693,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | #!C:\Users\Schmid\PycharmProjects\Test\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.6'
__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?|... | [
"schmidp@clarkson.edu"
] | schmidp@clarkson.edu |
792ad6eb3efb07738f5be34185c1d02e94374ee1 | fedcfedd334adfca79259cdf1c2366b522dfe07e | /watcher2.py | f95870c13ae6c015105751a25756aeab27b31895 | [] | no_license | Zuya14/watcher | 3d326b6814f62067f472e438aa271e92d6db941e | f6ed00ac3d35f452f04dea3fbdcb0b30ebd8d707 | refs/heads/main | 2023-07-22T18:21:00.027114 | 2021-09-01T00:52:27 | 2021-09-01T00:52:27 | 399,185,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,522 | py | from watchdog.events import PatternMatchingEventHandler
from watchdog.observers import Observer
import os
import time
import csv
import shutil
class FileChangeHandler(PatternMatchingEventHandler):
def __init__(self, patterns, copy_path, degs, margin_time):
super(FileChangeHandler, self).__init__(patterns=... | [
"s.ishizuya@gmail.com"
] | s.ishizuya@gmail.com |
c14e4e6b0c57726048f651e0fe8dfea72fe11593 | be413ec75c6498dd1b4139a530c8b95a479f8501 | /examples/reactor1.py | 2bc24af7b19cd7d8e2334deb584668280a54efa7 | [
"MIT"
] | permissive | Zeracesharon/code_transfer_rt | 9898f4c19df5e452519ca3a385dabcebc999bd1c | b394fb6c322b2dc6f0f5dbcb93baf52f94032772 | refs/heads/master | 2022-12-12T12:01:21.119544 | 2020-09-02T05:44:44 | 2020-09-02T05:44:44 | 291,857,458 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,848 | py | """
Constant-pressure, adiabatic kinetics simulation.
Requires: cantera >= 2.5.0, matplotlib >= 2.0
"""
import sys
import cantera as ct
from time import perf_counter
t0_start = perf_counter()
gas = ct.Solution('ic8_ver3_mech.yaml')
gas.TPX = 1200.0, ct.one_atm*20, 'IC8H18:1.0,O2:12.5,N2:47.00'
r = ct.IdealGasConst... | [
"j51601071066@sjtu.edu.cn"
] | j51601071066@sjtu.edu.cn |
bd2ae9309e7631af3bfdc3ec5029c84fbbf0208c | 69e89c0290ef5d2418a11cb1963a7c14240d120e | /sanic-video-streaming/app.py | c00f35baf9fd11266cdc7d7f877c99f2a35beff8 | [] | no_license | baojiweicn/Thinking-in-Coroutines | 4d0a433c5969c9f3f941dbfea0199bc199383fd3 | b11327fede95384e74a9361841fcb545c310b992 | refs/heads/master | 2020-03-19T01:11:02.387204 | 2018-06-04T09:32:13 | 2018-06-04T09:32:13 | 135,527,997 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | import asyncio
import os
import logging
if os.environ.get('CAMERA'):
Camera = import_module('camera_' + os.environ['CAMERA']).Camera
else:
from camera import Camera
import aredis
from sanic import Sanic, response
app = Sanic(__name__)
app.static('/','./templates')
logger = logging.getLogger('chat')
class Re... | [
"baojiwei@kezaihui.com"
] | baojiwei@kezaihui.com |
a441853d154eee540f32e236f10199178fbec6c4 | 7d12cb2a55406f46c131a53052de610852b8ddff | /event-collector/collector/filter/location.py | fe12a7ecd8a3bfd0b2f4b9e3262a7415fd26c439 | [] | no_license | ivarsv/liepajasafisa | 19015747de7b5d9f72b60512c8433fd62cd6c084 | b0f31069f84cb84c67c5fe01c3d6c78ee0040728 | refs/heads/master | 2020-04-06T06:45:34.475368 | 2013-11-28T18:52:32 | 2013-11-28T18:52:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | # coding=utf8
from collector.model import ComparisonFilter
groups = []
groups.append([u"Jauno mediju mākslas laboratorija", u"Liepājas Universitāte"])
groups.append([u"Red Sun Buffet", u"Kokteiļbārs \"Red Sun Buffet\""])
groups.append([u"Ideju bode", u"Radošā telpa \"Ideju bode\""])
class LocationGroupPriority(Compa... | [
"ivarsv@gmail.com"
] | ivarsv@gmail.com |
68674be51f1c5fc7a44c0f19119a639c39055abd | 661d07470126790629f29efb7aa0f431b771b660 | /test_dataset.py | 80a7cd22518aeee249997e3ca54edae3b0c84256 | [] | no_license | johndpope/fcnn_detector | a43daf38e3736f1644c7340050f5da4ad2147742 | e97525708161b6673ed53324dc5c85370d2f97c6 | refs/heads/master | 2021-01-12T04:40:00.177807 | 2016-10-15T14:15:14 | 2016-10-15T14:15:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,761 | py | """ Create a class to hold the Dataset generation """
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import cv2
import numpy as np
DEBUG = False
class TestDataset(object):
def __init__(self, root_dir):
"""
Creates an instan... | [
"laurent.decamp@gmail.com"
] | laurent.decamp@gmail.com |
9084a6c8e1d09a461a2e3f5b9dbde5c8b8ab30ae | bbb0860aa87d0e49e0e3099b553c744961fb0189 | /ИТОГ ПРОЕКТ СДАЧА/src/utils.py | 6fdaa4b41c9533db57f3b00c6c07a67ef28f687b | [] | no_license | bigdatacon/ML | 16618ffd837c734d2e5d8afae6d0dd1cd7e8c725 | fa6b0a66f9fec5f2e648a8782f7166f9015c5df6 | refs/heads/master | 2022-11-24T06:23:48.377470 | 2020-08-02T19:58:45 | 2020-08-02T19:58:45 | 263,444,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,608 | py | import pandas as pd
import numpy as np
def prefilter_items(data, take_n_popular=2000, item_features=None):
# Уберем самые популярные товары (их и так купят)
popularity = data.groupby('item_id')['user_id'].nunique().reset_index() / data['user_id'].nunique()
popularity.rename(columns={'user_id': 'share_uniq... | [
"noreply@github.com"
] | bigdatacon.noreply@github.com |
1693c758f2c5cf600463f7be6a97c24efec33c8a | 79a5a03461ff0c8905ced690b5c900bc2c031525 | /visualize.py | d6dc0e7cca9ea31634538410556fa76e3549c34b | [] | no_license | himanshucodz55/Social_Distancing_Ai_COVID19 | f5ba1146acf8ead00b944e558aad46313a549076 | ff138b7f3d6d109722a19fbad1b87d68e0da3a5d | refs/heads/master | 2022-12-10T22:58:39.752672 | 2020-09-02T17:43:57 | 2020-09-02T17:43:57 | 292,346,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,401 | py | """
Mask R-CNN
Display and Visualization Functions.
Copyright (c) 2017 Matterport, Inc.
Licensed under the MIT License (see LICENSE for details)
Written by Waleed Abdulla
"""
import random
import itertools
import colorsys
import numpy as np
from skimage.measure import find_contours
import matplotlib.pyplot as plt
imp... | [
"noreply@github.com"
] | himanshucodz55.noreply@github.com |
e7b1a107e606889f4d2ea63f1cc95c913cd2cef3 | 13800b7827598e76428a335559b7bf11867ec2f0 | /python/ccxt/async_support/binancecoinm.py | 62ca72174bcc92699c5987d6f42bca5163a236e1 | [
"MIT"
] | permissive | ccxt/ccxt | b40a0466f5c430a3c0c6026552ae697aa80ba6c6 | e4065f6a490e6fc4dd7a72b375428b2faa570668 | refs/heads/master | 2023-09-04T03:41:29.787733 | 2023-09-03T19:25:57 | 2023-09-03T19:25:57 | 91,253,698 | 30,798 | 8,190 | MIT | 2023-09-14T21:59:09 | 2017-05-14T15:41:56 | Python | UTF-8 | Python | false | false | 1,683 | py | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async_support.binance import binance
from ccxt.abstract.binancecoinm import ImplicitAPI
class binancecoinm(binance, ImplicitAPI... | [
"travis@travis-ci.org"
] | travis@travis-ci.org |
215cc5ac5946240b17dc5fe3748953a92e0992d2 | 2dbcdf568b910af038f62a590e392c9c5d1a22a3 | /.config/ranger/commands.py | 6cb0560216bfbfff53a91008f2f4a07686ba4c4e | [] | no_license | ianisl/dotfiles | ea6b9df7fe67a64d85bcbc5e87869415db2240d7 | ad0f6908e3a01b7e6b21ab58dc6f73763c484399 | refs/heads/master | 2018-11-10T03:51:25.027073 | 2018-08-21T20:12:31 | 2018-08-21T20:12:31 | 116,000,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | from ranger.core.loader import CommandLoader
from ranger.api.commands import *
import os
class show_files_in_finder(Command):
"""
:show_files_in_finder
Present selected files in finder
"""
def execute(self):
import subprocess
files = ",".join(['"{0}" as POSIX file'.format(file.pat... | [
"ianis@ianislallemand.net"
] | ianis@ianislallemand.net |
0f375f087cd13a12480990221f7a3ae09da416aa | cde9386defde630e63c451d7ec49262bf25da615 | /Closer_Django/CloserTest/settings.py | f1f6883bbafba09bb563960eccdcfefa36eda945 | [] | no_license | 10356008/Closer | cd10467bded6f8b433896781e6513fd477f48845 | fd73e67a0dfd953701ce4d031ac823b85f1ec054 | refs/heads/master | 2020-03-30T19:00:21.788899 | 2018-10-22T11:20:19 | 2018-10-22T11:20:19 | 151,190,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,450 | py | """
Django settings for CloserTest project.
Generated by 'django-admin startproject' using Django 2.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
... | [
"10356008@ntub.edu.tw"
] | 10356008@ntub.edu.tw |
6d88e628ec6020fa871cd1298584dd235cb3b37d | e494163449c50ee0251a12130f61d8f236e9b83c | /databases/trip-advisor/parser.py | 79d9f0c635ef6401756cfe1d8aaf6c6c8e6fd5c3 | [] | no_license | prximenes/diversified-group-recommendation- | 705d7a89441d750f358e4b162eacf775404a0de4 | 80e57ec259f0dfeaac96cbfb76d033cadb0f2474 | refs/heads/master | 2020-06-14T23:43:34.319101 | 2019-07-04T02:36:14 | 2019-07-04T02:36:14 | 195,156,475 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,479 | py | #!/usr/bin/env python3
import pandas as pd
import numpy as np
import csv
import os
def add_hotel_info(filename):
datContent = [i.strip().split() for i in open(filename).readlines()]
hotel_id = filename.split('_')[1].split('.')[0]
for item in datContent:
if item != []:
if '<Overall' in ... | [
"prxc@cin.ufpe.br"
] | prxc@cin.ufpe.br |
97fc5940358187146b320b40cc7aa844e2cd0896 | 67c38bc13d2f9807cb4ccdc47a1e1d1f95527ebb | /urls.py | 8978a3553f309e53e3a1bb3e40aa0ffadfd124a7 | [] | no_license | kimjung-eun/jungeun_finalproject2 | baa1a5ac783a79b622f75223aa5d3f05a3e87228 | c6b174a2bffa5d5d8348b2dd8f26dcf41061532f | refs/heads/master | 2023-08-30T05:12:33.180239 | 2021-10-19T11:35:29 | 2021-10-19T11:35:29 | 418,885,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | """finalproject2 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/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... | [
"kje0293@naver.com"
] | kje0293@naver.com |
ddb0511c7da10557a74469f32fdf621eef3c6942 | 3a093f6a40e8fb24957d277ad8f4b097d08c6d04 | /result_scons/tools/cards.py | 289cbf4c6c50e49e16d0902fa369f486a474e093 | [] | no_license | dlont/FourTops2016 | ab9e953760e93b0e777b23478938efd30d640286 | 88c929bf98625735a92a31210f7233f799c5a10c | refs/heads/master | 2021-01-18T22:23:52.796080 | 2019-07-31T12:34:03 | 2019-07-31T12:34:03 | 72,439,490 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,985 | py | #!/usr/bin/env python
"""
Script for Higgs Combine cards creation
"""
import os
import sys
import time
import argparse
import logging
import json
from datetime import datetime
import pandas as pd
import numpy as np
import ROOT
from cards_proc_list import proc_id
from cards_syst_list import systtypelist
from cards_... | [
"denys.lontkovskyi@cern.ch"
] | denys.lontkovskyi@cern.ch |
ca740ae582457f4d38da6e850951c4b048df0f9b | e3fbf247380f21bb309c5fb85620a32c7c0a73ac | /docservice/fonts/font_utils.py | 017b9671a745162110c69526a082053bc52486cd | [
"MIT"
] | permissive | kumardeepak/ExportPDF | 59cad27a6072ca31f63d82ac07f91fe1b273b350 | b336afaf1c023d156e9df3e3f608b8d9366d635a | refs/heads/master | 2023-03-31T00:17:24.397189 | 2021-04-09T06:13:00 | 2021-04-09T06:13:00 | 346,559,150 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | import os
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.ttfonts import TTFont
class FontUtils(object):
@classmethod
def load_font(self, font_name='arial-unicode-ms'):
pdfmetrics.registerFont(TTFont(font_name, os.path.join(os.getcwd(), 'fonts', font_name + '.ttf'))) | [
"0xbeefdead@gmail.com"
] | 0xbeefdead@gmail.com |
6111b1bc7f4ae1ae73387fba875d19819f819d5b | aa7d7099e4d3fede60a177c962f548dbdf1e213e | /utils/clean_ts.py | 16c579615c24607be97305ac6622a15a45050734 | [
"MIT"
] | permissive | NieYi/PyGdalSAR | f7f1ea0b9e3e961438c5f47357e3ec2fd2cf8411 | 7fcda1d927d1274f5419760efb7c0707ae1d44ef | refs/heads/master | 2020-05-27T09:22:55.588790 | 2019-05-23T11:53:43 | 2019-05-23T11:53:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,706 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
############################################
#
# PyGdalSAR: An InSAR post-processing package
# written in Python-Gdal
#
############################################
# Author : Simon DAOUT (Oxford)
############################################
"""\
clean_ts.py
-----... | [
"simondaout@gmail.com"
] | simondaout@gmail.com |
efbbc357d3a95af5916f903b84babff1014b4d80 | 8b115f778e05db8ae4a4cdc412c4d18e31342b3f | /Projects/Simulation/gradSearchNonstop.py | fc69cfa2877dd23cfb79545eecdc565a7c3b815a | [] | no_license | njian/bikesharSimOpt | a6bee8aa8dd066c57722c6977de1f9a938f54992 | 053f7e53a87f9a0ad86faaa77126a6c1392166a3 | refs/heads/master | 2021-03-30T18:04:06.260084 | 2017-08-04T03:35:59 | 2017-08-04T03:35:59 | 42,687,690 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,682 | py | import SimulationRunner_v2 as SimulationRunner
import math, random
import numpy
import time
import cPickle
from collections import Counter
import logging
def simulate(level, sM, durations, rep, seed, mbm, simMethod, startTime, numIntervals):
t0 = time.time()
numpy.random.seed(seed) # starting seed for round of... | [
"nj227@cornell.edu"
] | nj227@cornell.edu |
1b97012401160d2833300c50a56795077b693f9d | 94e8871731fc19f14f087dfa99086623348a35f5 | /r574/B.py | c33d6f646f2c0d9c687d7380a66853d5c699fa92 | [] | no_license | jokkebk/codeforces | 7792eded86c623e8a7d089bfb786619e6ab4a667 | 781b1faee8ab46a2466cafd6c7d75e51db22cf12 | refs/heads/master | 2023-08-10T04:42:01.856401 | 2023-07-28T20:34:33 | 2023-07-28T20:34:33 | 22,697,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | can = lambda n, e: (n-e+1)*(n-e)//2 - e
n, k = map(int, input().split())
a = 0
for i in range(len(bin(n))-3, -1, -1):
if a + 2**i < n and can(n, a + 2**i) >= k: a += 2**i
print(a)
| [
"joonas.pihlajamaa@iki.fi"
] | joonas.pihlajamaa@iki.fi |
7163f816dfd5db84ab30220ee8fb101ce0b68c6c | 66e6360325b781ed0791868765f1fd8a6303726f | /TB2009/WorkDirectory/5173 Pulse Timing/Pion_108538.py | e53460495e0c5366f4f533ec68de84b6c0a8447d | [] | no_license | alintulu/FHead2011PhysicsProject | c969639b212d569198d8fce2f424ce866dcfa881 | 2568633d349810574354ad61b0abab24a40e510e | refs/heads/master | 2022-04-28T14:19:30.534282 | 2020-04-23T17:17:32 | 2020-04-23T17:17:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,320 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("EventDisplay")
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(-1)
)
process.source = cms.Source("HcalTBSource",
fileNames = cms.untracked.vstring("file:/tmp/chenyi/HTB_108538.root"),
streams = cms.untracked.vstring('Chun... | [
"yichen@positron01.hep.caltech.edu"
] | yichen@positron01.hep.caltech.edu |
932d44e25a32ff21e1959a43d5d237c442cbc79f | d9e8996b363cb17282633b5d97ed234fbafa4ed5 | /extrai_frame.py | 72f1a56bbbdb92330c6bb2b1be8eb06f84b1f55e | [] | no_license | cardosolh/MachineLearning | 952e068a05f0a10e5968126780440104bd46cd9a | f711837a27924bfbf4342dc3154dbe2392a597c0 | refs/heads/master | 2020-03-22T13:20:45.639561 | 2018-07-07T14:02:28 | 2018-07-07T14:02:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | import cv2
import os
vidcap = cv2.VideoCapture('videos/video.mp4')
success,image = vidcap.read()
#fps = vidcap.get(cv2.cv.CV_CAP_PROP_FPS)
#print fps
#print fps
count = 0
success = True
cont = 1
while success:
success, image = vidcap.read()
if cont > 27: ###Salta de 27 em 27 frames
cv2.imwrite(... | [
"noreply@github.com"
] | cardosolh.noreply@github.com |
21eba5db11094720bbdfee684ef20dcab683a4ce | d866a4abbfaea885e64a0a55bae4741d964b8e6b | /experiments/example_community_threaded.py | 958fba4329ab3abe50d5d8704d4c01abdb5eab23 | [] | no_license | qstokkink/VisualDispersy | b3c9816f2efc6132758a9077a10c892b2176917d | bd221cb2951574870c9f04253429655ddc9fea0e | refs/heads/master | 2020-12-24T18:55:46.222286 | 2016-05-08T08:40:09 | 2016-05-08T08:40:09 | 57,215,998 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,983 | py | """An example community (FloodCommunity) to both show
how Dispersy works and how VisualDispersy works.
Credit for the original tutorial Community goes to Boudewijn Schoon.
"""
import logging
import struct
import sys
import time
import string
import os.path
# Void all Dispersy log messages
logging.basicConfig(level=lo... | [
"goqs@hotmail.com"
] | goqs@hotmail.com |
b09fa4efa61f4470eac5035edd9f2b31fdba7b31 | 4bedcf0c6b6c9af169f1922423b90e834ff550d1 | /938-range-sum-of-bst.py | b1c8fa80555f4ad670f000252d264a8c1d593740 | [] | no_license | serdarkuyuk/LeetCode | ab5b0b22e6393ff799966cedfa97e5be2ee6163a | 667683835c18c44f01448304a68a22be422bb0d8 | refs/heads/master | 2021-07-03T09:02:51.027772 | 2020-12-26T04:00:47 | 2020-12-26T04:00:47 | 209,383,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | # 10
# 5 15
# 3 7 x 18
# L = 7, R = 15
#
# 10
# 5 15
# 3 7 13 18
# 1 x 6 x
# L = 6, R = 10
class TreeNode:
def __init__(self, val):
self.val = val
self.left = None
self.right = None
mylist = [10,5,15,3,7,None,18]
# left 2*i+1
# right... | [
"serdarkuyuk@gmail.com"
] | serdarkuyuk@gmail.com |
c2ef3fab0167eea4517258f87dd8245c008b5349 | cbaca92f7faf606f3263f72e9d7058610b391cbb | /utils/context.py | 3b0ecb193bd085bbbdcbf9d2edd31c3c2a20c938 | [
"Apache-2.0"
] | permissive | Falsejoey/NabBot | 83bd811e9404bb3f9bfa2064dc70edfc15f29f19 | 296a14c0f205576f90c31578b8c684ab60c92017 | refs/heads/master | 2020-03-24T15:23:26.332312 | 2018-07-24T20:14:24 | 2018-07-24T20:14:24 | 142,788,089 | 0 | 0 | Apache-2.0 | 2018-07-29T19:05:12 | 2018-07-29T19:05:12 | null | UTF-8 | Python | false | false | 10,749 | py | import asyncio
import functools
import re
from typing import Union, Optional, Callable, TypeVar, List, Any, Sequence
import discord
from discord.ext import commands
from utils.config import config
from utils.database import get_server_property
_mention = re.compile(r'<@!?([0-9]{1,19})>')
T = TypeVar('T')
class Na... | [
"allan.galarza@gmail.com"
] | allan.galarza@gmail.com |
606666b357f61e92cee16a6e4c4e25719ab20b3b | 6a7534af8890e92d05634b7fdc84a5995feb5820 | /mysite0/article/migrations/0001_initial.py | 69230fcfec233ef7bd2796cd9f5fea087cb7d40f | [] | no_license | msyyyy/yywdjango | 407115c2b09332683909d910b9eae7bbd6619516 | 1bb1857b2476b9e5f19455002f6c29b7c81aae22 | refs/heads/master | 2020-04-08T15:01:33.291845 | 2019-02-28T14:14:25 | 2019-02-28T14:14:25 | 159,462,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | # Generated by Django 2.1.3 on 2018-11-29 11:57
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Article',
fields=[
('id', models.AutoField(... | [
"243574589@qq.com"
] | 243574589@qq.com |
64fe03e29e8fc14b706bc7544aebfa30cb1ff528 | 45a0234d1c7df8f605a29484fca838ffcbf82ad2 | /clustering.py | 81ee745b519df889fc9741a334cc57bfbedc3aab | [] | no_license | Dhavin/Sentiment-analysis-for-Stock-market | ba44cb51672094f53c1b328fed39b225147660ff | b2d18aabd04e1cfadd5694172c9daeb606cc944a | refs/heads/main | 2023-04-09T06:59:38.905926 | 2021-04-23T18:23:54 | 2021-04-23T18:23:54 | 360,968,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,686 | py | import pandas as pd
from scipy import stats
from sklearn.cluster import KMeans
from sklearn.decomposition import PCA
import matplotlib.pyplot as plt
import seaborn as sns
import sys
#from mpl_toolkits.mplot3d import Axes3D
f = input('Enter a Stock : ')
df = pd.read_csv('sentimentdata/'+ f +'sentiment.csv',inde... | [
"noreply@github.com"
] | Dhavin.noreply@github.com |
a6a347bcf7b13c2043bbaeac195ca1cbb8d5904d | a837ba2fd2423a149b952d8ec27c7a08caf00b4f | /Input/venv/Scripts/easy_install-script.py | 7860f47d6ae26894852a1f6183b4778723c2378a | [] | no_license | MajidSalimi/Python-Learning | 7b4ab7834d6391406b8e10f1ad0c43a8e40b5ca6 | eca845bf2f4fecd89540399bd09282971808fedf | refs/heads/master | 2021-04-02T02:14:30.855096 | 2020-03-28T16:34:23 | 2020-03-28T16:34:23 | 248,233,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | #!"D:\My Codes\Python\Python-Learning\Input\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... | [
"majidsalimib@gmail.com"
] | majidsalimib@gmail.com |
7c90494584f621071a20521100575a99fac1e69a | 2ac003feba0877c9c5aac73da69e778909daf4d1 | /python_notes/python_102/nested_list/nested_list.py | d9595014d16e1f91f223eef767f22674afbc5197 | [] | no_license | rcollins22/ClassNotes | 5aefc6f2027ce32b3bda3a00751b48869b34e137 | 0ce39f9170beafc1fb949f2327902d878c14b593 | refs/heads/master | 2023-03-03T15:19:57.846513 | 2020-08-24T15:00:59 | 2020-08-24T15:00:59 | 269,222,537 | 3 | 1 | null | 2023-02-28T23:01:50 | 2020-06-04T00:20:50 | JavaScript | UTF-8 | Python | false | false | 2,062 | py | """ #STRINGS AND LISTS CAN BE NESTED TOGETHER IN AN ARRAY #LISTS CAN BE MADE UP OF OTHER LISTS!!###
atl=['buckhead',
['krog','westside','o4w'] ,
'hapeville'
]
print(atl[1]) #PRINTS ['krog', 'westside', 'o4w']
print(atl[0]) #PRINTS 'buckhead'
... | [
"rashad.collins22@gmail.com"
] | rashad.collins22@gmail.com |
76330de0a4c96a0b15569777959c84585de7152f | a5a76c9fc62917fd125b2b8c1e1a05abf50cd3f6 | /models/necks/basic.py | 49a67c24acf51c69c50332af61f221fc5018fe6b | [
"Apache-2.0"
] | permissive | CV-IP/ACAR-Net | cf8b1f4ce088a076fb85ed94dbe189c205a9f9a5 | d684203eabda68b882c0b959b69e44a7bab1f247 | refs/heads/master | 2023-08-18T19:39:20.211051 | 2021-10-08T09:20:14 | 2021-10-08T09:20:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,368 | py | import torch
import torch.nn as nn
from .utils import bbox_jitter, get_bbox_after_aug
__all__ = ['basic']
class BasicNeck(nn.Module):
def __init__(self, aug_threshold=0., bbox_jitter=None, num_classes=60, multi_class=True):
super(BasicNeck, self).__init__()
# threshold on preserved rati... | [
"siyuchen@pku.edu.cn"
] | siyuchen@pku.edu.cn |
181b41fd843958312207675173b1998d69b55da7 | e2efe41ab152c58dc0c1786f0859e6c6b6c4dafd | /info/modules/profile/__init__.py | 548a39d31bbd8861fda7850b893730da729123ad | [] | no_license | lyancode/information_test | 5c8010a87078c43b22c86c73bd27a7326eaa60ca | 463a08b3d78d12cb0b5aef12ee9d9f884ec187bd | refs/heads/master | 2020-04-01T06:56:32.718491 | 2018-10-24T02:42:12 | 2018-10-24T02:42:12 | 152,970,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | # 登录注册的相关业务逻辑都放在当前模块
from flask import Blueprint
# 创建蓝图对象
profile_blue = Blueprint("profile", __name__, url_prefix="/user")
from . import views | [
"liyan__mail@163.com"
] | liyan__mail@163.com |
27f9922179f74d0548db5048709e1cebd75eb668 | 2b99ae73409249692f45cc0175e52848cd048263 | /code/src/plan2scene/texture_prop/tp_models/simple_gated_gnn.py | b38d90e869cb901a5628e659ee345888cdf29287 | [
"MIT"
] | permissive | ViLahte/plan2scene | dc3521ec6262947e0ed1e8c15f8e2db77fc1c095 | b1310e7885dd74bd93a7f93ff4dacdb25ae704e4 | refs/heads/main | 2023-06-15T15:30:13.226011 | 2021-07-01T20:29:15 | 2021-07-01T20:29:15 | 377,935,065 | 0 | 0 | MIT | 2021-06-17T19:05:07 | 2021-06-17T19:05:07 | null | UTF-8 | Python | false | false | 3,472 | py | import torch
import torch.nn.functional as F
from torch import nn
from torch_geometric.data import Batch
from torch_geometric.nn import SAGEConv, GatedGraphConv
from plan2scene.config_manager import ConfigManager
def generate_extended_linear(count: int):
"""
Returns a helper method which generates a sequentia... | [
"mvidanap@sfu.ca"
] | mvidanap@sfu.ca |
e5a704d957c0c637f67a74b1e84a70c337b2c631 | 09445fa6d9a8ffbe8af93b2054d1c0d6ef541b9a | /accounts/views.py | 1dc237fc076e193d682c2fcae85d0024fe4ace4c | [] | no_license | besssli/CSX2018DjangoTest | e610bd86cd980399cad2aa13689d7ef8ac165f0f | d951c73eb3bdf1a41c9363de57e2a27020818226 | refs/heads/master | 2020-03-29T09:05:51.938765 | 2018-11-09T01:32:38 | 2018-11-09T01:32:38 | 149,741,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,208 | py | from django.shortcuts import render, redirect
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
from django.contrib.auth import login, logout
# Create your views here.
def signup_view(request):
if request.method == 'POST':
form = UserCreationForm(request.POST)
if form.is_val... | [
"32564690+besssli@users.noreply.github.com"
] | 32564690+besssli@users.noreply.github.com |
97d64b5f37844028007a1cfea36d95e2507f501c | e212d9b85df5962c8ebf9e737b825fa3fe89f3d6 | /WaveRNN/utility/text/__init__.py | 0b9d8cc2401057deb5c8f63699658b5395afb09c | [
"MIT"
] | permissive | sankar-mukherjee/Expressive-Speech-Synthesis-Research | 9c3ea564509324dbfe033a328edd45aa7bffeffa | d85a067a131c04944f5bbe7fa7ab8c26e7d83800 | refs/heads/master | 2023-01-28T05:01:17.371683 | 2020-12-16T11:43:15 | 2020-12-16T11:43:15 | 294,351,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,187 | py | """ from https://github.com/keithito/tacotron """
import re
from utility.text import cleaners
from utility.text.symbols import symbols
# Mappings from symbol to numeric ID and vice versa:
_symbol_to_id = {s: i for i, s in enumerate(symbols)}
_id_to_symbol = {i: s for i, s in enumerate(symbols)}
# Regular expression ... | [
"sankar1535@gmail.com"
] | sankar1535@gmail.com |
a23cc982e760acbf55a579b0d8829327af32289b | e9a33230671bd7e099c11943ec056f84b6a9e24b | /jaal_call.py | b2ae8e2a72ebbbaeda09cb9d5df50b979976757a | [
"MIT"
] | permissive | Olshansk/jaal | 52c49dcaaa1d4be21d1474c7739f4e5af9eb971a | 2b1e4696ca0d3d8f074827e5ae2943817eaa88e7 | refs/heads/main | 2023-05-31T13:45:57.443046 | 2021-05-23T09:42:57 | 2021-05-23T09:42:57 | 340,232,097 | 1 | 0 | MIT | 2021-02-19T02:04:16 | 2021-02-19T02:04:16 | null | UTF-8 | Python | false | false | 526 | py | # import
from jaal import Jaal
from jaal.datasets import load_got
# load the data
edge_df, node_df = load_got()
# define vis options
vis_opts = {'height': '600px', # change height
'interaction':{'hover': True}, # turn on-off the hover
'physics':{'stabilization':{'iterations': 100}}} # define ... | [
"mohitmayank1@gmail.com"
] | mohitmayank1@gmail.com |
cc60ef58e4a055c25e2d8445b6458c78dbffbca6 | c171c9a15a782635477a95693349e6d76531ca84 | /maps/utils.py | a132652e6f3ecd51e5b68923c5b5c812025c0a94 | [] | no_license | xiaoyali97/CS61A | 5a9d1e9f57135ab576d5c6599d327c305db4fb17 | f8dffa388b04ca535e8d43f3e5342d356a58a246 | refs/heads/master | 2020-03-18T10:52:05.434470 | 2018-05-24T00:05:55 | 2018-05-24T00:05:55 | 134,637,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,309 | py | """Utilities for Maps"""
from math import sqrt
from random import sample
# Rename the built-in zip (http://docs.python.org/3/library/functions.html#zip)
_zip = zip
def map_and_filter(s, map_fn, filter_fn):
"""Returns a new list containing the results of calling map_fn on each
element of sequence s for which ... | [
"lixiaoyachina@hotmail.com"
] | lixiaoyachina@hotmail.com |
ee763c76f0898b4f6f1fde32c910a76b592f04fa | 1e5f62eab69973af4ae8641c69bf730232b84549 | /src/test/debug/test | fd48f22c770f4aaf53e89e94021b48ae56f5b628 | [
"MIT"
] | permissive | sbrichardson/aphros | c85e37d052df07f4f9971244c49f3713ffac77a5 | 3f93f4aa83c8ad36cb2f9ed9bd522f4a019829b0 | refs/heads/master | 2023-03-09T22:53:51.830606 | 2021-02-25T22:49:07 | 2021-02-25T22:49:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | #!/usr/bin/env python3
import aphros
class Test(aphros.TestBase):
def run(self):
self.runcmd("./t.debug | ./strippath > out")
return ["out"]
Test().main()
| [
"kpetr@ethz.ch"
] | kpetr@ethz.ch | |
1f1529473302b02d543365662b5ea486c153d200 | 0cf7dd2c3c0b28b52f1273e8fe2ea0a87cacc6af | /ToLeftandRight.py | b17d2c4f0c6445bb843c71a099e74b7f273f481e | [] | no_license | EngrDevDom/Everyday-Coding-in-Python | 61b0e4fcbc6c7f399587deab2fa55763c9d519b5 | 93329ad485a25e7c6afa81d7229147044344736c | refs/heads/master | 2023-02-25T05:04:50.051111 | 2021-01-30T02:43:40 | 2021-01-30T02:43:40 | 274,971,215 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # ToLeftandRight.py
nums = []
num_of_space = 0
current_num = int(input("Enter a number: "))
nums.append(current_num)
while True:
num = int(input("Enter a number: "))
if num > current_num: num_of_space += 1
elif num == current_num: continue
else: num_of_space -= 1
current_num = num
nums.a... | [
"60880034+EngrDevDom@users.noreply.github.com"
] | 60880034+EngrDevDom@users.noreply.github.com |
3cc3eff0e75bc844fb12fcaa253b0afbd4c3e476 | 1a6d5f58a5aaf478e3af1a880f155a2bcbd06aff | /PX4/MAVSDK-Python/offboard_velocity_body.py | d14407e6d1504bb49547099d1e336c087e9f2eaa | [
"MIT"
] | permissive | yingshaoxo/suicide-squad | 5b8858376bffe9d80e66debbd75e83b6fb6f5b6e | cadbd0d48e860a8747b59190fc67a5a114c3462b | refs/heads/master | 2020-11-24T02:46:38.604339 | 2019-10-29T05:47:44 | 2019-10-29T05:47:44 | 227,932,669 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,055 | py | #!/usr/bin/env python3
"""
Some caveats when attempting to run the examples in non-gps environments:
- `drone.action.arm()` will return a `COMMAND_DENIED` result because the action requires switching
to LOITER mode first, something that is currently not supported in a non-gps environment. You will
need to tempora... | [
"yingshaoxo@gmail.com"
] | yingshaoxo@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.