blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f0187b86e29e7f18ddf9462ac414c4886ffcb744 | 8731516c32082c299a41c4cb36553025d757f2d7 | /libs/listToDict.py | 72da0d69311eca47bdc30809fbabc4b039a64bb5 | [] | no_license | wangkb23/gitpy | e0f452624423a4820ff2221c111c623b224b497a | a23ec36857f20e410fd380a5e1d1ce121922a04f | refs/heads/master | 2020-06-23T10:50:28.025105 | 2019-07-26T09:17:26 | 2019-07-26T09:17:26 | 198,601,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | #coding=utf-8
'''
解决从excel中读取列表转化为字典的问题,使之成为参数字典格式
'''
def listTD2(lt):
lt2=[]
lt3=[]
dt={}
count=len(lt)
if count%2==1:
lt.append('')
lt2=lt
elif count%2==0:
lt2=lt
# print lt2
for j in range(len(lt2)):
lt3.append(str(lt2[j])) #str解决取出的数字带小数点的问题
for k in range(0,len(lt2),2):
dt[lt3[k]]=str(lt3[k+1]... | [
"xinjie.wang@innotree.com"
] | xinjie.wang@innotree.com |
f7bf738a8da6c732349f052d81c1f7e933b1fcee | 123611a9cfd09f4a78cb0c8af714caa97520f614 | /src/reordering_evaluation.py | a6fe4e14766575bd9cccefca649c3deb8ffd17e4 | [
"MIT"
] | permissive | XPerianer/TestingBackend | 6dc8f0425e1d3fa1af0b69ab3db3be8f8b9b723a | 3949f31d75cb0c5fe01ceeabe98c3bf48f60c936 | refs/heads/main | 2023-03-08T23:36:02.079507 | 2021-02-28T22:09:26 | 2021-02-28T22:09:26 | 317,542,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,258 | py | #
# The MIT License (MIT)
#
# Copyright (c) 2020-2021 Dominik Meier
#
# 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, co... | [
"dominik.meier@student.hpi.de"
] | dominik.meier@student.hpi.de |
c4dfd77cd9d0addc9ec6ac5d9e9ce47a3e5a5eb6 | 3fde797ab95c56e8c5f94e688dd542ee8ff38906 | /code/process_data.py | 672668a57c5268cf57ca678d1d3d08de556ca74b | [] | no_license | ryanran92/AliMusic | 9f1e5f81bba9f2ac25b08028f53a82971e11794d | 2a03be2392fbc220b06e40a04ec67e6fc7565b10 | refs/heads/master | 2023-04-09T01:14:43.493551 | 2016-05-31T16:02:13 | 2016-05-31T16:02:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,560 | py | __author__ = 'WSY'
import os
class Song():
def __init__(self, song_id, publish_time, song_init_plays, language, gender):
self.song_id = song_id
self.publish_time = publish_time
self.song_init_plays = song_init_plays
self.language = language
self.gender = gender
... | [
"ranyu2@126.com"
] | ranyu2@126.com |
f6c2473d0cb4c1a714cbf63f8d726665549f6ff9 | 4960c0d38c3794cf249b6cb473232a75e5d777a0 | /interfaceTest/t1.py | 7878a46ed0fb123bdf032f41cef8283ef2c1b122 | [] | no_license | yanfengmusic/charging | 0c10f35395279713758e930e9e7c2e5972cfeb86 | a5ab8aedc41ecde6de89a5731e77de4f0c4cee38 | refs/heads/master | 2021-05-23T01:51:18.578385 | 2020-07-14T03:38:20 | 2020-07-14T03:38:20 | 253,180,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# __author__:hp
__mtime__ = '2020-03-19'
"""
信息一、
我的名字叫呱呱,年龄35岁,不抽烟
A. 用urlencoded格式表述为,form表单表达方式
B. 用JSON格式表述为
name=呱呱&age=35
{
"name":"呱呱"
"age":35
}
"""
# import requests
# # proxies = {
# # "https": "http://10.10.26.28:8888",
# # }
# r = requests.get("https://www... | [
"yanfengmusic@126.com"
] | yanfengmusic@126.com |
c14234282bae06f12ccd4344b5d1469cccd06875 | f544003d9fb2c51f1ba341d32f496ce1098dd010 | /scr/bot.py | bfdd67f3f0b0f79b07741457bdde3e29492c4520 | [] | no_license | Mikhaylov-yv/IT_hakaton | 30882b585b9c122e449518532bad5a88e8338078 | 3d52942a9dca4d8609fa1be717f1f5ebde5909b4 | refs/heads/main | 2023-05-03T02:44:13.359551 | 2021-05-29T13:05:23 | 2021-05-29T13:05:23 | 371,578,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,064 | py | from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
import time
import main
updater = Updater(token = '', use_context=True)
dispatcher = updater.dispatcher
import logging
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
level=logging.INFO)... | [
"dezmond22@yandex.ru"
] | dezmond22@yandex.ru |
cff0dc219b93857bac6bb89771e881ac83053947 | d659f9a8e5eae230273c6d6d8dc7730a4a902616 | /Homework/hw04/hw04.py | bb7f0f8e1bdc46541c4b84661f7df444a68439db | [] | no_license | JWRickyWan/CS61A | ae7b29ac6abda13509af2d37e0d9768366368497 | cbc63e953f3479431bee0dfcf89fe229b3a5dba2 | refs/heads/master | 2023-01-25T01:16:18.887140 | 2020-12-16T06:07:32 | 2020-12-16T06:07:32 | 321,885,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,270 | py | this_file = __file__
# Mobiles
def mobile(left, right):
"""Construct a mobile from a left arm and a right arm."""
assert is_arm(left), "left must be a arm"
assert is_arm(right), "right must be a arm"
return ['mobile', left, right]
def is_mobile(m):
"""Return whether m is a mobile."""
return t... | [
"JWRickyWan@users.noreply.github.com"
] | JWRickyWan@users.noreply.github.com |
cbbd9dab26749f718151b2df3aa9d7dd0422c9b9 | 75cb135862cfed6e566f3beb6af4c336d2713cbf | /watchstore/watchstore/wsgi.py | d30241dd127aa6750328bd25f8c06300212fcd96 | [] | no_license | TomJSmith/watchstore | c7c7b175325918fceed4261702db7fba9bcb24e0 | 4544e6bd7ddd778b90237edfe07b9d1b2c6a592b | refs/heads/master | 2021-03-27T08:36:27.994449 | 2017-04-11T06:11:40 | 2017-04-11T06:11:40 | 82,330,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | """
WSGI config for watchstore 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.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... | [
"thomas_smith@live.ca"
] | thomas_smith@live.ca |
a96ea359ed19120303caf5cce18f7196db6b264b | 632dfb2bfa5a0ecb037a0e8d4257076480418efc | /upload/urls.py | 793a4f9d5197bff480f97da4cc8cec302518e92d | [] | no_license | akiraowada/django | 0a77fc12d1b63dd1fc4338f589bc746342817ba4 | 1bb67672c8f78299c48e04e642553dc1acd10b9b | refs/heads/master | 2020-03-17T20:00:10.265072 | 2018-05-18T01:20:37 | 2018-05-18T01:20:37 | 133,888,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | from rest_framework import routers
from .views import ImageViewSet
router = routers.DefaultRouter()
router.register(r'images', ImageViewSet)
| [
"a.owada@too.co.jp"
] | a.owada@too.co.jp |
2ea557f2ff25dfe3d6814f661e394d2f08d30e99 | fcdad70e1420fcbf23162495df5d371456a9e54b | /高效开发/error/except1.py | 12a413c8f9e5a3967791d27bd12aa76e5e489b94 | [] | no_license | Fngje/pythoncode | 5148ef77f5039a131ed27c98aa203e22a8328fc6 | fcd7be9aa6810914f4e72cc620909febff1e9e7d | refs/heads/master | 2021-07-20T09:14:21.509653 | 2017-10-29T02:24:33 | 2017-10-29T02:24:33 | 103,025,065 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#Author:jie.fang
try:
result = 3/0
print("This is never been called")
except:
print("Exception happened")
finally:
print("Process finished!") | [
"fngje0128@163.com"
] | fngje0128@163.com |
0331644aa9c6ce4d3b15eb5d286fa083f49458af | 4723d9818d8b52bcfa2315a59ceb4acf1731b761 | /pysgg/engine/inference.py | 7b71c8bd65ef28cc62751bb7f02222daf39f8a96 | [
"MIT",
"Python-2.0"
] | permissive | rafa-cxg/PySGG | fe8b34157438d73e7a91a846a3428f411a9b2535 | 5b758cd811e81cd47781fb4028011a012d91fcff | refs/heads/main | 2023-08-30T09:22:04.937170 | 2021-10-29T02:31:41 | 2021-10-29T02:31:41 | 425,873,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,090 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import logging
import os
import torch
from tqdm import tqdm
from pysgg.config import cfg
from pysgg.data.datasets.evaluation import evaluate
from .bbox_aug import im_detect_bbox_aug
from ..utils.comm import all_gather
from ..utils.comm import is_... | [
"limo97@163.com"
] | limo97@163.com |
6d72629e2166ef7142a7423e4d47ebcc5b93f571 | 869b8c7a526ebfbe6b55832ce9f081cd0218a4f5 | /onconet/models/spatial_transformers/factory.py | 0ad65b9657f472eb0d7eaebe27c8ff71d8b3ee59 | [
"MIT"
] | permissive | yala/Mirai | 54d1ab1496d35c05553cfe1c255e7c3012462ce4 | 12bace8fd6ce9c5bb129fd0d30a46a00a2f7b054 | refs/heads/master | 2023-04-29T11:12:28.853712 | 2023-02-24T21:28:20 | 2023-02-24T21:28:20 | 315,745,008 | 66 | 23 | MIT | 2022-02-07T20:49:05 | 2020-11-24T20:29:22 | Python | UTF-8 | Python | false | false | 688 | py | SPATIAL_TRANSFORMER_REGISTRY = {}
NO_SPATIAL_TRANSFORMER_ERR = 'Pool {} not in SPATIAL_TRANSFORMER! Available spatial transformers are {}'
def RegisterSpatialTransformer(st_name):
"""Registers a pool."""
def decorator(f):
SPATIAL_TRANSFORMER_REGISTRY[st_name] = f
return f
return decorato... | [
"adamyala@csail.mit.edu"
] | adamyala@csail.mit.edu |
6b47b5fc35da3f18e857c3305a1cd2087d33387d | f12dc9abda678a4ac7ba1bb7e0be0f20c4213c1c | /venv/bin/subunit2gtk | 45d09b6f8f45ac5e0faf80db3c1b7fe6797aa6fc | [] | no_license | navsinghoberoi/PythonDemoProject | aeeba47c3be54d920ff8559cca5a7798b2fec7df | 2cdac6e4b82ef42d07d580bbf782318c4d360bf9 | refs/heads/master | 2020-05-21T07:13:41.131447 | 2019-05-10T13:15:43 | 2019-05-10T13:15:43 | 185,950,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,349 | #!/Users/navpreetsingh/PycharmProjects/try/venv/bin/python
# subunit: extensions to python unittest to get test results from subprocesses.
# Copyright (C) 2009 Robert Collins <robertc@robertcollins.net>
#
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
# license at the users choice. A c... | [
"navpreet.oberoi@shuttl.com"
] | navpreet.oberoi@shuttl.com | |
4ec02b40b4eaef9cd000b9f4fed6b0c691c3f47d | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_21454.py | 45e7d2122ab9b2a6b0f3906d21dcb18297aff031 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | # Updating collections from collections
db.Coll2.find().forEach(function(c2){
db.Coll1.update({isbn:c2.isbn},{$set: {category:c2.category}},{multi:true})
});
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
0f55a6b45df9e1fdac09052d9d56e1e79e55d768 | f077bcbe2f3e309ce9747c3d37da9461864865fa | /Aerodynamic problem.py | 5fb87ceb5aa47ad56adc66979d92f694ed4f7e16 | [] | no_license | Tarekhelmy/Assigment1 | 7d0bdf6a47d09b6ca2a582004247cda9f5560c04 | fe03cae2967043cba07af76da1eac79aaa5c4bed | refs/heads/main | 2023-03-28T10:53:17.343378 | 2021-03-27T16:47:45 | 2021-03-27T16:47:45 | 352,125,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,278 | py | import numpy as np
Cord=[100.000000,0.126000
,99.941610,0.134190
,99.766580,0.158700
,99.475320,0.199380
,99.068500,0.255950
,98.547090,0.328040
,97.912290,0.415190
,97.165590,0.516850
,96.308730,0.632380
,95.343720,0.761080
,94.272800,0.902170
,93.098490,1.0548... | [
"noreply@github.com"
] | Tarekhelmy.noreply@github.com |
01cb5e2217cbeda9c07fa41e124ecaa47af4e2a3 | 2e0c07e8f719e456f1b56c872c4c65d42e3b69d6 | /myapp/migrations/0009_auto_20180413_0520.py | 05de715d9902e06e3b6a80670afcb4e676ba7900 | [] | no_license | Surendhar249/FoodDeliveryApp | 8677a433075ea536e5fe744a9cdeb98d364c897d | cc01b7a003a4a5c12d57d7b53fa6640d533e6acf | refs/heads/master | 2023-05-02T16:53:54.131760 | 2021-05-28T20:26:16 | 2021-05-28T20:26:16 | 371,759,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-04-12 23:50
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('myapp', '0008_auto_20180413_0515'),
]
operations = [
migrations.RenameField(
... | [
"practicalengineers05@gmail.com"
] | practicalengineers05@gmail.com |
b3b956cf8f2482a45cd555f202e06a02b98b7d41 | 5f61724fc5cad3f82094a681c853cc9f0337f050 | /test/test_section.py | 41d67a7de2c3641cf36ab6ae71a3a5eccb98bd42 | [
"Apache-2.0"
] | permissive | barseghyanartur/odfdo | 2cecbbbb33f23d5ed0ba80cb9208a8e7857b93a0 | e628a9e9daa40319a777d216ec7ebca4057b3344 | refs/heads/master | 2022-11-17T15:43:15.662484 | 2020-06-27T00:41:38 | 2020-06-28T22:53:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,612 | py | #!/usr/bin/env python
# Copyright 2018 Jérôme Dumonteil
# Copyright (c) 2009-2010 Ars Aperta, Itaapy, Pierlis, Talend.
#
# 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.apach... | [
"jerome.dumonteil@gmail.com"
] | jerome.dumonteil@gmail.com |
b16c4c52914d1c0afb2908d9932731d9a2b4a8f4 | 4290a698a7192fd8b4f25544d656509706439025 | /Kata_HW/HW3_2_Reversing Words in a String.py | 4ef727e84a89d73d018a6433d4a662c060649e95 | [] | no_license | Row35/Homework.SSAcademy | 6401b869da99f5b963b4ec320eb229e03a1e9927 | a577f5ee17ab3cb11a80e6beabfd06bf6f8fc289 | refs/heads/master | 2020-12-26T10:18:51.381457 | 2020-03-03T10:20:58 | 2020-03-03T10:20:58 | 237,479,109 | 0 | 0 | null | 2020-02-06T21:19:17 | 2020-01-31T17:17:19 | Python | UTF-8 | Python | false | false | 82 | py | def reverse(st):
list = reversed(st.split())
return ' '.join(list).strip() | [
"ivan.shtoyko@gmail.com"
] | ivan.shtoyko@gmail.com |
9ae166800134dc998f14b2a79ca1725e88555712 | b007a2fa60aff213e57305e3e2c3ee68e989595b | /cliente_soket.py | e92b46cc1c70b0e281538c86d7a6ea660bd0ee71 | [] | no_license | IvanManchon/TFG | 14a4a4c9f52830d9215ed906d46e5881cef85f65 | 49a1632f73ac998c336adf5059aaade2074843e7 | refs/heads/main | 2023-06-01T12:05:51.129287 | 2021-06-14T17:00:51 | 2021-06-14T17:00:51 | 305,331,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | import socket
while 1:
# Create a TCP/IP socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# Connect the socket to the port where the server is listening
server_address = ('192.168.0.17', 10000)
print('connecting to {} port {}'.format(*server_address))
sock.connect(serve... | [
"noreply@github.com"
] | IvanManchon.noreply@github.com |
c3a9171b7c4e48ee6debd0d97be46badbb31b719 | 29ed97dde7e2f3694d2acf49cd71934a5dc8b034 | /website/util/utilities.py | 1fa73204b203a48ce2dd60a71811e6719fa2300e | [
"MIT"
] | permissive | Jack-Gledhill/pistat | ca8097fe2e38a160d8111d84eebc09721b116fbc | 67e1c6c64aa6692c69818855a8fc13f794493e3b | refs/heads/master | 2022-11-19T06:39:15.490932 | 2020-07-10T08:35:43 | 2020-07-10T08:35:43 | 269,434,702 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,117 | py | # Copyright (C) JackTEK 2018-2020
# -------------------------------
# =====================
# Import PATH libraries
# =====================
# ------------
# Type imports
# ------------
from typing import Any, Iterable, List, Optional, Union
# --------------------
# Builtin dependencies
# --------------------
from da... | [
"jackgledhill2005@gmail.com"
] | jackgledhill2005@gmail.com |
46422d85aaa5bc5f8d3b2b82cb297d5f23856836 | c2046b7f9e325f38e28b87b8a07af96855f098f1 | /Tracker/migrations/0028_auto_20200408_1125.py | 1859ac29e9ea8467cf780de7ccb79376f081348e | [] | no_license | PankajLal99/Django-Alumni-Tracker | 722cd38caf531f32d190285397cd607222b9e322 | 305e975a043968bb2ad8f6acf4301e2857d9da43 | refs/heads/master | 2021-04-08T22:33:13.370610 | 2021-03-21T05:31:06 | 2021-03-21T05:31:06 | 248,815,864 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | # Generated by Django 3.0.2 on 2020-04-08 05:55
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Tracker', '0027_auto_20200408_1124'),
]
operations = [
migrations.AlterField(
model_name='profile'... | [
"lalpankaj0@gmail.com"
] | lalpankaj0@gmail.com |
9d8652bd5212638aa553faeda0f53d1c427b62df | 3e10d3bda8482cc4278fff181b04cc0d4f0ae5e2 | /reusable_code/sheets.py | b2b1adda96b3de587063d734dd15291dd7e7788f | [] | no_license | sw-2019/bbdig_backup_SW | a0e076fa6128868de3056f953e325bca793d28ac | 8ddf1ef15bfe97ee334d41883d726ecef556b7f0 | refs/heads/main | 2023-04-08T03:05:01.880240 | 2021-04-16T16:34:46 | 2021-04-16T16:34:46 | 339,210,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,158 | py | import datetime
import logging
import re
import string
import gspread
import numpy as np
import pandas as pd
from oauth2client.service_account import ServiceAccountCredentials
from pydrive.auth import GoogleAuth
from pydrive.drive import GoogleDrive
# set up logging
logging.basicConfig(
format="%(asctime)s - %(na... | [
"52572974+sw-2019@users.noreply.github.com"
] | 52572974+sw-2019@users.noreply.github.com |
c8db93ac8b84069eaa3db4066fd55c60f660c841 | 9249947c07f8addf64dd3d2a2f9f37d379f83921 | /libs/gluon/contrib/generics.py | abaa95f64160cec56f5ab445a32e92a16a8ff4fd | [
"MIT"
] | permissive | operepo/ope | eb71aa763d157416009d7c3052ace11852660e0a | 018c82af46845315795c67c36801e2a128f515d5 | refs/heads/master | 2023-08-08T15:05:28.592589 | 2023-07-25T00:22:24 | 2023-07-25T00:22:24 | 96,855,111 | 12 | 11 | MIT | 2023-03-03T15:10:34 | 2017-07-11T05:42:14 | Perl | UTF-8 | Python | false | false | 2,528 | py | # fix response
import os
from gluon import current, HTTP
from gluon.html import markmin_serializer, TAG, HTML, BODY, UL, XML, H1
from gluon.contrib.fpdf import FPDF, HTMLMixin
from gluon.sanitizer import sanitize
from gluon.contrib.markmin.markmin2latex import markmin2latex
from gluon.contrib.markmin.markmin2pdf impor... | [
"ray@cmagic.biz"
] | ray@cmagic.biz |
a5619323d43ade10c4b214fd9d79a78d192eb311 | e58849902137059f26d81fa072436ec5d5cca655 | /venv/Scripts/pip3.7-script.py | fc58c48e3fabc206c6d8ff83ed296bdbab2e673c | [] | no_license | HT78/guoya1zu | 841b1d4831b5096c67e21ce14ac41fa445fc27b2 | 572516594e0fb1a5c5d2a0d7c0554dbc48b20bc1 | refs/heads/master | 2022-11-11T11:42:38.405009 | 2020-07-07T06:43:24 | 2020-07-07T06:43:24 | 277,698,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | #!D:\python\py\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"18221135679@163.com"
] | 18221135679@163.com |
f3dab0cc3956feacbab0c7ed3cd9898dde52ce30 | 7aface48eb7790912af15025a4e23d6c625c9a1e | /old/bayes.py | 5c0a85d05bf8513658f765eafd4481a201576541 | [] | no_license | J-bytes/competition3395 | e5cc293063e2f82c42ee43d6b1c60075c218ae03 | 7b7473b4b83bd063f9b63beba9b6f003a8ef6224 | refs/heads/main | 2023-01-05T14:00:42.729004 | 2020-11-04T00:05:52 | 2020-11-04T00:05:52 | 302,062,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,272 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 8 19:09:04 2020
@author: Jonathan Beaulieu-Emond
"""
import numpy as np
import pandas as pd
import regex as re
train=pd.read_csv('data/train.csv')
def draw_rand_label(x, label_list):
seed = abs(np.sum(x))
while seed < 1:
seed = 10 * seed
seed ... | [
"60334318+J-bytes@users.noreply.github.com"
] | 60334318+J-bytes@users.noreply.github.com |
5e290ff3d641dac02dfaa26c5ddc518dc5296c53 | 64564ad34eb88c9b366b23c21e90684dbbf0ba94 | /gen-py/livetex/presence/__init__.py | f312244d5dd7e10e95dd3ce02da36801320797ef | [] | no_license | hobbit-vt/livetex-fake-services | 53481fcc02190a14648ac6950eeb39b31087f9f2 | b595d912307148d1bc6b162f63608369256d9c43 | refs/heads/master | 2021-01-25T07:34:36.583297 | 2014-10-17T09:51:11 | 2014-10-17T09:51:11 | 23,706,391 | 1 | 1 | null | 2014-10-23T15:16:52 | 2014-09-05T14:42:37 | Python | UTF-8 | Python | false | false | 70 | py | # -*- coding: utf-8 -*-
__all__ = ['ttypes', 'constants', 'Presence']
| [
"viktor.g@livetex.ru"
] | viktor.g@livetex.ru |
614462b6940c9c08b08c24650c5683c4986c8d17 | 42d58b23f446a48907d965794a2ae1dc4ad751ab | /347. Top K Frequent Elements.py | 4d70eebffd7020a5f6c65cb4f2b11935dad21ace | [] | no_license | AsadullahFarooqi/LeetCode | fabec1cad1781d0300cec2931545b92dd1390900 | aecc4efe8e0561aa4dd8a8b7f755c19982c6c2ef | refs/heads/master | 2022-11-03T08:01:47.656348 | 2022-10-11T06:19:56 | 2022-10-11T06:19:56 | 187,672,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | """
Given a non-empty array of integers, return the k most frequent elements.
Example 1:
Input: nums = [1,1,1,2,2,3], k = 2
Output: [1,2]
Example 2:
Input: nums = [1], k = 1
Output: [1]
Note:
You may assume k is always valid, 1 ≤ k ≤ number of unique elements.
Your algorithm's time complexit... | [
"asadullah.itcgcs@gmail.com"
] | asadullah.itcgcs@gmail.com |
927d97d44d8586ea1953c8305e6863d6fd444998 | 3025e486be4299b0cdbb4a4442c1c912ebf65ba1 | /backend/service/checkPercent.py | 63ab4e87066a5479e8b21981a6cafb3697eebc92 | [
"MIT"
] | permissive | CiprianBodnar/DeftEval | 472b064a6f81fd73f1810600c40ad33114c4746d | 7afbaa9013873c91e4f209311ed499005080e131 | refs/heads/master | 2020-08-15T11:00:45.390998 | 2020-01-16T11:26:31 | 2020-01-16T11:26:31 | 215,329,322 | 0 | 1 | MIT | 2020-01-16T11:26:32 | 2019-10-15T15:11:32 | Java | UTF-8 | Python | false | false | 1,124 | py | from Features import is_definition
trueCheck = 0
falseCheck = 0
totalSent = 0
def checkPercent(file_read):
global trueCheck, falseCheck, totalSent
with open(file_read, 'r') as ins:
line_list = []
for line in ins:
line_list.append(line)
sentences_list = []
val_list... | [
"andrada.tapuc@gmail.com"
] | andrada.tapuc@gmail.com |
f12544262fd311d63d723c7c08c4e901561141d6 | 49efc1fb2082f082b829cbafb766f20b1c09e035 | /Formats/Django.py | 54497736f1458cb22a2dc013257dd38a2b7a5ea9 | [
"MIT"
] | permissive | koffisani/vectorformats | 1558e7b1db4490eeac14e2469c4533a72ffd963b | 8f687fe9957e1833c06c01e3af854d402449f2af | refs/heads/master | 2020-05-07T10:22:46.171169 | 2019-04-12T08:27:58 | 2019-04-12T08:27:58 | 180,415,760 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,354 | py | import pickle
from vectorformats.Feature import Feature
from vectorformats.Formats.Format import Format
class Django(Format):
""" This class is designed to decode a Django QuerySet object into
Feature.Vector objects.
Simply pass a query_set to the decode method, and it will return
... | [
"koffisani@gmail.com"
] | koffisani@gmail.com |
c3f9dfdb6e4069422987d7f55ef750f4295ff25b | aaf60c0158614e162189435e1dd89c48aadf8476 | /src/adsr.py | 3731e043e35eee129ad9376a4d2374dd780abed4 | [] | no_license | ginedoc/additive_synthesis_violin | 1335641c2ed840add89149505b8c7d7d2fe00836 | 40c02d29ab606d6e8c6f5964306ad990147d31bc | refs/heads/master | 2020-03-29T01:48:36.307974 | 2018-12-24T16:43:44 | 2018-12-24T16:43:44 | 149,407,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | from scipy.io import wavfile
import numpy as np
import matplotlib.pyplot as plt
s = wavfile.read('../cctest.wav')
print(s[0], len(s[:,1]))
plt.plot(s[:,1])
plt.show()
#wavfile.write('adsr.wav', s[0], s[1]*m)
| [
"bear110088@gmail.com"
] | bear110088@gmail.com |
f54d3836109b9cd59ba664c899e1d55d2bb6d01b | 4a92b0df42dff28470f5bf72e16b33f42fbe57c6 | /10 05 2021/Aula06_Ex7.py | a5ff345f780baed392430af4f1c285c1c4fb9cbf | [] | no_license | GHEPT/visualstudio-bluedtech | 6a9c67529aec2bace60512f276f23a31537da3de | e87a89a520d3d794ce2ac9defa11637564cb55e6 | refs/heads/master | 2023-04-29T09:47:42.662130 | 2021-05-12T00:18:16 | 2021-05-12T00:18:16 | 365,823,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | # funcao recebe 2 valores, imprime o menor e se forem iguais passa essa informacao
def compara(a, b):
if a > b:
print(a)
elif a < b:
print(b)
else:
print("Os valores são iguais")
a = float(input('Digite um número: '))
b = float(input('Digite outro número: '))
compara(a, b) | [
"teodoro.edu@hotmail.com"
] | teodoro.edu@hotmail.com |
6a168b8bdfc3c844bc85731230905ece6190e015 | 0930a8c501b39e8a0c69b503108a3987720e145a | /4.List_and_Tuple/list.py | e7092387eb7232d55620460ed12c1dbc0f6f7306 | [] | no_license | kdeng/python-tutorials | 77e77aa36a898f5a6c57bb67c95e10594ce2f73e | 527a72aad54e0a2621aea351f7287140e90aafd4 | refs/heads/master | 2021-05-13T15:13:33.076806 | 2018-05-28T08:21:11 | 2018-05-28T08:21:11 | 116,762,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | """
List ia mutable
Tuple is immutable
"""
# List
classmates = ['Michael', 'Bob', 'Tracy']
print('Classmates is :', classmates)
print('Classmates[0] = ', classmates[0])
print('Classmates[1] = ', classmates[1])
print('Classmates[2] = ', classmates[2])
print('Classmates[-1] is:', classmates.pop(-1))
print('Classmates ... | [
"kefeng.deng@fairfaxmedia.co.nz"
] | kefeng.deng@fairfaxmedia.co.nz |
7b5b3d83e8bd8120132fc20d349a5bc3ec4b7c49 | deb9cb9ac136d3af0969b68c4b17233506b152ad | /questions/urls.py | 1da5797383e9098b92004d7fb14cad206dfb324d | [] | no_license | cpadiernos/triviacompany | 75c814edd4557cfe2565fb68f7bdb6ebda14fa66 | fc2a392edfb57c2af74a42ccf9b8068cc679e0ab | refs/heads/master | 2022-04-09T10:18:36.198633 | 2020-03-26T20:49:45 | 2020-03-26T20:49:45 | 219,570,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | from django.conf import settings
from django.urls import path
from . import views
urlpatterns = [
path('game-supplies/', views.GameListView.as_view(),
name='game-list'),
path('{}/<path:path>'.format(settings.PRIVATE_STORAGE_URL[1:-1]),
views.login_required_private_file, name='login-required-pr... | [
"cpadiernos@gmail.com"
] | cpadiernos@gmail.com |
13e109703253a9f3a1da4c8dd08d3e4292e6bbd9 | cfb76fefdf3d991ca516d10ee04afda061fd9b7f | /tests/test_pcolormesh.py | 5363db32fb91669dcb3d1c11edbb4d67b15e1858 | [
"MIT"
] | permissive | chebee7i/prettyplotlib | 77d7fd3941877d694b4237850cfa75605a2954d7 | 68841f0156e29eec4fc76c53407e67206287b861 | refs/heads/master | 2021-01-20T23:11:57.745272 | 2013-10-06T20:04:12 | 2013-10-06T20:04:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,589 | py | __author__ = 'olga'
from matplotlib.testing.decorators import image_comparison
import prettyplotlib as ppl
from prettyplotlib import plt
import numpy as np
import os
import string
from prettyplotlib import brewer2mpl
from matplotlib.colors import LogNorm
@image_comparison(baseline_images=['pcolormesh'], extensions=['... | [
"olga.botvinnik@gmail.com"
] | olga.botvinnik@gmail.com |
514ee6756eb2aa90c77d1639a957a9304b5fb29b | a1bf75bdb8210876e3c796cec428559151108c5b | /auth.py | 183d44cc429980621b293bb70c99e40d82dd6d73 | [] | no_license | jailukanna/armaformAPI | 72f5b92f5d01c3d4d69804474d0c4e34471b2fc7 | a635ecdbeab6eb7ee60fefa6f91392e6af60cb7e | refs/heads/master | 2023-04-23T05:29:40.246552 | 2020-05-02T05:28:45 | 2020-05-02T05:28:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | from flask import Blueprint
auth = Blueprint('auth', __name__)
@auth.route("/signin")
def signin():
return 'logged in' | [
"anthony.dupont@eduwell.cz"
] | anthony.dupont@eduwell.cz |
df94816cf1d341645c00813001ccbbdc695412c4 | a363b1ad911b8c989e578b5a4a412c1dd615cc39 | /toontown/building/ToonInteriorColors.py | 56f103d58606c8a93f75fab6679a53c759bd7641 | [
"Apache-2.0"
] | permissive | OSToontown/Project-Altis-Alpha | 2999e944c44e0409cb19e277da61807bfa871e86 | 3a542b5d19784e9c4a5b893e88617e5280b213dd | refs/heads/master | 2023-06-26T12:12:35.073103 | 2021-07-24T17:20:43 | 2021-07-24T17:20:43 | 248,406,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,857 | py | from toontown.toonbase.ToontownGlobals import *
wainscottingBase = [Vec4(0.8, 0.5, 0.3, 1.0), Vec4(0.699, 0.586, 0.473, 1.0), Vec4(0.473, 0.699, 0.488, 1.0)]
wallpaperBase = [Vec4(1.0, 1.0, 0.7, 1.0),
Vec4(0.8, 1.0, 0.7, 1.0),
Vec4(0.4, 0.5, 0.4, 1.0),
Vec4(0.5, 0.7, 0.6, 1.0)]
wallpaperBorderBase = [Vec4(1.0, 1.0,... | [
"anythingtechpro@gmail.com"
] | anythingtechpro@gmail.com |
94ecd8e151180c98925fadf7087cba319e6c0c2b | c93e60eb46045be8290b42c672caac27257144fd | /enveritas.py | f519acd8cf34e26fd6630c9d508721f5bdade48b | [] | no_license | lesliemanrique1/Enveritas_Challenge | 2670a802603b9bd678be5638b68ac08042c22935 | e7df0bd2aad5d3437ab2917386395341497979be | refs/heads/master | 2021-01-21T17:38:13.146316 | 2017-05-21T17:06:03 | 2017-05-21T17:06:03 | 91,963,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,027 | py | import pandas as pd
from datetime import datetime
from fuzzywuzzy import fuzz
import sys
import math
def survey_length(df):
df["started_time"] = df["started_time"].apply(lambda x : datetime.strptime(x,"%m/%d/%y %H:%M"))
df["ended_time"] = df["ended_time"].apply(lambda x : datetime.strptime(x,"%m/%d/%y %H:%M"))
df... | [
"ljm391@nyu.edu"
] | ljm391@nyu.edu |
38df09d7f8f9529aecc3adc8d1a17a4cdafadc24 | 25e7d840203e705c6a68aed079cc9844954b9536 | /torch/_dynamo/variables/builtin.py | 111d5415c77602d9e98273b3bb9af90d2ad46f9e | [
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | yf225/pytorch | 874892cd9d0f7bb748e469cfca23a3f503ea4265 | 39590d06c563d830d02b9f94611ab01f07133c97 | refs/heads/main | 2023-07-24T06:17:16.324006 | 2023-04-24T18:22:54 | 2023-04-24T18:22:59 | 113,096,813 | 1 | 3 | NOASSERTION | 2023-08-29T18:46:16 | 2017-12-04T21:25:08 | Python | UTF-8 | Python | false | false | 48,433 | py | import functools
import inspect
import itertools
import logging
import math
import operator
import types
from typing import Dict, List
import torch
from torch import sym_float, sym_int
from .. import config, variables
from ..allowed_functions import is_allowed
from ..exc import unimplemented, Unsupported, UserError, ... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
deecf0cc429f5ac067006280b182ac0eefbe2d87 | 8a898b085e13ce2338f1c373e930b832a76cdef3 | /hw4/task2_speed_compare/test_matrix_mul.py | 97dd3908c0530132eefc6b85209971f423c76130 | [] | no_license | AlexLoner/2020-1-Atom-Deep-Python-A-Lukianov | 1f81265e5cbc43893a54189d7b622f6904a32692 | 1509154b7e3722f356635c15c57cc5e7d23b7b25 | refs/heads/master | 2021-03-04T11:54:49.105798 | 2020-06-04T15:59:45 | 2020-06-04T15:59:45 | 246,031,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | import sys
sys.path.append('/home/loner/Documents/atoms/deep_python/2020-1-Atom-Deep-Python-A-Lukianov/hw4/build/lib.linux-x86_64-3.8')
import ctypes
import time
import python_matmul
import numpy as np
from matrix import Matrix
lib = ctypes.CDLL('./mylib.so')
t1 = time.time()
lib.mtx()
t2 = time.time() - t1
print(f"C ... | [
"lukyanov9567@gmail.com"
] | lukyanov9567@gmail.com |
9f94cbe17f916dbbc82e54a5af00ae76aa132cfa | 3e1d3a69651b01b23445e05cc96408f88e67a79a | /src/lib/droplet/__init__.py | a45383f27521bc42e08be1351bb3e0a814f9afa5 | [] | no_license | watanany/20200716--BrushFontGenerator | 8f7defd1dd913acc020496e1b5a82c00b049a59c | 9bb3e4ae1208053775da891bfd2e178ce37e5668 | refs/heads/master | 2021-06-02T18:55:58.893534 | 2016-08-18T15:21:16 | 2016-08-18T15:21:16 | 51,625,848 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from droplet import Droplet
from dropletmodel import DropletModel
| [
"s1170087@gmail.com"
] | s1170087@gmail.com |
a32e00000f109f3f2e8079952c3278071e27cf0f | 00c7bd96f1afab807746f1f7f013d4aadc5f6a6e | /sakura/common/types.py | 32cb4d9e52fd22a39835c2c8c60f49825f3f0bb7 | [] | no_license | sakura-team/sakura | 350ae27bdf5c3e7c338c04ec33fb50f4cdc7bfb4 | 306bfe82ffd6b204b0b574bb7f75b35712a3202f | refs/heads/master | 2021-06-02T01:30:14.294572 | 2021-03-04T10:16:44 | 2021-03-04T10:16:44 | 61,307,818 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,271 | py | import numpy as np
from sakura.common.errors import APIRequestError
# Strings whose length is known to be lower than NUMPY_EMBEDDED_STR_MAX_LEN
# will be encoded directly in numpy arrays.
# Others will be saved as an object pointer in numpy arrays.
NUMPY_EMBEDDED_STR_MAX_LEN = 16
SAKURA_INTEGER_TYPES = ('int8', 'int16... | [
"etienne.duble@imag.fr"
] | etienne.duble@imag.fr |
099f1a0c90436c8bb8a55a6eb56a8de10d97e2bb | 48cfb77a9cd52328717ae79c89551977f35163f5 | /sensor/sense.py | c890744a041ec23ea147bbfee5aebcf42034d98d | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | karthikvijayjirlimath/aws-iot-office-sensor | 8c69f3091fcf51b1c8b6631122119eaac3013570 | 90b537bd70ab2afbabc9f95c7f56089b48f5ba5d | refs/heads/master | 2023-06-24T03:39:36.535490 | 2021-07-29T21:04:52 | 2021-07-29T21:04:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,102 | py | # Simple application that periodically collects sensor data from a Raspberry Pi SenseHat and sends the data to the
# AWS MQTT broker with the AWS MQTT client API
from AWSIoTPythonSDK.MQTTLib import AWSIoTMQTTClient
from sense_hat import SenseHat
import config
import time
import json
from datetime import datetime
sens... | [
"eharm@amazon.com"
] | eharm@amazon.com |
0c466ab51584cc7abc7bf177aebdbdc859e8ee1a | f06e4039e357d98e7f714584e902ba2a070758da | /net_classifier.py | 87f65b62bf2bdca7393f4301b6abb4dc343b7b22 | [] | no_license | kusnir18/Signin2 | badaf87657a9b990826fcd46c0c340eab517376e | 6d6b055d17e004461113101c45fdc4b026450c1e | refs/heads/master | 2023-09-01T09:34:55.160727 | 2021-11-04T17:42:22 | 2021-11-04T17:42:22 | 424,683,880 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,576 | py | import numpy as np
def one_in_k_encoding(vec, k):
""" One-in-k encoding of vector to k classes
Args:
vec: numpy array - data to encode
k: int - number of classes to encode to (0,...,k-1)
"""
n = vec.shape[0]
enc = np.zeros((n, k))
enc[np.arange(n), vec] = 1
return enc
d... | [
"maros.kusnir@gmail.com"
] | maros.kusnir@gmail.com |
af27caee0327daf84e5f6f2490aa2576a6d6ef0d | 38cc23df5ca28a2450e3206b513719a39b36aa60 | /venv/bin/chardetect | 018467ea99bd5369582a3546d8d4de48f6f75129 | [] | no_license | Deogor/ssl-certs | 2a3cd9cff5bbb3e2e99d33162263549eda68ee00 | cea27ab011592c8890ecddb6addd3a29e9297a47 | refs/heads/main | 2023-07-15T02:04:08.576707 | 2021-08-24T17:10:25 | 2021-08-24T17:10:25 | 399,545,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | #!/home/user/PycharmProjects/pythonProject/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"vsurov@phoenixit.ru"
] | vsurov@phoenixit.ru | |
59a1333f4e2e09396fee6b1a38fe10894c3644f1 | 5e1fc3984d71e66ad4c5b2b743660acde434e037 | /myecart/asgi.py | ba22b5c7ec5e5b887df19e6b989fa49b7da429ac | [] | no_license | purohit-arun/ecommerce-site | 41a0ab26e5f631bce7817d9ca51d7f52813a48a3 | aefb503181f58e44cc7a70f13ae79bb47c2a226c | refs/heads/main | 2023-06-29T16:15:56.311181 | 2021-07-19T11:37:00 | 2021-07-19T11:37:00 | 363,024,336 | 0 | 0 | null | 2021-07-14T14:40:00 | 2021-04-30T04:19:31 | HTML | UTF-8 | Python | false | false | 391 | py | """
ASGI config for myecart project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"purohitamit2001@gmail.com"
] | purohitamit2001@gmail.com |
ca630a81ec19d0c7e2db93cbb67a3c2e0e581877 | 3d700978d5022e337bedd8346757734eaa8c1d99 | /Playground/test_line.py | d661fc859486da78f09ffa9d5d3c15badb43d499 | [] | no_license | hukf/test | 312ec15122bc1631b74a35e992bed2f7b56b41ac | 18211d244395c487df387fda49ef2df4d5e46138 | refs/heads/master | 2020-08-06T17:37:22.168307 | 2019-10-07T21:32:30 | 2019-10-07T21:32:30 | 213,095,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,691 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Nov 13 19:36:40 2018
@author: kuifenhu
"""
# -*- coding: utf-8 -*-
import math
import matplotlib.pyplot as plt
from matplotlib.backend_bases import MouseEvent
class DraggablePlotExample(object):
u""" An example of plot with draggable markers """
def __init__(sel... | [
"kuifeng.hu@keysight.com"
] | kuifeng.hu@keysight.com |
82657ce82557f978f2b158f3fb51dcf3b682dbb4 | 5954e0184fbfbe82a697754fe062179a57d75ce6 | /topic_tutorial_2/scripts/Pub_node2.py | c093299701ed740bae15feccb2914a45b9f989c2 | [] | no_license | yheewon/WeCar | 388fc4d1d8ee2b845f319cc74b2d7dd60f07a212 | 49ca55223042daa59105be9055b7ebcdaca549d7 | refs/heads/master | 2023-01-31T21:44:43.142088 | 2020-12-20T09:05:58 | 2020-12-20T09:05:58 | 278,515,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | #!/usr/bin/env python
import rospy
from topic_tutorial_2.msg import MyMsgs
NAME_TOPIC = '/msgs_talk'
NAME_NODE = 'Pub_node2'
if __name__ == '__main__':
rospy.init_node(NAME_NODE,anonymous=True)
pub = rospy.Publisher(NAME_TOPIC,MyMsgs,queue_size=10)
rate = rospy.Rate(10)
msgs_pub = MyMsgs()
while... | [
"dnjsl0629@naver.com"
] | dnjsl0629@naver.com |
242923c5197a8ee760b120a5605b8afca943eab0 | f99cca94f74c69bc518e298c14140534e18eabd3 | /OrcLib/Test/TestNet.py | 07cd62a60036cd81afff87edaf6b1fcf167c81cd | [] | no_license | pubselenium/OrcTestToolsKit | d6d838d9937d2c4d86941e317cb3ff096b58e52d | f3ccbbceaed4f4996f6907a2f4880c2fd3f82bbb | refs/heads/master | 2021-04-29T05:15:53.240714 | 2016-12-30T09:42:53 | 2016-12-30T09:42:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,478 | py | import unittest
from OrcLib.LibTest import OrcTest
from OrcLib import init_log
from OrcLib.LibNet import OrcParameter
class TestOrcParameter(unittest.TestCase):
def test_send_para(self):
"""
Test get exist option
"""
OrcTest.test_print_begin()
init_log()
_para_01... | [
"orange21cn@126.com"
] | orange21cn@126.com |
4a61c9ff7e03b40f5c99cc955f9a7b03d8c7aa49 | 4a39e62a210f187a7ee7702aa64aa8e6abdd828e | /navigation.py | 61b397a11c571ad4f87de99967c63a94e1d04e1e | [] | no_license | duanlidewugui/day6 | 9ead529f9c670553371af70787595681c38cd09d | 96b5484397a925161528f4ce42ce38ad4a54b881 | refs/heads/master | 2023-05-09T21:24:18.041881 | 2021-06-10T09:51:36 | 2021-06-10T09:51:36 | 375,648,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,225 | py | #在导航中,进入商城即可开始进行购物
#舒识2021/6/10/17/46
from random import random, Random
navi ={
"北京":{
"朝阳区":{
"公园":["朝阳公园","奥林匹克公园","北京欢乐谷"],
"景点":["中国铁道博物馆","北京金港国际赛车场"],
"商城":["凤凰汇购物中心","新七彩商业中心"]
},
"海淀区":{
"高校":["清华大学","北京大学"],
... | [
"noreply@github.com"
] | duanlidewugui.noreply@github.com |
b8190c2a6a2629219638f24c3bf1500de5a3e02b | 91aa103bb8163311d8f63241dc79842ecc868c79 | /project/MEANMEDIAN MODE/medium.py | 555737c09a510939605e11b4287f750b4227ea0f | [] | no_license | akhand19082006/python | fbd27dac5192a34f811606d95c83ba79a6f563b1 | 0b69c1e5b2a459d869e6ffea253679f833d08be1 | refs/heads/main | 2023-05-10T11:46:28.708307 | 2021-06-28T07:28:23 | 2021-06-28T07:28:23 | 380,942,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | import csv
with open('h.csv',newline='') as f:
reader=csv.reader(f)
filedata=list(reader)
filedata.pop(0)
newdata=[]
for i in range(len(filedata)):
number=filedata[i][1]
newdata.append(float(number))
n=len(newdata)
newdata.sort()
if n%2 ==0:
median1=float(newdata[n//2])
median2=floa... | [
"noreply@github.com"
] | akhand19082006.noreply@github.com |
5c910493a60d9d11a5fd4a8f9b651220ce301f84 | 47713a1f9e0b4a3fd16348121ed77a57628f3c0a | /求1+2+3+...py | ceb0e1af6b23cb9dd1158645f1fbedae795c5465 | [] | no_license | geditzh/offer | 655c040d8425094ee26311f658541d97fd74df97 | bff6048099d68f639c61e767e250fe2366560099 | refs/heads/master | 2020-05-24T08:19:05.615035 | 2020-02-17T11:09:58 | 2020-02-17T11:09:58 | 187,181,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | # -*- coding:utf-8 -*-
class Solution:
def Sum_Solution(self, n):
# write code here
return self.sum_(n)
def sum0(self, n):
return 0
def sum_(self, n):
func = {False:self.sum0, True:self.sum_}
return func[not not n](n-1) + n
| [
"455209990@qq.com"
] | 455209990@qq.com |
9bc20ea8d6088b0b498b72fd65d801d51f827209 | 17e47eb8079f9227733c54d1732a7122be6b3f75 | /112_Bouncy_Numbers/p112.py | 6735a70e921e6c5f07f5650e97d6f2191241528e | [] | no_license | arminale/ProjectEuler | 4a25c097f2d03fd79b9486f338be34dbc047475a | 2aa75254c03e875015a25957d45444c4fe0c8ea1 | refs/heads/master | 2021-01-19T17:38:56.277307 | 2018-05-17T21:15:05 | 2018-05-17T21:15:05 | 101,080,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | # https://projecteuler.net/problem=112 bouncy numbers
def is_bouncy(num):
has_incr_seq, has_decr_seq = False, False
right = num % 10
num = num // 10
while num > 0:
left = num % 10
if left < right:
has_incr_seq = True
elif left > right:
has_decr_seq = T... | [
"arminale@yahoo.com"
] | arminale@yahoo.com |
0ea0ff9173e8d97cada4f35ea04bd20e41880396 | 73d511f98dac31ecbc90c7df9af092cd9b4f4421 | /webapp/ENV/lib/python3.6/site-packages/distributed/publish.py | a275cfeff08f15e4de6daf7e1c11f0d1c2dd3e62 | [
"MIT"
] | permissive | linkehub/linkehub_api | f704f6272b5d103d6d833eae1a11fbb72f0b8233 | b5579a6156d6ae01f0cbd8526c8ed8264b5deeb5 | refs/heads/master | 2022-10-11T14:32:37.548985 | 2018-05-29T11:57:29 | 2018-05-29T16:59:54 | 135,220,244 | 0 | 1 | MIT | 2022-09-23T21:51:08 | 2018-05-29T00:05:57 | Python | UTF-8 | Python | false | false | 2,174 | py | from collections import MutableMapping
from distributed.utils import log_errors
class PublishExtension(object):
""" An extension for the scheduler to manage collections
* publish-list
* publish-put
* publish-get
* publish-delete
"""
def __init__(self, scheduler):
self.schedul... | [
"diego.marcolino.silva@gmail.com"
] | diego.marcolino.silva@gmail.com |
5980dfe80dbe7976918aa72251a6196f00d24561 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/420/usersdata/329/88113/submittedfiles/exe11.py | fcae8958e71f64e9a6bacbbd05f96f381947b027 | [] | 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 | 479 | py | # -*- coding: utf-8 -*-
n = int(input("digite um numero com 8 algarismos: "))
soma = 0
while n < 100000000:
resto = n % 10
n = (n - resto)/10
soma = soma + resto
print ('%d' % soma)
while n > 999999999:
resto = n % 10
n = (n - resto)/10
soma = soma + resto
print ('%d... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
8259a1e69951d5b1a351445f32169d1f50ca8445 | 5d344134f84f90df8443de9743e6d05b4d33ecca | /BigDataML/lab1/h2o_automl.py | a674f4606cf8bddde11da7f9a70b44acb53bf558 | [] | no_license | aulasau/BSU.Magistracy | e8deaba2c78e4ccb4f77f2956fc286c94573ae87 | cb9c547987030d004e33048e7c38f057e393413c | refs/heads/master | 2023-01-01T23:41:58.973005 | 2020-10-31T17:51:38 | 2020-10-31T17:51:38 | 308,931,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,547 | py | import h2o
from h2o.automl import H2OAutoML
from prepare_data import prepare_adult_dataset,draw_plot
import matplotlib.pyplot as plt
from sklearn.metrics import roc_auc_score
def run_automl_h2o(max_models=10):
"""
h2o instance should be running
:return: the path of the best model
"""
h2o.init()
... | [
"barabasha999@mail.ru"
] | barabasha999@mail.ru |
abcf7b01aafcea2a410892b5d607641345f890fa | a95aa6f8671db71126508094bf66ee2405deac9a | /config/environment.py | 21eb35e3871859c0a98ab609c9f26f22571567e4 | [] | no_license | fnsport2/geckoboard | 3df354fdb04f7abd791cee9206b4356fd3389280 | 9bbcf1015976a05fa2b1e53bdcd97d2c09edac35 | refs/heads/master | 2016-09-02T02:53:12.664623 | 2014-09-16T01:07:02 | 2014-09-16T01:07:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | # Geckoboard Environment
# Like a global scope (for modules) to have access to config.
#
import yaml
import os
# Get the full path for the file for access from outside modules.
__dir__ = os.path.dirname(os.path.abspath(__file__))
filepath =os.path.join(__dir__,'dashboard.yaml')
# Setting up our environment for some... | [
"fnsport2@aol.com"
] | fnsport2@aol.com |
faca4faf2d9ad578da8bee49b849078db80ad5b9 | 4c95c518b8e7a73d83afbdf38d37103b238c211e | /covidtracker/tracker/migrations/0001_initial.py | d04ce72ca5f31dedc47868a2124ff1ff4cd0738c | [
"MIT"
] | permissive | tyrozz/covid19-tracker | 07fc2668305848162aac5f7d17a089322d48ae9f | 8facde18d9e100f6e3be4ad78f53ab5f02b5a284 | refs/heads/master | 2023-08-25T08:35:57.525031 | 2021-10-23T11:22:25 | 2021-10-23T11:22:25 | 355,706,479 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,834 | py | # Generated by Django 3.1.7 on 2021-04-09 16:27
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Location',
fields=[
... | [
"ozanyildirim1000@gmail.com"
] | ozanyildirim1000@gmail.com |
a6f04bbaa1f2de98cd73c3bc3b9f3f18bc1eb22d | c851a789091aabb92bf22bebbecfb873c0e609a8 | /main.py | 8b1727b920444a3ee0458fbb5dc8b47d53446b9d | [] | no_license | chief680/App-Engine-Web-Service | 53f654ddf9ac188d02a8366c370103f795a34cb3 | bd37c61a627869b1d0d9a182d05275e57e5cb9c0 | refs/heads/master | 2023-05-10T20:56:52.166714 | 2019-10-11T22:27:29 | 2019-10-11T22:27:29 | 214,534,154 | 1 | 0 | null | 2023-05-01T21:16:39 | 2019-10-11T21:50:52 | Python | UTF-8 | Python | false | false | 1,379 | py | from flask import Flask, Response, url_for, request
from json2xml import json2xml, readfromurl, readfromstring, readfromjson
app = Flask(__name__)
@app.route("/")
def index():
'''
try:
import googleclouddebugger
googleclouddebugger.enable()
except ImportError:
pass
'''
... | [
"noreply@github.com"
] | chief680.noreply@github.com |
dcedcd713c92d6600f95c8050ce7e26df5f34674 | b3cce6c232ba8d217ccca9a54825d32ca933b510 | /Classification/Random Forest classification/random forest classifiction.py | 43f866215083d9b1bf7b603c53ca3431d40a391c | [] | no_license | dhirajwagh1612/Machine_Learning_Models | 23966b89741553d96ddbbb5d1029849936965a20 | a43d7b602be5c37432a120fba4580f3eed149749 | refs/heads/main | 2023-04-28T23:39:05.410005 | 2021-05-18T05:09:01 | 2021-05-18T05:09:01 | 358,794,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,664 | py | # -*- coding: utf-8 -*-
"""
Created on Sun May 2 22:12:33 2021
@author: Dhiraj Wagh
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
dataset = pd.read_csv('Social_Network_Ads.csv')
# define X and y variables.
X = dataset.iloc[:, [2, 3]].values
y= dataset.iloc[:, 4].values
# split datase... | [
"54485930+dhirajwagh1612@users.noreply.github.com"
] | 54485930+dhirajwagh1612@users.noreply.github.com |
7d8e9e125421aa68fd1b1bc2b40de358c22fa271 | b8ec65cc064cb6c4e7b6e8f2b79780d1dd2510a3 | /atcoder/abc171/C.py | 0fec840484372c1b122aa1ae333021986520c8fa | [
"Apache-2.0"
] | permissive | mohitjaisal/Competitive-Programing-Submissions | cbcdde6fc8e21687c530c0d12bb1e6242c287bc1 | 049541ef542b8b0070bcb5c20470500c3c5bb173 | refs/heads/master | 2023-03-30T03:05:22.940236 | 2021-04-02T07:58:00 | 2021-04-04T02:54:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | import math
ALPHABET = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
result = []
def alphabet_decimal(v):
quotient = math.floor(v / len(ALPHABET))
surplus = v % len(ALPHABET)
quotient -= 1 if surplus == 0 else 0
surplu... | [
"siddhantkhare2694@gmail.com"
] | siddhantkhare2694@gmail.com |
83106a36cd29e8741a1919b6f4bf78d23698ba99 | 7c555fbf6d3e8109d3b1cf68d8db9c82d033d708 | /test-framework/test-suites/integration/tests/report/test_report_host.py | 16b657a98f35d9e92a9751bdb5040688bd8bba7b | [
"BSD-3-Clause"
] | permissive | khanfluence/stacki-intern | 23a4440d2ae99cfa1db1becd0d9e3fbbd03489a5 | df54afb20f6ea6a3a136b3c09b30df54ea79ffcc | refs/heads/master | 2022-03-23T11:38:52.966486 | 2018-08-17T18:04:09 | 2018-08-17T18:04:09 | 145,151,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,546 | py | import pytest
import re
@pytest.mark.usefixtures('revert_database')
class TestReportHost:
def test_report_host_with_default_network_behaviour(self,host):
result = host.run('stack add network test address=10.10.0.0 mask=255.255.255.0 zone=')
assert result.rc == 0
result = host.run('stack add host backend-1-0')
... | [
"billysanders@gmail.com"
] | billysanders@gmail.com |
5300271b0b676978f2319aff708095962e6f6c52 | 49cc32d5859e9002cb4b94ade25d72f5f4fe1612 | /CLASE5_PYTHON_UMAKER/codigo5.py | 52b8bdabb03966ebe2a3f86723ba2f2f85b85de5 | [] | no_license | jorgepdsML/DIGITAL-IMAGE-PROCESSING-PYTHON | c8441215b4cf9e912dad1885a82058c1b0bbb872 | 781c8c6d583aebda6381a301cdc33ad4d09f20c5 | refs/heads/master | 2021-06-26T00:06:44.344201 | 2021-01-21T17:41:36 | 2021-01-21T17:41:36 | 194,336,928 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | class point():
def __init__(self,a,b):
self.x=a
self.y=b
def coordenada(self):
print(self.x,self.y)
def __add__(self, other):
x=self.x+other.x
y=self.y+other.y
return (x,y)
def __call__(self,*args):
suma=0
for val in args:
... | [
"noreply@github.com"
] | jorgepdsML.noreply@github.com |
d308e86366cb8b7a3aace35c26d3ce733fd7b08a | 3c8701e04900389adb40a46daedb5205d479016c | /oldboy-python18/day08-接口-网络/self/网络编程/06-模拟ssh-加上报头/服务端.py | c4da2e73dc660420a2babf440c3e5581b3ee967d | [] | no_license | huboa/xuexi | 681300653b834eaf506f49987dcca83df48e8db7 | 91287721f188b5e24fbb4ccd63b60a80ed7b9426 | refs/heads/master | 2020-07-29T16:39:12.770272 | 2018-09-02T05:39:45 | 2018-09-02T05:39:45 | 73,660,825 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | ####建立连接
import socket
import struct
import subprocess
phone=socket.socket(socket.AF_INET,socket.SOCK_STREAM)###tcp
phone.setsockopt(socket.SOL_SOCKET,socket.SO_REUSEADDR,1) ###复用
phone.bind(('127.0.0.1',8080))
phone.listen(5)
print('server start...')
while True: ###连接循环
conn,client_addr=phone.accept()
print(... | [
"wxcr11@gmail.com"
] | wxcr11@gmail.com |
b8d3389506388638266727994d7c929f57d9bd8d | c82e803475b36940f847881c6ac4d586d28f0da4 | /run_queue.py | 013320a508f1aa74a84cbc1c7fe30f66c082843e | [] | no_license | Obichukwu/linkedin-python-data-structure | 39a6ae450ed189fdca86dd566652b7743da07508 | 9a85118243f6b68cdb0643bfded6144448dd2480 | refs/heads/master | 2022-11-15T02:54:24.000188 | 2020-07-10T22:51:28 | 2020-07-10T22:51:28 | 278,847,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,751 | py | import random
from queue import Queue
class Printer:
def __init__(self):
self.current_job = None
def get_job(self, print_queue):
try:
self.current_job = print_queue.dequeue()
except ValueError: # Queue is empty
return "No more jobs to print."
def print_cur... | [
"nervign@nervlite.com"
] | nervign@nervlite.com |
b0fe0d28f899105a973c6e14181d5562dedc2e72 | 1c92125e591b71c8809e220b24a2f7136aeeff96 | /velvetSub2.py | 7ac0e765604c8b052dd9fbb9ce9731438a62fdb4 | [] | no_license | zyd14/kappa | e9a86d0a2caa3b2d5084dee9083b2e9b11c591b7 | b3ee10297aaa9c0e391023845134c0a5dcd0f7cd | refs/heads/master | 2021-01-23T23:14:21.409843 | 2014-12-08T17:04:18 | 2014-12-08T17:04:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | #Manipulating velvet with subprocesses
import subprocess
import glob
class velvetPak:
def __init__(self):
self.fmt = None
self.out = None
self.inFiles = None
self.kmer = None
self.readType = None
self.vCmd = None
self.r1 = None
self.r2 = None
self.mult = None
def getParams(self):
#Ask user for a... | [
"romerzs14@gmail.com"
] | romerzs14@gmail.com |
396b07af836678cbf34f87d2c44a64e0513292ea | 98cd5ddf45a73aea64bbfac0c0104829d7231b81 | /T - Image + Hexagon/main.py | 4a4ad6510a74b8e54b6218bb846ee6c486774044 | [] | no_license | atheis4/ETC_Modes_Extra | 42508d523cfe632a3335e29f6e1e40af91df231b | d0ce221562105382a7a73cc6d280f4ad0eabf6f3 | refs/heads/master | 2022-04-04T11:15:07.335910 | 2020-01-03T20:27:32 | 2020-01-03T20:27:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,426 | py | import os
import pygame
import time
import random
import glob
import pygame.gfxdraw
images = []
image_index = 0
image_x=100
image_y=100
image_size_x=100
image_size_y=100
border_x = 1
border_y = 1
square_start_x = 1
square_start_y = 1
square_end_x = 1
square_end_y = 1
square_size = 50
trigger = False
def set... | [
"media@critterandguitari.com"
] | media@critterandguitari.com |
43c02c8eb63af5eaf1609b3f7f6e3a4556b981ef | 982628a28b411eee2975c3c585fe85dd9c75ca81 | /50_libraries/1_pandas/4_time_series/basic_vizualization_with_GTK.py | 1c4a6019b583428b3ac764ef1d30dcf2006ccafe | [] | no_license | lukaskellerstein/PythonSamples | 3a6a03f252c5d5538a28edd0bcfff5388a8df55d | 66255a3a04d869799ac3182b09631735b8f00846 | refs/heads/master | 2023-07-12T10:28:00.985123 | 2023-07-06T10:17:22 | 2023-07-06T10:17:22 | 245,231,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | import sys
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
from datetime import datetime
import numpy as np
import pandas as pd
import pandas_datareader.data as web
import matplotlib.pyplot as plt
from matplotlib.backends.backend_gtk3agg import FigureCanvasGTK3Agg as FigureCanvas
class MyWi... | [
"lukas.kellerstein@gmail.com"
] | lukas.kellerstein@gmail.com |
bb9752b6e5369b85804c3c06999944d5ca79451b | 21c6591a5485bea21b78a193e6b964a839bbd1a9 | /project/social/__init__.py | 54320dfebd6f16dab7e08fe0c6c075703ec76ab2 | [] | no_license | Viki7sh/isp34 | 3dc653d9d41fcabd6c0bdd8d3b766d3dad9303fd | 29726ece6013c96f3f4797103eaa9842a38437cd | refs/heads/master | 2023-05-15T08:03:11.705963 | 2021-06-16T16:14:49 | 2021-06-16T16:14:49 | 377,517,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | from flask import Blueprint
social_blueprint = Blueprint('social', __name__, template_folder='templates')
from . import routes, events | [
"ruslan.bekchanov@gmail.com"
] | ruslan.bekchanov@gmail.com |
82f7c41ef29f882eb7ab9cb984644c1902d39cbe | 39db61580cfb0289e7cde7465c6bbc669ed3ef2a | /blogposts/models.py | 405c0f8c57a2edee97870b6517ac960e2c8eac0c | [] | no_license | caputocode/subscription-box | efc25260d2d8259d9bf9aa97771c4a57e6c7bc62 | 26089c4af645d54954a831848d2d437419e549e6 | refs/heads/master | 2020-04-19T16:50:12.475730 | 2019-02-05T14:33:44 | 2019-02-05T14:33:44 | 168,316,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | from django.db import models
from django.utils import timezone
# Create your models here.
class Post(models.Model):
"""
Model for a single post
"""
title = models.CharField(max_length=200)
content = models.TextField()
created_date = models.DateTimeField(auto_now_add=True)
published_date = ... | [
"caputoheather@ymail.com"
] | caputoheather@ymail.com |
a971057d036c9e02983eea09d044b3cc1531cccc | 526bf18a8695862067c817f432ab197ceb645f39 | /migrations/versions/9e01343b62ef_cars_added_fields.py | 4721e5e3683b75236d82cd6644df0c3fd3d99c76 | [] | no_license | sintimaski/bfs-be | a7fd623911a2220face49a0ef84574f3fd7a09a8 | 964a9c7e9cc876aaf8b0723d6b3f26bd378c3721 | refs/heads/master | 2023-08-02T09:00:44.855055 | 2021-09-22T13:07:01 | 2021-09-22T13:07:01 | 339,531,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | """cars added fields
Revision ID: 9e01343b62ef
Revises: 172fb3a90b3b
Create Date: 2020-10-19 07:41:26.893114
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '9e01343b62ef'
down_revision = '172fb3a90b3b'
branch_labels = None
depends_on = None
def upgrade():
... | [
"dimadrebezov@gmail.com"
] | dimadrebezov@gmail.com |
61b73f81a6ce58f01421640a196a3f4b847c39ef | fbe7d15c8adb20accb66fb3ce011efc8444da61f | /functional_tests.py | 6a6a02c55dc130a53cacb5255f1fdfc5c1a1de08 | [] | no_license | Leomaxson/tdd-project | f065ff0e3799e7fd55408688e904407779ce4dd7 | 855564d5fb48681ac97432c1d166de92fe08a547 | refs/heads/master | 2021-03-13T14:49:48.022815 | 2020-03-11T23:37:30 | 2020-03-11T23:37:30 | 246,689,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | from selenium import webdriver
import unittest
class NewVisitorTest(unittest.TestCase):
def setUp(self):
self.browser = webdriver.Firefox()
def tearDown(self):
self.browser.quit()
def test_can_start_a_list_and_retrieve_it_later(self):
# Maria decidiu utilizar o novo app T... | [
"leonardo_maxson@hotmail.com"
] | leonardo_maxson@hotmail.com |
0de2e57e651606fa39a419b990f8d4e0e9f98820 | afd74aa3e8c847d557828115f48f60f696fdfe95 | /C38/validate_getattribute.py | 9e557d5b18eea803ad61c04b81201237089827d8 | [
"MIT"
] | permissive | BetTom/learningpython | f1b957607f92b4acf66aba1d22090f519824822a | 47e78041e519ecd2e00de1b32f6416b56ce2616c | refs/heads/master | 2021-10-11T09:45:40.608420 | 2019-01-24T09:44:05 | 2019-01-24T09:44:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | class CardHolder(object):
acctlen = 8
retireage = 59.5
def __init__(self, acct, name, age, addr):
self.acct = acct
self.name = name
self.age = age
self.addr = addr
def __getattribute__(self, name):
superget = object.__getattribute__
if name == 'acct':
... | [
"jpch89@outlook.com"
] | jpch89@outlook.com |
fcaaf85f73d89c5ad35bde6cff2acca876ac2896 | 944a58e825bb263d469922e842a8160eb305cd07 | /env1-python3.7.4/bin/isort | 6da418966506ee7be769b4ca2d3eb17d44e4b755 | [] | no_license | sowens81/python-flask-cosmosdb-api | 25d08f35a95af409808672b6656a994174850936 | 26097e20803bf79a58ec7090b86051d14334df5a | refs/heads/master | 2023-01-12T00:24:12.847507 | 2021-05-08T18:19:58 | 2021-05-08T18:19:58 | 215,409,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | #!/Users/steve/OneDrive/GIT/Python/PythonLearning1/env1-python3.7.4/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from isort.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"steve.owens@uk.fujitsu.com"
] | steve.owens@uk.fujitsu.com | |
a161fba5fe7ae59bb90970bcaa6be16daeaf12f3 | 4a5dff4c7a0f57d855d2d460f5fe079c88c40b4b | /db_repository/versions/010_migration.py | 90602e57c5fdb57d8e644400ce59c186f215443e | [] | no_license | zomgitstoly/VentureOn | af46d3b163e49c583415cc06412be96ea3edd876 | 1c74502bb1001912d8d7b416f85d9193b7f6098e | refs/heads/master | 2021-05-27T17:56:02.787484 | 2013-04-27T00:38:32 | 2013-04-27T00:38:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,658 | py | from sqlalchemy import *
from migrate import *
from migrate.changeset import schema
pre_meta = MetaData()
post_meta = MetaData()
user = Table('user', pre_meta,
Column('id', Integer, primary_key=True, nullable=False),
Column('nickname', String),
Column('email', String),
Column('role', SmallInteger),
... | [
"link13@gmail.com"
] | link13@gmail.com |
9d3fb5e9f0d13d0dac39ac54ebcd262cccdd485c | 5219ea9d40a5e6187fc047d0e463ecca47654f72 | /project_name/urls.py | baecf57ddd274ae81eaeab21df6fd7ecd4c440b1 | [] | no_license | wo0dyn/django-project-template | b5bb7ffec3a0ecd90df34fc60b6c13422e7f9de1 | 68a0eec61a09486b662cbdf72b13cd5c7b476810 | refs/heads/master | 2021-01-17T07:24:24.012032 | 2013-06-07T08:22:49 | 2013-06-07T08:22:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | from django.conf import settings
from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.http import HttpResponse, HttpResponsePermanentRedirect
from ratelimitbackend import admin
admin.autodiscover()... | [
"buburno@gmail.com"
] | buburno@gmail.com |
5657fd1285700308e09367580684bb8bb6bc2671 | c4deafa379b70e96315309df1474162ebb796d80 | /mpexplorer/python_libs/buzzer.py | 7cea4f210068c9c849e9b4cd386e0ca396aede11 | [] | no_license | FelipeG37/Embebidos | e594ead75aa07efe9451b3ce93d64f44851f8516 | adc1f2ac3128708365f35169055c4edbb34b731e | refs/heads/master | 2020-08-06T17:32:58.672500 | 2020-02-12T07:23:59 | 2020-02-12T07:23:59 | 213,093,605 | 0 | 2 | null | 2020-04-30T12:34:31 | 2019-10-06T01:28:21 | JavaScript | UTF-8 | Python | false | false | 4,566 | py | import sys
from math import pow
try:
import time
except ImportError:
pass
try:
import re
except ImportError:
import ure as re
try:
from midi import MidiFile
except ImportError:
MidiFile = None
try:
from rtttl import RTTTL
except ImportError:
RTTTL = None
SAMPLING_RATE = 1000
names = ... | [
"juliandresfe@gmail.com"
] | juliandresfe@gmail.com |
540d97f9eae15addee732fb657ab96e2f3bec81e | c6c1343006a8f87013603c6c709606c04ae522af | /codeninja/settings.py | a21fada49260b06928f530918207a080efd264fa | [
"MIT"
] | permissive | Deathnerd/iamacodeninja | 021c46e3cc11a1f572c47ae1b649301c6b988c3f | 8e2ef93db7f144cc48676c1a5d1423d65490dbd3 | refs/heads/master | 2021-01-10T18:24:35.146654 | 2015-04-21T17:47:19 | 2015-04-21T17:47:19 | 33,887,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | __author__ = 'Deathnerd'
import os
class Base():
"""Base Config"""
# General App
ENV = os.environ['CODENINJA_SERVER_ENV']
SECRET_KEY = os.environ['CODENINJA_SECRET_KEY']
APP_DIR = os.path.abspath(os.path.dirname(__file__))
PROJECT_ROOT = os.path.abspath(os.path.join(APP_DIR, os.pardir))
# SQLAlchemy
SQLALCHE... | [
"wes.gillealnd@gmail.com"
] | wes.gillealnd@gmail.com |
9b2a0eecd62a2b7a840e499fcfb0059fec62b7b6 | b133ca39198761fd0f6e6e13da0bdd563a223f2e | /manage.py | 61a890f50c116d7aab05faefd506324d96e18a94 | [] | no_license | Niko24x/OrderSpot-web | d75534f0d0f499238ec3d91f374ea5d6bb1e4cee | f49241760391a389b0bc222ee8aa3e3b91a6adb8 | refs/heads/master | 2023-05-06T00:34:53.531544 | 2021-05-13T04:46:42 | 2021-05-13T04:46:42 | 268,131,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'OrderSpotWeb.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise I... | [
"nikolascohn@gmail.com"
] | nikolascohn@gmail.com |
9f2a946202864a07e3ec0b8b972e50a4b51e4222 | 1803b6d5b6cd28f6719c2584f28d581811526d26 | /p57_longerthan_specified.py | 81fde2b4965d7b30b5967916920792216a7137a5 | [] | no_license | augustedupin123/python_practice | 0ee2ebd30810f8df82d9e26b8d52328d052e1a5e | 5ba1f9e4598d1eaa7f5f6f36efb5f96ca4be18a0 | refs/heads/master | 2022-12-08T06:15:48.808986 | 2020-08-31T19:16:15 | 2020-08-31T19:16:15 | 266,285,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | #Write a python program to find the list of words that are longer
#than n from a given list of words.
def list_of_words(l,n):
listreq = []
l1 = l.split()
for i in l1:
if len(i)>n:
listreq.append(i)
return listreq
a = input('enter the list')
n1 = int(input('enter n'))
print (list_of... | [
"bhardwajrahul100@gmail.com"
] | bhardwajrahul100@gmail.com |
9bd2d5a01e42deff358f9b94bc9f1beeebe5ab33 | 047d1d95acb43d055867ba922d67d3a74fc3a9bd | /payment/admin.py | 59f68e8c2af78fdf2662ca9e2a7e98f2186035b0 | [
"MIT"
] | permissive | Arlus/django-payment | 5d18eecadc413aa70dba87682d8f225f4cfa28e4 | 95d8da39d7d8ccf233628140b85525619609745f | refs/heads/master | 2020-07-03T22:35:42.685217 | 2019-10-26T04:45:19 | 2019-10-26T04:45:19 | 202,074,537 | 0 | 0 | null | 2019-08-13T05:57:52 | 2019-08-13T05:57:52 | null | UTF-8 | Python | false | false | 7,586 | py | from django.conf.urls import url
from django.contrib import admin
from django.forms import forms
from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404, render
from django.urls import reverse
from django.utils.html import format_html
from django.utils.safestring import mark_safe
fro... | [
"nwolff@gmail.com"
] | nwolff@gmail.com |
a109be69171e90a7b07833457d5bc456e51b1150 | f77e8e0b270c854c3dbb672edddcbe435e2b93d8 | /spbroadcast/spadmin/service/admin/__init__.py | b2780be643a88d6080b9d8f76a7487165ff8c715 | [] | no_license | cooler1217/siping | f67e3fc8aefdcbbc5b25e6749392fb71cbec18cc | 44572527ee70b90500fd984d6ee76410d5faf872 | refs/heads/master | 2020-12-30T13:19:46.945440 | 2017-05-15T14:24:32 | 2017-05-15T14:24:32 | 91,343,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | #!/usr/bin/env python2.7
# coding=utf-8
"""
Created on 2014-12-9
@author: cooler
"""
from .admin import admin | [
"418435432@qq.com"
] | 418435432@qq.com |
968a736930a6730a0b2049734b9b83b6de0fac28 | 9a0e25591deef948bd5957ac79131bc01594b0bb | /users/urls/urls.py | 5dcecf097a0cfcdd74dcdd19e0bb389c5cd3a355 | [] | no_license | ursusma/HiCommunity | ad31342d6f5ee0bc28899dc1cb199fbe1085e554 | 81e2340264cce983b889dacdb01bbeeb2cb67f21 | refs/heads/master | 2021-07-25T10:58:04.239531 | 2017-10-26T14:17:05 | 2017-10-26T14:17:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | # coding=utf-8
from django.conf.urls import url
from users import views
urlpatterns = [
]
| [
"1225191678@qq.com"
] | 1225191678@qq.com |
bd5c5077877efb9647ef56dbc9a6892780a9afc6 | 87eaced6e2be7f2f68ebdc06004086e83dd64512 | /a2p3/rational.py | d572bac08b629c969af9b3a6171cc0f7bbd5d9ee | [] | no_license | digital-wossen/Advanced-Python-2 | 523e300e026bb6120bea9b489b151250b144ba9f | 319ee76f888bf70fc9fe05b86bfc68033d3fcfcb | refs/heads/master | 2022-01-30T14:08:40.102119 | 2019-07-23T07:24:05 | 2019-07-23T07:24:05 | 198,375,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,044 | py | """
File: rational.py
Resources to manipulate rational numbers.
"""
class Rational(object):
"""Represents a rational number."""
def __init__(self, numer, denom):
"""Constructor creates a number with the given numerator
and denominator and reduces it to lowest terms."""
self._numer = nu... | [
"wossen.k11@gmail.com"
] | wossen.k11@gmail.com |
cc2b5f9d64909554ac377708179e45ee80b181ba | 2d4c726e7a2b4a47dd4849a72281d4b581292c47 | /SisTecInfoNeg/aplicaciones/Personas/migrations/0001_initial.py | 6a32d3c1dcbb0c14ebc32c80e5314a0e001e795b | [] | no_license | Rauliale/SiSTecInfoNeg | 81c4cf3aef43a435ebd7d0ae0f02f9a09d9fdccf | 2a298c9b081c378fa604fc1abb3d51c279701706 | refs/heads/master | 2023-01-02T21:12:54.667753 | 2020-10-31T05:15:36 | 2020-10-31T05:15:36 | 285,526,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,260 | py | # Generated by Django 3.0.8 on 2020-10-06 00:52
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Domicilio',
fields=[
... | [
"50275694+Rauliale@users.noreply.github.com"
] | 50275694+Rauliale@users.noreply.github.com |
788c333b43a743488ab766920b353cd9d0fcd9e3 | add82af4460e8504818a7cb09702e855a7fbc1cd | /Queue_LinkList.py | 82c2bd3d86a1ff83fd38662f5c9bca6705cf20a7 | [] | no_license | hiteshwarsingh1/Data-Structure-Python | e5b52ab7bd514c877885bf64f3916c29446dbb53 | 5b58ee8399861c1041894512757159681ab3604b | refs/heads/master | 2023-01-23T19:19:14.816845 | 2020-11-23T06:05:43 | 2020-11-23T06:05:43 | 292,058,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | class Node:
def __init__(self,data):
self.data = data
self.nextNode = None
class Queue:
def __init__(self):
self.head = None
self.length = 0
def add(self,data):
self.length = self.length + 1
new = Node(data)
if not self.head:
... | [
"noreply@github.com"
] | hiteshwarsingh1.noreply@github.com |
e91ce4fbd61598edc83dcdef899fcd223c630369 | bd6bc6d65fe477d7b12df5bd8135c043d4dc32b7 | /PYTHON/URI - 1070.py | 1b8f95ba04eda6c8e16be787fdd69aaae6743a18 | [] | no_license | AndersonCamargo20/URI-Solutions | 276dbe7c313e27521583861cc4715a54823780fa | e9ff34f67dbf09f5d4999e1417ba5d6ea2769be5 | refs/heads/master | 2021-01-25T14:22:29.015255 | 2019-08-18T10:02:59 | 2019-08-18T10:02:59 | 123,687,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | n = int(input())
count = 0
test = n
while(count != 6):
if(test % 2 != 0):
count = count + 1
print(test)
test = test + 1 | [
"anderson.camargo@unochapeco.edu.br"
] | anderson.camargo@unochapeco.edu.br |
95d00c25a4e347aac1dc9d9e1f43779f6d393425 | bc5a8b0b41e32676cdccfc9e792c80f66c90d425 | /gmm/GMM.py | 33b849d9c31a5a02ba8cdb39907570b824dfd418 | [] | no_license | shaoguangcheng/MachineLearningToolbox | c785359ab2905fef6c30bab2aa49c9a48d64de2d | 5d5761df28513ae38094410bdba41149b1d0e07e | refs/heads/master | 2021-01-10T20:44:24.280044 | 2015-01-06T14:36:57 | 2015-01-06T14:36:57 | 24,097,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,730 | py | #!/usr/bin/env python
"""Gaussian Mixed Model"""
import numpy as np
import pylab as pl
class GMM(object) :
def __init__(self, X, K_or_centroid) :
"""
X : input data, size : N x D
K_or_centroid : if the type of K_or_centroid is int, then it represents the number of Gaussian components
if the t... | [
"chengshaoguang1291@gmail.com"
] | chengshaoguang1291@gmail.com |
e6fd5d60484b99abd40aef90047df89cfb86c241 | 03f00f93b2ad0fe9825617eb9451aa3230465c08 | /05-ML/06-Unsupervised-Learning/03-Movie-Recommendation/tests/test_feature_engineering.py | 9e180b7bb684051b6096ae1f4095c033fca0168f | [] | no_license | grinbea/data-challenges-clean | 775e2f094f65745956473bdf4fea1016da854e63 | 8126abd45728e5c64a6b302dd182d8e497376fe3 | refs/heads/master | 2023-08-15T04:37:35.388965 | 2021-10-09T19:00:01 | 2021-10-09T19:00:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | from nbresult import ChallengeResultTestCase
class TestFeatureEngineering(ChallengeResultTestCase):
def test_unicity_of_movies(self):
self.assertFalse(self.result.unique_movies,
'Make sure you have only one row per movie')
def test_metadata_has_tags(self):
self.assert... | [
"pedemonte.david@gmail.com"
] | pedemonte.david@gmail.com |
d89c447f47026b1045c450addf3e71318dbe69d0 | 894d7451d1d7868fa673c210b70abf8daad2040c | /venv/Scripts/easy_install-script.py | 0a5ca8d03c8d69788b509581fb452c56c5727a5e | [] | no_license | dongeorge77/Automation_Framework | 172678a8484cdfd54b608099ebba6cfd4f34536b | 5d2e78f0f510af8cd542c60835517103e4cc6c45 | refs/heads/master | 2021-10-19T22:59:54.141390 | 2019-02-24T15:00:14 | 2019-02-24T15:00:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | #!C:\Users\ADMIN\PycharmProjects\10th_Class_24_2_2019\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-sc... | [
"dongeorge95@gmail.com"
] | dongeorge95@gmail.com |
a6246c058e55d2fa2abbd2f56635e74cf4b7d23e | 89bcca150fba13001bc9d98af3d799871d1dd272 | /merge_weather_with_activities.py | aadc2d697b2547933608d31a9fe575dd2b83b836 | [] | no_license | mgirardot/Running | b9db83a2baa606fe9ef4b7b22cfc2c73dcfbb939 | 887f10de8f6e240aa0dd325ad7d81d75b00aa581 | refs/heads/master | 2021-01-10T06:34:27.765824 | 2015-09-25T08:12:31 | 2015-09-25T08:12:31 | 43,059,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,347 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Sep 13 08:30:56 2015
@author: Michael
"""
import pandas as pd
f=open("C:/Users/mgirardot/Desktop/garmin_data/OpenWeatherMap_API_key.txt", 'r')
Apikey=f.read()
# importing activities.csv
data = pd.read_csv("C:\Users\mgirardot\Desktop\garmin_data\Activities_format_date.csv", ... | [
"michael.girardot@seekpeak-bioinformatics.com"
] | michael.girardot@seekpeak-bioinformatics.com |
bd6aa535d803e0d7626d692ef7f85f9264f1790c | 14b39f2b54d9046d2a82bbcd650e33234e2854c5 | /6.4k.py | a5989a61744e1339429c7809d31965e026824bab | [] | no_license | ranakroychowdhury/Expectation-Maximization-for-Noisy-OR | f93a1fd9e566dd9d2b0a5e2cc04c4c4bb9016397 | ed53720c1c43ec8e49af06bb059915f4ff4c60a3 | refs/heads/master | 2020-12-18T15:17:21.557787 | 2020-01-21T20:36:30 | 2020-01-21T20:36:30 | 235,436,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Nov 12 12:41:30 2019
@author: Ranak Roy Chowdhury
"""
from matplotlib import pyplot as plt
import numpy as np
def SGD(x, iteration):
result = [x]
for i in range(iteration - 1):
x = x - g(x)
result.append(x)
return result
def g(x):
result = 0
... | [
"rrchowdh@eng.ucsd.edu"
] | rrchowdh@eng.ucsd.edu |
50d36e11b31d4633fb45fcd0f5d7bd95434b4049 | 35662376e89a6292015b9f76f29e0ab029d1c9d3 | /smp2017-Python-maulik/python/LyricoWin/LyricoGUI.pyw | d255568cb1bba74350221818c639ac00f8d7508f | [] | no_license | wdlsvnit/SMP-2017-Python | 6d865fa7d35b5ed32738266ad2b5045e1a31f2eb | 7acc05223d482bb718f6c758a62b63b24ce3ebed | refs/heads/master | 2021-06-20T14:32:06.064971 | 2017-07-15T16:51:09 | 2017-07-15T16:51:09 | 91,326,566 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,055 | pyw | import traceback
from tkinter import filedialog
from tkinter import messagebox
from tkinter import *
import time
import os,requests,bs4,sys,re
import helpers
toGetSize = Tk()
toGetSize.withdraw()
w = 500 # width for the Tk
h = 300 # height for the Tk
# get screen width and height
ws = toGetSize.winfo_screenwidth() ... | [
"maulikchevli@gmail.com"
] | maulikchevli@gmail.com |
eb96d7ba59e15da0b0f51e76d65639b8b35c5cc1 | 1d277498f96998cbbdc475db17191b7d6dc371ab | /rap/management/commands/play.py | 24ebadfb8155bc29f96f1cdd8ee0b3cd3017fe27 | [] | no_license | everythingability/rap | cfaccfbac75b7ff2522fc9bc7debb0fd3eec3559 | 44e550f1ca0ef68c1277d9904bd546c52d51a3e5 | refs/heads/master | 2022-12-09T07:52:27.961493 | 2020-03-18T19:11:23 | 2020-03-18T19:11:23 | 248,318,782 | 0 | 0 | null | 2022-12-08T03:50:01 | 2020-03-18T19:02:14 | Python | UTF-8 | Python | false | false | 2,544 | py | from django.core.management.base import BaseCommand, CommandError
from rap.models import Project, GTRCategory, HECategory, HEResearchArea, Person, Organisation
import os, sys
import csv, json
cats =["Archaeological Theory",
"Archaeology Of Human Origins",
"Archaeology of Literate Soc.",
"Architecture HTP",
"Environmen... | [
"="
] | = |
82f465c11b316b7121d832c85659e050bd9a19b4 | 978c9a1dd27a30b32eceed7f1518a26292695891 | /python/2021/codewars/calculateinversions.py | 513e292b0b59d1a782154f9bfaeb3538c3fe3baa | [] | no_license | detcitty/100DaysOfCode | 4da3407bdc4170f9d042f49e6c94a8469f8808f5 | a3d989ea56491f89ece5191d5246166ca01d2602 | refs/heads/master | 2023-08-09T04:45:51.842305 | 2023-07-21T17:02:08 | 2023-07-21T17:02:08 | 178,976,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | # https://www.codewars.com/kata/537529f42993de0e0b00181f/train/python
from itertools import combinations
def count_inversions(array):
locations = []
for count, value in enumerate(array):
idx = value - 1
diff = idx - count
locations.append(diff)
list_combos = list(combinations(array... | [
"devin.etcitty@gmail.com"
] | devin.etcitty@gmail.com |
3633844e31ef25946149f347fd8b632cd1063b5e | 42de7dc0ec8fb7a2b00651f89cebfb6f30d93a43 | /apps/books/views.py | a4840781b7de3197fe9990a8bff7543b537ffc1b | [] | no_license | caroline-rivera/GILBi | ce4cfccb57ec77c98ab0794cdce2d3a2857fbddb | e17c7c0fb5d6cfdf1620bb66b17d9823ccb418c5 | refs/heads/master | 2020-11-26T14:07:08.793697 | 2012-02-09T01:18:28 | 2012-02-09T01:18:28 | 3,165,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,467 | py | # encoding: utf-8
import json
from django.core import serializers
from django.http import HttpResponse, HttpResponseRedirect
from django.template import RequestContext
from django.shortcuts import render_to_response
from gilbi.apps.books.models import Author, Publisher, Book, BookAuthor
from gilbi.apps.books.forms imp... | [
"caroline.rivera@hotmail.com"
] | caroline.rivera@hotmail.com |
c0793432f7e28931623fb2922bba6c96e0d61b7d | dacfdce9a0f0793c93ba46b3fefe741f5bedd158 | /src/usps_graph.py | afbd4341398b216057147748f6bab879870b20f6 | [
"MIT"
] | permissive | ejnnr/karger_extensions | d219704dbc497198cb78cd08d8e47c4b67557336 | 63a17d5a2483b998fad0a4a425bac8811a293afa | refs/heads/main | 2023-06-21T04:58:13.504935 | 2021-08-03T15:33:09 | 2021-08-03T15:33:09 | 392,244,506 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,611 | py | import os
import sys
import h5py
import numpy as np
from sklearn.neighbors import kneighbors_graph
import scipy
np.random.seed(0)
os.makedirs("results/graphs/usps", exist_ok=True)
n = 7291
beta = float(sys.argv[1])
with h5py.File("data/usps.h5", "r") as f:
data = f["data"][:] * 255
labels = f["labels"][:].ast... | [
"erik.jenner99@gmail.com"
] | erik.jenner99@gmail.com |
ec29a5585bca701315c77178f7d11b5f56e4e8ee | d75ff386cf0920cb84f1d6cbfd9e66042c21ee35 | /main.py | 5599067e5cb40140282189c657525a1b50490031 | [] | no_license | passportout/password-generator | 5801ed6743a543baaffffaf200811619b8f44aea | 2d252cf4534071e64d8067fbedb5070338647dc4 | refs/heads/master | 2022-09-06T09:11:31.591729 | 2020-05-20T11:02:23 | 2020-05-20T11:02:23 | 265,537,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | import string #Done by Passportout
import random
if __name__ == "__main__":
s1 = string.ascii_lowercase
s2 = string.ascii_uppercase
s3 = string.digits
s4 = string.punctuation
plen = int(input("Enter the password length\n"))
s = []
s.extend(list(s1))
... | [
"noreply@github.com"
] | passportout.noreply@github.com |
b526e01a663a13d55dc70e3e5c9adaba7f327fbc | 5dba3b17fd9a61140ed855ceb8d1c1cc7c030261 | /Sender.py | 673898e4b7d7e9599e4aefd4ed3e18e6d4073cdb | [] | no_license | marbibu/myCad | ea2c6ac3740e2e3a9673aa5d6475978e95360121 | e945f33b55c0dd7a74677493d3eddfb147d3fca7 | refs/heads/master | 2021-01-13T02:07:33.165076 | 2014-06-17T18:05:41 | 2014-06-17T18:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | class Sender:
#Klasa, ktora rozsyla info do odbiorcow
def __init__(s):
#Dane:
s.__listeners=[]
def addListener(s,listener):#Dodaje sluchacza
s.__listeners.append(listener)
def delListener(s,listener):#Usuwa sluchacza
s.__listeners.remove(listener)
... | [
"marbibu@gmail.com"
] | marbibu@gmail.com |
341a93c86d08213d8fc6a0ac712472428ddd5fe9 | 58ab9d3670310fa77dab74527de87dedcc4126d3 | /data/egos.py | bde22f9e7e975ce759a868472da332da730eb6e3 | [
"MIT"
] | permissive | ranaehmad/IntroPyForDataScience | e5b92d2ee8eea1d0515d800f7adb65f3a580b524 | 2fe92f21ded7533dd8963e135f6a18a6ade1c00b | refs/heads/master | 2021-05-04T17:33:52.868594 | 2018-02-05T08:12:48 | 2018-02-05T08:12:48 | 120,274,764 | 1 | 0 | null | 2018-02-05T08:16:59 | 2018-02-05T08:16:59 | null | UTF-8 | Python | false | false | 436 | py | import sys
import os
# we retrieve the folder as the first positional argument
# to the command-line call
if len(sys.argv) > 1:
folder = sys.argv[1]
# we list all files in the specified folder
files = os.listdir(folder)
# ids contains the sorted list of all unique idenfitiers
ids = [ int(file.split(... | [
"bashar.dudin@gmail.com"
] | bashar.dudin@gmail.com |
772259c48b97ee2126c1ea50506492631a0f8430 | 86f8a6bc701a70cabaf26c4aa50f8e7e701d9dfc | /basic2.py | efdf882f94218afb65fb73fae771d9b4d737f086 | [] | no_license | zosand123/pj1 | 8cf45086ef5e69d8c4cc61d4c9673a499a6ce696 | 2e071601023634c99179bbfd2d2d024be4d57a78 | refs/heads/master | 2023-03-28T13:57:02.223384 | 2021-03-18T07:57:56 | 2021-03-18T07:57:56 | 313,252,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,185 | py | # import basic
# logger=basic.logger
# def hap(n):
# logger.info('hap함수 호출')
# h=0
# for i in range(n+1):
# h=h+i
# if h>1000:
# logger.critical("합이 1000을 초과,"+str(i)+","+str(h))
# return h
# print(hap(10))
# print(hap(100))
# ---예외처리--------------------
# try:
# 예외가 발생할 ... | [
"zosand123@users.noreply.github.com"
] | zosand123@users.noreply.github.com |
21f65a454607757b2405089a7e5b36b67b45d525 | 8998719f3887966df87e217b3f5fb80b768d313b | /Chapter_5/Character_Creation.py | 44ecc386840b393261cf46bd473d1975bc294597 | [] | no_license | theglitchmitch/M3-Learning-Python | eba3714fb7ec1384536772bc4ff3181cd24797d8 | 6c4e0aa98cd77e4626b4463fbfe0ef850c0be0ea | refs/heads/master | 2016-09-05T09:59:42.441359 | 2014-07-05T07:56:10 | 2014-07-05T07:56:10 | 16,834,705 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,337 | py | #variables
attributes = {"strength": 0, "health": 0, "wisdom": 0, "dexterity": 0}
pool = 30
inc_dec = ""
#current stats
print("Your current stats are as follows:")
print("Strength:\t",attributes["strength"], "\nHealth:\t\t",attributes["health"], "\nWisdom:\t\t", attributes["wisdom"], "\nDexterity:\t", attributes["dext... | [
"mitchellverlinden@hotmail.com"
] | mitchellverlinden@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.