blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4a5273f54dbffa666386ee3a1d2fb5a84918f8cc | a7f09b003a27fe9b64ae725ac07c733b778826b7 | /extract_frames.py | 3c22114dde54daebbacb70da74a347c83dc9a83d | [] | no_license | whq-hqw/pytorch-openpose | 5e5da04f2ecb3aada7232757fcdfe231f950884b | 0ecfd7db36dd11229bf7a99d6a664748c1839939 | refs/heads/master | 2022-02-25T23:54:24.077871 | 2019-11-22T10:27:45 | 2019-11-22T10:27:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | import os, glob
root = os.path.expanduser("~/Pictures/dataset/reid/20191119_FaceAlignment/FA_4")
for i, video in enumerate(sorted(glob.glob(root + "/*_raw.mp4"))):
name = video[video.rfind("/")+1:-8]
angle = name[name.find("_")+1:name.rfind("_")]
output_dir = os.path.join(root, name)
output_dir = os.p... | [
"David910207"
] | David910207 |
a9175d2297efa30f84e70270e6666fba0acba21d | 1350c85a52373b8c04d4094015b7963b63c82f44 | /data/constants.py | 934d09337babc95e2db7ef48934286abe17dd922 | [] | no_license | dheeraj510/SideScroller | fc3a8a2f2ba37a30743b3d1c0a666e4d6248f540 | 75fed9cb7bce768164b9656160e3f61ae1f3cd01 | refs/heads/master | 2020-12-28T21:40:05.792152 | 2013-12-22T23:36:16 | 2013-12-22T23:36:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | __author__ = 'justinarmstrong'
## COLORS ##
# R G B
GRAY = (100, 100, 100)
NAVYBLUE = ( 60, 60, 100)
WHITE = (255, 255, 255)
RED = (255, 0, 0)
GREEN = ( 0, 255, 0)
FOREST_GREEN = ( 31, 162, 35)
BLUE = ( 0, 0, 255)
YELLOW = (255, 255, 0)
O... | [
"justinmeister@gmail.com"
] | justinmeister@gmail.com |
39e41c1c94836369b1512c5bcebb5ed0f9d84c42 | 7df9fa10b99a87d9827075a697000d880ea26e60 | /chapter06/CliffWalking.py | 7fffab63a0ef6e5b5a733933277afe3190d83590 | [] | no_license | jiankangren/RLAI | 6722fe0007e22b24cb6aa7654685aed21db646ee | 40023034647481465bef37c7bdd8e9c337f97140 | refs/heads/master | 2020-04-12T09:47:00.076640 | 2017-09-01T06:13:10 | 2017-09-01T06:13:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,631 | py | import numpy as np
import matplotlib.pyplot as plt
class Cliff:
def __init__(self):
self.ROWS = 4
self.COLS = 12
self.ACTIONS = list(range(4))
self.UP, self.DOWN, self.LEFT, self.RIGHT = self.ACTIONS
self.state_action_values = np.zeros((self.ROWS, self.COLS,len(self.ACTIONS)... | [
"zz028113@foxmail.com"
] | zz028113@foxmail.com |
9d215411759826f8db074847eb79e35ba1db6e34 | 346bfe67365db67c3ecaceded5b02f0f31947b17 | /datacamp_notlar/data_science/12-lambda/lambda_fonk_3.py | a16e7709eb0bfd990a0e5727e338878c4ee8ff24 | [] | no_license | serdarselcuk/pythonStudy | d9475459d86ec0c785f81a9d16195d2532aa903d | c542bd2cf646503eda0ae014ef5f06acbfa67894 | refs/heads/master | 2020-11-24T04:35:37.012257 | 2019-12-14T04:42:55 | 2019-12-14T04:42:55 | 227,967,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # Create a list of strings: fellowship
fellowship = ['frodo', 'samwise', 'merry', 'pippin', 'aragorn', 'boromir', 'legolas', 'gimli', 'gandalf']
# Use filter() to apply a lambda function over fellowship: result
result = filter(lambda a : len(a)>6, fellowship)
# Convert result to a list: result_list
result_list = list... | [
"serdarselcukus@outlook.com"
] | serdarselcukus@outlook.com |
f5ce1777ab374e84ce712bc76278c99bd4ad99e3 | c2d7472ad27d06e50071c1b9b6d9dc58173e88b8 | /vgg_linear_weight.py | d061cc6cae23b6fff4399000aac4861b43c4c8b9 | [] | no_license | jasonmhwu/vggfmri | 941bc6d8890598042fa8b7568886e60f0a216d45 | 240cb12892f3d02f47428ed31e4c1172523e7f20 | refs/heads/master | 2021-01-10T10:36:21.446134 | 2016-01-31T14:41:38 | 2016-01-31T14:41:38 | 50,778,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,163 | py | from __future__ import absolute_import
from __future__ import print_function
from joblib import Parallel, delayed
import multiprocessing
import numpy as np
import scipy.io, scipy.misc, h5py
import matplotlib.pyplot as plt
import time
import sys
import pdb
from sklearn.metrics import r2_score
from sklearn.linear_model i... | [
"b00901114@ntu.edu.tw"
] | b00901114@ntu.edu.tw |
e0d376cdb3b6cbbbbeea5b2ea6c2a81b88fbf34c | 422c9cc1c5ef7eba24610e66d6a74ec2e16bf39e | /install_isolated/lib/python2.7/dist-packages/turtle_actionlib/msg/_ShapeFeedback.py | 332cdc621b2cf527210a07a88ad56ccb86dca474 | [] | no_license | twighk/ROS-Pi3 | 222c735d3252d6fce43b427cdea3132f93025002 | 9f2912c44ae996040f143c1e77e6c714162fc7d2 | refs/heads/master | 2021-01-01T05:16:20.278770 | 2016-05-08T19:24:15 | 2016-05-08T19:24:15 | 58,306,257 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,927 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from turtle_actionlib/ShapeFeedback.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class ShapeFeedback(genpy.Message):
_md5sum = "d41d8cd98f00b204e9800998ecf8427e"
_... | [
"twighk@outlook.com"
] | twighk@outlook.com |
10103e3ce17a1843505618c2c3c6c0c49ea5b1c2 | 36163a05070a9cd0daab7c8b18b49053e0365bed | /src/python/WMCore/TaskQueue/TQComp/Apis/TQStateApi.py | cd257a2580c452ccf40cd98fd09fb388cf4f34cd | [] | no_license | sryufnal/WMCore | 472b465d1e9cff8af62b4f4a4587fd3927f82786 | 9575691bd7383e4de8bcdf83714ec71b3fec6aa7 | refs/heads/master | 2021-01-16T00:27:39.208561 | 2011-09-09T20:36:15 | 2011-09-09T20:36:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,529 | py | #!/usr/bin/env python
"""
API to query the TQ queue about its state.
It inherits the ability to connect to the TQ database
from TQComp.Apis.TQApi.
"""
__all__ = []
#import logging
import threading
import time
from inspect import stack
from TQComp.Apis.TQApi import TQApi
from TQComp.Apis.TQApiData import TASK_FIE... | [
"metson@4525493e-7705-40b1-a816-d608a930855b"
] | metson@4525493e-7705-40b1-a816-d608a930855b |
5b87719886d1cc633afcce54f5f1ef6866f61e4c | 08699fd7b96d48de7c3f70ce83dc2ea59ec20af7 | /atcoder/abc154/a.py | 05a9f0a095738adf20fd46e13e407be11ea966a2 | [] | no_license | KazutoYunoki/programing-contest | 0b89f92145a3e9ef09f6522cabe200259960a981 | b8123f8902a157678bd8fe860f0b1da9f2b1883d | refs/heads/master | 2022-11-05T01:25:35.900951 | 2020-06-22T10:01:57 | 2020-06-22T10:01:57 | 267,318,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | def main():
S, T = input().split()
A, B = map(int, input().split())
U = input()
if U == S:
A = A - 1
else:
B = B - 1
print(str(A) + " " + str(B))
if __name__ == "__main__":
main()
| [
"kazuto233@gmail.com"
] | kazuto233@gmail.com |
b76b50f294cf1d7560a3699d3704b41173c7ea8c | c956401119e44e41f3873b4734c857eda957e2cd | /metrics/lr_smape.py | 8a71c4a237fb069f751070fdc252cea4f1b598f7 | [] | no_license | zhekunz2/c4pp | 6f689bce42215507d749b8b2be96c7f68ed8c49c | 9f8054addb48d9440662d8c8f494359846423ffd | refs/heads/master | 2020-09-24T06:17:29.866975 | 2019-12-03T17:41:25 | 2019-12-03T17:41:25 | 225,678,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | #!/usr/bin/env python
import os
import json
import sys
import numpy as np
try:
smape_thres=float(sys.argv[1])
weight=float(sys.argv[2])
bias=float(sys.argv[3])
data_dir=sys.argv[4]
with open(os.path.join(data_dir, 'data.json')) as json_data:
d = json.load(json_data)
datas = [x for x... | [
"zhekunz2@Zhekuns-MacBook-Pro.local"
] | zhekunz2@Zhekuns-MacBook-Pro.local |
d98857b2ec97d9148a5e4870aa8a824545078607 | 645d1e9b73f382da28e2d0f6494b05fa5e278bf2 | /answers/getMaximumGenerated.py | 939c379a84cdbd6f00305c2466296c25f7b3d8ef | [] | no_license | xxbeam/leetcode-python | 63efcba4f0fc1c09ceebca725778dacd9dfd27fd | 5f1282abb64651c4b67ce0b262456920827fe7dc | refs/heads/master | 2023-07-17T23:33:08.783011 | 2021-09-10T01:47:46 | 2021-09-10T01:47:46 | 345,580,038 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | # 1646. 获取生成数组中的最大值
class Solution:
def getMaximumGenerated(self, n: int) -> int:
if n < 2:
return n
arr = [0] * (n+1)
arr[1] = 1
res = 1
for i in range(2, n+1):
arr[i] = arr[i // 2] + i % 2 * arr[i // 2 + 1]
res = max(res, arr[i])
... | [
"xiongxin@songxiaocai.com"
] | xiongxin@songxiaocai.com |
59620cdbfa9167aeb555cca708e1f7ede5412081 | 7d31324f874130bc5059314048193f474f2a820a | /gui.py | 6a41ea6e86f10145d7f19d02e451b0a0f571e17f | [] | no_license | deshudiosh/PyTSF | 2ae13c9724b6e290016aad6329db5c175bd319fa | 6c3a8b6b35a4fc602f10aa10aff72d9bc887ccdb | refs/heads/master | 2021-01-20T01:36:11.138441 | 2017-10-27T18:57:31 | 2017-10-27T18:57:31 | 89,306,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | import remi.gui as gui
from remi import start, App
class PyTsfGui(App):
def __init__(self, *args):
super(PyTsfGui, self).__init__(*args)
def main(self):
# margin 0px auto allows to center the app to the screen
container = gui.VBox(width=400, margin='0px auto')
container.style[... | [
"deshudiosh@gmail.com"
] | deshudiosh@gmail.com |
7cb57f1aee5711236c63768e429265d71ba59e80 | 21b461b71b4c63f7aac341bd12ba35d211c7956e | /codes/03_func/Graph_Permutation_isomorphic/01_test_permutation.py | 587c4d9c282ed70920f61d81d9c4546575e05260 | [] | no_license | Ziaeemehr/workshop_scripting | cebdcb552720f31fd6524fd43f257ca46baf70e2 | ed5f232f6737bc9f750d704455442f239d4f0561 | refs/heads/main | 2023-08-22T23:00:36.121267 | 2023-07-19T10:53:41 | 2023-07-19T10:53:41 | 153,342,386 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | """
A_G = P A_H P.T
P is permutation matrix
P.T is the transpose matrix of T
"""
import numpy as np
import networkx as nx
def permutation(alpha, n):
P = np.zeros((n, n), dtype=int)
for i in range(n):
P[i][alpha[i]] = 1
return P
A_G = np.array([[0, 1, 0, 0, 0],
[1, 0, 1, 0, 1],... | [
"a.ziaeemehr@gmail.com"
] | a.ziaeemehr@gmail.com |
dac1bc57d4810d79ba595198ba0bcc92da8f3a2c | 73ccb07f34d726e21e327c6becebca7c6e89f0d4 | /Papeleria/migrations/0002_auto_20200321_1401.py | 3aa961fd8a1cacfe79565c1880d8ed67da714195 | [] | no_license | EDG-161/Reingenieria | 131d1120737ab34a119727ce3b3480001d04d4b0 | e901423933c4ec6569d085a3f25ba47fe996780d | refs/heads/master | 2022-04-09T09:29:14.198663 | 2020-03-22T21:07:58 | 2020-03-22T21:07:58 | 249,272,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,035 | py | # Generated by Django 2.2.11 on 2020-03-21 20:01
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Papeleria', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"44904881+EDG-161@users.noreply.github.com"
] | 44904881+EDG-161@users.noreply.github.com |
daf6a1ca247b7dacf4de32f1aa734b0757030a73 | 391e1c8b435a644d874c100c3d17208cadf01201 | /第四章/4.5 tup_op.py | 92f5740052e5a73ff3be1c33ce4d2c387210b672 | [] | no_license | yonima/python-source-code-of-my-book | 415293510983dc80bd5bc1bb4607d633f9bf0d57 | cc6f47ea1d978b0fdc1411fe0f7d2151bd21e278 | refs/heads/master | 2023-06-08T21:49:40.019437 | 2021-06-11T16:20:11 | 2021-06-11T16:20:11 | 264,702,284 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,642 | py | # -*- coding: utf-8 -*-
"""
元组知识点:
什么是元组?
如何修改元组的值?两个方法
元组内置方法
"""
'''
什么是元组?创建元组的几种方法
'''
# 1、直接使用,
tup1 = 1, 2, 3
print('直接使用, : ',tup1)
print(type(tup1))
# list -- 列表 str ---字符串 tuple -- 元组
# 2、使用()
tup2 = (1, 2, 3)
print('\n使用() : ',tup2)
print(type(tup2))
# 3、创建一个元素的元组
print()
tup3 = ( 1 )
print(type(tu... | [
"noreply@github.com"
] | noreply@github.com |
7a144841bd9fe8ec5e8663356c33fac86b2dbf31 | acb082b215e6d214a5065f76c0454dcf1fb2a533 | /src/cobra/core/auth/access.py | e3881977e6cf7cd7420cdef66f2da916e6890e6d | [
"Apache-2.0"
] | permissive | lyoniionly/django-cobra | 130b25cd897cc94b6a8da722e9a83ecea3b00c49 | 2427e5cf74b7739115b1224da3306986b3ee345c | refs/heads/master | 2016-09-06T10:23:10.607025 | 2016-02-22T14:16:49 | 2016-02-22T14:16:49 | 29,646,851 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,147 | py | from __future__ import absolute_import
from cobra.core.loading import get_model
__all__ = ['from_user', 'from_member', 'DEFAULT', 'SCOPES']
OrganizationMember = get_model('organization', 'OrganizationMember')
SCOPES = set([
'org:read',
'org:write',
'org:delete',
'team:read',
'team:write',
'... | [
"beihua_445566@126.com"
] | beihua_445566@126.com |
5aee6e6f87e775f43cd82d35f722044872f50e4e | 39624de1d364ea40b822f2cb1d4523b94a60c955 | /.config/i3/i3blocks/routerstats | a256352496771d39b02b7d4e1f6b1b7fcb730576 | [] | no_license | tobe/dotfiles | 80f3e21927389d0494d25fbd5c2c1813956377a2 | 9098023c7f6e2503d3d8aa2f1b61e51d08769a34 | refs/heads/master | 2023-02-03T17:33:24.508373 | 2017-03-19T09:17:25 | 2017-03-19T09:17:25 | 14,859,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,626 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from bs4 import BeautifulSoup
import requests
from requests.auth import HTTPBasicAuth
import re
import os
def main():
response = requests.get('http://192.168.0.1/RgConnect.asp', auth=HTTPBasicAuth('', 'admin'))
#downstrema snr: <td align="right">\s?(\d{1,2}\.\d) d... | [
"infy@cybershade.org"
] | infy@cybershade.org | |
e71176efe4e48cceb75a998e731085601334d44e | 2742f4f0188ad468af6e3c6fb0dcd2f46ad27608 | /scripts/a_get_pics_from_web_page.py | 6e10758312772848996fc69fb15d8d006dc71c2d | [
"MIT"
] | permissive | zhaoxingrong/nsfw_data_scrapper | 49bf3696afb92628968ecb9547e21a21eb5473e7 | d7326f237444ef5b12916d01375529f81a64a98f | refs/heads/master | 2020-07-08T17:49:22.479162 | 2019-05-16T04:06:00 | 2019-05-16T04:06:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,568 | py | import os
import urllib.request
import socket
import json
from urllib.error import URLError, HTTPError
import hashlib
import requests
from concurrent.futures import ThreadPoolExecutor
import threading
class GetPicsFromWebPage(object):
def printE(self, s):
print('\033[31m ' + s + ' \033[0m')
def print... | [
"960889@qq.com"
] | 960889@qq.com |
ec6dd090d2a23eccbcf07fbb431474eb9e1690c0 | 52cb4eb1e3ae28362fdc4c6b072a25e9b03d797e | /bennuportal/settings.py | dfd879f57342c91dbaea6103351779c38d499d29 | [] | no_license | sergiofbsilva/py-bennu-portal | e0769934f52d484b874125b8b8e8cbed48f192b8 | b6fe1a11643a8bbd9ed4eb8ceb16644cd00c2df7 | refs/heads/master | 2020-05-30T06:05:15.950876 | 2013-02-22T18:02:40 | 2013-02-22T18:02:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,760 | py | # Django settings for bennuportal project.
import os
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
HOST = "http://ashtray.ist.utl.pt:8001"
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
AUTO_CATALOG = True
MANAGERS = ADMINS
DATABASES = {
'default'... | [
"sergiofbsilva@gmail.com"
] | sergiofbsilva@gmail.com |
81e8a2a4d09fad8fccf00c9a480b25872312cc7f | 231968d8a96a6961361f2b49291d261104bf7f90 | /gateways/message_gateway.py | 25557cb5f900600c3ac45dfc6ea1e1c6910a3373 | [] | no_license | YDrall/tame-of-thrones | 93ba5edb3ef3834f0093330b58f5318e5d78958f | 8f413e44f79e9a1d4289299fa9dfcb8442aa7ab9 | refs/heads/master | 2020-03-27T21:10:23.747132 | 2018-09-03T13:04:42 | 2018-09-03T13:04:42 | 147,120,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | from decoders.secret_decoder import decode_secret
class MessagesGateway:
def __init__(self, ruler_gateway):
self.ruler_gateway = ruler_gateway
def send_message(self, from_kingdom, to_kingdom, message):
# print("sending message..{} {} {}".format(
# from_kingdom, to_kingdom, messag... | [
"yogeshdrall7874@gmail.com"
] | yogeshdrall7874@gmail.com |
35b4164f4d7e6cfd0543275dde4177828faa3596 | 5f97322d583c5bdb4c8cb36e0c7686bdc4f63a81 | /articles/models.py | 15e70a6fe0add0af269e80b68bfc41c8c763275e | [] | no_license | thakurt/community_blog | 89f2d91720affc2a2f8556746c266fa7eea1b53f | 47101985051ee402967610082bfcfd466268c69a | refs/heads/master | 2022-11-15T12:48:10.885619 | 2020-06-30T19:00:26 | 2020-06-30T19:00:26 | 276,184,249 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py |
from django.db import models
from django.conf import settings
from django.db import models
from django.urls import reverse
from django.contrib.auth import get_user_model
from ckeditor.fields import RichTextField
from ckeditor_uploader.fields import RichTextUploadingField
# Create your models here.
class Article(mod... | [
"thakursandip321@gmail.com"
] | thakursandip321@gmail.com |
258e3bc17596939fef5f5019ea6b0ffe123d50ca | a512b8893b0d2de827d6292e810f3a98b41e132c | /Week3/Day4/Solutions/Python/prog4.py | d6cc6209f9f236ad8243f6ba1b9ee1e54bfd07d1 | [] | no_license | Audarya07/Daily-Flash-Codes | d771079fd0d470e2d3e05679f17f32fb64b4f426 | cf96ca2b1676b038e243fac67be778381492ffeb | refs/heads/master | 2022-11-06T15:37:47.180729 | 2020-06-25T16:20:55 | 2020-06-25T16:20:55 | 274,960,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | x = 7
for i in range(4):
for j in range(i+1):
print(x,end=" ")
x-=1
x+=1
print()
| [
"audiuttarwar2000@gmail.com"
] | audiuttarwar2000@gmail.com |
2bc3743b880efe5c8a8739a55179572019820af5 | c31e46965ea47cdb0c61a6b525aecea45dbf4d0b | /gram/views.py | b442f39e96c2ad10dff14a8042bb03981ca1e2de | [] | no_license | marysinaida/-Instagram | 687563c7b9a44adcdd09217ed02ff5c2c24623d2 | cb0768ad24b7650db6b7fbfd9d445232b154cece | refs/heads/master | 2022-12-06T07:02:55.786066 | 2020-01-08T06:57:47 | 2020-01-08T06:57:47 | 228,771,439 | 0 | 0 | null | 2022-11-22T05:13:53 | 2019-12-18T06:16:03 | Python | UTF-8 | Python | false | false | 2,960 | py | from django.shortcuts import render,get_object_or_404
from django.utils import timezone
from .forms import PostForm
from .models import Post,Profile
from django.contrib.auth.models import User
from django.views.generic import (ListView,CreateView,DetailView)
from django.http import HttpResponse
from django.contrib.aut... | [
"marydorcassinaida54@gmail.com"
] | marydorcassinaida54@gmail.com |
9000f0815483d59ab0f65ccab6aaf9894d974134 | 4321dd552ed03f7e03fef9e94433484ec33bf624 | /problems/fromboj/test_example/happy.py | 1898af933b7d2a666aa19aa979ad82ecc8134991 | [] | no_license | HyunSeokJeon/coding_plus_algorithm | aa89c0375e1d4af205296fb8dcc337f856942301 | 1b2a5c96839e251d53cc49bf3fb746754cdb2e5f | refs/heads/main | 2023-04-11T17:02:41.862078 | 2021-05-19T04:49:57 | 2021-05-19T04:49:57 | 347,835,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | #행복
a = int(input())
b = list(map(int,input().split()))
mx = max(b)
mn = min(b)
print(mx-mn)
| [
"sjunhs@gmail.com"
] | sjunhs@gmail.com |
967dbf7399fdf25fbf3bb6a1521a55565983b079 | b6e065c0f53e4d2a8ef8f66fd67012b111b35444 | /backend/src/errors/messages.py | fe30025293c194150614dc40710ed2e9eff65cdc | [] | no_license | MohammedMadbouliWorkspace/CoffeeShop | db03a56d1f603d4913d8ed97ca0e2d31b3231478 | fc4749a863d8714a35b65e4492f694336f5c69f6 | refs/heads/master | 2022-12-17T05:02:55.729453 | 2020-08-13T01:08:36 | 2020-08-13T01:08:36 | 295,195,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,801 | py | from . import ErrorTemplate
# Default error template
e = ErrorTemplate(
{
"message": "%s"
}
)
# Default error descriptions for common HTTP errors
DEF_UNPROCESSABLE = e.g("The operation has failed.")
DEF_BAD_REQUEST = e.g("The request is malformed or needs some modifications.")
DEF_NOT_FOUND = e.g("The... | [
"mohammedessammadbouli@gmail.com"
] | mohammedessammadbouli@gmail.com |
7036e36ad6e119dac97c2175715c6b24857595cf | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AnttechOceanbaseVerificationcodeVerifyResponse.py | 2808330b22ff50c4c507563278735baa72cdba13 | [
"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 | 479 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AnttechOceanbaseVerificationcodeVerifyResponse(AlipayResponse):
def __init__(self):
super(AnttechOceanbaseVerificationcodeVerifyResponse, self).__init__()
def parse_res... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
ff9833f97a0e42a03c7067b3ac08557c42a41fc9 | f49651826f50dea433ec22a20c9ef1e99b1c4033 | /voronoi/contrib/__init__.py | 662c39c0a3cf0e53e8b1db92351ea8e6c35c24ee | [
"MIT"
] | permissive | tangchaous/voronoi | 1b307380ec481876b639a56c26a54a23d2b5d724 | b048606341ec8d614fb123573a5e02eabbd2fe83 | refs/heads/master | 2023-03-31T10:35:30.770615 | 2021-03-24T23:34:04 | 2021-03-24T23:34:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | from voronoi.contrib.bounding_circle import BoundingCircle
| [
"jmapvhoof@gmail.com"
] | jmapvhoof@gmail.com |
fea358efc88c867326638a81257ad34f96377419 | 888f87b1455d34ef5687c97f72c0f57eab7a5be7 | /03-operations/aritmethics.py | 6c08a1c910768caa83a6fec0d69d926d92be85a9 | [] | no_license | josue0ghost/Python-Exercises | dd4fff287341af55fac4b9e0f453cd9628099625 | 11037ecbc77b4f516ed1ffa8be89621d2f630c22 | refs/heads/main | 2023-07-02T19:11:25.918071 | 2021-08-10T08:31:53 | 2021-08-10T08:31:53 | 356,730,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | number1 = 77
number2 = 52
rest = number1 - number2
sum = number1 + number2
div = number1 / number2
mult = number1 * number2
mod = number1 % number2
| [
"josue0ghost@gmail.com"
] | josue0ghost@gmail.com |
f34819ba60137180278163a868fa2703cdb65fc8 | 198e29c34635ef5324980ffc442c13885b418bf1 | /maryam.py | 1be2c0bb45fe1fccd39e3f6d6529ed734bd1014a | [] | no_license | Maryam27953/Maryam | 88ee92727ae824a6c5e24f82e5fdb06ed9454cef | 7b7421692b71fb0ea32fcaaef7a05cdad35c7895 | refs/heads/main | 2023-04-15T15:58:05.212623 | 2021-04-19T20:18:05 | 2021-04-19T20:18:05 | 359,584,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,346 | py | #!/usr/bin/python2
#coding=utf-8
import os,sys,time,datetime,random,hashlib,re,threading,json,getpass,urllib,cookielib
from multiprocessing.pool import ThreadPool
try:
import requests
except ImportError:
os.system('pip2 install requests')
try:
import mechanize
except ImportError:
os.system('pip2 instal... | [
"noreply@github.com"
] | noreply@github.com |
2efd8dc6381a4197c5c0ddbf947f7ba409bb868f | 53d2c5c3d5610d5693ab2abd4e59c53e7e77bd15 | /Deck.py | 64553314f92a3a439cef666cb723db44611d5011 | [] | no_license | lukasmvv/Cards | d4032d9a4ce4540c159e42bf0095f18f843511af | 85424e49274a0e4284226ed3c698199c17706b9d | refs/heads/master | 2020-04-20T21:44:53.464225 | 2019-02-04T17:28:25 | 2019-02-04T17:28:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,536 | py | from random import randint
from Card import Card
class Deck():
"""Class for a deck of cards"""
def __init__(self, jokers=False):
self.jokers = jokers
self.deck = self.create_deck()
def create_deck(self):
"""Creates a deck of 52 (or 54) Cards"""
deck = []
# Sui... | [
"8628878+lukasmvv@users.noreply.github.com"
] | 8628878+lukasmvv@users.noreply.github.com |
961c13a89b0b65dd59f3daff5f4332855fa9ee93 | ba3dd49a03969825058f838130c829d0b4a38a1e | /ground_station/iterative_graphing.py | 33f73a6056e0655d695fc0c2b82f15284d47a7da | [] | no_license | NUSTARS/2019-FDN | 9f25ca36e2064826cf54b36fd55ac12197112970 | 900e8c14782c641147d55f401314737c12e345ea | refs/heads/master | 2020-09-07T20:29:18.054090 | 2019-06-08T23:35:24 | 2019-06-08T23:35:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | import matplotlib.pyplot as plt
A = []
I = []
plt.ion()
fig = plt.figure()
ax = fig.add_subplot(111)
for i in range(10):
I.append(i)
A.append(i**2);
print(I)
print(A)
ax.plot(I, A)
fig.canvas.draw()
| [
"j.p.kuz41.3x@gmail.com"
] | j.p.kuz41.3x@gmail.com |
37b28ffd0fe2ae2dbbfdb7fa03f0c4e2a147f4f4 | fc9e52fef1b2aae99228057f17bf3c9905339349 | /Ch05/EXTRAS/plotSDerror.py | 9eb85a09f014e72cde88577b680eccb776e06971 | [] | no_license | apollos/ML_practice | 0e5f349c31c0653049836eab4186e4a03d109c11 | 411e7acdfc619e3081c5319d1e851bedd771934d | refs/heads/master | 2021-01-10T13:52:44.390855 | 2017-05-04T14:59:32 | 2017-05-04T14:59:32 | 52,074,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,916 | py | '''
Created on Oct 6, 2015
@author: Song Yu
'''
from numpy import *
import matplotlib
import matplotlib.pyplot as plt
from matplotlib.patches import Rectangle
import logRegres
def stocGradAscent0(dataMatrix, classLabels):
m,n = shape(dataMatrix)
alpha = 0.5
weights = ones(n) #initialize to... | [
"apollos521@gmail.com"
] | apollos521@gmail.com |
36da4a1a8ee737c91a2e4cfd313a97f8c36a836a | 56482e0b2ce6517fff41d0f78e0c0ed000d977a1 | /fmcapi/api_objects/helper_functions.py | 73723b685d3181277032d2a1b3b56c4c54e1fb90 | [
"BSD-3-Clause"
] | permissive | banzigaga/fmcapi | ab4d7aaaf4be4f2b0686d07b6272f8b9531577da | fd924de96e200ca8e0d5088b27a5abaf6f915bc6 | refs/heads/master | 2020-12-11T14:45:07.896571 | 2019-12-12T20:02:07 | 2019-12-12T20:02:07 | 233,876,405 | 1 | 0 | BSD-3-Clause | 2020-01-14T15:46:26 | 2020-01-14T15:46:26 | null | UTF-8 | Python | false | false | 4,316 | py | """Misc methods/functions that are used by the fmcapi package's modules."""
import re
import ipaddress
import json
import logging
logging.debug(f"In the {__name__} module.")
def syntax_correcter(value, permitted_syntax="""[.\w\d_\-]""", replacer="_"):
"""
Check 'value' for invalid characters (identified by ... | [
"dmickels@cisco.com"
] | dmickels@cisco.com |
8aed0943ec1f00bc442e4506e154da3125d3d313 | 78d3ae00b3984148aadab28620ba8e2911cb1b56 | /pta_practice/PTA1040.py | 48428ac57fdb8c57bd0d0ab898f46377e2ff4570 | [] | no_license | dongyingdepingguo/PTA | 8d338a32026b211e9fe9eca72f01a073d876c410 | 7fa3e01e06de85a7f41c190a4cad23c4145ccb17 | refs/heads/master | 2020-05-26T19:05:14.052356 | 2019-05-24T03:01:22 | 2019-05-24T03:01:22 | 188,343,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | # !/usr/bin/env python
# _*_ coding: utf-8 _*_
"""
1040 有几个PAT (25 分)
字符串 APPAPT 中包含了两个单词 PAT,其中第一个 PAT 是第 2 位(P),第 4 位(A),第 6 位(T);
第二个 PAT 是第 3 位(P),第 4 位(A),第 6 位(T)。
现给定字符串,问一共可以形成多少个 PAT?
输入格式:
输入只有一行,包含一个字符串,长度不超过10**5,只包含 P、A、T 三种字母。
输出格式:
在一行中输出给定字符串中包含多少个 PAT。由于结果可能比较大,只输出对 1000000007 取余数的结果。
输入样例:
APPA... | [
"2867432325@qq.com"
] | 2867432325@qq.com |
f5c468beecaa5a2685e310d47134afa02ab63714 | 386d5d4f8f102e701d02b326cd066f520e3dff9f | /ProjectApplication/project_core/migrations/0166_organisation_long_name_english.py | 3e520cccaf379fa51b06988bbdeee96f5063231b | [
"MIT"
] | permissive | Swiss-Polar-Institute/project-application | ae2561c3ae2c1d5412d165d959ce2e5886135e0a | 7dc4a9f7e0f8d28c89977b85f99bc5e35ea77d43 | refs/heads/master | 2023-08-31T04:01:23.492272 | 2023-08-25T14:33:02 | 2023-08-25T14:33:02 | 206,330,401 | 7 | 5 | MIT | 2023-09-13T08:03:53 | 2019-09-04T13:49:39 | Python | UTF-8 | Python | false | false | 496 | py | # Generated by Django 3.2.3 on 2021-05-24 14:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('project_core', '0165_callcareerstage_enabled'),
]
operations = [
migrations.AddField(
model_name='organisation',
nam... | [
"jenny_t152@yahoo.co.uk"
] | jenny_t152@yahoo.co.uk |
dce5d7772db36545a54c2cbf2b1473b26d38fe19 | 688dfc9966e067cc0929fdd202c1123490aad219 | /volunnet/migrations/0005_delete_activity.py | e5b61fa6cb260413b2368a6bf3a6e3e396170c10 | [] | no_license | ISQA-Classes/3900-001projectT4 | 82aea87ceffec7388ccf5229da3a15c6151811ad | 01401e8c4c1bfb6a9d5e741f9d758819e8473db4 | refs/heads/master | 2020-04-17T15:43:23.151491 | 2019-04-25T04:31:52 | 2019-04-25T04:31:52 | 166,710,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | # Generated by Django 2.0.5 on 2019-03-10 19:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('volunnet', '0004_auto_20190228_1316'),
]
operations = [
migrations.DeleteModel(
name='Activity',
),
]
| [
"blai@unomaha.edu"
] | blai@unomaha.edu |
2ed6dd687a11c09ff280d525f79c7ec671dff99a | 40508271be5452e559b4218af0ef1c09ec78448b | /Wrangling/web_scrapers/sclabs/downloader/downloader/spiders/downloader.py | b7462f652f790cc80d5e6546ec2bd9a014f4503c | [
"MIT"
] | permissive | Build-Week-MedCabinet/DS_Model_Engineering | 728275cb6d519c5e99f4009d5087cffa035b8ebf | 98f3f9f8e947b69bbaf5ee16a2c6047fb0b5259c | refs/heads/master | 2020-08-21T07:47:55.395660 | 2019-10-25T00:51:47 | 2019-10-25T00:51:47 | 216,112,929 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,678 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import scrapy, os, urllib.parse, re, datetime, scrapy.spidermiddlewares.httperror, db, scrapy_splash
# 'png': 1,
# 'width': 600,
# 'render_all': 1,
# 'http_method': 'GET'
MAX_NO_CONSECUTIVE_TERPENES = 100
SAVE_FOLDER = '../database_dump'
DATABASE_PATH = '../../.... | [
"vincenta..brandon@gmail.com"
] | vincenta..brandon@gmail.com |
ca482b4f1f57cfad75b936c220d8d2f4d27aa7ae | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/2/f6a.py | b76a37dd4ff530a849fa7cefd2685a4fec605875 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
a05737051e2ebced20325a07ab1ecffbdeff7d92 | b5407596bb666bee88dd559b1c8c49302e8d1598 | /conv-mmdgm/cmmva_mnist_imputation.py | 55df5a32a1c2dd42337eab8aa46945df652e0fe5 | [
"MIT"
] | permissive | zdltheone/mmdgm | 2739ccab5618b98d2cd9f93b7ee497893cb27634 | 9422bdc88b913c09506944d3529f6f955b95687c | refs/heads/master | 2021-01-12T22:18:55.729836 | 2015-09-29T05:08:46 | 2015-09-29T05:08:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,330 | py | """
SVM
"""
import cPickle
import gzip
import os
import sys
import time
import numpy as np
import theano
import theano.tensor as T
import util.datapy as datapy
from layer import Pegasos
from optimization import optimizer
def svm_cva(dir, predir, start=0, end=500, learning_rate=3e-4, n_epochs=10000,
... | [
"610841656@qq.com"
] | 610841656@qq.com |
5c21442b3f2abb77d1088ab94d4ce71087f663d5 | a2155f125865aa056e399bc1a5bd2017ad176857 | /peleenet.py | ca39badeb6696edbdb5e962a5c92a1dd78cec5f5 | [] | no_license | williu66/pytorch_pelee | 9b080753e9e779ad3863ecd5540f5fd0a32e1877 | 6a95f8a2d6dc6ec154a6ade7b807e31460cec403 | refs/heads/master | 2021-03-18T23:30:34.583063 | 2019-02-21T09:17:47 | 2019-02-21T09:17:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,914 | py | import torch
import torch.nn as nn
import math
import torch.nn.functional as F
class Conv_bn_relu(nn.Module):
def __init__(self, inp, oup, kernel_size=3, stride=1, pad=1, use_relu=True):
super(Conv_bn_relu, self).__init__()
self.use_relu = use_relu
if self.use_relu:
self.convs ... | [
"wangxianruii@163.com"
] | wangxianruii@163.com |
ab7a1d2a35d4e1be32f293d6e0a140043592d1f5 | 2235e7d1db6b05cc68bf9dffb44e74d60333bf67 | /wbot/core/wrapper.py | c25667bac818c35e9ae92d8f9fffd889a4065ea1 | [] | no_license | AZLisme/wbot | 37acbce5639c5f369bba520e5ce06b9ce5e1cb96 | f110bf0b64c82b56fa96a4f88934f32d205d5012 | refs/heads/master | 2021-01-22T19:54:24.118171 | 2017-07-17T15:38:30 | 2017-07-17T15:38:30 | 85,257,575 | 0 | 0 | null | 2017-03-17T01:26:40 | 2017-03-17T01:26:40 | null | UTF-8 | Python | false | false | 12,557 | py | # -*- encoding: utf-8 -*-
import itchat
from wbot.core.base import BaseBot
from wbot.core.types import MessageType, SenderType
class ItChatWrapper(object):
"""对Itchat的调用装饰器接口做一层封装,转发到Bot的消息路由中, 并封装其他的静态API"""
bot = None
def __init__(self, bot: BaseBot):
self.bot = bot
def _handle_group(self... | [
"helloazl@icloud.com"
] | helloazl@icloud.com |
a3995c39e5511f2ea1e2b8750fc13294033b39ed | e9b8d5e60f97ca7bf0eb19ed5358485cd3293ce3 | /main.py | 7452dde2d8f6c3dd086b33526489bd31cd0676d1 | [] | no_license | Basil-Slinko/Web-scrapping | 6286373616337c4a443ad15fe16a01f38261dd23 | e8d2fbc4617ea32acaea95b3937b05f2e874b2f3 | refs/heads/main | 2023-08-14T08:17:03.050424 | 2021-09-26T09:08:05 | 2021-09-26T09:08:05 | 408,118,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,755 | py | import requests
from bs4 import BeautifulSoup
def find_articles(key_words):
request = requests.get('https://habr.com/ru/all/')
soup = BeautifulSoup(request.text, 'html.parser')
posts = soup.find_all('article', class_='tm-articles-list__item')
for post in posts:
post_text = post.find... | [
"noreply@github.com"
] | noreply@github.com |
24b9004fd99ae7afe75efd49893c8630f7c5abaf | ae178b259cc8987621289cb8b7a07ac4d664ee31 | /cbdLocks/asgi.py | 3907c3af0d007a2fffc413a507b4a93fc6b8267e | [] | no_license | tak291/CbdApp | 5c9d3179edf3370c214a56416e582ad3901de0e7 | 3690cc46c5433828dc3504e0d176b77ad9c95956 | refs/heads/main | 2023-02-16T18:22:18.657275 | 2021-01-16T14:49:04 | 2021-01-16T14:49:04 | 329,508,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for cbdLocks 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.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"joseporras291@gmail.com"
] | joseporras291@gmail.com |
72482b5773be813af111f57f6c3a157c6eb7624c | 90c43c1425554723087a4e80cedaaba8ec74306d | /separated-by-dash.py | c332567a526f0fddeba39e488a9929babceed2bd | [] | no_license | otonielandrade7/a-python-newbie-things | 2fd119d6b1e16c696bbd74fd5448faf61adb1a76 | 7c09f3602a50292982f1fe7ad8dc56610b7349ac | refs/heads/master | 2023-03-04T09:00:11.914323 | 2021-02-15T02:21:11 | 2021-02-15T02:21:11 | 338,919,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | text = input("Introduce your text here\n")
responseText=""
for letter in text:
if letter == " ":
responseText+="-"
else:
responseText+=letter
print(responseText)
| [
"otonielandrade7@gmail.com"
] | otonielandrade7@gmail.com |
4e7584632881221a2e30656ddd76d8d492a7f895 | 8b4aa6911d8860aff4f9996ec4dd3e0d33e0c184 | /pyminer/midstate.py | b6a4cc7faa529ec2c77d613827439a8ac76eddfb | [
"Unlicense"
] | permissive | Johnson-Fan/Avalon-nano | 2145e5323f155038718d90d51694bb2e99a4460f | cf8875d11fcdcc408922201b958a6a79625e909b | refs/heads/master | 2021-01-22T00:37:08.023803 | 2016-09-01T07:50:54 | 2016-09-01T07:50:54 | 46,549,365 | 1 | 0 | null | 2015-11-20T08:27:38 | 2015-11-20T08:27:38 | null | UTF-8 | Python | false | false | 3,949 | py | # Copyright (C) 2011 by jedi95 <jedi95@gmail.com> and
# CFSworks <CFSworks@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including wi... | [
"Fengling.Qin@gmail.com"
] | Fengling.Qin@gmail.com |
88062e32f1608c3e37cb8a9f464df0f6ef886d0f | dbd43f3f19bdc812806a6b28c6b887294748057b | /S12/data/transformations.py | 2e7998598779aa5890d769738a4f628ccba650de | [] | no_license | namanphy/EVA5 | 8a85bdb26d3441c5f992736f4f95de9ea2d6825a | 5f778d9bdcc08f1f27afbae2f14659692890169d | refs/heads/main | 2023-05-07T21:15:42.392625 | 2021-05-29T07:21:25 | 2021-05-29T07:21:25 | 311,646,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,170 | py | import numpy as np
import albumentations as A
from albumentations.pytorch.transforms import ToTensorV2
class Transformations:
"""
Albumentations transformations class.
"""
def __init__(self, train=False, mean=(0.5, 0.5, 0.5), std=(0.5, 0.5, 0.5), padding=(0, 0), crop=(0, 0),
rotation... | [
"namanphy@gmail.com"
] | namanphy@gmail.com |
6da51161e259f992424199eee2b63e1c012c4353 | dc0dbab2053e84f22a6dc138620420d819d4807f | /main.py | 5617268b63a4e644f1bebcc0249a9ff566844f0b | [] | no_license | multicam/tgds-python-client | b51d03160d2fa6e192f7a85a4201b7c3796756eb | a1e1f17f338aee203ba8fd5d2a8bb90ef5b67209 | refs/heads/master | 2023-07-03T06:42:56.154564 | 2021-08-09T05:41:24 | 2021-08-09T05:41:24 | 389,432,108 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | from scrape_training_gov import scrape_cuv_40720
# from google_news import run_google_news
if __name__ == '__main__':
scrape_cuv_40720()
# run_google_news()
| [
"jmgiorgi@gmail.com"
] | jmgiorgi@gmail.com |
892535f4e9c9849c3d4b09d95fed3dc6f3a97ad3 | aa8842b388742efeac3a5aef588ab0f54c5d163d | /TOKEN MAKER/Tokens.py | 59ad04453c59f5c8236de89d4b3cce110af1f5da | [] | no_license | WikiBotFoundation/scriptip-open-source | fcad3d0474ef83609f6b4e94b555f6a888d9805c | e282e264bcbcf8c5bac7d94a83f538b194010272 | refs/heads/main | 2023-03-03T09:49:09.191232 | 2021-02-19T09:26:29 | 2021-02-19T09:26:29 | 334,510,415 | 1 | 0 | null | 2021-01-31T10:37:21 | 2021-01-30T21:01:04 | Python | UTF-8 | Python | false | false | 2,216 | py | <init token>
print % script_ $local$_c
print % (data.py($local$_c.script();
print % py(cs).local
$_TOKEN_$
ProgramConsole.py(script.($local.data
print % val(Hello World)
print % val(Hello World)
print % test val(Hello World)
... | [
"noreply@github.com"
] | noreply@github.com |
dfc5898e45b133126efd5196a4e5110b598558d3 | 8ee3da3d2c53203ab35277698f5a584be3c5b426 | /Login_Registration_belt/apps/users/views.py | 701e8cd6af67ec2e5193002638c19ebdef7542d3 | [] | no_license | jonkoerner/Python-Django | a07ad98c6fc1ec81b769004c8cdd06b0698317bd | 09c25ea7f26ea441ecb04896d39d622905e9041a | refs/heads/master | 2020-03-17T23:56:09.830310 | 2018-05-19T14:40:55 | 2018-05-19T14:40:55 | 134,068,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | from django.shortcuts import render, redirect
def index(request):
return render('users/new.html')
def new(request):
return render(request, '/users/new')
def create(request):
print request.post
if request.method == 'Post':
result = User.objects.validate_registration(request.POST)
print... | [
"koernerj8329@gmail.com"
] | koernerj8329@gmail.com |
26523c4e362f033a64402149db1156139b7ddef3 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/carbonui/control/browser/browserutil.py | f1123476fb25f4a4385f9b0fdc156e55cad377b4 | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 44,014 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\carbonui\control\browser\browserutil.py
from carbonui.primitives.frame import FrameCoreOverride as Frame
import blue
import urllib2
import urllib
import urlparse
from carbonui.primitives.container import Container
from c... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
5adf4804a50da645b6c187bcd6792fd33a974c1f | 838b128e7da155f520a3044c22c6f68b703344a3 | /extension_CS151_Project8/after/growth.py | 1710268a1a8f8a6b96079219aa6aa1fc8d929a89 | [] | no_license | RPSeaman/refactoring | 7fb8c6a85d4dfb7acdba24568f96b754e6f18a78 | 9df437995b73f85202870fc83dae834f18fecd86 | refs/heads/main | 2023-09-02T14:15:26.091859 | 2021-11-21T00:37:08 | 2021-11-21T00:37:08 | 427,078,303 | 0 | 0 | null | 2021-11-11T16:59:43 | 2021-11-11T16:59:42 | null | UTF-8 | Python | false | false | 2,419 | py | '''
John Connors
Project 8
This code produces an image of a tree
growing. To run this code type py growth.py the names of the
2 L systems you want to use, the side length and the angle
into the For the first and second arguments use
systemML and systemLL in that order. Please use a length of 10
and an angle... | [
"noreply@github.com"
] | noreply@github.com |
640989b126a9eb140bcfe2715b327b1e1abe4487 | a4bfe098ee6b098a873258f65c462d6fa67d661f | /code/trunk/event_horizon/social/migrations/0005_auto__add_campaignfacebookpage__add_advertiserfacebookpage.py | 842de3245b73c8e39cf851fa65773be76d879b88 | [] | no_license | WMcCann/EventHorizon | a3d599230c0d2c4474e2859019e836cba920a6fc | 199b7ced6afa1ddb08a31a12395794f7bc61c739 | refs/heads/master | 2016-09-06T08:08:14.084454 | 2015-04-08T19:08:08 | 2015-04-08T19:08:08 | 33,568,323 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 17,465 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'CampaignFacebookPage'
db.create_table(u'social_campaignfacebookpage', (
... | [
"paulo.silva@wmccann.com"
] | paulo.silva@wmccann.com |
414725d239942d1d8df227364d38a9ab65155418 | f4ae4f98f8ae4f2a687bbed4851ffe50c5a3dd2d | /DoodleApp/Doodlers/models.py | a4d3d145faab166a5ba1d0600f951b84aab398e1 | [] | no_license | wondachue/Doodlers | 174a85a8c577880bd19cb9bcb62440bba1164625 | d523e1a5943f5a8ae126513fa4ce6f060b094204 | refs/heads/master | 2021-01-10T01:54:54.569344 | 2015-09-27T03:56:51 | 2015-09-27T03:56:51 | 43,219,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,125 | py | from django.db import models
from django.contrib.auth.models import (
BaseUserManager, AbstractBaseUser
)
from django.utils import timezone
import datetime
class Doodle(models.Model):
title = models.CharField(max_length=75)
pub_date = models.DateTimeField('date published')
#image = models.ImageField(upload_to='i... | [
"megddwyer@gmail.com"
] | megddwyer@gmail.com |
cb5c4ccba717cd9c2920942e071419e95cf3aa0d | 2d276785c3663d4798be462115291c4706dbd255 | /Python从菜鸟到高手/chapter2/demo2.03.py | 5e0bf41280f733cc7bad2b80a3e3d347a440b9a8 | [] | no_license | bupthl/Python | 81c92433bd955663e6cda5fe7cab5ea3d067c3de | bdb33aeeb179a43100b9ef7129a925c63a133fd3 | refs/heads/master | 2022-02-21T11:02:40.195265 | 2019-08-16T05:49:18 | 2019-08-16T05:49:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | '''
--------《Python从菜鸟到高手》源代码------------
欧瑞科技版权所有
作者:李宁
如有任何技术问题,请加QQ技术讨论群:264268059
或关注“极客起源”订阅号或“欧瑞科技”服务号或扫码关注订阅号和服务号,二维码在源代码根目录
如果QQ群已满,请访问https://geekori.com,在右侧查看最新的QQ群,同时可以扫码关注公众号
“欧瑞学院”是欧瑞科技旗下在线IT教育学院,包含大量IT前沿视频课程,
请访问http://geekori.com/edu或关注前面提到的订阅号和服务号,进入移动版的欧瑞学院
“极客题库”是欧瑞科技旗下在线题库,请扫描源代码根目录中的小程序码安装“极客... | [
"registercn@outlook.com"
] | registercn@outlook.com |
09499b5a40b99525ef5398364dfabc50873929aa | d69995905dcd2522e53082c32c10f582b6779cba | /apps/testsuites/utils.py | 046c1755163e1f7524679acbd2cd94c4a979ed31 | [] | no_license | liqi629/learn_nm_drf | 010b35ab4254267a601a13f29e2ea3adb3be615e | ad0eef6fe2b338d613974850977de51b9d82ccc6 | refs/heads/master | 2023-02-10T14:33:33.521450 | 2021-01-13T09:14:23 | 2021-01-13T09:14:23 | 324,942,039 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 854 | py |
import re
from datetime import datetime
from apps.testcases.models import Testcases
def modify_output(results):
datas_list = []
for item in results:
mtch = re.search(r'(.*)T(.*)\..*?',item['create_time'])
item['create_time'] = mtch.group(1) +' '+mtch.group(2)
mtch = re.search(r'... | [
"liqi_629@163.com"
] | liqi_629@163.com |
b97c3dc9d2a32e924bbfed353f4ee199196cf350 | 943d30c727fed5cb4afb4d95bb27e77aeea29507 | /app.py | 185beeeff920b7feb6c8cd0a628b41cae66e02b4 | [] | no_license | hrithikesh/Covid_HelpDesk | 235598d88535a6c347eda88cd07ba01a97e4c6f3 | b4998344ee0cbd3760a2aa572d6ed64a1e7e66d4 | refs/heads/main | 2023-06-16T21:18:14.316114 | 2021-07-15T02:53:38 | 2021-07-15T02:53:38 | 386,141,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,602 | py | from flask import Flask, render_template, request
from twilio.rest import Client
import requests
account_sid = 'AC27fd6c05cf7a90c6786544aa3fc098cfa'
auth_token = '5ee06bd7796c512330946afeb5f50430'
client = Client(account_sid,auth_token)
app = Flask(_name_, static_url_path='/static')
@app.route('/')
def registration_for... | [
"noreply@github.com"
] | noreply@github.com |
3787fe900f3783b90fab30bc18789eb7730dc11f | 52ddbf21991415c3a567881f128b8ef477f54d10 | /jupyter/DataAnalysis/lec03/main.py | bc69fe0b07d34fd388ab8e880bafb948ed8a1892 | [] | no_license | happy5205205/PythonProjects | 265074198c3e6d09af25a50b601bd78fa8d367e1 | a78845ef30cfc0c680dded336ce9e85e3970b771 | refs/heads/master | 2021-07-15T21:48:24.472616 | 2021-06-25T03:41:44 | 2021-06-25T03:41:44 | 160,160,103 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,230 | py | # _*_ coding:utf-8 _*_
'''
作者:张鹏
时间:2019-05-27
功能:练习画图
'''
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
# 解决matplotlib显示中文问题
plt.rcParams['font.sans-serif'] = ['SimHei'] # 指定默认字体
plt.rcParams['axes.unicode_minus'] = False # 解决保存图像是负号'-'显示为方块的问题
def plot_uni_type(pokemon_d... | [
"152929899@qq.com"
] | 152929899@qq.com |
90f5d0ecdb0f132e76809d77dca276ad9a766253 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/eventhub/azure-eventhub-checkpointstoretable/azure/eventhub/extensions/checkpointstoretable/_vendor/data/tables/aio/_base_client_async.py | 06b3136394d128cf3c39652676f430c56596b3be | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 6,981 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
from typi... | [
"noreply@github.com"
] | noreply@github.com |
feb64c06c982a14449c43ee53cc8a6183106fe90 | 093b7b3ce929fa1383d5c1571271807f171aec23 | /rocket/entities/api/endpoint.py | 971b53d78b7948b93078e3f8e4b2b12806ebba05 | [] | no_license | takaaki-mizuno/smart-rocket-cli | fa728a13bc80781aea182922f7a0ee2c546518b1 | 1b4a522c54e94857803f9be246f0c480e50dae3d | refs/heads/master | 2020-03-21T02:06:54.115723 | 2018-06-25T22:43:32 | 2018-06-25T22:43:32 | 137,980,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | from .parameter import Parameter
from .response import Reference
class Endpoint:
def __init__(self, path, method, definition, spec):
self.path = path
self.method = method
self.definition = definition
self.spec = spec
self.parameters = []
self.response = None
... | [
"takaaki.mizuno@gmail.com"
] | takaaki.mizuno@gmail.com |
fbf178a718858ced4106b9333d7c44d72192da25 | a91735023de0477edb0de17a9ff0d4e455f5ce04 | /Scripts/l10_if.py | fc8e9f6b12071e8a9f06120c7b3bc9843a6b4563 | [] | no_license | Ichtiostega/PythonLearning | 2c9679c61e06f41586eee5d11c4c60fb0026754d | b34f5b865db3ca809af2adddfc063c95b2d38b51 | refs/heads/master | 2020-06-20T22:46:03.037358 | 2019-07-25T13:54:03 | 2019-07-25T13:54:03 | 197,276,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | import myHeaders
myHeaders.printl("If Statements", 10)
is_hot = bool(int(input('Is it warm? ')))
is_cold = bool(int(input('Is it cold? ')))
if is_hot:
print("It's a hot day")
print("Drink plenty of water")
elif is_cold:
print("It's a cold day\nWear warm clothes")
else:
print("It's a lovely day!")
prin... | [
"kkna102@gmail.com"
] | kkna102@gmail.com |
a429839600ba1936409a443177af72bb05d2cc6b | 5ad7122ff09df5b798beb89a352925743a92d5e7 | /analyze.py | a09af251ecb617d51d420474de5330d746b4ac94 | [] | no_license | ClarkWang1214/lda-2 | 1b7333a7b9bad9d86e29e8b966da9a86dfefe67a | 2bc19525dc6db314a6417824b8dcdfdeee593a6e | refs/heads/master | 2021-05-27T15:17:52.604521 | 2014-03-16T05:19:51 | 2014-03-16T05:19:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | filename='batch.txt'
outside=['mountain', 'opencountry', 'forest']
city=['insidecity', 'street', 'tallbuilding']
dist=dict()
test=list()
for line in open(filename):
res=line.strip().split()
''''
for idx in range(len(res)):
if res[idx] in outside:
res[idx]='outside'
if res[idx] in... | [
"wenzhouw1989@gmail.com"
] | wenzhouw1989@gmail.com |
7a0f39bf293d3a3bec9723fe29727b3e3878b714 | 3b7846b81149ae863053ab28878986133f4e5c72 | /cnn.py | a502b27cda85415e096dcd7ab81de95318145931 | [] | no_license | Ankush1099/Image_Recognition | 6b77fcbc2f837e06b53335ec7fb57dcf1b0e1a9e | 1c1d59357fe04f1b3d00dfa94e86961f58cdc524 | refs/heads/master | 2022-07-27T17:34:32.168990 | 2020-05-17T14:25:56 | 2020-05-17T14:25:56 | 264,680,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,098 | py | # Convolutional Neural Network
# Part 1 - Building the CNN
# Importing the Keras libraries and packages
from keras.models import Sequential
from keras.layers import Conv2D
from keras.layers import MaxPooling2D
from keras.layers import Flatten
from keras.layers import Dense
# Initialising the CNN
classifier = Sequent... | [
"noreply@github.com"
] | noreply@github.com |
723a4db6b224ae348bf3083736faa2693c91c591 | 0355a4fb1a173ec811b83e87f5995899cddd66e5 | /Jaydeep/PrimeNumber_while.py | 38b0bf5f409b61beed06e86a7b4667d792f8fc37 | [] | no_license | rahulgoyal223/python | 9d4d3e1574940689ea92e86f8a3db6a174546845 | 11e9ae2f5ecaf1747650b1cc7a68a45426deb8a7 | refs/heads/master | 2020-03-26T05:56:33.590856 | 2018-09-06T04:56:34 | 2018-09-06T04:56:34 | 144,581,857 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | i = 1
while (i<100):
j=2
while (j<=i):
#print j
if (i%j is 0 and i is not j):
break
else:
if (i-j == 1 or i-j is 0):
print(i)
break
else:
j = j+1
i = i+1
print("good bye") | [
"rahul.goyal223@live.com"
] | rahul.goyal223@live.com |
0d433d2b2e0fae86e6e35ae79669c0219906427b | 66b39067e7c68b3e7aaa525537ab70b07891629b | /baseline_2/main.py | 2b0cc097d16719485503cd2f2dcf6c39fea57ca7 | [] | no_license | rinchenlama0075/MasterMind | 3b0ebb698e726af96e4b81b6b8a0fc9cad94bfc7 | 0bf6c98a2082ab406d193f22876c21c864c6b3d5 | refs/heads/main | 2023-05-07T02:46:30.994606 | 2021-04-21T19:36:20 | 2021-04-21T19:36:20 | 354,607,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,843 | py | # Main file to run game of Mastermind based on command-line arguments
# See example.ipynb for other ways to use the Mastermind representation
import sys
from scsa import *
from player import *
from mastermind import *
from fbi_B1 import B1Player
from fbi_B2 import Baseline2
def main():
if len(sys.arg... | [
"rinchenlama0075@gmail.com"
] | rinchenlama0075@gmail.com |
b91b3a8d433eae43a3209853c13c1eba6542653f | c2d29753af6c439b882af02ea2669bdde4a67346 | /test_discount/models/account_move.py | 3df6ec068b263959febc4d98f10bb40195c1a191 | [] | no_license | HassanRafat95/Task1- | 3ca9a8518a5df4002fa1e1e10c82f984e223e26d | d53ba0b8d2f852c1dfc7e986e131460a0803fc74 | refs/heads/master | 2023-06-30T07:08:35.926996 | 2021-08-05T15:15:38 | 2021-08-05T15:15:38 | 384,973,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,672 | py | from odoo import fields, models ,api
class AccountMove(models.Model):
_inherit = 'account.move'
discount_account_id = fields.Many2one(related='company_id.allowed_discount_account_id')
discount_product_id = fields.Many2one(related='company_id.allowed_discount_product_id')
sub_total_discount_allowed = f... | [
"hassanrafat95@gmail.com"
] | hassanrafat95@gmail.com |
b77b291e39b9b637540b074cc202c709fdb9bd6e | 0989cfc269da65d3d87ac882183bd1761f9e9f6d | /webscraper.py | 09882540b2790df0a798d579f3bdd575950cd548 | [] | no_license | stanleylai21/NYSDWebScraper | 0a7a339f0ef9df20668ca89db010e99552b8be54 | a24f513a2348647fb351951ec3732d0874a3ad4d | refs/heads/master | 2021-04-04T13:07:38.359943 | 2018-03-13T03:36:09 | 2018-03-13T03:36:09 | 124,987,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,582 | py | import datetime
from time import strptime
from requests import get
from bs4 import BeautifulSoup
import re
def create_datetime(times): #method for turning the time format given by the website into a datetime object
full_date = re.split(', ',times)
month_day = full_date[1].split()
month_name = str(... | [
"noreply@github.com"
] | noreply@github.com |
2d80362541e5e14973ad52c4b8c3098527442e3b | 1f7a6703ea7946b2585660186f0f3d592482502c | /scrape-bot.py | 3f4d034bbd49659dd3ce2b2fa5aa06f939e1c136 | [] | no_license | chlader/twitterbot | 8335812d9218e19efd6cf3bb259ce35f9dbe9c2a | 556b6510911efe547b7b6a36c490aeb2c8ae40f6 | refs/heads/master | 2020-03-25T01:03:24.808799 | 2018-08-01T23:55:45 | 2018-08-01T23:55:45 | 143,219,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | # model scraping for themodelbot
import requests
from bs4 import BeautifulSoup as bs
import os
# website with model images
url = 'https://www.pexels.com/search/chicago/'
# download page for parsing
page = requests.get(url)
soup = bs(page.text, 'html.parser')
# locate all elements with image tag
image_tags = soup.fi... | [
"32153723+chlader@users.noreply.github.com"
] | 32153723+chlader@users.noreply.github.com |
4f14c16247f080ab32ee34c41186c2005e1ab51a | d5d46a48eed6b98e0e7a573a715a150aaacbe3bc | /tests/utils/test_csv_file_writer.py | 2883c6fd912e202f354fa224c8da59db3b0eedd1 | [] | no_license | bitPogo/biomed-mlps | 1360697f93d3d2d7961d1e10972d6bad360ab365 | df1de425f53e6133028a03db894f3eb137f2c8c1 | refs/heads/main | 2022-12-27T09:24:57.971705 | 2020-10-06T01:59:12 | 2020-10-06T02:00:12 | 278,577,785 | 0 | 1 | null | 2020-09-30T10:01:48 | 2020-07-10T08:15:18 | Python | UTF-8 | Python | false | false | 5,413 | py | import unittest
from unittest.mock import patch, MagicMock
from biomed.utils.csv_file_writer import CSVFileWriter
from biomed.utils.file_writer import FileWriter
import csv
class CSVFileWriterSpec( unittest.TestCase ):
def setUp( self ):
self.__openM = patch( 'biomed.utils.csv_file_writer.open' )
s... | [
"geislemx@informatik.hu-berlin.de"
] | geislemx@informatik.hu-berlin.de |
533ca7f861f7a6a34ff0265d601d017f0f9835f7 | b6d82335dfe93f86977e4cbafe592eff32536712 | /src/aws_hashicorp_packer_reaper/schema.py | f028da830fb0a93c2da236b6aabc65f3a6ed1a36 | [
"Apache-2.0"
] | permissive | felixubierar/aws-hashicorp-packer-reaper | 2bb9709b3c95c53d519fa5d009cbafc48232b1b4 | 9b29f6896f43a01f47d2a894059e4afa191a8ff2 | refs/heads/master | 2023-05-19T17:01:23.872830 | 2021-06-14T08:57:50 | 2021-06-14T08:57:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,835 | py | import durations
from aws_hashicorp_packer_reaper.logger import log
from jsonschema.exceptions import ValidationError
from jsonschema import validators, Draft7Validator, FormatChecker, validators
schema = {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"mo... | [
"mark.van.holsteijn@gmail.com"
] | mark.van.holsteijn@gmail.com |
3316129328eef7da97fbbaee62c47d100800316a | 28e5ec12ade253a1e7a2a201cc561aa64a7dd25b | /0x03-python-data_structures/10-divisible_by_2.py | b5f9e3b460991887a26a708752f6ffb3977fb2c0 | [] | no_license | kiba0510/holbertonschool-higher_level_programming | b9de792ef67d13ee144a4f352609d78d3c1aa9ff | a66a248f9cc417ac662ed8e8cb0e57bd34185fa1 | refs/heads/main | 2023-05-08T07:39:21.760169 | 2021-05-12T19:37:09 | 2021-05-12T19:37:09 | 319,350,601 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | #!/usr/bin/python3
def divisible_by_2(my_list=[]):
bool_list = []
for x in my_list:
if (x % 2 == 0):
bool_list.append(True)
else:
bool_list.append(False)
return (bool_list)
| [
"kiba0510@gmail.com"
] | kiba0510@gmail.com |
d74656c9578d8ba0e1508d50e3b518586272396c | c6aa40733b72a8336efdc87cc148a0a792f20501 | /python/redis_client.py | 5819c0228b99bbf946a7255db166d124c5a8cf67 | [] | no_license | lengxy/recsys | ec3f0b5c4cce26a8494fc272f50aa497a3494444 | 9e93c33ffe5d4af289429f9dcee3d331ab225be4 | refs/heads/master | 2016-08-09T23:38:55.984976 | 2015-11-22T13:36:20 | 2015-11-22T13:36:20 | 46,559,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | #encoding=utf-8
import getopt
import sys,os
import re
import glob
import math
from redis.sentinel import Sentinel
default_encoding = 'utf-8'
if sys.getdefaultencoding() != default_encoding:
reload(sys)
sys.setdefaultencoding(default_encoding)
def main():
sentinel = Sentinel([('localhost', 26379)], sock... | [
"xiaoyu@dev1.yuezhixing.cn"
] | xiaoyu@dev1.yuezhixing.cn |
4c48812c9a8062fd971839d5a3f2a64ff7b62188 | acc6c7ab843f620e99fc35c0342749e40bc37a4c | /env/lib/python3.7/sre_compile.py | 10787337f06553f81bd153e58fadb2f52d705fe0 | [] | no_license | asyrofist/TwitterSentimentAnalysis | b1cecae42558c500dfd0f27b34e6a20e96d9dbd3 | 68402dbcd566f0d02eff286a734ad46b1567dec6 | refs/heads/master | 2020-12-26T07:38:21.187197 | 2019-09-29T09:54:40 | 2019-09-29T09:54:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | /Users/sushanthkurdekar/anaconda3/lib/python3.7/sre_compile.py | [
"sushanthkurdekar@Sushanths-MacBook-Air.local"
] | sushanthkurdekar@Sushanths-MacBook-Air.local |
8d5c12675fbee82c4d20320e48951b0b9f1842e2 | f716ec8240b775170283cb6d43da50d0ff3561b7 | /testkraken/testing_functions/check_output.py | 9eeb9c524b75d5c5bbe91ba9471dee63bc318ab0 | [] | no_license | jdkent/testkraken | 63493df89a5ae427dab9da14fc794de96cda6cef | 3b5d83f0eeaad7969902cfa867e6b4a1d4d7e691 | refs/heads/master | 2020-06-01T11:39:57.286709 | 2019-06-07T09:55:16 | 2019-06-07T09:55:16 | 190,766,540 | 0 | 0 | null | 2019-06-07T15:24:49 | 2019-06-07T15:24:49 | null | UTF-8 | Python | false | false | 3,766 | py | #/usr/bin/env python
from __future__ import division
import json
import os, inspect
from glob import glob
import pandas as pd
import numpy as np
import pdb
def creating_dataframe(files_list):
""" reads every json file from the files_list and creates one data frame """
outputmap = {0: 'voxels', 1: 'volume'}
... | [
"djarecka@gmail.com"
] | djarecka@gmail.com |
11696d9acca897a78b9dddc9bf7afed5abdcc28f | 414a33cde8b5a3aa7463a79490fed93c43ae2fe3 | /vote/migrations/0024_auto_20201116_2128.py | b400a37c337ca6377c5061a713cb96f596a8e0e4 | [
"MIT"
] | permissive | bonomali/wahlfang | de88554956288a5144d292b6451108f394062246 | 1774bae3cfdf264d7eb1d846642ce983309f7835 | refs/heads/master | 2023-06-30T16:18:58.735851 | 2021-07-24T15:20:42 | 2021-07-24T15:20:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | # Generated by Django 3.1.2 on 2020-11-16 20:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('vote', '0023_election_disable_abstention'),
]
operations = [
migrations.AlterField(
model_name='election',
name='resu... | [
"tobias@juelg.net"
] | tobias@juelg.net |
8f93c0d8749db98eebd878c2d3d78b2346bfdf7d | ca882b1c30806ed713b0c13e03038d7e2fde27b0 | /python1.py | 3e70442c4b0187c811086bcf6f8dd63603091705 | [] | no_license | hammad2008/FGSM | cebb07907da96f666bba943a11b2c14091b47d4d | 75c54a14f12f4d1a87a5ee1cd24519e00f0ce7b5 | refs/heads/main | 2023-01-24T08:04:22.963946 | 2020-12-10T10:05:01 | 2020-12-10T10:05:01 | 320,229,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,806 | py | import tensorflow as tf
import matplotlib as mpl
import matplotlib.pyplot as plt
mpl.rcParams['figure.figsize'] = (8, 8)
mpl.rcParams['axes.grid'] = False
pretrained_model = tf.keras.applications.MobileNetV2(include_top=True,
weights='imagenet')
pretrained_model.tra... | [
"noreply@github.com"
] | noreply@github.com |
ca85ca075ec118603fee8fe2dc14a7d931cbba9a | 2eb6c4a1293094b63d7a9e204bdc1ba7578b7537 | /webium/webium/controls/link.py | 64e881e073bc6626304ec4397b6dc88778e4acc7 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | WandyYing/vscode-remote-webium | a60124e1b5439de9bf2cbae161513e73ad21455a | c6291cc6f72cbc9b323221a0ef4bbba3134f7f60 | refs/heads/master | 2020-12-14T23:51:21.499703 | 2020-02-04T11:04:13 | 2020-02-04T11:04:13 | 234,916,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | from webium.controls.click import Clickable
__author__ = 'Roman Syrtsov (r_syrtsov@wargaming.net)'
class Link(Clickable):
"""
Implements logic to work with UI elements of type Link
"""
def get_href(self):
return self.get_attribute('href')
| [
"wandy1208@gmail.com"
] | wandy1208@gmail.com |
25c6b6759b3bcbb6209472e625e8708da931c208 | d466ef491b688f6134c05761484dff83fd4da80e | /test/test_resources.py | 492133d8a1572a248e11744845c2bce7bc02028a | [] | no_license | csiro-chris-m/marine_values | 370b8bc8f0e684b6edaea1bebe33d96b574d7ee8 | 93b5d9df2a664db94115e3b40aca037e71d14655 | refs/heads/master | 2021-01-13T03:34:04.359992 | 2017-11-16T06:40:56 | 2017-11-16T06:40:56 | 77,310,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,085 | py | # coding=utf-8
"""Resources test.
.. note:: This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
"""
__author__ = '... | [
"chris.moeseneder@csiro.au"
] | chris.moeseneder@csiro.au |
dd7863b3fccfeb68a73493c51a60650a5878a877 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /DaVinciDev_v38r1p1/Phys/StrippingArchive/python/StrippingArchive/Stripping13/StrippingB0q2DplusMuX.py | 14901f74eb54b516839193dda755bc482337e0e4 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,405 | py | # $Id: StrippingB0q2DplusMuX.py,v 1.6 2010-09-03 00:05:35 rlambert Exp $
"""
Module for constuction of B0q->DplusMuNuX lines
==== Description of the lines ====
B0q->DplusMuNuX0 with X0 being neutrino, gamma, pi0, whatever,
Dq->KKpi, as required for Afs analysis in semileptonics.
(Ds+->KKpi, D+->KKpi)
There are three... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
55cd6829443eff74f5355c68f65b9b11ca2a37db | 1ac99f8065a2646bdb8ea9003fd5930341fb0cf4 | /flow_of_controls/while_basicprogram.py | 5e2dae225febd8aa313d2dcaf587b41771c78bb9 | [] | no_license | krishnanunni-pr/Pyrhon-Django | 894547f3d4d22dce3fff14e88815122c12c145b5 | c59471f947ceb103bb27a19e8a2a160e8ada529b | refs/heads/master | 2023-07-29T19:40:38.199104 | 2021-09-09T18:12:24 | 2021-09-09T18:12:24 | 385,128,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | #print i
i=10
while i>0:
print(i)
i-=1 | [
"krishna@gmail.com"
] | krishna@gmail.com |
d6167ec8739120ceacad7129ba269a36c6dde22b | 660dc22179e5eb477cb587198b92d2d5b38f48b3 | /math.py | 3a66bbd4c7a7d5d869f37d2ec18fc42c9bed52ea | [] | no_license | YDrogunova/stepik---auto-tests-course | 6879b14ec104fc5de2a106b8a8646e121d3af0f5 | b3034f581db29f05021712ac61057f8bc5cea08d | refs/heads/master | 2021-05-25T08:36:26.769466 | 2020-04-07T15:25:07 | 2020-04-07T15:25:07 | 253,744,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | import math
x=780
a=str(math.log(abs(12*math.sin(int(x)))))
print (a)
def calc(x):
return str(math.log(abs(12*math.sin(int(x)))))
| [
"juli11dr@gmail.com"
] | juli11dr@gmail.com |
b58649e7f5144da8e04fa6f0ef5a4d47bcaf5b26 | b588992e1c1e81e315cecd5c99d07fc99e589eec | /prophyc/tests/test_model.py | 26db4438a9e9687ab2b360b6c8187082e30367f2 | [
"MIT"
] | permissive | KrzysztofKupka/prophy | 9a80cc5d80e6ea2a39cd2e4ba1d5a9e9124d8729 | ee3b9fc48d29457b43910b4e7fc97c9e083305e3 | refs/heads/master | 2021-01-17T23:55:41.260598 | 2014-09-03T08:46:41 | 2014-09-03T08:46:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,071 | py | from prophyc import model
def test_typedef_repr():
typedef = model.Typedef("my_typedef", "u8")
assert str(typedef) == "u8 my_typedef"
def test_struct_repr():
struct = model.Struct("MyStruct", [
model.StructMember("a", "u8"),
model.StructMember("b", "u16", bound = 'xlen'),
model.Str... | [
"krzysztof.laskowski@nsn.com"
] | krzysztof.laskowski@nsn.com |
671f43d908baa3c118b7e3e44c09aee84552f4d5 | ff58ba25d940ed34d9684efab04adef85d1e1c0f | /ENV/lib/python2.6/site-packages/gunicorn/app/pasterapp.py | 388478181468378e0cb86f5300a8946ea4738159 | [] | no_license | afsmith/Kneto-Sello | e9046a81ff83652531adc55aab3f90f77af5b5be | a1b12daf8a04ef485ddcaa2944b2d87878a8cdd0 | refs/heads/master | 2021-03-27T17:31:23.830989 | 2013-06-04T07:29:58 | 2013-06-04T07:29:58 | 6,720,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,270 | py | # -*- coding: utf-8 -
#
# This file is part of gunicorn released under the MIT license.
# See the NOTICE for more information.
import logging
import os
import pkg_resources
import sys
import ConfigParser
from paste.deploy import loadapp, loadwsgi
SERVER = loadwsgi.SERVER
from gunicorn.app.base import Application
fr... | [
"andrew.smith@kneto.fi"
] | andrew.smith@kneto.fi |
e6744e1ee333c1330092b588cf31083ede957c96 | 9b6ed6877dba73771e33827ad16b781c32c70f52 | /venv/Scripts/pip3.7-script.py | f448a74def810a252672014e7288994096fefdb7 | [] | no_license | nongxl/DBsDiff | 2f964f9e10af32c7caf8bcfd5dfd1720e942bc7b | 6c172085a1c85f729dac83933cb3d88628681efb | refs/heads/master | 2023-02-12T20:59:42.865775 | 2021-01-07T09:18:08 | 2021-01-07T09:18:08 | 321,529,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | #!D:\workspace\PyCharm\DBsDiff\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"nxiaoliang@outlook.com"
] | nxiaoliang@outlook.com |
3e64be80aa4245763c665dfe41fb7d9fe6d9c13c | cf06e4d0af076cd73b8733b9f1142c435b047a31 | /tests/mock_external_services.py | 4af1a4271b886d0c6ce7d504790430341dd660f7 | [
"Apache-2.0"
] | permissive | arikkfir/deployster | 0e9117d47b9029c806b6245f16581b81dbb814b0 | b95fdb9cf150eee765f7ef3dbdee3666119e76f9 | refs/heads/master | 2021-03-21T23:56:26.609645 | 2018-04-18T23:25:51 | 2018-04-18T23:25:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,885 | py | import time
from pathlib import Path
from typing import Mapping, Sequence, Union, Any, Tuple
from docker import DockerInvoker
from external_services import ExternalServices, SqlExecutor
from util import Logger
class MockDockerInvoker(DockerInvoker):
def __init__(self,
volumes: Sequence[str] = N... | [
"arik@infolinks.com"
] | arik@infolinks.com |
fef86974ffa3cd0957b6545900f9fbacc432b248 | 6ed99600de4fd89b664f9c09ff05d58029db0870 | /annotator_client/api/__init__.py | 23d4cd4ddeefb76b1746a35b9481d575eefb03c1 | [
"MIT"
] | permissive | MaastrichtU-IDS/annotator-client | 172b681c25c478c571ea9457b857a3a9eb1b341d | d9d375f2888b8d9858f21a4ebf63cd311e8ea11b | refs/heads/master | 2022-11-07T18:56:49.818484 | 2020-06-24T15:55:19 | 2020-06-24T15:55:19 | 272,953,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | from annotator_client.api import views
__all__ = ["views"]
| [
"t.hendriks@maastrichtuniversity.nl"
] | t.hendriks@maastrichtuniversity.nl |
a0a7fe20132a9485d8a061a454e13d25388613e3 | 6eaaad8447702972959b88d95f7354548bfa35d6 | /multi_table_test.py | f9379bcd2faafa57b6b7f8405680f6c4642c3342 | [] | no_license | sako1847/sample_app | 928a2b7d9eb41350637d6e5544c6cd5f5372332b | 075c62c601e6cd4a9bab102290d58dafed5728f4 | refs/heads/master | 2020-05-31T02:49:04.487413 | 2016-05-17T13:59:49 | 2016-05-17T13:59:49 | 40,514,716 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,366 | py | import time
import random
from ryu.base import app_manager
from ryu.controller import ofp_event
from ryu.controller.handler import CONFIG_DISPATCHER, MAIN_DISPATCHER
from ryu.controller.handler import set_ev_cls
from ryu.ofproto import ofproto_v1_3
from ryu.ofproto.ether import ETH_TYPE_IP
from ryu.lib.ofctl_v1_3 impor... | [
"kawai.sakiko@lab.ntt.co.jp"
] | kawai.sakiko@lab.ntt.co.jp |
4cc88ed87b6aaa38699ceb8033c67c89bfceda02 | fdafe3308a26359559c61cb8b561363771100788 | /src/models/cifir10_classification/data/DataImage.py | 1a6b74d8b32a380b0ebf61ed349777290783247e | [] | no_license | yyHaker/tensorflow_study | e18ff3107365081643f8ea8c48a99c82a60c2000 | 7ea658444db9aa37b9c2d9b1e71dabe7f493be7c | refs/heads/master | 2021-09-13T16:52:11.142932 | 2018-05-02T10:27:42 | 2018-05-02T10:27:42 | 115,399,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,047 | py | # -*- coding:utf-8 -*-
"""
read the image data from the data file
"""
import numpy as np
from scipy import misc
import matplotlib.pyplot as plt
import os
import cv2
import logging
import csv
import random
# reproduce
np.random.seed(1)
class DataImage(object):
"""the image data object
vocabs below:
self.... | [
"572176750@qq.com"
] | 572176750@qq.com |
cfa7ea81a141b5612abe9b9a47279ebb7c59cbca | e85d0dee0c8de9b609fb43d25c2780e880417d1d | /Spark SQL-93.py | b9c3cc339e5e506f6ed469e745d44b8ea21e97a0 | [] | no_license | pranshu1921/Machine_Learning_Dataquest | f4a44c095480b53b2083fb58051aad060d54afc4 | 4eafa9768120ac2208166ffcf0ea4e4908f83aa0 | refs/heads/main | 2023-07-19T16:19:55.399106 | 2021-09-07T20:32:57 | 2021-09-07T20:32:57 | 303,797,262 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,362 | py | ## 2. Register the DataFrame as a Table ##
from pyspark.sql import SQLContext
sqlCtx = SQLContext(sc)
df = sqlCtx.read.json("census_2010.json")
df.registerTempTable('census2010')
tables = sqlCtx.tableNames()
print(tables)
## 3. Querying ##
sqlCtx.sql('select age from census2010').show()
## 4. Filtering ##
query ... | [
"noreply@github.com"
] | noreply@github.com |
395be8cde2beed5ed773424a8f09e10b7b4f2fad | 48e207e43cec2c7f55359006b60eba2e143b32f4 | /gridWebsite/ideas/migrations/0001_initial.py | 1509b0fb71fc67e59052fccfa978550bb78a95d2 | [] | no_license | romodulo/grid_project | c2085f749b0835a3403dc48ebf3172067d72dd2b | 86b571d235e8be4d00fb93e84f96b2eed88d209d | refs/heads/master | 2023-07-30T06:42:50.029876 | 2020-08-02T15:04:20 | 2020-08-02T15:04:20 | 279,479,862 | 0 | 0 | null | 2021-09-22T19:26:27 | 2020-07-14T04:18:51 | HTML | UTF-8 | Python | false | false | 483 | py | # Generated by Django 3.0.8 on 2020-07-24 10:13
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Log',
fields=[
('id', models.AutoField(auto... | [
"omelzg@gmail.com"
] | omelzg@gmail.com |
e28a917908d4aabdf1c6e15902a58fb97b9c0e88 | fbad7c78949095d94db6c4ecb073d5a842298490 | /valitation_topic_aware_2/src/valide_util.py | c86b8812b7a391448aa49ea12efdfc13e5bebe66 | [] | no_license | YangkeSUN/ECENTIME | 97f0b1678a285843231d230e164465a26a009861 | 545fc97c3f15c02d3cbb42d62aad99a5871dc8e9 | refs/heads/master | 2020-04-02T13:52:36.419215 | 2019-11-09T12:06:23 | 2019-11-09T12:06:23 | 154,500,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | import gzip
import json
#def smart_open(file_path, *args):
#def smart_json_load(file_path):
#def text_save(content, filename, mode='a'):
#def text_read(filename):
def smart_open(file_path, *args):
if (file_path[-3:] == '.gz'):
return gzip.open(file_path, *args)
return open(file_path, *args)
#end def s... | [
"ysun@lri.fr"
] | ysun@lri.fr |
99fd1aa06e6ed67f859936767c53735ca584d528 | a754e8f40cc737b3c4d5764b503170f95be52c15 | /TrackValidation/step3_RAW2DIGI_RECO_VALIDATION_DQM.py | bf4ae15afa1589884f69dbc32e59e1e0ce267bfc | [] | no_license | OmarAlterkait/DeepTrack-CMS | ff3afde20bee13fe905858d7cb3aa6c61d73530f | 78a73c84d84ea0bc8d8d099a150a8dfd99881b8c | refs/heads/master | 2023-01-09T03:23:47.954269 | 2020-11-06T20:36:30 | 2020-11-06T20:36:30 | 288,772,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,597 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: step3 --conditions auto:phase2_realistic_T14 -n 10 --era Phase2C8 --eventcontent RECOSIM,DQM --runUnscheduled -s RAW2DIGI,RECO:reconstructi... | [
"omal8805@colorado.edu"
] | omal8805@colorado.edu |
1382dcbea411dd5c7a5227efcd1b1545775e46c7 | 8ecf97e0f12037ccd0b63f265fddd3bf84229d7a | /keras/inception_autoencoder_predict.py | 966fa0964b70a98e8e0ee7e382925390c8b2781a | [] | no_license | ArifSohaib/video_collission_detection | 158af02ce55d8e7f39b532417010b882106bdb2f | 79ac145f4a3d0386ffac4f4fc2cc6efda056e53f | refs/heads/master | 2021-09-11T01:36:09.085256 | 2018-04-05T19:44:40 | 2018-04-05T19:44:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,739 | py | from inception_autoencoder import build_autoencoder
import numpy as np
import pickle
import matplotlib.pyplot as plt
from sklearn import preprocessing
def main():
impact_data = np.loadtxt('../data/features/impacts_period1.npy')
full_data = np.loadtxt('../data/features/period1_full.npy')
min_max_scaler = p... | [
"arif_sohaib@outlook.com"
] | arif_sohaib@outlook.com |
13a07faedd24175a917c1ec663f9fd10ceb4d8f5 | 3b9b0ceb7c6562fe8070afd142e4c5645b22dde2 | /drive.py | 0dec417b427ab6c5d7935829284b9b3ab76f980b | [] | no_license | abhi092/Self-Driving-Car | afe7db2b35d8a889dadf65044d28801d667858e6 | ec788eb865802e9a6932207911eb68fd9b61157c | refs/heads/master | 2020-04-22T00:59:25.765126 | 2019-02-10T17:14:37 | 2019-02-10T17:14:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | py | import socketio
import eventlet
import numpy as np
from flask import Flask
from keras.models import load_model
import base64
from io import BytesIO
from PIL import Image
import cv2
sio = socketio.Server()
app = Flask(__name__)
speed_limit = 10
def img_preprocess(img):
img = img[60:135,:,:]
im... | [
"noreply@github.com"
] | noreply@github.com |
606a08963bd2d62266cad42fe10e1dccb6ce244b | e5cd9e301d2f7daf222ec5f93935afdd639575ba | /src/orders/migrations/0001_initial.py | aeaaad7c06febdbfefb9348ba70c58a8d3f47133 | [] | no_license | 10featj/eCommerce | 5ba80f80e2af442e94017bab491e1714680db891 | b38d671d1571a31bd50a87d98948c290a2188bcf | refs/heads/master | 2022-11-10T08:04:45.825553 | 2018-04-17T15:36:15 | 2018-04-17T15:36:15 | 122,496,456 | 0 | 1 | null | 2022-10-10T20:59:32 | 2018-02-22T15:21:23 | Python | UTF-8 | Python | false | false | 1,131 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-04-05 13:35
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('carts', '0004_cart_sub_total'),
]
... | [
"jordanfeatherstone@gmail.com"
] | jordanfeatherstone@gmail.com |
3d6fae9b8527d4f8823a630b37b8fecb7d2d8207 | b9f21bc90eed396dde950c30a1b482be0fb8ba30 | /AtCoder/ABC/114-B_1.py | 85c142e193b383c2ee95f438be3c37a3edec97b1 | [] | no_license | nanigasi-san/nanigasi | 127a21db1b31759908fd74cebabe240e5abf8267 | 5e3c3e78344dd9558cafe439beb272b9a80d0f3a | refs/heads/master | 2020-04-03T18:57:40.132489 | 2019-06-19T15:03:38 | 2019-06-19T15:03:38 | 155,504,101 | 1 | 0 | null | 2019-02-20T09:40:05 | 2018-10-31T05:33:11 | Python | UTF-8 | Python | false | false | 155 | py | S = list(input())
list = []
for _ in range(len(S)-2):
Sx = S[_]+S[_+1]+S[_+2]
sa = int(Sx)-753
list.append(abs(sa))
list.sort()
print(list[0])
| [
"nanigasi.py@gmail.com"
] | nanigasi.py@gmail.com |
2a58af80f155244867970e5a9fa1b81b38c15d2c | 223ef6366bf28eda5ed7a51ebbe2615b1d76d969 | /myproxy.py | ad382eab082b618777393a3736a2a06152a560d7 | [] | no_license | wuxiaoling/myproxy | edab554ac6fd968840bc478016e048f4892ca048 | 95ab280e5a702832189bed734992fdc36172e661 | refs/heads/master | 2021-09-14T19:48:23.904647 | 2018-05-18T09:21:24 | 2018-05-18T09:21:24 | 112,447,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,938 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
import os, sys
from ReverseProxy import *
try:
from tkinter import *
from tkinter.scrolledtext import ScrolledText
except ImportError: #Python 2.x
PythonVersion = 2
from Tkinter import *
from tkFont import Font
from ttk import *
from tkMessageBox import *
from tkin... | [
"1047147327@qq.com"
] | 1047147327@qq.com |
8cd5027a87fcdb09f614c2db1a03edfc6e77d178 | 6e11bcf26babb32321411c68718cc0c552ed4ed1 | /src/__init__.py | d95f7d3b516222868a77cf6a485c52a55a795705 | [] | no_license | davidhoward/wanderlike | 524b2a6e1efa5e0cf29914cf01a6312f57b4ce2c | 2505abd9964bb88c8b990e5abf227b15fc206e64 | refs/heads/master | 2021-01-10T18:32:11.708541 | 2015-07-24T20:09:13 | 2015-07-24T20:09:13 | 39,654,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | import world
import player
| [
"howardd@HOWARDD.na.qualcomm.com"
] | howardd@HOWARDD.na.qualcomm.com |
a4f92fc07660a377a8f5ca8b05dec21c348b7a8e | 2caa47f0bdb2f03469a847c3ba39496de315d992 | /Contest/ABC086/c/main.py | 1e87c7d1f6b031f11c2f42d5104c63354529a69a | [
"CC0-1.0"
] | permissive | mpses/AtCoder | 9023e44885dc67c4131762281193c24b69d3b6da | 9c101fcc0a1394754fcf2385af54b05c30a5ae2a | refs/heads/master | 2023-03-23T17:00:11.646508 | 2021-03-20T12:21:19 | 2021-03-20T12:21:19 | 287,489,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | #!/usr/bin/env python3
n, *a = map(int, open(0).read().split())
a = [0]*3 + a
for i in range(n):
i *= 3
t, x, y = map(lambda j:abs(a[i+3+j]-a[i+j]), [0,1,2])
d = x+y
if d>t or d%2-t%2: print("No"); exit()
print("Yes") | [
"nsorangepv@gmail.com"
] | nsorangepv@gmail.com |
46457feac6379131e225abdb2ed387ed94b23e28 | 03cd42c9a1b4a7bba4acc95513638d646d314356 | /tf_test.py | 1a9581766fe51e2cc23e58e0e33f8f1158ce05a5 | [] | no_license | jumpinjeffflash/TensorFlow_Cert_Learning | a53fec53632d68099cf6c5dc8b4a9f115f4e8c14 | ad8c1aa9fcb5cf41b7ebd77b9db6fc136e5b8240 | refs/heads/main | 2023-09-06T00:01:32.840965 | 2021-11-21T06:19:50 | 2021-11-21T06:19:50 | 456,998,182 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | import tensorflow as tf
import numpy as np
from tensorflow import keras
model = keras.Sequential([keras.layers.Dense(units=1, input_shape=([1]))])
model.compile(optimizer='sgd', loss='mean_squared_error')
xs = np.array([-1.0, 0.0, 1.0, 2.0, 3.0, 4.0], dtype=float)
ys = np.array([-3.0, -1.0, 1.0, 3.0, 5.0, 7.0], dtyp... | [
"kvirajdatt@gmail.com"
] | kvirajdatt@gmail.com |
16291f7291e7ead6e270a41e3cc62a5634ed2532 | d25a8b0e9f8a4f48504a49e094085f92d8d8e08a | /tests/__init__.py | f5c12299b95821cfd20dc9d1f9152536d6790db3 | [
"MIT"
] | permissive | William-Lake/doc_db | c7ad963bc0ff3a75b9a690bf44025e2aa6d1773b | 022b3e08d10d104fd838c7a094091e78d771ebe1 | refs/heads/master | 2020-03-31T01:34:59.815672 | 2019-01-30T18:36:39 | 2019-01-30T18:36:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | # -*- coding: utf-8 -*-
"""Unit test package for doc_db."""
| [
"noreply"
] | noreply |
d62a1eec684838440cbae47e5aa64f957b475954 | 1bd29e0ac3395799ead1b01fa7f6318f1a7f7821 | /code/SAF_experiments/test_VGG11_bit1.py | e1e903f0766c578d0cee6e20783095c79caf3857 | [] | no_license | ALEXLANGLANG/ReRAM-Deep-Leanring | 1829fee71a097bdb7c312d7a517ac7bdf602c46c | 94d6686eba722ebb9d4995401e2d142df9d55982 | refs/heads/master | 2023-07-18T01:16:27.935150 | 2021-09-06T03:36:10 | 2021-09-06T03:36:10 | 400,015,776 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,780 | py | from __future__ import print_function
import math
import torch
import torch.nn as nn
import torch.nn.init as init
import matplotlib.pyplot as plt
import argparse
# import os
import shutil
import warnings
from copy import deepcopy
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as ... | [
"sunxian1107@gmail.com"
] | sunxian1107@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.