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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9e08ed3d8b5fc2a5093ed686b9c5014984327021 | 9652657ce62bdbca2b0578d451ba5cf853a42400 | /form/redisDB.py | 0decff328a39fc332904a9ee2de4d16fef7c626e | [] | no_license | astange/ExpoProject | 775ca1785032cfbc858c90dfddde5a1af22daf06 | fc233802a078728b69e70ced112a94a4163053f4 | refs/heads/master | 2016-09-05T11:04:12.349586 | 2014-07-29T05:28:06 | 2014-07-29T05:28:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13 | py | ../redisDB.py | [
"anthony@Anthonys-Laptop.local"
] | anthony@Anthonys-Laptop.local |
97450e3407268358d4f64aefe3120b8487b3401e | 425db5a849281d333e68c26a26678e7c8ce11b66 | /maths/fast_pow_and_matrix_multi.py | 987f29bb269b191cf1b8759d9bc80770e1b3e800 | [
"MIT"
] | permissive | lih627/python-algorithm-templates | e8092b327a02506086414df41bbfb2af5d6b06dc | a61fd583e33a769b44ab758990625d3381793768 | refs/heads/master | 2021-07-23T17:10:43.814639 | 2021-01-21T17:14:55 | 2021-01-21T17:14:55 | 238,456,498 | 29 | 8 | null | null | null | null | UTF-8 | Python | false | false | 2,500 | py | import random
def fpowx(x, n):
"""
quick pow: x ** n
"""
res = 1
while n:
if n & 1:
res = res * x
# compute x^2 x^4 x^8
x *= x
n >>= 1
return res
def fmulti(m, n, mod=10 ** 9 + 7):
"""
并没有提速的效果
只是对于其他语言 如c
防止溢出
对 python 没有任何帮助
... | [
"lih627@outlook.com"
] | lih627@outlook.com |
bf052740a6a34a83103709163327ad7948d74ae6 | d9072f607b96701eb50cde1c184e29c83a27f597 | /code/python/playground.py | bb1df391f8dc5604f024d7708ef0ccfa26e9d6ae | [] | no_license | glaukon-ariston/2007-TIP-HistogramSegmentation | f35111a87447241a8c67b77aac83485d80270f31 | b8d250bbe80ee17fe33d56c6092bfc1049f45234 | refs/heads/master | 2022-12-28T17:50:11.269621 | 2020-10-09T08:42:23 | 2020-10-09T08:42:23 | 295,377,236 | 0 | 0 | null | 2020-09-14T10:08:29 | 2020-09-14T10:08:28 | null | UTF-8 | Python | false | false | 5,001 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Author: Glaukon Ariston
# Date: 26.09.2020
# Abstract:
# Debugging harness for histogramSegmentation.fine_to_coarse_histogram_segmentation(H, e=0)
#
# (findpeaks in Python get different results than in MatLab)
# print('idx = [%s];' % (' '.join(['%d' % (v+1,) for v in idxs... | [
"glaukon.ariston@gmail.com"
] | glaukon.ariston@gmail.com |
15efb02d15bd410d19b8018e6c307a75b9f04eb4 | 5fdcb39eaa9d1f44e2ba0130bc0d6ece3f5ff354 | /code/cheshire3/record.py | 728ddee847b4f75341864dad4eff2244263dd3c4 | [] | no_license | Cheshire-Grampa/cheshire3 | 0a653d6372497290d938e098b6acf8366348133f | 616ab36cd8442cd5f4712a9fccf65ca7ae9f692c | refs/heads/master | 2020-12-25T07:26:16.366754 | 2012-06-06T09:52:53 | 2012-06-06T10:32:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,269 | py |
from cheshire3.baseObjects import Record
from cheshire3.exceptions import C3Exception
from cheshire3.utils import flattenTexts, elementType
from cheshire3.marc_utils import MARC, MARC8_to_Unicode
import unicodedata
import types, utils, os, re, sys
from cStringIO import StringIO
from xml.sax.saxutils import escape
fro... | [
"info@cheshire3.org"
] | info@cheshire3.org |
22f32bf0fd55088a1f7d6a101468f6c446d7e723 | 244e9b0fab8f641e21566987b8577f48012a08f7 | /fibonacci.py | 22d1dae859177a0ab61fa0cfb249c2b2de0e92ef | [] | no_license | iopkelvin/Leetcode-problems | 55253a7e845c11ded792f8f3ea1ad1c0c37f1956 | 6fe8dde4b9d76fc8b797de2c71f7e0041d725267 | refs/heads/main | 2023-03-05T01:14:24.395087 | 2021-02-08T18:24:09 | 2021-02-08T18:24:09 | 335,342,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | import sys
def fib(n):
# Recursive
# if n == 0:
# return 0
# if n == 1:
# return 1
# while n >= 0:
# return fib(n - 1) + fib(n - 2)
a, b = 0, 1
for _ in range(n):
a, b = b, a + b
return a
if __name__ == '__main__':
print(fib(int(sys.argv[1]))) | [
"36288868+iopkelvin@users.noreply.github.com"
] | 36288868+iopkelvin@users.noreply.github.com |
5ee331590a0342ddcead80522daf670bc75601fb | f27413138fa72a18308d2732112319e6de408876 | /CacheDecorator.py | d092877b0eacc298416cf2f0111f6b2bb8b65ec7 | [] | no_license | noamalka228/PythonExercise | 18cb90fb0b021c41429bd6575ed0e3bd4bbca049 | 0f306a019b9629123c6095918a9ad389931307db | refs/heads/main | 2023-04-15T18:22:56.956642 | 2021-04-29T12:07:51 | 2021-04-29T12:07:51 | 362,802,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | class CacheDecorator(dict):
# constructor
def __init__(self, func_name):
self.func_name = func_name
# if the function is already cached, return the cached value
def __call__(self, *args):
return self[args]
# if the result is not cached, return the function call and cache the result... | [
"noreply@github.com"
] | noamalka228.noreply@github.com |
b72ed4fab9d517cf24f9b0a77dbf51f8da8c46a9 | f8965d7b16e3cf70370b3bd181ef855a2ab89768 | /ebook/Chapter08/format_invoice.py | 406defa9a09b82cef2a7b0a8fa3f64401411bdf3 | [
"Apache-2.0"
] | permissive | tuannguyendang/montypython | 59cae6fc6069cf5356670132470cdd52bad00d67 | c0b8ff7a8130e811ba16bfab8d5e013eac37f432 | refs/heads/main | 2023-05-12T02:24:50.693432 | 2021-05-31T02:14:16 | 2021-05-31T02:14:16 | 325,188,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | # This won't render right
subtotal = 12.32
tax = subtotal * 0.07
total = subtotal + tax
print(f"Sub: ${subtotal} Tax: ${tax} Total: ${total}")
print(f"Sub: ${subtotal:0.2f} Tax: ${tax:0.2f} Total: ${total:0.2f}")
orders = [("burger", 2, 5), ("fries", 3.5, 1), ("cola", 1.75, 3)]
print("PRODUCT QUANTITY PRICE ... | [
"tuan193@gmail.com"
] | tuan193@gmail.com |
babd1c65ab124645809ec009676a41dc323194be | 935a4ebc2cb54553c9d51e1fcd885d5d5a993218 | /fulfillment/fulfillment.py | 1359858cc480454ef0e9f5eea67947f74b7cce36 | [
"MIT"
] | permissive | ahmetyazar/adj-demo | c03a6a481470c0548294e448a158b370e79cd6a0 | 9f7c48faa65d951c040dcfed9904e2186415221a | refs/heads/master | 2021-01-06T20:34:25.652447 | 2017-08-11T02:45:21 | 2017-08-11T02:45:21 | 99,522,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,462 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Jul 30 15:28:00 2017
@author: yazar
"""
import sys
import logging
import rds_config
import pymysql
import datetime
import json
import requests
# rds settings
rds_host = "creditadjudication.cz3lpdttkjpo.us-east-1.rds.amazonaws.com"
name = rds_config.db... | [
"ahmetyazar@yahoo.com"
] | ahmetyazar@yahoo.com |
fa56238a5d5fa13f842dcbd60a00c830bce51d0a | dcdb7a05d52cd1f9d558a70570b3ecbd85cefbe6 | /dj_blog/settings.py | afa71345b7ec029e8bcda1221ebdb1f056053ba3 | [] | no_license | GDCenter/blog_django | ea7a9a556292b212a6d5a2de3d02f7b1e9002871 | 5cb12f630618bb49bd955bcc9072339ff3a01387 | refs/heads/master | 2020-09-09T15:51:49.918515 | 2018-05-11T09:21:05 | 2018-05-11T09:21:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,064 | py | """
Django settings for dj_blog project.
Generated by 'django-admin startproject' using Django 1.8.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build path... | [
"liduo945@163.com"
] | liduo945@163.com |
bb5d93cb6f7562c1613483c8b5d2df9e1d874fac | 46192947e8a87bdb5ddf4de92f832f8c2d53bccb | /REST API/api_project/testpython.py | ca9eb6794f25f1aa41ba61c45ca544892381354a | [] | no_license | mkansari31/Rest_API | 216a060330923c75e003a2b9d75071bc717a60be | b0325c907e3d8dd93f5711c274f57a0592efb912 | refs/heads/master | 2023-01-31T00:10:11.129491 | 2020-12-14T09:47:39 | 2020-12-14T09:47:39 | 321,298,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | from flask import Flask, render_template, request
from flask_mysqldb import MySQL
app = Flask(__name__)
app.config['MYSQL_HOST'] = 'localhost'
app.config['MYSQL_USER'] = 'root'
app.config['MYSQL_PASSWORD'] = ''
app.config['MYSQL_DB'] = 'MyDB'
app.config['DEBUG'] = True
mysql = MySQL(app)
@app.route('/', methods=['... | [
"mkansari515@gmail.com"
] | mkansari515@gmail.com |
f4506a41f21652bd250f6896810cd6fbdec72bfb | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03042/s013075072.py | 044f87c3be49952ef7be8bf867e28108c9b4cd05 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | s=int(input())
a=s//100
b=s%100
if a>0 and a<=12:
if b>0 and b<=12:
print("AMBIGUOUS")
else:
print("MMYY")
else:
if b>0 and b<=12:
print("YYMM")
else:
print("NA") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2fae047ea5b7af3cba687716d80fa7aab18a4d0a | 4d259f441632f5c45b94e8d816fc31a4f022af3c | /date/tt.py | 9f4bc74af2f7f817b5cc2a96f52b570bd76401f0 | [] | no_license | xiaoruiguo/lab | c37224fd4eb604aa2b39fe18ba64e93b7159a1eb | ec99f51b498244c414b025d7dae91fdad2f8ef46 | refs/heads/master | 2020-05-25T01:37:42.070770 | 2016-05-16T23:24:26 | 2016-05-16T23:24:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | a=['1','2','3']
s = ['sss'*3]+a
print s
| [
"junmein@junmeinde-macbook-pro-3.local"
] | junmein@junmeinde-macbook-pro-3.local |
74c6a926ed7a08e4d04f9fed809bdbf9a1a4c9b6 | f0f9e59b3b62a89b1e9cf3f02627d80be3359711 | /webpersonal/core/views.py | 8cc05b98cc068c425cdf03633c4553a6812fef81 | [] | no_license | gemamoreira/web-personal-django3 | 372d500bc9dd16768ef0223dcfb68d4eb1e6498c | 3177db3bdaa7478f979e1f1d071904faef693035 | refs/heads/main | 2023-01-01T03:52:34.047986 | 2020-10-13T05:27:27 | 2020-10-13T05:27:27 | 291,835,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | from django.shortcuts import render, HttpResponse
html_base = """
<h1>Mi web Personal</h1>
<ul>
<li><a href="/">Portada</a></li>
<li><a href="/about/">Acerca de...</a></li>
<li><a href="/portfolio/">Portafolio</a></li>
<li><a href="/contact/">Contacto</a></li>
</ul>
"""
... | [
"glmoremu20@gmail.com"
] | glmoremu20@gmail.com |
62b6273166486acf1ece5437a98e41a0350b1124 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_celebrating.py | 305a78d8f0d008577d0f029e5a82a8910f663133 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py |
from xai.brain.wordbase.verbs._celebrate import _CELEBRATE
#calss header
class _CELEBRATING(_CELEBRATE, ):
def __init__(self,):
_CELEBRATE.__init__(self)
self.name = "CELEBRATING"
self.specie = 'verbs'
self.basic = "celebrate"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
2339baadffae6ec1d43540f2b5a2f88e5c5dddd0 | 4d74a14506b95289084379d85d09e0da020ba951 | /condet/apps.py | de69d6066b4c6e98a8927d9908d1d593112724ce | [] | no_license | eduardozamudio/unam-tourism-research | 6213e2763010cee57a85c2aa755f6e978cc56efe | 3a307877b610cb250ba142d34933261d657d837a | refs/heads/master | 2022-12-11T16:31:30.005504 | 2017-10-26T11:39:02 | 2017-10-26T11:39:02 | 102,898,354 | 0 | 0 | null | 2022-12-08T00:36:55 | 2017-09-08T19:42:37 | Jupyter Notebook | UTF-8 | Python | false | false | 87 | py | from django.apps import AppConfig
class CondetConfig(AppConfig):
name = 'condet'
| [
"eduardozamudio@gmail.com"
] | eduardozamudio@gmail.com |
89dd04e8b979a718563ec8de70bc2e2eff652161 | 6380adb492ee95afbbad559e5017af32830512e7 | /lab-2/PCY.py | 96abcdc03451b0a23e397d4ad754ecb7a20ec094 | [] | no_license | square-brackets/avsp-2018 | 743cf258037cb9ab8f2cfa13edd6ae37c36f4540 | 7076f086a5198d04d4367ff4d7396e1c3eb4ac05 | refs/heads/master | 2020-04-03T06:38:42.252574 | 2018-10-28T14:38:20 | 2018-10-28T14:38:20 | 155,080,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,059 | py | import sys
import time
from itertools import combinations
def count_items(bucket_count):
# start_time = time.time()
item_count = {}
bucket_items = []
for bucket in range(bucket_count):
bucket_items_line = sys.stdin.readline()
bucket_items.append([])
for item in bucket_items_line... | [
"stjepan.petrusa@gmail.com"
] | stjepan.petrusa@gmail.com |
226b1a82100d5a5ec91accefe4709d3526693183 | 2fe868ab7e641629013445af85f412cfd0fc323d | /04_문자열자료형/문자열생성.py | 11a405fd099d52523f193b556ee27d3ae638f5d2 | [] | no_license | lgy94/pythonOjt | 9e0988a8e9ee005688f1f7e841077d34f403b13c | 8d1eb5ed52527153153d3a2d47f346d0810e2d1a | refs/heads/master | 2021-03-28T21:36:39.095570 | 2020-03-20T07:40:08 | 2020-03-20T07:40:08 | 247,898,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | s = 'Python is great!'
print (s)
s = "Python is great!"
print (s)
s = '''Python is great!'''
print (s)
s = """Python is great!"""
print (s)
sentence = 'Python is the\
most popular programming\
language in these days.'
print (sentence)
a = 'say "hello" to mom'
b = "say 'hello' to mom"
c = '''say 'hello' to "mom"'''
pr... | [
"dudrk94@naver.com"
] | dudrk94@naver.com |
a81b4c8c52d69ca1c7a214f2eef794aea07a5f65 | 8610b91f0f36e0df7f343c55929e5861bf0eb144 | /Smart Reply_02_Apr_2018.py | 9afb0d7cd1992c0664fe01816ecabf33d4ff609d | [] | no_license | abhijitdalavi/SmartReply | 1236aa3e85cee2aeefa1362d7c54f5a9009109fc | a0f2c384550b579fc56b86a28412720793210f8d | refs/heads/master | 2020-11-30T01:06:13.369949 | 2018-04-09T17:28:05 | 2018-04-09T17:28:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,750 | py |
# coding: utf-8
# In[1]:
from keras.models import Model
from keras.layers.recurrent import LSTM
from keras.layers import Dense, Input, Embedding
from keras.preprocessing.sequence import pad_sequences
from keras.callbacks import ModelCheckpoint
from keras.utils.vis_utils import plot_model
from keras.preprocessing.tex... | [
"asksonu.sunil@gmail.com"
] | asksonu.sunil@gmail.com |
3982714fe0bab687a1e4f4ee2cab7d5183777153 | d846460c9fcb294fb88a68c14f081013466f47d5 | /matplotlib.py | b2af1a9ac17bdec4142f724cb00879ebde715844 | [] | no_license | divyajaincs/Python-Practice- | 52d5dc0a7d998d7476fe332e723dee7b89b182cb | 679df72102555a7f1afe055c1257aca2cfada0f3 | refs/heads/master | 2021-04-12T10:07:28.868872 | 2018-03-25T19:32:14 | 2018-03-25T19:32:14 | 126,732,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | import numpy as np
from matplotlib import pyplot as plt
x=np.arange(0,3*np.pi,0.1)
y=np.tan(x)
plt.plot(x,y)
plt.show() | [
"divyajnvh@gmail.com"
] | divyajnvh@gmail.com |
c5020aa411c33ba9eb808cd247fe814f9c0ece17 | 8f5f92beeaefcd9effc93da87b26acb5ea159274 | /xtorch/modules/seq2seq_encoders/seq2seq_encoder.py | edcdada140696dba36c224bbb20440c20a1c8b5f | [
"MIT"
] | permissive | altescy/xtorch | 15f984bf08654dc00fc1be603cca696676428cc1 | bcbbbe645f4d62c211af5b3555c526cc60792c32 | refs/heads/main | 2023-04-12T15:45:52.192602 | 2021-04-25T11:35:45 | 2021-04-25T11:35:45 | 361,373,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | from typing import Optional
import torch
class Seq2seqEncoder(torch.nn.Module):
def forward(
self,
inputs: torch.Tensor,
mask: Optional[torch.BoolTensor] = None,
) -> torch.Tensor:
"""
Parameters
==========
inputs: `torch.Tensor`
Tensor of s... | [
"altescy@fastmail.com"
] | altescy@fastmail.com |
08ffa38d648d852c717fc3bd315fe33ff3f51547 | 2a8b5252ab21612e692999a4ca2d7d2e3a1d5143 | /table.py | ae467dd8c4cbaf6b7693b5d680cdf9434c5cc66b | [] | no_license | faunic/ideal-enigma | 777835d77d0148d2fda9a2070127d14a1a870b3e | bf55c84f7879fc1c98a68cb37170536788ecdb56 | refs/heads/main | 2023-05-07T15:28:48.476205 | 2021-05-25T12:54:34 | 2021-05-25T12:54:34 | 347,642,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | table = {
'ATA':'I', 'ATC':'I', 'ATT':'I', 'ATG':'M',
'ACA':'T', 'ACC':'T', 'ACG':'T', 'ACT':'T',
'AAC':'N', 'AAT':'N', 'AAA':'K', 'AAG':'K',
'AGC':'S', 'AGT':'S', 'AGA':'R', 'AGG':'R',
'CTA':'L', 'CTC':'L', 'CTG':'L', 'CTT':'L',
'CCA':'P', 'CCC':'P', 'CCG':'P', 'CCT':'P',
'CAC':'H', 'CAT':'H', 'CAA':'Q', 'CAG':... | [
"noreply@github.com"
] | faunic.noreply@github.com |
44b5d7f99598cb32ba93499d8f2d394a484573cf | 49edf974d6502d339095601b101e705911426c07 | /project_files/noah_analysis/ordered_analysis/process_mle_slope_int_soft.py | 9a78dc727874ee47ab3e7cc339e6e3007ae25bdc | [] | no_license | minghao2016/protein_design_and_site_variability | 1ca7b7486464b109cb1b054e8d20fe15af41976a | 605ad641c0061234f841e3ceed9d885dabc0d2ce | refs/heads/master | 2021-05-30T05:32:37.344639 | 2015-06-27T04:50:25 | 2015-06-27T04:50:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | import os, re
import subprocess
from subprocess import Popen
from numpy import *
from scipy.stats import pearsonr as pearson
#list of files that contain L vs RSA data
data = []
#search string to use
searchStr = "^align_data_array_ordered" + "[a-zA-Z0-9_\.\-]*" + "_soft.dat"
x = [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0... | [
"eleishaj@utexas.edu"
] | eleishaj@utexas.edu |
2f0cb96aaa337f7309712bd930d65de11673c433 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Pytest/pytest-django/pytest_django/plugin.py | cbfe15f79cb04f0e152ebe02bc8b4d3886108f5f | [
"BSD-3-Clause"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:4b9c174912c01ae59fb496601d8c4ecf26765ee33134d079295304c25873875a
size 26008
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
d0e4e18eaed6527f644f4b7cd84bcb12327c970d | 1ae45340a0c8d64a481b1fb96d835fcd537539bd | /test/unit/controllers/job_list_api_test.py | 2f405dc01d04f4614d82c1733a55da864307a63f | [
"MIT"
] | permissive | hazmat345/brew-view | 6bc7fcad16bf73505f46e2426aabbff4e4e75c65 | effd67819f7e995595471e0dc1c4e03a63942b96 | refs/heads/master | 2020-04-14T18:02:09.907639 | 2018-10-09T19:15:37 | 2018-10-09T19:15:37 | 164,003,765 | 0 | 0 | MIT | 2019-01-03T17:35:35 | 2019-01-03T17:35:35 | null | UTF-8 | Python | false | false | 3,218 | py | # -*- coding: utf-8 -*-
import copy
import json
from datetime import datetime
from mock import patch
from bg_utils.models import Job, DateTrigger, RequestTemplate
from . import TestHandlerBase
class JobListAPITest(TestHandlerBase):
def setUp(self):
self.ts_epoch = 1451606400000
self.ts_dt = dat... | [
"loganasherjones@gmail.com"
] | loganasherjones@gmail.com |
1731a6bc44fffbafb6437d4bb39a9bb76acfeb29 | 45c170fb0673deece06f3055979ece25c3210380 | /toontown/coghq/BossbotCountryClubMazeRoom_Battle00.py | 218b80966c9553066709cc1c2f781554cc97b785 | [] | no_license | MTTPAM/PublicRelease | 5a479f5f696cfe9f2d9dcd96f378b5ce160ec93f | 825f562d5021c65d40115d64523bb850feff6a98 | refs/heads/master | 2021-07-24T09:48:32.607518 | 2018-11-13T03:17:53 | 2018-11-13T03:17:53 | 119,129,731 | 2 | 6 | null | 2018-11-07T22:10:10 | 2018-01-27T03:43:39 | Python | UTF-8 | Python | false | false | 2,389 | py | #Embedded file name: toontown.coghq.BossbotCountryClubMazeRoom_Battle00
from toontown.coghq.SpecImports import *
GlobalEntities = {1000: {'type': 'levelMgr',
'name': 'LevelMgr',
'comment': '',
'parentEntId': 0,
'cogLevel': 0,
'farPlaneDistance': 1500,
'modelFilename': 'ph... | [
"linktlh@gmail.com"
] | linktlh@gmail.com |
3f0b424620cadbd7007d11df02a06feeb6089c28 | 24c2132b45590c3e1af9b8383fc3d3b4d85afb1f | /20_DNN/scratch/nn/basic/nn_mnist_batch.py | 9a93d20ec7bc9520e769dd3c536b337fc4d8ca68 | [] | no_license | harperfu6/ML_Tips | cbee8029ec8b5ef1a03d0b0e3bb9818e73e56442 | e5776d17102113fc5e3187b1cdfb4d4bafe891f4 | refs/heads/master | 2022-02-27T09:24:42.946713 | 2019-11-28T13:15:48 | 2019-11-28T13:15:48 | 183,880,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | # coding: utf-8
# データセットに対し,まとめて予測するだけ
import sys, os
sys.path.append(os.pardir) # 親ディレクトリのファイルをインポート
import numpy as np
import pickle
from dataset.mnist import load_mnist
from common.functions import sigmoid, softmax
def get_data():
(x_train, t_train), (x_test, t_test) = load_mnist(normalize=True, flatten=True, ... | [
"beharp8a8@gmail.com"
] | beharp8a8@gmail.com |
07737492b88c075fe7d11b3f01a276520d1b854b | f7e459e0a9bc5bfa7c635abe6ed9c922bae27339 | /dfvfs/analyzer/luksde_analyzer_helper.py | 465bd7ffdc366edbcf727ae526ca4f4605627966 | [
"Apache-2.0"
] | permissive | sanjaymsh/dfvfs | bcf5153a1743cb4bdc1d9e5bd45e383a2e6e675d | 049c71df15f46ac0ef552f0c6f71f7c61797af87 | refs/heads/master | 2022-12-23T23:25:14.035173 | 2020-09-27T06:06:33 | 2020-09-27T06:06:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | # -*- coding: utf-8 -*-
"""The LUKSDE format analyzer helper implementation."""
from __future__ import unicode_literals
from dfvfs.analyzer import analyzer
from dfvfs.analyzer import analyzer_helper
from dfvfs.analyzer import specification
from dfvfs.lib import definitions
class LUKSDEAnalyzerHelper(analyzer_helper... | [
"noreply@github.com"
] | sanjaymsh.noreply@github.com |
4c6318615664d63994ac62eccd6557cda896e2a9 | 2476d1dbac904aed784cc51550f74febe3b783c4 | /farmer/config/__init__.py | f5de67a172870543bf9b9c7b151f084a878d6972 | [] | no_license | 9231058/farmer | ccdbae0cc168adfa84bda016d87809ee5797c554 | 83904d86e30ab31622eaa0d4534041a4972bf842 | refs/heads/master | 2022-11-08T04:57:54.166269 | 2020-06-18T21:21:39 | 2020-06-18T21:21:39 | 266,701,420 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 58 | py | from .config import Config, RequiredSeed, NonrequiredSeed
| [
"parham.alvani@gmail.com"
] | parham.alvani@gmail.com |
01cc3441b94a034279d96bc8ad271736ee058bcd | 8a2a76d66a92c91ee07c44e533f8bbc81778ff28 | /rund.py | 76776386f4c4858a96a99032c7460c3953455839 | [] | no_license | Shashant-R/GSCEventMOD | 9941935caf966ca601b1e3c59b05eefd7dc18c67 | 25e85af84b12f725a188f6b872d44010f2f385bc | refs/heads/main | 2023-08-14T00:01:00.469037 | 2021-09-23T12:55:32 | 2021-09-23T12:55:32 | 409,591,561 | 0 | 1 | null | 2021-10-01T18:17:30 | 2021-09-23T12:54:45 | Python | UTF-8 | Python | false | false | 5,774 | py | import os
import matplotlib.pyplot as plt
import random
import h5py
import numpy as np
import warnings
from sklearn.neighbors import kneighbors_graph
from sklearn.cluster import SpectralClustering
from sklearn.cluster import DBSCAN
from sklearn.cluster import MeanShift
from sklearn.metrics import silhouette_s... | [
"noreply@github.com"
] | Shashant-R.noreply@github.com |
ec67fcd528e10f1d86e9a1a620b455fc3c212ba6 | 10f57edc51f50742625b405f2f7c37cdd4734700 | /app/recipe/urls.py | 034085c433bce22da70cdc48e8a58fb0632aba75 | [
"MIT"
] | permissive | smkempin/recipe-app-api | 5eea18b812bf822c292db8b66499ac1020dd886c | 453223e68616ff092964c8414ede5cccc2e38351 | refs/heads/master | 2021-01-26T05:17:09.742683 | 2020-03-30T13:13:26 | 2020-03-30T13:13:26 | 243,324,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from recipe import views
router = DefaultRouter()
router.register('tags', views.TagViewSet)
router.register('ingredients', views.IngredientViewSet)
router.register('recipes', views.RecipeViewSet)
app_name = 'recipe'
urlpatterns=... | [
"scott@precisionwre.com"
] | scott@precisionwre.com |
e32d9ecd5addc70ef1833cfb869c834a230a4f2c | 7f97814acd76ca96aee877fd70d401380f848fae | /7_training/re_start_end.py | e5842c00b391813441ccd2346854697e29805bbb | [] | no_license | tberhanu/all_trainings | 80cc4948868928af3da16cc3c5b8a9ab18377d08 | e4e83d7c71a72e64c6e55096a609cec9091b78fa | refs/heads/master | 2020-04-13T12:12:21.272316 | 2019-03-16T04:22:20 | 2019-03-16T04:22:20 | 163,195,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | """
https://www.hackerrank.com/challenges/re-start-re-end/problem?h_r=next-challenge&h_v=zen
"""
# Enter your code here. Read input from STDIN. Print output to STDOUT
import re
s, k = input(), input()
i = 0
found = False
while i < len(s):
string = s[i:]
match = re.match(r'{}'.format(k), string)
if match ==... | [
"tberhanu@berkeley.edu"
] | tberhanu@berkeley.edu |
16f02a9531c8dbb7c2e6d252e5094a83efbd7217 | a89bcfe5a2fff6727a39a64e36e92a5f5a72644f | /929_unique_email_addresses/solution.py | fa0a932ff6febfdfcffa431123abb50352a9fc0e | [] | no_license | vanshaw2017/leetcode_vanshaw | 6fdde2c012f53470efa9f4b13b0d123f3fef0e89 | 12393cfaf4b1b758e8a0407787a2a8150285678d | refs/heads/master | 2020-04-06T13:59:18.119910 | 2019-02-25T02:10:28 | 2019-02-25T02:10:28 | 157,522,844 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | class Solution:
def numUniqueEmails(self, emails: 'List[str]') -> 'int':
result = []
for i in emails:
local = i.split("@")[0]
far = i.split("@")[1]
if '+' in local:
local = local.split("+")[0]
if '.' in local:
local = lo... | [
"614664248@qq.com"
] | 614664248@qq.com |
5a21f18a39ff0c0dda0b64a7e34fc7fc468fd600 | 330146ad205bb1c21b63c2eeaf11c8a2996e2a4f | /mylab/coursera/timeofday.py | 21979edc23726092bf550c7561ed29d32721bbd8 | [] | no_license | bkrishna2006/system | f3c63c03cbdf817f102a7b84075018a21e9e3c54 | c478c7a001722af2b300fdaca9e10fdbec4d6a04 | refs/heads/master | 2020-04-10T20:01:49.806318 | 2018-01-22T16:34:36 | 2018-01-22T16:34:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | filename = raw_input("Enter your file name: ")
try:
fd = open(filename)
except:
print "File not found: %s" % filename
quit()
theDict = dict()
for line in fd:
words = line.split()
if len(words) < 1 or words[0] != "From" or words[0][-1] == ":" or len(words) < 6: continue
time = words[5]
time... | [
"luke.nothingness@gmail.com"
] | luke.nothingness@gmail.com |
e5051b8cb2577762cfa4eefebf5dafbcea28c428 | 56b69a58a8844d09e213dc38aab9aa62422dd58e | /128.py | 9f90303f0eefb77e7f24e3e9b2c106715dc321dc | [] | no_license | dilkas/project-euler | d697daf4087a0b436e2dc7b2840d5e53c2ff07b8 | e637fc34d406de7b05755d9c85b370aef1beb2a7 | refs/heads/master | 2021-05-31T15:46:45.342257 | 2016-05-15T10:29:45 | 2016-05-15T10:29:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | import math
target = 2000
def prime(n):
for k in range(2, math.floor(n ** 0.5) + 1):
if n % k == 0: return False
return True
n = 1
counter = 0
while True:
if prime(6 * n - 1) and prime(6 * n + 1) and prime(12 * n + 5):
counter += 1
if counter == target:
print(3 * n * n - 3 * n... | [
"paulius.dilkas@gmail.com"
] | paulius.dilkas@gmail.com |
eb78517e4f6aebbbb42fb241163e359f5183bcfc | 9feb3d3c59113506cbd5e86aef84f42fb257f165 | /Session04/cross_check.py | 79654247efdbdc93feafa2e1ae9dc9a5d95a1dc6 | [] | no_license | reanimation47/ledoananhquan-fundametal-c4e13 | 112a67bbb3093e62f9c53d9f0e7fc57870384fdd | 6e1e576702c4d68e0aa33a3b21a193b112fa70b6 | refs/heads/master | 2021-09-03T11:03:52.598663 | 2018-01-08T14:33:34 | 2018-01-08T14:33:34 | 108,993,661 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | # l = [0, 1, 2, 3, 4]
n = 4 #0,1,2,3
for i in range(n-1):
for j in range(i + 1, n):
print(i,"vs",j)
| [
"reanimation47@gmail.com"
] | reanimation47@gmail.com |
16a9c914cb9d2272c13f251203a93fa646574f5b | 3e2f7ff88aabbf17ee93a30176a40396adfbc7ec | /core/migrations/0003_auto_20171118_0536.py | fdb20ee9327f420442d4608bc28d9fa64520b0bd | [] | no_license | mahima-c/uhvpe | 04cbc519904261b45193dea4450f646b83a4184d | 9dc47d4fae17b6e405d5d9500c75585c45afbf20 | refs/heads/master | 2021-05-25T19:08:21.414764 | 2019-10-15T07:19:13 | 2019-10-15T07:19:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-18 05:36
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0002_auto_20171117_1726'),
]
operations = [
migrations.CreateModel(... | [
"apoorvapandey365@gmail.com"
] | apoorvapandey365@gmail.com |
be2ea70bbdeaae35443f15931b34646e0979c465 | 489ffb5efea81b6f374037d1e4b5856041f6a5a1 | /main.py | c555233cd622eca6a3b73e8d8fa869339f3abc8f | [] | no_license | petar-tomov/RentACar | c183223e5b8b28dca6fe384904d00d99dbec0de0 | cc9d3d36b72f99f8f4641f9f3d9bba027d1ea394 | refs/heads/main | 2023-03-18T21:06:09.081059 | 2021-03-12T08:31:04 | 2021-03-12T08:31:04 | 345,719,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | from Customer import Customer
pesho = Customer("Pesho")
pesho.check_catalogue()
pesho.rentacar_hours("PB5079TT", 5)
pesho.rentacar_day("CB4078BM")
pesho.rentacar_week("PB9189PC")
pesho.rentacar_hours("PB9189PC", 10) # You can't rent a car which is already rented
pesho.rentacar_day("PB9999AH") # You also can't rent a... | [
"pepyy.tommyy@gmail.com"
] | pepyy.tommyy@gmail.com |
f7e150fe2c2755c2ee7c29b21367a36323defc16 | e8977e740aa31a501e0be51ab9df159e1e9834d7 | /Main.py | da7f5e22c36be88b80fa54d361a9836d5f4eb343 | [] | no_license | bharatkumar7/stuff | 67a06e552aa6839f596e508cf26973df36574ad2 | 99cb02e6926d6465e4773df4c178f278d9bc7fa6 | refs/heads/master | 2021-01-10T14:09:25.814402 | 2016-01-13T11:03:36 | 2016-01-13T11:03:36 | 49,219,047 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,119 | py | '''# -*- coding: utf-8 -*- If you are just trying to use UTF-8 characters or don't care if they are in your code, add this line'''
import numpy as np
import time,os,talib
import matplotlib.pyplot as plt
from matplotlib.finance import candlestick_ohlc, candlestick2_ohlc
from matplotlib import gridspec,colors
... | [
"bharatkumar7@gmail.com"
] | bharatkumar7@gmail.com |
c463bc62085e0e254656df795762807e09e2e229 | 949d9ed95d94c2cbce94e76120009c9d6b370fb1 | /app/core/routers/__init__.py | eb3c2c8a4e245e044d5d6ff836de1452a79d69ab | [] | no_license | dexer13/guane-intern-fastapi | d8bc5fb808570c5c584f8fb0f685ed9f47b6a497 | 40f4ee5facf523ec93d974ba6613a959ebadae7c | refs/heads/main | 2023-08-24T18:45:28.938807 | 2021-10-30T15:58:22 | 2021-10-30T15:58:22 | 420,717,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | from . import animals
from . import users
from . import security
from . import files
| [
"disidro@campus.udes.edu.co"
] | disidro@campus.udes.edu.co |
f3bf9cff8bd771da7387a3f9128836a954960113 | 661437f8881d9eb5b1d1fd0e28591c27e074326e | /Python/interesting/NOT_SUPPORT/parallel/Process_condition.py | 97a9623051b5c7c0966f9736904a7dccaf913910 | [] | no_license | gnosiop/fromPhone | c16c03bac3a3920a4daaa1f8b41dacfede257de0 | ac427cf125573319c2adcc437b6286ea1da372f8 | refs/heads/master | 2023-08-14T23:46:14.919026 | 2021-09-25T08:11:38 | 2021-09-25T08:11:38 | 404,894,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | import multiprocessing
cv = multiprocessing.Condition()
def produce():
with cv:
for i in range(1, 6):
print(i)
cv.notify()
# как только один поток выполнил операцию
# он уведомил другой и "разбудил" его
def consume():
with cv:
cv.wait(timeout=2)
#... | [
"idoodi@ya.ru"
] | idoodi@ya.ru |
4c7a6ca0278e20ba7b9ba747006fe1ff9e5d0326 | e6c58d75f3cea45639b6dd0f8fe1d1ec6a00bae5 | /weather/views.py | 1a56ce2cef21e16d096be18a5f9308784b69156d | [
"MIT"
] | permissive | cindyjialiu/WeatherApp | 4d2d0ae092b410ad6f35008a00ce938426d81a6c | c91f5928708d4cd79286bcd51a3934cb9d2e3a92 | refs/heads/master | 2020-04-11T19:00:55.616764 | 2018-12-21T15:54:44 | 2018-12-21T15:54:44 | 162,019,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,968 | py | import os
import datetime
import requests
from django.shortcuts import render
def index(request):
api_key=os.environ['WEATHER_API_KEY']
today = datetime.datetime.today()
response = requests.get(f'http://api.openweathermap.org/data/2.5/weather?q=London,uk&units=metric&appid={api_key}')
# TODO: handle ... | [
"jl7e12@gmail.com"
] | jl7e12@gmail.com |
cbefe3934df661d760f6292ce580d43fddcb9dac | 00d809abff2460c051cf3aeaf0f98005bd5f0397 | /API/api_open_subtitles.py | 748d2f77e2667ea0a234b8b7701134410a2497c0 | [
"MIT"
] | permissive | andreibastos/movie-info | e57d821becb8aea820e7858459d71ac34a537a1c | 57da167b4d0ed602b5a9dce8c3f2544f7dfdacd9 | refs/heads/master | 2016-09-01T18:36:47.182014 | 2015-08-15T01:09:20 | 2015-08-15T01:09:20 | 40,301,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,679 | py | # coding: utf-8
import urllib
from lxml import html
import lxml.html as html
from lxml import etree
from lxml.html import fromstring, tostring
import json
url_base = 'http://www.opensubtitles.org'
url_search = 'http://www.opensubtitles.org/pb/search/sublanguageid-pob/imdbid-'
def get_legend(imdbID):
legend = {}
imd... | [
"andreibastos@outlook.com"
] | andreibastos@outlook.com |
80ade65f1adcd28e82e85178c589f646d0eb1e6b | d5f518c8f23705396fd8da3317520cff0ab543f7 | /algorithms/team 3/spikefinder/__init__.py | 4413e5d15c8306e460e19e9e225a26b4cc57d8eb | [] | no_license | j-friedrich/spikefinder_analysis | 78322f8ead7579b1b8bfb50769d6467cee66930e | def1f8c2c5268eb71e83f57c265d4b3c102fb5f8 | refs/heads/master | 2021-10-27T17:14:49.134302 | 2018-02-19T11:42:18 | 2018-02-19T11:42:18 | 93,436,281 | 1 | 0 | null | 2017-06-05T18:51:23 | 2017-06-05T18:51:23 | null | UTF-8 | Python | false | false | 50 | py | from .main import load, score
__version__='1.0.0' | [
"noreply@github.com"
] | j-friedrich.noreply@github.com |
dd55eae4011f0cb80d47c940385e7a3ff85cd7a3 | 602fa0e4ce194d3073d78230c61f7053281f9f9b | /code/python/src/categories/catutil.py | df03a0027b66f8d76d4265de7c7074d56b487bab | [] | no_license | ziqizhang/wop | 111cfdda1686a874ff1fc11a453a23fb52d43af1 | ea0c37f444de9f2d5303f74b989f6d1a09feb61d | refs/heads/master | 2022-09-14T20:14:11.575021 | 2021-12-10T21:23:24 | 2021-12-10T21:23:24 | 166,239,995 | 2 | 1 | null | 2022-09-01T23:11:13 | 2019-01-17T14:33:51 | Python | UTF-8 | Python | false | false | 2,128 | py | import pandas as pd
from nltk import PorterStemmer, WordNetLemmatizer
import numpy
from categories import cleanCategories as cc
stemmer = PorterStemmer()
lemmatizer = WordNetLemmatizer()
#0=stem; 1=lem; else=nothing
def normalise_categories(in_file_name, col, stem_or_lem):
df = pd.read_csv(in_file_name, header=0,... | [
"ziqizhang.email@gmail.com"
] | ziqizhang.email@gmail.com |
aa122ff357ac2276d0569e9bae610a18e81b9c11 | 45be54f14406418be8bf9c1c9a695e77f2c79d1e | /workflow/rules/quality_control.smk | bcb80c300cab633d395dd1523e96c80286362b8c | [] | no_license | G-Molano-LA/circrna-workflow | 41d48c097a7909c8e843beab5e59685950daddf0 | 2be5e61e0eea5395758819c41f39ff9cac279fa0 | refs/heads/main | 2023-06-11T00:49:36.596498 | 2021-07-02T12:32:38 | 2021-07-02T12:32:38 | 348,354,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,490 | smk | #!/usr/bin/python3
__author__ = "G. Molano, LA (gonmola@hotmail.es)"
__state__ = "ALMOST FINISHED" # requires execution to finish it
################################################################################
# Snakefile to realize a quality control of RNA-seq reads.
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"gonmola@hotmail.es"
] | gonmola@hotmail.es |
6753822442fee034044704f8fce55be9c1448475 | 4128e5c41fabbe2289ea7d7faae3d970d0244514 | /jeffy/sdk/kinesis.py | c8e3b18282e2c439b629b5950a6a35cb64a9d3c2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sinofseven/jeffy-my-extended | d772e6a95e9551de637d5ec70dca1d65f27e60d5 | 036ef14e8be5c93f19af4fd0012cc482a77717bb | refs/heads/master | 2021-01-15T06:07:33.383973 | 2020-02-25T03:37:42 | 2020-02-25T03:37:42 | 242,897,880 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | import boto3
import json
from typing import Any
class Kinesis():
"""
Kinesis Client.
"""
_resource = None
@classmethod
def get_resource(cls) -> boto3.client:
"""
Get boto3 client for Kinesis.
Usage::
>>> from jeffy.sdk.kinesis import Kinesis
>... | [
"info@serverless-operations.com"
] | info@serverless-operations.com |
c38344d14b0ab7fc67752b5c676ed3fb625393cf | 414c0bd290c264a55dc03d0657c5f812914bf050 | /ApnaBazaar/urls.py | 7ae85e3480a521c384db656e40d4b499b0ea12c2 | [] | no_license | sakshamsin09/ApnaBazaar | b8af9aea2538d69f27ef80caeb05df3d10d08993 | 02c2a69e6950d8e81ec0bc51e7247f96c2f3f77a | refs/heads/main | 2023-07-09T14:20:40.971602 | 2021-08-24T10:57:16 | 2021-08-24T10:57:16 | 383,352,840 | 0 | 0 | null | 2021-08-22T13:30:28 | 2021-07-06T05:42:14 | HTML | UTF-8 | Python | false | false | 824 | py | """ApnaBazaar 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-ba... | [
"sakshamsinghal09@gmail.com"
] | sakshamsinghal09@gmail.com |
edcbbc430b0d1a558d19be8a4a2625b7c762eb20 | 5add80be09ee754fced03e512a9acc214971cddf | /python-code/openvx-learning/helloworld.py | 61352b55542a81f5e56cc66c6767ea1beb6c1d65 | [
"Apache-2.0"
] | permissive | juxiangwu/image-processing | f774a9164de9c57e88742e6185ac3b28320eae69 | c644ef3386973b2b983c6b6b08f15dc8d52cd39f | refs/heads/master | 2021-06-24T15:13:08.900960 | 2019-04-03T10:28:44 | 2019-04-03T10:28:44 | 134,564,878 | 15 | 5 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | from pyvx import vx
context = vx.CreateContext()
images = [
vx.CreateImage(context, 640, 480, vx.DF_IMAGE_UYVY),
vx.CreateImage(context, 640, 480, vx.DF_IMAGE_S16),
vx.CreateImage(context, 640, 480, vx.DF_IMAGE_U8),
]
graph = vx.CreateGraph(context)
virts = [
vx.CreateVirtualImage(graph, 0, 0, vx.DF_IM... | [
"kkoolerter@gmail.com"
] | kkoolerter@gmail.com |
6b21ff7967cabb367eae29730fcc4d5cd9aee141 | 78adcbb441d703c64553c09f6e08ae01a6d95ad0 | /main.py | c59c9f7a49d137b8ca303ed85c45e90d9e858529 | [] | no_license | victor369basu/MongoDBFlask | 8dfa6fb576a23e6d47f7211fbb2949bbdbfcddbf | c7de5027e655b8768d11f0c4184aeb5bfa9ccd17 | refs/heads/master | 2023-03-04T04:18:31.649237 | 2023-02-21T12:08:39 | 2023-02-21T12:08:39 | 303,291,017 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,647 | py |
from typing import Optional
import uvicorn
from fastapi import FastAPI, Request
from MongoAPI import MongoAPI
import json
app = FastAPI()
@app.get("/")
async def base():
return {'response':{"Status": "Health Check!"},
'status':200,
'mimetype':'application/json'
}
@app.get('/m... | [
"victor.basu@lumiq.ai"
] | victor.basu@lumiq.ai |
d92df5cd630581d42b06e50bdc1070c5d414a17c | 9647524c0f4d93fb1c8a992c20fe9f9d2710cde3 | /2-content/Python/intro_programming-master/scripts/remove_input_references.py | 2ab8878b1a362f079adf49a971ef71aa7677a4ea | [
"MIT"
] | permissive | bgoonz/web-dev-notes-resource-site | 16161aa68e8eecafeaba4dc7abeb957aaee864c5 | e7dc9c30393597cb39830c49c3f51c1486b97584 | refs/heads/master | 2023-09-01T14:04:20.867818 | 2021-06-17T07:56:20 | 2021-06-17T07:56:20 | 329,194,347 | 7 | 5 | MIT | 2021-07-05T06:36:49 | 2021-01-13T04:34:20 | JavaScript | UTF-8 | Python | false | false | 1,306 | py | # This script removes the input reference numbers from html pages.
# They play a useful role in scientific notebooks, but they are really
# just visual clutter in this project.
# Could be an nbconvert setting, but it's an easy enough scripting job.
import os
import sys
print("\nStripping input reference numbers fro... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
eab0841d48237a5fda2b01c56721707bb39a40fb | 156cac8bf5192a3d0b93a105539f4e6d5108fa1c | /ciyunapi/ciyunapi/asgi.py | b9e43c8bfd8ab576339ef2ba6040afa333af0c34 | [] | no_license | yutu-75/ciyun | 220de2c4e4c6365145c16d3bf634838ecb9921ca | c25b2555ac527097d4d27380ae75a47670f42687 | refs/heads/main | 2023-05-07T08:46:18.285524 | 2021-05-31T13:22:49 | 2021-05-31T13:22:49 | 365,187,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
ASGI config for ciyunapi project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault... | [
"xiao3952@foxmail.com"
] | xiao3952@foxmail.com |
93013a6c44645ef61cb45e633030c20663c3fde6 | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /cv/classification/torchvision/pytorch/train.py | 1c16c81bc51ace035a2653350c088a3888b0904f | [
"Apache-2.0"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 15,577 | py | # Copyright (c) 2022 Iluvatar CoreX. All rights reserved.
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import warnings
warnings.filterwarnings('ignore')
import datetime
import os
import logging
import time
import torch
import torch.utils.data
try:
from apex import amp as apex_amp
excep... | [
"jia.guo@iluvatar.ai"
] | jia.guo@iluvatar.ai |
d0a3f8fea955cd6b7239c30eb4bde72572683e27 | f2f88a578165a764d2ebb4a022d19e2ea4cc9946 | /pyvisdk/do/guest_authentication.py | f16ac39d82372db0665b605fca27476d5d281d82 | [
"MIT"
] | permissive | pombredanne/pyvisdk | 1ecc68a1bf264095f72f274c776e5868fb302673 | de24eb4426eb76233dc2e57640d3274ffd304eb3 | refs/heads/master | 2021-01-21T16:18:39.233611 | 2014-07-28T19:50:38 | 2014-07-28T19:50:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def GuestAuthentication(vim, *args, **kwargs):
'''GuestAuthentication is an abstract base... | [
"guy@rzn.co.il"
] | guy@rzn.co.il |
2033b58ac5c7b829f095eafefba8e88a252ab286 | 5cb6907c93b4d8d4efdc318ccb44bc7dd2f7789f | /factors.py | 3eddb30138797bc77b43b0c51a24523dd64128b6 | [] | no_license | malempati0/malempati00 | d4ab09cad24ee9cfe5b4b8c20c7ba8fc414bd31c | b951bd215cb79a04305bdc5039d6b7597725d3ee | refs/heads/master | 2020-04-07T07:11:13.201614 | 2018-11-26T04:45:58 | 2018-11-26T04:45:58 | 158,167,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | def print_factors(x):
for i in range(1, x + 1):
if x % i == 0:
print(i)
num = 6
print_factors(num)
| [
"noreply@github.com"
] | malempati0.noreply@github.com |
8a438d371dcd47d1c7a958b870491293517d1a86 | cf39aeabaae2fc0a16ddf4b458308d5ebde10a33 | /modules/grindhold_plainhtml/__init__.py | a969ecaf93e1343f741158687ed33350effc5806 | [] | no_license | joker234/skarphed | 03dbb774a7605d6523926d082009a24f29455fd7 | a7dc2bd758bf24cf8819d36e67633e68e87cf008 | refs/heads/master | 2021-01-18T06:36:20.996757 | 2013-09-06T02:20:25 | 2013-09-06T02:20:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,682 | py | #!/usr/bin/python
#-*- coding: utf-8 -*-
###########################################################
# © 2011 Daniel 'grindhold' Brendle and Team
#
# This file is part of Skarphed.
#
# Skarphed is free software: you can redistribute it and/or
# modify it under the terms of the GNU Affero General Public License
# as ... | [
"grindhold@gmx.net"
] | grindhold@gmx.net |
d384f24b5c0b0b257f66b1db1a63854c59b95395 | 3e4c69317323bca865b025503b60bf83d3ae65f8 | /tests/server/blueprints/variants/test_variant_views_variant.py | c1fd7fe078f8967099df90b24cb215c5a79a60ac | [
"BSD-3-Clause"
] | permissive | tapaswenipathak/scout | f59beaa997a45487ac96c3b3e560b5e5aa9b30ae | c9b3ec14f5105abe6066337110145a263320b4c5 | refs/heads/master | 2020-05-30T11:13:25.662300 | 2019-05-28T09:26:25 | 2019-05-28T09:26:25 | 189,694,812 | 1 | 0 | BSD-3-Clause | 2019-06-01T05:36:35 | 2019-06-01T05:36:34 | null | UTF-8 | Python | false | false | 1,207 | py | # -*- coding: utf-8 -*-
import logging
from flask import url_for
log = logging.getLogger(__name__)
def test_server_variant(app, real_adapter):
# GIVEN an initialized app
# GIVEN a valid user, institute, case and variant
adapter = real_adapter
variant_obj = adapter.variant_collection.find_one()
... | [
"rasi.chiara@gmail.com"
] | rasi.chiara@gmail.com |
dd42b52d712e69767f647a33a975f897d68b913f | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/OssDirectoryDetail.py | 7b7aed746981c86b4885e7159246c6f7d6a7017c | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 2,270 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class OssDirectoryDetail(object):
def __init__(self):
self._acl = None
self._file_id = None
self._file_name = None
self._last_modified = None
@property
def acl(... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
068ea44d67a7cb5384e48561163e2762d5fce31c | 8565e0f12bb11e14096964eeef3e34535c513d7f | /LunarisBot.py | 029724af17fd46a914baa8e334a908ee3611a044 | [] | no_license | No17Namsan/NightSkyK | 2be02740cd3520bf8216abe6069721a39ee0ad4b | 73aa3890780814726f5dc23bfe4416f75df200cb | refs/heads/main | 2023-07-18T04:41:12.381368 | 2021-09-06T11:21:00 | 2021-09-06T11:21:00 | 403,484,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,855 | py | import asyncio
import discord
import random
import re
import urllib.request
import urllib.parse
from urllib.parse import quote
import json
from datetime import datetime, timedelta
client = discord.Client()
# 봇이 구동되었을 때 동작되는 코드입니다.
@client.event
async def on_ready():
print("Logged in as ") # 화면에 ... | [
"noreply@github.com"
] | No17Namsan.noreply@github.com |
dfc0cc855a774de8fa89bf5d0af2e7761c1399da | cf0ab8503d4d704045070deea1e2125375711e86 | /apps/apikeys/v1/urls.py | 1a8b15c264dc105260d2432da2775b98a3fb3a99 | [] | no_license | faierbol/syncano-platform | c3c6468600115752fd9fa5e46a0ad59f75f6bc9c | 879111874d1ef70418b4890cf970720b0a2be4d8 | refs/heads/master | 2023-07-20T10:13:40.066127 | 2021-02-08T15:01:13 | 2021-02-08T15:01:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | # coding=UTF8
from rest_framework.routers import SimpleRouter
from apps.apikeys.v1 import views
router = SimpleRouter()
router.register('api_keys', views.ApiKeyViewSet)
urlpatterns = router.urls
| [
"rk@23doors.com"
] | rk@23doors.com |
bd8a2b6e104c59c4b57a5cac5db23d29db1db3ec | 908e60d308ca9458b89980be1095f58a07fce0bb | /playNFS.py | 7b26a28595bb3a090c047db2100d5e011b07db5b | [] | no_license | KartikPatelOfficial/Ai-Nfs | f6220d2f1cf479ce613aa206a9150c4dd88602a5 | 00e39a9d3ab4bec6d26987c6849799587f3d02cc | refs/heads/master | 2021-07-19T14:57:30.108037 | 2017-10-28T16:07:32 | 2017-10-28T16:07:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,365 | py | import numpy as np
from PIL import ImageGrab
import cv2
import pyautogui
import time
from directKeys import ReleaseKey, PressKey, W, A, S, D
def drawLines(img, lines):
try:
for line in lines:
coords = line[0]
cv2.line(img, (coords[0],coords[1]), (coords[2],coords[3]), [255,255,255], 3)
except:
pass
def ro... | [
"patelkartik1910@gmail.com"
] | patelkartik1910@gmail.com |
42bdb6a885ac58d51bad36beea8877307f7902a5 | eda9187adfd53c03f55207ad05d09d2d118baa4f | /algo/Transfer_Learning/Transfer_learning.py | 725a6e82bceb8aa1d09e9cb263fc2fdf9da6aea1 | [] | no_license | HuiZhaozh/python_tutorials | 168761c9d21ad127a604512d7c6c6b38b4faa3c7 | bde4245741081656875bcba2e4e4fcb6b711a3d9 | refs/heads/master | 2023-07-07T20:36:20.137647 | 2020-04-24T07:18:25 | 2020-04-24T07:18:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,586 | py | # -*- coding:utf-8 -*-
# /usr/bin/python
'''
-------------------------------------------------
File Name : Transfer_learning
Description : 迁移学习
Envs : pytorch
Author : yanerrol
Date : 2020/2/17 09:58
-------------------------------------------------
Change Activity:
... | [
"2681506@gmail.com"
] | 2681506@gmail.com |
cab5f90d462f2fc8397fd3e49936dc077c525358 | b37601e91fc9e6d4ad7dab19880747bca82f2e50 | /General_Practice/listdictionary_practice.py | 3d78becc649383215c0f2fd6cabe3711c437197e | [] | no_license | sarahannali/pythoncourse | d26389cd3fda830af3778051d7205021d5e150b3 | b9ab543c19511e00a7b3e174b817c5eb0706a49a | refs/heads/master | 2020-08-29T05:53:21.388641 | 2019-12-05T22:47:56 | 2019-12-05T22:47:56 | 217,947,564 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | # #List Comprehension Practice
a = input("List 5 numbers less than 10, separated by a space: ")
b = input("List 5 more numbers less than 10: ")
a = a.replace(" ", "")
answer = [item for item in a and b if item in a and b] #Shared in both
inputOne = input("What is your name? ")
inputTwo = input("What is your pet's na... | [
"asarahali00@gmail.com"
] | asarahali00@gmail.com |
8d70adcda10da24ef6cac3a8733ad6a6cd20df78 | d53e9e90cb085046a3419be05966d3f0eef5b8e9 | /v2/ovn_ovs.py | 1e5a00c5a57e5b064d6629554e7a3c337619e2ff | [] | no_license | e2e-win/k8s-ovn-ovs | 99ba544485e726919b2aa1cfe83865c5152cd0a8 | ed21beeb2ddf30fc94555ba99745a2f8c9963de2 | refs/heads/master | 2020-03-28T23:56:20.237212 | 2020-01-03T10:19:59 | 2020-01-03T10:19:59 | 149,316,665 | 0 | 10 | null | 2020-01-03T10:20:01 | 2018-09-18T16:08:41 | Python | UTF-8 | Python | false | false | 16,023 | py | import ci
import configargparse
import openstack_wrap as openstack
import log
import utils
import os
import time
import shutil
import constants
import yaml
p = configargparse.get_argument_parser()
p.add("--linuxVMs", action="append", help="Name for linux VMS. List.")
p.add("--linuxUserData", help="Linux VMS user-data... | [
"atuvenie@cloudbasesolutions.com"
] | atuvenie@cloudbasesolutions.com |
30fd9ea784dffc56bf761d1938ac9c00617ccab4 | 8467f6026afd620aa7efc6bf8d5db7970a25460e | /calc.py | ad775e41cdf051c726c1954980c2cd0e20f73396 | [] | no_license | alisebruevich/Graphing-Calculator | 848563a89d1e28c7dcf760a35034bcd2c5a24bad | 06c3ae99f46408d475bd31f715cf4bc448922af5 | refs/heads/master | 2020-08-19T14:08:55.178307 | 2019-10-18T02:40:19 | 2019-10-18T02:40:19 | 215,926,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,595 | py | #newest, latest, freshest
#fix derivatives with masking and unmasking arrays for x and y: Bonnie
#presentation (what we did, learned; 3-5 slides): Alise
#code block diagram: Bonnie
#test to see if exponential functions will work: Alise -> IT DOESN'T CRY
#make labels for what different colors/symbols mean on the graph: ... | [
"noreply@github.com"
] | alisebruevich.noreply@github.com |
40ccefb509a8910430c7b9e7396fe596022f0fdf | 3de6b4bbaf86afe1ff87b0d829bcba014a8a9696 | /.history/home/models_20200512135208.py | 77a219ab1076ce6b855a9fb57b4f9eeb54707ffb | [] | no_license | codermythbuster/bs | f0b758ab396e50f744aa29c7ecd58354b7df06df | 3687302da8f9fe5a8f75d52ba429f14e2f09c67e | refs/heads/master | 2022-08-04T22:27:59.987215 | 2020-05-26T11:24:01 | 2020-05-26T11:24:01 | 263,302,705 | 0 | 0 | null | 2020-05-26T09:58:03 | 2020-05-12T10:16:30 | HTML | UTF-8 | Python | false | false | 1,225 | py | from django.db import models
from django.contrib.auth.models import User
# book keeping record model
class Book(models.Model):
book_id = models.IntegerField(primary_key=True,verbose_name="BOOK ID")
book_name = models.TextField(verbose_name="BOOK NAME")
book_category = models.CharField(max_length=100,verbos... | [
"namdev373@gmail.com"
] | namdev373@gmail.com |
c207cd4f3194bfde257b57a18093edeb474a8c31 | 9a5fa4f1fcd2d335347dda8b6672ff0392003823 | /backend/exprgram/migrations/0006_auto_20180724_0331.py | 6f9ef516992a157f06519ae48738df51e0240ff7 | [] | no_license | kyungjejo/exprgram-evaluation | ea9db3defc215f0f7ff4fde878267dcb7618e6c7 | d0a549fbe3072bfc5aa20d645e3e4cfb0ba60f06 | refs/heads/master | 2023-01-13T03:09:26.063495 | 2018-09-10T11:16:08 | 2018-09-10T11:16:08 | 146,848,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | # Generated by Django 2.0.6 on 2018-07-24 03:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('exprgram', '0005_auto_20180719_1659'),
]
operations = [
migrations.AlterField(
model_name='emotionlables',
name='cou... | [
"kyungjejo@gmail.com"
] | kyungjejo@gmail.com |
13a0070714639e0e12858309ad4019cba7a00079 | b0d91025a0c188b8ecc4c328a38e3d0c158309a3 | /mysite/settings.py | 96b107a7f1405ad0f5f26aafebb1e9461262af79 | [] | no_license | sdumi/dj_tut | 26e9c742e2d72f5ccb0ae08e4a65bbacabf25192 | fb7c0c979372da9de0ed30068fc12fe891ab6d12 | refs/heads/master | 2020-12-24T16:06:15.022099 | 2010-11-23T12:04:14 | 2010-11-23T12:04:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,241 | py | # Django settings for mysite project.
import os.path
DEBUG = True
#DEBUG = False
TEMPLATE_DEBUG = DEBUG
PROJECT_DIR = os.path.dirname(__file__)
ADMINS = (
('Dumi', 'dumitru.sipos@gmail.com'),
('Dumitru Sipos', 'dumitru.sipos@alcatel-lucent.com')
)
EMAIL_HOST='smtp.tm.alcatel.ro'
EMAIL_PORT=25
MANAGERS = ADMIN... | [
"dumitru.sipos@gmail.com"
] | dumitru.sipos@gmail.com |
f281fed287dbd357fea0ab3bb3bd35efc0794cf4 | 51d65cbed3df1e9e3a0d51f79590ee12f88291d1 | /object_detection/inference_over_image.py | 0bbbdb9954ca69ffd0cf92de7a7cbb7577cf8043 | [
"MIT"
] | permissive | apacha/Mensural-Detector | f9332c23854263c6a3f89e8b92f3f666f8377ed8 | 05c91204cf268feaae84cd079dbe7a1852fba216 | refs/heads/master | 2022-09-23T21:20:53.376367 | 2022-08-31T08:36:35 | 2022-08-31T08:36:35 | 137,372,669 | 12 | 6 | null | null | null | null | UTF-8 | Python | false | false | 6,444 | py | import numpy as np
import tensorflow as tf
import argparse
from PIL import Image
from object_detection.utils import ops as utils_ops, label_map_util, visualization_utils as vis_util
if tf.__version__ < '1.4.0':
raise ImportError('Please upgrade your tensorflow installation to v1.4.* or later!')
def load_image_i... | [
"alexander.pacha@gmail.com"
] | alexander.pacha@gmail.com |
90eb5fd3f16495104732f25945188ffbca0336ac | 95d7484f512f2ef0b62a0da1feb900e436214c8b | /models/contact_template.py | 1bcc94bd095d43236881fd97e45402ddc616740d | [] | no_license | Sundaya-Indo/product_test | d3b090384284b3efe449952b63f7face735a0ccf | e1d7a6dd40b224024df9955e67e50c0a09cf7b8b | refs/heads/master | 2021-07-31T14:00:13.001861 | 2021-07-22T08:42:57 | 2021-07-22T08:42:57 | 248,193,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | from odoo import models, fields, api, _
from odoo.exceptions import UserError
class Partners(models.Model):
_inherit = 'res.partner'
file_datasheet_partner = fields.Many2many(
comodel_name="ir.attachment",
relation="m2m_ir_file_datasheet_partner",
column1="m2m_id",
co... | [
"agis@sundaya.com"
] | agis@sundaya.com |
3e993a5460ef71cfd268ce842d87012816743b71 | f2656962b7bb2b0bb120718feb4b9f124b7ecc6c | /AssociationRuleMining/utils.py | 27d5abd683c4cf625a574825a63f41d1380be05a | [] | no_license | Fasgort/AIA-Recomendacion | 24c42634953efaef2b650320f83a7a17c8a5bc06 | 2340b6196552083c8b9ef75c2be245881e1bd9d1 | refs/heads/master | 2021-01-17T23:21:09.207808 | 2017-03-15T11:27:51 | 2017-03-15T11:27:51 | 84,218,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | # -*- coding: utf-8 -*-
# !/usr/bin/env python3
import logging
from tabulate import tabulate
from association_rule_tools import get_conviction, get_lift, get_confidence, get_support
def load_transaction_db(path, limit=0):
logging.debug("Start loading transactions database")
transaction_db = list()
loade... | [
"valentin.sallop@gmail.com"
] | valentin.sallop@gmail.com |
57bfefceefd25252047dcd608dff497f0c347b82 | 988dd821269be12c2f56f62b0c35546fd3050537 | /python/quaternions/rotations.py | 852c8839c1435519fcbc0675bd055c4d8af732b7 | [] | no_license | gdiazh/adcs_models | fb19f541eeb9b01ae49ec98719c508d084e4fd7a | 51d0829cc777d2e345e4fabe406ec7f54e661117 | refs/heads/master | 2020-03-28T13:04:56.174852 | 2018-09-28T22:08:25 | 2018-09-28T22:08:25 | 148,364,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,050 | py | #!/usr/bin/python
__author__ = 'gdiaz'
import matplotlib as mpl
from plotVectors import PlotVectors
import numpy as np
class Rotation(object):
def __init__(self):
self.vectors = PlotVectors()
self.a = [0, 0, 0]
def rotate_z(self, a, yaw):
Az = np.matrix([[np.cos(yaw), -np.sin(yaw), 0... | [
"g.hernan.diaz@gmail.com"
] | g.hernan.diaz@gmail.com |
4314eb2e3669ee41547bd4d12cc4d8689c34d0aa | 74b65dee638e73b07032b4d26a9e0ce7a50b7ccc | /neural_network/network.py | a8d781a35c4b16245ae5b9b31c4d9c88e34b61b6 | [] | no_license | mpwillia/Tensorflow-Network-Experiments | 6aec1d0a645d18536f0293185be553d67b584ad6 | 6d43f9a71c0b80a4d634de812e5141a8b295a4f8 | refs/heads/master | 2021-01-11T16:23:44.949529 | 2017-04-27T23:10:06 | 2017-04-27T23:10:06 | 80,074,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,465 | py |
import tensorflow as tf
import tensorflow.contrib as tfc
import tensorflow.contrib.layers as tfcl
print("Using Tensorflow Version: {}".format(tf.__version__))
import numpy as np
import sys
import math
import random
import os
from functools import partial
from network_util import match_tensor_shape, batch_dataset,... | [
"mike@clwill.com"
] | mike@clwill.com |
120ee9bc839ff0a3903105aacf109d63e4c539be | 7774f3549007ea06046ff06abe85efb6433062b9 | /textapp/forms.py | fe60215b1bf50eafe9943fed60819425e3743837 | [] | no_license | rikuriku1999/textbook | 92be520f064c74986c62437fe585db0d39216a61 | 49814eac2ed318c13882966a35bec60760084a2b | refs/heads/master | 2021-01-01T12:39:22.769329 | 2020-03-15T13:18:42 | 2020-03-15T13:18:42 | 239,282,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,025 | py | from django import forms
from . import models
from django.contrib.auth import get_user_model
from django.contrib.auth.forms import (
AuthenticationForm, UserCreationForm
)
User=get_user_model()
COLLEGE_CHOICES = (
('慶應義塾大学','慶應義塾大学'),
('早稲田大学','早稲田大学'),
('青山学院大学','青山学院大学'))
GENDER_CHOICES = (
('男... | [
"kalashnikova1120@gmail.com"
] | kalashnikova1120@gmail.com |
f0f4aaf831a274f5022dbc1d1fa68fe08e28c63e | a2fd9491d11d9982d1ce82765b6dbed7653a954d | /Adpy/Lesson 1.5/Lesson 1.5.py | cefec4862090dd0924ccf7bd7ccd0636ff58ea19 | [] | no_license | nikolaydmukha/Netology | bc3dc541c1de9329671daeacca385de3b55d9c48 | b3577a4d414e76876412de01c2120e81ba82c697 | refs/heads/master | 2022-12-11T04:34:27.270476 | 2019-06-30T09:04:02 | 2019-06-30T09:04:02 | 167,036,184 | 1 | 0 | null | 2022-11-22T03:15:02 | 2019-01-22T17:23:40 | Python | UTF-8 | Python | false | false | 1,943 | py | import email
import smtplib
import imaplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
class Email:
def __init__(self, sender, password, subject, recipients, message, header=None):
self.sender = sender
self.password = password
self.subject = subject
... | [
"45710335+nikolaydmukha@users.noreply.github.com"
] | 45710335+nikolaydmukha@users.noreply.github.com |
480449f9654885b91bebc78cabcb012d20f26abb | 6d0d27377707b4ac36d5d7858a590869e4eeff7c | /src/backend/utils/upload.py | ba670386065fdb7720aee57d3337ffee6efe620b | [] | no_license | Hiraishi-Ryota/mediado-hack-2021-a | 6ce03f63a3b254c80e615248e85834df2af8718a | 1c570a2d807c4531949639846220cbde15beada9 | refs/heads/main | 2023-08-06T21:10:57.354095 | 2021-09-15T05:50:54 | 2021-09-15T05:50:54 | 404,998,912 | 0 | 0 | null | 2021-09-15T05:50:55 | 2021-09-10T07:45:52 | Python | UTF-8 | Python | false | false | 559 | py | import os
from pathlib import Path
import shutil
import sys
from tempfile import NamedTemporaryFile, SpooledTemporaryFile
BASE_DIR = os.getcwd()
def upload(filename: str, file: SpooledTemporaryFile, dir: str):
"""e_pub_fileをstaticに保存し、そのBASEDIR下のパスを返す"""
try:
with NamedTemporaryFile(delete=False, suf... | [
"leonard.t1028@gmail.com"
] | leonard.t1028@gmail.com |
a717e726db9b4dae2b92ba552163a7eb6f742c6f | 711ebd8c54be73934154d3f3b325bbc2a13a5fde | /weather app.py | 6dc4cd8ffc05b6af1499c0d481df5b6bdd07ec51 | [] | no_license | Balajiigor/python | 3b5ed72c57002eec7d2eebc8a1f1f84277eb5da8 | 3e6817b2447c5b0265147870758d00e30dbbc238 | refs/heads/using-json-in-python | 2023-07-08T19:08:40.490641 | 2021-08-16T02:32:03 | 2021-08-16T02:32:03 | 382,550,766 | 0 | 0 | null | 2021-08-16T02:34:18 | 2021-07-03T07:11:36 | Python | UTF-8 | Python | false | false | 3,192 | py | import requests
from bs4 import BeautifulSoup
from tkinter import Tk
from tkinter import Label
from PIL import ImageTk, Image
Tamil_nadu = "https://weather.com/en-IN/weather/today/l/4a5f6abb61cf684f3b18578ada1c5647346a0c273b8d5cd86c1eb48842d572e5"
Seattle = "https://weather.com/en-IN/weather/today/l/ced0de18c1d771856e... | [
"noreply@github.com"
] | Balajiigor.noreply@github.com |
e173a1acb6f004419a36a21a69349963e12720f5 | 1f1de940fd030db12ece5a4037fc1b9291f884cf | /src/main/python/config.py | d14218a38f34ce6ddfe81273e18ef2c5b271faf0 | [] | no_license | psy2013GitHub/sklearn-utils | 1ea747827f7a36332a049388b4abc03c43501d94 | acea4bf3423883dd8e6782741234c6493648c820 | refs/heads/master | 2020-06-12T10:52:47.160022 | 2016-12-05T06:42:12 | 2016-12-05T06:42:12 | 75,586,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | __author__ = 'flappy'
| [
"deng.zhou@immomo.com"
] | deng.zhou@immomo.com |
01e5eebcd277d1c73463b5afec695c16d394fa57 | b5aea34ce585e4462775a838c27135f92c5a852d | /portfolio/migrations/0001_initial.py | 152480a5681f5374338900b09a932854832e0688 | [] | no_license | theethaj/portfolio-project | 80851eaf4ed61eec8861a98398d0bbcad5223eb7 | a954d3b1d7f1ec17eefb8c8e67e7ce801dc5f201 | refs/heads/main | 2023-02-25T12:16:45.619964 | 2021-01-31T10:59:04 | 2021-01-31T10:59:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | # Generated by Django 3.1.5 on 2021-01-30 13:15
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
('id', models.AutoField(... | [
"ding533@hotmail.com"
] | ding533@hotmail.com |
5f064814d535825806233dee2469180a93dec6bb | 7df7eb32424b40fa98378af298716759ae39d198 | /Laboratorios/Lab8/Lab8Ejercicio1.py | 3a0679cfc04af8dd79cbb5820216ec63516cbcbc | [] | no_license | tratohecho3/Algoritmos-1 | 289b2ee990da943d7a1622af04d815839882937a | b009a780de7e56dccf4d7832010b06d0254a35c1 | refs/heads/master | 2021-01-12T00:48:36.848983 | 2017-01-07T20:19:24 | 2017-01-07T20:19:24 | 78,298,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,170 | py |
"""Autores: Cesar Colina 13-10299
Francisco Marquez 12-11163
Lab8Ejercicio.py
Descripcion: Programa que lee una matriz en un archivo .txt y devuelve en otro
archivo .txt una serie de datos de interes.
"""
#CALCULOS
import pygame,sys, os.path
from pygame.locals import *
pygame.init()
while True:
tiempo = p... | [
"noreply@github.com"
] | tratohecho3.noreply@github.com |
1466dcdda5a60e77319ce48fd9043140a50877ca | 1c6d58e5b2bbce4a457350302fa9845f43f076a2 | /Python Programming/EXC 030 - 7-0-0.py | 28a0e6b50ec8b2ba0c20dba9c68e67ff8b2174f4 | [] | no_license | Daviswww/Toys | fa8b481bf5106a0f984c6bfd5260f3ec55ccee1d | 680c260ebb8d385a3dbcdd985a447fd5d2b74f3b | refs/heads/master | 2022-07-21T03:35:41.590248 | 2020-01-11T11:04:02 | 2020-01-11T11:04:02 | 144,127,014 | 0 | 0 | null | 2022-06-22T00:05:19 | 2018-08-09T08:57:15 | Python | UTF-8 | Python | false | false | 1,693 | py |
A = [89, 56, 92 ,79, 51]
B = [70, 86, 77, 83, '缺考']
C = [0, 0, 0, 0, 0]
D = [0, 0, 0, 0, 0]
print('期中考缺考: ')
for i in range(5):
if(A[i] =='缺考'):
print(i,'號缺考')
print('\n期末考缺考: ')
for i in range(5):
if(B[i] =='缺考'):
print(i,'號缺考')
print('\n平均分數: ')
for i in range(5):
... | [
"noreply@github.com"
] | Daviswww.noreply@github.com |
524db47926d6c1b18a65735cec61aad5f9e91b97 | d2c163f246d28b8519f8c89de23556e43be91684 | /www/ad_board/urls.py | 9309b9dfb201f43c13a2ec3d393148de00aea612 | [] | no_license | boogiiieee/Iskcon | d7a2b8bdc3002ef3306fc5e7ddc577504d8533c9 | b672dbafee06af3ee6d646c75f442d97133f5ec9 | refs/heads/master | 2021-09-04T03:11:06.770094 | 2018-01-15T04:21:36 | 2018-01-15T04:21:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # -*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns, include, url
urlpatterns = patterns('ad_board.views',
url(r'^$', 'full', name='ad_board_url'),
url(r'^category/(?P<id>[0-9]+)/$', 'category', name='category_ad_board_url'),
url(r'^(?P<id>[0-9]+)/$', 'item', name='ad_board_item_url'),
url(r'... | [
"shalyapinalexander@gmail.com"
] | shalyapinalexander@gmail.com |
35b57a408d049fe970e3d7bb1fcf28c9e89d7f4c | faa3c49ce63590c298ffcd5ecc4c4b1808efb5db | /docker-images/docker-madminer-all/code/configurate.py | d540ebcfa111bf9b88f45e96d77090405b44974c | [
"MIT"
] | permissive | johannbrehmer/workflow-madminer | bf4063e3793db2f0340ed4c0fe4e13052d7f6d06 | bb648503bc5b6df301dea7708cc05fb567a4be57 | refs/heads/master | 2020-04-28T12:11:37.970977 | 2020-04-09T19:13:04 | 2020-04-09T19:13:04 | 175,268,087 | 0 | 0 | MIT | 2019-03-12T17:52:33 | 2019-03-12T17:52:33 | null | UTF-8 | Python | false | false | 2,821 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import numpy as np
#import matplotlib
#from matplotlib import pyplot as plt
#%matplotlib inline
import sys
import yaml
import inspect
from madminer.core import MadMiner
from madminer.plotting import plot_2d_morphing_basis
from madminer... | [
"iem244@nyu.edu"
] | iem244@nyu.edu |
1a94d4955bc1347ae86d5992a523abcfbfb17267 | 5da2c116d3d0dc4f3811cec144c9f8b5a74afede | /lncrawl/assets/user_agents.py | fbec17aabe02c7b79f52106cf5ee397fca225e17 | [
"Apache-2.0"
] | permissive | NNTin/lightnovel-crawler | a08bd252f2e72f41f931f0b2165f906b64d33692 | 451e816ab03c8466be90f6f0b3eaa52d799140ce | refs/heads/master | 2021-06-23T12:07:43.668329 | 2021-04-25T01:51:26 | 2021-04-25T01:51:26 | 361,695,538 | 2 | 0 | Apache-2.0 | 2021-04-26T16:48:21 | 2021-04-26T09:40:46 | null | UTF-8 | Python | false | false | 6,302 | py | # -*- coding: utf-8 -*-
user_agents = [
# "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0",
# "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1",
# "Mozilla/5.0 (X11; CrOS x86_64 8172.45.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.6... | [
"dipu.sudipta@gmail.com"
] | dipu.sudipta@gmail.com |
da41b6d51ae8d2de2dd7a45e0120555d35750c8d | f0187406babf1be73626fa2a4fbeb790e177dd7a | /assignment2/assignment2_2015004120.py | 708e78808230d9427a30fe1383f4dfb056f5b6ec | [] | no_license | CameliaOvO/CSE4007 | bc150084f00f3ab484a8194002022cc96d169414 | 89929cb6f5c61b9f89de06f14a2a03f2a43e5378 | refs/heads/master | 2020-03-19T03:32:53.572535 | 2018-05-29T04:38:28 | 2018-05-29T04:38:28 | 135,737,859 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,084 | py | from bisect import bisect_left
from collections import Counter
from math import log2
def complete_link_clustering(sim_name):
sim = cosine_similarity if sim_name == 'c' else euclidean_distance
most = min if sim == euclidean_distance else max
levels, clusters = [], [[x] for x in range(num_of_words)]
pro... | [
"camelia0858@gmail.com"
] | camelia0858@gmail.com |
57cbb17eae32ce8daed7bf554a568c0f8d9328db | 36e13e0219419b6a0c9d913b99b9330c7894f32a | /LifelongMixture_64_Dirichlet.py | 5c20b33432794fcd54c1b387c2aa5778c3182873 | [] | no_license | WN1695173791/LifelongMixtureVAEs | 4ef6f5c62f3a9480bd010fabce249020cca71b5b | b1f858cae35f8f0b91981f398ec431d9a8afb061 | refs/heads/main | 2023-06-15T10:09:31.087605 | 2021-07-09T15:11:53 | 2021-07-09T15:11:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,976 | py | import tensorflow as tf
import mnist_data
import tensorflow.contrib.slim as slim
import time
import seaborn as sns
from Assign_Dataset import *
from tensorflow.examples.tutorials.mnist import input_data
from keras.datasets import mnist
from Support import *
from Mnist_DataHandle import *
from HSICSupport im... | [
"noreply@github.com"
] | WN1695173791.noreply@github.com |
de57cedbc86dec255b93ebc77daf153a873f5256 | 1422a57e98aba02321b772d72f8f0ada6d8b8cba | /friday/friday-vendor/vendor-scripts/test-resources/scripts/pylib/hue_turn_on_light.py | 152b15f1a6ee7c7306946bab089ea4f1578d9421 | [
"MIT"
] | permissive | JonasRSV/Friday | e1908a411aa133bc5bd2f383b0a995f7e028092d | f959eff95ba7b11525f97099c8f5ea0e325face7 | refs/heads/main | 2023-05-15T03:33:21.542621 | 2021-06-12T10:34:50 | 2021-06-12T10:34:50 | 315,309,991 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | import phue
import sys
if __name__ == "__main__":
b = phue.Bridge(config_file_path="credentials.json")
b.set_light(int(sys.argv[1]), parameter={"on": True, "bri": 200}, transitiontime=5)
| [
"jonas@valfridsson.net"
] | jonas@valfridsson.net |
198442838c9414d3f62f9b0af071a325589a66ae | 8840b69e4341f4ed030c8b33151db205b8db3640 | /flask_minijax.py | a5036e1c916ae910ed2af7e28ecdc01b86534110 | [
"MIT"
] | permissive | FidgetYou/proj3-anagrams | b5fe7ccc333bca0895c12590142b9f0e30f10b83 | 86923a696794b7098940023d57aaef679a52b3ac | refs/heads/master | 2021-01-11T01:03:32.507679 | 2016-10-18T01:58:25 | 2016-10-18T01:58:25 | 70,846,302 | 0 | 0 | null | 2016-10-13T20:39:51 | 2016-10-13T20:39:50 | null | UTF-8 | Python | false | false | 1,317 | py | """
Tiny demo of Ajax interaction
"""
import flask
from flask import request # Data from a submitted form
from flask import url_for
from flask import jsonify # For AJAX transactions
import json
import logging
import argparse # For the vocabulary list
import sys
###
# Globals
###
app = flask.Flask(__name__)
import ... | [
"michal.young@gmail.com"
] | michal.young@gmail.com |
24f57a7e04375267f91a3c4ad24656b5ee311e60 | ae0feb6bf0c3851ea1fcb57476a4012cdd09f0c9 | /listMap.py | 2fa46e48fd3ee50e5766208659d71aa385432771 | [] | no_license | beyondzhou/algorithms | f79e4832c53c528d972475aba5ab48bd33feefbb | a0f30d9a8efb51af7f58ad75b8a9f1ebb084d99f | refs/heads/master | 2021-01-10T14:12:12.322067 | 2015-11-08T22:40:44 | 2015-11-08T22:40:44 | 44,276,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,372 | py | class MyMap:
# init
def __init__(self):
self._entryList = list()
# length
def __len__(self):
return len(self._entryList)
# Contain
def __contains__(self, key):
ndx = self._findPosition(key)
return ndx is not None
# Add
def add(self, key, value):
... | [
"guaguastd@gmail.com"
] | guaguastd@gmail.com |
ec02d70df62b2b0336e9a3155848509a1793fc6c | d31432d77d775bde32fe51e7584d68cfc465808a | /Tema_6_3_Patrones_organizacion_datos/jerarquico.py | e8eec174864fe48b3867697cc2ba65fad1b241e7 | [] | no_license | surtich/TFG_Manuel_R | ac8d4685afeb7180d8beb3169372a1e27e484eea | ec1fda88695dd95d1add70d4869ea1e6e623313e | refs/heads/main | 2023-07-02T06:45:19.506802 | 2021-08-03T16:55:32 | 2021-08-03T16:55:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,676 | py | #!/usr/bin/env python
#Usamos el archivo foros.csv
from mrjob.job import MRJob
from mrjob.protocol import RawValueProtocol
import xmlify
class jerarquico(MRJob):
OUTPUT_PROTOCOL = RawValueProtocol
def mapper(self,_, line):
linea=line.split(";")
mensaje=linea[4] # Recogemos ... | [
"mrodrigue212@alumno.uned.es"
] | mrodrigue212@alumno.uned.es |
6d346848a2eed9d5be67fdb017a17285227f874a | bd5a3b59a5ca9f0c0394c8bf90e818c3967778d9 | /vre/apps/xauth/urls.py | 2ba5dfc62bf27aafa163e3cf36365c4b0ea01be0 | [] | no_license | BlickLabs/vre | 85f377c04406c163464f7ddade7eafb579f1dfb1 | 6f3644fb9295f6355057cfa64a1156a329b4b4b8 | refs/heads/develop | 2020-05-22T04:28:31.913667 | 2018-07-06T21:12:14 | 2018-07-06T21:12:14 | 62,763,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.conf.urls import url
from . import views
urlpatterns = [
url(regex=r'^login/$',
view=views.LoginView.as_view(),
name='login'),
url(regex=r'^logout/$',
view=views.logout_view,
name='logout'),
]
| [
"mauriciodinki@gmail.com"
] | mauriciodinki@gmail.com |
4679f028fe213a090bbd604db9707043887751db | 8459dc3a3edebdd27b5589e9aa7215a55a42055b | /report/Lib/site-packages/wx/lib/mixins/listctrl.py | 95ac8fbe9a65036e7334cd84fbfa901f88e58e2e | [] | no_license | lyj21803/ReportsTest | adb5ef9c057d0bd0669ed9807eccc7edb77655d7 | 37df534d61f7d1f781dd91299ffa99fba4ba0e49 | refs/heads/master | 2022-12-02T08:59:27.587331 | 2020-07-24T07:29:50 | 2020-07-24T07:29:50 | 278,009,685 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,250 | py | #----------------------------------------------------------------------------
# Name: wx.lib.mixins.listctrl
# Purpose: Helpful mix-in classes for wxListCtrl
#
# Author: Robin Dunn
#
# Created: 15-May-2001
# Copyright: (c) 2001-2020 by Total Control Software
# Licence: wxWindows license
# Tags... | [
"lyj218@qq.com"
] | lyj218@qq.com |
3ea0abb3bd098265da02a905ab08ccb1c2b9a663 | aa8ca649dfe718398bc57ec00133e67df71ea407 | /cbz_notes/wsgi.py | 438f30169f7ec9e8bbed857bf5de8f73f7d5f0c9 | [] | no_license | habelash/cbz-notes | 516a148f030b99a33445a06b1933b518a81d3667 | d1f6ab75dde56f28fd421e4dcf77d69e7d491e54 | refs/heads/master | 2022-11-09T08:49:32.274230 | 2020-06-17T18:55:16 | 2020-06-17T18:55:16 | 271,054,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for cbz_notes project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"habelash@gmail.com"
] | habelash@gmail.com |
a79f0d2f37b1ef05ad04d86eb3a3f170aa616237 | 482ee9f8972bb01b0de68c921cddb27aa9470a8c | /raspi_server/servomot.py | f31c565c0db7dbe0c901a91e0bb113b35791e157 | [] | no_license | bhavika022/Multi-Terrain-Robot | 1a793ad5ac7f6f0ddd20cbca4b9a035efe2f8ed9 | d2aa39f4b471d126e928d4bc51bb88096f4c2cc3 | refs/heads/master | 2023-08-18T22:07:18.188112 | 2021-10-15T16:20:32 | 2021-10-15T16:20:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | import RPi.GPIO as GPIO
import time
def setup():
GPIO.setmode(GPIO.BOARD)
GPIO.setup(11, GPIO.OUT)
global p
p=GPIO.PWM(11, 50)
p.start(0)
p.ChangeDutyCycle(0)
def setangle_up():
global duty
duty=(90/18)+2
GPIO.output(11, True)
p.ChangeDutyCycle(duty)
time.sleep(0.5)
GPIO.outp... | [
"ameya.k.kale@gmail.com"
] | ameya.k.kale@gmail.com |
c9800b7561104d8aa6fcc841bb12aac744f3d879 | 4ee74237ad3230147674546223a0ff9644adf944 | /quickstart/migrations/0024_poresizedistribution.py | 8f479c54adbb664e1cb109894b3673f45dc70ec9 | [] | no_license | PMEAL/porespy-backend | d5641c8b1ae1930b5dd9185c43f74036d5e95f94 | bb76cae9e752a95e428ec417bf1524f90b110790 | refs/heads/master | 2023-03-31T05:35:48.043698 | 2021-04-11T01:21:34 | 2021-04-11T01:21:34 | 323,444,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | # Generated by Django 3.1.3 on 2021-03-16 20:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('quickstart', '0023_auto_20210314_2350'),
]
operations = [
migrations.CreateModel(
name='PoreSizeDistribution',
field... | [
"espitiaandres123@gmail.com"
] | espitiaandres123@gmail.com |
f3e768e706777c6ba9fb873bf9632cbe6fddb951 | ebb4fcf4b95e9143136f78aa3cba426829b1b2ff | /urls.py | be6411b662095da3d336edc4302660a233c3f043 | [] | no_license | brasky/scheduler | 26881e1056753d26f2deecbb5920d40f3642b628 | 4adbd99a629d4b9eab0d56fc8b8e5ef14b366354 | refs/heads/master | 2021-01-20T17:33:49.134819 | 2013-11-13T18:35:05 | 2013-11-13T18:35:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | from django.conf.urls import patterns, include, url
urlpatterns = patterns('',
url(r'^$','scheduler.views.home_view'),
url(r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'scheduler/login.html'}),
url(r'^accounts/logout/$','scheduler.views.logout_view'),
... | [
"redx47@gmail.com"
] | redx47@gmail.com |
ebb1c1e58b95234c46d4cd1a13b51cec064b0756 | 620a79597511cecd55cef6cdc9ac09062c1fe12b | /valid/valid/urls.py | 85db8c10cd4cafc533bdf30a4ba59925b253b97f | [] | no_license | ashfan6339/myfristproject | 6e4a0d76a3232022e94c8706342f97e9ae6c65ff | 535864d1179521144c2b518feddbbc9a43836f50 | refs/heads/master | 2021-04-20T22:29:03.952907 | 2020-05-21T10:51:57 | 2020-05-21T10:51:57 | 249,721,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | """valid 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 v... | [
"shaikashfan3@gmail.com"
] | shaikashfan3@gmail.com |
753b5b2ec561ad28d7410e49144c4be4fac47627 | 28f52b0e9c8f7fe15a008127f2a76c8854efaa7e | /pkgs/clean-pkg/src/genie/libs/clean/stages/nxos/aci/image_handler.py | 2c5fe6e13db35982ecd8d592e92175249ab32a43 | [
"Apache-2.0"
] | permissive | dthangap/genielibs | cb5098e675c51f2c2c46a929faf630cbad6aa7b3 | 778edb3b310bac960f507dae55e82ac027d8c6c8 | refs/heads/master | 2023-02-01T05:18:04.575913 | 2020-12-16T12:55:54 | 2020-12-16T12:55:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,399 | py | """ NXOS ACI: Image Handler Class """
import yaml
from genie.libs.clean.stages.image_handler import BaseImageHandler
from pyats.utils.schemaengine import Schema, ListOf, Optional
class ImageLoader(object):
EXPECTED_IMAGE_STRUCTURE_MSG = """\
Expected one of the following structures for 'images' in the clean y... | [
"tahigash@cisco.com"
] | tahigash@cisco.com |
c43501f1134f44d9e0c3c38a8ce719ea17e5bbcb | 3253da5603971958d69df0ed442e3341a8d3bff4 | /1-Iniciante/1914.py | 67fa34c039b20ad33bd528808a4ce2d4016000af | [] | no_license | CleitonSilvaT/URI_Python | 1c73ec0852ae87c6138baa148ad8c2cb56bb723e | a8510bab2fa8f680b54058fafebff3a2727617d9 | refs/heads/master | 2021-06-20T08:18:50.104839 | 2021-05-20T08:59:19 | 2021-05-20T08:59:19 | 213,665,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | # -*- coding: utf-8 -*-
if __name__ == '__main__':
# Entrada
casos_teste = int(input())
while(casos_teste > 0):
# Entrada
dados = input()
escolha = dados.split(' ')
# nomepessoa1 - escolha[0]
# escolhapessoa1 - escolha[1]
# nomepessoa2 - escolha[2]
#... | [
"cleitonsilvatavares@gmail.com"
] | cleitonsilvatavares@gmail.com |
b672c87e3458490ceb0e8b3852355a8c15a2c399 | d1fadc514274711a7986a6b3caaaee7e8d48b4a6 | /plot_scripts/scratch29.py | 9b454212d7485e7e1237f495490e6b1a3e2c0169 | [
"MIT"
] | permissive | lbaiao/sys-simulator-2 | 24d940db6423070818c23b6ffefbc5da4a1030a0 | 94f00d43309fe7b56dac5099bd4024695ba317b6 | refs/heads/master | 2021-08-20T08:30:06.864473 | 2021-06-30T10:37:26 | 2021-06-30T10:37:26 | 230,333,523 | 1 | 0 | null | 2021-06-30T10:37:27 | 2019-12-26T22:02:59 | Jupyter Notebook | UTF-8 | Python | false | false | 1,688 | py | import pickle
import matplotlib.pyplot as plt
import numpy as np
filepath = 'D:/Dev/sys-simulator-2/data/scratch29.pickle'
file = open(filepath, 'rb')
data = pickle.load(file)
aux_range = [10,15,20]
action_counts_total = data['action_counts_total']
d2d_spectral_effs = data['d2d_speffs_avg_total']
mue_success_rate = ... | [
"lucasbaiao@gmail.com"
] | lucasbaiao@gmail.com |
36cfad3cd196894fc61a19c79f88a05598a87dd2 | 207d7f6d16a19bc78e27881841d7088b3eabc3c2 | /day5/homework-ATM/modules/repay.py | ab498edd2effcf53edd276c143455289193ea672 | [] | no_license | pangguoping/python-study | b0c00f73177ec86148d06f780556a4340c45e1a8 | 769e828d41403b89d101c2ff915699bba91390cd | refs/heads/master | 2021-01-20T19:33:52.601637 | 2017-03-07T23:34:04 | 2017-03-07T23:34:04 | 63,377,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Auther: pangguoping
import json
import os
from conf import setting
from modules.write_log import write_record
#还款函数
def repay(card_num,**userinfo):
qiankuan = userinfo['credit'] - userinfo['balance']
print('现在还欠:',qiankuan)
fee = int(input("请输入还款金额:"))
if f... | [
"work2312@163.com"
] | work2312@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.