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
9e97dbe181f34f830ae77441e07246ce7991365b
684c85a99b4c971c9a1f66b51773cfef8aada949
/Part I/regex_design.py
7d08dc868335c8237804015260c5482c9799d2cb
[]
no_license
AmandaHassoun/Regex
c7b208462e5ddb48e0d1894e4ce4ef029658bc38
8c324b2cc800ce7f237ef43a3b7d6ac1611b7f5c
refs/heads/master
2021-01-23T08:39:11.049807
2014-11-27T21:42:38
2014-11-27T21:42:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,725
py
class IllegalValueError(Exception): pass class Regex: """A tree representation of a regex expression.""" def __init__(self: 'Regex', child1: str=None, child2: str=None): """Initilizes a Regex. """ self.child1 = child1 self.child2 = child2 def _...
[ "amanda.hassoun@mail.utoronto.ca" ]
amanda.hassoun@mail.utoronto.ca
abade0c0b8a6d593d76353e9906f86ec19c77ec5
10b6482cb3e4794286ccef33dc782762724f4fa1
/mylogger.py
ae12ba65e98317386c94ebba6369915080261acd
[]
no_license
Gio-404/AutoRuncase
7b5bed0c4c052c41732a0f960084b3b72ab82c8d
bb44fc99e9e41921e77c53c1fbf96a7ce12aaaa1
refs/heads/master
2023-02-01T06:39:32.994736
2020-12-06T02:50:44
2020-12-06T02:50:44
318,831,135
0
0
null
null
null
null
UTF-8
Python
false
false
1,090
py
#!usr/bin/env python3 # coding:utf-8 # Create Date:2019/6/6 import logging import datetime from logging import handlers import os if not os.path.exists("log"): os.mkdir("log") def mylogger(): logger = logging.getLogger('mylogger') logger.setLevel(logging.INFO) if not logger.handlers: rf_ha...
[ "metasploit.exp@qq.com" ]
metasploit.exp@qq.com
27c2c04a17c99e66ff2da5669961a920229061a4
877e2359f8926fd3694a35523a027843c6f1df1f
/consumer_key_filter.py
215671556abf14edb312be8abd3399a0bebf0ac6
[]
no_license
Raghu-Srungavarapu/dataengineering
37dc3e93c813c419568f7ebb5638dd0a4c862759
90fc7cc11a72f54883d1ee84ef2d913ad63f7f1f
refs/heads/main
2023-03-10T14:30:22.237372
2021-03-01T08:02:35
2021-03-01T08:02:35
332,083,055
0
0
null
null
null
null
UTF-8
Python
false
false
3,026
py
#!/usr/bin/env python # # Copyright 2020 Confluent Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "jsru2@pdx.edu" ]
jsru2@pdx.edu
2aefdfac91a3a4e24f542010df78c3d574bceae7
f1a402c8aaa07b519e55ef4373ce2479089dabb4
/supvisors/tests/test_address.py
2827a845c612e807378e909fabb8ce3515b794c5
[ "Apache-2.0" ]
permissive
danh1979/supvisors
51886e416df1e60f39a8b5bf6cbf2f5b0634a45a
0ad1ce857750626ccc4b29d109f13ebb5e4f6fdc
refs/heads/master
2021-01-20T05:57:15.817569
2017-02-28T08:06:33
2017-02-28T08:06:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,307
py
#!/usr/bin/python #-*- coding: utf-8 -*- # ====================================================================== # Copyright 2016 Julien LE CLEACH # # 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 Lice...
[ "julien.6387.dev@gmail.com" ]
julien.6387.dev@gmail.com
c78da7117dcedf1bf99a17ac56ba2e9524123fb6
1facae2288193f78445593b3b17260d8fa84d945
/src/find_missing_element.py
2e5da530c19b3abe459010ed675fba2d06fa8d70
[ "MIT" ]
permissive
marco-zangari/code-katas
353336a4db5c4033c44833fb1b8bbb1cc8512a1f
1dfda1cfbbe8687b17e97e414358b38d964df675
refs/heads/master
2021-09-08T06:53:43.284028
2018-02-03T02:13:00
2018-02-03T02:13:00
107,797,028
0
0
MIT
2018-02-03T02:13:01
2017-10-21T16:37:51
Python
UTF-8
Python
false
false
671
py
"""Find missing element between two arrays, CodeWars Kata, level 7.""" def missing(arr1, arr2): """Return missing element in arr2 that was in arr1. input = two arrays with integers output = one integer, i.e. the missing element from arr1 ex. [6, 1, 3, 6, 8, 2], [3, 6, 6, 1, 2] should return 8 ex....
[ "mjzangari@gmail.com" ]
mjzangari@gmail.com
1bb7d1df1bad565d417d2067f6df5e625d992869
acae6bccb20d3773a9e3238f56b264b925021738
/Python/SpiderStudy/CrawBaiduStock.py
6fcf3b0069ab7d9c3ea77b52ad18940c6cf90f06
[]
no_license
YING1023/python
f8eee418402e42c1539e4a1a6aa1ede27cb9025d
e11d6ebc9ada30c0c5c9187917c97aab77b16652
refs/heads/master
2020-03-27T11:07:04.684890
2018-08-28T15:56:32
2018-08-28T15:56:32
146,466,459
0
0
null
null
null
null
UTF-8
Python
false
false
1,771
py
import requests from bs4 import BeautifulSoup import traceback import re def getHTMLText(url): try: r = requests.get(url) r.raise_for_status() r.encoding = r.apparent_encoding return r.text except: return "" def getStockList(lst,stockURL): html = getHTMLText(stockU...
[ "noidea@efgh.com" ]
noidea@efgh.com
486fa7c9065ad760e3e1f9369eb6288cf44948ac
c2da8baa22f144fbe6d293a588aedc85967f0a8d
/utils/tf_util.py
0b1eec6caf1a1d744b28f95597d359df756d9a6b
[ "MIT" ]
permissive
jtpils/MFFNet
66c01ef17f632710a8ce4b417d88ac8d80ce260f
ec517c57d7938c566a0900b79b41822ff1a9ab6f
refs/heads/master
2020-06-20T12:24:16.872482
2019-07-16T03:39:05
2019-07-16T03:39:05
197,120,966
2
1
null
2019-07-16T04:35:23
2019-07-16T04:35:22
null
UTF-8
Python
false
false
21,535
py
""" Wrapper functions for TensorFlow layers. Author: Charles R. Qi Date: November 2017 """ import numpy as np import tensorflow as tf def _variable_on_cpu(name, shape, initializer, use_fp16=False): """Helper to create a Variable stored on CPU memory. Args: name: name of the variable shape: list of ints ...
[ "867208887@qq.com" ]
867208887@qq.com
e92d0c62029860d8611615139a3571c151658d54
3af16e645b80049082b8fc80d6d4c8bce80ff422
/examples.py
d47575cab78872802bd8cd20c3596bd2c9ef78b2
[]
no_license
ercco/NBTW
4598895435a30efcb4bdea47e29a2bee421d1afc
f303b732b05b6d94c61f4a81610a5a2ec764a2a1
refs/heads/master
2021-01-02T05:46:50.768084
2020-02-10T16:28:30
2020-02-10T16:28:30
239,515,958
1
0
null
null
null
null
UTF-8
Python
false
false
804
py
import numpy as np import nbtw def star_graph(n): A = np.zeros((n,n)) for ii in range(1,n): A[0,ii] = 1 A[ii,0] = 1 return A def complete_graph(n): return np.ones((n,n))-np.identity(n) print('All pairwise NBTWs for the star graph, n = 4, k = 2') print(nbtw.get_nbtws(star_graph(4),2)) ...
[ "tarmo.nurmi@aalto.fi" ]
tarmo.nurmi@aalto.fi
c4284783d280604ab63f70e50b9ef71fe4a16a08
49e3fbd1c978036b59fa3cddddbf504ec42fc402
/question_app/api/serializers.py
ac5896e8aa043544a1daad3411dfeda6b0a3818a
[]
no_license
tahaenesaslanturk/question_app_backend
030ff9c99c74c3ec540dda6d091b787b8af9a702
c08d7f5b4c2cfd7e534dc45700c1a14e307e0e99
refs/heads/master
2023-08-15T05:58:51.836759
2021-10-14T19:44:59
2021-10-14T19:44:59
417,262,201
0
0
null
null
null
null
UTF-8
Python
false
false
643
py
from django.db.models import fields from question_app import models from rest_framework import serializers class BookSerializer(serializers.ModelSerializer): class Meta: model = models.Book fields = "__all__" class TagSerializer(serializers.ModelSerializer): class Meta: model = mod...
[ "enes.aslanturk@ug.bilkent.edu.tr" ]
enes.aslanturk@ug.bilkent.edu.tr
007bae418417978e2255f9a62e31a313204a4921
2bf535666754513417a1c34b8826d904c6e159ff
/ex23_reverse.py
2a6e2769c4e2f593b8715871eeaa00bd5bf5ccba
[]
no_license
Skitzoidman/lpthw
b26ed31cee40468d207ca31e85be2c198b0615c7
973a9dc18d5e1e7c52092db318879582dff0d26f
refs/heads/main
2020-04-18T02:47:05.878630
2019-06-01T15:54:25
2019-06-01T15:54:25
167,175,712
0
0
null
2019-02-15T20:09:38
2019-01-23T11:58:39
Python
UTF-8
Python
false
false
677
py
import sys script, input_encoding, error = sys.argv def main(language_file, encoding, errors): line = language_file.readline() if line: print_line(line, encoding, errors) return main(language_file, encoding, errors) def print_line(line, encoding, errors): next_lang = line.strip() #enco...
[ "lschmalzl@web.de" ]
lschmalzl@web.de
accbe83a81637eaa3e80bf3d6776e35f9637143e
46d2b0925475e5c1b59bcf8e59b84c99cd81bee9
/max_dist.py
50a5e599b129ac1e97a758ea02c7dc201182f36a
[]
no_license
thatsmeray98/Python-Scripts
cf89f90c72c33d7e913e2935cec4d3aa07b490eb
2192d78616879f2ace21e6d5840aa11c58172abe
refs/heads/main
2023-04-25T15:12:14.603712
2021-05-16T17:59:01
2021-05-16T17:59:01
367,950,243
2
0
null
null
null
null
UTF-8
Python
false
false
553
py
for i in range(int(input())): max_range, distances, count = float(input()), [], 0 (x1, y1), (x2, y2), (x3, y3) = map(int, input().split()), map(int, input().split()), map(int, input().split()) first_dist, second_dist, third_dist = ((x1-x2)**2 + (y1-y2)**2)**0.5, ((x2-x3)**2 + (y2-y3)**2)**0.5, ((x3-x1)**2 +...
[ "thatsmeray98@gmail.com" ]
thatsmeray98@gmail.com
8351f9bbeff1a32452d3f7bcd655a58888d2b2ed
db5effbc034ca02140f3695799ea8c950cc3a71a
/python/452_MinimumNumberOfArrowsToBurstBalloons.py
678abb64f8ac6b05512c1d3fda3e66da7918bc46
[]
no_license
pktangyue/LeetCode
8ba9fbb9f86eb5d16ee0ec0915dae4cf6f0a748b
c6fe6ae8ea13cc83525b81876ece92e2eec7b7fd
refs/heads/master
2021-06-13T23:40:30.056747
2021-04-11T09:34:22
2021-04-11T09:36:08
181,270,893
0
0
null
null
null
null
UTF-8
Python
false
false
700
py
from typing import List class Solution: def findMinArrowShots(self, points: List[List[int]]) -> int: if len(points) == 0: return 0 # 先按照左坐标排序 points.sort(key=lambda v: v[0]) # 第一支箭右坐标,因为排序后箭的左坐标肯定包含气球的左坐标,所以无需考虑 a_x = points[0][1] num = 1 for v i...
[ "tangyue1004@gmail.com" ]
tangyue1004@gmail.com
bd44fb145670764a1ebf331ce404f53320ca0dac
80226a96df6eee68c26aef252875f6f652ae9dc4
/portfolio/urls.py
4d189a76422fc0ca9bb38c37b64acae4b975f715
[]
no_license
satyendra457/portfolio
950a9d3a1ee455de7d6334a1a8963074bc6a07e4
dbef699c53a56915a13d2a5302fdebea6f6a4ec0
refs/heads/master
2020-07-16T18:36:24.434822
2019-09-02T11:40:48
2019-09-02T11:40:48
205,843,967
0
0
null
null
null
null
UTF-8
Python
false
false
331
py
from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('', include('core.urls')), path('admin/', admin.site.urls), ] urlpatterns = urlpatterns + static(settings.MEDIA_URL, document_root = settings....
[ "satyendra.tiwari@verts.co.in" ]
satyendra.tiwari@verts.co.in
2ae21773feb132266ffe8bc126dfea09fd1434c8
4230f60077de95ef8dcfae1b64d2fbbbd481909e
/pi/picture.py
34a1661f312bc41034c0b4a5ca1e27e9ff26d096
[]
no_license
FrogletApps/IoT_Doorbell
d1eeb7fffe2bc9275c8ba911f5817f60dba1d568
c55fc3daa6a1738d16c9ae8d98f7de5fb5989dcc
refs/heads/master
2022-04-05T21:51:33.574416
2020-02-10T18:09:26
2020-02-10T18:09:26
219,339,931
0
0
null
null
null
null
UTF-8
Python
false
false
422
py
from datetime import datetime from picamera import PiCamera #Get file path for pictures def getPicturePath(): time = datetime.now() return '/home/pi/Git/iot-doorbell-pi/webControl/DoorbellPics/'+ time.strftime("%Y-%m-%d %H-%M-%S") +'.jpg' picturePath = getPicturePath() camera = PiCamera() #camera.start_previe...
[ "james_pearson@outlook.com" ]
james_pearson@outlook.com
decdfb899ca9c9c5c51348711ff05ac6caeec6ce
93273e4108ef71533c18d0db22f24fdf0b81c186
/newweb/views.py
80301de2326590000a8a3da481d11df4791a35cb
[]
no_license
jarrishmakingsly/Company-website
63c7e830be13864dd34bed71772c124dff0b657e
f523a69c760c875a265f4aca8c597dba1a5ff826
refs/heads/main
2023-04-20T17:36:06.800457
2021-04-27T13:47:17
2021-04-27T13:47:17
362,107,583
0
0
null
null
null
null
UTF-8
Python
false
false
760
py
from django.shortcuts import render,redirect from .forms import ContactForm from .forms import Careersview from django.http import HttpResponse from .models import contact # Create your views here. def app(request): return render(request, 'index.html',{}) def terms(request): return render(request, 'terms.html'...
[ "1ms17ec038@gmail.com" ]
1ms17ec038@gmail.com
b54bfebba6f2f3c86e37f492dbff646783952746
61e850215c3b08b10fe7a0d2d390432866852e57
/api/helpers/teacher_api_helper.py
53f8e821762d927cac7bcad5e254a2b74562de38
[]
no_license
juanesarango/teachme-pb
7e5caa215727159f3f8f30f783949ca34b2a10c3
f52f311e98473065d88961f7251c2e12960067a7
refs/heads/master
2021-01-19T23:06:03.635515
2015-06-02T20:58:41
2015-06-02T20:58:41
88,923,725
0
0
null
null
null
null
UTF-8
Python
false
false
1,765
py
from api.helpers import BaseApiHelper from api.messages import TeacherResponse from api.messages import ReviewResponse from teachme_db import teacher as Teacher from teachme_db import review as Review class TeacherApiHelper(BaseApiHelper): _model = Teacher def to_message(self, entity): return Teach...
[ "juanes@MacBook-Pro-de-Andres.local" ]
juanes@MacBook-Pro-de-Andres.local
8c811480e3fd84ee96f7aee4d58b1106f102e731
c1ab877bf87df71ca5c5632b92361961cfaf8549
/GCE_calcs/__init__.py
055bcb0ffd5372115839413c1db0160a22cc4d7e
[]
no_license
rekeeley/GCE_errors
9a508063d3968cf44b459195118bd027dd72bdaf
b3658da0c97a75a73bacfc0493025671d19d6859
refs/heads/master
2021-01-10T05:08:02.694791
2017-09-09T01:11:27
2017-09-09T01:11:27
44,645,307
2
1
null
null
null
null
UTF-8
Python
false
false
75
py
"""Bayesian inference of the GCE. """ import calculations import analysis
[ "ryankeeley@ncanac.local" ]
ryankeeley@ncanac.local
82e3695bd6d30229478ea9010649e2e87b99af1d
7b67c2d70fc363e42715a4a5b30e54c7bdb83c8e
/RemoveNthNodeFromLinkedList.py
793096e6803518e7afee9ebf8f37156c33f2e215
[]
no_license
tajshaik24/interviews
d4fbb0f2df1c7e56b2cdc639d8196c20946d5c37
55545e8b11b8e7681ba4393e92c7b2b57c5dca5e
refs/heads/main
2021-12-02T08:28:09.966081
2021-07-29T08:40:27
2021-07-29T08:40:27
145,492,829
0
0
null
null
null
null
UTF-8
Python
false
false
922
py
''' Given a linked list, remove the n-th node from the end of list and return its head. Example: Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the end, the linked list becomes 1->2->3->5. Note: Given n will always be valid. Follow up: Could you do this in one pass? ''' # Definition...
[ "tshaik@berkeley.edu" ]
tshaik@berkeley.edu
c1280c5ed7c5bd1d052fed1f0059811aad1cdacf
d5d122ebf9f05a24826a7f851a3e1e810caa7427
/tests/test_pgdump.py
be003d698ffbfa1c51c7259c9a54efb2c565c4b2
[]
no_license
zhaoyun95/pgbackup
06ef33351557dded276d4d707936743ea6454650
72835cb87271eca503f5d254af5cab1300c8de99
refs/heads/master
2021-06-17T22:53:57.005877
2019-07-28T05:23:58
2019-07-28T05:23:58
199,220,576
0
0
null
2021-04-30T21:09:32
2019-07-27T22:56:48
Python
UTF-8
Python
false
false
1,010
py
import pytest import subprocess from pgbackup import pgdump url = "postgress://bob:password@example.com:5432/db_one" def test_dump_calls_pg_dump(mocker): """ Utilize pg_dump with the database URL """ mocker.patch('subprocess.Popen') assert pgdump.dump(url) subprocess.Popen.assert_called_with(['pg_dump',...
[ "yiteng@yahoo.com" ]
yiteng@yahoo.com
ddb017f1526e2b724191f3d00ca90eec4cbd5037
14d5020c1f4011e156b27ab2b5c0bce907c2f637
/extras/examples/Sieve.py
bd9d106bf6272a59c281ca19485c5366e17ffa78
[ "MIT" ]
permissive
rbrewer123/pycsp
59eadc5389f6236cf9d19a4a547ad85dcc2d04e8
a42acfe3e2a40cacf256d341e3a053947aab24fe
refs/heads/master
2016-09-06T06:53:16.970404
2015-09-02T02:51:31
2015-09-02T02:51:31
41,721,991
1
0
null
null
null
null
UTF-8
Python
false
false
1,023
py
""" Copyright (c) 2009 John Markus Bjoerndalen <jmb@cs.uit.no>, Brian Vinter <vinter@nbi.dk>, Rune M. Friborg <rune.m.friborg@gmail.com>. See LICENSE.txt for licensing details (MIT License). """ from pycsp_import import * @process def producer(cout, cnt): for i in range(2,cnt): cout(i) poison(c...
[ "rune.m.friborg@eca1dd04-0285-11de-9d1a-b59b2e1864b6" ]
rune.m.friborg@eca1dd04-0285-11de-9d1a-b59b2e1864b6
64f154f2543c07b4faee6312896cb26daaacb7ca
38f2221bf0d334544a79391ebcf0a141f8a7c96b
/Python/magic8.py
471ffa17366c6edffb622aa6d2c5b500f59676c4
[]
no_license
joychen5069/newLearning
a60a47aac5a0c77783e9a864bbd343aeb2377ca8
672c7f2cbc766f1d8a48b7ab9820fac6d4bf0874
refs/heads/master
2023-02-16T04:56:16.665074
2021-01-13T19:37:01
2021-01-13T19:37:01
292,591,402
0
0
null
null
null
null
UTF-8
Python
false
false
727
py
import random def getAnswer(answerNumber): if answerNumber == 1: return 'It is certain' elif answerNumber == 2: return 'It is decidedly so' elif answerNumber == 3: return 'Yes' elif answerNumber == 4: return 'Reply hazy try again' elif answerNumber == 5: retu...
[ "joychen5069@gmail.com" ]
joychen5069@gmail.com
db31b8d2ff15f45a463ad6fbc60c2cb57dc1f3f5
31e3e0ce6d8b8cd1b286971aa1ea3c56a338ca48
/sunpy/util/sphinx/doctest.py
5a29458fbf6228f895f78a2fab1182fc8684257c
[ "BSD-2-Clause" ]
permissive
sunpy/sunpy
d8df998cf7753834ffd7add6911c0e4f6828b5b8
edd3ea805f4540d41ce2932a0e865cab2d6a4cf5
refs/heads/main
2023-09-01T12:05:09.343909
2023-08-31T13:36:35
2023-08-31T13:36:35
2,165,383
792
683
BSD-2-Clause
2023-09-14T14:03:09
2011-08-06T15:34:08
Python
UTF-8
Python
false
false
1,966
py
# Licensed under the Astropy 3-clause BSD license - see licenses/ASTROPY.rst """ This is a set of three directives that allow us to insert metadata about doctests into the .rst files so the testing framework knows which tests to skip. This is quite different from the doctest extension in Sphinx itself, which actually d...
[ "stuart@cadair.com" ]
stuart@cadair.com
c02c3a1abefd888c7e3ff00c104c0dab0646ca38
c00c68c864975c86fc9816537e9b20790857df0c
/My Python Program/class_setage_getage.py
d76ab05d7f421dea8e66406e84fd0b93ded655ce
[]
no_license
aprvh1/Python
9f137b035eabd96378184be6fd0c0b879a5e82d7
db37e060f096735e37b1e1f14fcc95db83b0ae25
refs/heads/master
2022-11-06T13:55:36.060365
2020-06-30T15:44:20
2020-06-30T15:44:20
276,140,845
0
0
null
null
null
null
UTF-8
Python
false
false
222
py
class apoorv: def setage(self,age): self.ageofclass=age def getage(self): return self.ageofclass a=apoorv() a.setage(22) print a.getage() a.setage("Twenty one") print a.getage()
[ "noreply@github.com" ]
aprvh1.noreply@github.com
ef5f0ffdd91add1c637b81b3554202919a900383
01a551b7f98e84a11fc8f8eaf4d596090408b146
/video/uielements.py
6d970d91400837a659380d371b040b021c3f86a9
[]
no_license
Compy/DemolitionMan2000
16bd5741d71de6d71f6ba328cd7654a2a7960bda
92efe164359ba402b37ce3db6f24d7c58f01f4d1
refs/heads/master
2021-08-16T06:14:00.503587
2017-11-19T04:22:13
2017-11-19T04:22:13
111,263,864
0
0
null
null
null
null
UTF-8
Python
false
false
22,521
py
''' Created on Dec 18, 2012 @author: compy ''' import logging from direct.gui.OnscreenText import OnscreenText,TextNode __all__=["Menu"] from direct.showbase.DirectObject import DirectObject from direct.gui.DirectGui import DirectFrame,DirectButton,DGG from direct.gui.OnscreenText import OnscreenText from pandac.Pa...
[ "jimmy@catster.net" ]
jimmy@catster.net
e1a8e2e48d4ccb196ac5f940b2b444cbb8d8aa66
364046cb77451857150f8884a65f2219647f29ee
/app/recipies/migrations/0002_ingredient.py
335f9d230c2db64ce81f8f97f8973d2167fee049
[ "MIT" ]
permissive
sourabhsinha396/Rest-api-recipie
be3e92f188fa8b587d670b38e175285d8e86277d
a9937d5119c706d1193654ece280ed46b599a344
refs/heads/master
2023-07-18T21:02:29.581011
2020-07-26T04:12:33
2020-07-26T04:12:33
281,962,330
0
0
MIT
2021-09-22T19:29:51
2020-07-23T13:41:55
Python
UTF-8
Python
false
false
758
py
# Generated by Django 3.0 on 2020-07-26 03:36 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('recipies', '0001_initial')...
[ "sourabhsinha396@gmail.com" ]
sourabhsinha396@gmail.com
5a2f9ab746f3c4b5d716ff8c896270a4ba8429d7
6f52d296b672871bcf7957393b3b3f6afb9c61b9
/lang_types/lang_function.py
686c7bea64e1619cefca3848d57cbea7cd60b1d9
[ "MIT" ]
permissive
badochov/fun-lang-interpreter
42a5c98f8d9833823d23d9f04278818ba10f8e17
189784b2dbcf8d6b52f671ab0a853c60966431c6
refs/heads/master
2022-10-23T07:07:50.249671
2020-05-22T13:01:37
2020-05-22T13:01:37
252,565,821
0
0
null
null
null
null
UTF-8
Python
false
false
1,680
py
from __future__ import annotations from typing import Optional, TYPE_CHECKING, List from context import Context from lang_types.lang_type import LangType from nodes.node import Node from nodes.variable_assignment_node import VariableAssignmentNode from position import Position from symbol_table import SymbolTable if...
[ "badocha.hubert@gmail.com" ]
badocha.hubert@gmail.com
5aeab1900cd5f1c09551ed42241933b5ded8a0dd
b146f5b05df2202162752ab03090b45c6003668f
/car_game/game.py
4e12f08fab1434582bf345e3664c4a2fde8c6fcb
[]
no_license
Anshu05m/Python-BasicProjects
7cc56a17a7ee634cb9a9190afc8a8431590bf29e
30078dfef98805cf49660cd6227897b73b7920a9
refs/heads/main
2023-06-25T07:13:52.404795
2021-07-23T02:02:42
2021-07-23T02:02:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,960
py
import pygame, time, random, sys pygame.init() gray=(119,118,110) black = (0,0,0) pink = (19,3,110) red = (255,0,0) green = (0,200,0) blue = (0,0,200) bright_red = (255,0,0) bright_green = (0,255,0) bright_blue = (0,0,255) display_width = 800 display_height = 600 gamedisplays = pygame.display.set_mode((display_width ...
[ "noreply@github.com" ]
Anshu05m.noreply@github.com
510cf91568dd8c2b94718c023aaee3f73e816536
330802c408d66e1c6e37dd7087f2f949570438ff
/Python/easy/258.py
0bc4f6f71e736745145a0e5e3d567083d2b7be48
[]
no_license
HeyZOJian/leetcode
ea93da6c4f6cbd6bfb60b9f0a0c4cb21a5907687
5cae29c4825c122b1fdec9ead32939a20bf3129d
refs/heads/master
2021-05-05T07:10:50.104077
2018-10-05T01:44:13
2018-10-05T01:44:13
118,855,381
0
0
null
null
null
null
UTF-8
Python
false
false
729
py
""" 258. Add Digits Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like: 3 + 8 = 11, 1 + 1 = 2. Since 2 has only one digit, return it. Follow up: Could you do it without any loop/recursion in O(1) runtime? 因为最后累加到个位数,所...
[ "hellozojian@gmail.com" ]
hellozojian@gmail.com
ebdddd5f345927de2632812880372de6c9891ad6
e5743d54bad201b8421f7a23227caf5101836cde
/1到100求和.py
30fdc4d3edbff380162059908c2291df154aa98d
[]
no_license
liuwenwen313/store
c0b329f0fba65013817b545f2fe1228fc4c11ff6
665c2a93ab1d81331867bb98ef75f0ff726aeb5a
refs/heads/master
2023-05-22T22:30:27.460739
2021-06-07T01:13:22
2021-06-07T01:13:22
359,721,714
0
0
null
null
null
null
UTF-8
Python
false
false
155
py
start = 0 sum=0 while start<100: start=start+1 print("这是第几次",start) sum =int(sum) sum =sum+start print("1-100总和为",sum)
[ "1798032538@qq.com" ]
1798032538@qq.com
44846d39e03d4c86d424fa57d50d5d22b76e2b30
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/73/usersdata/214/39773/submittedfiles/triangulo.py
69ff688cd3048f7f591723dc3954f22789a5366c
[]
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
474
py
# -*- coding: utf-8 -*- import math a=int(input('Digite a:')) b=int(input('Digite a:')) c=int(input('Digite a:') a>=b>=c>0 if a<b+c: print('S') else: print('N') if a+b<c: if(a**2)==(b*2)+(c**2): print ('Re') if(a**2)==(b*2)+(c**2): print ('Re') if(a**2)==(b*2)+(c**2): ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
618d00cbc56d2f3abda936c39819ad1ea101852a
f56e9a9269ea35439ee985886b98313bd08a2a1b
/Root/test_attn.py
40381df433fa6379a95a025a00d62392ce06f983
[]
no_license
gsygsy96/Human-Motion-Estimation-from-sparse-IMUs
b4ebfd1f1a4da9e2e9a810a96550141c07d42d24
09782b1144059e451d1128d07782a7da9186a11a
refs/heads/master
2023-03-16T00:41:25.306880
2019-11-22T21:15:51
2019-11-22T21:15:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,008
py
from Attention import RawDataset from Attention import Encoder from Attention import Decoder import torch import Config as cfg import matplotlib.pyplot as plt import numpy as np import myUtil #import quaternion import itertools class TestEngine: def __init__(self): self.datapath = '/data/Guha/GR/synthetic...
[ "guha@pc-2162.kl.dfki.de" ]
guha@pc-2162.kl.dfki.de
df60941f7bade624506de59193cded366a4df4d0
acb6e37d92335252e6391db051d803b41fe7c148
/auto/migrations/0008_auto_20170718_1944.py
5a5f45768895eac686f04795799268a1cd6748de
[]
no_license
daasara/zss
b4b6d4002d7c931a2e579752b79212c48ae59ba0
a3cfa72a07ba10464b3092d9693162d270f4e8bb
refs/heads/master
2021-01-20T04:57:28.906805
2017-08-17T06:57:10
2017-08-17T06:57:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
641
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-07-18 19:44 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('auto', '0007_auto_20170718_1943'), ] operations = [ migrations.AddField( ...
[ "ironvanxv@gmail.com" ]
ironvanxv@gmail.com
2abc59a62707b0bb5f252a649a0df5c2f07b24df
18df5671c7c066210b76cd643547b7e991c9ce6d
/src/core/views.py
af9147f2ebef1934bd703c5e223c3ffe128c0e3c
[]
no_license
luisnaranjo733/django-react-docker
4dacbcd2a9f0f10ee01803be31c8ff51cef0efff
285f02204b4695fcadebbb4e4b127429a2d60df5
refs/heads/master
2021-08-19T16:09:05.333501
2017-04-28T21:28:22
2017-04-28T21:28:22
112,116,560
0
0
null
null
null
null
UTF-8
Python
false
false
3,162
py
import re from django.shortcuts import get_object_or_404, redirect, render from core.models import (Manager, Opportunity, Question, Response, Survey, Volunteer) def index(request): '''Volunteer home page Most likely this page won't be included in production, as NWIRP can hopefully r...
[ "luisnaranjo733@gmail.com" ]
luisnaranjo733@gmail.com
25fb0280d9175f5a0bc7c16c2a28eb4020a92dbc
146feb4c64d8cc2ed5fecaa7132f60bbde3497da
/lab2/lab2(1).py
55752edb769f6ecc1cfd634c61b408ff7547fd0d
[]
no_license
rahaf19-meet/yl1201718
d58c2f9f27a3a445627f23b709e23b060897d2f0
ecdd5f6f338e9cef9e9859816dd1b57ea298f189
refs/heads/master
2021-09-06T08:59:04.366295
2018-02-04T16:59:46
2018-02-04T16:59:46
108,751,208
0
0
null
null
null
null
UTF-8
Python
false
false
41
py
a=[5,10,15,20,25] b=[a[0],a[-1]] print(b)
[ "rahaf.sabri@gmail.com" ]
rahaf.sabri@gmail.com
7ebef29c5a933741d88289edea372e4b38a5f084
ab43c91790b9aaba0878f106a775ba31b4d45e8a
/Top100/Largest Rectangle in Histogram.py
13af2076a589253ca69d212608b7d313e9ee96ef
[]
no_license
Goodnick123/LeetCode
cc05b263d43f412d9be77a3a1d3dd3356c501feb
2273ce2dcfd558eda4435360e0d3796c9ec17cca
refs/heads/master
2021-04-05T23:24:23.291853
2018-03-10T15:28:15
2018-03-10T15:28:15
124,646,471
0
0
null
null
null
null
UTF-8
Python
false
false
1,478
py
# -*- coding: utf-8 -*- # @Time : 2018/2/11 15:24 # @Author : Yeh #TLE class Solution: def largestRectangleArea1(self, heights): """ :type heights: List[int] :rtype: int """ maxS=0 for i in range(len(heights)): left =i-1 right=i+1 ...
[ "576182627@qq.com" ]
576182627@qq.com
694a32db49cb1ca6e8ff77d71cfc2dbc980fad97
a668806b052884b2f1faef6a28304c908a89fc68
/test/fixtures/LoggerFixture.py
fcb55b6b5af8ab5768519c8566db92db68e92c05
[ "MIT" ]
permissive
pip-services3-python/pip-services3-elasticsearch-python
aa2e49a70a0debcb2e77f59aefe144baf401b4ca
fe2fba2aeaef7ba80c17732d0065e5bcd60fcb82
refs/heads/master
2023-01-28T14:40:18.698083
2023-01-24T08:08:32
2023-01-24T08:08:32
140,886,199
0
0
null
null
null
null
UTF-8
Python
false
false
1,151
py
# -*- coding: utf-8 -*- import time from pip_services3_components.log import LogLevel class LoggerFixture: def __init__(self, logger): self.__logger = logger def test_log_level(self): assert self.__logger.get_level() >= LogLevel.Nothing assert self.__logger.get_level() <= LogLevel.Tr...
[ "judas.priest999@gmail.com" ]
judas.priest999@gmail.com
48d9538c80a3597aa6692be63fa30601487077fc
9b3ef471582d4bc2e2a25dba7fdc96fa6153f1f1
/0x00-python-hello_world/101-compile
b687a957416b1e04e79ab38f750a6764add58c11
[]
no_license
tyedge/holbertonschool-higher_level_programming
b9a0f8e117423d507eb3aceb606b6edec30ff481
9bbf03d405bec1def3aeeafb9c8ee89c6595d115
refs/heads/master
2020-05-17T22:29:19.840477
2019-09-27T03:49:21
2019-09-27T03:49:21
184,002,509
0
0
null
null
null
null
UTF-8
Python
false
false
106
#!/usr/bin/python3 import os import compileall compileall.compile_file(os.environ['PYFILE'], legacy=True)
[ "tyedge.inc@gmail.com" ]
tyedge.inc@gmail.com
25942d3a98c06b04a955832ac14a2ed03352ba90
4e4ee171f694f259bb7a0838757a61287a00c99c
/src/plugins/CutImage/setup.py
4c0f9556ba7c32e3c8ec737b0286024b459bff06
[]
no_license
zhlikezhz/tools
812b3a6d7ebbb874f3dd34eef444d9288bcac442
b02b8664dd9545e33a720a6b69f8003bc5f91ee2
refs/heads/master
2021-01-20T11:35:11.727365
2015-12-18T08:32:25
2015-12-18T08:32:25
42,494,110
0
0
null
null
null
null
UTF-8
Python
false
false
135
py
import py2exe from distutils.core import setup setup(windows = ["CutImage.py"], options = {"py2exe":{"dll_excludes":["VCOMP90.DLL"]}})
[ "zouhaodata@gmail.com" ]
zouhaodata@gmail.com
32f57999cceed14699a94052de464465d2c5f3f6
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_mendicant.py
b54bd489ffe8ff7e7bd2a65fa8196b2a4fa0cc55
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
390
py
#calss header class _MENDICANT(): def __init__(self,): self.name = "MENDICANT" self.definitions = [u'someone, especially a member of a religious group, who lives by asking people they do not know for money'] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = '...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
d4d2fabc503000d5014c1a508a6873a48b9b9073
46c5cc7212a7b13378bbc69951aa46f0454baf4b
/load_dataset.py
4b683f73474ed2705885af13a7f5f81c7a2a5b9d
[]
no_license
Raunak005/Biased-Prediction-A-Comparative-Analysis
abf9a0193aacf84a98a3537d1ba6aae7769540d6
c7605807f62873c0dc0044783cf85a31724d4ecb
refs/heads/master
2020-09-29T04:48:00.447623
2019-12-09T23:34:35
2019-12-09T23:34:35
226,955,025
0
0
null
null
null
null
UTF-8
Python
false
false
626
py
import pandas as pd import feature_selection as fs def load_training_dataset(): print('Loading the training data set . . .') training_data = pd.read_csv('./datasets/train.csv') print('The training data set (\'train.csv\') is loaded successfully!') return training_data; def load_test_dataset()...
[ "noreply@github.com" ]
Raunak005.noreply@github.com
eba0bd23543f181636ee1a87e571c26256666e43
5258373de66762a7ceacff0b7ee0f6a0b72963e5
/Dicts_09.py
eb9476733792ded3ee9c24d2fee30b25898602ff
[]
no_license
ivand200/Coursera_Python_for_everybody
4810e06d59fa964360ad7df7e1b7816708e15273
b38148a6d39123970b22f8efe410a7b0fe961928
refs/heads/master
2023-04-02T09:11:32.904904
2021-03-28T16:50:22
2021-03-28T16:50:22
352,383,917
0
0
null
null
null
null
UTF-8
Python
false
false
3,670
py
#Exercise 2: Write a program that categorizes each mail message by which day of #the week the commit was done. To do this look for lines that start with “From”, #then look for the third word and keep a running count of each of the days of #the week. At the end of the program print out the contents of your dictionary #(...
[ "ivand1988@outlook.com" ]
ivand1988@outlook.com
a5eb456d0d7a12f0053d881b66d1a08c54c396a4
4a437b1192ba1bc96acd1b80a0d2d70d48dd06ca
/lab13 /cv-lab13/task2.py
8f56b9613401b01099ffc9a4a7e9a60324b3dcf8
[]
no_license
Behzadmcki/computer_vision_project
03aa8cfb4bbebc8d0f80ec28e9aa05e3f9a4bced
ff856496bedb66c26c597b87615b574d0ecbdf43
refs/heads/master
2022-11-20T15:01:37.058879
2020-07-08T09:25:35
2020-07-08T09:25:35
278,041,252
0
0
null
null
null
null
UTF-8
Python
false
false
3,525
py
""" The above accuracy is calculated on the train data (classification.py). This is not a good way to evaluate a classifier, because it can overfit the training data, that is it can work very well on the training data, but perform poorly on the new (unseen) data. Your task is to examine the accuracy of the classifie...
[ "bmckizade@gmail.com" ]
bmckizade@gmail.com
bec06bc5acc08c6b264abc1ab5655474655a1df8
4155a5a4fa6bd89149c57132da472aa81d8d4f25
/MediaServer/urls.py
5e60c2ee48c9c1e61f14f0289012ae6593934cf6
[]
no_license
FurySwordXD/Media-Server
de1e90dbf4e1670bbcdd760a36d881c781e64133
17c535f3d6092ab68e9d0926c9c8b39b71a30f70
refs/heads/master
2023-08-04T06:08:10.015733
2021-09-09T06:21:01
2021-09-09T06:21:01
404,608,530
0
0
null
null
null
null
UTF-8
Python
false
false
847
py
"""MediaServer URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/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...
[ "sainathganesh1@gmail.com" ]
sainathganesh1@gmail.com
239453e10da98ad6708c3d73cec6d701f1e77eaf
d3b1d0760860e0518f3edb453ef43a8277e08f77
/attachment.py
087b847d0717eef8bb5c93ed89989bd64b080d99
[]
no_license
gpandu/Migration_BG
e8ad8f5cf25306f987760b37968fe8782d9f730d
1dda20991208c4e05579df0c92252c7bbd188c31
refs/heads/master
2020-03-30T22:50:23.537137
2018-10-10T06:53:13
2018-10-10T06:53:13
151,679,954
0
0
null
null
null
null
UTF-8
Python
false
false
2,723
py
# -*- coding: utf-8 -*- import ssl import queries import urllib import utilities from io import StringIO cookie_file = 'cookie.txt' def get_attachment(attach_id): gcontext = ssl.SSLContext(ssl.PROTOCOL_TLSv1) attach_url = "https://bugzilla.metricstream.com/bugzilla/attachment.cgi?id="+attach_id request = ...
[ "gugulothu.pandu@metricstream.com" ]
gugulothu.pandu@metricstream.com
09abbc7def9184b80f439ee054f332587bccaf68
03e3138f99f275d15d41a5c5bfb212f85d64d02e
/source/res/scripts/common/Lib/distutils/tests/test_core.py
2de38bab70119d63190c0ca07ab4ad94abb32f45
[]
no_license
TrenSeP/WorldOfTanks-Decompiled
e428728e7901146d0b599d02c930d70532232a97
1faa748acec1b7e435b657fd054ecba23dd72778
refs/heads/1.4.1
2020-04-27T08:07:49.813023
2019-03-05T17:37:06
2019-03-05T17:37:06
174,159,837
1
0
null
2019-03-06T14:33:33
2019-03-06T14:24:36
Python
UTF-8
Python
false
false
2,628
py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/common/Lib/distutils/tests/test_core.py import StringIO import distutils.core import os import shutil import sys import test.test_support from test.test_support import captured_stdout, run_unittest import unittest from distutils.tests impo...
[ "StranikS_Scan@mail.ru" ]
StranikS_Scan@mail.ru
765a829001c753e77058f71c4fa8a4032b014424
3c756c0dd4dae07156bace0656bba2ac6eb61415
/src/alembic/env.py
c569c550d7d06737d9b3baa058c22c1dbfaedf21
[]
no_license
krenzland/prior-information
d00e1c3e8bfc797e36a8883cdd43b41fc451be1a
3f86694efbbb0bb4ece83c3438f76634c55b3352
refs/heads/master
2021-03-24T09:49:12.760514
2018-07-05T09:45:05
2018-07-05T09:45:05
105,457,224
1
0
null
null
null
null
UTF-8
Python
false
false
2,215
py
from __future__ import with_statement from alembic import context from sqlalchemy import engine_from_config, pool from logging.config import fileConfig import sys, os this_file_path = os.path.dirname(os.path.abspath(__file__)) sys.path.append(os.path.abspath(os.path.join(this_file_path, '../'))) import sgpi.model fr...
[ "lukas@krenz.land" ]
lukas@krenz.land
b03c38ff2c20775fff1fa17e80e167c1fe963a3d
722c828d60bc48cf76576c48e45ae70517dbf14a
/Sorting/CountingSort.py
cd96582c82e3680a1396d0fe1fdb3f0cddf111ba
[ "MIT", "LicenseRef-scancode-free-unknown" ]
permissive
AbdulAhadSiddiqui11/PyHub
13fefedd337c18bdd1402487d862fe5de2fa3c2a
26f9c106dd836d8b186e76a772d56d0212482f07
refs/heads/master
2022-12-21T00:54:53.273966
2020-10-01T06:57:02
2020-10-01T06:57:02
300,038,081
1
0
MIT
2020-09-30T20:01:25
2020-09-30T19:30:52
Python
UTF-8
Python
false
false
462
py
def countingSort(lst): newlst = [0]*(max(lst)-min(lst)+1) val = min(lst) for i in range(len(lst)): lst[i] -= val for i in lst: newlst[i] += 1 for i in range(1,len(newlst)): newlst[i] += newlst[i-1] retlst = [0]*len(lst) for i in range(len(lst)-1,-1,-1): retlst...
[ "tanvisutar888@gmail.com" ]
tanvisutar888@gmail.com
904014a8e646439f85ddd7b101581d36440fe02e
a21bd64266faf24b5f6bf5c4ab29d91d868235bc
/vk3/views.py
900c31b035c409a9797c5360506677041241a999
[]
no_license
vasokgenius/vk3
2193e050997923dd90f8822225296b75837fd156
bb28d9e0b9a79fc82eb86e317ad2b1cacc538a60
refs/heads/master
2021-01-10T02:07:31.199275
2015-12-22T10:30:48
2015-12-22T10:30:48
48,188,808
0
0
null
null
null
null
UTF-8
Python
false
false
148
py
from django.shortcuts import render def HomePageView(request): template_name = 'vk3/index.html' return render(request, template_name, {})
[ "vasokgenius@gmail.com" ]
vasokgenius@gmail.com
69e36488dbb1da7290a18e486df9bb204c0c48f2
f61a08144ab3d54db4b9d966074d49ffc32d72e2
/full_pipeline_estimator.py
d818deec635a5bdba2d07278e26cc9134e2f07d1
[]
no_license
sailfish009/qgraph
477fe3796330cc49fa9ff3700f276bad75f73781
25e2563d4d843ef716235d1f94e2e483448be674
refs/heads/main
2023-08-14T22:33:48.558252
2021-10-04T08:56:44
2021-10-04T08:56:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,635
py
from data_preprocessing import load_dataset import ray from utils import generate_signal_fourier, return_fourier_from_dataset, jensen_shannon import os import numpy as np import networkx as nx from mpi4py import MPI import pickle from time import time import grakel import pickle from estimators import QuantumKernelEsti...
[ "slimane.thabet@gmail.com" ]
slimane.thabet@gmail.com
976d52b5b3eee597cf4d6aa50e8dc8f7f48f084a
f931334f60d17c4b2f6d394044e7561c4cb13dd3
/server/helpers/error.py
380616918badcc14e977680131c59a86661bec0b
[ "MIT" ]
permissive
Merkll/llcolorizer
cfdad59bd0434dd14108a3a01d55fec846f56e7e
b992291da9f3dad0775dac3fa84b062661b832ef
refs/heads/develop
2022-07-18T15:41:02.986760
2019-09-24T17:58:56
2019-09-24T17:58:56
210,564,321
2
0
MIT
2021-03-20T01:44:59
2019-09-24T09:30:32
Python
UTF-8
Python
false
false
540
py
from werkzeug.exceptions import HTTPException def error_handler(func): def catchError(*args, **kwargs): try: print(args, kwargs) return func(*args, **kwargs) except HTTPException as e: return { "status": "error", "message": e.description } except FileNotFoundError as e: return { "...
[ "toluwase103@gmail.com" ]
toluwase103@gmail.com
7c464d2064133dba060722b62dd9afa6f8efab4a
7864ab2c567f5f3a98e7ab38ff38a3bd7c816fde
/fireplace/cards/gvg/spare_parts.py
eabe7299eaca68fb72038d7f15c9cb40af004331
[]
no_license
gmagogsfm/fireplace
bfa1b57254b673317442518a997c635183bd3e61
f16ee0659310a003d54552d0660ea3eb15c4da3f
refs/heads/master
2021-01-09T09:06:35.035741
2015-02-09T14:30:24
2015-02-09T14:30:24
28,540,192
1
0
null
null
null
null
UTF-8
Python
false
false
799
py
""" Spare Parts """ from ..utils import * # Armor Plating class PART_001: action = buffTarget("PART_001e") class PART_001e: Health = 1 # Time Rewinder class PART_002: action = bounceTarget # Rusty Horn class PART_003: def action(self, target): target.taunt = True # Finicky Cloakfield class PART_004: ac...
[ "jerome@leclan.ch" ]
jerome@leclan.ch
dc15bee7ed785c88652e7fe2f9f9ba0219f8bd7d
28def23ece65b357a18368c8816e63e5d767f147
/utils/segment.py
63642a573ebcc81715d76197833ba37c1f80b24a
[ "MIT" ]
permissive
jeongHwarr/high-res-mapping
952d9faea57b980a04dde5162602f42444ffd665
fb485501c8c2aa92e389fa98d2a9aac8f09bd034
refs/heads/master
2023-02-13T10:58:12.468128
2021-01-06T06:01:26
2021-01-06T06:01:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,458
py
from utils import percentile from skimage import segmentation import SimpleITK as sitk import numpy as np def felzenszwalb(image, params=None): """ Wrapper for scikit-image's felzenszwalb segmentation. Mainly added for namespace uniformity and for ease with the default parameters :param image: An imag...
[ "thanostagaris@gmail.com" ]
thanostagaris@gmail.com
8f5b55199e9ae377dace44648911b6bf3471f6c2
da4739e9d8441ea53110b972dedf642442037052
/Web/migrations/0004_auto_20180531_1725.py
9a40d90f5dd02157601d8962f07b12b96c1b5694
[]
no_license
likehang/software_WedWeb
149aef692b4791a7dcd195964fe9d317731416ca
dfc575de55b2246be61664be870be8073924e206
refs/heads/master
2020-03-21T17:33:31.740487
2018-09-12T02:14:17
2018-09-12T02:14:17
138,839,093
1
0
null
null
null
null
UTF-8
Python
false
false
679
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-05-31 09:25 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Web', '0003_auto_20180531_1720'), ] operations = [ migrations.AlterField( ...
[ "lkh741@hotmail.com" ]
lkh741@hotmail.com
04cd05508042989691d85ccef1ca08d5abdead58
b3dab812b9926b676ac05f203e3286d145995eba
/Nika/config.py
900935c8148e834ebdc5af5abef9b6ff7446747c
[ "MIT" ]
permissive
bekkazy-k/Nika
838a0afe14fc73024965ac0acd757bf549a476ca
47e5c67a2ccceb2f6a61531de31707d81af66a54
refs/heads/master
2020-07-23T09:24:01.048899
2020-01-07T09:19:25
2020-01-07T09:19:25
207,512,591
3
2
MIT
2020-03-16T03:39:34
2019-09-10T09:03:28
Python
UTF-8
Python
false
false
1,579
py
import profig class Config: def __init__(self, conf_type="dev"): """ Класс конфигураций. В корне проекта требуются файлы config.cfg и configDev.cfg :param conf_type: Тип конфигураций (prod | dev) """ self.conf_type = conf_type if conf_type == "prod": ...
[ "bekkazy.k@gmail.com" ]
bekkazy.k@gmail.com
9c7997be9cd575f150d0f208a7ab48236e792676
ffc6efca14efd126e9b0541e7b0c1f3a05ee90e1
/algorithms/sorts.py
639abd50908bf5d6bb9026c50b0d6391653e9e3c
[]
no_license
dlopes7/python-tests
65b6687fcee9c6230d1fd13aa2941fef34cbaa8f
93c175c717499f75a2f533c2bccf4e4e0b886e25
refs/heads/master
2021-01-13T00:16:32.516708
2015-12-28T17:45:43
2015-12-28T17:45:43
48,704,303
0
0
null
null
null
null
UTF-8
Python
false
false
3,112
py
import random import pygame from algorithms.colors import * def draw_array(array, nome, frame): DISPLAY.fill(BLACK) aux_surf = DISPLAY_FONT.render(nome+ ' - ' + str(frame), True, WHITE) aux_rect = aux_surf.get_rect() aux_rect.topleft = (10, 10) DISPLAY.blit(aux_surf, aux_rect) for idx, va...
[ "davidribeirolopes@gmail.com" ]
davidribeirolopes@gmail.com
2b2100ec9347131956806965b7f91fa9cdcb9043
83897262c3ccd9522ed9b3929b10b0487eb79f16
/logistic-regression.py
bfe5a39ad1149141d2656dcd5498d7c6077a784d
[]
no_license
MittaDhanunjaya/DataScience
e6efb4444687df1ab495ed529cd10ae8437f958e
58b8a805def44b5facc5999708426c4d39b915f0
refs/heads/master
2021-09-04T06:18:32.010728
2018-01-16T16:51:26
2018-01-16T16:51:26
103,181,641
0
0
null
null
null
null
UTF-8
Python
false
false
2,556
py
#import the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd #import dataset dataset = pd.read_csv('Social_Network_Ads.csv') X = dataset.iloc[:,[2,3]].values y = dataset.iloc[:,4].values #Splitting the dataset into training and test sets from sklearn.cross_validation import trai...
[ "noreply@github.com" ]
MittaDhanunjaya.noreply@github.com
3232f21201e472510adc7afd7d2fd0ad5e220875
849b7d55b5efc30c7b71f7f4b19288019fa13f74
/types8.py
25956d69eccd00baff6e8b805da5cd43695be81d
[]
no_license
Nightkot-Juve/Lesson1
111d0fec033b84fcf37072826ddc1723cdbb320f
932f95194bf680ef5bcb73bfee89f264df52ded2
refs/heads/main
2023-03-08T06:38:04.869429
2021-02-13T14:59:38
2021-02-13T14:59:38
338,595,178
0
0
null
null
null
null
UTF-8
Python
false
false
267
py
product = { "city": "Москва", "temperature": 20 } print(product["city"]) print(product["temperature"] - 5) print(product) print(product.get("country")) print(product.get("country", "Россия")) product["date"] = "27.05.2019" print(len(product))
[ "ktp87@mail.ru" ]
ktp87@mail.ru
ae620efea9987cc629259704e3869f4454db1c9c
06164402e4a9c46a03d579175e588519dbd4048d
/experiments/experiments_toy/test_varying_missing/nmtf_icm.py
4434c3df200e94d25a479b0008f59fced2e0e8ae
[ "Apache-2.0" ]
permissive
XuanHeIIIS/BNMTF
19547e36466ecee8d45fb0002d305ee6b7ba6c23
34df0c3cebc5e67a5e39762b9305b75d73a2a0e0
refs/heads/master
2020-03-27T12:47:58.375964
2018-06-10T10:22:19
2018-06-10T10:22:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
22,991
py
""" Test the performance of ICM for recovering a toy dataset, where we vary the fraction of entries that are missing. We use the correct number of latent factors and same priors as used to generate the data. I, J, K, L = 100, 50, 10, 5 """ import sys, os project_location = os.path.dirname(__file__)+"/../../../../" ...
[ "tab43@cam.ac.uk" ]
tab43@cam.ac.uk
84d78b6245a076777dc308a6a42e78272b8479ec
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03330/s929352693.py
253b3802f55ad2c29dbbdab985c6ea0170a9fbee
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
712
py
n,c=map(int,input().split()) irohen=[list(map(int,input().split())) for i in range(c)] grid=[list(map(int,input().split())) for i in range(n)] rem0=[0]*c rem1=[0]*c rem2=[0]*c for i in range(n): for j in range(n): if (i+j)%3==0: rem0[grid[i][j]-1]+=1 elif (i+j)%3==1: rem1[gri...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
6e8c6813730dff827293a1ea8bb73eac583c808b
32a3396cf8d879c92c09f5411af946084ed2ca3c
/blog/company_name_context_processor.py
945c41dda6a2e989d60d18204aab0c0e256507cc
[]
no_license
mPowering/django-mpowering-healthcare
5ae527dd7abac8d2f9debc506b6cb197b4db0ab8
52cff8d864d9363f0115831963bfa43a92ee2b47
refs/heads/master
2020-12-25T18:16:32.992431
2014-05-23T15:52:46
2014-05-23T15:52:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
# Django imports from django.conf import settings def get_company_name(request): return {"company": settings.COMPANY_NAME}
[ "gitumarkk@gmail.com" ]
gitumarkk@gmail.com
95d03c0871078dbaef667f5b4515468e49b15261
d99e5b65624f115db6982dd88af9390e8d766042
/tensorflow/contrib/slim/python/slim/nets/inception_v3.py
77c95b155f3b20cb6702b87bcdebee7af607416f
[ "Apache-2.0" ]
permissive
golbin/tensorflow
03dbecb6f093f5628c072086c780659bcc14dba8
8a58a304bdcf909f8b55ec49e9280fc3af01c7d3
refs/heads/master
2021-01-12T07:05:41.360503
2016-12-20T00:15:41
2016-12-20T00:15:41
76,907,006
2
0
null
2016-12-19T23:58:44
2016-12-19T23:58:43
null
UTF-8
Python
false
false
28,924
py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
f915395889c2ac8de4bbde775064ede7ce868408
40714ad7e38472adf00215f2cdedd7943bc20d32
/Tests/test_interTrialScene.py
007241acbfd97c2425b0d1347f98f05d67c78072
[]
no_license
JoachimT99/TeleologicalTask
17a7d48a92ecc88b368e0ed1a74c80523ba417cc
de6054ce8373a952cb283c1596a77158a8826316
refs/heads/master
2020-08-17T08:21:04.833306
2019-11-12T08:41:51
2019-11-12T08:41:51
215,638,350
0
0
null
null
null
null
UTF-8
Python
false
false
755
py
from interTrialScene import InterTrialScene from unittest.mock import Mock, patch import pytest @pytest.fixture @patch("interTrialScene.visual.TextStim") def scene(mock): return InterTrialScene(Mock(), Mock(), Mock()) @patch("interTrialScene.event.getKeys") def test_update(mock_keys, scene): scene.draw = Mock...
[ "46404109+JoachimT99@users.noreply.github.com" ]
46404109+JoachimT99@users.noreply.github.com
9582efa970cbb8fbcb5908d20387bee0ac01cdcb
00b405a49ac6108d24986243c4b52fa53fb58acc
/0517_super_washing_machines.py
2f24982ec5d0bc0f3747d006eebaca662cd97192
[]
no_license
Shin-jay7/LeetCode
0325983fff95bfbc43a528812582cbf9b7c0c2f2
953b0b19764744753f01c661da969bdab6521504
refs/heads/master
2023-07-19T07:17:21.513531
2023-07-15T06:05:06
2023-07-15T06:05:06
231,285,199
0
0
null
null
null
null
UTF-8
Python
false
false
549
py
from __future__ import annotations from typing import List class Solution: def findMinMoves(self, machines: List[int]) -> int: total, n = sum(machines), len(machines) if total % n: return -1 target, ans, to_right = total // n, 0, 0 # to_right: num of dresses to pass to ...
[ "shin@jay7.net" ]
shin@jay7.net
ba1f60d9fda6b44f7c05f7f9ce909bf78b4fca00
bd93f03f77d79d981700fe0183504d38da86f9cd
/env/bin/wheel
19794edc4b0f652e87c6d6dc92b5b379615c875f
[]
no_license
jenpaff/ai-calling
b315d570cd0146889dd715b87eae7305ed340651
f17685d84f0933b307d858a6fb4ce4230004c3c8
refs/heads/master
2021-01-20T01:56:45.954347
2017-04-24T09:09:16
2017-04-24T09:09:16
88,881,832
0
3
null
null
null
null
UTF-8
Python
false
false
238
#!/home/jenpaff0/ai-calling/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from wheel.tool import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "jenpaff0gmail.com" ]
jenpaff0gmail.com
adaf20cce29d78f8e4fe03fc406520ccaae3d93a
8beef1226cd6323d2db3a3533d62262b804c32e1
/nightstand/gui.py
d04f6afa6fa4ffc9ed5d8cde8b65b51986c22be2
[ "MIT" ]
permissive
rdhammond/nightstand
3a659a79df177fe98d69b06705829268d327fbed
37a5a2cc71070f83f759676fa15f6d2d6cb5499b
refs/heads/master
2020-12-24T06:38:52.113105
2016-06-22T17:26:30
2016-06-22T17:26:30
61,142,319
0
1
null
null
null
null
UTF-8
Python
false
false
9,987
py
#!/usr/bin/python import datetime import pygame import pygame.freetype import events from events import Events from icons import Icons from net.geolocation import GeoLocation from feeds.weatherfeed import WeatherFeed from feeds.pollenfeed import PollenFeed from feeds.sunintensityfeed import SunIntensityFeed MINUTE_DE...
[ "viztheman@gmail.com" ]
viztheman@gmail.com
e0d0b5588a00a49a94af2156cc7c63beb8764e13
0e9c9ba182fb857114d074a899118570523ed76d
/home/migrations/0005_auto_20201218_2110.py
3320efc86aa0e946394aea3f556832ce92ab7e88
[]
no_license
zeeshan-bhatti/Shop-online
3c0e89fbf3e1ec055a3b81fdf84bff663b294262
ede75721739c05a9f6db0a7d3d15ea1194327aa6
refs/heads/main
2023-02-09T17:10:09.850556
2021-01-03T19:44:42
2021-01-03T19:44:42
315,279,786
0
0
null
null
null
null
UTF-8
Python
false
false
987
py
# Generated by Django 3.1.1 on 2020-12-18 16:10 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0004_auto_20201213_0855'), ] operations = [ migrations.RemoveField( model_name='product', ...
[ "noreply@github.com" ]
zeeshan-bhatti.noreply@github.com
a59374a0472d8bfff03c6d473585d6f4ab62f318
a1f3c867fb227fcac5a1de50d8e49ed6577dc798
/users/admin.py
49567d82100d126d01d9c6b06327850be62ebd15
[]
no_license
bibishan-pandey/bookstore
0155fe4e756db5e4a8ba10578f061945d33323e4
da2c54c34edcc945ce7f808a2ed6c1b7540a950d
refs/heads/master
2023-03-05T01:07:03.748728
2021-02-12T06:50:01
2021-02-12T06:50:01
337,664,199
0
0
null
2021-02-11T12:08:41
2021-02-10T08:42:04
JavaScript
UTF-8
Python
false
false
581
py
from django.contrib import admin from django.contrib.auth import get_user_model from django.contrib.auth.admin import UserAdmin from users.forms import CustomUserChangeForm from users.forms import CustomUserCreationForm CustomUser = get_user_model() class CustomUserAdmin(UserAdmin): add_form = CustomUserCreatio...
[ "bibishan.b.pandey@gmail.com" ]
bibishan.b.pandey@gmail.com
9e6ee83397fceeb430e08c5252d3be5dfb030f62
c5458f2d53d02cb2967434122183ed064e1929f9
/sdks/python/setup.py
0e7640cc7b4ed0f33efa8b96d3aad2210fed2a4f
[]
no_license
ross-weir/ergo-node-api-sdks
fd7a32f79784dbd336ef6ddb9702b9dd9a964e75
9935ef703b14760854b24045c1307602b282c4fb
refs/heads/main
2023-08-24T05:12:30.761145
2021-11-08T10:28:10
2021-11-08T10:28:10
425,785,912
0
0
null
null
null
null
UTF-8
Python
false
false
1,087
py
""" Ergo Node API API docs for Ergo Node. Models are shared between all Ergo products # noqa: E501 The version of the OpenAPI document: 4.0.15 Contact: ergoplatform@protonmail.com Generated by: https://openapi-generator.tech """ from setuptools import setup, find_packages # noqa: H301 NAME = ...
[ "29697678+ross-weir@users.noreply.github.com" ]
29697678+ross-weir@users.noreply.github.com
8d615fa638b973f4aa9bfba25588878e9931efc2
ae3f23efcdc4b7fdd1c224043d0ece002955956e
/xplace/xplace/network/domains/apps.py
800f984530bd9ae92e8cb8591bf123ddcc22521a
[]
no_license
alexeysofin/xplace
4466682fe76c808288d69f2808ddbca38a583bc4
9f12f066a62fae4e789bee94e5e554cc6de26d90
refs/heads/master
2023-01-12T01:02:40.137609
2021-02-14T20:41:30
2021-02-14T20:41:30
208,021,139
0
0
null
2023-01-04T10:18:46
2019-09-12T10:07:17
Python
UTF-8
Python
false
false
104
py
from django.apps import AppConfig class DomainsConfig(AppConfig): name = 'xplace.network.domains'
[ "sofin.moffin" ]
sofin.moffin
318d561c0a9bbdac845fcdf24ce7e7345f76841d
86fdc0f223bf10542011c1c812168240d533c250
/LearningNavigationInstructions/code/MARCO/nltk_contrib/misc/festival/numbers.py
c1bab209c771cff4371781cb1b11249819c87bd7
[]
no_license
ericrosenbrown/LanguageCPDA
e8b145efe39fd7d5455d890fd21f5e5458a5d555
a5f187599047464620880cece69d841b8938b2f7
refs/heads/master
2021-04-25T07:10:56.120682
2018-03-28T15:21:27
2018-03-28T15:21:27
122,228,933
1
0
null
null
null
null
UTF-8
Python
false
false
3,734
py
## # numbers.py: Numbers helper module for Speech Tokenizer # # Author: David Zhang <dlz@students.cs.mu.oz.au> # Steven Bird <sb@cs.mu.oz.au> # URL: <http://nltk.sf.net> # For license information, see LICENSE.TXT # # This module contains various functions to process different kinds of # numbers, including digits, dec...
[ "ericrosen@Erics-MBP-3.fios-router.home" ]
ericrosen@Erics-MBP-3.fios-router.home
c6658efc9c3b1000d0b1be621573728ac5c30b16
fc4f97918ac9366837cb05f51091178bbf37ac18
/shelve_ex.py
d7cf2d49cdfc05a1eac38bbb50efef5cfafaa194
[]
no_license
zoejane/automate-python
ae72ef7bed291b757ee41d578844c132cd1fc192
9c4e8ce69da21dc58e4fc85604d9e1fc848d8c3e
refs/heads/master
2021-01-10T01:51:23.009746
2015-10-24T13:14:09
2015-10-24T13:14:09
43,808,231
0
0
null
null
null
null
UTF-8
Python
false
false
272
py
import shelve # list,dictionary,etc.. shelfFile =shelve.open('mydata') shelfFile['cats']=['Pooka','Simon','Cleo'] shelfFile.close() shelfFile =shelve.open('mydata') print(shelfFile['cats']) print(list(shelfFile.keys())) print(list(shelfFile.values())) shelfFile.close()
[ "dadac123@gmail.com" ]
dadac123@gmail.com
7b53a6dde1bd8e550782891bc7ea6c8a288fb41e
b005369db9f220e8548a11fceab8543a726def3c
/stacked-autoencoder-pytorch/untitled.py
d5d81ba59073148107d09a96f751aa0269d6617a
[]
no_license
liuyanqi/shallow_learning
9ec2b365986f66f2a3c07d377e3d979a07ebb2bd
b5fafb5b6ae5886bbd1a4ed03611eaee5481b627
refs/heads/master
2020-04-09T03:27:21.907715
2018-12-01T22:16:23
2018-12-01T22:16:23
159,983,237
0
0
null
null
null
null
UTF-8
Python
false
false
3,552
py
import os import torch import torch._utils try: torch._utils._rebuild_tensor_v2 except AttributeError: def _rebuild_tensor_v2(storage, storage_offset, size, stride, requires_grad, backward_hooks): tensor = torch._utils._rebuild_tensor(storage, storage_offset, size, stride) tensor.requires_grad ...
[ "liuyanqi@umich.edu" ]
liuyanqi@umich.edu
e62dbf0c34dc984fc376e462e0460312c6c73a85
2d1fa2119bcbdd30070b853fdffb76b375171d32
/start.py
5bfed8e616b7e2377642cb123ab826f51969d995
[]
no_license
xdrive-mov/Autobackup
74a58218349b9557253b1fdcfe59256e0a957fb6
0708fb18043e2829cd87ccbdfb99cf6f52a17843
refs/heads/main
2023-08-25T00:28:00.869295
2021-11-02T04:55:02
2021-11-02T04:55:02
423,708,139
0
0
null
null
null
null
UTF-8
Python
false
false
1,351
py
import os from dotenv import load_dotenv import requests import time import subprocess import shutil load_dotenv() def downloadSA(salink): res = requests.get(salink) if res.status_code == 200: with open('accounts.zip', 'wb') as f: f.truncate(0) f.write(res.content) subprocess.run(["unzip", "-...
[ "untitlebot.mm@gmail.com" ]
untitlebot.mm@gmail.com
699107beaaa0112e11b92168d41891cd13d99d01
996bb6bf244dded0a778b9035e34311a4ca0fbfe
/docs/conf.py
57e9c9ffe3ccd4b6a7747a216820b2bfb4ab4c67
[ "MIT" ]
permissive
edeposit/cz-urnnbn-api
7eb4229c03051300ddc375030d8233e8b3b2e95f
2c9d36648491bfcbf0f29bedaf6f507a51805f8e
refs/heads/master
2020-05-30T17:01:38.993229
2015-10-12T12:38:11
2015-10-12T12:38:11
31,064,934
1
0
null
null
null
null
UTF-8
Python
false
false
2,418
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # import os import sys import urllib import os.path sys.path.insert(0, os.path.abspath('../src/')) extensions = [ 'sphinx.ext.autodoc', 'sphinxcontrib.napoleon', 'sphinx.ext.intersphinx' ] intersphinx_mapping = { 'python': ('http://docs.python.org/2.7', ...
[ "bystrousak@kitakitsune.org" ]
bystrousak@kitakitsune.org
d6f19b25a197dbe3cf31cfdf327e9d9a6c284f34
7cdd8ef81290f9e8415345c2b0507788ffdf2804
/main.py
4af76ef5bb3162f66ff6e6140a18937f947a8a78
[]
no_license
jeffoxford/paa
3238939df99efe5ea8b8e5b3d3e02b3fca2c23e0
36b06c3eaf8c58b9eea05a6e4812897f75201414
refs/heads/main
2023-08-17T12:06:51.897575
2021-10-05T17:10:41
2021-10-05T17:10:41
411,915,743
0
0
null
null
null
null
UTF-8
Python
false
false
2,137
py
from typing import Text import pandas as pd import streamlit as st import time import numpy as np import base64 from io import BytesIO import people_also_ask import re question_final= [] def get_question (term,list_obj): ll = people_also_ask.get_related_questions(term, 10) for q in ll : ...
[ "noreply@github.com" ]
jeffoxford.noreply@github.com
e40f0aa65d66c199d7eaa09851af21ddf887b0ea
cd336f20e0c8e24e694c52672f1e6d4f3b527a26
/code/data_preprocess.py
8fef2a00e9ac345774d5f2695c2204f262cf3594
[]
no_license
kenneth-lee-ch/citibike
0da300171b77955d0aacebd149d95cf77805d25c
6b0ef81d2a0ced164afb3599f511b76a69815fbd
refs/heads/master
2021-02-19T10:26:53.430820
2020-03-25T21:31:55
2020-03-25T21:31:55
245,303,838
0
0
null
null
null
null
UTF-8
Python
false
false
3,703
py
import numpy as np import pandas as pd import sqlalchemy as db from sklearn import preprocessing ## Create database engine sqlite_file = 'data/bike.sqlite' engine = db.create_engine('sqlite:///' + sqlite_file) def get_OD(h1,h2): """ obtain mean duration for pickups/returns and number of starts/ends per ho...
[ "leechinhongkenneth@gmail.com" ]
leechinhongkenneth@gmail.com
4934be0246440bd92483f9a2bae2bfe2b07fda0b
45602e6860d4f86b92692be8b183ecae9c87bbed
/Week8/day2/exercise/xp/animals_env/bin/sqlformat
432a33afd9aac454df9b444310af05b043df3332
[]
no_license
eliAzulai/DI_Bootcamp
40b69f9ef301a6783373d19facaeba25b033b2f4
667f773b441adb2354b2c4be1081173d4cca7383
refs/heads/main
2023-04-20T11:52:21.503410
2021-05-24T15:37:14
2021-05-24T15:37:14
354,838,342
0
0
null
2021-04-26T08:18:51
2021-04-05T13:09:21
HTML
UTF-8
Python
false
false
289
#!/Users/Azulai/Dropbox/Developers_Institute/Week8/day2/exercise/xp/animals_env/bin/python3 # -*- coding: utf-8 -*- import re import sys from sqlparse.__main__ import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "Eli@Yans-MacBook-Air.local" ]
Eli@Yans-MacBook-Air.local
c8b0402d15b859aaa402c2e24f7481605a77cd2a
762de1c66746267e05d53184d7854934616416ee
/tools/MolSurfGenService/MolSurfaceGen32/chimera/share/SimpleSession/versions/v25.py
ab3a358e3694974f623f33517a4eaf4975369ca4
[]
no_license
project-renard-survey/semanticscience
6e74f5d475cf0ebcd9bb7be6bb9522cf15ed8677
024890dba56c3e82ea2cf8c773965117f8cda339
refs/heads/master
2021-07-07T21:47:17.767414
2017-10-04T12:13:50
2017-10-04T12:13:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,944
py
# --- UCSF Chimera Copyright --- # Copyright (c) 2000 Regents of the University of California. # All rights reserved. This software provided pursuant to a # license agreement containing restrictions on its disclosure, # duplication and use. This notice must be embedded in or # attached to all copies, including partia...
[ "alex.gawronski@d60594c4-dda9-11dd-87d8-31aa04531ed5" ]
alex.gawronski@d60594c4-dda9-11dd-87d8-31aa04531ed5
29e07ede867807108d273fe7196934df3cefeaac
b0cfa5e2d84057ece11f3316f82b806f1383a9df
/modules/standard/whois/org_list_controller.py
634951f4f7f98df7331e81c2e4726dc4fdd7b993
[]
no_license
comatech/Tyrbot
0b862afc834ec2d587fd5f8f67926569b109b667
1f8648d81c0a5f089ef7aaa6581809a47657b624
refs/heads/master
2020-07-06T06:40:13.863215
2019-07-21T09:51:45
2019-07-21T09:51:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,161
py
from core.buddy_service import BuddyService from core.chat_blob import ChatBlob from core.command_param_types import Int, Any, Character from core.decorators import instance, command, event from core.dict_object import DictObject @instance() class OrgListController: ORGLIST_BUDDY_TYPE = "orglist" def __init_...
[ "email1@jkbff.com" ]
email1@jkbff.com
c2539f7a23add50e46692c0ebfc5924d628e66d7
ccace50ae5b603ca4d63d22cfa6cc618ffa1a040
/Day1/My solutions/mileage_cal.py
bf91be754b2df036bb4285d7a9f69a8114e5c38a
[]
no_license
vinoddasaniya/FSDP2019
3badc85edfbfc58d8d659f8073176009bff30e29
31d3502aeb7adfdebb97d13beba0d40098f20c4e
refs/heads/master
2020-05-24T07:13:33.034721
2019-05-17T06:34:26
2019-05-17T06:34:26
187,154,681
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
# -*- coding: utf-8 -*- """ Created on Tue May 7 11:43:42 2019 @author: kk """ #Assume my car travels 100 Kilometres after putting 5 litres of fuel. #Calculate the average of my car. travels = 100 fuel = 5 average = travels / fuel print (average)
[ "vinodc0101@gmail.com" ]
vinodc0101@gmail.com
73df75db6f73aa73017618cd51953ec831274985
f0b1e58de2dfaad5a689ac32685e8201777fdd3c
/Base_model/intention/intent_classifier.py
25161550038682d3f810c7f4c4c3793def6ecbc5
[]
no_license
BarryZM/Chatbot_Utils
3f99d33769709f3a116a9dec4fb32106b9396cb0
62dd366287839251a36b3ee3096a2a19da78e857
refs/heads/master
2022-11-19T23:50:18.003354
2020-07-22T13:32:19
2020-07-22T13:32:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
35,454
py
# -*- coding: utf-8 -*- ''' @Author : Xu @Software: ide @File : domain_classifier.py @Time : 2019-11-06 @Desc : 基于bert的分类模型的fine-tune的领域分类模型,模型准确率验证通过,但是需要修改模型的初始化方法 ''' import os, csv, random, collections, pickle import tensorflow as tf import numpy as np import pickle as pkl import pathlib fr...
[ "charlesxu86@163.com" ]
charlesxu86@163.com
87ec1b0944c02d783befb55739b5ea97cf99a0f0
48baab4bebb574826fa933d5ff28f79907ec9efd
/python/src/coco_dataset.py
71b81416136f5f82950f034531258dc5f09a84ce
[ "MIT" ]
permissive
Kolkir/feature-point-cnn
728fc10c0307435fbdb3e2455be87cebe36c5612
c186ea566d8e46324912161e1e94742bede61339
refs/heads/main
2023-08-14T20:28:03.406003
2021-10-01T11:59:50
2021-10-01T11:59:50
362,693,336
4
1
null
null
null
null
UTF-8
Python
false
false
1,885
py
import torch from torch.utils.data import Dataset import os from pathlib import Path from numpy.random import default_rng from src.dataset_transforms import dataset_transforms from src.dataset_utils import read_dataset_item from src.homographies import homographic_augmentation, HomographyConfig from src.netutils impor...
[ "rotate@ukr.net" ]
rotate@ukr.net
e1093bebdf3df61008fd5b61e141d249b554b4a2
d3063fe369b4f4fff7fd547f198f2b4b3481b2e0
/removeNthnodefromlist.py
7822eb672d9c6d4829454147b79fc92d2c3857cf
[]
no_license
Rakshitha94/Linked-List-1
a38a645d1d9cc4f04c3fb202c00c509e8d9af0e8
a78c85af27ba317b692afa534ca8019d1f1115ef
refs/heads/master
2020-07-25T04:58:17.414392
2019-09-13T19:34:00
2019-09-13T19:34:00
208,172,892
0
0
null
null
null
null
UTF-8
Python
false
false
1,200
py
# leetcode: accepted # time complexity: o(n) # doubts (yes): please check the comments # explaination: we are taking two pointers, p1 and p2. We shift the p1 pointers , n places from the begining and then # we move the p1 till the end if the linkedlist and move p2 along with it. # when p1 shows null, it means p2 is n...
[ "rakshithalr3007@gmail.com" ]
rakshithalr3007@gmail.com
159bafbca9d8225e91b350e8bd633513f6f0b18b
6e333d863a760c27ac4a6c09e6b98bf2ecdc7e83
/projects/ticket_vendor.py
c875d778766a39da315da3d654188a93eb3d419f
[]
no_license
aaronwebre/something-python
e95d1ec6e99be89ebb285f2c53ed1ff4a07904cb
52648018ac456b32766874aedcce3fc57e7fe883
refs/heads/master
2020-05-23T18:23:22.847267
2019-09-17T15:51:59
2019-09-17T15:51:59
186,887,106
0
0
null
null
null
null
UTF-8
Python
false
false
1,163
py
TICKET_PRICE = 10 SERVICE_CHARGE = 2 tickets_remaining = 100 def calculate_price(number_of_tickets): return (TICKET_PRICE * number_of_tickets) + SERVICE_CHARGE while tickets_remaining >= 1: print("There are {} tickets remaining.".format(tickets_remaining)) name = input("What is your name? " ) num_tic...
[ "aaron.webre@g5platform.com" ]
aaron.webre@g5platform.com
d895058633487a8030a2be04368b1f2354a19e9f
6729900cb99d811a4b1720f569839297f4acb184
/real_state/real_state/urls.py
50be81eda6364454aa9bc428a5ef6f879c3f88c1
[]
no_license
maheshdrago/realestate
fc512fd11f8ad8c606422b49b691ee6705d7ba68
f6eed424044685968bafa66c962505ceac5ca7cf
refs/heads/master
2023-02-17T00:42:11.952782
2021-01-01T17:17:53
2021-01-01T17:17:53
326,009,735
0
0
null
null
null
null
UTF-8
Python
false
false
449
py
from django.contrib import admin from django.urls import path,include from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('contacts/',include('contacts.urls')), path('accounts/',include('accounts.urls')), path('admin/', admin.site.urls), path('',include('p...
[ "maheshdrago@gmail.com" ]
maheshdrago@gmail.com
5e7b773a645d10035473872284cbacaee7a108ee
87c518acaa2b9bf4f685b44ca487a58cd25262bb
/ex101.py
35bc9ecd6bd71f3d01427067d31a114db731b44b
[]
no_license
Matheuspaixaocrisostenes/Python
2a97e962ed77bb7b4dbdf60ae3ec8ebdbb290aa3
a175ef7e9b7562f1a52e436cadc5b73360f190f2
refs/heads/main
2023-06-28T13:52:42.855112
2021-07-22T13:50:05
2021-07-22T13:50:05
345,659,576
0
0
null
null
null
null
UTF-8
Python
false
false
418
py
def voto(ano): from datetime import date atual = date.today().year idade = atual - ano if idade < 16: return f'com {idade} anos. NÃO VOTA!' elif 16 <= idade < 18 or idade > 65: return f'com {idade} anos . VOTO OPCIONAL!' else: return f'com {idade} anos . VOTO OBRIGATORIO!...
[ "matheuspcrisostenes@gmail.com" ]
matheuspcrisostenes@gmail.com
fcea8033f91d904f8f2b1a9e4785ca4e4ce37cdd
0bef2fd51f198aeec9b74b14cfc1e4b9cd2f5cd3
/Modules/EmailHunter.py
e01c94770b8cc605e51afe40de72c1870d73e5f5
[]
no_license
sektlab/SimplyEmail
3e9f3ca68e9536e1257473e84f6684711081b0ee
ebc22c7ebbd71d4071764996b531343dfa951bec
refs/heads/master
2021-01-18T15:14:23.156376
2015-11-12T04:24:10
2015-11-12T04:24:10
46,047,041
2
0
null
2015-11-12T10:55:52
2015-11-12T10:55:52
null
UTF-8
Python
false
false
2,382
py
#!/usr/bin/env python import requests import configparser from pprint import pprint from Helpers import Parser from Helpers import helpers # Class will have the following properties: # 1) name / description # 2) main name called "ClassName" # 3) execute function (calls everthing it neeeds) # 4) places the findings int...
[ "iamfree2009@gmail.com" ]
iamfree2009@gmail.com
be8ba9e73db30402493becf02ec4687d74472442
a343a405ecc557a52974fa84bc0481cc11405b14
/33_searchRotatedSortedArray_V2.py
16dcda7bdf1a8844681f255d5bae37eca5ec09c1
[]
no_license
jennyChing/leetCode
926c2a5ff9f6c03152e93725b64f7bad804c415a
f3fc71f344cd758cfce77f16ab72992c99ab288e
refs/heads/master
2020-05-21T16:42:17.325980
2017-03-18T01:59:15
2017-03-18T01:59:15
61,048,131
2
0
null
null
null
null
UTF-8
Python
false
false
1,147
py
''' 33. Search in Rotated Sorted Array Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). You are given a target value to search. If found in the array return its index, otherwise return -1. You may assume no duplicate exists in the array. ''...
[ "jklife3@gmail.com" ]
jklife3@gmail.com
78043e7b370487d136bb2da6dd623f897b0ff00d
3297403d1d117484342695c7466f7c13ad6ec314
/src/tasks/python/preprocessing/run.py
185a90e15db9d315569663b85a1e768f4f9ffa86
[ "MIT" ]
permissive
seung-lab/Alembic
c7fbe38985f02e470fdd58ababd13199f0ad0d02
575c8ed2a5f8789e65de652c9349993c530de718
refs/heads/master
2020-04-15T00:03:11.301957
2018-10-04T18:26:18
2018-10-04T18:26:18
40,187,968
8
0
null
2018-04-20T03:15:17
2015-08-04T13:58:48
Julia
UTF-8
Python
false
false
193
py
from preprocessing import * import json import sys def main(arg): params = json.loads(arg) task = PreprocessChunkTask(**params) task.execute() if __name__ == "__main__": main(sys.argv[1])
[ "tmacrina@princeton.edu" ]
tmacrina@princeton.edu
7846f1a662558b7d0dd54ea0f620706d069b9d2e
388c2be5d9211ad3ec3cf10a9910d3155a5a9c22
/bot.py
54903a83fb4eb71f30a34b68bb83fa608d4d73f9
[]
no_license
soimmary/La-Belle-Epoque
ddc05fc39e5fb381219a843fa4254ff34c2e2c68
af37972abfff69aee49089e6c8ae67dfb25fce03
refs/heads/main
2023-06-02T04:47:52.870041
2021-06-19T12:39:43
2021-06-19T12:39:43
377,971,501
0
0
null
null
null
null
UTF-8
Python
false
false
2,009
py
import csv import telebot from telebot import types from geopy import distance token = "1678532360:AAG3iNv8KVbAfv61Ss6RQi-O1YdzCdI_AEg" bot = telebot.TeleBot(token) @bot.message_handler(commands=['start', 'help']) def send_welcome(message): keyboard = types.ReplyKeyboardMarkup(row_width=1, resize_keyboard=True)...
[ "noreply@github.com" ]
soimmary.noreply@github.com
acf3f83d7f62c84c967c3097d82a174f12128cc8
6296d071fb9f48d8a12b1a14b371f9c4da29f98b
/notebook_format/formats.py
9c774ef6ba757215b4411ff71f8112eb2f17798c
[]
no_license
rosdyana/programming
681b14d9977cca527b8d787ffbcc4322ceca4725
eef81128a76519c96c7dd3e236f7a3bcd7e48d71
refs/heads/master
2021-01-18T16:07:23.625612
2017-03-26T23:33:30
2017-03-26T23:33:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
701
py
import json import warnings import matplotlib.pyplot as plt from IPython.core.display import HTML def load_style(css_style = 'custom1.css'): """ custom1.css adapted from https://github.com/rlabbe/ThinkBayes/blob/master/code/custom.css custom2.css adapted from https://github.com/neilpanchal/iPython-Notebook-Theme...
[ "ethen8181@gmail.com" ]
ethen8181@gmail.com
09c088e3d7099c73195f29d151b22d5e0f5335f4
b6ff88078e4f08eb494b465bebb43bb8d4f3c3e9
/arm.py
1a97c06fd3857f963ab4483ef9e2dc8993941a6e
[]
no_license
JonComo/tictac
2c44fe9c7dd845ae759ef8de45346739d5e678b2
b7eccdb7c69ac14ba6f94886aff79568b9739ae0
refs/heads/master
2021-01-06T20:39:28.844496
2017-08-07T04:44:29
2017-08-07T04:44:29
99,537,601
9
1
null
null
null
null
UTF-8
Python
false
false
3,682
py
import serial from time import sleep import numpy as np class Arm(): def __init__(self): pass def connect(self): loc = "/dev/cu.usbmodem1421" self.ser = serial.Serial(loc, 115200) if self.ser is None: print("error, no serial") print("Don't forget to chan...
[ "jon@underground.net" ]
jon@underground.net
85456bfbd2edfd1d3972834b56a319ed2c955e05
6ceddff7b80a7c00e40120b4a0adf6696391d683
/covid/db/italy_province.py
720303e6b95ad320de8dd31a5441b3b68717ab28
[]
no_license
mighelone/covid-dashboard
806250380c05e1efc74429a344a006357ec18da1
79895a549c521dd51a3cd548aec7da9707d90e3a
refs/heads/master
2022-11-20T09:42:21.276585
2020-07-14T11:29:52
2020-07-14T11:29:52
255,083,788
0
0
null
2020-07-14T09:25:56
2020-04-12T13:03:44
Python
UTF-8
Python
false
false
577
py
from ..extension import db class ItalyProvince(db.Model): __tablename__ = "italy_province" codice_provincia = db.Column(db.Integer, primary_key=True) sigla_provincia = db.Column(db.String(2)) codice_regione = db.Column(db.Integer, db.ForeignKey("italy_region.codice_regione")) denominazione_provinc...
[ "michele.vascellari@gmail.com" ]
michele.vascellari@gmail.com
692d8143997ea4a4a2298292b6776e46b16bbf83
1bbb3446eb160e8a88deef07a19e3054b04e706e
/kbengine_demos_assets/scripts/base/Spaces.py
262d5ea760a93e9e84620626db7139f3654423d9
[]
no_license
ELMERzark/kbengine_e
2b13be71b39d7d7f6a03ce62fa3d68fb7824924d
37976b87f3a4d9bfc7842809f93dea03b03b881d
refs/heads/master
2020-05-23T22:21:30.625819
2019-12-03T01:50:09
2019-12-03T01:50:09
186,970,964
2
0
null
null
null
null
UTF-8
Python
false
false
3,151
py
# -*- coding: utf-8 -*- import KBEngine import Functor import d_spaces import SCDefine import Watcher from KBEDebug import * from SpaceAlloc import * from interfaces.GameObject import GameObject class Spaces(KBEngine.Entity, GameObject): """ 这是一个脚本层封装的空间管理器 KBEngine的space是一个抽象空间的概念,一个空间可以被脚本层视为游戏场景、游戏房间、甚至是一个宇宙。 "...
[ "ck0012011@live.com" ]
ck0012011@live.com
3bbddd1bbeb2a35468c28a37728f99bdf6f30c89
64bf39b96a014b5d3f69b3311430185c64a7ff0e
/intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_vpn_l2tp.py
8a679a3190e555ba61d89d2bd7d5cafd9ce95faa
[ "MIT" ]
permissive
SimonFangCisco/dne-dna-code
7072eba7da0389e37507b7a2aa5f7d0c0735a220
2ea7d4f00212f502bc684ac257371ada73da1ca9
refs/heads/master
2023-03-10T23:10:31.392558
2021-02-25T15:04:36
2021-02-25T15:04:36
342,274,373
0
0
MIT
2021-02-25T14:39:22
2021-02-25T14:39:22
null
UTF-8
Python
false
false
9,014
py
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019-2020 Fortinet, Inc. # # 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 3 of th...
[ "sifang@cisco.com" ]
sifang@cisco.com
f3fbf6e4d8dea2640f1779f770f849e1fae5714e
9146657d04bed0a405dde07560b34d1e0bc50a0c
/rubiksblindfoldedsolver.py
ce91657388c5bd7c7e67e009147cb455cde2a759
[ "MIT" ]
permissive
dend456/randomscripts
a064e7fc544b2c0f6a7f00cb6ae05ccefe2f2f3c
4d31670f9dc542c6fe6926a56bd1b2263701f3ff
refs/heads/master
2021-05-25T09:34:42.928940
2020-08-22T22:03:34
2020-08-22T22:03:34
36,954,594
1
0
null
null
null
null
UTF-8
Python
false
false
9,824
py
algorithms = {'T' : "R U R' U' R' F R2 U' R' U' R U R' F'", 'Y' : "R U' R' U' R U R' F' R U R' U' R' F R", 'Jb': "R U R' F' R U R' U' R' F R2 U' R' U'",'Ja': "F U' R' F R2 U' R' U' R U R' F' R U R' F'",'parity' : "Ja T Ja"} cornerAlgs = {'B':"R D' Y D R'", 'C':"F Y F'", 'D':"F R' Y R F'", 'F':"F2 Y F2", 'G':"D2 R Y R' ...
[ "trakof2@gmail.com" ]
trakof2@gmail.com
3dd042d8b92081725b842476aae1beacd2718d81
18de9c325992bd88af135c0f1987158ed18373a3
/ronald.boadana/snakepro/main.py
9be55efeeff2dcfbff74efe801a910e7cd751f8c
[ "MIT" ]
permissive
LUDUSLab/stem-games
1d27ef13dce8ee905edc6146e9f18226bf6cadbb
347afa8b1511d76f8070fa69f27a49b57e551376
refs/heads/main
2023-07-02T23:07:33.385512
2021-08-10T18:12:03
2021-08-10T18:12:03
331,959,510
2
3
MIT
2021-01-29T17:09:04
2021-01-22T13:49:32
Python
UTF-8
Python
false
false
32
py
from game import * game_loop()
[ "rcb.eng20@uea.edu.br" ]
rcb.eng20@uea.edu.br
1acf3aac626719e28e5cc31da26c3cb09adc2f98
2c8f4f492635cd9a556673b2be515885a33fec56
/bigdata_processing/data_handling_tuto/pandas_tuto.py
38187fcdc4b7f3547129b9461da2a8b09457d8a2
[]
no_license
rjsdn20022/learning_to_python
d072896f59d150d1dd1bf3088a817c7fd46e2ff1
492bf98cea1d59eb41e5844557695bbbe3566fde
refs/heads/master
2020-06-29T18:43:02.580002
2019-08-07T10:49:07
2019-08-07T10:49:07
200,594,653
0
0
null
null
null
null
UTF-8
Python
false
false
1,599
py
# -*- coding: utf-8 -*- import pandas as pd import numpy as np print('pandas Series 생성') s = pd.Series([1,3,5,np.nan,6,8]) print(s) print('data index만들기(배열, 데이터타입)') dates = pd.date_range('20130101', periods =6) print(dates) print('index이용하여 data frame 만들기') df = pd.DataFrame(np.random.randn(6,4), index = dates, c...
[ "45584677+rjsdn20022@users.noreply.github.com" ]
45584677+rjsdn20022@users.noreply.github.com
92e73f73f39f9f92391d703dc24678e511a07c82
644cfe4ccd566fd90b5d937a239eb69d436ce888
/blog/migrations/0001_initial.py
f1f8dc2d2243d4ac14e2884c41c0dca47d5b7dfd
[]
no_license
charlesdwesley/my-first-blog
753091b6be479e42aca54e87d146135daaa021f7
9dd2b28c34df5c496e2b3e695c629515f5d48bb2
refs/heads/master
2021-01-17T20:57:52.982405
2016-07-30T17:19:21
2016-07-30T17:19:21
64,038,869
0
0
null
null
null
null
UTF-8
Python
false
false
1,050
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.8 on 2016-07-23 21:40 from __future__ import unicode_literals 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 depen...
[ "cwesley@eplicaservices.com" ]
cwesley@eplicaservices.com
32b36d2024ff35ccb4a880727dd13186b1d5e3e5
3589a7ef4ca5672840e681b517103abb26d17f2c
/examples/2-gpio-input/program.py
91cfe574ade6a5f0c1e93ac2a42b45b87eae218e
[]
no_license
digitalLumberjack/rpi-courthezon
47fff1b4bb76f071e5a23e392fb1a4b1535c5b87
1c18f62a657280a9ed86109399d5c7731625f536
refs/heads/master
2020-04-22T13:15:55.290970
2015-02-22T06:48:48
2015-02-22T06:48:48
31,154,965
0
0
null
null
null
null
UTF-8
Python
false
false
439
py
# Importons le code qui nous permettra de controller les GPIO import RPi.GPIO as GPIO import time print("Utilisons la nomenclature BCM pour les GPIO") GPIO.setmode(GPIO.BCM) print("Passons le GPIO 17 en mode input") GPIO.setup(17, GPIO.IN) print("Et attendons que quelqu'un appuie sur le bouton branche sur le GPIO 1...
[ "digitallumberjack@gmail.com" ]
digitallumberjack@gmail.com