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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a07eed7fc4cd25cff6102764ad121bc3248e2bb2 | 7366e4c0f0b13f009570aaf5f07c0ec05f9457e4 | /CFR_external_sampling.py | b7487253ec4b675c7aad940b2954f16bdea88921 | [] | no_license | MaxwellDeJong/incan_gold_CFR | d79be2a44dd22473995ffea718ef4e9af3399438 | 9ac8ab35d7b093ed93a3d656f7b69aa8238d2da5 | refs/heads/master | 2023-02-12T20:07:49.050691 | 2021-01-10T05:03:55 | 2021-01-10T05:03:55 | 328,307,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,558 | py | import numpy as np
import copy
import torch
from memory import Buffer
NUM_PLAYERS = 2
def calc_payoff(h, p, round_vars, update_round_vars=False):
'''Calculates the payoff for player p from a history h.'''
round_scores = np.zeros(NUM_PLAYERS)
n_played_cards = 1 + int(len(h[1:]) / (NUM_PLAYERS + 1))
... | [
"maxwelldejong@gmail.com"
] | maxwelldejong@gmail.com |
6648216653a33b3c0b1253ac7b7ca4de21dfac0a | 95bad2478065ffaa00be48644675b49f71b74bdc | /fuel_additive/api/bootstrap.py | f79e61b7cbafe87de3d83380e7a07f2ce4094312 | [
"Apache-2.0"
] | permissive | skdong/fuel-additive | f727f27f08a528d3dccea02b90d2f5f443a0227f | a0ce9516ee7510a1ed02264a775cb50b35b84b48 | refs/heads/master | 2020-06-18T22:55:13.507181 | 2019-08-23T05:43:33 | 2019-08-23T05:43:33 | 196,483,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | from oslo_log import log as logging
from oslo_config import cfg
from fuel_agent.utils import utils
from fuel_additive.drivers.os.bootstrap import Bootstrap as Driver
LOG = logging.getLogger(__name__)
CONF = cfg.CONF
class Bootstrap(object):
def __init__(self, data):
self.config = utils.get_driver(CONF.d... | [
"kd.shi@slancer.com"
] | kd.shi@slancer.com |
7eaa61249897f9720dec448a49c97158fa47b5ae | 0b2e4cb5c0cd81ecca262f06455f40a14ce1809f | /text/preprocessing.py | fd21b3004105fa1671e398eb3847667d80ea2b3f | [] | no_license | gmaggiotti/deeplearning-examples | f37cca697cb3b0846470d0e65543bc027635fc3f | 1ac147dfdcaf463299fad95bc49f9f081dd728ed | refs/heads/master | 2023-02-19T23:25:20.812573 | 2022-08-04T17:17:03 | 2022-08-04T17:17:03 | 91,253,148 | 3 | 0 | null | 2023-02-15T21:36:15 | 2017-05-14T15:33:30 | Jupyter Notebook | UTF-8 | Python | false | false | 637 | py | from nltk.tokenize import word_tokenize
from nltk.corpus import stopwords
from nltk.stem import PorterStemmer
from nltk.stem import WordNetLemmatizer
import numpy as np
ps = PorterStemmer()
lemmatizer = WordNetLemmatizer()
sentence = "Books are on the table and the radio is playing a song".lower()
words = word_tokeni... | [
"gmaggiotti@gmail.com"
] | gmaggiotti@gmail.com |
cb5cd586e26ea5262665d65a424da8f4e90f7647 | 10d85f6a962c323c522f68ed58c16c39e57b573b | /run-length-encoding/run_length_encoding.py | e8f6e786655a62478cd085024033de16d9bdc725 | [] | no_license | arpit04/Python-Exercism | cf833a7684cf9ee03ca092cb9f6ec9e57fac90d3 | e429c83137da2c2159b56820b45efe4960793ba8 | refs/heads/master | 2020-08-23T00:14:04.161763 | 2019-12-06T10:59:50 | 2019-12-06T10:59:50 | 216,498,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | def encode(string):
count = 1
s = ''
for i in range(len(string)):
if i == (len(string)-1):
if count!=1:
s+=str(str(count)+string[i])
count = 1
else:
s+=str(string[i])
count = 1
else:
if i!=(le... | [
"noreply@github.com"
] | noreply@github.com |
2805480b81fd54fb75c0e4226de2d61cc95d2377 | 4b94e4abe6a9298ce1072d0d64d0ca1aedf19da2 | /landing_page/migrations/0003_commenti.py | 26859e3b84b9a00ca2e360d00bb7923cecd52375 | [] | no_license | gitsh1t/vetrina_test | 7e30e1766e3700e31af487357b23cd7d79712615 | 7295b49569448b2e311c481014938e850dec67ce | refs/heads/main | 2023-04-30T16:56:43.851201 | 2021-05-10T12:35:22 | 2021-05-10T12:35:22 | 365,960,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | # Generated by Django 3.0.8 on 2020-10-01 15:14
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('landing_page', '0002_post'),
]
operations = [
migrations.CreateModel(
name='Comme... | [
"ombra@H388X.home"
] | ombra@H388X.home |
f4f82fdf2defdca2f29897494104c073ac82e9a8 | 4335c4674202cea368eeb4ab8844e04474c21cd9 | /get_url.py | 5d566c375b3088f1053556036f620acbcaef6607 | [
"MIT"
] | permissive | MrYo531/TL-DrBot | 6e87b3dcc99805a51f94bccbf253020ca1931c88 | e0331d7c27e6db64590c71baef44d8748081eba4 | refs/heads/main | 2023-01-21T11:35:54.745727 | 2020-11-21T22:45:29 | 2020-11-21T22:45:29 | 314,695,346 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | import requests
import json
# Gets the embedded article url from the given tweet
# This uses v2 of the twitter API (v1 from tweepy was inconsistent)
def get_url(bearer_token, tweet_id):
headers = {
'Authorization': 'Bearer {}'.format(bearer_token),
}
params = (
('tweet.fields', 'entities'... | [
"u1107937@umail.utah.edu"
] | u1107937@umail.utah.edu |
55de08feb376e6244032a61051eb65c7227e4d36 | a6c103844d15cf1126a79ab8ea548b338ad5bce5 | /test/interfaceframework/script/ind_interface/test_updateuser.py | f8c0d3bcc88742ce9e16c4751df6656f5356bbed | [] | no_license | cherry1203-cloud/autotest | a3da734842267572e773dd653eca1fd3bcc8e4da | 9b929ef10172a4884037b0f101ccbf472a479ffb | refs/heads/master | 2020-09-29T21:59:00.271795 | 2019-12-12T02:16:05 | 2019-12-12T02:16:05 | 227,131,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,437 | py | #v1.0 对更新用户信息的脚本进行测试,使用unittest框架技术
#更新个人信息时,需要用到登录接口获取的sessionID
#接口说明:
#接口访问地址:http://localhost:8080/jwshoplogin/user/update_information.do
#接口传入参数:1.email 2.phone 3.answer 4.question
#接口预期返回值:email已存在,请更换email再尝试更新 更新个人信息失败 更新个人信息成功
#脚本实现
#导入相关测试类
import unittest
import requests
#定义测试类,继承unittest框架
class test_up... | [
"taoying@wealink.com"
] | taoying@wealink.com |
776556e7e22349f95f42676b03f1a3a64e805073 | 9a0adae237f159a77b2357f1e2e70db8af61d419 | /mysite/settings.py | fdf2912825bd0534bde7e9ff5dfa1bab4710d43b | [] | no_license | aakash003/my-first-blog | 3390ecc8e052075f0702f6ebe969c3210263a972 | 7ac7cff1c4608470ed20f75b029aea7b94ba14c8 | refs/heads/master | 2021-05-16T11:27:47.765880 | 2017-10-01T03:02:57 | 2017-10-01T03:02:57 | 104,975,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,118 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"kumar.aakash10@gmail.com"
] | kumar.aakash10@gmail.com |
9e260b27e1ea2548669f321717fbdef594ce67a1 | f1fe58c1ae11f9b80f08afad5354f54f96f0dfe9 | /pitho/controllers/user/login.py | a027d0eb870b0f44425e74e73b9e66b19f3baf37 | [] | no_license | talqeen23/College-Canteen-Manager | 701af39af08c3fcd80d4bab28c76d655d4e7783e | a73ca65f7866ea6f816e908b7ba11e3486a7478f | refs/heads/master | 2023-08-15T19:06:33.511362 | 2021-10-05T09:42:38 | 2021-10-05T09:42:38 | 413,758,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | from pitho import app
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField
from wtforms.validators import DataRequired, Length, Email
from flask import render_template, request, redirect, session
from pitho.models.user.model_login import LoginModel
class MyForm(FlaskForm):
youremail = Strin... | [
"talqeen987@gmail.com"
] | talqeen987@gmail.com |
b3d3277c535eaa6f706a071f5b547c8b412419d8 | c1d03f41b6c80ef1e0a42b1bb710ba90d680e4c2 | /tests/unit/test_xmlgen.py | f4224d6cded6be0fe94660d2a9f52f5f3283b56e | [
"BSD-3-Clause"
] | permissive | boxingbeetle/softfab | 4f96fc389dec5cd3dc987a427c2f491a19cbbef4 | 0ecf899f66a1fb046ee869cbfa3b5374b3f8aa14 | refs/heads/master | 2021-06-22T15:42:38.857018 | 2020-11-23T22:53:21 | 2020-11-23T22:53:21 | 169,245,088 | 20 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,294 | py | # SPDX-License-Identifier: BSD-3-Clause
"""Test XML generation module."""
from pytest import raises
from softfab.xmlgen import parseHTML, xhtml
# Test text inside the <script> XHTML element:
def testScriptNoEscape():
"""Check that no escaping is performed when it is not necessary."""
text = 'if (a > b) r... | [
"maarten@boxingbeetle.com"
] | maarten@boxingbeetle.com |
8586507b15e96fdd61407bb3036d6c40ffb255e4 | 704f79c33714c3d747500792c74a60812dcfb327 | /2018/Pyboard/on pyboard/pyboard_razor_IMU.py | 9c9121faea62f677111be20ed0809149f93e9372 | [] | no_license | CRAWlab/ARLISS | 4952e631613adc7cc7b7ab77de9537cfd6a3b7a5 | 39468e533b7b4d40a63f3e20fce9b4244054f342 | refs/heads/master | 2020-05-21T23:04:56.366569 | 2018-09-26T01:22:30 | 2018-09-26T01:22:30 | 39,913,463 | 3 | 3 | null | 2018-08-19T01:59:05 | 2015-07-29T20:00:19 | HTML | UTF-8 | Python | false | false | 5,354 | py | ###############################################################################
# pyboard_RazorIMU.py
#
# Script demonstrating using the serial communication on the pyboard
# to receive data and set settings on the SparkFun Razor IMU
# https://www.sparkfun.com/products/10736
#
# This code assumes that the razor is runn... | [
"kxl0071@louisiana.edu"
] | kxl0071@louisiana.edu |
f025cacb2d88b8c5c786aaadfd9b7b0f43725934 | 9767e059c7e90231453ac2b26b580c0a7b619f3e | /main.py | 8f0b1e932b5c12be71f8284ca56addc1a1231556 | [] | no_license | Centrovoi777/stepik-python | a3e2d8212cdad7dbcb727f226451ff7099b8cbe3 | 3c7576cd2b2e1b8b8e1629c1c967ebed155c07b4 | refs/heads/master | 2022-12-25T19:41:16.992400 | 2020-10-07T06:44:44 | 2020-10-07T06:44:44 | 301,950,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,077 | py | import requests
import telebot
from telebot import types
import random
import json
import os
token = os.environ["TELEGRAM_TOKEN"]
api_url = 'https://stepik.akentev.com/api/millionaire'
bot = telebot.TeleBot(token)
a = {}
states = {}
START = 'start'
MAIN_STATE = 'main'
QUESTION = 'question'
STATES = 'answers'
try:... | [
"centrovoi777@yandex.ru"
] | centrovoi777@yandex.ru |
3a9baf4f9122069e89d3d3e9c447adba687d8866 | 7942342d457276bb266228d0236af647b3d55477 | /django/contrib/gis/gdal/geomtype.pyi | 4d825dbc2a0344758cb103a9b71335753e67e32a | [
"MIT"
] | permissive | AsymmetricVentures/mypy-django | 847c4e521ce4dec9a10a1574f9c32b234dafd00b | f6e489f5cf5672ecede323132665ccc6306f50b8 | refs/heads/master | 2020-06-30T01:53:44.434394 | 2016-12-22T22:45:50 | 2016-12-22T22:45:50 | 74,397,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | pyi | # Stubs for django.contrib.gis.gdal.geomtype (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
class OGRGeomType:
wkb25bit = ... # type: int
num = ... # type: Any
def __init__(self, type_input) -> None: ...
def __eq__(self, other): ...
... | [
"reames@asymmetricventures.com"
] | reames@asymmetricventures.com |
dc0834c18416bb2944ac4d86f4bd5e62cca0f9ff | 5b63774decae6dcd7208aee48e92f730e1364df3 | /NGIOBenchmarksDataHandling/analyse_benchio_output.py | cb82a5adcdb5682e349968c937531c96df9b5436 | [] | no_license | adrianjhpc/scriptsandtools | 9355ff7e0d0342a4cda9bd976ae0b797b8077143 | 161a9c0918f747da6d40d67f3907b58620e2fb9b | refs/heads/master | 2023-07-19T00:25:02.078205 | 2023-07-12T08:42:33 | 2023-07-12T08:42:33 | 69,058,629 | 0 | 2 | null | 2020-07-20T11:20:18 | 2016-09-23T20:31:42 | Shell | UTF-8 | Python | false | false | 13,529 | py | #!/usr/bin/env python
#
# Analyse IOR output files
#
# System modules for grabbing data
import sys
import os.path
import re
from glob import glob
from datetime import datetime
import datetime as dt
import calendar
# Modules for analysing and visualising data
import numpy as np
import matplotlib
matplotlib.use('Agg')
... | [
"adrianj@epcc.ed.ac.uk"
] | adrianj@epcc.ed.ac.uk |
657e2846619a021d3e3cdfa8eb1d3510dc021b24 | 6405750bc22e5e74a839ab35d385cefb8e443208 | /data/templates/admin/add_task.mako.py | 3ba3e8a172b2c1ae96c40b47d9f97815c7c5dde4 | [] | no_license | yetty/DevContest | 7ecfcf9ca8e3af4b631037635037a32763d87a15 | 8903985ff5bb95b185bbdda4996715ec8370ac91 | refs/heads/0.4 | 2021-04-26T16:43:03.853742 | 2014-03-23T20:29:12 | 2014-03-23T20:29:12 | 768,958 | 2 | 1 | null | 2013-03-05T18:21:06 | 2010-07-11T15:02:52 | Python | UTF-8 | Python | false | false | 2,657 | py | # -*- encoding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 5
_modified_time = 1273684601.063113
_template_filename='/home/yetty/Work/Development/DevContest/devcontest/templates/admin/add_task.mako'
_template_uri='/a... | [
"root@yetty.(none)"
] | root@yetty.(none) |
b0047d53c85ac45e8cb5dc88e75f86af112a09e3 | ffe4e13584ecf8e10694ef05022e07cba895e8d6 | /django_new/blog/migrations/0004_auto_20201203_0718.py | acd39f6c0a6888f31adc26cc004d259b49c03162 | [] | no_license | Eazyberry-Official/django | 5eb350db1efff9ff7227230978280f65018829b7 | dead6f9111684c7ca1fc8c7789764fdfac98c33b | refs/heads/master | 2023-01-22T17:55:03.637669 | 2020-12-05T09:23:35 | 2020-12-05T09:23:35 | 318,748,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | # Generated by Django 3.1.3 on 2020-12-03 15:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0003_auto_20201203_0706'),
]
operations = [
migrations.AlterField(
model_name='product',
name='price',
... | [
"Eazyberry58@gmail.com"
] | Eazyberry58@gmail.com |
c764277e09dd60bfe3054906aefe34eca2eae4bf | 47fa6694ee1641b4375de168fc3148da457badef | /tests/test_parser.py | 1ccecc01f2488b6779c2029552e34877133b7913 | [
"MIT"
] | permissive | viktorsapozhok/sightspotter | 93b4dd1c05661b366361153a787d27eeaadc3be7 | 77610c915b69e2826e4b9dab18477fa71ead3604 | refs/heads/master | 2023-05-27T02:08:30.249311 | 2020-01-01T16:09:53 | 2020-01-01T16:09:53 | 159,656,466 | 0 | 0 | MIT | 2023-05-22T22:29:05 | 2018-11-29T11:36:16 | Python | UTF-8 | Python | false | false | 1,284 | py | # -*- coding: utf-8 -*-
from bot import config
from bot.commuter import Commuter
from bot.parser import RouteParser
commuter = Commuter(config.path_to_db)
def test_parser():
parser = RouteParser(commuter, config.parser['url'])
urls = parser.extract_routes()
assert len(urls) >= 299
_urls = [url for ... | [
"piskun.aleksey@gmail.com"
] | piskun.aleksey@gmail.com |
5f20947d37c40b225caf658aa24de35a3409eda0 | 1e9ad304868c2bda918c19eba3d7b122bac3923b | /kubernetes/client/models/v1_scale_spec.py | 4cbe43889993ed0f39cd92d9f358c3267a860626 | [
"Apache-2.0"
] | permissive | pineking/client-python | c77e5bd3d476ac852e6dffa96056008baa0f597f | 74a64d7325518f4298600d4bb300f92843c29347 | refs/heads/master | 2021-01-22T22:16:27.368406 | 2017-03-15T08:21:21 | 2017-03-15T08:21:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,994 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.5.1-660c2a2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
im... | [
"mehdy@google.com"
] | mehdy@google.com |
0450539ef864eff04784066d5f3516472b600dd4 | d6dd4a0b3d951489f7b76cf5cd66aee25fb9e156 | /db_migrate.py | 09527460fe69bec7a754eeb222f32a145674af03 | [] | no_license | tomsitter/tag | 79e05fca50fde853f1b77d8145dca65ed0ee8f4f | 886a83f4f232c211ae04c027c66dc55d10cc7d08 | refs/heads/master | 2021-06-21T21:49:29.478208 | 2017-08-16T20:46:24 | 2017-08-16T20:46:24 | 100,298,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | import imp
from migrate.versioning import api
from tag import db
from config import SQLALCHEMY_DATABASE_URI
from config import SQLALCHEMY_MIGRATE_REPO
v = api.db_version(SQLALCHEMY_DATABASE_URI, SQLALCHEMY_MIGRATE_REPO)
migration = SQLALCHEMY_MIGRATE_REPO + ('/versions/%03d_migration.py' % (v+1))
tmp_module = imp.new_m... | [
"thomas.sitter@gmail.com"
] | thomas.sitter@gmail.com |
7c4097a93e7aba50c191355924a8d2563f812aeb | 69ca6c7ecd1e8ba12e1fd9ca5baf075ed9899f81 | /scripts/sound_unmute.py | 0539d8d02b6f6e60d6accb94f2c601c772618679 | [] | no_license | bekd70/ProjectorControl | 505f3f9e874fd1f521ec0690c9e65257b6f67a2c | d241b44beeb7204c7ffa02fdf895d06b54994680 | refs/heads/master | 2021-01-12T02:39:19.985110 | 2017-01-05T06:57:01 | 2017-01-05T06:57:01 | 78,084,186 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | #!/usr/bin/env python
#turn sound on
import sys
import serial
port = serial.Serial('/dev/ttyAMA0', baudrate=38400, bytesize=8, parity=serial.PARITY_NONE, stopbits=1, timeout=5)
port.open
#this is the code sent to the projector. Replace it for your model
port.write("\x02\x13\x00\x00\x00\x15")
received = port.read(8)
... | [
"noreply@github.com"
] | noreply@github.com |
9074795f04fffda1859ceabffe3265b9dad61ac4 | c7cba1dad777f461ea546d0437528c985be3c051 | /client.py | 559f6546c5344baecc2df329d11dee988617cc63 | [
"MIT"
] | permissive | elliotthwang/NLU | 000127b561c5b99340b04bf78aa65ff6ea28c79a | 0e6a96e4c2f363beb4241b4371244a5229e72811 | refs/heads/master | 2022-01-12T06:51:00.036787 | 2018-10-07T21:56:15 | 2018-10-07T21:56:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,038 | py | ############################################################################################
#
# The MIT License (MIT)
#
# GeniSys NLU Engine API Client
# Copyright (C) 2018 Adam Milton-Barker (AdamMiltonBarker.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software an... | [
"adammiltonbarker@eu.techbubbletechnologies.com"
] | adammiltonbarker@eu.techbubbletechnologies.com |
50511aaa0c39241f0a3c142e0ae5eb36a441797a | eb7f48ce809e526f8bfdc9d623a713c5eedd18ac | /software/MCP4728GUI/MainWindow.py | f202da8f3782eebee471a952d6d09c2d19590d2f | [] | no_license | lucanastasio/TunableFilter | 6f9981b496002094b7648d48152abf21083a026b | 6269d3b3945b005338532354ba7831f64404b218 | refs/heads/master | 2023-07-17T10:31:37.984120 | 2021-08-23T07:45:33 | 2021-08-23T07:45:33 | 225,726,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,502 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'MainWindow.ui'
#
# Created by: PyQt5 UI code generator 5.11.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainW... | [
"anastasio.lu@gmail.com"
] | anastasio.lu@gmail.com |
31985323a17529eccc7f8334da21afac1445e01c | 974e6dfefc6dae7aaeef6bb3b8357218842ad741 | /030 fifthpower.py | 83afd41662f07a20574c40f5b6b0460a39a03cc1 | [] | no_license | IanC162/project-euler | 2de30a8b1d4f8aad57cd1b33968fc5d99ae217ae | 11e17e7c4bb627f265e99d4a3e9fbdc63252b8d0 | refs/heads/master | 2020-05-17T03:44:34.246966 | 2014-03-16T12:35:36 | 2014-03-16T12:35:36 | 17,645,271 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | #Problem: compute the sum of all numbers that are the ^5 of their digits
total = 0
#Woo, O(n)!
for i in range(2,355000):
if sum([x**5 for x in map(int, str(i))]) == i:
total += i
print total
raw_input()
| [
"ian.c17777@gmail.com"
] | ian.c17777@gmail.com |
d936ce7534943842f0fe4314173d6571201fdf1c | 179892586a9e26c4c87f972f04182525f1678cfe | /model/figures.py | 53b15f61ea2fb7486d1bc21b17143a78e91b929c | [
"MIT"
] | permissive | simeond/data-sharing-abm-model | c55aa04b0090300fe7fe909cc291e008fb262963 | 23386f69d817dd1542c5d4464757f8aabadc6b8d | refs/heads/master | 2021-05-17T14:19:09.022869 | 2019-04-30T12:40:14 | 2019-04-30T12:40:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,153 | py | import plotly.graph_objs as go
import numpy as np
from .beta_distr import get_beta_params
from scipy.stats import beta
import matplotlib.pyplot as plt
# get some nice colours
tab10 = plt.get_cmap("tab10").colors
tab10 = list(tuple(x * 255 for x in tab10[i]) for i in range(len(tab10)))
tab10 = ["rgb" + str(x) for x ... | [
"lies@sandtable.com"
] | lies@sandtable.com |
fe174dfb8c14d16fa84acd65a5666d3dc0e989d9 | 9c32f8f4f0fcee5229cd9205295af0b87b5c2af2 | /mb_project/settings.py | 7b58acd1086a56192fdd23e247ca1f451f134db4 | [] | no_license | ClioGMU/ch-4-message-board-lcrossley | 6a652cc4e28a9861cfafdfeaa1fc2fdaefcec2df | 6b924b8e3b8913aae64e066c88d0135c264424ef | refs/heads/master | 2023-04-27T12:26:52.374743 | 2019-09-17T17:45:45 | 2019-09-17T17:45:45 | 208,861,055 | 0 | 2 | null | 2023-04-21T20:39:02 | 2019-09-16T17:44:20 | Python | UTF-8 | Python | false | false | 3,165 | py | """
Django settings for mb_project project.
Generated by 'django-admin startproject' using Django 2.2.5.
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... | [
"lcrossle@gmu.edu"
] | lcrossle@gmu.edu |
d04121d177bb2d6e173e6226b8ffce7f72c49aae | 6b1f521d6d712ad9dc3c030ab1e51e6e7b5a52d9 | /XmlObjDesc/scripts/xml/parsers/xmlproc/xmldtd.py | 8516a1a0e59eb26a69869d5ab237fe381e7f3ca3 | [] | no_license | feipengsy/JUNO | 73aa30d6f68c51259e6d76c79b5d82cb94c588d1 | 69b7ce8af4b65a5c7e908023234824fff29df7bc | refs/heads/master | 2021-01-15T22:29:40.963670 | 2015-11-01T06:18:53 | 2015-11-01T06:18:53 | 26,515,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,468 | py | """
These are the DTD-aware classes of xmlproc. They provide both the
DTD event consumers for the DTD parser as well as the objects that
store DTD information for retrieval by clients (including the
validating parser).
$Id: xmldtd.py,v 1.1 2004/12/05 13:48:30 roiser Exp $
"""
import types
from xmlutils import *
from... | [
"liteng_shiyan@163.com"
] | liteng_shiyan@163.com |
0f48f2870227759d2cedb58f77816e6429b20a02 | bdb183769c133f25e92dd6f2a9653fe69cecb715 | /fds.analyticsapi.engines/fds/analyticsapi/engines/api/documents_api.py | 936f4f4ad9dd579facdaf41124f1688965ff36e4 | [
"Apache-2.0"
] | permissive | saigiridhar21/analyticsapi-engines-python-sdk | 5e6ec364791b63250ef7157eee8635c15e31b4f2 | bb7c3d20c37dc7a30071962f610ad02db6440117 | refs/heads/master | 2022-12-06T22:13:11.551527 | 2020-09-02T17:30:07 | 2020-09-02T17:30:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,713 | py | # coding: utf-8
"""
Engines API
Allow clients to fetch Engines Analytics through APIs. # noqa: E501
The version of the OpenAPI document: 2
Contact: analytics.api.support@factset.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import re # noqa: F401... | [
"afernandes@factset.com"
] | afernandes@factset.com |
1d75466b672c35a613932cb6ff9f6a9ead41becc | 360fd4e74f752dca1e915cde7d7638e51d8e27ee | /problem9.py | c53225219c49d3f60b3b81b6e964af51eaa991cd | [] | no_license | dsimpson1980/project_euler | 69718e516038093a34f7f0d0e9d9dc213d658bdc | d71c4739af41846a2821b568730c99271cb26eee | refs/heads/master | 2021-01-10T12:22:19.511550 | 2015-09-16T18:08:22 | 2015-09-16T18:08:22 | 36,770,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | """Special Pythagorean triplet
Problem 9
A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,
a^2 + b^2 = c^2
For example, 3^2 + 4^2 = 9 + 16 = 25 = 5^2.
There exists exactly one Pythagorean triplet for which a + b + c = 1000.
Find the product abc.
Solve the two formulae so we can reduce th... | [
"mapdes@gmail.com"
] | mapdes@gmail.com |
ca8705cc1f1359d399708435066d644118c8025c | eba283c7b7d07c9ff15abee322da8fea460ea6be | /__init__.py | a81e1e6e897d836c409125c7fc0208faa64f920a | [] | no_license | ROB-Seismology/layeredbasemap | 5bfa3daad9b2e47a1fea35c652309541ac88ac23 | 122464656d5534798c4bba38cdda2638e7d8948f | refs/heads/master | 2021-01-20T17:33:02.596090 | 2020-12-16T10:30:54 | 2020-12-16T10:30:54 | 90,877,746 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py | """
layeredbasemap
Module to create maps with Basemap using the GIS layer philosophy,
where each layer is defined by a dataset and style.
Author: Kris Vanneste, Royal Observatory of Belgium
"""
from __future__ import absolute_import, division, print_function, unicode_literals
## Make relative imports work in Pytho... | [
"kris.vanneste@oma.be"
] | kris.vanneste@oma.be |
6a8a9e833e2feca5d8149bcedae67e48aa74d552 | 43a0ef5b5c3bd9dce498f3504d43dfd4d0ca91d1 | /fpreproc/transpSConsBuilder.py | c1e1dd77418364d4ae09591ad7c2534f6de5cd62 | [] | no_license | ilonster/pspline | 083dec1e3c6fd1bf95f9784d80130ccba73f1730 | 9d2b61b747840bc34972c639826d645ad7d2db7f | refs/heads/master | 2021-01-13T01:25:14.434218 | 2011-08-26T01:46:08 | 2011-08-26T01:46:08 | 2,358,776 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 47,243 | py | #
# This is a tool which provides the Builders,Scanners and Emitters for building
# TRANSP code using SCons. This means using a preprocessor when building from
# fortran files and providing the flexibility to link with the Fortran, C++ or
# C linker. Fortran files are assumed to be in free source form when they have
... | [
"joseph5@grendel.mfescience.org"
] | joseph5@grendel.mfescience.org |
39d9972ace9b2b675fc010522f98d7a0c2e20feb | e7a5e140ccacc10a4c51b66fa5942974330cce2c | /py_insightvm_sdk/models/vulnerability.py | 5ca229c4badf76227f09dee1e06eaf8e7fb2b306 | [
"Apache-2.0"
] | permissive | greenpau/py_insightvm_sdk | 38864c7e88000181de5c09302b292b01d90bb88c | bd881f26e14cb9f0f9c47927469ec992de9de8e6 | refs/heads/master | 2020-04-21T08:22:31.431529 | 2020-02-27T02:25:46 | 2020-02-27T02:25:46 | 169,417,392 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65,459 | py | # coding: utf-8
"""
InsightVM API
# Overview This guide documents the InsightVM Application Programming Interface (API) Version 3. This API supports the Representation State Transfer (REST) design pattern. Unless noted otherwise this API accepts and produces the `application/json` media type. This API uses ... | [
"greenpau@outlook.com"
] | greenpau@outlook.com |
e22e276db56f57fe87c5bf501adf743ccf1c987f | 41bfa2b258dcf6672942eaa0722e3147386907a8 | /exercices/serie4/ex13.py | de757155b9e97b3e4f0bb757844c6fd19c9fcee3 | [] | no_license | tartofour/python-IESN-1BQ1-TIR | 6ba06857b78bbcacd8b09af42d5b9293207c1917 | 9df606038e7c8593e73602476c7a260ead22ffb7 | refs/heads/master | 2022-11-06T20:46:50.474260 | 2020-07-07T21:34:52 | 2020-07-07T21:34:52 | 210,844,476 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | #!/usr/bin/python
def print_antipode(coord: tuple) -> None:
if (coord[0] > 180 or coord[0] < -180) or \
(coord[1] > 90 or coord[1] < -90):
print("Erreur dans les coordonnées !")
else:
latitude = coord[0] * -1
if coord[1] >= 0:
longitude = coord[1] - 180
e... | [
"benjamin.verjus@protonmail.com"
] | benjamin.verjus@protonmail.com |
e4b6ad474866f98c6b1f0ecb5442aad86612cc90 | bb173dbcd5e18fe1402cc7350924c7fffde6d34e | /fabfile.py | 3d6025a5786fe7345942305c56acbf142f7bb00d | [] | no_license | HuangShaoyan/huangshaoyan.me | 73fc67d10249fa44ee4a06636b4913ee7faf52fe | 200372263dbe1e7ad7db51795f8f458bd2ac1c1b | refs/heads/master | 2021-03-12T22:57:04.218492 | 2014-03-21T01:39:16 | 2014-03-21T01:39:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | true | false | 2,558 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from fabric.api import put, sudo
'''
for dev:
fab <taskname> \
-H 127.0.0.1 \
--user=vagrant \
--port=2222 \
-i ~/.`vagrant.d/insecure_private_key \
-D
for test:
fab <taskname>:release=T... | [
"huangshaoyan1982@gmail.com"
] | huangshaoyan1982@gmail.com |
b1f92da3bb4d6592d8637a98458c8ce610209e3c | 11f21ef5e8a137d1e79e3c2a6ebbe22e18ba72f6 | /repititfiller/__init__.py | 8eb45e2d10e5ce28cc36fbeb03f9f226e7b971fb | [] | no_license | rodmendezp/repit-filler | 3fedc7e12eec7c63bfc8a7d138a97196cc996271 | d86b0bdd19d668d6b855e9713d757cbdfbe8e70f | refs/heads/master | 2020-04-20T17:04:20.483309 | 2019-02-06T00:20:25 | 2019-02-06T00:20:25 | 168,978,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | from __future__ import absolute_import
from .celery import app as celery_app
__all__ = ['celery_app']
| [
"rodmendezp@gmail.com"
] | rodmendezp@gmail.com |
a023a6dd3b718d9a57a700eb17e72934403b4dfa | 3f44f39945a153fe580e63aed7531f68fdad6914 | /venv/lib/python3.6/os.py | ca3ee1b9f4a381c53eecd731be3e5e7a19a99282 | [] | no_license | MatthewBurke1995/DjangoGirlsTutorial | 4dcc313ea81b37161400ebd8daee34ca694f7c92 | b5b568ceae24236573a146d2c70d1f889f8c9ce4 | refs/heads/master | 2021-08-16T18:27:37.822590 | 2017-11-20T07:39:58 | 2017-11-20T07:39:58 | 111,378,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | /home/matt/anaconda3/lib/python3.6/os.py | [
"mperoburke@gmail.com"
] | mperoburke@gmail.com |
df376c400e68e9e980eaeac9415a3b82e1d72db3 | 89465bfa1924fe5d46ca84ace7cc613394ba0f8e | /config/migrations/0002_auto_20200323_1731.py | 9923ce5cc36a53a44fbfe07a1a2b7f65825ad79e | [] | no_license | xihacode/typeidea | 735f21caf67106b7d8b948f5f2304c98e968c9e9 | 981fa968da5bf49f9d524c6fdbe5426936766c54 | refs/heads/master | 2021-04-12T20:02:48.469582 | 2020-04-04T08:57:40 | 2020-04-04T08:57:40 | 249,106,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # Generated by Django 3.0.4 on 2020-03-23 09:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('config', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='sidebar',
name='status',
f... | [
"3266817262@qq .com"
] | 3266817262@qq .com |
a03eb33d6870aa0e07fdd3f38b90cb7daf448fac | e305251cd900203101414f4f819bdbd6bce8511f | /Code10-13.py | a8345f5b37cd9dbfa9c2962c5c4377ae42633128 | [] | no_license | munjinho/Python | ae761bdb2ba9af88ecc2732aceb1b1a6910ff42c | 16eb54d344efcd6b3e70453848316aecaace8d0e | refs/heads/master | 2020-04-13T08:59:39.179055 | 2020-03-23T17:14:58 | 2020-03-23T17:14:58 | 163,090,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | from tkinter import *
from tkinter import messagebox
## 함수 선언 부분 ##
def clickLeft(event) :
messagebox.showinfo("마우스", "마우스 왼쪽 버튼이 클릭됨")
## 메인 코드 부분 ##
window = Tk()
window.bind("<Button-1>", clickLeft)
window.mainloop()
| [
"noreply@github.com"
] | noreply@github.com |
a9275b235b202ee33d01a9b4e7503532b2d3c007 | 59cd59d91d55a5b7a691c5342fc7b4db3d1f2df6 | /scripts/program_analysis/gcc_to_agraph.py | e6157890dfde6d4c7551cc60acdeefbd4fb9317a | [
"Apache-2.0"
] | permissive | ml4ai/automates | 8af5ec33d5f321860dfb1164ec00e750ec62d0ad | 2494b1c1f2d11b14eb342ef17b37d4dc9ba9b285 | refs/heads/master | 2023-01-19T01:25:12.034993 | 2023-01-09T16:45:12 | 2023-01-09T16:45:12 | 157,479,887 | 23 | 9 | NOASSERTION | 2023-01-09T16:45:13 | 2018-11-14T02:42:19 | Fortran | UTF-8 | Python | false | false | 5,363 | py | import sys
import json
import html
from typing import Dict
from collections import defaultdict, namedtuple
import pygraphviz as pgv
from pygraphviz import AGraph
OPS_TO_STR = {
"mult_expr": "*",
"plus_expr": "+",
"minus_expr": "-",
"ge_expr": ">=",
"gt_expr": ">",
"le_expr": "<=",
"lt_expr... | [
"rsulli55@gmail.com"
] | rsulli55@gmail.com |
159402a65b203cc8ac8e6b03ed21e5a75701626f | bcc59b03cc71f56958801c16158efa97f820799f | /MantaCamera.py | bd466102448cba9dda0d6cc1c9de553e4001c403 | [] | no_license | labscript-suite-temp-archive/cavitylab-labscript_devices--forked-from--labscript_suite-labscript_devices | c0816159af214ad6d2e9107f7000c81600744ad1 | 58d9b333d94b5f86eb3bdcae225170370d683138 | refs/heads/master | 2020-12-26T20:12:48.835227 | 2019-12-06T20:57:48 | 2019-12-06T20:57:48 | 237,628,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,707 | py | #####################################################################
# #
# /labscript_devices/Camera.py #
# #
# Copyright 2013, Monash University ... | [
"gbentsen@stanford.edu"
] | gbentsen@stanford.edu |
bd73d143b5e404f6ecbbf21996e1113b86771e97 | b144c2a117eb3553f9a801dc685164e46368f220 | /ROS-main/catkin_ws/build/catkin_generated/order_packages.py | 820c37b42f2fa7c1b77853e1e46bd8b1ccc6d83a | [] | no_license | BjoBor/RobotBlackjack | beb650d25290ddf6f31329a0cbd984cb1406de1c | ea07d3587714399ba064117095def1e7cc65b75d | refs/heads/main | 2023-01-25T05:21:38.148287 | 2020-12-10T19:39:51 | 2020-12-10T19:39:51 | 319,963,846 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = '/home/danial/catkin_ws/src'
whitelisted_packages = ''.split(';') if '' != '' else []
blacklisted_packages = ''.split(';') if '' != '' else []
underlay_workspaces = '/opt/ros/noetic'.split(';') if '/opt/ros/noetic' != '' else []
| [
"67904970+BjoBor@users.noreply.github.com"
] | 67904970+BjoBor@users.noreply.github.com |
7b610bf2dc37263d332476c74cca4f006e5c126c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02628/s221826573.py | 8d9cc91fbf2407d05ab712842180953fe7ae11f1 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | N, K = map(int, input().split())
p_list = list(map(int, input().split()))
p_list = sorted(p_list)
print(sum(p_list[:K])) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1391d16711381447cf1a4662f4cf3fd0427a6c15 | 1730decd1cc1609bd4e3bae61bb679c4afb99fe9 | /gui_basic/gui_project/gui_1.py | 09bed1194d93534d063ccaa6c71414af9237e003 | [] | no_license | jimin4017/python_project | d347c63ef0d4924ffd44f9a81bc4ea08341399f3 | 9c53293634caafdd3a1210283018847d27fcb76d | refs/heads/master | 2023-04-11T03:01:24.895755 | 2021-04-14T18:12:08 | 2021-04-14T18:12:08 | 340,390,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,713 | py | import tkinter.ttk as ttk
from tkinter import *
root = Tk()
root.title("jimin project") ## 콘솔창 이름 설정
root.geometry("640x480+100+300") ## tkinter에서 콘솔 크기 설정가로 * 세로
## + " x,y" 좌표
file_frame = Frame(root)
file_frame.pack()
btn_Add_file = Button(file_frame,padx=5,pady=5,width=... | [
"jimin4017@naver.com"
] | jimin4017@naver.com |
0c1a61961e8a5d9d8772be8258041e8096719937 | 3eba91e10b5758cfea17334cd4bff5393e8fbc87 | /src/runner.py | 668d55684868e8d469f42103fa83ff78a01cdae0 | [] | no_license | NanThanThanSoe/TestAutomationFramework | 3306ffdb32686cc8db3e4662ede50811a750c499 | 3cd225156ac7aa3cd2113f7845d1512068a77478 | refs/heads/main | 2023-05-23T15:44:21.941054 | 2021-06-11T09:43:33 | 2021-06-11T09:43:33 | 341,836,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | """
This is a headless prototype to execute pytest test cases with a custom configuration file
"""
import json
from configuration import Test_Plan
import pytest
import os
def run():
boxip = os.environ.get("BOX_IP", "10.13.201.18")
print(f"Using Box IP: {boxip}")
config = Test_Plan("data/configuration/... | [
"thanthansoe1994@gmail.com"
] | thanthansoe1994@gmail.com |
5fdd01c76510a26587a3b1a59f24fc573d6df8f5 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/7dbcaa7c22297fe1b303/snippet.py | 2378306d1ede8dd7979bb02a73d1b3106a44283a | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 4,969 | py | #!/usr/bin/env python
"""
Pandoc filter to parse CriticMarkup into Spans for
Insertion and Deletion. The Docx writer will convert
these into Tracked Changes.
A comment immediately after a change will be parsed
for "author: The Author" and "date: 12-21-12", which
will be inserted into the Span as appropriate.
"""
fr... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
4f388037513dc7157edd78c95a929b1b7d5c1ed8 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/6/usersdata/131/2399/submittedfiles/investimento.py | b734cf524df522049516f8e80f2ef98958d66a91 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | # -*- coding: utf-8 -*-
from __future__ import division
#COMECE SEU CODIGO AQUI
#ENTRADA
a=input ('digite seu saldo 2016: ')
#proscessamento
b = float(a*0.045 + a)
c = float(b*0.045 + b)
d = float(c*0.045 + c)
e = float(d*0.045 + d)
f = float(e*0.045 + e)
g = flaot(f*0.045 + f)
h = float(g*0.045 + g)
i = f... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b8bb4ff270fd0aea8e827648cbb85767f97aa6e5 | 8761d98a4eba4ef828a8161c48a89856ab20b1d7 | /oo/carro_enunciado.py | e666dca5c96f0b9173dc38f611b15a87aa14e850 | [
"MIT"
] | permissive | euzivamjunior/pythonbirds | c5ddbbb671cc7f0276a917fb8b46ab00745b1581 | ae9ecc1821f19a4fcb7bb44b9285c49184d7f23c | refs/heads/master | 2023-02-20T02:10:26.063243 | 2020-12-21T16:55:24 | 2020-12-21T16:55:24 | 318,506,330 | 0 | 0 | MIT | 2020-12-04T12:14:11 | 2020-12-04T12:14:11 | null | UTF-8 | Python | false | false | 2,204 | py | """Você deve criar uma classe carro que vai possuir 2 atributos compostos por outras duas classes:
1 - Motor
2 - Direção
O motor terá a responsabilidade de controlar a velocidade.
Ele oferece os seguintes atributos:
1 - Atributo de dado: velocidade
2 - Método acelerar, que deverá incrementar a velocidade de uma veloci... | [
"e.sousasilvajunior@dxc.com"
] | e.sousasilvajunior@dxc.com |
ff8233385b14ba5f9bbf38133c2e520d54c876da | 58c6905e164ec982f7ae89e67a6692196ea7aaff | /Lesson 6/ex02.py | f139b1f86f073969e2fca213a3b6c314c29060f4 | [] | no_license | kovasa/academy | 970a8aa8b5b4be2db0914708d1fc26b175118935 | a4babd6e791e7453c403de9b78cd7999e809b58e | refs/heads/master | 2023-05-27T05:46:14.495013 | 2020-02-26T10:25:38 | 2020-02-26T10:25:38 | 236,598,853 | 0 | 0 | null | 2023-05-22T22:40:10 | 2020-01-27T21:27:02 | Python | UTF-8 | Python | false | false | 354 | py | """ Lesson 6 ex.2 """
def gen_atr(obj):
""" Generates a list of all public attributes of an object. """
for item in dir(obj):
if not item.startswith('__'):
yield item
def _test():
xyz = gen_atr("string")
print(next(xyz))
print(next(xyz))
for item in xyz:
... | [
"noreply@github.com"
] | noreply@github.com |
8b47e68e06661efee88f6eb194e54f3b99a71a55 | fbb9dd2328a00df7d2522b736b6a6e5f2dc42157 | /Qtwindow/pageFour.py | 111fc383df70d954ac6b1f1fee7405bf569377ed | [] | no_license | llemontea/hyperOpt | 01d5685e31ac53e4d4b56882bd048fce40995bb6 | 576e84ba643566b029af2c82d3b7285d1b587443 | refs/heads/master | 2022-08-30T23:04:35.660173 | 2020-05-28T10:01:00 | 2020-05-28T10:01:00 | 266,337,927 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,190 | py | from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
import chardet
# 自定义编辑区域.附加行号显示,高亮文本等效果.
class CodeEditor(QPlainTextEdit):
class NumberBar(QWidget):
def __init__(self, editor):
QWidget.__init__(self, editor)
self.editor = editor
self.e... | [
"407645809@qq.com"
] | 407645809@qq.com |
42ec63637ac766889e253c31e4c9cd29bdf63e4e | 795b9190c580d96498288b4e9b48dd1c29fa54ca | /TFtrain.py | 225a011c421ad9d80e08f944c616898a006d3501 | [] | no_license | shen338/Obfuscated-Face-Reconstruction | 2702fbf9eaa884ce5121b0009a87177238cadd74 | 1f3e67cf0a54da57d37a4d20a512d52efde2be85 | refs/heads/master | 2021-05-08T06:33:39.772659 | 2018-01-08T21:52:03 | 2018-01-08T21:52:03 | 106,633,982 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,803 | py |
import tensorflow as tf
import numpy as np
import cv2
import glob
import random
import sys
def load_image(addr):
# read an image and resize to (224, 224)
# cv2 load images as BGR, convert it to RGB
img = cv2.imread(addr)
#img = cv2.resize(img, (128, 128), interpolation=cv2.INTER_CUBIC)
... | [
"noreply@github.com"
] | noreply@github.com |
ebae63b152ff453d136f25c77bd60094c14bec8c | b3d951acf68f12e7d295824b52173d4391ad57c3 | /lesson4/crawler_record_user_click.py | 1f80dc59e57412a513cb9df86bee93f9e0724e17 | [] | no_license | rafi80/UdacityIntroToComputerScience | ab6e7c7279b0760edda9669228dd2d0c0c10b67a | c2d702b9ca6878d17ac72fb39489b4a850644c1a | refs/heads/master | 2021-01-20T18:39:55.356079 | 2016-12-07T15:13:44 | 2016-12-07T15:13:44 | 60,169,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,534 | py | # 2 Gold Stars
# One way search engines rank pages
# is to count the number of times a
# searcher clicks on a returned link.
# This indicates that the person doing
# the query thought this was a useful
# link for the query, so it should be
# higher in the rankings next time.
# (In Unit 6, we will look at a different
... | [
"rafal.hlebionek@capgemini.com"
] | rafal.hlebionek@capgemini.com |
cd0024be46f1fc0cd047791143d3781a9383b34e | 90f2652b64aabdce12292fc3ebd0d44bedf3c8d3 | /src/predict_song.py | 8e5fe573accef865787599da6559e2e016c23630 | [] | no_license | wsonguga/scg_code | c62837cc62f628087142b253fc25013522cd3bc0 | 1b4d43111facf385b524ff26b1b0fdc5d3ecb0ab | refs/heads/main | 2023-05-01T22:21:26.583762 | 2021-05-19T23:43:32 | 2021-05-19T23:43:32 | 368,540,206 | 0 | 0 | null | 2021-05-18T13:28:00 | 2021-05-18T13:27:59 | null | UTF-8 | Python | false | false | 2,112 | py | import torch
import sys, os
from utils import get_data, Model, test_model, sort_dataset
NUM_LABELS = 4
HIDDEN_SIZE = 1024
NUM_LAYERS = 3
if __name__ == "__main__":
file_name = "real_test_timesorted"
data_path = "../data/real_regression_data"
out_path = "../outputs/real_regression_data"
if(len(sys.arg... | [
"ming.song.cn@outlook.com"
] | ming.song.cn@outlook.com |
d759b98c5650d0cca0a203e76dcbc5a4f8ac7c81 | efad0649e168b777daffe227cd7d1def854404ed | /text/symbols.py | 56acd92a3acaa33e302facdf3a725c62a531e135 | [
"MIT"
] | permissive | yiebo/tts_tranformer | 7b91a4cd84ddde4b70bc62a9536bb921ff9ad6de | 5ee4c1f07c6934821ec172b40ed6e1d708a66a18 | refs/heads/master | 2022-09-19T11:56:23.187160 | 2020-05-24T22:54:45 | 2020-05-24T22:54:45 | 266,638,423 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | from text import cmudict
_pad = '_'
_punctuation = '!\'(),.:;? '
_special = '-'
_letters = 'abcdefghijklmnopqrstuvwxyz'
# Prepend "@" to ARPAbet symbols to ensure uniqueness (some are the same as uppercase letters):
# _arpabet = ['@' + s for s in cmudict.valid_symbols]
# Export all symbols:
symbols = [_pad] + list(_... | [
"yiebo-c@hotmail.com"
] | yiebo-c@hotmail.com |
3ea9cf0003db433310684c1fd7d1ee820391fe5f | b689e2f1abfbd330f1a6ff7532615513cf85ae2f | /base/__init__.py | 8f3df09783ee0f87aad50598e8ddfe5baa356a1d | [] | no_license | taohu918/datahouse | 182dceb6969bef9f943b9ba537d9e895dd607628 | 66a24e059091e55f314ad820fc3ca8adb612c746 | refs/heads/master | 2021-04-12T07:51:41.228416 | 2018-03-19T06:46:38 | 2018-03-19T06:46:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | # __author__: taohu
from flask import Blueprint
root = Blueprint('base', __name__)
from . import views
| [
"hu_mails@163.com"
] | hu_mails@163.com |
fbb8f99928fd1c1ea8d14ab0c5742d65aa2d568d | 3d2d6448735d6480823e1cb2872c09a53b461897 | /scrapr.py | 83c1c558ccb5c6850e3a208bcdc0e5177c5c11a4 | [] | no_license | miclowe/scrapr | ce8c750352818cba9da61b04844c5a42d00c2b61 | 3a535f0f0abe5e61c4381203f53a162f0b470377 | refs/heads/master | 2021-05-11T04:47:13.933866 | 2018-04-20T15:58:05 | 2018-04-20T15:58:05 | 117,947,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | from urllib.request import urlopen
from bs4 import BeautifulSoup as soup
my_url = "http://egolferz.com/html/leaderboard.htm"
page = urlopen(my_url)
html = page.read()
page.close()
page_soup = soup(html, "html.parser")
table = page_soup.find('table')
table_header = table.find('thead')
table_body = table.find('tbody'... | [
"mick_571@yahoo.com"
] | mick_571@yahoo.com |
cbcd7950fddfd0dafb705df1c66a6d7d300a2b0f | 714354bb550f1e7a46507be9ff211b9f83e7811c | /PythEnv/Scripts/pipwin-script.py | c4e5d8c8698d9564b5be71306f3ae52bd43ba710 | [] | no_license | sachin801/offline-virtual-assistant | 40b83ce3a4a73b7a496924207ff2516d010877a1 | 33eb57cf70bc5dafb2ccdc097a98daa329da7423 | refs/heads/main | 2023-08-11T15:56:08.407528 | 2021-10-05T15:03:08 | 2021-10-05T15:03:08 | 413,783,446 | 0 | 0 | null | 2021-10-05T12:56:50 | 2021-10-05T11:09:46 | Python | UTF-8 | Python | false | false | 1,006 | py | #!c:\users\sachi\pycharmprojects\speechrecog\pythenv\scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pipwin==0.5.1','console_scripts','pipwin'
import re
import sys
# for compatibility with easy_install; see #2198
__requires__ = 'pipwin==0.5.1'
try:
from importlib.metadata import distribution
except ImportError:
... | [
"sachinsahara2002@gmail.com"
] | sachinsahara2002@gmail.com |
e9f53d472593fba30c21cd52106df23b0220e3dd | c0abec5fa649a5d3c4fd50604abd53d416f73229 | /data_table_experian.py | 1a5bc747bce0898f15aff624b340858afec31fa0 | [] | no_license | gitter-badger/city_comparison | 7413ce66015bf9cd7ed3b07a3ee712c1ecfe013a | 3b550cf2a2549b68ed28a52c68d6084ac19da72e | refs/heads/master | 2020-05-31T11:56:57.480970 | 2019-06-04T07:52:54 | 2019-06-04T07:52:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | """
Module for parsing any Experian related data in data/experian.
"""
import pandas
from data_table import DataTable
class Experian(DataTable):
""" Table of Experian data. """
@staticmethod
def read(file_path):
data = pandas.read_csv(file_path)
data['State'] = data['State'].str.lower()
data['City'... | [
"1904409+JohnTheodore@users.noreply.github.com"
] | 1904409+JohnTheodore@users.noreply.github.com |
d436717586b2fba2b0f93f97db6e7f5564a9fea3 | c0c0f64c1a543ab42ac0e81cfbda27f7c3a51c9b | /parse_iptables.py | cd8fcddaaa9dc8dd504974d20dd5dbc965549a63 | [] | no_license | superekcah/utils | c74d437bee2f3cf3d9589c0f86f4bbf43305f014 | acb5d1f11312509427e8e702aa02d83dd66b8853 | refs/heads/master | 2021-01-21T14:02:01.590118 | 2016-03-21T13:27:58 | 2016-03-21T13:27:58 | 9,028,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,684 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import subprocess
cur_table = None
all_chains = {}
top_chains = {}
tables = {}
class Chain(object):
def __init__(self, name, table, policy, packet, byte):
self.name = name
self.table = table
self.policy = policy
self.packet = ... | [
"superekcah@gmail.com"
] | superekcah@gmail.com |
421f03f6b2917a41a6a98a1194a47ef03c84abae | 1c5e7bdc574bb1ce66ff4382838ea3dbc0e290b6 | /api.py | f6216c1f21a91cf91aeece58bd4e8660b60260f8 | [] | no_license | MatthewHowitt/SwoopDeveloperAssessment | bd442d00f02226263fd532ae61e214a27f3c303e | f9391be0f02c85a1e1dbaf7206e6c34a7d27326c | refs/heads/master | 2020-05-14T10:30:56.999265 | 2019-04-16T20:42:20 | 2019-04-16T20:42:20 | 181,763,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | import json
import requests
from flask import Flask, request, Response
from flask_restful import Resource, Api, reqparse
app = Flask(__name__)
api = Api(app)
parser = reqparse.RequestParser()
# This function takes some value as a string, if the string can be converted to an int it does so, otherwise 0 is returned
def... | [
"mjjhowitt@gmail.com"
] | mjjhowitt@gmail.com |
aba5bc122a4b99dc9819faa4500dbd67585597b0 | e535f59053b545b493c93c9945aa054ad1335178 | /linkml/generators/javagen.py | 7183d3d6c2625bd023d3550244e7b7c94f099acf | [
"CC0-1.0"
] | permissive | pabloalarconm/linkml | 9308669d5baba2a2c60fe79f31f737e87ed59295 | 5ef4b2f0e89698ffc0db693fdba68d1306438749 | refs/heads/main | 2023-08-25T14:41:58.419628 | 2021-10-02T02:04:06 | 2021-10-02T02:04:06 | 411,990,387 | 0 | 0 | CC0-1.0 | 2021-09-30T08:49:50 | 2021-09-30T08:49:50 | null | UTF-8 | Python | false | false | 3,382 | py | import os
from typing import Optional, Tuple, List, Union, TextIO, Callable, Dict, Iterator, Set
import click
from jinja2 import Template
from linkml_runtime.utils.schemaview import SchemaView
from linkml.generators import JAVA_GEN_VERSION
from linkml_runtime.linkml_model.meta import SchemaDefinition, TypeDefinition... | [
"kevinschaper@gmail.com"
] | kevinschaper@gmail.com |
064ac56fc601ce0a60b6556fb119e8c841de5580 | 9bca04376f3c34801f4a79127d5c6e2d5599d0de | /src/posts/models.py | 3809c2509430c6a7add94df4996171e0b4713188 | [] | no_license | kasin-ua/prach | ec99880b6f3dee13ad97343ca4f39a1489dfc036 | fa2d1c2875b5c47d80c79cb050e5ee08e8d3f683 | refs/heads/master | 2021-01-10T09:40:08.736328 | 2016-03-11T08:46:18 | 2016-03-11T08:46:18 | 53,467,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | from __future__ import unicode_literals
from django.db import models
from django.core.urlresolvers import reverse
# Create your models here.
def upload_location(instance, filename):
#filebase, extension = filename.split(".")
#return "%s/%s.%s" %(instance.id, instance.id, extension)
return "%s/%s" %(instan... | [
"toslata@gmail.com"
] | toslata@gmail.com |
8c1f361b5057c52de52bc84be3613208359ed794 | 18754ca7a4d5ac749ad29a1294cc2eefb1eb5442 | /gen_code_for_structure_reader/ggdefs_h_specialize.py | 3191367349fc858a1f7e97190c8871008e8d9ed2 | [] | no_license | abc19899/gen_code_for_structure_reader | dbe00ed33a2341bc031fa5f85cb74dd12a2d8087 | a3116a3eca4bff65c42d99c23d6e1ad28394674e | refs/heads/master | 2021-01-14T08:17:53.168001 | 2017-02-15T07:51:54 | 2017-02-15T07:51:54 | 82,034,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,527 | py | # encoding=utf-8
""" ggdefs.h有一些逻辑不能通过代码分析来获得, 这里手动处理
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
macro_dict = {
'MAX_PLAYER_NAME_LEN': 16,
'MAX_INSET_JEWEL_NUM': 4,
'MAX_SUBATTR_NUM': 15,
'MAX_... | [
"abc19899@foxmail.com"
] | abc19899@foxmail.com |
c3d88ba20ee2807adfc29cc28181217a65828687 | afd5cdcf13b5c940f52e2070253c6c7a60972479 | /votes/admin.py | fc08d108923533ec0848aff6d7a418388047aec3 | [] | no_license | abiola814/voting-system | 215c035e907c0b379d4fd0a06243de1ca983d15d | 0025de00156f6b989df98639b05876bd5a05cad1 | refs/heads/main | 2023-07-10T13:23:39.571809 | 2021-08-10T19:01:26 | 2021-08-10T19:01:26 | 393,693,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | from django.contrib.admin import AdminSite
from django.contrib import admin
from .models import Poll, Choice, Vote
class Myadminsite(AdminSite):
site_header = 'voting system'
adminsite= Myadminsite(name = 'my-site-admin')
adminsite.register(Poll)
adminsite.register(Choice)
adminsite.register(Vote)
admin.site.regis... | [
"noreply@github.com"
] | noreply@github.com |
880e71b019209d46ac553383a0934d5d77bf65a0 | 6c4cd337bc19ba0a7f0f863645ba45275cea122d | /thispersondoesnotexist/__init__.py | 267dc98cdf2f91bd3d35cbc648ce1c69cbda1006 | [
"Apache-2.0"
] | permissive | David-Lor/ThisPersonDoesNotExistAPI | 152c094fe9dfa3bdc2a382d49d10c5ee1c884618 | 6f299de6d000e6df63125ea553be675c6d4d835d | refs/heads/master | 2023-08-09T18:29:12.822580 | 2023-07-31T21:48:24 | 2023-07-31T21:48:24 | 171,178,270 | 106 | 20 | Apache-2.0 | 2023-08-03T07:42:09 | 2019-02-17T22:10:11 | Python | UTF-8 | Python | false | false | 74 | py | from .online_getter import *
from .helpers import *
from .assets import *
| [
"davidl.eco@gmail.com"
] | davidl.eco@gmail.com |
70455a839efde333033f93f0bb5305f4ad5201a0 | f447d350a98c8f2e303ff9ac5bc4d37b7922d45e | /run_viz.py | 253824947a7d62ef99a739d1ffa7026b2f7fce40 | [] | no_license | Nrikolo/UCAFleet | c2866f26b1995290f0306c0ea7f39e91b5b571e5 | 0692634ae45788eebff3784a3579150d31d324f5 | refs/heads/master | 2021-04-15T09:46:08.652473 | 2018-07-13T20:47:55 | 2018-07-13T20:47:55 | 126,915,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 16 15:47:22 2018
@author: Riko
"""
# TODO: Visualization of parcels state. A pie chart where each sector indicates
# either {awaiting, onroute, delivered}
# TODO: Visualization of parcels state. A line chart where each line indicates
# the total numder of parcel... | [
"nir.rikovitch@gmail.com"
] | nir.rikovitch@gmail.com |
5c3f2491ddd794ce77ac1c0e00010185f159421b | 520af1b4cef46dd77cdf20026a47b987bdd6746b | /Project 5/1_3.py | b841a6e79de9222ad3c1945c3ca7fe4fca26bdb3 | [] | no_license | Laura9505/EE219 | 1736047e4a19917ab80781c83ee38dae4527b0ac | 215c46dea9016826d1a8dc0bba50ace2fe74488e | refs/heads/master | 2020-03-11T18:48:09.200345 | 2019-01-06T01:07:55 | 2019-01-06T01:07:55 | 130,179,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,857 | py | import json
import numpy as np
import pandas as pd
from pandas import DataFrame
from sklearn.linear_model import LinearRegression
from sklearn.metrics import mean_squared_error
import statsmodels.api as sm
import matplotlib.pyplot as plt
tweet_file = ['#gohawks', '#gopatriots', '#nfl', '#patriots', '#sb49', '#superbow... | [
"wanghui@s-164-67-234-201.resnet.ucla.edu"
] | wanghui@s-164-67-234-201.resnet.ucla.edu |
cfb5f2ac07b77f57fd488fc4de2d5de1a653a443 | eac59df52c001e4f549c1fe6a5d1676d1b183140 | /setup.py | e1422878c3d7ec5600b572ce37b424dfa500e964 | [
"Apache-2.0"
] | permissive | aleksrgarkusha/pcs | 0558ddf2dc98fead2d05f0dc5844f2ec9a2e3a4b | 597a2aa020a60473307ef09a8939db1d93657f8a | refs/heads/main | 2023-08-12T05:27:12.195924 | 2021-09-09T22:34:17 | 2021-09-09T22:34:17 | 401,155,101 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,559 | py | import os
import sys
import pathlib
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
class CMakeExtension(Extension):
def __init__(self, name):
super().__init__(name, sources=[])
class CMakeBuild(build_ext):
def build_extension(self, ext):
cwd = pat... | [
"saniahome@mail.ru"
] | saniahome@mail.ru |
026253c8bee620e52af59fce738b1fa370a3c900 | 86955630eebd7a46ba31ae1ac9ccd2100974a65b | /scripts/generate_board_depth_ir_image.py | 2affe9b58d3ca7af93d6dde0f05a19a6acb5f469 | [] | no_license | yuki-inaho/bundle_adjustment_with_apriltag | c503b72b1c77d28064e80c6d240d1631bcb4d6a6 | a8fe2fa24446d0c42f5713be13f65ef55196eab4 | refs/heads/main | 2022-12-28T01:42:25.963749 | 2020-10-08T08:40:50 | 2020-10-08T08:40:50 | 301,601,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,126 | py | import numpy as np
import cv2
from pathlib import Path
from utils import (
set_camera_parameter,
set_ir_camera_parameter,
colorize_depth_img,
get_undistortion_module,
undistortion
)
import toml
import argparse
import pdb
SCRIPT_DIR = str(Path(__file__).resolve().parent)
PARENT_DIR = str(Path(SCRIP... | [
"yoshikawa@inaho.co"
] | yoshikawa@inaho.co |
638667bb30ef0006c74f375cd417ef7d6e0e0f88 | 52aafe9fe70015ac331727a04d249c5d80779f5c | /exer_1_maratona_program.py | b39de3bf7fd1d160db32ae7ff3d46ba810f290d3 | [] | no_license | levi5/exer_progamacao | 2b782c4c446d81d6d43b74dd55d6861b6050d50e | 51236f1c221eafa9212cf15d6d4016f9ad63dff4 | refs/heads/master | 2021-04-30T05:35:40.918495 | 2018-02-13T18:32:44 | 2018-02-13T18:32:44 | 121,420,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,948 | py | import math
class num_min_pg():
def num_palav(self, num1):
self.texto = str (input(''))
self.tamanho = len(self.texto)
self.texto = self.texto.split(' ')
for x in self.texto:
if len(x) >= 1 and len(x) <= 70:
self.texto_1 = []
if num... | [
"34753790+levi5@users.noreply.github.com"
] | 34753790+levi5@users.noreply.github.com |
b20d17916565894c0ad9d4c6695c25d8b0ded9b1 | 5b5d46b4a47ab365688af03afdbec24e885a2c90 | /21/21.py | 19a6901a33b382a6d732eace82edb63fc3f53e03 | [] | no_license | CA2528357431/python-base--Data-Structures | e9e24717ae016c4ca4a15805f261fd48f377ac6b | dccbcb27d82f2264947458686900addf2b83faad | refs/heads/main | 2023-07-04T08:32:52.551200 | 2021-07-30T16:21:31 | 2021-07-30T16:21:31 | 386,671,623 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,829 | py | # 二叉树
# 27非递归遍历
class tree:
def __init__(self, root, left=None, right=None):
self.nodes = []
self.root = root
self.left = left
self.right = right
self.data = None
# root作为排序依据
# data存数据
# 后续几个二叉树用例就不带数据了
@property
def lisp(self):
... | [
"2528357431@QQ.com"
] | 2528357431@QQ.com |
3f31aed1d2535080b22aec25c04f7b53f426c9ec | 088641f914b3865a8352e52eb2a48b2244506a2c | /MainTesting/IMUProcess.py | 14e2ffb2ee2d2cf9e58ee752f6ad212f68f667ab | [] | no_license | DavidAmison/thread_test | 49ee75efbab1ccce68a2eba086c241a13adf3e21 | 4c04823bb2819ff346b53ab3e4e46d5d7cd302de | refs/heads/master | 2021-01-22T18:33:40.816012 | 2017-03-17T19:40:27 | 2017-03-17T19:40:27 | 85,092,804 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | """
Created on Fri Mar 17 16:49:16 2017
@author: David
"""
import timeit
import IMU
import multiprocessing
class IMUProcess(multiprocessing.Process):
def run(self):
st = timeit.default_timer()
IMU.collect_data(100)
tm = timeit.default_timer() - st
print('IMU took:',tm,'s') | [
"david.amison20@gmail.com"
] | david.amison20@gmail.com |
fe4091648705793506b512a3db8c66523e047ce9 | a957c31e7a09c507debcc793f39db04f457ad966 | /backend/storm/manage.py | 14f674679dea3870b89cabf7fcc829728399f944 | [] | no_license | TheFuzzy/NTU-CZ3003-CMS | bbc6a6d3c2bce887e12101e56995ca415ede768a | 4409a623b248b937d4a92b5b7bd7c3471c2bb7e3 | refs/heads/master | 2019-01-02T03:23:34.210023 | 2014-04-17T06:40:33 | 2014-04-17T06:40:33 | 17,104,639 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "storm.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"hoangyenng060493@gmail.com"
] | hoangyenng060493@gmail.com |
3c327c89f0de7bec82025164c968faf2df12d343 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/4191/codes/1716_2497.py | 08cd8e7141262da535ce7f98751d1c4b82b7ce4d | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | # Instituto de Computacao - UFAM
# Lab 04 - Ex 04
# 20 / 06 / 2016
qi = float(input("Quantia inicial: "))
tempo = int(input("Tempo de investimento: "))
juros = 4.0
saldo = qi # Variavel acumuladora
# Valor inicial da variavel contadora
t = 0
rend=0
# Atualizacao de saldo
while(t<tempo):
rend = saldo * (juros/10... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
32b42c8cc585711b17c8bd705bef71998e2e8323 | ac1644a3e6d0209562fd21ce43bb9c422137b1e9 | /AnalysisCI/GitWikiFormatter.py | a6a819eaf2d792a556893df4b4c4bfbb5927d838 | [
"Apache-2.0"
] | permissive | aa-software2112/SOEN390_SimpleCamera | a18d53334fc233bff4fc88927aae4cf28a322718 | ffd1b9216f81f40b8b09588402438ff6bebc25d0 | refs/heads/develop | 2020-04-15T06:22:27.500475 | 2019-04-15T16:22:16 | 2019-04-15T16:22:16 | 164,458,621 | 5 | 1 | Apache-2.0 | 2019-04-15T16:29:00 | 2019-01-07T16:17:24 | Kotlin | UTF-8 | Python | false | false | 4,862 | py | import os
import subprocess
from TravisEnvirExtractor import TravisEnvirExtractor
class GitApiHelper():
@staticmethod
def config(email, username):
subprocess.Popen(['git', 'config', '--global', 'user.email', email]).communicate()
@staticmethod
def push(use_token=False):
if not use_to... | [
"a_dreoli@encs.concordia.ca"
] | a_dreoli@encs.concordia.ca |
cd0242dbd00c5b49c79a07dfb842bee733bde983 | 3e6935bf8b1b14bf897f230ffe90dcba745b3534 | /pañol/views.py | b316113070c81d6c7601a4bb9a32ef0f5220e374 | [] | no_license | pipeordenes/pa-ol | 0902e7d7ca9befc7cd9d411f71f8489129a1cccb | c6447058199b71ea6bb3c3c909b3bdd5767acfc8 | refs/heads/master | 2020-09-08T22:54:20.924722 | 2019-12-04T20:20:51 | 2019-12-04T20:20:51 | 221,267,714 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | from django.shortcuts import render
from .models import Pañol,Persona
from django.views import generic
def index(request):
return render(request, 'index.html')
def info(request):
return render(request, 'info.html')
def formulario(request):
return render(request, 'formulario.html')
def galer... | [
"noreply@github.com"
] | noreply@github.com |
379beb1e77ac436d3ed27c8285063c25a9983ae2 | ebe8e6a885fe38aa5b4f153ae7e97183b114371f | /todos/migrations/0002_auto_20180809_0222.py | 9193f1879b8bb5e5358472937c52836840ac588c | [] | no_license | ahmed-zubair-1998/todos-app | 1ca0bd5ccac245c46d158ba471262a967202fc45 | 23c82f1f396758560d1332fbb094468130800bdb | refs/heads/master | 2020-03-25T16:22:25.072170 | 2018-08-09T21:21:16 | 2018-08-09T21:21:16 | 143,927,425 | 0 | 0 | null | 2018-08-11T09:03:44 | 2018-08-07T21:13:17 | Python | UTF-8 | Python | false | false | 720 | py | # Generated by Django 2.1 on 2018-08-08 21:22
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('todos', '0001_initial'),
... | [
"ahmed.zubair@arbisoft.com"
] | ahmed.zubair@arbisoft.com |
074e0c1bd228b44b107f1584fe6cd68117e95268 | 9fcc13b9556f57b362867ee6e06f257d5af5e812 | /PythonProjects/scriptExample.py | 5347361524ae14c15035630e58da83b5147cf0d6 | [] | no_license | rlyyah/1st_2nd_week | daab4028ba0ceb436059224f2ee1ccd2302275f1 | 825f116182b9db84190bea18ee1aaa92e108fed1 | refs/heads/master | 2020-09-14T01:22:26.598043 | 2019-11-20T15:16:20 | 2019-11-20T15:16:20 | 222,965,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | print('Please enter your name')
answer = str(input(' '))
while type(answer) != str:
answer = str(input('Please enter your name'))
if len(answer) < 1:
print('Hello stranger!')
else:
print('Hello ' + answer)
| [
"tmakowski1337@gmail.com"
] | tmakowski1337@gmail.com |
c224a0a67f24b636dd0b650907a86aefdd1418de | bc7092c337428dfc8398a6108d30ffa44e3a168e | /app/models/book.py | fce8a3821323be11efe90718b4523725799d83e7 | [] | no_license | Choco-x/fisher | 8f43cf88c9212d17831c7ab8fce8babf42492898 | 389305a7104c3f21ceda8f039e2899f0fae6215a | refs/heads/master | 2022-12-22T08:14:42.790352 | 2020-02-25T05:46:02 | 2020-02-25T05:46:02 | 242,916,357 | 0 | 0 | null | 2021-03-20T03:19:32 | 2020-02-25T05:17:50 | Python | UTF-8 | Python | false | false | 784 | py | """
模型层
模型自动化映射生成表 sqlalchemy
Flask_SQLAlchemy
"""
from sqlalchemy import Column, Integer, String
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
# 需要和app核心对象绑定
# db = SQLALchemy(app) 需要引入
class Book(db.Model):
id = Column(Integer, primary_key=True, autoincrement=True)
# Column()建立新列
title = Co... | [
"choco0330@qq.com"
] | choco0330@qq.com |
bd5155e5950eb069a38d2fce0df786350afdbebd | 71788a22dcaeb2fbde56b87fabf7ee21df3a770f | /students/eric_gosnell/lesson_08/circle.py | 5adf1b2c248ded0714aebaa51ae31f4252e8837c | [] | no_license | UWPCE-PythonCert-ClassRepos/Python210_Fall2019 | 5bdfc1c919666eccb42ee07a1d7e385b21f11652 | e45481671684a3cc8a469461a15cd9f660752ee0 | refs/heads/master | 2020-08-05T16:33:53.068983 | 2019-12-29T09:57:59 | 2019-12-29T09:57:59 | 212,615,940 | 4 | 34 | null | 2019-12-29T09:58:00 | 2019-10-03T15:38:40 | Python | UTF-8 | Python | false | false | 3,332 | py | """
Eric Gosnell
Lesson 08 - Circle Class
11.25.2019
"""
from functools import total_ordering
from math import pi
@total_ordering
class Circle:
"""Circle shape class with typical geometric attributes"""
@classmethod
def from_diameter(cls, diameter):
return cls(diameter / 2)
def __init__(sel... | [
"egpython19@gmail.com"
] | egpython19@gmail.com |
3406d55446f31b11a840b6274b4a1d052921988b | 55987c6d7516477d65b7e8d1d366cba1c609af5d | /merge_sort.py | 7b86d3654944cec54c69be2964ef66023cb70e3c | [] | no_license | vafajardo/CourseraAlgorithmsPart1 | 080414ba85f0807122913f8c5110bab36fc727bb | 9bd87d0cfaa4ac6e78daf4c048718bddd4a46520 | refs/heads/master | 2021-01-10T02:07:43.243167 | 2016-04-02T19:54:41 | 2016-04-02T19:54:41 | 54,615,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | #!/bin/python
# My merge sort algorithm (can handle non-even arrays)
def combine(x,y):
"""
merge_sort always sends y as bigger half in case x and y
are arrays of different lengths.
I have to include "=" to take this last observation into account.
"""
z = []
# having nx and ny allows for combinin
nx = len(x)
... | [
"andrei.fajardo@gmail.com"
] | andrei.fajardo@gmail.com |
e9e6b193ada49c07eeba439047839ed6c513a166 | 7a31597f1359be11d2cc05d8107963f3dbe9e204 | /Image_recognition/utils/model_dict.py | c4a7e7c37d00cc8aae670e50e091d41bc1d6d1b9 | [] | no_license | LIMr1209/machine-learn | 9aac2b51a928a864ac3cf82368b3fe9694644cb2 | 56453dce6ae8ba5e7298dab99d5e6a6d114e4860 | refs/heads/master | 2022-07-12T14:17:07.536535 | 2021-12-20T06:57:54 | 2021-12-20T06:57:54 | 163,064,915 | 5 | 2 | null | 2020-08-31T03:09:10 | 2018-12-25T08:48:00 | Python | UTF-8 | Python | false | false | 252 | py | import torch as t
def save_oplaus():
state_dict = {}
checkpoint = t.load('../checkpoint/EfficientNet.pth.tar')
state_dict['state_dict'] = checkpoint['state_dict']
t.save(state_dict, '/opt/checkpoint/EfficientNet.pth')
save_oplaus()
| [
"aaa1058169464@126.com"
] | aaa1058169464@126.com |
4a2b37ae2ac53caae2f1788898826989d070b4f5 | 1bde114a847c629701e3acd004be5788594e0ef1 | /residual/code/FunctionObjects/ChainOfResponsibility.py | bcb44c3267c355ce4a9eb632900d8283f24c1743 | [] | no_license | BruceEckel/ThinkingInPython | 0b234cad088ee144bb8511e1e7db9fd5bba78877 | 76a1310deaa51e02e9f83ab74520b8269aac6fff | refs/heads/master | 2022-02-21T23:01:40.544505 | 2022-02-08T22:26:52 | 2022-02-08T22:26:52 | 97,673,620 | 106 | 33 | null | 2022-02-08T22:26:53 | 2017-07-19T04:43:50 | Python | UTF-8 | Python | false | false | 2,733 | py | # FunctionObjects/ChainOfResponsibility.py
# Carry the information into the strategy:
class Messenger: pass
# The Result object carries the result data and
# whether the strategy was successful:
class Result:
def __init__(self):
self.succeeded = 0
def isSuccessful(self):
return self.succeeded
... | [
"bruceteckel@gmail.com"
] | bruceteckel@gmail.com |
e380de69418da9be88cb3a88a31e87d7ecac0918 | b84981a1c862b3a5ccd7d215532847192a6773d8 | /test/scenarios/kusto/output/ext_default_folder/src/kusto/azext_kusto/generated/commands.py | dc1174f122a6d21228b91db2b60d238500db8132 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | qiaozha/autorest.az | d0a0427b4414cabf2cc69a5f67204a34d0b7dea7 | 70265eda62ff6d4ec4ae978693f7b7cc46304b09 | refs/heads/master | 2023-03-17T22:16:24.207128 | 2021-03-08T06:53:00 | 2021-03-08T06:53:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,226 | py | # --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incor... | [
"noreply@github.com"
] | noreply@github.com |
addcaf23d559f565c76be58dd26d6a5b76857526 | ed065fd97cdfc9b3396bdaee7ccfb17dc0557803 | /HP Codewars 2017/prob13.py | b003eb39db60418af050d040c229a483bd764393 | [
"Apache-2.0"
] | permissive | NaveenGop/projects | 25f626f38fee6f0d9f05648c4b1c463c9a7fc515 | b4c63f7b7030288b384ff780f078bcd9504769b0 | refs/heads/master | 2021-06-30T04:24:06.448031 | 2017-09-20T04:04:32 | 2017-09-20T04:04:32 | 104,162,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | with open('prob13-2-in.txt', 'r') as f:
a = f.read()[:-1]
d = ['u', 'd', 'l', 'r']
x, y, e = 0, 0, 'r'
word = []
for z in a:
word.append([z, x, y])
char = z.lower()
if char in d:
e = char
if char == 'r':
x += 1
if char == 'l':
x -= 1
if char == 'u':
y += 1
if char =... | [
"noreply@github.com"
] | noreply@github.com |
c5023ecc348a5f6d754ae717b924597515d9e466 | c24fa89450cccb48fcd481c3cfa475ee0e412e09 | /PythonTools/accToMatAcc.py | 9b41f081bd69b214a00fd824ead8d6cca2702378 | [] | no_license | PhoenixYanrongLi/CareEcoSystem_ServerCodeNew | e95d1c552cdcc70aac09482dfda63e253e01fcb0 | b627484694863c425483a04391eedc2ec2ec1098 | refs/heads/master | 2021-01-01T04:34:51.858543 | 2016-04-14T17:57:30 | 2016-04-14T17:57:30 | 56,258,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | __author__ = 'Brad'
import csv
import datetime
import scipy.io
import numpy
def writeFile(filename):
writeDict={}
f=open(filename,'r')
timeAr=[]
accAr=[]
with open(filename, 'r') as f:
reader = csv.reader(f, delimiter=" ")
for time, x, y, z, azimuth, pitch, roll in reader:
... | [
"phl_416cat@sjtu.edu.cn"
] | phl_416cat@sjtu.edu.cn |
1ee47960a9622eda41d4240873eadcb969bff091 | f80b74334058d3fdf6ddf3aa9931d07272b07492 | /mysite_venv/mysite/read_count/migrations/0001_initial.py | 5ef99eb29709767aae7c5f004c945f2f6f1480dc | [] | no_license | LittleSheep213/ls_blog_site | ad7258ca8a75ce8d3ae836c2cc5ea44ac2521e8d | b716bff21d621bee1d60520353e725f929133354 | refs/heads/master | 2022-11-11T21:26:26.528404 | 2019-03-19T05:41:53 | 2019-03-19T05:41:53 | 176,430,919 | 0 | 1 | null | 2022-11-02T11:46:39 | 2019-03-19T05:27:48 | Python | UTF-8 | Python | false | false | 775 | py | # Generated by Django 2.1.7 on 2019-03-14 09:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
]
operations = [
migrations.CreateMode... | [
"1574709401@qq.com"
] | 1574709401@qq.com |
cefbf0a0fdf8d99aa2a71fe16307acce46c29f21 | bde54b463633bb4f4a3a15bca70801e481274bf4 | /FP driver.py | e43731ab2f75fad07fb891f486405a1979e83679 | [] | no_license | kwujciak/Final-Project-ES2 | b5985b4671a00cf8d7f12ccc5d0152bec97349f7 | 7c529e13119046b94dc8eafa47077dbbdb772daf | refs/heads/master | 2022-06-21T11:33:38.045140 | 2020-05-01T15:07:26 | 2020-05-01T15:07:26 | 260,487,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri May 1 09:59:51 2020
@author: katewujciak
"""
import FP_time as time
import FP_currency as cur
import FP_attractions as at
import FP_FlightTime as ft
print("Welcome to your personal travel tool!")
print("Compatible destinations are:")
print("London, R... | [
"noreply@github.com"
] | noreply@github.com |
096d0d8288be255279da6b0333f78ba7b7ba5d4a | 48e907ceff4620d93353985d502bd5c56489422d | /brochure/views.py | 41d14388d9f950a62460ea1cb01b76ae414b422f | [] | no_license | pinealan/stemandbeyond | 7b49d44f36b7d7724eb5df3c60be22b81f1f1955 | 49c4cb62a8a5a10fa0501801874e03e3d61aedd8 | refs/heads/master | 2020-03-23T04:58:47.092453 | 2018-08-11T21:00:27 | 2018-08-11T21:00:27 | 141,117,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | from django.shortcuts import render, get_object_or_404
from django.views import generic
from .models import Speaker, Metatag, Content, Affiliate
def index(req):
context = {}
context['content'] = {blob.field: blob.text for blob in Content.objects.all()}
context['speakers'] = list(Speaker.objects.all())
... | [
"achan961117@gmail.com"
] | achan961117@gmail.com |
d490e410f392b2ae592f904be4753a8223b0cb08 | 27cfd0d22e9cdb2bed18f55788332191bcbb973a | /armstrong-numbers/armstrong_numbers.py | 30e6c9fca283975d5dd190064638295c1c380b38 | [] | no_license | NishantUpadhyay-BTC/python-exercism-exercises | 151b9a2b14cc5f28baf761a1fe6d46c1b3827e39 | 60a57ae1de8a8bf74242b754db02af5b8099c479 | refs/heads/master | 2020-07-01T16:39:30.075982 | 2019-08-08T09:55:35 | 2019-08-08T09:55:35 | 201,228,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | def is_armstrong_number(number):
digits = list(map(int, str(number)))
total_count = len(digits)
power_arr = [digit ** total_count for digit in digits]
return sum(power_arr) == number
| [
"nishantupadhyay@botreetechnologies.com"
] | nishantupadhyay@botreetechnologies.com |
67e14d9dd0180f4e2182ddaef7cbe3dad2f06327 | 0ef9b5db33cf121d7a089c139894f6c918bd770a | /Events_Api_Interface/settings.py | 254e7b569001d423bf273b75d21c789ffb6216ac | [] | no_license | dnaport22/events_recommandation_api | f16dab14bc1a4483ad88fdf4ad7cb64c61c839d2 | c7afe3d68cbd7ca062bbc3dbfded001ba433b94f | refs/heads/master | 2021-01-15T10:42:22.179881 | 2017-08-07T15:55:31 | 2017-08-07T15:55:31 | 99,594,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,212 | py | """
Django settings for Events_Api_Interface project.
Generated by 'django-admin startproject' using Django 1.11.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"... | [
"nav@navs-MacbookAir.local"
] | nav@navs-MacbookAir.local |
4b244650d7abe40c2752c34c73b3f8b6dd3fb81d | 1833612f35d8ebc0249e882fead7b593d58ae911 | /ground-core/scripts/cassandra/cassandra_setup.py | 3346d2d7ef8a3f0ac6b09dd9401f56e4d9b1a55d | [] | no_license | jegonzal/ground | 6b8eb797f0e602aeac9c7107ae0b80c44e9719e3 | 78efff8e41cc21b72f427202318a650563d2017e | refs/heads/master | 2023-08-30T18:07:37.926637 | 2016-07-09T21:49:06 | 2016-07-09T21:49:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | import sys, os
assert (len(sys.argv) == 2)
dbname = sys.argv[1]
command_string = "cqlsh -k " + str(dbname) + " -f cassandra.sql"
os.system(command_string)
| [
"viksree@gmail.com"
] | viksree@gmail.com |
20df727211d4c56d675fffedbca49041fd906653 | bb156f9916f9fe8530306cd2e97d23ed06428c0a | /.wttd/bin/pyreverse | 0da3ae4accd62c6c7200d36dda8db2c6a2e3162f | [] | no_license | wilharlley/wttd | dcda740f3c31a5b96e1bbec3eafccc92ddb7ed9c | 1926032de18e969129ac78ebc20a204ff6e605ae | refs/heads/master | 2020-06-03T15:22:24.309374 | 2019-06-12T14:07:00 | 2019-06-12T14:07:00 | 191,625,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | #!/home/wilharlley/Desenvolvimento/Pessoal/wttd/.wttd/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pyreverse
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_pyreverse())
| [
"wilharlley@hotmail.com"
] | wilharlley@hotmail.com | |
1eb4ea943bb10ccda036a8f2bbafcef91c5855ed | efd6a277c2d5bffdfba6ccb4d5efd555e652d29e | /chap2/2.12.py | f427f3f0b66eeba917d8798655d76ae107eb82bf | [] | no_license | CavalcanteLucas/cookbook | dd57583c8b5271879bb086783c12795d1c0a7ee8 | 09ac71e291571e3add8d23d79b1684b356702a40 | refs/heads/master | 2020-03-25T03:09:39.608599 | 2019-09-13T04:43:23 | 2019-09-13T04:43:23 | 143,325,952 | 0 | 0 | null | 2020-09-25T05:46:30 | 2018-08-02T17:32:08 | Python | UTF-8 | Python | false | false | 885 | py | # Sanitizing and Cleaning Up Text
s = 'pýtĥöñ\fis\tawesome\r\n'
s
remap = {
ord('\t') : ' ',
ord('\f') : ' ',
ord('\r') : None # Deleted
}
a = s.translate(remap)
a
import unicodedata
import sys
sys.maxunicode
cmb_chrs = dict.fromkeys(c for c in range(sys.maxunicode) if unicodedata.combining(chr(c)))... | [
"thesupervisar@gmail.com"
] | thesupervisar@gmail.com |
abec0a4a92dc068a00f9f27d0c21709406b6641f | e47b87905872d92458512b0eda435f53f90b19cf | /movies/migrations/0003_alter_movie_author.py | f15bf19bee735f007ed42db65755c2622c2f495c | [] | no_license | ephremworkeye/drf_demo | e08e2f2049b427497bad815e51247e27784b1f29 | 9f5ce84edd7841fd0456107d99485d2af44e1c49 | refs/heads/master | 2023-07-31T16:24:12.400218 | 2021-09-25T05:56:05 | 2021-09-25T05:56:05 | 409,107,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # Generated by Django 3.2.7 on 2021-09-23 00:36
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('movies', '0002_alter_mov... | [
"ephremworkeye@gmail.com"
] | ephremworkeye@gmail.com |
2179a4aeda2724c9cc76fb486c75f79bf594baab | 76dfa1c7d83a66f8e57ff058cea13541c8590785 | /process_create.py | 9ada85511df8ecd7d67428428190c6c377ca5bef | [] | no_license | seyo-you/web2_python | 8fecc3c911116ce4ca572f4c2a21ae2248974c6d | 457522091113d899894a5b8fa349b89b248ad59f | refs/heads/main | 2023-02-05T10:06:14.179743 | 2020-12-21T07:16:35 | 2020-12-21T07:16:35 | 322,902,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | #!/usr/bin/env python3
import cgi
form = cgi.FieldStorage()
title = form["title"].value
description = form["description"].value
opened_file = open('data/'+title, 'w')
opened_file.write(description)
#Redirection
print("Location: index.py?id="+title)
print()
| [
"noreply@github.com"
] | noreply@github.com |
86e530ad2926e76a695d7a7e9bce92cafb6d33fe | 1a861389682ffae24cf37591a56ef49f2a2cd25c | /My_Social_Project/App_Posts/admin.py | ed2650dba5eae3c646e9f4d3ed11ef8a92796d8f | [] | no_license | tanviredu/Social | 2a180f72a4a006d21e662101c3a2b441d960c30a | f52dc31358adf36701fd56c688cd1c6c947799b2 | refs/heads/master | 2022-12-11T00:58:36.386143 | 2020-09-04T17:30:30 | 2020-09-04T17:30:30 | 290,747,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | from django.contrib import admin
from .models import Post,Like
admin.site.register(Post)
admin.site.register(Like)
| [
"tanvirrahman@pop-os.localdomain"
] | tanvirrahman@pop-os.localdomain |
6a44b292eddc09c6e7fd4688ff22c55ddc9a8820 | 1265e6cef320aad5691e63077b16432d6dbf9d54 | /main.py | 0250cf777648325f7faf33152f446446a8be19e2 | [] | no_license | ullikappu/MySite | 9d8734eb41ac2efbd987cf92b2ed33c3b5eb9ba6 | 70c09f68e99f5868038ec7aab4b9a7e7c2242da1 | refs/heads/master | 2023-05-14T20:10:33.940971 | 2019-07-22T16:29:50 | 2019-07-22T16:29:50 | 198,260,499 | 0 | 0 | null | 2023-05-02T18:28:17 | 2019-07-22T16:13:06 | HTML | UTF-8 | Python | false | false | 1,498 | py | from flask import Flask, render_template, request, make_response, Response, Request
import datetime
import random
import uuid
SECRETS_DB = {}
app = Flask(__name__)
@app.route("/")
def index():
some_text = "Message from the handler."
current_year = datetime.datetime.now().year
cities = ["Boston", "Vie... | [
"serce75@gmail.com"
] | serce75@gmail.com |
0c2344ad81e759cfc904c110fd2b6691d39439c6 | 5a52c8cfa4268135316b9688c8f72a7e7dd2dd1b | /14.py | fe455b5970dc69d39754b4d0eae9baba27a7e352 | [] | no_license | joketeng/LeetCode | 4f7fdf45ddc55fe9eec9708f2e27d9c3d898368d | 49c342fd884702bc4fca386b8b51d5c464cc6191 | refs/heads/master | 2020-03-31T18:02:07.777952 | 2018-12-17T16:04:00 | 2018-12-17T16:04:00 | 152,443,941 | 1 | 0 | null | null | null | null | GB18030 | Python | false | false | 711 | py | class Solution:
def longestCommonPrefix(self, strs):
'''
a = [1,2,3]
b = [4,5,6]
c = [4,5,6,7,8]
zipped = zip(a,b) # 打包为元组的列表
[(1, 4), (2, 5), (3, 6)]
zip(a,c) # 元素个数与最短的列表一致
[(1, 4), (2, 5), (3, 6)]
zip(*zipped) # 与 zip 相反,*zipped 可理... | [
"noreply@github.com"
] | noreply@github.com |
f5a3685cbdf15c80e00b6ef7d6df4403c70af4dc | af0f8b9af4c15da99c31f0bee8064a7ca7302385 | /task2.py | f379bc07d1d7404fe87244d039c64e9702ae200e | [] | no_license | brittanylindberg98/Homework7 | ddb25aa985c372952dd9468880f794d57b7d9f0a | 3807da0bb56827b6e8b94a4cb8d473f5c3d8111d | refs/heads/main | 2023-02-01T02:32:25.067614 | 2020-12-12T05:17:04 | 2020-12-12T05:17:04 | 320,753,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,325 | py | def change_working_dir(new_directory='', verbose=False):
import os
if verbose:
print('Working directory was: {0}'.format(os.getcwd()))
in_str = new_directory
if in_str == '':
in_str = os.path.dirname(os.path.realpath)
os.chdir(in_str)
if verbose:
print('Working d... | [
"noreply@github.com"
] | noreply@github.com |
6e7a6db5c0b4633c4d25fb61e1f4d9f2e9b0664f | f9ad3e5082181bf1e5a72cc36ab0d7d6aced16fa | /detection/dataset/constant.py | 4363b9a7489c35ca602a0b5f3d1a1c5e14ad83a3 | [] | no_license | Yaser-wyx/classicNerualNetWork | 2d1af05b5248d76912696ca34df4825ae846878f | f9445457d13206460e3ab03258be8f77801c0a2a | refs/heads/master | 2023-05-31T02:33:46.180581 | 2021-06-11T08:44:18 | 2021-06-11T08:44:18 | 375,714,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | import os
ANNOTATIONS = lambda root: os.path.join(root, "Annotations")
TRAIN_PATH = lambda root: os.path.join(root, "ImageSets", "Main", "train.txt")
VAL_PATH = lambda root: os.path.join(root, "ImageSets", "Main", "val.txt")
TEST_PATH = lambda root: os.path.join(root, "ImageSets", "Main", "test.txt")
IMAGE_DIR_PATH = ... | [
"335767798@qq.com"
] | 335767798@qq.com |
0669e1b87913ae9f847aa13336e31fbccb0f8b56 | 38af0f486b44b15ef3b748b96e54136c3b072ecf | /Project2/Project2/OOAD_Project2_p1c/ZooKeeperInterface.py | 4b1b04d8ff4cbdd57a73ff440f9614cbceaed907 | [] | no_license | sankar77/OOAD_Project2 | 9f378e16d0f1f34979e04d4fbb58288735bbf4e5 | 910c1a90c0334d1e51a2061d06e67f68459e2edb | refs/heads/master | 2021-01-04T14:50:14.032528 | 2020-02-14T21:09:32 | 2020-02-14T21:09:32 | 240,597,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py |
class ZooKeeperInterface:
def registerZooAnnouncer(self,za):
pass
def unRegisterZooAnnouncer(self,za):
pass
def notifyZooAnnouncer(self,annoucement):
pass | [
"nsnkrnryn@gmail.com"
] | nsnkrnryn@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.