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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7f960cda94d1d083d78b03e0ba5ad898c559bd3a | afbaa5685bf737ec7d16fee2bab54ae13caf96f9 | /geekbang/core/11.py | 15eb00956ae41705b7004b30efad678165ef228f | [] | no_license | ykdsg/myPython | 9dcc9afe6f595e51b72257875d66ada1ba04bba6 | 77d2eaa2acb172664b632cc2720cef62dff8f235 | refs/heads/master | 2023-06-10T20:11:08.061075 | 2023-06-03T11:39:53 | 2023-06-03T11:39:53 | 10,655,956 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,487 | py | class Document:
WELCOME_STR = 'Welcome! The context for this book is {}.'
def __init__(self, title, author, context):
print('init function called')
self.title = title
self.author = author
self.__context = context
# 类函数,类函数的第一个参数一般为 cls,表示必须传一个类进来
@classmethod
def cr... | [
"17173as@163.com"
] | 17173as@163.com |
74360cfb5c22b03c17d47ddf3d113185fd4e08c0 | 10c865b3c0c88ad213cb728a98b1fcf132bb067f | /chapter_two/add.py | ae92b4daf55ef1fd126ebd2c1de55eac68387075 | [] | no_license | selcukcihan/crackingthecodinginterview.py | 386820aa8493a2f11e31db703e8b281af2b1548a | a005818cae710d5a0448fa7efbe6376c4f5ae587 | refs/heads/master | 2021-01-21T13:21:16.910239 | 2018-01-20T20:46:57 | 2018-01-20T20:46:57 | 53,852,089 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,821 | py | #! /usr/bin/env python
"""
You have two numbers represented by a linked list, where each node contains a single
digit. The digits are stored in reverse order, such tat the 1's digit is at the head of
the list. Write a function that adds the two numbers and returns the sum as a linked list
EXAMPLE
Input: (3 -> 1 -> 5) +... | [
"SELCUKCI@CIHANS.intertech.denizbank.com"
] | SELCUKCI@CIHANS.intertech.denizbank.com |
5ede0c559bc0d229d11d19c4d07cc1890aedec27 | 09e7b3049d7ff5baa392864eee96c5ebf99655af | /cut_stop_process.py | 7373bb2017ce441bd9b810b1e79e37fd8ea7c499 | [] | no_license | FelixLiu1996/Sentiment_Analysis | 3c731abb2ed1f489fd0c4ee6a39da60dfe8ef1c7 | fb8be20966e0748b3d99315cf2ee21a73fb19ac2 | refs/heads/master | 2020-06-18T12:20:03.199987 | 2019-07-13T13:57:01 | 2019-07-13T13:57:01 | 196,301,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,159 | py | import numpy as np
import pandas as pd
import jieba
import jieba.analyse
import re
import codecs
import string
def clean_data(text):
"""去掉标点符号以及中文 """
pattern = re.compile("[\u4e00-\u9fa5]|[\(\)\《\》\——\;\,\。\“\”\<\>\!]") # 只匹配标点符号和中文
res = pattern.findall(text)
res = ''.join(res)
return res
def... | [
"1321842068@qq.com"
] | 1321842068@qq.com |
52987e627ba68db3086386c61ae709502816ded6 | d0b7d681550464492e290d11c2be0c43ba4dc7ca | /python/logger/logger.py | 78c2387780e901414cdfcadac2a0b84179dd2efc | [] | no_license | kuzovkov/scrapers | 0af71a8d5628b604b8c1c9fcfa6c95f63a69976f | cae2d758f3a25bc53d401d5a4d46fda231c58445 | refs/heads/master | 2020-05-27T21:10:17.701161 | 2017-03-02T16:22:29 | 2017-03-02T16:22:29 | 83,604,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,711 | py | #coding=utf-8
import time
import os
class Logger:
logfile = None
def __init__(self, logfile=None):
if logfile is not None:
self.logfile = logfile
#Подготовка сообщения к выводу
def _prep_message(self, msg, prefix, status):
date = prefix + ' ' + time.asctime(time.localtim... | [
"you@example.com"
] | you@example.com |
6500fd2acb8cb277b272726bf1526a92de251566 | 76ad79c64e3f7b0c334e39041490ae93dbc3eb26 | /demo/backend/backend/urls.py | 9834012be9c9252b81589a96a6359751aecf7ebf | [] | no_license | akonepoint/transform-and-tell | 21ec1978350c8ffaaff5971229091245a6e9e999 | 47f00da81d606db8df992674101842d797ab1fa1 | refs/heads/master | 2023-09-01T16:52:51.474528 | 2021-10-14T09:32:06 | 2021-10-14T09:32:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | """backend URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"alasdair.tran@gmail.com"
] | alasdair.tran@gmail.com |
fe8835b7ad87712f1dfb73b498ca7b3ad992d1f7 | 96288dad8f679376f49ccb52044341b9eec7a7e1 | /bande_annonce.py | 4776939838f5382f26cdbe8469afb82450a94988 | [] | no_license | louismarc-mercier/Manim | 0bfe673b6eb9aa9c3388e68a3ec8ed2e6788970c | adcd36907ed030a551db8a7dac16ae020ef51eca | refs/heads/master | 2023-07-06T21:10:46.102530 | 2021-08-13T13:37:38 | 2021-08-13T13:37:38 | 266,430,156 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,032 | py | from manimlib.imports import *
from manim_utils.slide_template import BoxedTitle, GenChannelLogo, YoutubeLogo
from MyAnim.RevisionSecondaire.id_rem_french import MeasureDistance
class bandeAnnonce(Scene):
def construct(self):
# Channel logo and name (UP LEFT CORNER)
path = r"C:/Users/Uti... | [
"noreply@github.com"
] | louismarc-mercier.noreply@github.com |
944e14c58823984857d813317dfa4880f3c39c97 | d3f36cdca0315f3b943429e40a097823765f9d4f | /src/notification/migrations/0001_initial.py | fa2603c60859bb39eb0de7510c1cd941818cad47 | [] | no_license | camaratc/notify_server | 320c5de4ef4be397dab1b3089788e076ef7ce081 | 0ae0464f73330e984f3132f3e90623851efd2fc2 | refs/heads/master | 2020-03-29T20:09:27.063128 | 2018-11-09T16:05:46 | 2018-11-09T16:05:46 | 150,298,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,315 | py | # Generated by Django 2.1.1 on 2018-09-28 17:45
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Notification',
fields=[
('id', models.AutoF... | [
"matheusrf96@gmail.com"
] | matheusrf96@gmail.com |
da4f39271d6fa04ca91ceae37e78340853405fd8 | 30278f2167c5d355c037df5bf9f94b6ff20a55c2 | /hello.py | aedcf5074649853d0d166d75cb756fd7675c3f0b | [] | no_license | ankitthakur007/discord-bot | 29fe51ff350cd180f2d0b5af691f301f07d8548a | 59c0bd5b144018958afb73e2b0616dab5e95977f | refs/heads/main | 2023-05-06T13:14:29.409720 | 2021-05-29T16:12:07 | 2021-05-29T16:12:07 | 371,924,261 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | # -*- coding: utf-8 -*-
"""
Created on Sat May 29 08:23:45 2021
@author: Ankit
"""
print("Hello World!") | [
"thakubhai.007@gmail.com"
] | thakubhai.007@gmail.com |
3475e23eae2cada8acb2751313d2a5f4684ae72e | c3b32dc07fec5759c077f6e983d32a130b523faf | /MachineLearning/views.py | c62d67a9c7106e908283f20764507a78b40a437c | [] | no_license | Winton1992/Visual-Analytics-of-Machine-Learning-Performance | c7bad8ccab779e8272b11445b62400ff1b7c5f48 | b2d274c3649eaca2587ec74afb3c25d0dcd1d1ea | refs/heads/master | 2020-03-14T02:33:44.259332 | 2018-04-28T13:38:13 | 2018-04-28T13:38:13 | 131,401,468 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,877 | py | from django.shortcuts import render
from django.views.generic import View
from rest_framework.response import Response
from rest_framework.views import APIView
from ML.machine_learning import MLResult
# url 'MachineLearning/ML-result/'
class MachineLearningResultView(View):
def get(self, request, *args, **kwargs)... | [
"weli0127@uni.sydney.edu.au"
] | weli0127@uni.sydney.edu.au |
fef81ea432b7a108e17ce262dea7f5e6e542ddbe | 55cc304c3e98d998bf20d5deab72852a5149a88f | /pyente/client.py | 5075b489a138a7b3e6405156df0e7b1ff566c0a7 | [
"MIT"
] | permissive | waschag-tvk/pyente | f05cc5226a7130de5b5c83a70124f7b4f0f9edac | 1f41e6db6e883ac058da3f9de8619021cde9b973 | refs/heads/master | 2020-03-20T19:40:55.838333 | 2018-06-25T19:02:53 | 2018-06-25T19:02:53 | 137,648,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,721 | py | import requests
class Client:
def __init__(self, enteapi_url='http://localhost', ente_id=1):
self.appointment_url = enteapi_url + '/enteapi/v1/appointment/'
self.token_auth_url = enteapi_url + '/enteapi/token-auth/'
self.last_used_for_each_machine_url = (
self.appointment_u... | [
"waschag@tvk.rwth-aachen.de"
] | waschag@tvk.rwth-aachen.de |
45cdab6f8d281fbbfc1f008c7c4f280c8cb1b340 | 4a451db0a46420131f9961fc6477377913ef6062 | /Chapter7/utils/__init__.py | 8f39ea525511b137966df29dde6a9fcf2a7cd649 | [] | no_license | fuurin/pytorch_advanced | 252fe6c76ee312159f7413d0c69ec672836a3228 | aeaa59352278adcba388435b8f39bdf5eb985e70 | refs/heads/master | 2022-12-17T00:09:12.888656 | 2020-02-23T17:26:49 | 2020-02-23T17:26:49 | 204,486,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | from .dataloader import *
from .transformer import * | [
"komatsu@dais.is.tohoku.ac.jp"
] | komatsu@dais.is.tohoku.ac.jp |
c2924fe046e0d04257a3b313c8ba72d98d9b8a8b | 6fa28562089148f569240ecd0ee0010a776e5b3b | /Assigned Questions/dictionaries_02.py | 78062cb8199e3782fa1bbc5044fa0eef9e6efb94 | [] | no_license | VinuthnaGangula/261714_Py_DailyCommits | d67c93f2de25ffa35fb6bcc4ad3142d7704b88f9 | 8a1185b7e4f186b14132a0ae64f52ef88978b8df | refs/heads/main | 2023-04-20T20:07:58.140441 | 2021-04-29T03:03:49 | 2021-04-29T03:03:49 | 359,351,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | # To convert a list into nested dictionary of keys.
list_ = list(input("Enter values of the list: ").split())
dict_ = {}
dict_temp = dict_
for i in list_:
dict_[i] = {}
dict_ = dict_[i]
print(dict_temp)
| [
"gvvlvinuthna2000@gmail.com"
] | gvvlvinuthna2000@gmail.com |
21f4f6b71376a4700a0c02b29912bc92efbf0bf9 | cf71c03349937a3d9ec5f3d3ff65801368453b89 | /setup.py | aed3db14d19f7d30ac1417f906574452aac9206e | [
"MIT"
] | permissive | movermeyer/django-aggregate-if | c90b8ad61a336a0fdf20737291e7866aafec6ffb | 588c1487bc88a8996d4ee9c2c9d50fa4a4484872 | refs/heads/master | 2021-03-19T17:29:32.839653 | 2014-11-20T11:11:06 | 2014-11-20T11:11:06 | 123,967,026 | 0 | 0 | MIT | 2018-03-05T19:19:24 | 2018-03-05T19:19:24 | null | UTF-8 | Python | false | false | 1,161 | py | # coding: utf-8
from setuptools import setup
import os
setup(name='django-aggregate-if',
version='0.5',
description='Conditional aggregates for Django, just like the famous SumIf in Excel.',
long_description=open(os.path.join(os.path.dirname(__file__), "README.rst")).read(),
author="Henrique B... | [
"henrique@bastos.net"
] | henrique@bastos.net |
09e2968e9aa36cd2e97b1a57c7f01ca1a8163fa0 | 15e751d61495ff17b1a0234ebf58f3818a26726d | /SENT.py | 39894d480a2aa905471570bb02b77ba0252b602e | [] | no_license | deodeveloper/sentimentalAnalysis | f61f26dd6a0a7fb0acb01fdfd0f23f4fddcc5342 | 6cc2d05cbc4cda751c18abec41f2fb71704b7349 | refs/heads/master | 2021-03-27T12:51:05.919696 | 2017-08-01T02:15:07 | 2017-08-01T02:15:07 | 70,414,503 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,103 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 12 10:14:12 2016
@author: Satya
"""
from tweepy import OAuthHandler
import tweepy
import urllib.request
import json
from unidecode import unidecode
CKEY = "QdjZPGYPwd99r72qQfyZyZEcO"
CSECRET = "yUgsvYUSFtNQIEgLW1aY9DMJRRxYajxfYC2pg3RzFhR3rkcl5L"
ATO... | [
"noreply@github.com"
] | deodeveloper.noreply@github.com |
19ef15f108dcbe8ee9a8bd5e91031584e26407b4 | 96a50d47e6acf3c35f69cb9187145cf6adc048cf | /bin/get_oisst_data | 31d3f3c7de6ab3a19eb32778279e6241618ddfbe | [] | no_license | underwoo/oisst | edb84b9316c8e9ff0966e000089577e7ee5d3a20 | 16ddfc0905647b829bd8914e7d35a464a95d719d | refs/heads/master | 2020-03-07T15:10:10.572231 | 2018-04-02T15:11:58 | 2018-04-02T15:11:58 | 127,547,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,561 | #!/usr/bin/env python3
import urllib.request
import urllib.parse
import urllib.error
import re
import bs4
import datetime
import os
import sys
import errno
import logging
import logging.handlers
import configobj
class UrlData(object):
def __init__(self, url):
"""Get a list of directories and files served... | [
"Seth.Underwood@noaa.gov"
] | Seth.Underwood@noaa.gov | |
ce6a11fe641cb24056fb5e96e49a8af20a35752a | 615d87a178d96678df4711db235e97932c8880b7 | /fraud-detection.py | e515c2b0b3350f5810a90b3a640f89570e834d13 | [] | no_license | Radhika007/credit-card-fraud-detection | f7723aba1f532d21f187c8158b6422688f898ba9 | 7bd7e3402f3966ca15298dd6a90c946510f39457 | refs/heads/master | 2020-06-13T12:22:10.468394 | 2019-08-04T16:31:43 | 2019-08-04T16:31:43 | 194,651,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 1 14:31:27 2019
@author: radhika
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# Importing the data
dataset = pd.read_csv('creditcard.csv')
X = dataset.iloc[:, 0:30 ].values
y = dataset['Class']
# Labelling the data ... | [
"noreply@github.com"
] | Radhika007.noreply@github.com |
b7dfc930e3d569213e48e5d836b04309dc32179e | 675e47bd94633152a01dd0e9ee36158c9db99cdc | /card.py | 49ff4ce276766fa52e0b846948985d4cf501bf27 | [] | no_license | qq456cvb/enumlator | d7722317b31d4981eb6f975d501c83e178102b81 | 99b1070ef6901079c18042c64eb64de97f9b07d9 | refs/heads/master | 2021-01-01T16:45:45.841206 | 2017-08-16T03:54:34 | 2017-08-16T03:54:34 | 97,910,048 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,353 | py | from collections import Counter
import numpy as np
import itertools
import functools
def get_action_space():
actions = [[]]
# max_cards = 20
# single
for card in Card.cards:
actions.append([card])
# pair
for card in Card.cards:
if card != '*' and card != '$':
action... | [
"neilyou@qq.com"
] | neilyou@qq.com |
dccff8c20bf96ece6ddcaaf44cb871aab46ff061 | e9e135908e901613a5bd9bcc27987305fccd5d71 | /src/ploting.py | 5ce97095c6eba9b19ee1f229f56d64f756bc3514 | [] | no_license | pythontz/IndabaX_Tanzania | 6358966c3a411e77fdbcdbea54ba8b39a08d1c43 | c32bce6b0dcf3e2080a52d978c3a3678adbfa3ea | refs/heads/master | 2020-03-14T16:56:51.644867 | 2018-05-01T12:05:45 | 2018-05-01T12:05:45 | 131,708,457 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,511 | py |
import matplotlib
import matplotlib.dates as dates
import matplotlib as mpl
from matplotlib import rcParams
import pandas as pd
import numpy as np
from datetime import datetime, timezone
import matplotlib as mpl
import matplotlib.pyplot as plt
from cycler import cycler
# Format python plot with Latex
SPINE_COLOR = '... | [
"sambaiga@gmail.com"
] | sambaiga@gmail.com |
615bae9151deaabf675595e167e23f46558cbee5 | 08d7462edc78ae720350401bcbddbffcfe5b6d12 | /music/migrations/0004_album_album_logo.py | cb712980507d0ae0a1b68473e79f73162bc44f15 | [] | no_license | praniel1/music | ff461613c1eacb35f65c7121f88c99d00a3e6dbf | fdcd825f09212e55d4fa82db3020f21414ed5308 | refs/heads/master | 2021-06-27T15:22:37.870587 | 2017-09-12T09:26:12 | 2017-09-12T09:26:12 | 103,249,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-08-23 20:26
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('music', '0003_remove_album_album_logo'),
]
operations = [
migrations.AddField... | [
"praniel1@Praniels-MacBook-Air.local"
] | praniel1@Praniels-MacBook-Air.local |
cfa60ce5fe3927c5de3c3798a1b99d5f3e6b65b2 | 458b1133df5b38a017f3a690a624a54f0f43fda7 | /PaperExperiments/XHExp027/parameters.py | 37d8e07fd2063ff93490e451e1c805acdf32f468 | [
"MIT"
] | permissive | stefan-c-kremer/TE_World2 | 9c7eca30ee6200d371183c5ba32b3345a4cc04ee | 8e1fae218af8a1eabae776deecac62192c22e0ca | refs/heads/master | 2020-12-18T14:31:00.639003 | 2020-02-04T15:55:49 | 2020-02-04T15:55:49 | 235,413,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,710 | py |
# parameters.py
"""
Exp 27 - {'Initial_genes': '5000', 'Host_mutation_rate': '0.30', 'TE_progeny': '0.15, 0, 0.55, 1, 0.30, 2', 'TE_Insertion_Distribution': 'Triangle( pmax=0, pzero=3.0/3.0 )', 'Carrying_capacity': '30', 'TE_excision_rate': '0.5', 'Junk_BP': '14', 'Gene_Insertion_Distribution': 'Triangle( pzero=1.0/3.... | [
"stefan@kremer.ca"
] | stefan@kremer.ca |
d9ea40e86d880c00089429a874c50b32a1e44416 | 286d8c1ff92c49d51efda52ba281621e89cc0b64 | /SemanticParse/ValidURI.py | 75b1d5e774f6b06668a7e193eeabdc40690d36b5 | [
"MIT"
] | permissive | zointblackbriar/QuestionAnswering | e154d16fa84e1abd1946fe62ff343d4ec2d96ff5 | 319c3623ced22254d75c2918929a875090bd2bf5 | refs/heads/master | 2020-03-28T01:34:57.874688 | 2019-12-12T16:06:33 | 2019-12-12T16:06:33 | 147,515,150 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,572 | py | # This is a library that reliably creates valid (parts of) IRIs from strings (spaces are turned into underscores, etc.).
# Copyright (c) 2015 Rinke Hoekstra (VU University Amsterdam/University of Amsterdam)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated ... | [
"freelancerzoint@gmail.com"
] | freelancerzoint@gmail.com |
7eb80ac47f3cc0c5b7cad625ed6e385a0477b357 | 22ef551e041279e62d969124d367e78e485ff1e9 | /client.py | c5b9a97bf8a6a5eb71429763c31ef64e6038e892 | [] | no_license | dmmeteo/simple_blockchain | df9ebecb52691e0206de044724c671323a6af59d | a788f69c554f0986c0cfc20e6bf5ab994d6db216 | refs/heads/master | 2020-03-20T06:36:11.066102 | 2018-06-13T22:31:55 | 2018-06-13T22:31:55 | 137,254,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | #!/usr/bin/env python
from datetime import datetime
from blockchain import Block
def create_genesis_block():
return Block(0, datetime.now(), "My first block data", "0")
def next_block(last_block):
index = last_block.index + 1
timestamp = datetime.now()
data = "Hey! I'm block %s" % index
last_has... | [
"dmmeteo@gmail.com"
] | dmmeteo@gmail.com |
97e441009e1f49f86a5dde27dc42cdbb54ec11ed | fc31e1963f11d95e786be8c80a052dd7b2623f1b | /PythonUtils/FileWriter.py | b4be0c214c30d213ab2f17fffa4ce02c2e29a0b4 | [] | no_license | xbinglzh/PythonTools | a98b1bbd2178b82cdcecff9ac8ecca8147760d80 | 8d5d7fc18e0e82cc713fb6a8f3d1aa78cb15817f | refs/heads/master | 2021-01-10T21:29:19.406044 | 2014-08-14T03:27:17 | 2014-08-14T03:27:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,362 | py | '''
Created on Apr 26, 2011
'''
import struct
import array
import os
class FileWriter():
'''
classdocs
'''
def WriteFileHead(self):
# write byte order, but the Value of Java Big/Lit end order?
self.WriteByte(4)
# num of Modle
self.WriteBigInt(1)
# write i
... | [
"xbinglzh@gmail.com"
] | xbinglzh@gmail.com |
c97ba71b53a1fe656b048d2baa597f096b14ee10 | 720126354851961926277c61f41318184c79fad2 | /venv/lib/python3.8/site-packages/pm4py/algo/discovery/dfg/algorithm.py | 9fa87ac3c59691cbf97fb6bf192a585897c90f62 | [] | no_license | yclei/co-co-eaa | c4057025e9b91e6af01d2765196df743bfe5985d | aeb6d42ab3ce4bc83b08a1ec9a4a3d6d3da380b4 | refs/heads/main | 2023-03-12T14:49:03.972865 | 2021-03-03T22:38:48 | 2021-03-03T22:38:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,350 | py | '''
This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).
PM4Py 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 the License, or
(at your option) an... | [
"javetter@mail.uni-mannheim.de"
] | javetter@mail.uni-mannheim.de |
4f63c83d1d501199e03ccb024912d8bedd00baaa | e1703dcec7bda83b397e5a3d0754dd6a9a296aa8 | /setup.py | fe58a71760337d0d145264d94015a199ca0bda54 | [
"MIT"
] | permissive | moyogo/ttfautohint-py | 03e28131d21a4add1b61e91ce3ed198722407fd2 | 3cd84b536a9060d53e6d326c957097fbdcb5633e | refs/heads/master | 2021-05-11T18:29:39.304432 | 2019-04-10T15:21:26 | 2019-04-10T15:21:26 | 117,827,495 | 0 | 0 | null | 2018-01-17T11:30:54 | 2018-01-17T11:30:53 | null | UTF-8 | Python | false | false | 4,498 | py | from __future__ import print_function, absolute_import
from setuptools import setup, find_packages, Extension
from setuptools.command.build_ext import build_ext
from distutils.file_util import copy_file
from distutils.dir_util import mkpath
from distutils import log
import os
import sys
import subprocess
from io import... | [
"cosimo@anthrotype.com"
] | cosimo@anthrotype.com |
0b7323b6ee686fa5b8c464e4598b9331e04093f1 | 96bcae976f8d748d75398484fd67441a3ed42452 | /mimic/creat_akin_baseline.py | 9c04803534d47f1403a41f65ececf751f43dfd6b | [] | no_license | will4906/MimicAdmin | 3a84ba1245522e11590a22ac7c480b32b59e567e | b97137529b731fe34125a9b2d34be7ac0211018e | refs/heads/master | 2020-03-07T05:44:12.717935 | 2018-11-15T15:22:44 | 2018-11-15T15:22:44 | 127,304,281 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,641 | py | # -*- coding: utf-8 -*-
"""
根据kdigo等评级标准计算肌酐的评级。
Created on 2018/7/15
@author: will4906
"""
import psycopg2 as psql
from decimal import Decimal
def akin(min_value, max_value):
if min_value > 0:
if max_value - min_value > Decimal(4) or max_value / min_value >= Decimal(3):
return 3
elif... | [
"553105821@qq.com"
] | 553105821@qq.com |
586469e5c63f6210dd5a83fc485d032cd5e9c5d3 | 23057669a8e495e87068bf70b0f1626860b3ef97 | /django_food/wsgi.py | c4e7f565a33ddc66f8f859029d3fe661e9f8b1bb | [] | no_license | AlexWattt/website | ad0ee44d11cb7b9ac67c7805f463fe2bae1fda10 | 3be06491d5c8135b6251de6ec306c0f70e29c012 | refs/heads/master | 2020-04-04T15:09:12.624740 | 2018-11-03T21:43:56 | 2018-11-03T21:43:56 | 156,026,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for django_food project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"watt.alexand@uwlax.edu"
] | watt.alexand@uwlax.edu |
da957b8fd7190adfd4adbb7d99f8e3c6b4820d61 | 4cc285b0c585241ff4404087e6fbb901195639be | /NeuralNetworkNumbers/venv/Lib/site-packages/tensorflow/python/keras/preprocessing/text_dataset.py | 45d7cc20aaabb64bb84de4fdc25aad9c11a751f0 | [] | no_license | strazhg/NeuralNetworksPython | 815542f4ddbb86e918e657f783158f8c078de514 | 15038e44a5a6c342336c119cdd2abdeffd84b5b1 | refs/heads/main | 2023-04-16T18:51:29.602644 | 2021-04-27T14:46:55 | 2021-04-27T14:46:55 | 361,944,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:43bfb21607bacd094926ca654a9356031750b9c5f137c011e25577e9d0fa2a0f
size 8034
| [
"golubstrazh@gmail.com"
] | golubstrazh@gmail.com |
7068fc6d23da133b6e906991971090faa7f25f05 | afa3e6265437b3fe4d2c9a6c164525d333838976 | /virtual/bin/pyreverse | b460059891d342b970678b536872d68210944f0a | [] | no_license | Mantongash/rating | 3602da4f5d32accd28b22fe2997d0976b298d3e7 | 9ee6f7ffd083e49d10672ecad374e87d6045d37f | refs/heads/master | 2022-12-15T07:43:40.189766 | 2020-01-24T08:31:02 | 2020-01-24T08:31:02 | 235,352,051 | 0 | 3 | null | 2022-12-08T03:29:35 | 2020-01-21T13:43:46 | Python | UTF-8 | Python | false | false | 277 | #!/home/moringa/Desktop/Python/module_project/rating/virtual/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pyreverse
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run_pyreverse())
| [
"you@example.com"
] | you@example.com | |
1a6d072a76e2e868c8217fadce8efd8a4fd27547 | ed764cb6f5bddf2990a489baac72f0c7187a2fad | /ex2.py | b1e778fb434ede08680717ca354bbf6c4d5a985c | [] | no_license | chyngyzs1/ex2part2 | 08d77145c642af51e80ccd75a5741f031d38cc38 | 4eb4389882ddf110df08549644cf1c67c2605561 | refs/heads/master | 2020-06-03T08:55:05.944788 | 2019-06-12T06:59:35 | 2019-06-12T06:59:35 | 191,515,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | x = int(input())
y = int(input())
a = int(y / x)
b = int(y % x)
print("Apple=",(a))
print("V korzinke=",(b)) | [
"0777755169ch@gmail.com"
] | 0777755169ch@gmail.com |
217de8d2b5d16655952f7680349ac36f0e78bcf1 | a26a4dc2cb9a7946b9b899ebd53a5e28e76311e2 | /day03/try_except.py | 69d02ec0593b827f1f79f3fbae6dd19c9e471209 | [] | no_license | qiulu0714/myedu-1904 | 8b62b5f38786708fcdf0907a8c5cebaf35277e1e | 4dc86aa390fe139c72425643d93485bd139b7473 | refs/heads/master | 2020-05-29T19:33:00.288061 | 2019-07-01T04:37:22 | 2019-07-01T04:37:22 | 189,334,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | if __name__ == '__main__':
try:
a= 5/0
print('true')
except:
print('false')
| [
"qiulu0714@163.com"
] | qiulu0714@163.com |
f4ff270e4ab2f4aec06f4b28c1b1f1415da4d374 | 7cd501291a2464c599fa7fd73d0599ca475bb32d | /alias_object.py | 0806090475ca11b0721f377d8506ba7d51467f16 | [] | no_license | jcvaldez1/inband_controller | 6a51f8946e15fef9806d966722d90b1c35c40501 | f2dbdc593ce1b3126103beba937c7f2a6f14c0e5 | refs/heads/master | 2021-06-12T06:38:59.194810 | 2020-09-29T05:25:13 | 2020-09-29T05:25:13 | 195,508,262 | 0 | 0 | null | 2021-06-02T00:38:58 | 2019-07-06T06:54:50 | Python | UTF-8 | Python | false | false | 856 | py | '''
Alias object for storing info about a registered
entry of a cloned cloud service in the DDH
@ATTRIBUTES:
real_port : the real destination TCP port to be used
by the IoT device
fake_port : the TCP port of the DDH to be exposed for
... | [
"jcvaldez1@up.edu.ph"
] | jcvaldez1@up.edu.ph |
aafc4e22015469a8570bde22216506ce32bc842d | 5ecdfb08af2c29fc37824d5e1ebc0f77b4203423 | /pagetag | 9b20d1fb77bb30036d2b5f0fc93c22e21cc506b6 | [] | no_license | aakrosh/ldtools | 3c139c031d12818ed0638c59069eba215f527d00 | 8de6b4f26601a7e08f022f3cf44d97a63ba7188d | refs/heads/master | 2021-06-24T03:01:08.033238 | 2017-08-27T14:30:16 | 2017-08-27T14:30:16 | 101,557,866 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,337 | #!/usr/bin/env python
"""
This accepts as input a file of the following format:
Site Sample Allele1 Allele2
for example:
000834 D001 G G
000834 D002 G G
000834 D003 G G
000834 D004 G G
000834 D005 N N
000834 E001 G G... | [
"aakrosh@users.noreply.github.com"
] | aakrosh@users.noreply.github.com | |
9af01fe4a309e859b8c255b666bf2d90c4634957 | 5f6aaf7f38f116d07e3f11124e9c88c63d33526a | /examples/example_genGeodes_walking_on_circle.py | 06ac7002e21251629da16a8205c7b225dd2421b2 | [] | no_license | dhockaday/manapprox | aa690a5bd4a5d286fe73a68a09c3b6a8297021a0 | c517a8ed48fc5924b98a849bf7830d8590fe3a88 | refs/heads/main | 2023-05-06T09:31:07.722747 | 2021-05-13T17:29:11 | 2021-05-13T17:29:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,805 | py | import manapprox
import numpy as np
import matplotlib.pyplot as plt
#### Generate data
r = 5
s = 2.5
N = 5000
#rs = r + np.random.rand(N)*s*2 - s # Not uniform distibution
theta = np.random.rand(N)*2*np.pi
A = 2/((r+s)**2 - (r-s)**2)
rs = np.sqrt(2*np.random.rand(N)/A + (r-s)**2)
data = np.array([rs*np.sin(theta)... | [
"aizeny@gmail.com"
] | aizeny@gmail.com |
82708d6e1161090b366fdfa51646948600dba3bd | 2b0ef0c0c2be71df849b6a0999991719c42c8533 | /renote/settings.py | c2b1118f60d974dfadb265eb9c22ab205957dc2a | [] | no_license | ShahroozD/renote | dcc52c92aaeda103fb9d97ce4c10fc23559c20bf | 58be722a0b0abe3468a6da096cc8a590deebacb1 | refs/heads/master | 2020-03-28T21:02:24.705697 | 2018-10-09T09:58:09 | 2018-10-09T09:58:09 | 149,124,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,501 | py | """
Django settings for renote project.
Generated by 'django-admin startproject' using Django 2.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# ... | [
"shahroozsanei@gmail.com"
] | shahroozsanei@gmail.com |
e87222fe39476bc74c1040fac6f5fd94962204c5 | ea01ed735850bf61101b869b1df618d3c09c2aa3 | /自动化测试/httprunner/testcenter-master/httprunner/response.py | b59feae6478f1abbf89c80fb1a842037fd7487d9 | [] | no_license | liuzhipeng17/python-common | 867c49ac08719fabda371765d1f9e42f6dd289b9 | fb44da203d4e3a8304d9fe6205e60c71d3a620d8 | refs/heads/master | 2021-09-27T10:39:45.178135 | 2018-11-08T01:49:33 | 2018-11-08T01:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,626 | py | import logging
import re
from collections import OrderedDict
from httprunner import exception, utils
from requests.structures import CaseInsensitiveDict
text_extractor_regexp_compile = re.compile(r".*\(.*\).*")
class ResponseObject(object):
def __init__(self, resp_obj):
""" initialize with a requests.R... | [
"liucpliu@sina.cn"
] | liucpliu@sina.cn |
408d9462951750a661ccc93b1ed833bd2798d25c | 066bb2e3183735be6e20798074c8e1ec592f1a39 | /study/study_memory_other.py | a1580aa329ef9b0007973616e6a3ece79b8862b2 | [
"MIT"
] | permissive | ChristophRaab/rrslvq | 3477dd3264e2de676beaebeeff320b4561dd9598 | e265f62e023bd3ca23273b51e06035fd3c0b7c94 | refs/heads/master | 2021-07-25T13:53:30.595769 | 2021-07-09T13:50:12 | 2021-07-09T13:50:12 | 157,715,586 | 3 | 1 | null | 2019-04-29T11:56:58 | 2018-11-15T13:25:23 | Python | UTF-8 | Python | false | false | 3,919 | py |
from __future__ import division
from joblib import Parallel, delayed
from reoccuring_drift_stream import ReoccuringDriftStream
from bix.classifiers.rslvq import RSLVQ
from skmultiflow.data.mixed_generator import MIXEDGenerator
from skmultiflow.evaluation.evaluate_prequential import EvaluatePrequential
from skmultiflo... | [
"christophraab@outlook.de"
] | christophraab@outlook.de |
71040b59ec54d10f08717a8d580862c2c9542046 | 740c72bce146cab71b74073dafd7aa29ad7697c6 | /UserInput.py | 0c7821bc546c3dd8afb6d5e48dcd7f0301a794f1 | [] | no_license | mlumley/Tic-Tac-Toe | 283cc3354b68812a68cb26aa0dd8afd7ce31879c | 33e545c0ff10aef110111a9f5b88e9595442bf52 | refs/heads/master | 2020-03-26T16:01:09.550098 | 2018-08-27T02:15:55 | 2018-08-27T02:15:55 | 145,077,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | from Coordinate import Coordinate
from Error import InvalidCoordinateLengthError
class UserInput():
"""
Responsible for getting and parsing user input
"""
def processUserInput(self, player):
"""
Get player input from the terminal and return a coordinate
corresponding to the mo... | [
"mlumley@student.unimelb.edu.au"
] | mlumley@student.unimelb.edu.au |
86996034a9c8ff01cda3320cbb2c7282133e7e9b | b7c8e8f3715f6079643c74654e808d40500bd999 | /solution-011.py | 84847a8d9fdc681acaa7c0358767c02a175ba8e2 | [] | no_license | ManaswitaDatta/Advanced-Algorithm-Lab-Assignment | 02e4749d23af7f512142d853d50b63adf95ad6e1 | e08d7104e30e66f98fd16e1c2fc6eca62339d4b2 | refs/heads/main | 2023-02-19T13:04:38.189300 | 2021-01-08T09:35:20 | 2021-01-08T09:35:20 | 315,086,740 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | import sys
def distribute(arr, n):
left = 0
right = 0
if n == 0:
print(str(0) + " " + str(0))
return
if n == 1:
print(str(0) + " " + str(arr[0]))
return
for i in range(n-1, -1, -2):
if right > left:
right += arr[i-1]
le... | [
"noreply@github.com"
] | ManaswitaDatta.noreply@github.com |
9bde2d5e18d76501364a23a40ed7699d0f07a06b | bbcd2c01151abc533fe1692c8dd1f5d5dad3fb11 | /basic2/practice_4/cliff_dyna_q.py | 153d99f089c9ae1ca9c52bc4b10adfc64105fd5b | [
"MIT"
] | permissive | linklab/e_learning_rl | ded0ca2245c55735eb111e925b33f4a289d366d5 | 16c11c17dfb304959cb80912e29d0540e6ed6cd5 | refs/heads/master | 2023-08-15T09:41:33.969407 | 2021-10-05T11:48:49 | 2021-10-05T11:48:49 | 282,601,043 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,670 | py | import os
import random
import numpy as np
import matplotlib.pyplot as plt
from basic.practice_1.cliff import CliffGridWorld
from basic.practice_1.gridworld import GridWorld
# 그리드월드 높이와 너비
GRID_HEIGHT = 4
GRID_WIDTH = 12
NUM_ACTIONS = 4
# 초기 상태와 종료 상태
START_STATE = (3, 0)
TERMINAL_STATES = [(3, 11)]
CLIFF_STATES =... | [
"yh21.han@gmail.com"
] | yh21.han@gmail.com |
889663a43b247ad2f4f68cf01e0b3fd4be843fc9 | dab495a386298d92414c8586d4d7f6e860099f34 | /Work_Wechat_GUI_App/utils/get_func_name.py | 917a06de0c4f7538d18ed311c94681f0e2e9ea35 | [] | no_license | BlueZUJIUPUP/HogwartsSDE18 | bc83884355e619554cdb2704e288e95600ca635f | 8891c10e094b13d07cf4830855c37cebd07bd3d4 | refs/heads/main | 2023-07-17T13:07:17.445744 | 2021-08-30T14:45:00 | 2021-08-30T14:45:00 | 356,118,129 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | # -*- coding: utf-8 -*-
# @File : get_func_name
# @Time : 2021/4/26 14:48
# @Author : BLUE_JUZIUPUP
import sys
def get_fanc_name(result):
return (f"{sys._getframe().f_code.co_name}用例结果为:"+str(result))
| [
"z1003033614@163.com"
] | z1003033614@163.com |
8446998f05eb5d902544da0f8d899fe616d0c230 | d4daa41bc97e74a83c2a106b0a2f1bbda5222c53 | /BlackJack.py | 3e06f6608d26a92968585a38121450e45fe42492 | [] | no_license | Rafael-Leafar/Games | 68d09c724a0153f5eb3aec1a50ec933623da5497 | 8710790e8e3e84caf834863b2752c151635bd7a8 | refs/heads/main | 2023-03-05T11:44:21.315210 | 2021-02-26T09:18:43 | 2021-02-26T09:18:43 | 342,517,935 | 0 | 0 | null | 2021-02-26T09:18:43 | 2021-02-26T08:57:55 | Python | UTF-8 | Python | false | false | 5,942 | py | #!/usr/bin/env python
# coding: utf-8
import random
suits = ('Hearts', 'Diamonds', 'Spades', 'Clubs')
ranks = ('Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', 'Nine', 'Ten', 'Jack', 'Queen', 'King', 'Ace')
values = {'Two':2, 'Three':3, 'Four':4, 'Five':5, 'Six':6, 'Seven':7, 'Eight':8, 'Nine':9, 'Ten':10, 'J... | [
"noreply@github.com"
] | Rafael-Leafar.noreply@github.com |
ea7a891dfd699c004f09d9b65a9d801890d1debf | 090f60e856b653eb6e86c3f4b4b88a181adcde08 | /For.py | e1b8bc22bc3cf48c3e703af2b91fa77506bc632a | [] | no_license | MariaCuenca26/For | ade6b4133cf32da170add482e7cb4d14778a51e2 | 2d3d593d0e4cab3ef235a2341b952bab8493d779 | refs/heads/main | 2023-06-20T15:21:12.010930 | 2021-07-17T23:39:46 | 2021-07-17T23:39:46 | 387,055,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | class For:
def __init__(self):
self.numero=0
def usoFor(self):
nombre = "Fernanda"
datos=["Fernanda",20,True]
numeros=(2,5,6,4,1)
docente = {"nombre": "Fernanda","edad":20,"fac": "faci"}
listanotas = [(30,40),(20,40,50),(50,40)]
listaalumnos = [{... | [
"noreply@github.com"
] | MariaCuenca26.noreply@github.com |
d099d0d65823fa6e12e26af366297eb3cbd3a094 | a39a19301d3ac0e85ef5b340312fb2f750358577 | /04_dqn_noisy_net.py | 280e41f175e88b5a3a97dd6fbb36057a05941b25 | [] | no_license | Prakhar-FF13/Reinforcement-Learning-With-Python | 3d3d81b80d6997532a73474f89ac64084efee37d | b8dec285e3f63472bd88edda34e5f71b81b56c5f | refs/heads/master | 2020-05-02T21:37:34.480608 | 2019-03-31T10:02:19 | 2019-03-31T10:02:19 | 178,226,412 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,467 | py | #!/usr/bin/env python3
import gym
import ptan
import argparse
import numpy as np
import torch
import torch.nn as nn
import torch.optim as optim
from torch.autograd import Variable
from tensorboardX import SummaryWriter
from lib2 import dqn_model, common
class NoisyDQN(nn.Module):
def __init__(self, input_shape... | [
"prakhar.meerut@gmail.com"
] | prakhar.meerut@gmail.com |
02630f6afedcf58bbf977378dfb4cbe97d908c59 | 88bd86d4c889b786023ed3a1c244141aee603201 | /tests/SpaceInvaders-DDQN/deep_Q.py | 731e9c3f4d074a6367c7d81f2eac4d77e1a76855 | [
"MIT"
] | permissive | webclinic017/AI_Framework | ff19cb820aa31a1293aaacd444ea33dcce990a65 | 3889d69e4aa68067f29285b6cb6a07f4f3886636 | refs/heads/main | 2023-03-01T18:21:56.886524 | 2021-02-13T09:16:02 | 2021-02-13T09:16:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,455 | py | import gym
import numpy as np
import random
import cv2
from replay_buffer import ReplayBuffer
from tensorflow.keras.models import load_model, Sequential
from tensorflow.keras.layers import Conv2D
from tensorflow.keras.optimizers import Adam
from tensorflow.keras.layers import Activation, Dropout, Flatten, Dense
# Lis... | [
"frederic.lambert@graphicstream.fr"
] | frederic.lambert@graphicstream.fr |
68a0d3ae1a45c2cfbdb711a4d8cb4ecdd082387a | c38b22c34357b9baaf50f56db1f22c34d399fe30 | /test/test_google.py | cbaabd337570b78ab5eb0aafa31d6bf7444b25c3 | [] | no_license | oleolesya/PySelenium | 054364165cbc795865c26146fc3e94878eae1a9e | 368d33310cdbf9aaed6717127b7e575d05ebb77e | refs/heads/master | 2021-01-25T07:40:43.731932 | 2017-06-13T05:59:32 | 2017-06-13T05:59:32 | 93,650,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | #from webdriver_manager.chrome import ChromeDriverManager
from selenium import webdriver
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as ec
def test_google():
driver = webdriver.Chrome()
#driver = webdriver.Chrome(ChromeDriverManager().ins... | [
"schmetterling4olesya@gmail.com"
] | schmetterling4olesya@gmail.com |
31f2e47e9d5792b8e4db1c39ee2cb78ee812e6fb | 4050799f59f7478b2ab92d15163a46aac8d7d55f | /bin/python-config | 2ad97d37fa624b17365ebe49c81e09f3ac954439 | [] | no_license | higorcoimbra/django_tutorial | cae97eea9305ae3779e00b4e183ac7f30161b272 | f0e4e6f8277b9b58363f93bf1d9a3c1ee4ca0525 | refs/heads/master | 2021-01-19T02:16:11.398131 | 2016-12-12T17:16:07 | 2016-12-12T17:16:07 | 62,657,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,345 | #!/home/higor/django_tutorial/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.version_info >... | [
"higor1308@gmail.com"
] | higor1308@gmail.com | |
1a1e24afacddac4b6572a81f04e03aa4a80cd94e | 11d29d2a35740fd972622a7f3670bc83736ece21 | /2021-02-09-Interview.py | 6617ec754aa866d4d8fe8c805ef95ba395486276 | [] | no_license | GabrielSuzuki/Daily-Interview-Question | 52f19a2f1c0fbfd068841408502429f9f0916741 | 56730f7e296b35403479a3904bd10978bd6ca36a | refs/heads/main | 2023-03-05T20:00:29.350949 | 2021-02-22T17:38:53 | 2021-02-22T17:38:53 | 315,160,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | #Hi, here's your problem today. This problem was recently asked by Amazon:
#You are given an array of integers. Return the length of the longest consecutive elements sequence in the array.
#For example, the input array [100, 4, 200, 1, 3, 2] has the longest consecutive sequence 1, 2, 3, 4, and thus, you should return... | [
"60160196+GabrielSuzuki@users.noreply.github.com"
] | 60160196+GabrielSuzuki@users.noreply.github.com |
ec41dec00883ddaab1e22e1752bf324a827f56ea | 30d8df1db8a2c848a6f585cfdf2428d279b45c44 | /main.py | 4a43502a4ca36b45c68458cc578e2668626f6300 | [
"MIT"
] | permissive | BBernYY/GalgjeGame | fcfdab635523bcf297c92d6e0c7205d28f6c299c | a12b6d2f4cc41211eefdc88eaffdd70cb22975a1 | refs/heads/main | 2023-07-27T07:20:37.329864 | 2021-09-13T05:52:32 | 2021-09-13T05:52:32 | 387,531,802 | 0 | 0 | MIT | 2021-07-20T12:47:23 | 2021-07-19T16:41:05 | Python | UTF-8 | Python | false | false | 1,276 | py | import random
import frontend as f
import english_words as ew
def round_check(lives, no_letters, word, wordP):
if lives == 1:
event("die", word)
elif not "_" in wordP:
event("win", word)
else:
return getword(no_letters, word, wordP, f.func(lives, no_letters, wordP), lives)
def getwor... | [
"66414852+BBernYY@users.noreply.github.com"
] | 66414852+BBernYY@users.noreply.github.com |
fef7406b19678804c0d366120298d97f69c99661 | db21596455baadb1c0fbbea4783271714a2a72b5 | /57.First_Order_Derivative_Sobel.py | 5531ce9beb92d9eccb0fb80757aa9540f11ef007 | [] | no_license | KSanjayReddy/OpenCvCourse | c7fb3f16b0c683d7e162be3781b9a226272a384b | 67917fe6444f2ca89d1a78a618e51036b7c5158e | refs/heads/master | 2021-06-28T03:56:50.403387 | 2020-12-30T01:41:47 | 2020-12-30T01:41:47 | 199,123,948 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | import cv2
import numpy as np
import matplotlib.pyplot as plt
plt.rc('image', cmap = 'gray')
path = "Images/week4/truth.png"
#path = "Images/week4/sample.jpg"
img = cv2.imread(path, cv2.IMREAD_COLOR)
img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
gauss = np.array([1,2,1,2,4,2,1,2,1])
gauss = gauss.reshape(3,3)
print("Ga... | [
"ksanjayreddy817@gmail.com"
] | ksanjayreddy817@gmail.com |
95bc33b5bb6cef458a63d1b4418119da1b9e9597 | 5094c5a93f17787855f1d0a380fe885c037e2526 | /English/texts.py | e3268cf7f798b53550086825270bbb11585ec929 | [] | no_license | paradox70/WMarkProBot | e0c589123a8b46b28f9b5b891670200371a9d8cf | 2832680f79c0a59fecae72442fc1be4a63a52ecc | refs/heads/master | 2022-10-12T15:08:57.136256 | 2020-06-12T17:46:22 | 2020-06-12T17:46:22 | 268,281,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,309 | py | RTL = ''
LTR = ''
LANGUAGE = 'Language'
USER = 'User'
SELECT_LANGUAGE = '🌐 Please choose your desired language:'
NEW_INVITATION_NOTIF = '👥 User {} started the bot with your dedicated link.\n' \
'Notification settings /notification'
START_AGAIN = 'No need to start again.\n' \
... | [
"noreply@github.com"
] | paradox70.noreply@github.com |
18ba892ab45521ae1b1b371ff1ae391f347566b3 | c7c054ae527385c60233f0805cd365bddc185198 | /src/model/stream_temporal/self_attention.py | 208675d23d7bb07858016e561dd7305d09729f54 | [] | no_license | tlhar-hcmut/tkhar-service | 8b97788205b9a53bf25aa1b8821dbe7095c743fc | 748693f5b071dcb2c5a429b9a9bdd81c339e8874 | refs/heads/master | 2023-07-03T18:56:24.692810 | 2021-08-09T11:31:16 | 2021-08-09T11:31:16 | 382,856,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | import torch
from torch import nn
import torch.nn.functional as F
import math
class SelfAttention(nn.Module):
def __init__(self,len_feature_input_selfA, len_feature_hidden_selfA, dropout = 0, **kwargs):
super(SelfAttention, self).__init__(**kwargs)
self.len_feature_hidden_selfA = len_feature_hid... | [
"khoidd@outlook.com"
] | khoidd@outlook.com |
713c986d6b9f1ef1cdad8fc0b7896d0b3c1a21db | e97044be1d4f7a64ae36e73536a1ea73c4f96b40 | /05-functions/4.6-exercise.py | db23154efa9ae3c3535eb5e46eca0d757af2d0f7 | [] | no_license | saikatdas0790/ossu-python-for-everybody | d8f203cb49181965d43a635744c6b93a26f7c6a0 | 4691983af0558ebd0b178f4e7e6d79e37c02ca54 | refs/heads/main | 2023-02-16T11:51:20.240186 | 2021-01-15T13:53:18 | 2021-01-15T13:53:18 | 328,195,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | # 4.6 Write a program to prompt the user for hours and rate per hour using input to compute gross pay. Pay should be the normal rate for hours up to 40 and time-and-a-half for the hourly rate for all hours worked above 40 hours. Put the logic to do the computation of pay in a function called computepay() and use the fu... | [
"saikatdas0790@gmail.com"
] | saikatdas0790@gmail.com |
34e6ed520139f454251dab9794f32b71f1aa5427 | c26699c80e58f2bb89b18c1dd051084cb8f889ef | /exemple2.py | a5b6eef0cdcc9e483a45046e8cecc1308025ee35 | [] | no_license | CryptM/Phyton-Curse-exadel-exemple | 0141863d2449c7a364242e91958212ac49830b53 | c104cc17346b075b89e67dd6ff34e446082065f5 | refs/heads/master | 2021-01-20T20:14:46.188995 | 2016-07-15T08:25:52 | 2016-07-15T08:25:52 | 62,055,061 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | balance=float(input('Enter outstanding balance on the credit card in $:\n'))
interest=float(input('Enter annual interest rate in %:\n'))/100
minpay=float(input('Enter minimum monthly payment rate in %:\n'))/100
x=1
tpay=0
for x in range (1,13):
ipay=round((interest/12*balance),2)
minpayt=round((minpay*ba... | [
"noreply@github.com"
] | CryptM.noreply@github.com |
429d78f14c7c81553c3df334eaa9608e3404e005 | bf32a07fa820048888649d8238b69c58ef0526da | /bland/settings.py | c74708383db1264fb9ec149d2989a71ab1d2ac13 | [] | no_license | isebarn/blandcar | e3de5c6c8ecbea5d1bbe98b84fddd19df0aeb573 | b8e8d5b4d6e1cf5f467db6df51fc92727ddf654b | refs/heads/master | 2023-08-02T23:46:30.981650 | 2021-10-04T19:15:38 | 2021-10-04T19:15:38 | 406,508,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,074 | py | # Scrapy settings for bland project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/topics/downloader-middleware.h... | [
"isebarn182@gmail.com"
] | isebarn182@gmail.com |
9b9c230693ad6cc15ec90c66e1ff92d1b31b70ee | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/Mailpile/2015/4/workers.py | 138de34ac66eda21d4d632d1356d11929363fc9b | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 12,188 | py | import threading
import traceback
import time
import mailpile.util
from mailpile.i18n import gettext as _
from mailpile.i18n import ngettext as _n
from mailpile.util import *
##[ Specialized threads ]######################################################
class Cron(threading.Thread):
"""
An instance of this... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
1619261524bf979aaeaaa95a5d6a31fb3612b6ce | 79fb5c5552645e3b2d4428a857ee46d448183eac | /train_mvter.py | f7f10d1b2e553eae44d7aaaf531cb541a94447fb | [] | no_license | ChengChen2020/mvter | cac2e582880b1bb500080c8ecd437db9e4507882 | aafe576b1a4d9b6233eec714e81763c26e84978e | refs/heads/main | 2023-06-17T02:22:49.371659 | 2021-06-25T03:24:28 | 2021-06-25T03:24:28 | 372,432,718 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,503 | py | import os
import shutil
import json
import argparse
import numpy as np
from datetime import datetime
import torch
import torch.nn as nn
from torch.utils.data import DataLoader
from tools.mvDataset import mvterDataset
from tools.mvTrainer import mvterTrainer
from model.MVTER import MVTER
parser = argparse.ArgumentPar... | [
"cc6858@nyu.edu"
] | cc6858@nyu.edu |
ebdfbced451f8967c73a5e01be1bc02195a54966 | 9fcb747d9ac1eea6162ff5ac083d221c6b38f680 | /test.py | 593e8b719763ffa3f15e58be86ac7024efcfc923 | [] | no_license | rockiecxh/learnpython | 61c3a7f9ea033cbde72c6266e8554dd3529837af | 9bde1c2c079991605a1c3695ae648351c7ffdfbc | refs/heads/master | 2021-01-20T03:40:24.116147 | 2015-08-15T06:25:39 | 2015-08-15T06:25:39 | 37,505,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,336 | py |
#!/usr/bin/env python
#-*- encoding:UTF-8 -*-
import os, sys, gzip, time, optparse, itertools, datetime, heapq, operator
from operator import itemgetter
from heapq import *
from math import *
from collections import defaultdict, namedtuple
earth_radius=6378.137 * 1000 # Unit in meter
def rad(d):
""" convert degree... | [
"rockiecxh@gmail.com"
] | rockiecxh@gmail.com |
744eac14054c0bec2159ee8243ccad896cd83d51 | 67d8173a716da10a7350213d98938aae9f2115ce | /LeetCode/LC_PY_ANSWERS/reconstruct-original-digits-from-english.py | 60ac4b9e82b9b8cf1a1df6cd3c39427c092ff584 | [
"MIT"
] | permissive | jxie0755/Learning_Python | 94490d41bdf93acf8396f843328e38b6da310b0f | 143422321cbc3715ca08f6c3af8f960a55887ced | refs/heads/master | 2021-11-02T22:47:35.790239 | 2021-09-26T04:26:23 | 2021-09-26T04:26:23 | 101,445,132 | 0 | 2 | null | 2019-02-19T15:48:44 | 2017-08-25T22:00:16 | Python | UTF-8 | Python | false | false | 901 | py | # Time: O(n)
# Space: O(1)
from collections import Counter
class Solution(object):
def originalDigits(self, s):
"""
:type s: str
:rtype: str
"""
# The count of each char in each number string.
cnts = [Counter(_) for _ in ["zero", "one", "two", "three", \
... | [
"30805062+jxie0755@users.noreply.github.com"
] | 30805062+jxie0755@users.noreply.github.com |
415b9ed00563831f2888b134fb2da5063812ed97 | 461c78e97658e4a0c89655ca36af3774f7c40457 | /src/apps/posts/views.py | 865eee02ba6eacf1a4977a1e751c47ad0807a28a | [] | no_license | AlekseiChirkov/social-network | 62bfb76467c1b3e7a156b6265f1f23cac0d0d140 | 3f33b13ffdf03f41cfdfbd2291d23ddcb8d7f2ed | refs/heads/master | 2023-06-20T03:06:47.886321 | 2021-07-23T10:36:32 | 2021-07-23T10:36:32 | 386,913,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,048 | py | from rest_framework import status
from rest_framework.response import Response
from rest_framework.generics import CreateAPIView, ListAPIView, ListCreateAPIView
from rest_framework.permissions import IsAuthenticated, AllowAny
from apps.posts.models import Post, Like
from apps.posts.serializers import (
PostSeriali... | [
"tektonikboy98@gmail.com"
] | tektonikboy98@gmail.com |
839236f8a55b3ed0ff7e7f86ec49317b04dd94c7 | ca15a53ec203c7110885b9a70719efab81d0d4cf | /fishfinder/search_planes | 2a0d430adeef27896d49ea248133e4d50972fef8 | [] | no_license | wojonet/fishfinder | d6aa956f0c3bfe009575fa713c38a7e26b4e9c60 | 564b267f23864ce8db5114617174367057dbc11f | refs/heads/master | 2023-05-23T02:43:37.807505 | 2020-07-27T17:08:18 | 2020-07-27T17:08:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | #!/usr/bin/env python
import os, sys
if __name__ == "__main__":
# Setup environ
sys.path.append(os.getcwd())
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "fishfinder.settings")
# Setup django
import django
django.setup()
from planes.search import run
run()
| [
"sdstolworthy@gmail.com"
] | sdstolworthy@gmail.com | |
b4265e0575a338b20fa06e18f133f38cad2bbe44 | 9ebf684c1fea42afdfdad01dfde12193b26390ef | /controller_15/src/punto1.py | c68a3065b0e875debaa1d65b6ce346ec8e0a9d96 | [] | no_license | NicolasRochaPacheco/robotica_15 | b27a8debcacc53db053d95287b31ad6dec91d961 | fc6e220bd821cd898c74b0f319f86b0d7b118dc1 | refs/heads/master | 2020-04-20T02:42:50.206992 | 2019-02-14T00:12:44 | 2019-02-14T00:12:44 | 168,578,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,079 | py | #!/usr/bin/env python
#----------------------------------------------------------------------
#
# TAREA0, PUNTO1
# GRUPO 15
#
#----------------------------------------------------------------------
# Importamos la libreria de rospy
import rospy
# Importamos el hilo para leer los comandos del teclado.
from keyboar... | [
"n.rocha11@uniandes.edu.co"
] | n.rocha11@uniandes.edu.co |
7ac6c567137e093e45add9034149f5ecf92582c1 | 619c472bb5f794e6407e6a9013cef1f3b9c43940 | /1.7/Excersise_4.py | 451f568058ea5a006361730d51c3d901b0f589f8 | [] | no_license | KFranciszek/pylove-training | 273cb1fd317060a0246f09bd6840da55499a46d2 | 93fb3f00f5011b2b6bb6b890ab1a378987c21217 | refs/heads/master | 2021-05-02T09:18:29.769784 | 2018-01-24T22:47:11 | 2018-01-24T22:47:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | from flask import Flask, request
import requests
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
@app.route("/planet-details", methods=["GET"])
def get_planet_details():
planet = request.args.get("planet", "")
resp = requests.get("https://swapi.co/api/planets/?search={}".format(p... | [
"julia.anholcer@interia.pl"
] | julia.anholcer@interia.pl |
f283ed77fac1e26bf32a635310400b886d276a65 | 6ab67facf12280fedf7cc47c61ae91da0bcf7339 | /service/yowsup/yowsup/layers/protocol_presence/protocolentities/test_presence_unavailable.py | 3601798e10d6561e342a0900a112e11753688b59 | [
"GPL-3.0-only",
"GPL-3.0-or-later",
"MIT"
] | permissive | PuneethReddyHC/whatsapp-rest-webservice | 2f035a08a506431c40b9ff0f333953b855f9c461 | 822dfc46b80e7a26eb553e5a10e723dda5a9f77d | refs/heads/master | 2022-09-17T14:31:17.273339 | 2017-11-27T11:16:43 | 2017-11-27T11:16:43 | 278,612,537 | 0 | 1 | MIT | 2020-07-10T11:04:42 | 2020-07-10T11:04:41 | null | UTF-8 | Python | false | false | 498 | py | from yowsup.layers.protocol_presence.protocolentities.presence_unavailable import UnavailablePresenceProtocolEntity
from yowsup.layers.protocol_presence.protocolentities.test_presence import PresenceProtocolEntityTest
class UnavailablePresenceProtocolEntityTest(PresenceProtocolEntityTest):
def setUp(self):
... | [
"svub@x900.svub.net"
] | svub@x900.svub.net |
890ab4cc1c5add53062976ab2352f72fba222ff5 | 4d327de5447519d3c00e6572f74362380783006f | /source/res/scripts/client/gui/shared/items_parameters/formatters.py | c49b23718f814eb432d7b084dc1b4016ac087bc6 | [] | no_license | XFreyaX/WorldOfTanks-Decompiled | 706ac55d919b766aa89f90c97a75672bf2142611 | 5025466edd0dd3e5e50a6c60feb02ae793f6adac | refs/heads/master | 2021-09-21T15:10:32.655452 | 2018-08-28T07:34:00 | 2018-08-28T07:34:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,329 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/shared/items_parameters/formatters.py
from itertools import chain
import BigWorld
from debug_utils import LOG_ERROR
from gui.Scaleform.genConsts.HANGAR_ALIASES import HANGAR_ALIASES
from gui.Scaleform.genConsts.TOOLTIPS_CONSTANT... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
eb89bf03793cf76a9919dce7e81b162d23655a69 | 6bcd5c0b102459b307a057423bcd09707a2328e5 | /python webserver/tools/server.py | 08eacc7639512999b59a330fc5a82ee83fc57b3e | [
"MIT"
] | permissive | emeric254/open-door | 13f6cc0c177b5dc50a3cf9078f20802bb803535a | 7c8844ec0164489f7e87233c4b3a7f28bc39e23a | refs/heads/master | 2021-01-11T20:26:25.770078 | 2017-01-16T17:24:21 | 2017-01-16T17:24:21 | 79,115,394 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | # -*- coding: utf-8 -*-
import sys
import tornado.httpserver
import tornado.ioloop
import tornado.netutil
import tornado.process
import tornado.web
def start_http(app: tornado.web.Application, http_port: int = 80):
"""Create app instance(s) binding a port.
:param app: the app to execute in server instances
... | [
"emeric254@live.fr"
] | emeric254@live.fr |
8868845dc854c1f0bf450dd1fbf0dbdb1a27ef8a | a5a76c9fc62917fd125b2b8c1e1a05abf50cd3f6 | /distributed_utils.py | e79791edb532b7084ffe3a288e6755c554ad8319 | [
"Apache-2.0"
] | permissive | CV-IP/ACAR-Net | cf8b1f4ce088a076fb85ed94dbe189c205a9f9a5 | d684203eabda68b882c0b959b69e44a7bab1f247 | refs/heads/master | 2023-08-18T19:39:20.211051 | 2021-10-08T09:20:14 | 2021-10-08T09:20:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | import os
import torch
import torch.distributed as dist
def get_env_variable(variables, default=None):
for candidate in variables:
if candidate in os.environ:
return os.environ[candidate]
return default
def init_distributed(local_rank, args):
if args.nnodes is not None:
n_no... | [
"siyuchen@pku.edu.cn"
] | siyuchen@pku.edu.cn |
521403705ec4d0e89e9f08e3bcc2d940dfb65f75 | 7394b0ed53dc27c3ba909f1577c2a3082fe6a7d5 | /portal/urls.py | 824671c4599f7174128040010cc6dbf0a8fc7b2d | [] | no_license | mohammed-yasim/abin-project | b5477b40e4de339a3b7d0eaf6ea1a2d34c37d65f | a35419f522c3ba7fbe7cb08d8431b8d1b5caec23 | refs/heads/master | 2023-05-03T11:03:00.083535 | 2021-05-20T07:07:23 | 2021-05-20T07:07:23 | 260,738,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py |
from django.urls import path,re_path
from django.conf.urls import url,include
from . import views as portal_views
#hello
urlpatterns = [
url(r'^$',portal_views.index,name="Poral Home"),
url(r'dashboard',portal_views.dashboard),
url(r'logout',portal_views.logout),
path('auth',portal_views.auth),
p... | [
"mohammedyasim.edkm@gmail.com"
] | mohammedyasim.edkm@gmail.com |
cdd5619854d4eaf90f9beb9c32d6785bb18ddff5 | 6e917ecc9247c9acd94fcf841e2ce5b0cadb2d27 | /dp/552/lc_552_v1.py | 996f7b4726c681b5535a1b21f5f81ee4dd8815a9 | [] | no_license | lection/leetcode-practice | 4b25f7a9c0c7363a25e6e01e08b3566c4436d030 | 6d708e3cc2ee501b30e19a2a169abf1f86baffd2 | refs/heads/master | 2020-06-23T01:57:05.880049 | 2019-12-08T18:03:59 | 2019-12-08T18:03:59 | 198,466,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,784 | py | """
给定一个正整数 n,返回长度为 n 的所有可被视为可奖励的出勤记录的数量。 答案可能非常大,你只需返回结果mod 109 + 7的值。
学生出勤记录是只包含以下三个字符的字符串:
'A' : Absent,缺勤
'L' : Late,迟到
'P' : Present,到场
如果记录不包含多于一个'A'(缺勤)或超过两个连续的'L'(迟到),则该记录被视为可奖励的。
示例 1:
输入: n = 2
输出: 8
解释:
有8个长度为2的记录将被视为可奖励:
"PP" , "AP", "PA", "LP", "PL", "AL", "LA", "LL"
只有"AA"不会被视为可奖励,因为缺勤次数超过一次。
注意:n 的值不... | [
"lection.yu@gmail.com"
] | lection.yu@gmail.com |
7f8cf88695121fc872a232143de1c7e79e2dc13f | 6f56da8db171d4a6c006b5d944437bf061069faf | /XCat.v.0.0.1/source/healpy/visufunc.py | a464d00cba5f2f241397a7b3a606a5a0c82da455 | [] | no_license | afarahi/XCat | 16819bef7087e994907c413dd6331cdebde72ffb | 498602eb7f61696d169f071185115345c68bcf86 | refs/heads/master | 2021-01-21T01:59:36.907059 | 2013-05-03T05:12:07 | 2013-05-03T05:12:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,120 | py | #
# This file is part of Healpy.
#
# Healpy is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# Healpy is distributed in the h... | [
"aryaf66@gmail.com"
] | aryaf66@gmail.com |
bedd1a983e70eb679bf6b6b389f94cccbaf74e18 | 1a9549ae528485844f1f40938c0e76b6b98039ad | /PyLab/W143.py | 6ec6a74f7e79309a8dd8422a57a6f25132a18475 | [] | no_license | junzhougriffith/test | 55c584dd83c85952984597fb043bcbe8e7dfb5fc | 4264cffc999a797edb3b308eceb2000158717d7e | refs/heads/master | 2020-12-30T11:02:39.963987 | 2017-08-01T02:32:58 | 2017-08-01T02:32:58 | 98,840,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py | ##////////////////////////////// PROBLEM STATEMENT /////////////////////////////
## Write Python code that reads two integers from the keyboard. Given two //
## inclusive ranges -8..-4 and 10..16 print True if both integers are in one //
## of these ranges or both integers are not in these ranges. Otherwise print ... | [
"jun.zhou@griffith.edu.au"
] | jun.zhou@griffith.edu.au |
8b1868de8d717f8748a3d707ae66b4199e840443 | e7c6f77ede337fee8f2af1d77e2bbf24627d2ec7 | /python/CreateVectorResources.py | 05f2113cb954e6977e5b6003474d359a112d19b8 | [
"Apache-2.0"
] | permissive | blockspacer/DeepSea | 3c2488e39bd1a85c8b02b7b53651ab6fb69153e9 | 960237e3fff5dd4a7fa32cb4057a4397319bc279 | refs/heads/master | 2021-05-24T18:19:57.018596 | 2020-04-06T03:01:34 | 2020-04-06T03:01:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,443 | py | #!/usr/bin/env python
# Copyright 2018-2020 Aaron Barany
#
# 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 l... | [
"akb825@gmail.com"
] | akb825@gmail.com |
76c7974719833f81282c2f4e3e9f1b7e83b3aa14 | 480ce26b01e99883dd4cce55fe1f90f997438b79 | /backend/manage.py | f6b2fe3d35be0f446ae9a54113d3d9119db161b8 | [] | no_license | crowdbotics-apps/test-app-2234-dev-2488 | 57ed6ae2d60e14117bac4df70c6a9e4471aac7be | acbbb1192c0c8dfc983295211e366f9b0ca70195 | refs/heads/master | 2023-02-06T21:42:56.253812 | 2020-04-09T07:10:43 | 2020-04-09T07:10:43 | 254,288,533 | 0 | 0 | null | 2023-01-24T03:10:26 | 2020-04-09T06:22:41 | JavaScript | UTF-8 | Python | false | false | 642 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_app_2234_dev_2488.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
ffee62b035fd663cc4e39e36ce36e355f53b9cba | 3933c37c63a66c5440baba22d008a11353cd3846 | /app/modules/frontend/__init__.py | 233d4e4dff2563beb1508aa0c5711286ca6f4766 | [
"MIT"
] | permissive | ivanklee86/hello-world | 0290d1b7616d4c9f6f1ec8ab6efe43a32c5574aa | 109764ddf990d806330c8083ad0bfdccce626be3 | refs/heads/master | 2023-03-01T13:08:37.127735 | 2021-10-06T20:25:45 | 2021-10-06T20:25:45 | 144,956,092 | 0 | 0 | MIT | 2023-02-15T19:53:27 | 2018-08-16T07:58:12 | Python | UTF-8 | Python | false | false | 115 | py | def init_app(app, **kwargs):
from . import resources
app.register_blueprint(resources.frontend_blueprint)
| [
"ivanklee86@gmail.com"
] | ivanklee86@gmail.com |
88882f70604cdef53e37845543b4e88140621857 | 6047442241543e6ce358ebd6037d0d8a9a3a87b4 | /hsapp/serializers.py | 320e4561b0f73129985467d1df184240f13e7f25 | [
"MIT"
] | permissive | jkbm/esports | 806e999cf4f6b1de47856616b0fedeaa2e87026e | 5b62f13df39698a7d903dc32cc83a9e17642cd80 | refs/heads/master | 2022-12-14T11:11:09.955288 | 2017-11-05T21:07:54 | 2017-11-05T21:07:54 | 102,506,785 | 0 | 0 | NOASSERTION | 2022-11-22T01:52:25 | 2017-09-05T16:47:34 | Python | UTF-8 | Python | false | false | 1,125 | py | from rest_framework import serializers
from .models import Player, Tournament, Match
class PlayerSerializer(serializers.ModelSerializer):
class Meta:
model = Player
fields = ('name', 'country')
class TournamentSerializer(serializers.ModelSerializer):
winner = serializers.HyperlinkedRelatedFiel... | [
"bigman33321@hotmail.com"
] | bigman33321@hotmail.com |
5247dbfa3c360228cdbc809dbed853bc2a5614e1 | d2ee771480799cd89dad61de5b7bda9f772d656a | /XProject/camshift.py | f7f56156d57a26e006d16aa4c7fe8cd0ecd62be3 | [] | no_license | CuriosityCreations/OpencvProject | b20a767405ca90263d3fcc774bfd6eda532a9719 | 7b3af1442eb811dd32e19ca958f05cede38b209f | refs/heads/master | 2020-05-21T20:30:15.627092 | 2016-09-28T04:36:18 | 2016-09-28T04:36:18 | 64,070,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | import numpy as np
import cv2
cap = cv2.VideoCapture('inputcar.avi')
# take first frame of the video
ret,frame = cap.read()
# setup initial location of window
r,h,c,w = 250,90,400,125 # simply hardcoded the values
track_window = (c,r,w,h)
# set up the ROI for tracking
roi = frame[r:r+h, c:c+w]
hsv_roi = cv2.cvtCo... | [
"noreply@github.com"
] | CuriosityCreations.noreply@github.com |
f2ab002d34be50716c362ee13e0453bb1d824bff | 675a56c032f95eb6bc58f0c560ff6e5b21121753 | /leetcode/book/2.4.2.py | 5b73f1b32eca5b2163b48bcc0f07deba54d03d57 | [] | no_license | 1290259791/Python | f5b0ab6f92088734429c27aa83ab2d69a1125bed | 829cc71762c2a832aa2fa08d30da8f256e59d0f7 | refs/heads/master | 2020-03-16T19:54:17.562579 | 2018-05-10T18:07:35 | 2018-05-10T18:07:35 | 132,930,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | def MaxSum(array, n):
"""
连续子数组的最大乘积
动态规划 Max=Max{a[i],Max[i-1]*a[i],Min[i-1]*a[i]}Min=Min
创建一维数组
:param array:
:param n:
:return:
"""
maxA = [0 for i in range(n)]
minA = [0 for i in range(n)]
maxA[0] = array[0]
minA[0] = array[0]
value = maxA[0]
for i in range... | [
"hubo@Mac.local"
] | hubo@Mac.local |
44dd2f1cb1beb44a55ed1c20e6910d3e5f9e83aa | f104c152e75cd791aed39755ab9144aab8773be6 | /param_analysis.py | 720c84d8f389dfbc4834ecec163fdc26dfc09bd4 | [] | no_license | vaibhav0195/AdhdAnalysis | b11984c8bb9ec876d8ba5a896976635bb7e9f91a | aa341533ec15a05ead6a9a8983fc5b3334b74ae9 | refs/heads/master | 2023-04-10T17:29:45.409513 | 2021-04-16T18:09:23 | 2021-04-16T18:09:23 | 352,808,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,529 | py | seance_categories = 'nwords,Admiration/Awe_GALC,Amusement_GALC,Anger_GALC,Anxiety_GALC,Beingtouched_GALC,Boredom_GALC,Compassion_GALC,Contempt_GALC,Contentment_GALC,Desperation_GALC,Disappointment_GALC,Disgust_GALC,Dissatisfaction_GALC,Envy_GALC,Fear_GALC,Feelinglove_GALC,Gratitude_GALC,Guilt_GALC,Happiness_GALC,Hatred... | [
"jeffrey.sardina@gmail.com"
] | jeffrey.sardina@gmail.com |
a7119c0161bf122d65bb45d6b28fb318db55e3ee | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/420/usersdata/346/88353/submittedfiles/exe11.py | 5a42218fb2efb0224e56919f9581e59be8f7fa0f | [] | 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 | 332 | py | # -*- coding: utf-8 -*-
x= int(input('Digite um valor com 8 casas decimais: '))
y= 10000000
z= 100000000
soma= 0
while (True):
if x<y:
print('NAO SEI')
break
if x>y or x<z:
while x:
soma += x%10
x//=10
print(soma)
break
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
07eb3ac3fd3558a1b5feb8bd0195a1bc1d059583 | 049c29351641e7245a6dc1fc44a684c0fd17ebf7 | /snn/librispeech/model/snn.py | 5c69a2e138e4c4c82eb057bd84c98310eb0bef25 | [
"MIT"
] | permissive | vjoki/fsl-experi | c093d13efd27ea22a1e990e0c073df6bd30135e6 | a5d81afbc69dfec0c01f545168c966fd03a037f1 | refs/heads/master | 2023-07-11T02:00:25.772149 | 2021-08-05T11:06:52 | 2021-08-05T11:06:52 | 304,908,552 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,455 | py | from typing import Tuple, List, Any
import torch
import torch.nn.functional as F
from .base import BaseNet
class SNN(BaseNet):
def forward(self, x1: torch.Tensor, x2: torch.Tensor) -> torch.Tensor: # type: ignore[override]
x1 = self.cnn(x1)
x2 = self.cnn(x2)
dist = torch.abs(x1 - x2)
... | [
"vjoki@zv.fi"
] | vjoki@zv.fi |
54fa651074faf0cbdee12a93f566f88c6399c9e5 | 5a300ea871905d4c9a70d70e8f7641c72a095cf5 | /original_scripts/macro/collect.py | 665b0146d93bdc728373845985a274e64412571c | [] | no_license | tennessejoyce/OctopusScripts | 6a21129d832d392274ae088b50a7980550346b6b | a06af73ff497dfa47375dae45bf52ba24fffb5b3 | refs/heads/master | 2023-02-04T21:36:38.956163 | 2020-09-09T18:00:17 | 2020-09-09T18:00:17 | 279,387,167 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | import numpy as np
import sys
#This script will collect the results from a sweep into a
#single convenient output file.
#By default, intensities are chosen at Chebyshev nodes, which
#allow for efficient polynomial interpolation of the results.
#Gets the intensites for the sweep
def getChebNodes(n):
k = np.array(r... | [
"47008993+tennessejoyce@users.noreply.github.com"
] | 47008993+tennessejoyce@users.noreply.github.com |
6ffd7ff2b4f04009b292931cc32cad245413ced1 | 40ee79feba728f1e8a3428b6a61fe5f470f50ddb | /restApi/product/views.py | 7cfed3fbae57407289221469f52827048ceb9b89 | [
"MIT"
] | permissive | rtx-abir/ecom | 6fc67e19976ed4bcd027bab71523fde94277a695 | 87a7ae00ca06934151155ae0dca4230397386cd7 | refs/heads/main | 2023-02-04T00:36:09.140635 | 2020-12-22T06:53:40 | 2020-12-22T06:53:40 | 321,841,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | from rest_framework import viewsets
from .serializers import ProductSerializer
from .models import product
class ProductViewSet(viewsets.ModelViewSet):
queryset = product.objects.all().order_by('name')
serializer_class = ProductSerializer
# Create your views here.
| [
"Debabir91@gmail.com"
] | Debabir91@gmail.com |
d8388845b9c1e2b9a0be086bd1c7d29a271afc87 | 1063f9dc09a156d05eb06c35a196f217b7deab4a | /profiles_api/permissions.py | 9b22cab9903fc5614b0ecdbae6d57d01db0fde6d | [] | no_license | ayenisholah/profiles-rest-api | 1a9fd843f665fa94927b5e5294142b61f91589e1 | 5ac1ff9f14ca65bb9f98d56a0eaf4850db8d0171 | refs/heads/master | 2022-05-24T13:27:08.271369 | 2019-10-29T19:58:27 | 2019-10-29T19:58:27 | 214,676,214 | 0 | 0 | null | 2022-04-22T22:36:40 | 2019-10-12T16:09:10 | Python | UTF-8 | Python | false | false | 703 | py | from rest_framework import permissions
class UpdateOwnProfile(permissions.BasePermission):
"""Allow users to edit only their own profile"""
def has_object_permission(self, request, view, obj):
"""Check user is trying to edit their own profile"""
if request.method in permissions.SAFE_METHODS:
... | [
"ayenisholah@yahoo.com"
] | ayenisholah@yahoo.com |
5858ee65fabd230224a32537d2b686f65763b599 | 44ac52b18a5068713628bd671d8998901cb627aa | /Python/Email.py | c507732d8c898d095daef2e7d3fbbb73243ef6a6 | [] | no_license | KaiXtr/my-beginner-projects | 176c8fa72900c6201d5afdd49ef4bdd6f5daedbd | d6929d0cd07854ebf8003d03380ea245914c9c21 | refs/heads/master | 2023-06-01T07:52:25.285987 | 2021-06-22T01:42:12 | 2021-06-22T01:42:12 | 264,756,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | from tkinter import *
from imaplib import *
from tkinter import messagebox
import imaplib
import email
import ctypes
import getpass
import webbrowser
mail=IMAP4_SSL('imap.gmail.com',993)
check=False
def Set():
if messagebox.askokcancel('Error',"The program can't run the email service because\nyour email don't give p... | [
"mattkai@users.noreply.github.com"
] | mattkai@users.noreply.github.com |
880c59169b0647ed4759b2eb193c3fc139ce3c99 | 668c146c84912e39c820d1e4d5971e8282d86d70 | /applications/elearning/signals.py | 11509262168ff7bc54099358f62ea327eaf3665a | [
"BSD-2-Clause"
] | permissive | guinslym/Django-Code-Review-CodeEntrepreneurs | cc7cb1f81770b77e3285e62ec5fd18bb130fb7da | 2ad9bd3d352f7eba46e16a7bf24e06b809049d62 | refs/heads/master | 2021-01-01T04:22:19.983344 | 2017-08-03T14:29:40 | 2017-08-03T14:29:40 | 97,162,498 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | from django.db.models.signals import post_save
from django.contrib.auth.models import User
from .models import UserProfile
"""
TODO: this doen't work
purpose : create a profile when the user just SignUp
All my signals doens't seems to work include the one in the Models.py
"""
def create_profile(sender, **kwargs):
... | [
"guinslym@gmail.com"
] | guinslym@gmail.com |
7d687e85dac01012c01b1172306e6731d6d0b234 | c1ecc4856455831570805577f25222c8278b59f5 | /flanker/addresslib/plugins/icloud.py | aa8b1f9028eb52a818344ed380144ea6ea8a734e | [
"Apache-2.0"
] | permissive | nylas/flanker | 999cdcf5f7475d8f3fc3ba6ce9eb95efe74ff3c1 | 433839220cce28fd9b3c6ed58e869461b0eae89e | refs/heads/master | 2022-10-05T00:42:21.199483 | 2018-04-06T00:22:36 | 2018-04-06T00:22:36 | 35,391,481 | 10 | 7 | Apache-2.0 | 2022-08-23T21:20:42 | 2015-05-10T23:03:59 | Python | UTF-8 | Python | false | false | 2,809 | py | # coding:utf-8
'''
Email address validation plugin for icloud.com email addresses.
Notes:
3-20 characters
must start with letter
must end with letter or number
must use letters, numbers, dot (.) or underscores (_)
no consecutive dot (.) or underscores (_)
case ... | [
"rjones@mailgunhq.com"
] | rjones@mailgunhq.com |
9dcaac00e19e2180f4960ca4299bde226792e82d | b7a3d5c5624599a00cc45d36b9a884bd289303b0 | /adoptions/admin.py | 72ff632e6ed6b6d42357a06c5a62793d62362b09 | [] | no_license | Jrmromao/Django | f41dcffcb116cf1eddcbbcfcb4e07d398fd6fd77 | c21abdb99e98a98086d26f120ad53fc968b6ed17 | refs/heads/master | 2020-03-27T06:45:15.648983 | 2018-08-26T16:40:39 | 2018-08-26T16:40:39 | 146,133,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from django.contrib import admin
#import pet model
from .models import Pet
@admin.register(Pet)
class PetAdmin(admin.ModelAdmin):
list_display = ['name', 'species', 'breed', 'age', 'sex']
| [
"jrmromao"
] | jrmromao |
292bda3ce776e2a9c2239acc828bae26b9f15f75 | 93684882400d0249ad733249f5b2c8dbd230110f | /ClassExercise & studio/chapter 4/chapter 4 turtle clock.py | 80e7461cd98b417791c54feda62e0249c5f7be95 | [] | no_license | SmileShmily/LaunchCode-summerofcode-Unit1 | c492bbed966547cc8c1be7f15d7a23cb989d407b | 03474cf77b0dae2bcfaf8513711d3fec72bd4166 | refs/heads/master | 2021-01-16T23:19:23.413010 | 2017-06-29T02:49:19 | 2017-06-29T02:49:19 | 95,730,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | import turtle
screen=turtle.Screen()
trtl=turtle.Turtle()
screen.setup(620,620)
screen.bgcolor('black')
#clr=['red','green','blue','yellow','purple']
trtl.pensize(4)
n=0
trtl.shape('turtle')
trtl.penup()
trtl.pencolor('red')
for m in range(12):
m=m+1
trtl.penup()
trtl.forward(150)
trtl.pendown()
trt... | [
"zyxjyaya@gmail.com"
] | zyxjyaya@gmail.com |
4bd2b4c2457b20c2e32f34ecd2fa726d80c407dd | 0bf0f87fd4e1519d2db12662d9a40b0cad5d5791 | /FaceDR/code/ui_event.py | 2ea64ecc0d9d9c40e91fd6a0d988265d6c2af600 | [] | no_license | ZSharp7/Model-deployment | 83c86a0f9dccc3cef48af353e65f8782cde29a28 | bebe60e763f4816284d044d84f2d1f22f342d9ed | refs/heads/master | 2022-11-17T04:08:25.541933 | 2020-07-10T00:31:00 | 2020-07-10T00:31:00 | 258,907,203 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,831 | py | import os
import configparser
import win32api
import time
from PyQt5 import QtWidgets,QtGui,QtCore,Qt
import sys
from PyQt5.QtCore import QTimer
import cv2
from PIL import Image
import numpy as np
import threading
from code.compare_face import VisitMilvus
from code.database import DB
from code.save_face import Ui_Form
... | [
"1343159083@qq.com"
] | 1343159083@qq.com |
812219c0328e50c8ba02ef954f0de680d51d52b1 | e7de67a6bbcb21b005c10ab45a29b4c77b0e3b80 | /EWasteManagement/asgi.py | cf0424e774d7d97c7731d897ec22922de5887a41 | [] | no_license | dj-2002/E-WasteManagement-Django | cd65a31c4c728d756ff10c136e80327613e9f1f1 | 727256eab528b8a6899ba838ccc8dc1509cf762f | refs/heads/main | 2023-03-28T21:39:08.291694 | 2021-04-03T04:48:57 | 2021-04-03T04:48:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
ASGI config for EWasteManagement project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJA... | [
"dabhijayesh2002djbsa@gmail.com"
] | dabhijayesh2002djbsa@gmail.com |
0fbaff7f0fdfddcd49281420401ad4b13123f3dc | 64841ec10c6b54de87e79c5e61210f15122b6be6 | /class/CreateTenantWithToken.py | 609563f2360cd6f5bbb20fa80dc34ef411ed437b | [] | no_license | hegleran/hello-world | 124fb9c0e054ef369429d18aba44aaa1b83c57bc | 1aaeb3d5c99c42e1c1b4cffd66fc827250dd1af0 | refs/heads/master | 2020-03-27T11:12:46.707440 | 2018-08-31T13:23:11 | 2018-08-31T13:23:11 | 146,472,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | import requests
import json
url = "http://192.168.10.1/api/aaaLogin.json"
payload = "{\n\t\"aaaUser\": {\n\t\t\"attributes\": {\n\t\t\t\"name\" : \"admin\",\n\t\t\t\"pwd\" : \"ciscoapic\"\n\t\t}\n\t}\n}"
headers = {
'Content-Type': "application/vnd.yang.data+json",
'Accept': "application/vnd.yang.data+json",
... | [
"hegleran@yahoo.com"
] | hegleran@yahoo.com |
c481c92b5873d057f7d5e00fbc5d90a50765a369 | a4eb024f83b41ec7c3f4e214e3611753b9c659bc | /record_audio.py | 0df4d787c760df34a64ba7a16d5f17527146af59 | [] | no_license | markheimann/pitch_analysis | 33e4b834a8ebdb0af3f91e3ba68ad001a874e184 | 80107a44023f854169a7841a81b71cdcfd85e4ac | refs/heads/master | 2021-01-12T08:33:46.592626 | 2016-12-16T22:17:01 | 2016-12-16T22:17:01 | 76,611,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,315 | py | #from https://gist.github.com/mabdrabo/8678538
import pyaudio
import wave
import easygui as g
FORMAT = pyaudio.paInt16
CHANNELS = 2
RATE = 44100
CHUNK = 1024
RECORD_SECONDS = 10 #maximum number of seconds user can record
WAVE_OUTPUT_FILENAME = "file.wav"
#Record input from the computer microphone
def record(OUTPUT_... | [
"mark.heimann@yahoo.com"
] | mark.heimann@yahoo.com |
fa080af7e621fcb0f7268184926424b21dad2bab | 3a9f2b3d79cf214704829427ee280f4b49dca70a | /saigon/rat/RuckusAutoTest/components/lib/fm/fw_manager_fm_old.py | 6c203630b9f3db17a512503f7462d5fdc7f56a8a | [] | no_license | jichunwei/MyGitHub-1 | ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791 | f826fc89a030c6c4e08052d2d43af0b1b4b410e3 | refs/heads/master | 2021-01-21T10:19:22.900905 | 2016-08-20T03:34:52 | 2016-08-20T03:34:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,809 | py | import logging, time
from RuckusAutoTest.common.utils import *
'''
NOTE: Lowercase Module
'''
model_name_id= {
"UNKNOWN" : 0,
"ZF2925" : 1,
"ZF2942" : 2,
"VF2825" : 3,
"VF7811" : 4,
"ZD1006" : 5,
"ZD1012" : 6,
"ZD1025" : 7,
"ZD1050" : 8,
"ZD3025" : 9... | [
"tan@xx.com"
] | tan@xx.com |
9fd5878581ca751ce8d18b7ff05b80af1a360d88 | cb2a40b70bc21d0057c96ddb2c86edceffe19707 | /studioadmin/tests/test_forms/test_users_forms.py | 204225f3587851571025acae63c68e31e1f505da | [] | no_license | rebkwok/pipsevents | ceed9f420b08cd1a3fa418800c0870f5a95a4067 | c997349a1b4f3995ca4bb3a897be6a73001c9810 | refs/heads/main | 2023-08-09T14:11:52.227086 | 2023-07-27T20:21:01 | 2023-07-27T20:21:01 | 29,796,344 | 1 | 1 | null | 2023-09-13T14:32:16 | 2015-01-24T23:53:34 | Python | UTF-8 | Python | false | false | 40,807 | py | # -*- coding: utf-8 -*-
from datetime import timedelta
from model_bakery import baker
from django.conf import settings
from django.test import TestCase
from django.utils import timezone
from booking.models import Event, BlockType
from common.tests.helpers import PatchRequestMixin
from studioadmin.forms import AddBoo... | [
"rebkwok@gmail.com"
] | rebkwok@gmail.com |
54d329007b88c5f4f085102a846eda376989a7b0 | d221eff5232f17603c71c990252bf94c1613f657 | /TW_MI_INDEX.py | 70aae4046b2b42bd2a5a9900ca695ee5e472cf4d | [] | no_license | RamonLiao/TW_MI_INDEX | 06c738401ebf8d0c29b9a914692b3cc6b87faa6e | 552e9b8610410b9650be0e76ffe2bf4be8690c88 | refs/heads/master | 2020-04-02T13:19:49.344100 | 2018-10-25T14:36:28 | 2018-10-25T14:36:28 | 154,471,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,013 | py | import requests
requests.adapters.DEFAULT_RETRIES = 5 # 增加重連次數
from bs4 import BeautifulSoup as bs
from datetime import date, timedelta
import sqlite3 as lite
import ProcessBar as PB
import time
url = 'http://www.twse.com.tw/exchangeReport/MI_INDEX?response=html&date={0}&type=ALL'
sql = "insert into 每日收盤行情(證券代號, 證券名稱... | [
"yc52811@hotmail.com"
] | yc52811@hotmail.com |
649384386c8da28eddc1c0329ec0a72c07363d93 | ffd2c03d416e9a04979458e5fd684f6f4abd4746 | /notification.py | bc975a4dbf60219e63cbb739bda157e8b1fbf082 | [] | no_license | rse43/ingressier | 493300e820262e7d2d0e10cfbf1a974c85c3a3fe | bcb7526070949501eae6c9ef5a61727adc9b7cd4 | refs/heads/master | 2021-01-22T11:38:25.698905 | 2013-02-15T13:39:16 | 2013-02-15T13:39:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,587 | py | #!/bin/python
# -*- coding:utf-8 -*-
import logging
import webapp2
import os
import math
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext.webapp import template
from google.appengine.ext import db
from google.appengine.api import users
from google.appengine.api import search
from g... | [
"rse43.rse43@gmail.com"
] | rse43.rse43@gmail.com |
3d382b150c56e3e4e54c4bd56bd12e362f9d8418 | 318b737f3fe69171f706d2d990c818090ee6afce | /test/integration-test/python-sdk-test/test/test_lastjoin.py | 42881e93af11bf34e5d8b0e053b012b75b3d3760 | [
"Apache-2.0"
] | permissive | 4paradigm/OpenMLDB | e884c33f62177a70749749bd3b67e401c135f645 | a013ba33e4ce131353edc71e27053b1801ffb8f7 | refs/heads/main | 2023-09-01T02:15:28.821235 | 2023-08-31T11:42:02 | 2023-08-31T11:42:02 | 346,976,717 | 3,323 | 699 | Apache-2.0 | 2023-09-14T09:55:44 | 2021-03-12T07:18:31 | C++ | UTF-8 | Python | false | false | 1,113 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2021 4Paradigm
#
# 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 ... | [
"noreply@github.com"
] | 4paradigm.noreply@github.com |
c46ef0862197d9ac74c159faa9c07fea5cba6851 | 955cb3722ad4f3cc05bb3d38fd2609c822ffd8bb | /models.py | e65ab43cda250ca56185989fdd06ccc70b2fa556 | [] | no_license | BenjaminFraser/GameAPI | dae102655921ba306e6087c399d3a868231681c6 | eb9e93027880525d362ccd8c2d57373baee4caca | refs/heads/master | 2016-09-13T22:34:17.190754 | 2016-05-20T19:14:02 | 2016-05-20T19:14:02 | 56,184,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,731 | py | from protorpc import messages
from google.appengine.ext import ndb
class User(ndb.Model):
"""User profile to store the details of each user registered.
Attributes:
name: The name of the user (str).
email: The email address of the user (str).
wins: The total games the user has won (int)... | [
"Ben-fraser@hotmail.co.uk"
] | Ben-fraser@hotmail.co.uk |
465f596cae1d7b7ac8377d0ab55205fc2972dd10 | bddf2759a453a4e0e3ed075cd195313e044e7f13 | /readsensors/send_sms.py | 43eb60b327458192b66174bd6fac74a079187736 | [] | no_license | SteveCossy/IOT | 79b6681dd6e3f86af08fd128901cafe2daa49c6d | d191c20fd0a4636f3b814c324710112c0fa778a5 | refs/heads/master | 2023-03-18T18:48:21.939346 | 2023-03-11T21:35:05 | 2023-03-11T21:35:05 | 100,091,388 | 3 | 3 | null | 2022-02-11T20:34:24 | 2017-08-12T05:29:23 | Python | UTF-8 | Python | false | false | 1,248 | py | # Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client
# Read your Account Sid and Auth Token from twilio.com/console
dataFile = '/home/pi/twilio_data_test'
# File contains: SID Auth_Token TargetTemp TargetFreq Frequency SID startMsg txtBody from_nbr to_nbr
# txtB... | [
"steve@rata.co.nz"
] | steve@rata.co.nz |
4cc271d10ba406fe36086b21a70aeab6a77ff050 | 804f2ae447089a1883ffac83b9b07d9cb26be1f8 | /Final/src/game.py | cf928c53782f567a15178952f0ba81e47b377038 | [] | no_license | JusDOrr/Python | b1bcb89291e648b783388a7a06a3e8a70efdee9c | 73fa3eb2b3181be824a504ecbaf414ceea070678 | refs/heads/master | 2021-01-02T22:37:21.975043 | 2018-04-03T18:43:24 | 2018-04-03T18:43:24 | 99,357,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | #Justin Orr
#Final Project
#Python: 3.6.1
'''The Main Game module'''
try:
import pygame
except:
print("Error importing pygame module. Please \'pip install pygame\' for python 3.6.1")
try:
from pygame.locals import *
except:
print("Error importing * from pygame.locals")
try:
from mineswee... | [
"JustinOrr2011@gmail.com"
] | JustinOrr2011@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.