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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8c0c4481c0dcb0f0acdf102417132479cee97925 | 3e8ad0a8c52996d614dfc868f1431d7e71ac85d9 | /src/input_data.py | 3c9e9b1e5b28e6fcb8e2b35bb834e5e18c5af50a | [] | no_license | seraphium/neural-networks-and-deep-learning | a6ecc825a865fdbc883db72172f0b9d5b49d0e51 | 230f295026295694c95a06f3fb98c3fc67e2fae2 | refs/heads/master | 2021-01-23T06:19:49.776857 | 2017-04-10T16:49:21 | 2017-04-10T16:49:21 | 86,352,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,227 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"viperking@163.com"
] | viperking@163.com |
952babd550cd9afcf85f784233a0982659630df6 | fed5cff094e3bb65b7963c26f96420469f6a60ac | /lensing.py | b9163dcb909a4e8cc116c5654ade26d019a7a5a0 | [] | no_license | sriniraghunathan/cmb_lensing | fbafbd939123345a77c17a51c3d4edd950b046a2 | 8a6250a910ea2687d99646d9ce6d242389d9f6eb | refs/heads/master | 2023-03-29T05:35:13.225785 | 2021-03-24T14:16:37 | 2021-03-24T14:16:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,567 | py | # importing relevant modules
import numpy as np
import scipy as sp
from cosmo import CosmoCalc
import tools
#################################################################################################################################
# defining relevant constants
c = 3e8 # speed of light in m/s
G = 4.3*10**(-9... | [
"noreply@github.com"
] | sriniraghunathan.noreply@github.com |
8ebd576a5c0651eb84ceff4de6e7daa1b0798574 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python/generated/test/test_com_adobe_granite_repository_hc_impl_authorizable_node_name_health_check_properties.py | 3a604357918c8edc66ecdea80b46d7424d41f966 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 1,487 | py | # coding: utf-8
"""
Adobe Experience Manager OSGI config (AEM) API
Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: opensource@shinesolutions.com
Generated by: https://openapi-... | [
"michael.bloch@shinesolutions.com"
] | michael.bloch@shinesolutions.com |
061fe85a1d6cca2865862da0c133cc36a11f4ecb | 4f6c5a21840f630eab748fa64f79f3d15e33315a | /upload/1386125709792681985/news/master/master/settings.py | 29039ffdeae32373f1ae85b4d7954455d440d93e | [] | no_license | taozi926494/collectplatform | 802af97f0fcb0c8f670e616011e7e2db10edda82 | fb9bc32a99335340cb4e11f18a6e9d5e1effb17a | refs/heads/master | 2023-04-15T00:38:36.869680 | 2021-04-28T02:35:39 | 2021-04-28T02:35:39 | 357,378,396 | 0 | 4 | null | 2021-04-28T02:35:40 | 2021-04-13T00:36:49 | Java | UTF-8 | Python | false | false | 918 | py | # -*- coding: utf-8 -*-
BOT_NAME = '{{project_name}}'
SPIDER_MODULES = ['{{project_name}}.spiders']
NEWSPIDER_MODULE = '{{project_name}}.spiders'
ROBOTSTXT_OBEY = False
CONCURRENT_REQUESTS = 1
DOWNLOAD_DELAY = 1
DOWNLOADER_MIDDLEWARES = {
# 'master.middlewares.UserAgent': 1,
# 'master.middlewares.MasterDownlo... | [
"bestfuqiang@163.com"
] | bestfuqiang@163.com |
5482b9e1a19c034e719f9d85304183ee10fb27d2 | fcd9b782b9e0f0973b1ddc45e432091e2e107f39 | /InstantiationScripts/changeSOACoherence.py | 323ed4273b40d9b92dfcef95b908ae09c7e5ac36 | [] | no_license | oktbabs/fmw_repo | 5c8baa0be8185f3846ebc3cea3a2bf07ff4eb0d3 | 3cff15b4c1e1674c038c8d1c3a6d2c7a68035afb | refs/heads/master | 2020-04-09T23:06:09.725008 | 2018-12-06T14:44:11 | 2018-12-06T14:44:11 | 160,646,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,676 | py |
#++++++++++++++++++++++++++++++++++++++++++++++
# Script Name : changeSOACoherence.py +
# Written By : Timmy Babayeju +
# From Company : Fujitsu +
# To Company : FSA +
# Description : Script retrieves the old +
# Coherence Arguments WKA Addr... | [
"oktbabs@gmail.com"
] | oktbabs@gmail.com |
dca9033b946ba0da1b82f6962d81894435c4265a | 33ca1dab3b0d4e25bdf114e0b873fcb0fdcbc01e | /Input_Output/Using_Pickel_read_write_bin/__init__.py | 8b8e57d9d58a5d7c511f17e61f5c12d8fcb6ba9a | [] | no_license | Biddy79/eclipse_python | 4f49fd714cbdb09be014e75b74a983e456a94b93 | b90c491834d0a584bcab0b99bb8f26d9c0d26669 | refs/heads/master | 2021-12-08T21:55:44.438923 | 2021-11-01T14:39:18 | 2021-11-01T14:39:18 | 235,864,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,556 | py | #import pickle lib
import pickle
#creating a tuple to write to bin_file
computer = ('CPU RAM HARD DRIVE MOTHERBOARD',
(('cpu', 'AMD Ryzen 9'), ('ram', 'Corsair 32gb'),
('hard drive', 'Samsung 1td ssd'), ('motherboard', 'ASUS ROG STRIX')))
computer_parts, computer_spec = computer
#using pic... | [
"a.beardsley79@gmail.com"
] | a.beardsley79@gmail.com |
d02b3ee42165fc8a4ec861da700bab61c57b5750 | 0d448a977b0e30b4d5dac76c8f273efb069e263c | /face_blur/face_bluring.py | 0d8da9adf20cad98adfb541936fc19ba2b9ec2f7 | [] | no_license | Prakadeeswaran05/Mini-Projects | cccecc5f559e4315b2d81ad83e67b44f9f12e733 | 984050cea9b8526e8dd38d76f695dca1503ecb3f | refs/heads/master | 2023-06-05T13:03:12.131637 | 2021-06-19T08:58:44 | 2021-06-19T08:58:44 | 298,242,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | import cv2
face_cascade=cv2.CascadeClassifier('C:\\Users\\kesav\\Downloads\\face_blur\\haarcascade_frontalface_default.xml')
cap=cv2.VideoCapture(0)
while True:
ret,frame=cap.read(0)
face_img=frame.copy()
face_rects=face_cascade.detectMultiScale(face_img)
for (x,y,w,h) in face_rects:
... | [
"prakugenius@gmail.com"
] | prakugenius@gmail.com |
c03a0a16cd18a1dc84fbaa0069aa6edc636399b0 | 1f6c1b65ac3f71ccc16b46585595406dfbbc1ca1 | /shared/clock.py | 25626ea5176e1d9b9fc34c3ca7369b6891eb6efa | [] | no_license | luisoibarra/distscrappy | 20d236786c7009e2db1db758e91dac62dd49a963 | ba2db15543f9811f7985b9d77178019308fb3807 | refs/heads/master | 2023-05-31T20:08:07.841953 | 2021-06-22T02:43:41 | 2021-06-22T02:43:41 | 375,577,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | import time
import Pyro4
@Pyro4.expose
class ClockMixin:
"""
Mixin that provides clock time methods
"""
def initClockTime(self):
self._clock_time_diff = 0
def setClockTime(self, t : float):
if not hasattr(self, "__clock_time_diff"):
self.initClockTime()
self._... | [
"lukedalmau@gmail.com"
] | lukedalmau@gmail.com |
09b3a389b1084df14d4c4a8c2f0930a95a481b25 | 44a7330dfa4fe321eb432ee57a32328578dec109 | /milk/tests/test_pca.py | e543aff8ebdf2506e861097e21e31271cf4bb07d | [
"MIT"
] | permissive | tzuryby/milk | 7cb6760fad600e9e0d0c9216dc749db289b596fb | a7159b748414d4d095741978fb994c4affcf6b9b | refs/heads/master | 2020-12-29T02:45:33.044864 | 2011-03-15T20:23:29 | 2011-03-15T20:25:11 | 1,485,748 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | import numpy.random
import milk.unsupervised.pca
import numpy as np
def test_pca():
numpy.random.seed(123)
X = numpy.random.rand(10,4)
X[:,1] += numpy.random.rand(10)**2*X[:,0]
X[:,1] += numpy.random.rand(10)**2*X[:,0]
X[:,2] += numpy.random.rand(10)**2*X[:,0]
Y,V = milk.unsupervised.pca(X)
... | [
"lpc@cmu.edu"
] | lpc@cmu.edu |
6f71f8c2009acaee5f18bf0ff7b498764b45a894 | 922d4d17e73120e5075d95385b5d930adedf4ba4 | /fileupload.py | 1759017fea234674c0e7bea021ffab3e944f2a87 | [] | no_license | Animesh66/SeleniumTutorial | 31adf60b5ff4d54a49071fcdd12d88f67aa79aeb | fe61fc9fff4d46a6951919d51d81b048451c2e3d | refs/heads/master | 2023-05-09T21:43:51.689598 | 2021-05-28T17:10:51 | 2021-05-28T17:10:51 | 369,188,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | from selenium import webdriver
import time
driver = webdriver.Chrome()
driver.maximize_window()
driver.get("https://testautomationpractice.blogspot.com/")
driver.set_page_load_timeout(10)
driver.switch_to_frame(0) # switch to fame to identify the form
upload_file = driver.find_element_by_id("RESULT_FileUpload-10") #... | [
"er.animesh6@hotmail.com"
] | er.animesh6@hotmail.com |
52e390b76a17c761f1aefd5adfe00b9b3859f38b | c730ce0eeea6d774ac6bf7b8ae28d7201efbaa12 | /MovieRaterApi/movierater/urls.py | 98444c67e42b240cef788dec464c2ea0739c7263 | [] | no_license | Yi-Lai-SJSU/Django-React-project-Movie-rator | 4057a81550e34e1f72f62eb18e13542c97f7e969 | d9b97c74948f8ccc47b1eb0e924ba1147da34174 | refs/heads/master | 2020-12-13T10:24:33.137183 | 2020-01-18T07:00:26 | 2020-01-18T07:00:26 | 234,388,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | """movierater 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-ba... | [
"yugguo@adobe.com"
] | yugguo@adobe.com |
f8fdb29e897fa128d24ffc589aefca92f2b0bd24 | a7b1f827def23135663625426d11b1c57b02fdd9 | /2_3_alerts/2_3_step3_alert1.py | 3de4e106a245dec60b5ae04c2cc451e6e8abc2ab | [] | no_license | Michael-uniq/selenium_stepik_learn | e6421221b0cfc7d469a0fcc12635cb44369e6d35 | 5ba6762aaeb7cdf5f2ad43db4660b0eff9b48992 | refs/heads/master | 2021-06-18T09:39:12.348198 | 2019-10-05T19:00:52 | 2019-10-05T19:00:52 | 212,150,595 | 0 | 0 | null | 2021-06-02T00:30:03 | 2019-10-01T16:54:53 | Python | UTF-8 | Python | false | false | 887 | py | from selenium import webdriver
import time
from utils import print_answer, calc
from selenium.webdriver.common.by import By
link = "http://suninjuly.github.io/alert_accept.html"
browser = webdriver.Chrome()
browser.get(link)
try:
btn = browser.find_element_by_class_name('btn')
btn.click()
print_answer(brow... | [
"michael.co@ya.ru"
] | michael.co@ya.ru |
0785c4045308368283d3ef833fe22fa1dd6852ba | 82097740587821af4af9b41ba9ae14638d20eb69 | /Flask/flaskproject/models.py | 156ead3900d1fc71edca30e0dac340333c6c314e | [] | no_license | dasdasda21/flask | d592c8fa90ea90bdf9adb38b6b0d8b6d8b621967 | 207e863209f670bc8360084fed2e038db727c10b | refs/heads/master | 2020-07-30T12:48:15.417540 | 2019-10-07T13:12:42 | 2019-10-07T13:12:42 | 210,239,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | from main import models
class BaseModel(models.Model):
__abstract__ =True
id = models.Column(models.Integer,primary_key=True,autoincrement=True)
def save(self):
db = models.session()
db.add(self)
db.commit()
def delete(self):
db = models.session()
db.d... | [
"zhangsan.caom"
] | zhangsan.caom |
cb70d5fe1db0f0732fbacf5597c7d99fed39b7c6 | 3d8afceef40458704efbfd10565ce3e2f6cd0662 | /objects.py | 27ead85035a6fa530b51cc97dc603bcfa4b1eb11 | [] | no_license | PyKonstantine/Cyber-Eng | 02d9c5e001f0d0e935627c8a7dca643198cd2d82 | 4c78854998641e7d77382d6e35e86942ba7d983b | refs/heads/master | 2023-03-10T08:17:26.621204 | 2021-01-31T19:53:28 | 2021-01-31T19:53:28 | 334,460,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | import pygame as pg
from settings import HEIGHT
COLOR_INACTIVE = pg.Color('lightskyblue3')
COLOR_ACTIVE = pg.Color('dodgerblue2')
class LiteControlButton:
def __init__(self, x, y, w, h):
self.rect = pg.Rect(x, y, w, h)
self.R = 0
self.G = 255
self.B = 0
self.button_y = 20... | [
"chai.ne.voron1991@gmail.com"
] | chai.ne.voron1991@gmail.com |
893ef9476b1476a4529208a0c1475e6749d452e7 | 6d1728bf105a7d6481d0bbca2b88f4478e0632d9 | /beautifulsoup/start/sibling.py | e0e1b3167becdb2101cb9e5f656394b366a1fa76 | [] | no_license | Phantomn/Python | 00c63aceb2d4aa0db71fe5e33fe8b5159b41aadd | 12808adf4b52c60cfe94befb6daa1e8187224beb | refs/heads/Python | 2022-11-09T16:49:49.165884 | 2019-08-05T07:30:07 | 2019-08-05T07:30:07 | 44,149,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | from urllib import urlopen
from bs4 import BeautifulSoup
html = urlopen("http://www.pythonscraping.com/pages/page3.html")
bsObj = BeautifulSoup(html, "html.parser")
for sibling in bsObj.find("table", {"id":"giftList"}).tr.next_siblings:
print(sibling) | [
"tmdvyr123@naver.com"
] | tmdvyr123@naver.com |
8b4c3ac988b0f45270e383cbf96bdd84bb4ef0b3 | c347d18581177f4a1ed460d57f51906b1c1065e5 | /SDK/wxPythonTextfield.py | 1fe4c8390e723a13021b31eb8aac76fd00e984c1 | [] | no_license | mr-huangjian/Python | da2184f51e03c60dd72e392e8afa9f540a9497ef | 7e0a421d922d377270547afbc9029f7627506f2b | refs/heads/master | 2021-06-28T09:01:56.487917 | 2017-09-19T09:57:33 | 2017-09-19T09:57:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | # coding: utf-8 python2
# created by mr.huangjian@foxmail.com on 2017/7/1.
import wx
class Textfield(wx.TextCtrl):
def __init__(self, superview, style=0):
wx.TextCtrl.__init__(self, superview, -1, style=style)
def text(self, text):
self.SetLabelText(text)
def gettext(self):
retu... | [
"mr.huangjian@foxmail.com"
] | mr.huangjian@foxmail.com |
f879b55baf04f46a20421bff6c616a80bc6116d5 | 0e4c5acb80ea44bfa33a0afb713c0d4bc3a5c8f7 | /xueshu/spiders/xueshu.bak | 7437bcaea15ac5f8c894e8b670a53f200f9a237a | [] | no_license | ljjwyn/xueshu | f9ee58602de25244e85f32948020a511c91b4b86 | 69ccc98b1d4fcef2275a8cef939034f2a3d1e5a8 | refs/heads/master | 2023-01-31T02:53:25.515136 | 2020-12-18T05:40:13 | 2020-12-18T05:40:13 | 322,499,259 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,532 | bak | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from scrapy.spiders import CrawlSpider, Rule
from scrapy_splash import SplashRequest
from scrapy.linkextractors import LinkExtractor
from scrapy_splash import SplashTextResponse, SplashJsonResponse, SplashResponse
from scrapy.http import HtmlResponse
from xueshu.items impo... | [
"15964969802@163.com"
] | 15964969802@163.com |
b5876dc9d96aa0353a010e6ab41149777db2839f | 826d6d3a2f691046bc65d25d00a23d1b4444c4d5 | /tecpython/lib/python3.7/_dummy_thread.py | 6b010bea891f9bf63be652923541c8da3127db17 | [] | no_license | oscargarciahernandez/QuesiQuieroOquesiTeqno | e3391d56329d84d52ad4a61270dab8bef34db15c | 2f7024f08a6de6a84d0fb5f40832df70aee48c6f | refs/heads/master | 2023-01-19T22:43:44.789533 | 2020-11-23T13:07:20 | 2020-11-23T13:07:20 | 285,193,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | /home/ai5/anaconda3/lib/python3.7/_dummy_thread.py | [
"proyectoroseo@gmail.com"
] | proyectoroseo@gmail.com |
62ca945793b8ded662bede34c74e0fa6bba7a0dd | 3d7039903da398ae128e43c7d8c9662fda77fbdf | /database/LeetCode/juejin_177.py | 66305002a453b443f0d8c1698db9ad711222a8ac | [] | no_license | ChenYongChang1/spider_study | a9aa22e6ed986193bf546bb567712876c7be5e15 | fe5fbc1a5562ff19c70351303997d3df3af690db | refs/heads/master | 2023-08-05T10:43:11.019178 | 2021-09-18T01:30:22 | 2021-09-18T01:30:22 | 406,727,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67,057 | py | {"err_no": 0, "err_msg": "success", "data": [{"article_id": "6998707022577270798", "article_info": {"article_id": "6998707022577270798", "user_id": "3175804198200456", "category_id": "6809637767543259144", "tag_ids": [6809640398105870343, 6809641039037464589], "visible_level": 0, "link_url": "", "cover_image": "https:/... | [
"www.1759633997@qq.com"
] | www.1759633997@qq.com |
c062491db89b6d205ed3010f8b3bee07231d1981 | 9c00aca19e4faea5067769c06f4430b41b8ad00d | /assignment1/cs231n/classifiers/linear_svm.py | e33b1903347f6ba255a8bf29f0f0b4e1e9fb2e41 | [] | no_license | amir-raffiee/cs-231n | 5a2e40ba9ea31cc76e352fe6e70c0e031f9555f6 | 3a80042ddfa5e05e5ba168841d77cf7a1fe29d1c | refs/heads/master | 2021-09-01T16:53:52.507865 | 2017-12-28T01:04:52 | 2017-12-28T01:04:52 | 115,569,727 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,390 | py | import numpy as np
from random import shuffle
from past.builtins import xrange
def svm_loss_naive(W, X, y, reg):
"""
Structured SVM loss function, naive implementation (with loops).
Inputs have dimension D, there are C classes, and we operate on minibatches
of N examples.
Inputs:
- W: A numpy array of sh... | [
"noreply@github.com"
] | amir-raffiee.noreply@github.com |
c77f8b71d8b80ea561f1eec9ef50aee4ebe3840e | 0ff6f65c2da3ddf495b21fb54ae07c1e5c535692 | /juegos/Ahorcado.py | c8ba2bad0792f3a9ab25fac2a0b19bc0342dcd1d | [] | no_license | ldoboga/Bot-discord | 76721ccd8472af7aa161e2159c11a0424ba120fa | 54ed1ff7652a14dbaa90d0a72e9e14b37a63ee59 | refs/heads/main | 2023-07-14T14:47:55.430149 | 2021-08-27T01:26:34 | 2021-08-27T01:26:34 | 388,254,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,907 | py | import random
def leer_archivos():
ARCHIVOS = ('bin\\Cuentos.txt', 'La araña negra - tomo 1.txt', 'Las 1000 Noches y 1 Noche')
with open(ARCHIVOS[0], 'r') as f:
lista = []
data = ''
for line in f:
data = line.rstrip('\n').lower().split()
if data == []:continue
... | [
"bogadofedericoezequiel@gmail.com"
] | bogadofedericoezequiel@gmail.com |
fa3f7ccbf4b282e0ed863b3a8fc5815164a62dd5 | 48bba3541896587cd96112ff4a814d5d8ec6414c | /codes/infer_video1.py | e01911f5f5ff92f0c6a5d5b8471da8590f406570 | [
"BSD-2-Clause"
] | permissive | Bala93/Digital-pathology | f056ebb42c7592fdca400ee0e832fb5225b91085 | 6be5f8a75d9ace9035e915b02244cf97af25ec96 | refs/heads/master | 2021-09-19T10:23:54.459477 | 2018-07-26T18:18:45 | 2018-07-26T18:18:45 | 102,435,574 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | /media/htic/NewVolume1/murali/Object_detection/models/research/infer_video1.py | [
"balamuralim.1993@gmail.com"
] | balamuralim.1993@gmail.com |
d54b95cb3abb42444dba3471fb97d13b45c2bc5f | fe628361e4b4b6acaf693cc9bdde3d25c1926dec | /ers_backend/dataset_manager/models.py | 2e6484d585ae2d3de686bf9de526691ec7c25359 | [
"MIT"
] | permissive | dumoulinj/ers | bcd0de8df8f63e12f7659d5ea1efe32e272e8d66 | ce38ba8acf8fed8dbf27fb85fa6c024540763286 | refs/heads/master | 2020-12-26T03:10:30.550545 | 2016-07-26T07:49:56 | 2016-07-26T07:49:56 | 35,938,084 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 29,490 | py | import os
import logging
import collections
import shutil
from PIL import Image, ImageStat
from converter.ffmpeg import FFMpeg
import cv2
from cv2 import cv
from django.db import models
from swampdragon.models import SelfPublishModel
from django_enumfield import enum
from jsonfield.fields import JSONField
from django.c... | [
"d.jo3l@live.com"
] | d.jo3l@live.com |
eebdc0052426934db29e5ef417df31c842b4617d | 1d3450789ee37cceaacddf1cce7508277fd8c240 | /testcli.py | abba3396419e79a83b015cb7665c14970d4e89f5 | [] | no_license | Grissess/nom | cf26ebc3b9c2b891ed021be6206571e78235b6c6 | affbd99fc6dad411f5442de72299689677670132 | refs/heads/master | 2020-04-08T13:18:12.096791 | 2015-01-26T10:33:04 | 2015-01-26T10:33:04 | 23,888,844 | 0 | 0 | null | 2014-09-11T00:42:27 | 2014-09-10T19:27:10 | Python | UTF-8 | Python | false | false | 122 | py | import service
srv=service.Service(('', 12075))
srv.start()
cli=srv.Connect(('127.0.0.1', 12074))
rx=srv.Resolve(cli, 'X') | [
"grissess@nexusg.org"
] | grissess@nexusg.org |
f1a2454b34e5977852b4f29981527465145cb558 | c86c07584e618c5a4936b13768ef417a319d4b06 | /show_user_permissions.py | 58928ceed0f506d981b1709985ce96329146f53c | [] | no_license | DivvyCloud/tools | 24c1404576e1d30625ae3be16b21c033c8e0bad2 | 53b3686b89e23fcfa44cd4fb95014929ee3cca27 | refs/heads/master | 2020-07-12T07:27:44.537320 | 2019-11-01T18:10:03 | 2019-11-01T18:10:03 | 204,754,278 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,059 | py | # Script to list all permissions a user has via groups and roles
##### SAMPLE OUTPUT
'''
[Alex-MBP scripts]$python show_user_permissions.py
User: ben.calpotura
Number of attached groups: 3
Roles for group: Marketing Team
[]
Roles for group: DivvySales
[ { 'add_cloud': False,
'all_permissions': False,
... | [
"alex.corstorphine@divvycloud.com"
] | alex.corstorphine@divvycloud.com |
eba383154f45d3e7af31022c4c2cb7368e4e1f19 | 75e03232591b263a50523d7cfef4041db36caf01 | /VMWsolutions/at2-vclient-032/cft/stress_random_loop.py | 9838ee1acd308fedd0e76ae9218942c2a0100af3 | [] | no_license | adamkittel/src | aaf157062d069998a8d18841895e7362cf868ff9 | 11e3927bd990b885eba595346694de2d2601d5c9 | refs/heads/master | 2021-01-11T16:13:14.592894 | 2017-01-25T18:29:09 | 2017-01-25T18:29:09 | 80,040,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,389 | py | """
This action will run random stress tests in a loop
When run as a script, the following options/env variables apply:
--mvip The managementVIP of the cluster
SFMVIP env var
--user The cluster admin username
SFUSER env var
--pass The cluster admin password
... | [
"adam.kittel@solidfire.com"
] | adam.kittel@solidfire.com |
76d1807da6e30de90b7fc8d7ae5c3f2be4b808a3 | c10f20abec372f81dbd6468ead208543f60940f1 | /learning/20.BayesianNetwork/20.1.Iris_GaussianNB.py | 8cd96f72d7add1efc07bd0c634a76cf4b1150c0f | [] | no_license | alenzhd/meachineLearning | 64876e7a6c0b8b39a63a9eb586d306a3489b4447 | 1b66ce2f73b226548f07e45c8537b8286635a048 | refs/heads/master | 2021-08-24T10:55:52.056439 | 2017-12-09T10:26:37 | 2017-12-09T10:26:37 | 112,688,163 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,854 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib as mpl
from sklearn.preprocessing import StandardScaler, MinMaxScaler, PolynomialFeatures
from sklearn.naive_bayes import GaussianNB, MultinomialNB
from sklearn.pipeline import Pipeline
fro... | [
"zhanghd@asiainfo-mixdata.com"
] | zhanghd@asiainfo-mixdata.com |
67ffd9c692b0207ce65232a7eec862d400e10e60 | 89be3dbe4973f65b17a98780f5b0edce2b3634b0 | /abel/tests/test_tools_center.py | 3bd695c474f386df2c5535e1cf57a56305d97a9f | [
"MIT"
] | permissive | Yarubaobei/PyAbel | 0b53daf496dbc0e88547d166267285d72306c702 | 8c881b59a36ed5bd8ad841e38dc942c23c0ff112 | refs/heads/master | 2020-05-19T05:40:47.176636 | 2019-05-04T05:24:20 | 2019-05-04T05:24:20 | 184,854,479 | 0 | 0 | MIT | 2019-05-04T05:06:37 | 2019-05-04T05:06:37 | null | UTF-8 | Python | false | false | 1,792 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os.path
import numpy as np
from numpy.testing import assert_allclose
import abel
from scipy.ndimage.interpolation import shift
def test_center_image():
# BASEX sample image, Gaussians at 10, 15... | [
"Stephen.Gibson@anu.edu.au"
] | Stephen.Gibson@anu.edu.au |
c63fff8d99a3dc4b7fc547ac13a5fde5ce61b21f | 8a25ada37271acd5ea96d4a4e4e57f81bec221ac | /home/pi/GrovePi/Software/Python/others/temboo/Library/Fitbit/Social/CreateInvite.py | ad0fa7c6517b0cc3e0e04b248b8071b8d35346b8 | [
"MIT",
"Apache-2.0"
] | permissive | lupyuen/RaspberryPiImage | 65cebead6a480c772ed7f0c4d0d4e08572860f08 | 664e8a74b4628d710feab5582ef59b344b9ffddd | refs/heads/master | 2021-01-20T02:12:27.897902 | 2016-11-17T17:32:30 | 2016-11-17T17:32:30 | 42,438,362 | 7 | 8 | null | null | null | null | UTF-8 | Python | false | false | 5,095 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# CreateInvite
# Invites a user to become friends with authorized user.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you m... | [
"lupyuen@gmail.com"
] | lupyuen@gmail.com |
9e304994375f0455b78a9d29d08791808a9cccc8 | 6b77fc3e8a2b919483723c02ab47681f6c487caa | /main.py | 30ccf696cee9f3e806a1491e43f53d4984ec88ab | [] | no_license | kazato110tm/gcp_python_app | 1d94482eda88e176364ceb6d1d6be39676780df5 | 1a5a2ea65ad82da8a7261d84908faa136fb067d3 | refs/heads/master | 2022-12-06T21:53:56.408582 | 2020-08-23T16:01:10 | 2020-08-23T16:01:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,360 | py | # Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"deguchi.k.110@gmail.com"
] | deguchi.k.110@gmail.com |
0b130d34300f0d54fda9186249d00d2196464eda | d2ada8e9dea0a59476dbbdcfdebc3b8eed951271 | /CH02/bh_sshserver.py | 5046e3f12011c7357d50aa4e84956dbebd0307ea | [] | no_license | sadavoya/bhp | dccf211f4bd95f5eaf69e44c3bfee8f7d07af688 | 6fbf1be8ca0f83363234d9c95170bdd770716c28 | refs/heads/master | 2021-01-13T14:51:13.347114 | 2017-02-21T01:39:57 | 2017-02-21T01:39:57 | 76,486,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,325 | py | #!/usr/bin/env python
'''SSH'''
import socket
import threading
import paramiko
import sys
# using the demo keys in the paramiko demo files
host_key = paramiko.RSAKey(filename='test_rsa.key')
#print host_key.get_base64()
class Server(paramiko.ServerInterface):
def __init__(self):
self.event = threading.Eve... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
d6d93d1c2677289dd9d3a9dc675e7e0a2d8b2862 | 6d49e92a553de6bcf07a308e15985ad600fcc367 | /hyperparam_optim.py | 813616bd8d25969c1b46f9659ad9fee4303fedaa | [] | no_license | nurahmadi/Audio-Classification-Using-Deep-Learning | 3e17462a7b7dc8e1e4e2165f9d6f2d27d1aa05dd | ad2dc8db8f00b597659c5d39fc1cfe55b79cadab | refs/heads/master | 2022-08-20T09:34:02.802485 | 2020-05-25T21:25:55 | 2020-05-25T21:25:55 | 266,879,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,744 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 18 21:46:40 2020
@author: na5815
"""
import numpy as np
import os
import tensorflow as tf
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import LSTM, Dropout, Dense
from tensorflow.keras.optimizers import RMSprop
import h5py
impor... | [
"noreply@github.com"
] | nurahmadi.noreply@github.com |
76e4e94088cac8fe23976295b68806f853d5a0ef | cc8b87bef3cb2d93928d7882c1aa2cb6d29bd819 | /Python/cali_usa.py | 81f2f8cd3bcd4b918b3200fd8d66dde07995edb4 | [] | no_license | angelicaba23/MisionTic2022 | e61cf66ebe069d1b72995ebc466d85224486ad1c | e547343dd7f7dcbaf49958a99f0722f53c4df3a3 | refs/heads/master | 2023-08-01T03:42:36.252984 | 2021-09-17T02:29:06 | 2021-09-17T02:29:06 | 379,116,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,227 | py | """
------------MinTic-----------------
-------------UPB-------------------
-------Angélica Barranco-----------
"""
#factura
num_factura = 0
menu = "si"
while menu == "si":
print("\nBienvenido al sistema de calificacion")
nota_a = 0
nota_b = 0
nota_c = 0
nota_d = 0
nota_f = 0
c_f = 0
c... | [
"angelicaba9923@gmail.com"
] | angelicaba9923@gmail.com |
e89d6dc70ef70ba87520aa3295eb41f07cb4aaa9 | 2a3606551a4d850a7b4d6a4e08089c51108ef7be | /plugin.video.mrknow/resources/lib/crypto/keyedHash/pbkdf2.py | cf79523b747c13cbeb4fb110e54813a48c123a41 | [
"Apache-2.0"
] | permissive | rrosajp/filmkodi | a6bb1823f4ed45453c8b8e54ffbd6a7b49f44450 | 0162cde9ae25ddbf4a69330948714833ff2f78c9 | refs/heads/master | 2021-09-18T06:03:17.561062 | 2018-06-22T23:28:53 | 2018-06-22T23:28:53 | 234,768,781 | 1 | 0 | Apache-2.0 | 2021-06-03T20:33:07 | 2020-01-18T17:11:57 | null | WINDOWS-1252 | Python | false | false | 1,571 | py | # -*- coding: iso-8859-1 -*-
""" crypto.keyedHash.pbkdf2
Password Based Key Derivation Function 2
References: RFC2898, B. Kaliski, September 2000, PKCS #5
This function is used for IEEE 802.11/WPA passphrase to key hashing
Copyright © (c) 2002 by Paul A. Lambert
Read LICENSE.txt for license information.
"""
fr... | [
"mrknow@interia.pl"
] | mrknow@interia.pl |
821821dc8c26febfe8eae588743128fda1bc6ed5 | cbdf42eaf2f3ee908999fb1317d3fe90fa255f42 | /kusinwolf/truth_tables.py | 78e29f83189b337acc29c22cdc795974950e4d69 | [] | no_license | tdyhacker/pythonexploration | 47c4e8a96d541428d4cf1d6c558a29e48f5fc22c | 4b360ef2b61fb565c7e2f82ff31e848776cd649a | refs/heads/master | 2021-01-10T02:51:34.245002 | 2010-11-28T02:31:36 | 2010-11-28T02:31:36 | 47,951,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,895 | py |
def printTable(truth_table):
for key in truth_table['order']:
print key, "\t",
print ""
for item in truth_table['order']:
print "-------",
print ""
for row in range(len(truth_table[truth_table['order'][0]])):
for col in range(len(truth_table['order'])):
... | [
"kusinwolf@c446d5ca-c62c-11dd-92e3-e3085bfe42ca"
] | kusinwolf@c446d5ca-c62c-11dd-92e3-e3085bfe42ca |
0e00d7b9dfd12f62cf14341e65cd37786e0b1482 | f687b45b061a0a4ed849d5d56e265a3423c95f56 | /mime_gen_both.py | 9f8121e8b8ff5edba0344a98ab758923591037af | [] | no_license | wwwlwscom/python | 45e52529fffccf161a0cff8aaf2d19a149ac2056 | 5478329f068f9a4eff5c07eee8005318b41b6440 | refs/heads/master | 2021-01-20T10:06:17.251976 | 2015-10-20T20:03:34 | 2015-10-20T20:03:34 | 41,769,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,479 | py | #!/usr/bin/env python
from email.MIMEText import MIMEText
from email.MIMEMultipart import MIMEMultipart
from email.MIMEBase import MIMEBase
from email import Utils, Encoders
import mimetypes, sys
def genpart(data, contenttype):
maintype, subtype = contenttype.split('/')
if maintype == 'text':
retval = MIMEText(da... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
d26c8d733fd5edcbcf3cdce1accbdc56c474b637 | d245c87a5082027f4b390210e0beae15ce19f321 | /python/crc16.py | d52d40b2e38a314dc0c4278bec53300ed81f03fc | [] | no_license | pazderski/spair-stm32-firmware | 9a85e83f1bbdb3fc55a440f039fc18d98e723815 | 26c3a226a4b7dec3e735ab4712f1ad36b97f4a8b | refs/heads/master | 2021-01-10T05:26:55.284937 | 2020-03-02T22:33:11 | 2020-03-02T22:33:11 | 36,146,152 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,635 | py | #* File: CRC16.PY
#* CRC-16 (reverse) table lookup for Modbus or DF1
#*
INITIAL_MODBUS = 0xFFFF
INITIAL_DF1 = 0x0000
table = (
0x0000, 0xC0C1, 0xC181, 0x0140, 0xC301, 0x03C0, 0x0280, 0xC241,
0xC601, 0x06C0, 0x0780, 0xC741, 0x0500, 0xC5C1, 0xC481, 0x0440,
0xCC01, 0x0CC0, 0x0D80, 0xCD41, 0x0F00, 0xC... | [
"dariusz.pazderski@put.poznan.pl"
] | dariusz.pazderski@put.poznan.pl |
91956ba4d19b41720a01993ac3acbd491ad295d4 | cd5746f8cc7aee1f20606a65b4fae0d5e8ee78dc | /Python Books/PythonTesting-BeginnersGuide/code/tests/test_chapter5/test_pid.py | 72b93cd1bcd67c97b5266912ef867908e2d9e800 | [] | no_license | theGreenJedi/Path | df24fca355590efef0c6cb5c52e7216c6b5d2464 | b5ed2805dbb046480929e49e550bfd8af5bb4d6f | refs/heads/master | 2023-07-27T14:23:37.694546 | 2021-07-16T01:38:55 | 2021-07-16T01:38:55 | 87,686,563 | 8 | 2 | null | 2023-07-11T22:49:03 | 2017-04-09T05:57:30 | Jupyter Notebook | UTF-8 | Python | false | false | 2,718 | py | from unittest import TestCase, main
from mocker import Mocker
import pid
class test_pid_constructor(TestCase):
def test_without_when(self):
mocker = Mocker()
mock_time = mocker.replace('time.time')
mock_time()
mocker.result(1.0)
mocker.replay()
controller = pid.PI... | [
"GreenJedi@protonmail.com"
] | GreenJedi@protonmail.com |
5589f53032b5d4e17f0d40bc8a5c208b3fe36000 | 2fd46266ea2a0155d9de4e539970cf7fcdcdfc69 | /backhotel/migrations/0001_initial.py | c8c3e482f97eec20dc732a9c24929f5b19fa4b40 | [] | no_license | djcors/ultragroup | c31307cc7786838c0f016d06c4799b9c822026ef | 0c05014dd7702a99861b7b341883231b627c04d7 | refs/heads/master | 2023-01-13T23:17:49.642271 | 2019-11-13T03:29:58 | 2019-11-13T03:29:58 | 220,570,849 | 0 | 0 | null | 2023-01-07T11:34:22 | 2019-11-09T00:50:13 | JavaScript | UTF-8 | Python | false | false | 2,876 | py | # Generated by Django 2.2.7 on 2019-11-10 15:54
from django.conf import settings
import django.contrib.auth.models
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permissions... | [
"jonathan.cortes@inmersa.co"
] | jonathan.cortes@inmersa.co |
6d5294bd220daf2939a8aa6af9e29395f72721da | 72c02a60f2a2894a148f5fb4c8ff62e0b0a7fc4e | /news_system/exception.py | 848ec9f9f4ef5f637e6ed55002df3f683d459caf | [] | no_license | Kamonnny/news_system | a798c258dc84efb9756889e2c9eace9b1216c5b3 | 476b4fc0eec8ecb7349cc5e44df990a629c600e4 | refs/heads/main | 2023-03-29T11:46:36.089419 | 2021-03-25T12:45:19 | 2021-03-25T12:45:19 | 314,820,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | class APIError(Exception):
""" 自定义错误类 """
def __init__(self, code: int = 400, msg: str = "ok", data: dict = None):
self.code = code
self.msg = msg
self.data = data or {}
| [
"EachinChung@gmail.com"
] | EachinChung@gmail.com |
da12b13c74af1380f00c4a72cbbbc0e05debc10d | 0d68ecb5f8ad4577163550ffd48737ab1c677b38 | /src/blockit/utils/io.py | 5b7c9a0f6d90a5f199e92da246bd9384d94e578f | [
"MIT"
] | permissive | jgarte/blockit | 8372c35ea9d6ed14ab67b48de753e7dfc02cfc84 | e0311444701ac1a1d0fbec623f6ebc72f1b37e6b | refs/heads/main | 2023-05-31T04:59:43.541995 | 2021-06-21T14:48:30 | 2021-06-21T14:48:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | """File I/O util functions."""
from pathlib import Path
from blockit.txn.txn_block import TransactionBlock
def get_project_root_path() -> Path:
"""Get project root path.
Returns:
Path: Absolute path of the project root
"""
return Path(__file__).parents[3].absolute()
def write_block(txn_b... | [
"ank@leoank.me"
] | ank@leoank.me |
002330b328f74d714aa97ba917e8782c833ab8da | 92c7311a8c145b2d415901991a459bf7d2734929 | /src/web/Result.py | d6cac504f8c02f8e040af32d4e04cdcf39c4d2b1 | [] | no_license | liuyanglxh/py-web | 3aa1043b672a034d548bce7042c8e0cf8faa24b2 | 441ed2077faeabf38f1449762a6ce692bb6a1115 | refs/heads/master | 2022-11-20T15:37:39.612580 | 2020-05-29T10:41:32 | 2020-05-29T10:41:32 | 267,832,787 | 0 | 0 | null | 2022-11-17T15:08:32 | 2020-05-29T10:40:30 | Python | UTF-8 | Python | false | false | 349 | py | from flask import json
class Result(object):
success = True
data = None
code = 200
def __init__(self, success, data, code):
self.success = success
self.data = data
self.code = code
r = Result(True, "a", 200)
print json.dumps(r, default=lambda o: o.__dict__, sort_keys=True, i... | [
"yang.liu@mail.dealmoon.com"
] | yang.liu@mail.dealmoon.com |
76b298420595288e18d020473760727475db4570 | 3e6d90546509004d836b4a74df93c9d1515529a0 | /Interpolazione.py | 6e7821a583fda9e05fe5c8f0f525372fc9047150 | [] | no_license | pelagos91/UniBa-Calcolo-Numerico-ICD | 8a05438837a17ffe13ddc684ef187b340ac8f21a | 969c3deeaf184c81df956756b7157b398944a28c | refs/heads/master | 2021-01-10T05:32:48.845826 | 2016-01-26T22:25:41 | 2016-01-26T22:25:41 | 50,463,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,269 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Dec 13 09:25:54 2015
@author: pelag
"""
import numpy as np
import scipy.linalg as las
import matplotlib.pylab as plt
import scipy.interpolate as interpolate
def lagrange(xnodi,fnodi,x):
"""
Funzione che determina in un insieme di punti
il valore del polinomio... | [
"agopel@gmail.com"
] | agopel@gmail.com |
7da317e87cb08431320105068322690d71269402 | a1092fecf5057e45f1df4e738a14be210dadbc83 | /gen.py | 3d26eb5062cedb3108e425576485a5c6bc7d741c | [] | no_license | robert-giaquinto/baum-welch | ba45b3c80e839ae7fd5b8b5a00ee07dd9228b61a | b57fb2bd64ed3fdfed1552a6ea5afd9c7c120cfc | refs/heads/master | 2021-01-15T09:09:29.267399 | 2014-05-31T21:17:42 | 2014-05-31T21:17:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | import random
import numpy as np
N_SEQ = 10
START = 0
BEFORE = 1
AFTER = 2
END = 3
def gen_seq():
seq = []
state = START
while state != END:
if state == START:
state = BEFORE
seq.append('S')
if state == BEFORE:
n, l, r = np.random.multinomial(1, [0.9... | [
"piotrek.kaleta@gmail.com"
] | piotrek.kaleta@gmail.com |
1b5264d22279cc7d5f53699e4a0c0adf326e2398 | 2836975ce5ee74397fb674bdfd04a164d00baafb | /main/migrations/0015_auto_20201124_1105.py | 54d7a4575c36c78dab5ae3e805029eaf089a4b61 | [] | no_license | tz01x/rental | 57aedf6677ead989a089999b4802a6975d62ce0c | 103491c76c62b71901d3f758f9b9af59d2270fe4 | refs/heads/master | 2023-08-22T14:45:18.125694 | 2021-09-30T01:58:46 | 2021-09-30T01:58:46 | 332,413,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | # Generated by Django 3.1.1 on 2020-11-24 05:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0014_auto_20201122_1658'),
]
operations = [
migrations.AddField(
model_name='property',
name='latlong',
... | [
"abdur963rahman@gmil.com"
] | abdur963rahman@gmil.com |
79397e0d2322942df03ee78140a794d44521cfca | 2b01258d3a1dca79d548f490731b0474cab5202f | /app/model/file.py | adb9d84802b812ecb99f5c5f112817f1a79f7abd | [
"MIT"
] | permissive | icrdr/1-mu-server | 9714b60ea285c843dca6f0cda74566c70449fe76 | 8212b79a9949e334c185b99b1be41add5e577937 | refs/heads/master | 2022-11-23T08:11:44.258413 | 2020-10-16T14:03:36 | 2020-10-16T14:03:36 | 194,759,358 | 0 | 0 | MIT | 2022-11-22T04:07:08 | 2019-07-02T00:18:35 | Python | UTF-8 | Python | false | false | 4,551 | py | from .. import db, app
from datetime import datetime
import os
import shortuuid
from psd_tools import PSDImage
from PIL import Image
from .post import Tag
from ..utility import word2List
FILE_TAG = db.Table(
'file_tags',
db.Column('tag_id', db.Integer,
db.ForeignKey('tags.id')),
db.Column('fil... | [
"icrdr2010@gmail.com"
] | icrdr2010@gmail.com |
20c0f10f618f37ebff15f67061d06d10a35ab6ef | 59dd90d261756b0de462b693d596f5f06f71270b | /samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/group_parameters.py | bab146a1f469249eb19f39009467267a361a1734 | [
"Apache-2.0"
] | permissive | wsalembi/openapi-generator | cf76c5241e28956fc44a073d17a1ee14fd9aef85 | 035736f5c413bbdc8e70f840cc2e8ff32da9a5a8 | refs/heads/master | 2023-03-17T02:22:04.106748 | 2022-02-16T07:33:23 | 2022-02-16T07:33:23 | 227,096,278 | 0 | 0 | Apache-2.0 | 2023-03-13T17:02:23 | 2019-12-10T10:56:56 | Java | UTF-8 | Python | false | false | 6,531 | py | # coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
from dataclasses import dataclass
import re # noqa: F401
import sys # noqa: F401
import typing
import urllib3
from urllib3._collections import HTTPHeaderDict
from petstore_api import api_client, exceptions
import decimal # noqa: F401
from ... | [
"noreply@github.com"
] | wsalembi.noreply@github.com |
9663b289594d9946c2f865789b20f2e9add71bac | 9b52be243a9fc05f18fb66044e2d23a8c83f3a0d | /Session 1/intro.py | 9457a97a764f74a1394978dd81c48aee0d3b1383 | [] | no_license | trangnguyen21/nguyenvumytrang-fundamentals-c4ejs01 | 5663a4fd064a8fa05bf3ca730fa08e21753fe982 | 03731c706e498cc72e76ba2423d1c8a186efdff2 | refs/heads/master | 2022-12-09T22:12:06.708492 | 2019-12-29T02:45:32 | 2019-12-29T02:45:32 | 218,953,505 | 0 | 1 | null | 2022-12-05T02:22:04 | 2019-11-01T09:18:56 | CSS | UTF-8 | Python | false | false | 61 | py | a = float(input('height'))
b = float(input('hypotense'))
| [
"admin@CSGLANBK-281.sg.cmc.com.vn"
] | admin@CSGLANBK-281.sg.cmc.com.vn |
40da92312bb0d21b9e98e3332e5523a47d977ab2 | b36a2ca0e71bd272afd4c831e09b498cedfec889 | /0x07-python-test_driven_development/5-text_indentation.py | 0053243d7e0d860174c7314f26c14ad56febdc8c | [] | no_license | dondropo/holbertonschool-higher_level_programming | 3a132c1dd8d31b5e9f170a6fab83aa1550449965 | 6d0bf581830c4ecfb17d926fdc89b357a5664574 | refs/heads/master | 2023-03-02T02:20:09.866147 | 2021-01-31T22:37:01 | 2021-01-31T22:37:01 | 259,390,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | #!/usr/bin/python3
def text_indentation(text):
if not type(text) is str:
raise TypeError("text must be a string")
sp_chars = [':', '.', '?']
if type(text) is not str:
raise TypeError("text must be a string")
idx = 0
for j in text:
if j in sp_chars:
if text[idx + ... | [
"alejandroruscamoreno@gmail.com"
] | alejandroruscamoreno@gmail.com |
c658a9eea9faa8760fe14642bb464cfabf73be90 | 2bdffd6d18cc16801064373409821130f9035ed4 | /experiments/sudoku/solve2_nn.py | 54b53ec5f2281796daec0d673a510b6cb05cce96 | [] | no_license | benthayer/Tensorflow | a433c05ba20db937d4fd6830e30d03d1741e1b2d | 48572c93702799b690c0b061fadc4cffb1a34283 | refs/heads/master | 2021-06-14T14:53:23.337419 | 2017-03-20T22:45:01 | 2017-03-20T22:45:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,084 | py | import numpy as np
import tensorflow as tf
from experiments.sudoku.gen2 import convert_to_normal, get_training_and_test_sets
def weight_variable(shape):
initial = tf.truncated_normal(shape, stddev=0.1)
return tf.Variable(initial)
def bias_variable(shape):
initial = tf.constant(0.1, shape=shape)
ret... | [
"benthayer2365@gmail.com"
] | benthayer2365@gmail.com |
1d5db696b220dc961fb989dfd34319751e4378f2 | 66ff35c1389e468e809c4080262f79a91373ce29 | /RotorS_ws/build/rotors_control/catkin_generated/pkg.installspace.context.pc.py | 43cfa00f3c30211991b0271b5a9ef0c38c9db3c3 | [] | no_license | TJHDL/Tilted-Hexarotor-Omnicopter | e544a82b505ecd148f8bde10fced42605397bec0 | f8f47b4d101b0c2665b4c78180908eeac6758627 | refs/heads/main | 2023-05-01T14:13:53.670321 | 2021-05-10T12:06:46 | 2021-05-10T12:06:46 | 366,026,610 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else []
PROJECT_CATKIN_DEPENDS = "geometry_msgs;mav_msgs;nav_msgs;roscpp;sensor_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-l... | [
"hdltjdx@163.com"
] | hdltjdx@163.com |
5e3d8619d84b4b1e96647c74f4f542131e866de3 | 0dfa9dc572ea50ae81de8052f4d2ac79bb31a243 | /test_incorrect_ip_address_managers.py | 6feda65aa49efdb3e75d6789fac86e0fa77e7db8 | [] | no_license | dwjhaines/selenium | 6b52c9c1d02d6088695c49fc8a4dfc2d3323206f | 44e0e1285be92013e6d8d2cece7419431ac3f4e3 | refs/heads/master | 2020-04-17T19:45:58.070917 | 2016-09-14T14:53:40 | 2016-09-14T14:53:40 | 66,008,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,416 | py | ###############################################################################################
# #
# test_incorrect_ip_address_managers.py #
# ... | [
"David.Haines@s-a-m.com"
] | David.Haines@s-a-m.com |
6ee7e72ba92ecde352fbe7130382ee1d2873e524 | d5f080543d3004f560c1ae636900080f1c7e8b31 | /configs/D2Det/D2Det_detection_r101_fpn_2x.py | 4e184d8220699043f302581714e52140c0c3b0ba | [
"MIT"
] | permissive | Randl/D2Det | dc7bd395b8c538e96f390d7ce5c396f87ee89bd8 | 5e35b218d9de824e73e0a49953af25a0c6984e74 | refs/heads/master | 2022-09-25T13:52:21.141590 | 2020-06-11T09:08:47 | 2020-06-11T09:08:47 | 271,498,684 | 0 | 0 | MIT | 2020-06-11T08:56:15 | 2020-06-11T08:56:15 | null | UTF-8 | Python | false | false | 5,685 | py | # model settings
model = dict(
type='D2Det',
pretrained='torchvision://resnet101',
backbone=dict(
type='ResNet',
depth=101,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
style='pytorch'),
neck=dict(
type='FPN',
in_channels=[256, ... | [
"connor@tju.edu.cn"
] | connor@tju.edu.cn |
602ecb7bb83ddd5c367c45eeaec4531e135d6824 | f87dc2227f9539ce9f87b8eb417d28f487ea2eac | /이진탐색/부품찾기.py | b3627efacbce4f210bf7ebc9dc2784e06dd4977a | [] | no_license | jjangsungwon/python-for-coding-test | fb1e019a2e68e426bb4f6770bffdc6289a647b4a | 8d9bf8de5de2a9724f75b35ea04dd9bcc40dec86 | refs/heads/master | 2022-12-16T02:53:55.967070 | 2020-08-26T08:41:14 | 2020-08-26T08:41:14 | 285,842,867 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | def binary_search(target, start, end):
if start > end:
return None
while start <= end:
mid = (start + end) // 2
if array[mid] == target: # 일치
return "yes"
elif array[mid] > target: # 중간값이 찾고자 하는 값보다 클 때
end = mid - 1
else:
start = mid... | [
"dnjs2113@gmail.com"
] | dnjs2113@gmail.com |
627dc9d2396b751179bf4503d940b93c9c792dcf | b4ea78b8b33e2dee808290e8f87038108b12cf7b | /Python-learning/画图/others/test6.py | eec99faddab877ca9a2c0f07386452d0d66a70e3 | [] | no_license | liang2713020/Learning | d275ddfb8032d49f42143dc71bfd52fdeacb8932 | fbfdc12ce2877af4be020082885519334523c8ab | refs/heads/master | 2021-01-22T19:55:06.788211 | 2015-07-26T13:54:19 | 2015-07-26T13:54:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py |
from pylab import *
figure(figsize=(8,5), dpi=80)
subplot(111)
X = np.linspace(-np.pi, np.pi, 256,endpoint=True)
C,S = np.cos(X), np.sin(X)
plot(X, C, color="blue", linewidth=2.5, linestyle="-")
plot(X, S, color="red", linewidth=2.5, linestyle="-")
xlim(-4.0,4.0)
xticks(np.linspace(-4,4,9,endpoint=Tru... | [
"568191222@qq.com"
] | 568191222@qq.com |
3925710c3420811e6ea8744fbbc871f548568fad | fc8a86e30c286910eef086821397b34093954fed | /day04/note/json1.py | e4125259f10447fc494d84f76907d062ad6d5450 | [
"Apache-2.0"
] | permissive | wjianwei126/learnpython | 0e1a0504b70852eb3d9c53d8827981ce5d609446 | 797ec7afc94e6c467d7e1f037219b3aaf1327cf0 | refs/heads/master | 2020-04-09T04:18:32.059840 | 2015-01-22T12:42:00 | 2015-01-22T12:42:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | #!/usr/bin/evn python
#coding:utf-8
import json
a = {'k1':'v1','k2':'v2'}
a_json = json.dumps(a)
print a_json
print type(a_json)
a_new = json.loads(a_json)
print a_new
print type(a_new) | [
"congmmy@gmail.com"
] | congmmy@gmail.com |
7c6fc5bd03e1385e6cf3dcf99c83d1f366d599fb | ce72b098359697eb28628848ec13f736f29366fa | /10-11_like_number_1.py | 1d4d7fef40c7c08b8efc1dad28a2b51c1358d64c | [] | no_license | TCmatj/learnpython | 1e9ab09deebda025ee4cdd1a465815fcd0594f48 | d92b38a760b29f26efba1f4770ab822aba454931 | refs/heads/master | 2023-01-31T18:19:56.211173 | 2020-12-14T03:06:35 | 2020-12-14T03:06:35 | 298,828,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | # TC 2020/10/11/21:39
import json
filename = 'json\\like_number.json'
number = int(input("输入喜欢的数字:"))
with open(filename,'w') as fm:
json.dump(number,fm) | [
"2216685752@qq.com"
] | 2216685752@qq.com |
6907542e7974952c900a54a7451dffc120b1d850 | 719990ee24f8dbfc11024bb5f1ec22cd3b8b4c62 | /scrape.py | ead90be26583ec15b8e8d7b048ed45fdfff202d1 | [] | no_license | raymond-devries/usara-nationals | 790eed3d34a2f2ac2e74c141ae493c51d6eb50c3 | 1c9f82d686de730bde0296f40bf9d92a0ec78bbb | refs/heads/master | 2023-08-12T04:28:51.849196 | 2021-09-19T18:32:43 | 2021-09-19T18:32:43 | 405,495,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | from selenium import webdriver
import json
from selenium.webdriver.firefox.options import Options
def main():
options = Options()
options.headless = True
driver = webdriver.Firefox(options=options)
driver.get("https://adventureenablers.s3.amazonaws.com/Tracking/2021USARANationals/SI/index.html")
... | [
"raymond.l.devries@gmail.com"
] | raymond.l.devries@gmail.com |
16a3403ab8a7c97642874c0b8f630e03fc070931 | 2546d448f03a57152a701180077fcc904b1b944a | /schedule/urls.py | 8077ba2843cfce809db5893d0f5c814810d77fe0 | [] | no_license | NathanDai5287/Sharetrade | 61f52913591a404766654921c054663d83414a55 | 62a453364c0d97cf0b114e5286bfd0dc8fef44a5 | refs/heads/master | 2023-06-26T20:52:09.932366 | 2021-08-03T04:38:04 | 2021-08-03T04:38:04 | 387,053,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | """schedule 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-base... | [
"nathandai2000@gmail.com"
] | nathandai2000@gmail.com |
d8ca730c49e849faef22bb61d6e7c1ea1853c890 | 694d57c3e512ce916269411b51adef23532420cd | /python/chapter-1/lab4-exec1.2.py | 00e1dd5356363c18fb8e1045f63f53286f0a515a | [] | no_license | clovery410/mycode | 5541c3a99962d7949832a0859f18819f118edfba | e12025e754547d18d5bb50a9dbe5e725fd03fd9c | refs/heads/master | 2021-05-16T02:46:47.996748 | 2017-05-10T23:43:50 | 2017-05-10T23:43:50 | 39,235,141 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | def gcb_recur(a, b):
smaller_para = min(a, b)
larger_para = max(a, b)
remainder = larger_para % smaller_para
if smaller_para % remainder == 0:
return remainder
return gcb_recur(smaller_para, remainder)
print(gcb_recur(50, 35))
def gcb_itera(a, b):
smaller_para = min(a, b)
larger_p... | [
"admin@admins-MacBook-Air.local"
] | admin@admins-MacBook-Air.local |
ccea4c2d3b3dedfd336b6570dafd6f1cbb2e431c | bf79aba1e47566d06fd9a7096a1d2dbbaf228748 | /detect.py | 26b305d7faa0cf22c154c6cb4cc9c78bbbeb2413 | [] | no_license | SubinMs/smartPrice | b998e315d8ffe610a75e7164f08fdf78000fb954 | d21b9d991fa513bb08ac097a36e905ba2563cc1c | refs/heads/master | 2020-09-14T16:28:47.955172 | 2019-11-21T17:16:46 | 2019-11-21T17:16:46 | 223,184,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,201 | py | import io, os
from numpy import random
from google.cloud import vision
from Pillow_Utility import draw_borders, Image
import pandas as pd
os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = r"GoogleCloudDemo_ServiceAcct_Token.json"
client = vision.ImageAnnotatorClient()
img_list = os.listdir('./images')
#fil... | [
"noreply@github.com"
] | SubinMs.noreply@github.com |
6aef4706708cb0d55ce4d56b5e7fcbfcba763ea4 | 5a1d08aac9ed0c730e4f97b0e766c6763cfaab1f | /gb_chat/common/ui_keyboard_interrupt_helper.py | f393750b04ea94f8e2bfb5f048664114872d7b25 | [
"Apache-2.0"
] | permissive | Cerzon/gb_chat | 0b2965e046bcf4d832fb398361271d8eae19e50f | b4f8a6bf62b0971a135fbb2083456193f7a816cb | refs/heads/main | 2023-04-24T12:26:44.142068 | 2021-05-03T14:52:01 | 2021-05-03T14:52:01 | 360,984,777 | 0 | 0 | Apache-2.0 | 2021-05-03T14:52:02 | 2021-04-23T19:22:17 | Python | UTF-8 | Python | false | false | 685 | py | """
This solution is taken from https://coldfix.de/2016/11/08/pyqt-boilerplate/#keyboardinterrupt-ctrl-c
"""
import signal
from typing import Callable
from PyQt5.QtCore import QCoreApplication, QTimer
def _interrupt_handler(app: QCoreApplication) -> None:
app.quit()
def _safe_timer(timeout: int, fun: Callable[... | [
"derlih@gmail.com"
] | derlih@gmail.com |
5c09d311aad75b9bd3cd0f7997527b7e8fa604b9 | 457a1baf3a9afc365d53e955db5ccbef6a9f636b | /morphenepython/blockchain.py | 78f87d70667fda7d3020bdbb096dc6dc9ad2baea | [
"MIT"
] | permissive | morphene/morphene-python | 5bf9cb3cbc4a081297e26269c398192e12433072 | 7c6144c7337330490229ce69b8c3fb5dc2e3d08e | refs/heads/master | 2021-07-03T07:43:16.118829 | 2019-05-30T19:38:49 | 2019-05-30T19:38:49 | 189,285,305 | 0 | 0 | NOASSERTION | 2020-10-27T21:47:05 | 2019-05-29T19:22:41 | Python | UTF-8 | Python | false | false | 42,412 | py | # This Python file uses the following encoding: utf-8
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from future.utils import python_2_unicode_compatible
from builtins import str
from builtins import range
from builtin... | [
"andrewc@pobox.com"
] | andrewc@pobox.com |
0e0b558e0962614dfcb87a6d486c3d9fdd1a129a | 7327dda3e2c72026bfe0de5185645fb24d0e3fe0 | /week2/iterative-sorting.py | b18c3fbefd43c624e00aa455a3487c7eacb86247 | [] | no_license | CarnunMP/CS-morning-challenges | 782b1774344361c69929ab1f0006f99ea7fe5abc | b1bb02d4130d3a4e0f6aa6cd28673f92982ea054 | refs/heads/master | 2021-01-03T06:19:33.004744 | 2020-02-25T21:55:07 | 2020-02-25T21:55:07 | 239,958,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,949 | py | ### Objective challenge:
### 1. Try writing a Python function to perform a linear search on a set of data.
### 2. Try writing a Python function to perform a binary search on a set of data.
### 3. Can you rewrite the above function so that it uses recursion?
test_data = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14... | [
"carnun@hotmail.co.uk"
] | carnun@hotmail.co.uk |
aa7b59318cba778a709f76ed4f709ab1a5fa40e7 | cc6d9fb4a7c7235ff5985ef17f4a554f19a0263d | /apps/transactions/templatetags/filters.py | 9706794c65b1abd95312c80471d048127a3ae137 | [] | no_license | timohermans/rabo-overview | 6c210a73a68b17620ee8df0985b9b4e28200081c | 0baea9631ee504b63046459718ea1a255992a18d | refs/heads/main | 2023-08-05T19:54:30.751983 | 2021-09-11T18:17:53 | 2021-09-11T18:17:53 | 393,132,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | from datetime import date
from typing import Any, Iterator, List
from dateutil.relativedelta import relativedelta
from django import template
from apps.transactions.models import Account, Transaction
register = template.Library()
@register.filter
def previous_month(source: date) -> date:
"""date - 1"""
ret... | [
"timo.hermans@kabisa.nl"
] | timo.hermans@kabisa.nl |
26d76ad4d4f1ddd75f25e843de51546595a08f4d | 3356eb3fbf1ba5a8e5b0a851f07e8df5c852fdf8 | /tasks/takeoff.py | c4c7e6afe91521b29b8fec997819f25673715950 | [] | no_license | spb07/RL-Quadcopter-2 | 640118dcc932780e9c23d2adc36ab49d5e640f80 | 1061f3df2de6e116d281730583aa74acb472509b | refs/heads/master | 2020-03-18T22:32:02.527492 | 2018-05-29T20:49:28 | 2018-05-29T20:49:28 | 135,350,682 | 0 | 0 | null | 2018-05-29T20:41:13 | 2018-05-29T20:41:12 | null | UTF-8 | Python | false | false | 7,157 | py | import numpy as np
from physics_sim import PhysicsSim
class Task():
"""Task (environment) that defines the goal and provides feedback to the agent. Goal is to takeoff to a given height and hover once takeoff height is achieved. Ideally, only vertical movement with no movement in other planes and no rotation"""
... | [
"rnb14@ic.ac.uk"
] | rnb14@ic.ac.uk |
7d812592e10d2a0d003e3156aef68f26c0796648 | 601adbb343313e7cce71b9b8d06620f541f349e5 | /tests/test_ci/test_runners/test_BaseRunner.py | 4545078bf38683e3c939099329a8ad2f0d27d15f | [] | no_license | jgsogo/conan-sword-and-sorcery | f3ff2c9b739410a7fb6eb97c49470d585fd1ab4c | 143f05d8b469a3afc9c807ec87fbe2dcbe63dab3 | refs/heads/master | 2021-04-06T06:23:40.584031 | 2018-08-15T16:50:43 | 2018-08-15T16:50:43 | 124,441,534 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,120 | py | # -*- coding: utf-8 -*-
import os
import unittest
try:
from unittest import mock
except ImportError:
import mock
from conan_sword_and_sorcery.ci.runners import AppveyorRunner
from conan_sword_and_sorcery.ci.runners.base_runner import SUCCESS, FAIL, DRY_RUN, BaseRunner
from conan_sword_and_sorcery.parsers.sett... | [
"jgsogo@gmail.com"
] | jgsogo@gmail.com |
0a19884a78e49b4f205f1efa1f54e90fe911ff31 | a1e2d31682b80aca10bbcd25db550419e04e71e5 | /semesters/apps.py | 1b7401041ba6e4bb8cb6e06093f6fd800242272b | [] | no_license | letzzBuild/ElectiveAPI | 712b1043c533eb00657f0cb481a7fcdbc47bb376 | e89d3af596ae2898e4480f8b380d46e13cd6338d | refs/heads/main | 2023-08-14T16:37:45.390654 | 2021-09-26T07:57:13 | 2021-09-26T07:57:13 | 379,562,536 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class SemestersConfig(AppConfig):
name = 'semesters'
| [
"letzzBuild@gmail.com"
] | letzzBuild@gmail.com |
1b20c5a22901e1d346f020449eeffb7621afe266 | 5f51fdeb5efc6cbcc0736957d2f16eddf9214671 | /python/mind_palace/product_ranker/prepare_data/integerize_clickstream.py | e724ec724f5bfb745e44fd81b6c4d2eb7a35091a | [] | no_license | thejusvm/learn-cascading | aa438e74f26b94a880ad04bb425092f5145612e3 | 1e0fd76f7f746e4c177661e40c5abd4fe081643f | refs/heads/master | 2021-09-14T17:12:29.879467 | 2018-03-01T15:32:05 | 2018-03-01T15:32:05 | 103,110,403 | 0 | 0 | null | 2017-09-11T08:32:29 | 2017-09-11T08:32:29 | null | UTF-8 | Python | false | false | 6,607 | py | import cPickle as pickle
import glob
import json
import numpy as np
import os
import pandas as pd
import time
from contextlib import closing
from functools import partial
from multiprocessing import Pool
import mind_palace.product_ranker.constants as CONST
from mind_palace.product_ranker.commons import init_attribute_... | [
"thejus@flipkart.com"
] | thejus@flipkart.com |
3b98e43e2f3dc2377b74432e9fe99c572da37f2a | 4904acd900496b4883c2f5b4aa6b45d1ef6654c0 | /graphgallery/gallery/nodeclas/tensorflow/__init__.py | 1cf21d123e086ed846bcb034e8d4271c9735498d | [
"MIT"
] | permissive | blindSpoter01/GraphGallery | aee039edd759be9272d123463b0ad73a57e561c7 | e41caeb32a07da95364f15b85cad527a67763255 | refs/heads/master | 2023-06-17T11:42:27.169751 | 2021-07-15T03:07:39 | 2021-07-15T03:07:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | from .gcn import GCN
from .gat import GAT
from .clustergcn import ClusterGCN
from .sgc import SGC
from .gwnn import GWNN
from .robustgcn import RobustGCN
from .graphsage import GraphSAGE
from .fastgcn import FastGCN
from .chebynet import ChebyNet
from .densegcn import DenseGCN
from .lgcn import LGCN
from .BVAT.obvat im... | [
"cnljt@outlook.com"
] | cnljt@outlook.com |
697a66de3c22d6e8c4704790081528d98a614067 | adc531efc839ec0fc8e67504e5429ad7696c57cc | /API_Article/migrations/0037_auto_20210430_2214.py | 9066067fd23b7e1551788489d86436814bad5e8b | [] | no_license | huynguyen-py/GraduateBackendAPI | 1521db57947804d4b2342060632a4ecf637993cd | bdfb25ae96fd1165ce431be48c03d80b73d32de8 | refs/heads/main | 2023-05-07T00:04:24.866230 | 2021-06-02T05:03:06 | 2021-06-02T05:03:06 | 372,700,747 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | # Generated by Django 3.1.7 on 2021-04-30 15:14
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('API_Article', '0036_auto_20210316_0944'),
]
operations = [
migrations.AlterField(
model_name='comment',
... | [
"iamhuynguyen1002@gmail.com"
] | iamhuynguyen1002@gmail.com |
4b4b5fbf0fcd97b37a90c5dc2ac660d862ce075b | d5a947bf9819e039f7238e61233c3bfab505deeb | /resume/models.py | d9a053342ec016c9bf06a472b188404a8bdfe82a | [] | no_license | P-Tanifor/JobSite | 09e9c30f3682f16fa125dce587b03e4e97e59e28 | afc5b0acd3a6e81fe96f7486a661705fa86b933e | refs/heads/main | 2023-09-03T12:43:00.162298 | 2021-10-29T11:32:45 | 2021-10-29T11:32:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | from django.db import models
from django.contrib.auth.models import User
import django
# Create your models here.
class Resume(models.Model):
description = models.CharField(max_length=1024)
author = models.ForeignKey(django.contrib.auth.models.User, on_delete=models.CASCADE)
| [
"ptanifor@gmail.com"
] | ptanifor@gmail.com |
1338076a2a3f108f9a4dc2d5342bb1e00f1c6a08 | bae29c2fb8eedd320bc881c2a22b70298ab0f38d | /icoder/settings.py | 967f1581a2d331e5cd6bb00382882744e5558c5f | [] | no_license | SourabhRishabhMishra/icoder | 1527604df1f93f04bc58c4471555381837da296d | 6f4e279c1e31e99e91fbd7c091c9e3088cc1d2e5 | refs/heads/master | 2022-12-07T05:47:02.222021 | 2020-08-19T01:20:32 | 2020-08-19T01:20:32 | 288,088,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,353 | py | """
Django settings for icoder project.
Generated by 'django-admin startproject' using Django 3.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
fro... | [
"sourabhm384@gmail.com"
] | sourabhm384@gmail.com |
16a35cd3db0fd05415676003f38fabb5303dec8d | 6f9170a35fa5d758bec62c9a9be21fae11b6783f | /desafio027.py | 06d929be683134e41c754ae05dd54637ce1078f0 | [] | no_license | alineat/python-exercicios | 11e227ceadbff0e997e2ed427f54a721a5e76e9e | 9557dea8d057ded63e2abbed458d00660d9e8c4e | refs/heads/master | 2020-07-03T15:09:40.575431 | 2019-08-12T14:37:00 | 2019-08-12T14:37:00 | 201,947,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | # Faça um programa que leia o nome completo de uma pessoa, mostrando em seguida o primeiro e o último nome separadamente
nome = str(input('Nome completo: ')).strip()
dividido = nome.split()
print('Primeiro nome: {}.\nSegundo nome: {}'
'.'.format(dividido [0], dividido[len(dividido)-1])) | [
"aline_atsuta@hotmail.com"
] | aline_atsuta@hotmail.com |
4f238047a913854c18e3f54d8ee509ac319bf7c1 | 7873042aa7b983a7c1075ddcf637135eea66adcd | /movie/views.py | 802a69dbda660cfc60cfc2fa73a7d6ded3e48c56 | [] | no_license | connieGao0819/MovieHunter | f6a1a717e0bf441b1b825dd2461d72cfcb1276e9 | ad80b34a0221462bc2850991f14149b46a72dcc3 | refs/heads/master | 2020-03-06T17:58:03.548201 | 2018-03-26T19:41:09 | 2018-03-26T19:41:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,017 | py | from django.shortcuts import render
from django.views.decorators.csrf import csrf_protect
from movie.models import *
from django.http import HttpResponse
import json
from movie import index
index.index_dir()
print(index.permuterm_index.dict())
def add_seen(request, movie_id):
if request.is_ajax():
history... | [
"jgao4@wpi.edu"
] | jgao4@wpi.edu |
e805cdb88bd2de7f4bce40ee710b792a3c6c17be | 106aa71c49f176415c7c140f066bde4e3a2df797 | /Archive/Mads_Wind/utility.py | a67c83df9e2c038f38bc54fbb709dfaca7a60d8b | [
"MIT"
] | permissive | madsankern/DynamicProgramming | df461dae3bcc3dbde18e79fdded0974daa0e293c | 0812b844068c33b2529d4b11940f9c89582bc374 | refs/heads/main | 2023-05-31T00:18:45.820845 | 2021-06-09T16:51:45 | 2021-06-09T16:51:45 | 341,465,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | import numpy as np
# Without housing
def u(c,par):
if par.eta == 1.0:
u = np.log(c)
else:
u = (c**(1-par.eta) - 1.0) / (1.0 - par.eta)
return u
# With housing
def u_h(c,h,par):
if par.eta == 1.0:
u = np.log(c) + par.kappa*h
else:
u = (c**(1-par.eta) - 1.0) / (1... | [
"Wind.Mads@bcg.com"
] | Wind.Mads@bcg.com |
7d6e7442b32fe58141787e6063cf7b0ae35a74b7 | d49fbd7874b70a93cbc551afed1b87e3e47617a8 | /django/example/repositories/__init__.py | 1efb28043ae95783f5bde83b3415bcedaf028594 | [] | no_license | gitter-badger/tutorials-4 | bbdbb673e978118f9fec3212baa13f6f99226be0 | 3ce1cdb7c6d26f6df4d6bb94e82f83e8cab9389b | refs/heads/master | 2020-04-04T20:52:28.181616 | 2018-10-28T22:05:17 | 2018-10-28T22:05:17 | 156,264,177 | 0 | 0 | null | 2018-11-05T18:32:17 | 2018-11-05T18:32:16 | null | UTF-8 | Python | false | false | 528 | py | from .category import load_categories, load_category # noqa
from .entry import load_entries # noqa
from .notification import create_notification, load_notifications # noqa
from .price import ( # noqa
cheapest_price_by_category,
load_price,
prices_for_category,
)
from .profile import ( # noqa
add_ba... | [
"proofit404@gmail.com"
] | proofit404@gmail.com |
a1bb1aaf10d01f0cf95dcf59433fd0ff850d609e | e15e56ddca0d1aa989725ad2766f9cf36bcbde23 | /bin/rundevserver | a84db05f4423dc055598d11370934509319f8123 | [
"Apache-2.0"
] | permissive | ylamgarchal/dci-feeder | f7c26ed78aa61ee2e90cf4d047909b357f013fab | 27c0236c0986ee96fac8209bf69b57e71e38eaf5 | refs/heads/master | 2022-02-11T07:05:17.586018 | 2019-11-25T16:29:37 | 2019-11-25T16:50:07 | 217,178,791 | 0 | 0 | Apache-2.0 | 2022-01-06T22:39:23 | 2019-10-24T00:36:35 | Python | UTF-8 | Python | false | false | 813 | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
#
# Copyright (C) Red Hat, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | [
"yassine.lamgarchal@redhat.com"
] | yassine.lamgarchal@redhat.com | |
da7e9cf99e5e8e2d628496cb45d1bce02e1fe524 | 436acccf18f21fe3fa7d2588fa25184c180e930d | /main.py | a08b882602da70e994455f6ef206d8db9fb1a592 | [] | no_license | Kevin-Escobedo/Jeopardy-Bot | ee097c6e375149b1c3e31f9c2c2087846138602b | 06040a2abf53ae6b0178d397a209fdc0fbdd4f50 | refs/heads/main | 2023-04-09T18:57:35.243238 | 2021-04-21T19:32:26 | 2021-04-21T19:32:26 | 358,014,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,482 | py | import requests
import json
import tweepy
import datetime
import time
import twitterCredentials as tc #File containing api key, secret key, tokens
import jeopardyDatabase
#TO-DO: Refactor
def makeTitle(s: str) -> str:
'''Capitalizes each word in s'''
#Because s.title() doesn't quite work with apostrophes
... | [
"escobedo001@gmail.com"
] | escobedo001@gmail.com |
a81f92e9f7166f53fdeb2368141fc3350fe0594f | d4c0b1b7ad466448944d9b6ccadbd64125861c35 | /payment/functions/save_order.py | a7d68484777c78447a3fd7be50081c35d61835b6 | [] | no_license | ncpi34/jourdan | 82dc1874f41cdab60bb5b293153ab45d89c675ab | 76094283b02990e60d23a76d26093e5f09391571 | refs/heads/master | 2023-08-05T04:43:00.272063 | 2021-09-10T09:07:21 | 2021-09-10T09:07:21 | 404,347,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,598 | py | import os
from typing import IO
from account.backends import User
from cart.cart import Cart
from website.models import Article, FavoritesClient
from order.models import OrderItems, Order
from django.template.loader import render_to_string
from django.core.mail import EmailMessage
from django.conf import settings
impor... | [
"ledain.alexis@gmail.com"
] | ledain.alexis@gmail.com |
02b8e5dee5b57fda9c9099b42c6e685df0976663 | 0cc8c7cfeea7aa44436e4b09769033e7dbe75b93 | /scripts/vgg_face.py | 4b1205caf2566e59682e4c88a2436bacb628393b | [] | no_license | carlylou/IndividualProject-AffWild | 75ab5bd34796f8b5d763f6e41d491cf51f6db192 | f0c861fbc83c0d11c74b8ac3b31d90cb768fe3b4 | refs/heads/master | 2020-04-05T20:45:34.020609 | 2018-11-12T10:25:45 | 2018-11-12T10:25:45 | 157,194,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,316 | py | # import h5py
import tensorflow as tf
# import numpy as np
# import cv2
# import os
# import pdb
import copy
class VGGFace(object):
def __init__(self, batch_size):
self.params = None
self.batch_size = batch_size
self.vars = []
self.layers = []
self.names = [] #[line.strip(... | [
"564458176@qq.com"
] | 564458176@qq.com |
8d8f12dad8abc695708a624d836491390fd1a623 | c5281bec992956018ee8c4e9f9561eab0698ceeb | /tests/test_utils.py | 1349491e3a2f9bf3324ef1fa7f2c62741365de59 | [
"Apache-2.0"
] | permissive | swagger-atlas/atlas | db2b2e3ee09f9afa51d42c4156d73292922410ac | 64a0a6e3107da9f7cf894880823badfa84e11f25 | refs/heads/master | 2023-01-12T03:48:21.665390 | 2019-09-20T17:24:19 | 2019-09-20T17:24:19 | 180,743,015 | 3 | 1 | Apache-2.0 | 2023-01-03T19:30:16 | 2019-04-11T07:56:48 | Python | UTF-8 | Python | false | false | 4,441 | py | from unittest import mock
import pytest
from atlas.modules import utils, exceptions, constants
class TestGetRefPathArray:
def test_local_reference(self):
assert utils.get_ref_path_array("#/definition/Sample") == ["definition", "Sample"]
def test_external_reference(self):
with pytest.raises... | [
"kush.jain@joshtechnologygroup.com"
] | kush.jain@joshtechnologygroup.com |
0776fc01013ec265fc2da612b9ee90542488e9df | 04d50ae4c98c7832123b8af91de8e3990c2347f9 | /Trnsys/ProjectScripts/Decathlon/Post.py | f9a1c5804176710108653f75423192462523a451 | [] | no_license | bmj-archive/Old_Python | 79d1edb7088e1acb22260414469fbd793d83a44a | 929a19b3c0702f82c61d21450033d7416d411ccb | refs/heads/master | 2022-02-25T17:20:33.931716 | 2019-11-05T15:25:18 | 2019-11-05T15:25:18 | 74,760,848 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,539 | py | from exergyframes import exergy_frame as xrg
from exergyframes import meta_table as metaTab
import logging
import os
from config import *
import datetime
import UtilityPathsAndDirs as utilPath
import re
import numpy as np
def _create():
# Input
projectDir = FREELANCE_DIR + r"\DecathlonSim"
descriptionsFil... | [
"Admin@6CORE"
] | Admin@6CORE |
963a2d233e978b78dca560f8230b63663653446b | 6da9add72c81a230f2c63dcc73420a28304523ce | /clickx3/utils/constants/phone_number_prefix.py | 36d1124efa30f4ca380cba84c8e6865a2082d270 | [] | no_license | YeKelvin/clickx3-toolkit | e449eccae0d6ce2f69ffbf1380a1e410f562fac8 | 09336bf2c5c898625fbc90ddcf31c9794ca11da0 | refs/heads/master | 2023-06-04T15:09:06.005076 | 2021-06-28T12:07:08 | 2021-06-28T12:07:08 | 251,491,571 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File : phone_number_prefix.py
# @Time : 2019/8/30 15:22
# @Author : Kelvin.Ye
from itertools import chain
# 移动
CMCC_CODE = [
'134',
'135',
'136',
'137',
'138',
'139',
'147',
'150',
'151',
'152',
'157',
'158',
'1... | [
"testmankelvin@163.com"
] | testmankelvin@163.com |
486e48f837ce645846b31ff5ce9ea96f338a5c11 | 391437a03dc30a21ef7cc35d1b51f888da720617 | /test/travis_test_wall_trace.py | b1f54ae1ad06095c25b8fd98e155321f9372cca3 | [] | no_license | takasku/pimouse_run_corridor | 9e60eecd797488901790402b67ca2153d5e8557d | d40b966af1c55b15430e49005e90c68634252c81 | refs/heads/master | 2020-04-25T15:25:44.182451 | 2019-03-06T09:28:44 | 2019-03-06T09:28:44 | 172,856,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | #!/usr/bin/env python
#encoding: utf8
import unittest, rostest
import rosnode, rospy
import time
class WallTraceTest(unittest.TestCase):
def set_and_get(self,lf,ls,rs,rf):
with open("/dev/rtlightsensor0","w") as f:
f.write("%d %d %d %d\n" % (rf,rs,ls,lf))
time.sleep(0.3)
with ... | [
"fjkks5is@engs.tamagawa.ac.jp"
] | fjkks5is@engs.tamagawa.ac.jp |
aae0e6098f5fffd6f5df5e9109899e0ddfcf5d9b | 5de3f612df0dbda712b39403dbafb0617e597651 | /devel/lib/python2.7/dist-packages/pal_control_msgs/__init__.py | e21ec5fdbefcfd4eaadd1be96174a29e086c69d8 | [] | no_license | AdriiTrujillo/tiago_public_ws | 1bd62d51c2eb694d07db83738f7bebd582d8126c | 6eaeabd1ec177df837b81fd9f42887318128766b | refs/heads/main | 2023-04-03T13:09:09.749190 | 2021-04-01T10:05:43 | 2021-04-01T10:05:43 | 350,026,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | /home/adrii/tiago_public_ws/devel/.private/pal_control_msgs/lib/python2.7/dist-packages/pal_control_msgs/__init__.py | [
"adrii.trujillo@gmail.com"
] | adrii.trujillo@gmail.com |
9be024aee9f1a12e949aa5184b9342662b5bb608 | edd3da6431675ce3b048b3557f1b410192491558 | /pd_transforming_data.py | 90ec53c3d745b55a3edab79171c06d8906cff808 | [] | no_license | abdlkdrgndz/data-mining | f845a5821f0800a5fd75807766593c97e5221b9f | 9882f60f75acfc55e5dc9cb2248c92e093b461e6 | refs/heads/master | 2023-02-14T21:24:39.921072 | 2021-01-10T01:19:59 | 2021-01-10T01:19:59 | 328,273,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | import pandas
myDatas = {
"name" : ['Kadir', 'Kerim', 'Mehmet'],
"age" : [12,15,18],
"created_at" : ["12.10.1988","11.10.1988","13.10.1988"]
}
df = pandas.DataFrame(myDatas)
# örneğin yeni sutünda yaşların iki katını alalım
df['age_two'] = [i *2 for i in df.age]
# şimdi bunu transforming data yöntemi i... | [
"abdulkadir.gunduz@modanisa.com"
] | abdulkadir.gunduz@modanisa.com |
ef45fbb0a58276e6b49fab00d2fbbc90dbba4fd6 | 20fa81fb1ba9c6e77be0f6e115ff643c4a608146 | /creational/abstract_factory.py | 9ae16b8d1eebf4d8c9ef1b2551d206b197873fe7 | [
"MIT"
] | permissive | GustavoBoaz/projeto_Patterns_Python | c6bd344a308c0f29c21a435c03d582226f434ba1 | b46c6dd6e355fce8f769b76c432ac8a00f236438 | refs/heads/master | 2022-09-06T19:15:57.183938 | 2019-11-07T19:15:57 | 2019-11-07T19:15:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,011 | py | """
Abstract Factory é um padrão de design criacional que permite produzir
famílias de objetos relacionados sem especificar suas classes concretas.
Como Implementar:
1. Mapeie uma matriz de tipos de produtos distintos versus variantes
desses produtos.
2. Declare interfaces abstratas... | [
"gustavo.boaz@hotmail.com"
] | gustavo.boaz@hotmail.com |
563e7be8d8c11aab5ab1f381e5abf2ed03a6b4d2 | 7ff37f8df377e30f09e5947c6097a7db54e8fab5 | /WebApp/model/model.py | 7d7f6b8f10cf10548fd969cc1c7914afe0deb767 | [] | no_license | jamesnelly/EmergingTechnologies-project | baa4980505f87bc6fff2771a5edfd279f45550f1 | b10a9048cc8bb9b147e118488f531cb3acade4f0 | refs/heads/master | 2020-08-06T13:11:57.695949 | 2019-12-13T18:49:26 | 2019-12-13T18:49:26 | 212,987,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | #adapted from https://www.youtube.com/watch?v=n5a0WBIQitI
#loading the dataset
from keras.datasets import mnist
(x_train, y_train), (x_test, y_test) = mnist.load_data()
import tensorflow as tf
from keras import models
from keras import layers
import keras as kr
import numpy as np
import matplotlib.pyplot as plt
#cr... | [
"g00346996@gmit.ie"
] | g00346996@gmit.ie |
bc7adc55472ca0f7d4495f4427cf4e5f885f0825 | eaf2ff7b5ba40595c68f58427d89a90eb7696d84 | /main-4.py | c10a18c041f0cfc27793fe9c4ae1ecbef9c5dcb9 | [] | no_license | CodeRaker/learningMatplotlib | f5081eaccf05f9dbf75986ba154118c587779b6b | 499c7b8682d85639ff4d8e9b65adfbf959529c8b | refs/heads/master | 2020-08-05T06:06:35.352829 | 2019-10-02T20:06:28 | 2019-10-02T20:06:28 | 212,423,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | # https://medium.com/@andykashyap/top-5-tricks-to-make-plots-look-better-9f6e687c1e08
import matplotlib.pyplot as plt
import seaborn as sns
sns.set()
deaths = [1,2,3,4,5,6,7]
causes = [1,2,3,4,5,3,4]
#plt.style.use("classic")
plt.plot(deaths, causes)
plt.legend('ABCDEF', ncol=2, loc='upper left');
plt.show() | [
"peterglad1985@hotmail.com"
] | peterglad1985@hotmail.com |
115d00ffaebc79e81a2a2015da2ba91356e18b6e | 1235389bc1ebb52e4d045b00c888234224852a4f | /f_camera_photonics/component_capture.py | c1d78c9e49ba636090990d70619e96bf360c5eee | [] | no_license | jtchiles/camera_photonics | bc2fe6cafa42e8a0d51c8ba99b3ea22bcfcd839b | f186d4cb9a53b9d3544c0677f0ce733cb4313da8 | refs/heads/master | 2021-06-11T19:02:16.223909 | 2020-01-10T19:22:00 | 2020-01-10T19:22:00 | 140,327,371 | 0 | 0 | null | 2018-07-09T18:35:15 | 2018-07-09T18:35:15 | null | UTF-8 | Python | false | false | 981 | py | # Trying to grab images out of cv2 with the USB cam
import cv2
import os
from contextlib import contextmanager
import numpy as np
@contextmanager
def open_camera(camera_port=0):
camera = cv2.VideoCapture(camera_port)
yield camera
del(camera)
## Low level conditioning
# Number of frames to throw away whi... | [
"alexander.tait@nist.gov"
] | alexander.tait@nist.gov |
8c167de60486df2e7f98815c805c1cf0e63930fd | 8e340be7072bb9cb8b8bbe427e259fba51d54192 | /MyroName.py | 751ef00b50a8e69be96929e4ea45e71c0db29b6d | [] | no_license | KBrownASC/allstarcode | a80141c514cac662a9293655cdec3c1656dc53c1 | e22a0c2fa19e1e29ec6cfe273a9cb82ec6ec3865 | refs/heads/master | 2021-01-20T22:19:48.951183 | 2016-08-09T16:00:14 | 2016-08-09T16:00:14 | 63,092,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | from Myro import *
init("sim")
#loops
#Functions
def drawK(size):
turnBy(90,"deg")
forward(2,size)
backward(1,size)
turnBy(-35,"deg")
forward(1,size)
backward(1,size)
turnBy(-95,"deg")
forward(1,size+.2)
turnBy(30,"deg")
def drawB(size):
turnBy(90,"deg")
forward(2,1)
... | [
"Keroneobrownjr@gmail.com"
] | Keroneobrownjr@gmail.com |
7efb9951bfdf815059c2e6a6b72a96e332f6a971 | 602afe5a905c1f66892312b91fc381d966196f1a | /utilities/request_parsers.py | aeadf503229360bc0911ab99d3a6bab21f0b095e | [] | no_license | Big-Ideas-Lab/nutrics | 394299905af1fbd88ded4197032a2ce03aa8445c | 174baecf041096552a69b4c5f68895186673e4cd | refs/heads/master | 2022-08-27T06:48:01.326349 | 2020-05-08T17:25:54 | 2020-05-08T17:25:54 | 243,624,416 | 0 | 0 | null | 2022-06-22T02:45:47 | 2020-02-27T21:53:05 | Python | UTF-8 | Python | false | false | 2,799 | py |
'''
There was too much clutter in the resources files, so I pulled out defining of requests parsers.
'''
from flask_restful import reqparse
#create parser for incoming user data
u_parser = reqparse.RequestParser()
u_parser.add_argument('username', help = 'Username cannot be blank.', required = True)
u_parser.add_arg... | [
"joshuadarcy@joshuas-mbp.lan"
] | joshuadarcy@joshuas-mbp.lan |
9362ea26f839e1ffad4ad0b283e97271312b1665 | b2f63110ed9b2be2d51ab88dea551a50eb0ffe7b | /easy/string_mask.py | 8bb9e48380b86b9c243d9038a2278b671d80cb09 | [] | no_license | Nevermind7/codeeval | 07f321c855b850e72f3b18352d7ce4f55b0138da | be9cb36fd8fbac86d3fc1d33095c201e0be8ba9a | refs/heads/master | 2021-01-19T06:43:50.113601 | 2016-07-26T08:29:54 | 2016-07-26T08:29:54 | 63,690,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | import sys
test_cases = open(sys.argv[1], 'r')
for test in test_cases:
word, code = test.strip().split()
paired = zip(word, code)
encoded = ''.join([x.upper() if y == '1' else x for (x, y) in paired])
print(encoded)
test_cases.close()
| [
"esser@anvo-systems-dresden.com"
] | esser@anvo-systems-dresden.com |
9de7481bfb9c7ec3e011a8ebfbeec40ca8cd62b0 | a7f7981a91c3213c011abd33778278c58fa4aa55 | /python-udemy/Practica1/Practica01_02.py | 55a5c9e09ea6471133973896d9386740c0939148 | [] | no_license | nicolassnider/tkinter_flask_django | 9f631c01b0d2b14758deb4ba9c74f0ca59b12d97 | 14355f130570a6e2dccd81804edfe35ee418a099 | refs/heads/master | 2023-01-23T18:32:14.775758 | 2020-12-05T00:44:43 | 2020-12-05T00:44:43 | 318,354,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | '''
Problema 02: Hallar el cociente y residuo (resto) de dos números
enteros.
Análisis: Para la solución de este problema, se requiere que
ingrese dos números entero por teclado y el sistema realice el
cálculo respectivo para hallar el cociente y residuo.
'''
num1=float(input("num1:\n"))
num2=float(input("num2:\n"))
c... | [
"nicolas.snider@soulit.io"
] | nicolas.snider@soulit.io |
e9eb2c81dd1c2ed4a7921ec50c1f4ca9e1c1f484 | ab83ce38d59c37c8a55a4e5bd1f49bc2c2538777 | /__env__py3Rest/bin/python-config | b3e1a396ad5ca53df75755e6f67b4d2e6ecc4af8 | [] | no_license | Archu-S-M/Py3Rest | 3df5959d30d96358af97f8434e72c4b4af897889 | d455f5dec45577d4625ca5f5977f9248834fbd26 | refs/heads/master | 2021-01-19T00:21:05.019136 | 2017-04-04T18:26:00 | 2017-04-04T18:26:00 | 87,152,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,354 | #!/var/www/html/Py3Rest/__env__py3Rest/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.versi... | [
"archusm007@gmail.com"
] | archusm007@gmail.com | |
ff3e75465d6bc74082977d0011083bd7cb9d2fa1 | 8dc745854d73e362aa60747b3ab1b5a0dd975902 | /demo/funs/varying_args.py | 95be35fceef5366dfe3c457b3dac4f7b9e356ad3 | [] | no_license | srikanthpragada/PYTHON_27_AUG_2020 | 08a5898fe1a0ae110b74897ce6cce6595bdfce45 | af2aebbb0d83c5e8f381cdda844ab66d2362019c | refs/heads/master | 2022-12-30T10:12:56.688671 | 2020-10-09T14:20:43 | 2020-10-09T14:20:43 | 291,730,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | def wish(*names, message="Hi"):
for n in names:
print(message, n)
wish("Bill", "Steve", message="Hello")
wish("Bill", "Steve", "Mike")
| [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
a56fa3ef8236ac18d30826f76d2f59ca41e55070 | 1985271f6d8486de3ab503a6e8574e2c70a30b1b | /feature_engineering/plans/get_fe_diff_div.py | c31e4495a92018588dcef57762136a55c327beb6 | [] | no_license | shuangyumo/kdd-cup-2019-8th-solution | 15ca666e2f9af1e2c8ad4d7295ba500a40b17ca9 | f13fd8e1d8309de00476bd884b39716ffe4c3ced | refs/heads/master | 2022-03-11T11:32:35.802745 | 2019-10-05T16:45:08 | 2019-10-05T16:45:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,379 | py | import numpy as np # linear algebra
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
def get_fe_diff_div(df):
df_fe = pd.DataFrame([])
top_m = 2
for i in range(1, top_m):
df_fe['diff_eta_{}_{}'.format(0, i)] = df['recom_eta_{}'.format(0)] - df['recom_eta_{}'.format(i)]
... | [
"noreply@github.com"
] | shuangyumo.noreply@github.com |
add4b75288e365aec578df927975b3ca9f0318ec | b77dc17ee7ebad73e1028381739e01f708fb6c8b | /ppygui/doc/tut3.py | 44c2785da27ae01aa643b6d0c2e979d5a2da0b79 | [
"BSD-3-Clause",
"LicenseRef-scancode-public-domain"
] | permissive | typerlc/ankice-deps | 6c97bee1a926fc539b2f2e8ec345244e6188c6f1 | 4267af31c56ff2f51be65cad345fc7100ec53e78 | refs/heads/master | 2016-09-01T21:43:41.904988 | 2009-06-24T15:15:12 | 2009-06-24T15:15:12 | 235,231 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | import ppygui as gui
# import the gui namespace
class MainFrame(gui.CeFrame):
# subclass to create our own main frame type
def __init__(self):
gui.CeFrame.__init__(self, title="Hello World")
# Create some child control
self.text_entry = gui.Edit(self)
self.button = gui.... | [
"richardc@pippin.(none)"
] | richardc@pippin.(none) |
d953ca400bd19d3dfe6e933f1f88124d428bbb14 | 4686605ad3c277a0776a653c6b3528db5313ec9c | /PY/PY1.py | 1b819831f1a87ac0b10df6ccab810f61671ef527 | [] | no_license | zhukongh123/- | 4f03c1f20fc5c369aa14d10cdb302bac08b850b9 | 6dfdd84b66fe82bd4b2113c6270d98ea1705401b | refs/heads/master | 2020-11-26T19:10:58.052438 | 2019-12-20T06:52:37 | 2019-12-20T06:52:37 | 229,181,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | d = {"name":"小明","sex":"男","age":18}
d.clear()
print(d)
| [
"364144274@qq.com"
] | 364144274@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.