blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b3955108d2bd467190ee0f8b33b6c7dae412e68a | 7b84f6ace903337a3a5894ea70c564ac6bc324be | /quiz-w7-2-densenet/datasets/download_and_convert_cifar10.py | 9711adc55b485f221751dd287481890fa33cf643 | [] | no_license | zhouzhiqi/Deep-Learning | 8d17359d7f66c46292e89a86f44326310b723052 | 416abd68737cd81e5d8bf15507d59bbd560d1c1a | refs/heads/master | 2021-09-14T16:57:29.203381 | 2018-05-16T08:38:41 | 2018-05-16T08:38:41 | 126,123,994 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,588 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"zhouzhiqi1234@outlook.com"
] | zhouzhiqi1234@outlook.com |
862ba01f331fad15fbd5638250d0613e8136b898 | 606d56d4dfe3eff3f34caa43091b725db06b885d | /src/productos/views.py | 95fdb6b404d32c98069129b37218835847c74b01 | [
"MIT",
"Apache-2.0"
] | permissive | Sublime441/inventario-api | 8b6a45fdba2e7076750a9d1b06630fbe7e8af93b | e084b18908f65a481fcca0cbd44a9c2e7236e18a | refs/heads/master | 2021-09-05T13:49:18.583407 | 2017-10-20T11:21:46 | 2017-10-20T11:21:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | from rest_framework import viewsets
from .models import Producto
from .models import Categoria
from .serializers import CategoriaSerializer
from .serializers import ProductoSerializer
class CategoriaVista(viewsets.ModelViewSet):
queryset = Categoria.objects.all()
serializer_class = CategoriaSerializer
class ... | [
"cercadocarlos@gmail.com"
] | cercadocarlos@gmail.com |
1a00af2d94457d9d773df82a3718628355f690e3 | 51c4288732642aa75b173c9efa25c02968aa5406 | /src/book/forms.py | 8ea6d15f3dfed41737d6182ea82ba16aa914c020 | [] | no_license | EvgPol19/Book | ae16276d5d41cf50ab9038b93a308c4be84c8280 | beeffe3c2fd55920239003b28b5b63cd1ad9d924 | refs/heads/main | 2023-07-17T01:29:32.698177 | 2021-08-17T07:13:29 | 2021-08-17T07:13:29 | 369,847,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | from django import forms
from . import models
class CreateBook(forms.ModelForm):
class Meta:
model = models.Book
fields = '__all__'
| [
"elulbako@list.ru"
] | elulbako@list.ru |
9ca06377d8cd9fbe39082bfb3d7983c1eb7ddd2c | 6b27c39edc10b1353104043b7a523f4981c99ef2 | /pytype/tools/merge_pyi/test_data/stars.pep484.py | 56d6529efedb9cc54e761bdb5952bafc66cde7b3 | [
"Apache-2.0",
"MIT"
] | permissive | google/pytype | ad0ff0b6c1083b4f0a1af1747869d422f2b5f4d8 | bda0b9547af9a084bb2bd1427f58dcde968e48b5 | refs/heads/main | 2023-08-26T17:52:23.546035 | 2023-08-24T22:48:00 | 2023-08-24T22:48:00 | 32,483,713 | 4,595 | 367 | NOASSERTION | 2023-09-13T04:40:45 | 2015-03-18T20:52:08 | Python | UTF-8 | Python | false | false | 288 | py | def f1(*a):
pass
def f2(**a):
pass
def f3(a, *b):
pass
def f4(a, **b):
pass
## arg with default after *args is valid python3, not python2
def f5(*a, b=1):
pass
def f6(*a, b=1, **c):
pass
def f7(x=1, *a, b=1, **c):
pass
def f8(#asd
*a):
pass
| [
"rechen@google.com"
] | rechen@google.com |
f3ae22f885b78d753d9dbc851fea38a065e80d88 | 9fc768c541145c1996f2bdb8a5d62d523f24215f | /code/HomeWork/ch5/H_5_4.py | a92df699ef2667ea9bcb8c973b7297b29db61309 | [] | no_license | jumbokh/pyclass | 3b624101a8e43361458130047b87865852f72734 | bf2d5bcca4fff87cb695c8cec17fa2b1bbdf2ce5 | refs/heads/master | 2022-12-25T12:15:38.262468 | 2020-09-26T09:08:46 | 2020-09-26T09:08:46 | 283,708,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | # H_5_4.py 功能:輸入數字後判斷是否為11的倍數
num_even = 0 # 儲存偶數位數字暫存
num_odd = 0 # 儲存奇數位數字暫存
number = str(input('請輸入數字 : '))
l = len(number) # 判斷輸入數字之長度
x = int(number) # 轉換成數值型態
for n in range(l,0,-1):
y = x//(10**(n-1)) # 計算奇偶位數字
x = x - (y*(10**(n-1)))
if n%2 == 0: # 判斷若是偶數位數字則儲存在偶數位暫存,反之存奇數位暫存
num_even = nu... | [
"jumbokh@gmail.com"
] | jumbokh@gmail.com |
b2fd156cbb5144ba90084307461364a83221c543 | 8feb451342837ba72967d06f339536e9b2dd6213 | /2018/Python/puzzle45_46.py | 17e5d209be95a13826f588c01ddda9b6d4684827 | [] | no_license | csvila/AdventOfCode | bcecfcfd404d10ee36b9f0c6a82561154cc2958d | 807ffba369b7a64167851e76a7edd632c7150e06 | refs/heads/master | 2020-04-16T06:06:17.851824 | 2019-12-10T16:18:15 | 2019-12-10T16:18:15 | 165,333,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,876 | py | import re
def get_bots(values):
r = re.compile("pos=<([0-9-]+),([0-9-]+),([0-9-]+)>, r=([0-9]+)")
bots = []
for cur in values:
if cur.startswith("#"):
print("# Note: " + cur)
else:
m = r.search(cur)
if m is None:
print(cur)
bo... | [
"cesar.vilarim@hotmail.com"
] | cesar.vilarim@hotmail.com |
a305c45934f4cccda3f2ff9cda3ac07315b86ddb | a1f00428cf522c8e51ff05101ab2a1024cf04248 | /python/matrix/matrix.py | 55438e97e1b764bbae2543bc8f394c06bc7f247d | [] | no_license | siddharthisaiah/exercism | c994132d9f59fa5c6b11cb28c10806aed41a1c30 | b4ce66543fdc70073916028c6bdd6f70ae1cc7a2 | refs/heads/master | 2023-01-05T23:35:48.341670 | 2019-07-09T17:42:52 | 2019-07-09T17:42:52 | 186,884,684 | 1 | 0 | null | 2023-01-05T02:14:45 | 2019-05-15T18:47:35 | Python | UTF-8 | Python | false | false | 298 | py | class Matrix(object):
def __init__(self, matrix_string):
self.matrix = [[int(n) for n in row.split()] for row in matrix_string.split("\n")]
def row(self, index):
return self.matrix[index-1]
def column(self, index):
return [row[index-1] for row in self.matrix]
| [
"siddharthisaiah@gmail.com"
] | siddharthisaiah@gmail.com |
9b1c4cf2eb86462a040f6f3f3d50654cb43b7469 | df0849fb516ae123a8031f5830fe55b5341391df | /test/test_binaryreply.py | abf58df752c5c35f5a6ed4981f49cee6659c3cce | [
"Apache-2.0"
] | permissive | duncanmcbryde/zaber.serial | e5380eafcb0ca7ab8817118a28999edaf06f8265 | 3edeec2703f6266fe13d300b61c46782171e1287 | refs/heads/master | 2016-08-11T09:44:37.235121 | 2015-12-01T13:29:40 | 2015-12-01T13:29:40 | 47,191,136 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | import pytest
from zaber.serial import BinaryReply
def test_init():
br = BinaryReply([1, 56, 10502])
assert(br.device_number == 1)
assert(br.command_number == 56)
assert(br.data == 10502)
def test_init_with_message_id():
br = BinaryReply([2, 44, 21231, 12])
assert(br.device_number == 2)
a... | [
"duncan.mcbryde@ttp.com"
] | duncan.mcbryde@ttp.com |
bc65a3921d29d115fa2d05902808f18552cb33e5 | 94efbd46bec43b07f29f8718b378834f28cfa18c | /env/Lib/site-packages/dotenv/__init__.py | 1867868f719e0edd17ad0cc144fa680c9e273bf4 | [
"Apache-2.0"
] | permissive | BiceCold/Citadel_of_Ricks | 2a9d1fc45fe36098dc61f2e00c55cedfd1dd22b7 | 72f1a447accc2c11d1fa1cbf3c3342913913e50e | refs/heads/master | 2021-06-15T17:52:35.999378 | 2019-06-15T18:29:55 | 2019-06-15T18:29:55 | 129,338,382 | 2 | 0 | Apache-2.0 | 2021-02-26T02:29:49 | 2018-04-13T02:45:19 | Python | UTF-8 | Python | false | false | 1,276 | py | from typing import Any, Optional
from .main import load_dotenv, get_key, set_key, unset_key, find_dotenv, dotenv_values
def load_ipython_extension(ipython):
# type: (Any) -> None
from .ipython import load_ipython_extension
load_ipython_extension(ipython)
def get_cli_string(path=None, action=None, key=No... | [
"bice.jeremy@outlook.com"
] | bice.jeremy@outlook.com |
4e69526e2f22b9e6ead9e0673d893c9460e3b570 | fc1cc515a65e844705cc6262a70cd0a12ce1d1df | /math/0x00-linear_algebra/2-size_me_please.py | f9800d2c3bc375d8df09bd35e4d0cfd25402da82 | [] | no_license | yulyzulu/holbertonschool-machine_learning | 4f379a4d58da201e8125bd8d74e3c9a4dfcf8a57 | d078d9c1c5bd96730a08d52e4520eb380467fb48 | refs/heads/master | 2022-12-26T12:01:25.345332 | 2020-10-03T03:19:05 | 2020-10-03T03:19:05 | 279,392,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | #!/usr/bin/env python3
""" Module to execute function """
def matrix_shape(matrix):
"""Function that calculates the shape of a matrix"""
shape = []
shape.append(len(matrix))
while type(matrix[0]) == list:
matrix = matrix[0]
shape.append(len(matrix))
return shape
| [
"yulyzulu05@gmail.com"
] | yulyzulu05@gmail.com |
d13484b16678129c6aaeb00750fcd04de43e2ed3 | 0228a6aefd7dcedb16bb6baf2152bb893b0a7c4e | /externalapiproject/settings.py | 6441bbd7eac8a52a31de11e8614fec179ed1ce49 | [] | no_license | balaji2245/django_project_externalapi | 7cf7d950cbdfb7c396f194f5b2df4d7390a58e56 | 4fdecbfd7f2a6863c77ab9c98348d16f5a199f4c | refs/heads/master | 2023-08-30T09:58:25.551883 | 2021-11-15T19:45:21 | 2021-11-15T19:45:21 | 428,282,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,019 | py | """
Django settings for externalapiproject project.
Generated by 'django-admin startproject' using Django 3.2.9.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
im... | [
"balajidavangavem@gmail.com"
] | balajidavangavem@gmail.com |
748bd141851012ae41c1d7935ee35c81843e1b35 | 22dc5935a022e23d053cca14357b5b0732d96a63 | /DataScie/tuts/pd_intro.py | 18b715277127112b19a636a33662be70d361bcb7 | [] | no_license | deaninous/playground | 3aa548db543e2e1620793dea15d1c934967c6976 | fe43d0e97a188b3f368114c0a295b34ded396760 | refs/heads/master | 2021-01-02T23:03:46.557197 | 2017-08-09T00:06:05 | 2017-08-09T00:06:05 | 99,456,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,261 | py | from pandas import Series, DataFrame
import numpy as np
stock = Series([4, 3, 8, 9])
#stock
#Out[12]:
#0 4
#1 3
#2 8
#3 9
#dtype: int64
# stock.values
# DataFrame, think csv
# pandas, think linear values
# numpy, think spreadsheets
data = {'state': ['Ohio', 'Ohio', 'Ohio', 'Nevada', 'Nevada'],
'year': ... | [
"ouedinous20@gmail.com"
] | ouedinous20@gmail.com |
acda56ee78a8132344cc053561886c569a3f64fd | 61fa09e50752022ee57553f1af4dd84b201b4aff | /0x00-python-hello_world/6-concat.py | 7c492b9d7fa2f0c5c7c0cfa14012dcdd748e2c0c | [] | no_license | ellio-hub/holbertonschool-higher_level_programming | 184880bbb99c59d1d64d8f650d4addbec41321db | 96ddcd43889b9df5e8497669e14ef85e9494cbb0 | refs/heads/master | 2023-06-18T20:22:57.871905 | 2021-07-14T14:08:20 | 2021-07-14T14:08:20 | 270,609,342 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | #!/usr/bin/python3
str1 = "Holberton"
str2 = "School"
str1 = str1 + ' ' + str2
print('Welcome to {}!'.format(str1))
| [
"1421@holbertonschool.com"
] | 1421@holbertonschool.com |
eacef7a09f8311f33624a9f5acb965d5ec877336 | 7d8022661a756f77f715ee4d099fb17cb9da671a | /engine/data_loader.py | 6e92e9d69aff6df248ddbe721e11db9904459073 | [] | no_license | lxj0276/Quant-Util | a7d70d88fc47eb16a08149faefa7b128c01c670e | 2706ecba72a293ee01105ad22508a8d6b20e1394 | refs/heads/master | 2020-04-25T13:40:36.700892 | 2018-10-15T04:35:54 | 2018-10-15T04:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,979 | py | import os
from collections import OrderedDict
import pandas as pd
from engine.cons import *
from engine.utils import get_calendar
from feature.time import TimeRange
from mongoapi.get_data import get_day_trade_data
from redis_cache.rediscache import cache_it_pickle
class pricing_data_loader:
def __init__(self, lo... | [
"zhangzc@pku.edu.cn"
] | zhangzc@pku.edu.cn |
66c913bf07d18f0b0788b67fdd65aaa861d80416 | 771856a4f24b8a4ff0cb627a316e825f6364db5f | /04_conditional_statements/ifelifelse.py | c977dd4c830f8f79818f21cc6daf6c9f7f6ec492 | [] | no_license | rafaelgramoschi/pythontuts | f3cd8df91cdfda40910c3946f9018cdf29659b4a | b7b3145658e9b38f30d7579b0b031e4abdc916ac | refs/heads/main | 2023-02-06T11:47:36.488737 | 2021-01-02T15:32:42 | 2021-01-02T15:32:42 | 326,212,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | """
if-elif-else
"""
zero = 0;
one = 1;
if one > zero:
#Indentation is important!
#it makes python understand that if something happens
#it must follow the indented code,
print("one is greater than 0")
elif one == zero:
print("number are the same")
else
print("one is less than 0")
str = 'str'
if str is '... | [
"gramoschi.rafael@gmail.com"
] | gramoschi.rafael@gmail.com |
a1f30bad67e95432f8ac7e765fea90b9672f1617 | af314ff8e16565cc826e2cf747605da645c631c9 | /Project/urls.py | e86b975ad118c8a2847ef0a280d5899607ac158d | [] | no_license | cutlerwater/django_blog | 8bbcc7a5b51109650dad80eebb32a4ae7c85c690 | 6c7e71f82af59e9bd28c5315428457d678d62aa5 | refs/heads/main | 2023-08-21T17:57:53.783259 | 2021-09-30T20:51:51 | 2021-09-30T20:51:51 | 411,458,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | """Project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"cutlerwater2@live.com"
] | cutlerwater2@live.com |
f4d4ad5fffdbd3200bfabf4936fb900e12376a50 | ec2075fc61f622a0ddf11744d67222d10d7582ea | /pickle.py | f918870478bc477f88030a65c7a293ee31f3a522 | [] | no_license | Aravinthanucep/Python-program | f3b2f4df8b6f53d049db062852af7a5ddb435546 | 3502fdf2755ade6c735f8478e5c31730688f68a7 | refs/heads/master | 2021-05-08T14:56:25.438546 | 2018-02-11T17:08:19 | 2018-02-11T17:08:19 | 120,101,252 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | #-------------------------------------------------------------------------------
# Name: module2
# Purpose:
#
# Author: Deepa
#
# Created: 19/01/2018
# Copyright: (c) Deepa 2018
# Licence: <your licence>
#-------------------------------------------------------------------------------
d... | [
"noreply@github.com"
] | noreply@github.com |
11a9a10ba5f3266f862981818c7a0334b636af87 | 294dd0d3534d95479348d0fc7c03f1dd0f4c1e42 | /RemitaBillingService/EncryptionConfig.py | 8fd57202a8bcc2dabed8e0b5ed1ce406915628e0 | [] | no_license | RemitaNet/billing-gateway-sdk-python | 7827c9a16fd81ce48ca0206c350aba762c2a5cfe | d051f24cdce99b5f3c4acf96d19fcbd5d3da2aa8 | refs/heads/master | 2023-02-22T23:23:53.064169 | 2023-02-20T20:30:28 | 2023-02-20T20:30:28 | 207,595,239 | 4 | 1 | null | 2023-09-12T13:49:35 | 2019-09-10T15:25:56 | Python | UTF-8 | Python | false | false | 1,320 | py | import hashlib
from Responses.BaseResponse import BaseResponse
class EncryptionConfig(object):
empty_credential_msg: str
empty_credential_code: str
def sha512(input):
hashed_input = hashlib.sha512(input.encode('utf-8'))
hex_dig = hashed_input.hexdigest()
return hex_dig
def c... | [
"ilesanmi@Systemspecs.com.ng"
] | ilesanmi@Systemspecs.com.ng |
7903bebf11136419ad1380585a837c763047ba50 | 16f9e5c65d309bb3d3f0da90bd2a3ffa6dfbb922 | /labs/lab3/mysiteS20/myapp/migrations/0004_auto_20200623_1522.py | 293c9fe8f3a20fcc0f30ae5b71d0a787257fff65 | [] | no_license | datqlam/internet-app-distributed-sys | e8ffaa8eeec0a808d07f8f3d3ba9095c0ae63189 | 3e5fe41282023b8678710d7805765b00cecb2b38 | refs/heads/master | 2022-12-10T16:29:45.596137 | 2020-08-20T21:08:22 | 2020-08-20T21:08:22 | 268,125,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | # Generated by Django 3.0.7 on 2020-06-23 19:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0003_auto_20200619_1833'),
]
operations = [
migrations.RemoveField(
model_name='order',
name='course',
... | [
"lqdat2n@gmail.com"
] | lqdat2n@gmail.com |
91c02459d4b5116db0e911aeeb9585e3e2c177d5 | 0a7a2941602ceeb819fad3f222a7b3950452d304 | /zeus/controller/BusinessController.py | 4fbd01d8f9a720253ea74c7b4e089b8257d087fb | [
"Apache-2.0"
] | permissive | flyliufu/PythonDemo | 3b9ed3c74181ad7f46257655bba03c389d870eec | 9f31998a53e94b4036c6e96d80748945845b82b6 | refs/heads/master | 2022-04-26T10:54:42.543061 | 2022-03-11T07:51:29 | 2022-03-11T07:51:29 | 147,266,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,861 | py | from zeus.util.MsgUtil import MsgUtil
# 微信服务器推送消息是xml的,根据利用ElementTree来解析出的不同xml内容返回不同的回复信息,就实现了基本的自动回复功能了,也可以按照需求用其他的XML解析方法
import xml.etree.ElementTree as et
import logging
logger = logging.getLogger("django.request")
class BusinessController:
def auto_reply(self, body):
xml_data = et.fromstring(bod... | [
"flyliufu@sina.com"
] | flyliufu@sina.com |
672a4e70022ac965ccb9167e465218b4afb9d018 | 3efc0c578c5136d83eeab69dc3e5fd565de05c31 | /Assignment 3/P1_Baseline/p1/baseline.py | 5e4ea735ca9db4350f25a51ac22f38f53193240e | [] | no_license | Rshcaroline/UCSD-CSE256-Statistical-NLP | 34ccc690ec3e7f1e7e41a176a46350e8bddbeaf6 | 57d3f2081d7aa46d44b096669ca2d6c9e242c5c2 | refs/heads/master | 2023-04-01T14:27:20.390827 | 2019-12-13T06:36:07 | 2019-12-13T06:36:07 | 213,223,407 | 6 | 5 | null | 2023-03-25T00:11:32 | 2019-10-06T18:40:57 | JavaScript | UTF-8 | Python | false | false | 2,212 | py | '''
@Author:
@Date: 2019-11-01 19:48:16
@LastEditors: Shihan Ran
@LastEditTime: 2019-11-01 20:41:28
@Email: rshcaroline@gmail.com
@Software: VSCode
@License: Copyright(C), UCSD
@Description:
'''
import sys
from collections import defaultdict
import math
def read_counts(counts_file, word_tag, word_dict, uni_tag):
... | [
"RshCaroline@163.com"
] | RshCaroline@163.com |
7c38dda3f18562b3df7eecb78e86f2712b212369 | b5d72e68c3976766a7adfd1fa33f778a5268c84a | /Regex/ex1.py | 35628e29ded201a4fa05a049420dc39525ee29d4 | [] | no_license | LizinczykKarolina/Python | 4a2fb0e7fb130c86239b2666fb346bf35a8e655b | 7f4a3a9cba15fd2b4c7a104667461b3c49f8b757 | refs/heads/master | 2021-06-18T21:43:52.983557 | 2017-06-17T21:24:01 | 2017-06-17T21:24:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | #1. Write a Python program to check that a string contains only a certain set of characters (in this case a-z, A-Z and 0-9).
import re
email_address = 'wieczorek.karolina1@o2.pl'
searchObj = re.search(r'[a-zA-Z0-9.]', email_address, re.M | re.I)
if searchObj:
print True
else:
print False
"sxdupa1" -match ... | [
"wieczorek.karolina1@o2.pl"
] | wieczorek.karolina1@o2.pl |
932a26342f04be288d55af4acb34cfe86fc29623 | 5258f5997ad9d2d75a5a0b950abb41b122c2a2d2 | /source/Mlos.Python/mlos/Optimizers/ExperimentDesigner/UtilityFunctionOptimizers/UtilityFunctionOptimizerFactory.py | 07c4da47b756ec8ca0b90a0a4dc3a21b35801b91 | [
"MIT",
"GPL-2.0-only"
] | permissive | amueller/MLOS | 49c0d361aeaffabce20d5b31ab44ad180d8dd13d | 8f79bfa27a6fd09c3e00187bae8d7177eaf55247 | refs/heads/main | 2023-07-07T23:46:03.028439 | 2021-06-14T20:09:09 | 2021-06-14T20:09:09 | 290,320,526 | 4 | 1 | MIT | 2020-11-06T01:12:17 | 2020-08-25T20:49:13 | Python | UTF-8 | Python | false | false | 2,789 | py | #
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
from mlos.Optimizers.ExperimentDesigner.UtilityFunctions.UtilityFunction import UtilityFunction
from mlos.Optimizers.ExperimentDesigner.UtilityFunctionOptimizers.GlowWormSwarmOptimizer import GlowWormSwarmOptimizer, glow_worm_swarm_optimi... | [
"noreply@github.com"
] | noreply@github.com |
6eeb30afedb9faf5956630200d67199cef30815d | 2a4a17a67b9069c19396c0f8eabc8b7c4b6ff703 | /BGP3D/Chapter11/WorldClass_00.py | 2cd366287c64b1790280d87dd425c04951cc0271 | [] | no_license | kaz101/panda-book | 0fa273cc2df5849507ecc949b4dde626241ffa5e | 859a759c769d9c2db0d11140b0d04506611c2b7b | refs/heads/master | 2022-12-19T09:36:05.794731 | 2020-09-16T19:04:10 | 2020-09-16T19:04:10 | 295,784,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,569 | py | ''' World Class
This class is the launching point for the game.
This is the file that needs to run to start the game,
and this class creates all the pieces of the game.
'''
import direct.directbase.DirectStart
from direct.filter.CommonFilters import CommonFilters
from HUDClass_00 import HUD
from RaceClass_0... | [
"kaz101130@gmail.com"
] | kaz101130@gmail.com |
6e954ce6187d1273920eca965ab0db30375857bf | 60f88b58500abed3e01b67dd519506b6e0e6e491 | /PasswordKeeper/PasswordKeeper/PasswordKeeper/wsgi.py | d6dbb1e0e6e4378a0fab8d42ab8ac4e44886db9a | [] | no_license | gouravgarg48/PasswordKeeper | 61008339982192a766c50597cdb28f88c41f5d4d | 439770004100ca32e9cb494fb177d5c642906565 | refs/heads/master | 2022-12-09T08:15:38.592805 | 2020-08-25T13:21:28 | 2020-08-25T13:21:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for PasswordKeeper project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANG... | [
"gauravgarg4000@gmail.com"
] | gauravgarg4000@gmail.com |
cf2b8cbadeba4fa6168e63817f67c1570428e5b9 | 0ab04927cda34b384044d5d827a0043a5db0105d | /projects/data science/college_admission_poly.py | 0c7b806c3e7c229db7fb0ac731bdd607299acce1 | [] | no_license | anishd513/projects | 49b6a03b5d60db71dde0bdb3a9c99d37e3afa752 | 6c85b7c7e2b9ed6b71e8244204ec355bb26edbd9 | refs/heads/main | 2023-06-08T23:14:32.861369 | 2021-06-29T15:20:28 | 2021-06-29T15:20:28 | 305,082,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 16 20:34:45 2020
@author: Admin
"""
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
dataset=pd.read_csv("Admission_Predict.csv")
x=dataset.iloc[:,1:-1].values
y=dataset.iloc[:,-1:].values
from sklearn.model_selection import train_test_sp... | [
"noreply@github.com"
] | noreply@github.com |
bb4e4bd748283b521eb43cbfc3512f14cc5a6fd9 | 8d39bfe6bbe1f30077b69d92745eac067d4619c4 | /parserInvoke-Mimikatz.py | f42deb1e197310e3173d734c97d8181d347b75b9 | [] | no_license | Ne0nd0g/scripts | f987f416070dfd60425ce83598cc02ece191bc81 | 5b8f989c88860bbe663a81c489c3baff82b81ee9 | refs/heads/master | 2021-01-17T12:21:56.836062 | 2018-12-07T16:41:01 | 2018-12-07T16:41:01 | 30,088,779 | 20 | 11 | null | null | null | null | UTF-8 | Python | false | false | 5,337 | py | #!/usr/bin/python
#!/usr/bin/env python
"""Parse files generated by piped output from Invoke-Mimikatz.ps1"""
import logging
import argparse
import sys
import os
import readline
#################################################
# Variables #
########################################... | [
"rcvt@sses.net"
] | rcvt@sses.net |
4b90e720e1c60a9af54132d8db1f4f2a10f0e5d0 | 5aa3fd7dbad807c12fdecf9504e9a1580ab24768 | /ctopy.py | e465eb04bba5b9be97183b7fb950969455d7eee9 | [
"BSD-3-Clause"
] | permissive | sunnybesunny/CtoPy_Gillespie_Brute | 3ca2030943c7a1bd58af3a45f67bb9dba8e44e6a | 8d2e59d5893502cf09d8d963d97928ea56c996c0 | refs/heads/master | 2021-01-10T03:12:39.127213 | 2018-05-13T00:26:39 | 2018-05-13T00:26:39 | 55,079,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62,780 | py | #!/usr/bin/env python
"""
ctopy -- a quick and dirty C-to-Python translator.
Libraries not mapped that theoretically could be: curses.panel, dbm,
md5, popen2, pty, resource, sha, subprocess, syslog, time. Some of these
would need more elaborate machinery for method translation.
Python library bindings are as of 2.6a... | [
"mskang@mit.edu"
] | mskang@mit.edu |
93770b04b06cc4bee60b772d822f418ad8a272c9 | faca8866b3c8aca30a915d8cb2748766557ed808 | /object_detection_updata/metrics/tf_example_parser.py | 510e6917fa9838e9282ec6f561e50cb77a7b5ff9 | [] | no_license | yongqis/proposal_joint_retireval | 6899d80f8fb94569c7b60764f6e7de74bcfa9cc8 | 97b086c62473ab1a5baf45743535fce70c3f8c20 | refs/heads/master | 2020-05-25T19:07:22.946008 | 2019-06-03T07:09:04 | 2019-06-03T07:09:09 | 187,943,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,294 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"syq132@live.com"
] | syq132@live.com |
94d174ed0e5896823a43d4869acc725f51bd70f3 | e306eb3fc110dee0e3f5e68eb375c55704b3642f | /personel_portfolio/urls.py | 3a0c2409023554b1730c7ac42d3244152c9166dd | [] | no_license | Yeet2006/personel-potfolio | 446cc22f7a678b64aa6a01267878d9ebff5c41e3 | 9ecbfc58504654cb043aedffddc44e3b13cd6db9 | refs/heads/main | 2023-01-28T11:42:27.880185 | 2020-12-14T13:48:38 | 2020-12-14T13:48:38 | 321,355,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | """personel_portfolio URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
... | [
"yeetkamakazi@gmail.com"
] | yeetkamakazi@gmail.com |
cdccf29b8a2c7760740db2afacb752d2876105f2 | f8bc86843e8904404940fb37d1b153e8aa28e180 | /crop_microstructure.py | 0eef73b0e1399d28ec813e90d7913b8e16356ebd | [] | no_license | pkarira/Cascade | 621ad8ee20825ca1cd77bbebd7e9be1917e49ab0 | d32d77f78131e158092225d9df16ef6ef161137d | refs/heads/master | 2020-04-26T09:31:53.286493 | 2019-04-09T11:36:14 | 2019-04-09T11:36:14 | 173,458,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,058 | py | import glob
import numpy as np
from skimage.io import imread, imsave
import os
def quad_crop(image, w=224):
""" crop out four panels from the center of the image """
labels = np.array([['UL', 'UR'], ['LL', 'LR']])
center = (np.array(image.shape) / 2).astype(int)
x, y = center
crops = []
for i... | [
"pulkit5208@gmail.com"
] | pulkit5208@gmail.com |
94a6049bd0b29f745ad759a26578f79218888ef5 | b25f9a671d57616d359ed1885fc7c96009af0984 | /uuv_control/uuv_trajectory_control/src/uuv_control_interfaces/dp_pid_controller_base.py | af563bdb5a244caf02552b74f7d33d880de65750 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | AbdelazizAssem/VAUV-simulator | 8bb55c6e59307efdf2d27dd8dead348cb354e486 | 1ef4078de239a05fbdb050cc64e735897a31b3b7 | refs/heads/main | 2023-04-03T23:45:36.803280 | 2021-04-11T19:02:27 | 2021-04-11T19:02:27 | 356,694,933 | 0 | 0 | Apache-2.0 | 2021-04-10T21:07:56 | 2021-04-10T21:07:56 | null | UTF-8 | Python | false | false | 5,539 | py | # Copyright (c) 2020 The Plankton Authors.
# All rights reserved.
#
# This source code is derived from UUV Simulator
# (https://github.com/uuvsimulator/uuv_simulator)
# Copyright (c) 2016-2019 The UUV Simulator Authors
# licensed under the Apache license, Version 2.0
# cf. 3rd-party-licenses.txt file in the root direct... | [
"engibrahimhabib@gmail.com"
] | engibrahimhabib@gmail.com |
36e77a80aeb9667fa8fbfe256dc23efc4a5d068a | 4637dcdfbfa4eeaefaa9c2ffc5e537ab21171fff | /main.py | 9a4f557401b411bd11c83084e9fda8003013177f | [
"MIT"
] | permissive | gabriel-farache/homautomation | 98321a2c6ddc8ead60a6cc89a7917619a5743fdb | c2bd6a18deb2699242d543bc0eeaf386c2b6296a | refs/heads/master | 2020-04-06T07:57:21.459828 | 2018-02-25T17:02:30 | 2018-02-25T17:02:30 | 64,056,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | # main.py -- put your code here!
import pycom
import time
import sendData
from machine import RTC
pycom.heartbeat(False)
try:
sendData.connectLocalBox('/flash/config.json')
rtc = RTC()
rtc.ntp_sync('fr.pool.ntp.org')
pycom.rgbled(0x00FF00)
time.sleep(0.2)
pycom.rgbled(0)
tim... | [
"gabi.matamu@gmail.com"
] | gabi.matamu@gmail.com |
d83ff9d35756aa203096778316d1f1840a266b4c | d9f6f439300d298246c37ccfb881e8e8af4fda22 | /cfp/migrations/0021_profile_name.py | 814cb2ed2021c677ece96c65e1671b44cb2a0824 | [
"MIT"
] | permissive | ajlozier/speakers | e62b8d346a58a034998860d1b42a38b00cbdbd23 | d7d87c99b1cfa5f9df5455f737385115d9d5279c | refs/heads/master | 2021-09-08T19:33:08.894305 | 2018-03-12T00:54:10 | 2018-03-12T00:54:10 | 122,101,157 | 0 | 0 | null | 2018-02-19T18:08:18 | 2018-02-19T18:08:18 | null | UTF-8 | Python | false | false | 444 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('cfp', '0020_auto_20150218_0802'),
]
operations = [
migrations.AddField(
model_name='profile',
name='... | [
"kyle@kyleconroy.com"
] | kyle@kyleconroy.com |
07956246e6818d61ad5c4214d016aa49af201c8e | 58185d7c1684d4ed78fdf7702578d88f9fe97c0c | /nires/dez.py | 70a5ddfb5ab71797593fc7f25630f46725639734 | [] | no_license | jmel/NIRES | 51a6086e590833fd3d4bf8bb22db9a712891027b | fbd62ac18412595924c537e54e160a8721fd509e | refs/heads/master | 2021-01-21T04:35:14.098096 | 2016-07-08T17:20:12 | 2016-07-08T17:20:12 | 11,027,957 | 0 | 0 | null | 2016-07-08T17:20:13 | 2013-06-28T14:12:46 | Python | UTF-8 | Python | false | false | 2,340 | py | #!/usr/bin/env python
# Take difference between two fits files
import sys
import numpy
import readcol as rc
import pyfits as pf
import string
import ds9
import globals
z = sys.argv[1]
unit = open(globals.calibrationpath + 'z_emission.reg','w')
wsol = pf.open(globals.calibrationpath + 'tspec_wavesol.fits')[0].data
s... | [
"jason.melbourne@gmail.com"
] | jason.melbourne@gmail.com |
cfa3e6dd807a8829414f580e7847edd533b53527 | dfee236b3f4bf66e52d50b0226b7773a745d8d34 | /structure/validator.py | 21f68f8c5d9deec430c12ffe98c0d815eb8bb1ca | [
"MIT"
] | permissive | ayush5harma/ECS-Hiring-Challenge | 43409aadf69d58addd9ffd8818b30adaff4eb20f | ccab72645026c311aee74ac68c69503d187740ff | refs/heads/main | 2023-08-06T06:23:36.939623 | 2021-09-23T20:12:43 | 2021-09-23T20:12:43 | 352,643,716 | 0 | 0 | null | 2021-09-23T20:12:43 | 2021-03-29T12:57:40 | PowerShell | UTF-8 | Python | false | false | 914 | py | from marshmallow import Schema, fields
from marshmallow.validate import Length
class DataModel(Schema):
""" /api/note - POST
Parameters:
- title (str)
- note (str)
- user_id (int)
- time_created (time)
"""
title = fields.Str(required=True, error_messages={
"r... | [
"47772616+ayush5harma@users.noreply.github.com"
] | 47772616+ayush5harma@users.noreply.github.com |
e5d51b840f9d3e61bbf612efe4cb4e6c26e84ce6 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_actor.py | 04e32c50a329bba627e107500de9e8bd1c6b493f | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py |
#calss header
class _ACTOR():
def __init__(self,):
self.name = "ACTOR"
self.definitions = [u'someone who pretends to be someone else while performing in a film, play, or television or radio programme: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'noun... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1a89d48503fba5a5f596dc365fc645417e63c887 | 77311ad9622a7d8b88707d7cee3f44de7c8860cb | /res/scripts/client/gui/scaleform/battle.py | cb3cb78844254b812459a7a4b3f4ed98dac52a20 | [] | no_license | webiumsk/WOT-0.9.14-CT | 9b193191505a4560df4e872e022eebf59308057e | cfe0b03e511d02c36ce185f308eb48f13ecc05ca | refs/heads/master | 2021-01-10T02:14:10.830715 | 2016-02-14T11:59:59 | 2016-02-14T11:59:59 | 51,606,676 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 39,654 | py | # 2016.02.14 12:38:27 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/Battle.py
import weakref
import BigWorld
import GUI
import Math
import SoundGroups
import VOIP
import constants
import BattleReplay
import CommandMapping
from ConnectionManager import connectionManager
from account_helpe... | [
"info@webium.sk"
] | info@webium.sk |
752c2a30035856ddab6654f7db9b32d5874bd910 | d90200c658360b455092f9124211b5da8f2caf0d | /6.py | 0fb73f44320ff20d6eb8eaa84ae553f34bb72b1f | [] | no_license | Shreemay/FP | 797abdaeea286718ea9caddc2d1040827a15533d | 783542cdb2aa9a59d997c8e038278f0ab2a14bea | refs/heads/master | 2016-09-09T21:22:40.457124 | 2014-12-10T09:58:49 | 2014-12-10T09:58:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | def low(li):
li = map(fun,li)
print li
def fun(x):
return x.lower()
lst = ['Hello World','abc','NaMo','INDIA','python']
low(lst)
| [
"shreemay1993@gmail.com"
] | shreemay1993@gmail.com |
1faa06888f69e06de3d838ad15e8f59de008c405 | a2f72e29393a2613bf4c869d6618d256d202e57e | /Tpu/GanV2/Tpu_GanV2.py | 6bcc03a5bacb7cf47ebbbb82ac85c9de8f4716cc | [] | no_license | eladshabi/Acgan | 937b7c01bd5c1b64d4228b831cf82d7ed7b8ecd7 | c8073d275db253b306e097d16442d7a7b0f95a67 | refs/heads/master | 2020-04-17T22:55:14.480906 | 2019-02-24T13:00:51 | 2019-02-24T13:00:51 | 167,007,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,889 | py | import numpy as np
import time
from tensorflow.contrib.mixed_precision import FixedLossScaleManager, LossScaleOptimizer
from tensorflow.examples.tutorials.mnist import input_data
from Tpu.GanV2.Generator import Generator
from Tpu.GanV2.Discriminator import Discriminator
from Tpu.GanV2.losses import *
from Tpu.GanV2.dt... | [
"elad.eladsh@gmail.com"
] | elad.eladsh@gmail.com |
8f7d8ba80dc18fa7a18f4b34c9b016bd9aee0260 | 49f73eaf29d3e9427216b44ed519cb8b0b9c6ef4 | /products/models.py | 32473adb2498dbc4f85c0b5f48f06db99a3341bf | [] | no_license | zauribrahimkhalilov-zz/python-django-shoppinlistapp | dc5797d4d49f07d226b90129322442af6e5ca8b4 | ffd1f1cf84e2ab2f57dbd675271fa96a9e278f5c | refs/heads/master | 2021-09-20T18:16:55.112863 | 2018-08-13T17:18:56 | 2018-08-13T17:18:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | from django.db import models
from datetime import datetime
from django.urls import reverse
class Products(models.Model):
name = models.CharField(max_length=200)
created_at = models.DateTimeField(default=datetime.now, blank=True)
def __str__(self):
return self.name
class Meta:
verbose_n... | [
"zibrahimov95@gmail.com"
] | zibrahimov95@gmail.com |
be907c727984cfab702dce79e342cc787711db91 | f121b8c1ace10068da592fe76607f4f2af62728d | /genspirasi/wsgi.py | 1090cd1a995f0c117b5fb60efd5204df423c0010 | [] | no_license | bajjol/websitetest | f8e289a78d7cc2747841678c8a675e83ae8cf6b7 | a6a82001fe687c94bf7a7215566689f610cb77be | refs/heads/master | 2020-04-30T06:48:03.641942 | 2019-03-30T09:31:38 | 2019-03-30T09:31:38 | 176,663,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
WSGI config for genspirasi 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.setdefau... | [
"noreply@github.com"
] | noreply@github.com |
feeedca4690352677357ee4f6a4fd44bdc23359e | 39a1da7d6e302bc22d6dc9053d32c0a8b587b178 | /engine/metrics/tests.py | bf490fecaa927cc4eb0b0780d9bc7ef432c65913 | [] | no_license | jinchuuriki91/whats-the-mosam | f1e3ed8c4e1f2a81e0a776680f3d51060fdbcb64 | 9af79bb2888af227e94877d87f152cb404eae0bf | refs/heads/master | 2020-04-08T00:11:04.115839 | 2018-11-30T11:39:51 | 2018-11-30T11:39:51 | 158,840,857 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | py | # Python imports
import requests
# Django imports
from django.test import TestCase
# Engine imports
from metrics.constants import REGION_INT
class APITestCase(TestCase):
url = "http://localhost:8000/api/v1/metric/"
metric_type = "Rainfall"
location = "England"
def test_post(self):
try:
... | [
"gandhar.pednekar15@gmail.com"
] | gandhar.pednekar15@gmail.com |
e599a060cadc68ae4d18deb51d3ae77921ac74f9 | 11c2e2360666ea02196ff0973ba3340f8f327a17 | /clearlog.py | 7678e00655e1b659083799ca790fca92a7fc3670 | [] | no_license | KingDarkness/clear-old-file | 456a3eeab0e56142320f0ba0fda9cf1d85960cf6 | 50a55684cdd56b39c9e4ce4c2bf61b2447b981a1 | refs/heads/master | 2020-06-03T20:37:13.225193 | 2019-06-13T09:34:54 | 2019-06-13T09:34:54 | 191,722,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import time
from datetime import datetime
import argparse
def clear_directory_older_than(directory, days):
print "Xoá dữ liệu tạo trước %s ngày thư mục %s " % (days, directory)
now = time.time()
cutoff = now - (days * 86400)
files = os.listdir(di... | [
"noreply@github.com"
] | noreply@github.com |
6541bd8abead9b63b701593616ed08cc40c2325a | 2ef60bfe78bdc963da9512b98c763ef65b5f033a | /converter.py | 96d5bd5da44610044d91ddb85087b22844497c91 | [] | no_license | moritzschaefer/back-to-earth | 5c264d16535b1acf0f4a288e5fc749c5096ed248 | 6f641c74c5452197507fbaf170ebcc6625e90805 | refs/heads/master | 2021-01-22T10:07:43.289137 | 2014-10-25T19:03:44 | 2014-10-25T19:03:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | # -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <codecell>
# <codecell>
# <codecell>
import sys
prefix = 'public int[,] level = new int[,]{'
suffix = '};'
f = open ("spaceship.txt" , "r")
tr={'.':'0' , '-':'1' , '#':'2' , 'A':'3' , 'G':'4'}
# <codecell>
# <codecell>
# <codecell>
def translate (line... | [
"senexger@gmail.com"
] | senexger@gmail.com |
7d9b13742e9ffbb7203c8dcddb9174cf144b5264 | 617b88b30b82d422f67f0b474a42586c3bc57279 | /solution.py | 0780b674351b62d58d7639099258852296def536 | [] | no_license | gilbertduenas/hackerrank---itertools.product- | 51835068112279b9b36f4584235c0dc724c16111 | 24ba35d36a1a67bdcb481540d209a97cdf25e304 | refs/heads/master | 2022-11-26T03:00:28.119239 | 2020-08-02T22:46:31 | 2020-08-02T22:46:31 | 284,551,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | # learn to splat
from itertools import product
x = list(map(int, input().split()))
y = list(map(int, input().split()))
print(*product(x, y))
| [
"noreply@github.com"
] | noreply@github.com |
7c121797cad965fbc6295c3de5455d4268684abb | 09f630e6550c067238677879c01724a511d73470 | /awsutils/sqs/queue.py | c5f3696586e2945fed2ed25420cafced6d5eb451 | [
"MIT"
] | permissive | morgothdz/awsutils | 638803c01a986b688cfb1fbc2bc7112e26dfc896 | 3bff36b8c8fb400f6066b4c749ca502e7a04acf7 | refs/heads/master | 2021-01-17T05:51:51.197683 | 2013-02-20T20:54:05 | 2013-02-20T20:54:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,229 | py | # awsutils/sqs/queue.py
# Copyright 2013 Sandor Attila Gerendi (Sanyi)
#
# This module is part of awsutils and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
import time, logging
from awsutils.exceptions.aws import UserInputException
from awsutils.sqs.message import SQSMessage
... | [
"sanyi@fake.com"
] | sanyi@fake.com |
bef9c9db13ccd2fe5d3bc2eaad4f4e2d1b933af0 | 8dfa84f10fbcb9e16ff266675bc6c8c5aad48085 | /uebung3/djangoProject/vorlesung3/wsgi.py | 05b181c233da97525a3524277f0c192c5e1ddf69 | [] | no_license | mharidy/python-WS2021 | 3ce5ea3891fe745498fb003995e74fd15b0b42b2 | 0c0316fd51d2236b2fe5429c21983f13c0632f7d | refs/heads/master | 2023-02-27T04:46:29.625128 | 2021-02-07T08:48:54 | 2021-02-07T08:48:54 | 304,264,579 | 0 | 0 | null | 2021-01-25T03:58:56 | 2020-10-15T08:47:49 | Python | UTF-8 | Python | false | false | 397 | py | """
WSGI config for vorlesung3 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"mohamed.haridy@avy.health"
] | mohamed.haridy@avy.health |
230f3f86dd3cbe8b70cccfa1db296bdc5283e8a1 | dcfdc9822308c21824b27c051f221a971864e637 | /desafio2 aula4.py | 7f2a0e50aa677da8a05c309c580a503e9ab5c6d2 | [] | no_license | renato29/python3-mundo-1 | 04d5f23bcf8e0f5558cd6db129896ce09e14cc6f | a7d92d5b620d56efbcaeced8e00ff4a5fb80ae23 | refs/heads/master | 2020-04-23T05:10:21.013030 | 2019-02-15T21:54:29 | 2019-02-15T21:54:29 | 170,931,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | dia=input(print("digite seu dia de nascimento"))
mes=input(print("digite o mes de nascimento"))
ano=input(print("digite o ano que vc nasceu"))
print('Você nasceu no dia', dia, 'de', mes, 'de', ano, '. Correto?')
wait
| [
"noreply@github.com"
] | noreply@github.com |
f881b852d96988139088e6ec681f7e3666dff200 | 76277abda6d4f5dea18209a2e362a2725c154055 | /bentoml/exceptions.py | 850b95e0289fd86b61c509070e1d143e98090b1b | [
"Apache-2.0"
] | permissive | joychen0103/BentoML | eb77e30d434e05b69e8cb44a6be93b38de537044 | e7d05d5f32adb3cbb90bd165ed2f45871052c192 | refs/heads/master | 2020-08-05T06:12:54.126786 | 2019-10-02T19:23:14 | 2019-10-02T19:23:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | py | # Copyright 2019 Atalaya Tech, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | noreply@github.com |
07573412e81359a8769586309efc67f4597edaa7 | be4fc3aac9d41e52e799cc366376e611fe726f90 | /reading_comprehension/model/base_model.py | a99aeb0dc25f2c9e397569854c5077ed1086596b | [
"Apache-2.0"
] | permissive | Hope247code/reading_comprehension_tf | 235fac5eee98183e021d8c315b8193f4a1a33ba3 | 6cd4ac78c6c93900458ac75c774766b56125891d | refs/heads/master | 2023-06-28T14:50:26.802641 | 2019-07-14T06:30:30 | 2019-07-14T06:30:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,095 | py | import collections
import os.path
import numpy as np
import tensorflow as tf
from util.default_util import *
from util.reading_comprehension_util import *
from util.layer_util import *
__all__ = ["TrainResult", "InferResult", "BaseModel"]
class TrainResult(collections.namedtuple("TrainResult",
("loss", "learnin... | [
"mizheng@microsoft.com"
] | mizheng@microsoft.com |
9bbf035b5e759603277ab311b08da9172cf22559 | cd40fd66338bab16c3cac360ec68d0410daf85dc | /asyncio_study/event_loop/utils.py | 039087d9261d78679ca8a895731fe964988d7754 | [] | no_license | suhjohn/Asyncio-Study | c74a95c37d6ce1d0983b5626a4f68d2b80d7ec79 | d9c5a092924a32f18849787fd30cb322a0ff8b15 | refs/heads/master | 2021-05-12T12:28:15.749447 | 2018-01-14T17:25:22 | 2018-01-14T17:25:22 | 117,414,697 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | from functools import wraps
from time import time
def log_execution_time(func):
"""
Decorator function that prints how long it took to execute the function
:param func:
:return:
"""
@wraps(func)
def wrapper(*args, **kwargs):
start = time()
return_value = func(*args, **kwarg... | [
"johnsuh94@gmail.com"
] | johnsuh94@gmail.com |
0ba626c1cb0e67582804291760036684180e9aac | 3faeae950e361eb818830ad210f30a6232e5d7f1 | /wepppy/_scripts/lt_runs_low.py | efdeb5b5aecc5bf4b8561c6458f160bf05309335 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | rogerlew/wepppy | 401e6cee524073209a4445c680b43ea0c6102dfc | 1af4548d725b918b73ee022f2572a63b5194cce0 | refs/heads/master | 2023-07-21T12:56:26.979112 | 2023-07-13T23:26:22 | 2023-07-13T23:26:22 | 125,935,882 | 10 | 6 | NOASSERTION | 2023-03-07T20:42:52 | 2018-03-20T00:01:27 | HTML | UTF-8 | Python | false | false | 46,439 | py |
import os
import shutil
from os.path import exists as _exists
from pprint import pprint
from time import time
from time import sleep
import wepppy
from wepppy.nodb import *
from os.path import join as _join
from wepppy.wepp.out import TotalWatSed
from wepppy.export import arc_export
from osgeo import gdal, osr
gdal.... | [
"rogerlew@gmail.com"
] | rogerlew@gmail.com |
19c02720487d050d98b087fa4a3eff70b39034f9 | 9c2d4ca98df937fcaa8879e44ef1f3e5fe93876b | /SciGen/__init__.py | 3de4372d820f1f2d98f6b622bbdcc3d25459c300 | [
"MIT"
] | permissive | SamuelSchmidgall/Machine-Learning-from-Scratch | 500b80b1cd4944df2b75c9feb15e220064ae2a1b | d030b71ab87a034f9d59c5a53f501e96411dc0b2 | refs/heads/master | 2021-06-22T15:50:13.457129 | 2021-01-02T23:19:36 | 2021-01-02T23:19:36 | 132,190,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | #!/usr/bin/env python
__name__ = "SciGen"
__author__ = "Samuel Schmidgall"
__license__ = "MIT"
__email__ = "sschmidg@masonlive.gmu.edu"
| [
"AbstractMobius@gmail.com"
] | AbstractMobius@gmail.com |
c1a6112f2cab90786e3b5cd0ded693d7946074e3 | 14ac1cd2a1e1d5366ef06e26fadc3d34ff5d5fad | /apps/news/forms.py | 3c43fc6e77f7b85acd06118b3639b0741797dfa8 | [] | no_license | wangdawei0515/django_project | 1c5b2384eaab112cf65da032ed3d5fccd7e27c70 | 7834237a8c19b4b854e8450e2d64458a17584d36 | refs/heads/master | 2020-03-24T02:50:46.708396 | 2018-07-29T14:31:21 | 2018-07-29T14:31:21 | 140,164,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | #encoding: utf-8
from django import forms
from apps.forms import FormMixin
class AddCommentForm(forms.Form,FormMixin):
# 在表单中,CharField和TextField唯一的区别
# 就是在表单渲染成模板的时候会有区别。
# CharField会被渲染成Input标签
# TextField会被渲染成Textarea
content = forms.CharField()
news_id = forms.IntegerField() | [
"wangdawei_@outlook.com"
] | wangdawei_@outlook.com |
44931ba564f7deaf02d0a94267264fb6b8edf874 | 87f4634d4a5a3287871765f77cabd2dcc37284a3 | /setup.py | 7c0f5314842f8a754ee3727381e78c8e3a2a20d6 | [] | no_license | yangyushi/yaggie | 2792a8ca61b4093ff2d80c5493f9f6d9e47ddc50 | 1cb928a014e8393e5852d20a4b8df76f9206f28b | refs/heads/master | 2021-03-24T13:19:37.060445 | 2019-08-28T13:37:07 | 2019-08-28T13:37:07 | 117,542,208 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | from distutils.core import setup
setup(name='yaggie',
version='0.1',
packages=['yaggie',
'yaggie.engine',
'yaggie.engine.colloids',
'yaggie.engine.mytrack'],
py_modules=['yaggie.analysis',
'yaggie.render',
'yaggie.uti... | [
"yangyushi1992@icloud.com"
] | yangyushi1992@icloud.com |
8f95dcb9c22025b63932cb30e24ae18203a9dc38 | ce48d74eb28ec153573cd42fe58d39adc784c85c | /jdcloud_sdk/services/xdata/models/DwDatabaseInfo.py | bedf36eee3a80637f1aaf4c87b6493744b5f6c2c | [
"Apache-2.0"
] | permissive | oulinbao/jdcloud-sdk-python | 4c886cb5b851707d98232ca9d76a85d54c8ff8a8 | 660e48ec3bc8125da1dbd576f7868ea61ea21c1d | refs/heads/master | 2020-03-16T22:22:15.922184 | 2018-05-11T10:45:34 | 2018-05-11T10:45:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | # coding=utf8
# Copyright 2018-2025 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http:#www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | [
"oulinbao@jd.com"
] | oulinbao@jd.com |
087c70a2155e879d896447289bfc2e295a84c7fb | 585f3bd3b846512b058ae1e48a29afc8ab11eae3 | /Week2P3/Week2P3(with wabble).py | f0b25e4e4aab74e8d9841ce8ddda0168ac5f4054 | [] | no_license | johntraben/ENG209-CR | 05bb1584ecbbb0eb8db0359967a60dd1fd9832f8 | d927d264fbe24b86c6a5e11d0affdba412530e4d | refs/heads/main | 2022-12-31T23:53:18.695963 | 2020-10-29T19:33:42 | 2020-10-29T19:33:42 | 306,501,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,184 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 20 17:42:44 2020
MDP problem
@author: fishy
"""
class MDP(object):
def __init__(self,Xmax,Vmax,Pw):
self.Xmax = Xmax
self.Vmax = Vmax
self.Pw = Pw
def startState(self):
return [self.X0,self.V0]
de... | [
"noreply@github.com"
] | noreply@github.com |
be63af58864e0d9a3c0117f2cb0652068ab7729d | 7fdef65f58dbe5ce5a0a660e3f7db9a7a215c17e | /ldif/torch/sif_test.py | 0c4f6be9a869f522ade976a6eb9591dab6439862 | [
"Apache-2.0"
] | permissive | hpp340/ldif | e7c73fbc6b6bcbded6192418eff1a5e5b88b545e | ed5bcaa10bf1614f148b94d6b9bdad248b8ccf48 | refs/heads/master | 2022-11-27T19:44:47.923034 | 2020-08-08T01:08:21 | 2020-08-08T01:08:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,814 | py | # 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"kgenova@princeton.edu"
] | kgenova@princeton.edu |
7b758e318532e9262ef0816f41982476f0035b5c | 265a903707573862c5f786dff014c276d2560407 | /exercise54.py | 16c0b6cc017a726cbfbcb2308293522706142d34 | [] | no_license | kailichama/dev-sprint1 | 877a4855dfee8c2eb65e97a859b5139cbef42e7f | 56086d8b96ca44f4bd254b13dc4543e05fd83d4d | refs/heads/master | 2021-01-15T21:43:56.323504 | 2013-05-01T15:54:24 | 2013-05-01T15:54:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | # This is where Exercise 5.4 goes
# Name: Kelly Chiang
def is_triangle(a, b, c):
if a + b < c:
print "no"
if a + c < b:
print "no"
if b + c < a:
print "no"
else:
print "yes"
is_triangle(29, 11, 12)
is_triangle(10, 11, 12)
| [
"chiang.kellymimi@gmail.com"
] | chiang.kellymimi@gmail.com |
75af3c206ddd4f8e25574cabd71067f19214176c | 4170ed62059b6898cc8914e7f23744234fc2f637 | /CD zum Buch "Einstieg in Python"/Programmbeispiele/GUI/gui_check.py | 5f2ffb98025c0f74ac7ab1c38d5a0295e3aeec43 | [] | no_license | Kirchenprogrammierer/Cheats | 9633debd31ab1df78dc639d1aef90d3ac4c1f069 | 0b71c150f48ad1f16d7b47a8532b1f94d26e148e | refs/heads/master | 2021-05-08T10:42:39.927811 | 2018-02-01T17:29:11 | 2018-02-01T17:29:11 | 119,858,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | import tkinter
def ende():
main.destroy()
def anzeigen():
lb["text"] = "Zimmer " + du.get() + " " + mb.get()
main = tkinter.Tk()
# Anzeigelabel
lb = tkinter.Label(main, text = "Zimmer ", width=40)
lb.pack()
# Widget-Variablen
du = tkinter.StringVar()
du.set("ohne Dusche")
mb = tkinter.Stri... | [
"noreply@github.com"
] | noreply@github.com |
d932abbee00bae52a08077fa165348144d5dab19 | 92bce619c4fccc60601ab613b6b87e6eb336c9c8 | /Python/contrast.py | 323b30409248e5a0fb4249d55212c7f3551ab1c2 | [] | no_license | nealbayya/Dehaze | 152373f6b44a099bb4dadb5259050fe96f16af28 | a13ae01a26864e4b944154f2177b1604a644bdba | refs/heads/master | 2020-06-18T11:25:07.677255 | 2019-07-10T22:45:57 | 2019-07-10T22:45:57 | 196,284,750 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | import numpy as np
import cv2 as cv
img = cv.imread('rocks0.jpg', 1)
#img = cv.blur(input, (3, 3))
print(img.shape)
nimg = np.zeros((img.shape[0], img.shape[1], 3))
T = 20
a = 7
b = 7
h, w, d = img.shape
for i in range(h):
for j in range(w):
avg = np.mean(img[max(0, i-a):min(h, i+a), max(0, j-b):min(w, j+... | [
"gtangg12@gmail.com"
] | gtangg12@gmail.com |
37142c60c2f8e5880e54185a549c7cc27bbc1105 | 34fe072f9dc15728f3d8be00a1654499bfbc9c5b | /check_json | ebc96db0236ce43d641bb148fb12e75b9d664e78 | [] | no_license | mmaschenk/docker-nagios-full | 13b5c28cb5a44d8b69c9f86516549251d5626121 | 5f8d8ea54132ebd2cd49ec6ff1255f924694d820 | refs/heads/master | 2023-01-05T11:19:46.511130 | 2020-11-06T14:15:39 | 2020-11-06T14:15:39 | 309,425,110 | 0 | 0 | null | 2020-11-06T14:15:41 | 2020-11-02T16:13:42 | Shell | UTF-8 | Python | false | false | 2,265 | #! /usr/bin/env python
"""
Nagios plugin to check a value returned from a uri in json format.
Copyright (c) 2009 Peter Kropf. All rights reserved.
Example:
Compare the "hostname" field in the json structure returned from
http://store.example.com/hostname.py against a known value.
./check_json hostname buenosai... | [
"m.m.a.schenk@tudelft.nl"
] | m.m.a.schenk@tudelft.nl | |
8db3d4c9d758b5bd397cc8c7c6ed56d2302b981f | d415f387170b564eccc0c01b386c4eff4b709066 | /CalculadoraSimples.py | efb956605969cea22f4c993dd562202bc678f1a9 | [] | no_license | alessandradiamantino/Estudo | ae53130909d9339bac08948b6bfea9637942e9c0 | b3fff6aeeae0e7dbb824593f655d2d87f79c1bfb | refs/heads/master | 2022-12-19T15:00:21.259636 | 2020-09-14T21:54:24 | 2020-09-14T21:54:24 | 295,545,117 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | print("1 - soma\n")
print("2 - subtração\n")
print("3 - multiplicação\n")
print("4 - divisão\n\n")
c = int(input(" "))
import os
os.system('clear') or None
a = int(input("Digite o primeiro numero\n"))
b = int(input("Digite o segundo numero\n\n"))
if c == 1:
print(a + b)
elif c == 2:
print(a ... | [
"noreply@github.com"
] | noreply@github.com |
0c0edac82221a10cdd16bca3b52020df36b734b2 | c8dea2ed440fd3f937d96a468ec4e5f1f4fd9de4 | /Part Seven/Exp1.py | 02fc04a3cdf3ebc560b99cf80d88e84448da205f | [] | no_license | chnlmy/python | 1def0414d46f447af61219830598cb26fda7dcab | b1981de93dc8a69c4b93eea782412d4415842121 | refs/heads/master | 2023-06-20T02:20:41.760800 | 2020-11-20T08:00:16 | 2020-11-20T08:00:16 | 293,464,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | linenum = 0
file = open("/Users/liumingyi/github/python/Part Seven/latex.log", 'r')
for line in file.readlines():
if len(line) == 1:
continue
else:
linenum = linenum + 1
file.close()
print("共{:}行".format(linenum)) | [
"chnlmy@gmail.com"
] | chnlmy@gmail.com |
5e190cb9273f15764a6e53b5d5f884e17dd9e3b8 | 9a995cd9312fd343ce9ba44f2d091ff791f76236 | /Solver.py | ffab89eaa321a935688e561d554cad1d62b1a929 | [] | no_license | sytan98/Sudoku-Generator-Solver | 8da9d012b9a3b9e8938b150e1e5bfce66121e7ef | 9472355799ab13f17b5cbe3d47afb6cf8c5c9381 | refs/heads/master | 2021-05-17T13:07:21.107194 | 2020-03-31T06:00:11 | 2020-03-31T06:00:11 | 250,791,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | def backtrack(sudokuobj):
#base cases
if sudokuobj.check_grid():
print("solved")
return True
#horizontal wise needs to be unique
for idx, i in enumerate(sudokuobj.flatlist):
if i == 0:
for j in range(1,10):
row = idx//9
column = idx%9
... | [
"tan.siyu@dhs.sg"
] | tan.siyu@dhs.sg |
119b52b10b3fa591bba1e1f716e73d8db86a9d0b | 41c0f6d4dac27558138924c3122a3ca790fd2dea | /set1/test_challenge7.py | 409b4bdb27ad783df6f03ff6da8f3d5d47823b51 | [] | no_license | kevinmel2000/cryptopals | 541f1b20e21461586fe45a8467cdd5fd9cdc828e | 0756cd5d2152425b085e81043e3474d6fbb4f0a2 | refs/heads/master | 2020-03-26T21:01:39.744070 | 2016-06-07T09:54:48 | 2016-06-07T09:54:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | '''
Challenge 7:
AES in ECB mode
'''
from set1.challenge7 import *
import unittest
class Challenge7TestCase(unittest.TestCase):
def test_aes_ecb_decrypt(self):
from base64 import b64decode
ciphertext = b64decode(file('data/data_7.txt').read().replace('\n', ''))
key = "YELLOW SUBMARINE"
... | [
"muhammad.abrari@gmail.com"
] | muhammad.abrari@gmail.com |
1ac0b215a67ef3e113fd1ccf8e1ac0319a3d6200 | d3e299214d97149bcb2e10393e9c9ec1a63497b7 | /Barnet.py | 7d5f07b0a02e734a9779596a67c18194d1170985 | [] | no_license | M00-M00/BoroughScrape | 68bd9a5729bfaab96a66c89fe9fdee0cf2066c36 | 36f1ff82547bd9afc56d09e6b9adbee55f7af3e7 | refs/heads/master | 2023-05-12T03:02:32.275844 | 2021-06-08T11:25:05 | 2021-06-08T11:25:05 | 291,691,221 | 0 | 0 | null | 2020-09-01T19:02:59 | 2020-08-31T11:01:24 | Python | UTF-8 | Python | false | false | 507 | py | import requests
from bs4 import BeautifulSoup as bs
import csv
from Scraper2 import Scraper
import json
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-S', '--Start_Data', help='delimited list input', type=str)
parser.add_argument('-E', '--End_Data', type=str)
args = parser.parse_args()
a = ... | [
"edimchenko@gmail.com"
] | edimchenko@gmail.com |
a414e93bf6a93d7ea9d9d9fafad47934f70567b8 | 271c7959a39f3d7ff63dddf285004fd5badee4d9 | /venv/Lib/site-packages/ncclient/devices/h3c.py | 17e98b5a38712d3469fac56fcd86aaac22fcbffa | [
"MIT"
] | permissive | natemellendorf/configpy | b6b01ea4db1f2b9109fd4ddb860e9977316ed964 | 750da5eaef33cede9f3ef532453d63e507f34a2c | refs/heads/master | 2022-12-11T05:22:54.289720 | 2019-07-22T05:26:09 | 2019-07-22T05:26:09 | 176,197,442 | 4 | 1 | MIT | 2022-12-08T02:48:51 | 2019-03-18T03:24:12 | Python | UTF-8 | Python | false | false | 1,936 | py | """
Handler for Huawei device specific information.
Note that for proper import, the classname has to be:
"<Devicename>DeviceHandler"
...where <Devicename> is something like "Default", "Huawei", etc.
All device-specific handlers derive from the DefaultDeviceHandler, which implements the
generic information need... | [
"nate.mellendorf@gmail.com"
] | nate.mellendorf@gmail.com |
4465a47f36c248e586fd89f8135164aa44745ffb | a2c5591e2c3f362d1cf1cdea0cac492330c43bad | /printre.py | 14241c616e1dd6bcf9a7964c655f43a342de354e | [] | no_license | sowmiyavelu17/geet | 7b62c975e49f2f7c199882de3db33e71f060b1c4 | 9f6aaf35712d6da980d8428af8401b8188bae703 | refs/heads/master | 2020-07-02T04:50:26.525866 | 2019-08-09T10:53:06 | 2019-08-09T10:53:06 | 201,420,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | counter = test_str.count('e')
print ("Count of e in GeeksforGeeks is : "+ str(counter))
| [
"noreply@github.com"
] | noreply@github.com |
d2ef8b0ff9076684e5a93e502c80273ff56384c2 | c5fe83f61f96a5997a46799005f87a7eb2e75582 | /versione_senza_encoder/system_conf.py | 07e169c398fc69eacd05a4f37afd66fcda8780a0 | [] | no_license | Elena-Umili/RL-Planning-Robots | 0d4c7e43b4b721ce2378a0ecf81c311707a390b0 | 523ac1da5bd7e03048c35053436729be9e92455c | refs/heads/master | 2023-04-06T16:28:45.537739 | 2021-04-01T09:23:11 | 2021-04-01T09:23:11 | 329,588,877 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py |
##################### ACROBOT
STATE_SIZE = 3
INPUT_SIZE = STATE_SIZE
ACTION_SIZE = 3
CODE_SIZE = 200
DISCRETE_CODES = False
REW_THRE = 2000
WINDOW = 20
MODELS_DIR = "models/acrobot/"
Q_HIDDEN_NODES = 256
BATCH_SIZE = 64
MARGIN = 1 / CODE_SIZE
PREDICT_CERTAINTY = False
| [
"ema.antonioni@gmail.com"
] | ema.antonioni@gmail.com |
124795f3a26f9782d34d258bac83edde79ca6dab | 76c70ae75cef1ec0e97859e52fbae406d9e6c9db | /ESOP/settings.py | 447a2e66883792a24e7eefd677acc81a9368ab06 | [] | no_license | Abhinavjha07/ESOP | 57ff9eca47baff8bd74d73c29dcd9f7d8a1f6ef7 | 1894c07dee0a6abb8570e35037858cebf87eeaef | refs/heads/master | 2022-12-11T01:23:32.176067 | 2020-01-21T05:41:36 | 2020-01-21T05:41:36 | 182,563,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,248 | py | """
Django settings for ESOP project.
Generated by 'django-admin startproject' using Django 2.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
imp... | [
"jhaabhinav1998@gmail.com"
] | jhaabhinav1998@gmail.com |
ef84877ff5bc598bf1ca12ec0dd579f441b351b3 | 328a69af8c40cad52274edfda118cc8d3926e74f | /tests/conftest.py | 8784801df4b408468d64b1f8422f4cdce7b0f508 | [
"MIT"
] | permissive | hydrogen602/settlersPy | 49c1ed6b41660606bdab7e6c24889ab72fa56c97 | 5a1df6162d35b6ae9eeefd11c9a0a9ba7a19019c | refs/heads/master | 2022-12-01T23:46:17.633117 | 2020-08-15T14:57:17 | 2020-08-15T14:57:17 | 247,985,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,224 | py | # content of conftest.py
# https://docs.pytest.org/en/latest/example/simple.html
from typing import Dict, Tuple
import pytest
# store history of failures per test class name and per index in parametrize (if parametrize used)
_test_failed_incremental: Dict[str, Dict[Tuple[int, ...], str]] = {}
def pytest_runtest_ma... | [
"32135041+hydrogen602@users.noreply.github.com"
] | 32135041+hydrogen602@users.noreply.github.com |
d780ebeb1d6e59ceaf5520b60be0ebd357fe4938 | 970f3b8a80cb941cb72e7ebfbf2199ac75b0f5dc | /app.py | b6a6f937b53946f9fe75aeefee64ade6e5d46ce1 | [] | no_license | vincenth520/tusou-python | 22c4f00681bf3aed1154dc4e1268c1312a5a567c | c4ab8eedbfa01b3a8b7c83c2b6cc7e3d76085ffd | refs/heads/master | 2021-01-19T13:15:27.640132 | 2017-08-20T04:07:18 | 2017-08-20T04:07:18 | 100,837,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,062 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2016-04-07 16:46:00
# @Author : Vincent H (1091986039@qq.com)
# @Link : http://luvial.cn
# @Version : $Id$
import os,random,json,threading,zipfile,base64,urllib.parse
from flask import Flask
from flask import request,redirect,url_for,send_from_directory,ma... | [
"1091986039@qq.com"
] | 1091986039@qq.com |
0021af907a58a0843f7c18e83c58a1abb80bf758 | 83a765b6cfc99b65b4fb317d55f34ce426996fd7 | /chp4/bot_v_bot.py | 57651c8678c57d719f5c834f4f2e6b10172fd325 | [] | no_license | Guyuena/dlgo-deep-learning-and-chess | c9e67ee5ad1675a029fee06cafd64d3cd7ead14f | b051c46d1dda74587000cb228357b175d72f3ee2 | refs/heads/main | 2023-06-09T15:11:03.125581 | 2021-07-02T02:37:43 | 2021-07-02T02:37:43 | 378,629,721 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | from __future__ import print_function
# tag::bot_vs_bot[]
from dlgo.agent.navie import RandomBot
from dlgo import goboard as goboard
from dlgo import gotypes
from dlgo.utils import print_board, print_move
import time
"""":argument
机器自对弈脚本
"""
def main():
board_size = 9
game = goboard.GameState.new_game(b... | [
"428106418@qq.com"
] | 428106418@qq.com |
71d2dd398ee838fa80d1528cb2d96542fb693907 | 1c596a3d21b0346a46751cbe89cb15cb3cd1177f | /Session1/hw_3.py | 0f37040195171df07055acaca280fa3dac097672 | [] | no_license | minhphuong1804/truongminhphuong-fundamentals-c4e25 | e4449687dd0d6c8484d87100186e1fddf1b877cf | ec630be8ce531308667aa84f35148d11d1d10766 | refs/heads/master | 2020-04-17T07:44:15.647436 | 2019-01-18T12:21:03 | 2019-01-18T12:21:03 | 166,381,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | n = int(input("Enter the temperature in Celcius?"))
r = float(n)
degree = (r*9/5) + 32
print(n, "(C)", "=", degree, "(F)") | [
"minhphuongtruong1804@gmail.com"
] | minhphuongtruong1804@gmail.com |
165f0ac619c8d4cf21a08ce53f6979e0046631a8 | cb42eef9aba4fc1a0dc808aae00e73cd5b44d7c0 | /webapp/urls.py | d551ca7b6274835ff783a112707d1685d2c7fcf0 | [] | no_license | xintao222/talkcode | 9ad997533699698933a3339e2c644be3d827942f | 28533b00036b6c0931f44aa63988679f601db502 | refs/heads/master | 2021-01-22T00:19:32.823257 | 2011-03-23T22:59:08 | 2011-03-23T22:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | from django.conf import settings
from django.conf.urls.defaults import *
from django.contrib.auth.views import login, logout
from django.views.generic.simple import direct_to_template
from talkcode.views import register, index
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r... | [
"disbeat@gmail.com"
] | disbeat@gmail.com |
daa0b55e0254d92e20fabdcca8849457341bf5a5 | c4422e4e0a5ddf0f3f56d47bb898d5aeff400c79 | /miprint.py | 5db1f8985609d47de4d9269ecbfad52a9741dbea | [] | no_license | Antoniorg-12/Curso2021 | e4bda0e2e7c23427529512f6afbe13a1f5df4a9d | 9e68e0b229ddb2eed1e8ea340c7c3c079a94a7a1 | refs/heads/main | 2023-03-09T05:09:33.483630 | 2021-02-27T12:44:52 | 2021-02-27T12:44:52 | 342,662,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | def hola_mundo():
print("hola desde un modulo")
| [
"antoniorg.uma@gmail.com"
] | antoniorg.uma@gmail.com |
68333b91ab1080bd3102141d3e24622cadc72097 | 858dfa9bcec66eae9fe4a4008b5c7bf575767efc | /src/metrics/divergences.py | 4e0daefa0d69fffab72750702533ffb2b4bea987 | [] | no_license | Danial-Alh/TextGenerationEvaluator | 766f06f687d8ad5f4e5060aca99425f9cc6820ae | fbad8e35859d9252cd22a8cb04bc42304c2560dd | refs/heads/master | 2023-06-24T02:43:58.398691 | 2020-08-20T19:55:18 | 2020-08-20T19:55:18 | 160,636,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | py | # from scipy.special import logsumexp
import numpy as np
from scipy.misc import logsumexp
def logmeanexp(inp):
# log(mean(exp(x)))
l = inp.shape[0]
assert inp.shape == (l,)
return logsumexp(inp - np.log(l))
def log1pexp(inp):
# log(1 + exp(x))
return np.logaddexp(0., inp)
def lndiff(nllp_f... | [
"danial.alihosseini@gmail.com"
] | danial.alihosseini@gmail.com |
b6e77796d885e1ff2b153035ca5ccf756ae11b66 | c506e2707708f6b1d1c8b6a4761b3952cdf33c12 | /backend/www/test/upload_contacts_test.py | 1abc56c42b13ef091d47cfb8ba1b890375b3c5f1 | [
"Apache-2.0"
] | permissive | xuantan/viewfinder | 69e17d50228dd34fa34d79eea1c841cc80a869ff | 992209086d01be0ef6506f325cf89b84d374f969 | refs/heads/master | 2021-08-26T00:58:18.180445 | 2021-08-10T03:06:48 | 2021-08-10T03:06:48 | 19,481,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,824 | py | # Copyright 2013 Viewfinder Inc. All Rights Reserved.
"""Test upload_contacts service method.
"""
__authors__ = ['mike@emailscrubbed.com (Mike Purtell)']
import json
import mock
from copy import deepcopy
from viewfinder.backend.base import util
from viewfinder.backend.www.test import service_base_test
from viewfind... | [
"bdarnell@squareup.com"
] | bdarnell@squareup.com |
6ef0f3542476b9b7cd97d7170c181e4a05c7decb | 000ed48cae44f7191dba018d7fdd3aa2b1317cb2 | /compute/K_clean.py | 8ef724d292c30db2bab3ab97d99e36cf02b5159e | [] | no_license | Jinzewang/cqHouseAnalyze | 7d80c0ed99cd5e1e0eafa047f7b97265250287f3 | d177af6facb6a35bee28a52bd8cb2d420b5edf4d | refs/heads/master | 2023-07-17T07:00:19.410059 | 2021-09-01T08:59:18 | 2021-09-01T08:59:18 | 404,224,430 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,312 | py | import pandas as pd
import numpy as np
import pymysql
conn = pymysql.connect(host='10.20.220.203', user='root', passwd='sx2626', port=3306, db='python', charset='utf8')
cursot = conn.cursor()
# 重庆各区二手房装修情况与单价间关系
cursot.execute("select count(a),sum(UnitPrice),area,Decoration from data_K GROUP BY area,Decoration;")
data... | [
"1348754914@qq.com"
] | 1348754914@qq.com |
37359538a19f04c13b9e9e200eef0fa7be950791 | fd451cb1a829c72ea51a93168eba81a475f983a1 | /python/class2.py | d6084276f55b907ea10df3e39e7c64d63f4e80e6 | [] | no_license | shapigou123/Programming | e9fd63f509fb2b45ba9792b13092da6aa8abe935 | 64215eb0f333b583690e32cd9fcce02236713603 | refs/heads/master | 2021-06-26T02:33:56.623872 | 2017-09-07T07:12:11 | 2017-09-07T07:12:11 | 94,725,535 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,988 | py | #coding=utf-8
'''
class Person(object):
def __init__(self, name, gender):
self.name = name
self.gender = gender
class Student(Person):
def __init__(self, name, gender, score):
super(Student, self).__init__(name, gender)
self.score = score
def __str__(self):
retur... | [
"563594467@qq.com"
] | 563594467@qq.com |
2ab3fb3795eb30b0dc859566175874912f1f9e7b | c34559f130c5c9eaa8027f768bfe90ef9521a271 | /tests/supportkit_tests.py | aab82ca0f44998d95e9cc722b8464bbe3b8d230d | [] | no_license | lemieux/supportkit-python | 2675408de6ab7fa79136cf4c63f6d9453cc8120e | 7b4b3d29e6a51a3d1a4be64d03811329f5ab505f | refs/heads/master | 2021-01-10T08:39:44.440765 | 2015-10-07T21:19:53 | 2015-10-07T21:19:53 | 43,841,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py |
from nose.tools import *
import supportkit
def setup():
print "SETUP!"
def teardown():
print "TEAR DOWN!"
def test_basic():
print "I RAN!"
| [
"marc@marcantoinelemieux.com"
] | marc@marcantoinelemieux.com |
f0d53247787de483a8157978732687647973de62 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/cirq_new/cirq_program/startCirq_Class651.py | dd0dd8db9096c5bbae3a183ddb1975f869ce8a2d | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,289 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=24
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
def make_circuit(n: int, input_qubit):
c = cirq.Ci... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
f1a703e8a9a0d640da215f4b818d4aa7dc419291 | a424323a34a2fc5700d690829752d3e30032a1e6 | /routelanta/swagger_client/api/running_races_api.py | 36fb88060b123482bbc68d58707be9943f0ffc92 | [] | no_license | jackrager/jackrager.github.io | 884747803fa44063372efdbf46e36e979474d2fe | 50b9b62ca7a7fae6744796c1aa032f16cfad5898 | refs/heads/master | 2023-03-09T22:08:53.059755 | 2023-02-20T22:30:23 | 2023-02-20T22:30:23 | 228,740,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,501 | py | # coding: utf-8
"""
Strava API v3
The [Swagger Playground](https://developers.strava.com/playground) is the easiest way to familiarize yourself with the Strava API by submitting HTTP requests and observing the responses before you write any client code. It will show what a response will look like with differe... | [
"noreply@github.com"
] | noreply@github.com |
33280c23ce326b75e21f7c1e6b655ba9c1896cde | 9680ba23fd13b4bc0fc3ce0c9f02bb88c6da73e4 | /Bernd Klein (520) ile Python/p_20404a.py | bc54c21d16cad7c304cceedabad9a88e4a32d34d | [] | no_license | mnihatyavas/Python-uygulamalar | 694091545a24f50a40a2ef63a3d96354a57c8859 | 688e0dbde24b5605e045c8ec2a9c772ab5f0f244 | refs/heads/master | 2020-08-23T19:12:42.897039 | 2020-04-24T22:45:22 | 2020-04-24T22:45:22 | 216,670,169 | 0 | 0 | null | null | null | null | ISO-8859-9 | Python | false | false | 683 | py | # coding:iso-8859-9 Türkçe
# p_20404a.py: İnternet ip adresleriyle iletişim kontrolü örneği.
import os, re # threading/ipsiz kontrol...
alınanPaketler = re.compile (r"(\d) alındı")
durum = ("cevapsız", "canlı fakat kayıp", "canlı")
for sonek in range (20,30):
ip = "192.168.178." + str (sonek)
kontrol... | [
"noreply@github.com"
] | noreply@github.com |
d26b48204806352ba4722be9cf5fc9324a9c0d14 | 54a0b86d4c3f731487ad4470fb365907970472e6 | /P1/studentparameters/Project1_Parameters_ad.py | abd32ecc8b79a7a3387eba925bcaeff4e5091637 | [] | no_license | samiurrahman98/ece458-computer-security | 26aa46e174b0bf77f748e6451dd2e0e4183feebd | cf79430b98e3679ffcd687a0c96b5e979187e1e3 | refs/heads/master | 2022-11-25T01:26:36.874094 | 2020-07-31T21:24:53 | 2020-07-31T21:24:53 | 280,979,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,771 | py | # Select the file name that matches your first two letters of your last name on Learn
# Read those parameters as your ECE458 project 1 parameters
# p,q,g are DSA domain parameters, sk_i (secret keys) are used in each signature and verification
p=16158504202402426253991131950366800551482053399193655122805051657629706040... | [
"S72RAHMA@uwaterloo.ca"
] | S72RAHMA@uwaterloo.ca |
6127db8c4201697208fcbd427c8f2ff605b318ec | ea9aa0e93a7f264511ef10b5ccb90f65d958900f | /3rd_practice/blog/models.py | c0eca233fb31aebd733abc8ef197a867e51945e6 | [] | no_license | wayhome25/django_travel_blog_2 | 01cf4591e0aa69fb5a3144e0739bd43ce4bebc9c | 13e5d7ad2851febafb9a57e1fc93bb29c916c4c7 | refs/heads/master | 2020-06-01T08:58:24.492163 | 2017-08-26T13:19:45 | 2017-08-26T15:04:18 | 94,069,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | from django.core.urlresolvers import reverse
from django.conf import settings
from django.db import models
class Post(models.Model):
title = models.CharField(max_length=100)
content = models.TextField()
photo = models.ImageField()
is_public = models.BooleanField(default=False)
created_at = models.D... | [
"siwabada@gmail.com"
] | siwabada@gmail.com |
156c46403266268d942b197c55ec383227d63858 | 290d6fd35fd5433ef03bfcc1ec14108a1e8e10ed | /unittest1_task_perf.py | ed6c3d3fbd2180982107da0bcf232d07b551b8e8 | [] | no_license | PlumpMath/pyos | 3103e2c878f579aa10c32f8a3c3430b4d11de209 | c5b6e3fdb8e4d4615a5d098130a6e34c92217c65 | refs/heads/master | 2021-01-20T09:54:24.953803 | 2014-01-29T10:42:58 | 2014-01-29T10:42:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,899 | py | #!/usr/bin/python2
# Perf and Unit tests
#
# Test what happens with large numbers of tasks
# Simon Ryan 2014
from pyos9 import *
import sys,random,time,threading
mode = sys.argv[1:2] and sys.argv[1] or None
num = sys.argv[2:3] and sys.argv[2] or None
if not (mode and num):
print('usage: %s [pyos|threads] numberof... | [
"simon@smartblackbox.com"
] | simon@smartblackbox.com |
1ca2692d8354900cb36bdd5e40c951da55534123 | 3b562b977e337d09aa97a6b1289f2b3338aa9a68 | /extras.py | d45e205c5841b876f3e76a53542af8a4213e84ca | [] | no_license | Kolimar/AdivinaPalabra | 0bad2a957da1aa9f2443215f892dad52a93709f7 | 769741d6a183e7981c8b262def75138ba02a45e0 | refs/heads/master | 2020-04-25T08:16:33.521653 | 2019-02-26T05:26:14 | 2019-02-26T05:26:14 | 172,641,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,025 | py | import pygame
from pygame.locals import *
from configuracion import *
def ShowDireccion(direccion):
if direccion == [-1,-1]:
return "Abajo - izquierda"
if direccion == [-1,0]:
return "Abajo"
if direccion == [-1,1]:
return "Abajo - derecha"
if direccion == [0,-1]:
... | [
"noreply@github.com"
] | noreply@github.com |
fd6a2813514485429915c41e2b4f71e9b6aaa8a9 | e5217df72e21f2fe75bccd0fdd914432b6cce68e | /ds18b20_2.py | 18e103335f5f05cfeef2150c3c1a800510c5d664 | [] | no_license | tarjanyij/Python | 02411272758eb21be63a4bad07b3fce666718e08 | f3f4dbd961497001a88af00ffc9cb86772237da8 | refs/heads/main | 2023-04-03T20:10:09.577825 | 2021-04-08T19:37:20 | 2021-04-08T19:37:20 | 304,701,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | import os
import sys
from time import sleep
from w1thermsensor import W1ThermSensor
def ds18b20_read_sensor():
data ={}
for sensor in W1ThermSensor.get_available_sensors():
#print("sor: %s Sensor %s has temperature %.2f" % (i,sensor.id, sensor.get_temperature()))
data.update({sensor.id : s... | [
"tarjanyi.jozsef@freemail.hu"
] | tarjanyi.jozsef@freemail.hu |
a924d5f770bc699d0607786b29a0763d26011f25 | 333abfacec09f1118c19fd07d340228a314b5ec3 | /ch2/ex_2.1-4_arbitrary_numerical_system_addition.py | 36b6035af17c1923087118d7170a6e5819a5234a | [] | no_license | olehb/ita3 | 18331d4ee298e60b70884bf25b24653e9c959ad4 | 23c412c647de0e89efba049c39f7d38375ff574b | refs/heads/master | 2023-05-29T08:30:13.039062 | 2015-05-08T16:03:03 | 2015-05-08T16:03:03 | 15,146,847 | 0 | 0 | null | 2023-05-17T05:18:52 | 2013-12-12T20:39:51 | Python | UTF-8 | Python | false | false | 250 | py | #!/usr/bin/env python3
base = 10
n = 4
n2 = (2, 2, 2, 2)
n1 = (0, 0, 3, 0)
result = []
r = 0
for i in range(n-1, -1, -1):
v = n1[i] + n2[i] + r
r = v // base
result.append(v % base)
if r>0:
result.append(r)
result.reverse()
print(result)
| [
"oleh.boiko@gmail.com"
] | oleh.boiko@gmail.com |
e2690fdaa4d677a52afa36499234099fce9dcb9f | e3ac7c428aa5b60e021a9440262320ff80f5be88 | /Ui/welcomescreen.py | 12640c6e51d951c0941192071407924a8f52cfc2 | [] | no_license | turamant/PyQt5-PhoneBook | b3423f978d2a368e6a997889095d13c5cb47a875 | 522490439889d91a40a651574339e80af6b6db1d | refs/heads/main | 2023-07-11T00:50:10.109781 | 2021-08-10T14:24:54 | 2021-08-10T14:24:54 | 391,993,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,599 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'welcomescreen.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore... | [
"tur1amant@gmail.com"
] | tur1amant@gmail.com |
5db01072a7b1cfb52cc6a3b3c2a3401cc35537e6 | a5103b7d5066138ac1a9aabc273361491a5031cd | /course5/week1/rnn_utils.py | eafeffe54a31969af6913bbe0cbfc4a64948fa29 | [] | no_license | mckjzhangxk/deepAI | 0fa2f261c7899b850a4ec432b5a387e8c5f13e83 | 24e60f24b6e442db22507adddd6bf3e2c343c013 | refs/heads/master | 2022-12-13T18:00:12.839041 | 2021-06-18T03:01:10 | 2021-06-18T03:01:10 | 144,862,423 | 1 | 1 | null | 2022-12-07T23:31:01 | 2018-08-15T14:19:10 | Jupyter Notebook | UTF-8 | Python | false | false | 3,663 | py | import numpy as np
def _initial_parameters(n_x,n_a,n_y):
params={}
params['Waa'] = np.random.randn(n_a,n_a)
params['Wax'] = np.random.randn(n_a,n_x)
params['ba'] = np.random.randn(n_a,1)
params['Wya'] = np.random.randn(n_y,n_a)
params['by'] = np.random.randn(n_y,1)
return params
def _initia... | [
"mckj_zhangxk@163.com"
] | mckj_zhangxk@163.com |
85dfc959dee627d18e987008e72ca57b20a778f5 | ff4ac7422819d18dd8792b2b1dd92354f493bb23 | /assignments/autograder/autograde.py | cf78e62715fd25ea7a2d7cdd3fa2ca0045af3e7b | [
"MIT"
] | permissive | fyjgreatlion/cs-for-psych | 0b40cc0b5736632c2b3375c5092e6d7b74815418 | 647642f364d92bcdbc2320a4f527d2a0eba12ba9 | refs/heads/master | 2023-06-30T13:01:22.555967 | 2021-07-26T02:33:36 | 2021-07-26T02:33:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | from grader import autograde, commit_and_push
from glob import glob
import typer
app = typer.Typer()
@app.command()
def run(path: str, summarize: bool=False, commit: bool=False, push: bool=False, root=None, grader=None, public=None, private=None):
grades = autograde(path, plot_it=summarize, root=root, grading_rep... | [
"jeremy.r.manning@dartmouth.edu"
] | jeremy.r.manning@dartmouth.edu |
e5122630508b4ef675f2ef514d43e70e1a838257 | 47d80dcfdbcea8a8527be73de6e57e1379be2c8b | /Django/quotes/Recipe/urls.py | 6354142d8f67a162ba971a6e187cb7e5da0b1afd | [] | no_license | tleysen/Webtech-4 | a23d1f2094e070a04aca1be4bb4ed38908104d0d | 8eee67e772fce1190b0681e106271c502a99b46a | refs/heads/master | 2021-01-23T16:12:56.765708 | 2017-09-07T12:20:46 | 2017-09-07T12:20:46 | 102,732,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | """quotes URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | [
"thomasleysen@MacBook-Air-van-Thomas.local"
] | thomasleysen@MacBook-Air-van-Thomas.local |
4df58b827efdb8b9e33d0f96ef24b7287e582d7b | 55668bc4e19fd9aa3caa4395add2fe73741eb844 | /206/main.py | 29930f8e53ae428345565b5f0a0b9b54dc5cbd5c | [
"MIT"
] | permissive | pauvrepetit/leetcode | cb8674e10b0dc6beb29e9b64a49bede857b889fd | 2fda37371f1c5afcab80214580e8e5fd72b48a3b | refs/heads/master | 2023-08-30T07:39:08.982036 | 2023-08-25T08:52:57 | 2023-08-25T08:52:57 | 151,678,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | #
# @lc app=leetcode.cn id=206 lang=python3
#
# [206] 反转链表
#
from typing import Optional
# @lc code=start
# Definition for singly-linked list.
class ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
class Solution:
def rev(self, head: Optional[ListNode], prev: Opt... | [
"hu__ao@outlook.com"
] | hu__ao@outlook.com |
6b482961ceb846d151075be3e5574ce30b958fbb | 9c3c83007c5bf0f36635b0045b2aad7f8a11ac11 | /novice/03-02/variablerules.py | 04efe613839917730bde3cf315a1c00a8a16bb91 | [
"MIT"
] | permissive | septiannurtrir/praxis-academy | bc58f9484db36b36c202bf90fdfd359482b72770 | 1ef7f959c372ae991d74ccd373123142c2fbc542 | refs/heads/master | 2021-06-21T17:04:58.379408 | 2019-09-13T16:46:08 | 2019-09-13T16:46:08 | 203,007,994 | 1 | 0 | MIT | 2021-03-20T01:43:24 | 2019-08-18T13:38:23 | Python | UTF-8 | Python | false | false | 481 | py | from flask import Flask
app = Flask(__name__)
@app.route('/user/<username>')
def show_user_profile(username):
# show the user profile for that user
return 'User %s' % escape(username)
@app.route('/post/<int:post_id>')
def show_post(post_id):
#show the post with the given id, the id is an integer
retur... | [
"septiannurtrir@gmail.com"
] | septiannurtrir@gmail.com |
3996a1c41e99afd8b6eabfd0864dad2c2f4c7187 | 13e1fb78955c03a75cf483725f4811abd1b51ac4 | /compiler/tests/03_wire_test.py | 61e21985e7422f475fa91e656c3f095e1c483963 | [
"BSD-3-Clause"
] | permissive | ucb-cs250/OpenRAM | d7a88695ac6820d03b4b365245a1c4962cdc546d | 3c5e13f95c925a204cabf052525c3de07638168f | refs/heads/master | 2023-01-23T15:09:35.183103 | 2020-10-12T16:05:07 | 2020-10-12T16:05:07 | 318,904,763 | 0 | 0 | BSD-3-Clause | 2020-12-05T22:47:14 | 2020-12-05T22:47:13 | null | UTF-8 | Python | false | false | 2,212 | py | #!/usr/bin/env python3
# See LICENSE for licensing information.
#
# Copyright (c) 2016-2019 Regents of the University of California and The Board
# of Regents for the Oklahoma Agricultural and Mechanical College
# (acting for and on behalf of Oklahoma State University)
# All rights reserved.
#
import unittest
from test... | [
"mrg@ucsc.edu"
] | mrg@ucsc.edu |
4db2e0c7af5d155f9cb641317fcba67abd59aea2 | fc36930722e170fa80b2f4195a15d686d138dc03 | /files_project/app.py | 58b803277ebe7f4911d9ad5f03b9c4db510932ea | [] | no_license | mayank4519/python_projects | d781ef3f81c1c6b3357351472019b8205c172897 | 4d0a84b9fae98cd194b6b73cbd83f6e2cc8b1ea4 | refs/heads/master | 2022-12-02T23:14:59.972893 | 2020-08-13T18:15:07 | 2020-08-13T18:15:07 | 266,676,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | my_file = open('data.txt', 'r')
file_content = my_file.read()
my_file.close()
print(file_content)
#write into file
user_name = input("enter name")
my_file_writing = open('data.txt', 'w')
my_file_writing.write(user_name)
my_file_writing.close() | [
"mayankjn.jain1993@gmail.com"
] | mayankjn.jain1993@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.