repo_name
stringlengths
7
111
__id__
int64
16.6k
19,705B
blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
151
content_id
stringlengths
40
40
detected_licenses
list
license_type
stringclasses
2 values
repo_url
stringlengths
26
130
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
42
visit_date
timestamp[ns]
revision_date
timestamp[ns]
committer_date
timestamp[ns]
github_id
int64
14.6k
687M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
12 values
gha_fork
bool
2 classes
gha_event_created_at
timestamp[ns]
gha_created_at
timestamp[ns]
gha_updated_at
timestamp[ns]
gha_pushed_at
timestamp[ns]
gha_size
int64
0
10.2M
gha_stargazers_count
int32
0
178k
gha_forks_count
int32
0
88.9k
gha_open_issues_count
int32
0
2.72k
gha_language
stringlengths
1
16
gha_archived
bool
1 class
gha_disabled
bool
1 class
content
stringlengths
10
2.95M
src_encoding
stringclasses
5 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
10
2.95M
extension
stringclasses
19 values
num_repo_files
int64
1
202k
filename
stringlengths
4
112
num_lang_files
int64
1
202k
alphanum_fraction
float64
0.26
0.89
alpha_fraction
float64
0.2
0.89
hex_fraction
float64
0
0.09
num_lines
int32
1
93.6k
avg_line_length
float64
4.57
103
max_line_length
int64
7
931
jporcelli/suggest
18,262,200,965,026
83c16e71ff3177f247ea84d3d9a2b1606e6ba898
a393e6041c5dadd8aa1e4dbfdc40e7c59dcc2f69
/suggest.py
e13e7a9aa7903a02fb85956a26e497e9ee2d54ce
[]
no_license
https://github.com/jporcelli/suggest
ab07e138d079ee0574704f2d60981f5c32b51ed0
06f04e4136cec716bb37c0ef2d24375c118381ce
refs/heads/master
2020-06-04T21:36:14.328535
2014-02-28T06:17:57
2014-02-28T06:17:57
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Python module for use as server side implementation of an auto-complete app. __author__ James Porcelli """ from twisted.web import server, resource from twisted.internet import reactor import trie import json """ Auto-suggest server uses the event driven twistedmatrix library for event driven servers using sele...
UTF-8
Python
false
false
1,080
py
3
suggest.py
2
0.70463
0.700926
0
47
21.851064
57
hweeeeeei/pythonLearn
42,949,697,043
6cccf9efec6100c77ebebefd3491d48674b9b197
62798715f92ed031a415f385172596dbc1688894
/6.常用内建模块/编码base64.py
fbe8d216dd4f5f939e7c7558a27434776559e751
[]
no_license
https://github.com/hweeeeeei/pythonLearn
e06d56b424ebf84a0dea199e6a1d7587d9998680
096c9beee9a6f154d1e65d9bf2ea1edca8ec9e37
refs/heads/master
2022-12-15T08:56:03.566520
2020-09-09T02:14:43
2020-09-09T02:14:43
282,863,483
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Base64是一种用64个字符来表示任意二进制数据的方法。 import base64 print(base64.b64encode(b'binary\x00string')) print(base64.b64decode(b'YmluYXJ5AHN0cmluZw==')) print(base64.b64encode(b'i\xb7\x1d\xfb\xef\xff')) # url safe的base64编码,把字符+和/分别变成-和_: print('url safe', base64.urlsafe_b64encode(b'i\xb7\x1d\xfb\xef\xff')) # Base64是一种通过查表的编码方法...
UTF-8
Python
false
false
571
py
60
编码base64.py
57
0.784416
0.690909
0.028571
14
26.5
69
moneeshkumar95/100_days_of_code_challenge_python
8,624,294,375,739
d85c3ffc911b903ee5408e50d948f1edd30db731
66a087484878baadd91c33f8a96adad62c38aecf
/Day_02.py
94bb31a05b16d46dad3329d91b54440ef383aa89
[]
no_license
https://github.com/moneeshkumar95/100_days_of_code_challenge_python
5df21ee80ab5f271f849dbbf824b232ebac31ede
881161f1d59236c66d9c3931aa2a05636cbd080b
refs/heads/main
2023-07-06T21:44:53.479785
2021-08-11T03:51:06
2021-08-11T03:51:06
394,691,682
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#100 days of python coding challenge #Day 2 : Finding the max of two number num_1 = int(input("Enter the first number: ")) num_2 = int(input("Enter the second number: ")) print("\nResults of Method_1") if num_1 < num_2: print(f"{num_2} is the maximum") else: print(f"{num_1} is the maximum") print("\nResults of...
UTF-8
Python
false
false
569
py
95
Day_02.py
91
0.657293
0.623902
0
20
27.5
47
jayanthbhat/Products_app
5,866,925,333,109
2ad4ef34b56eedae0126c9699476e26341d8a2e4
ace3d11563a51dd81c807bcfab1b982a61f569d8
/ufaber/products/views.py
d0b8f432c63d85a0e2b91c8979d8dcf647ea2595
[]
no_license
https://github.com/jayanthbhat/Products_app
35412129b6e077315e51a63d0e524fc8daf60977
36a5f8d543a8de3929773a980acd10274f311dc8
refs/heads/master
2022-11-29T16:48:31.872205
2020-08-12T13:16:36
2020-08-12T13:16:36
287,008,420
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render from django.http import HttpResponse # Create your views here. from rest_framework import status from rest_framework.response import Response from rest_framework.generics import ListAPIView,ListCreateAPIView,RetrieveAPIView,UpdateAPIView,DestroyAPIView,CreateAPIView,RetrieveUpdateAP...
UTF-8
Python
false
false
4,712
py
11
views.py
7
0.686545
0.683998
0
109
42.238532
146
BlackLight/platypush
13,314,398,663,886
1819609ca2f6f79495bd2cc68c12bd2613c919ef
60d6b8501d0be546437b26a6ee1f9fab97ec3897
/platypush/schemas/system/_user/_base.py
be32bb4f638c9512bc18870da9fb09980abcbf03
[ "MIT" ]
permissive
https://github.com/BlackLight/platypush
68284a85b2f9eef303d26b04530f075927b5834a
446bc2f67493d3554c5422242ff91d5b5c76d78a
refs/heads/master
2023-08-31T21:01:53.519960
2023-08-29T22:05:38
2023-08-29T22:05:38
109,421,017
265
25
MIT
false
2023-09-01T23:15:49
2017-11-03T16:56:24
2023-08-08T22:58:36
2023-09-01T23:15:49
56,463
261
22
4
Python
false
false
from datetime import datetime from dateutil.tz import gettz from marshmallow import pre_load from .._base import SystemBaseSchema class UserBaseSchema(SystemBaseSchema): """ Base schema for system users. """ @pre_load def pre_load(self, data: dict, **_) -> dict: data = super().pre_load(...
UTF-8
Python
false
false
590
py
1,332
_base.py
733
0.642373
0.642373
0
22
25.818182
88
Prin-Meng/NetDevOps
13,666,585,965,242
353edfd320ebce996e01ac33c87fb2d470f4b7bd
55c6343fa98a97ca375b53e244adfcf721fb68e5
/python_basic/task_day10/task_1/qytang_ssh.py
574d2d93db66d28f9bc12e1305dd2c0d7a14157c
[]
no_license
https://github.com/Prin-Meng/NetDevOps
7a835879fb55c26b792d06c729dcaf58c1427c5a
c852cdee300135320c3844c42755f0f6b1b6688a
refs/heads/master
2023-06-01T22:39:49.041141
2021-06-20T02:34:00
2021-06-20T02:34:00
345,110,429
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# paramiko需要通过pip下载 import paramiko # import time的目的是为了保证不会因为输入命令或者回显内容过快而导致SSH终端速度跟不上,仅能显示部分命令,而netmiko已经自动解决了此问题 import time def ssh(ip, username, password, cmds, port=22): try: ssh = paramiko.SSHClient() ssh.load_system_host_keys() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy(...
UTF-8
Python
false
false
1,286
py
156
qytang_ssh.py
124
0.617438
0.596975
0
39
27.820513
78
Deeplayer/CS231n-winter-2016
4,148,938,439,364
87d35a04e3ee2814c393b042774555363b6d8cc0
04d3c09db31e2251bca993ea0e986e086cd5f663
/RNN/test.py
7576441110d966151fe6857ef0b4827f7c74f465
[]
no_license
https://github.com/Deeplayer/CS231n-winter-2016
54b27f818cef93759fc1406b3b240fd3c4f51352
45faf6350b8c3a8719cb4ca7263ae4d3139982f1
refs/heads/master
2021-01-20T09:36:56.015678
2017-05-04T14:49:50
2017-05-04T14:49:50
90,266,981
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import matplotlib.pyplot as plt from rnn_layers import * from captioning_solver import CaptioningSolver from rnn import CaptioningRNN from coco_utils import load_coco_data, sample_coco_minibatch, decode_captions, fc_coco_minibatch from image_utils import image_from_url data = load_coco_data() lstm_model = Captionin...
UTF-8
Python
false
false
1,848
py
34
test.py
33
0.65368
0.637446
0
63
28.31746
96
beyzasubasi/python-exercise
17,978,733,103,132
553eaca5a3206d6f00b72f76a8ed3cc3f7ee2024
b114cc858c2e5f1bb055ec70018d7378b8f94545
/PYTHON/DERS2-11.1.py
5818c1c504b5f917b83dedd136113ba3511f931b
[]
no_license
https://github.com/beyzasubasi/python-exercise
fa89129eec794a63003852aa6d1b85689ca426e4
9ef8a5264502cb367970a4c143a33ebae9788330
refs/heads/main
2023-03-20T18:40:19.895372
2021-03-15T22:31:24
2021-03-15T22:31:24
347,605,535
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# girilen sayı asal mıdır değil midir p = int(input("Bir sayı giriniz: ")) asal = 0 for n in range(2, p//2+1): #sayının kareköküne kadar gitsem yeterli if(p//n*n == p): asal = 1 if(asal==0): print("asal sayıdır") else: print("asal sayı değildir")
UTF-8
Python
false
false
283
py
88
DERS2-11.1.py
88
0.618519
0.596296
0
13
19.846154
68
adarshrao007/python
9,835,475,113,733
02fd2e4e353d8fec4d026683b7fabab1e067a4bf
55733c62eeeebbaecc06d97a38173dea6b701a46
/8.py
4ac22798f4cc8ddda7b4d5629ceb7e2f4af15d22
[]
no_license
https://github.com/adarshrao007/python
729c642b602b9c83b05d6421c278042f83bae839
0567b0ca05b27a295c22f9764b4aac0609db421c
refs/heads/master
2020-03-28T04:16:32.460225
2018-09-06T19:00:05
2018-09-06T19:00:05
147,704,580
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#Implement a program to create a list with two tuple of fruits and vegetables. Access fruits separately and vegetables separately. tuple1=('carrot','potato','tomato','beans') print(tuple1) tuple2=('mango','apple','banana','pineapple') print(tuple2) mylist=list(zip(tuple1,tuple2)) for i in range(len(mylist)): pri...
UTF-8
Python
false
false
334
py
9
8.py
9
0.739521
0.721557
0
9
36.111111
131
Edyta2801/Python-kurs-infoshareacademy
7,619,271,983,804
66098c0dd265b598cd74e042c2e11866de420402
c384046bc0e7d49f46feaf0c6722523f81b41214
/code/Day_4/Homework_Mario_Pyramid.py
4b39abd73c758cdc678a6b5da260e0b8da67f916
[]
no_license
https://github.com/Edyta2801/Python-kurs-infoshareacademy
b0c8c9e2de4e980cc1b10aed80a156ac83fdd4aa
41bdbbad8a15b16220a82fb06c7bd353792fe6d7
refs/heads/master
2020-12-15T18:38:21.157330
2020-01-20T22:48:28
2020-01-20T22:48:28
235,212,406
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Wymagania: Narysuj na ekranie piramidę Mario (wypisując odpowiednio znaki #) jako input podaj wysokość piramidy Piramida wysokości 3 ma wyglądać: # ### ##### 1 - użyj jedynie pętli i znaków "#" oraz spacji 2 - przeczytaj https://docs.python.org/3/library/string.html aby ułatwić sobie życie """
UTF-8
Python
false
false
318
py
163
Homework_Mario_Pyramid.py
160
0.727869
0.714754
0
15
19.333333
84
yashmanne/Arab_ABC-LTP_Linkage
17,154,099,409,306
ace669e03defbd8e208cbe5897eaee27e3493865
5ddc7ecd58169a6204dc610ef344213e0a6c03a4
/src/ShortestPath.py
2199fea664e311c2a98a8aa5e85a143f672df80e
[]
no_license
https://github.com/yashmanne/Arab_ABC-LTP_Linkage
02c8c683f1fcdad5b2789548755639aa541eb0a8
179e6ecfb1f1e7e36c3c987fe8e43deb8b5cc2b3
refs/heads/master
2023-04-06T13:52:38.101278
2023-03-24T03:08:48
2023-03-24T03:08:48
246,419,422
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Import necessary Libraries import os import pandas as pd import numpy as np import networkx as nx import matplotlib.pyplot as plt import seaborn as sns import collections import pickle # used to store cleaned data import numpy.ma as ma # masking for numpy Arrays boolVal = False attedDataName = 'Overlapping_GenesMR.p'...
UTF-8
Python
false
false
5,910
py
11
ShortestPath.py
1
0.664298
0.661252
0
147
39.210884
144
Azure/azure-cli-extensions
15,891,379,017,030
8ae8bcecfd9f0ee703431e9e237f3198175f9398
c50e7eb190802d7849c0d0cea02fb4d2f0021777
/src/swiftlet/azext_swiftlet/generated/commands.py
5ab786951b2da3fe57d0aabd0828b0df9c1c931e
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
https://github.com/Azure/azure-cli-extensions
c1615b19930bba7166c282918f166cd40ff6609c
b8c2cf97e991adf0c0a207d810316b8f4686dc29
refs/heads/main
2023-08-24T12:40:15.528432
2023-08-24T09:17:25
2023-08-24T09:17:25
106,580,024
336
1,226
MIT
false
2023-09-14T10:48:57
2017-10-11T16:27:31
2023-09-12T21:00:04
2023-09-14T10:48:56
338,909
327
961
566
Python
false
false
# -------------------------------------------------------------------------- # 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 cause incor...
UTF-8
Python
false
false
1,944
py
3,291
commands.py
2,156
0.665638
0.665638
0
34
56.176471
120
fuzzygwalchmei/scratchingPost
10,325,101,408,622
0c8b4b5bb0aab1968ac3b794755115383bb007b2
fea444217851a92510651da2b60035b73344d7da
/treeBrowsing.py
0ff1520b4150ded7c2e7b080a07f5e5b8333077d
[]
no_license
https://github.com/fuzzygwalchmei/scratchingPost
c70d4f3f37d3d4d6490edfbbae603305b2bb5764
b232c54aac975aebb0945d66a841db3f241b7cd2
refs/heads/master
2023-01-29T13:02:22.615813
2020-12-15T00:47:56
2020-12-15T00:47:56
176,823,898
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import time #path=input("Whats the folder?: ") curTime = time.strftime('%B %A %d %Y') print(curTime) # for i in os.scandir(path): # if i.is_file(): # print('File: ' + i.path) # elif i.is_dir(): # print('Folder: '+ i.path)
UTF-8
Python
false
false
258
py
32
treeBrowsing.py
27
0.55814
0.55814
0
13
18.923077
38
highmore9501/study_flask
1,374,389,562,671
8c0c6425bab32222ab2923e13d7a2af338506813
10eeb53e5222b13bc86270e1d77494ce871ba61e
/venv/Lib/site-packages/pytest_dotenv/__init__.py
8287fbc4917558d184588ecf068237639d820422
[]
no_license
https://github.com/highmore9501/study_flask
5a52fdce1215945dab63ebe89b0226366233d5cf
c8ac39264e40c43df3e5f6434fafb5a962b73355
refs/heads/master
2020-07-09T10:27:42.406647
2019-08-25T09:04:05
2019-08-25T09:04:05
203,948,230
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
__version__='0.4.0' __author__='Marcel Radischat'
UTF-8
Python
false
false
50
py
3
__init__.py
2
0.62
0.56
0
2
24
29
AtlasBuggy/Naboris
9,981,504,026,388
1fcd08ce451bf8b85a3ed0a9d23ee60d12972bf0
ded043a164bbecdb5b3c75dddc64efb9eae2aa6e
/naboris/inception/pipeline.py
f1c5f1329bb3ed760ac4ce64113ee74da1776d04
[]
no_license
https://github.com/AtlasBuggy/Naboris
c4eaab10473854d6181c00fb87833b35f93c5fef
9b8481b6f98652f936f7d5ce97edd42a351f304a
refs/heads/master
2020-03-29T06:35:10.347671
2017-08-27T17:05:17
2017-08-27T17:05:17
94,658,393
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import cv2 import time import numpy as np import multiprocessing import tensorflow as tf from naboris.texture.pipeline import TexturePipeline class InceptionPipeline(TexturePipeline): def __init__(self, enabled=True, log_level=None): super(InceptionPipeline, self).__init__(enabled, log_level) se...
UTF-8
Python
false
false
2,282
py
34
pipeline.py
28
0.606924
0.586328
0
64
34.65625
92
hustmonk/avazu
15,144,054,687,899
8613a78240e361136a072572253bda394adb1bee
03d70018ba0aef0a91ca93572ff65ba76ac4fcfa
/newcode/densy.py
101f824f4bcb9fcb5ab9b90f09b4399babf6ab1a
[]
no_license
https://github.com/hustmonk/avazu
d52fd96c5780d8897aeee128059153e466e7d003
4b6bd076d8b22a99eb32d97dc64437839dac201a
refs/heads/master
2018-12-28T13:24:01.905930
2015-01-27T14:35:31
2015-01-27T14:35:31
26,867,207
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: GB2312 -*- # Last modified: """docstring """ __revision__ = '0.1' class Denesy(): def __init__(self): self.indexs = {} self.counts = {} k = {} for line in open("../data/bias/sort.wy.IDX"): if len(k) > 1000: break ...
UTF-8
Python
false
false
866
py
27
densy.py
26
0.419169
0.387991
0
33
25.242424
53
dinesh207/ninekm
12,953,621,366,910
4eb5b998929b9f30d1ac8514b455bc4a297d6409
82ce339de1a5c6382164d7692afa78d86b8a45ec
/main.py
df8c20a1a1255275b5f406f889f82d6692c377e1
[]
no_license
https://github.com/dinesh207/ninekm
352b8ee6fcbb3d8940d4b1efbde1072eaa3324be
fa0bbc7219db6efbd1fa75d0de79cd4e7a6c8e33
refs/heads/master
2022-01-04T17:00:14.835725
2019-09-26T05:51:03
2019-09-26T05:51:03
210,085,991
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from sample import Scrapper ''' To use scraper, use initialize() function. It fetches the data in data-frame format. ''' print('Enter item you want to search:') search = input() obj = Scrapper(search) obj.initialize() obj.tearDown() print("Task Completed Successfully!") # def write_to_excel(dataframe): # datafra...
UTF-8
Python
false
false
737
py
2
main.py
2
0.701493
0.672999
0
39
17.871795
116
OladeleO/lookyloo
6,700,149,009,628
9c7cfc52bca398128f9cb2da726121018140d14b
acded2ecb631f143c34d1fd16e74a95fef0093f5
/lookyloo/modules/phishtank.py
7071977c7c7baeb9f85a158ba1838b86400185a8
[ "BSD-3-Clause" ]
permissive
https://github.com/OladeleO/lookyloo
2c174217774a150be71aa01fbf4bf05a1805d4ff
f1f9cab2a946639332fd0526be361e1b43d094e4
refs/heads/main
2023-07-18T18:29:40.522671
2021-09-22T19:22:26
2021-09-22T19:22:26
407,678,761
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import hashlib import json from datetime import date, datetime, timedelta, timezone from pathlib import Path from typing import Any, Dict, Optional from har2tree import CrawledTree from pyphishtanklookup import PhishtankLookup from ..exceptions import ConfigError from ....
UTF-8
Python
false
false
3,214
py
8
phishtank.py
1
0.622278
0.618855
0
90
34.711111
117
mazurkin/opencv-stereo
19,241,453,510,420
a3276f6bc76465a7aab607966525be583c787729
dc78a1b868da07c1ede5c12714a752484b8f76d0
/stereo2.py
9d416e09cd0c23af470749214041f482af431e46
[]
no_license
https://github.com/mazurkin/opencv-stereo
4e4f6780ec0a0691d60360022d6ab1ba130161f3
49cee39c5bc74751d3b54c4dcebb893c174150bf
refs/heads/master
2016-06-05T08:40:18.199168
2015-10-27T14:57:29
2015-10-27T15:45:59
45,051,482
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import cv2 import matplotlib.pyplot as plt # path_l = "pics/aloeL.jpg" # path_r = "pics/aloeR.jpg" path_l = "pics/tsucuba_left.png" path_r = "pics/tsucuba_right.png" # path_l = "pics/boob_l.png" # path_r = "pics/boob_r.png" imgL = cv2.pyrDown(cv2.imread(path_l, cv2.CV_LOAD_IMAGE_GRAYSCALE)) imgR ...
UTF-8
Python
false
false
946
py
3
stereo2.py
3
0.67759
0.633192
0
44
20.5
67
etherlabsio/ai-engine
14,121,852,515,362
695909b190dba72ca8d2899839129fd348f78c79
00de7800d1d1042cb9ece8e4cb192c31e0b2f7ad
/services/scorer/transport.py
cded533970b994378f4f03f6708f0d6a47c5ef63
[ "MIT" ]
permissive
https://github.com/etherlabsio/ai-engine
860e70090470bd4ed12f99b0e1741270a93dc39c
e73a4419a34db42a410e2a7e7629eb946b86f2c2
refs/heads/develop
2022-04-22T21:14:02.087995
2020-04-19T08:36:30
2020-04-19T08:36:30
180,766,422
0
1
null
false
2020-04-19T08:36:31
2019-04-11T10:10:21
2020-04-19T08:30:36
2020-04-19T08:36:31
5,294
3
0
24
Jupyter Notebook
false
false
import json from dataclasses import dataclass, asdict, field from typing import List import logging from copy import deepcopy from scorer.scorer import TextSegment, Score @dataclass class Request: mind_id: str context_id: str instance_id: str segments: List[TextSegment] = field(default_factory=list) ...
UTF-8
Python
false
false
1,135
py
133
transport.py
82
0.652863
0.65022
0
45
24.222222
71
joshcreter/ft-tmdb
11,510,512,396,668
fd28f9783b628aced73ab24faf1491477af227b3
5e5df858fee33361964e1faffe55b400c1e3aa66
/populators/common.py
a0737f2e908e62f2128b550fdd6e1a4d0d9dd8b1
[]
no_license
https://github.com/joshcreter/ft-tmdb
0f18a16ee159a78faeb3a90b07ef11809e88faaf
f3e24e5169263272fe252f633055986d00988bd3
refs/heads/master
2022-12-11T20:46:00.349649
2018-09-25T03:17:00
2018-09-25T03:17:00
129,861,907
0
0
null
false
2021-06-01T22:32:14
2018-04-17T07:11:08
2018-09-25T03:17:27
2021-06-01T22:32:12
12,931
0
0
1
Python
false
false
from generators import * class CommonPopulator: @staticmethod def populate_applications_sheet(workbook, title_code: str): worksheet = workbook.get_application_sheet().get_worksheet() applications = ['Avails', 'BizAffairs', 'InvenTrack'] for application in applications: dat...
UTF-8
Python
false
false
5,761
py
57
common.py
51
0.520222
0.518313
0
144
39.006944
116
kawing-chiu/exc
7,902,739,872,857
7dd730ce77fd490cfaf45e8a0b7de1bffbdb0723
86b7908beacc1544bf1554a9734bb4bea4ef935d
/Python/01cffi/C++_lib_ver_2/out-of-line_api_build.py
d3f4814bfabe99dc8b36fca3ea1cacd87384206a
[]
no_license
https://github.com/kawing-chiu/exc
16835f2f7834168693af7795940797dff12e8472
7aceeae42637ce70867ce1ea34e1b38647b8e718
refs/heads/master
2021-01-23T14:06:44.187297
2018-11-07T15:59:19
2018-11-07T15:59:19
42,144,449
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from cffi import FFI ffi = FFI() ffi.set_source('_wrapper_module', ''' #include "test_class.h" #ifndef __C_WRAPPER_H #define __C_WRAPPER_H #ifdef __cplusplus extern "C" { #endif typedef struct TestClass TestClass; TestClass* ...
UTF-8
Python
false
false
1,803
py
195
out-of-line_api_build.py
167
0.48863
0.486412
0
72
24.041667
79
siren0413/Mercury
2,035,814,515,279
1a9d91afb23ed51837765705002f5cc38ff6e88f
6639cd097307cb72ca417578c6e1a584ee169b15
/mercury/api.py
c615d82d5d37ae334d2b7b0843db006ce91a7549
[]
no_license
https://github.com/siren0413/Mercury
1ed77d877210979f625d1abf1aa306ad033b6b5d
28c10b44318525cb877b72eaed7141d6c6a94ffa
refs/heads/master
2021-01-09T06:22:11.703347
2017-02-06T06:20:56
2017-02-06T06:20:56
80,972,272
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from .client import initrinioTags, intrinioFinancials from .settings import * import concurrent.futures as cf import logging import copy def financials_by_item(identifiers, sequence=-1, type='FY', item='marketcap'): statements = [INCOME_STATEMENT, BALANCE_SHEET, CASH_FLOW_STATEMENT, CALCULATIONS, CURRENT] res...
UTF-8
Python
false
false
3,678
py
8
api.py
8
0.579391
0.575585
0
103
34.708738
109
csghone/validate_s3_upload
13,915,694,047,039
6cae5ef6babce3e3759bc608bd7776865e2e5bca
d34a72894d1096b5970046b61de7310c3a85bbde
/validate_s3_upload.py
a2d3643bcc298770be856794b60acf4d30a3f04b
[]
no_license
https://github.com/csghone/validate_s3_upload
3d5af4f8051150ba60e8e7af1fbbce25b58bb147
738bfb96681066530cf0f367ed0b7e6feca36f79
refs/heads/master
2021-06-11T04:28:40.654655
2020-08-19T12:50:15
2020-08-19T12:50:15
128,357,841
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 from __future__ import print_function import os import sys import argparse import traceback import logging import logging.handlers import math import hashlib import boto3 logger = logging.getLogger() LOG_FORMATTER = logging.Formatter( "%(asctime)s.%(msecs)03d - %(name)s - %(levelname)s - "...
UTF-8
Python
false
false
6,780
py
2
validate_s3_upload.py
1
0.601622
0.577876
0
241
27.13278
104
luckyjudyz/books
9,929,964,391,140
af99eb27af5f745275e69e87bd06b26ec4f18235
cecb5c3d17c84ac5f8d3a733255d1bd660840bc4
/apps/books_app/models.py
2bc5befa3f97b90c4e2e0f3cb1c59249708243b1
[]
no_license
https://github.com/luckyjudyz/books
547c5af5f4eadf42cff2a9704c064ef70c968cc5
29ec7ff2d56ab7342dd903b89104f9fbbb023616
refs/heads/master
2021-01-25T04:42:03.899932
2017-06-06T02:13:10
2017-06-06T02:13:10
93,465,918
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # from __future__ import unicode_literals # from django.db import models # from django.utils.encoding import python_2_unicode_compatible # # # Create your models here. # # class BookManager(models.Manaegr): # def createbook(self, info): # print info # book = BookDB.objects.cr...
UTF-8
Python
false
false
385
py
5
models.py
4
0.664935
0.65974
0
12
31.083333
81
haust-Kevin/ProxyPool
8,100,308,339,652
8121e341d51df3d7443a4b39a6e8bb2e92b89755
18df59e73000ecad6d48d40dac11c123d18a469a
/proxypool/api.py
4af01b63f05c419a7722513900da0f75fb165025
[]
no_license
https://github.com/haust-Kevin/ProxyPool
22ba2cb5958b5344bea5ec22b8b1f1cc0be8a492
9329934f31858ed429beb269098532abff2f3187
refs/heads/master
2023-01-19T22:06:37.461054
2020-11-28T15:55:18
2020-11-28T15:55:18
316,768,556
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Flask, g, request __all__ = ['app'] from dao.mysql_dao import MysqlConn from dao.redis_dao import RedisClient app = Flask(__name__) def get_redis_conn(): if not hasattr(g, 'redis'): g.redis = RedisClient() return g.redis def get_mysql_conn(): if not hasattr(g, 'mysql'): ...
UTF-8
Python
false
false
809
py
9
api.py
8
0.57599
0.559387
0
41
18.097561
63
plejc/my-new-project
2,869,038,187,000
1e6ab7fc32fcacfdafcd11889d2c4bac38718a1f
7ecd12e4f7c78b96d62ac6719df9cc31481bb07a
/bidder/views.py
230792e6b950857bda92ddbce3ae65e658a7b082
[]
no_license
https://github.com/plejc/my-new-project
1385ae14dbd1a63e9660bba019e5b7a29513ec37
0a5ad9ff40f1dabc7c14c083dfd539426f7171de
refs/heads/master
2022-12-30T18:07:29.397988
2020-10-16T08:56:09
2020-10-16T08:56:09
304,569,302
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render,redirect,HttpResponse from django.views.generic import ListView from .models import Bidder from .forms import BidderForm def home(request): return render(request,'bidder/home.html') def book(request): return render(request,'bidder/book.html') def bidder(requ...
UTF-8
Python
false
false
610
py
16
views.py
11
0.645902
0.645902
0
23
24.521739
61
sgrosu/python_scripts
13,855,564,502,680
bed306c328044abe3e8aa65b52aa2a3fbaf95956
0a953cb324ef542c2af07316d498d3caafbc08f8
/gmail_app.py
eebb1057e25c8c63d5af378abdc7326b4e189157
[]
no_license
https://github.com/sgrosu/python_scripts
d2e8e060298fd8ba6fe836f80353f00e3c6f845f
a5f521ad7f0682fec2ed394ebb83b253e7a3d5d2
refs/heads/master
2021-01-18T16:12:01.497907
2017-04-27T11:53:18
2017-04-27T11:53:18
86,723,531
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python ''' connect to my gmail inbox and fetch all the mails and display their subject and from address ''' import imaplib obj = imaplib.IMAP4_SSL('imap.gmail.com',993) obj.login('dumblinuxuser','secretpass') status, msgs = obj.select() if status == 'OK': obj.select('INBOX') # <-- response like ('OK', ...
UTF-8
Python
false
false
1,023
py
24
gmail_app.py
17
0.674487
0.656891
0
34
28.970588
104
zanayeem/Python-Specialization
17,025,250,382,096
d4a981b352490e6c360afe38d41008c27c4e0f32
70a69d84b7df8b8dbdc0b70d829fd829eba6d281
/Data Structures/Week5 (Dictionary)/Dictionary (Data Structure).py
7a728270aaeba4d900ba0c4ce8dcd082056623e4
[]
no_license
https://github.com/zanayeem/Python-Specialization
ed21cedfaa9de12b245b630df1d20f061db728b5
9c3a909ca1bd0cba19a029efe9a961088f52e33b
refs/heads/master
2022-12-02T01:53:35.471824
2020-08-13T08:13:59
2020-08-13T08:13:59
261,119,803
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# #import sys # duffle_bag = dict() # duffle_bag['money']= [10,45,50] # duffle_bag['money'][2] = duffle_bag['money'][2] + 5 # print(duffle_bag) # duffle_bag = {'money': [26,35,33,55,66,66,65], 'gold': 25, 'gem': 55} # print(duffle_bag) # # Counting the occurance of names using a for and a conditional loop # counts =...
UTF-8
Python
false
false
1,416
py
26
Dictionary (Data Structure).py
23
0.639124
0.603107
0
45
30.466667
105
Ramblurr/jsonmapping
10,522,669,923,080
47101f9f84b028417c43b8d6a36c443256769e6c
fdff2cfe5289d4cba4a457eee4b64fee5c6aea5a
/jsonmapping/transforms.py
7db9cd6fc84764ba1d9e3d910396456fd432b516
[ "MIT" ]
permissive
https://github.com/Ramblurr/jsonmapping
bf729bbdada7eac6c12b0acb70c6e5f0b805dbc7
76110c46b22084d3a830e2b291d2d0f71295e376
refs/heads/master
2020-12-24T21:00:38.609298
2015-09-08T13:20:33
2015-09-08T13:20:33
41,037,613
0
0
null
true
2015-08-19T13:58:17
2015-08-19T13:58:16
2015-08-19T13:58:17
2015-08-11T10:11:14
168
0
0
0
Python
null
null
import six from hashlib import sha1 import normality def coalesce(mapping, bind, values): """ Given a list of values, return the first non-null value. """ for value in values: if value is not None: return [value] return [] def slugify(mapping, bind, values): """ Transform all va...
UTF-8
Python
false
false
1,587
py
8
transforms.py
8
0.604285
0.601764
0
62
24.612903
79
muyajil/wheretolive.ch
2,508,260,918,855
75cb810cd775d3e27d42790fbe54b7674a84ba52
31141850490c0a177a139d59588886360d0c3038
/backend/jobs/initial_import/sbb_timetable.py
7df1398a58f6f50d11031b3de8ae7c05c450a00f
[]
no_license
https://github.com/muyajil/wheretolive.ch
7e61c3f517f6ace262b04625df953d78fa7de0d7
9edebb09c8a748c2c767188b11986ab04ff414c6
refs/heads/master
2022-11-13T05:55:53.396531
2020-06-10T12:54:41
2020-06-10T12:54:41
247,510,150
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import logging import os from flask import Blueprint from ...crawlers import SBBTimetableCrawler from ...extensions import db from ...models import ( SBBCalendar, SBBRoute, SBBStation, SBBStopTime, SBBTransfer, SBBTrip, ) from ...utils import BatchedDBInserter bp = Blueprint("initial_import.s...
UTF-8
Python
false
false
2,071
py
96
sbb_timetable.py
60
0.686625
0.684211
0
65
30.861538
76
aldenjenkins/ThiccGaming
16,346,645,575,189
616e181a72cd58908126966cc922b9caeae5941b
be134c181703b95aca1e48b6a31bcfdb7bcfcc76
/site/thicc/apps/rules/views.py
bea1c79feec52aecd5a96d1dabce33f75ae0ed53
[]
permissive
https://github.com/aldenjenkins/ThiccGaming
0245955a797394bcfeedb2cfb385f633653ba55d
4790d2568b019438d1569d0fe4e9f9aba008b737
refs/heads/master
2022-12-16T02:43:36.532981
2021-11-17T04:15:21
2021-11-17T04:15:21
154,858,818
0
0
BSD-3-Clause
false
2022-12-08T02:58:44
2018-10-26T15:52:39
2021-11-17T04:15:30
2022-12-08T02:58:44
1,276
0
0
15
Python
false
false
from django.shortcuts import render def index(request): return render(request, 'rules/rules.html')
UTF-8
Python
false
false
104
py
173
views.py
83
0.759615
0.759615
0
4
25
46
tarsqi/ttk
4,114,578,676,627
47969230cf60d9c9925917f04557e7a16a04d679
df1e54249446ba2327442e2dbb77df9931f4d039
/deprecated/get_lexes.py
2a536630d8e3c854980d9d7ef4e9f1102162cf30
[ "Apache-2.0" ]
permissive
https://github.com/tarsqi/ttk
8c90ee840606fb4c59b9652bd87a0995286f1c3d
085007047ab591426d5c08b123906c070deb6627
refs/heads/master
2021-07-12T06:56:19.924195
2021-03-02T22:05:39
2021-03-02T22:05:39
35,170,093
26
12
Apache-2.0
false
2021-03-02T22:05:39
2015-05-06T16:24:38
2021-01-26T15:53:18
2021-03-02T22:05:39
9,339
22
7
27
Python
false
false
""" Standalone utility script to extract all the tokens from a file and print them space separated using one sentence per line. Files are XML files that need to contain <s> and <lex> tags. USAGE: % python get_lexes.py INFILE OUTFILE % python get_lexes.py INDIR OUTDIR Note that in the first case INFILE has t...
UTF-8
Python
false
false
1,738
py
563
get_lexes.py
114
0.613349
0.610472
0
64
26.15625
90
ramamca90/Hackathon
8,435,315,814,477
c642a4b56417a04d2a39dd245e9b2353cb4076fe
352f70858b0e293db951b2dba61bda15d8cd45cf
/xpologistics/XPOLOGISTICS.py
0dcfcf3e8629e6a80108c0a09b7bdc7b590c1915
[]
no_license
https://github.com/ramamca90/Hackathon
99cb88a29ca207ad03f24a6e54bdf2f5709e31e1
6ea1751f674592d9a7baab6bf69bf63a9e7d9a1c
refs/heads/master
2022-03-10T00:21:51.068180
2019-11-18T17:46:02
2019-11-18T17:46:02
113,473,415
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Dec 2 12:15:52 2017 @author: user """ import pandas as pd loadboard = pd.read_excel("C:\\Users\\user\\Desktop\\loadBoard.xlsx") print ("HI ..Please provide your load details ") pickup_selected=input("Please give the pick up location") pickup_destination=input("...
UTF-8
Python
false
false
508
py
10
XPOLOGISTICS.py
2
0.65748
0.633858
0
16
28.75
69
patarapolw/CJKhyperradicals
13,941,463,872,012
5107ca66103c0e36dcd7c36b26f0d2d6e13a4b5c
7e00385aa4a53b2d2083573a1656a68c936c8841
/CJKhyperradicals/dir.py
0a7910a9b3f56e22940c15af79d60d68d4b66df6
[ "Apache-2.0" ]
permissive
https://github.com/patarapolw/CJKhyperradicals
0ccf6bffaca81bfc44cfdc349bb65dbc3b41b4c4
2a7c2ef489d2e2dd6496c676559738da220f4b03
refs/heads/master
2022-12-11T03:11:56.924515
2019-10-22T10:19:24
2019-10-22T10:19:24
128,757,374
3
0
Apache-2.0
false
2022-12-08T06:37:02
2018-04-09T10:52:28
2022-07-27T22:14:11
2022-12-08T06:37:01
10,380
3
0
3
Python
false
false
import os import inspect ROOT = os.path.abspath(os.path.dirname(inspect.getframeinfo(inspect.currentframe()).filename)) def database_path(data): return os.path.join(ROOT, 'database', data) def chinese_path(data): return os.path.join(ROOT, 'database', 'chinese', data) def japanese_path(data): return o...
UTF-8
Python
false
false
368
py
21
dir.py
12
0.717391
0.717391
0
16
22
94
psdh/WhatsintheVector
7,138,235,658,431
539c455d6aca03a4afdff92112b1c8228dc04287
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/nnmidchannel.py
e32138751606b438ddefede7585adf831b8387c8
[]
no_license
https://github.com/psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
false
2015-09-23T11:54:07
2015-09-18T22:06:38
2015-09-23T11:51:13
2015-09-23T11:54:06
71,656
2
2
2
Python
null
null
ii = [('FitzRNS3.py', 3), ('FitzRNS4.py', 2), ('FitzRNS.py', 13)]
UTF-8
Python
false
false
65
py
24,174
nnmidchannel.py
24,172
0.538462
0.446154
0
1
65
65
shankravi007/CIP_Project
9,655,086,517,686
7e46415bc9f09c6d383e6a6ed705ace7e714bae9
ca0939e6c18b9c352addddde23720751bd9d6f58
/Project-UtilityFunctions/dataloadinglibrary.py
476d13b301322cda40d6fe28ea0e63e55a843c63
[]
no_license
https://github.com/shankravi007/CIP_Project
e134dd1466ec670722f82ce16864914993ff8ce5
243e2215c977f47e7e6ccab6e02c85fff9b9ffce
refs/heads/main
2023-03-26T06:51:38.189486
2021-03-30T06:44:57
2021-03-30T06:44:57
352,892,889
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd #This function is used to load CSV file from the 'data' directory #in the present working directly def loadCSV (fileNameWithAbsolutePath): dataSet = pd.read_csv(fileNameWithAbsolutePath) return dataSet
UTF-8
Python
false
false
233
py
10
dataloadinglibrary.py
7
0.776824
0.776824
0
7
32.285714
66
nigelrodrigues15/AutomatedDriving-NeuralNetwork
7,825,430,463,677
9d548266357fd0ef824f7e955c136f5427d1a447
e0764868b090776da92a24e1709bbf72ac5c853d
/binData.py
537c2c25886223c5d095acaf818c7f26af1ec7c1
[]
no_license
https://github.com/nigelrodrigues15/AutomatedDriving-NeuralNetwork
adcb78071c134e6e7d5644872c17e16fe1447980
0a718dc41d2d2de9ededfe3a9c87035545ac1eb2
refs/heads/master
2020-06-02T05:11:19.251499
2019-07-17T00:59:24
2019-07-17T00:59:24
191,047,780
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd num_bins = 20 interval = 2.0/num_bins inc = -1 bins = [] while inc <= 1: inc = round(inc, 1) bins.append(inc) inc += interval ### Test code # print(bins) # labels = np.arange(0,len(bins) - 1) # print(labels) # yTest = y_train[0:10] # print('before',yTest) # ybi...
UTF-8
Python
false
false
1,576
py
13
binData.py
12
0.637056
0.625635
0
84
16.761905
78
NaiveTorch/ARC
8,564,164,825,143
ff7b9c9c5539be37d595303d6880fb3f9e7ee24e
a27c13c55680e95a0cfe375dd02daae9d8e64d04
/src/build/util/archive_test_bundle.py
6a381a6829e6abccab44d95ab2bf87aabc0a440f
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
https://github.com/NaiveTorch/ARC
4572ed94d01f3b237492579be4091f3874a8dfe0
4007a4e72f742bb50de5615b2adb7e46d569b7ed
refs/heads/master
2021-01-22T06:38:12.078262
2014-10-22T15:43:28
2014-10-22T15:43:28
25,082,433
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # Archives files needed to run integration tests such as arc runtime, # CRX files, config files, and test jar files. import argparse ...
UTF-8
Python
false
false
4,821
py
336
archive_test_bundle.py
254
0.69135
0.688032
0
134
34.977612
80
Oshayer-Siddique/Oshayer
18,983,755,473,002
5a2bf03577c47f157b2f6e5566e2dea50287688b
e7f503d82383895844961e9bec63856ab638a38b
/recurrsion1.py
c2c5fc724df904a0c4e3c0e96a5d8623bd8792ee
[]
no_license
https://github.com/Oshayer-Siddique/Oshayer
65f823bcae7a7dd9ffd09f39577c51d6b1c66d28
3d1de99577a167f32e28f4bdebc82bf05bf01c02
refs/heads/master
2022-11-22T17:04:40.059849
2022-10-30T20:53:18
2022-10-30T20:53:18
273,699,757
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def func(n): if n == 1 or n == 2: return 1 else: return func(n-1)+func(n-2) n = int(input()) print(func(n)) def func1(): print("HHH") return func1() def func2(): print("JJJ") return func2() func2() import itertools for j in range(8): for i...
UTF-8
Python
false
false
464
py
317
recurrsion1.py
313
0.521552
0.476293
0
29
14.068966
58
sscpac/statick
17,437,567,253,095
616f94eb022fb834ce5ddfba5c0d876b3399f829
921b402e42e711b6ed937273310f8af0b34721c5
/tests/profile/test_profile.py
9268b1e3f88c7878dc0a72a5af2de4f0f583fef4
[ "CC0-1.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/sscpac/statick
77705a324b715a59d7cc5f9b12760a5c69b490eb
25225188b04dbdebb04674d0b3c8af886ccf87c3
refs/heads/main
2023-07-06T09:22:39.545513
2023-06-21T23:38:27
2023-06-21T23:38:27
146,325,712
73
14
CC0-1.0
false
2023-06-21T23:38:29
2018-08-27T16:39:56
2023-05-09T10:53:30
2023-06-21T23:38:28
1,864
65
11
2
Python
false
false
"""Unit tests for the Args module.""" import os import pytest from statick_tool.package import Package from statick_tool.profile import Profile def test_profile_init(): """Test that the Profile module initializes correctly. Expected result: profile is initialized """ profile = Profile(os.path.join(...
UTF-8
Python
false
false
2,915
py
228
test_profile.py
131
0.684391
0.684391
0
95
29.684211
88
Riley-Milligan/pythonweekone
17,085,379,917,396
37c2975a92500acba939c4df2090005aff663c14
451492d1a2d4375b830b3a1dfbe1085ee4a66770
/day1/exercise_four.py
246989e5ea3e650281ad4ffb60fb38581906e308
[]
no_license
https://github.com/Riley-Milligan/pythonweekone
fc9971e3a653402aca19f8e34d4887fffa0da30d
3322166a350a1b1ce29a764369294795a5764368
refs/heads/main
2023-05-06T03:17:56.286878
2021-05-28T07:21:48
2021-05-28T07:21:48
371,615,760
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
principle = 25000 annual_rate = 12 term_length = 12 print("Input Data") print(principle, annual_rate, term_length) monthly_rate = (annual_rate / 12) / 100 + 1 total = principle for x in range(term_length): total = (total * monthly_rate) monthly_payment = total / term_length print(round(monthly_payment))
UTF-8
Python
false
false
314
py
16
exercise_four.py
16
0.707006
0.659236
0
16
18.625
43
jamesyoung4/multi_calc
6,451,040,927,290
e713b12531f74c06d082fb14f8fe17f32c65380a
bce17afc809f132f681d2653824598a81397a1e4
/level_tangent.py
f34c43a9d1e7a5eb23e2b3d6428087b0e4e3cbaa
[]
no_license
https://github.com/jamesyoung4/multi_calc
c96c872d2bffea47814c3c91303ff720b65cf07f
b8cb11adc1288b58ac2de2fb534342136da5242b
refs/heads/master
2020-03-11T06:52:52.075085
2018-04-19T05:50:46
2018-04-19T05:50:46
129,842,607
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from sympy import * x = Symbol('x') y = Symbol('y') z = Symbol('z') def partial_x(func,x): return (diff(func,x)) def partial_y(func,y): return (diff(func,y)) def partial_z(func,z): return (diff(func,z)) def gradient2(func): return [partial_x(func,x), partial_y(func,y)] def gradient3(func): ret...
UTF-8
Python
false
false
1,213
py
6
level_tangent.py
5
0.591096
0.573784
0
46
25.369565
71
Gabriel1955/machine-learning
283,467,864,213
606212c5a3d2c488b92e2754760606f1a82cbd1a
5f72013e7abbcd8077211c1d39120e9cd38dda70
/optimization_of_antennas.py
78014196031890bcf33bf45f52a82a345fd45327
[]
no_license
https://github.com/Gabriel1955/machine-learning
51690675e19ed1281031c5c62aa46333a7d437ce
bea193961a0ee61c20394eb31d10b4c6cd388db6
refs/heads/master
2020-04-19T12:35:18.931664
2019-01-29T17:22:24
2019-01-29T17:22:24
168,195,669
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' https://aydanomachado.com/mlclass/02_Optimization.php? phi1=90&theta1=90&phi2=90&theta2=90&phi3=90&theta3=90&dev_key=Simple%20Agent* ''' from random import * import copy import random import requests import json import threading import numpy as np import numpy.random dev_key = "Os ifzinhos" size_population = 20...
UTF-8
Python
false
false
4,615
py
1
optimization_of_antennas.py
1
0.580932
0.554496
0
179
24.782123
88
Vinushan/project8
7,602,092,142,991
10da6324f49d704c813cbf06c4bd99c4259ab89b
e84da9a6a3d9596ce9c91ed12c57666fe0de9b4a
/project8-web/home/views.py
e40156c0d25cc59a4b582a6a399361d864ab3956
[]
no_license
https://github.com/Vinushan/project8
6da6b7615f0f88b20bf38e6536dec9a2dba28908
5df3df307c9542775c271ada8d3ade73aedda2ce
refs/heads/master
2022-11-23T22:22:58.660426
2020-07-25T20:04:03
2020-07-25T20:04:03
276,161,008
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.models import User def landing(request): if request.user.is_authenticated: context = {'logged_in':True} else: context = {'logged_in':False} return render(request, 'home/all.html', context)
UTF-8
Python
false
false
316
py
31
views.py
17
0.712025
0.712025
0
11
27.818182
52
euguroglu/Flask_Socket_IO_Session
14,912,126,490,536
14bdd9edff8d3a4f0467d31b5de1206ddfc66aa2
9426adf2d5fe7485d1d12ededa9c5dce2fcc69ea
/app.py
92738908eeb6d43e2f0ae91fd71dc3143df49173
[]
no_license
https://github.com/euguroglu/Flask_Socket_IO_Session
5eb04842154a5e1893413de7f37e47ba3b0e4ecb
57b0859f086ce542979b496b010a3727272adadb
refs/heads/master
2023-02-07T13:33:08.582096
2020-12-30T16:30:17
2020-12-30T16:30:17
325,559,970
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Flask, render_template, request from flask_socketio import SocketIO, send, emit, join_room, leave_room app = Flask(__name__) app.config['SECRET_KEY'] = 'secretkey' app.config['DEBUG'] = True socketio = SocketIO(app) users = {} @app.route('/') def index(): return render_template('index.html') ...
UTF-8
Python
false
false
1,069
py
3
app.py
2
0.695978
0.695978
0
39
26.410256
70
AdamZhouSE/pythonHomework
11,347,303,609,376
dadf283617ac1439bd2f4ff443a50afdec2bedae
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2793/60876/260384.py
ff273094d7c12aea8c1581e3b1e431c0851e76d8
[]
no_license
https://github.com/AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
n,c=map(int,input().split(" ")) seconds=list(map(int,input().split(" "))) seconds=seconds[::-1] sum=1 for i in range(0,n-1): if seconds[i]-seconds[i+1]>c: break else: sum+=1 if c==0: print(0) else: print(sum)
UTF-8
Python
false
false
240
py
45,079
260384.py
43,489
0.554167
0.520833
0
13
17.538462
41
ostin-r/automate-boring-stuff-solutions
2,568,390,474,106
4a1ae1fc679b2bce1676ee30c169928d6b05de2a
68a96e220e92c0247dd62bbf00e06451dc45f88e
/follow-along/Chapters 10-20/combine_pdf_pages.py
982cd3fe1a8cee78c9763eebe5bc005f26371738
[]
no_license
https://github.com/ostin-r/automate-boring-stuff-solutions
f0853bfa12e2e09e26bd5e0e482e59c1cc2fd10f
78f0a2981e6520ff2907285e666168a0f35eba02
refs/heads/main
2023-06-16T03:53:16.200117
2021-07-14T11:11:24
2021-07-14T11:11:24
335,448,959
4
1
null
false
2021-03-14T15:59:26
2021-02-02T23:14:15
2021-03-14T15:57:55
2021-03-14T15:59:26
232
0
0
0
Python
false
false
''' Ch. 15 follow-along project for selectively merging multiple .PDF files ''' import os import PyPDF2 as PyPDF os.chdir('follow-along/Chapters 10-20') files = [] for filename in os.listdir(): if filename.endswith('.pdf'): files.append(filename) files.sort(key = str.lower) writer = PyPDF.PdfFileWriter() ...
UTF-8
Python
false
false
626
py
72
combine_pdf_pages.py
70
0.690096
0.677316
0
27
22.222222
51
CheshireCatNick/super-mro
652,835,043,014
cdda59bcb8d2860ff731a21a4825274ce7b0d616
7554878d438d2ba8b5752c3b80947deeaf58b88c
/super0.py
18009d242e2a19e899adc007d71c3786b9e0be1f
[]
no_license
https://github.com/CheshireCatNick/super-mro
45e5d2d71ba1df898ef4d4c529c5b045be7d69c1
faf49c60bd51236119ca21b55bbe945d778375a4
refs/heads/master
2022-11-10T07:05:10.471899
2020-07-02T14:28:17
2020-07-02T14:28:17
275,703,781
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Rectangle: def __init__(self, length, width): self.length = length self.width = width def show(self): print(f'length: {self.length}, width: {self.width}') def calculate(self): print('area:', self.length * self.width) class Square(Rectangle): def __in...
UTF-8
Python
false
false
437
py
14
super0.py
13
0.578947
0.576659
0
20
20.75
60
Vassi3997/opencv-practice
7,799,660,659,294
72be78d060ed593e04dd9ca78422b10bab3c9ad2
94982b64f7ecaa37b593b61e2a3ea50c77a13e81
/opencv/IO.py
89c753f6cda8e607b816b6c6581ea09e424fc549
[]
no_license
https://github.com/Vassi3997/opencv-practice
3e6ad2fe5f1f31d374ec95f3ef8c2ee90bed7f5c
783766de46de02e34cb4933423728fd974047c9d
refs/heads/master
2020-06-22T04:56:20.854132
2019-07-27T16:39:38
2019-07-27T16:39:38
197,638,865
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import cv2 import matplotlib.pyplot as plt import numpy img = cv2.imread('color-theory.jpg',cv2.IMREAD_GRAYSCALE) # cv2.imshow('img',img) # cv2.waitKey(0) # cv2.destroyAllWindows() plt.imshow(img,cmap = 'gray' , interpolation = 'bicubic') plt.show()
UTF-8
Python
false
false
252
py
13
IO.py
13
0.730159
0.702381
0
12
20.083333
57
bunjlabs/hap-web
18,305,150,618,574
2dad267b38756dcd12a043f48d60ac9fff5a7703
b5ebd4fe8de7409719a9699db05239587435df2f
/main.py
f324f720dc77d0e72f76dc4dc0025b8600cb664d
[]
no_license
https://github.com/bunjlabs/hap-web
3c1fe16218c90dce6718ccaad679408c3afa315d
271076c498d9213f8149f742d1b20906372beecb
refs/heads/master
2019-07-07T18:46:40.834719
2017-04-08T13:14:00
2017-04-08T13:14:00
87,554,890
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render # Settings must be configured before importing some things # from django.views.decorators.csrf import csrf_exempt # VIEW def index(request, name=None): return render(request, 'index.html', {'name': name}) def index2(request, name=None): return render(request, 'base.html'...
UTF-8
Python
false
false
784
py
5
main.py
4
0.678571
0.674745
0
32
23.46875
67
Kenny3Shen/EGLS
695,784,709,376
67ed59005bc7af923f716382fca6d211deb691a5
17227a3f2c818893dc4ec1933828dc690178a620
/EGLS/about_ui.py
6b392ee12b7ba0a0b3c3f74c05c0114dd0aba9db
[]
no_license
https://github.com/Kenny3Shen/EGLS
e4e524550e89682d4065812d352dde86e28baa6c
d3a32ab655f8a452db88461fea43c428a37925c6
refs/heads/master
2023-06-12T19:44:07.663431
2023-02-24T12:00:18
2023-02-24T12:00:18
365,752,842
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'about.ui' ## ## Created by: Qt User Interface Compiler version 5.15.2 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ####################...
UTF-8
Python
false
false
4,526
py
43
about_ui.py
35
0.614229
0.557667
0
101
43.80198
296
Boyden/SlicerBreast_DCEMRI_FTV
3,058,016,725,675
7781b77047726ff3d1b0c7e034228757fc9af51d
6247fd261fcd5e8584ce1aee7c35bbaa34a1b839
/DCE_TumorMapProcess/Breast_DCEMRI_FTV_plugins2/ident_gzipped_exam.py
8aab0142ba0a503f46dd598d71cb84e56cfb3784
[ "LicenseRef-scancode-3dslicer-1.0", "BSD-3-Clause" ]
permissive
https://github.com/Boyden/SlicerBreast_DCEMRI_FTV
bfaed668288157a54050b5a1687d8ff3562f9cef
4a65206ef5a483ff070ce08ed85dd3399343ddfd
refs/heads/master
2023-07-02T16:43:42.409051
2021-08-05T00:50:48
2021-08-05T00:50:48
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#--------------------------------------------------------------------------------- #Copyright (c) 2021 #By Rohan Nadkarni and the Regents of the University of California. #All rights reserved. #This code was developed by the UCSF Breast Imaging Research Group, #and it is part of the extension Breast_DCEMRI_FTV, #which...
UTF-8
Python
false
false
2,395
py
21
ident_gzipped_exam.py
16
0.657203
0.642589
0
55
42.545455
168
concerttttt/Py2C
15,195,594,321,928
4fa73bcfd327003eaaefbaaf23166480b4830085
9540e98f2294fb500015b3aa76857a0fa4cd7f40
/setup.py
43357615ff049b1aa446be741130978bcafd47e5
[ "BSD-3-Clause" ]
permissive
https://github.com/concerttttt/Py2C
5e438a39ac2006b72f693bc687e445376723d5a7
b5c9fd238db589f6d7709482901e33ffebb764eb
refs/heads/develop
2021-01-21T20:29:49.282057
2016-03-13T11:42:35
2016-03-13T11:42:35
92,241,652
0
1
null
true
2017-05-24T02:36:23
2017-05-24T02:36:23
2017-05-24T02:36:15
2016-03-13T11:42:35
1,126
0
0
0
null
null
null
#!/usr/bin/python3 # pylint:disable=C0103 import sys if sys.version_info[:2] < (3, 3): print("[Py2C] Cannot run on Python versions before Python 3.3") sys.exit(1) try: from setuptools import setup, find_packages except ImportError: print("[Py2C] Please install 'setuptools'..") sys.exit(1) # setu...
UTF-8
Python
false
false
1,554
py
54
setup.py
32
0.535393
0.52381
0
55
27.254545
79
stavrosvl7/ergasiess
8,297,876,838,015
0eb03ccd7f7764d73b642184ff4628e43f4df145
685d1f6e0427ec85c0382a2ab38940dea94334ad
/askisi1.py
1085fa2ad2f15d1e636c545da17d9547cb2e9495
[]
no_license
https://github.com/stavrosvl7/ergasiess
52dcefbcbe7ba6a1048e01c9b71021e807636a59
77b97f0be8ef0b1a1609b95a70b7b9466b0c8927
refs/heads/master
2021-01-10T03:28:14.585918
2016-03-11T01:07:20
2016-03-11T01:07:20
53,629,190
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def createGame(): import random Matrix = [[0 for x in range(10)] for y in range(10)]; for i in range(10): print(Matrix[i]); print('se ena apo ola ta 0 vriskesai esy kai se ena allo o thisauros..prosekse mh vgeis ektos tou pinaka giati tha xaseis..vres ton!!') playerx = random.randint(0,9); ...
UTF-8
Python
false
false
2,954
py
3
askisi1.py
3
0.51151
0.493907
0
72
39.833333
139
jeremyjyang/BioClients
13,194,139,551,126
ffa2bdfe0e7d86f8745363f9aae1cb638743c2b6
620edb7706208ad35a268046cf3ef390b3742cf1
/BioClients/icite/Client.py
06cf17ae3a668f04ce7528cc17a482c95524aee4
[ "CC0-1.0" ]
permissive
https://github.com/jeremyjyang/BioClients
c4092449315ef8473900739f379fbd202d0eebf5
ec703afbd5a234f767b4209da5042040c5ee5d47
refs/heads/master
2023-08-07T13:44:38.087806
2023-07-20T16:34:41
2023-07-20T16:34:41
245,521,437
12
2
CC0-1.0
false
2020-04-07T21:34:52
2020-03-06T21:39:53
2020-04-07T19:57:14
2020-04-07T21:34:51
230
0
0
0
Python
false
false
#!/usr/bin/env python3 """ PubMed iCite REST API client https://icite.od.nih.gov/api """ ### import sys,os,re,argparse,logging # from .. import icite ############################################################################# if __name__=='__main__': parser = argparse.ArgumentParser(description='PubMed iCite REST...
UTF-8
Python
false
false
1,922
py
243
Client.py
188
0.638398
0.630073
0
51
36.666667
139
bellyfat/thorchain-arb
128,849,051,180
1158de06f27dfe99c29bc50b74327ef08510091d
3e21b8ef0f07383b1fbf7254c4dc9f77a90ea490
/midgard_client/midgard_client/models/thor_name_details.py
355966751f1d7cffe681d9712b19759f81f55d7a
[]
no_license
https://github.com/bellyfat/thorchain-arb
dffc7d7e2a3d55ac59d6b6bbf374e2e15c8d585f
c0c3c9ca750f0b3e5a8aa24996ce7e9286d42664
refs/heads/main
2023-08-22T00:58:30.161998
2021-10-01T12:48:24
2021-10-01T12:48:24
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding: utf-8 """ Midgard Public API The Midgard Public API queries THORChain and any chains linked via the Bifröst and prepares information about the network to be readily available for public users. The API parses transaction event data from THORChain and stores them in a time-series database to make time...
UTF-8
Python
false
false
5,414
py
137
thor_name_details.py
79
0.580824
0.566599
0
171
30.654971
435
Igor-IGI/PythonProjects_SN
3,848,290,720,853
04eaa2ff545caf4b7ecc3e154649995b419d14cb
b7dd906e90397d89ba844693817a55304ba704d6
/HomeWork_8/Mood_8_1.py
a773cf911b96f64af03fb06815ce9f1428c254c1
[]
no_license
https://github.com/Igor-IGI/PythonProjects_SN
999cc7de54d9329ab1ba1ed98ffa45b7ba4878da
c0cfa18a5194c729da0e462f7cc363c4ccd0c098
refs/heads/master
2022-06-20T05:10:10.392679
2020-05-14T20:52:10
2020-05-14T20:52:10
259,880,770
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
mood = input("Enter your mode: ") if mood == "happy": print("It is grate to see you happy!") elif mood == "nervous": print("Take a deep breath 3 times.") elif mood == "sad": print("Go to do, what make you happy") elif mood == "excited": print("It is nice to be excited") elif mood == "relaxed": prin...
UTF-8
Python
false
false
387
py
6
Mood_8_1.py
6
0.625323
0.622739
0
14
26.714286
42
HitBirds/weimei
16,569,983,852,948
7bdb86ddc491050b760303547fd5b95a4b92ff5d
30ff9c903ee60c63a0f4a26470be3428ec77c613
/apps/clothes/views.py
388ae43d217962b1015849e0e5dc89f3060eddf0
[]
no_license
https://github.com/HitBirds/weimei
8487a46dc19bc38ff4eab5d390f757b2a968030f
93c30377b9dc2966164ac8f77c5e98b699411fef
refs/heads/master
2022-05-16T16:51:56.851898
2021-09-15T11:10:29
2021-09-15T11:10:29
144,744,410
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.db.models import Max,Min from django.db.models import Q from clothes.models import Clothes,Season from users.models import UserProfile # Create your views here. def more(request,sortby='time'): ...
UTF-8
Python
false
false
3,402
py
31
views.py
18
0.582011
0.578777
0
86
38.569767
224
DheerajSuthar4076/Major_project2021
7,739,531,107,793
dba9bd1c8ffae1b2a326dffb750b490433a0ef63
2f8e1887d3eedc4c20b6abea69e2c72716293fb5
/quiz/migrations/0029_auto_20200810_1015.py
7d3f752bf1bd8b44c1447ef0160e30acebb50106
[]
no_license
https://github.com/DheerajSuthar4076/Major_project2021
1cac3a0a967c50d46acc9c3050b2c6cdde240ee6
a6bd396e6083e609267053dd919cd80e9c2d5e0a
refs/heads/master
2023-07-05T23:12:17.781157
2021-08-11T13:03:08
2021-08-11T13:03:08
394,959,018
0
1
null
false
2021-08-11T12:05:54
2021-08-11T11:02:45
2021-08-11T11:28:03
2021-08-11T12:05:53
0
0
1
0
HTML
false
false
# Generated by Django 3.0.3 on 2020-08-10 04:45 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('quiz', '0028_syllabus'), ] operations = [ migrations.CreateModel( name='Standard', ...
UTF-8
Python
false
false
855
py
89
0029_auto_20200810_1015.py
35
0.602339
0.576608
0
26
31.884615
149
Dragfy11/Python_condition
5,145,370,834,202
fb1c2fe5329a1901d83d1998cdbc54da892d13ab
71165e0b2242f1d91c586f3ab416686c54fd4a39
/condition2.py
0bf9ca7c1428e8bb4539be1c15a35fc53ec8654c
[]
no_license
https://github.com/Dragfy11/Python_condition
682e90b20afd9bd30700588238377b7b6b04c316
0c059e7ecd1327d5637adda7e195bb971bedf3f8
refs/heads/main
2023-04-08T23:37:26.672933
2021-04-20T13:13:43
2021-04-20T13:13:43
359,809,892
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# exemple : Systeme de verification de mot de passe password = input("Entrer votre mot de passe: ") passeword_length= len(password) #verifier si le mot de passe est inferieur à 8 caractères if passeword_length <= 8: print("mot de passe trop court !") elif 8 < passeword_length <= 12: print("mot de passe moyen ...
UTF-8
Python
false
false
391
py
3
condition2.py
3
0.709512
0.696658
0
13
29
57
cash2one/xai
12,841,952,256,527
ae78f27e0a6837e1b9a8c8b542115c5594c92946
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/adjectives/_hairier.py
62ed9ce21a9b3fc4d78fd3b2cec20f095599a3d8
[ "MIT" ]
permissive
https://github.com/cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from xai.brain.wordbase.adjectives._hairy import _HAIRY #calss header class _HAIRIER(_HAIRY, ): def __init__(self,): _HAIRY.__init__(self) self.name = "HAIRIER" self.specie = 'adjectives' self.basic = "hairy" self.jsondata = {}
UTF-8
Python
false
false
243
py
37,275
_hairier.py
37,266
0.654321
0.654321
0
10
23.1
55
korkmaztest/recipe-app-api
5,463,198,440,036
78149d05b8f6d51f1e2e1b27089f182954479c7c
02e0927d8a19d16387e1f1fc751f59c72990ec5d
/api/apps/user/tests/test_user_api.py
64955ea8cff5bb3a49f3bd93488364a4fc53d619
[]
no_license
https://github.com/korkmaztest/recipe-app-api
b0bde131cd85667c54d705e0f8c604e880d29337
7626aa3b8a2169c8484dc5729e51df147c1efd69
refs/heads/master
2020-12-14T13:36:41.334651
2020-01-31T18:07:13
2020-01-31T18:07:13
234,759,973
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib.auth import get_user_model from django.test import TestCase from django.urls import reverse from rest_framework.test import APIClient from rest_framework import status def create_user(**params): return get_user_model().objects.create(**params) class PublicUserApiTest(TestCase): def setU...
UTF-8
Python
false
false
4,983
py
11
test_user_api.py
9
0.619105
0.60586
0
137
35.372263
95
Nirvanios/BIO-head-pose-estimation
16,612,933,542,188
35c40ceb9bfed13e6c92a9a4ae4cabef0ebd1b2e
e4362885e1f43ed5e0423966e5d713e99003b643
/head_pose_multi.py
45b0cb86fabb76a2c7d05f10a458f8ed12e7bdf7
[]
no_license
https://github.com/Nirvanios/BIO-head-pose-estimation
c5aeca8fb5e9f0ba1a24cceda6f531aca69a4c3e
21ffa779ac778350448f2ccfbcffb6a41c644566
refs/heads/master
2022-03-02T11:19:38.736231
2019-11-13T14:34:21
2019-11-13T14:34:21
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from head_pose_geometry import HeadPoseGeometry from head_pose_model import HeadPoseModel from head_pose_tracker import HeadPoseTracker class MultiHeadPoseEstimator: """ Head pose estimation using all 3 implemented methods. """ def __init__(self): self.__geom = HeadPoseGeometry() self....
UTF-8
Python
false
false
1,127
py
13
head_pose_multi.py
12
0.631766
0.617569
0
29
37.862069
78
tratda/life-partner
7,636,451,858,265
8f688a1108c7e440095d081676ad484c0abdd47e
6e52d0340ffb56a0e1d56e1fe162551bb71fd3f6
/working/Roster.py
bf1f0a44eaecdbdbc26b545917beed41ff4c439c
[]
no_license
https://github.com/tratda/life-partner
a89c57f4bb982d8efc13db2ac66650e24a246fcc
56d7735d07358b4d353bb238f795b3d7b649e1a9
refs/heads/master
2018-01-03T19:55:45.767981
2016-10-18T22:36:16
2016-10-18T22:36:16
71,294,083
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import random import time import os def cls(): os.system('cls' if os.name=='nt' else 'clear') def absent(Absentdict): for name in Absentdict: if Absentdict[name] != 0: print(name+' left at '+ time.strftime("%a, %d %b %Y %H:%M", Absentdict[name])) def losttime(Users): cls() for year in range(len(Users...
UTF-8
Python
false
false
5,529
py
3
Roster.py
1
0.593778
0.554531
0
235
22.52766
114
q-gao/Small_Scripts
10,754,598,159,871
f3701ac628aa55bf7146e4651d771f4117385074
7393b521708b5508c9f78bec7b3439c76dd63665
/PythonCode/CalcCharPortionPercentage.py
dcb510c131879124d9cdced227f612a0ad878844
[]
no_license
https://github.com/q-gao/Small_Scripts
8e1bbff9b73037a381addd9d747c435e3f9d213c
f91db9ebb00b4ac31a121fa240c1e39f3ac1c2ce
refs/heads/master
2020-05-17T04:08:15.230991
2019-04-25T19:57:36
2019-04-25T19:57:36
183,500,545
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python from FontStudyTool import * import sys if len(sys.argv) < 3: print "Usage: test.py <char_seq> <font_name> [rotate_angle]" sys.exit(-1) if len(sys.argv) >= 4: rotate = sys.argv[3] else: rotate = '0' print GetCharPortionPercentage(sys.argv[1], sys.argv[2], rotate) # # #imgFile ...
UTF-8
Python
false
false
656
py
85
CalcCharPortionPercentage.py
30
0.707317
0.696646
0
33
18.757576
64
swetha65/raniSwetha
4,277,787,462,618
54f8d9ecebf077a9f5c69138c6587b73030d5733
740f5cda0f10ff7111062e11f3e2c9792302ca1b
/threa.py
7f350749e72b97423f68c7df8b1620a802d15d8c
[]
no_license
https://github.com/swetha65/raniSwetha
61c481dc90e698edfde800ee118bf7cbf7b680ac
9744cd3dbde8fa1fbafdeb8a84e89dfa65978972
refs/heads/master
2023-06-24T00:55:14.804743
2021-07-23T13:42:48
2021-07-23T13:42:48
388,478,089
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import threading def func(n): print('Thread {} is runnning'.format(n)) print('Main beginning') x = [threading.Thread(target = func, args = (i,)) for i in range(10)] for t in x: t.start() print('Main all done')
UTF-8
Python
false
false
219
py
8
threa.py
8
0.648402
0.639269
0
9
23.333333
69
Bluessea/yolov5-tensorrt
18,605,798,354,110
a63c76104ede32f614033a9bf2a869b80a1c9fea
7bdd0bfaab125d309d70568c011c8c5a5ef10f88
/python/export_tensorrt.py
2a693f1dd6ef9ef21cbe9ebf9cbecb19e2a07334
[]
no_license
https://github.com/Bluessea/yolov5-tensorrt
71e101db986028ad70834be5e0059e89609afb18
930a3629bb4a7a70d3353938c3f0aab55900af11
refs/heads/master
2023-05-09T06:09:16.251060
2020-11-20T23:15:51
2020-11-20T23:15:51
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tensorrt as trt import sys import argparse """ takes in onnx model converts to tensorrt """ def cli(): desc = 'compile Onnx model to TensorRT' parser = argparse.ArgumentParser(description=desc) parser.add_argument('-m', '--model', help='onnx file location inside ./lib/models') parser.add_argume...
UTF-8
Python
false
false
1,949
py
3
export_tensorrt.py
3
0.600821
0.584915
0
55
34.436364
135
sauravbiswasiupr/lstmsolver-3.0
9,156,870,310,068
989602a52cd403ff16141b17c8d1e5a4e846c4f6
04835fc458fbca722a23d4c824ca2b7d805cfd05
/lstmsolver/networks/LinearLayer.py
3b258415d109e091efd449f77200b39cccb30e11
[]
no_license
https://github.com/sauravbiswasiupr/lstmsolver-3.0
2e88d74e5917805de9eab1b4dbe4e1d082447c8b
1d3347b7e987487bdf273399cbd632bbc1f62fc3
refs/heads/master
2020-12-24T17:08:29.842063
2019-11-08T18:38:59
2019-11-08T18:38:59
16,409,347
8
1
null
null
null
null
null
null
null
null
null
null
null
null
null
'''An implementation of a Linearlayer. There is no transfer function ''' __author__="Saurav Biswas" #fix imports from Network import * class LinearLayer(Network): '''A Linear Layer that has no activation function''' def __init__(self,Nh,No,initial_range=initial_range,rand=rand): self.Nh=Nh s...
UTF-8
Python
false
false
1,396
py
23
LinearLayer.py
20
0.557307
0.554441
0
44
30.727273
72
Ian970912/pyvhonMinecaft20210126
10,771,777,994,721
b8767c6a21ef1f22726dfd28d5c3461b0a9e10b4
401f73d776ae9e9be6de39ff34dc15883c381f4c
/2-6.py
f27ab1c308b06dd77fc9667ddc6518400b6a31f2
[]
no_license
https://github.com/Ian970912/pyvhonMinecaft20210126
744d66a98670c0fd4cbf9d45ef01f09a1bb90030
c5aa35afb322bcfe443514e96069db5b681346c2
refs/heads/main
2023-02-23T08:45:41.882797
2021-01-26T08:13:44
2021-01-26T08:13:44
333,015,571
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from mcpi.minecraft import Minecraft MC=Minecraft.create() X,Y,Z=MC.player.getTilePos() answer=int(input('請問你右邊要放甚麼方塊:')) MC.setBlocks(X+1,Y,Z,answer)
UTF-8
Python
false
false
182
py
7
2-6.py
7
0.725
0.71875
0
7
20.857143
36
jkrayco/image_study
6,064,493,843,729
b42837e8cdea836aa5517568a4c648edb19beae2
790dc7a55528d31ba5cb9a76ff7194adb4be21d7
/week5/wittyimage/urls.py
ee19899b8535bb051a69548f163c977f0d42ddd9
[]
no_license
https://github.com/jkrayco/image_study
f1017860b2ec629e7d6e7f8d8cde4421d5cbea4f
bd29d4cea56fc9ad104595afdf211bc29d54c759
refs/heads/master
2020-04-30T21:41:30.733189
2019-11-28T10:07:14
2019-11-28T10:07:14
177,099,656
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""wittyimage URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class...
UTF-8
Python
false
false
2,080
py
57
urls.py
56
0.652404
0.648077
0
45
45.222222
92
DoHuy/WebChecker
10,952,166,624,753
c152d648ca9b7439a86eb56bc10364cf9dbed4ea
275c81ca93a34e857b8ae27198f13f62317415a7
/deface.py
ae541aae8b2e82c6e82cacb49472b0129e62f434
[]
no_license
https://github.com/DoHuy/WebChecker
4bc325818badb09ba7c2071401bb14b765dad574
263bcecd9d1de607da5024ad6c9fc7e3b3f2745d
refs/heads/master
2020-09-06T08:50:54.404447
2019-11-09T15:41:28
2019-11-09T15:41:28
220,379,451
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env/python # -*- coding: utf-8 -*- import setting import error import Node import cPickle import base64 import traceback import re import alert from datetime import datetime hot_word = ["hacked", "god verify", "security is low", "visited", "h4ck3r", "hack"] def check_deface(newContent, url, name, ipAddre...
UTF-8
Python
false
false
7,143
py
16
deface.py
14
0.629932
0.605834
0
221
31.108597
205
tushushu/leetcode
18,803,366,857,690
a1d82d88e52638c05a2d9c95819a7a078394bdc6
08897473af60ae5a10b4b66240a826ebb841f20d
/python/189. Rotate Array.py
d87e4735ddd5cd871552f76bd8508a1958772d99
[]
no_license
https://github.com/tushushu/leetcode
ff6ccf5310a5965c62ea9e53b480584b23651934
1613613f4ba26f489a1a7228af5bcb6563fe5852
refs/heads/master
2021-08-09T20:07:57.744593
2021-08-08T07:57:27
2021-08-08T07:57:27
118,591,623
5
3
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ @Author: tushushu @Date: 2018-11-21 11:34:06 @Last Modified by: tushushu @Last Modified time: 2018-11-21 11:34:06 """ class Solution(object): def rotate(self, nums, k): """ :type nums: List[int] :type k: int :rtype: void Do not return anything, modify n...
UTF-8
Python
false
false
476
py
208
189. Rotate Array.py
207
0.523109
0.460084
0
20
22.8
74
rashmee/Python-Projects
10,522,669,887,807
7b9a2a797dfd39d0803130fd3513ee22547e08e6
05f528e203b3e3a18a893a064a440ec123a0c1e6
/diceRollingSimulator.py
c4b6b09efe752f64f4bd4510a7dbe2ca71ea6822
[]
no_license
https://github.com/rashmee/Python-Projects
08bc5776e074f444bced0060d94189d5f5846df1
05783eabc0bf551c30b1b3ce93eb89ded6941f7d
refs/heads/master
2021-08-24T13:19:57.273542
2017-11-21T07:32:36
2017-11-21T07:32:36
111,325,967
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#Program simulating the dice roll from random import randint repeat = True dice1 = randint(1,6) dice2 = randint(1,6) while repeat: print "You rolled ",dice1, "&",dice2 print "Your total is ",dice1+dice2 if(dice1==dice2): print "DOUBLES! Great going!!!" elif(dice1==6 & dice2==6): print...
UTF-8
Python
false
false
470
py
10
diceRollingSimulator.py
10
0.62766
0.593617
0
19
23.736842
46
abhi9321/python_repo
7,258,494,758,353
9d8ff60d2318eb09bbdedbfb188623b4a54fccf4
55a11d5097a4824de3510f6ebf27386d7a3d1446
/age_calculator.py
f0b76e1cef6cd7be71df23e20ef124ab7fe7b2d6
[]
no_license
https://github.com/abhi9321/python_repo
6ecc64471eb65988c1bc5b1ed99446835b1cd13f
b920c5285fb65d5c81b06612059d625b2bbc27ce
refs/heads/master
2021-03-25T09:32:39.051212
2020-12-11T12:46:41
2020-12-11T12:46:41
247,604,940
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
birth_year = input("enter your birth year") age = 2020 - int(birth_year) print(f"your age is : {age}")
UTF-8
Python
false
false
105
py
26
age_calculator.py
25
0.657143
0.619048
0
5
20
43
amutebe/AMMS_General
7,447,473,301,106
e07d81576dc89a171fc9f91372591f6b97b60d29
de392462a549be77e5b3372fbd9ea6d7556f0282
/itsms_20000/forms.py
7c8fad672828b00ca187194e42e33b23e98336d2
[]
no_license
https://github.com/amutebe/AMMS_General
2830770b276e995eca97e37f50a7c51f482b2405
57b9b85ea2bdd272b44c59f222da8202d3173382
refs/heads/main
2023-07-17T02:06:36.862081
2021-08-28T19:07:17
2021-08-28T19:07:17
400,064,408
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.forms import ModelForm,TextInput,NumberInput,RadioSelect,DateInput,TimeInput from django.forms.widgets import HiddenInput from .models import * from accounts.models import Customer from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from django import forms fr...
UTF-8
Python
false
false
4,037
py
268
forms.py
178
0.66807
0.653951
0
77
51.285714
529
WadeBarnes/aries-cloudagent-python
3,204,045,648,319
cc4e06dc2775463bd093b773892bb8b367617d36
ce1eca0537b7df8444450eb0bf71931bedc9ffb5
/aries_cloudagent/config/banner.py
0598b6d54aee6eefcf49cbec7d88022f1d662e32
[ "LicenseRef-scancode-dco-1.1", "Apache-2.0" ]
permissive
https://github.com/WadeBarnes/aries-cloudagent-python
f6f1a95213bcbf2809c9d96f053e10b5a2749e17
b336e851301d8124917e7b14d6d0866ef526138c
refs/heads/main
2023-07-24T19:49:47.018389
2023-02-15T22:26:53
2023-02-15T22:26:53
194,136,068
2
0
Apache-2.0
true
2023-02-14T15:26:02
2019-06-27T17:22:06
2022-11-21T18:48:22
2023-02-11T13:16:17
42,358
1
0
1
Python
false
false
"""Module to contain logic to generate the banner for ACA-py.""" class Banner: """Management class to generate a banner for ACA-py.""" def __init__(self, border: str, length: int): """Initialize the banner object. The ``border`` is a single character to be used, and ``length`` is the...
UTF-8
Python
false
false
1,845
py
44
banner.py
27
0.569106
0.568564
0
54
33.166667
81
fermat986/ProyectoUnoIA
13,752,485,298,443
cfd525e02fe8dfe2243a2d29c9958e7e635520c9
e9fbe6f698f45387b59e50708873bb55ea0010ce
/Lectura/Ambiente.py
96faaff3156715692c1c5858d15c6326bec17498
[]
no_license
https://github.com/fermat986/ProyectoUnoIA
e3554ca26fa9583d189c9c518080894ead8674a4
f6c1bb0876045881e0e5a672ac5dbc0353f65abc
refs/heads/master
2021-05-15T01:23:51.634735
2015-05-06T04:09:31
2015-05-06T04:09:31
33,286,974
0
1
null
false
2015-05-06T02:49:39
2015-04-02T03:20:37
2015-05-01T21:57:55
2015-05-06T02:49:38
290
0
1
1
Python
null
null
__author__ = 'alvaro' class Ambiente: global tamano global matriz def __init__(self, ruta): global tamano global matriz archi=open(ruta,'r') linea = archi.readline() tamano= int(linea) matriz = [[0 for x in range(tamano)] for x in range(tamano)] p...
UTF-8
Python
false
false
1,263
py
10
Ambiente.py
6
0.527316
0.517023
0
59
20.355932
72
etoki/0813_testing
19,112,604,502,869
13736f3f42291fa00bc2d446d9d65dc4c56ab9ae
d70362a2ce5cbd27acd152592064650b25cef917
/apps/apps/settings/local.py
4bb1e401693d21372a66bf31e0b166b9248394e9
[]
no_license
https://github.com/etoki/0813_testing
6b069e77373d7499a0b610bfd10fda8c6d93b4c5
f02e14ebebaa1ef05844a7d5a5ea2c94d8613a38
refs/heads/master
2021-01-20T15:44:48.197290
2016-08-15T14:15:27
2016-08-15T14:15:27
65,602,124
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding:utf8 """ local環境アプリ用設定ファイル """ from apps.settings.base import * DOMAIN = "127.0.0.1:8000"
UTF-8
Python
false
false
124
py
18
local.py
12
0.69
0.58
0
7
13.285714
32
sunmyung777/studying-database
14,989,435,864,512
60138be618c8a8c867026dcf7017e623591f3ef4
e3c1664bbc23b2cf93199a21b66bea05d830261b
/new_flask/manage.py
5ef3fcd2c76d95a752ca04c1be0a6442a7abd560
[]
no_license
https://github.com/sunmyung777/studying-database
683298cfb6cb4c12fcb9dcc693cc8ae78006f047
c6db2e297506c1369b402a7d16853d1e36386765
refs/heads/master
2020-04-17T18:12:39.572558
2019-01-21T13:19:18
2019-01-21T13:19:18
166,816,648
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -- coding: utf-8 -- import os from flask import Flask,url_for,render_template,request,redirect import sqlite3 as lite from werkzeug import secure_filename app=Flask(__name__) UPP_FOLDER='static/img' ALLOW=set(['png','jpg','jpeg','gif','PNG']) app.config['UPP_FOLDER']=UPP_FOLDER def allowed_file(filenam...
UTF-8
Python
false
false
1,420
py
5
manage.py
1
0.659859
0.646479
0
53
24.792453
64
Rombituon-Resource/project_controls
14,499,809,624,054
96ecc318e5fbda2f96d3d4f8c3dc49aff0f335c1
3a6f855961c3c433126f0dd804d4049d64b43dbf
/project_controls/project_controls/custom.py
8ace8272546b738af618b37c56fccd236429b6b3
[ "MIT" ]
permissive
https://github.com/Rombituon-Resource/project_controls
1eeea1817083265cf664954f0b7268edd922f905
c6e9f464c2e0ae67318d8adde6ab058058532250
refs/heads/master
2023-05-12T07:22:45.591936
2021-05-12T13:25:49
2021-05-12T13:25:49
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020, PibiCo and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe @frappe.whitelist() def get_commit(project): """ Get from database all committments amounts from not cancelled Purchase Orders on specific P...
UTF-8
Python
false
false
3,153
py
27
custom.py
6
0.689185
0.68633
0
88
34.840909
237
sljiaa/grace
16,295,105,952,864
319d31717309e71c0ecec391231994fbb885ec2e
574f22ac93441d390f9444ddbb71b32566be607a
/src/t2g.py
3d9d928addaafcf835c5c395708a987adb2a4e04
[]
no_license
https://github.com/sljiaa/grace
3ad70447324d66766098fa5aaea0aef0925608f1
14eaff4d7f0a9f4ab1a907be60be5c5040baea6d
refs/heads/master
2022-03-30T10:01:59.347089
2020-01-16T22:47:42
2020-01-16T22:47:42
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # Copyright (C) 2020, Daniel S. Fava. All Rights Reserved. import os import re import sys import traceback import grace DEBUG = True VERBOSE = False TSAN_INVALID_TID = '8129' dbgCtx = {} class StateMachine: # Does not change sm = { # State machine # (state, input) : [next state, ...
UTF-8
Python
false
false
9,069
py
7
t2g.py
5
0.534127
0.523431
0
277
31.740072
149
Aasthaengg/IBMdataset
10,668,698,810,052
8b9369a5f585c80960f2d4a0ae87cb523b3a35df
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03400/s475812853.py
349fe335e2e6ecf16ace90b457aef158d7f9331c
[]
no_license
https://github.com/Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
n = int(input()) d,x = map(int, input().split()) a = [int(input()) for i in range(n)] a_eat = [] for i in range(n): y = 1 j = 1 while j+a[i] <= d: y += 1 j += a[i] a_eat.append(y) print(sum(a_eat)+x)
UTF-8
Python
false
false
232
py
202,060
s475812853.py
202,055
0.456897
0.443966
0
13
16.923077
36
wellingtonlope/treinamento-programacao
11,897,059,447,873
2c1be8a6b8ced014b9a37405a3e94f22f83b22b9
c14f6bdcf226262e7872902b17e17376b74e619e
/uri-online-judge/python3/iniciante/1094.py
7b587317a94489ea1f2caae22ab09a4c9334d5b6
[]
no_license
https://github.com/wellingtonlope/treinamento-programacao
ce672e05dfaeecbc965bc6c63f30c0149282a0a5
56c317ef0581b47621864a97a758d4b1208e9bca
refs/heads/master
2020-03-26T05:44:02.697167
2019-10-14T16:30:15
2019-10-14T16:30:15
144,571,913
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- coelhos = 0 ratos = 0 sapos = 0 for i in range(int(input())): quantidade, tipo = input().split() coelhos += int(quantidade) if tipo == 'C' else 0 ratos += int(quantidade) if tipo == 'R' else 0 sapos += int(quantidade) if tipo == 'S' else 0 total = coelhos + ratos + sapos print...
UTF-8
Python
false
false
658
py
85
1094.py
80
0.604863
0.575988
0
20
31.9
67
junyi1997/kl-520-test
6,047,313,986,375
f197e206301008cd32d95efc243bf426130724c5
d9e996d7f2abd7172a63a4cf4ec8dfe51777beae
/python_wrapper/kdp_wrapper.py
e35458915e3224190e4ae979f72950798aa601cf
[]
no_license
https://github.com/junyi1997/kl-520-test
1da4427d526e9e6ec25882324754251dd95698d4
e0c7e45bb5760da80ff146c754bd036422697828
refs/heads/master
2023-08-04T17:41:51.437742
2021-09-27T13:21:10
2021-09-27T13:21:10
410,889,201
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" This is KDP wrapper. """ from __future__ import absolute_import import ctypes import math import sys from time import sleep import cv2 import numpy as np from common import constants import kdp_host_api as api #from keras.applications.mobilenet_v2 import MobileNetV2 #from keras.applications.mobilenet_v2 import pre...
UTF-8
Python
false
false
42,264
py
10
kdp_wrapper.py
9
0.603587
0.586551
0
1,212
33.872112
121
TK-IT/web
16,406,775,073,424
6f7745d619d48a491e5e0659a1c63a32e3e845f6
6218fc9c7e1953992febbcd519f62c820a175764
/tkweb/apps/tkbrand/templatetags/tkbrand.py
f17374cbb39ca08c3622796644dce76477e6d2de
[ "Beerware" ]
permissive
https://github.com/TK-IT/web
2ce920a1ed262e9482aae8143ef6473b9475a878
2b0626400b8f1a1f8927f9960ec0f70fac37cdf8
refs/heads/master
2023-03-07T03:14:10.645439
2022-11-24T12:05:10
2022-11-24T12:05:10
29,788,346
3
4
NOASSERTION
false
2023-03-01T19:35:00
2015-01-24T19:17:54
2021-11-30T16:49:43
2023-03-01T19:34:58
36,236
2
2
88
Python
false
false
import re from django import template from django.utils.safestring import mark_safe from constance import config from tkweb.apps.tkbrand import util import tktitler as tk register = template.Library() HTML_T = ( '<span style="vertical-align: -0.038em;">T</span>' ) HTML_ARING = ( '<span style="font-weight: bo...
UTF-8
Python
false
false
5,200
py
272
tkbrand.py
182
0.644094
0.621008
0
203
24.605911
118
Minho-dev/Minho-Programmers
9,122,510,561,409
afbbb9d1f46ba45cc8ac923f7d3a3dede9493d92
de5ae93ffc92e808cf5b97553bde93f3bd2a68b5
/모의고사.py
13fe695914498bf99ff00130a66d54e3f379c7da
[]
no_license
https://github.com/Minho-dev/Minho-Programmers
7958aa89bb1eb2c5b98a1e75cdf56dc3e619b3d5
b92f12d2a5cc4eb5d9a6d3d107e08055857e536b
refs/heads/master
2020-07-31T19:27:19.880172
2019-10-15T00:23:06
2019-10-15T00:23:06
210,728,212
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def solution(answers): answer = [] a = [ 1, 2, 3, 4, 5 ] * ( len( answers ) // 5 + 1 ) b = [ 2, 1, 2, 3, 2, 4, 2, 5 ] * ( len( answers ) // 8 + 1 ) c = [ 3, 3, 1, 1, 2, 2, 4, 4, 5, 5 ] * ( len( answers ) // 10 + 1 ) a_count = 0 b_count = 0 c_count = 0 for num in range( len(...
UTF-8
Python
false
false
922
py
17
모의고사.py
17
0.396963
0.331887
0
28
30.928571
71
VisPro128/testing_project
18,348,100,319,065
90a3b5180ba10d56f59063ecca55895e4323ae6c
5b460657da6aab0062353490865544dc6eb0b579
/run_tests.py
82b671cc22879fd49c8968f99dccef9697a9ad8b
[]
no_license
https://github.com/VisPro128/testing_project
c8055cb6e0d30e09ce6cdb161b8ed39e70043d63
a71808b73caa6d2afae2a03aea31fb446a24861c
refs/heads/main
2023-08-24T06:37:03.128626
2021-10-21T10:40:14
2021-10-21T10:40:14
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os os.system("coverage run --branch -m pytest tests.py") os.system("coverage html")
UTF-8
Python
false
false
91
py
5
run_tests.py
3
0.736264
0.736264
0
4
22
53
kirill-s576/pg_json_table
18,047,452,589,831
afb74bc6e74d3bde03953d83df064b4d1908198e
a2cf1319dcf4962215b5ee633a0683ee1407a2d8
/config.py
62534cf0b14f37c35d5cca1357374f7d6976c115
[]
no_license
https://github.com/kirill-s576/pg_json_table
b0f937845e98b3ce8a32f808c2e2ad6ffbdb337e
975d4a3186473c5b0fe78c040aefabb6f736b295
refs/heads/main
2023-04-18T21:14:10.486091
2021-05-05T11:01:01
2021-05-05T11:01:01
364,546,164
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os from dotenv import load_dotenv from pathlib import Path ENV_FILE_PATH = 'variables.env' # Load environments env_path = Path(ENV_FILE_PATH) load_dotenv(dotenv_path=env_path) ## POSTGRES_USER = os.environ.get("POSTGRES_USER", None) POSTGRES_PASSWORD = os.environ.get("POSTGRES_PASSWORD", None) POSTGRES_HOST ...
UTF-8
Python
false
false
464
py
12
config.py
9
0.747845
0.747845
0
17
26.294118
61
ZacharyEWelch/game
7,335,804,175,910
64b7bc5f4a66506643c6296ce3ec85716efc8b4d
348e0d10df0bee6d40b8225b19f8ad0d5ec0f69a
/rawdb/genncgr.py
eea2b17f6d5095b769ee2d42cafb9ce0a943fe99
[]
no_license
https://github.com/ZacharyEWelch/game
a0dddd6ca442bec91dce53564591440baa7132f2
ea1c5dab7625aa1ac8a0c66900bbdec51aa570f0
refs/heads/master
2021-01-01T20:07:13.994364
2017-07-30T02:23:04
2017-07-30T02:23:04
98,767,269
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from gen import * from nds import narc, ncgr import os ofile = None FNAME = "ncgr"+FEXT def recursefs(d): if os.path.isdir(C_DIR+d): for f in sorted(os.listdir(C_DIR+d)): recursefs(d+"/"+f) else: f = open(C_DIR+d, "rb") count = 0 if f.read(4) == "NARC": ...
UTF-8
Python
false
false
1,897
py
60
genncgr.py
57
0.467053
0.462836
0
53
34.811321
120
GSimas/PyThings
3,375,844,312,827
a9642d074cefa15be33dcbb3cc6481c909ddf5b6
4e5a152ad83224854a163e7fe9bae7c96be88f0c
/RandomCourses/calico-aula1.py
0b0e199efe64cc4eebfa658e4284b295ae06bb7d
[]
no_license
https://github.com/GSimas/PyThings
4dcc82e36fc3a3d535ac08e0540eab639f489f52
5f2f9f3262a869e911fb642a4d344badfad66df8
refs/heads/master
2021-01-23T10:47:55.916118
2020-02-03T23:12:17
2020-02-03T23:12:17
93,092,905
5
3
null
null
null
null
null
null
null
null
null
null
null
null
null
''' This is an assignment code for basic python variables input/print Logical and arithmetic operations, functions, control structures Code sequence based on Calico UFSC python minicourse - class 1 Dependencies Python 3.5.x (64bit) Developer: Gustavo S. Date: June-2017 References: https...
UTF-8
Python
false
false
2,289
py
58
calico-aula1.py
39
0.573613
0.532984
0
91
24.164835
72
policecar/etaoin
2,173,253,492,383
e0e6fb5beb7dfe1c217f4c70410d0652663269ae
a4cedd825018c061931cce2ebb084192199160f3
/google-ngrams/download/download_ngrams.py
c03e3f4e3f079673de86252aa887e8994a8802bb
[]
no_license
https://github.com/policecar/etaoin
0eecde882d0372f425320998677b4a4e4df8571e
ea0c0dff3af840dea2ae1019e6c9b6db2986574a
refs/heads/master
2021-01-02T09:26:23.375927
2013-11-14T17:37:24
2013-11-14T17:37:24
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # adapted from https://github.com/piantado/ngrampy/blob/master/download.py """ Script to selectively download google ngram data from http://storage.googleapis.com/books/ngrams/books/datasetsv2.html. """ import httplib2 from BeautifulSoup import BeautifulSoup, SoupStrain...
UTF-8
Python
false
false
2,012
py
16
download_ngrams.py
10
0.607853
0.600895
0
57
34.298246
98
tarnilok/javascript-python
14,809,047,269,613
d3d2a33c473f60cb6743ae9a56b3545368d08cff
62bcfa4f17f927d3eac1f435cb8f9a790e8fd665
/teamwork(reversestring).py
50b8fead0f1b9c4ee4763f5fab28b681c5bb4667
[]
no_license
https://github.com/tarnilok/javascript-python
c835c9b35f76e4e33a64e60e5c1a7f47ba42f5ce
8c8164434f9e237f9c6c437e72e71e75802eb281
refs/heads/main
2023-08-14T00:12:11.907006
2021-10-06T21:23:40
2021-10-06T21:23:40
381,395,858
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Solution 1 # def reverser (ins) : # return ins[::-1] # print(reverser(input("give me a string to reverse").strip())) # Solution 2 # def reverser2 (ins) : # str = "" # for i in ins: # str = i + str # return str # print(reverser2(input("give me a string to reverse").strip()))
UTF-8
Python
false
false
305
py
16
teamwork(reversestring).py
11
0.577049
0.560656
0
15
19.333333
64
KaranToor/MA450
16,329,465,668,793
af7a4e76165e765480c3b3e4052458b3f008c9ed
23611933f0faba84fc82a1bc0a85d97cf45aba99
/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/iam/v1/iam_v1_messages.py
564ea8ef5e1279851d920900a5b744732ee51a1d
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
https://github.com/KaranToor/MA450
1f112d1caccebdc04702a77d5a6cee867c15f75c
c98b58aeb0994e011df960163541e9379ae7ea06
refs/heads/master
2021-06-21T06:17:42.585908
2020-12-24T00:36:28
2020-12-24T00:36:28
79,285,433
1
1
Apache-2.0
false
2020-12-24T00:38:09
2017-01-18T00:05:44
2020-12-24T00:36:47
2020-12-24T00:38:08
46,069
1
1
4
Python
false
false
"""Generated message classes for iam version v1. Manages identity and access control for Google Cloud Platform resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls. """ # NOTE: This file is autogenerated and should not be edited by hand. from apitools.b...
UTF-8
Python
true
false
30,377
py
1,342
iam_v1_messages.py
977
0.726043
0.717747
0
792
37.354798
94
kastnerkyle/research_megarepo
15,178,414,457,209
893c345dbd1ab1cbd3f94a1e4d6e2d2db6326d80
2ec26d004a653c0576594e48ac13dd71f539b30a
/crikey/conditional_audio/kmedians.py
953853b6d0d382f2f6d4ef307677afa039f3a50f
[]
no_license
https://github.com/kastnerkyle/research_megarepo
6aca5b2c3b2413e0def1093b23f2826e3e7e5e97
ab182667650fd59b99f75d4b599d7ace77a3f30b
refs/heads/master
2021-01-17T20:31:52.250050
2016-12-27T01:28:54
2016-12-27T01:28:54
68,341,074
13
2
null
null
null
null
null
null
null
null
null
null
null
null
null
# Author: Kyle Kastner # Thanks to LD for mathematical guidance # License: BSD 3-Clause # See pseudocode for minibatch kmeans # https://algorithmicthoughts.wordpress.com/2013/07/26/machine-learning-mini-batch-k-means/ # Unprincipled and hacky recentering to median at the end of function import numpy as np from scipy.cl...
UTF-8
Python
false
false
2,472
py
85
kmedians.py
76
0.591424
0.568366
0
67
35.895522
91
matthewdhoffman/mattenv
4,681,514,388,400
ca2f5469dc4cb7398cd564a20f8dd571900ab0ca
3ca064a57101e3c31e12098e4cc7f4fd4db2417d
/configs/.ipython/profile_default/startup/startup.py
7e9336aa1f83acb6ba8816e8040f3eecfba54533
[]
no_license
https://github.com/matthewdhoffman/mattenv
2e0d4bce9e5eb4cf5da132864ae4672e52e2f82d
c46a0bd0efc306e8a2d5cbb6591ed5bb7225be9f
refs/heads/master
2020-06-16T07:32:36.023299
2016-12-21T21:41:53
2016-12-21T21:41:53
75,233,900
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os, sys, re, cPickle, gzip, time, collections, IPython, h5py, pandas from itertools import * import numpy as np import scipy, scipy.special, scipy.stats, scipy.weave sys.path.append(os.path.expanduser('~/mattenv/python')) from mdhlib import * from matplotlib.pyplot import * ip = IPython.get_ipython() ip.magic('...
UTF-8
Python
false
false
341
py
4
startup.py
2
0.759531
0.756598
0
10
33
75
liuyang9643/AI_toy
4,552,665,334,813
9d06c650dbb4f0cc415ee22aa0a396db984b37c3
aada3c89a69d3d24bd1526b60edefb7a17766fce
/serv/devices.py
bb08aba526ca14cc0c0a82a227a1b3ed9ff0b815
[]
no_license
https://github.com/liuyang9643/AI_toy
d67530a2ba89f725417ab30ef6494c40cc0a530e
dfb1f939aeecc591c318e4e49c3de9ff7328a068
refs/heads/main
2023-05-13T16:06:53.862771
2021-06-04T11:26:33
2021-06-04T11:26:33
373,808,200
0
0
null
false
2021-06-04T11:26:34
2021-06-04T10:38:53
2021-06-04T10:49:37
2021-06-04T11:26:33
0
0
0
0
Python
false
false
from bson import ObjectId from flask import Blueprint, jsonify, request from setting import MongoDB, RET device = Blueprint("device", __name__) # 扫码绑定玩具 @device.route("/scan_qr", methods=["POST"]) def scan_qr(): device_key = request.form.to_dict() # 查询当前的设备编号是否已经授权 device_info = MongoDB.dev...
UTF-8
Python
false
false
4,243
py
17
devices.py
14
0.518376
0.515549
0
138
26.195652
98
google/mediapipe
704,374,646,052
95b920cadd4c1735c8e660abb7924836902a2e64
a64eeba4575eee849b459dab9c7000350ee636f1
/mediapipe/model_maker/python/core/utils/loss_functions_test.py
3a14567edefe4d337a8fce3b234979d4a1a5284e
[ "Apache-2.0", "dtoa" ]
permissive
https://github.com/google/mediapipe
0b6b56aff8bacc7b680c205f0788f1b49dd33f5e
007824594bf1d07c7c1467df03a43886f8a4b3ad
refs/heads/master
2023-09-01T16:11:21.218234
2023-09-01T11:55:21
2023-09-01T11:57:34
191,820,100
23,940
5,164
Apache-2.0
false
2023-09-14T09:01:36
2019-06-13T19:16:41
2023-09-14T08:55:03
2023-09-14T09:01:36
593,203
23,335
4,756
293
C++
false
false
# Copyright 2022 The MediaPipe Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
UTF-8
Python
false
false
12,605
py
2,696
loss_functions_test.py
1,815
0.607061
0.563745
0
345
35.536232
79
DomNelson/wf_coalescent
6,562,710,033,661
56aeae6160e58a339db772cd9786d4c1e097409e
6eb4a52d22ae21126f1ae8a0f61c367e1c38e9c1
/scripts/admixture_props.py
216f4f5e68b99bcefea6c1554d2b3272d8052d8d
[]
no_license
https://github.com/DomNelson/wf_coalescent
b7e863d44d5a90db6c8db8f97bd535d579b9b248
842a3f22c075b6499b13f214adfb752b80c4e4a4
refs/heads/master
2022-04-22T04:42:45.070921
2020-03-30T18:25:35
2020-03-30T18:25:35
123,977,115
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys, os sys.path.append('../../msprime') sys.path.append('../../msprime/lib/subprojects/git-submodules/tskit/python') import msprime import collections import numpy as np import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt import seaborn as sns import argparse import pandas as pd from tqdm im...
UTF-8
Python
false
false
13,909
py
25
admixture_props.py
20
0.582644
0.553311
0
435
30.974713
83
hschwane/offline_production
17,549,236,390,016
61b08e0db34f69032d4512b276c321a913cd2378
70450f0c551adf47b450468e424f4f90bebfb58d
/icetray/resources/test/pyparameter.py
2e0d11ae332fcd62bb1a7c57543f1faf0fdecd7d
[ "MIT" ]
permissive
https://github.com/hschwane/offline_production
ebd878c5ac45221b0631a78d9e996dea3909bacb
e14a6493782f613b8bbe64217559765d5213dc1e
refs/heads/master
2023-03-23T11:22:43.118222
2021-03-16T13:11:22
2021-03-16T13:11:22
280,381,714
0
0
MIT
true
2020-07-17T09:20:29
2020-07-17T09:20:29
2020-07-10T08:48:54
2020-07-10T13:59:48
78,754
0
0
0
null
false
false
#!/usr/bin/env python # # Sample i3module in python # from I3Tray import I3Tray from icecube import icetray from icecube import dataclasses class GetI3Int(icetray.I3Module): def __init__(self, context): icetray.I3Module.__init__(self, context) self.AddParameter("obj", "Python wrapped C++ class", ...
UTF-8
Python
false
false
526
py
2,503
pyparameter.py
1,786
0.697719
0.669202
0
25
20
66