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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9037fea8b32668ad4bdf3b6c2e500e8da188faa2 | f337005c9d75df4acca5dc50356ce6f74f8f8863 | /API/test.py | 1058e5e1855fd531b6d45c6d3bf1db34d2dfde12 | [] | no_license | Ayoub-adil/SmartHomeWeb | dd95958b9d1ad6ac1188eb30a51a54fbba12f693 | 73230074505a495fb8f2cf91a530bcc293d05cbb | refs/heads/master | 2022-11-20T19:10:33.613959 | 2020-07-15T22:58:47 | 2020-07-15T22:58:47 | 262,771,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | import firebase_admin
from firebase_admin import credentials
from firebase_admin import firestore
cred = credentials.Certificate("./API/db-fb-1609e-firebase-adminsdk-f948g-0bcbc6ee26.json")
firebase_admin.initialize_app(cred)
db = firestore.client()
# docs = db.collection(u'users').document(u'hey').delete()
| [
"imane.chbira@gmail.com"
] | imane.chbira@gmail.com |
f175f5f94896825627828fc24f5239bca5b554fd | abab99bfc6570d0ce6257d74988572173c31ee6f | /WordBreak2.py | 93fc221f9769fe2436b914144dcbb8f7aacbe352 | [] | no_license | jaly50/LeetCode-python | 598420daa0bf00a946796f91a5736b56124143cb | 67a46bc37b19cb9930ae2c792a02978b35b08907 | refs/heads/master | 2021-01-17T09:41:30.798692 | 2016-04-11T00:14:47 | 2016-04-11T00:14:47 | 31,614,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,142 | py | # https://leetcode.com/problems/word-break-ii/
# Word Break 2
# Scarlett Chen
# 6/3/2015
# 好久没有自己debug那么久的代码了,这个故事告诉我。以后还是看vote抄一抄就好吧= =
# 我的方法还是挺好的。最开始在result里直接存 到现在为止的string有哪些,这样会memory exceed
# 然后从n downto 0, result[i]存下一次词的位置。再backtracking. 懒得用dfs,就用了数组迭代..
# 遇到了数字转字符再转数字的问题 怒而用str(unichr()) 和 ord()
def wordBreak... | [
"scarlett.chen50@gmail.com"
] | scarlett.chen50@gmail.com |
3ce6926611e324f3849b4f8902c3ab1deb87f749 | 2e19a0edc5ef2fcc29fbb43268a76619fffdd426 | /spatial_efd/__init__.py | e2a5e336580252201215b015248d986ab81ea37f | [
"MIT"
] | permissive | babak77/spatial_efd | 5355842fc5026654e5732a81099cc789477aa96b | bdbaa382aafde3c4ad961fc10b8cb2bbb300fd48 | refs/heads/master | 2021-01-21T11:19:07.378001 | 2017-02-28T17:06:07 | 2017-02-28T17:06:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | from spatial_efd import *
| [
"s.grieve@ed.ac.uk"
] | s.grieve@ed.ac.uk |
165d4c80e67fae578ebfb6ecf29907dbf659ef0a | ebdcd98189ecf66ff762af14227c90989ff7992f | /Sets/set-discard-remove.py | ab2235ff3b852b3b1bf8acd18d6ac1b85df94e84 | [] | no_license | rahulthankachan/CodeSol | 9521ccf8b39c8b1e8e8d147913f40e67fddf272a | ffc0391f4331afd798de3a6ba89631de9da26a4c | refs/heads/master | 2020-04-15T14:30:18.278470 | 2016-11-07T08:35:21 | 2016-11-07T08:35:21 | 48,138,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | number = int(input())
set_total = set(map(int, raw_input().split()))
n_commands = int(input())
for i in range(0,n_commands):
command = raw_input().split(' ')
true_command = command[0]
if true_command == 'pop':
set_total.pop()
elif true_command == 'discard':
set_total.discard(int(comman... | [
"thankach@usc.edu"
] | thankach@usc.edu |
6ae5c7c9bff0311ff417247e82afc5e2ddf2d937 | 8c0857aa90eefb4f19842a242d42c9ad2194a33e | /graficas2.py | d5e3182102843531e6adcc903cb705e69fde1e8f | [] | no_license | fuentes145/pithon | e889de961d0dbd163f995b648acbf96ccbf21eed | d812c5d36597d6e5c1c5b105f1ce4a8903825f08 | refs/heads/master | 2022-12-15T10:55:32.633147 | 2020-09-15T21:44:06 | 2020-09-15T21:44:06 | 275,027,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,745 | py | import sys
import numpy as np
import matplotlib.pyplot as plt
import sympy as sp
# termo panel 0.068
# https://www.academia.edu/31068192/Coeficiente_de_conductividad_t%C3%A9rmica_para_Vidrio_Volcanita_y_Termopanel
# cilicona 0.22
# 0,18 W/Km
# https://tecnologiadelosplasticos.blogspot.com/2011/06/propiedades-termica... | [
"ffuentes3@uc.cl"
] | ffuentes3@uc.cl |
ddd55361d890087e074caaf9775d169407998eec | 911cb2d259784d7c1bacf75e8cf8903546382a26 | /args.py | ce25172db7b52ae2b5e66d1d79402a2f71f8d56c | [] | no_license | hannahvo88/inclass | fbbf342c4993fd555c6246633b247435a0f58de5 | 6f98a0160817235cb07582cc918b49249d50edff | refs/heads/main | 2023-08-12T19:32:04.002559 | 2021-10-02T19:48:07 | 2021-10-02T19:48:07 | 412,895,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | import sys
if (len(sys.argv) > 1):
print(sys.argv[1])
else:
print(sys.argv)
# argv[0] is the name of the script
print(sys.argv[1])
print(sys.argv) | [
"hannah88.vo@gmail.com"
] | hannah88.vo@gmail.com |
c6ef0bbf746293f89b82370e3fd7fab8eec7eb5b | 9bc1a43346c0f749ca94e57e626959c482bb84aa | /src/calibrate.py | 376a0eb1e5c432da63b13a0d8eb682192f6693d7 | [
"MIT"
] | permissive | niteshjha08/Advanced-Lane-Lines | 2b185f40d195a78a9d00dd45664dfc90d6e08016 | 8937183559acb7999be2b7a0684ed10beffe9797 | refs/heads/master | 2023-01-07T05:30:20.927597 | 2020-10-25T12:11:19 | 2020-10-25T12:11:19 | 303,503,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | import cv2
import numpy as np
import os
import pickle
calib_dir='camera_cal'
img_paths=[]
nx=9
ny=6
imagepoints=[]
objectpoints=[]
for dir,subdir,filename in os.walk(calib_dir):
for file in filename:
if(file.endswith('.jpg')):
img_paths.append(os.path.join(dir,file))
objp=np.zeros((54,3),dtype=n... | [
"niteshj818@gmail.com"
] | niteshj818@gmail.com |
94288c8fa40f46468868a74f136295a906bca52a | bfb6ca29a6f0f1557816eaccb9fa317423180cd2 | /blackSMSD.py | 6adf498c24db668bf47d9b95c4c593dace1a1d68 | [] | no_license | jfsuarezb/Illusion | d071714a7819c71a582f007a65d7d83d9b7e841d | 8b80bed7bbe79e907070554daed3d10f14a22d2d | refs/heads/master | 2020-07-06T06:00:12.297192 | 2019-09-01T20:39:20 | 2019-09-01T20:39:20 | 202,914,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,992 | py | from __future__ import division
from tkinter import *
import time
import math
import balls
import random
colorDict = [
"blue",
"red",
"yellow",
"orange",
"green",
"purple",
"cyan"
]
WIDTH = 800
HEIGHT = 800
colorRange = (10,40)
colorSpeed = 0.1
MoveSpeed = 5
def give_move(xball, yball, xc... | [
"jfsuarezb@icloud.com"
] | jfsuarezb@icloud.com |
332e9a6221f06c2b5435163a64a12ab376adf883 | 85afa2d2758ea6d55ab66f013de48539f24ac885 | /src/modules/detector/detector.py | ad654804a9e08013a4c3dcf9dc2d51ee13336080 | [] | no_license | jaivalis/uasVision | fe10f35b78c306d58f5bd99a8441168c9ed09fbc | c8acf9eabc9d71f51d288c5608eac88c694d0c3f | refs/heads/master | 2016-09-06T07:11:20.101671 | 2014-07-08T18:15:56 | 2014-07-08T18:15:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,610 | py | import numpy as np
from modules.datastructures.patch import Patch
from scipy.misc import imresize
import cv2
class Detector(object):
def __init__(self, classifier, frame_feed):
self.classifier = classifier
self.frame_feed = frame_feed
def classify_all(self):
frame = self.frame_feed.ge... | [
"johnaivalis@gmail.com"
] | johnaivalis@gmail.com |
2cb4b083ee447569c88b4de34640dfe5f9e82313 | 2e83416936414de8ac6902549172495bcf295da5 | /exercise_assistant/tools/collect_data.py | 17f64aa1f7f165f62e09c2d265c2275c08314b39 | [] | no_license | moonbeam5115/exercise-assistant | 7ea24c3054c9b1deaa6415bc5d09bc487cc8fbf5 | 9f248d7faf877384545cdd097a456c52f7b096ce | refs/heads/main | 2023-07-12T02:02:34.987854 | 2021-08-19T00:05:29 | 2021-08-19T00:05:29 | 395,386,950 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,583 | py | import os
import shutil
import numpy as np
import cv2
import time
import mediapipe as mp
import pyttsx3
from exercise_assistant.tools.pose import Estimator
import argparse
parser = argparse.ArgumentParser(description='Collect Some Data for Computer Vision Applications.')
parser.add_argument("--videos", default=30, he... | [
"fabritecht@gmail.com"
] | fabritecht@gmail.com |
ec88945a95cd6fbfb280e0ebea3be54e239f63c2 | 4938f6f2d06c35218ca9f0958caaf39603f0ce52 | /python/housinginsights/sources/base_project.py | 7503c067e8f4248220e88b69100f7f4dde6d2940 | [
"MIT"
] | permissive | jgordo04/housing-insights | d61257e4216bfd6df1a1ecaad1fe7b4faa7cb257 | c65b9a4ce3d3c6b8693b42f1e1dba6fb7328a380 | refs/heads/dev | 2021-01-19T21:43:52.261168 | 2017-08-27T21:46:18 | 2017-08-27T21:46:18 | 88,693,178 | 1 | 0 | null | 2017-04-19T02:49:33 | 2017-04-19T02:49:33 | null | UTF-8 | Python | false | false | 8,377 | py | """
Base Api Connection classes.
"""
from urllib.parse import urljoin
from datetime import datetime
from uuid import uuid4
from housinginsights.config.base import HousingInsightsConfig
from housinginsights.sources.models.pres_cat import PROJ_FIELDS, \
SUBSIDY_FIELDS
from housinginsights.tools import dbtools
impo... | [
"humphrey.neal@gmail.com"
] | humphrey.neal@gmail.com |
cd11b8a98a6b6c59ac51c3eb270d5295b233af43 | 45f1af1ef28ca98cc44a47afe35188d9dd55a11d | /problem_sets/contacts.py | c86cb08773f071035cf593638eaaf9834ea97336 | [] | no_license | cristinalo/lps_compsci | 19709bda0686544a68105da337083735030936bf | 85b4f3773ef970564e2f269bf8148032dfc531fb | refs/heads/master | 2020-12-24T12:00:44.981981 | 2017-05-01T04:31:13 | 2017-05-01T04:31:13 | 73,103,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | number = True
contacts = {}
while number:
print("Welcome to Contacts!")
print("What would you like to do?")
print("(1) Add a phone number.")
print("(2) Print the full list of contacts.")
print("(3) Enter a name to retrieve that contact's phone number.")
print("(0) Exit the Contacts app.")
response = int(raw_inpu... | [
"rc.lopez.cristina@leadps.org"
] | rc.lopez.cristina@leadps.org |
b8015551fc1363e7dfd65e7ebdca7c5f291d4904 | 34fd5b49a3e91ba35d0cccba9010e9d248df3022 | /OnlineShoppingApp/views.py | 983f5c49fbdc63295a936b364e7b7499002e2cdd | [] | no_license | BAnanthu/OnlineShoppingApp-Django | b55d90a176f04587a05427b34498ddf38d64a4d9 | c76a37b438e4047afbc24edd50c8eda6d7ade285 | refs/heads/master | 2022-11-29T07:09:38.146286 | 2020-08-03T11:20:25 | 2020-08-03T11:20:25 | 275,835,749 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,859 | py | from django.shortcuts import render,get_object_or_404
from django.http import HttpResponse
from Products.models import Product
from Products.models import TodaysDeals,NewItems,OfferZone
from Cart.models import AddToCart
# from .forms import UserSignupForm
from django.contrib.auth.models import User, auth
from django.co... | [
"ananthu3454@gmail.com"
] | ananthu3454@gmail.com |
cdece16277c8131ba70cbdc6353ed0d264ccb6af | 6997945dc25f10c03a3df729c3bf47afce63b7ce | /users/admin.py | 50d3af475636896a077c0a5b4cb6606e79108817 | [] | no_license | matchjob/Portal | f0a7a51026dd0f037e441287df34caf424858b19 | afec211dd73bd73b2ff9130c54a9198414a6d0f2 | refs/heads/master | 2023-08-18T15:08:55.524408 | 2021-09-13T14:26:21 | 2021-09-13T14:26:21 | 402,638,075 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(Profile)
admin.site.register(UserSkills)
admin.site.register(UserSoftSkills)
admin.site.register(UserLanguages) | [
"acastillo@logsys.com.mx"
] | acastillo@logsys.com.mx |
64c3b8b668d69a477cac0e8de5b93467c85dca06 | 3b601a6ba5f29ff2b437e4c0f82c067230dd36f9 | /config/__init__.py | 75af1e3fdbdac5b851f401649e9294d2ec551e13 | [] | no_license | 1431241631/acc_manage_1 | bdf3c165b7b137d50e6ea5de351ddd5d63a2c651 | b54cfb3089fc3977f8dffafb4ecdd29d6d78c264 | refs/heads/master | 2023-06-20T02:14:34.838025 | 2021-07-18T14:11:53 | 2021-07-18T14:11:53 | 387,191,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # -*- coding: utf-8 -*-
# @Time : 2021/4/22 14:12
# @Author : #
# @File : __init__.py.py
# @Software: PyCharm
import yaml
import os
'''
设置当前工作路径
如果屏蔽这段代码会导致找不到*.yaml文件
这取决于导入该包的文件路径
'''
config_file_path = os.path.dirname(__file__)
with open(os.path.join(config_file_path, 'db.yaml')) as f:
DB_Co... | [
"1431241631@qq.com"
] | 1431241631@qq.com |
ea859bb30229d19394d6268d86077f0e7ca35c3e | 6ab0704b510febe8eee3fcec0ecc94713d022f48 | /tf_ops/interpolation_3d/tf_interpolate_op_test.py | e86c8445fe318b41a6244d2ccbe3000212a3549f | [
"MIT"
] | permissive | jinyier/ai_pointnet_attack | 75ebe28bf58df17e1f67f593cee6791af9fb21ad | 4ef16a898f99e825c445ebc7aad7ba1fd953f8f0 | refs/heads/master | 2022-04-16T00:52:28.440182 | 2020-03-28T02:31:39 | 2020-03-28T02:31:39 | 222,159,085 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | import tensorflow as tf
import numpy as np
from tf_interpolate import three_nn, three_interpolate
class GroupPointTest(tf.test.TestCase):
def test(self):
pass
def test_grad(self):
with self.test_session():
points = tf.constant(np.random.random((1,8,16)).astype('float32'))
print(points)
x... | [
"ilms49898723@gmail.com"
] | ilms49898723@gmail.com |
55066d351456806918e16de4f90fa5a40c4fc112 | 3ab97361bdc0c1b392d46c299a0293e16be577fa | /home/migrations/0002_load_initial_data.py | 206a0bf2e653e72367f7fdaa30d0dc0414a2394b | [] | no_license | crowdbotics-apps/mason-21411 | 2f191039aedb0f66c2acc9fb5c6e022a00a1ba5a | 1456b83bde0c15151ac78218ae2fd3391ddb8c31 | refs/heads/master | 2022-12-30T03:26:44.899130 | 2020-10-12T19:05:12 | 2020-10-12T19:05:12 | 303,487,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "mason"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
hom... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d497eb03a632c5efe5e949e8184828ff1180f761 | 5a6001f80c37667e23562d15af77ef0267eb5fa1 | /server/dog/models_settings.py | 85bbc856dfa7039e5fdfd4873c689db8badf1535 | [] | no_license | Foton512/dognet | 9a5d1acc34655c2678e67c87be5fe810b0525e25 | c3a95c1ad2dc5652d13c4c5571d7f32658f2e924 | refs/heads/master | 2016-08-12T23:14:19.399280 | 2015-11-15T10:47:45 | 2015-11-15T10:47:45 | 44,663,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,071 | py | # -*- coding: utf-8 -*-
walkTimeout = 10 # In seconds
pointsDistanceThreshold = 2 # In meters
closeDogsDistanceThreshold = 10 # In meters
homeDistanceThreshold = 500 # In meters
closeDogEventsToStore = 500
achievementDescriptions = {
1: u"Бро",
2: u"Первая кровь",
3: u"Гуляка",
4: u"Боевое крещение"... | [
"dcherkasov256@gmail.com"
] | dcherkasov256@gmail.com |
105aac63d4ae6cf3b2c248d941b33f8839d7e68e | 22675bcae212897d4b2aa53b99b94e265b4bb82f | /generator/views.py | 09d749664af05e8e62aa7914f5cae83ccfbe855e | [] | no_license | HarmannSinghMann/Django3-password-generator | e1094f29194e90b6c698efb58090ad62a30c982b | a3125c764fd69cb2ba6bf5a572208a05c226ddcb | refs/heads/master | 2022-11-27T15:39:03.337589 | 2020-08-06T14:00:33 | 2020-08-06T14:00:33 | 285,586,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | from django.shortcuts import render
from django.http import HttpResponse
import random
# Create your views here.
def home(request):
return render(request,'generator/home.html')
def password(request):
characters =list('abcdefghijklmnopqrstuvwxyz')
if request.GET.get('uppercase'):
cha... | [
"harmansukh@gmail.com"
] | harmansukh@gmail.com |
16025d8a7d1eebc432684e18e165b4f64ddbcdbd | 44175eeef9109b9879ca1318b7e73af8f50dbbc5 | /Lab1_6.py | c8f5612cb899b8e36c8f9f666249facbabc4336a | [] | no_license | Alhzz/Python3 | fb0dd79d8839bdfef5569958bfdbe289d30cf0aa | c20db5e6f14d4b2875846f56be55b1174fdb0eab | refs/heads/master | 2020-03-26T05:23:48.399950 | 2018-11-16T17:02:11 | 2018-11-16T17:02:11 | 144,554,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | """ StillJumping """
def function1():
"""Function1's docstring"""
function2(input())
def function2(value):
""" Print Function """
print(value)
function1()
| [
"Aloha_sonza@hotmail.com"
] | Aloha_sonza@hotmail.com |
cba1a76ff140e8490b2374c010cc10e2fac1ba4f | a3f69f16d4446e84467828f52798edf15ba1d491 | /barbante/recommendation/tests/TestRecommenderUBCF.py | 035b488de48b7825bd36e7c121dac3327e34bbdb | [
"MIT"
] | permissive | fcopello/barbante | a7a6c7d0fac41203e3fa0765bf83fabb3db1ae2b | 40056e9e4f4564461294b3a1d9afc855062350ac | refs/heads/master | 2020-12-31T06:31:40.631223 | 2015-06-03T01:01:57 | 2015-06-03T01:01:57 | 36,832,761 | 1 | 0 | null | 2015-06-03T21:54:32 | 2015-06-03T21:54:32 | null | UTF-8 | Python | false | false | 631 | py | """ Test module for barbante.recommendation.RecommenderUBCF class.
"""
from barbante.recommendation.tests.fixtures.UserBasedRecommenderFixture import UserBasedRecommenderFixture
class TestRecommenderUBCF(UserBasedRecommenderFixture):
""" Class for testing barbante.recommendation.RecommenderUBCF.
"""
def... | [
"luciopaiva@gmail.com"
] | luciopaiva@gmail.com |
db0351269937fee8d629442c73a631babed4f8ed | 3fd3635a5d55559d4e0f39b734dba0d5b3afa7f3 | /Week_09/62.不同路径.py | 35061939eb61c75747ecd7534a1ae321ad8042d8 | [] | no_license | lvjiujin/algorithm016 | 4b8adbc4b11a810f569b220f298780212ee3681b | 8808db52630b34cc43daaa4a7dbfb1998acc7ee4 | refs/heads/master | 2023-01-16T08:09:42.294465 | 2020-11-29T15:19:02 | 2020-11-29T15:19:02 | 294,023,214 | 1 | 0 | null | 2020-09-09T06:28:38 | 2020-09-09T06:28:37 | null | UTF-8 | Python | false | false | 441 | py | #
# @lc app=leetcode.cn id=62 lang=python3
#
# [62] 不同路径
#
# @lc code=start
class Solution:
def uniquePaths(self, m: int, n: int) -> int:
# 杨辉三角
# return int(math.factorial(m+n-2)/math.factorial(m-1)/math.factorial(n-1))
cur = [1 for _ in range(n)]
for i in range(1, m):
... | [
"lvjiujin@gmail.com"
] | lvjiujin@gmail.com |
777401db72a0cff86a31ba1f1bf48848d967196f | 3e037f2b5c225d365ab45672bd4b225443b1af9f | /ejercicio_2.py | 4e62fb3f40ce3a77cb95234c813c315e5d62eb42 | [] | no_license | erenyt12/ejercicio-de-la-clase-4 | bf0467fd108760926c4e2cbb6a5c15a96931c71e | 0410f2d9bbd55111c7f441df18b0a21b96d9d956 | refs/heads/main | 2023-08-15T06:32:42.446809 | 2021-09-11T15:05:30 | 2021-09-11T15:05:30 | 403,106,268 | 0 | 0 | null | 2021-09-11T15:05:30 | 2021-09-04T16:36:02 | Python | UTF-8 | Python | false | false | 853 | py | """ Ejercicio 2:
Realiza una función que tome como parametro una frase y devuelva una
lista de palabras en mayuscula.
Ej:
mi_frase = "Este sabado tenemos el ultimo encuentro online"
palabras = convertir(mi_frase)
print(palabras)
>>> ["ESTE", "SABADO", "TENEMOS", "EL"... | [
"erenyt12@gmail.com"
] | erenyt12@gmail.com |
6594d4a0659814479070a0b970b49bb3945e2831 | d7532e2ac4983c042f50525aab564597db154719 | /day4/modules/6.py | 12722dbeb27f186c256891231e3732b72beb498c | [] | no_license | shobhit-nigam/qti_panda | d53195def05605ede24a5108de1dbfbe56cbffe7 | 35d52def5d8ef1874e795a407768fd4a02834418 | refs/heads/main | 2023-08-24T14:56:34.934694 | 2021-10-22T09:59:05 | 2021-10-22T09:59:05 | 418,381,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | from colour import red, purple
red()
purple()
| [
"noreply@github.com"
] | shobhit-nigam.noreply@github.com |
8f57a5e7cb16b7b0234efde36a651588a923d65e | 91682213fe186b39007b95fd5115b7e215858c13 | /PlutonPlugins/Clans/Clans.py | f4335d938eaa406e120b7fecaa376ee78f1dd049 | [] | no_license | dong435085505/Python-Plugins | 20e10e4e99c46e03ebc41ceb855a95bc7072c1f1 | 26c88c64a953c93751df9e2d6446e9f5d0b4630f | refs/heads/master | 2020-12-02T16:37:33.726501 | 2015-04-11T11:20:03 | 2015-04-11T11:20:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,786 | py | __author__ = 'DreTaX'
__version__ = '1.2.2'
import clr
clr.AddReferenceByPartialName("Pluton")
import Pluton
import sys
import re
path = Util.GetPublicFolder()
Lib = True
try:
sys.path.append(path + "\\Python\\Lib\\")
import hashlib
except ImportError:
Lib = False
import datetime
class Clans:
"""
... | [
"dretax14@gmail.com"
] | dretax14@gmail.com |
1be04990a51daa647d0c1d6e9d8b7416f044a3cb | bae4b1444c6ebc8e32b70b9b8dc0b2464eb491b3 | /tests/microbit1/conftest.py | 4834682cd86871280b3732bc1500f61526ddce3a | [
"MIT"
] | permissive | Ladvien/bleak | 14ac84ec5638cb3e6e578bbd4fef685d19d8f1b3 | 75e6f9a5f42d6d3a0f34aa7222142ef9906beeb5 | refs/heads/master | 2020-07-29T16:35:59.916591 | 2020-06-21T19:31:52 | 2020-06-21T19:31:52 | 272,701,062 | 0 | 0 | MIT | 2020-06-20T13:04:15 | 2020-06-16T12:23:32 | null | UTF-8 | Python | false | false | 145 | py |
def pytest_addoption(parser):
parser.addoption("--nofw", action="store_true", default=False, help="Don't update firmware (already loaded)")
| [
"honeysucklehardware@gmail.com"
] | honeysucklehardware@gmail.com |
0d86385009d56c88d145ae5ea44fb5ed307017f0 | 7f84ba6f57c0bef546ae818849cf816b18e76b9a | /controllers/member_controller.py | ead207f35438438ac55630d24a8f5a82055db4fc | [] | no_license | sluisdejesus/first_project | 49daf6343d482a4218f276ca0596d4171e5a00bb | 77320ffff8d03ddc4834bb0e60f852e2badf92c4 | refs/heads/main | 2023-06-22T13:08:08.038252 | 2021-07-15T09:13:12 | 2021-07-15T09:13:12 | 384,741,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | from flask import Flask, render_template,request,redirect
from flask import Blueprint
from models.member import Member
import repositories.member_repository as member_repository
import repositories.session_repository as session_repository
import pdb
members_blueprint = Blueprint("members", __name__)
@members_blueprin... | [
"sluisdejesus@gmail.com"
] | sluisdejesus@gmail.com |
e474db27a23bba28c1c5ab72314091cd6ae96908 | 2faf5dc7cb92a21e5ac8f4fb10c0207dc47305e3 | /util/secret-key-gen.py | 6e16cbaa13db421d79849a5e3daed325861a51c7 | [] | no_license | skystar-p/web-mighty | c17bc0d9a4e6a7150a7731e650a2a4876301d916 | 228fb31cd297e3a73bbe642236d10a646b79a5a7 | refs/heads/master | 2021-05-05T22:27:23.650958 | 2018-01-03T15:34:08 | 2018-01-03T15:34:08 | 116,151,679 | 4 | 0 | null | 2018-01-03T15:22:29 | 2018-01-03T15:22:28 | null | UTF-8 | Python | false | false | 741 | py | # From https://gist.github.com/ndarville/3452907
"""
Two things are wrong with Django's default `SECRET_KEY` system:
1. It is not random but pseudo-random
2. It saves and displays the SECRET_KEY in `settings.py`
This snippet
1. uses `SystemRandom()` instead to generate a random key
2. saves a local `secret.txt`
The... | [
"wogus150@naver.com"
] | wogus150@naver.com |
efbac9d802b7d3a3214f5eec619b410d173accbd | 9451bdaa89cef69a8216c9ca9c7ac8e5b7d7c22e | /7multi_process/multi_process.py | fd1f8d9b8081f0ec4d63fc57aa3c2eb7a24339e0 | [] | no_license | PaulYoung1024/lou-plus-python | 87c97334a5b2aa4c8dc3bc0071a7ab41fe553682 | 7cc8e85eb25bb72e79a7dd9d25046bc1b4f9f3c6 | refs/heads/master | 2020-04-30T08:36:36.466716 | 2019-03-20T11:57:47 | 2019-03-20T11:57:47 | 176,721,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | import time
from multiprocessing import Process
def io_task():
time.sleep(1)
def main():
start_time=time.time()
'''
for i in range(5):
io_task()
'''
#child task list
process_list=[]
for i in range(5):
process_list.append(Process(target=io_task))
#start all child pro... | [
"ubuntu@localhost.localdomain"
] | ubuntu@localhost.localdomain |
20c682d6e8a6fd38e04c0c3e9df464b417e7c2e8 | 0619bc9e4fc97f99a8eed35aaa64976848ed3f18 | /src/DEUS-X-MACHINA_1-initial_extract_domain_term_from_api_desc.py | 10d9991d36600770292cb3745f75937f148382b9 | [
"MIT"
] | permissive | SmartServiceGroup/SOworkspace | c7e04628e9dc2a2fd719c6661dfaadb19f1c9362 | 74bbcfa62c7e293b2b02f23249ac408aa22b44af | refs/heads/master | 2023-06-11T20:31:34.072302 | 2021-07-07T13:59:14 | 2021-07-07T13:59:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,729 | py | import json
from tqdm import tqdm
from util.apidoc_semantic.common import extract_sentences_from_desc_html
from util.apidoc_semantic.domain_term_extractor import EntityExtractor
from util.config import APIDOC_DESCRIPTION_STORE_PATH, JAVADOC_GLOBAL_NAME, INITIAL_API_DOMAIN_TERM_MAP_STORE_PATH, API_DOMAIN_TERM_STORE_PAT... | [
"yhang1996@126.com"
] | yhang1996@126.com |
2ec24dfb99a38fbba53fb6b9edd04fa34d9ab1cf | 44435e951d66f01c3f68c731394c1e5ea0ca0cf1 | /app/app/urls.py | 7547dd084e873133b7df315dcf825698c057d1c3 | [] | no_license | xrizadis/django | 959bd3c651fa0a23c8e06f9eae8b26c7c6cac160 | 0d869c58de4a927b51865bcb4ccfc2bf964d31ed | refs/heads/master | 2022-09-06T08:13:29.196223 | 2020-05-25T12:46:41 | 2020-05-25T12:46:41 | 265,220,342 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | """app URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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 vie... | [
"christos.rizadis@gmail.com"
] | christos.rizadis@gmail.com |
6e78d122d8a9fc16a80fd4f264acc9db1f728171 | ec60107cd3af2f0f96eed238af015c3772d3dcc2 | /scikit-learn/examples/cluster/plot_dbscan.py | 8b116ed2cfbb04accfa2a72038f971ae10d612a9 | [
"MIT"
] | permissive | amirothman/scikit-learn-course | af640155e7011c0faafeea1cc00a1222a461cf42 | 1279d2ea65fa7bbeb4d18ab80f7f77685df553b8 | refs/heads/master | 2022-11-23T03:06:29.105617 | 2017-11-28T02:33:37 | 2017-11-28T02:33:37 | 106,062,225 | 2 | 1 | MIT | 2022-11-18T07:30:24 | 2017-10-07T01:00:07 | Jupyter Notebook | UTF-8 | Python | false | false | 2,534 | py | # -*- coding: utf-8 -*-
"""
===================================
Demo of DBSCAN clustering algorithm
===================================
Finds core samples of high density and expands clusters from them.
"""
print(__doc__)
import numpy as np
from sklearn.cluster import DBSCAN
from sklearn import metrics
from sklearn... | [
"amirothman@instance.com.my"
] | amirothman@instance.com.my |
969fd3871df25c8b6a7220dde180ca974ecaae69 | c3f55cd0e5a694a064213c71e53015529a9c91a6 | /service/migrations/0001_initial.py | 2a812c44c06d1cd9dc8875978083f8966b6f43f2 | [] | no_license | peter-wl/myweb | 39599a9ac2d00e20d501c576041fc3ed61d17f24 | 2c26cf4c6f3bd88084d033c9da12acbd81b236db | refs/heads/master | 2021-01-01T17:51:09.714621 | 2017-07-26T06:05:16 | 2017-07-26T06:05:16 | 98,165,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,552 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('asset', '__first__'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operatio... | [
"171684911@qq.com"
] | 171684911@qq.com |
f650a6efc9dd50f7a32258a1545012511d4ea4b5 | 8f9744cf91bd47c0826a605f23900af68c7a838e | /kDot/LabPy/tabl.py | 79c2a1b58272c65169b6329ecdf40522a95d4e5a | [] | no_license | albert4git/bTest | 427e70d987d94f8ec3a300dbb27e63317e1e2d61 | acf1423675eb102369119d10e22fa21cb1b4b835 | refs/heads/master | 2022-12-07T21:52:24.203829 | 2020-04-06T12:38:30 | 2020-04-06T12:38:30 | 177,221,370 | 0 | 0 | null | 2022-12-07T05:00:54 | 2019-03-22T23:26:53 | Vim script | UTF-8 | Python | false | false | 336 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2019 red <red@red-Swift-SF113-31>
#
# Distributed under terms of the MIT license.
"""
"""
from tabulate import tabulate
print tabulate([["value1", "value2"], ["value3", "value4"]],
["column 1", "column 2"],
ta... | [
"berman.albert@gmail.com"
] | berman.albert@gmail.com |
8946b942ce45203abe0fbb60c0f8fc3649344bd9 | 5832054751eac347bef90a815c695301c060d263 | /Designs/design1.py | 6493113c9be0fc8ad14f5c3ee9dadaac12c86d3e | [] | no_license | awesomealex1/InstantMessenging | a845ce128ace03a974b90b8bf59f386f0c5a4722 | d4b4582d059873f2e407c2f3b6bf11f8befc5460 | refs/heads/master | 2021-04-11T11:43:46.248531 | 2020-04-18T16:08:58 | 2020-04-18T16:08:58 | 249,016,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,879 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'design1.ui'
#
# Created by: PyQt5 UI code generator 5.13.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWi... | [
"lordpizza11@gmail.com"
] | lordpizza11@gmail.com |
d4a3b11b5bf2184853764bcd8d197ced11da68bf | 2542fb95fa999db782155a9da1a9af8ae0906a7f | /media.py | cf8bc4a779daef1aba3a1c33930b26c527ac15cc | [] | no_license | mrukhlov/udacity_trailer_website | dafac12b2da94574fcc75d9d9a5fb7d810660125 | e6689e9f04034c37f92dd2365eb1b73b95091c35 | refs/heads/master | 2020-09-19T19:55:12.009772 | 2016-11-12T19:27:27 | 2016-11-12T19:27:27 | 73,513,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | import webbrowser
class Video():
"""Parent class for TvShow() and Movie()"""
def __init__(self, title, duration):
self.title = title
self.duration = duration
class TvShow(Video):
"""Video child class with season, episode, e.g. vars. Inherits title and duration."""
def __init__(self, ... | [
"mrukhlov@speaktoit.com"
] | mrukhlov@speaktoit.com |
2b306f92f3f7535c878f7b15be492334e453d489 | d1c2fd850334a3431ce91bffbf84f8553ddeaadb | /api/v1/fusiontables/utils.py | f194f92faa1d2bb01d402b0eab417ddd8d8189c5 | [] | no_license | ewheeler/rapidpro-webhooks | 42818ae7d4548ae90515b43d4bcce1921b7b436d | f6a3fcd81e9af250a07de70debd7fa79c591606c | refs/heads/master | 2020-12-23T13:56:55.066622 | 2018-09-06T18:58:35 | 2018-09-06T18:58:35 | 20,800,542 | 2 | 3 | null | 2020-06-05T18:59:22 | 2014-06-13T10:19:22 | JavaScript | UTF-8 | Python | false | false | 839 | py | from googleapiclient.discovery import build
import httplib2
from oauth2client.service_account import ServiceAccountCredentials
from settings.base import GOOGLE_SERVICE_EMAIL
__author__ = 'kenneth'
def do_auth():
credentials = ServiceAccountCredentials.from_p12_keyfile(GOOGLE_SERVICE_EMAIL, 'auth/fusiontable.p12'... | [
"matovken@gmial.com"
] | matovken@gmial.com |
f7d80ab14dcfc2d779e2db1b661da9f1babd6043 | 1415fa90c4d86e76d76ead544206d73dd2617f8b | /venv/Lib/site-packages/direct/tkpanels/AnimPanel.py | 12bc1feefdfe0d55b84968966a35a0b33dfa86af | [
"MIT"
] | permissive | Darpra27/Juego-senales | 84ea55aea7c61308ec1821dac9f5a29d2e0d75de | e94bc819e05eff1e0126c094d21ae1ec2a1ef46d | refs/heads/main | 2023-04-04T07:27:53.878785 | 2021-04-09T00:00:44 | 2021-04-09T00:00:44 | 353,472,016 | 0 | 1 | MIT | 2021-04-09T00:04:31 | 2021-03-31T19:46:14 | Python | UTF-8 | Python | false | false | 28,209 | py | """DIRECT Animation Control Panel"""
__all__ = ['AnimPanel', 'ActorControl']
### SEE END OF FILE FOR EXAMPLE USEAGE ###
# Import Tkinter, Pmw, and the floater code from this directory tree.
from direct.tkwidgets.AppShell import *
from direct.showbase.TkGlobal import *
import Pmw, sys, os
from direct.task import Ta... | [
"daviricado08@gmail.com"
] | daviricado08@gmail.com |
0546aeb446a613c0284c03cd5d8c6f516d4cd044 | 48d188edd770ec96d098082d5fbd420743d60e82 | /DEFUNCT_ms_pacman_ai.py | 38ebf97c012e6785251d30f19b04922c0f6f8efd | [] | no_license | hcost/Ms-Pacman-Neuroevolution | d934c4e1d7cc15072e851fbaf256597655e457e4 | b9e153298a727eb397879978473d75b1e37b399d | refs/heads/master | 2020-12-24T01:51:34.270850 | 2020-10-16T02:06:11 | 2020-10-16T02:06:11 | 237,341,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,913 | py | import gym
import numpy as np
import tensorflow as tf
from collections import defaultdict
"""Ms. Pacman AI"""
env = gym.make('MsPacman-ram-v0')
env.reset()
# class DiscreteState(gym.ObservationWrapper):
# "Converts state to integer"
#
# def __init__(self, env, n_bins=10, low=None, high=None):
# supe... | [
"harrisoncostantino@berkeley.edu"
] | harrisoncostantino@berkeley.edu |
feff32b2e90b45bbc93359b27f87e8d2c9444ad9 | af8def9e4fe9f6f1603633d6d3662402d45d6b26 | /DDOS.py | eb669ff8fdede8042ec665d2372321f28e4ca61d | [] | no_license | Solocracker/solohacker.my | 4b23422c49be7d7f40fe221dc09bc83b9c158acf | 9999ee05278e78ae33ac88317072a02ba91e8389 | refs/heads/master | 2023-05-29T13:06:21.731915 | 2021-06-17T05:06:05 | 2021-06-17T05:06:05 | 377,362,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,510 | py |
import sys
import os
import time
import socket
import random
#Code Time
from datetime import datetime
now = datetime.now()
hour = now.hour
minute = now.minute
day = now.day
month = now.month
year = now.year
##############
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
bytes = random._urandom(1490)
########... | [
"noreply@github.com"
] | Solocracker.noreply@github.com |
e9b06e703c78929c62621c32cc42825061daf9c0 | 8a73ecbf12768f30c4e761088c47bfcd374e0788 | /src/sniffer.py | 4b589e06d853445e7afddb72b8e7a6f0b6db8956 | [] | no_license | alangberg/TdC-TP1 | 59cf517406a5c31b0b9b1fc0f6f96cc58c462b71 | 13fa804ea3d09cd281a5b3642b7da0e277225b10 | refs/heads/master | 2021-03-24T09:49:06.807620 | 2017-10-09T16:49:55 | 2017-10-09T16:49:55 | 105,457,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | #! /usr/bin/python
from scapy.all import *
from math import log
import argparse
import sys, os
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Sniff network and save captured packets into pcap file. Warning: Requires permissions, i.e. sudo!')
parser.add_argument('-pc', '-p', dest='pc', ac... | [
"fbalboa95@gmail.com"
] | fbalboa95@gmail.com |
32ad2fc6e35953210ef62d9e0bf0e6414fa0730b | bf32eac89bb6cf01420b7f79b34e4cbdf377ec1c | /users/forms.py | 06125407bc170157dcd12eee8903e8a593d2d525 | [] | no_license | Bicepper/airport_review | c1bcadd9fd81231726924b1709db9d47bab4f082 | f5a9f11ad4976a2b742d0b9f0b24b9e49bb6b7bf | refs/heads/master | 2021-09-27T15:25:55.626413 | 2018-09-10T22:21:27 | 2018-09-10T22:21:27 | 145,938,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | from django import forms
from django.contrib.auth.forms import (
AuthenticationForm, UserCreationForm, PasswordChangeForm, PasswordResetForm, SetPasswordForm
)
from django.contrib.auth import get_user_model
User = get_user_model()
class UserCreateForm(UserCreationForm):
"""
ユーザー登録フォーム
"""
class ... | [
"muscleconsole@gmail.com"
] | muscleconsole@gmail.com |
f5d8376764923e4fe7ce3cb71c0cfeae19a088a8 | 6c5a4f2c7d3f89b65f1f43d64daf6e2a20000024 | /python/passwordgenerator_acodegirl.py | 7d647d5732cd226cc43f86e70f303abb4b4d9ba5 | [] | no_license | kingxdlol/Sample-programs | 1d856a7cc2d110a1730dc207b5442b6667ad2ad0 | 8472e47c3028d6bfe5001190b8321aca8e08dec7 | refs/heads/master | 2022-11-13T02:02:15.281425 | 2022-10-26T11:13:51 | 2022-10-26T11:13:51 | 151,900,867 | 0 | 15 | null | 2022-10-26T11:13:52 | 2018-10-07T02:55:41 | C++ | UTF-8 | Python | false | false | 307 | py | #A command line tool that can be used to generate a random password
#the tool will generate a password of a given length
import random
import string
def generate_password(length):
return ''.join(random.choice(string.ascii_letters + string.digits) for _ in range(length))
print(generate_password(10))
| [
"noreply@github.com"
] | kingxdlol.noreply@github.com |
260a2f68480c4e56e81b4ffb18bba5c3672f7be6 | 1526f23c4a847768a5fc1c2ba596275d5d7ec0d5 | /assgn5/pr5.py | 07c66227c0eb171c4ab1f2c794813ccd8b8b4c7b | [] | no_license | gitank007/python-assignmnet | d07e7d222242f13dbfe7bd5d1f7a75ddb8be9aa7 | 7b7588927a17c46dfea2b141c7ccf91b4b5f3949 | refs/heads/master | 2023-02-28T17:02:45.217169 | 2021-02-11T08:03:57 | 2021-02-11T08:03:57 | 333,665,413 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | # printing the range of values and the boundry and step are user input
x=int(input("enter the lower bound: "))
y=int(input("enter the upper bound: "))
z=int(input("enter the step dunction values "))
for i in range(x,y,z):
print(i,end=" ")
print("\n")
| [
"noreply@github.com"
] | gitank007.noreply@github.com |
015280a7dacbe528ab439d9cebab7c11d4bf2279 | 1a8c787423914eb03e2ca88e5818174cdb6ef075 | /setup.py | cf7767adc4316392484d38ef9d1df345de5763c4 | [] | no_license | xupeng1206/Flanger | f8128d340ecae27a75c83177b0ac84f6bacb82dd | 36759eed2cc35c87a980c83e10221c52e021c4b2 | refs/heads/master | 2020-09-21T00:42:21.323461 | 2020-02-02T08:50:35 | 2020-02-02T08:50:35 | 224,631,206 | 13 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | """
作者 xupeng
邮箱 874582705@qq.com / 15601598009@163.com
github主页 https://github.com/xupeng1206
"""
from setuptools import setup, find_packages
setup(
name='Flanger',
version='0.0.1',
packages=find_packages(),
description='Flask Restful',
include_package_data=True,
license='... | [
"peng.xu@quantinfotech.com"
] | peng.xu@quantinfotech.com |
76b279c6d34f3e9a6ba2069f516009b0760115b3 | 838b25f12b5f98663e84961eefa1889ee551f421 | /pfhedge/nn/modules/naked.py | 0f3be132d4de9b2ce3e1bf37190a245fe3b01c29 | [
"MIT"
] | permissive | prettywork2021/pfhedge | a42fdef197fccd0666d2166ab4348fdd76302256 | 097524cfc588a6e2d966a328b509722aeb08a17f | refs/heads/main | 2023-06-02T06:32:16.523806 | 2021-06-21T01:28:24 | 2021-06-21T01:28:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | import torch
from torch import Tensor
from torch.nn import Module
class Naked(Module):
"""Returns a tensor filled with the scalar value zero.
Args:
out_features (int, default=1): Size of each output sample.
Shape:
- Input: :math:`(N, *, H_{\\text{in}})`, where where * means any number of... | [
"noreply@github.com"
] | prettywork2021.noreply@github.com |
af262c328be8302edd7826ee6a10f2dd58a2555b | 25c91515a0e4e2c0af43bc4ad31259af94a993d0 | /app.py | 78bf61580a8bb0d41b397a07c1f4679dca92dca7 | [] | no_license | cunning-seal/impro | 2038984a71ef63b04d683d9ddfc2c7a7069facef | 52ead789de133356b0ea5f808ef41ba1cc39add6 | refs/heads/master | 2022-12-07T07:36:49.887847 | 2021-03-30T08:11:32 | 2021-03-30T08:11:32 | 186,059,015 | 0 | 0 | null | 2022-03-11T23:46:38 | 2019-05-10T21:54:44 | Python | UTF-8 | Python | false | false | 2,258 | py | from PIL import Image, ExifTags
import sys
import os
class App:
def __init__(self, dir_name: str):
self.files = sorted(os.listdir(dir_name))
self.dir_name = dir_name + "/"
self.preprocess_dir = "preprocessed_files"
def create_pdf(self, result_name: str):
image_list = []
... | [
"a.titov9996@gmail.com"
] | a.titov9996@gmail.com |
d265ef4b7769abeab61d14f7b6a438e6d79c4b70 | 25df78391277e34eab72239e307c10fa3855d6c1 | /data github/hw8/hw8.py | a44c15c26b18fee5478e3aefbc1937ff24de6aa0 | [] | no_license | valxwz/507 | 68f7444655bf3c46cdd8d3fbe81d4b34028d097e | 756fbda0f9a3d6ac950f3d50d04d7c9c68f8b2c3 | refs/heads/master | 2020-07-27T10:42:47.259343 | 2019-12-10T05:16:12 | 2019-12-10T05:16:12 | 209,062,359 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,443 | py | import requests
import json
import secret
import plotly
import plotly.graph_objs as go
from requests_oauthlib import OAuth1
# ----------------------------------------------
# Part 1: Get photo information using Flickr API
# ----------------------------------------------
print("----------------Part1------------------... | [
"valoryxiaowen@gmail.com"
] | valoryxiaowen@gmail.com |
376560457eb3efbaaf36dab94016bae01fc8b660 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17s_1_02/overlay_class_map/__init__.py | a9b89983ee1e827bbef97d83bab5f884f6e9f073 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,624 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
249046034b6be6bda617092f52a2e1ae88a62413 | 563b8e73aa6e158a702e090d252e1fd4588d1951 | /api_olympic_history/models.py | b06da56a0bf9d254e2d9a0fbb40ed10e3e783dcd | [] | no_license | lam0glia/desafio-celero | 19aeac9f290f21c967dde092151a88a623ae6eae | eca95884dbf4ab7d87eb41680612eef76d2c64fd | refs/heads/main | 2023-01-30T21:52:24.428488 | 2020-12-10T12:23:18 | 2020-12-10T12:23:18 | 319,461,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,038 | py | from django.db import models
class Game(models.Model):
season = models.CharField(max_length=6)
year = models.IntegerField()
def __str__(self):
return '%s %d' % (self.season, self.year)
class Sport(models.Model):
name = models.CharField(max_length=100)
def __str__(self):
return ... | [
"gabslamoglia@outlook.com"
] | gabslamoglia@outlook.com |
e9fae348ac14ab306f59031d31a23ac58a9efe95 | 3cb679b3022bcbed65324508882f009df8ba48da | /raspi python/final_test_30sec_10_4.py | b0570ef41412620c7cf4dc204edabc047f1e6554 | [] | no_license | YouJaeBeom/capstone | ae586c3de3aee5183cb9053324ffa0c7a3dbcf63 | 95700a7a57090f5a665a9af2c3641678f6df8743 | refs/heads/master | 2021-07-05T06:43:54.196199 | 2020-10-16T14:52:16 | 2020-10-16T14:52:16 | 189,053,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,189 | py |
# coding: utf-8
# In[ ]:
import time
import pymysql
from datetime import datetime
import numpy
import socket
import time
import datetime
REPEAT = 10
import pymysql
import time
import numpy
import datetime
import sys
def average(list):
v = 0
for i in list:
v = v + i
return v / len(lis... | [
"noreply@github.com"
] | YouJaeBeom.noreply@github.com |
d7bee7dcd72ccc1b944ab6f57a3cb0301d675be4 | c92df209b5a185c4a7b584be4c9a297e6aca415f | /Exercises/4_uninformed_search/Homework/FarmerGoatWolfCabbage.py | 3a02cf7a87ca7ff9e11468d69c53905d2ae02ebc | [] | no_license | Coachmeister/AiOpgaver | f69ec5185167b173b481316580ecd7a26f9b79b4 | edc358fb0bc9acea8337ca67a9046cc6f01dfe9b | refs/heads/master | 2022-09-10T10:22:03.183949 | 2020-05-29T08:31:54 | 2020-05-29T08:31:54 | 255,584,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,698 | py | class Node: # Node has only PARENT_NODE, STATE, DEPTH
def __init__(self, state, parent=None, depth=0):
self.STATE = state
self.PARENT_NODE = parent
self.DEPTH = depth
def path(self): # Create a list of nodes from the root to this node.
current_node = self
path = [self]... | [
"42931029+Coachmeister@users.noreply.github.com"
] | 42931029+Coachmeister@users.noreply.github.com |
7d4489bec75756fcdc079f5f14ff4f709be1837b | 5fa91971a552de35422698ad3e371392fd5eb48a | /docs/mcpi/algorytmy/mcpi-lpi02.py | 5881d83e5b722c10f474aaac3deba06ea22d8b2e | [
"MIT",
"CC-BY-SA-4.0"
] | permissive | koduj-z-klasa/python101 | 64b0bf24da6c7fc29c0d3c5a74ce7975d648b760 | accfca2a8a0f2b9eba884bffe31be6d1e73fb615 | refs/heads/master | 2022-06-06T09:29:01.688553 | 2022-05-22T19:50:09 | 2022-05-22T19:50:09 | 23,770,911 | 45 | 182 | MIT | 2022-03-31T10:40:13 | 2014-09-07T21:01:09 | Python | UTF-8 | Python | false | false | 2,565 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import random
from time import sleep
import mcpi.minecraft as minecraft # import modułu minecraft
import mcpi.block as block # import modułu block
import local.minecraftstuff as mcstuff
os.environ["USERNAME"] = "Steve" # nazwa użytkownika
os.environ["COMPUTERNAME... | [
"xinulsw@gmail.com"
] | xinulsw@gmail.com |
9d0bcdcb5f65a5238cfa621a2d1e790a8874697d | 19b5059621dfb7a9a3373a73d32328be8e5276ac | /Movierecommender.py | cb23aad2012af765b4df260c5ed1a89971295591 | [] | no_license | Aritra-MAR/Movie-recommender | 3d8516215594f48ac97060250a1aa6c8a6961922 | 48cc6c042b24088da2fec00692fbbd032c54e9cb | refs/heads/main | 2023-08-16T13:59:46.428103 | 2021-10-19T18:47:18 | 2021-10-19T18:47:18 | 419,051,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,759 | py | import pandas as pd
import numpy as np
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.metrics.pairwise import cosine_similarity
###### helper functions. Use them when needed #######
def get_title_from_index(index):
return df[df.index == index]["title"].values[0]
def get_index_from_title(titl... | [
"noreply@github.com"
] | Aritra-MAR.noreply@github.com |
41348a2dd0b811a9e5820c028fb4d84d67ede459 | 7ee1fd7584f8770cd2381d85f797bf85cb9b4b67 | /usuarios/applications/users/functions.py | 7518ab24ad5b24eb53709d36fd01737178f8f777 | [] | no_license | neunapp/usuariosdj | 3171160fdf6898d07d6b353d034c70801e4bc21b | 3fe69b7357757baa5d799b614f232d75ed659502 | refs/heads/master | 2022-12-01T16:51:00.432272 | 2020-09-17T14:28:21 | 2020-09-17T14:28:21 | 237,993,639 | 4 | 2 | null | 2022-11-22T05:17:26 | 2020-02-03T15:10:33 | Python | UTF-8 | Python | false | false | 206 | py | # funciones extra de la aplicacion users
import random
import string
def code_generator(size=6, chars=string.ascii_uppercase + string.digits):
return ''.join(random.choice(chars) for _ in range(size)) | [
"csantacruz1127@gmail.com"
] | csantacruz1127@gmail.com |
97039cbc2ded185e1eca2063a4ef022f5bff0715 | 491f9bda1b49c02c2168a3ad2c8e03812a0c2994 | /long.py | 633a15ec057ceb5d2d250bf0a7106fb5b7da7a9b | [
"MIT"
] | permissive | lukekulik/helmert | 52d7421462796ee006bc6b049da57d545ded99fd | 6c3609177ba51d3dbbabc5c42a04e69166d5c095 | refs/heads/master | 2020-02-26T15:42:34.212351 | 2017-09-21T03:22:49 | 2017-09-21T03:22:49 | 63,346,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | # Imports #
from random import random
import statsmodels.api as smapi
from statsmodels.formula.api import ols
import statsmodels.graphics as smgraphics
# Make data #
x = range(30)
y = [y*(10+random())+200 for y in x]
# Add outlier #
x.insert(6,15)
y.insert(6,220)
# Make fit #
regression = ols("data ~ x", data=dict(data... | [
"noreply@github.com"
] | lukekulik.noreply@github.com |
dddf19a5c3765458ecbb9ab480e2cd607a816127 | c7fa4527bc3e632ffbc7fab474bea25e9f10b537 | /game_of_life_position.py | 787e6b3894c10f113c565144a7d4aa19c72a6a9b | [] | no_license | acassaigne/mob_and_training | fe3af33d564aae0fafa3929ab6658f6e16fa7d12 | b91fe6aa0fd715474801000cc499c10f02b401f9 | refs/heads/master | 2021-05-18T14:43:21.865394 | 2020-08-17T16:00:51 | 2020-08-17T16:00:51 | 251,286,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,264 | py | class Position:
def __init__(self, row, column):
self.row = row
self.column = column
def __eq__(self, other):
return self.row == other.row and self.column == other.column
def __str__(self):
return f"position row={self.row} column={self.column}"
class NeighbourPositionsGe... | [
"rufin.m62@orange.fr"
] | rufin.m62@orange.fr |
4b9cb8a900933b59a65f9895b96029d50d6c45fa | 3ecb42f0d4770bf440f2806436815d48941e6f5f | /Online Judge/1229 - Sub-dictionary.py | 0e2ac3ac5d515474d36fd8e0b7553ff02dfd53fe | [] | no_license | yen-nhi/algorithms | c61314c492f529b26e327f9a85974387b102d00e | a4a7a42c19ab96e9d5fa32a7adbdcd6f8b8cab34 | refs/heads/master | 2021-07-16T11:35:03.742336 | 2020-09-20T04:32:23 | 2020-09-20T04:32:23 | 212,352,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,038 | py | # Tajan's Algorithms
def dfs_tajan(id, low, on_stack, stack, forest, v, d):
d += 1
id[v], low[v] = d, d
on_stack[v] = True
stack.append(v)
for u in adj[v]:
if id[u] == 0:
dfs_tajan(id, low, on_stack, stack, forest, u, d)
if on_stack[u]:
low[v] = min(low[u], l... | [
"yenhinguyen.92@gmail.com"
] | yenhinguyen.92@gmail.com |
fb152b0b7f8217754e567ec0cbb83de375320b02 | c5c0ee36fbcc2870d75c69d9ccf62e6bb05ec80a | /app/auth/__init__.py | 42e2b28d1ff9228a3dae4e3201baff217a9db797 | [] | no_license | BamCurti/todo-app | fbe002837bc24437c766813edcadbb701829af6e | 63d2e29e44efd939a0507056a2fb47d4b03fa1c5 | refs/heads/main | 2023-08-28T01:13:44.886350 | 2021-10-29T05:01:36 | 2021-10-29T05:01:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | from flask import Blueprint
auth = Blueprint('auth', __name__, url_prefix='/auth') #nombre del blueprint, el archivo principal y el prefijo.
from . import views | [
"bam_vllj98@outlook.com"
] | bam_vllj98@outlook.com |
5c6d46ec315a94a7aaa3dbe5ff0ba22583c24e14 | 9051082e478d563c7b0fe213a8451384aedf4300 | /decisions/migrations/0003_auto_20190209_1600.py | 4b4b0b577ce2cbc80bf91972343a50d8f5b37311 | [] | no_license | dhebrink/weigh_options | 7b472b9c10183bbe93214cc79c5427ec6451750d | 925ec9621246cb4aab060ee3407fc44efd7f97ab | refs/heads/master | 2020-04-21T05:54:19.921172 | 2019-07-02T17:48:52 | 2019-07-02T17:48:52 | 169,352,703 | 0 | 0 | null | 2019-07-31T14:50:13 | 2019-02-06T04:01:27 | Python | UTF-8 | Python | false | false | 875 | py | # Generated by Django 2.0 on 2019-02-09 22:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('decisions', '0002_auto_20190209_1554'),
]
operations = [
migrations.AlterField(
model_name='answer',
name='date_added'... | [
"danielhebrink@britecore.com"
] | danielhebrink@britecore.com |
7b7fe3d3459be6fffa40cae9aef45b5f061220d8 | 231ec70a5c915f2ff1e212ff4c5cd27609c7dc18 | /Debug/setup/source1/fontsize34/fontsize34.spec | 9e48e6469b249d8f3135459f7f52234124966c6e | [] | no_license | SreepadaBL/Imp1 | cb6fbe2e5f17cc5bcc28de573f102e9b819db610 | 65bfb0c2cb38de6d6071e0dbe6913f4d66325cad | refs/heads/master | 2020-06-29T22:22:26.431640 | 2019-08-07T06:17:11 | 2019-08-07T06:17:11 | 200,640,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['fontsize34.py'],
pathex=['F:\\vs_demo1\\demo1\\demo1\\bin\\x64\\Debug\\setup\\source1\\fontsize34'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_h... | [
"sreepada96@gmail.com"
] | sreepada96@gmail.com |
e4e82580ad98bbcb298532c026df83965c2ea339 | 05148c0ea223cfc7ed9d16234ab3e6bb40885e9d | /Packages/matplotlib-2.2.2/lib/mpl_examples/images_contours_and_fields/triplot_demo.py | d3a65762d021e09952a9512f7aa6c3df6982239b | [
"MIT"
] | permissive | NightKirie/NCKU_NLP_2018_industry3 | 9ee226e194287fd9088429f87c58c874e050a8b3 | 23ac13644b140587e23cfeffb114c7c6f46f17a2 | refs/heads/master | 2021-06-05T05:33:09.510647 | 2018-07-05T10:19:47 | 2018-07-05T10:19:47 | 133,680,341 | 1 | 4 | MIT | 2020-05-20T16:29:54 | 2018-05-16T14:43:38 | Python | UTF-8 | Python | false | false | 4,772 | py | """
============
Triplot Demo
============
Creating and plotting unstructured triangular grids.
"""
import matplotlib.pyplot as plt
import matplotlib.tri as tri
import numpy as np
###############################################################################
# Creating a Triangulation without specifying the triangle... | [
"qwer55113322@gmail.com"
] | qwer55113322@gmail.com |
5ec8d2a154b76041cdfc49064aba7e12a7ef8ab4 | 32055c2a684134c0b5a46ff80d176a1f4d7227b6 | /magichomedaemon.py | 2e66efd0252b4327834517a29dccdd436b0b1a6e | [] | no_license | miller45/magichome-mqtt-control | 860996ce87204e632d2447128e12535c6126dd32 | e2dd1a2314100c0178008f98bc0ac0fba9d6f152 | refs/heads/master | 2020-03-25T00:28:10.659444 | 2018-08-12T17:57:11 | 2018-08-12T17:57:11 | 143,187,228 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,851 | py | import paho.mqtt.client as mqtt
import json
import ledcodes
class MagicHomeDaemon:
DC = 23
def __init__(self):
self.mqtturl = "192.168.0.18"
self.ledcodes = ledcodes.LedCodes()
# The callback for when the client receives a CONNACK response from the server.
def on_connect(clie... | [
"gmse45forse@googlemail.com"
] | gmse45forse@googlemail.com |
03a11a480258f5444025f7b60cf63fcf26362edb | c33844f13a625f9b3c908ea8816696a0b38abbac | /expenditure/migrations/0001_initial.py | dc5f3853c79d4d290e1e897dfb0381cd9729c7c3 | [] | no_license | jkimuli/clinica | d6ddb72b4ba56e142f12b77593d2c4e68b3e3237 | 03cf956781ff5a50d692ca07799a73c36111a0aa | refs/heads/master | 2022-12-21T20:13:39.454392 | 2020-11-09T08:13:25 | 2020-11-09T08:13:25 | 21,300,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | # Generated by Django 2.2.5 on 2020-06-17 16:16
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"jkimuli@gmail.com"
] | jkimuli@gmail.com |
fc3c3bcb409793d16f388f8f162fb9c27c1f33fb | 22914840e0cab560484246db28fc8bb7cdbd2a8b | /django/locallibrary/catalog/views.py | 645fd62a94321e6d7e7f08be2387c737d8e922b2 | [] | no_license | jaedeokhan/dcu-20-2-it | 88c141189de548c30d2cea399772b5ec00d477b7 | 844116585642caaca3c8c93ca6207be254b3d5e4 | refs/heads/master | 2023-01-11T20:28:00.590248 | 2020-11-17T02:38:13 | 2020-11-17T02:38:13 | 295,582,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,934 | py | from django.shortcuts import render
from catalog.models import Book, Author, BookInstance, Genre
from django.views import generic
from django.contrib.auth.mixins import LoginRequiredMixin
# Create your views here.
# def index와 같이 함수형이면 => @login_required로 로그인해야 접근이 가능하게 설정해준다.
def index(request):
"View function fo... | [
"dgd03023@cu.ac.kr"
] | dgd03023@cu.ac.kr |
986bc81c01c3e4ce6698c1e37f42468cfec913d5 | 14a4c59f820e0dd745f453aaa10ce01b36fcdb4d | /Flask Aapp/migrations/versions/0a7b6dbf1a39_cart_table.py | 8feea2d17b813a01c6a4fda242553ccde812f5cd | [] | no_license | rsthakur83/cloud | b2f6d39b575b50ea5069dffe2a90746dbddc1c0c | 40a07ee892fd264ce463076ab63cd4b7b50768c2 | refs/heads/master | 2022-12-12T22:54:41.691521 | 2021-07-28T08:41:28 | 2021-07-28T08:41:28 | 71,697,896 | 0 | 5 | null | 2022-12-08T07:31:18 | 2016-10-23T11:12:50 | Python | UTF-8 | Python | false | false | 1,255 | py | """cart table
Revision ID: 0a7b6dbf1a39
Revises: 0eff2f2d9d59
Create Date: 2019-12-05 12:40:39.947472
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '0a7b6dbf1a39'
down_revision = '0eff2f2d9d59'
branch_labels = None
depends_on = None
def upgrade():
# ###... | [
"Ravinder_Thakur@EPNLAMSW0207.budapest.epam.com"
] | Ravinder_Thakur@EPNLAMSW0207.budapest.epam.com |
77de209e251a4e9e30d434067094cb1d4326e8d8 | f2e166899608c0aab5ee6871da1f51119e1995a7 | /script/checkEachColumn/16.py | e0cb10a0272af511c95a47f2d0ab45ce0287bf62 | [] | no_license | HaichaoWu/ds1004project | 060b20093d73d525aa24058adc9925fb02f9f2b2 | cd38c6c9446fc2f21d691cbf69485919074791d3 | refs/heads/master | 2021-01-23T04:09:22.257907 | 2017-05-10T21:15:04 | 2017-05-10T21:15:04 | 86,161,280 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | from __future__ import print_function
import sys
from operator import add
from pyspark import SparkContext
from csv import reader
if __name__ == "__main__":
sc = SparkContext()
lines = sc.textFile(sys.argv[1])
#lines = lines.mapPartitions(lambda x: reader(x))
#Your code goes here
counts = lines.... | [
"noreply@github.com"
] | HaichaoWu.noreply@github.com |
56cbe3a325b7e39dbfcee37c3ce40d0b704f5713 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /120_design_patterns/006_adapter/examples/adapter_005.py | f7aff08228bdda9c77bd6d64d410d32bb64c4da1 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 4,088 | py | """
The Adapter pattern is a structural design pattern. It allows a Client to access
functionalities of a Supplier.
Without an Adapter the Client can not access such functionalities.
This pattern can be implemented with an OBJECT approach or a CLASS approach.
"""
# Client
class Smartphone(object):
max_input_vo... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
90892b2ea46c952dfbf316ffc770eef5b69badbb | 6225e608c09acfcd562c153ff54866f80f1b3457 | /Ventasbap2.0/src/accounts/migrations/0005_auto_20180613_1551.py | cdbba0e123c04b766bcf99b17f50e3a94080d757 | [] | no_license | solazverULA/Ventasbap | b7110a099f3928a5b70648f91975f54656657cde | 76dd824460d35cfde5d2a64812d1906711c30c16 | refs/heads/estilos | 2023-01-11T10:11:10.206234 | 2018-06-27T05:39:09 | 2018-06-27T05:39:09 | 134,496,571 | 0 | 0 | null | 2022-12-27T15:01:57 | 2018-05-23T01:40:06 | JavaScript | UTF-8 | Python | false | false | 745 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-06-13 15:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0004_auto_20180612_1732'),
]
operations = [
migrations.AlterFie... | [
"javiermerida05@gmail.com"
] | javiermerida05@gmail.com |
4b596fb862cd2f289858a3f819e22893131b53cb | 713f9168a7ba68740bb9b4ea6994e853a56d2d5c | /2022-05-30-python/day2/average_demo.py | e6b23121568eb162e8625c15b056b32811bde7b2 | [] | no_license | marko-knoebl/courses-code | ba7723c9a61861b037422670b98276fed41060e2 | faeaa31c9a156a02e4e9169bc16f229cdaee085d | refs/heads/master | 2022-12-29T02:13:12.653745 | 2022-12-16T09:21:18 | 2022-12-16T09:21:18 | 142,756,698 | 16 | 10 | null | 2022-03-08T22:30:11 | 2018-07-29T11:51:04 | Jupyter Notebook | UTF-8 | Python | false | false | 109 | py | import average
print(average.average(1, 2))
print(average.average(1, 3))
print(average.average_short(2, 3))
| [
"marko.kn@gmail.com"
] | marko.kn@gmail.com |
df3a5fed51e7e9780371d20138a6308194853d6a | cbd5083d81f1352b30201768508044f8f11f60c6 | /constants.py | b477c65242b67c879aafde32fe9030d9a428b26d | [] | no_license | kapil120/PythonCN | e13e3e2a2a04688f00016c65c1ed5c7e3d567935 | 28502fdb2f9d328f1ed67065947c9c04e1eeea6e | refs/heads/master | 2022-02-09T07:20:13.003388 | 2022-01-18T13:49:09 | 2022-01-18T13:49:09 | 248,988,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 27 12:09:28 2020
@author: Kapil
"""
SIZE = 400
GRID_LEN = 4
GRID_PADDING = 10
BACKGROUND_COLOR_GAME = "#92877d"
BACKGROUND_COLOR_CELL_EMPTY = "#9e948a"
BACKGROUND_COLOR_DICT = {2: "#eee4da", 4: "#ede0c8", 8: "#f2b179",
16: "#f595... | [
"noreply@github.com"
] | kapil120.noreply@github.com |
b096930fe88ada4be7734b0a5a04784da6ebf13a | 4d5dcef86c724c10d99f28d9b79811539964bd7d | /escola/views.py | 936ffd3a864c15f2a58ca5a556cafd7095059ae1 | [] | no_license | danielcaveman/python_alura | 27655cd19d628c37e0932a363d5a3d629dcd2af1 | 0b53efbe3c08d37ffc9a9913b89060f1fac4afd1 | refs/heads/master | 2023-07-13T00:42:54.225270 | 2021-08-28T12:41:41 | 2021-08-28T12:41:41 | 392,293,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,941 | py | from django.db.models import query
from rest_framework import viewsets, generics
from rest_framework.authentication import BasicAuthentication
from rest_framework.permissions import IsAuthenticated
from escola.models import Aluno, Curso, Matricula
from escola.serializer import AlunoSerializer, CursoSerializer, Matricul... | [
"daniel.sales@petco.com"
] | daniel.sales@petco.com |
8964f85f4c2befe9b3a82ba138cd86bdc11157e3 | 95d32251e06967d136ae4698f51045a6cfdf3902 | /lib/map_scene.py | b3c26de7875a855ddcddb76311365dcc461c9c3d | [] | no_license | lemonxiao0/python_tank | 1d60c6ee7dc9f9f4fb8de65750e80e7417cd0bc4 | 36556b977be0e2f881edbe962933146417133744 | refs/heads/master | 2021-01-21T11:55:17.697834 | 2017-06-12T08:29:19 | 2017-06-12T08:29:19 | 91,763,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,584 | py | #coding=utf-8
import pygame
from pygame.locals import *
import struct
from time import gmtime
from random import randint
import sprite
import tank
import scene
import frame
#全局使用的
import global_member
import util
class Map_Scene(scene.Scene):
def __init__(self, map_file):
self.b_init_ok ... | [
"lemonxiao0@163.com"
] | lemonxiao0@163.com |
7683177b8af5151fea0b0aed203e950bdb28c39b | e246575a5d9c145d9ffafcb259020c05ee8004bd | /djangoProject/urls.py | c8291eec52d23d025b656e7126d086c64273f188 | [] | no_license | Andressa-Anthero7/teste | 1cecbd27bddccc769f3fe30e05c24abefdb6e4ce | 093a98233a545b51fc007f62fc13d5ca3fa37fba | refs/heads/master | 2023-06-30T02:53:31.427792 | 2021-08-03T17:45:39 | 2021-08-03T17:45:39 | 380,092,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,232 | py | """djangoProject 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... | [
"andressa.anthero7@gmail.com"
] | andressa.anthero7@gmail.com |
21b6553bfbdcc2813a71a6e85a2ee547ed3c6ecf | 97e4fb1c2300c9094223a78587652694ac54dda5 | /MNIST/MNIST-ResNet/model/resnet.py | 45e034869989d5baad9bcac76e3d8d74a9463476 | [] | no_license | swhan9873/Pytorch-Tutorial | 0f0326dc4b981df03d6d5fd7b4bacb92d38b1de9 | f354ab709fd6fa9d760891412c1322b2a6429dac | refs/heads/master | 2020-04-24T03:27:47.828857 | 2019-11-07T15:17:15 | 2019-11-07T15:17:15 | 171,670,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,074 | py | '''ResNet in PyTorch.
For Pre-activation ResNet, see 'preact_resnet.py'.
Reference:
[1] Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun
Deep Residual Learning for Image Recognition. arXiv:1512.03385
'''
""" reference: https://github.com/kuangliu/pytorch-cifar/edit/master/models/resnet.py"""
import torch
impor... | [
"swhan9873@gist.ac.kr"
] | swhan9873@gist.ac.kr |
a06c4b181d6ce913ebfa311bd4a19f7d9c6c95db | f6083d80bd5c693d9ff856176c812c304fcf378a | /build/lib/pyconfluent/kafka_streams/state/factory/in_memory_key_value_store_factory.py | d53e23cb47bc5845c5b7d627f371ce52c423205c | [
"MIT"
] | permissive | newellp2019/pyconfluent | 2445f42dbd183ba963dfe236d59c8615ab1da808 | b1de0b8255678c2e6a3a7d016df57b9f40cdc861 | refs/heads/master | 2020-06-08T02:46:25.785891 | 2019-07-12T15:20:23 | 2019-07-12T15:20:23 | 193,144,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | from typing import TypeVar
from pyconfluent.kafka_streams.processor.serialization import Serde
from pyconfluent.kafka_streams.state.factory.base_storage_key_value_store_factory import BaseStorageKeyValueStoreFactory
from pyconfluent.kafka_streams.state.in_memory.in_memory_state_store_supplier import InMemoryStateStore... | [
"peter.newell@covetrus.com"
] | peter.newell@covetrus.com |
09c43bd8c5343d0f58bf9c8abc52fd216b3c4ec5 | d94d0d0a646425a6c038c338e3cf14af9b3b6368 | /Clausometer/clausometer.py | ed3c494e3f523398208b3122809c2e3f10d7deda | [
"MIT"
] | permissive | ntewinkel/electronics | 3744ffb53d9de27315e0a063bf782c6aaf6ef860 | c5caa181315784497f4ff9125f6ff19ba190c512 | refs/heads/master | 2021-07-09T17:53:12.839347 | 2021-04-26T21:45:57 | 2021-04-26T21:45:57 | 86,104,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,762 | py | #
# Python Twitter monitor for Raspberry Pi
#
# See https://learn.sparkfun.com/tutorials/raspberry-pi-twitter-monitor
#
# For Twitter keys, see:
# https://developer.twitter.com/
# https://apps.twitter.com/
#
# Provided under MIT licence. (mostly meaning: use it for anything, don't sue me for anything)
import time
... | [
"ntewinkel@gmail.com"
] | ntewinkel@gmail.com |
d329df32268220b1bab2be52e4b2da03b1f0ab24 | 6c141a62f4c7ff3624af1d34fb2d2a37b5a2bfcf | /04.generate_knowledge_graph/13.fieldofstudychildren.py | b00de870379ca445a9d58c8ae4e2ee779420243e | [] | no_license | lin-ao/enhancing_the_makg | 244e975d846a6c866eb52eba4c0abcb8b09b7099 | 201ed3d60b90ff5156f7a72c820b944e5c6087af | refs/heads/master | 2022-12-17T20:43:09.664492 | 2020-09-28T07:40:07 | 2020-09-28T07:40:07 | 297,373,853 | 13 | 2 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | with open("FieldOfStudyChildren.txt", "r") as f:
with open("13.FieldOfStudyChildren.nt", "w") as g:
for line in f:
FieldOfStudyId = line.split("\t")[0]
ChildFieldOfStudyId = line.split("\t")[1].strip()
g.write(f'<http://ma-graph.org/entity/{ChildFieldOfStudyId}> <htt... | [
"noreply@github.com"
] | lin-ao.noreply@github.com |
affd0746682cf0c28c38aba09c92aad37996ef3b | 3a2c449c5e870a96958772c8ba89d9e119f4b098 | /090-099/91.py | 0e313d2df9df4d75d7f29cbb6595db06d3958fde | [] | no_license | pedrotari7/euler | 0a8ea69c616b84bddfaeaf5d643592a73f321456 | 692ca67c895e3d0c1655bd53501f3d22c1ebb56c | refs/heads/master | 2020-05-21T04:43:34.816108 | 2017-12-11T19:25:31 | 2017-12-11T19:25:31 | 52,283,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | from itertools import combinations_with_replacement as comb_r, permutations,chain,combinations
def is_right((a,b)):
d1 = a[0]**2+a[1]**2
d2 = b[0]**2+b[1]**2
d3 = (a[0]-b[0])**2+(a[1]-b[1])**2
d = [d1,d2,d3]
h = max(d)
d.remove(h)
return d[0]+d[1] == h
n = 50
points = list(set(chain(*[per... | [
"jpfa@kth.se"
] | jpfa@kth.se |
fadea2cea54dc4230c228951aa1bdb2b1668ab45 | 9bbf3cf15a98157018b672b73edb2b993e666903 | /app/fastiqa/models/cnn_iqa.py | a7c9867bc5629117221530b9fc779c2b522e0780 | [
"MIT"
] | permissive | baidut/google-app-engine | fd9d2c0bc3259174efcfcba3ed3e23995219d8bd | 8ce4fb86d17fdda4d692ac692c70ba449b1c7d42 | refs/heads/master | 2020-12-23T19:47:50.430992 | 2020-01-30T23:22:18 | 2020-01-30T23:22:18 | 237,254,753 | 0 | 0 | MIT | 2020-01-30T16:28:38 | 2020-01-30T16:28:37 | null | UTF-8 | Python | false | false | 1,479 | py | """
# https://github.com/baidut/FBIQA/wiki/CNNIQA
# %%
from fastiqa.models.CNNIQA import *; IqaLearner.from_cls(CLIVE, CNNIQA).summary()
# %%
%matplotlib inline
from fastiqa.all import *
data = LCNCropData(CLIVE, batch_size=120) # 128 too big on our database 640x640
model = CNNIQA()
learn = IqaLearner(data, model)
le... | [
"yingzhenqiang@gmail.com"
] | yingzhenqiang@gmail.com |
49957ec727e9807e4621991adb695097cff896b5 | 51f1f157eb9e40faa0f8d00a908424c50261d448 | /day25.py | 3bbd7e1d284f0ac2e5f968572868641e8fe3dbf5 | [] | no_license | GeertFolkertsma/AoC2020 | 852bc33d05b3c90433e29aa2ff27e7b8a1696c80 | e2a362c96c586978d2b16b498e86a442259cd70f | refs/heads/master | 2023-02-06T09:46:37.178836 | 2020-12-29T09:30:35 | 2020-12-29T09:30:35 | 320,678,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | #!/Users/geert/opt/anaconda3/bin/python3
def find_exp(public_key, base, modulo):
key = 1
exp = 0
while key != public_key:
exp += 1
key = pow(base, exp, modulo)
return exp
def calc_encryption_key(public_keys, exponents, modulo):
secret1 = pow(public_keys[0], exponents[1], modulo)
... | [
"geert@geertfolkertsma.nl"
] | geert@geertfolkertsma.nl |
10401c4beb289518ad3617a05e666e37e9086fed | 4149ef88219fa057f119a171017945fd800ef227 | /kst/utils.py | ce14cbbd6fafc4cc65989f2a553b4bf2be0306aa | [] | no_license | vjaydeshmukh/datascience_django | 0f1362fb9d37af9bf282dbd67f64c25bc570d320 | d40cd87dc1014a2fb801739fc9f7f01de0b8ead2 | refs/heads/master | 2021-10-25T22:54:28.239773 | 2019-04-08T03:41:30 | 2019-04-08T03:41:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,935 | py | from .models import *
from states.models import *
from django.db.models import Q
import random
STANDARD = 10
def chapter_switch(user = None):
'''This function checks the chapter
already assessed by student and then return the next chapter
for which question are to be given'''
completed_chapters = []... | [
"ishawarjangid66@gmail.com"
] | ishawarjangid66@gmail.com |
ba6afa5473244018c17d40ff7ce7e623d6fd842b | 36f2dfd4e99718cddb699398ce84ce93a334670c | /post/urls.py | bdf12360427b605489b109e12c1e3475185211cf | [] | no_license | VIMAL-procode/test | 7a7dea5d851e21b4c439392a70008c2e1090713b | 958d07f821a1a9cdd64ee2d354c724408e3b9b96 | refs/heads/main | 2022-12-25T23:58:47.145486 | 2020-10-10T09:57:16 | 2020-10-10T09:57:16 | 302,871,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | from .views import *
app_name='post'
urlpatterns = [
path('',post_list,name='post_list'),
path('<int:pk>',post_detail,name='post_detail'),
]
| [
"Vimal P"
] | Vimal P |
166a8e18e0364eb38cc993b84b761ad183c899b9 | e534dcb324d03aa0c613f53e66d56d7c6c54364e | /ensemble/ccc_acc_nin.py | cbc127cc5466841aa4c8c5b7a79e38dbd3eeeacd | [] | no_license | kobeeraveendran/machine-learning | 4e2a3b1441852adcc7cc404bbb4afa46c40a153c | ca9d4310608a0df737e4482227c60db5d57a320f | refs/heads/master | 2021-03-27T12:43:27.401317 | 2019-04-03T16:09:12 | 2019-04-03T16:09:12 | 119,780,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,481 | py | from keras.models import Model, Input
from keras.layers import Conv2D, MaxPooling2D, GlobalAveragePooling2D, Activation, Average, Dropout
from keras.utils import to_categorical
from keras.metrics import categorical_accuracy
from keras.losses import categorical_crossentropy
from keras.callbacks import ModelCheckpoint, T... | [
"kobee.raveendran@knights.ucf.edu"
] | kobee.raveendran@knights.ucf.edu |
4626f080b77e586fe4c9ae123b917f2b81504395 | 69a6b19083e1ec03f22b6311ba504457948ce016 | /FileHandling/writeFile.py | 29fd14e859e402a77c10ae6d40eed6011910c5c7 | [] | no_license | KenMwaura1/Moringa_Core_2 | 4f5a06956a26448b7dd21ecb7a401f10c0804702 | 85101dec309b9bb201f37fa7090dd442980e871d | refs/heads/main | 2023-07-27T01:46:05.778991 | 2021-09-03T20:34:16 | 2021-09-03T20:34:16 | 402,368,206 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | handle = open("text-write.txt", "w")
handle.write("hello Zoo")
handle.close()
| [
"kennedy.mwaura@student.moringa.school.com"
] | kennedy.mwaura@student.moringa.school.com |
0ea9c5c904f61ad1200ec9ce82bb8cf0e5313b94 | 34f286c7406a35df79becf49427607def9cf65ad | /6-page-object/src/pageobject/welcome.py | 632d075058953697b24f6a2c7c5bd6d711b93326 | [] | no_license | aaltat/advanced-seleniumlibrary-workshop | aa9fbb0c45cada1725d68b299cd3a599b5a0dec4 | 25fe4962c570dc66cf6575959fe6a757fce786b4 | refs/heads/master | 2021-07-09T13:21:05.981912 | 2021-03-15T02:32:51 | 2021-03-15T02:32:51 | 232,423,611 | 10 | 3 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | from pageobject.pageobject import CTX
class Welcome(CTX):
def __init__(self):
CTX.__init__(self)
self.page_url = '%swelcome.html' % self.host
def title_should_be_correct(self):
title = self.driver.title
assert title == 'Welcome Page'
| [
"aalto.tatu@gmail.com"
] | aalto.tatu@gmail.com |
2dbeadb03a2b7fa6e6aa957ec20fc2499bd72b20 | 6a8b908580f73b56f35fd1eb4c0b0caa8854a9df | /Python/repeated-substring-pattern.py | 1247843f868c0b9fa4df5e413e05579d683a9dd7 | [
"MIT"
] | permissive | Peripatetics-Isabella/LeetCode | 6ba10b70bb8b8d15f5598b06f9b9c0ba40eaa0d2 | 90afbbd98bb80cd439a3d14f5eba99696c5dbb69 | refs/heads/master | 2021-01-12T05:31:00.293290 | 2017-08-03T05:48:54 | 2017-08-03T05:48:54 | 77,944,475 | 1 | 0 | null | 2017-01-03T18:59:45 | 2017-01-03T18:59:44 | null | UTF-8 | Python | false | false | 1,234 | py | # Time: O(n)
# Space: O(n)
# Given a non-empty string check if it can be constructed by taking a substring of it
# and appending multiple copies of the substring together.
# You may assume the given string consists of lowercase English letters only and its length will not exceed 10000.
#
# Example 1:
# Input: "abab"
... | [
"noreply@github.com"
] | Peripatetics-Isabella.noreply@github.com |
76705674841dca7e1c0fdbec51fb4f0b7f989140 | 49f61714a6f78d984fd2194d6064d84e891bc5b7 | /2019-1/220/users/2882/codes/1736_2496.py | 34aaeee55371a5a36435ec18f6e128cfa904b6b2 | [] | no_license | psbarros/Variaveis3 | b5c4e1517e7d94a846ee03791d25d5821a1c651c | 3dcf6f810709ce03c78335acf9533e008a2ae125 | refs/heads/master | 2023-06-13T07:05:00.878430 | 2021-07-06T17:51:37 | 2021-07-06T17:51:37 | 383,549,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | num=int(input("Numero: "))
i=0
soma=0
while (num != -1):
soma=soma+num
num=int(input("Numero: "))
i=i+1
print(soma)
| [
"psb@icomp.ufam.edu.br"
] | psb@icomp.ufam.edu.br |
8fb3780f28f7cec8acaf6687b71b6bb84ea56add | 3333ef2d0d28c389dbc5e74bd6160f20b17f2738 | /run.py | 76496515cc518fa660e42fd1495f3bc27a430a4d | [
"MIT"
] | permissive | zolagz/Video_Maker | 8499d73a7a09eb11c7b60dc82acef928913c5ce8 | 3189c2c6a652a10abb732cd48f73b4dd318aed59 | refs/heads/master | 2023-03-01T17:28:51.225567 | 2021-02-08T14:29:45 | 2021-02-08T14:29:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,804 | py | # -*- coding: utf-8 -*-
import os
from rich.console import Console
from moviepy.editor import CompositeVideoClip, AudioFileClip
from utils import (
check_dirs,
make_bgm,
resize_image,
mkdirs,
rmdirs,
read_dir,
computed_time,
make_info_img,
make_image_clip,
)
from rich.progress import... | [
"lionacc@163.com"
] | lionacc@163.com |
29ab49aa05b4049510072ab0452bce50284ecf40 | ea1373d9a58ad198c15d35a6daddb4e06d21aa39 | /application-code/show3d_balls.py | 4d086af1e8e3e1d75769cd87bd256539b3669351 | [] | no_license | screnary/VoxSegNet | bb2778dfc460dfafdbd923f79755f7f0776dc36f | 264f2efc0a589018a1fc68c111626beacbe095a5 | refs/heads/master | 2020-09-04T03:41:47.067129 | 2019-11-07T06:34:29 | 2019-11-07T06:34:29 | 219,649,857 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,889 | py | """ Original Author: Haoqiang Fan """
import numpy as np
import ctypes as ct
import cv2
import sys
import os
import pdb
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
showsz=800
mousex,mousey=0.5,0.5
ix,iy=-1,-1
zoom=1.0
changed=True
dragging=False
def onmouse(event,x,y,flags,param): # *args
# args=[event... | [
"screnary@qq.com"
] | screnary@qq.com |
5f29536f67f29a27f285d1db01302e99cf8351f8 | 61b7738d816c50103f868ccb231f77013ef8d77b | /lista6/bank/bank/settings.py | 626f43f73cb70795c8465c90b3515fda06e7fcf7 | [] | no_license | Adimus11/Cyber-Security | 901853d495d275cebe8c62769ba79dfa876fa296 | a840c87694205f95bd603d01c7142d684036bd3e | refs/heads/master | 2020-04-03T07:02:53.839445 | 2018-12-05T17:48:24 | 2018-12-05T17:48:24 | 155,092,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,554 | py | """
Django settings for bank project.
Generated by 'django-admin startproject' using Django 2.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
from ... | [
"mtreter@outlook.com"
] | mtreter@outlook.com |
3a3f131e46c372e5a1ffb23605dd5ea5ac592973 | 4652255cc1adaed1cf808f5475aa06265ee2016a | /fluiddb/security/test/test_oauth.py | d9a3fda028a68004273e684c46f1c20fd2a3f13a | [
"Apache-2.0"
] | permissive | fluidinfo/fluiddb | ca55b640ce44be53614068caade373046bdf30e4 | b5a8c8349f3eaf3364cc4efba4736c3e33b30d96 | refs/heads/master | 2021-01-11T08:16:01.635285 | 2016-03-27T21:11:58 | 2016-03-27T21:11:58 | 54,848,235 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,626 | py | from random import sample
from fluiddb.data.exceptions import UnknownUserError
from fluiddb.data.system import createSystemData
from fluiddb.data.user import getUsers, ALPHABET
from fluiddb.model.oauth import (
OAuthAccessToken, OAuthRenewalToken, OAuthConsumerAPI,
UnknownConsumerError)
from fluiddb.model.user... | [
"terry@jon.es"
] | terry@jon.es |
4d4553b85bc708e1d64287c597830a6b0bb0cbed | 124cab3c2b3803ef139e54ce0fcb854e14a35c04 | /UserModel.py | 915f6fa8512ef481e25de1f5c5f8c8dcb93de801 | [] | no_license | crakage/testFlaskRESTAPI | dc158b87ac77ef5c54335ad297cb3c53f9171a20 | 4f3446b72789e66bb9a55ee334b0deb0466e0aa7 | refs/heads/master | 2021-07-12T23:12:19.751153 | 2020-02-04T17:36:49 | 2020-02-04T17:36:49 | 237,854,944 | 0 | 0 | null | 2021-03-20T02:47:50 | 2020-02-02T23:56:30 | Python | UTF-8 | Python | false | false | 914 | py | from flask_sqlalchemy import SQLAlchemy
from settings import app
db = SQLAlchemy(app)
class User(db.Model):
__tablename__ = 'users'
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(80), unique=True, nullable=False)
password = db.Column(db.String(80), nullable=False)
de... | [
"dvoillemin@salesforce.com"
] | dvoillemin@salesforce.com |
5cb5519fcd5d7ace3ee77669134038d7dcb9f955 | 50283cbf59177c50c7655701144c417145f677c1 | /stagcorr/correlators/fourPointsFree.py | 4833775fc32b67f44b5aff89b04d990ef6f1e618 | [] | no_license | Shaun252/staggcorr | da4970c255a369520a7ea7a18910c7dd933c021a | fe40fb0ba873791f47a4a6a1f8f4951a07fe0df7 | refs/heads/master | 2022-12-05T02:20:42.637350 | 2020-09-01T21:13:46 | 2020-09-01T21:13:46 | 292,109,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,199 | py | from stagcorr.stagFuncs import *
from stagcorr.lattice.navigation import *
from stagcorr.correlators.symmetricLinks import LinkSymList
from collections import defaultdict
########################################################################################################################################
#### 4pt f... | [
"slahert@illinois.edu"
] | slahert@illinois.edu |
b129a9f14e65ef5524a7b3b9c62c43528fa7a56e | 8df1237388352d29c894403feaf91e800edef6bf | /Algorithms/717.1-bit-and-2-bit-characters/1-bit-and-2-bit-characters_1.py | c29bf6ba7a65751ccf0ecf07f91a5fd4ce738556 | [
"MIT"
] | permissive | GaLaPyPy/leetcode-solutions | 8cfa5d220516683c6e18ff35c74d84779975d725 | 40920d11c584504e805d103cdc6ef3f3774172b3 | refs/heads/master | 2023-06-19T22:28:58.956306 | 2021-07-19T00:20:56 | 2021-07-19T00:20:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | class Solution:
def isOneBitCharacter(self, bits: List[int]) -> bool:
return False if not bits or bits == [[1, 0]] else True if bits == [0] else self.isOneBitCharacter(bits[1:]) if bits[0] == 0 else self.isOneBitCharacter(bits[2:]) | [
"zoctopus@qq.com"
] | zoctopus@qq.com |
4641f71c8fc337e1c5b4eb755e5c0ceac7ad3f42 | 992a1f3208468972f7aa9b61f8d91a66806bfe48 | /miscToyProblems/normalize.py | 0ba45edf70288edca388d432c566ec5df85221ad | [] | no_license | awestover/MLToyProblems | fc59cd936c46abc76f7df260506ae3b9445530f8 | 115ede0504b66e2b007917e215254259a68f25ff | refs/heads/master | 2020-09-19T19:17:40.380750 | 2019-11-26T19:53:10 | 2019-11-26T19:53:10 | 224,270,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | # normalizes data
import pandas as pd
import numpy as np
file = "data/disk.csv"
df = pd.read_csv(file)
print(df.columns.values)
df['0'] = df['0']/np.linalg.norm(df['0'])
df['1'] = df['1']/np.linalg.norm(df['1'])
df.to_csv(file.replace("_normal","").replace(".csv", "_normal.csv"), index=False)
| [
"alek.westover@gmail.com"
] | alek.westover@gmail.com |
e1b0733ecac00aa28a18c49e0652264914e973bd | 655e37f57a069449707b48c78e9946564730f12d | /MetroVan_GUI/gui_main.py | 9d52fe7a1a393ef7a370d5d3184aa334f335e344 | [] | no_license | ATFL/MetroVan | 8fc27f524d20211412ddb3e8773c5e4c43578a7d | f3f7c558d90a2ba873f155a5358ea3f310cc9b9c | refs/heads/master | 2020-05-23T20:19:15.375429 | 2019-05-25T04:30:47 | 2019-05-25T04:30:47 | 186,927,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,444 | py | #Last edit: 22/05/2019
# -----> System Imports <-----
import os
import sys
import datetime
import time
# -----> Tkinter Imports <------
import tkinter as tk
from tkinter import ttk
# -----> Matplotlib Imports <------
import matplotlib as mpl
mpl.use("TkAgg")
from matplotlib.backends.backend_tkagg import FigureCanvasTkA... | [
"50426287+Syvkei@users.noreply.github.com"
] | 50426287+Syvkei@users.noreply.github.com |
99fd59851f36042e6b13fdcd03002ff2f7862381 | 66a5e499059978fb858f1b7fa18b4dfd81ed0360 | /yourguy/migrations/0080_auto_20150720_1530.py | 700b4a455db9d5f5fba0f972d7e1c051d4cb9b32 | [] | no_license | kahihia/YourGuyLogistics | dd55c2988d558cedb68a9580de14bf2d8a062170 | 6b428f59f2b18c708a6bb89c1af8e93549833a94 | refs/heads/master | 2021-01-21T17:46:36.949542 | 2016-04-27T06:00:34 | 2016-04-27T06:00:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('yourguy', '0079_auto_20150720_0646'),
]
operations = [
migrations.AddField(
model_name='order',
name... | [
"shirish542@gmail.com"
] | shirish542@gmail.com |
c722d7a1a268be3c31c6b16ac882917d6145f22b | 196d8516c456bf205c62cc1827095edf3e66d0a0 | /idlelib/venv/Scripts/easy_install-3.7-script.py | f3374351b27302776d3dd170da7abb010d85a334 | [] | no_license | 9cup/Python-Teaching-Aid-System | 48fe657e2efb5613386cc36f5f75bdf05ac5d882 | f4dcd6170d3f9bc70fdb08389994b12290a9e47e | refs/heads/master | 2023-03-17T19:44:32.537105 | 2020-04-19T10:53:37 | 2020-04-19T10:53:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | #!C:\Users\zhaos\AppData\Local\Programs\Python\Python37\Lib\idlelib\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[... | [
"963500310@qq.com"
] | 963500310@qq.com |
185ff4683705d47bb70ad6277e1b71d08ea7653f | 1ee90f9716070a9628106a64e1450752d541e637 | /run.py | 7da638fa419bdf9c2a96434bf64f23ce23b96504 | [] | no_license | andrepnh/end-to-end-stream-processing | 621388d9b85a3c09b38a8137a4c08f850b748a0e | 00ed17fe94870cb52cab631ec7286ede08ce0fe4 | refs/heads/master | 2021-06-25T21:47:03.690075 | 2020-10-12T14:34:30 | 2020-10-12T14:34:30 | 141,506,119 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,597 | py | #!/usr/bin/env python3
import os
import subprocess
import time
import urllib.request, urllib.parse
def require(cond, message):
if not cond:
raise Exception(message)
def execute(command):
subprocess.run(command.split(' ')).check_returncode()
def send(url, body='', method='GET', headers={}):
try:
... | [
"andrepnh@users.noreply.github.com"
] | andrepnh@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.