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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0aead1b7e6494a724e7a0ce66a4461f0a7b0941c | 473b31f1f55f744e8f4227f4a6ea66ae75967d74 | /products/admin.py | 1478848603595abf01fb04bf03b62e524aa1b7b0 | [] | no_license | sampanna-lg/django-lighthouse | 6be01f2c8c7cba589aad154c78909d53246051f4 | 3d6c11095d1a81bab1b956b3ca0a33ce917a33a0 | refs/heads/master | 2022-12-27T14:37:02.769169 | 2020-10-13T10:59:25 | 2020-10-13T10:59:25 | 302,867,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | from django.contrib import admin
from .models import Category, Product, Brand, Sub_Cat, Comment
class ProductAdmin(admin.ModelAdmin):
list_display = ('id', 'title', 'category', 'price', 'is_published', 'is_topselling','is_new')
list_editable = ('is_published', 'is_topselling', 'is_new' )
list_display_link... | [
"nsiwansh@gmail.com"
] | nsiwansh@gmail.com |
a3e4ee41e561ef8abd0f4c96f80857d31f2980d3 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj_031858.28+002325.7/sdB_sdssj_031858.28+002325.7_lc.py | 015e2ab508983a3ff321694093bcee12e4301b9c | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[49.742833,0.390472], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_sdssj_031858.28+002325.7/sdB_sdssj_031858.28+002325.7_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
5a487a26879f6aef02288a3f522012a975112c4a | 23f3349e8b50f0cb3e461bbd65c1ea8dec792d0b | /2_semestr/root_lab/interface.py | 9c21e776032cb563c2c6682525e1917c650a39a8 | [] | no_license | JacobLutin/Python_bmstu | d17866dbab0e74f0f9d600c4dbd9d53eb5c5b7be | 66fd8679de7556978b9cd1e9fd8646a8d7d6daa8 | refs/heads/master | 2020-05-29T14:40:09.310602 | 2017-03-27T05:18:58 | 2017-03-27T05:18:58 | 64,742,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,756 | py | from methods import *
from draw import *
def getParams():
print("Введите следующие значения")
print()
a = float(input("Введите значение a: "))
b = float(input("Введите значение b: "))
h = float(input("Введите шаг h: "))
eps = float(input("Введите точность (эпсилон): "))
n = int(input("Вв... | [
"jacoblutin@MacBook-Pro-Jacob.local"
] | jacoblutin@MacBook-Pro-Jacob.local |
050aae1d22e05be18511299981ff041cd44f1347 | 235addaddb72166804a1dc996d6971b28da5166a | /websites/mykart/mykart/settings.py | 1693bad7973bfbc878b832ec64eee79e5d169a1f | [] | no_license | alokdeka/Django | 03992a2b041b8cbe3ee097cda13dcb02cc688a0d | 6b749c66f306c57131bafaf07bf78cbc371975d1 | refs/heads/master | 2023-07-19T11:17:09.027448 | 2020-04-30T15:58:50 | 2020-04-30T15:58:50 | 255,738,242 | 0 | 0 | null | 2021-09-22T18:53:24 | 2020-04-14T22:08:18 | Python | UTF-8 | Python | false | false | 3,231 | py | """
Django settings for mykart project.
Generated by 'django-admin startproject' using Django 2.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# ... | [
"work.deka.alok@gmail.com"
] | work.deka.alok@gmail.com |
8771e36f51004266086b21d7edf120173a58c025 | 3126399ab1199165808c95bad89910362a45909d | /Python/LógicaProgramaçãoAlgoritmos/CifraVogais.py | 69ba28445fad17d2aaab4aa73db3877d1c64330a | [] | no_license | castrofj/CourseCodes | 6555c5ee0ddb3e8859f1c09f073de59727fb785c | f28bd1e32473d586f4ab77f4b7605630cb243a00 | refs/heads/master | 2023-08-25T11:57:19.950161 | 2021-10-20T22:34:35 | 2021-10-20T22:34:35 | 408,246,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py |
# DECLARAÇÃO DE VARIÁVEIS
dicionario_cifra = {"A":"@","E":"&","I":"!","O":"#","U":"*"}
nome_lista = [] #lista onde irá cada caracter (consoante ou vogal encriptada).
# solicitação de dados do usuário. Variável guarda o dado em caixa alta.
nome = input("Digite um nome: ").upper()
# verifica se letra existe no dicion... | [
"fercastro@Fernandos-MacBook-Pro.local"
] | fercastro@Fernandos-MacBook-Pro.local |
f187c4f9e4a70c77058ac6755fffd676318f4f3a | 8c1214774275b25437f8dfe45006aa69d9a253fc | /virtualhome/dataset_utils/add_preconds.py | 6101f37083a05ad29db958511682a5a4b1d3939e | [
"MIT"
] | permissive | xavierpuigf/virtualhome | e47155099f8ea29fcd9641a1284fc0fa45485052 | 1d9ac2307dbb09d87e75046722336449e141039e | refs/heads/master | 2023-08-04T03:04:57.667756 | 2023-07-24T07:03:42 | 2023-07-24T07:03:42 | 177,614,859 | 297 | 56 | MIT | 2023-07-25T21:53:22 | 2019-03-25T15:34:12 | Python | UTF-8 | Python | false | false | 15,780 | py | # Processes all the scripts
# Same as the backup version but without grabbed precond
import glob
import numpy as np
import os
import json
from augmentation_utils import *
dump_preconds = False
rooms = [x.lower() for x in [
'Kitchen',
'Bathroom',
'Living_Room',
'Dining_Room',
'Be... | [
"xavierpuigf@gmail.com"
] | xavierpuigf@gmail.com |
7b1636f793ce13189a19838755b171395bfddac0 | fb69cbeaa964052b318a026531bc09db8ecb2c61 | /service/api/interfaces.py | 4544dca18351afe679c915bebb0dfb4f34d7ea0a | [
"MIT"
] | permissive | stvgt/interfaces | 077d835c11f4eba5122766854037c3010a6ea0b7 | 813e58304f2bdc0333b015bf5a15f8a46cfb9073 | refs/heads/master | 2022-12-10T13:27:31.288133 | 2019-08-24T19:16:02 | 2019-08-24T19:19:05 | 194,733,052 | 0 | 0 | MIT | 2022-12-08T05:50:20 | 2019-07-01T19:39:18 | Python | UTF-8 | Python | false | false | 2,364 | py | import json
from dataclasses import asdict
import yaml
from flask import request
from flask_restplus import Namespace, Resource, abort
from jsonschema import ValidationError
from werkzeug.datastructures import FileStorage
from service.database import db_connection
from service.database.queries import (
get_compon... | [
"s.voigt@posteo.de"
] | s.voigt@posteo.de |
9878d3c9a999c0400483bcbfa4d971045bccf1c9 | 95d3a7022a17ba5d98458fb24f375a7c7077bcdc | /bad_robot/urls.py | 85e17e1bc67595cbc8a07b356b3e98207e000373 | [] | no_license | luhu888/badmintonRobotSite | 565bd90621a7eccae16a8ddba3be0a29c4652bf6 | a3f17b07f902197c6beddcd347b4700001c5606b | refs/heads/master | 2022-12-11T04:38:05.033827 | 2019-08-05T16:23:06 | 2019-08-05T16:23:06 | 193,890,775 | 0 | 0 | null | 2022-12-08T05:18:13 | 2019-06-26T11:24:48 | Python | UTF-8 | Python | false | false | 816 | py | from django.urls import path, include
from rest_framework import routers
from rest_framework_jwt.views import obtain_jwt_token
import datetime
from bad_robot import views
JWT_AUTH = {
'JWT_EXPIRATION_DELTA': datetime.timedelta(days=7),
'JWT_AUTH_HEADER_PREFIX': 'JWT',
}
route = routers.DefaultRouter()
# # 注册... | [
"1012587869@qq.com"
] | 1012587869@qq.com |
90815c37e766074cf9db7ecbac549253c6bff499 | 28fcd2c169c0887c87f0076e11c5b3047b622939 | /settings.py | e5719dc3666ba47589354addb5e137a641735c41 | [] | no_license | mstumberger/Crossbar-boilerplate | 80fb70c0fceeb806a0b717db762bc7219300295e | 1369e96a513f30435c751e1119f9ea5636818ad8 | refs/heads/master | 2020-03-20T15:26:26.267001 | 2018-07-09T20:09:38 | 2018-07-09T20:09:38 | 137,513,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,682 | py | import os
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = ['*']
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django... | [
"marko.stumberger@gmail.com"
] | marko.stumberger@gmail.com |
0ae2c51036b1147568f7ce504c648297bc59a034 | 7319ee9d719e90c22faec4732f039329e436bbad | /doc/source/conf.py | 8b019dd16c202c81f4586c4c3a31b077da271e66 | [
"MIT"
] | permissive | zhaolewen/py-sec-xbrl | 35369d6b2cbef2b1732e1ead204be351de2b8187 | 809fc5bc25f9c62dc86e4afbefe6534689c0f136 | refs/heads/master | 2022-09-14T19:41:28.177670 | 2020-05-22T08:36:42 | 2020-05-22T08:36:42 | 262,821,525 | 15 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,935 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"zhaolewen@gmail.com"
] | zhaolewen@gmail.com |
5574e174a75d3d6408a03e88c167f8b4c8eff1ff | 43c32d6791349d91ee99d50330717e413f95b667 | /FactoryMethod/python-source/routers/FourRouter.py | acb655eeea7f0ffe341cfe665da4b7c7d55e6832 | [] | no_license | akhtyamovpavel/PatternsCollection | 17d0f26b486f065fc38fc9297844d454711b687c | 9165d5bc7c50494adaf1b0dce40b08bfdd41d87c | refs/heads/master | 2023-04-02T20:06:18.635096 | 2023-03-21T19:38:02 | 2023-03-21T19:38:02 | 171,413,700 | 42 | 44 | null | 2021-10-31T18:44:25 | 2019-02-19T05:51:52 | C++ | UTF-8 | Python | false | false | 184 | py | from routers import Router
from routes import Route
from routes.FourRoute import FourRoute
class FourRouter(Router):
def create_route(self) -> Route:
return FourRoute()
| [
"akhtyamovpavel@gmail.com"
] | akhtyamovpavel@gmail.com |
86adb1787001ba825359a5cd0be9f3a8ed3d2c2a | c13f0ee4dab40a39c31383c6411b48f76774fdfd | /sistemaAsistencia/wsgi.py | 1d9db80abd00c9d2556a9f60473e4f8118095b41 | [] | no_license | AbrahamSaa/adsi | 545f027a61b3144af1e74e8aaa8f855bfc058ff7 | 10bf2a0bd10b08b2deac7a8cffc2d6460281eeaf | refs/heads/master | 2021-08-28T09:39:40.442787 | 2017-12-11T21:49:41 | 2017-12-11T21:49:41 | 113,237,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | """
WSGI config for sistemaAsistencia 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("D... | [
"Abraham"
] | Abraham |
12dbd5d5a41c10682e924f65483ba46360422405 | 96010193c9566b2ffbb5c2d1f31bd31c6bd979e3 | /utils.py | bb85de30e26196b13e95b4ab960ed088b33e2fc5 | [
"MIT"
] | permissive | dlitvak/CarND-Vehicle-Detection | 1953d92c528a062027a20c8a4d55beee51b0ce70 | f51f00d6ab0235b9fc716aaa0150135e1c63d4ed | refs/heads/master | 2020-03-20T22:14:39.711030 | 2018-06-22T20:07:49 | 2018-06-22T20:07:49 | 137,787,674 | 0 | 0 | null | 2018-06-18T17:58:30 | 2018-06-18T17:58:29 | null | UTF-8 | Python | false | false | 6,143 | py | import numpy as np
import cv2
import matplotlib.image as mpimg
from skimage.feature import hog
def convert_color(image, conv_color_space='YCrCb'):
cvt_image = image
if conv_color_space == 'HSV':
cvt_image = cv2.cvtColor(image, cv2.COLOR_RGB2HSV)
elif conv_color_space == 'LUV':
cvt_image = c... | [
"dlitvak@tibco.com"
] | dlitvak@tibco.com |
37d6f988a200dc46a67310f1d35ed4b3cdc5d949 | 853d4cec42071b76a80be38c58ffe0fbf9b9dc34 | /venv/Lib/site-packages/nltk/chat/iesha.py | 225e8202b10289cc992b3c089c98d1784db5c7ee | [] | no_license | msainTesting/TwitterAnalysis | 5e1646dbf40badf887a86e125ef30a9edaa622a4 | b1204346508ba3e3922a52380ead5a8f7079726b | refs/heads/main | 2023-08-28T08:29:28.924620 | 2021-11-04T12:36:30 | 2021-11-04T12:36:30 | 424,242,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,402 | py | # Natural Language Toolkit: Teen Chatbot
#
# Copyright (C) 2001-2021 NLTK Project
# Author: Selina Dennis <sjmd@csse.unimelb.edu.au>
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
"""
This chatbot is a tongue-in-cheek take on the average teen
anime junky that frequents YahooMessenger or ... | [
"msaineti@icloud.com"
] | msaineti@icloud.com |
27ea5d9ee615c2727ec11f2710fc2f03b5a30bfc | 7d9d3d5ce2ac19221163d54a94c025993db0af4f | /autotest/ogr/ogr_dxf.py | 2222aacac9eb29e918c8f8f18981e317beeaa58a | [
"MIT"
] | permissive | dcgull/gdal | 5408adad77d001db32173bba547b447220b5e9a2 | a5e2a7b54db955bd061ebfc6d69aa2dd752b120c | refs/heads/master | 2020-04-03T13:30:40.013172 | 2013-10-11T12:07:57 | 2013-10-11T12:07:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47,233 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# $Id: ogr_dxf.py 26354 2013-08-21 15:28:27Z rouault $
#
# Project: GDAL/OGR Test Suite
# Purpose: Test OGR DXF driver functionality.
# Author: Frank Warmerdam <warmerdam@pobox.com>
#
#####... | [
"gerard.choinka@ambrosys.de"
] | gerard.choinka@ambrosys.de |
85a17047bc108250cf945819caff9c91c8ad3cf9 | 4142b8c513d87361da196631f7edd82f11465abb | /python/1263A.py | b8918a15dc5cdc4a97064bbcc7dad5e27403ed25 | [] | no_license | npkhanhh/codeforces | b52b66780426682ea1a3d72c66aedbe6dc71d7fe | 107acd623b0e99ef0a635dfce3e87041347e36df | refs/heads/master | 2022-02-08T17:01:01.731524 | 2022-02-07T10:29:52 | 2022-02-07T10:29:52 | 228,027,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py |
n = int(input())
for _ in range(n):
a, b, c = sorted(list(map(int, input().split())))
if a + b >= c:
print(int((a+b+c)/2))
else:
print(a+b)
| [
"npkhanh93@gmail.com"
] | npkhanh93@gmail.com |
ca1be42514d3cf0cd7dd055208df6e2fb2b5309b | bbeecb7cff56a96c580709b425823cde53f21621 | /msw/spots/north_america/nova_scotia.py | 7d3025323b4dad586bac40ff88083a92701a9107 | [] | no_license | hhubbell/python-msw | f8a2ef8628d545b3d57a5e54468222177dc47b37 | 5df38db1dc7b3239a6d00e0516f2942077f97099 | refs/heads/master | 2020-04-05T23:46:21.209888 | 2015-06-16T01:36:43 | 2015-06-16T01:36:43 | 37,476,303 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | LAWRENCETOWN = 342
WESTERN_HEAD = 343
POINT_MICHAUD = 758
COW_BAY = 786
SUMMERVILLE = 788
MARTINIQUE_BEACH = 814
NOVA_SCOTIA_HURRICANE = 1096
| [
"hhubbell@uvm.edu"
] | hhubbell@uvm.edu |
6284ac6837cd1258e98d0c17dd4b125e0698cde9 | bc32a53cfebc7c03987ed44492ed8afb79aed5a3 | /customers/management/commands/generate_purchases.py | c2b3220e7ef021aca32af2aadbcce1d5bd7d9792 | [
"MIT"
] | permissive | jeremy886/bookstore | abe537df821d3d2b873c166965aac2a01e0d5914 | d220efcc21b95942d14fae672da746b1abcaf750 | refs/heads/master | 2020-03-20T19:42:04.639190 | 2017-05-12T19:07:39 | 2017-05-12T19:07:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | from django.core.management.base import BaseCommand, CommandError
import factory
from ...factories import PurchaseFactory
from ...models import Purchase
class Command(BaseCommand):
help = 'Generate N-number Purchases'
def add_arguments(self, parser):
parser.add_argument('num', nargs='?', default=10... | [
"kenneth@gigantuan.net"
] | kenneth@gigantuan.net |
3f8eab609fb86b64c0f7235b89cf0f1c2a559438 | 6ea261a92786825ce366201e7d7d8dd9efdbbb26 | /portal/app/core/views/base.py | eea8326853a57661e94252cfaf402284765d0170 | [] | no_license | tanzy831/powernet | 2d7e3c8af4147d36320fe5ba691541dbeb042c40 | 28db3c742d1b0e3480d08ed517b923cba3e1a664 | refs/heads/master | 2020-04-11T09:25:33.495162 | 2018-12-12T02:09:33 | 2018-12-12T02:09:33 | 161,677,140 | 0 | 0 | null | 2018-12-13T18:07:58 | 2018-12-13T18:07:57 | null | UTF-8 | Python | false | false | 3,171 | py | import json
from django.shortcuts import render
from app.models import Home, Device
from rest_framework.authtoken.models import Token
from app.api.v1.endpoint.home import HomeSerializer
from app.api.v1.endpoint.device import DeviceSerializer
from django.contrib.auth.decorators import login_required
@login_required
de... | [
"jonathan@rhumbix.com"
] | jonathan@rhumbix.com |
735542c9d7d6fe94936ae57c61165068255a64a5 | c42f1b44c1f276e5eb37a1a2a356c2a519181a28 | /58/sol.py | 141f26d7c21434f77cf65eba9bd2a9dbe945e5d9 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | vreinharz/project_euler | 11e90df94d9d33365121435bd1a6ed56e96faad8 | f284590082cf40a39e2982ddd70a5f32f714819b | refs/heads/master | 2016-09-11T09:21:27.790287 | 2014-11-19T03:47:49 | 2014-11-19T03:47:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,551 | py | from pprint import pprint
from math import fsum, ceil
import sys
def is_prime(x):
if x == 1:
return False
if x % 2 == 0:
return False
for j in range(3, int(ceil(x**0.5))+1):
if x % j == 0:
return False
return True
def ratio_dag(d, before):
nb = fsum(1 for x in d... | [
"vreinharz@gmail.com"
] | vreinharz@gmail.com |
7aa2805538eddcb1843537e50ec41c897b3902f6 | c3b47e1b7b1be1107cab434cbc26039502dcf9a3 | /PROJECT/PSIT/HKT_pass_2013.py | b965395080e66cafb5398f68fdff33a153c4bfda | [
"MIT"
] | permissive | crimsonreaper/Project_PSIT61 | 07f2b8e9b7a0138b72e08ffdbb371510b626e9f1 | f4b67ba9f6e478df5484016137a3b61c640c4ffc | refs/heads/master | 2020-04-11T07:57:25.722993 | 2018-12-17T11:36:06 | 2018-12-17T11:36:06 | 161,627,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | """THAILAND AIR TRAFFIC STATISTIC ANALYSIS"""
def all_data():
"""Return list from fetch data csv"""
import csv
import pygal as pg
main_data = csv.reader(open('airtrafficstats.csv', newline=''))
main_data = [row for row in main_data]
hkt = []
for i in main_data:
if i[0] =... | [
"61070008@kmitl.ac.th"
] | 61070008@kmitl.ac.th |
b583f8756e2031e3b01beb734e64fdfc0770f0c3 | ab19c3757766f00c7414aa10641f8c7e6321375d | /40.py | 7ef3408fe4ce923ea05c074a96da77db063a15e7 | [] | no_license | HHariHHaran/python-programming | 2c70ff0c4b24ae48b8096075a29ffc0edfe1ef00 | c2db869e352d7ee22d499dd772f5cb2285b2822f | refs/heads/master | 2020-04-19T09:19:56.918989 | 2019-01-22T09:50:28 | 2019-01-22T09:50:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | n11 = 0
n12 = 1
count = 0
nterms=int(input("n"))
if nterms <= 0:
print("Positive integer")
elif nterms == 1:
print("Fibonacci sequence upto",nterms,":")
print(n11)
else:
print("Fibonacci sequence upto",nterms,":")
while count < nterms:
print(n11,end=' ')
nth = n11 + n12
n11 = n12
n12 = nth
count += 1
| [
"noreply@github.com"
] | noreply@github.com |
6d4c342943a36cbc73c3e96e062a082e56c15181 | aa853a9094fff4b6e9b0ddc7469be29ad5f0f811 | /poi_stock_account_consolidate/models/__init__.py | 646eda432c164d20562a02dbbb872636bba80b21 | [] | no_license | blue-connect/illuminati | 40a13e1ebeaceee39f17caa360f79e8deeaebf58 | 6682e60630064641474ddb2d8cbc520e30f64832 | refs/heads/master | 2022-01-06T00:55:58.465611 | 2018-11-24T04:30:03 | 2018-11-24T04:30:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | ##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
# Copyright (C) 2010-2012 OpenERP s.a. (<http://openerp.com>).
#
# This program is free software: you can redistribute it and/or... | [
"yori.quisbert@poiesisconsulting.com"
] | yori.quisbert@poiesisconsulting.com |
5c96b24cce307e12e0ca9c44917eeb453918a858 | 399fb29d8525b6d7ac298783675d0d56e37bcac7 | /python/ray/tune/execution/ray_trial_executor.py | 0a31e063f80879f2b1c36e393477920c460d3aa7 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | AmeerHajAli/ray | 40c9aebe0da59e9bcd70303d981bfe6b65007991 | 1ffd032f5f793d8817217a040f0f636f9372cd56 | refs/heads/master | 2023-03-28T10:50:09.186561 | 2023-03-24T23:08:08 | 2023-03-24T23:08:08 | 175,129,851 | 1 | 0 | Apache-2.0 | 2019-03-12T03:39:16 | 2019-03-12T03:39:14 | null | UTF-8 | Python | false | false | 49,716 | py | # coding: utf-8
import copy
import logging
import os
import random
import time
import traceback
from collections import deque
from enum import Enum
from functools import partial
from typing import Callable, Dict, Iterable, Optional, Set, Union
import ray
from ray.actor import ActorHandle
from ray.air import Checkpoint... | [
"noreply@github.com"
] | noreply@github.com |
ce0ad4e94dbeaf7a9f235aef5fbd62c5295e3b07 | d56d707d47b28cedd37f49f46495499eb0ff235a | /base/migrations/0034_student_profile_pic.py | 09debb172755d771a823f5c944ee6b59562ac38d | [] | no_license | ishitagupta2505/YourMentor | bef0ce0a1f990ffc1290a0ac3243cc9de8ced734 | 4d7fea8d95a9132ef885a291d0ddb8f3c0e3a72c | refs/heads/master | 2023-05-31T02:58:47.504224 | 2021-06-16T08:18:42 | 2021-06-16T08:18:42 | 306,419,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # Generated by Django 3.1.3 on 2020-11-29 17:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('base', '0033_auto_20201119_2223'),
]
operations = [
migrations.AddField(
model_name='student',
name='profile_pic',
... | [
"ishita2kbti@gmail.com"
] | ishita2kbti@gmail.com |
60b50a0b818f5893266076d10b34884b3c010070 | e89050540c024b750dee8971f2a850bd761b0e7c | /test/test.py | 83b0046d2fc40ebb8cc212e0b7ffaf43f4047093 | [] | no_license | wataru-sasa/lesson-flask | 6e59c0eaef8714966aa4e7137dc1ca42530cd040 | 5026258bd4948727ec7429cdfddcd783a025dfae | refs/heads/main | 2023-01-21T07:34:27.259141 | 2020-12-06T08:05:49 | 2020-12-06T08:05:49 | 318,982,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | # print('Hello World')
# print('Hello World'.upper())
# print('Hello World'.lower())
# x= "Hello World"
# print(x)
# x.upper()
# x= x.upper()
# print(x)
# print(["Hello"])
# print(type(["Hello"]))
# print(["a","b",1,2])
# x = ["a","b","c",[1,2,3]]
# print(x[3][1])
# print(x[-1])
# print(x[0:2])
# x[1] = "d"
# print(... | [
"make.it.sskwtr.40@gmail.com"
] | make.it.sskwtr.40@gmail.com |
3ce4d7eb9f4afd1ba7e3f3212c556c8841249200 | 4917775ea477f12c0c29bfb0ef77189bb2e602cd | /prpe/prpe6/prpe.py | 404fcb6ed6607f0ba794fc289340e29785893bfc | [
"MIT"
] | permissive | smaint/PRPE-Translator | cd3ce7e49a4e98d77e289a20413b373a05e15afd | 3d4f12feeccaf1458069a8969bc6c55c4fbd4443 | refs/heads/main | 2023-06-09T05:09:49.470182 | 2021-06-17T01:25:25 | 2021-06-17T01:25:25 | 376,365,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61,189 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Author: Jānis Zuters
# PRPE technical version 6
#=============================================================================
import sys
from collections import Counter
from copy import deepcopy
from numpy import argmin
goodroots = Counter()
badroots = {}... | [
"noreply@github.com"
] | noreply@github.com |
5ba9339108ff98cf84f285a6aa932d06e49e2e54 | a367503d647df1babdf3c1149755c098dc11e39c | /PrincessAdventure/Arrow_rain.py | 01892096dc9c97f41c96fb0e9de935625c56f964 | [] | no_license | Aebeloe/Pygame | fb18adddc62f1ba28289421f28557fbac608902a | dab6ab02b6b6679be90862cffdd7b97f83f524d3 | refs/heads/master | 2021-01-13T17:05:13.949333 | 2015-12-23T11:59:48 | 2015-12-23T11:59:48 | 46,858,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,261 | py | import Arrow
import pygame
import Variables as variables
import Health
class Arrow_rain():
def __init__(self, game_instance):
self.all_arrows = pygame.sprite.Group()
self.all_health = pygame.sprite.Group()
self.all_enemies = pygame.sprite.Group()
self.all_red_dots = pygame.sprite.Gr... | [
"madmad12@student.aau.dk"
] | madmad12@student.aau.dk |
b4d12f8108d42dca2e7d0365fc7ed27eeb797ae7 | 8101f16e9a8edb5faf291b67775eb25ae0670330 | /pyenv.3.6/bin/wheel | bf185a4712978e3c2a73e3a89dd6cb2bef136fe4 | [] | no_license | mannyhappenings/interview | 656f935b94f899d586f3f06798fb1e9023927bb2 | 1e4471e78c6e79494b94222d66b5451f622bc83e | refs/heads/master | 2020-12-14T08:41:05.742749 | 2020-02-04T04:05:58 | 2020-02-04T04:05:58 | 234,689,164 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 239 | #!/data/git/interview/pyenv.3.6/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"manishsharma004@yahoo.com"
] | manishsharma004@yahoo.com | |
c58b4d207d4d32981afa83816a9438a77d9b595b | 2e32375b85206795db2a8df05b3360496dc787af | /attackhp.py | 3a40e5c84d58fc80459c337eff195f532b766ac2 | [] | no_license | dldeshpande/MyFirstPython | 32e90e8c692210478380532f7a20804b8244964b | ebafd04f40ed77542aafa48c2517d7641a35bf6c | refs/heads/Python | 2020-03-08T19:10:22.295954 | 2018-04-18T06:44:18 | 2018-04-18T06:44:18 | 128,340,556 | 0 | 0 | null | 2018-04-18T06:44:19 | 2018-04-06T05:05:15 | Python | UTF-8 | Python | false | false | 459 | py | import random
playerhp = 360
attackhpl = 60
attackhp = 80
while playerhp > 0:
dmg = random.randrange(attackhpl, attackhp)
playerhp = playerhp - dmg
if playerhp <= 30 :
playerhp = 30
continue
print("Enenmy strike for: ", dmg ,"Damage point. current hp", playerhp)
if ... | [
"dldeshpande@gmail.com"
] | dldeshpande@gmail.com |
4a64027eb5dbc8f9bd6f10bcfd965feadf5b4710 | f7e2e4f6a704ff2ecf93ff72f03faa6b4e1a228b | /models/account_payment_term.py | 63fdc6e573824407b5251f31404ef2ae59c59040 | [] | no_license | marclebrun/ml_cash_discount | a110b71e56412f9dda0345da2bd3b455abdf3083 | 1d6e563801361457e0a24029b61ad2ef43e62ba0 | refs/heads/master | 2023-01-04T22:45:58.222175 | 2020-11-08T07:37:58 | 2020-11-08T07:37:58 | 282,465,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | # -*- coding: utf-8 -*-
from odoo import api, fields, models, _
class AccountPaymentTerm(models.Model):
_inherit = "account.payment.term"
cd_percent = fields.Float(
string = "Discount (%)"
)
cd_delay = fields.Integer(
string = "Discount delay (days)"
)
cd_include_tax = field... | [
"marclebrun2@gmail.com"
] | marclebrun2@gmail.com |
74d8a11fc9df07567058ed3e34f2de8eb3f18d54 | fcdb430384f00a39a936b46eae5606c9ec339b15 | /pentai/run_ai.py | 3ac6bb7608270e981abd3d943d83fb1dc94a1077 | [
"MIT"
] | permissive | cropleyb/pentai | 78a03161d26eb5cdd7b0f023b782b3bf9352456a | bbd32864cabce9ba5cb1051fa9d78d69c8feb5e5 | refs/heads/master | 2020-04-16T16:13:53.640001 | 2014-12-10T07:54:05 | 2014-12-10T07:54:05 | 24,712,772 | 8 | 1 | null | 2016-06-04T08:01:48 | 2014-10-02T08:59:04 | Python | UTF-8 | Python | false | false | 10,233 | py | #!/usr/bin/env python
'''
from guppy import hpy
h = hpy()
h.setref()
'''
import pentai.base.rules as r_m
import pentai.base.game as g_m
import time
from pentai.ai.ai_player import *
#from pentai.db.evaluator import *
from pentai.db.ai_factory import *
from pentai.db.openings_book import *
from pentai.db.games_mgr im... | [
"cropleyb@yahoo.com.au"
] | cropleyb@yahoo.com.au |
45e8a9ce23db31e8bffc2db20e4031eff14e986a | ebb2a06a025b3c25443b2287c7c9b130cad5b5f1 | /unsourced/scrape.py | e9a26d03bd11897e45f1248ad095f5c358f6b1c8 | [] | no_license | bcampbell/unsourced | b587d423e2422ad2e5060263404b062df2941dbe | 4e0b418a957bbac9c7d3358425cdf11bcd436388 | refs/heads/master | 2021-01-23T12:20:54.033881 | 2014-02-18T08:43:25 | 2014-02-18T08:43:25 | 2,531,708 | 0 | 1 | null | 2012-10-04T01:14:19 | 2011-10-07T10:18:04 | Python | UTF-8 | Python | false | false | 2,037 | py | import urllib
import collections
import json
import datetime
from unsourced import util,analyser,highlight
from unsourced.forms import EnterArticleForm
from unsourced.models import Article,ArticleURL,Action
class Status:
""" status codes returned by scrapomat """
SUCCESS = 0
NET_ERROR = 1
BAD_REQ = ... | [
"ben@scumways.com"
] | ben@scumways.com |
5c5b4e283559db0b607779e73d531b6dba39f937 | d66993b0383ee7a97c9d5fe761269a3cb8e67e22 | /Ejercicios/POO_Listas.py | 63a2dd591e2cff1c2b2819cdc5c99362c94d6104 | [] | no_license | rramosaveros/CursoPythonCisco | 09828e3d8190490c0dc30861ae241f5222e108d6 | 1508e67873adfcf31b8c78d3f5cb2a0572dfeb1c | refs/heads/master | 2023-06-27T12:07:52.652780 | 2021-08-01T14:19:19 | 2021-08-01T14:19:19 | 391,647,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | lst = []
for x in range(10):
lst.append(1 if x % 2 == 0 else 0)
print(lst) | [
"ramoslenin32@gmail.com"
] | ramoslenin32@gmail.com |
217faec137550783954ec982386548f78c4d0443 | b483c598fa375e9af02348960f210b9f482bd655 | /cursoemvideo/desafios/Desafio037.py | 7c82f9d600b1128328fb5824c6e2d85828beca8b | [
"MIT"
] | permissive | brunofonsousa/python | 6f766d08bf193180ea9a4903cb93ffd167db588d | 8f2f26c77015c0baaa76174e004406b4115272c7 | refs/heads/master | 2022-09-30T14:58:01.080749 | 2020-06-08T09:55:35 | 2020-06-08T09:55:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | '''
Escreva um programa em Python que leia um número inteiro qualquer e peça para
o usuário escolher qual será a base de conversão: 1 para binário, 2 para octal
e 3 para hexadecimal.
'''
num = int(input('Digite um número inteiro: '))
print('Escolha uma das bases para conversão: ')
print('[ 1 ] converter para BINÁRIO... | [
"brunofonsousa@gmail.com"
] | brunofonsousa@gmail.com |
e4fd91a4de5a0da04d30f9eede7e16e04ce3dafb | 50559d7d1a04d0fe66c7b515c924aa8e424f544e | /exercicio 10.py | 34495a7485e7c7705a6dcdd011794cddf2522b78 | [
"MIT"
] | permissive | pedropenna1/Exercicios-Python | 62b29c5605ca8bbd8c7ec747cb0914e4dab0977c | bde8967a31b2395477f346ca1f1b5cb2de666a40 | refs/heads/main | 2023-06-29T05:23:16.780661 | 2021-07-31T05:47:48 | 2021-07-31T05:47:48 | 391,262,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | Dinheiro = float(input('Digite o quanto de dinheiro você tem na sua carteira: RS '))
dolar = Dinheiro/3.27
print('Você pode comprar US${:.2f}'.format(dolar))
| [
"88221911+pedropenna1@users.noreply.github.com"
] | 88221911+pedropenna1@users.noreply.github.com |
3805024bdf0e784d5c1bfeab175b5dad5ec50710 | c0b7b64bf5e023954c83a2351c04966413c0ccf7 | /app.py | 6231d774f034577072f9317f3a93cb34f30b2ab2 | [] | no_license | BigDataRPG/cio_summarization | 4eae44509a52c41bd1ec7d556ebc48fb45bf77bd | 81361884a287495537edaa352442a6e661b740fe | refs/heads/master | 2022-07-10T07:20:21.412994 | 2019-08-14T10:11:44 | 2019-08-14T10:11:44 | 200,616,995 | 0 | 0 | null | 2022-06-21T22:29:28 | 2019-08-05T08:41:34 | HTML | UTF-8 | Python | false | false | 128 | py | from routes import *
if __name__ == "__main__":
app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 8080)), debug=True) | [
"redthegx@gmail.com"
] | redthegx@gmail.com |
f4753fa393f3037911d74ceac68317c790dbd1c9 | 6016c3f324c9466c1dbcd333dc66e9c532ca1eed | /wiktionary/__init__.py | 254ce9412e1e9ae8dcd97c79b30fa98f5a3d8459 | [] | no_license | therealvidem/Cogs | 7f1da46b02a216d1e4d0081274256f54d9502a61 | bf0558bb606c3b03816f2fdd3ccc27f28aa42e54 | refs/heads/master | 2023-04-17T01:15:32.653886 | 2023-04-10T07:12:36 | 2023-04-10T07:12:36 | 67,955,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py |
from .wiktionary import Wiktionary
def setup(bot):
bot.add_cog(Wiktionary(bot)) | [
"superninario@gmail.com"
] | superninario@gmail.com |
694f060123f0e502d4c225ca02c02ac04a529737 | 249cbea53ddfda9cd66486eb197dec8957ab2358 | /python/paddle/fluid/tests/unittests/test_static_save_load_large.py | 08413d711be55b0b7072b3d2dfd0dc5efdeb8462 | [
"Apache-2.0"
] | permissive | Yelrose/Paddle | 107df9433cad73d88227674deda29c6fa2115730 | c670503220cf8df898f3195d81debde7dcc22ad1 | refs/heads/develop | 2023-04-08T19:18:29.498548 | 2021-03-24T12:11:41 | 2021-03-24T12:11:41 | 185,934,762 | 1 | 0 | Apache-2.0 | 2021-12-15T06:36:37 | 2019-05-10T06:52:58 | Python | UTF-8 | Python | false | false | 4,012 | py | # Copyright (c) 2021 PaddlePaddle 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 app... | [
"noreply@github.com"
] | noreply@github.com |
b4b80e40d12486881e37dd7ddeeef9c76417ebd9 | bd6dca1aecb6e9ae64d13951fa8931594b9b4368 | /py21.py | bb2ad7403500decba5cba948ce1da062c335381a | [] | no_license | Mirabellensaft/Learn-Python-the-hard-way | ff2fd3c03284f6408779858245ff67c49e7510c9 | 4e76973ceb9d77bdff7d1b950351a66d5d18c05f | refs/heads/master | 2021-01-23T06:25:22.768018 | 2017-09-24T14:10:39 | 2017-09-24T14:10:39 | 86,366,120 | 5 | 1 | null | 2017-03-28T08:43:01 | 2017-03-27T17:47:10 | Python | UTF-8 | Python | false | false | 1,533 | py | def add(a, b):
print "ADDING %d + %d" % (a, b)
return a + b
def subtract(a, b):
print "SUBTRACTING %d - %d" %(a, b)
return a - b
def multipy(a, b):
print "MULTIPLYING %d * %d" % (a, b)
return a * b
def divide(a, b):
print "DIVIDING %d / %d" % (a, b)
return a / b
print "Let's do some... | [
"tanja@transfeld.net"
] | tanja@transfeld.net |
a826c0f1e7fe5b90d614afd6e1fce8a42e8d8fd7 | 07902fac259097801f4f453211493ccc8dee812e | /ncclient/_version.py | bc44d9c5ce40973a3ce20e4fa946b2277422cefe | [
"Apache-2.0"
] | permissive | CiscoDevNet/ncclient | 285064128f0e66346a715a6bcb835d735ac732ae | ab705fbe5eb7cae23e96e0682273fc9c2ed61739 | refs/heads/master | 2021-08-01T17:26:47.892633 | 2021-07-27T17:29:24 | 2021-07-27T17:29:24 | 96,571,148 | 9 | 7 | Apache-2.0 | 2021-01-19T13:21:19 | 2017-07-07T19:40:19 | Python | UTF-8 | Python | false | false | 18,456 | py |
# This file helps to compute a version number in source trees obtained from
# git-archive tarball (such as those provided by githubs download-from-tag
# feature). Distribution tarballs (built by setup.py sdist) and build
# directories (produced by setup.py build) will contain a much shorter file
# that just contains t... | [
"noreply@github.com"
] | noreply@github.com |
f404316472bc8104bb2812ba039e0dd0f54ed07e | adbedf9626c52748aa048f2b17c18d25262b4d56 | /robot_framework_message_queue/build/lib/MessageQueue/MessageQueue.py | ac1ace0da6944b8ec8340417a2d56aaf98fb71ea | [] | no_license | sanjitroy1992/robot_framework_custom_libraries | 3ef91ea6d4705215f86c83d276d67ce7c5af673a | e5fde8f428a4d46d5cacb2c5369f9c59529f5c91 | refs/heads/master | 2022-11-06T09:11:02.148601 | 2020-06-29T09:35:46 | 2020-06-29T09:35:46 | 274,330,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,554 | py | try:
import pymqi
flag = True
except:
flag = False
from stompest.config import StompConfig
from stompest.sync import Stomp
import os
class MessageQueue(object):
ROBOT_LIBRARY_SCOPE = 'GLOBAL'
def _ibm_queue_configure(self, host, port,queue_manager, channel):
""" To configure IBM Queue"""
... | [
"sanjit.roy@finastra.com"
] | sanjit.roy@finastra.com |
c1989b8cf05642cfad143f3ee2fed78a0be3270f | 8351a1b162da27c9c5793cf1ac9eb735b334eb69 | /general/80. Remove Duplicates from Sorted Array II.py | 5be16290786ee4e9f04eada6c7c719fbd33e33d8 | [] | no_license | puneet1024/Algorithms | af5762e53dab91f4bb38433da703485bdd3648a0 | 893dedfc3e47c3b6c823e54d8ff9193dedbc5678 | refs/heads/master | 2020-03-29T15:21:10.594266 | 2018-10-07T07:31:13 | 2018-10-07T07:31:13 | 150,058,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | class Solution:
def removeDuplicates(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
leni = len(nums)
if leni == 0:
return 0
if leni == 1:
return 1
j = 0 #to store index of next unique element
for i in r... | [
"puneetbhushan24@gmail.com"
] | puneetbhushan24@gmail.com |
840998eef175b0756bd4674b19ca0264c238a101 | 37da0e3331929965a7af94e037d9f8c1de81dc18 | /main_pablo.py | 53ce4a3e867b391ec4ae02e642c7e92ca91a0ed5 | [] | no_license | Paulo-Aragao/simulation-of-covid-propagation | 2b14f9f14e6962ff5e11726f36f217d7e8e3dea5 | f751d8f0aaa99551911ff9cd421d6b66c1314bba | refs/heads/main | 2023-04-18T08:49:28.734542 | 2021-04-30T02:11:20 | 2021-04-30T02:11:20 | 358,354,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | """
Biblioteca gráfica para jogos e simulações.
"""
# from typing import List
import pygame
from pygame.locals import QUIT
from components.widgets import StepperWidget
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~-~-~-~-~-~-~-~- SETUP ~-~-~-~-~-~-~-~-
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pygame.init()
screen ... | [
"pabloemanuell@ufrn.edu.br"
] | pabloemanuell@ufrn.edu.br |
002abb4b218c704330153d2871a2e030ba3f98a9 | dd72634cd837b0b9dea6d33b0fdfdf028e9ef5f5 | /treeExplore.py | a76a5dff1cd65982d20f1c9f1b81bcf60823bc9b | [] | no_license | Tinamilee/naive_bayes | fbce00a1eb75290ba971285cf055641fbf4fad99 | 931155cafc15c777ad7a04856a31215638c44365 | refs/heads/master | 2020-06-04T15:29:04.248592 | 2019-06-15T13:33:47 | 2019-06-15T13:33:47 | 192,082,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,434 | py | # TkInter widgets used to build tree explorer GUI
# Code for Integrating Matplotlib and TkInter
from tkinter import *
# root = Tk()
# myLabel = Label(root, text="Hello World")
# myLabel.grid()
# root.mainloop()
from numpy import *
import matplotlib
matplotlib.use('TkAgg')
from matplotlib.backends.backend_tkagg import ... | [
"1737367547@qq.com"
] | 1737367547@qq.com |
966c5b3961e3083492068369a0048455aeca5b29 | 50aeed6e24aba77e9cfffd30df1eab30d1ede427 | /pyfuzzyrenamer/rename.py | f29ab551f45436efe73cedab78310c10175bb080 | [
"MIT"
] | permissive | pcjco/PyFuzzy-renamer | 471309b67e8b0e29aa21d3ddc58cebdf3ee1177a | 604a5e02f2e9f746b97b2ccd71d5f25ea666c11d | refs/heads/master | 2023-08-08T16:29:59.933628 | 2023-08-04T14:07:08 | 2023-08-04T14:07:08 | 240,891,260 | 2 | 1 | MIT | 2023-08-04T14:07:09 | 2020-02-16T12:53:57 | Python | UTF-8 | Python | false | false | 3,057 | py | import os
import shutil
from pathlib import Path
from pyfuzzyrenamer import taskserver, utils, masks
from pyfuzzyrenamer.config import get_config
from pyfuzzyrenamer.args import get_args
history = []
class TaskRename:
def __init__(self, args):
pass
def calculate(self, args):
retcode = []
... | [
"pcjco@hotmail.com"
] | pcjco@hotmail.com |
968000efb10a5cd3693778aa224ee40166b50cc7 | f79d6d24d8479fecc11adfd25623cc038a09d1a7 | /zanhu/articles/migrations/0002_auto_20210504_1339.py | 867a6e1a11f5a9fa66c5d29e7a87581e0d473fd1 | [] | no_license | InnocentSmile/ZanHu | 4c6ac90537922bb709fbcfbb8a6b1059f3649f96 | 28892bf9d56335122841b033406f59963c786ad2 | refs/heads/main | 2023-06-22T20:36:00.195816 | 2021-07-23T10:33:42 | 2021-07-23T10:33:42 | 388,764,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # Generated by Django 2.1.7 on 2021-05-04 05:39
from django.db import migrations
import markdownx.models
class Migration(migrations.Migration):
dependencies = [
('articles', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='article',
name='cont... | [
"damonpeng@oakblack.com"
] | damonpeng@oakblack.com |
3ab60de9627c3dec3a7ae1995daee8eda8c5ce03 | 64e4b6629775b3ddd2b2fbd9a3f200e1edca0bed | /python project/programers/while.py | 47236376b0535ea0ed04f0e03624e4344b050599 | [] | no_license | KyoungSoo1996/python-coding-practice | 19ed9137d6eb3ea740a4bd5a0879ef0a200e6f48 | 65e52d2fe296967fcc8556925b410ac830c465d3 | refs/heads/master | 2023-02-26T08:42:23.804637 | 2021-02-07T07:11:54 | 2021-02-07T07:11:54 | 336,724,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | a = input()
result = 0
i = 0
while i < int(a) + 1:
result += i
i += 1
print(result)
| [
"74169471+JeoungKyoungSoo@users.noreply.github.com"
] | 74169471+JeoungKyoungSoo@users.noreply.github.com |
a74a50cdd1cb065e256f7fa0bd970f765718abf6 | 019c43da1b09077b0dba2d911c151ca082b019e0 | /src/pygame_from_scratch/KOBdemo.py | 244e272ef238d17a52223495fec163f385aa732e | [] | no_license | EtricKombat/myworks | c844ac3e58364891dc75653599c3aeeb66441a51 | e6801e396d0030b8ff41ef89ee0354af71e16e8c | refs/heads/master | 2023-02-10T10:55:15.757816 | 2021-01-09T06:58:54 | 2021-01-09T06:58:54 | 299,897,735 | 0 | 1 | null | 2020-12-05T18:34:34 | 2020-09-30T11:30:52 | Python | UTF-8 | Python | false | false | 263 | py | import pygame
pygame.init()
screen = pygame.display.set_mode((600, 600))
square = pygame.Surface((40, 40))
square.fill((0, 255, 0))
while True:
screen.blit(square, (200, 200))
if pygame.event.get(pygame.QUIT):
break
pygame.display.update()
pygame.quit()
| [
"ericjoy1991@gmail.com"
] | ericjoy1991@gmail.com |
2c3ae2bb82f2ad88bc2dc1a2824b1a4620858ef4 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/NETFINITYMANAGER-MIB.py | 4b221449307734e8d201c53c2843e368aaded33a | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 13,378 | py | #
# PySNMP MIB module NETFINITYMANAGER-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NETFINITYMANAGER-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:08:55 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
440777dd689f96f789902ece916651fa1738eb69 | 36654cac0ef03a3f21240e50cfa1c603a4de8b35 | /run.py | da07fc57e8c623035b3994fb3c803360901a5cee | [] | no_license | ishmandoo/raas-attack | 2dbc43f700177f08db88afbcad5f0c5d77666230 | 1db2a33d1dfab68f2fb5386f186ee0cc998a08a6 | refs/heads/master | 2020-12-05T01:21:08.757490 | 2020-01-05T19:32:24 | 2020-01-05T19:32:24 | 231,964,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | from urllib.request import urlopen
with urlopen("http://www.google.com") as response:
response_content = response.read()
print(response_content)
| [
"noreply@github.com"
] | noreply@github.com |
cfd3d5f4f9fcc6162de1f2a40575115b79e78764 | 20cbd7a6b383dbd810daccc08415c0564919f198 | /utils.py | 2d10bb5a9ff03b46060cd880ae47903737b258d8 | [] | no_license | dserbano/kmeans-movielens | 6df446f7775856d7121231296139d751c27d4bd7 | 77ea71210a3e79714dff9377d0509b8508ec9673 | refs/heads/master | 2023-03-05T02:47:24.285061 | 2021-02-06T01:06:52 | 2021-02-06T01:06:52 | 336,424,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,895 | py | import csv, time, sys, math, os
csv.field_size_limit(100000000)
def jaccard_similarity(list1:list, list2:list):
intersection = len(list(set(list1).intersection(list2)))
union = (len(list1) + len(list2)) - intersection
return 1 - float(intersection) / union
def cosine_similarity(v1, v2):
sumxx, sumxy,... | [
"32792904+askdanserbanoiu@users.noreply.github.com"
] | 32792904+askdanserbanoiu@users.noreply.github.com |
c7c68f1664523cb917e247b8cbbf5ae6c9e0f1b1 | f3cd3a5c0ae8c94b602d522f861c278099cfaff3 | /demo.py | 231c46474532280e6d6d098031b9d290aca0f9f7 | [
"MIT"
] | permissive | edkirin/infoicer | b4747f3afda728f1cc8a149c1ce28fef06a5b6b7 | 809b26eb583d5725b5cccf62880a3137fed60a1a | refs/heads/master | 2022-11-28T23:50:09.081914 | 2020-08-17T16:51:04 | 2020-08-17T16:51:04 | 288,054,878 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,766 | py | from infoicer import Invoice, InvoiceItem
import random
from decimal import Decimal
#**************************************************************************************************
if __name__ == "__main__":
# define some products for demo
FOOD_ITEMS = [
"Cheese", "Ham", "Spam", "Egg",
]
... | [
"edkirin@gmail.com"
] | edkirin@gmail.com |
6107eddf45a758a68b477a07ff3d7ac07246ff18 | cc25dd2bacb03f1e2db27cd3a9a2e4987fca2be3 | /Programmers/skill_tests/dev-mat/3.py | 6f3396582a16bccec54a9b1c3330f35e87292849 | [] | no_license | ody1205/Daily-Coding | 48843ada58c88db62ef85f84bb0957d07613c42c | 1ed20b3ee98298885806b6b13ff63a344fffba2f | refs/heads/master | 2020-12-04T22:15:25.369395 | 2020-02-26T19:54:25 | 2020-02-26T19:54:25 | 231,918,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,896 | py | '''
흰색 또는 검은색 모자를 쓴 사람들이 한 줄로 서있습니다.
모든 사람은 바로 앞, 뒤에 있는 사람이 쓴 모자 색만 확인할 수 있으며,
자신이 쓴 모자가 무슨 색인지는 알 수 없습니다. 물론, 가장 앞에 있는 사람은 바로 뒤에 있는 사람이 쓴
모자색만 확인할 수 있으며, 가장 뒤에 있는 사람은 바로 앞에 있는 사람이 쓴 모자색만 확인할 수 있습니다.
이때, 가장 앞에 있는 사람부터 자신이 본 검은색 모자 개수를 말하기 시작했습니다.
첫 번째 사람 : 나는 검은색 모자를 x개 볼 수 있어
두 번째 사람 : 나는 검은색 모자를 y개 볼 수 있어
...
마지... | [
"ody1205@gmail.com"
] | ody1205@gmail.com |
6e63dc2d7c615b9ff60d7283abe6ce6e21ba4f8a | d30fba76ba0fb80fcda8fde9871ee60268bd52f2 | /utils/testList.py | 353c95863250cb0347d52b3c9664821ff016992b | [] | no_license | xicunyang/PyScrapy | 4fa322b6fe718320ac8500abffd7d5326f51fe69 | 4d1560c6203728506914d5752c5b88bfa05d7e39 | refs/heads/master | 2020-04-07T02:33:04.432646 | 2018-11-18T07:34:20 | 2018-11-18T07:34:21 | 157,980,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | list = [{"'1'": "'111'"}, {"'2'": "'222'"}, {"'3'": "'333'"}]
for i in list:
i = str(i)
i = i.replace("{", "")
i = i.replace("}", "")
i = i.replace("'", "", 4)
i = i.replace("\"", "", 4)
print(i)
print(type(str(i)))
def testClass():
print("this is my class")
| [
"yangxicun@jsh.com"
] | yangxicun@jsh.com |
fc09d38435576a5af34608ba61637f27996fd791 | 04de0ecf8dc0d559242fb88b422d78cb621b7144 | /Box detection/RectangleDetection.py | 1e93c52b086293a048de0206e2a31b69b7929745 | [] | no_license | syuria/Computer-Vision | 4379721c7a16cebc5c9430e8738a6e15c614c70f | 5da7e6ba90602ec6a8dc0cabf91b0ea2bd4a3dbb | refs/heads/main | 2023-03-09T13:45:52.618201 | 2021-02-26T11:50:07 | 2021-02-26T11:50:07 | 342,516,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,785 | py | import cv2
import numpy as np
from PIL import Image
import json
import math
from transformation.autocontrast import Autocontrast
from transformation.grid_removal import GridRemoval
class RectangleDetection():
def __init__(self):
self.mean_w = []
self.mean_h = []
def remove_dupli... | [
"noreply@github.com"
] | noreply@github.com |
8cc563fdd2c6816ece639e5625d4989340d5e6e9 | e1398fc298f2b35201a3b775ded2a6274a9432f2 | /python_collections/dictionary/dict2.py | 2a3b34ad2fa29becfb40d2bb0b43dbea88c6bc69 | [] | no_license | anilasebastian-94/pythonprograms | ee082ccce36e7d5883c0188de9fcb479f7701ba5 | ada72e178f664394ff534e104cf64a8d60a82d6a | refs/heads/master | 2023-08-04T12:41:03.771964 | 2021-09-21T12:07:53 | 2021-09-21T12:07:53 | 403,753,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | # a='hello,world'
# b=a.split(',') #.....................splitting......................
# print(b)
# for i in b:
# print(i)
#dictionary
#keys are unique,values duplication allowed
#keys same type
#mutable
#keys homo
#values hetero
#nesting possible
a={1:20,2:20,3:{'name':'Anila','age': '26'}}
print(a) | [
"anilaseban5001@gmail.com"
] | anilaseban5001@gmail.com |
81e42fc296b652fd8fd06add7fbc81f454a79daf | d220ae894e40f20fb70ef60aa24e29edefbab364 | /Python Scripts/script_1_prepare_inputs.py | 12ded98a0355769df670e652c55f275a381960bf | [] | no_license | aronmandrella/classification-of-percussive-sounds-using-convolution-neural-networks | 3c6ae41d107b8f8a34d6a4f274553a2e1f637ce0 | b4c7542279e33ab0316b34f01373fbe5a906a159 | refs/heads/main | 2023-01-23T23:30:54.205007 | 2020-11-28T10:39:43 | 2020-11-28T10:39:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,711 | py | # SKRYPT GENERUJĄCY RÓŻNE WYKRESY UŻYTE W PRACY
import config
from pymodules.audiohelpers import *
from pymodules.utilities import *
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
import soundfile as sf
import librosa
import librosa.display
from timeit import default_timer as timer
import time
fr... | [
"aron.mandrella@gmail.com"
] | aron.mandrella@gmail.com |
9ed32859540a3be231e4c075717f88ae4e513b0d | c6cef87f0fc72df793b6151b3a60b60c026d9af0 | /measurements/forms.py | 41108293c5da115e1580f41279c5b5c442e8d104 | [] | no_license | rohitrajput-42/My_Map | 50ff393bd256d3bc922b2601aaad845d1a5c1094 | 22605ba8cea5f709bc6dc9f686431bd0d89d541e | refs/heads/main | 2023-06-05T15:15:02.206103 | 2021-07-01T04:26:48 | 2021-07-01T04:26:48 | 381,810,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | from django import forms
from django.forms.models import ModelForm
from .models import Measurement
class MeasurementModelForm(forms.ModelForm):
class Meta:
model = Measurement
fields = ('destination',)
widgets = {
'destination': forms.TextInput(attrs = {'placeholder': 'Enter yo... | [
"rohit1471997@gmail.com"
] | rohit1471997@gmail.com |
f3e99b533e4cd59eba64d710a77b47765eade7e2 | 60d40a4cdc13601e645c76b93783c9735ef5dee5 | /.direnv/python-3.5.0/bin/pygmentize | 25efca908be832090c96244dcc69c1e8c92666a6 | [] | no_license | BarnetteME1/honey-nut-clusters | 8f6bda0584d495819ec27607dd9b4590a6096817 | 189ecebe72b44ffb3a091c3efb9ce9cbc30d6b91 | refs/heads/master | 2021-01-15T10:40:59.402233 | 2015-10-17T21:55:36 | 2015-10-17T21:55:36 | 44,392,116 | 0 | 0 | null | 2015-10-16T14:57:47 | 2015-10-16T14:57:46 | null | UTF-8 | Python | false | false | 291 | #!/Users/MatthewBarnette/iron_yard_hw/honey-nut-clusters/.direnv/python-3.5.0/bin/python3.5
# -*- coding: utf-8 -*-
import re
import sys
from pygments.cmdline import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"BarnetteME1@gmail.com"
] | BarnetteME1@gmail.com | |
d0f21faa112d91d74b75b88077b1a3802cf07908 | 303d119180421b6cb7b2fbbf41f6c4959b54b2cd | /MON/osm_mon/test/OpenStack/test_alarming.py | 92c21f6ec0702d06e18ec834d7b958c83b7e5da6 | [
"Apache-2.0"
] | permissive | usmanjavaiduj/OSM | 2c508b1fcf89ccc80f7b9054743e9ceeb389f056 | 8a65c37e90cec9e896d52ea41eded8ac3541e063 | refs/heads/master | 2021-08-28T04:46:26.803468 | 2017-12-11T07:40:17 | 2017-12-11T07:40:17 | 106,265,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,280 | py | # Copyright 2017 iIntel Research and Development Ireland Limited
# **************************************************************
# This file is part of OSM Monitoring module
# All Rights Reserved to Intel Corporation
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except... | [
"usmanjavaid9423@gmail.com"
] | usmanjavaid9423@gmail.com |
58526088e3fb0f233400ca6bb5eefe05cf3affce | aeeaf40350a652d96a392010071df8a486c6e79f | /archive/python/Python/binary_tree/236.lowest-common-ancestor-of-a-binary-tree.0.py | 439011598294d17040086a1c52c0b366b1525b26 | [
"MIT"
] | permissive | linfengzhou/LeetCode | 11e6c12ce43cf0053d86437b369a2337e6009be3 | cb2ed3524431aea2b204fe66797f9850bbe506a9 | refs/heads/master | 2021-01-23T19:34:37.016755 | 2018-04-30T20:44:40 | 2018-04-30T20:44:40 | 53,916,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,095 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
# what if p or q not in the tree
class Solution(object):
def lowestCommonAncestor(self, root, p, q):
"""
:type root: TreeNode
... | [
"luke.zlf@gmail.com"
] | luke.zlf@gmail.com |
7b17fec05ad60d05be9a2ec96d2eaba149110852 | a19639efddd0af81af69ca8780c8409025919d70 | /data_extractor.py | 827909ec0532f9c574ca0b1bb5ee9402cbf87a59 | [] | no_license | matgd/covid19-rpi-lcd | e81a0b541d205e8dc6129ee1a89a977106ca91a2 | 1c6c959b339f7d8ab6ce49da3db85389638b1055 | refs/heads/master | 2021-04-05T17:07:37.956778 | 2020-06-22T22:32:52 | 2020-06-22T22:32:52 | 248,580,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,248 | py | import requests
from bs4 import BeautifulSoup
def get_cases():
page = requests.get('https://www.worldometers.info/coronavirus/')
soup = BeautifulSoup(page.content, 'html.parser')
total_table_row = [table_data.get_text() for table_data in soup.find('td', string='World').parent.findChildren('td')]
tota... | [
"matgd@users.noreply.github.com"
] | matgd@users.noreply.github.com |
5e7a6a4b76fdd1a6a8bfd9dd605361615f08fc56 | 142cb49fa18c66560daee7160002730cbe36f86d | /1_programming_for_everybody/4week/2.3_exercise.py | 1e7ec325f2899126cc4808c353edb41d433943ee | [] | no_license | cocka/py4e | 5e09b67e80a893ec33355655dfd23834815ee629 | 0f5616366fef1ae985f9e269e5dacf09d9462abb | refs/heads/master | 2023-03-03T09:30:48.741485 | 2021-02-11T17:53:01 | 2021-02-11T17:53:01 | 285,381,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | #!/usr/bin/python3
#2.3 Write a program to prompt the user for hours and rate per hour using input to compute gross pay. Use 35 hours and a rate of 2.75 per hour to test the program (the pay should be 96.25). You should use input to read a string and float() to convert the string to a number. Do not worry about error c... | [
"cocka"
] | cocka |
0eeb278e256cddc373e80cf7dd0b3047dfadde96 | 0d79d849790b3ece367d39c1fd66b7da4212fc9c | /InvoiceApp/admin.py | a74102282f94142fe95873ef2704a78ef5467cdf | [] | no_license | shifat151/Invoice_Project | 5fb0136cb5abb64d989965b51cf10d914ea88de6 | 17f31c2f18ed6088f623f851f38be85b476c3736 | refs/heads/master | 2023-08-22T14:08:58.902028 | 2021-10-08T18:10:50 | 2021-10-08T18:10:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | from django.contrib import admin
from . models import invoice
# Register your models here.
admin.site.register(invoice)
| [
"shifat151@gmail.com"
] | shifat151@gmail.com |
918e832679b2529c4438c29396903f55dd75b338 | fc17d1d133fb89f5cb7b3eee29b0a0a4b84e27d8 | /sudoku/sudoku.py | f2a098311b210928502e808be93cbed7abdbfcca | [] | no_license | syfluqs/lazy-gaming | a4d9d58b4bbd5f62f4eb18621c336adc34d9ebe7 | 22542a4ed0d37a131e32a0a6a8111c3920b78178 | refs/heads/master | 2021-01-16T21:50:35.014478 | 2016-07-08T09:32:40 | 2016-07-08T09:32:40 | 60,830,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,350 | py | #!/bin/env python2
import time
t = time.time()
from cv2 import *
#for importing custom modules
import sys
sys.path.insert(0, '../lib')
import android_connect
import gridmaker
import numpy as np
import subprocess
import os
canvas = (1052, 1124)
buttons = ((350,1410), (542,1388), (750,1388), (316,1606), (548,1598), (... | [
"syfluqs@gmail.com"
] | syfluqs@gmail.com |
04617235f8e35b4db8423d3f8c847d3564c00932 | 88c2d6012518a26ee9a41455b659f732ab0527f6 | /Day6/day6.py | f180263981a75d30044013505223391ba38cf8a0 | [] | no_license | afoix/advent-calendar-2020 | d580d03fe83aa93459d11e68bd4d514e7a071acf | 9d01e85220b9c30a408efb5732f75de06323fb2d | refs/heads/main | 2023-02-13T09:46:22.528018 | 2021-01-13T09:42:24 | 2021-01-13T09:42:24 | 317,563,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | with open('Day6/surveyAnswers.txt') as file:
groups = []
group = []
for line in file:
line = line.strip()
if len(line) == 0:
groups.append(group)
group = []
else:
group.append(line)
groups.append(group)
total_any = 0
total_all = 0
... | [
"richardf@unity3d.com"
] | richardf@unity3d.com |
0de7c24ee9fae575a14b085ee87f2fc01a7d65c4 | f3c249584b6643124eb8e61f44478476fb0922fd | /simulacao (1).py | 3f825f60918081d19745fbc5852c2d8e60c42b0a | [] | no_license | Lu1zSouza/Luiz_Jairo | 33bded8a74dc37cc173655830735823c55753e56 | ee99a67e33b90d550122980db573fad840a2e32c | refs/heads/main | 2023-04-27T03:10:26.183739 | 2021-05-05T11:15:38 | 2021-05-05T11:15:38 | 364,550,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,711 | py | # -*- coding: utf-8 -*-
#!/usr/bin/env python3
from __future__ import print_function
import platform, subprocess, socket, sys, os, time, json
from datetime import datetime
# import mercury
import _thread
import threading
import queue
tempoMinimo = 30.0
queueAux = queue.Queue(maxsize=1000)
queueClassRace = ... | [
"noreply@github.com"
] | noreply@github.com |
b5e54467a6848fcc3a657b7d4e2bba9a7492463d | 728321352ede039df40fef747030723e8dfb5dff | /blockchain/NFT/views.py | aa93f49d4e236bb06284a537086863c1d0f56164 | [] | no_license | sylvester19/NFT | 389391d869bb87dfbca1b08c734b0371f87f3543 | 13f545d2d160580c41b4274c8c7aee62d3704624 | refs/heads/main | 2023-07-14T23:49:51.960539 | 2021-08-26T07:05:57 | 2021-08-26T07:05:57 | 382,003,100 | 0 | 0 | null | 2021-07-01T11:00:06 | 2021-07-01T11:00:06 | null | UTF-8 | Python | false | false | 2,147 | py | from django.shortcuts import render,redirect,HttpResponseRedirect
from django.contrib import messages
from django.contrib.auth.models import User,auth
# Create your views here.
def login(request):
if request.method== 'POST':
username=request.POST['username']
password=request.POST['pass... | [
"noreply@github.com"
] | noreply@github.com |
4ec3f0866043f8485951b1f321bcb8527b0851fa | 622a9f8cc7ceb9023487b4157722dab83afc317f | /fund/using_seq.py | 47d37d4e066e2950b8a70a54f392ee8ef4ea2f14 | [] | no_license | TonyDoen/python_code_review | 9200c956218130251ca71366b54ef61a519423ac | 7b6bf78474a959c2038dfae0db9f7cc6a9d8473c | refs/heads/master | 2020-04-06T06:56:21.960531 | 2019-04-10T10:47:04 | 2019-04-10T10:47:04 | 53,745,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | #!/usr/bin/python
#Filename: using_seq.py
shoplist = ['apple', 'mango', 'carrot', 'banana']
for i in range(0, len(shoplist)):
print 'Item %d is %s' % (i, shoplist[i])
for item in shoplist:
print 'got %s' % item
for i in range(0, len(shoplist)):
print 'Item %d is %s' % (-i, shoplist[-i])
print 'Item 1 to 3... | [
"tonydoenzhd@gmail.com"
] | tonydoenzhd@gmail.com |
39a515789cb747eb04ed9ab3859eaf13e9b9c6a9 | 88688bccd1f25f11d579fa9362b882350c158f99 | /validators/validators.py | 8f7aa3e0e2eb1a71d1559678567650fac6d7cfdb | [] | no_license | AlexOUKS/BDF-API | 95b76abef334d962e5abf690cdc02234c2a88631 | cc223e88a739fe68f2a58fe5a669345e140e5448 | refs/heads/master | 2021-06-20T03:05:58.534537 | 2019-06-12T20:47:42 | 2019-06-12T20:47:42 | 177,008,928 | 0 | 0 | null | 2021-06-10T21:18:53 | 2019-03-21T19:11:41 | Python | UTF-8 | Python | false | false | 2,293 | py | from django.core.exceptions import ValidationError
from django.http import HttpResponseForbidden
import hashlib, json
class Validators:
@staticmethod
def is_type(value, value_type):
"""
Check if value is certain type
:param value: It can be list or a single value of anything
:p... | [
"ouksel.alexis@hotmail.fr"
] | ouksel.alexis@hotmail.fr |
34b733b2dcf8be458a490e1fb5d54a94dcd40832 | 60cb63fde3a1eb714c5a79e9836eb6b326de78e8 | /SIR_Model/TimeBasedCV.py | ca6d1f4ab9192b637dee564cfd2bd87b3dfcb073 | [] | no_license | jediXNavi/Disease_Outbreaks | 03e55425516da909d8092da7753f3d3ae67748cd | 5b8a5d978f3f21272e67a872e03daf9a702d950c | refs/heads/master | 2023-04-06T01:12:10.319402 | 2021-05-04T01:55:03 | 2021-05-04T01:55:03 | 364,112,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,150 | py | import pandas as pd
import datetime
from datetime import datetime as dt
from dateutil.relativedelta import *
class TimeBasedCV(object):
'''
Parameters
----------
train_period: int
number of time units to include in each train set
default is 30
test_period: int
number of time... | [
"nmm14@sfu.ca"
] | nmm14@sfu.ca |
a3d2adb14ba32f6f56f68e351100b73feb9258ce | 5b6e2985261e3d14d6dcd286be4b84a856b3544b | /Metrics_args/RDM_metrics_args-FY2018-Q1.py | a15770c019acc16973f7c18d93651a091f3a4bf6 | [] | no_license | rjaffe/rdm_metrics | 8324058c8bad81c9330a0520243ede612991098c | bbd83c66c029f14b3feb8c9d769d86b4cf36bbee | refs/heads/master | 2021-07-08T06:27:51.101975 | 2020-08-14T18:36:26 | 2020-08-14T18:36:26 | 51,225,108 | 5 | 5 | null | 2016-06-15T23:23:47 | 2016-02-06T22:25:02 | Python | UTF-8 | Python | false | false | 384 | py | # These are the arguments provided to the script
filepath = '/Users/rjaffe/Documents/RDM/RDM_Metrics/MetricsData/RITConsultingEngagementLog_Google-downloads/'
filename = 'Research-IT-Consulting-Engagements-Log_20171019_1544PDT.csv'
report_period_descriptor = 'the first quarter of FY 2017-2018 (July 1 through September ... | [
"rjaffe@berkeley.edu"
] | rjaffe@berkeley.edu |
8bc20e34b7b6406ab73023a5e70e877efc9a25fd | a51933aed925e4700ec2be6ea61d45adc55a62c4 | /reconcile.py | 5f9b14b598a56fa58b252e3152c621291354573b | [
"BSD-3-Clause"
] | permissive | barmintor/lc-reconcile | a0e9e95e2cddf42435caf1eba6daa315904c710e | d79df68881351d65f9ff79537aff3abe2b9bd596 | refs/heads/master | 2021-01-22T14:39:45.841455 | 2015-10-06T23:16:50 | 2015-10-06T23:16:50 | 43,792,342 | 0 | 0 | null | 2015-10-07T03:07:12 | 2015-10-07T03:07:12 | null | UTF-8 | Python | false | false | 4,484 | py | """
An OpenRefine reconciliation service for the id.loc.gov LCNAF/LCSH suggest API.
"""
from flask import Flask, request, jsonify
from fuzzywuzzy import fuzz
import json
from operator import itemgetter
import rdflib
from rdflib.namespace import SKOS
import requests
from sys import version_info
import urllib
#Help text... | [
"cmharlow@gmail.com"
] | cmharlow@gmail.com |
bbbc8ede49f033fcaa8cfe5937eff44ec53222a0 | f9462f3768fa058bd895a56b151da694664ce588 | /examples/201_visualize_model_rhino.py | acacdc3daa62bc676a7299833e03bf0c92d3c5dd | [
"MIT"
] | permissive | ryanpennings/workshop_swinburne_2021 | 16a9a7e2c7134832f8f714b7b430376f1b67dfb2 | 820ef4e36e73ac950f40e1846739087180af2e1c | refs/heads/main | 2023-05-31T16:35:16.535310 | 2021-06-17T06:24:51 | 2021-06-17T06:24:51 | 377,373,107 | 0 | 0 | MIT | 2021-06-17T06:24:51 | 2021-06-16T04:45:02 | null | UTF-8 | Python | false | false | 256 | py | from compas_rhino.artists import RobotModelArtist
from compas.robots import RobotModel
model = RobotModel.from_urdf_file('models/05_with_colors.urdf')
artist = RobotModelArtist(model, layer='COMPAS::Robot Viz')
artist.clear_layer()
artist.draw_visual()
| [
"casas@arch.ethz.ch"
] | casas@arch.ethz.ch |
08baf8f70e620319199c50e5ae8ad80149de8997 | da66fd0d9ab4f539d01cf2af51dfd623c1539359 | /source/module/constant/direction.py | 3b16c03e53bec43487dd565144a29e8ef29f2774 | [] | no_license | aburi6800/Python-OnyxOfBlack | deafc5b829d5286649277e216f3b6eee15ef8bb3 | d58217162db7e0f4eb7a68ecbe19de0d35f7321f | refs/heads/master | 2023-06-20T12:23:26.404989 | 2021-06-12T17:55:48 | 2021-06-20T01:41:56 | 268,031,689 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | # -*- coding: utf-8 -*-
class Direction():
'''
方向のクラス
'''
NORTH = 0
EAST = 1
SOUTH = 2
WEST = 3
| [
"aburi6800@gmail.com"
] | aburi6800@gmail.com |
a1e209bed0477352863b8d389058b400cebac1b3 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/eve/client/script/ui/shared/info/panels/__init__.py | a211e9aae9803d9b8c33f8e2fe8f3a05f3e5139b | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 143 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\ui\shared\info\panels\__init__.py
pass
| [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
96c96c237b83d90f246819d0368c9419fad4eb26 | 8815afb5f3f8b87b69419f4d284af7c7b6376b53 | /venv/bin/cm2xml | 0d95a029effa39c74d9ba5bcd512240cf7738a9f | [
"MIT"
] | permissive | phillip1029/jobpy | e5af973cc7288c3f7326de91d9559bb4d1284caf | 838085f5b107518534c63c2a593827d9a4b7ba60 | refs/heads/master | 2022-10-13T16:48:42.611026 | 2020-06-10T01:52:33 | 2020-06-10T01:52:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | #!/Users/rodrez/Desktop/jobpy/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from recommonmark.scripts import cm2xml
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(cm2xml())
| [
"rodrez@Fabians-MBP.fios-router.home"
] | rodrez@Fabians-MBP.fios-router.home | |
734cc8035d7bc3c708936a0312e11324158cca51 | 1f5cb9f9f3de8b69456eaa56538fd3309d3d3f9b | /chapter_2/13.scrape_rss.py | 3bd64a06600a4ff1bdd4de6721d8188205f2cf3c | [
"MIT"
] | permissive | XXQ2/CrawlAndScrape | 4eb0de742a149b931ab582c8bdd38adbdb02d917 | feb8d2cfef5c41b2e54df4c7d78fa505b2c40bc2 | refs/heads/master | 2020-03-29T13:32:52.147822 | 2018-10-27T13:59:20 | 2018-10-27T13:59:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | # ==ElementTreeでRSSをパースする==
from xml.etree import ElementTree
# parse()でファイルを読み込んで、ElementTreeオブジェクトを得る。
tree = ElementTree.parse('rss2.xml')
# getroot()でXMLのルート要素(この例ではRSS要素)に対応するElementオブジェクトを得る
root = tree.getroot()
# channel/item要素以下のtitle要素とlink要素の文字列を取得し、表示する。
for item in root.findall('channel/item'):
tit... | [
"asbo0502@gmail.com"
] | asbo0502@gmail.com |
78187ebeb8c12a7d7dbf3d1b95bade2839c209da | d7b5d81c9cc0dbf256b370e1fcc6e74b0a15f6ee | /homepage/migrations/0001_initial.py | 1628ad285c756301cde6e73f4ca74f3c6719a82c | [] | no_license | Uncensored-Developer/Homepage | b8471ef68bbef34d0ef07609f0cfcf731431bd1a | f29390cf17a8eea9388ea763260a83b34c4b3035 | refs/heads/master | 2021-01-06T19:57:09.150606 | 2020-02-16T23:16:36 | 2020-02-16T23:16:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | # Generated by Django 3.0.3 on 2020-02-15 16:56
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
('id', models.AutoField(... | [
"19627177+OkayJosh@users.noreply.github.com"
] | 19627177+OkayJosh@users.noreply.github.com |
9b3fc0aadb7a94e0c3921ce7159d230d74acf942 | c89e59b4d018e8a2d7dc0dbc3bb7a3768024f849 | /before2021/python/190922/2_D4_1824_혁진이의프로그램검증.py | 35739cf8ff47cfc4a6a46240d6cabeed99ea85a6 | [] | no_license | leeiopd/algorithm | ff32103a43e467a5a091257cc07cf35365ecbf91 | e41647d3918c3099110d97f455c5ebf9a38d571e | refs/heads/master | 2023-03-08T23:46:34.919991 | 2023-02-22T09:39:46 | 2023-02-22T09:39:46 | 166,131,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,328 | py | '''
Samsung Collegiate Programming Cup은 Samsung이 매년마다 개최하는 대학생 프로그래밍 축제다.
이 축제의 우승자는 Samsung에 입사할 수 있지만, 나머지 사람들은 시공의 폭풍 속으로 빠지게 된다.
이 축제에서 참가자들은 자신이 선호하는 언어로 프로그램을 작성할 수 있다.
혁진이는 자신이 개발한 언어 혁셈블리어를 이용해 대회에 참가했다.
축제에서 꼭 우승하고 싶은 혁진이는 자신이 작성한 프로그램이 결국에는 멈출 수 있는지 확인하고 싶다.
혁셈블리어는 다음과 같이 동작한다:
- 프로그램이 ... | [
"leeiopd@hanmail.net"
] | leeiopd@hanmail.net |
5c2306a88b97fd6bb62e2025e3d4ad2915c671fa | 6e4d01f551128e840cd50fbc7230b64129f14c22 | /helloscrapy/spiders/example.py | 364fadce04d0d8134a5a8247038d4eac6d95e32e | [] | no_license | seedinwind/spiders | 426ad520a7e97f97fbe5d8dc707209aa1f3c21cc | af3986684eec80b4d9f414194a17c256a19e3e32 | refs/heads/master | 2022-02-02T00:17:24.610549 | 2019-07-31T16:08:44 | 2019-07-31T16:08:44 | 106,569,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,763 | py | # -*- coding: utf-8 -*-
import scrapy
from helloscrapy.items import ImageItem
class ExampleSpider(scrapy.Spider):
name = 'example'
allowed_domains = ['www.53reniao.com']
start_urls = [
'http://www.53reniao.com/forum-35-1.html'
]
def parse(self, response):
base_url = 'http://w... | [
"1211615659@qq.com"
] | 1211615659@qq.com |
71f784fafd4c5c667c1e8e2902ba0d4e11e81a02 | bd49cd7f88151faf7434e3ee3e911ed8d489262f | /SpellChecker.py | ea59769e7922a055a42b1701e43e2e47110dd73d | [] | no_license | shu1396/Spell-Corrector | 19259dbcddc94e10afcea13e7c6d2b400d3acbc2 | f75f05a41b5200b71d6c7cd1c807fc40d597e762 | refs/heads/master | 2020-03-27T00:58:46.761103 | 2018-09-07T16:20:59 | 2018-09-07T16:20:59 | 145,567,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py |
import re
from collections import Counter
def words(text): return re.findall(r'\w+', text.lower())
WORDS = Counter(words(open('dictionary.txt').read()))
def P(word, N=sum(WORDS.values())):
"Probability"
return WORDS[word] / N
def correction(word):
"Most proable"
return max(candidates(word), key=P... | [
"noreply@github.com"
] | noreply@github.com |
1784137b85098c5d96494a7fff02341ed42f7387 | 603e340a1718ce68b02a9e48e1142c2cfb48e937 | /apuestas/setup.py | 2706af3f60b15be493c7e72e97a018e0ca128231 | [] | no_license | Andypsamp/ApuestasPythonFinal | bb95e527c4fa8a637d6a30561f1505024a07eb30 | a28b2d02a715a0fb07ddd8e277cbd7385812ba02 | refs/heads/master | 2021-01-21T08:24:05.666395 | 2016-04-07T09:22:18 | 2016-04-07T09:22:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | __author__ = 'dabalrodriguez'
from distutils.core import setup
setup(name="Aplicacion de ejemplo",
version="0.1",
description="Ejemplo del funcionamiento de distutils",
author="Raul Gonzalez",
author_email="zootropo en gmail",
url="http://mundogeek.net/tutorial-python/",
license="GP... | [
"dreylopez@danielcastelao.org"
] | dreylopez@danielcastelao.org |
212e3c7f9eed689458556700d2b64f75b0d4b956 | 425aba1a7c134c78e8d5710890d426d7d6b0bd45 | /tests/settings.py | f5b9b7ceb97006a73fcfd1b1add3b90442fa9338 | [
"BSD-3-Clause"
] | permissive | curiousTauseef/django-multiple-form-view | bd1f4558879382e9ae1b6c173ecbb2102350c12e | de13d124d913f12aa01aeeb6ea2f7b1768cd93cb | refs/heads/master | 2021-08-19T22:28:12.921932 | 2017-11-27T15:58:16 | 2017-11-27T15:58:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = 'not-a-secret'
DEBUG = True
INSTALLED_APPS = [
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.staticfiles',
'testapp',
]
MIDDLEWARE = []
ROOT_URLCONF = 'testapp.urls'
TEMPLATES = ... | [
"rpkilby@ncsu.edu"
] | rpkilby@ncsu.edu |
9623a74d98def260c059301a565c154ae2d1e9e3 | 35f547809f573be442ead7d6b24b858d77533bec | /Knn and Decision Tree Algo/knn_classification_iris.py | 60de27118619f033b25efd4103185f15734ad5ac | [] | no_license | biranchinarayanpadhi/Python-workspace | da56e3c174c50a7f005bcadb0c84dfab1d73fed8 | df92772cf4e6915dad2ad8fc2014e0d8c90a1c62 | refs/heads/master | 2020-03-18T14:47:04.771813 | 2018-08-26T11:19:37 | 2018-08-26T11:19:37 | 134,866,771 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,068 | py | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from sklearn.model_selection import train_test_split
def knn_iris():
print("KNN algo")
names=['sepal-length','sepal-width','petal-length','petal-width','Class']
data_frame=pd.read_csv('IRIS.csv',names=names)
data_frame.he... | [
"noreply@github.com"
] | noreply@github.com |
f38d148553f05dc2b848ef3d75808957856f3ebe | 638488a2c59c3172c8a7112bbacff58a8c8881f5 | /root_cp.py | 6f0b8f2dd26e42b5c179c6d4ee33371bdf3cf93b | [] | no_license | achristensen6/ps3-decr-stuff | 82ba1305876ddf9a63ac2e52544b29a31b43869b | 706c8eba3815e5ca16e2528d7f58cb87fc279920 | refs/heads/master | 2021-05-27T01:28:26.396182 | 2018-10-31T23:22:00 | 2018-10-31T23:22:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | #!/usr/bin/env python2
import requests
import sys
def run_cmd(host, user, passwd, cmd):
print 'rooting %s' % host
path = 'http://%s/cgi-bin/admin/save_setting.cgi?lang=english' % host
cmd_shell_h4x = '; %s' % cmd
files = {
'setting': (None, cmd_shell_h4x),
'confirm': (None, ''),
... | [
"jevinsweval@gmail.com"
] | jevinsweval@gmail.com |
da11f6effc0ec923278550577b66d9f3847a31a4 | 19993dd89fd6f9dac097a53afa0e182ce6de14cb | /models/eweights.py | f70fba585f35db352b62ef695402806501bee0cf | [
"Apache-2.0"
] | permissive | RemiBe/crack | 5016b69fb4b46ce278fbb6dae6623a254b1c308b | 334df92c5598f2a3249cae022e570ab32068ba79 | refs/heads/master | 2020-03-20T11:40:24.112572 | 2018-06-20T17:05:59 | 2018-06-20T17:11:18 | 137,408,836 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,148 | py | """Edge weights.
"""
__author__ = "Rémi Barat"
__version__ = "1.0"
import math
import random
from crack.models.weights import condition_models, format_crit
#####################################################
### Format the models for init_EWeights functions ###
##################################################... | [
"remibarat@yahoo.fr"
] | remibarat@yahoo.fr |
43112d3736b5f00060fe0a314fe00e4785f92ccf | f7827259ab40a903ac52cd77176be47c35e22125 | /anunidecode/x25.py | 36e19ceaedb35719ca055c0643f3b064986aceb7 | [] | no_license | DevTable/anunidecode | 143fec2df17c494aa3adbc0bfad9de5c0c7011eb | d59236a822e578ba3a0e5e5abbd3855873fa7a88 | refs/heads/master | 2021-01-10T19:20:45.172892 | 2014-08-01T19:14:46 | 2014-08-01T19:14:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | page = [
'-', '-', '|', '|', '-', '-', '|', '|', '-', '-', '|', '|', '+', '+', '+', '+',
'+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+',
'+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+',
'+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '... | [
"jake@devtable.com"
] | jake@devtable.com |
1dce5d75d803cf778d069adab0b503f1590387b8 | 537d67757a51e49339341ebde0ad55b3106bed14 | /flask/fundamentals/hello_flask/server.py | 250d18f9c69b9e0e7c7a36ce139cfae488ee0e64 | [] | no_license | luisendres/python | 56041725efb01f036e49205f626f3d41c3acaef8 | 2c127b5086ae024f41fb2179fbb2b62291e4e344 | refs/heads/main | 2023-07-07T05:04:05.945464 | 2021-07-29T17:28:44 | 2021-07-29T17:28:44 | 383,918,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,828 | py | from flask import Flask, render_template # Import Flask to allow us to create our app #added render_template
app = Flask(__name__) # Create a new instance of the Flask class called "app"
# @app.route('/') # The "@" decorator associates this route with the function immediately following
# def hello_world():... | [
"luisendres@yahoo.com"
] | luisendres@yahoo.com |
e8d26827969439d68d46659a5c62f9f4f4ae6f09 | c301c7672b4ea28dac34cf9050454fb95556d228 | /colors/colors.py | cf981fb1be426b14c0276e0d1e654a948b6895cd | [
"MIT"
] | permissive | gyakoo/colors | 19b3250da2f4c9066f9d14f8f6df4684c6748fa1 | c1bea444726df8425328b50b9c089b7e6cfc9012 | refs/heads/master | 2021-01-18T02:23:49.642808 | 2016-06-08T02:48:27 | 2016-06-08T02:48:27 | 58,996,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,133 | py | '''
Copyright (c) 2016 gyakoo
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
subl... | [
"gyakoo@gmail.com"
] | gyakoo@gmail.com |
781b3f9b706daa0a40d01ceb66f8aa61fe6d04d3 | c3bd61755984f9fb48e09e335051af7323bba17f | /lesson_5/task_7.py | d274cfb952883da8aef2f2c1394f2ca4e7bc0baf | [] | no_license | mifrok/GeekBrainsPython | 1a7930147c79c1e1eee455f6a9fd957d5982fe00 | c46600b6ed92f6530e856abfae254c1ce8e3baf6 | refs/heads/master | 2022-12-16T23:36:56.347476 | 2020-09-19T03:18:49 | 2020-09-19T03:18:49 | 290,330,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,505 | py | """
Создать вручную и заполнить несколькими строками текстовый файл, в котором каждая строка должна содержать данные о
фирме: название, форма собственности, выручка, издержки.
Пример строки файла: firm_1 ООО 10000 5000.
Необходимо построчно прочитать файл, вычислить прибыль каждой компании, а также среднюю прибыл... | [
"mifra@mail.ru"
] | mifra@mail.ru |
9146a6245444ed68e77dfcc3bfedec1f909c7f3e | c7ea7a55a3ec0b73389403b063ba3a5282c28dca | /eve/exp/runners/hypsearch.py | 95e073da76957ffc3a18177135f5623ed0535957 | [
"MIT"
] | permissive | rooa/eve | b9d9fdec5237b291e8068e5f4fb0f247e234f8ab | 06180921d137b015da1acca23dd2d490119a1c7b | refs/heads/master | 2021-03-22T02:14:06.885893 | 2018-06-11T16:05:26 | 2018-06-11T16:05:26 | 94,851,273 | 4 | 2 | MIT | 2021-08-05T18:47:41 | 2017-06-20T04:57:03 | Python | UTF-8 | Python | false | false | 3,032 | py | """main.py: runner for hyperparameter sensitivity experiment.
This file runs Eve over a grid of (beta, c) values, and collects
the results.
"""
import itertools
import json
from argparse import ArgumentParser
import numpy as np
from eve.exp.runners.utils import EXP_SEED
np.random.seed(EXP_SEED)
import pandas as pd
... | [
"jnkoushik@gmail.com"
] | jnkoushik@gmail.com |
74300caf85b88f9ac5f4886af83c8e4a282865e4 | e8752fe75bf1bdf939642f2661679c5bd538be76 | /tests/player/test_base_player.py | 33380a18ad738bed6338e96b8cd9837dc7e23315 | [
"MIT"
] | permissive | Murthy10/pyschieber | 7d4c95b8c66e5802d624baa1dcc69f47b5cfcb1b | f9db28c9553b8f321f6ed71cff04eff7879af5f6 | refs/heads/master | 2023-06-03T22:34:27.518188 | 2018-11-25T10:51:32 | 2018-11-25T10:51:32 | 115,740,322 | 6 | 3 | MIT | 2021-06-11T17:45:24 | 2017-12-29T17:10:40 | Python | UTF-8 | Python | false | false | 290 | py | from pyschieber.player.base_player import BasePlayer
from itertools import count
def test_base_player_counter():
BasePlayer.class_counter = count(0)
base_player = [BasePlayer(name=i) for i in range(4)]
for i, player in enumerate(base_player):
assert player.name == i
| [
"samuel.kurath@gmail.com"
] | samuel.kurath@gmail.com |
17092c071cf752cfa5953bed7125cf311ef11293 | a9b6243dad4b86f75401a6ee0d6e8505fa57aa83 | /test.py | f02e47c3ec23bca07523acac72bf183601844ae1 | [] | no_license | minji-o-j/system-for-visually-impaired | b4503078b9a74896a3786683f9f14485466bc7d5 | 748b9cdf97259d7f3d0cd5d15167ad5a629f6089 | refs/heads/master | 2023-02-06T21:14:37.840155 | 2020-12-30T11:03:49 | 2020-12-30T11:03:49 | 256,681,461 | 7 | 5 | null | 2020-12-06T08:27:27 | 2020-04-18T06:02:48 | Jupyter Notebook | UTF-8 | Python | false | false | 4,461 | py | from __future__ import division
from models import *
from utils.utils import *
from utils.datasets import *
from utils.parse_config import *
import os
import sys
import time
import datetime
import argparse
import tqdm
import torch
from torch.utils.data import DataLoader
from torchvision import datasets
from torchvis... | [
"jminji98@gmail.com"
] | jminji98@gmail.com |
0961fac93b27d85b3fb6e6158ed2e5c800e49423 | 3f06c6afc00d9ffc63cc207945a81258cfe8e66d | /noth.py | 520ae79368697c8eee97e17b790c24d0c262ff31 | [] | no_license | vikimeradio/LearnBook | 5557cea17b03e849dee6c0c6cc57d41218e3147c | bb856bfa302bd986a282128603ba5b11fe8a40bf | refs/heads/main | 2023-06-12T10:23:35.938299 | 2021-06-11T11:52:49 | 2021-06-11T11:52:49 | 376,008,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,844 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'noth.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, QtGui, ... | [
"85742747+vikimeradio@users.noreply.github.com"
] | 85742747+vikimeradio@users.noreply.github.com |
d7f9fa116ae9850dd1cff244472d1e4bdd205cf3 | 087b207360db9d2e2332b616901c86341b8a8b52 | /examples/py_files/nagel_schreckenberg.py | ada97e9c16a30bb0d739d0075cdfd7e31fc79648 | [
"MIT"
] | permissive | anhnguyendepocen/intro_to_python_with_networks | a79dd5c3d517454e06690d521f49ae0ce9765f23 | 9d7d288ba492b5e18721465686afc48349e37be5 | refs/heads/master | 2022-04-08T06:22:16.550239 | 2020-03-20T14:04:21 | 2020-03-20T14:04:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,966 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#%% Import necessary modules
import numpy as np
from matplotlib import pyplot as plt
#%% Set the parameters of the problem
# Parameters of the simulation
T = 1000
# Parameters of the model
M = 1500
N = 350
v_max = 5
p = 0.3
# Create vectors with placeholder content ... | [
"apsql@outlook.com"
] | apsql@outlook.com |
e358ddaf603fdfd94022ac664dc50a014e6e81d9 | c293acb188701558c61743bbcf4dfd43378b8022 | /feedEngine/celery_app.py | dfb1eecaa7099d11828c045563a6d25a91e6e3c3 | [] | no_license | coldicefisher/feeds-server | dcb49a11277aaaf6a1c36ea303d376220211176f | e61268e1ca070468d75fd042caf5b2df92020779 | refs/heads/master | 2022-08-21T04:15:32.392067 | 2020-03-30T04:58:07 | 2020-03-30T04:58:07 | 250,743,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | from celery import Celery
from celery.schedules import crontab
app = Celery('feedEngine',
broker='pyamqp://rabbitmq:5672',
backend="db+postgresql+psycopg2://postgres:postgres@postgres_celery:5432",
# include=['feed_tasks']
)
# app.conf.beat_schedule = {
# "get-historical-data": {
# "task"... | [
"jameycharris@yahoo.com"
] | jameycharris@yahoo.com |
5de6886483e17860f2ea9ef46e40d6f080791c35 | 1de8ea707ae851cb43014f7ba8b6921d9d6fe714 | /controllers/nao_mirroring/nao_mirroring.py | 150c1e8d5a8cff94c265ec8310f409dc4031162b | [] | no_license | Yuki-Kurita/NAO_Mirroring-Simulation_Webots | ae598f01ef36da64408018869d48fcf19eb5f0f4 | abb048e0369c6c980b1a068488f70a0716a6d68f | refs/heads/master | 2020-06-25T19:54:31.658640 | 2019-07-29T08:37:40 | 2019-07-29T08:37:40 | 199,407,398 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 13,327 | py | from controller import Robot, Keyboard, Motion
class Nao (Robot):
PHALANX_MAX = 8
# load motion files
def loadMotionFiles(self):
self.handWave = Motion('../../motions/HandWave.motion')
self.forwards = Motion('../../motions/Forwards50.motion')
self.backwards = Motion('../../motions... | [
"kurita.yuki.kq7@is.naist.jp"
] | kurita.yuki.kq7@is.naist.jp |
b811df8852a8bc944150eb81bb5b2b5cdb6b8914 | 5cc954e27fd924da0f6f44e7d58691d612a77f80 | /coremltools/converters/mil/frontend/tensorflow/ssa_passes/__init__.py | a659bb2d3a72c417e763c9e2730b9e92c562bf9e | [
"BSD-3-Clause"
] | permissive | 1duo/coremltools | e25f1a8423ec368bf1e7dabfaa36e77952578e79 | 37e619d99bf603d2cb9ea0839fa3ebe649996b0a | refs/heads/master | 2021-07-15T08:48:51.930217 | 2020-07-27T20:58:33 | 2020-07-27T20:58:33 | 203,466,876 | 2 | 0 | BSD-3-Clause | 2020-07-22T00:05:02 | 2019-08-20T22:59:50 | Python | UTF-8 | Python | false | false | 732 | py | # Copyright (c) 2020, Apple Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-3-clause license that can be
# found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
# Import all passes in this dir
from os.path import dirname, basename, isfile, join
import glob
excl... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.