blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
73e2a31cf8dd068edcc1630093cac0255bfb04e9
8da59482eb565f760685901e8442274ab6405292
/institute/secretary/models.py
c8a8822c1d0afc1fb37847962076a95cf34ed9dd
[]
no_license
HNEhsan/uni-project-django
e3feb30ad61c2e89706c4e3c276408286e4ac323
642bd523af3ede2b642e406570085a74bce2eb36
refs/heads/master
2023-08-17T02:58:00.494964
2021-09-20T02:50:40
2021-09-20T02:50:40
401,089,507
0
0
null
null
null
null
UTF-8
Python
false
false
1,700
py
from django.db import models #from teacher.models import Teacher # Create your models here. class SecretaryRegister(models.Model): NationalCode = models.CharField(max_length=10, primary_key=True) Name = models.CharField(max_length=50) FamilyName = models.CharField(max_length=100) Age = models.IntegerFi...
[ "ehsan.hosseinnejad77@gmail.com" ]
ehsan.hosseinnejad77@gmail.com
ae06a39f9884a0f2050f91162f583b508eac6f60
6decd6f110b2a62c580e6bdc49ac2e9d354deb5b
/apis/urls.py
84a374ff9f440e0dc1f81337f6c119e83109a00f
[]
no_license
ruan1998/djtest
85e2f94d2cd243516fd156ad12355a2b8cba875c
60b6655209fd2859e74ba2082cd1c872853612fd
refs/heads/master
2020-07-31T09:03:39.245776
2019-09-24T09:14:58
2019-09-24T09:14:58
210,554,190
0
0
null
null
null
null
UTF-8
Python
false
false
316
py
from django.urls import path from .views import movie, menu, image urlpatterns = [ # path('', team.movie), path('menu', menu.get_menu), path('movie', movie.MovieView.as_view()), # path('image', image.image), # path('imagetext', image.image_text), path('image', image.ImageView.as_view()), ]
[ "1533724109@qq.com" ]
1533724109@qq.com
250b58f3dc7355770eed426d5376486157536409
8d109aa989c63e4d6f10be64233415ec62534ddf
/src/utils/config.py
a65f5878fb7f0ca9f53b481b781bcbca3eb98c04
[]
no_license
N3TC4T/xrpl-arangodb-importer
f5967e2c5f6c9f562f2332ab62c8c2d82b2988f4
66760a9507729f77cf5fd1ffee8e857c0447e832
refs/heads/master
2022-07-06T19:45:35.071704
2022-06-20T19:55:07
2022-06-20T19:55:07
222,242,675
0
0
null
null
null
null
UTF-8
Python
false
false
258
py
import json class Config(object): def __init__(self): with open('config.json') as config_file: self.config = json.load(config_file) def get_config_itme(self, cm='conf_module', ci='conf_item'): return self.config[cm][ci]
[ "netcat.av@gmail.com" ]
netcat.av@gmail.com
240f780193b6ee30893bd3e9a30204ee41ce0351
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/330/usersdata/302/93464/submittedfiles/lista1.py
4313e851ecf6723c1825fd854fb9da93e0c1e682
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
245
py
# -*- coding: utf-8 -*- n = int(input('Digite a quantidade de valores da matriz: ')) a = [] for i in range(0,n,1): a.append(float(input('Digite a%d:' %(i+1)))) s = 0 for i in range(0,n,1): if a[i]%2 != 0: s = s + a[i] print(s)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
e6690ed5e365578120df0979b1250bc26f56874c
fe05003912a82f88d3688327d4f663e07657bf95
/3.7_general_balanced_paranthesis.py
6abc955f5ebcf6489102fb02749cae89958b60a0
[]
no_license
pjyi2147/python_algorithm
a3e27cb1820316dec5b9d4dcacdfaf5d1d607b26
ba99fe9217de6c50fef41a953b46888daef71af4
refs/heads/master
2022-11-05T05:08:12.625265
2017-03-15T16:50:19
2017-03-15T16:50:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
831
py
#3.7 general balanced paranthesis from pythonds.basic.stack import Stack def parChecker(sampleString): s = Stack() index = 0 Balance = True while index < len(sampleString) and Balance: string = sampleString[index] if string in '([{': s.push(string) else: ...
[ "yjs990427@gmail.com" ]
yjs990427@gmail.com
176377d49320c3c35018ed1803f1841dc4517e2a
af3f5afe7d14a731d999a06c0de64647d9d5227d
/followBackBot.py
33971b78f4e2daaff5c50ad1a9016abedd583a2e
[]
no_license
camillezajac/twitterBots
13249f31e098b2c23abc8e9fc13bf8e23000f2c5
f50b5356692a7b3a9d7d047bbfce0196115f0f7e
refs/heads/main
2023-02-14T16:16:56.258189
2021-01-05T04:55:21
2021-01-05T04:55:21
326,890,273
0
0
null
null
null
null
UTF-8
Python
false
false
480
py
import tweepy import time # authenticate API consumer_key = "your code here" consumer_secret = "your code here" access_token = "your code here" access_token_secret = "your code here" auth = tweepy.OAuthHandler(consumer_key, consumer_secret) auth.set_access_token(access_token, access_token_secret) api = tweepy.API(aut...
[ "noreply@github.com" ]
camillezajac.noreply@github.com
5e15cffbb4eeed4229b5074ed1dbb6bcecd5d526
bf270288391035094d8afeeaae5a0b8c284b85d1
/app/user.py
f918ab95ae46098f7ecdf00585be3c7b09c0fa62
[]
no_license
jacobpennels/Telepatholodroid
29201e40d55be292556b19b5a3c822591da7a39a
f39d330998779cdc6a11a0c907713fa75400490e
refs/heads/master
2021-09-09T12:13:12.726376
2018-03-16T00:54:54
2018-03-16T00:54:54
105,992,560
0
0
null
null
null
null
UTF-8
Python
false
false
751
py
from app import database_connector class User: def __init__(self, title, fname, lname, email, date_joined, institute, country, user_id): self.user_id = user_id self.title = title self.fname = fname self.lname = lname self.email = email self.date_joined = date_joined...
[ "jaykoknight@btinternet.com" ]
jaykoknight@btinternet.com
6d4d477a22b165e5e1c2d696e298c7041172de85
8964f146366a7d3c100accb48b26585057841aec
/Test Cases/equiv.py
3af45f5e939d8b0684adad32e69a57a2309de9a5
[ "MIT" ]
permissive
Function-0/SQL-Database-Python-Clone
83b817327d64cd5e2d8287e50070e8c6b967fed6
07fa6a63aa85459127c47f7056b49e4b8cf0abad
refs/heads/master
2020-05-17T16:45:33.401317
2019-04-27T22:51:19
2019-04-27T22:51:19
183,828,270
0
0
null
null
null
null
UTF-8
Python
false
false
2,315
py
# k and smallest_index were swapped in key i # perform that swap in all keys after i. def propagate(t, keys, future, k, smallest_index): for i in range(future, len(keys)): lst = t[keys[i]] lst[smallest_index], lst[k] = lst[k], lst[smallest_index] def find_min(L, i, j): '''(list, int, int) -> int ...
[ "noreply@github.com" ]
Function-0.noreply@github.com
1f2e16db73f4d88295d4d2a95488a10a5cd5ab5d
ee2ae98f9bafd0f539f36abca3f7133959cd0962
/backend/nameless_frost_27639/wsgi.py
9f29a3e855af429e370d4fe8a99cfa5f83f2a19b
[]
no_license
crowdbotics-apps/nameless-frost-27639
c036fc2f078541882301de65d643ecb40c9f2492
4c23611555f15af46259675791bf87fbcd9bb4b8
refs/heads/master
2023-05-06T18:13:26.553269
2021-06-01T03:16:58
2021-06-01T03:16:58
372,688,249
0
0
null
null
null
null
UTF-8
Python
false
false
417
py
""" WSGI config for nameless_frost_27639 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(...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
67d903636f1c75e3b4e45403548c442f248de85d
8c4beb1c5263d3771b3dd69783cd274dee1900a6
/lucky78/urls.py
6bbb5f30a31888e734e21dd32ba7f0f094838245
[]
no_license
codervince/lucky78
6523a141ff21ac50d59cd1407a8fcd7a435d9b8d
53b6c21760021ef1fe82666df659553b3ad1514a
refs/heads/master
2021-01-19T18:25:25.730866
2016-03-30T10:02:34
2016-03-30T10:02:34
55,052,569
0
0
null
null
null
null
UTF-8
Python
false
false
1,030
py
"""Lucky78 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/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-bas...
[ "publicvince102@gmail.com" ]
publicvince102@gmail.com
65813f60c0b619ba70727345d3a100f11aa36a18
8da7d35bdeacbd821b9df4189d49afe401dd51a3
/DISClib/DataStructures/adjlist.py
726e96bc89c22b81149ba5e358b90f4ddeef2d8a
[]
no_license
EDA-SEC-02-EQUIPO-7/EDA-2020-20-RETO-3-SEC-02-GRUPO-07
657aa7d77a808191f23ff7cb055f2e7fe28c50c0
8d74409e21c025b10a9f979a5ddcd86a96f25b66
refs/heads/master
2022-12-31T12:30:56.424380
2020-10-23T23:43:02
2020-10-23T23:43:02
298,278,385
0
0
null
null
null
null
UTF-8
Python
false
false
11,303
py
""" * Copyright 2020, Departamento de sistemas y Computación, * Universidad de Los Andes * * Desarrollado para el curso ISIS1225 - Estructuras de Datos y Algoritmos * * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as publis...
[ "noreply@github.com" ]
EDA-SEC-02-EQUIPO-7.noreply@github.com
3f2081334c3ed8057b4710a18a3be0ae909fa1fc
b86d418e9389350e772eda1d8a493bf3c2ff5661
/setup.py
13624931abc30f672c288d66ed773e4ded6f25e6
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
dpaysan/unet_nuclei_segmentation
161085eb0b7fe24af96f565bfd2d05f2cbe22896
df0f656ecf511aa39c411f897ab99cfa6c119c7b
refs/heads/master
2023-08-25T14:46:21.530617
2023-08-07T12:33:52
2023-08-07T12:33:52
369,880,899
0
0
null
null
null
null
UTF-8
Python
false
false
1,452
py
from setuptools import setup, find_packages from codecs import open from os import path __version__ = '0.0.1' here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() # get the dependen...
[ "paysand@student.ethz.ch" ]
paysand@student.ethz.ch
5b938a6b377cb776257a75168249dbc08c67cdca
441c3c55870e00c4a0d2eb1e5a051b6483d116db
/build/omni_nav/catkin_generated/pkg.develspace.context.pc.py
58fb1b18d04d6de08fb3ca23d744bafe8d503815
[]
no_license
h26m48/omni_robo
819348e953d5be9d7da6c9fded55facd2e5e457e
e5fc91a3180198854e306bc1f45f0df345a7929c
refs/heads/master
2020-04-19T15:41:05.278791
2019-01-30T05:39:27
2019-01-30T05:39:27
168,281,573
1
0
null
null
null
null
UTF-8
Python
false
false
370
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "omni_nav" PROJECT_SPACE_DIR = "/home/...
[ "888aetuzak215@gmail.com" ]
888aetuzak215@gmail.com
e418874c00457ba2e34cdf5d102a6937e90fd320
2d8ad9574e44ba2b9db2c0c7c95273c161a0c20d
/make_time_for_TASR.py
438643b27d715c90a85f100a44e0f69c810baffa
[]
no_license
Starboomboom37183/Recommendation-System
2c8aa7d8f94a9a386ac64f6b72bbb024c7dfdbfc
a481bb799e44035186b0d3544d3ffa5091439763
refs/heads/master
2020-03-28T20:31:55.878743
2018-09-17T06:54:07
2018-09-17T06:54:07
149,079,335
0
0
null
null
null
null
UTF-8
Python
false
false
3,111
py
# !/usr/bin/python # _*_ coding:utf-8 _*_ from get_mashup import MSSSQL import numpy as np import datetime def transfer_time(s): temp = s.split(' ') str = '' str+=temp[3] if(temp[2]=='Jan'): str+='-1' elif temp[2]=='Feb': str+='-2' elif temp[2]=='Mar': str+='-3' elif ...
[ "1558448539@qq.com" ]
1558448539@qq.com
a26e683d363dea336a27a40943d9620d10297ab6
8ff7130f77e2e76c32c45b3d6df53b3586499a58
/autocomplete.py
0e2e87bc3cddcc1e562897850a9859512cced334
[]
no_license
CasperEriksen/spt-gro
630f05029bf0fb6f39b48e2352050ed94386bee6
14a6f92f14da86673b7c5cb0817c1596b261d693
refs/heads/master
2020-03-24T13:15:40.370863
2018-07-29T07:35:18
2018-07-29T07:35:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,983
py
#!/bin/usr/python # coding: utf-8 import re from ordbog import dictionaries from itertools import compress import dictionary import os import argparse def relevance_sort(search_results, search_term): not_top = [not bool(re.match(search_term, text)) for text in search_results] return [x for (_, x) in sorted(zip(not...
[ "Casper.Eriksen@skat.dk" ]
Casper.Eriksen@skat.dk
deb52afb2b156411e5c1de2b5ca0c5721770e6c9
85225916d51fb34d050c414e6a83687ff70d51cb
/listComprehension.py
0b5fe24109779aaa0019ea64db411c8426453025
[]
no_license
dip007/pythonBeginners_SS
ff31e3df86e09681dc6e90e111d450e123ae33d4
5361f9e5c305c946d65233de28ac501db6de50fd
refs/heads/master
2022-04-26T08:21:46.825584
2020-04-19T12:31:37
2020-04-19T12:31:37
256,993,551
0
0
null
null
null
null
UTF-8
Python
false
false
596
py
x,y,z,n = (int(input()) for i in range(4)) print([[a,b,c] for a in range(0,x+1) for b in range(0,y+1) for c in range(0,z+1) if a+b+c!=n]) #Input and output: This prints the details in lexicographic order. # 1 # 1 # 1 # 2 # [[0, 0, 0], [0, 0, 1], [0, 1, 0], [1, 0, 0], [1, 1, 1]] # x=int(input()) # y=int(input()) # z=i...
[ "subhradipsaha5@gmail.com" ]
subhradipsaha5@gmail.com
175a846eb57f6a81839959da759bc35c3aa67727
18dc5cbaeb9baa167d3feee027588879468ddf8a
/MySQL-AutoXtraBackup/partial_recovery/partial.py
bbbc83a891c6d44f6f754a2eb663aa79d975b050
[ "MIT" ]
permissive
dilipsingh556/test
78ccceefe4faad1976ab6fe49296e32af15a68bb
40261df2374497f5efe4878af490bbc41922ff0b
refs/heads/master
2020-05-09T03:52:06.050856
2019-04-12T10:13:54
2019-04-12T10:13:54
180,982,668
0
0
null
null
null
null
UTF-8
Python
false
false
16,508
py
import os import shutil import subprocess from general_conf.generalops import GeneralClass import re from general_conf import check_env import sys import logging logger = logging.getLogger(__name__) class PartialRecovery(GeneralClass): def __init__(self, config='/etc/bck.conf'): self.conf = config ...
[ "dilip_singh556@yahoo.com" ]
dilip_singh556@yahoo.com
819b4d9d34967f31d726f790217eb7114031bffe
dc9a84e39b1cb7e4247e1346fd852da3c2442dd0
/back/node_modules/bcrypt/build/config.gypi
411d3a17789f08bd930ec2ab2a00b3be2c9a288c
[ "MIT" ]
permissive
Mamisoa26/ProjetNirina
1685f0d901a1b9363f74fb0c1ddc6af96057fa83
93f475ce03644f2b99fb4fbe3cd4cb2f7b7ec93f
refs/heads/master
2023-01-03T11:33:46.585386
2019-08-30T11:47:57
2019-08-30T11:47:57
205,341,400
0
0
null
2022-12-22T12:29:48
2019-08-30T08:40:04
JavaScript
UTF-8
Python
false
false
5,777
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [] }, "variables": { "asan": 0, "build_v8_with_gn": "false", "coverage": "false", "debug_ngh...
[ "rakotonindrinasandiarivelo12@gmail.com" ]
rakotonindrinasandiarivelo12@gmail.com
e34b734043606ce4916c9eacceca3ecfd10d6f39
c7c4588d2ffec63b877daf192e447ab836b75c5d
/day-09/script2.py
af01e5514b20dd31ce115827e3c1e8cbcde9aa8d
[]
no_license
mahrtynas/advent-of-code-2020
6ad907689ff185086fbd107a36babfb12f282706
f8d4506a42c61689f8076c7bc5e98732fdafcb2d
refs/heads/master
2023-02-06T13:57:04.941123
2020-12-22T09:23:11
2020-12-22T09:23:11
318,467,922
0
0
null
null
null
null
UTF-8
Python
false
false
1,095
py
def is_valid_target(values, target): for i in range(len(values) - 1): d = set([target - x for x in values[:i] + values[(i + 1):]]) if values[i] in d: return True print("Target %s can not be achieved" % target) return False def find_contiguous_set(values, target): while True...
[ "mseskaitis@gmail.com" ]
mseskaitis@gmail.com
fdb5faa68cac82c0f3d4f68e997ab2f4251ca55d
0f44013e993727e94a52d3f21e6c934b3243bda4
/src/hello_wx.py
35fb1c048c06dac8f52e584fdcb12b1b618a2edd
[ "MIT" ]
permissive
davidfstr/Python-in-Mac-App-Store
bf336e43ec5dbdfe942ad5a4c9e2bb84f32abe00
1bdbb928bd8a4c7e398bc6916485e3dfc2f03825
refs/heads/master
2021-06-07T21:49:03.462443
2021-04-23T14:07:35
2021-04-23T14:07:35
21,087,030
93
23
null
2015-04-09T04:56:14
2014-06-22T06:14:24
Shell
UTF-8
Python
false
false
223
py
import wx def main(): app = wx.PySimpleApp() colors = ['Red', 'Blue', 'Green', 'Pink', 'White'] dialog = wx.SingleChoiceDialog( None, 'Pick something...', 'Pick a Color', colors) dialog.ShowModal()
[ "davidfstr@gmail.com" ]
davidfstr@gmail.com
459098cdcbc4db3bb0ec45f2ae780ce551e04a9b
36bbcb179e64185125998b8b2a7bd00b4c54073e
/template.py
3e385e3d279d583082b86c44e61eba98ecd1cb18
[]
no_license
savanto/prob
4edde98caa90bb0861c97f5ec27467fe062caca1
585cb598bf2c49cfdc7a7a54b36d1abed5ae026a
refs/heads/master
2020-05-02T21:02:53.400615
2014-10-21T04:19:56
2014-10-21T04:19:56
19,366,198
1
0
null
null
null
null
UTF-8
Python
false
false
59
py
#!/usr/bin/env python """ PROBLEM Problem PROBLEM """
[ "savanto@gmail.com" ]
savanto@gmail.com
31563306cb26a940817b59ba8a33317d20c54344
4c995a7626134308b6f900f70e4aac799a4379ff
/home/admin.py
eaa5825110f336ef117f618b8d7676cd0c9e69bd
[]
no_license
leventerevesz/irrigation-server
3c6a25d36e5ccd2bc4547ce55e0a6be72533504d
9efd022b6dda81e4088dd78036d652cd88d8214a
refs/heads/master
2022-12-16T16:00:06.359359
2019-12-05T21:13:16
2019-12-05T21:13:16
219,180,821
0
0
null
2022-12-08T06:59:35
2019-11-02T16:26:20
Python
UTF-8
Python
false
false
211
py
from django.contrib import admin from .models import Settings, Log class LogAdmin(admin.ModelAdmin): list_display = ('message', 'datetime') admin.site.register(Settings) admin.site.register(Log, LogAdmin)
[ "levete.revesz@gmail.com" ]
levete.revesz@gmail.com
2de17c60a0220cf1f1c8838295b87f451491456f
bfe6c95fa8a2aae3c3998bd59555583fed72900a
/summaryRanges.py
731e8b9f2fedab96a943f3eef675bae077229713
[]
no_license
zzz136454872/leetcode
f9534016388a1ba010599f4771c08a55748694b2
b5ea6c21bff317884bdb3d7e873aa159b8c30215
refs/heads/master
2023-09-01T17:26:57.624117
2023-08-29T03:18:56
2023-08-29T03:18:56
240,464,565
0
0
null
null
null
null
UTF-8
Python
false
false
2,765
py
from typing import * # 不知道是哪一个 class Solution1: def summaryRanges(self, nums: List[int]) -> List[str]: out = [] if len(nums) == 0: return out pre = nums[0] pre_start = nums[0] for i in range(1, len(nums)): if nums[i] != pre + 1: if ...
[ "zzz136454872@163.com" ]
zzz136454872@163.com
63f8481fd944a0952460cc2bac048562bb372bd0
e7282ef96d0d3ebbe86311f4b3d1db12c1dcf584
/fio_csv.py
5c8ca6ae29274c5b8af6b2e3e5300da3f9a90b37
[]
no_license
Saltflow/fio_helper
31c67bbfe51ad522d2702879df056d4e7fe7e122
8ab80c14436493e2a63830622a3f8c43354c33fc
refs/heads/master
2023-04-14T18:30:24.825766
2021-04-20T12:00:14
2021-04-20T12:00:14
321,084,377
0
0
null
null
null
null
UTF-8
Python
false
false
9,011
py
#!/usr/bin/env python3 import argparse import json import pprint import os import re import sys import pandas import numpy as np import matplotlib.ticker as ticker import matplotlib.pyplot as plt plt.style.use('ggplot') def get_arg_parser(): p = argparse.ArgumentParser( description='Create graphs from v...
[ "2017302580274@whu.edu.cn" ]
2017302580274@whu.edu.cn
b3fbab07b998e1fee199eb0830317781fa2a95f5
4f7f2adf35772020adfbc994cdff8a756fcc4497
/src/machine_learning/training_process/classifier_keras.py
57463798ddda704cd5c5201e922f72be5f867bc1
[]
no_license
gprolog/machine_learning_tools
6b84e15fe3ffcb55df24b33c9ea394936f9b74fc
e343318829f7e9eb436c6269818ba0344675962c
refs/heads/master
2020-03-15T05:11:13.318779
2018-05-02T03:57:11
2018-05-02T03:57:11
131,983,521
1
0
null
2018-05-03T11:09:06
2018-05-03T11:09:06
null
UTF-8
Python
false
false
4,688
py
from __future__ import print_function import os, json from classifier_base import * import keras from keras.models import * from keras.layers import Dense, Dropout from keras.optimizers import RMSprop from sklearn.preprocessing import OneHotEncoder from keras.wrappers.scikit_learn import * from sklearn.datasets import ...
[ "chaoying_liu@trendmicro.com" ]
chaoying_liu@trendmicro.com
1b150b237cca8fca96f6077ef567407c69d49e5d
f8e99e4118a7da8720ba28d57b4e96ee97ed7a39
/Array/78.py3
9008a51db481d2467f6eab6106410a9ac0913e20
[]
no_license
MinhNNguyen/Python-Practice-Leetcode
46cdef7642e0dd22afbb5c459862c5b8c22ed6d8
e8de6631b461aa8cdc63562e532f81e3b2e2179a
refs/heads/master
2020-05-07T00:54:53.362626
2019-05-01T07:11:37
2019-05-01T07:11:37
180,249,919
1
0
null
null
null
null
UTF-8
Python
false
false
252
py3
#Iterative approach class Solution: def subsets(self, nums: List[int]) -> List[List[int]]: res = [[]] for n in nums: for i in range(len(res)): res.append(res[i]+[n]) return res
[ "robertnguyen@roberts-mbp.dsldevice.lan" ]
robertnguyen@roberts-mbp.dsldevice.lan
f5c377a7d7c1af9461bd60efb9fb4ac6fc8cfe35
7b8b11e6fc8b9f36e951c34ca95a835ade290f21
/InterviewBit/TwoPointers/MaxContinuousSeriesOf1s.py
daeb356ea8802d1c1483b882e8d9b56b0596ad6c
[]
no_license
alexander-travov/algo
7627ba3f22c520108b241f7a0bbc777277965680
d2b22994a65b796009b48240c0397d51b8982432
refs/heads/master
2020-05-30T07:02:07.784023
2019-09-14T10:15:47
2019-09-14T10:15:47
189,592,460
0
0
null
null
null
null
UTF-8
Python
false
false
975
py
""" Max Continuous Series of 1s =========================== You are given with an array of 1s and 0s. And you are given with an integer M, which signifies number of flips allowed. Find the position of zeros which when flipped will produce maximum continuous series of 1s. For this problem, return the indices of maximu...
[ "alexander.travov@gmail.com" ]
alexander.travov@gmail.com
b17a03c0eb64efe0d2a2b156f6671af4fbcc869b
f6524cb86952fbc15505febdef451ab1a0d062ed
/arduino-experiments/dumper/decode.py
1fb5e94343937c2ac48aee473a91503564f8ade8
[]
no_license
Zonde/ZondeESP32
efd7c65d90030dd051be7be5e1d84094073d6aac
8059aab2886734135b19542837ecfb69c30c1ac8
refs/heads/master
2021-09-10T15:25:12.881472
2018-03-28T13:53:35
2018-03-28T13:53:35
124,524,502
1
1
null
null
null
null
UTF-8
Python
false
false
1,730
py
""" Partial decoder for 802.11 payloads, decodes all files in ./dumps/ as raw binary payload data Author: Daan de Graaf """ import sys from os import listdir from os.path import join def analyse_packet(path): data = open(path, 'rb').read() type = (data[0] & 0b00001100) >> 2 if type == 0b00: prin...
[ "daandegraaf9@gmail.com" ]
daandegraaf9@gmail.com
208ff0e812a9c70c6668056dec437805ca6421a5
f7c29c49733f3d0721bc423f15a009c163bde8bd
/Crawler/Deep in Python Web Crawler/Chapter_6/6-2_link.py
672ed4919069873fb45794c185eee060926463c0
[]
no_license
Cylra/py3Learn
036665ba73b09fdf852a3149603ac1b2da18d92c
7fac7c548f2183b636ef8d6336e2499e5ceb63a1
refs/heads/master
2021-06-20T11:12:02.732047
2020-03-31T14:40:58
2020-03-31T14:40:58
100,771,707
0
1
null
null
null
null
UTF-8
Python
false
false
735
py
#! /usr/bin/python3 import urllib.request import re def getLink(url): headers = ("User-Agent", "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36") opener = urllib.request.build_opener() opener.addheaders = [headers] urllib.request.install_opener...
[ "longyu998127@gmail.com" ]
longyu998127@gmail.com
ccbad334062bd86d13f5945c58071f6f3365eccb
78ec82174f57653ac628c5bdc69e3a94f19824be
/evennia/server/portal/grapevine.py
76447726de944882c9bdcfb67ca1289233917652
[ "BSD-3-Clause" ]
permissive
fermuch/evennia
ad6813202ec40fa479f9eb7860ea6aeec36860be
8961baa0a5b9b5419f864a144f080acc68a7ad0f
refs/heads/master
2020-07-05T21:44:01.206747
2019-08-16T19:15:27
2019-08-16T19:15:27
202,788,779
0
0
NOASSERTION
2019-08-16T19:39:35
2019-08-16T19:39:35
null
UTF-8
Python
false
false
11,514
py
""" Grapevine network connection This is an implementation of the Grapevine Websocket protocol v 1.0.0 as outlined here: https://grapevine.haus/docs This will allow the linked game to transfer status as well as connects the grapevine client to in-game channels. """ import json from twisted.internet import protocol ...
[ "griatch@gmail.com" ]
griatch@gmail.com
ca50249a8419ecd331683f942b8fa6a2d35ae5f8
1951778835329f7a5cea0d64b54db213ebcf2112
/DGY/DGY/urls.py
a8a853bcaa310f46abc3ebbb167c176f644af162
[]
no_license
DingGY/opfwebsystem
27c6cd42f59453c20d263de2540a00cf32dfc285
574d8c2f7f1307aeb7b1cc72d2851b4f5c4b107c
refs/heads/master
2021-09-06T18:02:38.919365
2018-02-09T11:29:16
2018-02-09T11:29:16
111,661,468
0
0
null
null
null
null
UTF-8
Python
false
false
1,769
py
"""DGY URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/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-based ...
[ "iamdgy@qq.com" ]
iamdgy@qq.com
f6202d23842644bd25eeb7b2059c3bbadd673813
148ecaf700da298e947808154b29b548b662b595
/HW5/question1.py
74178509c4da0808a26434cbaf406830fbad20ff
[]
no_license
anliec/CV_homeworks
0fb0274302a95747dc1c9697d4dbc113624e564f
a73d9ec3a545e717db42e6f1fa61ec08d13f26b2
refs/heads/master
2021-04-06T19:41:08.289842
2018-04-20T07:51:00
2018-04-20T07:51:00
125,178,591
0
0
null
null
null
null
UTF-8
Python
false
false
3,981
py
import cv2 import numpy as np from scipy.signal import convolve2d from math import floor def int_img_to_unint8(img): max_value = np.max(np.abs(img)) min_value = np.min(img) if min_value < 0.0: return np.array(img * 127 / max_value + 127, dtype=np.uint8) else: return np.array(img * 255 ...
[ "nicolas.six@pau.fr" ]
nicolas.six@pau.fr
43f6940106543f569c4ec219144e4e15cecbb70a
caeb1420025ccbdb33c13b02f60e0bb2a5d6f69c
/blog/migrations/0001_initial.py
e8c09f240a26fcb3a52820c438169998bbb37a16
[]
no_license
isactenofora/my-first-blog
9f3cbb4789eb94a3bc30776f787374b2e2d757ae
c7f5c8f7053ec845b79e62e95530cf702a7a552a
refs/heads/master
2020-04-07T02:47:08.183392
2018-11-25T16:01:10
2018-11-25T16:01:10
157,989,658
0
0
null
null
null
null
UTF-8
Python
false
false
986
py
# Generated by Django 2.0.9 on 2018-11-17 12:35 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
[ "isaclemente4@gmail.com" ]
isaclemente4@gmail.com
fd52d4cc190f636ed426bc57cc6e3ee1e6e13018
d1da1bfc310cb428152a9d4e41509b08ee4a6846
/sum.py
ad49dc34b7f622a868e159ca638237e3394ff94c
[]
no_license
imrajashish/python
3c9c3a2b3cdd939741fc062ca52df6e3a40d5a45
898032f9acb707e0cb0ad40b6b6f2a2406610893
refs/heads/master
2022-12-07T12:07:08.500570
2020-09-04T15:21:26
2020-09-04T15:21:26
283,292,211
1
0
null
null
null
null
UTF-8
Python
false
false
407
py
'''num1=input("Enter the number: ")) num2=input("Enter the second number: ")) sum= float(num2)+float(num1) print("Sum of {0} and {1} is {2}" .format(num1, num2, sum))''' #print(sum) def factorial(n): # single line to find factorial return 1 if (n==1 or n==0) else n * factorial(n - 1); # Driver Cod...
[ "imrajashish07@gmail.com" ]
imrajashish07@gmail.com
f2f6a6f9e5d23d65d8fd1be5c5e14bff2763d1d1
6edd5a50f07843de18175c04796348f7fdc4f74d
/Python/lis_annotation.py
800448c84c36fb068f1d50253ec6fbeaae2d1d23
[]
no_license
rogergranada/_utilsdev
4f14a1e910103c33e3a8e820bb3e55483bd27e69
977a8d98a6934b9354ec233da6e0ef31621282f3
refs/heads/master
2021-06-01T17:07:14.773949
2020-10-22T22:06:43
2020-10-22T22:06:43
124,608,594
0
0
null
null
null
null
UTF-8
Python
false
false
12,084
py
#!/usr/bin/env python # coding: utf-8 import sys import argparse from os.path import join, dirname import logging logger = logging.getLogger(__name__) logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) def fix_boxes(x, y, w, h, valx=0, valy=0, mode=None): """ Fix bounding ...
[ "roger.leitzke@gmail.com" ]
roger.leitzke@gmail.com
7baba143bd8212ef69fad25fddf79a9c52285611
f5f88d090ef7dd5c396569e3747b4944962741e7
/OLC2_Proyecto 1_201503958/parsetab.py
6bc4736290ab19b863948fcc5c903b3626a72fde
[]
no_license
diemorales96/OLC2_Proyecto1_201503958
2c6b5862178c5bdabba2f7c76901c0e91dbf1248
f7fce6cb116c03b4c83e1167ec1bc9169ded67ce
refs/heads/master
2023-08-05T10:46:43.334467
2021-09-23T05:31:22
2021-09-23T05:31:22
397,853,464
0
0
null
null
null
null
UTF-8
Python
false
false
39,945
py
# parsetab.py # This file is automatically generated. Do not edit. # pylint: disable=W,C,R _tabversion = '3.10' _lr_method = 'LALR' _lr_signature = 'leftORleftANDrightUNOTleftMENORQUEMAYORQUEIGUALIGUALDIFERENTEMENORIGUALMAYORIGUALleftMASMENOSleftDIVPORMODnonassocPOTrightUMENOSAND CADENA CARACTER COMA CORA CORC DECIM...
[ "diemorab@gmail.com" ]
diemorab@gmail.com
43cf9f14d261bdd474a55dfba77df37cf2ca3d8b
5475ca8d4ad2b0b68135d3ea70f32c1c55d21b65
/docs/conf.py
421f39f323231dc7f3b6eef5a13dc6328d3f70e8
[ "MIT" ]
permissive
instacart/lore
e5c9aa49439a635ba80d66ecf5d76dc763e88308
a14f65a96d0ea2513a35e424b4e16d948115b89c
refs/heads/master
2023-05-25T08:09:53.463945
2022-09-27T19:41:48
2022-09-27T19:41:48
107,602,547
1,578
139
MIT
2023-05-13T02:26:19
2017-10-19T21:51:45
Python
UTF-8
Python
false
false
6,191
py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/stable/config # -- Path setup --...
[ "noreply@github.com" ]
instacart.noreply@github.com
4de4d92cd87c66f2d7af6124d092c332f4542ba7
3050e5b0a65d963ca4d96f77ff7f02947b083dfc
/bts/dataset.py
081982f8d8894a4e7c82bc56f571c18c40fdc446
[ "MIT" ]
permissive
NajusAnaxi/UNet-based-for-Brain-Tumor-Segmentation
b6417b8cd41151b9a0990f6f20bcf5d78e3ef84d
24ca4432873f145ad33810f40c851ac10bf030fa
refs/heads/main
2023-08-23T20:03:01.077884
2021-10-21T10:33:39
2021-10-21T10:33:39
416,876,525
0
0
null
null
null
null
UTF-8
Python
false
false
3,907
py
from torch.utils.data import Dataset import torchvision.transforms as transforms import torchvision.transforms.functional as TF from PIL import Image import os import random class TumorDataset(Dataset): """ Returns a TumorDataset class object which represents our tumor dataset. TumorDataset in...
[ "noreply@github.com" ]
NajusAnaxi.noreply@github.com
a85acdc9c3cedf35cd064df7cde294c82fcfb9cf
966ea314bcd64f40bfaea457f914fcedbe26426a
/April-week3/teststdin.py
5a306710441cfe3a30ed647f4c6c96989f39a683
[]
no_license
vandanasen/Python-Projects
30caa85cf87ba712e1307b0441fed2d7fa9298a0
9b24a9f6af0374bb0d6a3a15c05099f49edfd581
refs/heads/master
2020-03-26T00:26:06.067905
2019-03-11T22:58:25
2019-03-11T22:58:25
144,320,263
1
0
null
null
null
null
UTF-8
Python
false
false
273
py
#Import System module import sys print("Enter a number") #input is read using stdin x=int(sys.stdin.readline()) print(x) #output printed using stdout sys.stdout.write('This is stdout text\n') #Error message is shown using stderr sys.stderr.write('This is a stderror\n')
[ "vandy_senthil@yahoo.com" ]
vandy_senthil@yahoo.com
33f432b772d2ca4608fdedeb8ab534706c8456e7
088508fbfdbe9e0d6dbc780d1eb376f5536d5a91
/strava/__init__.py
994dcf36c08397d445c5f5a0ece13851b7b81edc
[ "MIT" ]
permissive
lincolwn/python-strava
6706a88bd499c647f0d9a55d0174e1d5bff2480a
eb642c743b93a336a027b38a06cf842dc0464bed
refs/heads/master
2021-06-13T06:49:48.238317
2020-11-18T17:44:54
2020-11-18T17:44:54
200,271,701
1
2
MIT
2021-06-10T19:15:09
2019-08-02T17:13:52
Python
UTF-8
Python
false
false
82
py
__title__ = 'Strava Client' __version__ = '0.1.8' __author__ = 'Lincolwn Martins'
[ "lincolwn@gmail.com" ]
lincolwn@gmail.com
327bcf4869247752f51e656a3f087e131c62d8b2
25488c9c54ac2048f75bbdc3fc728cd5764da3e2
/working_tfidfmodel.py
8a9efa1ba0e6ceeed17a9098756c58408786cde3
[]
no_license
gputti/proj1
0ce1c41aedbc21ee0b29f97c3108989ea7c4b063
c1b6e5ba3b8c4282a2467567e1ddf190866f745c
refs/heads/master
2021-09-15T10:35:54.095788
2018-05-30T19:56:32
2018-05-30T19:56:32
110,478,785
0
0
null
null
null
null
UTF-8
Python
false
false
3,812
py
################################################ # Date: 01/02/2018 # this is working as of date. # This uses TF-IDF model building. # ################################################ import sys, getopt import tempfile import logging import tempfile from os import walk from gensim import corpora, models, similariti...
[ "noreply@github.com" ]
gputti.noreply@github.com
b850ab3c55f599b7beb9478e17b8427f431b5535
1d5808310d163a101b958c2a1abd1a0f5991bab4
/newbot.py
50c7b55c50f1b605247addd6bf9ba5c0cbe3fb8b
[]
no_license
sachmo99/Chatbot
c16af64bd0f4fac1a08b0d0c84ae6986a70c48bb
bfece13b1459b45ddea49a4f7ab8714a5287a404
refs/heads/master
2021-07-13T01:26:27.004902
2017-10-15T18:12:04
2017-10-15T18:12:04
107,031,901
0
0
null
null
null
null
UTF-8
Python
false
false
532
py
from __future__ import unicode_literals from hackathon import * lastUpdateID = None while True: updates = getUpdates(lastUpdateID) if len(updates["result"]) > 0: lastUpdateID = getLatestUpdateID(updates) + 1 for update in updates["result"]: message,who = extract(update) ...
[ "noreply@github.com" ]
sachmo99.noreply@github.com
6825f758821f16bfda3455641993ecc7b49aac55
07504838d12c6328da093dce3726e8ed096cecdb
/pylon/resources/properties/regName.py
e07a63dcddcc3f32ae30609575ccc6655d8246e0
[]
no_license
lcoppa/fiat-lux
9caaa7f3105e692a149fdd384ec590676f06bf00
7c166bcc08768da67c241078b397570de159e240
refs/heads/master
2020-04-04T02:47:19.917668
2013-10-10T10:22:51
2013-10-10T10:22:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,381
py
"""regName standard property type, originally defined in resource file set standard 00:00:00:00:00:00:00:00-0.""" # Copyright (C) 2013 Echelon Corporation. All Rights Reserved. # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "...
[ "lcoppa@rocketmail.com" ]
lcoppa@rocketmail.com
cbf50215b26fbe9f380591f173308297e88f2266
13800b7827598e76428a335559b7bf11867ec2f0
/python/ccxt/ascendex.py
56a109c86e3224ca20517a5090a88d97352d3dcc
[ "MIT" ]
permissive
ccxt/ccxt
b40a0466f5c430a3c0c6026552ae697aa80ba6c6
e4065f6a490e6fc4dd7a72b375428b2faa570668
refs/heads/master
2023-09-04T03:41:29.787733
2023-09-03T19:25:57
2023-09-03T19:25:57
91,253,698
30,798
8,190
MIT
2023-09-14T21:59:09
2017-05-14T15:41:56
Python
UTF-8
Python
false
false
132,963
py
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange from ccxt.abstract.ascendex import ImplicitAPI import hashlib from ccxt.base.types import OrderSide...
[ "travis@travis-ci.org" ]
travis@travis-ci.org
da205b21a2b3d4bd14360f4723bfd82fcedc9bb2
7e1c4c72038adb45083dca4df339f67cf2d718d7
/FileManager.py
cb7e5f4e54a6dadea154f736e70765e6cdff4467
[]
no_license
Tarzan1009/PSI
9b004e9c87efb7ab1a78d88040dbef7b09ed0c02
6a5d0749428c1ca05a6009313638f8bfb42b9882
refs/heads/master
2022-03-26T08:32:20.904801
2019-11-14T11:39:03
2019-11-14T11:39:03
212,543,562
0
0
null
null
null
null
UTF-8
Python
false
false
325
py
class File_manager: def __init__(self, file_name): self.file_name = file_name def read_file(self): file = open(self.file_name) text = file.read() return text def update_file(self, text_data): file = open(self.file_name) file.write(text_data) file.clo...
[ "piotrek1009@gmail.com" ]
piotrek1009@gmail.com
7fc40fc99c78e47101169025e25ff3b9e7f056f3
0466f4381774f5e87c05f46cae79cdb1da95e7f0
/venv/Scripts/pip3-script.py
7c824e70f4999bafd189a8d5f2aa1d5a619ab130
[]
no_license
DuBaoXing123/git_demo
a56d6906e79471ee69e0abe97a89ab3ccf7106b1
d3995e085338d011286440a3d82b62770b9ce3c2
refs/heads/master
2022-12-03T01:42:22.187759
2020-08-21T09:55:09
2020-08-21T09:55:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
#!E:\soft_demo\django_learn\git_demo\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) ...
[ "m18235876047@163.com" ]
m18235876047@163.com
d903c99e7bd4a1faaf6618e547c4f50cd83c4216
8db2618e65efb303668967142e90f5520b287f2b
/src/python/src/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.py
0f0b0e3d5232a7014fc8be7e6861a516750d7485
[ "BSD-3-Clause" ]
permissive
huamichaelchen/grpc
c58ddf104f870bc105bf4675040ee72bd4d5fde5
fa507530590944683a0c672fcd4ea5a54977c903
refs/heads/master
2022-02-17T04:21:24.235158
2015-03-27T17:10:29
2015-03-27T17:10:29
33,004,650
0
0
NOASSERTION
2022-02-11T03:24:12
2015-03-27T19:13:49
C
UTF-8
Python
false
false
14,959
py
# Copyright 2015, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
[ "nathaniel@google.com" ]
nathaniel@google.com
d5e0fd0f6396a0baee88fd21b33d3362ff68e996
ece0d321e48f182832252b23db1df0c21b78f20c
/engine/2.80/scripts/addons/io_mesh_ply/export_ply.py
3a5ef0ae473daaa1a8153aff9d2c3a07022a3b19
[ "Unlicense", "GPL-3.0-only", "Font-exception-2.0", "GPL-3.0-or-later", "Apache-2.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain-disclaimer", "Bitstream-Vera", "LicenseRef-scancode-blender-2010", "LGPL-2.1-or-later", ...
permissive
byteinc/Phasor
47d4e48a52fa562dfa1a2dbe493f8ec9e94625b9
f7d23a489c2b4bcc3c1961ac955926484ff8b8d9
refs/heads/master
2022-10-25T17:05:01.585032
2019-03-16T19:24:22
2019-03-16T19:24:22
175,723,233
3
1
Unlicense
2022-10-21T07:02:37
2019-03-15T00:58:08
Python
UTF-8
Python
false
false
6,382
py
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
[ "admin@irradiate.net" ]
admin@irradiate.net
95c9d7660a00b352864d548655eb1355d7f31051
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/artificial/transf_Quantization/trend_MovingAverage/cycle_7/ar_/test_artificial_32_Quantization_MovingAverage_7__100.py
8305723ff3d368d8e41b3fd67b43c64a43216550
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jmabry/pyaf
797acdd585842474ff4ae1d9db5606877252d9b8
afbc15a851a2445a7824bf255af612dc429265af
refs/heads/master
2020-03-20T02:14:12.597970
2018-12-17T22:08:11
2018-12-17T22:08:11
137,104,552
0
0
BSD-3-Clause
2018-12-17T22:08:12
2018-06-12T17:15:43
Python
UTF-8
Python
false
false
276
py
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "MovingAverage", cycle_length = 7, transform = "Quantization", sigma = 0.0, exog_count = 100, ar_order = 0);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
af4a3ca0f095c64aec2861072f8df4e2f3cc359f
87a1e3066bfccadc8ce7695324708a91348d724d
/KataTDD/conjunto.py
a47c2c32642fc6e7814c1d564eed6576dc93330c
[]
no_license
rcallea/KataTDD
6ae9f45f0b6ab4ee918f5c54e4e22ee083df8eaf
dd6978775439363b6ae62e5a4f0e7b4fa0d7f62a
refs/heads/master
2022-12-04T08:44:35.721167
2020-08-20T23:42:24
2020-08-20T23:42:24
277,676,053
0
0
null
null
null
null
UTF-8
Python
false
false
247
py
class Conjunto: def __init__(self, conjunto): self.__conjunto=conjunto def promedio(self): if len(self.__conjunto) > 0: return sum(self.__conjunto) / len(self.__conjunto) else: return None
[ "cr.calle@uniandes.edu.co" ]
cr.calle@uniandes.edu.co
44694de6f6c4804e25e7793cec7ac706fe05abc3
a85d1d6a54c8c143d0d64f02b80c54aba78b3a84
/0928/함수3_지역,전역.py
ebd72e7617e8046ac1ce89eaaf84fadcb2d2ee5c
[]
no_license
w51w/python
30007548ba19076285954099125f42bc63a3d204
bc556a520ad0a9d99b5445fc92113c4afa83b4c2
refs/heads/master
2023-01-28T17:37:15.344106
2020-12-06T14:56:47
2020-12-06T15:42:40
308,628,844
0
0
null
null
null
null
UTF-8
Python
false
false
305
py
''' def my_func(param): param = "함수 안에서 생성" print(param) param ="함수 밖에서 생성" my_func(param) print(param) ''' def my_func(): global param param = '함수 안에서 변경' print(param) param='함수 밖에서 생성' print(param) my_func() print(param)
[ "w51w@naver.com" ]
w51w@naver.com
00a2666812ff6a1b59fbd5d9775be83fddc6d86e
1bb422172b8775b638957a0360785c1a03e76469
/FireDevs/wsgi.py
131bc04795420aea9621cf9ccebc2d27c8619f60
[]
no_license
hectorarem/UniTest
5f5fb502d3b23e883b514f4cab914fb3bf0a5d70
ef7063ba9c57256414cf646f68f9d1b6e22ae88c
refs/heads/main
2023-07-15T15:31:04.480593
2021-08-26T07:28:54
2021-08-26T07:28:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
""" WSGI config for FireDevs project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETT...
[ "30632801+hectorarem@users.noreply.github.com" ]
30632801+hectorarem@users.noreply.github.com
378d547a76b10d0503d9da30eb4190b856416529
ffd70ccca7105fce363b14a2c60bc8acc227aa07
/ros/src/rosserial_python/nodes/serial_node.py
1d466b6f0d303b8d7ab538dae35958b43aedad89
[ "MIT" ]
permissive
mnbf9rca/simple_robot_arm_with_ros
eaa1658a788b36d685328b91a63a5198e4fcce98
2be64c760831bf51428eec6b7fd290001d6600fb
refs/heads/master
2021-07-14T13:04:41.674141
2019-10-15T20:56:58
2019-10-15T20:56:58
213,063,834
5
2
MIT
2021-07-07T09:56:48
2019-10-05T20:03:52
C++
UTF-8
Python
false
false
3,972
py
#!/usr/bin/env python ##################################################################### # Software License Agreement (BSD License) # # Copyright (c) 2011, Willow Garage, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that th...
[ "robert.aleck@cynexia.com" ]
robert.aleck@cynexia.com
f5c302c8fab9cfc3911bce34710d1eb2301119cf
ba9d15e50b88284868c04f516d240491bb2cf581
/contact/views.py
fbc3d864fadba020fb10009b863c272705e3b6eb
[]
no_license
suhrobkamolov/mysite
14aadf5dea041d33ced29fba106e2b8e174eb8ed
55f105a95fbef52926ce77c8f7ecf32c4c0ba223
refs/heads/master
2021-05-11T20:34:52.559829
2018-02-10T16:46:15
2018-02-10T16:46:15
117,432,838
0
0
null
null
null
null
UTF-8
Python
false
false
1,060
py
from django.shortcuts import render from django.conf import settings from django.core.mail import send_mail from .forms import contactForm from products.models import Category, Product def contact(request): categories = Category.objects.all() products = Product.objects.all() title = 'Feel free to contact ...
[ "samiallohjon@gmail.com" ]
samiallohjon@gmail.com
b2df34bae4ca7b6d93a0dabd395ff329c31172d0
27b6ace01668745a4daeba3acf8ff93a5c68fd71
/raiting/src/algorithm/coodinate_descent.py
8bf32ff6c6928036ac22f1142a8ddbbc5335f04a
[]
no_license
o-ham5/fuk-food
42216a8d8ba4cc3d4896c6352dde5174c9aa33d5
daec364f4ea8f9b0a110369eb1b2606d4cc8c584
refs/heads/master
2022-03-27T09:20:06.355461
2019-12-27T13:07:23
2019-12-27T13:07:23
206,522,840
0
0
null
null
null
null
UTF-8
Python
false
false
836
py
from numpy import mean from tqdm import tqdm def coodinate_descent(users, rests): N_ROOP = 10 for roop in tqdm(range(N_ROOP)): for user in users: # update bias user.bias = mean( [eval_score - rest.esti_eval for rest, eval_score in user.evals.items()] ...
[ "n-tateiwa@math.kyushu-u.ac.jp" ]
n-tateiwa@math.kyushu-u.ac.jp
be9a4323d90dc5b6aaa9152fc4175685fbdcac82
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/224/usersdata/355/112710/submittedfiles/gravitacional.py
ccbd7077d25107bafd633103a3d44cf26cf3d352
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
1,104
py
# -*- coding: utf-8 -*- import numpy as np import funcoes #ENTRADA dimensao = int(input('Digite a dimensao das matrizes: ')) matrizA = input('Digite a Matriz A como uma única linha: ') matrizD = input('Digite a Matriz D como uma única linha: ') alfa = int(input('Digite o valor de alfa: ')) #PREPARANDO A ENTRADA T = n...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
5da9a91cdf3b9f0a9ad1c2ea3a9fb2259797f969
a5cd49415fd916afe20abc4662cf1096879ec21a
/fabulous/grapefruit.py
02e3e9e8845dfbc8f9f147ec70272a656ec25b2d
[ "Apache-2.0" ]
permissive
Jacob-Mowat/fabulous
112b2b737b86ce1abd8fe28c682c5e8ea7314744
d30e12181b2aae09e442641db8e3f46236fda42b
refs/heads/master
2020-04-08T05:17:16.696731
2018-11-25T17:23:08
2018-11-25T17:23:08
159,054,542
1
0
Apache-2.0
2018-11-25T17:01:10
2018-11-25T17:01:10
null
UTF-8
Python
false
false
55,618
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2016 The Fabulous Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/L...
[ "jtunney@gmail.com" ]
jtunney@gmail.com
ef17d2a575909e129128b97bcad960ab6863d872
060c409f2b6282e1bf08a2101eb09be5f0927c4e
/pp_i2cdevices.py
606da375872eb25410654535137ec763b8d7771a
[ "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-mit-taylor-variant" ]
permissive
KenT2/pipresents-gapless
cf850951e1c5911524c8e984d72df1621867c556
31a347bb8b45898a3fe08b1daf765e31d47b7a87
refs/heads/master
2022-01-30T06:41:41.601213
2022-01-08T17:22:24
2022-01-08T17:22:24
22,849,661
219
47
NOASSERTION
2021-09-20T09:09:31
2014-08-11T18:23:30
Python
UTF-8
Python
false
false
8,830
py
#!/usr/bin/env python # Copyright (c) 2016 Adafruit Industries # Author: Tony DiCola # # 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 ri...
[ "ken@jksthompson.plus.com" ]
ken@jksthompson.plus.com
8e4f927f238c2b172b89d0f8823be883e2c8d950
73aad38ffeb5bf9df4253daba8461f9d1a5fb6c4
/phone/website/blog/models.py
3ac00c4211a20b2b5e1378b67495bfe6bd347616
[]
no_license
doubimike/doubimike.github.io
35342574c03fd9c1d8399671527c43879b0f9b93
57d7ad56f879ed54df42f6e1c560b71c3ea77521
refs/heads/master
2016-08-11T10:24:48.166433
2016-05-03T08:06:28
2016-05-03T08:06:28
52,653,365
0
0
null
null
null
null
UTF-8
Python
false
false
1,098
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.db import models from django.utils.encoding import python_2_unicode_compatible from ckeditor.fields import RichTextField # Create your models here. class Tag(models.Model): tag = models.CharField(max_length=20) def __unicode__(self): return self.tag ...
[ "doubimike@qq.conm" ]
doubimike@qq.conm
a7efff866693b09addf9a6ea392c395f2d9f16d7
a7ef81e5f847979f0afb7ee57abb0401c2770f65
/lab3/object_equality/point.py
a4016c3e65ce49357dd2b3d2730f51ac48bd8191
[]
no_license
brianphan90/CPE101
46a91200162a7afa9ba2797ed0d875b4299a7f38
282bf01d20ccad2e4e3ab1d7cbf20ef2c32ce956
refs/heads/master
2020-04-08T21:35:08.465722
2018-11-30T01:36:40
2018-11-30T01:36:40
159,747,910
0
0
null
null
null
null
UTF-8
Python
false
false
217
py
import utility class Point: def __init__(self, x, y): self.x = x self.y = y def __eq__(self,other): return utility.epsilon_equal(self.x, other.x) and utility.epsilon_equal(self.y, other.y)
[ "brianphan90@Brians-MacBook-Pro.local" ]
brianphan90@Brians-MacBook-Pro.local
6640af5a0efbab6fa7fa3aa91719a0e4ae516159
8f73f9b067533044a0e9146f9db5b1900c831b0c
/opencv/segmentit.py
57680ed33bf83f9f980823a19379d77e78c6bc39
[]
no_license
sinegami301194/Intoduction-to-ML
61cd02ed862bbf500c8ec8daf3ece49393016577
a22a7c31751fa2410895e683115d8489785ca180
refs/heads/master
2023-08-31T06:07:59.628184
2023-08-30T07:14:46
2023-08-30T07:14:46
184,025,490
2
0
null
null
null
null
UTF-8
Python
false
false
153
py
import cv2 import numpy as np img = cv2.imread('out1.png') cv2.imshow('img', 64 * img) cv2.waitKey(0) cv2.destroyAllWindows() np.unique(img.flatten())
[ "noreply@github.com" ]
sinegami301194.noreply@github.com
f4ee1250a5dd16ccc5577e2a9a5f2b910085514f
f25892635344b16a6ee723d2fcca01a9bb6d0198
/env/Lib/site-packages/tidypython/separate.py
c61f655dc6ef40eeafffda21884dfdcf70bf4d5b
[]
no_license
AhlemOuldAli/Django_Project
5502f279148d190870d15868fc66081d33a11c06
fcd4563457c58a61af5b94621782db8c269849ad
refs/heads/main
2023-02-14T15:18:38.706740
2021-01-15T14:15:53
2021-01-15T14:15:53
329,926,054
0
0
null
null
null
null
UTF-8
Python
false
false
1,954
py
import dplython from dplython import Verb, DplyFrame, X, select, mutate, head from readpy import * import re class separate(Verb): __name__ = "separate" def __call__(self, df): if len(self.args) >= 2: if not isinstance(self.args[0], dplython.later.Later): raise ValueErro...
[ "32915388+AhlemOuldAli@users.noreply.github.com" ]
32915388+AhlemOuldAli@users.noreply.github.com
0b9bf7fe68d5f84882bfda40f710ce848ca1d067
5e435be8c265662034e7fe589dd3b7998ec492f9
/application/__init__.py
ca79fb723c9437453aa15842beccd3facaf22ab3
[]
no_license
Aiixalex/Rate-My-Music-and-Movie
45d4a5dd70d19ac3a2b7ad380023f68c21201f02
535017da78c73874c17a70b2f50ba35cd21802cf
refs/heads/master
2023-04-03T19:36:51.716503
2021-04-18T01:53:31
2021-04-18T01:53:31
359,017,702
0
0
null
null
null
null
UTF-8
Python
false
false
424
py
from flask import Flask from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() def create_app(): """Construct the core application.""" app = Flask(__name__, instance_relative_config=False) app.config.from_object('config.Config') db.init_app(app) with app.app_context(): from . import ...
[ "wyl2000@zju.edu.cn" ]
wyl2000@zju.edu.cn
31bafc31d223156323b0fc56fb766615260379ae
efea83db16445d44d30126684461ce55f1383233
/Reajustar.py
34115e9ec8af12c4256ed6644ce36d39c497e4c5
[]
no_license
cagiraldoa/Analisis-Numerico
c9857a306851fde37dcea75db83b68ac4ac664fd
a5f95f702b66f1996723f3d3a19cff1346cee241
refs/heads/master
2023-05-10T17:20:14.749461
2021-06-03T15:59:43
2021-06-03T15:59:43
373,371,997
0
0
null
null
null
null
UTF-8
Python
false
false
2,114
py
''' Para instalar la libreria cv2 debe ejecutar: >> pip install opencv-python >> pip install opencv-contrib-python más información en OpenCV https://pypi.org/project/opencv-python/ ''' import os import cv2 from os import scandir, getcwd #Función que realiza la segmentación de rostros def detectarRostros(imagenAnalizar...
[ "cagiraldoa@eafit.edu.co" ]
cagiraldoa@eafit.edu.co
94b47a2667c720678f3dcf9bef9f7c871330e82c
055b1a127c865d655d177e93324095db9ab199aa
/Colored_text.py
ddd8f58fe8786c2559aa865278c82b0b902905d8
[]
no_license
devkansara1310/Python1
d5c60f54288bd8f736c7fd0b36fb4d967dd0d79c
c87a51b3ea8d4040a8add37010131f0c075fd958
refs/heads/main
2023-04-22T01:00:08.280725
2021-05-09T06:32:08
2021-05-09T06:32:08
364,584,361
0
0
null
null
null
null
UTF-8
Python
false
false
227
py
#Print Colored text import colorama from colorama import Fore, Back, Style colorama.init(autoreset=True) print(Fore.BLUE+Back.YELLOW+"Hii DevOps"+Fore.YEllOW+Back.BLUE+"How are you all !") print(Back.CYAN+"I am Dev Kansara")
[ "noreply@github.com" ]
devkansara1310.noreply@github.com
fab6841e0e3dcb2fcac4fa0e3b58f79d2ce557bd
3e84e3dcb554a759ff315dd74d0f26a975e9390c
/hw.py
35a4b57ca4ed2551ac1dcb8b4cb3b735ef9e7255
[]
no_license
krunalamodi/Python
14b5baeff8a5607e0178c81e3a3acf40c7f37774
bf926d01c06c08ef36c331e2139e100b5f747270
refs/heads/master
2021-01-20T05:31:40.388990
2015-02-15T22:03:16
2015-02-15T22:03:16
30,666,836
0
0
null
null
null
null
UTF-8
Python
false
false
99
py
words = ['Hello', 'World', 'by', 'Krunal'] for w in words: print(w + " ") print("Exiting..Bye :)")
[ "krunalamodi@gmail.com" ]
krunalamodi@gmail.com
7d3cd4adc821d452c460e9ee1aff558815f2997a
998009777670962fc9ee4711b8a40e1d76dea82d
/backend_web/backend/backend/urls.py
3b65f673719f00cfd6f29c843e58814cc47bf7a4
[]
no_license
megamoo456/Hiring
005e4e383ed53b65476995147a00c43a7c8acec3
6014b06cc0c2c4df54c0252ca629041c7f56917e
refs/heads/master
2023-08-25T06:15:15.271942
2021-10-24T19:47:22
2021-10-24T19:47:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,117
py
"""backend URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
[ "48990417+megamoo456@users.noreply.github.com" ]
48990417+megamoo456@users.noreply.github.com
fb937dd6c22863636b64205029b4235d5f5bd43e
493d6cb14f0d8120f82e8112148c2912ec64573d
/index/migrations/0002_newscenter_create_by.py
5093a493d344dbe49d686e94a7b62e8e33783fe2
[]
no_license
Lython7/SecureWorld
4e23df10ba60f9459a7a20576c75d297a8bed131
d00ba59020662773ebe10baf7d859805ccb722d9
refs/heads/master
2020-04-06T21:30:22.328868
2019-01-02T09:51:50
2019-01-02T09:51:50
157,805,470
0
0
null
null
null
null
UTF-8
Python
false
false
629
py
# Generated by Django 2.0.2 on 2018-11-20 15:57 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('index', '0001_initial'), migrations.swappable_dependency(settin...
[ "15210370876@163.com" ]
15210370876@163.com
ef7751434fc945c0d0488c27744dc82ca3f34545
b0c4602813d150e73d47eb0ebc16c2bbd790eac1
/disk_class.py
f378464fbc3fc42133bda3953b3c3f01b178336d
[]
no_license
4rfel/airhockey2
2d773248027a69d0891e102a0f5423d3c53f0c9e
7ed25475c14615fe69ddaba2b736cd5c618afc0b
refs/heads/master
2020-08-08T09:13:24.715704
2019-10-09T22:22:29
2019-10-09T22:22:29
213,802,612
0
0
null
null
null
null
UTF-8
Python
false
false
1,327
py
from object_class import Basic_object from random import randint from math import radians, cos, sin, atan, pi class Disk(Basic_object): def __init__(self, sprite, center, size, min_speed, max_speed, table_width, table_height): super().__init__(sprite, center, size) self.table_width = table_width ...
[ "rafael_1999_@hotmail.com.br" ]
rafael_1999_@hotmail.com.br
fad1602c24b8f61ae85f7f3ae21ceff9518dcfca
3f227167cc1c596644facb5aa41db125089f2a99
/egamegearstore/egamegearstore/settings/base.py
260d19e410fa1374d967c8710b72ae02d65d5907
[]
no_license
LordHung/eGameGearStore
202eac5ade2c0186c8d54ebe89029f4c849a56be
de209c97d5caf5ef3d3dce210b6e31806ab6a56f
refs/heads/master
2021-06-16T07:51:35.929624
2017-05-09T17:56:53
2017-05-09T17:56:53
79,032,386
0
0
null
null
null
null
UTF-8
Python
false
false
3,874
py
""" Django settings for eggs project. Generated by 'django-admin startproject' using Django 1.10. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ # Build paths ...
[ "hunguit14@gmail.com" ]
hunguit14@gmail.com
562dcd6cecf8887e84f0a1c2a7f236459a45cdd2
8bbeb7b5721a9dbf40caa47a96e6961ceabb0128
/python/21.Merge Two Sorted Lists(合并两个有序链表).py
1cb11ad7f4b2021bb47b849789f00c8e13b2de71
[ "MIT" ]
permissive
lishulongVI/leetcode
bb5b75642f69dfaec0c2ee3e06369c715125b1ba
6731e128be0fd3c0bdfe885c1a409ac54b929597
refs/heads/master
2020-03-23T22:17:40.335970
2018-07-23T14:46:06
2018-07-23T14:46:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,200
py
""" <p>Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.</p> <p><b>Example:</b> <pre> <b>Input:</b> 1->2->4, 1->3->4 <b>Output:</b> 1->1->2->3->4->4 </pre> </p><p>将两个有序链表合并为一个新的有序链表并返回。新链表是通过拼接给定的两个链表的所有节点组成的。&nbsp;</p> <p><st...
[ "lishulong@wecash.net" ]
lishulong@wecash.net
1242c94937d33b5991ab03cd76dd93e9ba134421
4f0337ad341885bac6d45049d2b9f91e59f1bf76
/statsSend/urbanCodeDeploy/urbanCodeDeployStatisticsSender.py
571fdeb35ff1f2a829ea28076213b306e36308fb
[ "MIT" ]
permissive
luigiberrettini/build-deploy-stats
c81e66613986b49b0705840da1e6f1dda306b67c
52a0bf5aeb8d2f8ef62e4e836eb0b9874dea500d
refs/heads/master
2020-12-02T22:11:35.280423
2017-08-29T15:58:20
2017-08-29T15:58:20
96,093,457
2
0
null
null
null
null
UTF-8
Python
false
false
2,487
py
#!/usr/bin/env python3 from datetime import datetime, timedelta, timezone from dateutil import parser from statsSend.session import Session from statsSend.utils import print_exception from statsSend.urlBuilder import UrlBuilder from statsSend.urbanCodeDeploy.urbanCodeDeployTag import UrbanCodeDeployTag class UrbanCo...
[ "luigi.berrettini@gmail.com" ]
luigi.berrettini@gmail.com
6c00f1537b22bed43527458a8b0ac2e1db7b9ad6
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/qwDPeZeufrHo2ejAY_16.py
588f2296543e76694c6c64028d65f0e7cae3d94f
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
706
py
def eval_algebra(eq): li = eq.split(' ') eq_pos, var_pos = li.index('='), li.index('x') if var_pos == 0 and eq_pos == 1: return eval(''.join(li[2:])) n = len(eq) if li[-1] == 'x' and li[-2] == '=': return eval(''.join(li[:eq_pos])) if var_pos > eq_pos: li = li[eq_pos + 1...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
f904b353356eb74b16e5c7619819e12f667ff57c
4ad7e9777b8f08595a524c7fe9f6e1900d722c6a
/Code/Website/backend/ml-tools/general.py
f25cb62e0daf68c75e8fe703553d100272c9f67d
[]
no_license
FIU-SCIS-Senior-Projects/Automated-Document-Summarization-1.0
abf781d4e4285f112cd8cffb80ff6a56c5879ba2
935e13a8394a464e7a143e5868ee4f6099cf16a0
refs/heads/master
2021-01-21T11:00:16.521174
2017-07-28T18:45:37
2017-07-28T18:45:37
91,716,811
1
1
null
null
null
null
UTF-8
Python
false
false
2,019
py
""" This file contains the abstract classes that represent general concept used throughout machine learning algorithms. Any of the ML tools developed by the team assume that the objects passed to them inherit from these abstract classes, e.g. when passing a list of models to the cross-validation tool, the methods assum...
[ "amb110395@gmail.com" ]
amb110395@gmail.com
cdb1f89f8d0dca3dc887c31676c2a38ba7718862
220b3d426d47b652ef86e0002e796d54cef25e75
/scratch/PlayerFile.py
66848386f688e78c49eed29489e87403a7db150f
[ "Apache-2.0" ]
permissive
HenryLiangzy/ITTF-Database-System
23f390fefca65f1c5dc409f4091948f367bf5e19
07044000dd1d13354239b7e46f4ee903baf01132
refs/heads/master
2022-12-18T12:19:23.344562
2020-09-22T06:54:28
2020-09-22T06:54:28
297,559,698
0
1
null
null
null
null
UTF-8
Python
false
false
3,868
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # last modified 2018/10/12 13:23 # By Henry Leung import requests import re import time import random from bs4 import BeautifulSoup import database import analysis def get_list(): connect, cursor = database.open_database() cursor.execute("SELECT playerId FROM pl...
[ "henryliangzy@gmail.com" ]
henryliangzy@gmail.com
77a5295b2fc73ab18482d48e8073765f0b39e1ac
2063973ec9813a6bf0515fde527ec9f2d783dc49
/triggered_on_hotkey.py
b7757537ca09bb6a251046ec4d38be1f6c059115
[]
no_license
jonfleming/chatterbot_chatbot
80cdcb66851eb6632789391f57091fc7a9e73ef2
a29eb10a3b8759bad6636cc2374dd61fda60ea47
refs/heads/main
2022-12-23T11:39:09.882091
2020-10-05T04:40:19
2020-10-05T04:40:19
301,290,767
0
0
null
null
null
null
UTF-8
Python
false
false
189
py
# Triggered on hotkey press import keyboard def edit(): print('ctrl+e was pressed') keyboard.add_hotkey('ctrl + e', edit) print('here. waiing for input') text = input() print(text)
[ "jon.fleming@mcg.com" ]
jon.fleming@mcg.com
9ebfc9fc70f6d8128490b9ca6e7284f958a337ac
6635b3dd3a1aca5d317ea4510c95ad67a6923f74
/task2/ToDoApp/todolist/forms.py
e2d1009a983be6ed8e16cf95e0e7e78d994af54e
[]
no_license
tna0y/Industrial-Programming
781a3a07346eb4026742bc38a3bd867cb0a35cbe
a55fc67e34b1dd8de453612e580bf767e18cd10d
refs/heads/master
2021-04-28T02:30:32.811175
2018-02-26T04:43:44
2018-02-26T04:43:44
122,117,270
0
0
null
null
null
null
UTF-8
Python
false
false
434
py
from django import forms from django.contrib.auth.forms import User class LoginForm(forms.Form): username = forms.CharField(max_length=150) password = forms.CharField(widget=forms.PasswordInput()) class RegisterForm(forms.Form): username = forms.CharField(max_length=150) password = forms.CharField(wi...
[ "mk@mkapps.org" ]
mk@mkapps.org
6c63813d8a06d94889980d12e7660239b36001ef
68f1614c00f0a80df9483a55828f70b6927b846f
/config.py
6fa38ee0acc123078cde7875bd2585a0b7b14d98
[]
no_license
alexbaryzhikov/pathfinding
7fafdd443fe9f056ba4f42a11a0b868e599c8e52
9df6744b13889b896b81d1607a4a38585a062eb9
refs/heads/master
2022-05-03T18:34:17.895473
2022-03-11T18:15:57
2022-03-11T18:15:57
99,922,641
4
0
null
null
null
null
UTF-8
Python
false
false
943
py
from pygame.locals import * """ Screen """ SCREEN_W = 1920 SCREEN_H = 1080 SCREEN_MODE = 0 # SCREEN_W = 2560 # SCREEN_H = 1440 # SCREEN_MODE = 0 | FULLSCREEN #| DOUBLEBUF | HWSURFACE | RESIZABLE | NOFRAME MAX_FPS = 120 FPS_BUF_SIZE = 100 """ Colors """ BG_COLOR = (12, 15, 22) EDGE_COLOR = (80, 114, 27) ...
[ "aleksiarts@gmail.com" ]
aleksiarts@gmail.com
e646239f9830abc70bb1c11a6bb57d4703c6c2e9
264451eec9207bc708c684f27817c738da4dccd8
/TablicaCrawler.py
9db679daa0dac5a43f1eb913a5bfbdf6ad74463f
[]
no_license
ibezuglyi/python-house-finder
cac60a8acd77e70f1fed982d2d086376784a288a
bcc971f74ab85fdabb554a038c8cdf17ce001a26
refs/heads/master
2021-01-19T05:54:05.061563
2014-03-25T21:48:40
2014-03-25T21:48:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,319
py
import urllib2 from bs4 import BeautifulSoup from HouseConverter import HouseConverter from Offer import Offer from Page import Page from TimeConverter import TimeConverter __author__ = 'dit' class TablicaCrawler(): def init_crawler(self, src): if src is not None: self.source = src se...
[ "ievgen.bezuglyi@gmail.com" ]
ievgen.bezuglyi@gmail.com
6ee52dcd011ebc6a85b9d781ea841d799596e024
814d1aa3b0479fabc3b50f91873c212626b2de53
/ttt/ttt/urls.py
ba9004a4a121fdab9e9746d1c0bbb2a66a553d64
[]
no_license
y0ngma/facedCRM
cd187f2aa553314c2f50ba524aae0f7deec1c60f
034c5e6a669c618232b1c2b89fc6a4dcc50b45be
refs/heads/master
2022-11-11T03:58:50.966316
2020-07-06T05:26:04
2020-07-06T05:26:04
254,060,650
0
1
null
null
null
null
UTF-8
Python
false
false
991
py
"""ttt URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-b...
[ "takeit2sy@pusan.ac.kr" ]
takeit2sy@pusan.ac.kr
a6b89e5488d0dd85e8efd1c3e9dee11c6f265fd7
125a0c03fef9b9eda01cdd10df95063d0bb1b328
/test/longueur string.py
4662d433b55e7df985b714f7d49c5f17b2759ad2
[]
no_license
EdouardPascal/projet
8548bd0a96a59d7635827938ce3a45e91c8375e6
44641e17ac6eeb0bf57b5bd005941b685aff4ad0
refs/heads/master
2020-05-16T22:31:19.405807
2014-07-04T20:47:46
2014-07-04T20:47:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
203
py
import os def count_string(mot): longueur=0 mot = mot.split(" ") print mot for i in mot: longueur = longueur + len(i) return longueur print (count_string('Michael le grand')) os.system('pause')
[ "pascal1999" ]
pascal1999
376c79f3633d8ad0e88d967a07c9640eb17239d3
65306b41168a5afa6fc80904cc0fbf737939a01a
/scale/job/migrations/0014_auto_20160317_1208.py
a11aa3e4e2985f151177854a0252b685d19e38b8
[ "LicenseRef-scancode-free-unknown", "Apache-2.0", "LicenseRef-scancode-public-domain" ]
permissive
kfconsultant/scale
9e5df45cd36211d1bc5e946cf499a4584a2d71de
28618aee07ceed9e4a6eb7b8d0e6f05b31d8fd6b
refs/heads/master
2020-12-07T00:04:37.737556
2020-01-06T12:57:03
2020-01-06T12:57:03
232,587,229
0
0
Apache-2.0
2020-01-08T14:53:36
2020-01-08T14:53:35
null
UTF-8
Python
false
false
1,806
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('job', '0013_auto_20160316_1805'), ] operations = [ migrations.AddField( model_n...
[ "derick.faller.ctr@us.af.mil" ]
derick.faller.ctr@us.af.mil
7fb30f002d1d98fc1fe122d7f9e9ab5e0a089436
cc853480e60add95fc65d2a4f2e8aca539ad85f7
/pollster/models/inline_response_200_5.py
a92c676001369c071c8f4ca8bbd97a776309f5cf
[ "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
ominari-insights/python-pollster
05b6d258b3d67f9579fd5ef5db63dbc64e259316
276de8d66a92577b1143fd92a70cff9c35a1dfcf
refs/heads/master
2020-07-30T00:40:28.323248
2017-01-23T18:40:04
2017-01-23T18:40:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,861
py
# coding: utf-8 from pprint import pformat from six import iteritems import re class InlineResponse2005(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self, end_date=None, partisan_affiliation=None, sample_su...
[ "adam@adamhooper.com" ]
adam@adamhooper.com
ff87308e3bf37a01ba3b6bb7b641ca1822688169
ba6ba4024bd7ca1e746ac0a88b8a51965a868e17
/2020/20201201_AoC/puzzle_1_soloution.py
8b53a1efa18257e1bb04a029d0170e7ce397cd38
[]
no_license
mmcas/AdventOfCode
457d79ed49af2b25e8645b1a9e94ce41293e7256
3e9dc1d329c5a169504ead612423dc80e669946e
refs/heads/master
2021-07-10T03:31:34.779387
2020-12-09T19:05:11
2020-12-09T19:05:11
225,156,226
0
0
null
null
null
null
UTF-8
Python
false
false
715
py
from puzzle_1_input import input numbers_list = input() def find_two_nums(num_list): for num in num_list: num_list.remove(num) for other_num in num_list: if other_num + num == 2020: return(other_num * num) else: next def find_three_nums(num...
[ "madelene.casselbrant@gmail.com" ]
madelene.casselbrant@gmail.com
6df22eb54bd84e1e3cf3937cfe99a1cf7fd07650
26d08ac445894e2c8d8050e5fb10a3b07c307ef8
/shop/migrations/0001_initial.py
a82c59a14b79486e5efcac229ec5118c5975809f
[]
no_license
JamesJohnson11/OnlineShop
5b9b9627c261fd54bad93f0e851476a555028896
5cc7370c432d5fa365c91a7647f0ed3cf52722cb
refs/heads/master
2023-01-30T23:29:43.275727
2020-12-14T20:13:50
2020-12-14T20:13:50
321,127,623
0
0
null
null
null
null
UTF-8
Python
false
false
1,841
py
# Generated by Django 3.1.4 on 2020-12-13 18:32 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Category', fields=[ ...
[ "bdotmgmt@gmail.com" ]
bdotmgmt@gmail.com
cf8d39c26607266fc7a38125e1c267b4e0ece863
99206e2d7bd338e7760be8161c03bf58badc600b
/sumKint.py
8f180efe1f4465a360dd13ad30e134e25a6aa33b
[]
no_license
Arun0033/Guvi
524987307f1b58229293c81f82ab8e9dc9949743
f49d4b2892bcf6b17ab4bc7acd761300ec9d9043
refs/heads/master
2020-05-25T23:00:35.506103
2019-07-21T04:27:32
2019-07-21T04:27:32
188,026,095
0
0
null
null
null
null
UTF-8
Python
false
false
124
py
p=input() p=p.split() N=int(p[0]) K=int(p[1]) m=input() m=m.split() sum=0 for i in range(K): sum=sum+int(m[i]) print(sum)
[ "noreply@github.com" ]
Arun0033.noreply@github.com
6bca958de029f1928a1d3778fea7af7a16fa6413
d31cd04c825b259969f4c3e34a58f3d54daa88e9
/o2o/GBDT/minium.py
b5ca232e5f5d18aef715b513f4d137b7f980b1cf
[]
no_license
rogeroyer/dataCastle
db1870f98e4fbf868aecdb40c256736d66ba649d
0aa7bb97c5555fb0635d218c3ece2cef79753cd5
refs/heads/master
2021-06-05T04:52:10.304610
2019-12-01T06:18:30
2019-12-01T06:18:30
105,973,617
3
1
null
null
null
null
UTF-8
Python
false
false
39,931
py
#coding=utf-8 import pandas as pd import matplotlib.pyplot as plt import numpy as np from datetime import datetime from sklearn.ensemble import RandomForestRegressor from sklearn.ensemble import GradientBoostingClassifier # read_data = pd.read_csv(r'D:\aliyun\ccf_offline_stage1_train.csv', header=None) # read_data.co...
[ "noreply@github.com" ]
rogeroyer.noreply@github.com
4dba7e90a41685b62780a43bab3af49234534501
d9e8a2464e52cf74910dfa8bf856f9bbf9cac0be
/squares_and_cardinal_points.py
41dcdf9559ea407b371bda0d3bb47f6314f74a59
[]
no_license
renatocrobledo/probable-octo-spork
c791a16a73d0ad012829ef4f2800557a059edacd
958357c75a6d0c300a3f606b02b2f80dc7d47d26
refs/heads/master
2022-04-30T17:21:03.430985
2022-03-07T15:58:56
2022-03-07T15:58:56
212,404,400
0
0
null
null
null
null
UTF-8
Python
false
false
1,940
py
''' Search all possible sqares/rectangles that can be formed given a list of cardinals points (x, y) So for example suppose we receive a list of points x, y : [(1,1),(1,3),(3,1),(3,3)] which in a plot will look something like this: Y 3 | * * 2 | 1 | * * --------- X 1 2 3 4 Then there is one square ...
[ "rcacho@legacy.com" ]
rcacho@legacy.com
dc41b02abc8a0d0f3c36e7d4af3f0e908b4a4961
d105b1f9122c4b9e9d935bc29cdfb202d6f30d4c
/prac_01/shop_caculator.py
7eafc6695cf260869597ba31df7624bc52f6e422
[]
no_license
lechang96/CP-1404
b725dc023210e1da0e96163e2770534517afecc1
6788d827dc47ed894b4058ea972ad16aa98c71bd
refs/heads/master
2021-05-21T14:53:25.404783
2020-05-12T10:43:22
2020-05-12T10:43:22
252,687,558
0
0
null
null
null
null
UTF-8
Python
false
false
450
py
total = 0 number = int(input("Enter number of items:")) while number <= 0: print("Invalid number of items!") number = int(input("Enter number of items:")) if number > 0: for i in range(number): price = int(input("Enter price of item:")) total += price if total > 100: total *= 0...
[ "le.chang@my.jcu.edu.au" ]
le.chang@my.jcu.edu.au
551b075914b2467f849db66f60f281c35f6c3152
42351d45ee8acab06f9a988bc00aad1910fca9b6
/examples/addons/build_sierpinski_pyramid.py
fffea68c5712767320d48dffd3be2a86b737e3e7
[ "MIT" ]
permissive
snegovick/ezdxf
0004f3143d75d7709721b83f637efd0db959fa95
1070c67779f75c707c8817b2cc2eca87154fdab5
refs/heads/master
2020-12-27T11:47:47.173327
2020-02-02T10:46:38
2020-02-02T10:46:38
237,892,288
0
0
NOASSERTION
2020-02-03T05:31:47
2020-02-03T05:31:46
null
UTF-8
Python
false
false
892
py
# Copyright (c) 2018-2019 Manfred Moitzi # License: MIT License import ezdxf from ezdxf.addons import SierpinskyPyramid def write(filename, pyramids, merge=False): doc = ezdxf.new('R2000') pyramids.render(doc.modelspace(), merge=merge) doc.saveas(filename) def main(filename, level, sides=3, merge=False)...
[ "mozman@gmx.at" ]
mozman@gmx.at
83739e01415138ecdaf4a4640ffa97bda66c39fa
c628d06d413bd0c711f70c5379af131da59c7384
/Novice/02-04/Latihan/1.py
bd6c79ab90144cfacf7b6a8e041212db326cf36d
[]
no_license
nitarosiana/praxis-academy
2eb969efb36ef3930d1a741f0d437131f5cb2fb0
c31f05ef6cd0bdce96922d2ae0bd2f31c0732aeb
refs/heads/master
2021-01-05T11:38:12.416333
2020-12-17T02:31:12
2020-12-17T02:31:12
241,009,796
0
0
null
2020-03-23T01:42:51
2020-02-17T03:16:06
Python
UTF-8
Python
false
false
1,172
py
from injector import Module, singleton, Injector, provider class Api: def fetch_remote_data(self): print('Api called') return 42 class BusinessLogic: def __init__(self, api: Api): self.api = api def do_stuff(self): api_result = self.api.fetch_remote_data() print(f'...
[ "nita1700016085@webmail.uad.ac.id" ]
nita1700016085@webmail.uad.ac.id
69f606adda92d2023b27da70bcaf2c2748758335
8e4ce714e93d3c561f52abff7499d22188bed9ac
/src/data.py
deeb7519d44a69d2dc508c75472fb6504f6156b2
[]
no_license
drothler/ethan
fe2cc8ef85ea27a7df3b9154e77af5c983772330
764f3a3d700c5cecec382c86faf75b7728615843
refs/heads/main
2023-07-11T02:41:56.815369
2021-07-25T03:35:59
2021-07-25T03:35:59
389,252,354
0
0
null
null
null
null
UTF-8
Python
false
false
5,814
py
import xmltodict import sys import numpy as np # @DavidDrothler # Loading long-term social graph data from xml file # Storing xml data in numpy array with restriction to count: lower number for testing purposes, else no specification # path only used for xml extraction # Potentially getting dict/array as direct input...
[ "68952766+drothler@users.noreply.github.com" ]
68952766+drothler@users.noreply.github.com
e77c93eba5a0b76cd84ed400b15546ca5fc6c4f8
b66bd1f0f85d7fdc64432a577979646f675d0f56
/utils/smiles_data_utils.py
f8faf96c4de2163433e07590bba3db6c83b464dc
[]
no_license
wenhao-gao/MolVAE
65dfa016707df80f7e8237a3d4c9609d1b4e17a0
98412968764820a83776e1ef82ba121010536a6f
refs/heads/main
2023-03-19T22:14:47.957470
2021-03-16T00:17:56
2021-03-16T00:17:56
346,457,099
2
0
null
null
null
null
UTF-8
Python
false
false
8,788
py
import random from multiprocessing import Pool from collections import UserList, defaultdict import numpy as np import pandas as pd from matplotlib import pyplot as plt import torch from rdkit import rdBase from rdkit import Chem # https://pytorch.org/docs/stable/data.html#torch.utils.data.DataLoader def set_torch_se...
[ "gaowh19@gmail.com" ]
gaowh19@gmail.com
8e866dcd52b4441cc9da099cdb036fcb062fdb20
7b270cf5f9d0a3e26b5afd758563c6cff73a5248
/comportamentais/interpreter/operacoes/operacoes/simples/multiplicacao.py
faf7c226799c22ff6b1739fce8ce4ceefa8db7a2
[]
no_license
reginaldosantarosa/DesignPatterns
10810672d3831e562ec636a5f66bd709c797ca34
bec4247f52b8d2e1fe41c570408816a5d4b22608
refs/heads/master
2020-04-04T06:54:19.757054
2018-01-04T03:06:05
2018-01-04T03:06:05
155,761,201
0
0
null
null
null
null
UTF-8
Python
false
false
554
py
class Multiplicacao(object): """ Operação simples de multiplicação. """ def __init__(self, esquerda, direita): """ Constroi a operação simples de multiplicação passando a expressão do lado esquerdo e a expressão do lado direito. """ self.__esquerda = esquerda ...
[ "victorhad@gmail.com" ]
victorhad@gmail.com
fc836719468155bce0624ac6734a2fe0c035dbb6
32c1f9230149ef251d8c3a40171b10cd78aeca99
/app/meme_sources/__init__.py
66386b850edbcc1219ebe28678ffa75b4d9581df
[ "Apache-2.0" ]
permissive
AInursery/george
ce0adb2ea862c44454bbd8f4d84c755506bfe60a
6285f52750aca14b8ea85d82349ee0907eb04867
refs/heads/master
2021-11-01T19:49:35.193815
2014-11-17T12:03:23
2014-11-17T12:03:23
26,678,493
1
0
null
2021-09-29T17:25:17
2014-11-15T11:54:57
Python
UTF-8
Python
false
false
234
py
from meme_sources.main import MemeSource, MemeItem from meme_sources.meme_generator import MemeGenerator from meme_sources.know_your_meme import KnowYourMeme # Avoid pyflakes warning MemeSource, MemeGenerator, MemeItem, KnowYourMeme
[ "Nabellaleen@users.noreply.github.com" ]
Nabellaleen@users.noreply.github.com
f0d2723b19b430f278cbff8ab9758cfcb3d72478
bd3a8a57f92e36b1743354ed2917c57e944563be
/warmup-1/pos_neg.py
6424e248a461ce982ceb2e2bd369adb2c981f699
[]
no_license
dchu07/codingbat
dd28890590976b40e40b3013c9e65cd1905cf7ca
530c889d57c22121e6f6a12872dd54d650e218b0
refs/heads/master
2020-07-29T02:18:39.740017
2019-11-19T20:03:19
2019-11-19T20:03:19
209,630,429
0
0
null
2019-09-19T19:12:08
2019-09-19T19:12:07
null
UTF-8
Python
false
false
147
py
def pos_neg(a, b, negative): if negative: return ((a < 0 and b < 0)) else: return ((a < 0 and b > 0 ) or (a > 0 and b < 0))
[ "37084052+dchu07@users.noreply.github.com" ]
37084052+dchu07@users.noreply.github.com
85a59fe5b47c7db2ab81e6df835fff2b33fa1bb3
4a4c310ce0983e374f99e8e96b9d885ca1849c0a
/warmup/socks.py
4927164cbd44e97560b858bc8320a2ddb1e02b0d
[ "MIT" ]
permissive
piequi/my-hackerrank-challenges
dc357462429678e3d2423960846d369bc9299129
455d110dd8675228d44f21e7f253a67b58a0441d
refs/heads/master
2020-09-10T08:12:43.106423
2019-11-14T12:45:05
2019-11-14T13:10:05
221,697,567
0
0
null
null
null
null
UTF-8
Python
false
false
730
py
#!/bin/python import math import os import random import re import sys # Complete the sockMerchant function below. def sockMerchant(n, ar): pairs = 0 colors = {} socks = list(ar) print('socks = ', socks) for s in socks: colors[s] = 0 for color in socks: colors[color] += 1 ...
[ "mbourgeot.ext@orange.com" ]
mbourgeot.ext@orange.com
5a8abef7706bcce6e17be3d5109ec5ecfb789983
9f71ec1ace34607902f4886c4d0121347dba6da2
/ex40.py
ebc030dd59ed8421d5545c326a784b367955a204
[ "MIT" ]
permissive
JueJue1/python-exercises
b59e7c564c0af6558d377e4323528bc422c8df38
0aa08a8e5fc7a350ae7a8f955ee7a41720d1ea41
refs/heads/master
2020-03-19T13:06:37.087235
2018-06-15T04:24:38
2018-06-15T04:24:38
136,561,354
0
0
null
null
null
null
UTF-8
Python
false
false
484
py
class Song(object): def _init_(self, lyrics): self.lyrics = lyrics def sing_me_a_song(self): for line in self.lyrics: print(line) happy_bday = Song(["Happy birthday to you", "I don't want to get sued", "So I'll stop right there"]) bulls_on_pa...
[ "sandarwinn31184@gmail.com" ]
sandarwinn31184@gmail.com
516c031978c2f82c58c800af93a4aea8418f4ca1
92cd4218a251f17eb1b734712ed3d43c1e5d7d0d
/Chapter_06/ch06_r02.py
59d78f85efd00a65ee1172cfe642e68704113a8c
[]
no_license
laranea/Modern-Python-Cookbook-Second-Edition
c521dfb614652a2e76967e026a98e74133f85bd2
0c91076965531c13745fd0171f30b2c130a0e96a
refs/heads/master
2021-01-14T16:22:49.806946
2020-02-23T18:53:29
2020-02-23T18:53:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,900
py
"""Python Cookbook 2nd ed. Chapter 6, recipe 2, Essential type hints for class definitions """ import random from typing import Set, List class Dice: RNG = random.Random() def __init__(self, n: int, sides: int = 6) -> None: self.n_dice = n self.sides = sides self.faces: List[int] ...
[ "slott56@gmail.com" ]
slott56@gmail.com
3e689a490f06aeee4d810234642d9e4eb84d886a
c0c5b1c902f23904ecfc8bb3184f38fbdfca7637
/Python_Succinctly/chapter_1/23.py
660c7f5aae46cb77ac723c02c8310c0a9d0b5efc
[]
no_license
SyncfusionWebsite/Python-Succinctly
4bb1909e07e1b98b2d838c7a29fe445544f4dd28
f1a3af162c9181c2798e024a79ece908129bd00a
refs/heads/master
2021-05-12T06:51:41.337146
2017-12-11T20:34:26
2017-12-11T20:34:26
117,228,576
1
0
null
2018-01-12T10:36:33
2018-01-12T10:36:33
null
UTF-8
Python
false
false
75
py
#!/usr/bin/env python3 version = 3 print('Python ' + version + ' is fun.')
[ "content@syncfusion.com" ]
content@syncfusion.com