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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d7431a7ce7cbe3c274646a0dd17ccb1d3c225d2a | 85dd7b2c16d8628e616da9f50c88d4e72d61bddf | /bikeshare.py | 0d02678c84341d07a2e44df279750999fe199a80 | [] | no_license | mathabelam/mm_git | d3515b885d1c7f36c8a0fd8bd686e64f6614bfb3 | b848f6b23c8c4b8ab43410f1abeecb231dd1d765 | refs/heads/master | 2023-01-20T17:49:23.256972 | 2020-11-19T19:58:30 | 2020-11-19T19:58:30 | 314,255,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,821 | py | import time
from datetime import datetime as dt
import pandas as pd
#import numpy as np
import statistics as st
CITY_DATA = { 'chicago': 'chicago.csv',
'new york city': 'new_york_city.csv',
'washington': 'washington.csv' }
#Creating my own period dictionaries to simplify user input
month... | [
"mthandeni.mathabela.m@gmail.com"
] | mthandeni.mathabela.m@gmail.com |
3036333418409da276be6bf8833f13c832d4d65f | b09da8853a01164153499b949e5737cbf802f1fd | /exception/mydict.py | a17edd0b9f5a86a7f06f4e0199ca803cb6efab92 | [] | no_license | SHPStudio/LearnPython | e060d91f161b4a4359fae8bd56576ee99dc9a4e8 | 57cdfb68d2fb782e0947d0f93b99b55231043e15 | refs/heads/master | 2021-09-03T15:52:19.289533 | 2017-11-22T11:23:04 | 2017-11-22T11:23:04 | 108,791,407 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | # 测试源
# 文档测试
# 文档测试指的是可以自动执行注释中的代码 把输入和期望输出都写出来 这样就可以告诉调用者这个方法的作用和意思
# 并且python中的doctest模块直接会提取注释中的代码自动执行
class Dict(dict):
'''
Simple dict but also support access as x.y style.
>>> d1 = Dict()
>>> d1['x'] = 100
>>> d1.x
100
>>> d1.y = 200
>>> d1['y']
200
>>> d2 = Dict(a=1, b=2,... | [
"sunhaipeng@jd.com"
] | sunhaipeng@jd.com |
6283e6a531a88b425e6f22ea524fc7e14e3a3a9e | 843476f53d66ddab9674b5430d78b9a88f63d3a6 | /292 Nim Game.py | ec1b83f132ad3b94ac7bac20f5fa74d6d5fea427 | [] | no_license | YuduDu/leetcode-solution | 09c9c48fcb53efafcfa849eb05160700d2588f7b | 248fe5529f5d753cf3c211b1202d4b06331f275d | refs/heads/master | 2021-01-17T17:52:21.553364 | 2016-07-01T04:27:23 | 2016-07-01T04:27:23 | 56,625,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | class Solution(object):
def canWinNim(self, n):
"""
:type n: int
:rtype: bool
"""
return (n%4!=0) | [
"dyd12315@163.com"
] | dyd12315@163.com |
ed616f9530056450b9183af5f4155dfc36ad4108 | d79e5abfc7c05c7c227fe30d69285e48202f8120 | /pythia-algorithm/analysis/clustering/online.py | e4357c926b1a32594260e0facef2aaff3e142379 | [] | no_license | giorgosera/pythia-hackathon | 5ba94890c8852f9f53ff9753a853b0ac091b1fea | c8b4c7895c3692acdc0de12004d7bcc24580d977 | refs/heads/master | 2021-01-22T07:13:27.929016 | 2012-03-25T18:12:15 | 2012-03-25T18:12:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,491 | py | '''
Created on 2 Mar 2012
@author: george
'''
import heapq, operator, scipy, nltk, numpy
import Orange#!@UnresolvedImport
from analysis.clustering.abstract import AbstractClusterer
from analysis.clustering.structures import kernel_dist
from tools.orange_utils import construct_orange_table, add_metas_to_table
from anal... | [
"theodosis8@hotmail.com"
] | theodosis8@hotmail.com |
ede66e2d33e041a80cec2a8771ccc87fe440f7af | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/148/usersdata/268/99980/submittedfiles/testes.py | c1a570ae015ca648546489e96edebf5c24b3fe5c | [] | 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 | 142 | py | # -*- coding: utf-8 -*-
n=int(input('ooo'))
i=0
while i*(i+1)*(i+2) < n:
i=i+1
if i*(i+1)*(i+2)==n:
print('S')
else :
print('N')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
57772bf69d488385ee7b905d47cdff2781b7ad41 | 4b89355a7c9176d064e7eba6c60c31ec67a4d469 | /config/wsgi.py | 8d7f59c4acf4815aeb177f13b90bd86e941602ae | [] | no_license | swilltec/twipee | fd0146ec23c65c3858485ef54ac328402e57170f | 77cfb29780e8f4a43f931a441a3d77b8cc983e4d | refs/heads/main | 2023-06-15T09:03:14.221685 | 2021-07-12T01:26:41 | 2021-07-12T01:26:41 | 384,261,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | """
WSGI config for twipee 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.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"swilltec@gmail.com"
] | swilltec@gmail.com |
fcbf83fbbb05571de6b81695d195c8e568adc10a | 38b602e0485427bd8ac86f8819c8659f9f0ca78d | /accounts/forms.py | d014b4cba5b332fa58a772f1302b173dca1a5c9b | [] | no_license | TABAENE/newsite | 2855861fec85fe2fe2b1ffd0845a691d84bc7cbb | d1a2baf1fe1c64bb590bfde3825566e9bafafc6a | refs/heads/master | 2021-04-29T11:13:32.193686 | 2018-06-17T09:00:48 | 2018-06-17T09:00:48 | 77,853,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,130 | py | from django import forms
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Submit, Layout, Field
class RegisterForm(forms.Form):
def __init__(self, *args, **kwargs):
super(RegisterForm, self).__init__(*args, **kwargs)
self.helper = FormHelper()
self.helper.form_me... | [
"tabaene.haque786@gmail.com"
] | tabaene.haque786@gmail.com |
60c93a4684a8e005d11c1dc1ee26fb60e25dd162 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03393/s891507939.py | 38993f4b41b75bc140544df5c2618f773831c0e9 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | s = input()
c = list(s)
c2 = set(c)
al = sorted(list("qwertyuiopasdfghjklzxcvbnm"))
#26文字未満なら追加
if len(c)<26:
for i in range(26):
if al[i] not in c2:
print(s+al[i])
exit()
if s == "zyxwvutsrqponmlkjihgfedcba":
print(-1)
exit()
rev = "zyxwvutsrqponmlkjihgfedcba"
for i in ra... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ebbc9f436c2f66f730686c9789e0cb9cb7aa1ee8 | 5ac72c8484d8b7c2ecb94217e70ffa96c8c83053 | /server/account/models.py | 0661b22685cb7c013e9dce0dd4cb818a1fc07399 | [
"MIT"
] | permissive | buffalos0721/Super-Neutron-Drive | 975b6a9d20f9dc28d85632f87f50dd37da199f1f | d3cbeeae113722099032fb651dd4148670cb86e9 | refs/heads/master | 2020-03-26T08:40:40.409045 | 2016-08-18T16:20:36 | 2016-08-18T16:20:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,280 | py | import urllib
import datetime
from importlib import import_module
from collections import OrderedDict
from django.db import models
from django.conf import settings
from django.utils import timezone
from django.core import validators
from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin, UserManager... | [
"paul.m.bailey@gmail.com"
] | paul.m.bailey@gmail.com |
77262bb4ebbf657d022e1510ba1e6aa47f5f7a12 | 5f26da8dcdf63af669a0f50904054de5fd70ec07 | /tests/files/recorder/test_recorder.py | 3cc0bf9b61fa9251e90de2f48652a5637d3b9398 | [
"MIT"
] | permissive | pyreiz/pyliesl | 500e1043eb16819c27cf528b74fce1d10c2940db | 618c6728439e08e74ddeb614eddb1292f88568c3 | refs/heads/develop | 2023-06-26T05:03:23.823609 | 2023-01-18T11:48:22 | 2023-01-18T11:48:22 | 183,774,687 | 6 | 6 | MIT | 2023-06-13T08:09:24 | 2019-04-27T13:13:05 | Python | UTF-8 | Python | false | false | 2,850 | py | import pytest
from liesl.files.labrecorder.cli_wrapper import find_lrcmd, find_lrcmd_os
from liesl.files.labrecorder.cli_wrapper import LabRecorderCLI
import time
def test_find_lrcmd_no_path(tmpdir):
with pytest.raises(FileNotFoundError):
find_lrcmd(path_to_cmd=str(tmpdir / "sub"))
@pytest.mark.parametr... | [
"robertsadresse@gmx.de"
] | robertsadresse@gmx.de |
895332011fcf9b0343585ffaa8aee5a3cd1b8a8c | 6b97aa1958058540279765a3d651f61cc531fbb4 | /heamamill/manage.py | 64b1a335cf08c0278ad3e46a31a25a495572fec9 | [] | no_license | Ujjawal0619/HemaOilMill | a89c5aa1e8cc25d875410a4fcf7ba5e0e1357143 | c69777542ffaae7b4b8b891084172dbf4bbf7d53 | refs/heads/master | 2023-06-02T07:35:37.668252 | 2021-06-14T15:39:00 | 2021-06-14T15:39:00 | 339,116,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | 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', 'heamamill.settings')
try:
from django.core.management import execute_from_command_line
except Im... | [
"ujjawal.kumar0619@gmail.com"
] | ujjawal.kumar0619@gmail.com |
1797c37d09a01a52a738bcb504b0284fad56d361 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/ml/azure-ai-ml/tests/component/_util.py | d93cf7462afb7549afc5c81a02eb2035ffe81047 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-python-cwi",
"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",
... | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 86 | py | _COMPONENT_TIMEOUT_SECOND = 20 * 60 # timeout for component's tests, unit in second.
| [
"noreply@github.com"
] | Azure.noreply@github.com |
72b8be241a8454c6e0595c416ff5f190fd26d13c | 08ef8c0fb9278d84e039a584735959328051801f | /compyl/__parser/error.py | dd04c8869685b3939170b0253c0266cec1df196d | [
"MIT"
] | permissive | oleduc/ComPyl | 6180a362abc9820638020e8c24eb8c4c02aa0172 | ab4c291b09428ec378e58b010ebbfdfa2afba494 | refs/heads/master | 2021-09-11T12:42:49.093999 | 2018-04-07T05:55:30 | 2018-04-07T05:55:30 | 112,785,843 | 0 | 0 | null | 2018-04-07T05:55:31 | 2017-12-01T20:54:17 | Python | UTF-8 | Python | false | false | 1,125 | py | class ParserError(Exception):
pass
class ParserBuildError(ParserError):
pass
class ParserSyntaxError(ParserError):
pass
class GrammarError(ParserBuildError):
def __init__(self, conflicts=None, reduce_cycles=None):
self.conflicts = [] if conflicts is None else conflicts
self.reduc... | [
"ol.melancon@gmail.com"
] | ol.melancon@gmail.com |
7cdaf04bf77e4376a41a93798a098103d8b94ac7 | 412c3f5bcea2067302ff4f665b0b2d97cbbf8d35 | /auctions/migrations/0036_remove_auctioneer_address.py | 074c69e57c59af1b31c72f72caccf8e98b0fab38 | [] | no_license | nevrosis/asystem | cf578152cc403931e2f50a5a0e64db49724297aa | f19b9dffef05d0d23ecbee1a0293a055be51144c | refs/heads/master | 2021-01-23T10:21:29.613128 | 2017-08-09T20:46:51 | 2017-08-09T20:46:51 | 94,270,389 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-07-15 14:58
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('auctions', '0035_auto_20170715_1450'),
]
operations = [
migrations.RemoveField(
... | [
"dtosh@voltefaceinnovation.com"
] | dtosh@voltefaceinnovation.com |
2be784c7118fd02038b53b74ddd988ad5139ccc0 | 452129113ce746498cc6b5b0b12334b63f965f37 | /vtrace/platforms/linux.py | b863ab6afde9f7c5a9ee36ec858e41603557a99d | [] | no_license | gdisneyleugers/vdebug | e2cc9691c28274c63624d33a6ec3f22af977b659 | ec1a6d24e27d3022ac5bd573f8f16f8e0a6cc995 | refs/heads/master | 2021-01-18T15:12:32.541415 | 2010-02-27T21:48:01 | 2010-02-27T21:48:01 | 40,327,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,212 | py | """
Linux Platform Module
"""
# Copyright (C) 2007 Invisigoth - See LICENSE file for details
import os
import struct
import signal
import traceback
import platform
import envi.memory as e_mem
import envi.registers as e_reg
import vtrace
import vtrace.platforms.base as v_base
import vtrace.platforms.posix as v_posix
i... | [
"meddington@b115b00c-0f9b-11df-b192-4df06d6974c1"
] | meddington@b115b00c-0f9b-11df-b192-4df06d6974c1 |
79490e570f69820b6f369090ebb699801631ee77 | 17ac0afd3c3b156acde845d9a0462a720c355153 | /Chapter 11/11_15.py | 9c23ddafb882f2d7d1315047a7c1169f7af1d04c | [] | no_license | coder-pig/Book | a9ba92f20cb85872f4b9ae3b727d284120c14fc1 | 19ba81881d0d734c11527f3ace03cd2b6b19902c | refs/heads/master | 2022-12-10T12:05:50.407112 | 2018-09-03T13:01:29 | 2018-09-03T13:01:29 | 135,964,351 | 2 | 1 | null | 2022-12-08T02:47:43 | 2018-06-04T03:09:26 | HTML | UTF-8 | Python | false | false | 1,283 | py | """
进程池实现文件行数和字数统计脚本实例
"""
import multiprocessing as mp
import time
import os
result_file = 'result.txt' # 统计结果写入文件名
# 获得路径下的文件列表
def get_files(path):
file_list = []
for file in os.listdir(path):
if file.endswith('py'):
file_list.append(os.path.join(path, file))
return file_list
# ... | [
"779878443@qq.com"
] | 779878443@qq.com |
ee0bf2d000cf3dcda71f9dbf20a1a785442712dd | fd67786193414df353b5b2edf87a1c9c0625f299 | /4-python/pyez_basic.py | 53de6cd48001919b949c5a97c0f0882ac8a277d3 | [
"Apache-2.0"
] | permissive | KefengTeng/nwkauto | 9eaff3ce744fa375857636a27aa93cb950d8ea44 | 81f6e1a1c679a77440fc11d2b3070b15f58042f8 | refs/heads/master | 2022-11-13T22:49:06.001913 | 2020-06-29T15:14:09 | 2020-06-29T15:14:09 | 275,701,857 | 0 | 0 | Apache-2.0 | 2020-06-29T01:30:53 | 2020-06-29T01:30:52 | null | UTF-8 | Python | false | false | 280 | py | from pprint import pprint
from jnpr.junos import Device
from jnpr.junos.op.lldp import LLDPNeighborTable
# Need to check vagrant ssh-config to ensure correct port
dev = Device(host='127.0.0.1', user='root', password='Juniper', port=<port>)
dev.open()
pprint(dev.facts)
| [
"matt@keepingitclassless.net"
] | matt@keepingitclassless.net |
d6b6e6d2196b336e992f28cc2a73ecb4365629b2 | 00d4fef2cff711ee0f3c0f487dd733ddbb663b94 | /递归/【54】螺旋矩阵.py | cf4724be837061973b2c728bb7afd69dd50d077a | [
"Apache-2.0"
] | permissive | littlelittlewhite09/LeetCode | 6520942bf00851fa8eefe8d90ca66c570c5521a7 | 8585cb4d0008b62fd058813d4e7442dfbd6320ad | refs/heads/main | 2023-03-21T18:53:37.353018 | 2021-03-16T08:21:37 | 2021-03-16T08:21:37 | 329,302,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,227 | py | class Solution:
def spiralOrder(self, matrix: List[List[int]]) -> List[int]:
'''
方法:递归;
终止条件:矩阵为空,或矩阵内部的行元素位空时
思路:递归调用最外圈的数组
'''
res = []
def recurrent(matrix = matrix):
if not matrix or not matrix[0]:
return
m = len(ma... | [
"noreply@github.com"
] | littlelittlewhite09.noreply@github.com |
d8e1b1e542edb43a01bb810371c9af69a80d601c | 1e4d2a66f92b8ef3baddaf76366c1be4ad853328 | /Safari_Edris_DSC510/SandBox/ImportFiles/venv/Scripts/pip3-script.py | d8f7812de43586a23f66d5e0a7f99db0e1b9abc4 | [] | no_license | dlingerfelt/DSC-510-Fall2019 | 0c4168cf030af48619cfd5e044f425f1f9d376dd | 328a5a0c8876f4bafb975345b569567653fb3694 | refs/heads/master | 2022-12-04T05:04:02.663126 | 2022-11-28T14:58:34 | 2022-11-28T14:58:34 | 204,721,695 | 5 | 23 | null | 2019-12-06T01:15:11 | 2019-08-27T14:30:27 | Python | UTF-8 | Python | false | false | 463 | py | #!C:\Users\safar\Documents\GitHub\DSC-510-Fall2019\Safari_Edris_DSC510\SandBox\ImportFiles\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] ... | [
"54446804+safarie1103@users.noreply.github.com"
] | 54446804+safarie1103@users.noreply.github.com |
26dde0543284ccc1428db792b7097f5ca6d775df | 48db38946d66e29fa745730e7d5d2cc2b9563fe7 | /scanpat_calc/sunforecaster/__main__.py | b777c9c077041b36e6a8779079da4a1c70f136fc | [] | no_license | citypilgrim/smmpl_opcodes | 4a81b5b457a86f1c0bdd113d4377bf8c92aa828d | 09121386ccfe763ab1e25d8dc9bfe99a47db062f | refs/heads/master | 2023-03-09T05:41:16.841246 | 2021-02-26T02:36:58 | 2021-02-26T02:36:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | # imports
import datetime as dt
import multiprocessing as mp
import pandas as pd
import numpy as np
from . import sunforecaster
from .sunpath_plot import main as sunpath_plot
from ...global_imports.smmpl_opcodes import *
# params
_plotduration = dt.timedelta(1)
_numpoints = 1000
_conelen = 1
# main func
def main... | [
"94tian@gmail.com"
] | 94tian@gmail.com |
a171f9d9e0be4e45cbc08d882655d24ae4eafa83 | 8c894bce7f72b72497f1cce8c9703d47f244070b | /setup.py | 8c8747eda0d2b8731b85648d0a107e23ff141792 | [] | no_license | russell-arrcus/py-metric-collector | f5138a9a559a69e95d9c1d44c5e4f642c3004507 | 383a380c93715b8874929bcc33c7ba1a2f5c7683 | refs/heads/master | 2022-04-20T09:37:38.913228 | 2020-04-22T00:53:07 | 2020-04-22T00:53:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | #!/usr/bin/env python
import sys
import uuid
from setuptools import setup, find_packages
try: # for pip >= 10
from pip._internal.req import parse_requirements
except ImportError: # for pip <= 9.0.3
from pip.req import parse_requirements
__author__ = 'Damien Garros <dgarros@gmail.com>'
requirements_data ... | [
"dgarros@gmail.com"
] | dgarros@gmail.com |
b38bdf47a5156e3acd04e2b4e7da3f161b331262 | fc02d84306e696003f77ff053be954aef092725e | /manager/migrations/0043_tweet_tweeted.py | ee4af41ccdeb2dfa1fdc5980426c4731289f282e | [] | no_license | jestrella52/indybot | 4b64591122d50c4a8f12c7d7a4611832dba1d11d | b2b4fefc3e5f94fbd8b89703aa16c1f2cdbbbe03 | refs/heads/master | 2020-03-20T20:52:20.474745 | 2018-06-02T20:35:00 | 2018-06-02T20:35:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-06-10 21:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('manager', '0042_tweet'),
]
operations = [
migrations.AddField(
m... | [
"brian@valinor.net"
] | brian@valinor.net |
daeac72805ad581023d76035e2af4727781ad99d | 6f82e707e7d36b490865788a2f4022c7e69d04ab | /weatherproject/settings.py | af8b8384bc885460b622b8d3043f5b8bba507953 | [] | no_license | vignesh770/Weather-App | 40676f480e27c0b527e8638c9ddfb10df68450a8 | 27457bb055c0fb0e29410bd0142970cd89105576 | refs/heads/master | 2023-07-08T18:54:45.010861 | 2021-08-13T06:17:09 | 2021-08-13T06:17:09 | 395,539,472 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,380 | py | """
Django settings for weatherproject project.
Generated by 'django-admin startproject' using Django 3.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import... | [
"rockyvignesh770@gmail.com"
] | rockyvignesh770@gmail.com |
bfca8908a7aa60e88afd91af2db28b77a598eea9 | c49159e7550053f9f98e6d953eeb33048be67f79 | /apps/xmu-sishi-server/webs/controllers/Scenery.py | e28adb43c4a30df5d53071a1e0714fe41f71951c | [] | no_license | Yunlong323/history-map-backup | e457e98581c80e3420f4fceb1a8a7de6727407ba | cf548cf481d0fc46294dcdda87558661befe3db6 | refs/heads/master | 2023-04-14T13:06:33.702111 | 2021-03-21T16:34:58 | 2021-03-21T16:34:58 | 350,171,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,208 | py | import datetime
from flask import Blueprint, request, jsonify, make_response, redirect, g,render_template
import time
from common.libs.SceneryService import SceneryService
from common.libs.Helper import ops_render, iPagination,createWXcode,getFormatDate,getCurrentDate,getParserValue
from werkzeug.utils import secu... | [
"1035268937@qq.com"
] | 1035268937@qq.com |
06f33686af821d352b93ed7194b735983711fe26 | 197bba910a5f54c7790d8c5c7b2dc8462147976e | /albums/planche_to_pdf.py | d3d1134b24cd02917ad510d87949130492c8eec3 | [] | no_license | cvandekerckh/custoom | a2e4b193cf8631a25db42b4b3122d7ae997d3ac6 | f46b6761bed52b5d6cdd9411d29c017767d83b09 | refs/heads/master | 2023-04-19T17:30:35.415185 | 2021-05-05T10:04:19 | 2021-05-05T10:04:19 | 262,610,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,160 | py | from fpdf import FPDF
DOCUMENT_SIZE = (286, 222)
SAFETY = 12.7 # mm
BLEED = 3.18 # mm
LIVE_WIDTH = 254 # mm
LIVE_HEIGHT = 191 # mm
PAGE_NUMBER_OFF_X = 10
PAGE_NUMBER_OFF_Y = 15
PAGE_NUMBER_WIDTH = 20
PLANCHE_EPS = 0.2 # security in bleeding
PLANCHE_SHIFT_Y = 10 # starting from bleed
TEXT_EPS = 5 # security in s... | [
"corentin@delphia.com"
] | corentin@delphia.com |
2bb14a82bf0195f215a36c5e10aef5136ef02006 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/era5_scripts/02_preprocessing/combine82/35-tideGauge.py | c363a79bc5b9cbdedc37466360109e92883f0129 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,115 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 16 16:11:00 2020
--------------------------------------------
Load predictors for each TG and combine them
--------------------------------------------
@author: Michael Tadesse
"""
import os
import pandas as pd
#define directories
dir_in = '/lustre/fs0/home/mtadesse/er... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
ea48d2765c2ca0ae7d26e05b899fc93cb13349ec | e42a61b7be7ec3412e5cea0ffe9f6e9f34d4bf8d | /a10sdk/core/system/system_bfd_stats.py | 2b13f0d88b617ea5ea2c93a905d0181004463e88 | [
"Apache-2.0"
] | permissive | amwelch/a10sdk-python | 4179565afdc76cdec3601c2715a79479b3225aef | 3e6d88c65bd1a2bf63917d14be58d782e06814e6 | refs/heads/master | 2021-01-20T23:17:07.270210 | 2015-08-13T17:53:23 | 2015-08-13T17:53:23 | 40,673,499 | 0 | 0 | null | 2015-08-13T17:51:35 | 2015-08-13T17:51:34 | null | UTF-8 | Python | false | false | 4,388 | py | from a10sdk.common.A10BaseClass import A10BaseClass
class Stats(A10BaseClass):
"""This class does not support CRUD Operations please use parent.
:param udp_checksum_error: {"optional": true, "size": "2", "type": "number", "oid": "2", "format": "counter"}
:param invalid_detect_mult: {"optional": true... | [
"doug@parksidesoftware.com"
] | doug@parksidesoftware.com |
2b2f0cfcf7af62501664802b96bb3cc4042bfd00 | fba626f33605936a2bd30021375bea1b379a25b7 | /workspace/models/Old Files/ML_Pipeline_Preparatio_final_v4.py | fb5985a37663678839c819209a212d6880cf6f1f | [] | no_license | michaelt211/Udacity-Data-Science-Project-2 | 2e46db6099329b5c0a6e16451e7991c4af58a7ac | f4c5be65b08d80f7fcedbd04f51a1d90f261afe9 | refs/heads/main | 2023-06-15T22:43:08.624916 | 2021-07-12T21:56:34 | 2021-07-12T21:56:34 | 375,001,527 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,498 | py | #!/usr/bin/env python
# coding: utf-8
# # ML Pipeline Preparation
# Follow the instructions below to help you create your ML pipeline.
# ### 1. Import libraries and load data from database.
# - Import Python libraries
# - Load dataset from database with [`read_sql_table`](https://pandas.pydata.org/pandas-docs/stable/g... | [
"noreply@github.com"
] | michaelt211.noreply@github.com |
cf9cab0e49fa44985cb0ae35e2aab029d37ecf6d | acf7cff7d08ae5984b0ba1e65e4404a0bfb07ba1 | /dataset.py | a467b9cd79fc5a65c62eac84ece5670e74cf611c | [] | no_license | aloyschen/NSFWImageClassify | 54981406c754cf0c6ecb0db8a337b41b836ce9fe | f8d5666bfcbaf24dc5e46beeeb50dd10a9efca0c | refs/heads/master | 2020-06-02T13:50:23.027165 | 2019-06-21T11:13:57 | 2019-06-21T11:13:57 | 191,176,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,119 | py | # encoding:utf-8
import os
import math
import shutil
import random
import config
import tensorflow as tf
class NSFWDataset():
def __init__(self, datasetDir, mode):
"""
Introduction
------------
图像数据集
1、将图像数据转换为tfRecord
"""
self.datasetDir = datasetDir... | [
"813971830@qq.com"
] | 813971830@qq.com |
ad641a26bd82b2f4700c3f9354f6cddee7691e4b | ca65bd2cea72a3be2237110a69b5b5c6938298cc | /bin/hilo.py | b6fa5a8a30257a9f3130c6fa86cd72220a2207eb | [] | no_license | frankbryce/linux_scripts | 87c199d0a9b14b8f3a4cbbd15e18259e5c565b44 | ba88764ff3af10013d73175c451b2d1a285b428f | refs/heads/master | 2021-07-15T11:04:14.596660 | 2021-03-11T04:22:57 | 2021-03-11T04:22:57 | 68,866,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | #!/usr/bin/python
import sys
import functools
@functools.lru_cache(maxsize=None)
def hilo(n):
if n<1:
raise Exception("n must be >= 1")
if n==1:
return 1,[1]
if n==2:
return 3,[1,2]
minE = n*n*n*n+1
minG = []
for i in range(n):
le,re = 0,0
if i+1 > 1:
... | [
"jonnyjack7@gmail.com"
] | jonnyjack7@gmail.com |
c246cb68b50ba242945dae6c3ff38a195790b397 | c8bacded57c7a22e827f89e5bcb478372c43b2ca | /Analysis/analyzer.py | e887472328481a9d645b830bd2bdcd784f9f68c5 | [
"Apache-2.0"
] | permissive | geek-yang/JointAnalysis | 3915d02e543d0d979aeb0e5ffcd5784e2d237ca5 | 88dd29d931614fe9dfb3314cb877a31f37333336 | refs/heads/master | 2020-06-12T12:00:24.230849 | 2019-10-29T10:44:38 | 2019-10-29T10:44:38 | 194,291,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,270 | py | # -*- coding: utf-8 -*-
"""
Copyright Netherlands eScience Center
Function : Statistical Operator for Climate Data
Author : Yang Liu (y.liu@esciencecenter.nl)
First Built : 2019.08.10
Last Update : 2019.08.10
Contributor :
Description : This module provides several methods to perform sta... | [
"ESLT0068@localhost.localdomain"
] | ESLT0068@localhost.localdomain |
0d7ec4318920b7d1d93f2ad0b42883d8a453eb48 | 309b758cbf625984d2d12638bfdb79e01595b769 | /synchrony/tests/maps.py | ccc1f26449ad67d313e25bca84b728d6e4c308b0 | [
"MIT"
] | permissive | Psybernetics/Synchrony | 20ef76fad9e24316acd4b40919e629e4ab851722 | 3a179d01e7eb60642b403d11e11b7103d08d466f | refs/heads/master | 2020-05-21T14:07:33.181010 | 2018-03-12T20:25:01 | 2018-03-12T20:25:01 | 46,065,091 | 36 | 2 | null | 2017-02-03T20:49:52 | 2015-11-12T16:21:05 | JavaScript | UTF-8 | Python | false | false | 410 | py | """
This file defines a dictionary of suite names to run function mappings.
Your tests should define a function that's the entry point to your test suite.
"""
from synchrony.tests import dfp_70
from synchrony.tests import rpc_append_suite
from synchrony.tests import rpc_friend_suite
maps = {
'dfp_70': dfp_70.run,... | [
"luke.brooks42@gmail.com"
] | luke.brooks42@gmail.com |
6b9e31cac357356857823d403bed05ff817218e3 | 7a964ff36ab89a7f5e4a0337a137205c379c1668 | /market_analysis/bin/f2py | ddc9e28e03a33c55081f1e7e4177c4d84926aa3f | [
"MIT"
] | permissive | lemonsong/market_analysis | 3bf074305113a0ca2609c978f7a5892f75ba68aa | 006dcb6ad35ed3f1f8f39b9575ebba12aa341e09 | refs/heads/master | 2023-04-15T23:08:23.280249 | 2021-05-01T18:26:45 | 2021-05-01T18:26:45 | 328,304,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | #!/Users/yilin/Documents/Projects/market_analysis/market_analysis/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from numpy.f2py.f2py2e import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"yilin19920089@sina.com"
] | yilin19920089@sina.com | |
37f6052a46f8fb8049de9795bb1158173b431b40 | 6b063ae3a34dbdfdc5e083ed0b903a647a3fb42b | /tmp.py | e0e03377a226998c19b727975ecde8c92baf065b | [] | no_license | Dakaraj/go-api | 59761e1cb73945f39ad55b8a5944060fde97b688 | 4789ae31e9e10aabe574e5dece57571fc0bcd243 | refs/heads/master | 2020-03-08T12:02:46.348481 | 2018-08-13T09:07:41 | 2018-08-13T09:07:41 | 128,116,022 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | import datetime
amount = float("1802.0")
a, b = divmod(amount, 100)
if b != 0:
print(round((amount // 100 + 1) * 100, 1))
else:
print(amount)
print(datetime.datetime.utcnow().isoformat())
| [
"ankra@ciklum.com"
] | ankra@ciklum.com |
2c8945180fc4ee4e197b39c31e6bba2594074f62 | d9341c4fd98aef7ac44924b608e00aaa70bfc0fb | /All_spider/x_gubao.py | 8d3ebc1aa4fc464d422f19d42891545adbf7934b | [] | no_license | KolaHSH/LuoLiang_Python | 59f4b6990d50183f3a7860b2cfd9611f8e377950 | d3509bc21ba35e1dd2261f5dcab4e25f63994af2 | refs/heads/master | 2020-09-22T15:55:11.255371 | 2019-01-11T06:22:23 | 2019-01-11T06:22:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,094 | py | import requests
from urllib.parse import quote,urlencode
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
import string
import time
def get_theme(keyword):
'''获取主题栏目下信息'''
try:
referer = quote(keyword, s... | [
"898829225@qq.com"
] | 898829225@qq.com |
80aca8fdf8d5704d862a29f1c7f51562a5207889 | ac1454f1bbbc6a39ba2c011c2fa2a4fb86933c12 | /sourse.py | 6158435a5e51663beecacacfb6bfb8e4c1e2d826 | [] | no_license | httausf/FactoryData | 9664927c1388bc31b973687e666fcf91d829c246 | 555b5f3c2c0e2f4ff76ce9b78931c70e1abe04fa | refs/heads/master | 2021-01-11T18:35:41.118933 | 2017-01-24T11:25:09 | 2017-01-24T11:25:09 | 79,577,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2016/12/24 15:22
# @Author : ProY
# @Site :
# @File : sourse.py
# @Software: PyCharm
import os
from excelDic import *
from xlwt import *
path_dir = os.path.join(os.path.abspath('.'), 'path')
path_dir_2 = os.path.join(os.path.abspath('.'), 'newpath')
fi... | [
"yzh0829@foxmail.com"
] | yzh0829@foxmail.com |
17052170b267982eb177b54d0887bbf56694e5b6 | 1e8e90640591a2f5d8c3a03d31a8dfba67f5a2e3 | /app/migrations/0002_orderplaced.py | b103978c33595eca97592c48ad707c42018029b2 | [] | no_license | KawserHossainShuvo/practice-django-Ecommerce1 | 77e1066d5c3f43e328c3bf3ec026e38356d1582c | 26f4587c579c38d584e96306c6aaef16f3cdf784 | refs/heads/main | 2023-07-12T17:27:47.522153 | 2021-08-30T19:05:28 | 2021-08-30T19:05:28 | 401,446,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,287 | py | # Generated by Django 3.2.6 on 2021-08-25 14:29
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('app', '0001_initial'),
... | [
"Kawserm352@gmail.com"
] | Kawserm352@gmail.com |
df020533fd6ff7e57b630570196ec29bdb2e7ced | acdc9d438bddaf730d5dd05e4bb5a87dff74dcda | /noportainer-regex_form.py | c44bf4441afb22486f6a57f70e39ad6674597fd4 | [] | no_license | wxg10521/add_ngxconf | 3c3e9a2e3b39ee620b94b7c11425db612b6fa802 | 7a9d1ecc159852fe9d5b811801f08d8113725b1f | refs/heads/master | 2020-03-22T17:48:37.498915 | 2018-10-10T09:29:23 | 2018-10-10T09:29:23 | 140,417,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | import re
import os
domain_regex=re.compile(r'^[\w-]+\.\w+\.(com|cn|io|net|org)$')
iport_regex=re.compile('^(2[0-4][0-9]|25[0-5]|1[0-9][0-9]|[1-9]?[0-9])(\.(2[0-4][0-9]|25[0-5]|1[0-9][0-9]|[1-9]?[0-9])){3}\:[1-9]\d{3,6}$')
def domain_status(domain):
m=domain_regex.match(domain)
if m:
return "domainyes"... | [
"root@10.11.3.131"
] | root@10.11.3.131 |
c1bb69c3c89f7e74c5290bc657be0da088c70345 | 13696a9691b173d75b11b4aee22b79d4ea6b7c0b | /test/test_o_auth_api.py | 760055ebca9f7d8f8ae0f95734aad1999bf0caef | [
"Apache-2.0"
] | permissive | square/connect-python-sdk | 410613bc4b04f0f70176275591a16c9e49e25ede | e00e2889b2dd2c55048219cbe64db79962a68633 | refs/heads/master | 2023-06-15T09:24:17.190416 | 2019-08-15T17:44:41 | 2019-08-15T17:44:41 | 64,772,029 | 53 | 45 | Apache-2.0 | 2020-12-20T18:41:31 | 2016-08-02T16:07:17 | Python | UTF-8 | Python | false | false | 1,346 | py | # coding: utf-8
"""
Copyright 2017 Square, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable la... | [
"noreply@github.com"
] | square.noreply@github.com |
c8ca7ed85b547c38fef07ca0ea2316b5e63143fa | aedbc5b8cb95ba346137d21a636a37f3b24e76d7 | /venv/bin/python-config | 2f74ae7c3da138355e07c62b60691e4723036cb4 | [] | no_license | jayabhavana342/Learning_Django | 39df268612826c656e56eb2333516a92f38adfae | fc2a18f3920c23ed49d58cad40ffa84fb67154f9 | refs/heads/master | 2021-09-04T07:01:18.064031 | 2018-01-16T23:24:30 | 2018-01-16T23:24:30 | 116,726,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,368 | #!/home/bhavana/PycharmProjects/Learning_Django/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags'... | [
"j_k201@txstate.edu"
] | j_k201@txstate.edu | |
fafa979db3f89f80c1a18f74f59857b060ebeace | 9fdd97bbccdedc5e4a872d5a6628be6f101ae35b | /Helpful Tools/Python Scripts/mote_calibration_analyzer.py | ab3f4ee867d944584de3c29d82ad61b1797d9790 | [] | no_license | simjxu/Other-MachineLearning | baf6008db71beed9b8ae30df00658733a178a483 | 523a1f7c0663b6ea2750722cebc4ba47ea0a7719 | refs/heads/master | 2021-04-29T10:14:56.633938 | 2018-05-07T19:04:06 | 2018-05-07T19:04:06 | 77,875,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,699 | py | import os
import requests
import json
from datetime import datetime
import numpy as np
import matplotlib.pyplot as plt
# Go to inspect element, on the machine you are interested in, and choose the something like "37"
# Use https://curl.trillworks.com/ to convert
cookies = {
'_ga': 'GA1.2.354410958.1484069253',
... | [
"simon@petasense.com"
] | simon@petasense.com |
a3cc5f7553d24c69a2106021eed6d2b5b06d729a | 25232dc4ac99d0e03ed021d579f0c33b5cf4714e | /hisensetv/__main__.py | 19ce32b0310e0462fa7ccdec00544554e23c938f | [
"MIT"
] | permissive | plvnamor/hisensetv | 0add08aec46e809cebcdc96fd1cfa9ab859dd239 | 95075530562a1b8faa589e0438a52f6ee17fcad0 | refs/heads/master | 2022-10-20T21:36:02.529838 | 2020-06-18T05:10:32 | 2020-06-18T05:10:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,366 | py | import argparse
import json
import logging
import ssl
from . import HisenseTv
def main():
parser = argparse.ArgumentParser(description="Hisense TV control.")
parser.add_argument("hostname", type=str, help="Hostname or IP for the TV.")
parser.add_argument(
"--authorize", action="store_true", help="... | [
"7845120+newAM@users.noreply.github.com"
] | 7845120+newAM@users.noreply.github.com |
6d873d1464e0662b437057cbb4748c15b6dd17f4 | ffb38e9b110508880fd02fcd5de45dacc672ee9e | /src/coder.py | 325b4ec6e8e631a1447257be80a6eb157bd29996 | [
"Unlicense"
] | permissive | dwaybright/g729a_python | 80d809664cd5fa999424ff63a8c57b886383d1e3 | a9c78d9a6b2934c9742f63e3ade225fe4aee245e | refs/heads/master | 2022-12-08T13:17:46.996729 | 2020-08-22T18:10:50 | 2020-08-22T18:10:50 | 287,112,817 | 0 | 0 | Unlicense | 2020-08-17T05:50:20 | 2020-08-12T20:49:44 | C | UTF-8 | Python | false | false | 921 | py | from bits import *
from basic_op import *
from ld8a import *
from cod_ld8a import Init_Coder_ld8a, Coder_ld8a
from pre_proc import Init_Pre_Process, Pre_Process
from typing import Tuple
prm = [0] * PRM_SIZE
serial = [0] * SERIAL_SIZE
def initialize() -> None:
Init_Pre_Process()
Init_Coder_ld8a()
def con... | [
"dwaybright@kcp.com"
] | dwaybright@kcp.com |
f00306fab0904d13e6cf61a7d91da8b8fceea572 | 8a06a77ab433fea95192c0a6c20e26b08a47bff9 | /PythonApplication1/PythonApplication1.py | 906c2a6c4bfde251e8e8b4d9c23e8afbfde7f0a6 | [] | no_license | parenj/PyApp1 | d621feb267d08203d4723bf91c620451f6979c0a | 92c7d8f1084779a0335ed2a03155f361ed451ec0 | refs/heads/master | 2020-03-19T20:48:02.362810 | 2018-06-11T11:40:46 | 2018-06-11T11:40:46 | 136,917,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | print("Hallo Welt")
print("noch was dazu") | [
"alex.altaez@hotmail.com"
] | alex.altaez@hotmail.com |
0ad4839cc902ab89f8ee4c25b4c3fbf598f4798a | 8881a4927d893e1e755c0488f76ba7941b379f26 | /tech_gram_project2/producthunt_project/producthunt_project/urls.py | 01b11efd49f26851698655f127f6afdfa499ab26 | [] | no_license | SatishNitk/Django | 6bb839fcf2bc7d70413e3d56ac98124a7a96a5de | d9260c032322a34410d783c39a8f13e8f63b8be4 | refs/heads/master | 2020-05-24T23:01:35.767388 | 2019-07-06T13:56:50 | 2019-07-06T13:56:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | from django.contrib import admin
from django.urls import path,include
from django.conf.urls.static import static
from django.conf import settings
urlpatterns = [
path('admin/', admin.site.urls),
path('product/', include("products.urls")),
path('account/', include("accounts.urls"))
] + static(settings.MEDI... | [
"satishkrgu95@gmail.com"
] | satishkrgu95@gmail.com |
faf7637b93bf57c9d86f6f84ec0dc2f5c276cca2 | 994ea22f35c635fdf139af9282b0d3a3d86ea34a | /ud617-intro_to_hadoop_mapreduce/lesson6/part1/reducer_q3.py | d3be0e7c6127a7fdf196f92e9b3177b5ef9970aa | [] | no_license | zjyx147/Udacity | ac371fbc5b5b456e88b411657ef5a28c3b071c6c | d86fadd537dbacc6f8142b043e71527b0448bae3 | refs/heads/master | 2022-06-23T14:25:41.242353 | 2019-06-20T20:12:13 | 2019-06-20T20:12:13 | 191,207,247 | 0 | 0 | null | 2022-06-21T22:07:35 | 2019-06-10T16:42:18 | DIGITAL Command Language | UTF-8 | Python | false | false | 593 | py | #!/usr/bin/python
import sys
totalNum = 0
totalVal = 0
oldKey = None
# Loop around the data
# It will be in the format key\tval
# Where key is the store name, val is the sale amount
#
# All the sales for a particular store will be presented,
# then the key will change and we'll be dealing with the next store
for li... | [
"zjyx147@gmail.com"
] | zjyx147@gmail.com |
f3711d296271e67c2ea2358fbca18f624f2a8a00 | 853d4cec42071b76a80be38c58ffe0fbf9b9dc34 | /venv/Lib/site-packages/async/task.py | 266d610dafdac10674199f6fb8a6fcccfbf9ca7b | [] | no_license | msainTesting/TwitterAnalysis | 5e1646dbf40badf887a86e125ef30a9edaa622a4 | b1204346508ba3e3922a52380ead5a8f7079726b | refs/heads/main | 2023-08-28T08:29:28.924620 | 2021-11-04T12:36:30 | 2021-11-04T12:36:30 | 424,242,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,331 | py | # Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
#
# This module is part of async and is released under
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
from .graph import Node
from .util import ReadOnly
from .channel import IteratorReader
import threadi... | [
"msaineti@icloud.com"
] | msaineti@icloud.com |
305f0e904b71fa6d3ef7f9a9b5f0978fd8aeb4b3 | 46bb0e39a00f28e9ef226ac8e28471aef7246178 | /web-scraping-yalwa.py | ba43d18d377d89b9b2ff24db7c422c552693387e | [] | no_license | venuraperera99/Web-Scrapers | 0a3a49c2de54cf6b3dbd37b42eebaa2385c0ac99 | cada258a3eb439de6d8d76250bdda0ec7491fef4 | refs/heads/master | 2023-01-18T23:35:27.294538 | 2020-11-26T20:45:36 | 2020-11-26T20:45:36 | 297,174,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,404 | py | import requests
from bs4 import BeautifulSoup
import pymysql
pymysql.install_as_MySQLdb()
import compare as comp
def scrape_business_page(lnk):
# -- NEXT SCRAPE THE ACTUAL BUSINESS PAGE ---
print()
print("PAGE:")
URL = lnk
print(URL)
page = requests.get(URL)
soup = BeautifulS... | [
"noreply@github.com"
] | venuraperera99.noreply@github.com |
af9bf674068c090e5634298867d9b17022e17598 | 521dce61e99b248b20610ebe681f611ff9f36a58 | /PepCoding/DS/Stack/stockSpan.py | 8db56c8b58e73775be24a73df9abd9e4e71a39d8 | [] | no_license | ommiy2j/Codeforces | ff0ca0129d442c14438d54c98673efd17c1bb8f0 | 2025c4ae11acca801fca4871dbc169c456f30ff9 | refs/heads/master | 2023-04-01T14:48:08.092036 | 2021-04-04T18:32:38 | 2021-04-04T18:32:38 | 320,491,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | n=int(input())
a=[]
for i in range(n):
a.append(int(input()))
t=[0 for i in range(n)]
t[0]=1
for i in range(1,n):
for j in range(i,-1,-1):
if(a[j]>a[i]):
t[i]=i-j
break
if t[i]==0:
t[i]=i+1
for i in t:
print(i)
| [
"ommiy2j@gmail.com"
] | ommiy2j@gmail.com |
8e0b44e3e780895fff913151fcba780c3e5d8c5f | 2984a59fe37b3abe8071b74e7fc701bfb2c79512 | /holts_l.py | 7264a716f00635f53b103e4f65e6c4785a2972ee | [] | no_license | radhikarangu/flask_DAQ | ee863a7a21159be8874f7bdd6cf43ad8ce13dd75 | eff6be024a720e7b8bffc80beaf4b1aa9b7b9dcc | refs/heads/master | 2023-03-23T15:09:07.975842 | 2020-06-19T09:56:33 | 2020-06-19T09:56:33 | 273,459,765 | 0 | 0 | null | 2021-03-20T04:22:48 | 2020-06-19T09:53:12 | Python | UTF-8 | Python | false | false | 4,493 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jun 19 11:58:12 2020
@author: RADHIKA
"""
import pandas as pd
import numpy as np
import datetime as dt
from datetime import datetime
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.metrics import mean_squared_error
from statsmodels.tsa.holtwi... | [
"noreply@github.com"
] | radhikarangu.noreply@github.com |
4600c1e8c2d8b792d6704206132b7a2a328dc78c | f0290a511b5d779b81310e4f027cf691063b34e8 | /appengine_config.py | 7cf8845e0af00dd10c5379318ff66047837fc87f | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | JoshRosen/spark-pr-dashboard | dcacf91d6c54eb87201e4e2376496e8801699fee | fb5dc74cbf472e6b7e597bd10deb337c68367afe | refs/heads/master | 2021-01-18T03:11:52.573017 | 2014-11-07T19:50:37 | 2014-11-07T19:50:37 | 26,732,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | import site
import os.path
import gae_mini_profiler.profiler
site.addsitedir(os.path.join(os.path.dirname(__file__), 'lib'))
def webapp_add_wsgi_middleware(app):
app = gae_mini_profiler.profiler.ProfilerWSGIMiddleware(app)
return app
def gae_mini_profiler_should_profile_production():
from google.appengi... | [
"joshrosen@databricks.com"
] | joshrosen@databricks.com |
8566822cc06773c316fe7ab5a51b7c0ff1e71cbc | 58aa5912ba739cd7d705106e5f09134b48d402c9 | /machineLearningIntro/tfb.py | 9616a426578b883df79f8caf47eb5b14b1da6502 | [] | no_license | Paulswith/machineLearningIntro | 4ea9c5855e5824e41ebe35ad25055b1e9c6c6d46 | 71b217b9d88ce8f863208704442582e3cbbcbf0f | refs/heads/master | 2021-05-07T16:19:22.959929 | 2018-02-24T18:46:06 | 2018-02-24T18:46:06 | 108,634,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,120 | py | # -*- coding:utf-8 -*-
__author = ''
# __classOf tensorboard画图 x_data^2 - 0.5 + noise
import tensorflow as tf
import numpy as np
# import matplotlib.pyplot as plt # py可视化
def add_layer(input, layer_name, in_size, out_size, activation_func=None):
"""
input -> X
in_size -> 上层的神经元数量
out_size -> 本层的神经元数... | [
"jevo747@yeah.net"
] | jevo747@yeah.net |
4da99b4a093c61d4daf718b7bde1b5a521e36282 | f92eaef05a9d4946fde399317b839b106bda6d4d | /reportlab/graphics/widgets/grids.py | 63b58d304b4f11ed1321f4da2c4fe9cb133a55ca | [] | no_license | Gilles00/Book-Loan-Database-System | c3dfd644da5fc5ecf9985252eb226d3e2db7d116 | 4c55b7941360e2dd10657c8c142179639acdb6cc | refs/heads/master | 2021-05-17T18:44:59.517167 | 2016-10-29T23:13:07 | 2016-10-29T23:13:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,138 | py | #Copyright ReportLab Europe Ltd. 2000-2012
#see license.txt for license details
#history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/graphics/widgets/grids.py
__version__=''' $Id$ '''
from reportlab.lib import colors
from reportlab.lib.validators import isNumber, isColorOrNone... | [
"jas_96@hotmail.co.uk"
] | jas_96@hotmail.co.uk |
e199d703f0fee1cd32a64fd66c40a0da9b0a147d | 33c6ebe7889dc18712c32b4930324be4be20db01 | /env/lib/python3.7/_weakrefset.py | 474ea42949829389ccfa7f3e9e3f6acece82818d | [] | no_license | cliffordten/todo_flask | 2e3f367e893bfc02f8cd25fb895c24f285969f73 | bb64a0b6f8734b29c8255f211df965fb46ffff2b | refs/heads/master | 2022-04-05T14:57:51.169937 | 2020-02-09T08:14:51 | 2020-02-09T08:14:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | /home/cliffordten/anaconda3/lib/python3.7/_weakrefset.py | [
"tenengclifford5@gmail.com"
] | tenengclifford5@gmail.com |
6d53fe6687138d5299d9d28f7f079070cd022aa1 | 82f247dc01f7d9a0f18f2b1cd344c71b81c243af | /ch02/if_else.py | 4b3762b2fc9987feba867ca977d2a1c80deb1ec1 | [] | no_license | zkx82558/TestSelfPython | e4704a1c6d64befc4b18a159c6d94f749d44c33f | d1ab63f8b43290d1edff299b6c1a5a020b6c87b1 | refs/heads/main | 2023-04-22T21:01:59.940343 | 2021-05-14T12:13:41 | 2021-05-14T12:13:41 | 367,351,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | '''
一般结构为
if 0/false:
elif :
elif :
else:
'''
a,b=5,10
print( str(a)+'小于'+str(b) if a<b else(a,'大于',b) ) #如果是正确的就输出前面的
#pass语句
'''
只是一个占位符,简单来说就是搭建一个结构搭建语句位置,让其不报错
''' | [
"441058456@qq.com"
] | 441058456@qq.com |
2eb3f7ac487d436c0475d55713fd6b2f091017d9 | 074190eb4a432de8e47bbc01c8c427be5f153c77 | /scripts/pyqtgraph-develop/examples/crosshair.py | 58739936edcdef78225e9e8a0401b7871ecba759 | [
"MIT",
"Apache-2.0"
] | permissive | kuldeepaman/tf-pose | e02916900108ed2a0764f51315c833ab2f11d11e | 8050912c52a7b4f3c8a2656f267d47ba21d093f6 | refs/heads/main | 2023-03-22T19:13:31.452347 | 2021-03-08T12:37:17 | 2021-03-08T12:37:17 | 345,632,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,751 | py | """
Demonstrates some customized mouse interaction by drawing a crosshair that follows
the mouse.
"""
import initExample ## Add path to library (just for examples; you do not need this)
import numpy as np
import pyqtgraph as pg
from pyqtgraph.Qt import QtGui, QtCore
from pyqtgraph.Point import Point
#... | [
"noreply@github.com"
] | kuldeepaman.noreply@github.com |
12824c7e93fc01d9f08866800fa2fddd9b04efd2 | 218e0259ba3c4e51c984f07f6ca1dde0499d7ae7 | /aasaan/travels/migrations/0008_auto_20180515_1347.py | 8fbb3ee8869c4c1da71dd330c5c44a50b6ea7ace | [
"MIT"
] | permissive | deepakkt/aasaan | c1f363c93ca1cbeda62d9a5b814bb2b4de10de7d | 77ef72e785e6ae562f51ae64fa9d85faf860c315 | refs/heads/master | 2022-12-09T03:51:38.892923 | 2018-11-12T14:09:52 | 2018-11-12T14:09:52 | 156,221,855 | 0 | 0 | MIT | 2022-11-22T02:36:32 | 2018-11-05T13:25:28 | JavaScript | UTF-8 | Python | false | false | 2,285 | py | # Generated by Django 2.0.4 on 2018-05-15 08:17
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('travels', '0007_auto_20180510_2116'),
]
operations = [
migrations.CreateModel(
name='TravelNote... | [
"manimaran.k@ishafoundation.org"
] | manimaran.k@ishafoundation.org |
f7b4bfe4d21444be371f00697b6ead2b65df1445 | abd77d61b1a8047f10ca37e5c86813840c8ad0bf | /Find Peak Element.py | 9e5d436052dfa6333dad08c449d11108f9292700 | [] | no_license | ffbskt/algorithm_cpp | 6b6d8e1470a2e3810625fa33a50e48efe9e3b352 | f30236c93093b727912ed18dc00201c79de23931 | refs/heads/master | 2020-03-18T17:15:49.437810 | 2018-07-10T15:41:36 | 2018-07-10T15:41:36 | 135,017,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | def grad(arr, p):
if (p > 0 and arr[p - 1] > arr[p]) and (p == len(arr) - 1 or arr[p] > arr[p + 1]):
return 'l'
if (p == 0 or arr[p - 1] < arr[p]) and (p < len(arr) - 1 and arr[p] < arr[p + 1]):
return 'r'
return 0
class Solution(object):
def findPeakElement(self, nums):
""... | [
"ffbskt@gmail.com"
] | ffbskt@gmail.com |
cf62c539355e00b0778c2edcea0d321f0c331db4 | f719fb52b2fee32742c62e0267633a68c228d982 | /2017-03-29/gen3.py | 3394a05273741324057417acd390b15bacc994bb | [] | no_license | elsys/python2016-2017 | 76e0fcb97b509a6f87fd010479b44ee702d7b2dd | 290ba35dc1242a9f13a320ada1ec0498acc8fb79 | refs/heads/master | 2021-06-18T08:07:12.025390 | 2017-06-14T15:41:12 | 2017-06-14T15:41:12 | 83,579,817 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 253 | py |
def fun(v):
print("calling fun() with value v=", v)
return 2*v
# print(fun(1))
def gen(maxv):
while maxv > 0:
print("before yield")
yield fun(maxv)
maxv -= 1
g = gen(3)
print(next(g))
# print(next(g))
"""
for v in g:
print(v)
"""
| [
"lubomir.chorbadjiev@gmail.com"
] | lubomir.chorbadjiev@gmail.com |
af4544008a15b8275bf84923813c4ff4d0db2147 | 9de63f1dda31499a6efe974f95faed4ecf52c9d4 | /tribune/urls.py | 55439c9039e53875e6c8b1ab70e14d6d19427f13 | [] | no_license | rickmutua/moringa-tribune | de58e0cad24ba766c6e090926b2bea6609c6923d | 5483aac62367cd25d7f93b15d1e070f8634ca078 | refs/heads/master | 2021-08-22T04:32:18.630397 | 2017-11-29T08:27:04 | 2017-11-29T08:27:04 | 110,851,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | """tribune URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"rick.mutua12@gmail.com"
] | rick.mutua12@gmail.com |
cb2ad544ec354652fc3ec9b093ddbc618597cd18 | 44badce6303eb8df34707edf27c5f8f2d2bc2697 | /redfoot-1.6/lib/redfootlib/rdf/model/schema.py | 2e583d06866efeaa30576f5f9794e1023a1d9554 | [] | no_license | jtauber/redfoot-orig | d371456f79e8b584f8e58037a5ab33011027484a | a5c26c53ba94c6d8970578bfcbc637aafaad1e11 | refs/heads/master | 2021-01-13T01:13:24.072000 | 2014-06-22T14:58:45 | 2014-06-22T14:58:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,998 | py | from __future__ import generators
from redfootlib.rdf.model.core import Core
from redfootlib.rdf.const import LABEL, COMMENT
from redfootlib.rdf.const import TYPE, STATEMENT
from redfootlib.rdf.const import SUBJECT, PREDICATE, OBJECT
from redfootlib.rdf.const import DOMAIN, SUBCLASSOF
class Schema(Core):
def l... | [
"eikeon@eikeon.com"
] | eikeon@eikeon.com |
57564d39e6c536603000f4b0bfa2566b09a6cdc2 | 672a189c1c81ce614445b4177ed798d0b1410dd0 | /ML/scikit-learn/Biclustering/2.a_demo_of_the_spectral_biclustering_algorithm.py | d1a87236b795b4b2d604ff440f2dfcebea6ed9c3 | [] | no_license | TienAnhNguyen11/test | 3b067c51c516c83fd0fa0fb408fe08599d4a60f2 | 33f4d6eb99bca800ecc2630de5368dc39da09b84 | refs/heads/master | 2021-05-23T12:21:22.623158 | 2020-04-26T16:46:11 | 2020-04-26T16:46:11 | 253,283,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,315 | py | print(__doc__)
import numpy as np
from matplotlib import pyplot as plt
from sklearn.datasets import make_checkerboard
from sklearn.cluster import SpectralBiclustering
from sklearn.metrics import consensus_score
n_clusters = (4, 3)
data, rows, colums = make_checkerboard(
shape=(300, 300), n_clusters=n_clusters, ... | [
"62338821+TienAnhNguyen11@users.noreply.github.com"
] | 62338821+TienAnhNguyen11@users.noreply.github.com |
b30c898127eeb421d002dd8175eb7f27e3de4b38 | c709e80b3c8ce19f08e99380b263d88a33d5717b | /web/web/urls.py | 94ab05c3a25c9d679e7e76109b945079668a7952 | [] | no_license | sjinu96/erAIser | 65557412a8194bf35e92b58a0eff52c62cf10f19 | 7f4bbf02f5af176d634233b0218ec5065c10fe61 | refs/heads/main | 2023-07-15T02:15:29.680093 | 2021-08-28T04:17:18 | 2021-08-28T04:17:18 | 394,695,782 | 1 | 0 | null | 2021-08-10T15:02:20 | 2021-08-10T15:02:19 | null | UTF-8 | Python | false | false | 1,015 | py | """erAIser URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"shkim960520@gmail.com"
] | shkim960520@gmail.com |
fe8e9488c5ed18762588b06bc9c15f7ea1d8989a | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /NyTjy8nmHj9bmxMTC_17.py | b636158314e9dca4037846b8c88031b88b2ef41e | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py |
import math as m
def vol_pizza(radius, height):
return round(m.pi * (radius**2) * height)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
9cc6d69a4edce9161dbfdc879d96259cff1bacef | 5be8b0f2ee392abeee6970e7a6364ac9a5b8ceaa | /xiaojian/first_phase/day06/exersice03.py | e8b14b51849de9acde1b36a099be0ce424888398 | [] | no_license | Wellsjian/20180826 | 424b65f828f0174e4d568131da01dafc2a36050a | 0156ad4db891a2c4b06711748d2624080578620c | refs/heads/master | 2021-06-18T12:16:08.466177 | 2019-09-01T10:06:44 | 2019-09-01T10:06:44 | 204,462,572 | 0 | 1 | null | 2021-04-20T18:26:03 | 2019-08-26T11:38:09 | JavaScript | UTF-8 | Python | false | false | 691 | py | # 在控制台中选取季度,并将相应月份打印出来
# season = input("请输入季度:")
# if season == "春":
# print("该季度有1 2 3 月份")
# elif season == "夏":
# print("该季度有4 5 6 月份")
# elif season == "秋":
# print("该季度有7 8 9 月份")
# elif season == "冬":
# print("该季度有10 11 12 月份")
# else:
# print("您的输入不合法")
season = input("请输入季度:")
season_d... | [
"1149158963@qq.com"
] | 1149158963@qq.com |
96dc3c86bc62f2653b292c5fda47932b50816c18 | e584377ec8c0ee8f41327343093fe2e2404e123f | /src/recommender.py | 61e905666f5c4a7f0bfffa06105d6abfeee060ee | [] | no_license | rihp/messenger-API | d0a0e81781dc02f4d8a0e8aa68eda4af69f2cae0 | 13aef6b0de541520bab437951cf0939423925ac1 | refs/heads/master | 2022-06-11T18:58:17.994991 | 2020-05-05T17:26:15 | 2020-05-05T17:26:15 | 260,215,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,563 | py | from .mongohandler import *
import pandas as pd
from nltk.sentiment.vader import SentimentIntensityAnalyzer
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.metrics.pairwise import cosine_similarity as cosine_distances
from sklearn.metrics.pairwise import euclidean_distances as euclidean_dista... | [
"rihp94@gmail.com"
] | rihp94@gmail.com |
f21207f83c5414b8cecd8289ba5f3829371714bc | ebf77af4ef2a85b2d8074409729d7b175d2174d9 | /Students_Assignments_2.4/src/app.py | 2c0ffcb51fe1665051ec71bcf61618cd8277e967 | [] | no_license | AndreiMsc/Students-Assignments | 8fa3d37cd184d2ed90617a056c1781876b9529a2 | 9cb0d3b9cb08ec6c581c01c022269d2df7a23d25 | refs/heads/master | 2021-01-11T10:39:09.649100 | 2018-05-21T15:05:01 | 2018-05-21T15:05:01 | 72,941,288 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | '''
Created on Nov 3, 2016
@author: AndreiMsc
'''
from repository.Student_repository import Student_repository
from controller.Student_controller import Student_controller
from repository.Assignment_repository import Assignment_repository
from controller.Assignment_controller import Assignment_controller
fr... | [
"noreply@github.com"
] | AndreiMsc.noreply@github.com |
bc96195975a91b5368e14f03c4909420a70a4ac3 | 65bf0113da75390c4cf3960b6a409aca15569a06 | /tests/migrations/0014_apply_report_file.py | e3afd0e4e25db2a852b10394c22262f44c292c82 | [] | no_license | wenpengfan/opsadmin | e7701538265253653adb1c8ce490e0ce71d3b4f6 | 3d997259353dc2734ad153c137a91f3530e0a8ec | refs/heads/master | 2023-03-29T11:50:10.756596 | 2020-11-16T02:41:18 | 2020-11-16T02:41:18 | 313,171,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2020-06-01 13:31
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tests', '0013_apply_feedback'),
]
operations = [
migrations.AddField(
... | [
"you@example.com"
] | you@example.com |
35da50ad5c852ae98de19d9982339fa99ef7edf8 | 695eb80108f8a3ff9b3c66a643a5b971bac71fb8 | /exercici1.py | d0efbc0f001e11c5d7f06c78149ef4703d9e2cba | [] | no_license | jcasas31-mvm/pytest-example | 1893bae6e17382080d7729eb02356c273a1fa0a1 | a955ba86164de9612fbdd284e1141a71ab9f813e | refs/heads/master | 2020-12-28T07:07:26.381086 | 2020-02-26T15:32:34 | 2020-02-26T15:32:34 | 238,222,665 | 0 | 0 | null | 2020-02-26T15:32:35 | 2020-02-04T14:14:35 | Python | UTF-8 | Python | false | false | 457 | py | #Function to transform the name and the number to a final and real id
def generate_userid (name, identifier):
letters=""
words=name.split(" ")
for w in words:
letters += w [0].lower()
return str(identifier)+ "_" + letters
#Function maked to do a test for the correct us of the program
def test_ge... | [
"respanya@isntitutmvm.cat"
] | respanya@isntitutmvm.cat |
14fe1e33fc1645540e59d89743ed690a7a227a75 | df241f721163727c178bb7b450f0369b94e163b4 | /food/management/commands/import_data.py | 4b74220d3723ae41eeb5b12518aa5b0e8d49e6bc | [] | no_license | Githb-usr/purbeurre-improvement | d0a7de4067b5206dbe0f16403a9a6fb2519c5fba | f623b0cbdb929710dca1331faa37f5148bb91fa1 | refs/heads/main | 2023-08-23T06:26:26.586400 | 2021-09-16T09:11:52 | 2021-09-16T09:11:52 | 397,843,013 | 0 | 0 | null | 2021-09-16T09:11:53 | 2021-08-19T06:40:13 | Python | UTF-8 | Python | false | false | 2,180 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand, CommandError
import logging
from errors import DatabaseError
from food.database_service import DatabaseService
from food.models import Product, Category, Store
# Get an instance of a logger
logger = logging.getLogger(_... | [
"tragopan@free.fr"
] | tragopan@free.fr |
207d946ba3e534cf1973ed881662b967e6231bbb | f212652a98a9ac29e9b0c484180bf1a5d312d943 | /bench/cacheout.py | b3510cb1407f9f6a462fcae294e4f59b70c6f5f0 | [
"BSD-3-Clause"
] | permissive | ContinuumIO/PyTables | f8b837d4c9d97e158e82780cc2fdd45ef046145b | 507b14659aa1b8cf9db17e83175ffaac272a8b6b | refs/heads/master | 2023-03-23T00:32:23.857869 | 2012-04-02T23:34:31 | 2012-04-02T23:34:31 | 3,834,969 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | # Program to clean out the filesystem cache
import numpy
a=numpy.arange(1000*100*125, dtype='f8') # 100 MB of RAM
b=a*3 # Another 100 MB
# delete the reference to the booked memory
del a
del b
# Do a loop to fully recharge the python interpreter
j = 2
for i in range(1000*1000):
j+=i*2
| [
"faltet@pytables.org"
] | faltet@pytables.org |
2a916755d6b8e25a39d5161ef7fcb1f6b6730526 | 28e54b74587bb2987234e9bee8e445b762024b18 | /autonetkit/nidb.py | ac97029f1078e8e73467dde3384f5a5509f42b68 | [] | no_license | sk2/ANK-NG | d6b49c864e6e9d5d1b7b6467c5ea2130e9079317 | 7b312fb7346dc2282904f0d9d0bf7441a186a2f5 | refs/heads/master | 2020-06-04T12:44:02.959146 | 2012-08-29T06:18:29 | 2012-08-29T06:18:29 | 4,663,827 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 20,488 | py | import networkx as nx
import pprint
import collections
import time
class overlay_data_dict(collections.MutableMapping):
"""A dictionary which allows access as dict.key as well as dict['key']
Based on http://stackoverflow.com/questions/3387691
"""
def __repr__(self):
return ", ".join(self.store... | [
"simon.knight@gmail.com"
] | simon.knight@gmail.com |
c2b0230fd4649205a2af5005f2af4618022e26bf | 94455e1efdeaca426a9125e636c43966760aad5d | /predict_it_generate.py | 482a7c2d851f8a91c28f14898ea3d24f6b57fcc5 | [] | no_license | lekhuong07/rs | 3cd9d5a41fa20318a712e0240e7a4130044a31a0 | b626c5ff4bfc703fd8b71ab92e3e13f0a8776aae | refs/heads/master | 2022-12-22T06:39:22.289814 | 2019-06-10T09:56:10 | 2019-06-10T09:56:10 | 188,208,895 | 0 | 1 | null | 2022-12-08T05:13:01 | 2019-05-23T10:02:59 | Python | UTF-8 | Python | false | false | 3,763 | py | from PIL import Image, ImageDraw, ImageFont, ImageEnhance
import requests
from io import BytesIO
import time
import random
import os
from services.storage import storage
from urllib.parse import urljoin
def layer_on_bw(img, img2):
img = img.convert("RGBA")
data1 = img.getdata()
img2 = img2.convert("RGBA")
... | [
"2016khuongle@gmail.com"
] | 2016khuongle@gmail.com |
85550ace314ee5a001b6eae2ace9561076fe4051 | ff5ad1258c4ce7b2e58df91125ee102787bc6664 | /cython/packages/setup.py | 43aae308f597b9d4a7e7d8c7aaf13f0e41cef99c | [] | no_license | dwane-gard/security | 86d2ba036d8ed884936b820215323ce41a68afc9 | f5ce5fa22d98c5b6c30e272ea2df33514a4e3ab9 | refs/heads/master | 2020-04-03T22:39:32.960497 | 2017-12-20T00:53:05 | 2017-12-20T00:53:05 | 56,112,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from distutils.core import setup
from Cython.Build import cythonize
setup(
ext_modules=cythonize('analyse.py'),
)
setup(
ext_modules=cythonize('pad.py'),
)
setup(
ext_modules=cythonize('pre_analysis.py'),
)
| [
"dgard02@gmail.com"
] | dgard02@gmail.com |
39e1082bc3f9a0266b64a450432d2e693e0658f2 | 6889349b568c50585687f6f0dca4c9b053ca9492 | /python/66.plus-one.py | 562ef762914ef68b3508d9e3813b0ebc563114b1 | [] | no_license | zprad/my-leetcode-path | c374a3203abbd95abb7eef7c6b6af08807526c76 | 3b78773e5ebd965e10219f8df9f0d6f357f08b73 | refs/heads/master | 2020-05-04T05:28:13.872452 | 2019-11-11T06:48:31 | 2019-11-11T06:48:31 | 178,985,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | #
# @lc app=leetcode id=66 lang=python3
#
# [66] Plus One
#
# https://leetcode.com/problems/plus-one/description/
#
# algorithms
# Easy (41.01%)
# Total Accepted: 376.8K
# Total Submissions: 918.9K
# Testcase Example: '[1,2,3]'
#
# Given a non-empty array of digits representing a non-negative integer, plus
# one to... | [
"z472969214@163.com"
] | z472969214@163.com |
4371bb13a321f82e1840ee263078b7c8781fb9c6 | c64e1f3e4f62e40e7f3f20916e69aa39d2eb5a3e | /kalada/core/config/env.py | 799490b1f153eeeb11125294cf6a3745ce1da614 | [] | no_license | Egnod/kalada | 8af747a06f59737c1caf86533225c754ed95895a | 07076556f847d59685c2f6002eef486e5e131c96 | refs/heads/main | 2023-01-21T23:36:02.363861 | 2020-11-30T08:47:20 | 2020-11-30T08:47:20 | 317,162,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | from enum import Enum
from kalada.core.config.configurator import configurator
class Environments(Enum):
production = "production"
develop = "develop"
@classmethod
def get_envs(cls):
return list(cls.__members__.keys())
ENV = configurator.get_config("env", default="develop")
if ENV not in ... | [
"alexander.lavrov@elastoo.com"
] | alexander.lavrov@elastoo.com |
27a0ce496cd0dd5833ce0e7148b2f8f5d26670a5 | 243f79af44cfd14a57ac4a7238b6ab3d3817547a | /spider/migrations/0001_initial.py | 7d81b70e20d79ae6900d05bc6082ddaae52f50c4 | [
"Apache-2.0"
] | permissive | KevinSwiftiOS/dspider | 07ebe579edaebe9020c6656b752a7f24abe7ed41 | c7fc8d981b8ea405b465863922f9d1dd7b44808b | refs/heads/master | 2020-03-21T21:45:59.759954 | 2018-06-28T10:39:25 | 2018-06-28T10:39:25 | 139,082,869 | 1 | 0 | null | 2018-06-29T00:44:52 | 2018-06-29T00:44:52 | null | UTF-8 | Python | false | false | 2,449 | py | # Generated by Django 2.0.5 on 2018-05-11 08:34
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"1271990125@qq.com"
] | 1271990125@qq.com |
0d9a7d280e51e2933b55ef5fd026a4939f72886c | f38e78214992de722a6ec2012e844bce7b3c59ed | /bin/taskwarrior | 25c78d0f0862d46f2f10288152304e2e7cfef0a4 | [
"MIT"
] | permissive | clckwrkbdgr/dotfiles | 20fb86f54d93ae4936c334898c3d7b1b3820fb06 | a7e880e189bfa4793f30ff928b049e4a182a38cd | refs/heads/master | 2023-08-31T13:13:47.533868 | 2023-08-30T18:32:00 | 2023-08-30T18:32:00 | 20,396,084 | 2 | 2 | MIT | 2022-10-01T16:35:31 | 2014-06-02T07:26:38 | Python | UTF-8 | Python | false | false | 1,716 | #!/usr/bin/env python
import logging
import functools
logger = logging.getLogger('taskwarrior')
from clckwrkbdgr import utils
import clckwrkbdgr.taskwarrior
from clckwrkbdgr.taskwarrior import TaskWarrior, Config
import clckwrkbdgr.logging
import click, click_default_group
import clckwrkbdgr.click
@functools.lru_cach... | [
"umi0451@gmail.com"
] | umi0451@gmail.com | |
0bd1449ea3085abcdfd7479254efe904cf1e3d66 | b9554d3fdac39153e6a0dfaed6a67979b65ac107 | /app/autoaugment.py | 805cc28c1df9075ebf8337c21da9822e5f84810d | [] | no_license | srimatta/spark-augmentation-app | 0b73220c672f9cdecffe6606249ea2efeb87d108 | ddf9a20d67629251769a6321ac4a683b59832583 | refs/heads/main | 2023-08-06T03:12:42.768966 | 2021-10-06T11:59:44 | 2021-10-06T11:59:44 | 413,746,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,263 | py | import random
import numpy as np
from PIL import Image, ImageEnhance, ImageOps
class ImageNetPolicy(object):
""" Randomly choose one of the best 24 Sub-policies on ImageNet.
Example:
>>> policy = ImageNetPolicy()
>>> transformed = policy(image)
Example as a PyTorch Transform:
... | [
"srinivasu.matta@gmail.com"
] | srinivasu.matta@gmail.com |
261f6ab0807ae5dc90e7cce9bdcc51d5cffe33c1 | 2870f142493bfe5b88f5b44ac474160709f279ef | /BakeBit/Software/Python/utils.py | 51a730fd2aebf8e0af9648aff6d63f51d5783b40 | [
"MIT"
] | permissive | tianyuax/NanoHat-OLED-Plus | 08ac274a2dafb4959d26edd8ed95c90c7cc3c589 | c148a6960c955d6f94688456165a02af394a4bce | refs/heads/master | 2020-03-11T23:52:10.644354 | 2018-04-22T13:47:08 | 2018-04-22T13:47:08 | 130,334,221 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#Sina weibo
App_Key = '' #KEY
App_Sec = '' #SEC
Acc_Tkn = '' #TOKEN
Exp_Tim = '' #过期时间
Cal_Url = '' #回调地址
Tag_Url = '' #安全域名
#Weather
API_KEY = ''
LOCATION = ''
UNIT = '' #
LANGUAGE = '' #
#Lang
Flag = "CodeName:000..已启动..连接正常.."
Countdown_Words = "年已经过去"
Countdown_Pic... | [
"tianyuax@users.noreply.github.com"
] | tianyuax@users.noreply.github.com |
f419ce5e5bc84d006ca53bda589f10f9f0722673 | 11c0f03879e519f1dafd874f5f69dbac376af23e | /main_reward_custom.py | 8cc8e174d310d60138b4c0ec896bb1a49cb871f8 | [] | no_license | anhndd/my_training | 8064ff5ca5fd6d1310b9beb8aa65af61c1947fba | f115944a08cb5e2a62d706b6ec81732ed82ff976 | refs/heads/master | 2022-01-15T19:57:22.354435 | 2019-05-23T08:35:39 | 2019-05-23T08:35:39 | 166,570,152 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,247 | py | import sys
import os
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
import constants
# split file
import DQNAgent
import SumoIntersection
if 'SUMO_HOME' in os.environ:
tools = os.path.join(os.environ['SUMO_HOME'], 'tools')
sys.path.append(tools)
else:
sys.exit("Please declare the env... | [
"anhndd1510@gmail.com"
] | anhndd1510@gmail.com |
7f976985c9fb89a251f83233b10769f1a03d190f | fa9d40632090bc4bd606333c9bc42c99840fd0b0 | /Python常用模块/Package2.py | 505fecf060f58a0d2f0f5365799f2491a90ceb02 | [] | no_license | WayneGreat/Python_Learning | 184ebbf50e82f9733b28d6a69144632ef5db1c11 | 2bacee8551b9245310af5c9b854abb0585ecf927 | refs/heads/master | 2022-12-06T02:10:25.417981 | 2020-08-30T13:15:37 | 2020-08-30T13:15:37 | 286,245,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | # coding:utf-8
import os
import csv
print(os.getcwd()) # 获取当前python交互模式的目录
# 方法一
f = open('test.txt', 'w') # 覆盖原来的test.txt文件或创建
f.write("Life is short,You need Python") # 写入文件
f.close() # 文件保存
f = open('test.txt')
print(f.read()) # 读取文件内容
print(dir(f)) # 获取f的方法
# 方法二
with open('test.txt', 'a') as f:
f.write... | [
"weihongye669@gmail.com"
] | weihongye669@gmail.com |
3a87d7a67be89339c07a55be231b10f8354d84e8 | 9b6233225e098e752e94ec17367c7e32254fbd98 | /youtubeapp/migrations/0004_video_deskripsi.py | f6fe86303e5d4f546534f26db68ae5c1bc3cb731 | [] | no_license | garryarielcussoy/Projek_Youtube | ebe74b2cd906d684f7e4135f4207dafd6894cc48 | 7548f1aedca0303c4641d6f7a723d51625e24ed1 | refs/heads/master | 2023-04-30T23:12:33.370609 | 2019-12-13T10:33:27 | 2019-12-13T10:33:27 | 227,544,610 | 0 | 0 | null | 2023-04-21T20:42:46 | 2019-12-12T07:18:42 | JavaScript | UTF-8 | Python | false | false | 384 | py | # Generated by Django 3.0 on 2019-12-12 09:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('youtubeapp', '0003_auto_20191212_0824'),
]
operations = [
migrations.AddField(
model_name='video',
name='deskripsi',
... | [
"garry@alterra.id"
] | garry@alterra.id |
5b2abe106d6315f4695312f7040b4d674324543f | 6515dee87efbc5edfbf4c117e262449999fcbb50 | /eet/Merge_k_Sorted_Lists.py | a79231a7a08f8900b10c642d099fb90026c69498 | [] | no_license | wangyunge/algorithmpractice | 24edca77e180854b509954dd0c5d4074e0e9ef31 | 085b8dfa8e12f7c39107bab60110cd3b182f0c13 | refs/heads/master | 2021-12-29T12:55:38.096584 | 2021-12-12T02:53:43 | 2021-12-12T02:53:43 | 62,696,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,102 | py | """
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.
Example:
Input:
[
1->4->5,
1->3->4,
2->6
]
Output: 1->1->2->3->4->4->5->6
"""
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, val=0, next=None):
# self.val = va... | [
"wangyunge1@yahoo.com"
] | wangyunge1@yahoo.com |
7e3a9e6157115e8749fc45063f332d33ffe55649 | 8bc2daac76c32034548ab199cb71a03e90076119 | /ps2-wrangling_subway_data/5fix_turnstile_data.py | 708000c47b00b2885e9d8008a1295d625c139562 | [] | no_license | adosrp/udacity-intro-data-science | 7750cae1a98556aa0290a9c6323fd5478665931b | 922b09c11a0e0eef2e8e3d8ab7a577dc5e6d650e | refs/heads/master | 2021-01-20T04:11:39.337169 | 2017-04-28T03:30:36 | 2017-04-28T03:30:36 | 89,655,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,991 | py | import csv
def fix_turnstile_data(filenames):
'''
Filenames is a list of MTA Subway turnstile text files. A link to an example
MTA Subway turnstile text file can be seen at the URL below:
http://web.mta.info/developers/data/nyct/turnstile/turnstile_110507.txt
As you can see, there are numerous dat... | [
"augustorp_tp@hotmail.com"
] | augustorp_tp@hotmail.com |
5bf3fc55846d509f07cf4b9046aa198b27b4772f | 77412a212df38692814333b17a5df76047cc7721 | /jw_testcase/modifyGrpCrmProfileAddress_HttpPostImpl.py | 5a98046fe3967f7df1d1ab689245b32023de1672 | [
"Apache-2.0"
] | permissive | indrajithbandara/interface-autotest | 3369a3dce3bd55a21145429d34801772ff346029 | ef938e2a5bae1261f8796eca9a6abfcb1d4d4050 | refs/heads/master | 2020-03-13T05:57:28.981541 | 2018-03-12T03:23:38 | 2018-03-12T03:23:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,178 | py |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# encoding:utf-8
import time,os,sys,datetime,unittest
import os
sys.path.append("../")
sys.path.append("../jw_modules")
import httplib
import unittest
import json
import urllib
import loginSessionKey
reload(sys)
sys.setdefaultencoding('utf8')
#Post http interface testing ... | [
"j_cui@jointwisdom.cn"
] | j_cui@jointwisdom.cn |
428efd1e457ce9a73fac207101e13dbe4233147e | c29e792e309eb8cd98b8e74969de63777f0cb6a1 | /ui/dash.py | 953865fcdc9352e9ba759cb7bfe17878e1e70a7f | [] | no_license | turtlecoder/INSIGHT-DE-Project | c02419c75c1ddc72922c2cee60b4d751ba624683 | 856c9bb0b6c83f1009d09ac29ad4fd82763a79ef | refs/heads/master | 2020-12-04T14:43:15.688918 | 2019-02-20T07:25:26 | 2019-02-20T07:25:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,073 | py | import dash
#from dash.dependencies import Input, Output, State
from dash.dependencies import Input, Output, State, Event
import dash_core_components as dcc
import dash_html_components as html
import plotly.plotly as py
from plotly import graph_objs as go
from plotly.graph_objs.scatter import Marker
from plotly.graph_o... | [
"ubuntu@ip-10-0-0-11.us-west-2.compute.internal"
] | ubuntu@ip-10-0-0-11.us-west-2.compute.internal |
e4dfdb94daf093cd52e6302726852bf21930d55b | 9c3bb98eb9d0a587a302bdfa811f7b5c6a5a0a37 | /Week 08/id_475/LeetCode_121_475.py | 080d793b5ed2d132838914141589fa8ebacaff79 | [] | permissive | chenlei65368/algorithm004-05 | 842db9d9017556656aef0eeb6611eec3991f6c90 | 60e9ef1051a1d0441ab1c5484a51ab77a306bf5b | refs/heads/master | 2020-08-07T23:09:30.548805 | 2019-12-17T10:48:22 | 2019-12-17T10:48:22 | 213,617,423 | 1 | 0 | Apache-2.0 | 2019-12-17T10:48:24 | 2019-10-08T10:50:41 | Java | UTF-8 | Python | false | false | 441 | py | # 买卖股票的最佳时机
#法一:暴力法 超时
class Solution(object):
def maxProfit(self, prices):
"""
:type prices: List[int]
:rtype: int
"""
if not prices:
return 0
res = 0
# 填充数组
for i in range(len(prices)):
for j in range(i+1,len(pric... | [
"noreply@github.com"
] | chenlei65368.noreply@github.com |
d437085467c8a9db1a4bff36e0c440dfaf4cd99d | 4a4dbe65316ab21a976817f035e9c46dfc6d923f | /ch02/ch02.py | 5933532b8b0da2bb36ac91dfe816c22799ca28b2 | [] | no_license | wildjan/Python4data | c6fc6c034983ddc9ac9d31a6a85207f1eec4e951 | d91b5458adf88179e922575bcf96cd5e1e965fef | refs/heads/master | 2020-12-30T13:45:57.527166 | 2017-06-12T20:08:18 | 2017-06-12T20:08:18 | 91,248,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,489 | py | # coding: utf-8
from __future__ import division
# # Introductory examples
# ## 1.usa.gov data from bit.ly
# In[ ]:
from IPython import get_ipython
ipython_shell = get_ipython()
get_ipython().magic(u'pwd')
get_ipython().magic('matplotlib inline')
# In[ ]:
import os
path = r'C:\\Users\\jwild\\Source\\Repos\\Pyt... | [
"jan.wild@hotmail.com"
] | jan.wild@hotmail.com |
9c582da32d47531d42cad140b9fc59520f92b4b2 | 09b4096c1ded507c45bfc6349a167c8e0d347c38 | /pyramids_multires.py | 6d9cf8a37f28dd26ffcf909cf18825c816613eaf | [] | no_license | Ding626/Gaussian-Laplacian-Pyramids-and-Multiresolution-Blending | 522c538962f906ba549336401b56696d0b412885 | 60da2a550428d73af4a9dde179dcc80002814760 | refs/heads/master | 2022-09-06T20:47:30.044926 | 2020-05-29T19:13:27 | 2020-05-29T19:13:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,527 | py | import cv2
import matplotlib.pyplot as plt
import numpy as np
#Gaussian Pyramid
def gaussian_pyramid (image, levels,scale_percent):
reduced_images = [image]
for i in range(levels):
width = int(image.shape[1] * scale_percent / 100)
height = int(image.shape[0] * scale_percent / 100)
dimen... | [
"35292631+MalayNagda@users.noreply.github.com"
] | 35292631+MalayNagda@users.noreply.github.com |
3c01f21dbd08970de193bfcdc138db1983496074 | b35e04ddb05fd9e3506f3b6cf9b06b5d5a6aba0f | /SocialNetworkHarvester/snh/management/commands/crondm_dl.py | e7c3358690f8df010923fc724bdd0d09114cfa2e | [] | no_license | unclesaam/Social-Network-Harvester | 4ec758807c555692120df47a1b4c33727aabaf6f | 1e1900c11a22780db49ae0d3190d4f5eea22ecff | refs/heads/master | 2021-01-18T06:17:30.971495 | 2016-09-02T20:51:55 | 2016-09-02T20:51:55 | 32,751,690 | 1 | 0 | null | 2015-03-23T18:43:05 | 2015-03-23T18:43:04 | JavaScript | UTF-8 | Python | false | false | 1,974 | py | # coding=UTF-8
import os
import subprocess
from tendo import singleton
from django.core.management.base import BaseCommand, CommandError
from django.core.exceptions import ObjectDoesNotExist
from snh.models.dailymotionmodel import *
from settings import MEDIA_ROOT
import snhlogger
logger = snhlogger.init_logger(__n... | [
"pierreyves.langlois@gmail.com"
] | pierreyves.langlois@gmail.com |
203d1af113c342bdf6fc9feedf91827289821635 | b784825bccae7a681930e333de1f4629c946896d | /exercises/decorators.py | dad24fb01df410dd94f7c0975b55256487a37780 | [] | no_license | rubentrevino95/python-exercises | 1160e9e33894202a593f1f5c9df48fc6af642a1d | ae41d227891c983fa08abdb5bff1746e4272faff | refs/heads/master | 2023-04-01T06:27:53.195776 | 2021-03-28T18:52:33 | 2021-03-28T18:52:33 | 273,106,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py |
def hello(name='Ben'):
print('Hello() function has been executed')
def greet():
return 'greet() func inside hello'
def welcome():
return 'This is welcome() inside hello'
if name == 'Ben':
return greet
else:
return welcome
my_new_func = hello('Ben')
print(greet(... | [
"rubentrevino95@gmail.com"
] | rubentrevino95@gmail.com |
865414dde07d0b8bfa8f20c4e277886f9e9c74ae | ec4dc87a3691f341aa772b82b49d375e0cd559d9 | /crypstal-api-server-new-version/TestApp/migrations/0001_initial.py | 4be489f08457f9746629f124dff0a74dc557bbba | [] | no_license | dskym/SWMaestro_Crypstal | 2a0f03fd6f15707e2ec725ed40c53cd8b77c78e5 | e6d2147954c14532a122284bb848ce68c723092d | refs/heads/master | 2020-03-26T10:57:40.249704 | 2018-11-15T21:12:29 | 2018-11-15T21:12:29 | 144,822,626 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,481 | py | # Generated by Django 2.1.2 on 2018-11-11 21:27
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Bithumb_BTC_1d',
fields=[
... | [
"dskym@naver.com"
] | dskym@naver.com |
05d15ba52411e37e76fb61dca51ea0a6c08a1a19 | f3865525bfe0db0b7ba2f497879161069bac544b | /commandsubmitter.py | 173d13788cb2557d44823c4c2f9436d94aebfa7b | [] | no_license | mhaberler/messagebus | 6ccd17d9602541ec3a11cfa7a23c47e5371f484d | 7ce3ccdeac0d4050e87e5bbe4301baa09390e75c | refs/heads/master | 2020-06-01T06:45:11.779493 | 2014-02-20T21:26:54 | 2014-02-20T21:26:54 | 16,331,543 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,025 | py | import os, time
import zmq
from optparse import OptionParser
parser = OptionParser()
parser.add_option("-c", "--cmd", dest="cmduri", default="tcp://127.0.0.1:5571",
help="command URI")
parser.add_option("-r", "--response", dest="responseuri",
default="tcp://127.0.0.1:5573",
... | [
"git@mah.priv.at"
] | git@mah.priv.at |
d6a5367ebe62ca409d1db2fc1febacb46d218206 | e5dec9aaf823f097dd327a6f6cc1e068ed400495 | /run.py | f53fdbdde11ef5f6424e980171981467f4076e3c | [] | no_license | inesnago/first-python | 98e7edfebf8b03be1aa7fc6c774f88295adca0d9 | 4ab11d0641fbda2185691ae921895e7b025c9424 | refs/heads/master | 2023-01-06T08:51:04.593450 | 2020-11-08T10:18:36 | 2020-11-08T10:18:36 | 309,957,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | import os
import json
from flask import Flask, render_template, request, flash
if os.path.exists("env.py"):
import env
app = Flask(__name__)
app.secret_key = os.environ.get("SECRET_KEY")
@app.route("/")
def index():
return render_template("index.html")
@app.route("/about")
def about():
data = []
... | [
"imsnago@gmail.com"
] | imsnago@gmail.com |
9fe0e82841da604d838bd978c292148fcea74db9 | 7f3e1c3c8a7abd8f766634e262f6ce0a88793610 | /theWeatherEffectFinalPassing.py | 3e90ad0955d8dd3d1f8a4508b8b22a3536f83504 | [] | no_license | lukasp1/fantasy_football | 1718464a25eaac8bc1e063afa2fdc7521db83d0e | a4736bcfd4655dd5f3ab6355782fb4e2ad8790c7 | refs/heads/master | 2021-01-13T01:18:28.121027 | 2018-04-30T12:06:14 | 2018-04-30T12:06:14 | 81,506,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,479 | py | import nflgame
totalColdPasses = 0
totalColdPassYards = 0
totalColdGames = 0
totalChillyPasses = 0
totalChillyPassYards = 0
totalChillyGames = 0
totalMediumPasses = 0
totalMediumPassYards = 0
totalMediumGames = 0
totalWarmPasses = 0
totalWarmPassYards = 0
totalWarmGames = 0
totalHotPasses = 0
to... | [
"noreply@github.com"
] | lukasp1.noreply@github.com |
61ff1e6ff4a379d6d78f2df007248cc7575770d2 | e25366b20fcd311c6cc7c5ed856c514a3601c6b0 | /2019292_a4.py | f2186d8ff6664d3c277760d57fa987776aa6c51d | [] | no_license | itida99/Grid-Game | f94e6831d6254e15c7d6d9d93457a94aae543b1f | f2441accefa79f6a30bba0f823b77ca1db55c282 | refs/heads/master | 2021-05-18T17:17:27.816525 | 2020-03-30T14:53:19 | 2020-03-30T14:53:19 | 251,334,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,737 | py | import random as r
import os
import time
class Grid:
def __init__(self,n):
self.n = n
self.start = r.choice([(0,r.randint(0,n-1)),(r.randint(0,n-1),0),(n-1,r.randint(0,n-1)),(r.randint(0,n-1),n-1)]) #randomly generating start
self.goal = r.choice([(0,r.randint(0,n-1)),(r.randint(... | [
"noreply@github.com"
] | itida99.noreply@github.com |
82137e063d0e9a19d104b34cceb3a921534b995f | 2420da961b7f828170f566b7b7dfe0ebd782e44b | /PYTHON/functions/multiple inputs.py | 88895c2b840363b394c18b03cf2728c6d28b42ec | [] | no_license | KDiggory/pythondfe | 07c8249d6a74bdf428a5fd41aff1056baf6a4c08 | 5eb4dd9668c86ebae04f32890250d982561aa9d5 | refs/heads/main | 2023-08-16T11:47:06.612926 | 2021-09-19T20:45:24 | 2021-09-19T20:45:24 | 402,722,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | def studentdeets(nameVar, agevar):
if len(nameVar) > agevar:
print("Your name has more letters than years you have lived")
nameGtAge = True
else:
print("You are older than the amount of letters in your name")
nameGtAge = False
return {"name": nameVar, "age": agevar, "nameleng... | [
"katie.diggory@gmail.com"
] | katie.diggory@gmail.com |
248529116f71438ef823509fb543cc5873f1823b | d6c34e508a159e410780601443edd84ccb424010 | /blog/migrations/0001_initial.py | 9af51c05f0ac3973c1bb937421f21e466a0f21d2 | [] | no_license | misticque3/My-First-Blog | dc4e54ff2753afc44e3a3afe2c3c85e6cf106636 | ea8ecfbb56025ac9386c2092e91e77d7e4fff46a | refs/heads/master | 2020-06-13T02:04:50.395440 | 2019-06-30T09:08:11 | 2019-06-30T09:08:11 | 194,496,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | # Generated by Django 2.0.13 on 2019-06-30 08:51
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AU... | [
"zaricmilos@gmail.com"
] | zaricmilos@gmail.com |
ebf05022393496f5a3c2690de8595fb5f621a652 | fcfb3f5e94f35aa0d7c5632efec1d1c15d66e856 | /day9/flask_day3/inherit_demo/app.py | 826748d83c0c62228ad9455de8a5457081fe0b4b | [
"Apache-2.0"
] | permissive | gaohj/wh1904js | 98a9d1dd63d42766b656f07ce537b5933eaafb78 | a3af38f8311f79eb9f2e08a3de16dd1e02c40714 | refs/heads/master | 2021-07-11T17:16:49.885524 | 2020-01-17T09:48:15 | 2020-01-17T09:48:15 | 232,022,360 | 0 | 0 | Apache-2.0 | 2021-03-20T02:41:32 | 2020-01-06T04:14:22 | JavaScript | UTF-8 | Python | false | false | 322 | py | from flask import Flask,render_template
from flask_script import Manager
app = Flask(__name__)
manager = Manager(app)
@app.route('/')
def hello_world():
return render_template('index.html')
@app.route('/detail/')
def details():
return render_template('detail.html')
if __name__ == '__main__':
manager.run(... | [
"gaohj@163.com"
] | gaohj@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.