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
220 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
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
8357bfda0c42a9168dc0100350fa5fbb6a520850
f5b3f58e51ae1c6c2a3c8e60d10b2588aeac4e2d
/Python/source/ben/Player.py
66a2761874a9ee9b847a9676bd2ee92141df16d9
[]
no_license
benbrock26/Video-Poker
a282e405a4e5e80e4cbb2b6759058e04974caac2
089fcfa676656bc3c192ac866168a1c40e6f649b
refs/heads/master
2021-05-04T15:05:17.171879
2018-03-28T00:10:58
2018-03-28T00:10:58
120,219,920
0
0
null
null
null
null
UTF-8
Python
false
false
8,637
py
# -*- coding: utf-8 -*- """ Created on Mon Feb 19 16:20:36 2018 @author: Ben Brock and Shazia Zaman """ from Card import Card from Hand import Hand from Deck import Deck from PokerHandUtility import PokerHandUtility class Player(object): ''' Player Constructor Set the players name, initializes the pl...
[ "benbroc@gmail.com" ]
benbroc@gmail.com
8192c7550d3b208dff239641eabbdf984865471f
b900c9742d0a1832cdd7dc1ae979a02edd801f3d
/SI364Midterm/api_info_template.py
440dbb69dbd8f775de03daaa4a51b85840270076
[]
no_license
catieo/364midterm
57d591416807e4430f6725518b38bf3b38833e55
1a6d5780a6501558c000fef0a36575460e1d102c
refs/heads/master
2021-01-24T10:15:21.890605
2018-03-25T23:36:18
2018-03-25T23:36:18
123,046,666
0
0
null
null
null
null
UTF-8
Python
false
false
99
py
#Enter the values I submitted on canvas here! client_id = "" client_secret = "" access_token = ""
[ "noreply@github.com" ]
catieo.noreply@github.com
38161679d7a7df53da17d5e1b6d803fcaf924202
b25d8d52308d752e6bc12f8791322f43e4f70bbd
/src/s17/suggestionbox/browser.py
b1d1eccc767053b4743abb3c1dbdea795bc7c82a
[]
no_license
simplesconsultoria/s17.suggestionbox
890797fb3c674cc6b6a2264ba8f0f83e97fecc5d
d0d4a5a7bb5dc5042ae76768cc4c9fa0d8df395f
refs/heads/master
2021-01-19T09:43:58.917038
2014-02-21T12:56:36
2014-02-21T12:56:36
4,553,831
0
0
null
null
null
null
UTF-8
Python
false
false
1,141
py
# -*- coding: utf-8 -*- from five import grok from plone.directives import dexterity from Products.CMFPlone.utils import getToolByName from s17.suggestionbox.content import ISuggestionBox, ISuggestion grok.templatedir("templates") class SuggestionBoxView(dexterity.DisplayForm): grok.context(ISuggestionBox) ...
[ "lepri@simplesconsultoria.com.br" ]
lepri@simplesconsultoria.com.br
98df76e6cd0cb4efe72554be8125b1323a68dc77
900b3ca238dd78a577ff94e0a2e4d1a48094f5db
/2-python高级使用/2-Celery自动搜索任务/start.py
b311f803c33110b7ec3f77f09d7cb43c330edeaa
[]
no_license
zxperson/note
0b71e899389947d73b6ed4f577092fddddc5517f
96b03d9ac2105a6891bd2ab02e2f8109db0c057c
refs/heads/master
2020-08-18T11:47:32.079780
2019-10-17T13:00:35
2019-10-17T13:00:35
215,785,586
0
0
null
null
null
null
UTF-8
Python
false
false
325
py
# 启动异步任务 from celery_tasks.task_1.tasks import my_task_1 from celery_tasks.task_2.tasks import my_task_2 my_task_1.delay(1,2) my_task_2.delay(4,5) """ 启动之前,先要把 celery_tasks 传到 乌班图中,然后启动worker: celery -A celery_tasks.main worker --loglevel=info """
[ "whit@163.com" ]
whit@163.com
ca9175d20feb2612e9e3e55ea110a7ea4d89989a
9126ac934bdfa2855f3638af866dc7a1c43c15a1
/application.py
77360ff0aa1a04fa8294858324311153f3afa706
[]
no_license
stephanlascar/markme
14e2eab990dc57e230acf15402c09d714652ed5b
7801b388a12797c5bf05dc779feb407a4198eea9
refs/heads/master
2016-09-06T11:14:41.220608
2015-03-02T15:33:56
2015-03-02T15:33:56
28,190,891
0
0
null
null
null
null
UTF-8
Python
false
false
102
py
# -*- coding: utf-8 -*- import os import markme app = markme.create_app(os.environ['MONGOLAB_URI'])
[ "stephan.lascar@gmail.com" ]
stephan.lascar@gmail.com
98e2e59c2d13a455a8e3895c9e8d255c77dfd898
d1536f1379d298d2660f4e8e62b977ac563e654c
/Dict_assignment.py
28354e91c4991a4696db2ec96af1dcdcc39ddd23
[]
no_license
rohitpawar4507/Zensar_Python
9816f224ad50fe804a136c62cbd33cfc4801265a
cc56db3bf5d6bea543fbf5334b1517e9d6c14c8d
refs/heads/master
2023-03-14T09:27:34.358446
2021-03-11T16:52:46
2021-03-11T16:52:46
346,773,037
0
0
null
null
null
null
UTF-8
Python
false
false
1,306
py
### Assignment ### d1={1:'Nashik',2:"Pune",3:"Aurangabad"} #1.Find the length of dictionary print("The length of dictionary is ..",len(d1)) #2.print dict in sorted manner #print("The dictionary in sorted manners..",sorted(d1)) #3.Check whether the value is present in dictionary value="Pune" if value in d1.values()...
[ "RohitEmail" ]
RohitEmail
4ee5c7635d1d388cb4d468d7dc04515ac9df2ccd
26d6c34df00a229dc85ad7326de6cb5672be7acc
/msgraph-cli-extensions/v1_0/personalcontacts_v1_0/azext_personalcontacts_v1_0/vendored_sdks/personalcontacts/aio/_personal_contacts.py
0c6cf4d05bbae3c59e563ab9a028bb2e8874efa7
[ "MIT" ]
permissive
BrianTJackett/msgraph-cli
87f92471f68f85e44872939d876b9ff5f0ae6b2c
78a4b1c73a23b85c070fed2fbca93758733f620e
refs/heads/main
2023-06-23T21:31:53.306655
2021-07-09T07:58:56
2021-07-09T07:58:56
386,993,555
0
0
NOASSERTION
2021-07-17T16:56:05
2021-07-17T16:56:05
null
UTF-8
Python
false
false
3,990
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "japhethobalak@gmail.com" ]
japhethobalak@gmail.com
325c140017e2ea231db8de746f39d33226b103b1
9e16beee96c5ada941c2c573155dd577b903ae8b
/Tkinter GUI examples/gui structure samples/gui structure example2.py
0678f5001dd14d89b518a00b0078f3140703e359
[]
no_license
JohnRGold/Python-examples
849d94a5cfa6206c60d3c026f8a3cbd576a7035a
2b62211c460e3fb9207af066a4737f7381e126e7
refs/heads/master
2023-02-03T01:44:24.547985
2020-12-09T19:15:52
2020-12-09T19:15:52
317,896,547
0
0
null
null
null
null
UTF-8
Python
false
false
2,296
py
"""Fully functional. Is capable of completely locking the parent window via wm_attributes() method, since the main menu inherits from Tk. Second menu is defined explicitly inside the appropriate button method. However, OOP-ing this would be relatively simple, as the Create_Toplevel() method creates a Toplevel object an...
[ "johnggold@protonmail.com" ]
johnggold@protonmail.com
71a0194808aa59ac6b949bcd9c95ae8dd73b0377
a8d3b441680979654f8a4bf20b72d38f4a5913aa
/scripts/list_incidents.py
c88021facf763e36249ff188bdb0afa3dbb8a0cd
[]
no_license
Cjhosu/pyProjects
658d73b452f2731ca3b6b28adaa2fe06b202bdbd
9a7a5d82939f2aece8440f7261ff77a0f293c8ba
refs/heads/master
2022-05-02T08:40:17.576762
2022-04-04T02:51:23
2022-04-04T02:51:23
94,718,085
0
0
null
2021-06-10T17:33:41
2017-06-18T23:06:08
Python
UTF-8
Python
false
false
2,304
py
import requests import os import subprocess import time from datetime import datetime, timedelta api_key_from_env = os.environ.get('PDAPI_DATABASE') API_KEY = api_key_from_env last_hour = (datetime.now() - timedelta(days=2)).isoformat() SINCE = last_hour UNTIL = '' SERVICE_IDS = ['PSLDOMB'] LIMIT = '1' TIME_ZONE = 'UT...
[ "choward@covermymeds.com" ]
choward@covermymeds.com
0c4b93b339d5366e37f2015901d6af676884bd67
c085d947765474637b199152948fd63a22ed2777
/Application/migrations/0002_auto_20200719_1856.py
1c21805a9325174d0d3672d8f035cf5e66b913cc
[]
no_license
venkatarao3139/OnlineCourseRegisreration
992ec8cf019f766821421a331905efe78fbe1c11
911d8a4f18330386c6abe6c9eae7c5568787f196
refs/heads/master
2022-11-19T01:41:56.792820
2020-07-20T06:31:36
2020-07-20T06:31:36
280,671,311
0
0
null
null
null
null
UTF-8
Python
false
false
1,460
py
# Generated by Django 3.0.8 on 2020-07-19 13:26 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Application', '0001_initial'), ] operations = [ migrations.RenameField( model_name='enrolecoueses', ...
[ "venkatarao.dharamna59@gmail.com" ]
venkatarao.dharamna59@gmail.com
e742907f523101322df4966977e82fafc1446f34
2c4ad0e41e495b1be29ac54f3552f5a4bcfb8d8b
/apps/comments/views.py
0c004c9e007472a3dba19ad976acbe6ce31052d7
[]
no_license
buzzzzx/blogforzly
7de8f01e767e01f30d7dab8ffb2243484de24f4a
163a26c7518ed13c7f3a58cd12d455748b60ab6d
refs/heads/master
2022-03-09T14:43:00.098795
2019-08-06T13:13:08
2019-08-06T13:13:08
114,436,672
1
0
null
null
null
null
UTF-8
Python
false
false
1,032
py
from django.shortcuts import render, get_object_or_404, redirect from .models import Comment from .forms import CommentForm from blog.models import Post from utils.send_email import send # Create your views here. def post_comment(request, post_pk): post = get_object_or_404(Post, pk=post_pk) if request.meth...
[ "buzzzzx233@gmail.com" ]
buzzzzx233@gmail.com
1cdc2bcc69cfb9db96d5c781083c1bc817ff9f01
387cf5f72ed6679a4d9e04bddd16998a190c4caf
/problems/programmers/lv4/pgs-12983-wrong.py
69760552fe4acfa3898004c7c8b095f9f458bbe3
[]
no_license
CodyBuilder-dev/Algorithm-Coding-Test
db4ee1e7565fbcef3140192225167eff42ad5c02
cca5c4ba8bc31679ab00aceccfd8d9d39c232f72
refs/heads/master
2021-07-24T00:34:41.888289
2021-07-21T14:29:00
2021-07-21T14:29:00
219,123,221
1
0
null
null
null
null
UTF-8
Python
false
false
881
py
""" 제목 : 단어 퍼즐 아이디어 : 거스름돈과 비슷한 dp (1) DP 값 저장 - key는 strs의 i번재 단어까지 서서 t의 j번째를 만드는 것 - j번째 까지냐 vs j번째 만이냐 - value는 최소값 (2) 초기화 - dp[0][0] ~ dp[0][len(t)-1]는 초기화할 수 있음 (3) 점화식 - dp[i][j] 는, min(dp[i-1][j], dp[i][j-k] (k = strs에 담긴 원소들의 길이))인가? """ from math import inf def solution(strs, t): dp = [[inf]*len...
[ "imspecial1@u.sogang.ac.kr" ]
imspecial1@u.sogang.ac.kr
19f0b797f0e3d4ed068398e6a9c235fa8cc5c020
5628ec1b260b41ee427b2d00de886af4d87e9dc0
/01_of_week_1_Single_Number.py
f82885c574037c37aa1bb1bf7ed311cbea5e787f
[]
no_license
bmanandhar/LeetCodeLockAril2020
464eaab08e94c4ae3828bc7a888b12cf66749d2b
7d5c554d47bcf355aee6b788d7a82322681e5249
refs/heads/master
2021-05-20T15:52:56.938325
2020-04-12T16:50:47
2020-04-12T16:50:47
252,355,657
0
0
null
null
null
null
UTF-8
Python
false
false
646
py
""" Given a non-empty array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory? Example 1: Input: [2,2,1] Output: 1 Example 2: Input: [4,1,2,1,2] Output: 4 """ class Solutio...
[ "bijaya.manandhar@yahoo.com" ]
bijaya.manandhar@yahoo.com
5d86db5ca4849c4a3d056fe445f5af21bcb558e8
4c7fc810eb442b386969bf345b4dc6ef3152c783
/src/transformers/models/encoder_decoder/modeling_tf_encoder_decoder.py
c74865617cf76d513cfa10379dcd8d43d8b825e4
[ "Apache-2.0" ]
permissive
newcodevelop/transformers
fbcef5d703b12febf6e76e84e3f0493769fb9d37
e8d1bd7427021d2114ec159b2c90c6b1fcddeae7
refs/heads/main
2023-03-15T11:45:09.906184
2022-08-30T07:26:17
2022-08-30T07:26:17
254,360,734
0
1
Apache-2.0
2020-04-09T12:07:09
2020-04-09T12:07:08
null
UTF-8
Python
false
false
36,192
py
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
[ "noreply@github.com" ]
newcodevelop.noreply@github.com
1c8b03bf7d466036c4ee88b52660d0fb375c3018
2eff2779f0170ecf67915b5188c902b096d27683
/modules.py
c157bf56e2f61fae7cd295a2c20de43024aae863
[ "MIT" ]
permissive
sjyttkl/transformer-pointer-generator
6dce026e65a4c670f85731bf12b5ab7b5d65797f
a801002ff13da715adcaab3e215b2457efb76ea0
refs/heads/master
2020-05-25T10:22:48.718177
2020-04-08T14:46:56
2020-04-08T14:46:56
187,758,383
0
0
MIT
2020-04-08T01:58:44
2019-05-21T03:56:00
Python
UTF-8
Python
false
false
11,667
py
# -*- coding: utf-8 -*- #/usr/bin/python3 ''' date: 2019/5/21 mail: cally.maxiong@gmail.com page: http://www.cnblogs.com/callyblog/ ''' import numpy as np import tensorflow as tf def ln(inputs, epsilon = 1e-8, scope="ln"): '''Applies layer normalization. See https://arxiv.org/abs/1607.06450. inputs: A tensor ...
[ "maxiong@juexiaotime.com" ]
maxiong@juexiaotime.com
0e48b30a06104cba35625dfe97b6f03f276fffcb
c553f9d608c435cd7f19c9be0ef512307295a837
/daemin/greedy/실전문제/1.모험가길드.py
cfc80dc0c3cd461720a12db2077c822dd132f7b8
[]
no_license
Green0v0/Algorithm
2d089e7c016997c1fb5e1094ddeeb80cd1ce0485
ab9b387e63550ef1b5dfe0f851163b16fbd42c88
refs/heads/main
2023-05-24T05:37:17.125671
2021-06-16T05:35:52
2021-06-16T05:35:52
330,944,982
1
2
null
null
null
null
UTF-8
Python
false
false
1,317
py
# n = int(input()) # k = list(map(int,input().split(" "))) n= 5 data = [2,3,1,2,2] data.sort() # 원본 변경 / True 가 내림차순이다. result = 0 # 그룹 갯수 count = 0 # 모험가의 수 """ 1. 기본 로직은 공포도가 작은 탐험가 부터 (숫자가 작은) 그룹을 이뤄 나가는것이다. 2. count 에 일단 모험가를 1개 넣어주고 다음 모험가(i)가 1보다 작거나 같으면 그룹이 되어나간다. 3. 1보다 크다면 result(그룹)이 되지 못하고 반복문으로 올라가서 다음...
[ "noreply@github.com" ]
Green0v0.noreply@github.com
442049f9a967f6262fc2c1a0afc3ec8b8dbce63d
d02e279c61c111d250812946f299828330947ed6
/easy/remove duplicates from sorted array.py
a530a8fb95464ecd776b7a09d7109cf33a851c59
[]
no_license
wlawt/leetcode
b1599528e027bd8bfd2581f3bc56bb3680118c4b
c00fdce2f5f1ed1acc15f74f98c99b7139fedb50
refs/heads/master
2023-02-20T05:42:34.307169
2021-01-22T01:48:30
2021-01-22T01:48:30
326,090,331
1
0
null
null
null
null
UTF-8
Python
false
false
287
py
class Solution: def removeDuplicates(self, nums: List[int]) -> int: i = 0 for j, num in enumerate(nums): if nums[i] == nums[j]: continue i += 1 nums[i] = nums[j] return i+1
[ "williamlaw.wtl@gmail.com" ]
williamlaw.wtl@gmail.com
3b603565c919ef6876ce0e0fd38176333bf18b69
78bb5eb64ec5f21b7beb68b6e89ea45f999c6687
/leetoj/191.py
b2ae838d4394dabe5ae235f4febae8734fd969b8
[ "MIT" ]
permissive
R11happy/misc
f003180e5c4b4389765f17f12d228edef7b249b3
1f642e9ee6bdf3e553402b522745c4f4ef2cd922
refs/heads/master
2021-01-23T08:20:58.980636
2016-03-30T15:06:29
2016-03-30T15:06:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
303
py
# Number of 1 Bits # https://leetcode.com/problems/number-of-1-bits/ class Solution: # @param n, an integer # @return an integer def hammingWeight(self, n): cnt = 0 while n: cnt += n&1 n >>= 1 return cnt # print Solution().hammingWeight(11)
[ "jayson.hjs@gmail.com" ]
jayson.hjs@gmail.com
83f7bc9d5180996418febbc8a0f8a83a4fbb3d89
b88435c95597d165d7634f9cebe83bcd787bcce6
/task.py
9c0909bf5e812834e1bd1f87c40dbb4ba509fbc6
[]
no_license
44Schwarz/exit-nodes-analysis
d40cd4e64abd89117ec876cfdb04f262975fea93
3d6eb9d3d96748446f7841fabf69f258d151841b
refs/heads/master
2020-08-04T16:04:56.555620
2019-10-02T08:58:03
2019-10-02T08:58:03
212,196,461
0
0
null
null
null
null
UTF-8
Python
false
false
4,468
py
#!/usr/bin/env python3 import os import json import lzma import tarfile import urllib.request from urllib.error import URLError import pandas as pd url_path = 'https://collector.torproject.org/archive/exit-lists/' path_to_extract = '/tmp/exit-nodes' files = ['exit-list-2019-07.tar.xz', 'exit-list-2019-08.tar.xz'] mon...
[ "sirmitya@gmail.com" ]
sirmitya@gmail.com
b1cd7818425684f94cdc1bae824fd9ee13392995
1c56115ba312563fd2eba6f410c9ca8a23b796cf
/standard/bin/wheel
4d1f9281f9fadf5c9fab3264444f728aab28cf31
[]
no_license
nahkranoth/WebGL-Particles
caa19b76f1793f834705bac988289070f1ad738a
01128ed04696755d6592b2aba11bf7c4bdc6ab87
refs/heads/master
2021-05-08T18:52:10.900788
2018-01-30T13:37:03
2018-01-30T13:37:03
119,540,046
1
0
null
null
null
null
UTF-8
Python
false
false
264
#!/Users/joey/Documents/Misc/JavascriptTestbed/standard/bin/python2.7 # -*- coding: utf-8 -*- import re import sys from wheel.tool import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "joey@squla.com" ]
joey@squla.com
00b204dd1c59a7f8d99f85a898d26452b44fb647
0cbd245ba67ada0dd04e8a61471b2bc2bbacdc47
/App09_RealEstate_DataMiner/app9.py
8c7df6853b363cbc8fa964ed55f68f41a46db523
[]
no_license
ptsouth97/pythonapps
7ed0a121f35669d0bb177d88ef9aa09828bea813
ee239a02c553fb9d2672f50a4b4c49b4ea4396f0
refs/heads/master
2021-01-12T04:31:31.687181
2017-02-05T21:07:42
2017-02-05T21:07:42
77,632,442
0
0
null
null
null
null
UTF-8
Python
false
false
2,577
py
import os import csv from data_types import Purchase import statistics def main(): print_header() filename = get_data_file() # print(filename) data = load_file(filename) query_data(data) def print_header(): print('------------------------') print(' Real Estate App') print('------------------------') prin...
[ "ptsouth97@gmail.com" ]
ptsouth97@gmail.com
48b47a669edfd7614332e5b5562190fc0cd87264
1ae64c00be74b1e66f84d59e8f4ebeb7e2720808
/Tests/test_HomePage.py
d09e519b0753cfe0945903a019555a0314cc1c35
[]
no_license
1234ronit/100ms
b48888001d51f903a5f19b720b8809f36dfb3e5b
1fce60c8c94c6f17e119866f722529d5e4a0c9ca
refs/heads/main
2023-08-21T03:00:58.802166
2021-10-11T12:56:53
2021-10-11T12:56:53
415,644,519
0
0
null
null
null
null
UTF-8
Python
false
false
1,272
py
from Config.config import TestData from Pages.HomePage import HomePage from Pages.LoginPage import LoginPage from Tests.test_base import BaseTest class Test_Home(BaseTest): def test_home_page_video_conf(self): self.loginPage = LoginPage(self.driver) self.loginPage.do_login(TestData.USER_NAME, Tes...
[ "36254743+1234ronit@users.noreply.github.com" ]
36254743+1234ronit@users.noreply.github.com
f71aa4a95d21c4966d26433be321c6323c914553
1a08f936e48693fab3148101e8457a5b767d0f68
/mod_rgb/change_mod_rgb_address.py
d0d2c15ba36e0eb73ad699320fe93819444c2b65
[ "MIT" ]
permissive
rob-smallshire/mod-rgb
287741aedd9a605549322d71a3b9261a2c1cea92
f08aaed966fddab009254a287f8c0a6097b7ae5c
refs/heads/master
2016-09-06T10:50:21.247994
2015-02-24T10:12:34
2015-02-24T10:12:34
31,170,548
0
0
null
null
null
null
UTF-8
Python
false
false
3,323
py
#!/usr/bin/env python3 """Change MOD-RGB address. Usage: change-mod-rgb-address.py <old-address> <new-address> [--device=<dev-num>] [(-q | --quiet)] [(-n | --no-action)] change-mod-rgb-address.py -h | --help Options: --device=<dev-num> Device number [default: 1]. -q --quiet Do not prompt for ...
[ "robert@smallshire.org.uk" ]
robert@smallshire.org.uk
e2223056d56f87835517a312220bed8860ed627b
4000b76810c173e1dc9403e6e98176e676ae50a5
/data_visualize.py
e74467515007d04cd6e6f510c1f975cfa17ca366
[]
no_license
barrelo89/Gait-IEEE-Access
93707d82af6b1940d6d06598a007400966169455
5849850f43292386962a94bd287d6235b79312b9
refs/heads/master
2022-04-02T02:07:34.804735
2020-01-08T06:06:02
2020-01-08T06:06:02
79,977,850
3
1
null
null
null
null
UTF-8
Python
false
false
1,968
py
import os import pandas as pd import matplotlib.pyplot as plt path = "processed_data/" activity_name = ['walk']#['open', 'run', 'type', 'walk'] col = ['accx','accy','accz','gyrox','gyroy','gyroz']#, 'HR' img_save_path = 'img' type_path = activity_name[0] target_path = os.path.join(img_save_path, type_path) if not os...
[ "noreply@github.com" ]
barrelo89.noreply@github.com
c667b5bd38756b36006f7fa9499470cf8b2d0666
7aed4db02c3d70e2a73ebc2cd8b96f6130e1467d
/news/admin.py
ec69aa0ea85f5b9a826bb986b1b550f18e53cbd5
[]
no_license
xuqidog/minicms
9fde77f83719f355ff2f39b974f85a7313098a74
7e52466e399a23399defd541770e0fbbb3c23d57
refs/heads/master
2020-04-06T03:55:02.658771
2017-03-04T08:32:34
2017-03-04T08:32:34
83,104,165
0
0
null
null
null
null
UTF-8
Python
false
false
421
py
from django.contrib import admin from .models import Column, Article # Register your models here. class ColumnAdmin(admin.ModelAdmin): list_display = ('name', 'slug', 'intro', 'nav_display', 'home_display') class ArticleAdmin(admin.ModelAdmin): list_display = ('title', 'slug', 'author', 'pub_date', '...
[ "xuqidong@xuqidong.local" ]
xuqidong@xuqidong.local
e4bf0122a1873ff6d44339010924a8840544533c
aa2103feadc4e12098aee10d98eed1881b128b00
/Exact/linearProgram.py
6c166f7d3cb011be17d54c167cbd166fb98fd367
[]
no_license
NicoleKappelhof/Bachelor-thesis
9ed384d1337477e0318ec0eafdad32c6bda419de
23d5f6af00e0fdccab652ec91e31a5d07c0f39d0
refs/heads/master
2021-01-17T00:42:15.954032
2016-07-10T15:25:59
2016-07-10T15:25:59
63,002,800
0
0
null
null
null
null
UTF-8
Python
false
false
20,955
py
""" parameters: ImproveStartTime or ImproveStartGap can be set to a specific value. If this value is reached, the MIP will no longer continue to prove optimality but rather improve the bound MIPFocus, set to 1 for focus on feasible solution, set to 2 for focus on optimal solution, set to 3 for improving the bou...
[ "noreply@github.com" ]
NicoleKappelhof.noreply@github.com
4273284926f575718667dff4ea9f1afc83b9c5d6
d609ea951b45911a8e9afd904d58273d50f05a3e
/cmds/scheduler.py
a6bde4ea60c82fbc95faff3e7681c59cce32221b
[ "MIT" ]
permissive
lochungtin/Sonority
bdf077a9c2d666acd1c25bb4859391e440a51f61
104edc9da4de804a46b97b5db571236274888fbe
refs/heads/main
2023-04-08T21:44:09.987998
2021-04-26T10:54:56
2021-04-26T10:54:56
361,232,778
2
0
null
null
null
null
UTF-8
Python
false
false
3,299
py
import asyncio import discord from discord.ext import commands from utils.cogext import CogExt, setBot from utils.logger import Logger timeUnitMlp = [1, 60, 3600, 86400] class Scheduler(CogExt): # test ping command @commands.command() async def ping(self, ctx): Logger.debug("{} issued a ping comm...
[ "lochungtin@gmail.com" ]
lochungtin@gmail.com
caef56b59f3154376c50d4336649aec1100d0102
2f6d017dedc68588b2615d65c1e8ca8bcdd90446
/api/dynamic_tests_v2/cumsum.py
64fc792e50a19fb1e753faa601710dbef87b366e
[]
no_license
hysunflower/benchmark
70fc952a4eb1545208543627539d72e991cef78a
c14f99c15b4be9e11f56ea378ca15d9c3da23bab
refs/heads/master
2022-06-30T07:04:14.986050
2022-06-15T02:43:04
2022-06-15T02:43:04
224,449,279
1
0
null
2019-11-27T14:29:29
2019-11-27T14:29:29
null
UTF-8
Python
false
false
1,479
py
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
[ "noreply@github.com" ]
hysunflower.noreply@github.com
c83eadf7b9b9967c1507e6da8273883512787e28
13ea58f72fa96e2455609fb452b5f3b98e94f846
/sfepy/postprocess/plot_cmesh.py
4319e5a25f131980a112ea817a562980f7b29e29
[ "BSD-3-Clause" ]
permissive
vondrejc/sfepy
4284ee47979b89d9e504b72b91689a9ce0c3a5ec
8e427af699c4b2858eb096510057abb3ae7e28e8
refs/heads/master
2021-01-24T00:09:18.722674
2014-08-20T12:37:03
2014-08-20T14:25:56
12,810,199
0
2
null
null
null
null
UTF-8
Python
false
false
2,538
py
""" Functions to visualize the CMesh geometry and topology. """ import matplotlib.pyplot as plt from sfepy.postprocess.plot_dofs import _get_axes def plot_wireframe(ax, cmesh, color='k', show=False): """ Plot a finite element mesh as a wireframe using edges connectivity. """ coors = cmesh.coors di...
[ "cimrman3@ntc.zcu.cz" ]
cimrman3@ntc.zcu.cz
5a97f46e6ef95ec6db4828165519cb303313b83f
82f8564c030f27129836fa116ad7d195cb291719
/npcrenderer.py
b5b28318630b38c74fb3eac5d0b38345c061cde4
[]
no_license
timoruokonen/latrappe
5247c69ce7b8c392e0c5870ea96d842ab5c74d98
1b752da838836171144bc142bf59becfdd798a93
refs/heads/master
2021-01-01T17:22:54.260586
2013-02-28T20:24:42
2013-02-28T20:24:42
7,369,929
1
1
null
2018-12-26T07:07:13
2012-12-29T20:01:21
Python
UTF-8
Python
false
false
3,129
py
import pygame from TileUtils import * from AnimatedSprite import AnimatedSprite from latrappe import * class NpcRenderer: def __init__(self, surface, tile_width=32, tile_height=32): self.surface = surface # FIXME: Just test images for now self.MAP_TILE_WIDTH = tile_width s...
[ "jruokonen@ovi.com" ]
jruokonen@ovi.com
83b6c3223a9ea60b7456b4e43317b1614cfe87e0
7ce05272d21c903abc85ebc74544009aacd80c82
/Advance_Python/Socket_Programming/socket_programs/client.py
cead5a5a2d925f83e46f72d6bbd4a1b3d48a2ce3
[]
no_license
sachinyadav3496/PythonInternBatch2018
8899a866f60a39b4c7eff4f5bc79ec2586833403
8e2610ad80c39ea747e8a6547ebe540e7b019a79
refs/heads/master
2021-06-26T09:18:58.178457
2020-10-03T09:49:32
2020-10-03T09:49:32
136,880,809
18
34
null
2020-10-03T09:49:33
2018-06-11T05:56:26
Jupyter Notebook
UTF-8
Python
false
false
670
py
import socket server_socket = socket.socket() host = socket.gethostbyname(socket.gethostname()) # Give server address if server is on differnt machine port = 12345 #port no on which server is listing server_socket.connect((host,port)) print("Got Connection from server at {}:{} ".format(host,port)) while True : s...
[ "sachinyadav3496@gmail.com" ]
sachinyadav3496@gmail.com
cc37339f965654b3bb80a3839e738438166c83ac
4b2125441bebb98aba6c05d935ab28f6dfeab7d2
/tableRowShowoff.py
cfd4dea1c56692c723094bc326918bb43c872cf3
[ "Unlicense", "MIT" ]
permissive
PiKaLeX/Kivy_Tutorial
0cf23d7f5e3c47f4da3672e38130dd65457cb3c5
c111908e3cf904f7c1901e75532db76c6be77295
refs/heads/main
2023-04-11T04:22:16.510567
2021-04-25T00:18:43
2021-04-25T00:18:43
356,843,969
0
0
null
null
null
null
UTF-8
Python
false
false
989
py
from kivymd.app import MDApp from kivy.lang import Builder from kivymd.uix.datatables import MDDataTable from kivy.metrics import dp kv = """ Screen: MDRectangleFlatButton: text: 'Click me to get table contents' pos_hint: {'center_x': 0.5, 'center_y': 0.5} on_press: app.table() """ class ...
[ "alexandre.castonguay.garceau@gmail.com" ]
alexandre.castonguay.garceau@gmail.com
a4ec925ffdf9afa9aff09c57049d796f503f32ea
524c168b1b7ab4644a612f692645ae56487dea8c
/fwork-backend/tina/projects/migrations/0013_auto_20141210_1040.py
ac9ab59da8ca199cb8221bccf33e483a8493f55f
[]
no_license
phamhongnhung2501/Taiga.Tina
b4fa730a9f9601e23ab19c6d937e7daf0386b1e2
8bc44de3a364ccd0e49e767b098589898dcabc10
refs/heads/master
2022-12-14T09:55:11.205228
2019-07-08T07:42:38
2019-07-08T07:42:38
195,760,755
0
0
null
2022-12-08T05:18:37
2019-07-08T07:39:32
Python
UTF-8
Python
false
false
995
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.db import connection from tina.projects.userstories.models import * from tina.projects.tasks.models import * from tina.projects.issues.models import * from tina.projects.models import * def _fix_tags_m...
[ "hongnhunglyzin97@gmail.com" ]
hongnhunglyzin97@gmail.com
9fa52bc8569de172d5163c6758b3e6344b17a715
3fae6def3b1bb197cdeaa2d8be13b11440b80ff6
/functions/expand_labels.py
13c4a4cb677fbba69f7301bfd71795dbbe154358
[]
no_license
DCMLab/standards
85203ccf03b7565b48a855e5a142c94da9e958c4
17cc3645e674841d234a63a0a1f7ab9bc662d2bc
refs/heads/main
2023-08-17T07:20:20.375477
2023-08-04T11:03:19
2023-08-04T11:03:19
253,857,609
4
0
null
2023-08-24T15:23:33
2020-04-07T16:56:36
Python
UTF-8
Python
false
false
57,858
py
################################################################################ # Internal libraries ################################################################################ import argparse, os, re, sys, logging from collections.abc import Iterable from inspect import getfullargspec from fractions import Fract...
[ "johannes.hentschel@epfl.ch" ]
johannes.hentschel@epfl.ch
46eb0092ec00ba666cc6bbdaa21bff606a02a170
6f594cc963795c69d8da3c30ca580c0405ef2d6e
/binaryTree/652FindDuplicateSubtrees.py
fbf0d850405b6d265b0194874f1be18bc6d4cea4
[]
no_license
lo-tp/leetcode
25933c5b25f64f881d43748d8b2763f69614a97f
4cc4d76c64e9d9aa3f53c5e9574e488c93e10a50
refs/heads/master
2022-09-07T20:32:58.487759
2022-09-05T03:39:50
2022-09-07T13:39:50
116,555,892
1
0
null
null
null
null
UTF-8
Python
false
false
2,259
py
from collections import defaultdict class Solution(object): def findDuplicateSubtrees(self, root): res, current, stack, data = [], '', [], defaultdict(lambda: 0) while stack or root: if root: stack.append((root, False, '')) root = root.left el...
[ "regesteraccount@hotmail.com" ]
regesteraccount@hotmail.com
ceff54f968ea5881df1a7121e62e406f4da9e11d
e40900b4a766bdc0d44e9e7c6cd751cd180a053c
/python-downloader-gui.py
6e8165b7b6fc8e2a1e2858a0d372c993ea45febd
[]
no_license
ohidurbappy/random-scripts
ce0601429a97723d6846222663813439366f92b9
4c675ee153481999990deafa5394da14cd974cab
refs/heads/master
2021-06-23T09:35:16.013494
2021-02-07T04:41:03
2021-02-07T04:41:03
195,460,766
2
2
null
null
null
null
UTF-8
Python
false
false
1,599
py
# © ohidurbappy import tkinter as tk import tkinter.ttk as ttk import requests import threading import tempfile import os import time progress_window=tk.Tk() progress_window.geometry('400x60') progress_window.title("Querying file size..") progressbar=ttk.Progressbar(master=progress_window, orient = tk.HORIZONTAL, ...
[ "noreply@github.com" ]
ohidurbappy.noreply@github.com
9f238e46d438784023ea24f418acbc362d03107b
86813bf514f3e0257f92207f40a68443f08ee44b
/459 重复的子字符串/459 重复的子字符串.py
09445982e188b913bf7d0f47bd859239932d3471
[]
no_license
Aurora-yuan/Leetcode_Python3
4ce56679b48862c87addc8cd870cdd525c9d926c
720bb530850febc2aa67a56a7a0b3a85ab37f415
refs/heads/master
2021-07-12T13:23:19.399155
2020-10-21T03:14:36
2020-10-21T03:14:36
212,998,500
4
1
null
null
null
null
UTF-8
Python
false
false
415
py
#label: string difficulty: easy class Solution: def repeatedSubstringPattern(self, s: str) -> bool: n = len(s) for i in range(1,n//2+1): if n % i == 0: a = s[:i] j = i while j<n and s[j:j+i] == a: j += i ...
[ "noreply@github.com" ]
Aurora-yuan.noreply@github.com
fbcb356c810de002cfb264ba3b9a23f8b81dc917
330216d96d4330a5eb8c396aa50db846eb985674
/app/core/migrations/0001_initial.py
f568964ebdc4d346067f6fd7c8d7bfdc9c58191c
[]
no_license
Ash-jo121/Recipe-API
16520208b86393794b4cfcbdc489fb511fa851c6
3acd344fe8bd577ba22086f57f030d4797ebb9af
refs/heads/master
2023-06-17T14:55:57.705830
2021-07-14T06:46:08
2021-07-14T06:46:08
385,627,772
0
0
null
null
null
null
UTF-8
Python
false
false
1,709
py
# Generated by Django 2.1.15 on 2021-07-14 06:18 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', ...
[ "47566176+Ash-jo121@users.noreply.github.com" ]
47566176+Ash-jo121@users.noreply.github.com
3f6b6e741838e1fbb8aef9d03e86a091b79c4e77
ad67a45e0aee6e86d2b6e931019cbbcfdfba354b
/python/furiosa-sdk-runtime/tests/test_base.py
5a2dc4aacd09649833e6ebbfafce04c118defdee
[]
no_license
ileixe/furiosa-sdk
2470537a5378a8423eac85b8057dce5921d81272
68dcfcce8596ada95e576075e730dd8fdc1242a8
refs/heads/main
2023-06-23T09:28:44.745976
2021-07-23T04:11:38
2021-07-23T04:11:38
388,044,680
0
0
null
2021-07-21T08:14:37
2021-07-21T08:14:37
null
UTF-8
Python
false
false
2,493
py
import os import random import numpy as np import tensorflow as tf from furiosa.runtime import session from tests import test_data def model_path(name: str) -> str: return os.path.dirname(__file__) + "/../npu-models/" + name MNIST_MOBINENET_V2 = test_data("MNISTnet_uint8_quant_without_softmax.tflite") def a...
[ "hyunsik@furiosa.ai" ]
hyunsik@furiosa.ai
1576d9a41714717115adfe3598e3691d2eb0a209
736e5d01098e19feaf2095d43e0729e0cd3a2c06
/mercateo/filedate_check(1).py
44236097d0cf42d4ba7948186605f175e09aca11
[]
no_license
ankurparanjpe/python-scripts
b36c45b8aed25f0084e778de2d259eb8df6dfa21
3fe7ef4f5204aeee5935dea9852fa99f9d44b5a6
refs/heads/master
2023-04-07T10:31:47.841650
2021-03-15T18:04:26
2021-03-15T18:04:26
346,092,167
0
0
null
null
null
null
UTF-8
Python
false
false
2,026
py
import ftplib from datetime import date,datetime,timedelta import requests from zipfile import ZipFile import smtplib,ssl from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from email.mime.base import MIMEBase from email import encoders import os from subprocess import call from win32c...
[ "standard@PCI045.brodosmit.de" ]
standard@PCI045.brodosmit.de
8e67b2dda78a3d23ea3feaf4e9b99eb6a8cc630e
ee1d1f674aa96b15477167b76e25bbbbe85a690c
/sound_svc.py
e041f2264f6d5d2a722863159eb1e61638a4b3a5
[]
no_license
chrisatyler/Pi-Projects
250390caf067f4c64188181f6fbaa48d3b1621aa
8ddcc0a179bec127206919ec053bd80cd6006748
refs/heads/master
2021-06-10T17:33:35.527168
2017-02-04T00:57:40
2017-02-04T00:57:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,343
py
# Import libraries used in this program import RPi.GPIO as GPIO import os, sys import time from decimal import * import math getcontext().prec = 4 # Startup message print "Preparing to monitor sound levels" # Set our pin assignments sensor_in = 18 red_led = 21 green_led = 20 #Simple sting for printing an output on ...
[ "christophereharrold@hotmail.com" ]
christophereharrold@hotmail.com
9a2b12b36a19e6267a49ac095837da37bf67e59f
c57a402f4afd29e5f7154c613089924a7192066b
/Utils/PwdUtils.py
3db463164ccd0df65874d43de83b49dac521b83a
[ "MIT" ]
permissive
avaitkus/Data-Platform-API
abdceead15a4764373da0f6fe2050af57cafc1c0
bb13e8e8854a8acd3ae5f01360e6b3166bce0c80
refs/heads/master
2023-08-14T23:31:47.959691
2018-12-11T00:41:50
2018-12-11T00:41:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
from passlib.hash import pbkdf2_sha256 def set_password(raw_password): return pbkdf2_sha256.encrypt(raw_password, rounds=200000, salt_size=16) def verify_password(password, hash): return pbkdf2_sha256.verify(password, hash)
[ "noreply@github.com" ]
avaitkus.noreply@github.com
4b20683c0e49d5935efc52e17990111568c27d6b
73758dde83d1a1823c103e1a4ba71e7c95168f71
/nsd2005/py01/day02/game2.py
13201ab13ccb3c6969428695af845f256120a340
[]
no_license
tonggh220/md_5_nsd_notes
07ffdee7c23963a7a461f2a2340143b0e97bd9e1
a58a021ad4c7fbdf7df327424dc518f4044c5116
refs/heads/master
2023-07-02T01:34:38.798929
2021-05-12T08:48:40
2021-05-12T08:48:40
393,885,415
0
0
null
null
null
null
UTF-8
Python
false
false
514
py
import random # 定义人胜利的列表 win_list = [['石头', '剪刀'], ['剪刀', '布'], ['布', '石头']] # 人机分别出拳 all_choice = ['石头', '剪刀', '布'] computer = random.choice(all_choice) player = input("请出拳(石头/剪刀/布): ") # 打印人机选择 print("计算机的选择:%s, 您的选择:%s" % (computer, player)) # 判断并输出胜负 if computer == player: print("平局") elif [player, computer...
[ "zhangzhg@tedu.cn" ]
zhangzhg@tedu.cn
e1bef1ab9a2f2cfac10e92460d610fb242c5b252
8ce094eb7ca937ebc6bf215274d94fac4476a7df
/gitconsensus/repository.py
95c82c9b83cf7ffb17cd8ac665636f7d0ab2c6fe
[ "MIT" ]
permissive
minz1/GitConsensusCLI
8eddc01ea0dcbfd8acfbef3bea57f173519e7736
a7018d1e2c790ff84bd21f185b8eaeb3f97c8dac
refs/heads/master
2022-11-15T19:57:34.920893
2020-06-29T04:24:52
2020-06-29T04:25:40
275,690,366
1
0
MIT
2020-06-29T00:06:05
2020-06-29T00:06:05
null
UTF-8
Python
false
false
18,637
py
import base64 import datetime import github3 import json import requests from semantic_version import Version import yaml # .gitconsensus.yaml files with versions higher than this will be ignored. max_consensus_version = Version('3.0.0', partial=True) message_template = """ This Pull Request has been %s b...
[ "emerytang@gmail.com" ]
emerytang@gmail.com
569aa3b9b87c7bb004260cef14824c3893f4f6cb
808b0b8238a12afeea147d6f007769d16b0594c8
/TripPlanner/branches/rb-0.4/bycycle/tripplanner/__init__.py
985e7c9f5d1e88b3b0bd508e2355e772c699caea
[]
no_license
bycycle-org/bycycle-legacy
029df89454d10d2becaf70c24389b0954c299c3b
1c66b7278d989cc37245bca44ba5191dd53d9714
refs/heads/master
2020-12-02T21:01:23.333908
2010-06-22T18:15:35
2010-06-22T18:15:35
96,243,426
0
0
null
null
null
null
UTF-8
Python
false
false
143
py
""" tripplanner This file loads the finished app from tripplanner.config.middleware. """ from tripplanner.config.middleware import make_app
[ "self@wyattbaldwin.com" ]
self@wyattbaldwin.com
1e9a225fe5733b7b760390bc1f1511e3d4fc2649
99697559d046cdd04dd9068bd518e4da4177aaa2
/Finish/H065_Valid_Number.py
887cc224b572e863ae805b6987920e3864f81620
[]
no_license
Azurisky/Leetcode
3e3621ef15f2774cfdfac8c3018e2e4701760c3b
8fa215fb0d5b2e8f6a863756c874d0bdb2cffa04
refs/heads/master
2020-03-18T22:46:35.780864
2018-10-07T05:45:30
2018-10-07T05:45:30
135,364,168
0
0
null
null
null
null
UTF-8
Python
false
false
904
py
class Solution: def isNumber(self, s): """ :type s: str :rtype: bool """ if not s: return False # strip the heading and tailing spaces of the string s = s.strip() i = 0 res = signs = eE = dot = False while i < len(s): ...
[ "andrew0704us@gmail.com" ]
andrew0704us@gmail.com
78bfd9ac8cc090b6239749085f7dcc33098e73cf
dd4b467d84aa1c06b26747a3e0c18dd9e1e52b77
/context_manager_custom.py
28ec165f730321c47bd658ca55e09953f76f9215
[]
no_license
hieptq-1904/Test_git
6d35a2017122eb999b78ca7bffa676b6ef309b14
63d7549ededec9efa53ea6290d0804068baecd62
refs/heads/master
2023-04-25T03:51:57.736145
2021-05-13T10:33:06
2021-05-13T10:33:06
367,011,600
0
0
null
2021-05-13T10:33:06
2021-05-13T10:19:21
Python
UTF-8
Python
false
false
106
py
from dict import te with te.a() as s: print(s) print('c') print(s) print(te.count()) print(te.b)
[ "tony.ng@vmogroup.com" ]
tony.ng@vmogroup.com
1f5bdaf099ea6f0dbeaf10ad8c748e900aa89e17
e4f04c827c2402440915619a51dfbf0700688398
/05Spider/2020/day06/gushiwen/gushiwen/middlewares.py
ab0bd2c32921618444b3d7868e797bd0651950a0
[]
no_license
wangxinglong74520/filename
58177cb0d1dfc262713816d175334bbd52ace3b8
3347ab61ed1cf0290c6cc431d9931fb0975a612f
refs/heads/main
2023-03-30T21:55:23.207561
2021-03-22T08:21:40
2021-03-22T08:21:40
349,773,715
1
0
null
null
null
null
UTF-8
Python
false
false
3,702
py
# Define here the models for your spider middleware # # See documentation in: # https://docs.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals # useful for handling different item types with a single interface from itemadapter import is_item, ItemAdapter class GushiwenSpiderMiddleware: ...
[ "1639837640@qq.com" ]
1639837640@qq.com
96f8a2eb60406b926a83ff11e8486515b1b71524
f23ef5f7ea28794a9578b33d19c0566848046650
/202104 - April_2021/20210403.py
8ff4fe8d304c82dcc563f35e3d8d8304accd9fbd
[]
no_license
barbaramchd/one_coding_challenge_a_day
a6b6ba87dcc648246726b3628b45b476b0d0c3f8
0dc5a97df10d148bfc1a4faf434891061774b7f9
refs/heads/master
2021-12-24T22:42:21.444664
2021-08-07T06:11:16
2021-08-07T06:11:16
236,455,606
1
0
null
null
null
null
UTF-8
Python
false
false
2,105
py
""" Longest Valid Parentheses Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. """ class Solution: def longestValidParentheses(self, s: str) -> int: longest_substring = "" opening_parenthesis = 0 closing_p...
[ "barbaramachado.dex@gmail.com" ]
barbaramachado.dex@gmail.com
74ab53846c7f95d413948f7ff2c3a206fcf660ca
d3b7a7a922eb9999f22c99c0cc3908d7289ca27e
/tests/end-to-end.py
e965fe6cbdead05f32e481356524c7034165020e
[ "Apache-2.0" ]
permissive
g3l0o/plaso
b668203c2c7cf8799a1c12824ee1bdc8befd3980
ae29d853a6bcdd1530ce9320a3af7b3f122941ac
refs/heads/master
2020-12-25T20:31:08.928709
2016-07-22T20:00:33
2016-07-22T20:00:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
41,110
py
#!/usr/bin/python # -*- coding: utf-8 -*- """End-to-end test launcher.""" from __future__ import print_function import abc import argparse import difflib import logging import os import shutil import subprocess import sys import tempfile try: import ConfigParser as configparser except ImportError: import configpa...
[ "joachim.metz@gmail.com" ]
joachim.metz@gmail.com
d46ec2cdd661faa6e8fdcff5ee945c17a044cb26
7e4b4633fab4cc1dc030d69fa1c5bd335d655915
/problems.py
70ea59f70958cc5fd799b2a5153d09cd644391df
[]
no_license
jmockbee/reviewquiz1
109e19a86659b52a34f551760766d23a240f60f3
c3a20e29a591b7d941ab5659456accf4b010b1b2
refs/heads/main
2023-06-30T09:38:27.721991
2021-08-05T01:23:42
2021-08-05T01:23:42
392,862,267
0
0
null
null
null
null
UTF-8
Python
false
false
356
py
bill = 47.28 tip = bill * 0.15 total = bill + tip share = (total/5) print("Each person needs to pay:" + str(share)) numerator = 10 denominator = 10 result = numerator / denominator print(result) word1 = "How" word2 = "do" word3 = "you" word4 = "like" word5 = "Python" word6 = "so" word7 = "far?" print(word1, word2...
[ "mockbee1000@gmail.com" ]
mockbee1000@gmail.com
a4687640887e3eaa056be17102156fb6c73301a5
71ef2ddc4a10c9f6be7b938dadbd25bb5accbe89
/bots/MyBot_alt2/MyBot_alt2.py
c5bd7445daa98e9422d2b37244815251b1dfaf0c
[]
no_license
NicoKNL/halite3
e06b72e68c102d5cf863b6efd7c2ef5b0c161ea2
60ccd9a36e13b447a481e242762379d38e71c1b1
refs/heads/master
2020-04-07T22:01:18.804779
2018-12-20T00:47:17
2018-12-20T00:47:17
158,751,122
0
0
null
null
null
null
UTF-8
Python
false
false
14,186
py
#!/usr/bin/env python3 # Python 3.6 # Import the Halite SDK, which will let you interact with the game. import hlt # This library contains constant values. from hlt import constants # This library contains direction metadata to better interface with the game. from hlt.positionals import Direction, Position # This l...
[ "klaassen.nico@gmail.com" ]
klaassen.nico@gmail.com
15a1a380b457e89c7c753d782d86d74906266671
fcea076f585db7b17664a12f72e2d49a04df9896
/blog/migrations/0001_initial.py
18f5fd6a64de41a5af5d0698716341cd9876a458
[]
no_license
SadishGautam/Jaggasale
9eefcd0c539f906d453344660c3055f33b3f11d7
da25e56ffe255a6a3787ee02540a453516748db2
refs/heads/master
2023-05-11T06:02:07.556950
2021-05-12T00:32:23
2021-05-12T00:32:23
318,173,047
0
0
null
null
null
null
UTF-8
Python
false
false
836
py
# Generated by Django 3.1.1 on 2021-03-21 14:31 import ckeditor_uploader.fields from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Blog_News', fields=[ ...
[ "Sadish.gautam09@gmail.com" ]
Sadish.gautam09@gmail.com
d63071059d2af8811674bbe2648d6dbaba74f566
cd687955e6ff5565f802703805a2670abbee7f6f
/progs/Form_v1_clientsidepagination/form/migrations/0004_auto_20171121_0736.py
29e48fa10c0c4609bfce67345275ddf95d58fffc
[]
no_license
gopishettyshashikanth/python_programs
ce11112db8a3b64349b9f1e5ebb3d8daf0294c07
98084ef31a71e10c02da525cffe0a5f775140e03
refs/heads/master
2023-05-31T00:24:14.329478
2019-09-16T05:24:07
2019-09-16T05:24:07
110,864,203
0
0
null
2021-06-10T20:06:52
2017-11-15T17:22:40
JavaScript
UTF-8
Python
false
false
474
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('form', '0003_auto_20171121_0721'), ] operations = [ migrations.AlterField( model_name='usercategory', ...
[ "noreply@github.com" ]
gopishettyshashikanth.noreply@github.com
71c75ca7209b88ffee2c89724feb16a5d0991531
92d0f8eb81aa5325dc5887de25f6ef4b423dfe18
/tests/conftest.py
2dc9f277560f854ce29d7e7d1e0008c2fdae5687
[ "Apache-2.0" ]
permissive
kbakk/ansible-role-nfs
bac297b811632794032c3f6f416dd32204409f52
780a557798ef78435a92c51132d301444404bfaa
refs/heads/master
2020-03-20T10:00:26.773773
2018-06-23T12:29:44
2018-06-23T12:29:44
137,355,991
0
0
null
2018-06-14T12:34:27
2018-06-14T12:34:27
null
UTF-8
Python
false
false
686
py
import os import pytest import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') @pytest.fixture(scope='module') def os_map(host): os_fam = host.ansible('setup')['ansible_facts']['ansible_os_family'] os_f...
[ "kbakk@users.noreply.github.com" ]
kbakk@users.noreply.github.com
1aed2d3abeb6d420798dbb537ee3ea42775e0c8a
d933afccc627ff94b3eae4abac6e45f66d01c712
/deep-learning-udacity/codes/shamir-alavi/L3-15_softmax.py
fa8a3d620b4856853264a1cf8bd9b2f9f5bac55f
[]
no_license
dg1223/ai_bangladesh
719b95f82f80a6edc3c1ac151338f56e5838a8a3
de7abf36ebf8519f6a93095e4c430aca7f365f64
refs/heads/master
2020-09-22T04:18:26.573590
2019-12-24T23:06:21
2019-12-24T23:06:21
225,045,687
3
0
null
null
null
null
UTF-8
Python
false
false
355
py
import numpy as np # Write a function that takes as input a list of numbers, and returns # the list of values given by the softmax function. def softmax(L): softmax_proba = [] for i in range(len(L)): probability = np.exp(L[i]) / np.sum(np.exp(L)) softmax_proba.append(probability) ...
[ "alavi1223@hotmail.com" ]
alavi1223@hotmail.com
a6d6962bd3dab10fa4df29e34e5373b526aa75e8
63d3ebe4dcc514c2ec74e3b584cf80e9dcaab293
/flexmatcher/__init__.py
ab5e4bb8a14637c3097055e0e350e7f009dafa83
[]
no_license
LeTheTai1312/TichHopDuLieu_N14
2e212e9c8d689a3ec0fd6a669477fd27a874a8b5
a04818c609ad9b995bf1b191de635aa22f5fca61
refs/heads/main
2023-06-04T01:05:33.864608
2021-06-14T10:04:37
2021-06-14T10:04:37
376,772,606
0
0
null
null
null
null
UTF-8
Python
false
false
282
py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function from __future__ import division from flexmatcher.flexmatcher import FlexMatcher __author__ = """BigGorilla Team""" __email__ = 'thebiggorilla.team@gmail.com' __version__ = '0.8.0'
[ "62357036+LeTheTai1805@users.noreply.github.com" ]
62357036+LeTheTai1805@users.noreply.github.com
83eed61d269a16f0f7d5d8a1e50b90709adb1a07
d7824fec6c6ecc50af55093740cab05dfda33a1a
/devel/lib/python3/dist-packages/turtlebot3_teleop/__init__.py
071b5ff61abd0af6229fa2b9bd16cb71427b31d8
[]
no_license
dlerner97/path_planning_robot_maze
949264421aa4814932a35d839ae4e50eb81a63c9
8a38ced29313bd136c4f229fff7be9c6f23f0ecb
refs/heads/main
2023-04-22T11:40:03.609550
2021-05-10T03:27:02
2021-05-10T03:27:02
344,199,204
1
0
null
null
null
null
UTF-8
Python
false
false
142
py
/home/dani/Documents/ENPM661/path_planning_robot_maze/devel/.private/turtlebot3_teleop/lib/python3/dist-packages/turtlebot3_teleop/__init__.py
[ "dlerner97@gmail.com" ]
dlerner97@gmail.com
5e18141419b191b7774c5b4df05eafde7bb1e49a
d9504746c96c9e03c70db23428813da22069f2cb
/migrations/versions/10723b632a87_.py
fa1a2354cfeca51f952c847345f453a56f4da06b
[ "MIT" ]
permissive
SevereOverfl0w/MCDirectory
c7a40f609dccfafa9fd0ff1e4cd3b44db29a6253
443a44a01998938571cda8e3bfecbad7b81269c1
refs/heads/master
2020-03-30T06:39:24.309162
2013-12-18T13:38:23
2013-12-18T13:38:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,036
py
"""empty message Revision ID: 10723b632a87 Revises: 3d7ce850941c Create Date: 2013-11-12 22:18:26.482191 """ # revision identifiers, used by Alembic. revision = '10723b632a87' down_revision = '3d7ce850941c' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
[ "overfl0w@narna.co" ]
overfl0w@narna.co
af15f81dafcf12aeca3ce23323e2c78b0d7ac525
4ac9330ba6616d4cfe7b9bd8937a6a309c89dd14
/fixture/mail.py
c64f34a3b30f5cd5b13a6c54161a28ea9e8df161
[]
no_license
MrnRezanova/Python_Mantis
2587d3b9e7891d4a3cc1677b46aeda630416411b
33f0e93ed75477dcc7230574c175f0c4909e3297
refs/heads/main
2023-08-28T06:13:33.411331
2021-10-23T15:32:54
2021-10-23T15:32:54
419,301,476
0
0
null
null
null
null
UTF-8
Python
false
false
919
py
import poplib import email import time import quopri class MailHelper: def __init__(self, app): self.app = app def get_mail(self, username, password, subject): for i in range(5): pop = poplib.POP3(self.app.config['james']['host']) pop.user(username) pop.pass_(p...
[ "m.rezanova@gemark.ru" ]
m.rezanova@gemark.ru
c3e860d10932c3d29943f4d48e4e7a4f0a10de48
8d8c276f32dbc3917bb64fc5d1d0e83e5c4884ce
/interviewBit/arrays/firstMissingNumber.py
377b2c65286fefd588d6159a608e14e311fab054
[]
no_license
UddhavNavneeth/DSA-practice
a29b1ca27d72a1af36fb9e4d2e515ac00c99eb38
9f7d03145a8f026420a7e4672098f7c7a0361570
refs/heads/master
2021-06-22T08:09:08.590179
2021-03-12T07:11:10
2021-03-12T07:11:10
204,329,462
3
3
null
2020-10-01T07:06:15
2019-08-25T17:47:34
Java
UTF-8
Python
false
false
1,945
py
# NOT DONE BY ME THIS IS FROM SOLUTION PROVIDED IN COMMENTS # Link to the question: # https://www.interviewbit.com/problems/first-missing-intgerer/ # ESSENTIAL TO KNOW "MARK PRESENCE OF ELEMENT X" LOGIC class Solution: # @param A : list of integers # @return an integer def firstMissingPositive(self, A): # ...
[ "uddhav.navneeth@gmail.com" ]
uddhav.navneeth@gmail.com
ebd0772e3365bbe6a584056283e29f916a35c811
3196e5157cd7d2bffb6f810ec3643be18e1c5e04
/simon.py
0324f726946347c470b27a2469594348575f7ce8
[]
no_license
cam-rod/simon-pi
12dae0c74cab3fbe336cd81f371ad2718720999f
69b16e23711ed855b1dc1a00649fd2fb29459d4a
refs/heads/master
2020-06-05T02:24:41.860711
2019-06-17T14:48:51
2019-06-17T14:48:51
192,281,448
0
0
null
null
null
null
UTF-8
Python
false
false
5,604
py
# Cameron Rodriguez # June 17, 2019 # This game allows a user to play Simon on a Raspberry Pi. """ Data Dictionary all_leds: list: contains the numbers of all the GPIO pins that power the LEDs all_buttons: list: contains the numbers of all the GPIO pins that take input from the butttons sequence: list: a randomly gen...
[ "rod.cam2014+dev@gmail.com" ]
rod.cam2014+dev@gmail.com
eab63574f4dcecacf3e31ea1d9388a3c31a188e0
88966ba71258c6e7163b3a648bed3fe773547e46
/create_database.py
ccc91ddbfb840fec4b25054c7a0cf2875734a98a
[]
no_license
mauricioobgo/mvc_mauricio_obando
d4eaed8f05c29e38be57231f47337e87cd7be9a9
729c83d84bff374e155b5bf1d0e4fe66400643b0
refs/heads/master
2022-07-19T06:53:18.193798
2020-05-20T18:43:35
2020-05-20T18:43:35
265,653,078
0
0
null
null
null
null
UTF-8
Python
false
false
143
py
from app_index import database import db.user import db.book import db.comments database.create_all() print("database created with success...")
[ "mauricioobgo@gmail.com" ]
mauricioobgo@gmail.com
d5417d605f2204782ab1b6dd38bcb7262adc6354
99ae6372a5a5518543f9863a33ab21218a3a0768
/tests/test-all.py
31554599186717cf11032773e371545ac5143bde
[]
no_license
DANS-KNAW/parthenos-widget
7b3578a37402069e99da8eaf0d8cf52f32c12231
b549b76b7f16f1338cd80c6af7952963b3a8dd63
refs/heads/master
2022-07-17T23:07:25.238193
2021-11-03T08:36:55
2021-11-03T08:36:55
84,067,894
0
3
null
2021-11-03T08:36:55
2017-03-06T11:56:28
JavaScript
UTF-8
Python
false
false
684
py
#!/usr/bin/python from __future__ import print_function, absolute_import import sys import os sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../'))) #import pytest from tests.config import MATRIX from parthenos.core.datatojson import * import uuid import httpretty import requests import panda...
[ "4tikhonov@gmail.com" ]
4tikhonov@gmail.com
b628ccb6e816caed898e1c576e2f650c75fb2fdc
223c4821db9fb16fb2695fc238e93b6cd45f1735
/rand_init.py
6ab9e8c8894e5a98e2dae15fe4538cf1f3b986bf
[]
no_license
DJ73/ShellCrypt
3ad0e91dbe955ad0fa30d616f863ea0e6446fe05
a3a360ea9a290c9f9daeddefb23116ba47417a85
refs/heads/master
2023-08-28T23:39:21.173727
2021-10-31T17:58:28
2021-10-31T17:58:28
294,967,073
0
3
null
2021-10-31T17:58:29
2020-09-12T15:07:00
Python
UTF-8
Python
false
false
186
py
# generate random integer values from random import seed as sd from random import randint def gen(seed): sd(seed) while True: value = randint(0, 26) yield value
[ "noreply@github.com" ]
DJ73.noreply@github.com
69e8a54db83cd07fa4005fa7153ae12482392824
86eada7154a99a22fad685b4a7356718ed3a830a
/org_work/migrations/0007_auto_20180501_0638.py
ddc3913f28775a4e31f050fb64cf382459b63dc9
[]
no_license
ahomentc/gameCoop2
d1cf704cbcb1ed1d416d3310def62522e371cce0
6068cf7e4b9fba0fe2f5a7d6747146ada90390f5
refs/heads/master
2021-04-18T21:30:07.552185
2018-11-24T08:15:15
2018-11-24T08:15:15
126,461,344
0
0
null
2018-10-19T08:10:47
2018-03-23T09:17:26
HTML
UTF-8
Python
false
false
595
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-05-01 06:38 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('org_work', '0006_auto_20180428_0820'), ] operation...
[ "ahomentc@gmail.com" ]
ahomentc@gmail.com
dde07929f74ea85ebccd3d70da86cf394e93fb13
6c1691eb80c4cdb98d5cb8d7ec5b0d3c11a08c87
/desafio074.py
292336bed8feb5478721a4ebffc7d2f8803d63c0
[]
no_license
lodi-jesse/aula_python
52d26edc8044e569f5480ba2220a03a233dd967a
791d85a3804321f1fb0e0d8673c8c1a3b4193667
refs/heads/main
2023-03-11T18:10:56.282357
2021-02-28T05:12:22
2021-02-28T05:12:22
343,025,062
1
0
null
null
null
null
UTF-8
Python
false
false
348
py
import os from random import randint os.system('cls') numeros = ((randint(1,10)),(randint(1,10)),(randint(1,10)),(randint(1,10)),(randint(1,10))) print('Os valores sorteados foram: ',end='') for n in numeros: print(f'{n} ',end='') print(f'\nO maior valor sorteado foi {max(numeros)}') print(f'O menor valor s...
[ "noreply@github.com" ]
lodi-jesse.noreply@github.com
cbe5fcfebd86005da1e5423f1e9442ad8e4d6add
df475886cbd050884c3661ced12d1075d5b3da92
/fcblog/app/errors.py
aaf04ba8b7804ca6e9a1aa7dfaa436c3f66f35c3
[ "MIT" ]
permissive
francoiscolombo/sample
f722341380fdd2fc71b4647eea2b5bb3116c8abb
87a1943b815da8d8c3772758b8181df27242d216
refs/heads/master
2022-09-21T15:01:59.031570
2020-03-12T09:58:17
2020-03-12T09:58:17
245,798,323
1
0
MIT
2022-09-16T18:19:46
2020-03-08T11:00:43
Python
UTF-8
Python
false
false
271
py
from flask import render_template from app import app, db @app.errorhandler(404) def not_found_error(error): return render_template('404.html'), 404 @app.errorhandler(500) def internal_error(error): db.session.rollback() return render_template('500.html'), 500
[ "francois_colombo@yahoo.fr" ]
francois_colombo@yahoo.fr
06addf9a3de52d49cc7fba98acb67212c16517a1
adf2d484cc7032c98d14aeda0d78730e0c613930
/python/AA/k_measure_problem.py
a1fad5bbc2a51417afffb1540fe45cede5d3aacd
[]
no_license
jhg3522/Algorithm_Study
aaefd44e5f7c510186602ef1ff0786750cc69517
00c411cd15fce0da7f17f34ccb806fd7cf20ef58
refs/heads/master
2023-02-15T05:11:38.332685
2021-01-08T15:30:24
2021-01-08T15:30:24
296,337,899
0
0
null
null
null
null
UTF-8
Python
false
false
404
py
import sys #sys.stdin=open("input.txt", "rt") n,m=map(int,input().split()) # 여러개의 입력을 받을때는 map을 써야하고 띄어쓰기로 구별할때 split() 써야함 cnt=0 for i in range(1,n+1): #약수는 1부터 구해야 하므로 if(n%i==0): cnt+=1 if cnt==m: print(i) break else: #break없이 정상적으로 끝내면 else문이 실행됨 print(-1)
[ "jhg3522@kookmin.ac.kr" ]
jhg3522@kookmin.ac.kr
9123c8acc110b0930239e6e84a61e5dc899fd8f3
1ffde96b8fdbb53c2e8c31cac539751b0b70032f
/app.py
7fc4ac989ced98cb1b62bb538247b85f69339cb3
[]
no_license
krung2/WebProgramming_test
eae227b8f102d3111d811372d832afad4296240a
32be019d5d26316c59da464e287a2f4fcce987af
refs/heads/master
2023-04-25T06:14:43.945090
2021-05-13T04:33:32
2021-05-13T04:33:32
366,927,844
6
0
null
null
null
null
UTF-8
Python
false
false
2,549
py
import pymysql import os import requests, json from flask import * from flaskext.mysql import MySQL app = Flask(__name__) os.environ['APP_SETTING'] = 'settings.cfg' app.config.from_envvar('APP_SETTING') mysql = MySQL( cursorclass=pymysql.cursors.DictCursor ) mysql.init_app(app) @app.route('/') def main(): ...
[ "jungbin4337@dgsw.hs.kr" ]
jungbin4337@dgsw.hs.kr
71a5c19173ba5d7fff6a672bc740bfb2be5740e7
6c3d259cf90cf110ca1e14cd88b2b41e143072c6
/snippets/my_cifar_cnn.py
0b9bba6e1ae85b0195a155b95e49c399972f6bc4
[]
no_license
mrrizal/Pytorch_scholarship_challenge
ee3e7e325558a1b0ee0299be1444602f5875bca4
b73d53e3b8c429eac27fdd83ae1b3bbf4b174419
refs/heads/master
2020-04-07T02:46:35.827558
2018-12-10T09:22:20
2018-12-10T09:22:20
157,989,345
0
0
null
null
null
null
UTF-8
Python
false
false
6,342
py
import torch import numpy as np from torchvision import datasets import torchvision.transforms as transforms from torch.utils.data.sampler import SubsetRandomSampler import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from my_cnn_v2 import Cnn class Net(nn.Module): def __init__(self)...
[ "rizalubuntuuser@gmail.com" ]
rizalubuntuuser@gmail.com
f0d1e9cd3a11b5165bb8bf6e4f5fa9bb5e8449de
09ceac296c625de4f5ca3b012fec5ec24a164502
/ve4hp/bin/mturk
7f7662a917c1cd5142fb9859ebb58970d515b07e
[]
no_license
ShinyRyo/HPcalc
94bafb0415cc0e3ab318561c5730ce4d5ff387f6
46ae8bd3fb5866ab0cadb80ca92b346fdd0335d1
refs/heads/master
2022-04-20T12:39:37.401445
2019-09-12T23:10:51
2019-09-12T23:10:51
255,493,097
0
0
null
2020-04-14T02:42:58
2020-04-14T02:42:57
null
UTF-8
Python
false
false
19,196
#!/mnt/d/desktop/program/apps/heroku-django/HPcalc/ve4hp/bin/python3 # Copyright 2012, 2014 Kodi Arfer # # 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 # witho...
[ "tan0ry0atr002@gmail.com" ]
tan0ry0atr002@gmail.com
82dff9b5a80ff76ab3b5cc330c972f87777fd14b
36934e99c4632370a83e7ed414446886deca2388
/address/serializers.py
d78ffa14a08d604d0b8244526e72a115f7dec252
[]
no_license
SDeVPro/umarketuz
a4dae81e3dd28921d52f4c6c861b7633e8794814
fde57849ee0f1c97c18a59be62f1cf390fe0a6c4
refs/heads/main
2023-06-27T23:29:33.320399
2021-07-31T05:22:29
2021-07-31T05:22:29
391,262,785
0
0
null
null
null
null
UTF-8
Python
false
false
531
py
from rest_framework import serializers from .models import SellerAddress, CustomerAddress class SellerAddressSerializer(serializers.ModelSerializer): url = serializers.HyperlinkedIdentityField(view_name='selleraddress-detail') class Meta: model = SellerAddress fields = '__all__' class Cust...
[ "web_software_developer@mail.ru" ]
web_software_developer@mail.ru
cb5b6881b67759c738a71b69a9741db540e63aa3
5b76e2b3139bbc9eff00f62582a1e1b301e6af24
/content based.py
3fab2c33c3be08beac39cb4854735b46fd68829f
[]
no_license
nguyenlinhvn512/Content-Based-Filtering
1dd33567750c1fe3c8f81743a463f3561ae40c45
5e46bcaf23acad80c2e404491fac164e99495b98
refs/heads/main
2022-12-30T16:58:52.461256
2020-10-12T11:25:38
2020-10-12T11:25:38
303,369,252
0
0
null
null
null
null
UTF-8
Python
false
false
3,973
py
#Dataframe manipulation library import pandas as pd #Math functions, we'll only need the sqrt function so let's import only that from math import sqrt import numpy as np import matplotlib.pyplot as plt #Storing the movie information into a pandas dataframe movies_df = pd.read_csv('movies.csv') #Storing the us...
[ "noreply@github.com" ]
nguyenlinhvn512.noreply@github.com
116cb7f1f3ff4aae9cb1c5284401cf68dda66329
338184b4359bf0477375f62c173559ad198eb141
/sw.py
37fea1bbd62a15e8a3ce9cb53ceec40f6f6f2c81
[]
no_license
Abhishek-kumar09/Railway-Reservation-Project
6a0fca6ebbab8ff26fe1b6b74092f5b0446d4aa6
91eb6ae6f3bf1170bf2a040ce552d659a4dcec0d
refs/heads/master
2023-02-07T10:25:24.204209
2021-01-02T13:11:20
2021-01-02T13:11:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,059
py
from tkinter import * def main_account_screen(): main_screen = Tk() # create a GUI window main_screen.geometry("300x250") # set the configuration of GUI window main_screen.title("Account Login") # set the title of GUI window # create a Form label Label(text="Choose Login Or Register", bg="blue", width=...
[ "abhimait1909@gmail.com" ]
abhimait1909@gmail.com
c00bff8a97f2f0cd605b081aab99214bd019e9fd
fe42f1c1eefb2069eda1dd98821ba6049fb4f01a
/ML/P3DataAnalysisPandas/P4Combining.py
30cbbcdbd467feed161647f9dcf1775382909e7d
[]
no_license
hvn2001/LearnPython
c1b13f6685e6e62b3c9b612e88e624925f43eb6e
323595df8d69e84873f74819a36b5eb36b017773
refs/heads/master
2021-03-30T06:26:55.110963
2020-04-10T16:13:36
2020-04-10T16:13:36
248,025,126
0
0
null
null
null
null
UTF-8
Python
false
false
1,906
py
import pandas as pd print('------A. Concatenation------') df1 = pd.DataFrame({'c1': [1, 2], 'c2': [3, 4]}, index=['r1', 'r2']) df2 = pd.DataFrame({'c1': [5, 6], 'c2': [7, 8]}, index=['r1', 'r2']) df3 = pd.DataFrame({'c1': [5, 6], 'c2': [7, 8]}) concat = pd.concat([df1, df2], axi...
[ "hoangvu1991uit@gmail.com" ]
hoangvu1991uit@gmail.com
40c1b8c3ff03082a68e3d906964553c4da5afa44
0985dfc7b53f6bb80a6ee9c7b9cad4d7c31d2013
/dform/admin.py
bcef11df218893cdb425e1167f9e615755c14996
[ "MIT" ]
permissive
yonghuming/django-dform
6f237020573f5e5a5e1d8ed1a58ed5b944f31aef
3a8cb2ee61b5ea4719e6fc3bfb9ede66f468831e
refs/heads/master
2021-01-17T06:30:52.467715
2015-10-21T19:22:03
2015-10-21T19:22:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,128
py
from django.contrib import admin from django.core.urlresolvers import reverse, NoReverseMatch from awl.admintools import make_admin_obj_mixin from awl.rankedmodel.admintools import admin_link_move_up, admin_link_move_down from .fields import FIELD_CHOICES_DICT from .models import (Survey, SurveyVersion, Question, Que...
[ "ctrudeau@arsensa.com" ]
ctrudeau@arsensa.com
e6e034f452a62afe559d778611e458476d626741
c8e11705a8010405a0d76aaeff35709313196994
/Todo/settings.py
72a55b5115b0a6f29d0ffd59c7a78062a198efba
[]
no_license
shubham-137/todo
746a3eae3bd7eea69ef754b8519289b17b209145
b824c2d766fe2d370ff4cafc30b74526f6a90e32
refs/heads/master
2022-12-19T10:20:55.913301
2020-09-19T09:22:00
2020-09-19T09:22:00
296,792,053
0
0
null
null
null
null
UTF-8
Python
false
false
3,141
py
""" Django settings for Todo project. Generated by 'django-admin startproject' using Django 3.1. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib impo...
[ "patilshubham1698@gmail.com" ]
patilshubham1698@gmail.com
5116c37c6a53c5ffd85d3a98f02c291f82c145d2
03389f9591ce06e23757d5f086d1f58072bfe21a
/app/followers/fetch_followers.py
7a9122262d9df193a43d7c8e824b621c68f69d3d
[]
no_license
poberherr/twitter-stats
da3d301699bdf9ba9653ab37d6108d73a0b3e808
cfb887cd410d5490c182cf9d3bbc272cb6ea47fd
refs/heads/master
2021-01-10T06:20:18.603619
2016-02-25T12:46:40
2016-02-25T12:46:40
52,022,458
0
0
null
2016-02-24T20:51:28
2016-02-18T16:44:19
Python
UTF-8
Python
false
false
1,299
py
import tweepy from app.twitter_api import twitter_api from app.followers.models import Followers def fetch_and_create_followers(user): # For now we assume the followers don't change if user.is_follower_fetched: print('User was already in DB :', user.screen_name) follower_ids = retrieve_follower...
[ "patrick.oberherr@gmail.com" ]
patrick.oberherr@gmail.com
e039e3d38142077644be74d6bef41967df1bbb00
c2582163f6bb7c1996f702ea10e8935de710587a
/TerVer_LAB_4.py
3af9e8b0c93bc6af5e95ddfa5a43a82980d488af
[]
no_license
fixik338/Ter_ver
918859e9b2adc07d30766a1baadb60668ab8bdd0
1ee1c63342dc663fabdd6783e4e3d5c4d19d98e6
refs/heads/master
2021-02-06T21:38:32.262605
2020-05-29T07:18:32
2020-05-29T07:18:32
243,950,233
0
0
null
null
null
null
UTF-8
Python
false
false
6,493
py
import numpy as np from math import * from PIL import Image import matplotlib.pyplot as plt image1 = Image.open('images/srd_kdr.png') image2 = Image.open('images/dispisya.png') image3 = Image.open('images/Matozha.png') def C_bezrepeat(n, m): return factorial(n) / (factorial(n - m) * factorial(m)) def binom(n, ...
[ "0firter0@gmail.com" ]
0firter0@gmail.com
31fdbbc045069d508cdbae75adb41f6ea4a73e48
7a15cf7b79093501deb1c63783f5372159640943
/code.py
8068cd8a72e3dbf63b2ae65b4a71fb29382bb5c2
[]
no_license
sharp03/TICK-stack-docker-setup
de1cc909e58145a892e7a833b342ee3bc484522f
a693917164781ef81c3f1fabf79fc61251d1dea6
refs/heads/master
2020-04-24T19:45:43.737663
2019-03-25T13:05:48
2019-03-25T13:05:48
172,222,350
0
0
null
null
null
null
UTF-8
Python
false
false
36,868
py
from random import randint from numpy import array from numpy import argmax from numpy import array_equal import tensorflow as tf import numpy as np import random import math #from matplotlib import pyplot as plt import os import copy import time from influxdb import InfluxDBClient from tensorflow.python.layers import...
[ "root@instance-2.us-east1-b.c.ambient-odyssey-225004.internal" ]
root@instance-2.us-east1-b.c.ambient-odyssey-225004.internal
201d528f01419e9342de599c7b739aa878027e60
fbd19c4627fd800a1d32fc2d0b5eebc5c3989d51
/Algebra2/June2016/question3.py
1c0e34511c34b66227b9a0e636f28b066a65af51
[]
no_license
AhhhHmmm/Regents-Problem-Generator
147df493ff70f7795e9620336691642a18705d70
12e1b21cad6c1c9f6dcc9231d4e7588998b72794
refs/heads/master
2021-04-28T16:15:30.738142
2018-02-19T03:41:37
2018-02-19T03:41:37
122,011,742
0
0
null
null
null
null
UTF-8
Python
false
false
2,298
py
import random import string import pyperclip def generateQuestion(): problemText = '''\paragraph{\\arabic{qnumber}.} \\hspace{-4mm} Given $i$ is the imaginary unit, $\\displaystyle (NUMBER1NUMBER2LETTER1i)^2$ in simplest form is: \\\\ { \\renewcommand{\\arraystretch}{2.0}\\begin{tabular}{p{2in} p{2in}} \\circle...
[ "cary.e.riina@gmail.com" ]
cary.e.riina@gmail.com
3eb9f8311c19907bd05c497e4d9e866c946320af
53c1f1e3fa4cbba4466a747fb136e6927def5bbe
/PollSite/urls.py
f88d1483bf5eb98680fb6482fca8bae1f498d1ab
[]
no_license
atulya22/polling-app
fed4515133416b1a3f2e05daeb306328e3072de4
856885d49864ca2eb9ca5c8118e4699988b73b78
refs/heads/master
2022-10-12T06:22:47.864919
2020-06-12T02:59:00
2020-06-12T02:59:00
267,447,253
0
0
null
null
null
null
UTF-8
Python
false
false
801
py
"""PollSite 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-base...
[ "atulya.shetty@hotmail.com" ]
atulya.shetty@hotmail.com
3e91fc3a8877a7a3cadfa72e6a20735be6943aa6
1a2991d366ea6ed037e1cae7c9b8ac434d8ae7a7
/analyze_critical_cache_size_fib_1a.py
dbaae94dcbe34ebebde82293a48e986924704a51
[]
no_license
benjamingarrett/table_maker100
15c91be26e666894f3a5b4df0175e7a3a5d8fab9
fd2725188ed8459950f112a312de7e5970f4cb5f
refs/heads/master
2022-06-16T14:48:59.027859
2022-05-26T23:52:06
2022-05-26T23:52:06
188,909,736
0
1
null
null
null
null
UTF-8
Python
false
false
6,375
py
import csv,os,sys,matplotlib as plt from math import log import matplotlib.pyplot as plt import numpy as np from scipy import stats def running_max(data,n0,n2): running_max_x = [data[n0][0]] running_max_y = [data[n0][1]] j = n0 while j<=n2: running_max_x.append(data[j][0]) if data[j][1] > running_max_...
[ "bgarrett@temple.edu" ]
bgarrett@temple.edu
e1e5622cf3c28204c5ae5bd30842576ad64cd4c5
df936ab5dea329cf5f7cb8a6c8f8313cf8f3230c
/test_framework/.ipynb_checkpoints/constants-checkpoint.py
df90dca2ff2414a07b615bc8359efadd67861c6e
[ "MIT" ]
permissive
chuck-b/ml_occupancy_model_comparison
e2350f8398eef122c81646d98b8888d118fb6ad5
c0e13ebc0fdfd0e81259ff8755923470e7f11abe
refs/heads/master
2020-04-18T08:09:35.812765
2019-05-24T15:16:06
2019-05-24T15:16:06
167,386,623
0
1
null
null
null
null
UTF-8
Python
false
false
310
py
COLUMN_VARIABLES = ['M_t', 'H_t', 'W_t'] RAW_DATA_DIRECTORY = '/home/brent/projects/occupancy_state/data' RAW_DATA_DIRECTORY = '/Users/chuck/Documents/PhD_Work/home_occupancy_state/data' TRAIN_TEST_SPLIT_VALS = {'test_1':'2017-08-06', 'test_2':'2017-01-15', 'test_3':'2017-05-14', 'test_4':'2016-10-16'}
[ "30674217+chuck-b@users.noreply.github.com" ]
30674217+chuck-b@users.noreply.github.com
0c952fc3aa4aa09f6feda7658c8d267c80f1993a
c9a5b96ee2ccfddc08d10b46fd164ef49984e910
/python/binarytree/102_binaryTreeLevelOrder.py
3dfe2b5d2d4bc605f45465af5948bc85fb3b9755
[]
no_license
Davidhfw/algorithms
743e2c9bb891d289882c565c30a86b591c014f3f
cb6491f3be750fd0be6ee6c9eba14fc441e870b2
refs/heads/master
2023-03-07T19:48:47.583112
2021-02-24T14:18:22
2021-02-24T14:18:22
278,771,931
1
0
null
null
null
null
UTF-8
Python
false
false
2,183
py
# 题目描述 # 给你一个二叉树,请你返回其按 层序遍历 得到的节点值。 (即逐层地,从左到右访问所有节点)。 # 示例: # 二叉树:[3,9,20,null,null,15,7], # # 3 # / \ # 9 20 # / \ # 15 7 # 返回其层次遍历结果: # # [ # [3], # [9,20], # [15,7] # ] # 解题思路: 1 广度优先遍历: 将每一层的节点加入到队列中, 遍历队列,将值加入列表中 # 解题思路2: 深度优先遍历, 将每一次的结果加入到列表中,并记录列表层数,实现对树的层次遍历 # Definition for a binary...
[ "wuhaifenger@163.com" ]
wuhaifenger@163.com
b3e5a17f360ef8e8b663ce5a0ab75242da5653b7
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/coverage-big-2633.py
5aadfd5c6ad8f97ff1c98cd44fa7abe439d9a7dd
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
13,350
py
count:int = 0 count2:int = 0 count3:int = 0 count4:int = 0 count5:int = 0 def foo(s: str) -> int: return len(s) def foo2(s: str, s2: str) -> int: return len(s) def foo3(s: str, s2: str, s3: str) -> int: return len(s) def foo4(s: str, s2: str, s3: str, s4: str) -> int: return len(s) def foo5(s: str,...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
eccccd053ebbb0f41606bb46dd008d8a9db4b5c7
233bf4637fc9d59038f2ede3c9d634356d403498
/estocastica/estadisticaConceptos/env/Scripts/bokeh-script.py
3212c78602142ac8410ce974cc7f5077b8f87748
[]
no_license
nanoDevep/PythonCoursesPlatzi
d89d186fed418ae690ddb385da0dfcd2bd4e3a15
0d6865013d3515e7dd98d2c63e31b4cbd7816015
refs/heads/main
2023-03-06T02:48:23.509211
2021-02-18T14:04:28
2021-02-18T14:04:28
340,063,628
0
0
null
null
null
null
UTF-8
Python
false
false
1,031
py
#!c:\users\alcum\onedrive\documents\pythonpro\estocastica\estadisticaconceptos\env\scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'bokeh==2.2.3','console_scripts','bokeh' import re import sys # for compatibility with easy_install; see #2198 __requires__ = 'bokeh==2.2.3' try: from importlib.metadata import distri...
[ "nanodevep@gmail.com" ]
nanodevep@gmail.com
bf907fe38c4e0e7f7ff395d2e45c359898045560
8c7c48b9c3e00309730452ac12c63d7f09ed5411
/Mix/st002 - sign.py
b7b575c5b5c099ae2b5067ca2973c38c9d3798a6
[]
no_license
eugennix/python
dfe12bdb9b7a4e0d5d33722235aca02f1eb45caf
43fdbf0565080abe296a8c93cef5142a57e77be4
refs/heads/master
2023-05-11T23:30:42.080518
2023-04-30T09:36:31
2023-04-30T09:36:31
211,489,061
0
0
null
null
null
null
UTF-8
Python
false
false
963
py
""" Напишите функцию f(x), принимающую дробное число x и возвращающую значение следующей функции, определённой на всей числовой прямой:   1−(x+2)^2 при x≤−2 f(x)= −x/2, при −2<x≤2 (x−2)^2+1 при 2<x Требуется реализовать только функцию, решение не должно осуществлять оп...
[ "eugennix@gmail.com" ]
eugennix@gmail.com
1109d9fc12450d72c877f8421524dec14856099a
937fed25ae53e5b6114478fd78ad5d270c6e141c
/a2b2 lp2.2/questão.py
76bf9baec3dde8bedab049c6bec043e3f2922e0c
[]
no_license
IgorMChaves/lp2.2
d7f0a2e98c403eeba38c0ea8749db0f1e38b9879
e92b7e1e693440e6120b88fbe74262d39a433244
refs/heads/main
2023-07-12T23:03:08.032212
2021-08-27T19:59:25
2021-08-27T19:59:25
391,220,480
0
0
null
null
null
null
UTF-8
Python
false
false
2,091
py
arquivo = open("notas.csv", "r") arquivo.seek(0,0) mod = [] a = arquivo.readlines() arquivo.seek(0,0) cont = len(arquivo.read().split()) arquivo.seek(0,0) str_arquivo = arquivo.read() arquivo.seek(0,0) aux = [] vet = [] n = 0 aux_medias = [] adicao = [] for m in range(0, cont, 6): vet.append(arquivo.read().split()[...
[ "igor.1904.chaves@gmail.com" ]
igor.1904.chaves@gmail.com
8389ee6aab1b0b70d717cb058b2851a24daaa3aa
e776bed93b58050c26e8d5c37709cca0b48717c5
/QtProject/server/server.py
e56799c197bd0c16fa76a696560e5d4bcc31a7a0
[]
no_license
4e6yPe4eK/Qt
4e0f25c088f377433bc96d95881ee2c3b08a819f
cdd5d30cf6c31e6b642c7fd6082e67c178d27c18
refs/heads/main
2023-01-28T14:29:25.694530
2020-12-02T10:07:02
2020-12-02T10:07:02
317,820,064
0
0
null
null
null
null
UTF-8
Python
false
false
5,573
py
# -*- coding: utf-8 -*- # Самая сложная часть проекта - серверная import sqlite3 import uuid import socket import shlex import os import datetime con = sqlite3.connect(r'info.db') cur = con.cursor() qte = shlex.quote def reg_check_login(login): # Проверка логина на существование return len(lis...
[ "noreply@github.com" ]
4e6yPe4eK.noreply@github.com
effff6ef63e0b83062a803e9c520c22bb11dfa64
eace74f71484550153ee4e230861e29f298b373b
/min.1.py
af90a7b0d24931355eaebe75e9b76c537587d52e
[]
no_license
AlekhyaMupparaju/pyothon
187a8619dd3c2750ff30789813135bf5cdb41042
a136255a2a7e24b40d3a55341aa7bda5ed4f0f78
refs/heads/master
2020-03-27T03:06:02.961797
2019-02-23T07:10:50
2019-02-23T07:10:50
145,838,858
0
1
null
null
null
null
UTF-8
Python
false
false
211
py
min= int(raw_input()) def lowest(arr,n): min= arr[0] for i in range(1, n): if arr[i] < min: min = arr[i] return min arr = [1,2,3,4,5] n = len(arr) Ans = lowest(arr,n) print (Ans)
[ "noreply@github.com" ]
AlekhyaMupparaju.noreply@github.com
dd8121161e7823faa47d12b3c3de90b0f64b3ddf
6e4351defca46f48ba75a5f85470b3bac9acb80d
/get_product_logo.py
6c27a9b19b56aa0b7353da982f9b05d1071d5186
[]
no_license
pelowok/potato-webscraper
e1e34dc2da84d17ef608c85b05862395e69c75e5
0b02ca7bee1678bcf58576eb142744e67436fad9
refs/heads/master
2021-03-27T16:52:26.489589
2017-02-15T16:53:01
2017-02-15T16:53:01
68,972,971
0
0
null
null
null
null
UTF-8
Python
false
false
929
py
from bs4 import BeautifulSoup def get_product_logo(soup=''): """retrieves product logo from html - helps to determine product name""" logo = [] if soup.find("div", {"class" : "logo"}): logo = soup.find("div", {"class" : "logo"}).find("img")['src'] elif soup.find("div", {"id" : "logo"}): logo = soup.find("di...
[ "zak@mynameiszak.com" ]
zak@mynameiszak.com
0d23bd2ace5526d7b5eefa7986ad5b5b1b339823
72ef98ece9166f1499aea2066daad075ca16a5a3
/mv2pygame_test.py
36952eef83853877d634cd1457181871670937fa
[ "MIT" ]
permissive
robotika/h264-drone-vision
fead1eb57582127b00cfa66a797122a35590b23e
9c212370be5edf2b5b703ea63a4244bf0955d378
refs/heads/master
2021-06-14T22:05:03.422516
2015-03-23T10:05:33
2015-03-23T10:05:33
13,609,669
3
5
null
2013-12-03T15:36:24
2013-10-16T04:26:35
Python
UTF-8
Python
false
false
964
py
from mv2pygame import * import unittest class Mv2PygameTest( unittest.TestCase ): def testAddPic( self ): pic1 = [[(1,1),(2,3)]] self.assertEqual( addPic(pic1,pic1), [[(2,2),(4,6)]]) def testEstMovement( self ): pic = [[(0,0), (-1,0)],[(0,1),(0,0)]] self.assertEqual( estMovement(pic), ((0.5,0), (...
[ "martind@mapfactor.com" ]
martind@mapfactor.com
ae185518b0e8ce198cc06cc8c0d42df5a4909135
1f741fa73e569657bab183dc9a1512cbdc45ed84
/I0320091_Exercise9.10.py
a81651daf01320224cbfc5ff752e2d4d54adac98
[]
no_license
sasareginaa/Salsabila-Putri-Regina_I0320091_Wildan_Tugas9
abac4a8ffba8c1b40aadd54df0c78232fbaa30f0
cddccaab6566c6eafc22be425dda169690fe04f9
refs/heads/main
2023-04-23T03:32:11.467077
2021-04-30T10:19:09
2021-04-30T10:19:09
362,104,704
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
#Exercise 9.10 # nilai awal (sebelum dibalik) A = [100, -700, 300, 400, 800] # membalik urutan elemen array A.reverse() print(A)
[ "sasaregina06@gmail.com" ]
sasaregina06@gmail.com
25a67c4819e5f76e8597007afbef568d28dcd9f0
63c8b9227a6b3178d918769042ecb060acc557be
/symphony/cli/pyinventory/graphql/add_service_endpoint_mutation.py
4f7d20fa43ca5e0c5407290c9053e8a3f6f0fe27
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
snwfdhmp/magma
7c4898db68d2668fd39ed25f73bb9a2bc5959066
8b3ff20a2717337a83c8ef531fa773a851d2e54d
refs/heads/master
2020-12-06T09:06:25.806497
2020-01-07T18:27:09
2020-01-07T18:28:51
232,418,366
1
0
NOASSERTION
2020-01-07T21:12:28
2020-01-07T21:12:27
null
UTF-8
Python
false
false
3,003
py
#!/usr/bin/env python3 # @generated AUTOGENERATED file. Do not Change! from dataclasses import dataclass, field from datetime import datetime from enum import Enum from functools import partial from typing import Any, Callable, List, Mapping, Optional from dataclasses_json import dataclass_json from marshmallow impor...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
f3dad400ea2ff76d29dd558d1607c713866aa9ff
02840549b18d93f01fefe3e27336fbfacafd7956
/entertainment_center.py
51b3b6d29c158b230e79a3ea067e8d2da3c51deb
[]
no_license
gapb/udacity-nanodegree
88de3011aa6365c3d2d4a35a072982d163054b59
1c10a2930ad67cea3aa7ffb2ce36dddf9303d9ea
refs/heads/master
2021-01-13T01:25:44.203372
2015-08-22T22:38:57
2015-08-22T22:38:57
41,226,686
0
0
null
null
null
null
UTF-8
Python
false
false
2,894
py
# coding: utf-8 """This module contains the code to load the movie data for the entertainment center (stored as string literals), and call fresh_tomatoes.open_movies() to convert the data into a web page. Future versions of this program may store the movie information in an external file, which this program would parse...
[ "gilbertpodell-blume@Peregrin-II.local" ]
gilbertpodell-blume@Peregrin-II.local
f09cb52deec75543a69ae11c1e3c81d217d918b9
6abb051913b0cbf07ff9e599108f80161805fadb
/assignment2/q1_softmax.py
0d80e70a56b54e5a36a06b1a4855ec7f8a2d23fe
[]
no_license
jigargandhi/stanford224
ca440f323611fdbcb034d1a3bb42e09884054055
ef2e4e9facd7d75e1890444ceef5c5b606879304
refs/heads/master
2021-01-20T07:31:40.389137
2017-09-12T13:34:24
2017-09-12T13:34:24
101,545,186
1
0
null
null
null
null
UTF-8
Python
false
false
3,938
py
import numpy as np import tensorflow as tf #from utils.general_utils import test_all_close def softmax(x): """ Compute the softmax function in tensorflow. You might find the tensorflow functions tf.exp, tf.reduce_max, tf.reduce_sum, tf.expand_dims useful. (Many solutions are possible, so you may ...
[ "jigarr.gandhi@gmail.com" ]
jigarr.gandhi@gmail.com
01871cfce2c502981e0152153154624ef523bed7
cab65864d5e082da2635119416e5f11962ab9d80
/life.py
9c773f29d4ae7787b27343473fec793507fe8cc5
[]
no_license
cassioms/gameoflife
9fc3e65351e82a3e08b86e8806ed79b427e13001
46904207cb5b72824f3c4e8db24dfbfda5fe4305
refs/heads/master
2020-03-28T04:43:34.784408
2018-09-10T20:08:07
2018-09-10T20:08:07
147,733,444
0
0
null
null
null
null
UTF-8
Python
false
false
3,740
py
from copy import deepcopy from random import randint from pygame import gfxdraw class Life: def __init__(self, screen, width, height, offset_width, offset_height, starting_points, color, size): self.color = color self.screen = screen self.screen_width = width self.screen_height =...
[ "cassio.silva@entelgy.com" ]
cassio.silva@entelgy.com
0b0fc70f8b07da1dad31d78121f58e3719413334
a18094360ff3e4e8ba3d4ff173ce7ac9beba35e8
/练习/队列.py
b9b2f4fcbbcc4f81ce554a6dd5c931e6809f1624
[]
no_license
xunihao1993/haohao_code
dccbd6a7a6ef937108c949326e3ec49ccb9c87d6
e314bf697d7cb8b90cb02da108ebbfaf5a8ef2f6
refs/heads/master
2022-05-28T11:58:29.799160
2021-03-25T02:12:13
2021-03-25T02:12:13
255,108,292
1
0
null
2022-04-22T23:31:45
2020-04-12T15:07:39
Python
UTF-8
Python
false
false
851
py
# -*- coding: utf-8 -*- import multiprocessing import time import os # 获取数据 def get_data(queue): data = queue.get() print('读取数据',data) # 写入数据 def put_data(queue): # 拼接数据 data = str(os.getpid())+"_"+str(time.time()) print("压入数据:",data) queue.put(data) if __name__ == '__main__': # 创建队列 ...
[ "xu.ni.hao@163.com" ]
xu.ni.hao@163.com