blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
41
license_type
stringclasses
2 values
repo_name
stringlengths
7
96
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
58 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
12.7k
662M
star_events_count
int64
0
35.5k
fork_events_count
int64
0
20.6k
gha_license_id
stringclasses
11 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
43 values
src_encoding
stringclasses
9 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
7
5.88M
extension
stringclasses
30 values
content
stringlengths
7
5.88M
authors
listlengths
1
1
author
stringlengths
0
73
acd6a22d7bb374d1f9a11fce956a81b0d38fbd56
6ab31b5f3a5f26d4d534abc4b197fe469a68e8e5
/tests/kyu_7_tests/test_money_money_money.py
81777cba1d4383469487a9c021f4670b80ab8516
[ "MIT" ]
permissive
mveselov/CodeWars
e4259194bfa018299906f42cd02b8ef4e5ab6caa
1eafd1247d60955a5dfb63e4882e8ce86019f43a
refs/heads/master
2021-06-09T04:17:10.053324
2017-01-08T06:36:17
2017-01-08T06:36:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
423
py
import unittest from katas.kyu_7.money_money_money import calculate_years class CalculateYearsTestCase(unittest.TestCase): def test_equals(self): self.assertEqual(calculate_years(1000, 0.05, 0.18, 1100), 3) def test_equals_2(self): self.assertEqual(calculate_years(1000, 0.01625, 0.18, 1200),...
[ "the-zebulan@users.noreply.github.com" ]
the-zebulan@users.noreply.github.com
e64d478869518eacda665d609f0ea89fcfb6599a
c1666ac45bdb9491f232a6a69a6d9e24c8b33448
/OpenMatch/utils.py
69d86250ab01eeb91da58d95a299b987b1f35376
[ "MIT" ]
permissive
wyfunique/OpenMatch
7ff94562f61f40e817d98e58fcddbdfa1e63dcf4
84b25502bf52c58b9e71bd0754b2fc192d9b448f
refs/heads/master
2023-08-27T20:12:18.293161
2021-11-03T13:40:42
2021-11-03T13:40:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,055
py
import os import json from argparse import Action class DictOrStr(Action): def __call__(self, parser, namespace, values, option_string=None): if '=' in values: my_dict = {} for kv in values.split(","): k,v = kv.split("=") my_dict[k] = v ...
[ "347925985@qq.com" ]
347925985@qq.com
c09b00550c14472684e0f4a7267a85e7e942a5b8
e7b4098bc730160d989d5df8332be3941a71dd8c
/main/migrations/0017_auto_20200518_1107.py
3c286fea9468d641c389cf148333aa1c29845df7
[]
no_license
AdityaKhandelwal10/TutorialWebsite
a9d4c6a1bd2598a7573ca036df0cc4f21bf7837c
b1686b0ab4ac9ec98c304d39c3c1ec469da34c8b
refs/heads/master
2022-09-02T09:25:57.368463
2020-05-26T05:13:53
2020-05-26T05:13:53
265,859,122
0
0
null
2020-05-26T05:13:54
2020-05-21T13:43:46
Python
UTF-8
Python
false
false
823
py
# Generated by Django 3.0.6 on 2020-05-18 05:37 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0016_auto_20200517_1738'), ] operations = [ migrations.RenameField( model_name='tutorialcategory', ...
[ "akaditya05@gmail.com" ]
akaditya05@gmail.com
6ab679b2ea51c8152faf843138780bcdc3f3ef35
968b9ab86dc0c72427fa49ff19ce3a3e9764fc23
/recipe/run_test.py
8916a5ff447ea9c6823115340d9eaa102fbfb594
[ "MIT" ]
permissive
csdms-stack/sedflux-subside-csdms-recipe
edca238429a132479e9a55c44e98c24eec7b4648
d0a9e00062c22dccd957af5361cc137898e3a36f
refs/heads/master
2021-01-11T01:48:29.650577
2017-06-16T21:44:24
2017-06-16T21:44:24
70,662,958
0
0
null
null
null
null
UTF-8
Python
false
false
279
py
#! /usr/bin/env python import os os.mkdir('_testing') os.chdir('_testing') from pymt.components import Subside as Model model = Model() for default in model.defaults: print('{name}: {val} {units}'.format( name=default[0], val=default[1][0], units=default[1][1]))
[ "mcflugen@gmail.com" ]
mcflugen@gmail.com
f6ae901aef883d459b385a64e054b15c0ae317ab
5d0edf31b17c5375faf6126c1a7be8e79bfe2ab8
/buildout-cache/eggs/Products.Archetypes-1.9.11-py2.7.egg/Products/Archetypes/AllowedTypesByIface.py
40164071ac6e9c97b1c79324c415b048ba751b74
[]
no_license
renansfs/Plone_SP
27cba32ebd9fc03dae3941ec23cf1bf0a7b6667a
8a7bdbdb98c3f9fc1073c6061cd2d3a0ec80caf5
refs/heads/master
2021-01-15T15:32:43.138965
2016-08-24T15:30:19
2016-08-24T15:30:19
65,313,812
0
3
null
null
null
null
UTF-8
Python
false
false
5,043
py
############################################################################### # # Copyright (c) 2002-2005, Benjamin Saller <bcsaller@ideasuite.com>, and # the respective authors. All rights reserved. # For a list of Archetypes contributors see docs/CREDITS.txt. # # Redistribution and use ...
[ "renansfs@gmail.com" ]
renansfs@gmail.com
701374cee88c862cf65ddf3b5bd64d648848c295
c5e2ca3242cf86c4d6d9e5cff65763784aaaa708
/NNCProject/Lower/motor_noPID/speedsensor/__init__.py
510a73ab272c027e0ec490ade5193bdf43a6f8cc
[]
no_license
qingshangithub/Smart-car-tracking-with-opencv
bed8a3417102572963dc35bd6bdb80e226a93142
9d11d9b3f22acfc0f24002e6b420cbdc5d95f9cf
refs/heads/master
2021-04-26T22:57:11.912021
2018-03-05T10:35:30
2018-03-05T10:35:30
123,901,874
0
0
null
null
null
null
UTF-8
Python
false
false
2,821
py
#! /usr/bin/python3 # -*- coding: utf-8 -*- """ monitor wheel speed via subprocess """ import pigpio from multiprocessing import Process from multiprocessing.sharedctypes import RawValue from collections import deque from time import sleep # set up left_sensor_gpio = 27 right_sensor_gpio = 17 cache_width = 3 time_ou...
[ "1056914402@qq.com" ]
1056914402@qq.com
623ef430fcec7b6661565e4ce037067bd4de392b
9886ca9f3d81e5315925b01cc381d0ab4a01edae
/testrunner/test_defs/__init__.py
c205dcb8ca618a9e30f47b8433e3761bf98ef399
[]
no_license
PPCDroid/development
2f6dc67967597b268eccbc784d7c2ba543da1042
f0c9a44521fb1844a54d26010064aa135d88b75c
refs/heads/master
2020-04-06T03:46:18.241214
2010-04-14T17:27:40
2010-04-14T17:27:40
32,207,874
0
1
null
null
null
null
UTF-8
Python
false
false
24
py
__all__ = ['test_defs']
[ "brettchabot@google.com" ]
brettchabot@google.com
f5d58bd54e17ea7fc6bdca478bf07eb4f6e3cb13
a8cd35b8e523e90552a208eae762b739bad768b9
/reserved/lotoop3.py
3b131d8ebbbf37d2be67c3ae97b4567e514f5dd5
[]
no_license
DmitriChe/Loto_OOP
d59eb27120c22318872ae475a47ab1e2bf0d3bf7
7747a1fc5bbfdd9c0e4c42db8c66d9815e095462
refs/heads/master
2020-09-17T06:54:12.322845
2020-01-08T21:25:15
2020-01-08T21:25:15
224,025,243
0
0
null
null
null
null
UTF-8
Python
false
false
6,533
py
from random import randint, shuffle, sample class Bag: def __init__(self): self.nums = sample(range(1, 91), 90) def next(self): if self.nums: return self.nums.pop() raise Exception('Мешок пуст!') def stats(self): print(f'В мешке {len(self.nums)} боченков.') ...
[ "juneority@mail.ru" ]
juneority@mail.ru
badaab65f38b1b1c297284d46f70fc02f18300be
447964b1c47e2f7abb14af52c53f28706d220aa6
/Assignment2/task1/task1_1.py
87b7e21f541dfbea2a66eee5adb1e1b226d56326
[]
no_license
psg0796/CS671---Deep-Learning
cb76408accb927f8e607621bd68dc98695f62dd1
354322a432afff5795e7fe8279b8949076ef5b41
refs/heads/master
2022-02-01T06:54:23.964706
2019-05-27T05:54:15
2019-05-27T05:54:15
176,881,206
0
2
null
2019-05-04T12:41:53
2019-03-21T06:12:25
Python
UTF-8
Python
false
false
1,697
py
import tensorflow as tf import cv2 import numpy as np imgDir1 = '../input1/' imgDir2 = '../input2/' imgFmt = 'jpg' # Format of image = angle_length_width_color_variation angle = 12 length = 2 width = 2 color = 2 variation1 = 600 variation2 = 400 x_train = [] y_train = [] x_test = [] y_test = [] count = [] for i in...
[ "amitrajain1@gmail.com" ]
amitrajain1@gmail.com
7879673ce7e8e19fcf1713410b26515ec93ba623
5d5ee0d873ef6e0ca78a0732cf0ae0b206c64973
/pyzenfolio/__init__.py
90e2cc90b5232ca661aad036aa2d41ae5051e109
[ "MIT" ]
permissive
rheemix/pyzenfolio
1b1920705b65fae17f5b69a2111b266f71f2f48b
ec5283b3f133b84098edf9332ca5997f067fb7e3
refs/heads/master
2022-09-16T09:13:48.319993
2020-05-26T00:42:22
2020-05-26T00:42:22
266,878,062
0
0
null
2020-05-25T20:53:18
2020-05-25T20:53:17
null
UTF-8
Python
false
false
292
py
from __future__ import print_function, unicode_literals __version__ = '0.9.1' __author__ = 'Miroslav Shubernetskiy' try: from .api import PyZenfolio # noqa from .exceptions import APIError # noqa from .helpers import search_sets_by_title # noqa except ImportError: pass
[ "miroslav@miki725.com" ]
miroslav@miki725.com
bce042b9e53934834815a602db282cdf456ecd81
f80ced6aeb588f2327ed43539cf0c18a3f0048ea
/src/applications/blog/migrations/0002_auto_20201116_2208.py
a9f8e24eaed40144cd11067f363658b2dfaf46ae
[]
no_license
NikitaMyslivets/KinoMonster
0f7a32da6160f633594705e91eb17d60687b6171
f3e40b2289f9993b39af324f88c42ba163debb42
refs/heads/master
2023-01-23T19:40:28.653236
2020-11-21T14:09:34
2020-11-21T14:09:34
287,334,097
0
0
null
2020-10-21T17:18:17
2020-08-13T16:54:06
HTML
UTF-8
Python
false
false
507
py
# Generated by Django 3.1.3 on 2020-11-16 19:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='post', options={'ordering': ['-created_...
[ "nikita.myslivets@mail.ru" ]
nikita.myslivets@mail.ru
70eed38f5515a58a9da5c5511ec4eed1e85ef04e
ad32805a821fb06bde87a6d05c3d80ae477dc00b
/dashboard/apps.py
58d606d5139a372d8afd11ecde1c87514208cb2e
[]
no_license
phrac/maintdx
a89a15e4d92f77b91016737a7b410a7579d07c6c
583b308568e25da6d99fa6d41150602baa253377
refs/heads/master
2021-07-01T05:11:51.994071
2021-05-14T13:41:20
2021-05-14T13:41:20
131,013,331
0
0
null
null
null
null
UTF-8
Python
false
false
158
py
from django.apps import AppConfig class DashboardConfig(AppConfig): default_auto_field = "django.db.models.BigAutoField" name = "maintdx.dashboard"
[ "158748+phrac@users.noreply.github.com" ]
158748+phrac@users.noreply.github.com
6ec30b1ffef0a41f41e851ac89f1aecb4dbb58e1
305759f40ab397adbbd2548c993f0d07dae2cd2f
/191_superfluid/code/second_sounder.py
676eac30d0013e56c406f1d4a3cb48534a73b837
[]
no_license
nwuerfel/phys191
b4e45e28047341fda2a23f7649bf34e99e64edea
7d7d574fafb9549d799c1af68a357f7b5f93d775
refs/heads/master
2021-01-22T21:16:55.571029
2016-11-10T02:51:45
2016-11-10T02:51:45
68,753,175
0
0
null
null
null
null
UTF-8
Python
false
false
2,653
py
import matplotlib.pyplot as plt import numpy as np import os from analyzer_function import PTconverter data_Dir = '../data/ss_runs/' pressures = np.array([12.5, 7.2, 10.8, 17, 21.5, 26, 30, 35]) distance_uncertainty = 0.5 time_uncertainty = 0.001 def second_sound(): vel_Data = np.empty([len(os.listdir(data_Dir))...
[ "Noah@Noahs-MacBook-Air-2.local" ]
Noah@Noahs-MacBook-Air-2.local
db911474e6155992b6a1be0a87aadef13dad3736
b17afc0f6e73e785b28be882878e3608d1fd28d1
/UI_Data_from_Terminal_sensor/load_widget_graph.py
2eb3e9bebc70c46de3705e53913fc46d436d16d3
[]
no_license
Akshay-cita/UI-for-CO2-and-O2-Monitoring-
e05f979fe6915afcbffe0d4208660f6578375c1f
502cc9776bac00607cd98261596623b605a5e7d9
refs/heads/master
2022-07-12T16:41:28.238379
2020-05-09T07:53:55
2020-05-09T07:54:22
262,518,606
0
0
null
null
null
null
UTF-8
Python
false
false
752
py
from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtWidgets import QWidget from PyQt5.QtWidgets import QStackedWidget class Ui_MainWindow(QtWidgets.QMainWindow): def __init__(self): super().__init__() self.Init_UI() self.loadWidget() def Init_UI(self): self.resize(787, 539)...
[ "edakkatakshay@gmail.com" ]
edakkatakshay@gmail.com
409eab4148296c825a1ba657cdd98a0c995a8c40
8f15e2170d08e61b4ac70f75ab755967b0009338
/mason/clients/s3/s3_client.py
efc9899f57547aef1565d4d013e0282d206fbcd7
[ "Apache-2.0" ]
permissive
malave/mason
eb86d60b96b16b6e49482097474c05c9805b5f24
bf45672124ef841bc16216c293034f4ccc506621
refs/heads/master
2023-06-12T21:59:46.858046
2021-06-11T16:07:18
2021-06-11T16:07:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,038
py
from botocore.errorfactory import ClientError from typing import Optional, List, Union, Tuple import s3fs from returns.result import Result, Success, Failure from s3fs import S3FileSystem from mason.clients.aws_client import AWSClient from mason.clients.response import Response from mason.engines.storage.models.path i...
[ "kprifogle1@gmail.com" ]
kprifogle1@gmail.com
be0a82d0b1ed41ba803a64a433be71c62c647a36
feb8524d7af1219e6e46027e19ff37dc6f0ef4be
/hashtag.py
d1fdc310ac14be86bc2af09d15679f1d965dc761
[]
no_license
Kmiet/twint-followers-graph
c3552608e7b879a7ec2eafd7580828ae99e40c97
1d858ce55dfa62eecca80d97b82f861deb7a8c3c
refs/heads/master
2021-04-05T12:32:34.821459
2020-06-01T07:48:51
2020-06-01T07:48:51
248,557,619
0
0
null
null
null
null
UTF-8
Python
false
false
2,995
py
import tweepy import sys import jsonpickle import pandas as pd import json auth = tweepy.OAuthHandler('2l5EsCB5xoR5X1QXM7Vllevu8', 'NuN25ZASb37sDGHhgw8DhHr99hzPjN4IrH25oDAlWKr8uWZCZP') auth.set_access_token('1233360710794698752-sAAVzLUsFHzMxzOjxFUcDfJkCZTIXM', 'kVTQ7PY2D4XH3UAMIfKTfZssXOh79zNImWmuVHdRc6SST') api = t...
[ "krzys.kmiecik@gmail.com" ]
krzys.kmiecik@gmail.com
f5cafa449fbcba08edc856d7cbabbc0f71c9725c
1852be4726dc1d83780740678819192277159e0f
/LC/357.py
1ec251b7e29960a9fed81b1639b47c11791f78e0
[ "MIT" ]
permissive
szhu3210/LeetCode_Solutions
f0a32e30df54b655fdb9c7d48622382f29781409
64747eb172c2ecb3c889830246f3282669516e10
refs/heads/master
2020-06-30T05:45:40.550146
2017-08-11T04:10:25
2017-08-11T04:10:25
74,389,515
2
0
null
null
null
null
UTF-8
Python
false
false
338
py
class Solution(object): def countNumbersWithUniqueDigits(self, n): """ :type n: int :rtype: int """ choices = [9, 9, 8, 7, 6, 5, 4, 3, 2, 1] ans, product = 1, 1 for i in range(n if n <= 10 else 10): product *= choices[i] ans += product ...
[ "troy@Troys-MacBook-Pro.local" ]
troy@Troys-MacBook-Pro.local
dbcaf98ce19f6c89c54c2f3b9ae3739bbfeb86ee
6ff250d354ea3183bffdf7976f03e31aabde226c
/tests/test_platform_string.py
18d0d9860eb3a425da639d91286d77ff1ccaa600
[ "BSD-3-Clause" ]
permissive
pombredanne/infi.os_info
e94355be1653b1a839ad94a45ae9a0a595c12227
d996a64a98581396b04117c0a201b69fc0f87260
refs/heads/develop
2021-01-17T20:06:24.664054
2017-11-16T12:12:53
2017-11-16T12:12:53
33,823,575
0
0
null
2017-11-16T12:12:54
2015-04-12T16:05:58
Python
UTF-8
Python
false
false
27,798
py
from infi import unittest from infi.os_info import get_platform_string test_subjects = [ dict(expected='linux-ubuntu-quantal-x64', system='Linux', architecture=('64bit', 'ELF'), processor='x86_64', release='3.5.0-40-generic', mac_ver=('', ('', '', ''), ''), linux_distribution=('Ubuntu', '12.10', 'quantal')), ...
[ "guy@rzn.co.il" ]
guy@rzn.co.il
71da03ce7c21791ffeeb73c95666121e3be50f6d
821a920a8dd7c5857fa436b8fe51d5089e9b85b6
/python_ds/stack/balancedBracketAlgo.py
29f9b5f84ee51402c8b4917d5138fd1405065da4
[]
no_license
mabdullahadeel/python-data-structures
bba7800287a6853a9f2c3011e25a01e92eec0e06
4ab1a7e429730b7e9bf2313665e5fe087da94cf7
refs/heads/master
2023-08-07T08:54:05.538709
2021-09-18T06:36:55
2021-09-18T06:36:55
365,546,688
1
1
null
2021-09-18T06:36:56
2021-05-08T15:20:04
Python
UTF-8
Python
false
false
1,023
py
from .stack import Stack """ The function `are_parenthesis_balanced` is a simple function that checks if a given string has balanced bracket pair and returns a boolean respectively """ def is_valid_pair(opening, closing): # Process the brackets and see if they are valid pair pairs = {"(": ")", "[": "]", "{": "}"}...
[ "easyautosol@gmail.com" ]
easyautosol@gmail.com
cbd359e22736a0ac7bbf8539a4ca09b92820d3b5
e00efe29353159e414fca0e2b0283d10e2f8b69e
/main.py
e9e69a85cf077598d1e784d73367956f4e80ed02
[]
no_license
nerudxlf/parse_wos
a12299e626923ccc1f6dff3095dc0c7e146c5d4a
c11fd1c8653ef55da834a822c1463c24939b396c
refs/heads/main
2023-01-28T10:36:46.976830
2020-12-07T06:31:46
2020-12-07T06:31:46
319,221,707
0
0
null
null
null
null
UTF-8
Python
false
false
417
py
from IO.out import out_excel from IO.readTxt import read_txt from parse.parseList import ParseList def main(): name_txt = "id.txt" mode = "r" chrome_driver_path = 'C:/programs/chrome/chromedriver' arr_id = read_txt(name_txt, mode) # read id pars = ParseList(chrome_driver_path) # create object ...
[ "nerudxlf@gmail.com" ]
nerudxlf@gmail.com
00d84e7bd459424a3ff23e6032272fbb566e64a2
9557ccb642d4ddb8dd70147d086ccadac23b1e95
/baidu_gaofen-cup/code/00-data_sampling.py
6ca911a82bfd614c3de886d484c407a87afd0cef
[]
no_license
gao-ye/Competition
f1bea96f406ae135b2611bf4b2e1c78ab0235c51
17320f62679f02eb816a4d916827407a4eb4068c
refs/heads/master
2020-05-17T23:31:09.868625
2019-04-29T09:22:47
2019-04-29T09:22:47
184,035,198
3
0
null
null
null
null
UTF-8
Python
false
false
2,835
py
#-*- coding:utf-8 -*- ## 从原始样本中进行第一次采样 import pandas as pd import numpy as np radius = 15 sample_size = 5 labels_key = {'dadou': '大豆', 'shuidao': '水稻','yumi':'玉米'} def data_sampling_1(name): data_sampling = [] rectangle = pd.read_csv(name+'.txt',header=None) rectangle = rectangle.values rectangle = r...
[ "noreply@github.com" ]
noreply@github.com
813c19241491716e4df3b0f1a63f6f1be1b59feb
d78bd6b82eea7876ee7c5c38ebd23ef8f942b9da
/Text processing/extract_sentence_srt.py
82eb730026d41485a4aeeb00b211c9f3e03e9e28
[]
no_license
mmggbj/Graduation-Design
098ab6ebacfd045f0b970545e0a2e9a07033a59d
cd4d2d752f047990510cf41c8d2209ccaadadccc
refs/heads/master
2020-05-27T14:58:25.062854
2019-05-18T08:57:03
2019-05-18T08:57:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,143
py
# coding:utf-8 import chardet import os import re cn=r"([\u4e00-\u9fa5]+)" pattern_cn = re.compile(cn) jp1=r"([\u3040-\u309F]+)" pattern_jp1 = re.compile(jp1) jp2=r"([\u30A0-\u30FF]+)" pattern_jp2 = re.compile(jp2) for root, dirs, files in os.walk("./srt"): file_count = len(files) if file_count > 0: f...
[ "xujiading1997@163.com" ]
xujiading1997@163.com
2dec658552557ff5591d0acfe41888682e0df317
14b0a22e2b7dc8c75ff6baa5994695f23e61f19b
/microsoft malware/Malware_Say_No_To_Overfitting/kaggle_Microsoft_malware_small/daf.py
3c4df74a598ae0e06408d56e5259d4c1ee07d5b8
[ "Apache-2.0" ]
permissive
bikash/kaggleCompetition
8d9fdd59146bdd9132b2a996cb7344338f4e1653
c168f5a713305f6cf6ef41db60d8b1f4cdceb2b1
refs/heads/master
2016-08-11T21:09:00.759071
2016-01-11T02:47:30
2016-01-11T02:47:30
36,067,644
1
0
null
null
null
null
UTF-8
Python
false
false
6,404
py
import heapq import pickle import math from csv import DictReader import glob import os import csv from datetime import datetime # generate dfs features and dll call features. #three different types: memory, constant, register # memory: dword, word, byte # constant: arg, var # register: eax ebx ecx edx esi edi esp eb...
[ "er.bikash21@gmail.com" ]
er.bikash21@gmail.com
aa534227e6de535ec3870cee1c57ed6395311d64
edf89640f9363687f619198621accb9e5afe9185
/10.debug/02.py
a00185c8ac0497a0cb72079abace3417a4d77b07
[]
no_license
Little-Captain/automate-the-boring-stuff-with-python
3e27cfa90ec0cb50b90f16eb5bd7697770e0d2c0
c23fefadfab2d7cc4f52fc9a15b81b797d903ea1
refs/heads/master
2020-08-28T03:12:00.330165
2020-02-06T14:08:02
2020-02-06T14:08:02
217,571,440
0
0
null
null
null
null
UTF-8
Python
false
false
951
py
#!/usr/bin/env python # 如果 Python 遇到错误,它就会生成一些错误信息,称为“反向跟踪” # 反向跟踪包含了出错消息、导致该错误的代码行号,以及导致该错误的函数调用的序列 # 这个序列称为“调用栈” # 在从多个位置调用函数的程序中,调用栈就能帮助你确定哪次调用导致了错误 def spam(): bacon() def bacon(): raise Exception('This is the error message.') # spam() # 只要抛出的异常没有被处理,Python 就会显示反向跟踪 # 但你也可以调用 traceback.format_exc()...
[ "coder.littlecaptain@gmail.com" ]
coder.littlecaptain@gmail.com
9cffb83a1057a8c83e3492e8c6139db49cc816f7
7d40f818623406ef81c92a16c3a6ede76f5f2780
/gamble_env/bin/fitscheck
10a76d70cdef3b375e0d0bc5a6a617c407102e37
[]
no_license
drewmacleod/Bundesliga_Game_Previews_2020
9e66d8dc14933f0dde906568ff2a121b088d74be
556b1dfde8c051412e3a407c8e609994ecffe4d5
refs/heads/master
2022-07-06T06:28:18.802765
2020-05-18T21:58:39
2020-05-18T21:58:39
264,766,584
0
0
null
null
null
null
UTF-8
Python
false
false
291
#!/Users/drewmacleod/Documents/Gambling/Bundesliga/gamble_env/bin/python3 # -*- coding: utf-8 -*- import re import sys from astropy.io.fits.scripts.fitscheck import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "drewmacl@umich.edu" ]
drewmacl@umich.edu
20995b38fcafd6b7d9a48b54306a4288ded65f44
c798b2aef78f945f7602f4a2688a332455a62013
/django_all/users/migrations/0006_auto_20200823_1833.py
b2ca7f56ad5acdf9080ae33ab6ee46fa56a3e9ec
[]
no_license
Souliphon/Comma-Project
5c9502fd0e2d149e686252660d34ae06751f97aa
a1e7f613c1b8f5469a8028abcde032d851c3d8cd
refs/heads/master
2023-01-27T16:24:17.311084
2020-11-24T06:12:54
2020-11-24T06:12:54
313,191,550
0
0
null
null
null
null
UTF-8
Python
false
false
489
py
# Generated by Django 3.0.5 on 2020-08-23 11:33 from django.db import migrations import phone_field.models class Migration(migrations.Migration): dependencies = [ ('users', '0005_auto_20200703_1153'), ] operations = [ migrations.AlterField( model_name='profile', ...
[ "dum.manu4447@gmail.com" ]
dum.manu4447@gmail.com
2acc707e0b4f975a61c4d1f3c42e2d2fb6f433e4
431931011af6b9f811590cd098925b6fd9f5753e
/sampark/migrations/0001_initial.py
2592e9620873699f59015855d0e3d897aa247000
[]
no_license
aastha007/trip-travel
b58b3e2aea90f4bb7d78b33f498d2c6d60a2724d
39fa67345309c526cb5179ae33175916952e892b
refs/heads/master
2021-01-02T23:50:47.062112
2017-08-06T19:10:15
2017-08-06T19:10:15
99,507,721
0
0
null
null
null
null
UTF-8
Python
false
false
1,209
py
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2017-07-18 16:27 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='contus', ...
[ "aastha7195@gmail.com" ]
aastha7195@gmail.com
408aca0bd3c6d2c89436ff089e3fcce6c9765012
c02778e40ab4d3e5aa3cea36cc25903d785b745e
/equalloudness.py
a6b8e1a170872eb7c87b53fcdac351e2f4ef66ea
[]
no_license
anoop901/musictext
53a45c7dd3a06513732edbb78c330ac5c7759a65
e1331b2a6902294adaeb43a66efaee4414f7ddf3
refs/heads/master
2021-01-12T00:53:09.904239
2017-01-07T23:51:48
2017-01-07T23:51:48
78,310,697
0
0
null
null
null
null
UTF-8
Python
false
false
944
py
import bisect x = [ 20, 25, 31.5, 40, 50, 63, 80, 100, 125, 160, 200, 250, 315, 400, 500, 630, 800, 1000, 1250, 1600, 2000, 2500, 3150, 4000, 5000, 6300, 8000, 10000, 12500, ...
[ "anoop901@gmail.com" ]
anoop901@gmail.com
02f0c6d57be372aaec5c79af4bdd4f2379918dc7
e90bf4b372da78ceec15282d060b48d18ba8d4e9
/tests/dbus_service_mocks/network_manager.py
12af2204ac9c11e50ba611f8d0159b8ff7975265
[ "Apache-2.0" ]
permissive
home-assistant/supervisor
67f2e1755ff5fbf7cf2084351e1c32c6995274e0
4838b280adafed0997f32e021274b531178386cd
refs/heads/main
2023-08-31T22:51:25.949277
2023-08-31T08:01:42
2023-08-31T08:01:42
84,926,758
928
477
Apache-2.0
2023-09-14T17:11:27
2017-03-14T08:54:15
Python
UTF-8
Python
false
false
10,546
py
"""Mock of Network Manager service.""" from dbus_fast.service import PropertyAccess, dbus_property, signal from .base import DBusServiceMock, dbus_method BUS_NAME = "org.freedesktop.NetworkManager" def setup(object_path: str | None = None) -> DBusServiceMock: """Create dbus mock object.""" return NetworkMa...
[ "noreply@github.com" ]
noreply@github.com
6e5391fa5e4d463ec02b366e051ea23df32eb190
58d0a1606b29d8b86d19acea85f61168a041f61c
/grpc_training/client.py
558f27552cc1fdd8169a47c29b928ef16e104d70
[]
no_license
cocodrips/grpc-python-server-training
f4ffa54b60a4efd07f018f8152de0bb7f8fee495
c327960ee16106667a77a836e898c55b310e8b8d
refs/heads/master
2020-06-09T20:07:31.969434
2019-06-24T13:01:59
2019-06-24T13:01:59
193,498,135
0
0
null
null
null
null
UTF-8
Python
false
false
429
py
import sys import pathlib import grpc root = pathlib.Path(__name__).parent.resolve() sys.path.insert(0, str(root / '../proto_python')) import hello_pb2, hello_pb2_grpc def run(): channel = grpc.insecure_channel('localhost:50051') stub = hello_pb2_grpc.GreeterStub(channel) response = stub.SayHello(hello_...
[ "cocodrips@gmail.com" ]
cocodrips@gmail.com
d981df9a2a5ac7ea6f17864ce33c3f13b8a2bd04
cee1b29bbd1e3e87e4dbe9996621b81c4e063a51
/rl885/cartpole_random_monitor.py
fbf575b76e552f0ea01d931bd7d2cd704a0cc5c7
[]
no_license
edvgha/122
4ab3a1358775864ada3919bca8adff01be30f086
f3643d336060b18ec3f5416b7b995cdaba804f37
refs/heads/master
2023-02-18T07:29:22.190292
2022-09-02T12:49:36
2022-09-02T12:49:36
85,350,600
0
0
null
2023-02-15T21:28:39
2017-03-17T20:07:53
Jupyter Notebook
UTF-8
Python
false
false
520
py
import gym if __name__ == "__main__": env = gym.make("CartPole-v0") env = gym.wrappers.Monitor(env, "recording") total_reward = 0.0 total_steps = 0 obs = env.reset() while True: action = env.action_space.sample() obs, reward, done, _ = env.step(action) total_reward +=...
[ "edvard_gh@yahoo.com" ]
edvard_gh@yahoo.com
cf34a57a7ae45e4c949990357bb37bc9ade93262
cee1615db5540a5ae4b9d3c67bf3ef139bddb556
/Cadastrar.py
3bcc49a2abf597425630409a0c007228162baf87
[]
no_license
andreCLima/Python
b9aaa01591bf318f522bb5d8aa760eb7a685e0f2
6817152783b7b1847165ea8035b18ecdf9153763
refs/heads/main
2023-08-04T03:47:52.381357
2021-09-24T01:45:24
2021-09-24T01:45:24
409,796,425
0
0
null
null
null
null
UTF-8
Python
false
false
1,170
py
from typing import Text from db.Query import Sqlite_Db import os, sys from PyQt5.QtWidgets import * from templete.cadastrar import Ui_Cadastrar class Cadastrar(QDialog): def __init__(self,*argv,**argvs): super(Cadastrar,self).__init__(*argv,**argvs) self.ui = Ui_Cadastrar() self...
[ "noreply@github.com" ]
noreply@github.com
5395641913abc59c680fdc254821262ed1e90d7b
eb207aaff733fbeda6ecc09cd4d9948d57dd7ef5
/votingmachine.py
db776b992f37b837f794cf17785f26676cb10104
[]
no_license
shivamtech29/PythonProjects
c3542b2f92cf1e68d234e99ef8dd4206525993ad
fcb0384cd8e36a29eeace3a0579e5f4c0c1c7b75
refs/heads/main
2023-03-27T03:39:29.829660
2021-04-04T07:45:41
2021-04-04T07:45:41
354,484,863
0
0
null
null
null
null
UTF-8
Python
false
false
1,547
py
# Voting Machine in less than 60 lines of clean code import pyautogui import time def voteloop(votedct,n): p=[] for i in range(n): p.append(0) c='y' while c=='y': u = 0 for i in votedct: print("\t\t\t{} : {}".format(u+1, i)) u += 1 ...
[ "noreply@github.com" ]
noreply@github.com
baaee0761e01c33173431d87591d882410c8378e
301cec2edb0a88558687cf45cf7b958fbb07f9ac
/pokemongo_bot/test/resources/plugin_fixture/__init__.py
ca0a3fe9b3f2b5c787dd6108fd2273364807387d
[ "MIT" ]
permissive
Kafkamorph/PokemonGo-Bot
2994390e49247dca3cc92acf136ede9a49763487
df21ce08511673c7d60a1e01a68b5822c45de0b8
refs/heads/master
2023-05-28T12:39:56.613529
2023-05-24T12:07:58
2023-05-24T12:07:58
64,310,529
0
1
MIT
2023-05-24T12:08:00
2016-07-27T13:25:51
Python
UTF-8
Python
false
false
124
py
from __future__ import absolute_import from .fake_task import FakeTask from .unsupported_api_task import UnsupportedApiTask
[ "Junaos@junaos.com" ]
Junaos@junaos.com
5bbe57836e926ddd11912eacf04069b1bc1206f7
07bd1848e35bbb75ef4d23f1982af618aa176852
/chap04/list04c02.py
099962a1b27cdf94ce4630caad00056e551aec35
[]
no_license
kimurakousuke/MeiKaiPython
c0b56be8fcb79b39b0c8364e71e2da76eab613fe
674f6001060f56cf55e3d7336e6e4ca5f135beaf
refs/heads/master
2021-02-22T13:01:53.397290
2020-03-07T11:19:10
2020-03-07T11:19:10
245,377,717
1
0
null
2020-03-06T11:16:16
2020-03-06T09:22:53
Python
UTF-8
Python
false
false
138
py
# 对整数1到12进行循环但跳过8(其一) for i in range(1, 13): if i == 8: continue print(i, end=' ') print()
[ "61867402+kimurakousuke@users.noreply.github.com" ]
61867402+kimurakousuke@users.noreply.github.com
1dd8ce2b851444579a7663f1ab4fabe99749bf80
1dd38f94b9734e45d3c0f76dab718cda48c82a1f
/ecomm/products/migrations/0003_auto_20200608_1742.py
11998b9f90e2274f3b5df3d540de8c5fdd9b4708
[]
no_license
jgsneves/semana5CodeNation
edb8154410cf733dc70d92957c7d7b63149539fc
18ee0c23bdfb5c42f8cfe8dde4ee75c3cb26cc5c
refs/heads/master
2022-12-22T02:26:30.236793
2020-06-10T17:10:49
2020-06-10T17:10:49
271,338,663
1
1
null
2022-12-18T05:44:46
2020-06-10T17:12:07
Python
UTF-8
Python
false
false
506
py
# Generated by Django 2.2.5 on 2020-06-08 20:42 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('products', '0002_auto_20200608_1706'), ] operations = [ migrations.AlterField( model_name='prod...
[ "joao.neves@enecad.com.br" ]
joao.neves@enecad.com.br
569ad9991ca0e6f2bfd00651d5a02128e88d7589
b75b2a86613536d4917768d3263460f2b9a59d8e
/login.py
adb62fe69087bc85795800e70cfa573f7fe7ec03
[]
no_license
felipemfp/PyLogins
2f50d932e63c19ed544eb6a81f7b041accf8cc35
9995e2d7bfec64cbe6953b938f51f3109b04667c
refs/heads/master
2021-04-29T04:07:22.766588
2016-12-21T00:36:22
2016-12-21T00:36:22
78,030,633
0
0
null
2017-01-04T16:03:15
2017-01-04T16:03:15
null
UTF-8
Python
false
false
1,529
py
# coding: utf-8 import time import base64 import argparse import getpass def check(pasw): sen = getpass.getpass("password again: ") while pasw != sen: print("Passwords do not match, try again") sen = getpass.getpass("password: ") return pasw def Hides(login): arqui = open("logins.txt", "a") codi = base64.b64...
[ "cleytonrodrigues69@live.com" ]
cleytonrodrigues69@live.com
f97010e961b46c6afb5e84a3dbbfdbd4ed10a1da
90ac505fb14e4969cd4e7f164f8969ed2344d3e3
/Power of IT Job/ncr.py
c6c2f9a7dfb5fcd5d985a0c501cceec520952b19
[]
no_license
rid47/python_basic_book
4d08641ed802a80f5b5398c568231b366b1cf5d0
f4a77577115b126094c9e5aac38a18bb42eeb28f
refs/heads/master
2022-12-22T12:24:48.094483
2022-12-10T12:11:52
2022-12-10T12:11:52
234,990,760
0
1
null
2022-12-02T03:44:50
2020-01-20T00:45:53
Tcl
UTF-8
Python
false
false
316
py
def factorial(n): value = 1 for i in range(n, 1, -1): value *= i return value n = int(input("Enter n for finding nCr:")) r = int(input("Enter r for finding nCr:")) if r > 0 and n > r: result = factorial(n)/(factorial(r)*factorial(n-r)) print(result) else: print("Invalid input!")
[ "ridwanmizan@gmail.com" ]
ridwanmizan@gmail.com
3209aa803bf257677aa8d2769303de3b1ec86c9d
a3c8651bb991d7fd5ae575c8ce3020241fe15a4d
/venv/lib/python3.8/site-packages/numpy/array_api/_set_functions.py
dc6096d3b62945f070d0b0b84cb3288ac452e4b9
[]
no_license
chunyboy/test
fefff853c244657a5c33fe415d8552fdfcbb9eb7
44233736f86910fa934c4fd0f3e261df2f761a2d
refs/heads/master
2022-12-13T11:33:06.176114
2022-11-29T15:32:01
2022-11-29T15:32:01
78,964,487
2
1
null
2017-01-14T22:34:28
2017-01-14T20:21:54
Python
UTF-8
Python
false
false
96
py
/home/runner/.cache/pip/pool/f3/42/0d/a4b54ffb86ee9c35d4c66c48ddd156fa0baeffbae05a5030b8dcddb191
[ "chunyboy@users.noreply.github.com" ]
chunyboy@users.noreply.github.com
7b1e55c63e68e9ea484248b9a4295648880b11d4
a30c74862bda7003d14c978d225ff24996d1aace
/nightsky.py
79e993c03b9c95e9363425037ea61d03d21cf2a4
[]
no_license
kirkabbott1/functions
47e3c1aa2aaf6834aa57925ffc796c180dc19b53
0a5a6b8520749f8622962e13f083fc2d4f7c5448
refs/heads/master
2021-01-12T17:49:51.737935
2016-09-27T23:07:13
2016-09-27T23:07:13
69,398,702
0
0
null
null
null
null
UTF-8
Python
false
false
1,189
py
from turtle import * import random from shapes import star bgcolor("#040404") # w_width = window_width() # w_height = window_height() # # turt_x = position()[0] # turt_y = position()[1] # # left(15) # forward(200) # print position()[0] # print position()[1] # print turt_x # print turt_y # left(180) # forward(400) # ...
[ "kirkabbott1@gmail.com" ]
kirkabbott1@gmail.com
795eaa24315a1afe16c509b6c908ae9bae566db0
781e2692049e87a4256320c76e82a19be257a05d
/assignments/python/61a_hw4/code/161.py
687844acb25cb43634a63af21f9cd2a158323d78
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
601
py
def num_common_letters(goal_word, guess): result = [] result_len = 0 goal_word_list = [] guess_word_list = [] goal_word_list += get_list(goal_word) guess_word_list += get_list(guess) for i in range(len(goal_word_list)): for e in range(len(guess_word_list)): if goal_word_l...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
588d431353eb0d806071d7add3c1e1c820840ad5
cbd4e397288a20f5a76907a2c1dfb0fe3356852c
/app.py
e07993fe0d7da510d037f8aea5c42d71d486b839
[]
no_license
reddy100/QuizAPI
99865f458ae1d5d8166c421fcee073dc39103a56
475e56e7344b2d11fd6397de0bedb8866a0421ef
refs/heads/master
2020-04-02T08:06:50.915764
2018-10-23T04:07:13
2018-10-23T04:07:13
154,229,723
1
0
null
null
null
null
UTF-8
Python
false
false
3,796
py
from flask import Flask, render_template, request, redirect, url_for, flash, make_response, session, jsonify from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager, UserMixin, login_user, login_required, logout_user, current_user from datetime import datetime, timedelta from random import shuffle ...
[ "abishekwdaru@gmail.com" ]
abishekwdaru@gmail.com
ced70fb3eebe1d858dcc0187257f7fdcd74b0ebc
4e7c30694f7c8efdd3e660203af391186f001bf4
/backend/bids/backend.py
04e2a3613b2af8343f044a85904adb0b73207de1
[]
no_license
nkoutsov/web_bid_system
a71b49ca3b62b5b176669f07e4dc8f74105ba7f1
84d34b98c9b4eaf7512e8cdab7273a77c3ccb805
refs/heads/master
2023-01-20T13:24:13.039469
2020-11-13T14:48:42
2020-11-13T14:48:42
205,192,624
0
0
null
null
null
null
UTF-8
Python
false
false
718
py
from django.contrib.auth.middleware import get_user from django.utils.functional import SimpleLazyObject from rest_framework_jwt.authentication import JSONWebTokenAuthentication class AuthenticationMiddlewareJWT(object): def __init__(self, get_response): self.get_response = get_response def __call__(...
[ "nikotheract11@gmail.com" ]
nikotheract11@gmail.com
0dc60f3620be8bf49ae2076889b0b99b18524475
5abca260d5909e8137921d2a4fb1889f844e41e6
/rppg_extract/POS.py
8d7eb973cb7044bdf81e9952284991618f3698cc
[]
no_license
MountainLovers/PulseGAN
be886c570cadd13fc48bd0a507668120107121f5
fcf5ae30d5b622f6df1177f7a908207a2cec2900
refs/heads/master
2023-09-03T17:39:56.307195
2021-10-18T21:30:43
2021-10-18T21:30:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,211
py
""" @author: Chun Hei Michael Chan @copyright: Copyright Logitech @credits: [Chun Hei Michael Chan] @maintainer: Chun Hei Michael Chan @email: cchan5@logitech.com """ import numpy as np def POS(X,fps,windows=1.6): """ desc: from RGB spatial-average obtain a one time signal POS args: - X::[a...
[ "miki998Chan@gmail.com" ]
miki998Chan@gmail.com
c60aab701879987a68ccc7b1964df7df0029db9b
2d61193c3b257f8e80b7beea7ac73b2dc1f06265
/18_calculate/calculate.py
a288d74345a596e93a1c02ee089ddb0cefc4a883
[]
no_license
jade0304/python-exercise
961880ffdb62ca45df706327df9542a9de4ee065
99ea8a5274ee804eb3d31f1b64c8b53b70083cd4
refs/heads/main
2023-09-04T00:20:06.985412
2021-10-16T22:39:36
2021-10-16T22:39:36
417,964,555
0
0
null
null
null
null
UTF-8
Python
false
false
1,258
py
def calculate(operation, a, b, make_int=False, message='The result is'): """Perform operation on a + b, ()possibly truncating) & returning w/msg. - operation: 'add', 'subtract', 'multiply', or 'divide' - a and b: values to operate on - make_int: (optional, defaults to False) if True, truncates to integ...
[ "stefanie.dn88@gmail.com" ]
stefanie.dn88@gmail.com
6b4e0a746ba733fc5817c543cecbb4b2ef06b239
8a616f01e2aacc5b8ef45cd3c8e427097a28b88b
/setup.py
d4321f495429133425939bd9cc6297c257a6140f
[]
no_license
captain-proton/damndaily
25142354cc16de6899152a7e576c67ebf3bac56e
91af8f2a9898f4c45734cdf35d3a4cdb9be126a7
refs/heads/master
2021-01-19T17:30:41.432687
2017-09-29T12:06:48
2017-09-29T12:06:48
101,063,919
0
0
null
null
null
null
UTF-8
Python
false
false
287
py
from setuptools import setup, find_packages setup( name='damndaily', packages=find_packages(), version='0.1', license='MIT', author_email='nils@hindenbug.de', include_package_data=True, install_requires=[ 'Flask', 'Flask-SQLAlchemy' ] )
[ "nverheyen@gmail.com" ]
nverheyen@gmail.com
3ef89feecbd1aa344041da46ed96e5e78677f545
aea5b776fa0d9f2bdaef0abe56fd95422581da9e
/methods_and_functions/summer_69.py
1850f9b3bea496b3b536e5f5f6ac8ddaec3d375c
[]
no_license
Arswarum/From_zero_to_hero_practice
0e5e678f633c61919bccfddcb2e29ace32d4bdba
5bde6120556a7d937bc7d7264351ce60392be68e
refs/heads/master
2021-03-15T10:39:40.242601
2020-04-17T16:53:40
2020-04-17T16:53:40
246,844,340
0
0
null
null
null
null
UTF-8
Python
false
false
293
py
def summer_69(arr): arr2 =[] button = True for num in arr: if num == 6: button = False if num == 9: button = True continue if button: arr2.append(num) return sum(arr2) print(summer_69([1, 3, 5])) print(summer_69([4, 5, 6, 7, 8, 9])) print(summer_69([2, 1, 6, 9, 11]))
[ "lestat.it.crowd@gmail.com" ]
lestat.it.crowd@gmail.com
952c51b3fb29d9d810836ea9f2b037d3e5148db5
162c4186ed26c5f7f5b191610770dca128002da7
/van/van_speed.py
a8682cee689a0c61127f1a6f138929bf6fd6de08
[]
no_license
vikramraghav90/Python
390d0206b80e12cd2a6460cec09228c0e3b4b269
5a9910364b5e5f3ad10171cd2c06ab3e9eafc39d
refs/heads/master
2020-04-29T14:42:23.209178
2019-04-24T17:37:26
2019-06-12T08:23:43
176,204,598
0
0
null
null
null
null
UTF-8
Python
false
false
824
py
"""3. Write a function for checking the speed of drivers. This function should have one parameter: speed. - If speed is less than 70, it should print “Ok”. - Otherwise, for every 5km above the speed limit (70), it should give the driver one demerit point and print the total number of demerit points. For example, if th...
[ "vannt.sptb@gmail.com" ]
vannt.sptb@gmail.com
410f4a5d9936de27397992d155a6d1c653de9cc7
f5be6107d92bc0fb60b6cc7aeb8e6df8e30ad141
/api.py
30fd3daa7958eda3484d94518b5237a1573f621b
[]
no_license
qasim-iqbal/rasa_sample
d99fa18423b62b80f72ac0eeed580a0b0edcee11
1ed2c241d9a81f849816a98acc9b79b65a851bce
refs/heads/master
2022-12-12T12:24:44.135756
2020-01-10T18:50:34
2020-01-10T18:50:34
233,109,070
0
0
null
2022-12-08T03:25:20
2020-01-10T18:40:02
Python
UTF-8
Python
false
false
3,102
py
from flask import Flask from flask import request, jsonify from flask_cors import CORS, cross_origin import io import json import pytds import os import traceback from rasa_nlu.model import Metadata, Interpreter from rasa_core.interpreter import RasaNLUInterpreter from rasa_core.agent import Agent from rasa_nlu impor...
[ "iqbalqasim46@gmail.com" ]
iqbalqasim46@gmail.com
d2e6451557af7313d6ababe7b811844f82474502
e73f0bd1e15de5b8cb70f1d603ceedc18c42b39b
/adventOfCode/2022/1/1.py
8d82261bd28d472069bce9fed233ca726d92e8dd
[]
no_license
thran/the_code
cbfa3b8be86c3b31f76f6fbd1deb2013d3326a4a
ba73317ddc42e10791a829cc6e1a3460cc601c44
refs/heads/master
2023-01-05T14:39:16.708461
2022-12-25T08:37:39
2022-12-25T08:37:39
160,978,160
2
0
null
null
null
null
UTF-8
Python
false
false
599
py
from core import AdventOfCode class Level(AdventOfCode): part_one_test_solution = 24000 part_two_test_solution = 45000 def preprocess_input(self, lines): elves = [[]] for line in lines: if line.isnumeric(): elves[-1].append(int(line)) else: ...
[ "exthran@gmail.com" ]
exthran@gmail.com
b57f0f89e5cfdf456e7d8cb79eb17e618ac426d4
068714f7aac1ff2ca55fbf2966ea34c96312e0be
/ep_parser.py
4cca053e25472be2d8cc0b20d94ff5216c7e7bb6
[ "MIT" ]
permissive
marios8543/ant1-dl
1670b04f734419af9c7f1bc3e2a8b1b82d647604
7cd67d49ae113e0f45af1941617b7ab00a521724
refs/heads/master
2023-03-12T17:45:34.805176
2020-07-15T14:50:22
2020-07-15T14:50:22
279,821,217
0
0
MIT
2021-02-26T02:56:05
2020-07-15T09:12:19
Python
UTF-8
Python
false
false
950
py
from aiohttp import ClientSession from pyquery import PyQuery from sys import argv from downloader import main from time import sleep from asyncio import get_event_loop web = ClientSession() def ruc(coro): return get_event_loop().run_until_complete(coro) def id_from_link(link): return link.split("/")[2] def...
[ "marios8543@gmail.com" ]
marios8543@gmail.com
32384698e04525a004d2cf02dd5e27c72e84d027
a37dde1198281be903ac8abb284b4d675a6a25bc
/graphmodels/__init__.py
1fbfb5497459d4837e6c832c1ce964b286a1cc7d
[ "MIT" ]
permissive
DLunin/pygraphmodels
6980d43c56def995f82dfc387c53f1f8cc2c5f1e
a6075355369d03cfa63227a4c07a8c780ac240f0
refs/heads/master
2021-01-10T17:57:59.693338
2016-02-18T10:15:43
2016-02-18T10:15:43
51,922,102
0
0
null
null
null
null
UTF-8
Python
false
false
273
py
from .output import pretty_draw from .factor import Factor, TableFactor, IdentityFactor, DirichletTableFactorGen from .dgm import DGM, ErdosRenyiDGMGen, TreeDGMGen from .inference import * from .structure import * from .misc import constant from .meta import methoddispatch
[ "mail.lunin@gmail.com" ]
mail.lunin@gmail.com
bd5c967c95a080b66aa5f624bb060ec2a9138cd6
5a1718380e0433816c61080849b27baaf30ba264
/django/wall_app_assignment_2/apps/wall_app/migrations/0001_initial.py
5f2f269e6b00274e8a227fe50470c74c7e67315a
[]
no_license
Himanshuhub/python_stack
7be4eb43ba994eea62ed44793c3f483703346d25
a17e4fde3dfdba3346a0093eeb425bfc0fc28d04
refs/heads/master
2020-06-16T14:51:13.476018
2017-06-27T01:13:29
2017-06-27T01:13:29
94,148,752
1
0
null
2017-06-22T03:56:19
2017-06-12T23:15:00
Python
UTF-8
Python
false
false
2,509
py
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-06-20 23:23 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Create...
[ "himanshuguptams@gamil.com" ]
himanshuguptams@gamil.com
668c6b660add018360f7f70a5b87f49656790d92
3f5c1ecc7c2f07446d15d1e84ec9482c3d6d6a78
/11/01_.py
42574e742c40c3e7e8c77bd83acd6e76204be7b6
[]
no_license
withzjc/t2
990a39b9b413d4ca9ca6a4fe4b86c5cd0819d9d9
1501341cf87231bd111fc11fd5381f37e6283847
refs/heads/master
2020-04-26T07:41:41.414044
2019-03-02T04:28:17
2019-03-02T04:28:17
173,400,982
0
0
null
null
null
null
UTF-8
Python
false
false
759
py
# re模块 # 正则表达式 匹配字符串的 # 1 [] [0-9] \转义字符匹配字符 [a-zA-z0-9] # .匹配除了换行符以外的任意字符 # \w 匹配数字字母下划线 # \s 匹配任意的空白符 # \d 匹配数字 # \n匹配一个换行符 # \t 匹配一个制表符 # \b 匹配一个单词的结尾 # ^匹配字符串的开始 # $匹配字符串的结尾 # \W匹配非字母或数字或下划线 # \D匹配非数字 # \S匹配非空白符 # a|b匹配字符a或者字符b # ()匹配括号内的表达式,也表示一个组 # 【】匹配字符组中的字符 # 【^】匹配除了字符组中的字符的所有字符 # *重复零次或者多次 默认往多了匹配,贪婪匹配,...
[ "2806623723@qq.com" ]
2806623723@qq.com
469210cb817766e41f5047f7afb112c92eab48fd
770a086356802127749b77d855f0a921fadd36c3
/app/users/utilities.py
df1c6eb30696193f2ec8b8e771d1c107621289fd
[]
no_license
samlex20/airtime
14578e525a2603b5640b97964e9fed011ce0f4af
7c2a4f585239aae713cc99be7f9b061636705c52
refs/heads/master
2023-05-14T19:14:04.542471
2019-12-28T15:38:26
2019-12-28T15:38:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,210
py
from app import app, mail from flask_mail import Message from flask import render_template from sendgrid import SendGridAPIClient from sendgrid.helpers.mail import Mail import arrow def send_reset_email(user, template, **kwargs): msg = Message(subject=app.config['RESET_MAIL_SUBJECT'], sender=app...
[ "pythonantole@gmail.com" ]
pythonantole@gmail.com
6ac59a0ca11d698c305113e9ccc38594275bffb2
1cdb1a2cfe237ad05dc4510ebb3fc08c97518176
/myblog/blogs/migrations/0003_person.py
edc1517aaefbef795b60f3ce8346714093efdb7c
[]
no_license
breakerthb/PythonWebServer
86b0453dd3caeaa89e1929eb322c7af3809597d2
a590391c058855c5aa2e5695f9e3c549ae0dbbc0
refs/heads/master
2021-01-19T06:41:28.704936
2016-06-30T07:48:37
2016-06-30T07:48:37
60,346,686
0
1
null
null
null
null
UTF-8
Python
false
false
597
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blogs', '0002_auto_20160630_0514'), ] operations = [ migrations.CreateModel( name='Person', fields=[...
[ "breakerthb@126.com" ]
breakerthb@126.com
f9e9f4090d22c42a444c5ed068ddd426ff23df77
5f5ba9e4a767b610914946e17bf74708dbb1b248
/myInstagram/account/forms.py
4e711fe96c8288304cdb2a0c6eaf7e6db202dfdc
[]
no_license
bhrigu123/myInstagram
61a00f517b4413b48219685b9917f9228852574c
453a228a9057f7096b785ed0ebfe124fd552c4ff
refs/heads/master
2021-01-18T07:56:22.233045
2015-04-18T14:12:12
2015-04-18T14:12:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,148
py
from django import forms from .models import * class UserCreationForm(forms.ModelForm): passwd1 = forms.CharField(label='Password', widget=forms.PasswordInput) passwd2 = forms.CharField(label='Confirm Password', widget=forms.PasswordInput, help_text = "Should be same as Password") def __init__(self, *args,...
[ "anushray@100percentile.com" ]
anushray@100percentile.com
e519b5c0c5910674da8e7762b686afe714112af8
dde02c2a9a1b62048f978fb0c75958db13988a81
/Connect4Py/Connect4.py
dc343fc9a4337ae107ca7cab5c27622bc3a99d79
[]
no_license
TaylorHarvin/Connect4_AI
63b19940588303fa39d67bdf84cdc2dd9413cfed
374388b03687048117cfc3a8b73fa654aee34b48
refs/heads/master
2021-01-23T08:21:21.836654
2017-03-29T16:43:27
2017-03-29T16:43:53
86,505,450
0
0
null
null
null
null
UTF-8
Python
false
false
1,578
py
''' Developer: Taylor Harvin Date: 3/29/2017 Purpose: Utilizes Connect4 classes: BoardNode, BoardTools, SlotState, and GameAI to play Connect4 with a user. ''' from Connect4Tools.BoardNode import BoardNode from Connect4Tools.BoardTools import BoardTools from Connect4Tools.States.SlotState import SlotState from ...
[ "tharvin12@gmail.com" ]
tharvin12@gmail.com
e6c8397e01d4b202f7051fca10401bd1198bc5d3
84686b23a574201b761a267d18bfd829a2987d29
/convert.py
f6e067b016669823dbfb030f39dc2f92557c1352
[]
no_license
trojan321/KantarTask
4e80d6e37e3bd255c9314fc9c6af6670de70fda6
547be164cbf858ba678e0f620104444e1b50b1f4
refs/heads/main
2023-04-17T18:47:18.076434
2021-04-26T12:15:20
2021-04-26T12:15:20
361,736,509
0
0
null
null
null
null
UTF-8
Python
false
false
2,480
py
# load pandas import pandas as pd import datetime import argparse INPUT_FILE = 'input-statements.psv' OUTPUT_FILE = 'output-sessions.psv' def convert(input_file=INPUT_FILE, output_file=OUTPUT_FILE): # read file as pandas dataframe df = pd.read_csv(input_file,sep='|') df['HomeNo'] = df['HomeNo'].astype(st...
[ "pawel.maslowski@quintiles.com" ]
pawel.maslowski@quintiles.com
6bdfa2ab8c3069a37a97d4c6fa6c918cdf77a26f
892fb6c81b2e0b50f82194e36fefefef440d3dcc
/airflow_dag/create_background_xml.py
947f16d58819114938d7d41ed00d171dc8694560
[]
no_license
mickmcd01/flickr_slides
483f3108d7dfce1043c28fdaf25ad096a750393f
755451d5e803ac9d10899b0cc2bcabba8dd4cf13
refs/heads/master
2022-12-15T23:37:06.934436
2020-09-16T23:10:57
2020-09-16T23:10:57
269,445,811
0
0
null
null
null
null
UTF-8
Python
false
false
1,279
py
import os import argparse from shutil import copyfile xml_destination = '/home/mick/.local/share/shotwell/wallpaper/wallpaper.xml' xml_temp = '/home/mick/wallpaper.xml' parser = argparse.ArgumentParser() parser.add_argument("--slides", help="full path to the slides directory") args = parser.parse_args() file_list = ...
[ "mickmcdonnal@gmail.com" ]
mickmcdonnal@gmail.com
08f45135b85d71d3008d48ff979d44ce38600bcc
b6edc802ba0a8384d109a45fac1bf6aeaa7671d8
/functional_tests/test_layout_and_styling.py
0026ae846f40a43f5a2a43085d9e1ba554847189
[]
no_license
bfalase/python-tdd-book
28b4ab042af4318c0d58f06ada60bdbf9f4f7c03
4057515c03c599e3c8f07007384b78aba2aed1c6
refs/heads/master
2022-12-24T19:53:14.804365
2020-09-29T22:10:37
2020-09-29T22:10:37
291,580,020
0
0
null
null
null
null
UTF-8
Python
false
false
978
py
from selenium.webdriver.common.keys import Keys from .base import FunctionalTest class LayoutAndStylingTest(FunctionalTest): def test_layout_and_styling(self): # Edith goes to the home page self.browser.get(self.live_server_url) self.browser.set_window_size(1024, 768) # ...
[ "bfalase@gmail.com" ]
bfalase@gmail.com
13c3e14be1f6c838ffcef4205b18810fc53689a7
1b871f74f4ded40de7bb70c7a2acd19ef93ba51a
/script/test.py
fdb7ac2a5a1feb086e1507df86dae7be3b097a51
[]
no_license
2033329616/caffe_project
e90f9fba5d47d4bc061a59e523e35d0de9837358
35c47790c0dcf6a457d259d8e352c0b944b1dbae
refs/heads/master
2021-09-01T14:31:13.979329
2017-12-27T13:19:49
2017-12-27T13:19:49
112,702,547
1
0
null
null
null
null
UTF-8
Python
false
false
280
py
class Test(object): def __init__(self): self.name = 'hahahahha' name1 = '2233' _name2 = '666' __name3 = '777' def print_name(self): print(self.name) a1 = Test() print(a1.name) a1.print_name() # print(a1._Test__name2) # print(Test._Test__name3) # print(Test.__dict__)
[ "2033329616@qq.com" ]
2033329616@qq.com
a7a907377db196588f378a6228680aafcdb7fcf7
6299ee9b9bb0ba90376005c3f7bc8a71f546b6aa
/routes.py
20a33501bfd5b7ccb2c7c04e2a7747690f407097
[]
no_license
jordancohill-1/lab3
3441ff78aee34d1e307ba3a5dd56739d10f9e7b4
713dbdde95a9bd16ca9a5dd6cebdeb1ff6fb24ad
refs/heads/master
2023-02-06T19:53:09.201047
2019-07-15T19:23:49
2019-07-15T19:23:49
197,054,838
0
0
null
2023-02-02T06:36:07
2019-07-15T18:52:13
Python
UTF-8
Python
false
false
1,349
py
from flask import Flask, render_template, request, redirect, url_for from models import db, User from forms import UsersForm from flask_heroku import Heroku app = Flask(__name__) heroku = Heroku(app) #app = Flask(__name__) #app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql://localhost:5433/usersdb' db.init_app(ap...
[ "cohill_jordan@bah.com" ]
cohill_jordan@bah.com
12e7e85fa298c4350284f7490d1ef6623f9d1087
9e252d6e4a1571eced7a32189eb3b3ccc870cfe3
/ums2/money/data.py
d2c7d1e88d5de6edf0fb2cfacab0891ed6e3168a
[]
no_license
c0per/OIProblems
1d5893301dd9f8bbe3e40823ced29520c3477a03
2282c51cb301807a314a7d7bc9035a5560834b61
refs/heads/master
2023-02-06T07:25:49.714674
2020-12-25T13:55:26
2020-12-25T13:55:26
288,164,601
0
0
null
null
null
null
UTF-8
Python
false
false
587
py
import cyaron, os os.system('g++ -o std -O2 ./std.cpp') for i in range(10): io = cyaron.IO(file_prefix = 'money', data_id = i + 1) if i < 2: n = cyaron.randint(15, 20) elif i < 4: n = cyaron.randint(900, 1000) else: n = cyaron.randint(900000, 1000000) io.input_writeln(n)...
[ "asn1k@protonmail.com" ]
asn1k@protonmail.com
c4720ac12db10f8dd80e8443b991684ddcd4f399
0b63d8ee4bee3be54be848568350b04f928287b3
/VisionAPIDemo/Lib/site-packages/google/cloud/vision_v1p3beta1/services/product_search/transports/base.py
2b219f8b2544aa6dcc48f4d9ae4ab44772b13f53
[]
no_license
kailinchu/machacks-text
f55a23c1400e5919c4850e5b97a131622b971ea8
a2c6699753a137c4680cc8b21a7fb88144886dca
refs/heads/main
2023-02-27T07:47:41.271216
2021-02-07T17:33:50
2021-02-07T17:33:50
336,629,531
3
0
null
null
null
null
UTF-8
Python
false
false
19,110
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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 o...
[ "aaronchyau@gmail.com" ]
aaronchyau@gmail.com
222bab0f6336be0cdd7b057c8bc9592e9c85e4f9
c1505e557c722f3296fa38baab066bcb7b97f43a
/geoids_traveltimepolygons/tethysapp-geoids_traveltimepolygons/tethysapp/geoids_traveltimepolygons/app.py
35683b2e6d5929139165b40d35d76ed2777893d9
[]
no_license
Geoids/geoids_traveltimepolygons
3227d6ba104446acccfb98da565240b478c062ed
dc0c33154182e51c1ff2bcef72abefa637c38424
refs/heads/master
2021-04-12T11:52:24.558226
2018-04-12T21:08:19
2018-04-12T21:08:19
126,903,004
0
0
null
null
null
null
UTF-8
Python
false
false
1,605
py
from tethys_sdk.base import TethysAppBase, url_map_maker class geoids_traveltimepolygons(TethysAppBase): """ Tethys app class for Travel Time Distance Map App. """ name = 'Travel Time Polygons' index = 'geoids_traveltimepolygons:home' icon = 'geoids_traveltimepolygons/images/car.jpg' pack...
[ "noreply@github.com" ]
noreply@github.com
e93b29e38017527a9d528055769639b17c587b5b
bdb7e01e4de5103d26b4496d938cbb98d4d3b511
/tracpro/groups/tests/test_views.py
2cba2ff45cb72bfe6a982bdb9f5893d285aac22e
[ "BSD-3-Clause" ]
permissive
devartis/tracpro
f780b850126a82ea96801aef25c7ad06a061bc88
8253a53761c4b12cde18b0157c4a250b58468ee9
refs/heads/develop
2021-01-21T15:49:55.700557
2016-08-18T15:57:46
2016-08-18T15:57:46
64,132,820
3
0
null
2016-07-25T12:33:50
2016-07-25T12:33:50
null
UTF-8
Python
false
false
24,042
py
from __future__ import unicode_literals import json from dateutil.relativedelta import relativedelta from django.core.urlresolvers import reverse from django.utils import timezone from tracpro.polls import models as polls from tracpro.test import factories from tracpro.test.cases import TracProDataTest, TracProTest...
[ "rebecca@caktusgroup.com" ]
rebecca@caktusgroup.com
88f17fa4df543a5bc167a16150d3ad71019a317b
7639e2367fd61c7f92e1583e1775264ac58f8dd5
/husky_ur3_gripper_moveit_config/scripts/control_Husky_UR3_8.py
37d12e236cbb61aa2ab13a664841cd16f07d095a
[]
no_license
Shumine/husky_ur3_gripper_simulator
beea4819cdcf4a6a3d8d42b5c91ed104637789a9
d53f309c1040cc430c161803d3e7c1f6a1e60c58
refs/heads/master
2023-01-12T23:18:44.183277
2020-11-17T10:45:44
2020-11-17T10:45:44
287,156,095
0
1
null
null
null
null
UTF-8
Python
false
false
10,807
py
#! /usr/bin/env python # -*- coding: utf-8 -*- """ """ import sys import rospy import copy, math import threading import time import tf from multiprocessing import Process from math import pi, radians, degrees, atan2, sqrt from moveit_commander import MoveGroupCommander, RobotCommander from moveit_commander import ...
[ "55174548+Shumine@users.noreply.github.com" ]
55174548+Shumine@users.noreply.github.com
88f3be0529393582e1ac0d38749d1a06c93f9796
5985a4feeea08c35a96442c3691bdcea767f235a
/django_svelte/lib/python3.9/site-packages/xlsxwriter/worksheet.py
176c33899123faa131ab47834a1b02949fc76a9d
[ "BSD-3-Clause" ]
permissive
Mujirin/django_svelte
52789f495901a350b1c396c4b8fc40d46a15e8e1
1c7c5d13b11b43147ef28e5bb78cb8629190949f
refs/heads/main
2023-04-21T08:40:17.909238
2021-04-24T09:38:42
2021-04-24T09:38:42
361,102,673
1
0
null
null
null
null
UTF-8
Python
false
false
259,088
py
############################################################################### # # Worksheet - A class for writing the Excel XLSX Worksheet file. # # Copyright 2013-2021, John McNamara, jmcnamara@cpan.org # # Standard packages. import codecs import datetime import os import re import sys import tempfile from collect...
[ "mujirin@mail.ugm.ac.id" ]
mujirin@mail.ugm.ac.id