blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
b020d54ab698fb8ef1164833693ee6ef241f31bd
a8470bd653c6c08f66f1181342414e524ab4b2f0
/day68.py
0a3b763f341408d059eb1ef5baad2399ec59e594
[]
no_license
khush611/algodaily
321201d97ee5f0cd72c08e8c6e0f22e26dc89569
96f7b0d440840f595303d79344678511b45a186a
refs/heads/master
2020-04-23T11:42:05.487017
2019-05-03T18:17:54
2019-05-03T18:17:54
171,145,239
0
0
null
null
null
null
UTF-8
Python
false
false
1,635
py
def kadane(arr, start, finish, n): Sum = 0 maxSum = -999999999999 i = None finish[0] = -1 local_start = 0 for i in range(n): Sum += arr[i] if Sum < 0: Sum = 0 local_start = i + 1 elif Sum > maxSum: maxSum = Sum start[0] = local_start finish[0] = i if finish[0] != -1: retu...
[ "khushboobhushan611@gmail.com" ]
khushboobhushan611@gmail.com
1c1a42ba57643d88c08337c7518606ba8bad7ab5
63518747ea358918412dfc2794a8632ed4c9ee25
/python/xml/update.py
a995e1582fd2b86b7e3c797533d0367985970d0e
[]
no_license
YuChuanchun/SamyuDemos
83b036d14f1b9dd8c73c671f2e699f156750ab6f
dc59bb649dd23e67c944aa15b28cb2726c2e9308
refs/heads/master
2016-09-08T01:54:46.882939
2013-09-05T01:43:14
2013-09-05T01:43:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,246
py
import xml.etree.ElementTree as ET TAG = 'update' FILE_PATH_COMMON = 'common.py' FILE_PATH_CONFIG = 'config.xml' def update(): try: output = open(FILE_PATH_COMMON, 'w') except IOError: print(TAG, 'open common.py error') tree = ET.parse(FILE_PATH_CONFIG) root = tree.getroot() for ch...
[ "yuchuanchun@gmail.com" ]
yuchuanchun@gmail.com
5ce0e3c35c45029b71c5e573cd7bce007d4566d0
7dd7e4fdb55ec7cd61ec2a9d30271502968d1444
/gunicorn_config.py
50547013609862fb4ef732d58265ba5712be901b
[]
no_license
erik-farmer/flask-boiler-plate
342e5ebc0116a3762dd7a8b07704cff97297ad88
52690fc7cf070d0aeffde2e944fed9505f9c8533
refs/heads/master
2021-01-11T21:53:41.401816
2017-12-07T23:59:53
2017-12-07T23:59:53
78,870,174
0
0
null
2017-12-07T23:59:54
2017-01-13T17:24:25
Python
UTF-8
Python
false
false
118
py
import multiprocessing bind = "127.0.0.1:8000" workers = multiprocessing.cpu_count() * 2 + 1 worker_class = 'gevent'
[ "efarmer@protagonist.io" ]
efarmer@protagonist.io
e098bbdb9cba474a357454d9309d907c80d12f00
6529e119d2ad72942ed361e463f7e8fca2bbf5da
/scripts/filtersnp.py
c794c155dcf3ef6fbc0550be4a1710cb29c6f551
[]
no_license
sduarrir/codemsc
085b7e79eaa78c7d5847e5002530490f14d40804
e8ca503d6def40d8de17cc06a17f1c6d6c521ddb
refs/heads/master
2022-12-10T23:07:08.763701
2020-09-09T00:12:46
2020-09-09T00:12:46
290,771,411
0
0
null
null
null
null
UTF-8
Python
false
false
1,238
py
#from a given file filters in snps in a list, using plink #example: filtersnp.py file_containing_all_filenames snplist import sys import os #FUNCTIONS #output file name (action is the _ added) def outputname(inputf, act): try: name, _ = inputf.split('.') #make sure there is no extension except ValueError: name...
[ "sduarrir@example.com" ]
sduarrir@example.com
f967c5af25bac400dae4bde6a3438947838cd97e
e35eb92b5ab6547119585004b9eea3cafe948050
/efsw/storage/errors.py
84ab6044f4679693c7697a6ed29b48ba498314da
[]
no_license
einsfr/mmkit
0a084db85b2cf5ba268e692676095d768733f387
f12bc2f83254a3123e02abdc105816cc04c438b5
refs/heads/master
2020-12-31T05:56:19.287611
2016-06-10T05:56:58
2016-06-10T05:56:58
29,473,203
0
0
null
null
null
null
UTF-8
Python
false
false
838
py
FILE_DOES_NOT_EXIST_IN_STORAGE = 'В хранилище "{0}" отсутствует файл "{1}".' STORAGE_DOES_NOT_CONTAIN_FILE = 'Файл "{0}" не принадлежит хранилищу "{1}".' FILE_ALREADY_EXISTS_IN_STORAGE = 'Файл "{0}" уже существует в хранилище "{1}".' STORAGE_ROOT_NOT_FOUND = 'Корневая папка хранилищ "{0}" не существует.' STORAGE_ROOT_R...
[ "einsfr@users.noreply.github.com" ]
einsfr@users.noreply.github.com
c218c71173502582b74a6b241a8f7da1b3befe41
4c3e2557044884be630d3c6c47c3e446f951c681
/Contest/ABC020/B.py
29b372eb99969ecea9bb9383c5018b6e223e5b8f
[]
no_license
monda00/AtCoder
01bdf89338c22f1792fde7f85728e01d97e5fd34
abf947f2cdfe87486ad8935ba078918d4809573a
refs/heads/master
2021-11-10T00:54:01.144582
2021-11-07T13:24:03
2021-11-07T13:24:03
186,128,070
0
0
null
null
null
null
UTF-8
Python
false
false
54
py
a, b = input().split() ab = int(a + b) print(ab * 2)
[ "monda0524@gmail.com" ]
monda0524@gmail.com
e88cd2a0243ec52448cd76b9a2c30cd42ee9c40a
519256c90af4dbc891455612e7984ca01462b189
/test.py
1c8cc9408b51445ffad18144333b367df0c6c21c
[]
no_license
sajjad-yazdanparast/ui-ai991-python
b15a4e795a24eeb632351e86ea0554ac6628ee37
816bd83ebc9c81148d6012f8b89d9c06776bedd8
refs/heads/master
2023-02-23T04:26:45.090170
2021-01-31T01:27:50
2021-01-31T01:27:50
315,128,221
0
0
null
2020-11-22T20:42:23
2020-11-22T20:42:23
null
UTF-8
Python
false
false
382
py
a = [1,2,3] # if a ==[1,2,3] : # print('mamad') # pass # # print(a) # def eq (mlist) : # if a == mlist : # pass # print(mlist) # eq(a) # ) # def tst (a) : # a.append(4) # tst(a) # print(a) # a = [ # [-1,-2,-3], # [1,2,3] # ] # a[4] a = (4,6) if 0< a[0] <5 : pri...
[ "sajjad.yazdanparast.tehrani@gmail.com" ]
sajjad.yazdanparast.tehrani@gmail.com
b182d112f6cb1b8565fb48e838a02291e2d64987
2bcc421ee345b00cf805c543b37d18b5d019dc04
/adafruit-circuitpython-bundle-6.x-mpy-20201126/examples/azureiot_central_properties.py
415f9b7095f77f7c046958466f0ecc7f3a5f28bd
[]
no_license
saewoonam/sc-current-source-titano
5a1ad46889c1b09c168424901fd71cb4eab5c61b
1c136aa8b61268d9ac0b5a682b30ece70ab87663
refs/heads/main
2023-03-02T22:12:26.685537
2021-02-09T03:28:01
2021-02-09T03:28:01
317,299,900
0
2
null
null
null
null
UTF-8
Python
false
false
4,963
py
import random import time import board import busio from digitalio import DigitalInOut import neopixel from adafruit_esp32spi import adafruit_esp32spi, adafruit_esp32spi_wifimanager import adafruit_esp32spi.adafruit_esp32spi_socket as socket from adafruit_ntp import NTP # Get wifi details and more from a sec...
[ "nams@nist.gov" ]
nams@nist.gov
f2ec15ec6b195fffb34cf7280adecd51ca8ee052
95d1dd5758076c0a9740d545a6ef2b5e5bb8c120
/PY/basic/class_inherit.py
98146eaa6d42f48c981e6d630f45405486b34194
[]
no_license
icoding2016/study
639cb0ad2fe80f43b6c93c4415dc6e8a11390c85
11618c34156544f26b3b27886b55c771305b2328
refs/heads/master
2023-08-31T14:15:42.796754
2023-08-31T05:28:38
2023-08-31T05:28:38
117,061,872
2
0
null
null
null
null
UTF-8
Python
false
false
1,631
py
#!/usr/bin/python from __future__ import print_function class B(object): class_var = None def __init__(self): print("Class B init..") self.inst_var = 0 def func(self): print("B::func()") print("class_var=%s" % self.class_var) print("inst_var=%s" % self.inst_var) ...
[ "icoding2016@gmail.com" ]
icoding2016@gmail.com
3eb455197535d8594aa8a4424170a19929e20ec6
9a75b0d21d52b9490796d977245912821df9f5fc
/Event Manager/manager/models.py
96b11f419b4a55c471e1e58cac0c3441797a54ae
[]
no_license
vishv843/woc3.0-eventmanager-vishv-
b77fe7a91fe58f505b8b432687bff58018a6f1fd
cb947786f92434b786e5173b6b4986121a28cd79
refs/heads/master
2023-02-24T01:33:46.150053
2021-01-31T18:24:05
2021-01-31T18:24:05
326,456,590
0
0
null
2021-01-21T17:28:00
2021-01-03T16:57:31
Python
UTF-8
Python
false
false
872
py
from django.db import models class event(models.Model): event_ID = models.IntegerField() event_name = models.CharField(max_length = 50) description = models.TextField() from_date = models.DateField() from_time = models.TimeField() to_date = models.DateField() to_time = models.TimeField() ...
[ "201901453@daiict.ac.in" ]
201901453@daiict.ac.in
2bb7c7ba3061c50db496fcc55f5566792482e2cd
65c8a6a7af2ee8cdf3866d012ea814887bd68a26
/ppro360_automation/Ppro360/CoachingAndTriadCoaching_Pages/RapidFireProcessConfirmation.py
0a3d8240f845597bb551d6c2ea4dd50383a5257f
[]
no_license
1282270620/automation_test
9b3c595c3f7a139ded0a638ae4bcf31e0b7f9686
3faf86f0d641089eaf27eba906d22157dd2c1f5d
refs/heads/master
2020-04-01T06:35:33.873989
2018-10-21T03:05:17
2018-10-21T03:05:17
152,954,477
0
0
null
null
null
null
UTF-8
Python
false
false
3,478
py
''' Created on 20171101 @author: lei.tan ''' from selenium.webdriver.common.by import By from Tablet_pages import BasePage class RapidFireProcessConfirmation(BasePage.Action): def __init__(self): self.callRecordingNumber_loc=(By.XPATH,"//*[@id='container']/div/section/div/form/div/div[...
[ "1282270620@qq.com" ]
1282270620@qq.com
192c788a6fe5b21b08215be378842606454be960
b991746b8b0efb2b4e59826c828a49404a6b38fe
/chatapp/utils.py
ba167d0feab1b068e342c7bb0e6c9a9d8368f264
[]
no_license
fishoe/ChatApp
181086e0d23bed9ac1ac2873ae31abb803c25c3c
4e209d7215ffcb9af8fd71ba46a9ff223e4c8cbe
refs/heads/master
2022-12-15T21:41:52.392009
2020-08-29T09:53:40
2020-08-29T09:53:40
291,245,172
0
0
null
2020-08-29T09:57:49
2020-08-29T09:57:49
null
UTF-8
Python
false
false
749
py
import os from asgiref.sync import sync_to_async from tensorflow.keras.preprocessing.sequence import pad_sequences from .models import User @sync_to_async def checkHateWord(name, model, tokenizer, text): user = User.objects.get(name = name) model = model if model else None token_stc = text.split() e...
[ "songys96@naver.com" ]
songys96@naver.com
1b6cabcb128d8e6b00136c69f47189a012777663
d67989daa0ae2e53d8bb1e7edcaadee2c61aa5e6
/code/main.py
2ab7f098cd453be8308a5eb28982806717def5a3
[]
no_license
yogeshralhan/Python_Code
4a5e8d714c0355fbf1d07586b9f89ec849069ebe
9a4e818dd59f0c99694a99a632f36c946dd4e26d
refs/heads/master
2021-01-10T01:16:01.407821
2016-03-29T06:18:45
2016-03-29T06:18:45
54,949,593
0
0
null
null
null
null
UTF-8
Python
false
false
166
py
# math Functions import math num=5.6 print math.factorial(6) print math.ceil(num) # rename math function from math import pi as py print math.pi , py
[ "yogeshralhan@gmail.com" ]
yogeshralhan@gmail.com
7bd524537437d1adee982ca9c0168058ca7ea7e0
97dfb2d929f72a90d8f3c4c77297aca0c96af45e
/python/plot_location.py
4d93652d75f97e5db54f311263bf7d0804789990
[]
no_license
angelaslin/streetstyle-experiment
59b76041be0883bd050945b04020756c72bf4aea
7a15e87055ce9f8a164f965b438db1d05342f753
refs/heads/master
2021-07-25T07:03:22.710056
2017-11-03T22:02:37
2017-11-03T22:02:37
108,179,509
0
2
null
null
null
null
UTF-8
Python
false
false
957
py
#!/usr/bin/env python import sqlite3 import simplekml def fetch_by_city_id(city_id, cursor): # make the query return cursor.execute("SELECT * FROM streetstyle27k WHERE city_id=" + repr(city_id)) def write_kml(kml_name, positions): kml = simplekml.Kml() for p in positions: pnt = kml.newpoint(c...
[ "lakshay.narula@utexas.edu" ]
lakshay.narula@utexas.edu
262e5a8fc1b3277a125ac7ac66fefddc56cae93a
a457e3284fa1f32257969a72c69082dd0179eb73
/gladweb/config.py
ef8979cda314e9b8cbea6d22467ff25691cdb8b3
[]
no_license
slow2go/glad-web
19377a6f17f19a4ebc46bc9c61afc9f709f628b0
13f8674c9602d1288b5de9437cf618e835fcac4e
refs/heads/master
2021-01-24T08:29:43.615111
2017-05-22T14:29:30
2017-05-22T14:29:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
880
py
# --- # Default Configuration # --- import os import gladweb.cache base_path = os.path.abspath(os.path.join(os.path.split(__file__)[0], '..')) # --- # Flask # --- # This key MUST be changed before you make a site public, as it is used # to sign the secure cookies used for sessions. SECRET_KEY = 'ChangeMeOrGetHacke...
[ "admin@dav1d.de" ]
admin@dav1d.de
24f8ccc67d87150963c71b87f4fdea9a87f39455
9e16c5aca51bfc4503351081e0d6fd639dfc27c0
/membership_app/views.py
6a14a76d8c6d62086c2162ee9e41dbb0d72e7549
[]
no_license
AlexisGfly/exam_repo
91d717be0449ab3724e9f9b4a76651a62a2fba70
e219acc02cf14c2a9173f161a74adf1871ca20f4
refs/heads/main
2023-06-21T22:25:07.912477
2021-07-24T18:40:38
2021-07-24T18:40:38
389,174,872
0
0
null
null
null
null
UTF-8
Python
false
false
5,456
py
import re from django.http import request from django.shortcuts import redirect, render from django.contrib import messages from .models import * import bcrypt # Página de inicio #======================================================================================= def index(request): return render(request, 'in...
[ "48730224+AlexisGfly@users.noreply.github.com" ]
48730224+AlexisGfly@users.noreply.github.com
6c5d5ada598b2db69393e93d23c815fcdc307669
1be6ff5b04d862ac1d428f8d68684cdd9396ea15
/total-spent-by-customer.py
d4a03377e1b0852ad4af02d689a7f4642bc88422
[]
no_license
thileite/Course_Repository-Taming-Big-Data-with-Apache-Spark-and-Python---Hands-On-
18f75355f5e7188d6fa8ac09d04805f74edfb3a2
b6707bffe84b951c360b772a9791ee834e8e086d
refs/heads/master
2022-04-23T18:46:51.012728
2020-04-23T17:38:53
2020-04-23T17:38:53
256,584,918
0
0
null
null
null
null
UTF-8
Python
false
false
619
py
from pyspark import SparkConf, SparkContext conf = conf = SparkConf().setMaster("local").setAppName("CustomerBill") sc = SparkContext(conf = conf) def parseline(text): fields= text.split(',') customerId=int(fields[0]) dollars=float(fields[2]) return (customerId, dollars) lines = sc.textFile("C:/Spark...
[ "thiago.sp57@hotmail.com" ]
thiago.sp57@hotmail.com
25eb0d90d6fb21b20d59956b7dfe5d72fd792604
e34ed1ae4f4674def35b2b079226ac98dcd58ee9
/dchblog/mainsite/views.py
e999a1066d37b342f459105107aa7671bc7c23fd
[]
no_license
dch2333/dchblog
315edf0d750e08f37716dc1640c9ff30eb998316
2371dcddc4696ae07ff0997dc02a1b3e9aeb6543
refs/heads/master
2020-03-22T12:51:06.800707
2018-07-07T08:29:21
2018-07-07T08:29:21
140,066,228
0
0
null
null
null
null
UTF-8
Python
false
false
977
py
from django.shortcuts import render, redirect from django.http import HttpResponse from .models import Post from django.template.loader import get_template from datetime import datetime # Create your views here def homepage(request): if request.session.get('is_login', None): template = get_templ...
[ "noreply@github.com" ]
noreply@github.com
81031a4507a7ac0e0004f8b3d17483130571c910
718e808d97e56e4ca065a97e2d533db4b760ac0e
/easy_scoping/widgets/migrations/0006_auto_20180711_2237.py
a28f9e450e4d5be25b169335ccba2659ff0bfeee
[]
no_license
net-prophet/django-easy-scoping
0baa28234da075444ef49b2ab589fc574b5481d6
983ea86d7e5702d8322732c05b4378680d71f479
refs/heads/master
2021-07-05T06:46:31.117631
2020-07-31T03:12:11
2020-07-31T03:12:11
138,215,540
12
1
null
2020-07-31T03:12:12
2018-06-21T19:54:41
Python
UTF-8
Python
false
false
393
py
# Generated by Django 2.0.6 on 2018-07-11 22:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('widgets', '0005_auto_20180711_1733'), ] operations = [ migrations.AlterField( model_name='widget', name='cost', ...
[ "wellsroberte@gmail.com" ]
wellsroberte@gmail.com
673090671963e171e1144b22eb2e739347192faf
87b0d4587c839250957b17127daac1c73e216d7d
/default/migrations/0001_initial.py
7477a3be0c4393e9b4b9f9326b352968745f3f0e
[]
no_license
10927/poll
f447edad701df882cb690aa48b9546169aad61d7
5a0f21208338f11ebbf8723d167e4f72eb425e63
refs/heads/master
2020-05-07T12:42:20.157683
2019-05-01T07:41:15
2019-05-01T07:41:15
180,516,889
0
0
null
null
null
null
UTF-8
Python
false
false
1,107
py
# Generated by Django 2.1.3 on 2019-03-27 07:45 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Option', fields=[ ('id', mo...
[ "i13585904041@gmail.com" ]
i13585904041@gmail.com
89798dd5fa1297e000b83d9ca339b90c5a77ab26
743185f9314fd7eeb4bbee04e8b14aae781caa0b
/Problems/Very odd/main.py
747a9f3f36ff8963a8f9a42092b3b46904910cf6
[]
no_license
v4rden/JetBrainsAcademy-Python-RockPaperScissors
c01dd5db31a109c85274cf36a428e750315e75d3
b5952b69d1ba5999efeb54b4bc04091d038d3c0f
refs/heads/master
2023-02-25T22:58:35.093887
2021-01-31T12:54:56
2021-01-31T12:54:56
318,513,578
0
0
null
null
null
null
UTF-8
Python
false
false
120
py
dividend = int(input()) divisor = int(input()) quotient = dividend / divisor is_odd = quotient % 2 != 0 print(is_odd)
[ "denys.variah@gmail.com" ]
denys.variah@gmail.com
3e9fe40f62be60e37282225b84bfdd04a3e613a2
aea96aa406250c3a2a8f2799e6cbbad256c262c3
/test_2.py
c7b8058a78d61aaf7e83d31f493fb1c1dff1195d
[]
no_license
xiaochuanjiejie/python_exercise
cb0ffaa4b7c961c8ca9847526c84ee6ba261620c
710fa85fd2d7a17994081bdc5f8b5ff66b77416e
refs/heads/master
2021-01-21T16:18:04.640093
2017-08-11T10:02:49
2017-08-11T10:02:49
95,403,650
0
0
null
null
null
null
UTF-8
Python
false
false
209
py
__author__ = 'chuan' def changer(a,b): a = 1 b[0] = 'spam' return a,b X = 2 L = [1,2] a,b = changer(X,L) print (a,b) print '....' X = 2 L = [1,2] changer(X,L[:]) print X print L
[ "xiaochuanjiejie@163.com" ]
xiaochuanjiejie@163.com
f3dc8044a675bb0fbb19c8b606f2f0e3104bdcc5
4f0869639ee57f063f2d82c34dbfcda8a9ec12a3
/filled_UBO_graph.py
e2bf2dfbe72963abd68726e93c943c735acced3c
[ "MIT" ]
permissive
Green-Resilience/GeoLinked_HollyFerguson
be82d82dff163ad904ef924f3ffb821f946f0c60
aa5e93a602a6b6a1a4c6183b1e117ed166dd21ba
refs/heads/master
2020-12-03T06:41:47.515975
2017-07-25T01:22:54
2017-07-25T01:22:54
95,718,820
1
0
null
null
null
null
UTF-8
Python
false
false
23,486
py
#------------------------------------------------------------------------------- # Name: filled_UBO_graph.py # Purpose: Fill graph with mapping for given structure # # Author: Holly Tina Ferguson hfergus2@nd.edu # # Created: 06/10/2015 # Copyright: (c) Holly Tina Ferguson 2015 # Licence: The U...
[ "Holly.T.Ferguson.57@nd.edu" ]
Holly.T.Ferguson.57@nd.edu
7e8686362d0940c1585ac58643d980ba04aeb25c
e320f6b1061970791c4e8def4dd7722e098e7f27
/googlemaps/plotter.py
02b63ba5da169a642d664fddab8206ec89965dd8
[ "Apache-2.0" ]
permissive
shehla/house-traffic-profiler
fe1acaf156f0b94f9c2e680b941d94dca845d242
543324c3a2e5dfc0dcd8c7bb8e46828369e44d57
refs/heads/master
2020-05-21T17:46:45.311360
2016-09-28T03:06:58
2016-09-28T03:06:58
63,258,843
0
1
null
null
null
null
UTF-8
Python
false
false
5,094
py
import matplotlib matplotlib.use('Agg') import datetime from matplotlib.dates import date2num import numpy as np import pylab as pl import stock_common def scatter_values_with_dates(buy_values, buy_dates, color, marker_type): dates = stock_common.convert_str_to_datetime(buy_dates) buy_dates = [date2num(dd) ...
[ "ubuntu@ip-172-31-14-204.us-west-1.compute.internal" ]
ubuntu@ip-172-31-14-204.us-west-1.compute.internal
3861ea6d7d2718a347c6dc8c673b025145618266
244f21fdb16d07c27cf89ce90a7f9c234f45ca89
/api/models.py
e80a41c064730b454be20fb0f9d13e2f5764790b
[]
no_license
falkeura/REST-API-Design
73f235f16a90045682ede2fb1c1dd790f7235797
572f0c9811df17293d12b7e54983a413351c171f
refs/heads/master
2021-01-17T18:21:24.072612
2016-06-15T10:31:02
2016-06-15T10:31:02
61,199,374
0
0
null
null
null
null
UTF-8
Python
false
false
881
py
from django.db import models class Artist(models.Model): id = models.AutoField(primary_key=True) name = models.CharField(max_length=100, blank=True, default='') year = models.IntegerField() #albums = models.ManyToManyField(to=Album) def __str__(self): return self.name class Track(models.Mo...
[ "falkeura@gmail.com" ]
falkeura@gmail.com
c145412791f2ebae17c77dff3bb1a42564469b78
ba91d301f67130b01dac8febd577a255a3cc9877
/main/migrations/0007_delete_counter.py
cc2192ddc997aea15673a61ea642308b276e6034
[]
no_license
lars0320/django-deploy-test
06fa2581eb2e46ccfbae759a54b52049a4b6ee98
a716204f6784c9e043c416c2f25d516b99d1e16d
refs/heads/master
2023-02-15T10:04:02.338236
2021-01-11T02:17:57
2021-01-11T02:17:57
305,244,818
0
0
null
null
null
null
UTF-8
Python
false
false
282
py
# Generated by Django 3.1.2 on 2020-12-07 15:47 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('main', '0006_counter'), ] operations = [ migrations.DeleteModel( name='Counter', ), ]
[ "lars@Larsui-MacBookPro.local" ]
lars@Larsui-MacBookPro.local
960d2ddd5d6ba0162538f8c11cfd3df4a99ade54
3a25ca7b3818df651566390e1c2a1849750edf4d
/python/bin/servicetest.py
9268ededa727a8984509d8c4f9e56300201b63bf
[]
no_license
rr1mand0/sandbox
2068107d126ed75be59ff34f13317f48644564d2
6ed10c1e867821d14415c6cc2a3a4b7916d127cc
refs/heads/master
2022-12-24T05:50:10.843272
2016-05-05T19:42:31
2016-05-05T19:42:31
3,511,839
0
1
null
2022-12-19T12:01:22
2012-02-22T06:00:23
C++
UTF-8
Python
false
false
876
py
import unittest import re import sys from couch import * import json class TestThesaurus(unittest.TestCase): def setUp(self): self._thesaurus = { "cabage" : "cabbage", "cabagge" : "cabbage", "tom's": "tomatoes", "toms": "tomatoes", "tom": "tomatoes", "tomato": "tomatoes", ...
[ "raymund.rimando@arcticwolf.com" ]
raymund.rimando@arcticwolf.com
a4addfee73db8a0a6024bea2da7812a3a61be803
68be01bcf1d82e77f8439ca08db98b60df265dd5
/yt1209/unittest_interval.py
92ed2e372d7d27b9b57f7d7941eea74f10410814
[]
no_license
ds-ga-1007/assignment7
549d889201d7dbce45614a9b7fd3f72e5d2c67fc
33c7a3e579c37ce3096099a350a7c8135b302ea4
refs/heads/master
2020-12-24T11:32:56.420860
2016-12-08T02:07:51
2016-12-08T02:07:51
73,031,506
0
76
null
2017-01-06T17:44:40
2016-11-07T01:31:54
Python
UTF-8
Python
false
false
3,181
py
''' Created on Nov 14, 2016 @author: Yovela ''' import unittest from interval import interval, InputError, MergedError, mergeIntervals, mergeOverlapping, insert class Test(unittest.TestCase): def test_validinterval(self): """ test for interval function, test the range of integers it represents""" ...
[ "Yovela@tuyuweideair.home" ]
Yovela@tuyuweideair.home
b148058c1ad39e9e04a584f58f85df8d48650094
d5fdece50ddc00f2a5686cd0839716bc0ca55622
/Program/.pythonstartup.py
07d95ebb4121a7f68c5f50b4cabdad15bab2cea2
[]
no_license
uchihanuo/helloworld
47611945919c0d82b67f0a0c13107e7793c7b0b2
bf3103fb69e2ffcc4e5a7201a2f5b5086e3d9b6c
refs/heads/main
2023-06-20T20:04:33.947053
2021-07-23T07:50:39
2021-07-23T07:50:39
388,643,831
0
0
null
null
null
null
UTF-8
Python
false
false
362
py
import readline import rlcompleter import atexit import os # tab autocomplete readline.parse_and_bind('tab: complete') # history file histfile = os.path.join(os.environ['Home', '.pythonhistory']) try: readline.read_history_file(histfile) except IOError: pass atexit.register(readline.worte_history_file, histfile...
[ "jtrckr@163.com" ]
jtrckr@163.com
e2f599d018fbbe61741e035468b72b0a90cef398
bc9bf9aa31595bd329cb685210330f54d04bcdc5
/Python/Camera calibration/Nokia/UNDISTORT.py
43b7f65e9174601cfee0b63d6128d2f48a767ca1
[]
no_license
akirilltikhonov/Tikhonov_Nagin
05c38b31bb43c9cf666537ad793ae6f594dad0d2
5ebec61bbb4a12eae3fa43c8d4db5a712dab0811
refs/heads/master
2022-09-13T12:40:35.838695
2020-06-02T21:23:08
2020-06-02T21:23:08
219,587,390
0
0
null
null
null
null
UTF-8
Python
false
false
871
py
import numpy as np import cv2 import glob # load matrix intrisinc parametrs and distortional coefficient mtx = np.load('mtx.npy') dist = np.load('dist.npy') #dist = np.zeros((1,5), np.float32) print(mtx) print(dist) #dist [0,0] = -0.2; print(mtx) print(dist) Num = 1 images = glob.glob('photo before and after cali...
[ "akirilltikhonov@gmail.com" ]
akirilltikhonov@gmail.com
010106af979697d7647a4ff57d51f29884b5f48e
c2b4558a27eb913ca17025c9f8b0869e1166320b
/todo/migrations/0001_initial.py
5aebb1a6834985bd5c00d2aea930b5fdbcd6a3b5
[]
no_license
grvcisco/todo-app
10061232cfc6f8353ee70a003472dd56bf08fe26
ce952c0d63ea16ae09bdce6c0f47f06cd87fce53
refs/heads/master
2022-11-14T10:46:08.529447
2020-07-08T09:32:05
2020-07-08T09:32:05
278,043,236
0
0
null
null
null
null
UTF-8
Python
false
false
998
py
# Generated by Django 2.2.8 on 2020-07-01 13:05 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
[ "er.gauravsri@gmail.com" ]
er.gauravsri@gmail.com
d495f3bc21c8a9c1aaded2b9d73249a00aeee556
47bed3c25e1ee571c236b0b44f7824995ae6a33e
/auto_adb.py
eb59fd811dd8bf824c57d661d02c454f335ae34b
[]
no_license
nikki-liyao/autotest
d47d12c9ff3ceb9c75cceb5304f868aa662c5d38
1991fdea557b950ac89daa0ffb7aaeb44e3a9004
refs/heads/master
2020-09-10T04:01:25.851117
2019-11-14T09:06:03
2019-11-14T09:06:03
221,643,191
1
0
null
null
null
null
UTF-8
Python
false
false
2,989
py
# -*- coding: utf-8 -*- import os import subprocess import platform class auto_adb(): def __init__(self): try: with open('adb_directory', "r", encoding='utf-8') as f1: adb_directory = f1.read()#读取 adb_directoty 内容并赋值 adb_path = adb_directory + 'adb.exe' ...
[ "18339810975@163.com" ]
18339810975@163.com
36c6f52b8183c92be1e1e822824a234b1519eb8f
ec6c5a8df01673132137e1a1179f85bb4179ff78
/Majority.py
9dbb512188fc5df228af121611cebbeaf8acca53
[]
no_license
ShlomoZa/algorithms
1b59fc76f745195fd3fd21757e93ce15a74f4165
85485bc9c66046f8feac840270126e6ab013e2e6
refs/heads/master
2020-05-27T09:33:54.699281
2019-05-25T11:04:51
2019-05-25T11:04:51
188,567,960
0
0
null
2019-05-25T13:11:58
2019-05-25T13:11:58
null
UTF-8
Python
false
false
870
py
def majority_element(seq, default=None): """Find which element in *seq* sequence is in the majority. Return *default* if no such element exists. Use Moore's linear time constant space majority vote algorithm """ candidate = default count = 0 for e in seq: if count != 0: ...
[ "maorlolz1@gmail.com" ]
maorlolz1@gmail.com
03e6be1c5937d65a391365bc08609bd0edec78a5
2579563d2571e52819e502454c1ccffba160855d
/LeibnitzRule_p1.py
dfe686eeb7a577587cb65df89f8389653f6cf3db
[]
no_license
emonhossainraihan/YouTube-videos-1
ebe96504f59fec3dcd99ffcb746d0efc767886e8
071228a7b0bade53089e4d6ea8e63ccc3d7ef750
refs/heads/master
2023-04-14T01:12:05.714504
2021-04-14T13:40:53
2021-04-14T13:40:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
28,670
py
import numpy as np from manimlib.imports import* class IntroAndIntegrals(GraphScene): CONFIG = { # "camera_config":{ # "background_color": "#060100" # }, "x_min": -1, "x_max": 3, "x_axis_width": 8, "y_min": -1, "y_max": 3, "y_axis_he...
[ "abhijithmuthyala211325@gmail.com" ]
abhijithmuthyala211325@gmail.com
c2ea836a58ec6f9d02d3d631bdecf55d3db16ccf
88307f29f2930213819b2a21ac328ee52e5d8d65
/tests/benchmark.py
52a684fb04421ac6481101c185ec87ab22b3704e
[ "BSD-3-Clause" ]
permissive
ChristopherBradley/cogent3
7dc6524d66687402d2bd48c07ca68b41133e9f00
4b4c0fbc77f50aebd74ecf44a6d1777b2e2c0fbb
refs/heads/master
2023-02-27T00:58:29.796585
2020-11-09T04:13:51
2020-11-09T04:13:51
219,615,537
0
0
BSD-3-Clause
2023-02-21T20:03:32
2019-11-04T23:22:58
Python
UTF-8
Python
false
false
5,641
py
#!/usr/bin/env python import sys # ,hotshot from cogent3 import load_aligned_seqs, load_tree from cogent3.evolve.substitution_model import ( TimeReversibleCodon, TimeReversibleDinucleotide, TimeReversibleNucleotide, ) from cogent3.maths import optimisers from cogent3.util import parallel __author__ = "...
[ "Gavin.Huttley@anu.edu.au" ]
Gavin.Huttley@anu.edu.au
c2e1a28b2ecb5eb62a6a9e4203bbb3bc3be76d22
6f4c82ae94fa3a27c7dae7a11c8b4ed27d6b604c
/mysite/settings.py
29ee906269aca3225eddc72e294410c0e99d198f
[]
no_license
mtky3/my-first-blog
6d8dfa158ef84cc47ad1f1d3b96998d5dfaffa97
aacecd1e4c3f85316e53e6a3a6797afff03717bf
refs/heads/master
2021-06-17T21:59:15.353130
2019-09-22T14:08:08
2019-09-22T14:08:08
200,529,000
0
0
null
2021-06-10T21:49:57
2019-08-04T18:41:03
JavaScript
UTF-8
Python
false
false
4,508
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.0.13. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os #...
[ "mk944@hotmail.com" ]
mk944@hotmail.com
1fbd2cbf84bbc7502932e333d4bef73a29abfbed
febf5d7fde1f2908f784c93e095030407b32f301
/astar.py
cfe2384eeebf4e191454a6f39e49409cdfb7bc80
[ "MIT" ]
permissive
Shuhei-YOSHIDA/heuristic_optimization
dcbe7a9203e1c8d071fc2c32cddd02266d44388e
a77a67e92149356ba4c669c84d7afe1154c0ab72
refs/heads/master
2020-03-19T20:41:01.723536
2018-06-23T13:06:50
2018-06-23T13:06:50
136,911,869
0
0
null
null
null
null
UTF-8
Python
false
false
2,199
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ A-star algorithm """ import numpy as np class Node(object): def __init__(self, pose, index): self.pose = pose # information of node self.index = index class Edge(object): def __init__(self, from_index, to_index, cost): self.from_i = ...
[ "s-yoshida@frontier.hokudai.ac.jp" ]
s-yoshida@frontier.hokudai.ac.jp
73a1f841632a9f0870b9f634bf909faf5101b1ad
f7ea41fc9d1b23fa5da8cfa52d6767df8d914128
/tests/parser/cwrjson/encoder/test_json.py
2e16e8037aaf468ff0dc43df28ba66bb0143d55a
[ "MIT" ]
permissive
gitter-badger/CWR-DataApi
f0d903558e688f10aba996b624f5f860c2d12f3c
ba2011bccd2a5046d9d200c2377daf003cf4b9bc
refs/heads/master
2020-12-11T07:59:13.882298
2015-06-01T10:16:21
2015-06-01T10:16:21
37,245,502
0
0
null
2015-06-11T07:16:04
2015-06-11T07:16:04
null
UTF-8
Python
false
false
13,565
py
# -*- coding: utf-8 -*- import unittest import datetime import json from cwr.parser.encoder.cwrjson import JSONEncoder from cwr.file import FileTag, CWRFile from cwr.group import GroupHeader, GroupTrailer, Group from cwr.work import WorkRecord from cwr.agreement import AgreementRecord from cwr.transmission import Tra...
[ "programming@wandrell.com" ]
programming@wandrell.com
d79a0c1c48fca91acad393a1c55d50743108bb09
da6ca4b7a46c38f4ab7b0d6cf089fa243ad8febe
/namesgen/namesgen_model.py
64f7269b22250d9dee23aac5eb2596e3ed3adabd
[]
no_license
Vorotori/namesgen
942b01ac04a687efd2125e9f030262666138d281
5b021605b60486feee628980fb11881949cc9dc7
refs/heads/master
2023-03-30T09:39:59.561554
2021-03-31T10:33:38
2021-03-31T10:33:38
347,580,272
0
0
null
null
null
null
UTF-8
Python
false
false
658
py
# The training code for the model # Accepts X and Y created with create_xy() from 'utils' from tensorflow.keras.models import Sequential from tensorflow.keras.layers import LSTM, Dense, GRU, Dropout # Building actual model def compile_lstm_gru(max_char, chars): model = Sequential() model.add(LSTM(256, input_...
[ "noize9999@gmail.com" ]
noize9999@gmail.com
7d66868e5b3183db472a19c57b08b0dcffe29de5
c6baee790696725b2e2775f0f9fadf2cd92fc940
/as11.py
e182ea69185df2c9ccaf6edd410d91fb7007d502
[]
no_license
afreedfayaz18/Assignment_2
2a8566ab0cacacacfb4f785f645c141003c46db3
e2bb014d0aabc7d5219999a401386081b9960250
refs/heads/main
2023-03-10T21:28:00.889879
2021-02-26T10:11:27
2021-02-26T10:11:27
340,627,804
0
0
null
null
null
null
UTF-8
Python
false
false
194
py
x=int(input("Enter the element :")) d1={} for i in range(x): keys=input("Enter the keys :") values=input("Enter the values :") d1[keys]=values for values in d1: x.append(values) print(d1)
[ "noreply@github.com" ]
noreply@github.com
d15660fc48951b9344177ed79786e63aa102cc9c
10ea830c0a3bbf3a233d44c17267e32c1889f989
/adventofcode/year2020/day4/tests/test_solution.py
3b855c70e6f09c0dcf9a118de8045ee24d18d018
[]
no_license
oeuftete/advent-of-code
ad344f3978340894efac2754acfa28e6414a0a3a
88d1f335e5eb3dcc86949637212e7e463b15786d
refs/heads/main
2023-08-17T19:14:15.971173
2023-08-09T00:38:58
2023-08-09T00:38:58
159,965,687
0
0
null
2023-08-09T00:38:59
2018-12-01T16:44:43
Python
UTF-8
Python
false
false
2,637
py
import pytest from adventofcode.year2020.day4.solution import Passport, PassportBatch @pytest.fixture(name="batch") def fixture_batch(): return """ ecl:gry pid:860033327 eyr:2020 hcl:#fffffd byr:1937 iyr:2017 cid:147 hgt:183cm iyr:2013 ecl:amb cid:350 eyr:2023 pid:028048884 hcl:#cfa07d byr:1929 hcl:#ae17e1 iyr...
[ "oeuftete@gmail.com" ]
oeuftete@gmail.com
36ec77440bac05f178aa0e1d39d88a1aebcc7fbd
791fc562419b62f752e7efb73d2e9b7ba6d6634f
/workouts/bis_and_tris.py
c9400655b0f2f086ce017487a6288174732a90cb
[]
no_license
mathewmoon/py-hiit
6c36168cfe6e9aabd00bfbfc24aaa0e42fec0ea5
1389e328dabb2d2c4da1c6a3565b0494f000b757
refs/heads/master
2023-04-09T16:57:55.944109
2021-04-20T13:27:43
2021-04-20T13:27:43
326,480,603
0
0
null
null
null
null
UTF-8
Python
false
false
81
py
#!/usr/bin/env python3.8 from pyhiit import speak, bis_and_tris bis_and_tris()
[ "mmoon@quinovas.com" ]
mmoon@quinovas.com
e643151df5617988380ac3140741ac8d1ed15fef
2e6b40104dfb666d807edd649acb0175dc19b7ab
/Test.py
7a01c2d2c84c0ffc68046c1e20d4b72ea1191793
[ "MIT" ]
permissive
CzakoZoltan08/AutomaticAI
08140dff82b816245fb596c13a1856c95ad1806c
02af79afbafabd6f4784982b2faded5d54928545
refs/heads/master
2020-08-25T08:33:08.989074
2020-04-15T05:21:19
2020-04-15T05:21:19
216,989,022
3
1
null
null
null
null
UTF-8
Python
false
false
1,315
py
# -*- coding: utf-8 -*- """ Created on Wed Oct 23 11:30:29 2019 @author: czzo """ from sklearn import datasets from sklearn.model_selection import train_test_split from sklearn.metrics import accuracy_score from AutomaticAI import ParticleSwarmOptimization as pso_algorithm #--- MAIN -----------------------------...
[ "czzo@erni.ro" ]
czzo@erni.ro
fdbe14bbaeb683b646af9998bae1f016dd06a05f
c3fadbeabfc2289bfe0e481fca3f97839d05713c
/frappe/contacts/doctype/summer/test_summer.py
ab661acb973bdc597d0a46fda55e8e5be1c50f17
[ "MIT" ]
permissive
ahmadRagheb/frappe-face
c9c277a744fce8ea62d4eaa14467fa1036b39f1f
ace1675d7dec53f4fbbd476c4a5c375e48d0de09
refs/heads/master
2021-05-06T11:51:19.399783
2017-12-29T15:44:25
2017-12-29T15:44:25
114,284,125
3
0
null
null
null
null
UTF-8
Python
false
false
216
py
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest class TestSummer(unittest.TestCase): pass
[ "ahmedragheb75@gmail.com" ]
ahmedragheb75@gmail.com
ec771792c99b81d60de883ad609af2084995cd10
a5c4ea16042a8078e360c32636c00e3163ac99a8
/Pytorch_Tutorial/08_transfer_learning/custompytorch/utils/helpers.py
29f3ab0c8ddc604babb84d5d48f924c624f60e47
[]
no_license
lykhahaha/Mine
3b74571b116f72ee17721038ca4c58796610cedd
1439e7b161a7cd612b0d6fa4403b4c8c61648060
refs/heads/master
2020-07-15T05:16:13.808047
2019-06-01T07:30:01
2019-06-01T07:30:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,219
py
import torch import time import copy import matplotlib.pyplot as plt import numpy as np def train_model(model, dataloaders, dataset_sizes, criterion, optimizer, scheduler=None, num_epochs=25): """ Scheduling the learning rate Saving the best model Arguments: model: nn Modules dataloaders: {'tra...
[ "ITITIU15033@student.hcmiu.edu.vn" ]
ITITIU15033@student.hcmiu.edu.vn
cf7c690ca2a5fe2029451939356e872d65621585
edce7228da66444715ba38ceb84637ca78ac5d89
/transition/State.py
b9d5b4f9d654d627996dfbfdb20cee84cdf6308a
[]
no_license
askintution/Tb_DepParserMF_ARC
36132059d4de0348fceab4b6cf27bc50c8c18cc0
896ac42282300417a976ac7a9ddf6d7de3795069
refs/heads/master
2021-10-08T02:38:30.106677
2018-12-06T12:54:58
2018-12-06T12:54:58
292,239,329
1
0
null
2020-09-02T09:31:24
2020-09-02T09:31:23
null
UTF-8
Python
false
false
9,310
py
from transition.Action import * from transition.Instance import * from transition.AtomFeat import * from data.Dependency import * import torch from torch.autograd import Variable import numpy as np max_length = 512 class State: def __init__(self): self._stack = [-3] * max_length self._stack_size ...
[ "yunan.hlju@gmail.com" ]
yunan.hlju@gmail.com
4f023ab7751bbceb04b9cac13d16333603cd0d0b
b0c99781527a7eb856f3238cc8f0c75adcda56b7
/configuration.py
9f2d8d0a99b6b841a965fbbff119e9f05fa4e6b2
[]
no_license
TheQueasle/GMpi
dcf5a5878c87a910b7ab35f292016801dc28b25c
05fd259db1e321c2061d1cf0efd98c8fca48f2fd
refs/heads/master
2020-04-10T01:54:30.197184
2018-11-29T19:18:29
2018-11-29T19:18:29
160,729,012
0
0
null
2018-12-06T20:36:38
2018-12-06T20:36:38
null
UTF-8
Python
false
false
473
py
#!/usr/bin/env python3 import os from sys import exit from GMPi_Pack import BuildConfig print("Making configuration file: config.txt") if os.path.exists('config.txt'): print("\nError: Configuration file already exists.") print(" Please remove it before generating a new one.\n\n") exit(-1) BuildConfig() prin...
[ "paul.blischak@gmail.com" ]
paul.blischak@gmail.com
41bd11bb5664129a74675694664f8bf656e63cb7
19a4b375a3f232ed7ddddd56745f63d1949c4d78
/train.py
914108df1d11ec3c5b44d92b147972567397dfd3
[]
no_license
AotY/ask39-cm
949131b963b986ab2314088198e96fec5997574d
b586a2221edf72a5666cd1cb83bfb91dae5496e5
refs/heads/master
2020-04-12T09:14:54.055829
2019-01-12T08:27:37
2019-01-12T08:27:37
162,396,337
0
0
null
null
null
null
UTF-8
Python
false
false
13,376
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # Copyright © 2018 LeonTao # import os import sys import time import math import argparse import torch import torch.nn.functional as F from tqdm import tqdm from modules.optim import ScheduledOptimizer from modules.early_stopping import EarlyStopping from vocab import ...
[ "694731929@qq.com" ]
694731929@qq.com
051729d9725330cfb6c440e3355ae48aa9ac620f
93f49d55cf1bc9c605d946c9c6505f8cfcdc4fb1
/builtin/set1.py
9ea1707fc27cc8afa54bb325bc47cce34649c93d
[]
no_license
dada99/python-learn
662bce5600fcedc85b467ff28333edae4e09eaeb
b26a4bf628f39ec05e071637cff254ba528cb267
refs/heads/master
2023-01-31T14:56:36.848062
2023-01-10T07:53:46
2023-01-10T07:53:46
192,673,236
0
0
null
null
null
null
UTF-8
Python
false
false
155
py
set1 = {'a','b'} #set1.add('a') # change to {'b', 'a'} #print(set1) set1.add('b') print(set1) set1.add('c') print(set1) print(set1.pop()) print(set1.pop())
[ "da.liu@ericsson.com" ]
da.liu@ericsson.com
21039bc4571a8b7dbabfdf6bc482e5b5269767eb
3c2b461339b93ea6a63ac6a37373ac1d99ecc5d1
/ssmusic/wsgi.py
61cdae16480b8b0c9a0e29c0c19890278c3c403c
[]
no_license
kuliye/ssmusic-django
93dc3bba5e2e7431887a3365ed4a6cb49e2d0e01
c162c9cb4642c571f4a48c46f6df6eec0920ab0c
refs/heads/master
2020-03-19T01:18:08.727029
2018-06-03T03:42:44
2018-06-03T03:42:44
135,535,879
1
0
null
null
null
null
UTF-8
Python
false
false
391
py
""" WSGI config for ssmusic project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTI...
[ "1440894632@qq.com" ]
1440894632@qq.com
1ac63a541e9a8dce7c61fe484cbb580d7979038e
0737f5a9e19cc14692c8bf99dc349ae856a20b0c
/replay_buffer.py
8f793775a62d5ab3e9a96878a951fc17eebfd190
[]
no_license
takuseno/unreal
37fd0c0b7613182f1abb5d55b5d0f8564acf25c2
864cfbc1edf56510c69ef3809ae0adc6cb129017
refs/heads/master
2020-03-22T19:55:25.246229
2018-08-07T09:03:52
2018-08-07T09:03:52
140,560,691
1
1
null
null
null
null
UTF-8
Python
false
false
4,188
py
from collections import deque from random import sample, randrange, random import uuid class ReplayBuffer: def __init__(self, capacity=2e3): self.capacity = capacity self.ids = [] self.transitions = {} self.rewarding_states = {} self.non_rewarding_states = {} self.e...
[ "takuma.seno@gmail.com" ]
takuma.seno@gmail.com
900ccf7e6638ac6465f9b33828d8fc1a49fef58d
2617bfec230858814b32795c6a47249c54a15cac
/cupy_alias/math/window.py
54960b88fb3887e5f8929a8b21fa80008b2da55a
[ "MIT", "NCSA", "LicenseRef-scancode-unknown-license-reference" ]
permissive
fixstars/clpy
a06a1281887470d8faee3ec204b56fbef2496fab
693485f85397cc110fa45803c36c30c24c297df0
refs/heads/clpy
2021-06-10T04:00:30.974447
2021-02-28T06:01:26
2021-02-28T06:01:26
136,439,592
154
20
NOASSERTION
2021-04-07T02:41:03
2018-06-07T07:33:04
Python
UTF-8
Python
false
false
39
py
from clpy.math.window import * # NOQA
[ "tomoharu.kitawaki@fixstars.com" ]
tomoharu.kitawaki@fixstars.com
81181e6ac9198d94144b3665cc1e602a1c778b7e
e46f17948d9293e431db54a63d1dda4d7fbf6dac
/289. Game of Life/main.py
6e2a6a82530d7835a67ff63c3dc500d1dceef6ee
[]
permissive
Competitive-Programmers-Community/LeetCode
37878e3c7b6b18210e9db5951b04baf691238e0c
841fdee805b1a626e9f1cd0e12398d25054638af
refs/heads/master
2022-02-21T06:53:08.949304
2019-10-11T11:13:53
2019-10-11T11:13:53
178,438,819
0
0
MIT
2019-04-01T06:45:20
2019-03-29T16:17:12
Python
UTF-8
Python
false
false
1,602
py
class Solution: def gameOfLife(self, board): """ :type board: List[List[int]] :rtype: void Do not return anything, modify board in-place instead. """ r=len(board) c=len(board[0]) matrix=[[0 for j in range(c)] for i in range(r)] for i ...
[ "noreply@github.com" ]
noreply@github.com
613316fc65699e0a97e8a758cf9c0d43e73580ae
c660f412b852b5fdc8572fd378e31e76e6587b27
/Semana11/asd.py
c4d07a6a6f67bcab2c4023bca78415f43d4384b3
[]
no_license
Pablolog42/2020-CC1002
bb604ae08ebdb49f35c23fbbed424ef6c3961adf
9923e50ba660e3464463bc5ea3fd36b89e1f11f1
refs/heads/master
2023-02-10T10:03:41.613467
2021-01-02T04:39:44
2021-01-02T04:39:44
326,109,195
0
0
null
null
null
null
UTF-8
Python
false
false
84
py
cola = [] cola.append("miau") cola.append("guau") cola.append("rawr") print(cola)
[ "pablolog42@gmail.com" ]
pablolog42@gmail.com
64d65da33eabe7090b0bb2fed71a97ee84a451fe
bab42fa4c574d47f57a6bad221c285676397ecdc
/Week1/Day1.py
323bd553eee3576b1d6a035c0bc0da2d2a436e52
[]
no_license
neighborpil/PY_WebCrawlingStudy
7647f85f4610b98ed838fdff1d08d3983ff9b519
146f75e2bdb176c920194fdf9ce88b3e76b1ec4a
refs/heads/master
2020-04-11T05:48:51.389458
2018-12-13T09:39:47
2018-12-13T09:39:47
157,983,902
0
0
null
null
null
null
UTF-8
Python
false
false
663
py
import re hand = open('test.txt') for line in hand: # print(line) line = line.rstrip() if re.search('좋아요', line) : print(line) print('-------------------') hand2 = open('test.txt') for line in hand2 : line = line.rstrip() if line.find('좋아요') >= 0: print(line) print('---------------...
[ "feelongpark" ]
feelongpark
f8f599dc9bd468a345c92c450edabbc81fc1a329
bc8aa86439962d8bd937728d22815bd389b4bbb8
/Tutfinder/settings.py
720332df54cd72040cacc2b04df59e3a84f28410
[]
no_license
NASAKZ07/tutfinder1
bd64b3ce7bd8cfe37f5d9a2cff4820ed4d2fa0fb
dce64afa2cbc1e3cb987d9f5fbf763b90d95d820
refs/heads/master
2021-06-26T01:42:20.250205
2019-12-06T16:35:22
2019-12-06T16:35:22
226,367,996
0
0
null
2021-06-10T22:22:08
2019-12-06T16:25:08
Python
UTF-8
Python
false
false
2,942
py
import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/ # SECURITY WARNING: keep the...
[ "abdnurs2001@gmail.com" ]
abdnurs2001@gmail.com
6d5af405040977f56788eda81171f196eb8faaa6
254908bf16c8991a9440c04fb03056ad383d1888
/rj_gameplay/rj_gameplay/tactic/prep_move.py
2ee0a91bb12a9780c88b929ea7337b463bc6db4e
[ "Apache-2.0" ]
permissive
RoboJackets/robocup-software
d5fdad02f17c9943791142e59a515f38086a4332
fb46ea51942dc001ff73d0570528ab1cbb3d5065
refs/heads/ros2
2023-08-26T22:43:21.163196
2023-07-02T20:54:37
2023-07-02T20:54:37
15,662,105
217
209
Apache-2.0
2023-09-13T01:25:23
2014-01-06T01:09:14
C++
UTF-8
Python
false
false
1,492
py
from typing import List, Tuple import numpy as np import stp from rj_msgs.msg import RobotIntent from rj_gameplay.role import dumb_move class PrepMove(stp.tactic.Tactic): """Seeks to a single point, passed in on init.""" def __init__(self, world_state: stp.rc.WorldState): super().__init__(world_sta...
[ "noah.bjyu@gmail.com" ]
noah.bjyu@gmail.com
c5dfe8988d7e51e6781716c164a15a4945e1a750
2932571ebb9001edfb2b9a5b06ae4414b2fca910
/blog_api/admin.py
13161921319dcff5e14e317ab6c15fdef0631bc1
[]
no_license
Astha-24/blog
24738f3205ca3b07f94ccdf0a5698daaa01a1869
66b26a628c8645f9ef5c8ad1cb10f33d4b57dab2
refs/heads/master
2022-05-03T07:41:34.064826
2019-09-16T03:36:11
2019-09-16T03:36:11
208,393,138
1
1
null
2022-04-22T22:21:10
2019-09-14T05:21:01
Python
UTF-8
Python
false
false
345
py
from django.contrib import admin from blog_api import models # Register your models here. admin.site.register(models.UserProfile) admin.site.register(models.Category) class StoryAdmin(admin.ModelAdmin): list_display = ('title','author','category','verified') admin.site.register(models.Story,StoryAdmin) admin.site....
[ "gangwalastha78@gmail.com" ]
gangwalastha78@gmail.com
54a8bdb070155635c618a0678553e1b098b4735a
da418b0fa32fdb69533124d96a1d44c104256cae
/todo/admin.py
706ab4ace5f18b4cae658eb0ee8b9169f0410bfe
[]
no_license
yannickberthoud/IntranetBenu
830565a56e2ad6a93118d73c2a36dcdc73c402bc
676e2c468f2947ffe8f834a3ebbd39972db89385
refs/heads/master
2020-04-10T16:10:06.145905
2018-12-10T07:39:36
2018-12-10T07:39:36
161,135,610
0
0
null
null
null
null
UTF-8
Python
false
false
492
py
from django.contrib import admin from .models import Todo class TodoAdmin(admin.ModelAdmin): fieldsets = ( ('Assignation', {'fields': ['department', 'assigned_to']}), ('Task', {'fields': ['priority', 'title', 'description', 'due_date', 'status']}) ) list_display = ('department', 'assigned...
[ "y.berthoud@benu.ch" ]
y.berthoud@benu.ch
f97563f2b9ee97e00d1d2d6e5485a10a011113c6
23185f4b793d324d4902f9a5f0e8ac22f47e7e0e
/fixture/db.py
a008e05ee3d953b9aa2113b822667f95009e5eba
[ "Apache-2.0" ]
permissive
DennisSmirnov/python_tests
739fb7beec3f0958781fbf8acd81795557ba3c58
b862e631b6cd27d0658e382c0e08ddd94c5f7269
refs/heads/master
2022-11-29T13:15:37.217945
2020-08-13T15:48:14
2020-08-13T15:48:14
238,788,917
0
0
null
null
null
null
UTF-8
Python
false
false
1,325
py
import pymysql.cursors from model.group import Group from model.contact import Contact class DbFixture: def __init__(self, host, name, user, password): self.host = host self.name = name self.user = user self.password = password self.connction = pymysql.connect(host=host, da...
[ "arb.smirnov@gmail.com" ]
arb.smirnov@gmail.com
741870643f2712c065d1a59619d2b892df5df9ef
8a91367e0d6bf0fd105c913995a7b0fad2a0f686
/assignment/a program to calculate the length of a string.py
6663c5204124d083ce4bbdb0232cc9b87af4895c
[]
no_license
santosdave/assignment
8280fbf0df60ad3c6103cc5b35e3885c8d531b6c
4a0a6c1931acfae94ab071ff3fbafbba9e5aae2b
refs/heads/master
2020-08-07T10:52:57.385500
2019-10-07T15:34:08
2019-10-07T15:34:08
213,420,837
0
0
null
null
null
null
UTF-8
Python
false
false
142
py
def string_length(str1): count = 0 for char in str1: count +=1 return count print(string_length('This assignment'))
[ "noreply@github.com" ]
noreply@github.com
75e43a9b60553738eed5eeeaf7dee3384d088840
1a700479e5aac652a1260bdd3f0247130b7075cc
/snippets/urls.py
021a1e35914c59f4de65948fd7a0aa48b4aaec4b
[]
no_license
Chi1211/tutorial
aca18f36b75a651df87ac5efa035a12bb271ff2b
b717b73d8ce58c61fcec1290423e1483685529e4
refs/heads/master
2023-02-20T21:36:00.504040
2021-01-22T02:04:22
2021-01-22T02:04:22
331,801,542
0
0
null
null
null
null
UTF-8
Python
false
false
175
py
from django.urls import path from . import views urlpatterns = [ path('', views.Snippet_list, name=''), path('detail/<int:id>', views.Snippet_detail, name='detail'), ]
[ "bichchi1211@gmail.com" ]
bichchi1211@gmail.com
65faef840d04bdeb7155de6e7e23e1f6a184626b
4bf067cd4fa1cee2891c54b02fafcaca28e8227a
/random.py
5dffcfd8d8ead06c246861f051676c2e77a62e0b
[]
no_license
c1c51/Python
e19dd8e0d90ec5015c87cd9f113c79aea7b25111
6dfa8ffa94d92e8741217ae09f265680e4e44951
refs/heads/master
2020-03-09T19:06:33.997743
2018-04-10T14:49:01
2018-04-10T14:49:01
128,949,484
0
0
null
null
null
null
UTF-8
Python
false
false
333
py
import Queue import threading import urllib2 # called by each thread def get_url(q, url): q.put(urllib2.urlopen(url).read()) theurls = ["http://google.com", "http://yahoo.com"] q = Queue.Queue() for u in theurls: t = threading.Thread(target=get_url, args = (q,u)) t.daemon = True t.start() s = q.get...
[ "unconfigured@null.spigotmc.org" ]
unconfigured@null.spigotmc.org
efb51893323885d6670eb8d40a90a1bae3d186f0
4e1390db718bffd402db9365080b7d7b2e95f069
/extra.py
d6f17fe239c7ed35c8479bd462e46c01f92dfd7d
[]
no_license
Mishagunkin/lab3
351a93f22e5510ff5af7c70699a0226215c02df6
0ed61910a0f2c74fa1e3b7a765ce7dea8bfdd879
refs/heads/master
2021-08-22T22:34:38.593242
2017-12-01T13:26:11
2017-12-01T13:26:11
112,732,397
0
0
null
null
null
null
UTF-8
Python
false
false
354
py
import random import matplotlib.pyplot as plt year = set() years = [] for i in range(5001): years.append(random.randint(0,100)) year = set(years) d = {} for i in years: if i not in d.keys(): d[i] = 1; else: d[i] += 1; x = [] y = [] for i in d.keys(): x.append(i); y.append(d[i]); p...
[ "misha36gunkin@mail.ru" ]
misha36gunkin@mail.ru
fd6abb816229c9531f83907b7121353cf5458b38
7c63114e668d8e4810a885977f0eccb0fbb4af70
/bourse/context_processors.py
501a14f336e20529268ed10c492f4e71fab6bf90
[]
no_license
WoopyOnOff/woop-bourse
1a91385fba0cd56ad234afdfd7b61a09031dceea
d86ac0c8428b5894ec501234e1de0dfeca047025
refs/heads/master
2023-02-24T11:57:30.657934
2023-02-13T18:53:14
2023-02-13T18:53:14
250,991,947
5
1
null
2023-02-13T18:53:04
2020-03-29T09:05:01
Python
UTF-8
Python
false
false
373
py
from django.conf import settings from .models import Event def site_params(request): return {'SITE_TITLE_SETTING': settings.SITE_TITLE, 'SITE_SIGNATURE_SETTING': settings.SITE_SIGNATURE, 'SITE_CURRENCY_SETTING': settings.CURRENCY } def active_event(request): active_event = Event.objects.filter(status__...
[ "25619661+clmntpllr@users.noreply.github.com" ]
25619661+clmntpllr@users.noreply.github.com
e924599e2d1e9dd63c005c8de0ccb182cb38f851
9681b187a4bd3b9aad06c45a8877698b8723a889
/python_task.py
1dde3590b666e155e9083b0eaabd7d4f76cee6da
[]
no_license
AlexandreSabino/poc-scdf-python
36970303786e3908f77dec552c7cf06e2853979d
3b5c9967f26302b676b2ae66b61731d6e26ce16e
refs/heads/master
2020-07-31T17:09:43.700441
2019-09-24T22:38:32
2019-09-24T22:38:32
210,686,748
0
0
null
null
null
null
UTF-8
Python
false
false
882
py
import sys import time from util.task_status import TaskStatus from util.task_args import get_task_id, get_db_url, get_task_name, get_cmd_arg try: # Connect to SCDF's database. status = TaskStatus(get_task_id(), get_db_url()) # Set task's status to RUNNING. status.running() # Do something. ...
[ "alexandre.sabino.avsd@gmail.com" ]
alexandre.sabino.avsd@gmail.com
3fce743cbdf9d48cb346a2ba6e778f03e34393e2
a0c3149b77984fb85d2aadb2992bd1998e2a8b23
/media.py
4daef12a6f661b0e355e7efeb9c00ebdad3f93cc
[]
no_license
shockwave92/Udacity_website-project
4d26b752b0ae57a8a3e9995ca0acd4b64352dca4
907d8fd5d6e04f8a90ac562448fba4d2f0b93d0b
refs/heads/master
2021-01-19T12:00:25.333574
2017-04-30T19:47:57
2017-04-30T19:47:57
88,013,837
0
0
null
null
null
null
UTF-8
Python
false
false
463
py
import webbrowser class Movie(): """ This class provides a way to store movie related information """ VALID_RATINGS = ['G', 'PG', 'PG-13', 'R'] def __init__(self, movie_title, movie_storyline, poster_image, youtube_trailer, release_date): self.title = movie_title self.storyline...
[ "adadam2002@gmail.com" ]
adadam2002@gmail.com
a39b5d0de5a23822bee08ee7d2ed333be2eb5179
b069c092ed99cd12c5cbf91a8165887a0846ab99
/Project1/Naive-Bayes+Classification (1).py
b06c327861fdc134c0eaf3a4726b2f0f7885934b
[]
no_license
sashaena/NLP-18-sashaenaofori
8603de2e119fc26a8be06923a67a20da11e2bedb
e71329535ddef80ecd611895df2c17ea3fd9b354
refs/heads/master
2020-04-03T11:43:45.677780
2018-11-26T18:09:49
2018-11-26T18:09:49
155,230,097
1
0
null
null
null
null
UTF-8
Python
false
false
7,046
py
# coding: utf-8 # In[1]: import re import math import random # In[2]: def processFiles(fname): # creating dictionary to story various classes dict_corpus = {0:[],1:[]} # put various files in a list to continously read files for i in fname: with open (i, "r") as openedFile: ...
[ "sasha_ena.ofori@outlook.com" ]
sasha_ena.ofori@outlook.com
517d684780c3347d815863369480a78b0ca47097
021f3512b248ead3887b7464a4f32fd157853f98
/wikipedia-solutions/solution_1.py
e5b1ee1e38f740d048534314133b02e0129cef0c
[ "MIT" ]
permissive
jtmorgan/ds4ux
c1953dca84bfa108392bd25ffe2cb1fb21d0a261
14c4ece59b367fe7c8db09a126161693b9a640b3
refs/heads/master
2020-12-24T21:01:04.186781
2017-10-04T01:03:11
2017-10-04T01:03:11
59,071,205
0
0
null
null
null
null
UTF-8
Python
false
false
1,239
py
""" 1. Save the revision metadata printed in wikipedia1-2.py to a file called "wikipedia_revisions.tsv". """ import requests # raw string: # ?action=query&prop=revisions&titles=Python_(programming_language)&rvlimit=500&rvprop=timestamp|user&format=json') # parameter version which makes a little more sense parameters...
[ "jonnymorgan.esq@gmail.com" ]
jonnymorgan.esq@gmail.com
7eb2b122df26f69dc11333a5818a93efdc8ae711
c72f2a8f1b7c2e3f7f4b8f5f1721443094d51d41
/sdk/python/bouncerapi/models/login_to_bouncer_api_request.py
79a8053d932bbc580c8902c89df017b9b6dec37c
[ "MIT", "Apache-2.0" ]
permissive
nmfta-repo/nmfta-bouncer
e2da24ef5983a9901eaeeeebb5b72012ddd9602f
a178244dbf0b8a165aabc02a5d1ba05006f9ec22
refs/heads/master
2022-12-09T18:06:57.921644
2020-07-17T20:23:29
2020-07-17T20:23:29
131,425,777
1
2
Apache-2.0
2022-12-08T05:06:35
2018-04-28T16:26:35
Java
UTF-8
Python
false
false
1,847
py
# -*- coding: utf-8 -*- """ bouncerapi This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). """ class LoginToBouncerAPIRequest(object): """Implementation of the 'Login to Bouncer API request' model. TODO: type model description here. Attributes: username (st...
[ "krishnaswin@hotmail.com" ]
krishnaswin@hotmail.com
5e277ac73b8593875d3614ad8691df57cb8aa2fb
ba0cbdae81c171bd4be7b12c0594de72bd6d625a
/MyToontown/py2/toontown/minigame/DistributedTagTreasure.pyc.py
48111c1e609a7eb84bfa86c60461bd082ade4002
[]
no_license
sweep41/Toontown-2016
65985f198fa32a832e762fa9c59e59606d6a40a3
7732fb2c27001264e6dd652c057b3dc41f9c8a7d
refs/heads/master
2021-01-23T16:04:45.264205
2017-06-04T02:47:34
2017-06-04T02:47:34
93,279,679
0
0
null
null
null
null
UTF-8
Python
false
false
1,019
py
# 2013.08.22 22:21:41 Pacific Daylight Time # Embedded file name: toontown.minigame.DistributedTagTreasure from toontown.safezone import DistributedTreasure class DistributedTagTreasure(DistributedTreasure.DistributedTreasure): __module__ = __name__ def __init__(self, cr): DistributedTreasure....
[ "sweep14@gmail.com" ]
sweep14@gmail.com
20011cc0e92d5d34d0cd86caa3ea2e7add6217df
4d54787803ddbf1bc9b94d177386f682996c74fa
/DenominatorChecker.py
6f1b7e2fcf24dcdcdc9f92e577ae0d1af41e2f29
[]
no_license
miarobin/Level4Project
0d1ef43c6449be3a9f6a1e9100e6e4ec0513dc8f
33c1c61d544e1e4c2b8c6c66e7d924c52b135699
refs/heads/master
2022-06-06T03:48:28.806914
2020-04-29T16:31:01
2020-04-29T16:31:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,644
py
##RAMBO Momentum Generator import numpy as np import matrix2py from tqdm import tqdm import sys import matplotlib.pyplot as pyplot def minkowski_product(p1, p2): #Minkowski product of two 4-vectors return np.sum(p1[0]*p2[0] - p1[1]*p2[1] - p1[2]*p2[2] - p1[3]*p2[3]) def dot_product(v1, v2): ...
[ "flxj44@local" ]
flxj44@local
e06919dd2a9bbd247c1840da35f544f13f1c92bb
36a7c6c092799d9550233be9c735964768f34f09
/EVSCapp/permissions.py
e6f4ad1effbded5fa92093c5e13393f9be30bfdf
[]
no_license
AmirIdris/EVSCProject
eea215f8480fdcee54cc2cce0a675621c8c487bb
ed994c240924e6c30626b7e8a8020480c8112c4e
refs/heads/master
2023-07-28T00:12:56.857669
2021-09-07T21:10:58
2021-09-07T21:10:58
393,363,817
0
1
null
2021-09-07T21:10:58
2021-08-06T12:01:30
CSS
UTF-8
Python
false
false
271
py
from rest_framework import permissions class IsOwnerOrReadOnly(permissions.BasePermission): def has_object_permission(self, request, view, obj): if request.method in permissions.SAFE_METHODS: return True return obj.user == request.user
[ "you@example.com" ]
you@example.com
a855dfcdb9d19fe7cf5b4dba0238a6e3b1d49525
3989cdaba804fc0ca3a3adf811ccc201b9e404ca
/server/platform_event_queue_processor.py
d6970cca5cb6719aa6a8c75719296634bfa62a07
[]
no_license
KevinJMcGrath/GammaSFDCPlatformEventHandler
462a259f1cc99ddead17387507311060a0a2509e
1cb9a54912a21593bd8f711055927f42319f50a7
refs/heads/master
2023-03-31T04:48:20.088803
2021-03-31T11:18:25
2021-03-31T11:18:25
289,269,668
0
0
null
null
null
null
UTF-8
Python
false
false
1,196
py
import asyncio import logging import security from models import tenant from tenant import processor async def process_events(async_queue: asyncio.Queue): while True: tenant_event: tenant.TenantEvent = await async_queue.get() logging.debug('Event item retreived from queue.') if security....
[ "kevinmcgr@gmail.com" ]
kevinmcgr@gmail.com
77aac97c9c3d75a6f3b31b05cbf3118ddc7f1971
896d2984e41cc29c8d5140bb3c9b47e82dbc21e6
/venv/Lib/site-packages/PySide2/examples/widgets/richtext/syntaxhighlighter/syntaxhighlighter_rc.py
01b1633e7e5f9f3a2b7ae02588c32077897cfab1
[]
no_license
PakasitKetudom/Movies
5f07b4f1fb0a5217bfe025157f58b4747f5c2943
57bb2b79990acec6d843a75d7e9dd157b599c287
refs/heads/main
2023-01-21T14:12:09.281643
2020-11-26T14:01:03
2020-11-26T14:01:03
313,512,174
0
0
null
null
null
null
UTF-8
Python
false
false
3,406
py
# -*- coding: utf-8 -*- # Resource object code # # Created: Thu Jan 31 14:42:32 2019 # by: The Resource Compiler for PySide2 (Qt v5.12.1) # # WARNING! All changes made in this file will be lost! from PySide2 import QtCore qt_resource_data = b"\ \x00\x00\x06\xca\ T\ EMPLATE = app\x0d\x0aL\ ANGUAGE = C++\x0d\x0aT...
[ "ke.pakasit@gmail.com" ]
ke.pakasit@gmail.com
3968eaae944487dd8ca192951ae43c82a5f073ba
0f79c5ca76bd971f4fe88219f26a955fcfe8da70
/docs/conf.py
c7a22ffdc4435235b4a8b4412c150d9a3b8a990b
[]
no_license
aragilar/magnetic
b05b9c5bae124484dc07559de4378bccda1db115
fe2d112ba32b1607fda3a562c539dc03563b9acc
refs/heads/master
2023-08-31T18:12:21.262853
2017-10-15T05:19:33
2017-10-15T05:19:33
59,745,925
0
0
null
2023-09-07T22:43:28
2016-05-26T11:44:43
Python
UTF-8
Python
false
false
8,325
py
# -*- coding: utf-8 -*- # # magnetic documentation build configuration file, created by # sphinx-quickstart on Wed May 13 22:53:37 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # ...
[ "aragilar@gmail.com" ]
aragilar@gmail.com
23207e111a4e7e07a5d636cb6326493693f5b3c4
532ca0c5361b54970bc435232e2a6d079c49aecd
/03_Conditionals and Control Flow/01_Conditionals and Control Flow/04_How the Tables Have Turned.py
761dda428d2ddf39b1b6f433d981dd3583040f68
[]
no_license
haveano/codeacademy-python_v1
dc5484e8df73b9a15ffce835dde625b6454c8302
10e6fb2974e1c47f380bb6a33c50b171ecfbf50f
refs/heads/master
2021-01-11T16:45:57.337493
2017-05-30T10:04:08
2017-05-30T10:04:08
79,660,536
0
0
null
null
null
null
UTF-8
Python
false
false
812
py
""" How the Tables Have Turned Comparisons result in either True or False, which are booleans as we learned before in this exercise. # Make me true! bool_one = 3 < 5 Let's switch it up: we'll give the boolean, and you'll write the expression, just like the example above. Instructions For each boolean value in the edi...
[ "noreply@github.com" ]
noreply@github.com
2a98e4473d1b4c0397d714840ce2654e08bf6b3f
42f5eaf16bfd7076cb5a598cf2f239faa575f28b
/05-grpc-google-cloud-speech/python/google/ads/googleads/v2/enums/spending_limit_type_pb2.py
516d2b12e5019a54a44c7e996fd5de1e731b7684
[]
no_license
jiriklepl/IMW-2019
ab0e1c791a794ccf8a6a8d8d4e732c29acee134c
921c85d3c8132114ad90db8deb52eb5ddc06c720
refs/heads/master
2020-08-28T13:29:15.087785
2019-12-15T17:12:24
2019-12-15T17:12:24
217,711,235
0
0
null
null
null
null
UTF-8
Python
false
true
3,608
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads/v2/enums/spending_limit_type.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.pr...
[ "jiriklepl@seznam.cz" ]
jiriklepl@seznam.cz
9d351c3474bbe68f18537e4cbdff5cf9e3bfcd13
6b74279c196a34e3d27d825fa028a42555a5bd36
/recursion/subset_problem.py
2b7f627206d68f3a8e6b6a80a4a895914f1cab79
[]
no_license
SANDIPAN22/DSA
f489857cd60609ea22a86d4a0de4158ab5006d83
706a46926df36a97eda35ac06db0dd402fbac8b4
refs/heads/master
2023-07-30T16:10:36.943888
2021-10-02T19:32:01
2021-10-02T19:32:01
401,262,247
0
0
null
null
null
null
UTF-8
Python
false
false
244
py
def subsetProb(ip,op): if len(ip)==0: print(f"'{op}'") return else: op1=op op2=op op2+=ip[0] ip=ip[1:] subsetProb(ip,op1) subsetProb(ip,op2) subsetProb("abc",'')
[ "chak.sandipan22@gmail.com" ]
chak.sandipan22@gmail.com
713c20a1f3c049d5e9c62bdd9651d102db125cd3
b074beeb9c38ff755ef82104f90e6e945fc3e770
/Utils/utils.py
3a657ac474c538bb1041c14e9cdddaec2f71bdc9
[]
no_license
pymmrd/SparkstreamingApp_python
0118b6598ff9abbfcbcf63fbeb18eb076fb81131
434666b0c3a150cbac46b15ded0f656d3519b897
refs/heads/master
2020-03-28T15:20:52.008607
2017-03-27T00:52:58
2017-03-27T00:52:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
221
py
import hashlib def get_md5(s): md5= hashlib.md5() md5.update(s) return md5.hexdigest() def is_chinese(s): s=s.decode("utf-8") if s>=u"\u4e00" and s<=u"\u9fa6": return True else:return False
[ "webber" ]
webber
ea36278471afa827a5ed3742f81a477d2f653c21
3fcdfbb73118f4bde9a1e0ed466974ab636332db
/my_django_forum/wsgi.py
c7fa3a8840f0cd75f32207ab72f8d8d314d79444
[]
no_license
vnitikesh/My-Django-Forum-System
54e579e54893c9637e351f6d29dfa3db82cdd106
ea9804d3819946ea08b5b82bb43fe0bc27f331f5
refs/heads/master
2022-04-01T07:14:18.734263
2020-01-14T08:18:26
2020-01-14T08:18:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
""" WSGI config for my_django_forum project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJAN...
[ "natylaza89@gmail.com" ]
natylaza89@gmail.com
44a2d15829c9b06e9ade3372be90a5a605ada09f
9159c96171694b5ba0ea5b28caec10f3f0207c75
/Core_code/GA-working-copy/master/.svn/text-base/txmultimastersimple.py.svn-base
749a6f380ab6a9d5b047a1e9a732241bacac4b10
[ "MIT" ]
permissive
robhuva/Thesis
8ba00703a6e8aa47d0248f86bc96a1918bd3a6a3
4e91e248dc69b3a99fe242b41fd0addf386275aa
refs/heads/master
2021-01-25T03:19:44.209283
2015-06-17T05:41:38
2015-06-17T05:41:38
16,933,304
0
0
null
null
null
null
UTF-8
Python
false
false
21,419
# # # Copyright (C) University of Melbourne 2012 # # # #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 without limitation the rights #to use, copy, modify, merge, ...
[ "r.huva@student.unimelb.edu.au" ]
r.huva@student.unimelb.edu.au
7b8bdba27ed199995dad3b31e6e65b3a7e52b40d
5e5fb109a0a2422e2a6fdb7ad504d3f0303f8e7b
/src/models/game.py
89ea04cc42fe350f09204cc13a72de227e0657e7
[]
no_license
podgib/brownlow
3df1d6e10c37dc9064d85b3e96d9b2156d304ebc
25cb53ea6f72f9fc24809edf0970887c8da0eb2e
refs/heads/master
2021-01-10T06:20:22.651452
2017-02-07T11:13:37
2017-02-07T11:13:37
44,313,335
0
0
null
null
null
null
UTF-8
Python
false
false
1,242
py
from google.appengine.ext import ndb from player import Player class Team: MEN = 1 WOMEN = 2 TEST = -1 @staticmethod def getAll(): return ["Men", "Women", "Test"] @staticmethod def getString(team): if team == Team.MEN: return "Men" elif team == Team.WOMEN: return "Women" eli...
[ "gmp@robots.ox.ac.uk" ]
gmp@robots.ox.ac.uk
a5c63d3ad05aa62aec4433768fefe25c628a59af
1fbe15a468ea6ba1634e6d928dbdb23b4e133684
/mysite/mysite/settings.py
2bb92e7c56b7b64ec4fc4537cf9fd5cc04bc5a40
[]
no_license
dangminhnguyen/djangorep
068180697feda3352e5bf9349d5124e920ee718b
f209b660aa60005eb68e6bbad73855f15cf1e10c
refs/heads/master
2020-12-02T04:44:21.685296
2019-12-30T13:43:10
2019-12-30T13:43:10
230,890,763
0
0
null
null
null
null
UTF-8
Python
false
false
3,116
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 3.0.1. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os # ...
[ "minknguyen.bk@gmail.com" ]
minknguyen.bk@gmail.com
fa24099fb4c61a922ec7e32ecb388a6cac3cd988
f2889a13368b59d8b82f7def1a31a6277b6518b7
/309.py
da9a1c3ac6e5917c4c8a202bed12b01b6642673d
[]
no_license
htl1126/leetcode
dacde03de5c9c967e527c4c3b29a4547154e11b3
c33559dc5e0bf6879bb3462ab65a9446a66d19f6
refs/heads/master
2023-09-01T14:57:57.302544
2023-08-25T15:50:56
2023-08-25T15:50:56
29,514,867
7
1
null
null
null
null
UTF-8
Python
false
false
746
py
# ref: https://leetcode.com/discuss/71391/easiest-java-solution-with # -explanations class Solution(object): def maxProfit(self, prices): """ :type prices: List[int] :rtype: int """ if len(prices) < 2: return 0 b0 = -prices[0] # max profit ...
[ "b93902098@ntu.edu.tw" ]
b93902098@ntu.edu.tw
c0a64564ab4b36beaea6b8237e0cdcdbeb264a48
2f5c1c74a05fe08942b103cdb3aa2ad27bb1e1ee
/throwingdice.py
b2f77877b76c9a0cbeaf35f5921c2e1ebe092bdc
[]
no_license
Simranjeet96/Mainly-python-along-with-some-machine-learning
ac304fa306b9eab01bab06003215d1bdeeec64f9
0d642d8229fc5994f956efd080f371b8775452b8
refs/heads/master
2020-03-17T06:23:57.140271
2018-05-15T05:52:43
2018-05-15T05:52:43
133,353,550
0
0
null
null
null
null
UTF-8
Python
false
false
515
py
import numpy as np sum=[] for i in range(2000): a=np.random.uniform(low=1,high=7,size=1).astype(int) b=np.random.uniform(low=1,high=7,size=1).astype(int) sum.append(int(a+b)) sol=[] import random while(len(sum)!=0): a=sum[0] count=1 if(len(sum)!=1): for i in range(1,len(sum)): if(sum[i]==a): count=count...
[ "simranjeetdua@gmail.com" ]
simranjeetdua@gmail.com
8d6f043737bcc3296da79d096ccd11d7b254412b
192d00c224b12db87dccd8a28da66cb942a28c67
/analytics.py
83157d24c6c1c542c1b4edc1ccb838992e328b7c
[]
no_license
estib-vega/stats
68f7c554de6f786823d7419da2b7c92cc2895487
3f873f8f2baa370f03a791a482dbd71499ca3c1d
refs/heads/master
2020-05-30T05:21:11.280859
2019-07-16T16:16:53
2019-07-16T16:16:53
189,557,374
0
0
null
null
null
null
UTF-8
Python
false
false
4,831
py
def get_followers_delta(file_1, file_2): followers_1 = [] followers_2 = [] new_followers = [] lost_followers = [] with open(file_1) as first: for username in first: followers_1.append(username.rstrip()) with open(file_2) as second: for username in second: ...
[ "stron@me.com" ]
stron@me.com
3926d3e015c07d2af53a19cc161b89f51c294770
efb1f3cc2419b223179c57c2662bc05449a630fb
/04-data-preprocessing/01.missing-data.py
52a9adae433afaea8f34558c5333f5cbeb7ea12b
[]
no_license
francoisbeaussier/python-machine-learning
821f76b50359427eac3cf12982c82c1a629eeb80
20b186bd6b7a4f801a98a60f6ecbe3bc971eb3d3
refs/heads/master
2022-12-01T21:00:06.476036
2020-08-18T13:04:04
2020-08-18T13:04:04
282,351,485
3
2
null
null
null
null
UTF-8
Python
false
false
1,387
py
import pandas as pd from io import StringIO csv_data = \ '''A,B,C,D 1,2,3,4 5,6,,8 10,11,12,''' df = pd.read_csv(StringIO(csv_data)) print("\nData:") print(df) # Find null values print('\nCounting null values:'), print(df.isnull().sum()) # Drop rows with null values print('\nDrop rows with null va...
[ "francois@beaussier.net" ]
francois@beaussier.net
5befbb260c9b7b8ba459e5e42945153549916fbe
b17448d7eb36796700594794d79aeaf8438a81a2
/test.py
2af94baf00b7aaf4627e112ee25582d8ff5835e7
[]
no_license
whsasf/WuKong
f422a5547531ffadb13061ccbb504389b2cb07c6
9aabae849671c5b3eb1178d80586d74fcd11d6f7
refs/heads/master
2020-03-16T06:33:55.204243
2018-06-18T10:15:06
2018-06-18T10:15:06
129,723,556
0
0
null
null
null
null
UTF-8
Python
false
false
90
py
#!/usr/bin/python3 import basic_class basic_class.mylogger_summary.summary('zfxfdsfdsf')
[ "whsasf@126.com" ]
whsasf@126.com
ebf5b1b39f49ea2b12c7672c547502a823486e89
61a7b953cddc52e9fe4dbef61d18911b56f7f7e2
/clubShop/mainapps/show/migrations/0003_merge_20181027_1155.py
904336d1b2eb4875e6926a3c9d0d7e70fdfb5096
[]
no_license
Liukuan-group/our_project
60ac7e730eceec66b362c9b95745ffbf93891635
305145d42c388ddbaa34dcab8723f431b3a0c3b5
refs/heads/master
2020-04-02T08:21:45.038251
2018-11-02T02:32:50
2018-11-02T02:32:50
154,241,756
0
0
null
2018-10-26T08:40:03
2018-10-23T01:27:49
Python
UTF-8
Python
false
false
330
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-10-27 03:55 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('show', '0002_auto_20181027_0913'), ('show', '0002_auto_20181025_2207'), ] operations ...
[ "451552848@QQ.com" ]
451552848@QQ.com
ee5a72ea10783d9681c1871f70438a04edbea51c
80c4942f7b88c411eabc57198d51836fee93e810
/course-outline/coursegrades/migrations/0001_initial.py
2144ae09d7503ab6574e2e84adefa59a9a16bce7
[]
no_license
tongxu95/ENSF607_Web_Project
4a90b0f37aa328fbe23824d68ebc03f44492b4df
80c4ee6c2bea4eadee4a15d67680fb2c51a3f6ab
refs/heads/master
2023-02-22T23:35:37.347731
2021-01-28T17:00:04
2021-01-28T17:00:04
330,017,213
0
0
null
null
null
null
UTF-8
Python
false
false
713
py
# Generated by Django 3.1.4 on 2021-01-14 04:52 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='CourseGrade', fields=[ ('id', models.AutoFi...
[ "64809520+Karenzhang7717@users.noreply.github.com" ]
64809520+Karenzhang7717@users.noreply.github.com
deae8be14b09b5d32cea6354010a9f8252983f5b
f7f4b653367cfa10cd0a79601198327fa790db47
/Bigfish/core/_account_manager.py
cbb615f2f507952736046b44b708f32589a1cbc0
[]
no_license
tiw-xh138/Bigfish
9b49af52792ec3888ce77a84404fa1303660631e
935112ea6023273dbfed497adb44097c8076d38c
refs/heads/master
2023-04-23T07:33:42.601856
2021-04-12T02:33:31
2021-04-12T02:33:31
365,224,991
1
0
null
null
null
null
UTF-8
Python
false
false
1,441
py
# -*- coding: utf-8 -*- """ Created on Wed Nov 25 20:46:00 2015 @author: BurdenBear """ from Bigfish.utils.base import Currency ################################################################### class AccountManager: """交易账户对象""" def __init__(self, capital_base=100000, name="", currency=Currency("USD"...
[ "facan346999e@126.com" ]
facan346999e@126.com
83b6f1af607b87521cbd10d7b6bd40024907f007
18375af374e91e721fb16e5415bc4fc7540e5ced
/tahweela_app/urls.py
ef893285cbb6f76b48645130f27e0c3b8c5d361f
[]
no_license
youssefelmasry/tahweela_app_demo
64d802df33ad6361a714a3119b3380b9afe98e4e
ee55b23e601f5e6580e9f051f6da89acab37d3a1
refs/heads/master
2023-02-25T23:05:08.853738
2021-01-29T17:55:33
2021-01-29T17:55:33
334,214,124
0
0
null
null
null
null
UTF-8
Python
false
false
245
py
from django.urls import path from tahweela_app.views import TahweelaBalanceView, TahweelaTransactionView urlpatterns = [ path("get/balance/", TahweelaBalanceView.as_view()), path("transfer/money/", TahweelaTransactionView.as_view()), ]
[ "yusufelmasry9@gmail.com" ]
yusufelmasry9@gmail.com
468fdc36ae7001294a1493c1070b5c443b66e893
bc97d423d19756fbf33affd4ed98d4628d8878b3
/my_project/itproger/main/urls.py
49b1548ce7162c1a6ed6511e5d6aa41220dc9528
[]
no_license
David-Hakobyan1/MY_Django
40d63232805679bb5416d12a4ebba94fcb097959
fdcd61a76d131ca47a203bc291212494c3587637
refs/heads/main
2023-06-19T15:58:42.315023
2021-07-18T09:55:28
2021-07-18T09:55:28
381,956,110
0
0
null
null
null
null
UTF-8
Python
false
false
290
py
from django.urls import path from . import views urlpatterns = [ path('',views.index,name='index'), path('create',views.create,name='create'), path('read',views.read,name='read'), path('update',views.update,name='update'), path('delete',views.delete,name='delete'), ]
[ "my@mail.ru" ]
my@mail.ru
ef46b1abf8c643a364d8dd8117513de66eb439b3
99d721afe033411169081c5c3248109ea8a1ec37
/steamtail/migrations/0013_user_apps_last_checked_on.py
e214abe5c192e9cf5f0fd27e2f6f12dcf75ce820
[]
no_license
redodo/steamtail
edbb2655865683bdf1d990c18babb08efca4bd68
8964910b687ef21329556a0b446edd18aee96292
refs/heads/master
2020-05-04T01:08:30.590701
2019-04-17T15:21:12
2019-04-17T15:21:12
178,898,688
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
# Generated by Django 2.2 on 2019-04-09 07:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('steamtail', '0012_auto_20190409_0920'), ] operations = [ migrations.AddField( model_name='user', name='apps_last_check...
[ "me@redodo.io" ]
me@redodo.io
e641d5f70ea054881a3559c7ab1ce480da183407
958aa4c2dc3287b30a5f9a65ac528ea9726fec58
/LessonPlan5.py
84bfde2c05c232b526744934d43980d4d1faa0ad
[]
no_license
domonic/CS490_DomonicNeal
f875603d41d9cb466892c61f94afb0b88bbd9395
8a7e088b4a6e53def93ef2827b2d327eef86fc3c
refs/heads/master
2020-05-31T10:58:53.972539
2019-08-23T20:41:56
2019-08-23T20:41:56
190,248,841
0
0
null
2019-07-23T05:05:06
2019-06-04T17:28:49
Python
UTF-8
Python
false
false
3,648
py
import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn.linear_model import LinearRegression from scipy import stats from sklearn.model_selection import train_test_split from sklearn.metrics import mean_squared_error plt.style.use(style='ggplot') plt.rcParams['figure.figsize'] = (10, 6) '...
[ "domonicneal3@yahoo.com" ]
domonicneal3@yahoo.com
aa74a3662f0f1785ebb00737c3714a2532e3bdc1
c81361c366313b77eaea31253e2a2ffcd2cb39fd
/clever_pso.py
da7a43cfe6bb22fbbb10c443452f17270bdb6c5f
[]
no_license
m9i/loadbalancing
af133b1b8dab4580c7db554b81878f00cdf93460
57c7ee1afc370497bf362b96a41472d96a3c6b74
refs/heads/master
2020-04-14T17:01:54.849952
2019-01-22T20:30:50
2019-01-22T20:30:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,330
py
def objective_function(v): return sum(map(lambda x: x ** 2, v)) def random_vector(min_max): from random import random return list(map(lambda x: x[0] + (x[1] - x[0]) * random(), min_max)) def create_particle(search_space, vel_space): particle = {'position': random_vector(search_space)} particle['...
[ "mahsa.gol89@gmail.com" ]
mahsa.gol89@gmail.com
f20fee67909e69c0f73592ec8e958a199212941e
7bc1c08d5074b0a38328df08b2471caea005b88d
/project/base/card.py
eff9b1a46e3c410e4ba43a7e3eb0c8b61e1630ff
[]
no_license
antsticky/qBridgeLib
97bed3ff8b7f4425e95e913673e9c0ba1f5c5b39
1ff66fea28356dafb8af6d4a0761f3676bc192ab
refs/heads/main
2023-08-28T13:59:16.151090
2021-11-01T07:44:19
2021-11-01T07:44:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,445
py
class CardSuit: def __init__(self, name): self.name = name @staticmethod def suits(): return [CardSuit.create_by_short_name(short_name) for short_name in ["C", "D", "H", "S"]] @staticmethod def suits_reverse(): return [CardSuit.create_by_short_name(short_name) for short_nam...
[ "antsticky@gmail.com" ]
antsticky@gmail.com
d4323a8fa1e1648c6105fb1c105c9320a7657887
90d3b9467dcc6763865cad90a04a247cafcf5862
/shopee/child_app/transport/urls.py
2623f3b186fcd57a552bb35e8ab754ee8ca7fb7d
[]
no_license
vandat9xhn/django_1
0fa51515549eab04c27bdfeaf9e43650fe44dc70
6669e172d6b5a2a729dd31ea43d6c08f76b6e19c
refs/heads/master
2023-06-23T19:46:26.558871
2021-07-26T15:11:12
2021-07-26T15:11:12
375,704,827
1
0
null
null
null
null
UTF-8
Python
false
false
131
py
from django.urls import path # from . import views # urlpatterns = [ path('transport-l/', views.TransportViewL.as_view()), ]
[ "vandat9xiloveyou@gmail.com" ]
vandat9xiloveyou@gmail.com
d8397ec81aa5d71848edb5ef5d9d75123cbc5430
5c6f5a8dd71df620710bc02c03507691e85597e7
/todo_app/microservice_requests.py
2d2586f29eca649197429f79722996765215eea0
[]
no_license
gitit4321/todo_app
5a1b3aec6879f0fb919b8f7c3240b961ab6aa011
4cafbddb3d564ed08b2d19af56fc689b9118b609
refs/heads/main
2023-07-19T07:56:00.480973
2021-08-28T00:10:38
2021-08-28T00:10:38
388,287,482
0
0
null
null
null
null
UTF-8
Python
false
false
1,431
py
import requests import pyperclip as pc from validators import url as valid_url from validators import between def get_shortened_url(url): if valid_url(url): data = {'original_url': url} res = requests.post('http://localhost:4000/shorten', json=data) response = res.json() shortened_...
[ "gitit4321@gmail.com" ]
gitit4321@gmail.com