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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c80b169d597c9c063958437671ceecd7b71750f5 | efb5914d7e4cb5e1f150f05b2047475c5f742a03 | /article/models.py | 09b65d6d82d963d44bf273d8eddfb48b108b1a82 | [] | no_license | fengyaowu/python_blog | 89271d0ab95e452984a46988e2a75546ab976854 | fed9321e6f9d0daef905da96c404153dee3c63fd | refs/heads/master | 2020-12-25T10:35:56.113671 | 2016-06-20T13:22:45 | 2016-06-20T13:22:45 | 61,433,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | from django.db import models
# Create your models here.
class Article(models.Model) :
title = models.CharField(max_length = 100) #博客题目
category = models.CharField(max_length = 50, blank = True) #博客标签
date_time = models.DateTimeField(auto_now_add = True) #博客日期
content = models.TextField(blank = True, null = True) #博... | [
"245522482@qq.com"
] | 245522482@qq.com |
d6886e124c6a5e23cfe5c3167ad569f20e55a369 | 3cedb583e9f3dfcdf16aeba56a0b3ff7c6213e99 | /python-codes/m2_curso_em_video_estruturas_de_controle/ex048.0.py | 7c2fd6a5930cb1648fc94bfe1920cee6b20f008b | [
"MIT"
] | permissive | lucasportella/learning-python | 0f39ae2389db6d07b5b8c14ebe0c24f1e93c77c5 | a9449dffd489e7e1f1619e3acef86bc2c64f0f14 | refs/heads/master | 2022-12-26T15:04:12.806300 | 2020-10-14T23:17:47 | 2020-10-14T23:17:47 | 260,685,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | soma = 0
somaPA = 0
print('Todos os números ímpares múltiplos de 3 até 500:')
for cont in range(1,501,2):
if cont % 3 == 0:
soma += 1
somaPA += cont
print(cont,end=' ')
print('\n Número de repetições:', soma)
print('Soma da PA:', somaPA)
| [
"lucasportellaagu@gmail.com"
] | lucasportellaagu@gmail.com |
6221fa9402eb869ad7d946b60149e5551b64ed3d | e190e06b7670b1b81c2e949deebbf85edc4322c1 | /python/recurssion/power_sum.py | 9b72ee1dae4f0dcef892983302ae2cf5a69add8f | [] | no_license | sridattayalla/Programming | ecb6dc337fa05c8c5bcbbc83e1e6c054c99061e0 | f37b1beaef478ae18cebc05e08195e3fe782e204 | refs/heads/master | 2020-04-14T08:25:11.838889 | 2019-01-10T14:45:26 | 2019-01-10T14:45:26 | 163,735,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py |
exp_op = int(input())
N = int(input())
def fun(total, i):
if total == 0:
return 1
s = 0
j = i
while not (j ** N) > total :
s += fun(total - j ** N, j+1)
j +=1
return s
print(fun(exp_op, 1)) | [
"sridatta555@gmail.com"
] | sridatta555@gmail.com |
bdfc67134e68f38d32f6dacdf3e2b988157cdd84 | 592cfd8644c8783a11bb794b882d8cd026223810 | /test_Model/SALDR_U_test.py | 028d4ec87fafe9101c528f45c9274df29a39b6d5 | [] | no_license | wikiloa/SALDR | 34c5c1a1fd4c727f0306d4c55007a052f3453350 | 818ce267df8f376a1a2ce6f25b39eec37126071b | refs/heads/main | 2023-04-24T13:34:29.475560 | 2021-05-13T03:15:09 | 2021-05-13T03:15:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,232 | py | # -*- coding: UTF-8 -*-
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras.layers import Input, Dense, BatchNormalization, Reshape, Conv2D, add, LeakyReLU, ReLU, Lambda, dot
from tensorflow.keras.models import Model
from tensorflow.keras.layers import Activation
import scipy.io as sio
imp... | [
"noreply@github.com"
] | noreply@github.com |
26b3004e71f04e82258a624cffc6fefb66233471 | 471a7c00d3ec517f4d8097623d47bed99972388a | /util/message_parser.py | 2c368617fcf9cfd850897ea638024c56ec151d3d | [] | no_license | KeithMaxwellZ/QQBot-Mirai | 0d7bd39c047ba27e038f16f95b3bc382b9a88013 | ae5fca302c1864968e69d622624a64df05856493 | refs/heads/master | 2023-06-17T18:59:46.655652 | 2021-07-04T07:17:22 | 2021-07-04T07:17:22 | 381,435,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,539 | py | from p_var import COMMAND, ENV
def test_command():
def func(_, __, *args):
return [{"type": "Plain", "text": "SUCCESS"}], True
return [("TEST", func)]
class ParserManager:
def __init__(self):
ENV['cmd'].extend(test_command())
def parse(self, msg: str, rd: dict):
res = []
... | [
"keithzhang021@outlook.com"
] | keithzhang021@outlook.com |
0e32f524995c1548bc7ebefdf82ad162bf3602eb | 194e7f2ea97a25915530c34c88d811fecb4cb49e | /将pandas填充到QTableView并根据条件更改颜色.py | b03231d6ca3bb85621a0e6cfb540e54725788494 | [] | no_license | webclinic017/TDXPystock | 77471d6b7896b5e39d8bceb109af24b3215374f4 | 94b974858697b0495dec7fb125443d786b0ff52a | refs/heads/master | 2023-08-24T18:15:08.407012 | 2021-10-16T09:58:22 | 2021-10-16T09:58:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,951 | py |
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.Qt import *
import pandas as pd
import sys
class PandasModel(QtCore.QAbstractTableModel):
def __init__(self, df = pd.DataFrame(), parent=None):
QtCore.QAbstractTableModel.__init__(self, parent=parent)
self._df = df
def headerData(self, sec... | [
"newhackerman@163.com"
] | newhackerman@163.com |
d0f1683880dd97dbf57a8ff8ca500f4470b5aa9f | a42ed872908291bbfc5ae2f68968edc4c47edfcf | /lesson_16/choices_test.py | 8c1ac0adaa1e1dc47e02cf3b312e2d5874927c43 | [] | no_license | antonplkv/itea_advanced_august | b87f48cc48134ce1a73e167a5c834322792d0167 | 265c124e79747df75b58a1fd8c5d13605c1041b2 | refs/heads/master | 2023-01-02T23:31:39.050216 | 2020-10-28T19:15:01 | 2020-10-28T19:15:01 | 291,792,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | import mongoengine as me
me.connect('testtetsttetst')
class Task(me.Document):
LOW_PRIORITY = 1
MEDIUM_PRIORITY = 2
HIGH_PRIORITY = 3
PRIORITIES = (
(LOW_PRIORITY, 'Низкий приоритет'),
(MEDIUM_PRIORITY, 'Средний приоритет'),
(HIGH_PRIORITY, 'Высокий приоритет')
)
INSI... | [
"polyakov.anton@ukr.net"
] | polyakov.anton@ukr.net |
1d76a739d45168f20e05f2036d432c109bc00d75 | cbeef32eb6058803feb5cb4ff27cf33dc66930a7 | /venv/bin/pip3.7 | 6141025d6533c9164719875a94983801510093e3 | [] | no_license | NgyAnthony/python-course | e0a1b92c6a358f0225f136da0fb5b4cfbd495ae9 | 1737d513637c2ad797fe6612e98d2b5aec8d7d62 | refs/heads/master | 2020-03-25T03:10:14.517841 | 2018-08-19T21:03:04 | 2018-08-19T21:03:04 | 143,326,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | 7 | #!/Users/Anthony/GitHub/python-course/venv/bin/python
# 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])
s... | [
"nguyen.anthony@protonmail.com"
] | nguyen.anthony@protonmail.com |
e123eb5ce78814907f4c0576ae6dc701c3f31bc2 | c105570f12f1d56087ffb831f5d34cd763d6c90b | /top/api/rest/WlbWaybillIQuerydetailRequest.py | e31f3da969397463b9eaf5940b3a4f8b3c5c3026 | [] | no_license | wjianwei126/Alinone | 01607423833d7736b2fd3c77e9e21f63c69b4e4c | 80144d4657cb049d651c09647eb245405240f12f | refs/heads/master | 2020-12-07T05:14:58.746777 | 2015-05-06T12:48:33 | 2015-05-06T12:48:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | '''
Created by auto_sdk on 2014-11-09 14:51:18
'''
from top.api.base import RestApi
class WlbWaybillIQuerydetailRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.waybill_detail_query_request = None
def getapiname(self):
return 'taobao.wl... | [
"rapospectre@0163.com"
] | rapospectre@0163.com |
7f5de79bf22a129c02a35fdd8c9a11b23ddd65a3 | 64db5b9df7daf92cf6229fe8b91898d79539a147 | /b1.py | 6b8f325c8273cdd3d4c342ddc03e52626b8d1d73 | [] | no_license | Trieu210/Duc-session5-C4T8 | c463a23176236a126df9a7fa5556d71ce6375742 | 3c9794a101718b858f63b2f484c6a8b519925ef2 | refs/heads/master | 2020-03-29T13:57:06.707392 | 2018-09-25T13:24:38 | 2018-09-25T13:24:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | x = int(input('Pls type a month u like'))
if x < 2:
print('winter')
if 2 < x < 5:
print('spring')
if 5 < x < 8:
print('summer')
if 8 < x < 11:
print('autumn')
elif 11< x < 13:
print("winter")
| [
"vanoss010@gmail.com"
] | vanoss010@gmail.com |
2d36654f0aab37213e7a98c059b27cb7667d61cd | 4fe2212150dd474f1914424d6fada4f0e2bf2999 | /View/SystemMonitor/login/migrations/0001_initial.py | c89d15f6156fef1d98bc7b1758bdc2841bd3256a | [] | no_license | mn3711698/SystemMonitor | c05b5e2df5d1482ea3c48c64c4de074cbcc3b646 | 03def90ecf375313243a182dd15fcc18f19f771b | refs/heads/master | 2020-04-19T22:03:40.115395 | 2017-03-29T13:29:31 | 2017-03-29T13:29:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='login',
fields=[
('id', models.AutoField(verbos... | [
"zhoupans_mail@163.com"
] | zhoupans_mail@163.com |
872de0991877dfef1b21247ab755ef7a130f0585 | 3f3f0d63aa36aec52f1bc3c1d8a8a0cebc5d6418 | /MatchData.py | 7240aab78339dbf69300d562506bc96685a90823 | [] | no_license | Hosstell/bet | 2f04b52986c3fb786274b1524bdb9fb51503b508 | 48e6d0fdc3380c718cde516261dcbc1d1920112f | refs/heads/master | 2021-06-13T18:23:10.809455 | 2019-09-06T16:35:19 | 2019-09-06T16:35:19 | 201,738,105 | 0 | 0 | null | 2021-06-02T00:28:24 | 2019-08-11T08:27:08 | Python | UTF-8 | Python | false | false | 8,965 | py | #coding:utf-8
from selenium import webdriver
import time
def add_to_file(set_game, coeff, result):
file = open('bets.log', 'a')
line = '{}: {} - {}\n'.format(result, coeff, set_game)
file.write(line)
file.close()
class MatchData:
def __init__(self, link):
self.data = {}
self.MINI... | [
"st.andrey-serov@yandex.ru"
] | st.andrey-serov@yandex.ru |
c2c10b270410119bce4a476fa68496d932d8b585 | d60e8f913f2bbef8f9aa8ff9c2874d2a16def2c1 | /venv/bin/eb | 82d098d82fedc573f31efafc368914507f9748b5 | [
"Apache-2.0"
] | permissive | Justin-Bee/SER401_Trynkit | f8fc2dc23d7a0aa6655d37e57dc82a184de3278a | 3bf826121b2115f67271d88aa253075d71e81a90 | refs/heads/master | 2022-12-10T01:01:57.428388 | 2020-04-14T17:53:54 | 2020-04-14T17:53:54 | 208,181,054 | 0 | 2 | Apache-2.0 | 2022-12-08T06:51:17 | 2019-09-13T02:19:51 | Python | UTF-8 | Python | false | false | 419 | #!/home/jbee/PycharmProjects/SER401_Trynkit/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'awsebcli==3.15.3','console_scripts','eb'
__requires__ = 'awsebcli==3.15.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.ar... | [
"jbee.appz@gmail.com"
] | jbee.appz@gmail.com | |
8dc79e0dd5147c35f465679e469e100e180fb330 | 4b056544003cffc3155c64af649535df1bcd1f25 | /crawler/shurikenCrawler/shurikenCrawler/spiders/knef.py | 1a843f628940b23bc93da2c59b3df94e1215bbd3 | [] | no_license | ilcapone/Shuriken | 9a304eb0a102f19a19d552196725bbd5fd26c3a2 | 7473dbdc50423b26519b7f495d6e3f138c7e6316 | refs/heads/master | 2021-01-22T21:27:15.284213 | 2017-06-23T08:38:02 | 2017-06-23T08:38:02 | 85,427,637 | 0 | 0 | null | 2017-04-02T19:58:17 | 2017-03-18T19:44:48 | Perl | UTF-8 | Python | false | false | 897 | py | import scrapy
from scrapy.spiders import CrawlSpider, Rule
from scrapy.linkextractors import LinkExtractor
from scrapy.loader import ItemLoader
from shurikenCrawler.items import UrlKnef
from datetime import datetime
class Knef(CrawlSpider):
name = 'knef'
allowed_domains = []
def __init__(self, startUrl=No... | [
"juanzumbido@hotmail.com"
] | juanzumbido@hotmail.com |
10f47f80b7c9c1ebf1af1c941dbe2dbbc69c281d | a5b4384d1eaef17875499a3f721fedb91afa9fba | /usr/app/wsgi/tests/test_identification.py | 4b2a91ae1772c81ee9d77f68ffac95c017821d1e | [] | no_license | wizardsofindustry/quantum-usr | 85f609b8c08264d69204f696bea0446df19f0eb6 | d49a3dcdf4df2ce31324f5ec98ae5c7130e01cbb | refs/heads/master | 2021-07-18T06:51:16.034613 | 2018-11-23T19:20:23 | 2018-11-23T19:25:16 | 136,974,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,983 | py | import unittest
import ioc
import sq.test
import sq.lib.x509
from ....infra import orm
from ..endpoints import IdentificationEndpoint
@sq.test.integration
class X509SubjectIdentificationTestCase(sq.test.SystemTestCase):
gsid ="00000000-0000-0000-0000-000000000000"
metadata = orm.Relation.metadata
def s... | [
"cochise.ruhulessin@wizardsofindustry.net"
] | cochise.ruhulessin@wizardsofindustry.net |
668b21490b70115fd45ed0b58eb91c441cd93947 | 1d1d97c7759d9fd0446dfaa103b9c6fb17e7341a | /backups/migrations/0024_auto_20210314_1254.py | 3d691d8460f81eaf50a98b42a5e978b591fa308b | [] | no_license | sulaimanchakkiyathil/travport | 032c69d51a7b8e3312042aed343f9a321e0902f5 | 7828c6f52ce86a479eda3488ce1c5dce7cb6dee1 | refs/heads/master | 2023-04-12T09:36:31.280748 | 2021-05-06T05:23:52 | 2021-05-06T05:23:52 | 364,793,044 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | # Generated by Django 3.0.8 on 2021-03-14 07:24
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0023_auto_20210314_1252'),
]
operations = [
migrations.RemoveField(
model_name='cust_registration_table',
name=... | [
"suluc4u@gmail.com"
] | suluc4u@gmail.com |
5c430d9445c2f61964997f22bfa2ba75c98eba92 | a183ffb47d54e47dedd40536a64a39b994869977 | /inversion.py | 314513e0737a22970030fd675a13c51937ee5023 | [] | no_license | luissergiovaldivia/Python | bf9ada210e8ba521126d231a05729cf1f07b98c8 | 6a3d30baa6a0a320ba4cb1b38825f7c3a7edc2c7 | refs/heads/main | 2023-02-14T16:48:10.300129 | 2021-01-09T15:15:09 | 2021-01-09T15:15:09 | 328,156,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | cadena = input('introduce una cadena : ')
inversion = ' '
for caracter in cadena:
inversion = caracter + inversion
print('Su inversion es:', inversion) | [
"i.h.m.p.servicio@gmail.com"
] | i.h.m.p.servicio@gmail.com |
579e5cbdefc699b964e62dbd7f5acf9f3aee439e | 36fbba7b0823e04062c41f26385ed71da5b4f4d4 | /tests/test_pipelines/test_bottom_up_pipelines.py | f687ecb2a385b85dc28988e7ed7937410b446a76 | [
"Apache-2.0"
] | permissive | cherryjm/mmpose | 2fcd4504a0a0d46f6a4dce6d0be1141fdead6bb5 | b0acfc423da672e61db75e00df9da106b6ead574 | refs/heads/master | 2023-06-12T10:15:45.964450 | 2021-05-07T06:06:31 | 2021-05-07T06:06:31 | 346,599,724 | 1 | 0 | Apache-2.0 | 2021-03-11T06:22:06 | 2021-03-11T06:22:05 | null | UTF-8 | Python | false | false | 12,297 | py | import copy
import os.path as osp
import numpy as np
import pytest
import xtcocotools
from xtcocotools.coco import COCO
from mmpose.datasets.pipelines import (BottomUpGenerateHeatmapTarget,
BottomUpGeneratePAFTarget,
BottomUpGenerateTarget,... | [
"noreply@github.com"
] | noreply@github.com |
3ecb8306c4120d34f4d50837b65d730ed957c23e | df04a39be0cb31fa66a084afa2a4c161839d8d88 | /core/ajax.py | 735c1792f36a713211835a1a5e8c3cfca7979354 | [
"Apache-2.0"
] | permissive | skyle97/Watcher3 | 58e95febbd81608e9de8ce5486c62c0ec45958d7 | 3eaee90069caee3a7fbff096184de33ad97fe7f3 | refs/heads/master | 2021-01-19T17:10:32.147456 | 2017-08-21T02:43:34 | 2017-08-21T02:43:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,912 | py | import json
import logging
import os
import threading
import time
import cherrypy
import datetime
import core
from core import config, library, searchresults, searcher, snatcher, version, movieinfo, notification, plugins
from core.providers import torrent, newznab
from core.downloaders import nzbget, sabnzbd, transmiss... | [
"nosmokingbandit@gmail.com"
] | nosmokingbandit@gmail.com |
879079013be7911a134b9b62a20ff2df3d5483f6 | 7d852b8d7b8a6ad7fc9c39957e1097509d08e607 | /cf/test/create_test_files.py | e3fd0f5939be75bd460a289c3d6ae479c19c9f7f | [
"MIT"
] | permissive | AJamesPhillips/cf-python | ca0a7ca8681fe928f069d5809bf067d064265e38 | 4631bc4ba3c0cb51dcd18905116440007e291e6b | refs/heads/master | 2020-09-20T10:04:38.336267 | 2019-11-27T14:07:53 | 2019-11-27T14:07:53 | 224,445,029 | 0 | 0 | MIT | 2019-11-27T14:08:11 | 2019-11-27T14:08:10 | null | UTF-8 | Python | false | false | 23,397 | py | import datetime
import os
import unittest
import numpy
import netCDF4
import cf
def _make_contiguous_file(filename):
n = netCDF4.Dataset(filename, 'w', format='NETCDF3_CLASSIC')
n.Conventions = 'CF-1.7'
n.featureType = 'timeSeries'
station = n.createDimension('station', 4)
obs ... | [
"d.c.hassell@reading.ac.uk"
] | d.c.hassell@reading.ac.uk |
dfabb3bfc2330933469c77fd8c5db27ab3cce713 | 875d28c91341759de2fba250377955dbea432c9f | /flaskTutorial/flaskblog/models.py | 3319cf433330417c9c3ce6f7a64bfb7a2e3d06ae | [] | no_license | ja-vu/pythonProjects | 908ed141dd2c74c3eb045897aa474d60ace9b20b | f69bce815d81844e451f932854a3017b3f604949 | refs/heads/master | 2021-05-22T22:06:03.784246 | 2020-11-19T12:39:29 | 2020-11-19T12:39:29 | 253,117,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | from flaskblog import db, login_manager, app
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
from datetime import datetime
from flask_login import UserMixin
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
class User(db.Model, UserMixin):
id = db.... | [
"jaames.vu@gmail.com"
] | jaames.vu@gmail.com |
dc43154b2aa5893cfa927b7f35ef1427d65f1a3b | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/conda_conda/conda-master/conda/common/configuration.py | c1cc2a3d474edce74a64aadc4aa2fa940792cd7f | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 34,143 | py | # -*- coding: utf-8 -*-
"""
A generalized application configuration utility.
Features include:
- lazy eval
- merges configuration files
- parameter type validation, with custom validation
- parameter aliases
Easily extensible to other source formats, e.g. json and ini
Limitations:
- at the moment only supp... | [
"659338505@qq.com"
] | 659338505@qq.com |
7e78b651b01d138f05ac37cd892e2b95cbb61542 | 23c337e16799b8eeddca04a81286e41868198554 | /script.py | 0ec2e474c940caa2749d18bc443f4afe812fbac3 | [] | no_license | Rohini-git/Postgresql_python | 2a73a454fc070c2c5e6efe2c1ba89e62e1545ed3 | ec5a8fa8edfbba04ffbd765aaada53bacfc479b1 | refs/heads/main | 2023-02-03T13:33:57.215746 | 2020-12-07T22:25:24 | 2020-12-07T22:25:24 | 319,456,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | #!/usr/bin/python
import psycopg2
from config import config
def connect():
""" Connect to the PostgreSQL database server """
conn = None
try:
# read connection parameters
params = config()
# connect to the PostgreSQL server
print('Connecting to the PostgreSQL database...')
conn = ps... | [
"noreply@github.com"
] | noreply@github.com |
8b515c1c969fb94a6217cb97703e541fd5ba293e | 0b6db00d2e0514b71eaeb394e9e5398e99dfd723 | /good-shows/test_load_db.py | 7db33197bda3bfcb03cd1faacfbb5113a8719d55 | [] | no_license | jeremyber/GoodShows | 54d2979009dca76404bdc0cdc07e280fbbc5a1dc | f7ed7f26e8562f25592239f7abae8959743d22af | refs/heads/master | 2021-01-14T03:46:38.848181 | 2020-03-02T02:35:45 | 2020-03-02T02:35:45 | 242,589,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | import unittest
import unittest.mock as mock
from unittest.mock import patch
from load_db import DBLoader
class TestLoadDB(unittest.TestCase):
def test_constructor_expected(self):
# Function should only take a file path (string)
# test expected functionality
assert "abc" == DBLoader("abc")... | [
"beramiah@gmail.com"
] | beramiah@gmail.com |
4cb83fe1c456cd5a3d4b5c44db170ac4c643b734 | bab1615ee6a758a3284c4385bca22dd1aba8ac9e | /爬取王者荣耀英雄图片/2.py | 58eae657eb3549fd9c48baba729117ab9729e371 | [] | no_license | a1169804597/home | 436b3434057c679d245ffe6e3d61004632841d1e | 9b1e63e3eee6c22a281d0eb54dfa7400f2952a87 | refs/heads/master | 2022-12-01T17:08:56.014555 | 2020-09-17T23:34:12 | 2020-09-17T23:34:12 | 228,879,970 | 2 | 1 | null | 2022-11-22T02:26:05 | 2019-12-18T16:29:29 | HTML | UTF-8 | Python | false | false | 1,617 | py | #!E:\python\env\python37
#-*- coding:utf-8 -*-
# @time :2019/5/25
#@Auther :zbwu103
#@name:爬去王者荣耀英雄皮肤方法二
import os,re
import requests
from requests import codes
from hashlib import md5
url = 'https://pvp.qq.com/web201605/js/herolist.json'
headers={
'referer': 'https://pvp.qq.com/web201605/herolist.shtml',
'u... | [
"1169804597@qq.com"
] | 1169804597@qq.com |
d2d2e8b51cc29ab51ee2998ddd3a367c920ed677 | 86726c037604396899876c1559d761eef5e86fca | /users/views.py | 51fc463c44c42732a1799ab4c6e61dfe586057f2 | [] | no_license | GoldenPalladin/PersonaHR | 2ef67d666041a30df3afefaabf73bef3b6285b88 | 67a2e07497116c6a26dfec8b6c521237ec79ac39 | refs/heads/master | 2023-01-19T06:07:15.317873 | 2020-11-19T22:46:45 | 2020-11-19T22:46:45 | 303,156,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | from rest_framework import viewsets
from django_filters.rest_framework import DjangoFilterBackend
from .serializers import UserProfile, UserProfileSerializer
class UserProfileViewSet(viewsets.ModelViewSet):
queryset = UserProfile.objects.all()
serializer_class = UserProfileSerializer
filter_backends = [D... | [
"p.yakovlev@live.ru"
] | p.yakovlev@live.ru |
390fc6499398ef604d76ba10579f4554f2ea57c1 | 5c13636a1504bde99e3c0ea6b3e0a276b0b53934 | /apop/ASR/divers/transformer_pretraining.py | 4ee033d17554c9f9da27b272add9dcecb8ddf312 | [] | no_license | thbeucher/ML_pytorch | 3555d7320b250ae6c1d44efcf51af78368727863 | 0eebc122396583eccb05fc2fd9a595cbb554b0de | refs/heads/master | 2023-07-24T21:51:15.611206 | 2023-06-15T16:25:56 | 2023-06-15T16:25:56 | 217,279,944 | 0 | 0 | null | 2023-07-22T19:40:34 | 2019-10-24T11:12:10 | Python | UTF-8 | Python | false | false | 8,321 | py | import os
import ast
import sys
import torch
import logging
import argparse
from tqdm import tqdm
import data as d
import utils as u
import optimizer as opt
from models.transformer.transformer import Transformer
from models.transformer.embedder import PositionalEmbedder
def train_model(model, metadata, max_epochs=... | [
"thomas.beucher@sap.com"
] | thomas.beucher@sap.com |
737e464d7f1070b52b86d17274f4c1b348a1741d | e9257661b8a0be9ded34ef3d60c8018c4f2829d3 | /Epidemiology/wsgi.py | ddd0264700953def72d3778881ff51feff5bb229 | [] | no_license | Ambarishpk/Epidemiology_with_Highcharts | 86e7be6313f623232af16bad63dc3f6e236e725e | 0b823eb17be1b60b3ba4c3801e49f6382c1569df | refs/heads/master | 2022-12-21T00:33:11.559750 | 2020-09-29T04:05:08 | 2020-09-29T04:05:08 | 254,281,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for Epidemiology project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"aambu1998@gmail.com"
] | aambu1998@gmail.com |
738920008605c7761bdfcb5b73d23b28c75bf972 | 51c9dd5cfe4532fb1775fec65eb8fcec73a324de | /klue-level2-nlp-11-main/code/model/testmodel.py | 0c96965ce816e598500f345cec232013442e9129 | [] | no_license | Hong-Hyun-Seung/KLUE_word_relation | fe78587abed5e83fef28d5f40cee5fa54d8f1ad0 | b8ffa2ad6365e43b4b00960bf40291d8f09b8961 | refs/heads/main | 2023-08-23T09:15:06.737140 | 2021-10-14T04:57:04 | 2021-10-14T04:57:04 | 416,992,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | class testmodel():
def __init__(self,params):
self.layer , self.classNum = params.values()
print(self.layer , self.classNum)
| [
"noreply@github.com"
] | noreply@github.com |
e9a512b76683460e70e8f31c4ae4f2d4f5144fb0 | 62c613e1f2bf062f807294ec6da4ae35bda6ac86 | /abc146-d.py | 195a5dc74cc33e8cfd7bc84c234a493644e42d2a | [] | no_license | teru01/python_algorithms | 6b463c78c801b68f93dda2be2f67c9688dc3cc07 | 8feb194f53b619ab7b9c964a32df7b4df32b6f2e | refs/heads/master | 2020-06-11T02:33:27.939830 | 2020-04-27T01:32:37 | 2020-04-27T01:32:37 | 193,827,088 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,178 | py | import sys
input = sys.stdin.readline
from operator import itemgetter
sys.setrecursionlimit(10000000)
INF = 10**30
from collections import deque
def main():
n = int(input().strip())
G = [[] for _ in range(n)]
A = [0] * n
B = [0] * n
for i in range(n-1):
a, b = list(map(int, input().strip().... | [
"teru0x01.sheep@gmail.com"
] | teru0x01.sheep@gmail.com |
d9f422cf19d6d09ad347224d4ef2fb341fc3defe | 5b582d507ae8fe911dac543f29c4b9907a4845bb | /Python_2/1_5_8.py | 9124d6d51179721cfbd7764bc20c3d305d90e7b8 | [] | no_license | CerberusMinsk/Python_Learn | 318cc4fedaba5ce41a6a2b3a5304c68d239b73a6 | 65b33f6f2486cc10084fbe8173143181e573553e | refs/heads/master | 2021-01-12T11:06:32.953797 | 2017-09-15T15:04:22 | 2017-09-15T15:04:22 | 72,825,486 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
class MoneyBox:
def __init__(self, capacity):
# конструктор с аргументом – вместимость копилки
self.capacity = capacity
self.volume = 0
def can_add(self, v):
# True, если можно добавить v монет, False иначе
if (self.volume + v)... | [
"cerberus.minsk@gmail.com"
] | cerberus.minsk@gmail.com |
0ddd486216234df750fe39cc5c58fe651f07a5ce | a1f081bf91cb3e37d2946dcf16e4dfeec366890e | /HW7/test/test_examples.py | b66db0c08b3103b7c16a6ef7c51e86437d762f41 | [
"MIT"
] | permissive | vishakayadav/CSC591_ASE_Assignments | 12badbaa1e347f60358078cc19e5460c5d60b609 | ffb5161934f6914b4c66194adbadf631a6bbe40c | refs/heads/main | 2023-04-09T20:23:23.406918 | 2023-03-20T23:19:43 | 2023-03-20T23:19:43 | 590,268,577 | 0 | 1 | MIT | 2023-03-20T23:10:48 | 2023-01-18T02:28:12 | HTML | UTF-8 | Python | false | false | 4,616 | py | from HW7.src.utils import *
import numpy as np
def test_ok(n=1):
random.seed(n)
def test_sample():
for i in range(10):
print('', ''.join(samples(['a', 'b', 'c', 'd', 'e']).values()))
def test_num():
n = NUM()
for i in range(1, 11):
n.add(i)
print('', n.n, n.mu, n.sd)
def test... | [
"vyadav@ncsu.edu"
] | vyadav@ncsu.edu |
2bbb84a7139f0d3c5634d43a3ab1e5067fdf0278 | d78a04f28c7fed7c473218f0ada506ba9bc07f2b | /tensorflow-variables.py | 4190137fa124b6de8b728215d130876419e4e34d | [] | no_license | zhongfc/tf | 8c9a9b74822a1c1888032a607a7c49427daac6ef | 1bcc57277c6641e19c4955569416b0ff862df45a | refs/heads/master | 2021-05-07T05:49:57.681347 | 2017-11-21T13:53:16 | 2017-11-21T13:53:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 1 00:03:01 2016
@author: hy
"""
# 创建一个变量, 初始化为标量 0
state=tf.Variable(0,name="counter")
# 创建一个 op, 其作用是使 state 增加 1
one=tf.constant(1)
new_value=tf.add(state,one)
update=tf.assign(state,new_value)
# 启动图后, 变量必须先经过`初始化` (init) op 初始化
# 首先必须增加一个`初始化` op 到图中.
init_op=tf.in... | [
"hanqiangfei@163.com"
] | hanqiangfei@163.com |
b7d4e2c3208369a33f66dab709d12abfb24906ab | 599ce6e2cac0e806f9286b7f0fdc12685950f03d | /CloudMeasurement/experiments/__init__.py | 0a369bf0dd95e116e661ab81b42a932bcf464fec | [
"MIT"
] | permissive | Giuseppe1992/CloudTrace | dfec79c70dd33e799ad0eadee77ef24fbc3ae47e | 6de62ddf301c7b733f86471705903feb1ef038c2 | refs/heads/master | 2023-01-20T22:33:44.194190 | 2020-12-01T08:46:13 | 2020-12-01T08:46:13 | 285,240,897 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | from CloudMeasurement.experiments.ansibleConfiguration import InventoryConfiguration
| [
"giuseppedilena92@gmail.com"
] | giuseppedilena92@gmail.com |
c65dcc65317d2919617e792993720fc2b8a00c80 | 6112755e88f4a8d98903cf41d428c417db175506 | /workflow/python/covid19_scrapers/states/florida_county.py | a0f40890f3a62252eaefdeb4889e9a1b8d653c35 | [] | no_license | mariedata360/COVID19_tracker_data_extraction | e674f700832b3759a65429c8a8f45ab825577896 | 339feb3c27411aa1887946a8bc725300665d235a | refs/heads/master | 2023-01-23T06:25:16.028536 | 2020-11-28T00:24:53 | 2020-11-28T00:24:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,064 | py | import logging
from numpy import nan
from covid19_scrapers.census import get_aa_pop_stats
from covid19_scrapers.scraper import ScraperBase
from covid19_scrapers.utils.arcgis import query_geoservice
from covid19_scrapers.utils.misc import to_percentage
def _make_florida_county_scraper(
db_name,
censu... | [
"natarajan@krishnaswami.org"
] | natarajan@krishnaswami.org |
123955e5a128449b12ae0ef7cf22e798a08fc826 | 24034b8bfcf8d28c157ac2af0fb5d3426b8d7e91 | /Scripts/COVID_analysis_scripts/analyze.py | b799288cf1464800f0f953141db42bd4c399d86e | [
"MIT"
] | permissive | vvoelz/covid-FAH-CPU | 4485acccbbf29b45dca796d5a621bba8e6c1d928 | 1b22f0ac046d37fdcbf7c2b1b476abd35eb162c5 | refs/heads/master | 2021-03-10T17:26:07.990424 | 2020-09-28T19:00:24 | 2020-09-28T19:00:24 | 246,470,324 | 1 | 0 | MIT | 2020-05-16T06:29:29 | 2020-03-11T03:59:48 | Jupyter Notebook | UTF-8 | Python | false | false | 7,143 | py | #!/usr/bin/env python
import pandas as pd
import numpy as np
import matplotlib
from matplotlib import pyplot as plt
import tqdm, sys, glob, datetime, os
import re
# in columns = [description project run clone gen wl_increment lam_0 ... lam38 free energy]
# out columns [run ns_RL ns_L wl_increment_RL wl_incr... | [
"vvoelz@gmail.com"
] | vvoelz@gmail.com |
ee0e4651b921eb5a380de36e12dbab85f7e75499 | 26dafce4bcedcc8ed5e1f2373ecf0ff9a2d696b5 | /11.07.2020 Snippets/2 functions.py | 252115868e1eaf525bb6d88421ed11c5870f18a7 | [] | no_license | skilldisk/Django-Webinar-July-2020 | 65d179c299772c5f5b9998f3a6a81ed63be89093 | 6064443dec9da601be627d676cc889aab46591d8 | refs/heads/master | 2022-11-13T11:46:59.285487 | 2020-07-12T10:21:39 | 2020-07-12T10:21:39 | 278,814,242 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | ############# FUNCTIONS or MODULES #############
# keyword def is used to define a function
# def function_name( input ):
# Arithematic and logic operations
# return output
# without input arguments and return statement
def printing():
print("printing function is called...")
# with input argumen... | [
"noreply@github.com"
] | noreply@github.com |
47e07a891b85048ad8ac4715d1d82df331a38286 | d87eb736f3c4b1adce44ad4c87e26e771863db1b | /src/prodctrlcore/io/jobfile.py | a69f8bc8bf2fffa3a42b8579e628659fba89216b | [
"BSD-3-Clause"
] | permissive | paddymills/prodctrlcore | 4bc0e98219fd973736829351400c49abc2d2f278 | 9a03d3e562ca0e60c5f7e87f7789f025207fa22d | refs/heads/master | 2022-11-08T17:40:09.435972 | 2020-06-19T15:36:24 | 2020-06-19T15:36:24 | 266,133,055 | 0 | 0 | BSD-3-Clause | 2020-06-04T18:57:30 | 2020-05-22T14:39:24 | Python | UTF-8 | Python | false | false | 5,150 | py |
from os import makedirs
from os.path import join, exists
from xlwings import Book, Sheet
from re import compile as regex
from . import HeaderParser, ParsedRow
JOBSHIP_RE = regex(
r"1?(?P<year>\d{2})(?P<id>\d{4})(?P<structure>[a-zA-Z]?)-?(?P<shipment>\d{0,2})")
class JobParser:
def __init__(self, job, sh... | [
"pmiller1389@gmail.com"
] | pmiller1389@gmail.com |
706c94c764280353805efea95a0a8c385c2881ba | bbea12c36c776054a6984e8f51b10fc5161b9e50 | /portfolio/urls.py | 394ff586c4e000ab790941cef73185ad78fb2eb1 | [] | no_license | mgrego03/My-portfolio-project | 19ee4e29cc7878079217e1640acd974a6303a71a | 98dffa365689c5e5635e63c195104824b36dea9f | refs/heads/master | 2023-02-23T11:47:42.702091 | 2021-01-29T01:09:00 | 2021-01-29T01:09:00 | 280,747,405 | 0 | 0 | null | 2020-11-01T20:14:15 | 2020-07-18T22:06:17 | Python | UTF-8 | Python | false | false | 524 | py |
from django.contrib import admin
from django.urls import path
from . import views
app_name = 'portfolio'
urlpatterns = [
path('', views.home , name = 'home') ,
# to add a new skill from front end
path('add/', views.create_item , name='create_item' ) ,
# to update the skills from the front end: ... | [
"mathewsgregoryny@gmail.com"
] | mathewsgregoryny@gmail.com |
32c7383ff65f299a4aebd1a4b97591f65d0a7f78 | 3761f91d9325f48dcb1b55ce94faea6426098d5c | /mysite/settings.py | 79f40cab4383dbe9bbf75231d68fabc0e0c8018b | [] | no_license | rachel5/django-blog | 338e0e9d4cd51cf9e35a44d600d661fedbb2d023 | bf740fcf80056f41d8d49e12c53cf40971e4602b | refs/heads/master | 2020-03-28T02:18:07.546607 | 2019-02-06T00:03:42 | 2019-02-06T00:03:42 | 147,561,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,241 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# ... | [
"hello@sewlastweek.com"
] | hello@sewlastweek.com |
7949c740eaa9b57dd83de1b6cea5fa7fc4c7407e | 6b6e43393863eaa792d04e01fec6358f35ffd797 | /renamepath.py | e7681ff5d6b2dc1d299a81d70f7aa312ec17371d | [] | no_license | VolkerH/deconvolution | 02c5883b084d5645ae119a36a4f6a43e30dac129 | 0ef0bd3975887506e05b1eb9b6a02538fe30f8c1 | refs/heads/master | 2020-04-21T22:27:19.031007 | 2018-10-25T15:56:53 | 2018-10-25T15:56:53 | 169,911,423 | 1 | 1 | null | 2019-02-09T20:40:54 | 2019-02-09T20:40:54 | null | UTF-8 | Python | false | false | 992 | py | import os
def filelist(thefolder):
count = 0
file_list = []
for filename in os.listdir(thefolder):
path = os.path.join(thefolder, filename)
if path[-4:] == '.tif':
count += 1
file_list.append(path)
#file_list.append(count)
return count, file_list
def rename... | [
"noreply@github.com"
] | noreply@github.com |
8cb7b5950ca553d80eaa6fa4938e1ce2c27a0b9b | 5e8403fdcc45fc746f5a245d43c94347bc4a460f | /Normalize in length/normalize.py | 9f8c1a5532ff642476625dd6e65df01425246021 | [] | no_license | bandiandras/disszertacio | 79ea8da4c3849b253bf984d8918490b8ee49fa34 | e6988f99cea4bf04ed9a52b4668373c27bcdbb13 | refs/heads/master | 2021-05-22T14:17:57.529509 | 2020-06-24T19:40:49 | 2020-06-24T19:40:49 | 252,959,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,089 | py | import sys
import os
import random
sys.path.append(os.path.abspath("Model/"))
from settings import *
from utils import *
from Model.point import Point
import numpy as np
from scipy import interpolate
import matplotlib.pyplot as plt
#returns a list of files from the directory given in the dirName parameter (files in n... | [
"andras_bandi1994@yahoo.com"
] | andras_bandi1994@yahoo.com |
5cd04361f26f5da04f4dd9f697d57ab51f7e0f1d | 66cab93c26cc252f412860778131b208c6f120be | /parts/newproject/webob/acceptparse.py | df3db6b411f45e2366c6215b630c553c1de21ec3 | [] | no_license | marcogarzini/Zodiac | 3332733f6ae8d64924557ff022f44c835aeac0a9 | 06e8ad0c709189dc65a26fb7d6c17a9ee2bc9112 | refs/heads/master | 2016-09-11T03:18:12.805299 | 2014-01-17T12:50:03 | 2014-01-17T12:50:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | /home/user1/newproject/eggs/WebOb-1.2.3-py2.7.egg/webob/acceptparse.py | [
"user1@user1-VirtualBox.(none)"
] | user1@user1-VirtualBox.(none) |
efa66284d47dc7d43341155eaa34d87506ce3814 | 982344011a248b0f514ffb8d0c87c13f2f2e113e | /day1/conv.py | a03b4d03b507ada57975e15de49aabf5b16b5d56 | [] | no_license | patrickjwolf/CS32_Architecture_GP | 7f6c68de92155b7b9b295f7d35413637cebce45a | 8704add1c6ed1f917451544e1573bed005eaa3ac | refs/heads/master | 2022-12-06T15:26:54.715887 | 2020-08-19T22:45:21 | 2020-08-19T22:45:21 | 288,225,480 | 0 | 0 | null | 2020-08-17T16:05:34 | 2020-08-17T16:05:33 | null | UTF-8 | Python | false | false | 2,567 | py | # In general, the `.format` method is considered more modern than the printf `%`
# operator.
# num = 123
# # Printing a value as decimal
# print(num) # 123
# print("%d" % num) # 123
# print("{:d}".format(num)) # 123
# print(f"{num:d}") # 123
# # Printing a value as... | [
"tomtarpeydev@gmail.com"
] | tomtarpeydev@gmail.com |
f2c5f5fd9c4eec50119315da9332ef6b7fdb4979 | d3872dc2f360511c624bdd9c7a1449db0d676ea7 | /base/migrations/0011_auto_20180110_1107.py | b6124f6136a0d1a6cc8b996aab31d64fc77b9c0b | [] | no_license | orzubalsky/cwcom | 159d4957f7708d8ca7062f160571c46597d34ea8 | 26dab43a14de90b16bb14b83f790087bbef136b5 | refs/heads/master | 2021-01-11T07:01:08.039528 | 2018-02-28T04:44:36 | 2018-02-28T04:44:36 | 72,321,539 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
('base', '0010_auto_20180107_1705'),
]
operations = [
migrations.Ad... | [
"orzubalsky@gmail.com"
] | orzubalsky@gmail.com |
fa2fe65858f598fdcd7e6b50df50dbb7a95f264b | 0e3e552bcfc8dbc28fb54538f727445ac8e6c882 | /model/transfer_model.py | 936c931ee5865755cbb28e8de8af3422614d4ca7 | [] | no_license | duanxy66/adversarial_multitask_learning | 54ddce777a6ae7ba94d44d4079a984fdc5adc7bf | 54a7bf4a4c4e034a7912615bca0f12eaf1f62228 | refs/heads/master | 2020-03-23T14:27:29.927886 | 2018-06-10T14:14:05 | 2018-06-10T14:14:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,392 | py | import tensorflow as tf
import sys
sys.path.append("..")
import yaml
from model.rnn_model import RNN
from model.mlp_model import MLP
with open("../config/config.yaml", "r") as f:
params = yaml.load(f)
class Transfer(object):
"""
transfer learning using shared model in adversarial network
"""
def... | [
"jingchunzhen@126.com"
] | jingchunzhen@126.com |
ec8d79446d63bff1bbe330925affa4fa8e252b4c | 2cc432f126955aff626e6849ff8d91979984fa1b | /src/web/socialnetwork/utils/get_image.py | d12effdfc7f234aba7842638986e885cbd6a36da | [
"MIT"
] | permissive | iamamarpal/fsnd-flask-social-network | 023c0f3073dd278a1c9783bf23c98acb95cf4740 | 3bcfdbd9f7ba17bc6e50eec1d52e5576aa956c33 | refs/heads/master | 2022-03-14T06:01:27.557352 | 2018-11-06T16:04:54 | 2018-11-06T16:04:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | from bs4 import BeautifulSoup
import urllib.request
import shutil
import requests
from urllib.parse import urljoin
import sys
import time
def make_soup(url):
req = urllib.request.Request(url, headers={'User-Agent' : "Magic Browser"})
html = urllib.request.urlopen(req)
return BeautifulSoup(html... | [
"noreply@github.com"
] | noreply@github.com |
c32bf7266de063e1e276f4b6ab28ed930165b860 | 9f7d4d76c7e66aa424a5f8723575dc489f1fd2ab | /2022/15/15.py | 7d6fdb456fc09a05011e86519edbfcdeac7af504 | [
"MIT"
] | permissive | kristianwiklund/AOC | df5a873287304816f25d91259c6e6c99c7a5f4bf | d9a668c406d2fd1b805d9b6a34cffa237a33c119 | refs/heads/master | 2023-01-12T09:01:11.012081 | 2023-01-02T19:12:29 | 2023-01-02T19:12:29 | 227,458,380 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,007 | py | import sys
sys.path.append("../..")
from utilities import *
import networkx as nx
from copy import deepcopy
from pprint import pprint
arr = readarray("input.txt")
row = 2000000
#row=10
beac=list()
sens=list()
for l in arr:
x=int(l[2].split("=")[1].strip(","))
y=int(l[3].split("=")[1].strip(":"))
s=comple... | [
"githubkristian@snabela.nl"
] | githubkristian@snabela.nl |
f0ca8de4a63d7c7c934cb1df113328a1725e58b2 | 7d133e2398a4f7592428996fe94c713002ece2d5 | /program85.py | 20fb4126ff351ad89ea6713a0a3d402a740bfefb | [] | no_license | SANJAY-NT/DSA-Problems | cfec8844ef07f63962199dc8dda79771ecf5852c | 3d7cef6bcc9d61071ce79be7300b66d4bff7c0b4 | refs/heads/main | 2023-07-06T19:56:05.874019 | 2021-08-18T16:23:18 | 2021-08-18T16:23:18 | 378,221,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | py | #User function Template for python3
class Solution:
def secFrequent(self, arr, n):
# code here
self.arr = arr
self.n = n
self.dic = { self.arr[0] : 1}
for i in range(self.n):
if i != 0:
if self.arr[i] in self.dic.keys():
... | [
"noreply@github.com"
] | noreply@github.com |
2b206bd77e2c71810ed891c15081bb40dd02a4af | c05357142b9f112d401a77f9610079be3500675d | /danceschool/core/urls.py | acc3ba46762b7690b07c61b675bf598fcdb0daac | [
"BSD-3-Clause"
] | permissive | NorthIsUp/django-danceschool | b3df9a9373c08e51fcaa88751e325b6423f36bac | 71661830e87e45a3df949b026f446c481c8e8415 | refs/heads/master | 2021-01-02T22:42:17.608615 | 2017-08-04T17:27:37 | 2017-08-04T17:27:37 | 99,373,397 | 1 | 0 | null | 2017-08-04T19:21:50 | 2017-08-04T19:21:50 | null | UTF-8 | Python | false | false | 2,997 | py | from django.conf.urls import url
from django.contrib import admin
from .feeds import EventFeed, json_event_feed
from .views import SubmissionRedirectView, InstructorStatsView, OtherInstructorStatsView, IndividualClassView, IndividualEventView, StaffDirectoryView, EmailConfirmationView, SendEmailView, SubstituteReporti... | [
"lee.c.tucker@gmail.com"
] | lee.c.tucker@gmail.com |
ed3c1d09f51b58821175cd66a4e37d6bd2aa4695 | 250b7c0c980a48d1ae3966fc2930871d957d3aca | /tests/test_db.py | 91c92a148bad9468dbc5f0805ec51adbcfa7dab5 | [] | no_license | xFelipe/video_owl | 648e76e87abc5d8fa2778ee75f5cc3d397c8bbba | f5cd4cd2e5bb2d14596769afbb119c568836e9c6 | refs/heads/master | 2023-02-19T08:03:02.337212 | 2021-01-23T20:08:40 | 2021-01-23T20:08:40 | 321,575,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | from os import path
def test_db_connection(database):
assert not path.exists(database.DB_PATH),\
"Connection to the database incorrectly recognized."
database.init_db()
assert path.exists(database.DB_PATH), \
"Connection to the database has not been established."
def test_video_table(datab... | [
"xfelipegd@gmail.com"
] | xfelipegd@gmail.com |
116fe7e79106c9067d5538031f9d357c7527af50 | 0751645042e3ac1a0aa020f8242ad93944028940 | /replaceBlackBG.py | 444716693671305c80050e147d92144f814c974e | [
"BSD-3-Clause"
] | permissive | kskmar/ReSort-IT | 811b14827adf5f7478f614de919ea206dcd1183e | b8ae37f1eea65c5c0c58ead97ffe15e1c4619004 | refs/heads/master | 2023-03-31T14:44:06.700297 | 2021-04-09T08:58:42 | 2021-04-09T08:58:42 | 285,340,166 | 11 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 18 16:39:49 2020
@author: anasa
"""
#importing modules
import matplotlib.pyplot as plt
import numpy as np
import cv2
img = cv2.imread(r'D:\gp_dataset\bottle1CL\3_bottles\3_0.png')
# image_copy = np.copy(img)
# plt.imshow(img)
# image_copy = cv2.cvtColor... | [
"noreply@github.com"
] | noreply@github.com |
b8780a74cdfeb4022df65e92c883437e00ae0e4d | 1525a94e2437015df79ee6a8dfd49cc0fb8e2843 | /sizing.py | 66ad74bddd1eb5fc16998eae0a3c2b519019b086 | [] | no_license | alpersanli/Image_Processing | b16ee295a4feb48e67382f435f2daf9355a68248 | 1e76538eb658d73ebcb29ff77872d179ffc4a97a | refs/heads/master | 2020-04-17T20:04:59.754090 | 2019-01-21T22:56:33 | 2019-01-21T22:56:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | import cv2
kamera=cv2.VideoCapture(0) #(0)pc kamerası,(1)usb kamera,('smile')yukledıgın video
kamera.set(cv2.CAP_PROP_FRAME_WIDTH,250) #kamera boyutlari
kamera.set(cv2.CAP_PROP_FRAME_HEIGHT,250)
while True: #while dogru oldugu muddetçe
ret, goruntu=kamera.read() #return demek
#########kamera set b... | [
"noreply@github.com"
] | noreply@github.com |
3c62b147291c14be369f9d73ced805f7f8773c2f | 5044413a31d50b8220c87ae02acc7b059c7bf5ec | /T2/KademliaLibrary/example/download.py | 4be810183d08324cbd67d47e8459bd7b3f0cb044 | [] | no_license | rjherrera/IIC2523 | 500540350d06a1d11866093ec8d5df984728875c | 756c4a3d9a59d72f66280333c8b48536c03ab592 | refs/heads/master | 2020-03-28T00:25:53.312660 | 2017-12-13T19:06:41 | 2017-12-13T19:06:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | from kademlia_iic2523.ipc import ipcSend
import requests
import socket
import sys
FILES_FOLDER = '/user/rjherrera/T2/files'
def download(url):
# try as we may recieve unexpected things. Also to use a friendly way of showing errors
try:
# use the requests library to try to download the file
r =... | [
"rjherrera@uc.cl"
] | rjherrera@uc.cl |
24ea380d441116f8c9bbb23346ae6b5d9d6155ce | 6656d7e426c85ff977a2619f6a52981456ada9fe | /7_Greedy/5.py | 3766b18d16e7facd5f260668f96765338fbdd051 | [
"MIT"
] | permissive | abphilip-codes/Hackerrank_Interview | 4f37e12f1ab47042db88947bb3a31aed6486b54d | b40981ef55d04fb14d81a6e1c9ade1878f59394d | refs/heads/master | 2023-08-02T22:00:37.298224 | 2021-10-02T11:59:08 | 2021-10-02T11:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | # https://www.hackerrank.com/challenges/reverse-shuffle-merge/problem
#!/bin/python3
import math
import os
import random
import re
import sys
from collections import defaultdict
#
# Complete the 'reverseShuffleMerge' function below.
#
# The function is expected to return a STRING.
# The function accepts STRING s as ... | [
"allenalvin333@gmail.com"
] | allenalvin333@gmail.com |
5e0c069364d5f7e087aaaa0e272776dfe7d7871b | 7ce762441a4a1dac889c023cabb185d2b34b5f52 | /Assignment5/OCR.py | 079ffd30fdbb017103f7cfa31315133a443c1f2e | [] | no_license | morteano/TDT4173 | 053f5a7d2cf7d3257edc18a9c88b653f85cd834a | d6f8b8bae42b95057124a98df1893b60b9f8ea0f | refs/heads/master | 2021-01-01T05:13:35.674492 | 2016-04-21T13:06:29 | 2016-04-21T13:06:29 | 56,311,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,026 | py | import scipy as sp
import numpy as np
import os
import matplotlib.pyplot as plt
import random
from sklearn import datasets, svm, metrics
import pickle
from skimage.restoration import denoise_tv_chambolle, denoise_bilateral
from skimage.filters import sobel
from skimage import feature, color
from sklearn.neighbors impor... | [
"morteano@stud.ntnu.no"
] | morteano@stud.ntnu.no |
5035210acca6b4c698cd6ccf81a2761a411a9eab | fa6b62db4ec199a012b66ab3093602953da6f04b | /auctions/migrations/0019_alter_listing_category.py | 4e7199dc8d88000535c9f4d3efdba4025f297336 | [] | no_license | alqor/commerce | 013a32ea311c98fb80501ab6dfb3b5aa4d7b94fd | ee0ea97449f38a7d0b49403e63a77b90da8e1165 | refs/heads/master | 2023-07-16T16:27:14.588062 | 2021-09-06T14:15:03 | 2021-09-06T14:15:03 | 400,778,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | # Generated by Django 3.2.3 on 2021-09-03 12:18
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('auctions', '0018_listing_win_by'),
]
operations = [
migrations.AlterField(
model_name='listing'... | [
"a.kylivnyk@gmail.com"
] | a.kylivnyk@gmail.com |
f71cf555586300ad24dcec2f51df97d3fd303c1f | b51fee6de4d9efe35ab624cdfceffc07e3c27f18 | /battlecode-manager/player_sandboxed.py | a594fef824d0313d779e929327e2472dc50b90f3 | [
"MIT"
] | permissive | darthdeus/battlecode-multi-agents | 44c6938dc8dd1bcbf90908db83f78d034b49fb2a | ded639acf813eed6b1f656e7f0ae3cb9c92e095a | refs/heads/master | 2021-03-22T03:26:57.276818 | 2018-03-08T10:53:55 | 2018-03-08T10:53:55 | 123,737,670 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,907 | py | import threading
from threading import Timer
from player_abstract import AbstractPlayer
import random
import socket
import server
def _stream_logs(container, stdout, stderr, line_action):
for line in container.logs(stdout=stdout, stderr=stderr, stream=True):
line_action(line)
class Sandboxe... | [
"darthdeus@gmail.com"
] | darthdeus@gmail.com |
60882d075746d75a8249155969a51033e5889b29 | 9af0546da92b19fc677e3470106be4e2f148f217 | /flaskiwsapp/snippets/exceptions/roleExceptions.py | 32cb44e820b965c5cb43054e6ee51805d2e5242e | [
"MIT"
] | permissive | rtorresve/EngineeringMidLevel | 2f0907270e461499c9741b9ae10085427093fcbe | a8f04991deca85cf615df72db12e082aaa543cfa | refs/heads/master | 2021-06-03T10:25:54.905980 | 2016-10-25T21:35:10 | 2016-10-25T21:35:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | '''
Created on Sep 22, 2016
@author: rtorres
'''
from flaskiwsapp.snippets.exceptions.baseExceptions import LogicalException
class RoleExistsException(LogicalException):
def __init__(self, argument=None):
super(RoleExistsException, self).__init__()
self.message = 'The role %s already exists' % a... | [
"rdtr.sis@gmail.com"
] | rdtr.sis@gmail.com |
d2c84ea4ee599a3dca31d420a60f2e17b98158a9 | fa2526ce1d65a2e58958a61c34cee1ba7cf73b94 | /setup.py | 958cccc8103c3d1f18213fd6d55c4f3cb9978257 | [
"ZPL-2.1"
] | permissive | Zojax/zojax.portlets.livesearch | c480a19bd57b8b348032e40203696e4c53c68347 | 95f117ce89e0dc1fbfefdbec7969170caa3a1caf | refs/heads/master | 2020-12-30T10:36:43.760852 | 2011-08-09T22:33:26 | 2011-08-09T22:33:26 | 2,035,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,552 | py | ##############################################################################
#
# Copyright (c) 2008 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SO... | [
"andrey.fedoseev@gmail.com"
] | andrey.fedoseev@gmail.com |
0110feb308ca1fb9314aaec5f10fd5fd44f12b18 | baf8ccd12b27d0882c75a9c3845a0679e831f618 | /25_cmc/manage.py | e871032c2b1bd42a3b774a017b749afb30f9ec0c | [
"MIT"
] | permissive | Tjorriemorrie/trading | c55d545a0a09e3fb92673696e95dd66b02858ab6 | aafa15a6c564bfa86948ab30e33d554172b38a3e | refs/heads/master | 2022-12-13T20:57:23.591343 | 2021-07-07T20:28:34 | 2021-07-07T20:28:34 | 28,739,306 | 2 | 2 | MIT | 2022-07-06T20:01:28 | 2015-01-03T08:55:17 | q | UTF-8 | Python | false | false | 659 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'cmc.settings')
try:
from django.core.management import execute_from_command_line
except ImportEr... | [
"jaco@Tests-MacBook-Pro-4.local"
] | jaco@Tests-MacBook-Pro-4.local |
416c1899c1f3f2a4d1cd517f88fd3304a53508d2 | 54b6615c32cf3eabf89a4bf56c477a3b16fc828e | /programming_languages/python/Generators/utube_tutorial/second.py | 3708b40c89bb8b7cb36fd8aa42a43f1adc777956 | [] | no_license | sky2107/Toolbox | 4758ba2350576512009de03c37f370f5e4be9857 | 74f9cbde72afa5ca5d9513b27f05c1cd8e222425 | refs/heads/master | 2020-04-21T01:27:43.783203 | 2019-03-28T16:55:18 | 2019-03-28T16:55:18 | 169,224,411 | 0 | 0 | null | 2019-02-06T08:35:25 | 2019-02-05T10:38:36 | null | UTF-8 | Python | false | false | 261 | py | from time import sleep
from random import randrange
def compute():
sleep(.1)
return randrange(10)
# print(compute())
def f():
rv = []
for _ in range(10):
rv.append(compute())
return rv
print(f())
print(f'f:{f()}') | [
"felixmorillasnavas@gmail.com"
] | felixmorillasnavas@gmail.com |
b97b94047419f4971b7307b9f85b2080e191cab0 | 33b50d002d20a8feac53b2b29771a573addc9f39 | /main.py | 352ef3c8818c3bffde7c9e5e380eb75bd8787c48 | [] | no_license | Divyansh-Kamboj/galaxy-shooter- | ee760da3d2bcf5da7285e1d78c54ea1687a109c5 | 2b96a418513d74f4b0e41f2df8e0dc3315c72dbf | refs/heads/main | 2023-04-04T04:47:02.260253 | 2021-04-20T10:33:13 | 2021-04-20T10:33:13 | 359,775,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,658 | py | import pygame
import os
pygame.font.init()
pygame.mixer.init()
WIDTH, HEIGHT = 900, 500
WIN = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("Galaxy shooter")
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
RED = (255, 0, 0)
YELLOW = (255, 255, 0)
BORDER = pygame.Rect(WIDTH//2 - 5, 0, 10... | [
"noreply@github.com"
] | noreply@github.com |
4ab641c1f8b558f6129631f36ef58c23b8db787e | 8fc70b90b9c9a7e28f251e291ecc09e7d827b933 | /Parasitic Fold Single Limb.py | 36565947b462b4f47d06a8ace506b9f69a10d7d0 | [] | no_license | lachlangrose/inverting_knowledge_JSG | f7be696b760cbcc370bfcc5e4e3de0747fef705c | 58a7e113ccb10b108920aefcce20870c63e0c898 | refs/heads/master | 2020-04-02T05:36:11.244744 | 2018-11-28T05:39:31 | 2018-11-28T05:39:31 | 154,091,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,137 | py |
# coding: utf-8
# In[1]:
import matplotlib.pylab as plt
import matplotlib as mpl
import numpy as np
from scipy.stats import norm
#fold = imp.load_source('fold', '/home/lgrose/bitbucket/ipython_notebooks/Bayesian/fold.py')
#variogram = imp.load_source('fold', '/home/lgrose/bitbucket/ipython_notebooks/Bayesian/vari... | [
"lachlan.grose@monash.edu"
] | lachlan.grose@monash.edu |
c84a63fc1262c26bef2b889abb5f306b3510a48b | 30b4e4ecb33320112fed5634f6ec4aa9dac8140e | /README.py | bf12b0fc09dc09d7b7d55c0874e7b86d23a22603 | [] | no_license | shantanuo/easystemmer | 17f741dc1a7d08986fd37b42916fd6bde97aad37 | b43758decd57abc4628347e01dbbff3f53376de5 | refs/heads/master | 2020-03-26T23:49:28.817504 | 2018-08-27T11:27:31 | 2018-08-27T11:27:31 | 145,570,004 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | # easystemmer
#Stemmer for Indian Names
from easystemmer import IndianNameStemmer
import pandas as pd
s = IndianNameStemmer()
#s.stem(['savithabai'])
df=pd.read_excel('my_file.xlsx')
df.columns=['wrong', 'correct']
df['updated']=df['wrong'].astype(str).apply(lambda x: x.split()).apply(s.stem)
df['updated1']=df['cor... | [
"noreply@github.com"
] | noreply@github.com |
5956c3718f21cd031cfca9d7885f4688f8381b3f | ae4b60b642042bfce925be7d282db5d21f50aa76 | /mundo2/exercicio041.py | d6bc53add82811435642f9998f7fb1b07c1ad256 | [
"MIT"
] | permissive | beatriznaimaite/Exercicios-Python-Curso-Em-Video | d72379e6ac9bf0665f5555357e56fb712ae87470 | e4213c2054a67d7948aa9023f2f0f33ab7e8eb96 | refs/heads/master | 2022-11-11T03:59:22.922251 | 2020-07-01T21:03:18 | 2020-07-01T21:03:18 | 267,382,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | """
A Confederação Nacional de Natação precisa de um programa que leia o ano de nascimento de um atleta e mostre sua categoria, de acordo com a idade:
- Até 9 anos: MIRIM
- Até 14 anos: INFANTIL
- Até 19 anos: JUNIOR
- Até 25 anos: SÊNIOR
- Acima: MASTER
"""
from datetime import date
ano_nasc = int(input('Digite o an... | [
"beatriznaimaite@gmail.com"
] | beatriznaimaite@gmail.com |
5be8330c7a2af0ba0d2b7752a2f74e9b0b078107 | f16e6cff9270ffece7f28473a46a49f76044eae1 | /data_and_proc/sp2genus.py | 4fcb8182b68b5087bea63b7412024f334e0a339a | [] | no_license | Klim314/pubcrawl | fe9e0a4ad0df35367a685856edb7983453fda345 | cd873d0741c6ed1a09867ce86077927afd7be450 | refs/heads/master | 2021-01-18T19:17:49.786829 | 2015-06-19T03:48:03 | 2015-06-19T03:48:03 | 35,801,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | #!/usr/bin/env python3
import sys
target = sys.argv[1]
output = sys.argv[2]
holder =set()
with open(target) as f:
for i in f:
splat = i.strip().split("\t")
holder.add((splat[0].split(' ')[0], splat[1].split(' ')[0]))
with open(output, 'w') as f:
for i in holder:
f.write(" ".join(i) + '\n')
| [
"klim314@gmail.com"
] | klim314@gmail.com |
5f7a5a96499aeb76150b8e99bea87f6aa67d7afb | 30f02414a6f797f55925ffb35c9c620bd7c726d5 | /laserchicken/feature_extractor/range_feature_extractor.py | 7d7a7d6ca66f0f8c8d26bf3ff3d25d7543e7cc93 | [
"Apache-2.0"
] | permissive | eEcoLiDAR/laserchicken | 20127c9eee27bf98c0e07e10ee8d9ab9dcc087d8 | f6c22841dcbd375639c7f7aecec70f2602b91ee4 | refs/heads/master | 2023-07-07T13:50:43.909704 | 2023-07-05T12:30:16 | 2023-07-05T12:30:16 | 95,649,056 | 28 | 10 | Apache-2.0 | 2023-07-05T12:14:14 | 2017-06-28T08:51:42 | Python | UTF-8 | Python | false | false | 1,277 | py | import numpy as np
from laserchicken.feature_extractor.base_feature_extractor import FeatureExtractor
from laserchicken.keys import point
class RangeFeatureExtractor(FeatureExtractor):
"""Calculates the max, min and range on the z axis."""
DEFAULT_MAX = float('NaN')
DEFAULT_MIN = float('NaN')
def _... | [
"c.meijer@esciencecenter.nl"
] | c.meijer@esciencecenter.nl |
626ef1a1961641711c3f61312880cea3994ab7ea | 8d55d3a52ed6dc8111801cea9c7c9d0a84be736b | /src/662.maximum-width-of-binary-tree.py | 236e7d52ce3fdc75ebc2866c5c0b37f29a9c687d | [] | no_license | mic0ud/Leetcode-py3 | 2a23270034ec470571e57c498830b93af813645f | 61fabda324338e907ce3514ae8931c013b8fe401 | refs/heads/master | 2022-12-26T11:52:31.666395 | 2020-09-27T19:27:10 | 2020-09-27T19:27:10 | 297,135,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,889 | py | #
# @lc app=leetcode id=662 lang=python3
#
# [662] Maximum Width of Binary Tree
#
# https://leetcode.com/problems/maximum-width-of-binary-tree/description/
#
# algorithms
# Medium (39.55%)
# Likes: 860
# Dislikes: 187
# Total Accepted: 45.6K
# Total Submissions: 115.4K
# Testcase Example: '[1,3,2,5,3,null,9]'
#
... | [
"ebizui@gmail.com"
] | ebizui@gmail.com |
81deeba10399a56a87e01fcfd869b6d4dd70f0d5 | 6b07e1c67d150a09c436ea480d46cc0f360f50a8 | /run.py | 8a8f3a61d9097348bf65fdbe56af86ca8de7bb57 | [] | no_license | masete/sendit-persistent | 3bc38efe1926aebc376675e4c8a3d7bdb3b82b86 | 3e8c72d85027e9b632252536867998586db67ec0 | refs/heads/develop | 2022-12-11T22:11:02.158363 | 2019-11-04T12:05:40 | 2019-11-04T12:05:40 | 157,970,377 | 0 | 1 | null | 2022-12-08T01:18:22 | 2018-11-17T09:37:52 | Python | UTF-8 | Python | false | false | 210 | py | from flasgger import Swagger
from api.__init__ import create_app
app = create_app()
if __name__ == '__main__':
Swagger(app)
app.run(debug=True)
"""
export FLASK_ENV=DEVELOPMENT
echo $FLASK_ENV
"""
| [
"nicholasmasete72@gmail.com"
] | nicholasmasete72@gmail.com |
74da8fcf18ff9a8150ba39ee90f91be05dea8255 | 0b70b9f582d2b010305ad1e5e4885f30435a5a74 | /GUEST/forms.py | ae9847e5b58e1badfbd1bde00f04d04ed4a557f7 | [] | no_license | SruthiSasidharan/DjangoProjects | 51fa60282b398f4ebf03383220ce046ae1e1beed | 6fccc3e1d571638949953ed9fc390068417ce713 | refs/heads/master | 2023-06-28T02:24:32.355568 | 2021-07-29T07:45:26 | 2021-07-29T07:45:26 | 370,647,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from Guest import forms
from .models import Review
from django.forms import ModelForm
class ReviewCreateForm(forms.ModelForm):
class Meta:
model=Review
fields=["review"]
| [
"you@example.com"
] | you@example.com |
59a36d90be34893265567174228a0d09d2ef132f | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/ml/azure-ai-ml/azure/ai/ml/_schema/compute/usage.py | 39e0151c3a84f06270af1fa3cdc4323d144b0afe | [
"LicenseRef-scancode-python-cwi",
"LGPL-2.1-or-later",
"PSF-2.0",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"Python-2.0",
"MPL-2.0",
"LicenseRef-scancode-other-copyleft",
"HPND",
"ODbL-1.0",
"GPL-3.0-only",
"Z... | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 1,289 | py | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
# pylint: disable=unused-argument,no-self-use
from marshmallow import fields
from marshmallow.decorators import post_load
from azure.ai.m... | [
"noreply@github.com"
] | noreply@github.com |
b1f6b3e0833073a28446c79f85f5d00ac7f2d6ad | 5e96b215ec21d5eb37582a32dfa829e7bae6964a | /objects/gameUI/NameDisplay.py | 0ab6e50770cc7b0725aea46410faf900a4593d8c | [
"MIT"
] | permissive | jpyankel/Teapot-Wars-2 | 0f2caefa13a6ab43b07909976287b58f9ba8422b | ca1ace05850d35a328aaf2ad3c39ca9c744aaa5b | refs/heads/master | 2022-03-21T11:32:51.833658 | 2019-08-27T23:19:16 | 2019-08-27T23:19:16 | 104,529,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | from panda3d.core import NodePath, TextNode
from objects.defaultConfig.Consts import *
class NameDisplay ():
"""
Floating name display above a creature.
"""
def __init__(self, originObj, offset, name):
self._root = NodePath('nameDisplay')
# Offset this text node (most likely... | [
"joedevelopermiester@gmail.com"
] | joedevelopermiester@gmail.com |
55d862c8cb7df31e12b57c616564e8df3ef6b751 | 5745e4b82941ba04ea4bf0f8aa934c51dcb1d03f | /prediction.py | 7fa71b28b96eb592c2c982d2f5ee28f0fe51890d | [] | no_license | luochuwei/sequence-to-sequence-baseline-lstm-gru | d6181bdd5df8bb73361bcc599f4e41281e0bf903 | 3f43cbefc87abac7947ba07d2c5ba717569bd07c | refs/heads/master | 2021-01-10T07:41:30.383415 | 2016-04-05T05:07:49 | 2016-04-05T05:07:49 | 55,468,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,809 | py | #-*- coding:utf-8 -*-
####################################################
#
# Author: Chuwei Luo
# Email: luochuwei@gmail.com
# Date: 21/02/2016
# Usage: new Main (in case of the out of memory)
#
####################################################
import time
import gc
import sys
import numpy as np
impor... | [
"luochuwei@gmail.com"
] | luochuwei@gmail.com |
cde97b07253a5e111f5f1541be21e19cdf088a32 | 803dc5ebe4f698f8ec5e92b7f393f76ed1739497 | /archive/views.py | ebf06bbd04922eac68070b8df035136306716de7 | [] | no_license | fr4ncad/website1 | 9c7c9776619ad4b4bafe0559a654a6e005400161 | 802285a86c653bd3c75cc6836e7af4cce8c86945 | refs/heads/master | 2023-04-18T11:51:42.916531 | 2021-04-26T19:29:10 | 2021-04-26T19:29:10 | 361,871,128 | 0 | 0 | null | 2021-04-26T19:32:38 | 2021-04-26T19:32:37 | null | UTF-8 | Python | false | false | 481 | py | from django.shortcuts import render
from .models import user
cu = ''
def signup(request):
context = {'felhasznalok':user.objects.all()}
if request.method == 'POST':
if user.form(request.POST):
cu = request.POST['name']
print(cu)
return render(request, 'archives.html... | [
"pribek.barnabas.17f@szlgbp.hu"
] | pribek.barnabas.17f@szlgbp.hu |
0f03d21e8cae36971692766eb7b78a6313b7cb02 | e2a6860753e7762c1be9b0417f473e8fdf135539 | /books.py | 7725136ad8bbc7b357bbe8276707460c12a5f3ce | [] | no_license | razamob/books_catalogue | 868a65d210aeca3596cd68dc8a8cb20832eb7fba | dba7b42529510fcfc041cca34fda2528bff700a7 | refs/heads/master | 2020-04-22T02:49:58.700112 | 2019-02-11T03:58:08 | 2019-02-11T03:58:08 | 170,064,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,043 | py | """
Program that stores the following book information:
Title
Author
Year
ISBN
User can:
View all records
Search an entry
Add entry
Update entry
Delete
Close
"""
import backend
from tkinter import *
import sys
sys.path.append("C:/Users/Mobeen/Desktop/PythonBootcamp/book_catalogue/book_catalogue")
def get_selected_ro... | [
"razamob@sheridancollege.ca"
] | razamob@sheridancollege.ca |
6700f165faf6659309c518dc3c87dec1653b0d0e | 1047999f13e2f1cbc51c605a5cbeead8cc3ef901 | /db_web/sp/tests.py | 01b4b5e910edcec512d4fc5fd3b3704578151861 | [] | no_license | ichoukou/db_web | ff25243309fc38b31eebf6b9565a7b5e73d24bab | b5a935366c8b6e8cc2539e583e41f0bce2e83c10 | refs/heads/master | 2020-05-20T23:41:38.333132 | 2018-09-11T01:01:59 | 2018-09-11T01:01:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | from django.test import TestCase
# Create your tests here.
sr='[1,2,3,4]'
str_lst=list(sr)
print(str_lst,type(str_lst)) | [
"2361253285@qq.com"
] | 2361253285@qq.com |
bed1f026290d30ab652af5f006794bd8fbc9f765 | c71af56951d1c661a5819db72da1caccd9130df2 | /python/utils/ad_tests_mover.py | 589995b4d3a1d5c721e5c9a0815c477fcb302fc7 | [] | no_license | adrianpoplesanu/personal-work | 2940a0dc4e4e27e0cc467875bae3fdea27dd0d31 | adc289ecb72c1c6f98582f3ea9ad4bf2e8e08d29 | refs/heads/master | 2023-08-23T06:56:49.363519 | 2023-08-21T17:20:51 | 2023-08-21T17:20:51 | 109,451,981 | 0 | 1 | null | 2022-10-07T04:53:24 | 2017-11-03T23:36:21 | Python | UTF-8 | Python | false | false | 457 | py | limit = 95
def format_2digits(i):
if i < 10:
return "test0" + str(i)
else:
return "test" + str(i)
def format_3digits(i):
if i < 10:
return "test00" + str(i)
elif i < 100:
return "test0" + str(i)
else:
return "test" + str(i)
if __name__ == '__main__':
fo... | [
"adrian.poplesanu@yahoo.com"
] | adrian.poplesanu@yahoo.com |
6f0530d8d6322e467caa307fc3b34d1f649afaad | c877ed13d82e86739d8eaeb0ce98a552e1349e18 | /video_reading_benchmarks/ffmpeg_python/test.py | 625863116bba0b1e0d728d7b4a26032b9c3e21f9 | [
"MIT"
] | permissive | qoo/benchmarking_video_reading_python-1 | cd9b98842c9f2749945bb8bd335f27860f5e528d | 6447f0a434fbde1e21781e1150b6f41062737759 | refs/heads/main | 2023-08-05T00:38:11.722645 | 2021-09-23T15:13:50 | 2021-09-23T15:13:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | import ffmpeg
import numpy as np
class FFMPEGStream():
def __init__(self, videopath):
self.fn = videopath
self.start = 0
probe = ffmpeg.probe(videopath)
video_info = next(s for s in probe['streams'] if s['codec_type'] == 'video')
self.width = int(video_info['width'])
... | [
"benjamin@sc0ville.com"
] | benjamin@sc0ville.com |
406c542a05066e4dc566634fcbc5153708007e1d | 192e4427f5b504e46abf99cd2439ef2d90227d10 | /Dynamic_datas/05_11_1depot_vary_robots_arena/data1/boxplot_overall_foraging_rate.py | 243a79b948ca8f52dd7865f9a9c7465d2e0248fb | [] | no_license | lukey11/Scale-invariant-MPFA-1 | 7371c9f906c986067e0e317f9956803500ddb1db | 79657fdf64f1ebf8be8727b136f8efacb7e4d516 | refs/heads/master | 2022-11-30T04:47:06.788351 | 2020-08-12T19:09:48 | 2020-08-12T19:09:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,709 | py | import pdb
import numpy as np
import matplotlib.pyplot as plt
from pylab import *
from scipy import stats
def get_data_from_file(filename):
''' read data from file into a list'''
f = open(filename)
filecontents = f.readlines()
table = [line.strip('\n') for line in filecontents]
f.close()
return... | [
"lqcobra@hotmail.com"
] | lqcobra@hotmail.com |
d4c64b21bc94ae2e3d505aec4b92d73ec7965714 | 33260cfbe29a0538ffbf7fef505c8e8634ee35c4 | /iterations/covid_sim_pt0_example.py | 48563125f0f386cd6e43e4ed2a4c4547a68facca | [] | no_license | darren-huang/covidturtlesim | e4788ce51d39da55b9310367bd84c4687253d929 | c256f2bd9c1522842a45a87ba46069cfb2b40b79 | refs/heads/master | 2022-11-21T09:06:46.076614 | 2020-07-24T20:35:01 | 2020-07-24T20:35:01 | 278,490,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | import turtle
import random
import math
#screen setup
dim = 1000
border = 50
xmax, ymax = dim, dim
s = turtle.Screen()
s.screensize((xmax + border) * 2 , (ymax + border) * 2, "white")
s.setworldcoordinates(-xmax-border, -ymax-border, xmax+border, ymax+border)
s.tracer(0)
def initTurt(x=None, y=None, angle=None, col... | [
"darren.y.huang@gmail.com"
] | darren.y.huang@gmail.com |
42a99e3896ebb16802d1326d1cc8f4018af946da | fd11f0c2860de7be249e7b0e65a06869f7e709d7 | /capsul/pipeline/test/fix_test_temporary.py | 2903ee6aedf68465a0df7a3d6ecf9331cadc579b | [
"LicenseRef-scancode-cecill-b-en"
] | permissive | sapetnioc/capsul | 7f85fd486abcf966e7d2f6c6602a26a8ef67ab95 | 2eacf67b5565bdd4973c810c252145f0fe8f8198 | refs/heads/master | 2021-01-18T08:29:53.638033 | 2019-11-04T15:34:51 | 2020-01-09T12:14:02 | 30,696,178 | 0 | 1 | null | 2018-08-03T07:41:16 | 2015-02-12T09:51:22 | Python | UTF-8 | Python | false | false | 7,910 | py | from __future__ import print_function
import unittest
import os
import sys
import tempfile
from traits.api import File, List, Int, Undefined
from capsul.api import Process
from capsul.api import Pipeline, PipelineNode
from capsul.pipeline import pipeline_workflow
from capsul.study_config.study_config import StudyConfi... | [
"denis.riviere.gm@gmail.com"
] | denis.riviere.gm@gmail.com |
f33d9c255ed85d3e669af672402e83aef91fabc7 | 1ddcc923242f28f0ff86546e37928f99221ccc35 | /Linear_lesion_Code/UNet/dataset/Linear_lesion.py | 4400d61cfcf2bdcdb291e719e62dc6cd7ba51132 | [
"MIT"
] | permissive | FENGShuanglang/Pytorch_Medical_Segmention_Template | 20c9c74c9bd25c531beca72fc11765f06f9a3925 | f24d1875a1d832b9e8f5b16546cce1300cbf76b1 | refs/heads/master | 2020-05-27T13:44:03.783030 | 2019-11-04T10:46:38 | 2019-11-04T10:46:38 | 188,644,290 | 119 | 32 | null | null | null | null | UTF-8 | Python | false | false | 4,184 | py | import torch
import glob
import os
from torchvision import transforms
from torchvision.transforms import functional as F
#import cv2
from PIL import Image
# import pandas as pd
import numpy as np
from imgaug import augmenters as iaa
import imgaug as ia
#from utils import get_label_info, one_hot_it
import random
def au... | [
"2470697802.com"
] | 2470697802.com |
659b757cd193aa4340f4f55acca9e23fda71c032 | 4c3be788c244ebcee4aeee6472ca35f67930da9d | /atm.py | d6c26295f9ee9fff842e342b77655e6d02f5b43a | [] | no_license | kartava/CheckIO-Solutions | c562d3a4052558ba1285a8a33dc2d46c4a9238c5 | 217c96ade890fc55e282ca50c4442bc986fd512b | refs/heads/master | 2021-01-19T20:30:29.228555 | 2013-10-16T19:13:59 | 2013-10-16T19:13:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | #Your optional code here
#You can import some modules or create additional functions
def checkio(balance, withdrawal):
#Your code here
#It's main function. Don't remove this function
#It's using for auto-testing and must return a result for check.
for i in withdrawal:
if i%5==0 and balan... | [
"Pritam.rakshi@gmail.com"
] | Pritam.rakshi@gmail.com |
549932aa539333a091f31dc81f22a937b394e990 | 62bf350adedcb1d04a97ca5e1f576e1f73493c53 | /nerodia/tag_map.py | 33d536cc6e637a42fc23f84dd48bd2271b1f0be7 | [
"MIT"
] | permissive | mark0203/nerodia | 57ca4bdf36ee6d84b46fb177b6e385f6c82c164d | 2631c210fbaa0a7b5d598016e11ad7c7af083237 | refs/heads/master | 2020-05-24T00:44:25.189039 | 2019-03-10T00:41:51 | 2019-03-10T00:43:50 | 187,021,782 | 0 | 0 | MIT | 2019-05-16T19:46:54 | 2019-05-16T12:17:40 | Python | UTF-8 | Python | false | false | 14,862 | py | from nerodia import tag_to_class
from .elements.area import Area
from .elements.button import Button
from .elements.d_list import DList
from .elements.form import Form
from .elements.html_elements import HTMLElement, Audio, Base, Quote, Body, BR, Canvas, \
TableCaption, TableCol, Data, DataList, Mod, Details, Dialo... | [
"lucast1533@gmail.com"
] | lucast1533@gmail.com |
094a5139fe0be8d0243fab9e3f6e4eec80de9499 | 49681d14cf510d4c2e02b9f6482d412c30d21d65 | /ex080.py | eb86477cf3f193b432bf90a2dade01e87e939bce | [] | no_license | danilocecci/CEV-Python3 | 9ed1658c34e6d8750e74f97e7c15a4eae095487f | 8640e5bea038c791c8bc4d33f955043b2c5af2f3 | refs/heads/main | 2023-04-01T13:22:32.637721 | 2021-04-09T18:22:47 | 2021-04-09T18:22:47 | 332,568,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | num = list()
for c in range(0,5):
handle_num = int(input('Digite um número inteiro: '))
if c == 0 or handle_num > num[-1]:
num.append(handle_num)
else:
count = 0
while count < len(num):
if handle_num <= num[count]:
num.insert(count, handle_num)
... | [
"danilocecci@gmail.com"
] | danilocecci@gmail.com |
59d7415ace232c9d22befd4334d049d42f6834d4 | 225b525e9c47965da3bf3bf109c058aae7e2222d | /frames.py | 9117c18028045af352a2dee44702583451e520db | [] | no_license | vincseize/Agisoft-1 | 7a0ea31ce35bee0f04c80a804f432ff8113898a5 | 21abcb0f46c5a38261bbc7c7ccf048237d8a877d | refs/heads/main | 2023-01-13T12:24:09.451391 | 2020-11-16T03:57:06 | 2020-11-16T03:57:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | import argparse
import FFMPEGframes
f = argparse.ArgumentParser()
f.add_argument("-i", "--input", required=True)
f.add_argument("-f", "--fps", required=True)
args = vars(f.parse_args())
input = args["input"]
fps = args["fps"]
f = FFMPEGframes.FFMPEGframes("data/images/")
f.extract_frames(input, fps) | [
"mokakoba@Momokas-MacBook-Pro.local"
] | mokakoba@Momokas-MacBook-Pro.local |
eaef333c1ff76d246809b75faa07b48481e69749 | 5b3f9cac85d27c91160cfc1fb10bbea85afa4074 | /speech_recognition/train_model_run.py | ebfae3111e49b1ecb22ad69090a8773878a78c21 | [
"MIT"
] | permissive | a-n-rose/workshops | 4d57d747820912914f593ae3ee0e97281df02584 | e9c265e0d3bc3ca5f7faebdc0cc01c0d7c76a216 | refs/heads/master | 2023-01-13T15:55:37.831275 | 2021-08-27T12:50:48 | 2021-08-27T12:50:48 | 165,374,546 | 0 | 0 | MIT | 2022-12-26T20:50:49 | 2019-01-12T10:22:13 | Jupyter Notebook | UTF-8 | Python | false | false | 9,601 | py |
'''
Script outline
1) load data
expects title of table to contain:
- 'mfcc' or fbank
- the number of features
- optionaly: 'pitch' or 'delta' if the table has those features
2) prep data --> zeropad, encode categorical data, dimensionality
3) train model
4) save model
'''
import time
import os
from sqlite3 im... | [
"rose.aislyn.noelle@gmail.com"
] | rose.aislyn.noelle@gmail.com |
6bc671f51e41bb7b90ffcb308d5de95fa72c26f5 | 6bd5ed987ba617b9298ed8756fba541f16aaf85a | /control.py | 4f33db7231d12427cc1159cdc1697cdd3d766286 | [] | no_license | vuvandinh2000/Makerthon19_Mori | 3e28e1617f5383521393bce447e6bdf17fb5b78d | ecb6b6b0aa3ff0d6dc1f95e56362db5dc47858ca | refs/heads/master | 2023-03-02T16:43:23.979924 | 2021-02-14T15:26:02 | 2021-02-14T15:26:02 | 283,564,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,482 | py | import cv2
#import pyttsx3
import time
import playsound
import serial
#robot_mouth = pyttsx3.init()
eye_cascPath = r'..\Makerthon_Mori\haarcascade_eye_tree_eyeglasses.xml' #eye detect model
face_cascPath = r'..\Makerthon_Mori\haarcascade_frontalface_alt.xml' #face detect model
faceCascade = cv2.CascadeClass... | [
"noreply@github.com"
] | noreply@github.com |
6a5dc3ab92b3e8cc6285871b4f67e45b5e484fb2 | c209d46a08347183931651dddef72197755749dd | /pyobjc-framework-Intents/PyObjCTest/test_instartaudiocallintentresponse.py | d5d4cd4556f3591ba4dc66bdcecb289a3932af80 | [] | no_license | jackrobison/pyobjc | ecd33914a664a381571c8860a54db5eaa7bf726b | f801e249678f267bd490e8cde4f039e3151d794d | refs/heads/master | 2021-01-11T05:35:48.444594 | 2016-10-20T20:36:25 | 2016-10-20T20:36:25 | 71,502,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | import sys
from PyObjCTools.TestSupport import *
if sys.maxsize > 2 ** 32:
import Intents
class TestINStartAudioCallIntentResponse (TestCase):
@min_os_level('10.12')
def testConstants(self):
self.assertEqual(Intents.INStartAudioCallIntentResponseCodeUnspecified, 0)
self... | [
"jack@lbry.io"
] | jack@lbry.io |
df7a3b20cb9bf0b3468a2d59ab29d0d10bec732f | 4b5550644379b94cb808c696be45eeed27c55444 | /blog/urls.py | 965ffbb0e1d44b6b37ced79eaaafa53b03352a98 | [] | no_license | jovanfoster/django_blog | 44009536fe49e91ee5e37a82c9ab7ee27d673907 | cadf42304c38b02b0fd06c83ef39db35ce78a8ed | refs/heads/master | 2022-12-09T17:32:03.856249 | 2020-09-17T22:22:02 | 2020-09-17T22:22:02 | 290,457,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | """blog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"jovanfoster9@gmail.com"
] | jovanfoster9@gmail.com |
04dc23f98eeb652b65e913bb594e023fbe573c31 | ce0f8956c4c308c67bd700d31fe8d5a17b16ac08 | /Python3/src/14 Testing/TDD/point.py | 5f5392393d0de4173dee22fb7258d9404262882e | [] | no_license | seddon-software/python3 | 795ae8d22a172eea074b71d6cd49d79e388d8cc6 | d5e6db1509a25c1a3040d5ae82d757539a2ff730 | refs/heads/master | 2021-07-10T15:48:31.893757 | 2020-07-16T20:29:22 | 2020-07-16T20:29:22 | 175,872,757 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | class Point:
def __init__(self, x0, y0, name):
self.x = x0
self.y = y0
self.name = name
def moveBy(self, dx, dy):
self.x += dx
self.y += dy
def display(self):
print(f"Point {self.name} is at [{self.x},{self.y}]")
| [
"seddon-software@keme.co.uk"
] | seddon-software@keme.co.uk |
8b4b99aeaef113c1a559e09a87f58f4b7b14e5fe | a6e09296f295550c91188d4bd5ce8cd4a6818996 | /Week_03/347.top-k-frequent-elements.py | 7fa839c8bade2e9d01ba5e6050201eb785bbb16b | [] | no_license | LuciusK/algorithm011-class02 | f95a6dc60cb7f3c15ee080972543f24a98785c6c | 85e49a3da24a090359fff76874a5ff0a496b9fc6 | refs/heads/master | 2022-12-04T11:46:03.041515 | 2020-08-23T11:43:35 | 2020-08-23T11:43:35 | 273,902,864 | 0 | 0 | null | 2020-06-21T12:47:59 | 2020-06-21T12:47:59 | null | UTF-8 | Python | false | false | 1,308 | py | #
# @lc app=leetcode id=347 lang=python3
#
# [347] Top K Frequent Elements
#
# @lc code=start
import collections
import heapq
class Solution:
def topKFrequent(self, nums: List[int], k: int) -> List[int]:
count = collections.Counter(nums)
return heapq.nlargest(k, count.keys(), key = count.get)
... | [
"Luciusprivate@163.com"
] | Luciusprivate@163.com |
648e00634072dc981b850784e6e6d4204da6a57a | 9a2339cb41218abd4f59abc935df74947b71b451 | /fahrenheit_calculator/migrations/0003_auto_20200118_2221.py | f159266f984d79b7b80d8b8c06b9a3bced024a81 | [] | no_license | abhijithofficial/calculator | e68d36966cb49327b2730c8e57d1c5ec6eb50735 | 3a525edc01307b692bde1a1c62092126c9f33126 | refs/heads/master | 2021-06-30T14:09:47.508511 | 2020-01-18T17:05:36 | 2020-01-18T17:05:36 | 234,768,369 | 0 | 0 | null | 2021-06-10T22:33:11 | 2020-01-18T17:08:50 | Python | UTF-8 | Python | false | false | 699 | py | # Generated by Django 2.1 on 2020-01-18 16:51
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('fahrenheit_calculator', '0002_auto_20200118_2143'),
]
operations = [
migrations.RenameField(
mode... | [
"alwayzabhijith@gmail.com"
] | alwayzabhijith@gmail.com |
690d75c1ec333d9d9aa5fbd91d93e689e0bf4638 | 72547a6e9e5741926a77b96ea845ef58a09228a5 | /funnel/templates/dev/base/base__/cron/topvehicle.py | 31d0475b14f16a19c2bf24c33b02ad624af42881 | [] | no_license | hamik112/dealerfunnel | 00bf1611a8c0938221ca1a29ef5e4ecb747554b4 | 563ae0517da427d82c46eb6cddd096c139b248f9 | refs/heads/master | 2021-06-08T03:29:50.843306 | 2016-08-09T06:31:08 | 2016-08-09T06:31:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | import MySQLdb
import math
from geocode import geocode
from datetime import datetime
import hashlib
import time
from common import *
class topvehicle:
def __init__(self,db,cursor,data):
self.db = db
self.cursor = cursor
self.data = data
def process(self):
... | [
"bd@gmail.com"
] | bd@gmail.com |
895a00118a48a46da43842ed361ef90b4bf75bc7 | f023692f73992354a0b7823d9c49ae730c95ab52 | /AtCoderRegularContest/109/B.py | e8f63dd4b86156a7a7784479c9988ed5e778177a | [] | no_license | corutopi/AtCorder_python | a959e733f9a3549fab7162023e414ac2c99c4abe | a2c78cc647076071549e354c398155a65d5e331a | refs/heads/master | 2023-08-31T09:40:35.929155 | 2023-08-20T06:19:35 | 2023-08-20T06:19:35 | 197,030,129 | 1 | 0 | null | 2022-06-22T04:06:28 | 2019-07-15T15:57:34 | Python | UTF-8 | Python | false | false | 694 | py | # import sys
# sys.setrecursionlimit(10 ** 6)
# import bisect
# from collections import deque
def binary_search(ok, ng, solve):
"""2分探索"""
while abs(ok - ng) > 1:
mid = (ok + ng) // 2
if solve(mid):
ok = mid
else:
ng = mid
return ok
# from decorator import... | [
"39874652+corutopi@users.noreply.github.com"
] | 39874652+corutopi@users.noreply.github.com |
98070862463bd7d5867b2668312f3ed75b309d31 | c07f8e05feedda740b5f1727f735ea9913d37e6a | /Lista.py | f538ad4486c18170248daeddddacfd12b6c1bd56 | [] | no_license | tpwrochna/alx | 8c5fdb1259a911973d73f108203598b94adc6b8b | f5ec59913ea32935df4fe9576718251c92ff8116 | refs/heads/master | 2020-03-22T15:42:09.836027 | 2018-07-09T10:47:40 | 2018-07-09T10:47:40 | 140,270,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | lista = [10, 20, 50, 100, 200] # deklaracja listy
list() # utworzenie pustej listy za pomocą konstruktora
lista1 = [] # utworzenie pusatej listy za pomocą operatora Dostępu
print(len(lista)) # wypisz liczbę elementów Listy
if 10 in lista: # Sprawdzenie czy "10" znajduje się w lista.
print("True")
else:
print... | [
"tpwrochna@gmail.com"
] | tpwrochna@gmail.com |
5496b965a23684e98132011882e06fb5332ec2ea | 56c5f2fde5c929ac4304c0c318b13f9fd1ddacec | /goperation/manager/filters/config.py | 71519708ecea6990013f0f4fc785a566a16b3908 | [] | no_license | soulhez/Goperation | 5e7b9b67910deeabe12b46a05fcfc82dc1d3d723 | 64b2651229504f24e9c854b9e30da58cc7741176 | refs/heads/master | 2022-03-08T06:35:19.979125 | 2019-11-11T08:49:20 | 2019-11-11T08:49:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,068 | py | from simpleutil.config import cfg
from simpleutil.config import types
CONF = cfg.CONF
authfilter_opts = [
cfg.ListOpt('allowed_trusted_ip',
item_type=types.IPAddress(version=4),
default=[],
help='Allowed ipaddress without token, 127.0.0.1 and local ip is allowed'),
... | [
"lolizeppelin@gmail.com"
] | lolizeppelin@gmail.com |
ae269fbeb63c445ff3f0b9c7c9b142899a832f1f | f506dc8837e55dc1d8c023360d3395c1d24833e8 | /prepare-dataset.py | 0b3821e4fe3f99018e9f87a64387bf438986a1dc | [
"MIT"
] | permissive | hommmm/ParallelTTS | 0f82ed29cdad0441ce491987b72ef17027b48359 | d0e967d6d471bc901c85181a3b734d4df445dd08 | refs/heads/main | 2023-04-24T05:34:10.327568 | 2021-04-15T06:37:29 | 2021-04-15T06:37:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,446 | py | #!/usr/bin/env python
"""Download and preprocess datasets. Supported datasets are:
* English female: LJSpeech
* Mandarin female: BBSpeech (BIAOBEI)
* Tibetan female: TBSpeech (Non-public)
* Mongolian male: MBSpeech (Mongolian Bible)
* Korean female: KSSpeech (Kaggle Korean Single Speech)
* Cantonese male: H... | [
"atomicoo95@gmail.com"
] | atomicoo95@gmail.com |
34b99d14bd59ef09e54ece755a077810ae85cd6e | 30dd17ec43e4ce2cae87b1186d3b35736e2bab20 | /cntrlscripts/full_list.py | 9866dadb6270bac5f375cf9f7e9fb20bc1e9a463 | [] | no_license | LukeMurphy/RPI | de2329fa82a36fac953d832fbb9a77ea9eae75d5 | 78a6b0d34d2b3b65f9dd7a502f60d500c0c11b80 | refs/heads/py3.6 | 2023-08-30T22:57:33.303969 | 2021-10-15T19:01:38 | 2021-10-15T19:01:38 | 45,502,537 | 3 | 0 | null | 2020-03-31T13:11:08 | 2015-11-03T23:27:06 | Python | UTF-8 | Python | false | false | 6,458 | py | """Summary
Attributes:
actionDict1 (TYPE): Description
actionDict2 (TYPE): Description
commadStringMultiPyth (str): Description
commadStringProc (str): Description
commadStringPyth (str): Description
JavaAppRunning (str): Description
Lb1 (TYPE): Description
leftBtnPlace (int): Descripti... | [
"web@lukelab.com"
] | web@lukelab.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.