blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
559360089e123deb4b2d2c271a10f05fa04a509f | 486332319dcc06d5979ddf60e4d43556288219ac | /Tls2Music4.py | 17322066a71db0cfa9435a2434180498fccd9d83 | [
"MIT"
] | permissive | sftcd/tlspad | 7dcef00f92b2c5a477f9a1be450a6c66f1ce9b90 | 16407215ee2a02076abd8137ead603a427a5c8ab | refs/heads/master | 2020-04-15T06:47:12.648127 | 2019-07-09T22:13:09 | 2019-07-09T22:13:09 | 164,473,120 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,227 | py | #!/usr/bin/env python3
# Copyright (c) 2019 Stephen Farrell, stephen.farrell@cs.tcd.ie
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation th... | [
"stephen.farrell@cs.tcd.ie"
] | stephen.farrell@cs.tcd.ie |
ccfc4d4d8fbed4361fed4ca7c22ef09be420437b | c0fa79ccc608c0da82a0df7fa72230d27ab78ce6 | /blog/views.py | 60b7c3afbb95ca34cb01d9ec3b6e360bd64e2b3b | [] | no_license | leonorelise/my-first-blog | 2a56ccb7cb7da9d8260fd51c5ec418c3ba7c2b12 | c936e8f1b6254eceda8efcd284e6d6603209e3dd | refs/heads/master | 2021-07-11T22:19:31.455199 | 2017-10-15T00:22:33 | 2017-10-15T00:22:33 | 106,955,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py | from django.shortcuts import render
from django.utils import timezone
from .models import Post
from django.shortcuts import render, get_object_or_404
from .forms import PostForm
from django.shortcuts import redirect
# Create your views here.
def post_list(request):
posts = Post.objects.filter(published_date__lte=t... | [
"leonorelise@gmail.com"
] | leonorelise@gmail.com |
0cce371b26cc503d2072a6754493cd4e3c5ce7cb | 4749d3cf395522d90cb74d1842087d2f5671fa87 | /alice/LC686.py | 67bed14402b09716dbc8ef161fcd6f9c04fb99e2 | [] | no_license | AliceTTXu/LeetCode | c1ad763c3fa229362350ce3227498dfb1f022ab0 | ed15eb27936b39980d4cb5fb61cd937ec7ddcb6a | refs/heads/master | 2021-01-23T11:49:49.903285 | 2018-08-03T06:00:16 | 2018-08-03T06:00:16 | 33,470,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | class Solution(object):
def repeatedStringMatch(self, A, B):
"""
:type A: str
:type B: str
:rtype: int
"""
temp_out = len(B) / len(A)
end = self.find_substring_ending(A * (temp_out + 2), B)
if end == -1:
return -1
else:
... | [
"aliceadelice@gmail.com"
] | aliceadelice@gmail.com |
be1cc676ac2e7786c36d465de965049c01efb6f0 | 57cbf1532a63d9beeff0e12c66fe187ed6ecb67a | /PYTHON/010discount.py | fbc5e76809cbc0327cd294d63c887e9e1a513d2d | [
"MIT"
] | permissive | ALLANKAKAI/HTML-Tutorials | c6da34ea06b2ff288b21b8105ecd7fcb7f518492 | 6ccaf8b2fc0ad5c86fbabfcda38b1dc78cf33bea | refs/heads/master | 2020-06-10T07:54:18.420896 | 2019-07-05T00:12:00 | 2019-07-05T00:12:00 | 193,620,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | def new_price(old_price, discount):
x = (1-discount)*old_price
s = format(x, ".2f")
return s
car = new_price(2.89, 0.2)
print(car)
| [
"allankakai26@gmail.com"
] | allankakai26@gmail.com |
07ffac3ce1e2a9ef29d17775d50bc2c6979df431 | 3f6c16ea158a8fb4318b8f069156f1c8d5cff576 | /.PyCharm2019.1/system/python_stubs/1707563220/resource.py | cfb221481b898c344ab21274ba2bd7f905e9409f | [] | no_license | sarthak-patidar/dotfiles | 08494170d2c0fedc0bbe719cc7c60263ce6fd095 | b62cd46f3491fd3f50c704f0255730af682d1f80 | refs/heads/master | 2020-06-28T23:42:17.236273 | 2019-10-01T13:56:27 | 2019-10-01T13:56:27 | 200,369,900 | 0 | 0 | null | 2019-08-03T12:56:33 | 2019-08-03T11:53:29 | Shell | UTF-8 | Python | false | false | 5,485 | py | # encoding: utf-8
# module resource
# from /usr/lib/python3.6/lib-dynload/resource.cpython-36m-x86_64-linux-gnu.so
# by generator 1.147
# no doc
# no imports
# Variables with simple values
RLIMIT_AS = 9
RLIMIT_CORE = 4
RLIMIT_CPU = 0
RLIMIT_DATA = 2
RLIMIT_FSIZE = 1
RLIMIT_MEMLOCK = 8
RLIMIT_MSGQUEUE = 12
RLIMIT_NICE... | [
"sarthakpatidar15@gmail.com"
] | sarthakpatidar15@gmail.com |
b320ac87230dbe9284f07db5ca2e2e6f4b8da437 | 1b4fa10bf9eb0464664d4d865a669f0b00953223 | /user/migrations/0001_initial.py | 1feb4711d0d787d052546c95c227fae9b44e02ae | [] | no_license | vkbhadauria/message | 4d6d2b52978da9da0154f2a2a5b62da1c54bb21c | e19c8ed260ae74d2b0458547e179f68351ada620 | refs/heads/main | 2023-08-02T15:28:08.417857 | 2021-09-29T05:25:19 | 2021-09-29T05:25:19 | 411,535,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,958 | py | # Generated by Django 3.2 on 2021-06-13 13:13
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 = [
('auth', '0012_alter_user_first_name_max_lengt... | [
"vkbhadauria@gmail.com"
] | vkbhadauria@gmail.com |
503f93476c37fc1bdb04fa1b8b3e840788181410 | b098193043f0ecbbaca881731c80c46028bd88d2 | /venv/lib/python3.8/site-packages/pykap/get_bist_companies.py | 764da5dceeb763f31c7df6d2272679f5b833b093 | [] | no_license | melcaliskan/kap_fastapi | 88b389a23647386caa48b3565d135d213c853eb1 | 900a1abe34582d6476466d06a2794b51fc8945b1 | refs/heads/master | 2023-05-31T19:40:46.500018 | 2021-07-02T13:13:00 | 2021-07-02T13:13:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,935 | py | from bs4 import BeautifulSoup
import requests
import json
import pandas as pd
import pkgutil
def get_bist_companies(online = False,output_format = 'pandas_df', **kwargs):
if(online==False):
bist_list = pkgutil.get_data(__name__, "data/bist_companies_general.json")
if(output_format=='pandas_df'):
... | [
"dezpyw-wyjqej-2Senwu"
] | dezpyw-wyjqej-2Senwu |
3bcdcd1ec3d8551f1937844d1b5049ba7f40e0de | 21bbcc4898cc653d2a81b91f500293f7e6932fc8 | /users/views/bet.py | 44bac74410fd01c5813a9e733895dec785afbeca | [] | no_license | ewgen19892/auction | 7e116354008349bbde147b42ee1a909cac7fc00b | 1449156a4985ca7757e342613e0762e11ed9aa30 | refs/heads/master | 2023-05-31T23:02:14.539923 | 2021-06-30T13:21:13 | 2021-06-30T13:21:13 | 381,708,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | """Bets views."""
from rest_framework.generics import GenericAPIView
from rest_framework.mixins import (
CreateModelMixin,
ListModelMixin,
RetrieveModelMixin,
)
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from users.models.bet import Bet
from users.se... | [
"e.bohovchuk@admitad.com"
] | e.bohovchuk@admitad.com |
3266e22a3783c4ec392e4f1420a7dc88eb2a9f47 | b43a376e724831b00dd1fef58fce9c66439928e1 | /refugio/apps/mascota/apps.py | d034b98692d06bff65e367f720ef0413f0cfb6b8 | [] | no_license | Andre-98/ProyectoProgra3 | 38d6b27fa7585543e2f6205671b0ae703f4ad0c7 | 897aa46cc175b26db099c3f85e63f226a54eb031 | refs/heads/master | 2020-03-26T20:56:50.246693 | 2018-08-21T02:48:41 | 2018-08-21T02:48:41 | 145,356,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class MascotaConfig(AppConfig):
name = 'mascota'
class AnimalConfig(AppConfig):
name = 'animal'
| [
"andre.251998@gmail.com"
] | andre.251998@gmail.com |
037aeaa7018d81502d5f2defc3ffaf6efd3e49ce | fa3be87c705d058930b3bf2a6bbf3ccfe8f4529f | /main.py | fd732e43e77df8507a1721ae29e4304bbd56ea47 | [] | no_license | davidsansome/babbledrive | 64cadb8338f877c303c5414651e4218fe5aee883 | 3c1ae1de14ac2c17bf30659d0ab00c578e02e59b | refs/heads/master | 2021-01-21T13:11:06.489448 | 2017-02-14T12:44:14 | 2017-02-14T12:50:33 | 1,591,551 | 22 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,214 | py | import glob
import logging
import optparse
import sys
import generator
USAGE = "%prog [-v] [<package> [<version]]"
def main():
# Initialise logging
logging.basicConfig(
level=logging.DEBUG,
format="%(asctime)s %(levelname)-7s %(name)-32s %(message)s",
)
logger = logging.getLogger("main")
# Parse ... | [
"me@davidsansome.com"
] | me@davidsansome.com |
2c7206abda87ae667035b045b3fa60385a359a2d | 5f21855ce33ee2ca969871ed020cfaa4eb3eae51 | /src/paramsets/std_gamma.py | 620f2c60b7900b8cec76de26ae52015aae310c7b | [
"MIT"
] | permissive | neuro-lyon/multiglom-model | fae38f1488c744122d2a87942d28ac8b168521a5 | b56da156f57f8fb17f2f2cb14cf772948c740372 | refs/heads/master | 2021-01-17T06:27:25.591644 | 2013-08-16T15:45:01 | 2013-08-16T15:45:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,687 | py | from brian.stdunits import *
from brian.units import *
F = 1
N_SUBPOP = 2
INTERCO_RATE = 0
INTERCO_STRENGTH = 0
PARAMETERS = {
'Common':
{'simu_dt' : 0.05*msecond,
'simu_length' : 3000*msecond,
'resample_dt': 0.5*msecond,
'N_subpop' : N_SUBPOP,
'N_mitral' : N_SUBPOP*100*F,
'inter... | [
"vincent@ra.fake"
] | vincent@ra.fake |
5b3f7af6254318f0492a9a4656e243ea1a650008 | 18f776553a59a89faf05144ed1a69dc563dc4e9e | /Algorithm/insert_sort.py | cbdb6501102014039571662e8f5b9136479ee6a9 | [] | no_license | g-lyc/LeetCode | 274feff3b6c61da0ec8726deac0b298baed5cf10 | fa45cd44c3d4e7b0205833efcdc708d1638cbbe4 | refs/heads/master | 2022-12-13T14:50:02.976951 | 2020-09-03T09:39:58 | 2020-09-03T09:39:58 | 259,212,315 | 15 | 1 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | # coding:utf-8
def insert_sort(alist):
"""插入排序"""
n = len(alist)
# 从右边的无序序列中取出多少个元素执行这样的过程
for j in range(1, n):
# j = [1, 2, 3, n-1]
# i 代表内层循环起始值
i = j
# 执行从右边的无序序列中取出第一个元素,即i位置的元素,然后将其插入到前面的正确位置中
while i > 0:
if alist[i] < alist[i-1]:
... | [
"309080979@qq.com"
] | 309080979@qq.com |
30cf533e594169c4d193d3292bc2412b5933709d | 99d40c8682db386f36e6bb78e2255994a0cd8119 | /message_page/urls.py | 5b8a146291cdb46189e9b5c8aaf3a5f955cb3be1 | [] | no_license | ritik-ds/MessagesPage | 062247ac75e7c6464f06d213eadd94e5684d22d8 | 531d5b150b0a4247288a6b05884901fa4919d954 | refs/heads/main | 2023-08-16T15:37:41.763863 | 2021-09-26T16:15:31 | 2021-09-26T16:15:31 | 410,604,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | """message_page 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-... | [
"ritik.ds@somaiya.edu"
] | ritik.ds@somaiya.edu |
9d90eb3b58b12524a8e4ef7ed0908edabb7cce7d | 81c79acf5c01f46ae24e642e4c23055963bf0414 | /osoby/urls.py | 6b3bf1ee760f1e7b126a6df98e0736293bf87abe | [] | no_license | Bulg0t/DjangoApp | f8c39b180334a586b8a590f5e952f2d2587ad4ed | 976bb53af0e93bcb18267bdf1c83a8417b9f9cc7 | refs/heads/master | 2022-12-27T20:00:47.310989 | 2020-10-08T11:32:03 | 2020-10-08T11:32:03 | 296,302,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | from django.urls import path
from . import views
urlpatterns = [
path("", views.index),
path("onas/", views.onas),
] | [
"michal.potocki@lo1.sandomierz.pl"
] | michal.potocki@lo1.sandomierz.pl |
93716f1335221e71d0d47a30e7e3392e45f97c9e | 776fd34465e41d8ff6e1ed3a6333991c53de3bc9 | /Clone_django/mysite/mysite/urls.py | 479a9635e1f547d06fd83db8a43cddfedc6e2ff8 | [] | no_license | GuptaHarsh7/djangotut | cf7ea5347b033ab2d2e5eaf2f850c54db3eb8b65 | 08b742040ae4edcb5509503cef043512dc96a802 | refs/heads/main | 2023-03-13T02:04:23.152349 | 2021-03-08T19:53:05 | 2021-03-08T19:53:05 | 343,714,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | """mysite 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 ... | [
"harshgupta6641@gmail.com"
] | harshgupta6641@gmail.com |
050c93c94e4e2195c98ce7c601a22585a18dff78 | 30d6a38c819afaeceb15796be916bb27f496b1c9 | /Semester 7/Natural language processing/preprocessing.py | 0ad03df7e2ff6637eedee1d23642f1a7f6d75cca | [
"MIT"
] | permissive | MaKToff/SPbSU_Homeworks | 23417085252231b1591bbc6e274fc29a3602a6a2 | b4bb185aa4bd9cb75f6ba5ce751ea1ec69397f93 | refs/heads/master | 2021-06-04T23:19:52.882605 | 2018-01-20T13:52:15 | 2018-01-20T13:52:15 | 24,901,324 | 0 | 1 | null | 2015-05-10T15:43:27 | 2014-10-07T17:05:26 | F# | UTF-8 | Python | false | false | 4,128 | py | import os
import keras
import numpy as np
from sklearn import preprocessing
from sklearn.model_selection import train_test_split
from lang_config import *
def count_chars(text):
"""
Counts number of chars in text based on given alphabet.
"""
alphabet_counts = [0] * len(alphabet)
for char in text:... | [
"mihail.kita@gmail.com"
] | mihail.kita@gmail.com |
7f2883c014815321979ee55ada5dd9725547b51c | bbf7eeaa891be95f83ffa4369f72a545183fd7f5 | /dashboard/db/zombie_fix.py | 5788bee22ee831e12bf63f90f327e858fe0ac3ec | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | digirati-co-uk/elife-dashboard-fork | c52c744ec96e13b2d1997f27107b4cab3f468780 | 9b949d4a5907ccf11d65b705e8ff7ba017e59333 | refs/heads/master | 2021-04-03T02:07:28.184201 | 2018-03-09T16:29:36 | 2018-03-09T16:29:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,135 | py | from config_decider import config as settings
import psycopg2
_sql_problematic_articles = "select article_identifier \
from article \
group by article_identifier \
having count(article_identifier) > 1;"
_sql_create_functions = " \
CREATE OR REPLACE FUNCTION select_article_ids_by_identifier(text) RETU... | [
"jenniferstrej@gmail.com"
] | jenniferstrej@gmail.com |
78669412332bf240c5ec956475870991234d4e0a | f11600b9a256bf6a2b584d127faddc27a0f0b474 | /normal/456.py | 66eab5b1b483bdf7f16872bae3ee0dba39feae91 | [] | no_license | longhao54/leetcode | 9c1f0ce4ca505ec33640dd9b334bae906acd2db5 | d156c6a13c89727f80ed6244cae40574395ecf34 | refs/heads/master | 2022-10-24T07:40:47.242861 | 2022-10-20T08:50:52 | 2022-10-20T08:50:52 | 196,952,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | class Solution(object):
def find132pattern(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
stack = []
_MIN = float('-inf')
for i in range(len(nums)-1, -1, -1):
if nums[i] < _MIN:
return True
while stack ... | [
"4903319173@qq.com"
] | 4903319173@qq.com |
a10cb0896918768454ee5b233e98ddf4900e8777 | a1eced11c137f4b7c9f2a41a9519d647f685a05c | /test/test_day25.py | fb0f5312c4358bdde16121412581492889858f49 | [
"MIT"
] | permissive | frangiz/AdventOfCode2017 | 67b5ca2a8a1a52b397b0bd7052817e15ecf69012 | 5fc171d4a83bfb9a408b4647ded4cb3efd12247e | refs/heads/master | 2021-09-01T14:11:01.067359 | 2017-12-27T11:14:56 | 2017-12-27T11:14:56 | 112,765,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,872 | py | """The tests for day25."""
from days import day25
from ddt import ddt, data, unpack
import unittest
import util
@ddt
class MyTestCase(unittest.TestCase): # noqa D101
@data([['Begin in state A.',
'Perform a diagnostic checksum after 6 steps.',
'',
'In state A:',
... | [
"frangiz@gmail.com"
] | frangiz@gmail.com |
6aca02bb5efcef065a9dbd7d46d07f6bb6937bf1 | 76e8afe527e191e6291562c6140606c16d7385df | /wsgi.py | 75ad6b25013956a7af77660d24fbd9058b5cb79c | [] | no_license | socek/tklive2013 | dfa896800713832d3f1b4a11f35aecf723e09328 | 2fa8c6fd099a66b7f84fc5df94d0a2b542a44f75 | refs/heads/master | 2021-01-22T05:16:34.001073 | 2013-02-25T13:14:43 | 2013-02-25T13:14:43 | 42,201,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | #!/home/socek/www/2013.turniejkosza.pl/venv/bin/python
import os, sys
sys.path.append('/home/socek/www/2013.turniejkosza.pl/tklive')
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' # this is your settings.py file
os.environ['PYTHON_EGG_CACHE'] = '/tmp'
import django.core.handlers.wsgi
application = django.core.han... | [
"msocek@gmail.com"
] | msocek@gmail.com |
3ddecb12bcd36de8c4d3587927281511216eaa9b | 8f88a75c4f58bb8f16a59d5a4b33a20c7ebe64dd | /HW3/Auxillary.py | 531fbcd2db3be0ae1f4d0e5f525a38443d265a6c | [] | no_license | Pradtha/InfoRetreival_SearchEngines | 07d29627cea7b668deab7507fe1963d2e09f67f1 | aadf19163e8067a6b1738ddca048dc1e5b07429d | refs/heads/master | 2021-01-10T16:01:45.884368 | 2016-04-27T22:17:39 | 2016-04-27T22:17:39 | 53,242,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | import sys
import csv
from collections import defaultdict
import networkx as nx
csvFile = open('pagerankdata.csv',"r")
csvFile.seek(0)
g = nx.DiGraph()
reader = csv.DictReader(csvFile)
for row in reader:
g.add_edge(str(row['Page']),str(row['Outgoing Links']))
csvFile.close()
csvFile = open('PageRankData.csv',"w"... | [
"pradeep1005@hotmail.com"
] | pradeep1005@hotmail.com |
83fdb3516f9aed1bf4719e0fb14fb683e0a628c3 | c490044445b0a61016a714e35279876063689d86 | /manage.py | 52a6383ab7c51198574670b3d768207e1fd50f21 | [] | no_license | kris965/Beersub | a359936fd6a80bf5e69deba51725f02f56736e9a | eb7892543f58bc1906a58228a87638170024eace | refs/heads/master | 2023-03-04T02:12:05.389573 | 2021-02-03T23:53:47 | 2021-02-03T23:53:47 | 330,680,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | 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', 'beersub.settings')
try:
from django.core.management import execute_from_command_line
except Impo... | [
"kristian_hoogland@hotmail.com"
] | kristian_hoogland@hotmail.com |
d207bfd4c67901362560eec70a277a28c56e741f | 0b0f7d75427c40e3f6c413652b8a00ab8eac41b3 | /vendor_parser.py | 5c47d142f6636325b09bcc63514efe75a100822e | [
"Apache-2.0"
] | permissive | Bidek56/Data-engineer-challenge | a517a8605058969a06986b69bea3caa196df3579 | 9ddaf18b99ade5094f3fe334b36e290cda4da6cd | refs/heads/master | 2021-09-26T19:04:14.055249 | 2018-11-01T13:16:48 | 2018-11-01T13:16:48 | 114,129,845 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,225 | py |
"""
Created on Monday Dec 4th 2017
Purpose: Parse Friendly Vendor feed and match their data with our data
Steps: Call HTML pages and parse them
Call vendor JSON api and parse the output
Merge the above data sources using Pandas
Connect to MySql DB and download sample set
Merge MyS... | [
"noreply@github.com"
] | Bidek56.noreply@github.com |
6776b5e5392f4b295a08f1a154c3041ae19136be | 73958bfeee8d685972df09349d6709e12310d246 | /InstsAndQt/rj7620.py | 59d3bc719b5f077fd723e4871ad3802c3b1c330f | [] | no_license | SherwinGroup/InstrumentLibrary-yolo | 90521c297cde06aa42745b6a28f7aafb7901b561 | ced5834f1763e7326cdb006223bde8797583489e | refs/heads/master | 2021-08-27T23:58:16.152927 | 2021-08-02T21:01:39 | 2021-08-02T21:01:39 | 30,441,082 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,738 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 21 13:14:41 2015
@author: FELLab
"""
import visa
import numpy as np
WANTED_AVERAGES = 10
MAX_MISSES = 3
def main():
missed = 0
rm = visa.ResourceManager()
try:
inst = rm.get_instrument("GPIB0::3::INSTR")
except:
print(rm.list_resources()... | [
"valovcin@physics.ucsb.edu"
] | valovcin@physics.ucsb.edu |
ef48748f03cacdbe7d39982ecb8b7878bd771826 | 93e2396078135e278d1a3f45c8e81c82758f7f9f | /app/main.py | 319bb338bedb6f16510732da60df70ed0ea1f5b8 | [] | no_license | LazukinPavel/SimpleTelegramBot | 75b69470ae710c5d6e8bcdd93769e1fd932492cc | 3fd883c179973ddd597d039bbf94ad4f228e5334 | refs/heads/master | 2022-12-12T07:46:43.031536 | 2019-04-11T14:43:19 | 2019-04-11T14:43:19 | 180,383,671 | 0 | 0 | null | 2022-12-08T04:58:19 | 2019-04-09T14:20:47 | Python | UTF-8 | Python | false | false | 1,424 | py | import requests
from bs4 import BeautifulSoup
from flask import Flask
from flask import request
from flask import jsonify
from flask_sslify import SSLify
from config import token
app = Flask(__name__)
sslify = SSLify(app)
URL = f"https://api.telegram.org/bot{token}/"
def get_search_result_stat(word):
url = ... | [
"backend@analitika.online"
] | backend@analitika.online |
10cd5fd79186d2bfc3eec7a87c3cd009c9c0c896 | cc768f7a3c80ce0109e6e5e6173a62ecc1b3c90c | /main.py | bcc08555e16ba136a064bc694b7126a2c395d808 | [] | no_license | antonchu2006/auto-math-plot | 55c18d11112084b35fbda87010b088a961822d52 | cfc2753b1adb4af52eaa3ec59482f687f50191ab | refs/heads/main | 2023-05-12T13:15:59.064752 | 2021-06-02T20:56:05 | 2021-06-02T20:56:05 | 373,297,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | import matplotlib.pyplot as plt
import numpy as np
## Cambiar los valores al gusto
a = 1
b = -4
c = 7
def f(x, a, b, c):
return a*x*x+b*x+c
def vx(a, b):
return -b / a**2
def vy(a, b, c):
return a*vx(a,b)**2+b*vx(a,b)+c
## Cambiar el -10 y el 10 para los valores máximos y mínimos del dominio. En este ca... | [
"noreply@github.com"
] | antonchu2006.noreply@github.com |
ca4caeb6f24bb1c3b1039b25286210c44d21ca98 | da55587a24558360bd6a7db9f8cc2c2f31168174 | /Analysis files/BE-aa-heatmap - Transversions.py | 886888eec089bb6bda321674b7a61b71a09b81dd | [
"MIT"
] | permissive | RoyRabinowitz/BE-FF | 6469b57f9de0c1b1a138cb8d162086ab5092e295 | bf7c0d9026b738da3deaf61e18512e0699efc024 | refs/heads/master | 2022-04-09T22:20:29.125573 | 2020-03-17T12:13:22 | 2020-03-17T12:13:22 | 224,976,196 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,889 | py | import seaborn as sns; sns.set()
import numpy as np
import csv
import matplotlib
import matplotlib.pyplot as plt
file1="c:/Python/BE AA heatmap/all_transversions.csv" #all SNPs
file2="c:/Python/BE AA heatmap/transversions_results.csv" #results file
AA=['A','C','D','E','F','G','H','I','K','L','M','N','P','Q... | [
"noreply@github.com"
] | RoyRabinowitz.noreply@github.com |
af4ea6b9b94fa419b8547d61172b45a767314f5a | c9f9313b7c21fb3e20f3f3b827799ee837a01126 | /hello/migrations/0002_alter_greeting_when.py | a632fc755531ce63ddf3adfc9bc53c3ecbf03dd5 | [] | no_license | billtorcaso/python-getting-started | 527e2cbb78d427df35bf8f2ddd9df39d8da1e1ba | 5a0d0f1e2c8ddb103ffaaada2d798ba66562aa53 | refs/heads/main | 2023-06-03T07:32:36.727408 | 2021-06-17T19:40:14 | 2021-06-17T19:40:14 | 370,202,007 | 0 | 1 | null | 2021-05-24T02:11:45 | 2021-05-24T02:11:45 | null | UTF-8 | Python | false | false | 410 | py | # Generated by Django 3.2.3 on 2021-05-24 19:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hello', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='greeting',
name='when',
fie... | [
"torcasobill@gmail.com"
] | torcasobill@gmail.com |
1de56e7d13c3d1eed2fd2ab77aee1fa72e666081 | 3998b470766fa184e558acd42f07e1c64ece2855 | /project/settings.py | 71f25b36ed4195c79e412017403a5a014ee5575b | [] | no_license | proxyroot/arkangle | 9eb439e09e9eeeca852a602712e3fe8bf52e5d54 | 94f19649fd686b564d51bab3e2dc94bd85b30949 | refs/heads/master | 2022-07-01T09:50:44.643823 | 2020-05-14T19:44:31 | 2020-05-14T19:44:31 | 263,730,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,243 | py | """
Django settings for project project.
Generated by 'django-admin startproject' using Django 3.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
#... | [
"itsmeafroze@gmail.com"
] | itsmeafroze@gmail.com |
4e9f572d63b4b711b430ef8b964d4f9f5ef14c62 | f19da72213e66d948215ac8567dfa0ee1c353b81 | /sinogrammaker.py | eb5501ebf59a93a0c7b4075c461dc7cba7751c8f | [] | no_license | Alexmonto2000/Honours_SART | 669518e94a1b4fd46609863720d95bf39ad2aa97 | 61c6d9c5779ce7ee9cda7e3a7e8484f43c3d5160 | refs/heads/main | 2023-05-27T15:20:03.398313 | 2021-06-06T10:44:10 | 2021-06-06T10:44:10 | 374,137,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,351 | py | import os
import numpy as np
import pandas as pd
def getdimension(code1, code2, theta, path):
"""
:param code1: Name of the csv file before angle. E.g.: for 'flame6view.csv', 'flame'
:param code2: Name of the csv file after angle. E.g.: for 'flame6view.csv', 'view.csv'
:param theta: array of ... | [
"noreply@github.com"
] | Alexmonto2000.noreply@github.com |
d286f62484170a0e3b9c0ddb9207709c83cb48b3 | ff8131c14f7dc37c3a5b16900b0c1f13757dfa63 | /docker/web/project/glue/settings.py | ee5f5d03635caf99206d49bc30be22d118670e26 | [
"MIT"
] | permissive | gomberg5264/pricemointor3 | 7b382d0ec0cbb97ba21cc6f1c2d5ec23c4497be8 | 01bcf738af2654a46a684ed19e491ed487b8bf21 | refs/heads/103-more-meaningful-graphs | 2023-02-06T01:19:24.438856 | 2016-04-29T18:52:48 | 2016-04-29T18:52:48 | 318,915,164 | 0 | 0 | NOASSERTION | 2020-12-26T03:07:34 | 2020-12-06T00:06:37 | Python | UTF-8 | Python | false | false | 8,252 | py | """
Django settings for glue project.
Generated by 'django-admin startproject' using Django 1.8.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths i... | [
"darignac@gmail.com"
] | darignac@gmail.com |
1a2df106ac84665a42a9dcef38b03db11ceea32e | 5d0da5e2904f9523c3251fead980fbd85bb4dc29 | /common/urls.py | 49dd35767fed0f907b338ffa177825bc8d43eb67 | [] | no_license | tanpo-1776017488/Django | 6bbb2b765c3db6dc6f45e040835420294aada017 | 33a276dece28867243a577493d34fe44681288cf | refs/heads/master | 2023-05-18T19:39:23.795205 | 2021-06-07T12:37:30 | 2021-06-07T12:37:30 | 349,957,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | from django.urls import path
from django.contrib.auth import views as auth_views
from . import views
# ---------------------------------------------------------------------------- #
app_name = 'common'
urlpatterns = [
# ---------------------------------- [edit] ---------------------------------- #
path('login/', ... | [
"tanpo1733@naver.com"
] | tanpo1733@naver.com |
a685914c1f3b145639598864005cea927ca5a79c | 2aa817f40517f7c9c55534948df9d6d1742a8da8 | /buzzbird/wsgi.py | c81b3b70557f656a45f0bf6864b99592df0183c7 | [] | no_license | arischow/buzzbird | 2b4d24130e18c4b03be5c287c56b60efa142a4ee | 3ffcc849f9360037fb4aff5f2d3370a2ba145fcc | refs/heads/master | 2020-07-14T15:37:09.620648 | 2019-08-12T05:58:36 | 2019-08-12T05:58:36 | 152,390,942 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for buzzbird 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/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"arischow@gmail.com"
] | arischow@gmail.com |
2186206bcad559fc9c765fe4e698c6e9739dad54 | 4e57fecb5d43a9a51d5e75ee7c00054e3a01a453 | /proj/detail/serializers.py | 5108dbbf5b0f77a304f30f4538e2b45776b32c45 | [] | no_license | qTemiO/SchetnayaPalata | f556869cb4db1ad91740dafcc1d03c69fe919a59 | 6b966a08ace20fee56f6f7382b79d6fc9a0ca07c | refs/heads/master | 2023-03-29T06:30:49.693829 | 2021-04-01T20:09:42 | 2021-04-01T20:09:42 | 352,178,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,811 | py | from rest_framework import serializers
from .models import (
Services,
Ministries,
Problem,
Region,
)
from loguru import logger
class ServicesSerializer(serializers.ModelSerializer):
class Meta:
model = Services
fields = ['serv_name']
class MinistriesSerializer(serializers.M... | [
"zhitihin.artem1441@yandex.ru"
] | zhitihin.artem1441@yandex.ru |
b9d3f4d3f34f55ac6f95948cb5e32cf359ce5c00 | c6687d822e2a5f7e437f3c24e85917f01c083cfd | /app/imagedownloader.py | 85fa47e2da16a1b8922a3371297002a46c400a4c | [] | no_license | pankajsinghrawat/ava | bde4951ea8ef09360772e7f359528e84b8cc83ad | 48bfdcf95fc5cef7b8d163b81802f1d2adeeb62f | refs/heads/master | 2020-03-21T18:56:55.021345 | 2018-06-27T19:14:19 | 2018-06-27T19:14:19 | 138,922,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | from bs4 import BeautifulSoup
import requests
import urllib.request
import time
file = open("../data/train.txt", "r")
urlprefix = 'http://www.dpchallenge.com/image.php?IMAGE_ID='
headers = {
'User-Agent': 'Mozilla/5.0'
}
count = 0
try:
for line in file:
imageid = line.strip()
fullurl = urlp... | [
"noreply@github.com"
] | pankajsinghrawat.noreply@github.com |
253c9632016a2b5d45b61ace6d16cc791687be0b | 20f2f9c4728cc8380062c557b838af45d65b909b | /tests/basetypes.py | ad5a3e8fe487b3e4dd897fef64492948ff945397 | [] | no_license | dankamongmen/everpad | 5cea529cab55f2c4a8f4fc5588807c35b2a61aef | 4eea1d6c9b322cbad021453f3a0dc57582fb5c6a | refs/heads/master | 2021-01-16T19:51:27.598790 | 2012-12-06T09:28:28 | 2012-12-06T09:37:13 | 7,032,105 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | py | import sys
sys.path.append('..')
from everpad.basetypes import Tag, DbusSendable
import unittest
class TestBaseTypes(unittest.TestCase):
def test_signature(self):
class Fake(DbusSendable):
fields = (
('id', 'i'),
('name', 's'),
)
self.assert... | [
"nvbn.rm@gmail.com"
] | nvbn.rm@gmail.com |
8974aae37f4c58a24bd7555019577f6fec938fb2 | 2e405947abb49b9fcaaac23c6f7f4592a38df0e1 | /mainapp/templatetags/mail_to.py | 6f8285d1afd2ea5d9d6ba08195089e93d8bfcc96 | [] | no_license | m04kA/my_geekbrains_shop | 63b143041cda48f1268eac94dc42697fb2e9f21f | d90c975cbf66e697ebd77437d83f0c1b205c5ef7 | refs/heads/master | 2023-02-23T16:27:53.644914 | 2021-01-27T12:59:12 | 2021-01-27T12:59:12 | 300,906,915 | 0 | 0 | null | 2021-01-17T13:30:26 | 2020-10-03T15:02:27 | CSS | UTF-8 | Python | false | false | 1,365 | py | from xml.etree import ElementTree as ET
from django.utils.safestring import mark_safe
from django import template
from django.conf import settings
register = template.Library()
@register.filter(name="mail_to")
def mail_to(input_str):
"""
Create link `mailto:`
"""
link_mailto = ET.Element("a", {"href... | [
"noreply@github.com"
] | m04kA.noreply@github.com |
e2001593d3dace8fffbd229e25b81b7d1a5932c2 | e54c04a919a21af0564c6d3f77c92c84a097e58b | /src/front-door/azext_front_door/vendored_sdks/models/frontend_endpoint_link_py3.py | 2777bd8e09b27cfb2d1604822a29b8ac26415ee0 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | rlrossiter/azure-cli-extensions | b8b4acad5394edbff545f4fd145cf24255db7453 | e8a640e6623e69e21fa7118eceb1ae28d134bb9a | refs/heads/master | 2021-08-06T18:17:29.141297 | 2019-09-22T13:37:04 | 2019-09-22T13:37:04 | 210,704,389 | 1 | 0 | MIT | 2019-09-24T21:56:44 | 2019-09-24T21:56:43 | null | UTF-8 | Python | false | false | 905 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# C... | [
"tjprescott@users.noreply.github.com"
] | tjprescott@users.noreply.github.com |
2534d4c5652acec5287db3e2d54a005280d1073d | bf1a7752c84c1b321d1f4ec59e25b2e48aa33661 | /Software/Python/grove_rflink433mhz_oneway_kit/grove_rflink433mhz.py | b7ba5b11d9c54875cf307b490f859388881fdb9c | [
"MIT"
] | permissive | usc-ee250-spring2020/GrovePi-EE250 | d094ae099cc0c61dcbeb92d1ee4ed8d878e88026 | 14969ea93fa9400cc639c625977d683d439a498e | refs/heads/ee250-master | 2023-05-11T13:13:13.802283 | 2020-01-27T09:37:28 | 2020-01-27T09:37:28 | 145,928,854 | 1 | 9 | NOASSERTION | 2023-04-29T05:27:19 | 2018-08-24T01:55:40 | Python | UTF-8 | Python | false | false | 9,226 | py | import serial
import binascii
import struct
# Library written for Python 3!
class RFLinker:
# port = '/dev/ttyS0' - it's the default and only UART port on the Raspberry
#
# chunk_size = 32 represents the number of data bytes a transmission can have at most
# if the number of bytes exceed this thresho... | [
"robert.lucian.chiriac@gmail.com"
] | robert.lucian.chiriac@gmail.com |
d6da1412862dcfd139a0a2f5b17ccee81f26c96f | a5f7f374fe04595edd02b111a429ae3aa72a390e | /models/item.py | 6c9b9a266e2cfe25820591d756e831d9070ca60a | [] | no_license | rLoganS/sect8 | 114fef2ae77209c98d43307174bafc448c80fd15 | f5da8b11365fca084cbe43d32b3d5b46b916d19c | refs/heads/master | 2022-11-17T08:26:57.522288 | 2020-07-14T19:06:11 | 2020-07-14T19:06:11 | 278,709,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | from db import db
class ItemModel(db.Model):
__tablename__ = 'items'
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(80))
price = db.Column(db.Float(precision=2))
store_id = db.Column(db.Integer, db.ForeignKey('stores.id'))
store = db.relationship('StoreModel')
de... | [
"rsnyder@mail.bradley.edu"
] | rsnyder@mail.bradley.edu |
ce21f65cce5f9939c9f2d4f97752d5c58dae3969 | 87f243cf1f7291d4f145a98e21d6599f2097f0c5 | /Lab5/B1.py | d5c4c47789c20b1cba7d14566987ab0fb1a9000b | [] | no_license | trucphuongbvc/LAPTRINHPYTHONNANGCAO | 563a5ac022770500b8de3bbc064d6d6091991c4f | 507fd1b91f0cb83edd54858023ce0057e9264f63 | refs/heads/main | 2023-08-28T07:29:12.070959 | 2021-10-19T02:06:27 | 2021-10-19T02:06:27 | 408,396,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | class Country:
def __init__ (self, name, population, area):
self.name=name
self.population=population
self.area=area
def is_larger(self, other):
if (self.area>other.area):
return True
else:
return False
def population_desity(self):
... | [
"noreply@github.com"
] | trucphuongbvc.noreply@github.com |
8e40247afc5007560a63232f9f35116f619b7836 | 82383c8899b47f1edccf2a1432bfd3ea67356184 | /data-structures/linked-lists/insert_node_at_the_head.py | d8ecd770875d00daae7da3ceb1010c8cda4ff663 | [] | no_license | hamzatuna/Hacker-Rank | e2f7f84a9f2bc151a743713b7f132c6bcfb8a642 | 11da921190c71bb7d721521310dc025f81f1fa5c | refs/heads/master | 2021-04-15T12:55:52.214563 | 2018-03-24T16:19:11 | 2018-03-24T16:19:11 | 126,537,177 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | def insert(head, data):
new_node = Node(data)
new_node.next, head = head, new_node
return head
| [
"tuanaham@itu.edu.tr"
] | tuanaham@itu.edu.tr |
bd4576cfd6e718cdd274494f2f169454712272eb | 6fdcfdf6de1e64a3915178c3e8e0ab56301baf1e | /basehtml/home/admin.py | 0989bbd8dc2e4804e4fec7a0dceba3fc6e3cedc4 | [] | no_license | onurbayraktaroglu/basehtml | 5117977d90dd8a33beb18471e0989d46231c6c17 | 759af91420c3bc29f803203f20828c902c68b8e1 | refs/heads/master | 2021-01-16T20:33:01.555033 | 2012-08-02T10:29:05 | 2012-08-02T10:29:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | from django.contrib import admin
from basehtml.home.models import *
admin.site.register(UploadSliderImg)
| [
"ahmetemrekirgil@gmail.com"
] | ahmetemrekirgil@gmail.com |
13254a2eb38626cc27a9c8911954a3a6db26b13e | 8074e0e53718b9f9cc2682d0986ebdaee17f8bfd | /jabulani.py | 883f9135b161fd0f9ad99a7e706c02c4f0b4cec9 | [] | no_license | camillevilaca/prog2 | 90e0127473cf50ebce475bb34df3d505bfb9df01 | ccf52430707ea4f6b6084c42f16b043cfe4eb555 | refs/heads/master | 2020-04-24T03:39:00.887923 | 2019-06-26T19:39:58 | 2019-06-26T19:39:58 | 171,676,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,681 | py | import peewee, os
db = peewee.SqliteDatabase('Animal.db')
class Animal(peewee.Model):
nome_dono = peewee.CharField()
tipo_animal = peewee.CharField()
raca = peewee.CharField()
class Meta:
database = db
def mostrar_animal(self):
animal1 = Animal("Carlos", "Lacoste", "Poodle")
... | [
"andre.heydran@gmail.com"
] | andre.heydran@gmail.com |
c3620aa123caa2cf545b1ea5601ddd7990610b35 | ad0bf393f0c9b62e88466cbc80a66cb23823cdbc | /assignment2/optim.py | 40970ea6a0859d373923d19ff66fe78f30a4a244 | [] | no_license | ArtemSolomatin/dl_nsu | e1f5e6a6382761a3861ee48c7fe1f9b4ae0f9976 | adf5846ca40a0d7044ff3dc46012151c872e1eeb | refs/heads/master | 2020-04-28T18:54:57.677739 | 2019-07-23T16:40:53 | 2019-07-23T16:40:53 | 175,493,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py | import numpy as np
class SGD:
"""
Implements vanilla SGD update
"""
def update(self, w, d_w, learning_rate):
"""
Performs SGD update
Arguments:
w, np array - weights
d_w, np array, same shape as w - gradient
learning_rate, float - learning rate
... | [
"artemsolomatin19@mail.ru"
] | artemsolomatin19@mail.ru |
e165f515f5a8171ea465a2a3904e19bda27ebe4a | ad2090cc9591d38456621951d4901276481b55fd | /python编程技巧提高/day03/ex3_实现反向迭代.py | 389dd1920cf2aee18456d949fadf7f3918a3afae | [] | no_license | GuangGuangLi-Artist/LearningPython | 9d17366c4b64f5b3d53b885b71f1cf9bd4d2f53f | 0810ff6d0cc557f4d5ed8c024ce413a93183a6da | refs/heads/master | 2023-08-18T16:32:03.595418 | 2023-07-30T09:47:48 | 2023-07-30T09:47:48 | 201,511,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | #coding=utf-8
class FloatRange():
def __init__(self,start,end,step=0.1):
self.start = start
self.end = end
self.step = step
def __iter__(self):
t = self.start
while t <= self.end:
yield t
t += self.step
def __reversed__(self):
t = s... | [
"15607521232@163.com"
] | 15607521232@163.com |
ea29dc8380864845dcbf87a27353f716cc000e96 | ecb21878638d5a4fc504d293680d96c57a5a19e8 | /examples/optimize_mode_converter.py | 5d757b783f31d687e64debd51759a4f467ddb499 | [
"MIT"
] | permissive | bezova/ceviche | 093172f9374d042df0af3e26d808433cec7ca9b7 | 999d7a337c0bb2b55da85019abba26edbf5f467a | refs/heads/master | 2020-09-09T18:59:43.904220 | 2019-11-11T22:30:38 | 2019-11-11T22:30:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,397 | py | import argparse
import numpy as np
import autograd.numpy as npa
import matplotlib.pylab as plt
from autograd.scipy.signal import convolve as conv
from skimage.draw import circle
import ceviche
from ceviche import fdfd_ez, fdfd_ez_nl, jacobian
from ceviche.optimizers import adam_optimize
from ceviche.utils import ima... | [
"momchilmm@gmail.com"
] | momchilmm@gmail.com |
3862dc3f3c1dcd05a80e12c0ed5e5248e62bf552 | 0783093e4c16df3a3707388095d835cec137ba9c | /audit_cleaner.py | ff7a8f339014daae09347c97b04dba0cd5d1a948 | [] | no_license | rpriyesh/python-samples | 7c8cf4899848bf094b752145ed291392aa1aeaad | 4f8eabbdcc892deee9a194912c90fafc3e8e3e8d | refs/heads/master | 2020-05-16T06:48:14.981923 | 2019-04-22T20:03:16 | 2019-04-22T20:03:16 | 182,858,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | # Author: Priyesh Rajamohanan
# Date: 22 January 2017
# Desc: To analyse audit data from JIRA server and summarize data.
import pandas as pd
pd.options.mode.chained_assignment = None
def print_summary(filename):
date_from = '2016-08-01 00:00:00'
date_to = '2016-09-30 23:59:59'
raw_da... | [
"noreply@github.com"
] | rpriyesh.noreply@github.com |
5ad3b3a1bdd2f87b6fca52d411ca6adf463d427c | b294a4a340a46feecd829f858aa0be036866069a | /SumOfNs.py | 52aaea2e93bedfbbbb4d8b2f9a56aa0fbe2a1ce9 | [] | no_license | HULLZHU/PythonProgramming | 234d6af1e991438b7574317d65599cc5282b2586 | 1d645ef245473f0405e876f71c91866d1e8950ba | refs/heads/master | 2020-03-29T01:07:33.871569 | 2019-03-26T14:07:17 | 2019-03-26T14:07:17 | 149,372,399 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | total = 0
for i in range(101):
total = total + i
print(total)
| [
"noreply@github.com"
] | HULLZHU.noreply@github.com |
b2a30b81daf763745c5d3b2ae60e9d9b656a21f4 | 94b679b48edd14d6d094d1d3eedb1b98c5ed5029 | /김송이/[2020.09]/[2020.09.15]1463.py | e1e2ab503e3fbfc6d891e4db59ea4c6d28b612b8 | [] | no_license | 4RG0S/2020-Fall-Jookgorithm | 602c918b22aed7f06ab63fbdfb31496bf3bfcec0 | a1caac8290549ce4f9f4161f12a53be12a065bfe | refs/heads/master | 2023-01-30T14:06:01.285667 | 2020-12-11T03:12:44 | 2020-12-11T03:12:44 | 293,725,616 | 0 | 0 | null | 2020-09-09T08:27:27 | 2020-09-08T06:49:43 | Python | UTF-8 | Python | false | false | 586 | py | # DP 문제
# min(f(n/3)+1, f(n/2)+1, f(n-1)+1)
def main():
n = int(input())
count_list = [0 for _ in range(n + 1)]
for i in range(1, n + 1):
if i == 1:
count_list[i] = 0
else:
count_list[i] = count_list[i - 1] + 1
if i % 3 == 0 and count_list[i // 3] + 1 <... | [
"ksl2950@naver.com"
] | ksl2950@naver.com |
9851e0e373c9fa6897b1f6abde21d140a495945e | b7620d0f1a90390224c8ab71774b9c906ab3e8e9 | /aliyun-python-sdk-gpdb/aliyunsdkgpdb/request/v20160503/DescribeSQLLogsOnSliceRequest.py | 6c001777dbc8db958ef3c54d9c3f181732da9bde | [
"Apache-2.0"
] | permissive | YaoYinYing/aliyun-openapi-python-sdk | e9c62940baee1a35b9ec4a9fbd1e4eb0aaf93b2f | e9a93cc94bd8290d1b1a391a9cb0fad2e6c64627 | refs/heads/master | 2022-10-17T16:39:04.515562 | 2022-10-10T15:18:34 | 2022-10-10T15:18:34 | 117,057,304 | 0 | 0 | null | 2018-01-11T06:03:02 | 2018-01-11T06:03:01 | null | UTF-8 | Python | false | false | 2,838 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
43fcbd83f3f339c662561f29b5c5cd79d393716b | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/fv/rttoeptask.py | f93376a7a4574d9dc1dc35e1a6c378196f119b89 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,689 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
9af698eb1b9e10126a05c34812ef09e3ca26db5f | c4079336265fcaa2eb8be72d5a755d2dd3c95b1c | /bin/service.py | 114b11a3ee9f2e3e925d41730aab7de2ddb60201 | [
"MIT"
] | permissive | alexhsamuel/absence | 3bdd5e9b6f20f995b4b71ffc6ad94c52c7757c59 | 2dcb1e14f4ec0d90b1dad3ca03ebba7fa5a3d3ff | refs/heads/master | 2020-03-11T06:39:26.328341 | 2018-04-17T03:37:55 | 2018-04-17T03:37:55 | 129,835,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,848 | py | #!/usr/bin/env python
import argparse
import flask
import logging
from pathlib import Path
import absence.api
import absence.api.service
from absence.db import SqliteDB
#-------------------------------------------------------------------------------
app = flask.Flask(__name__)
app.register_blueprint(absence.api... | [
"alex@alexsamuel.net"
] | alex@alexsamuel.net |
ad0e22e38a0cabad285892fabed6f049c4e102a0 | ba9fc166ea9adb64e522471a4fc96e1810862516 | /examples/simple_rpc_server.py | db4cdd58130f340bb9dc83a573bde92b1e461b2d | [
"MIT"
] | permissive | martincolladodotcom/amqpstorm | 30ca347234f86b653ea6c0327ba93b7d40b8dee6 | 8c320601b92482472f3e5fe366221fa276c49004 | refs/heads/master | 2021-08-07T13:52:53.570087 | 2017-11-08T07:54:59 | 2017-11-08T07:54:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | """
RPC Server example based on code from the official RabbitMQ Tutorial.
http://www.rabbitmq.com/tutorials/tutorial-six-python.html
"""
import amqpstorm
from amqpstorm import Message
CONNECTION = amqpstorm.Connection('127.0.0.1', 'guest', 'guest')
CHANNEL = CONNECTION.channel()
CHANNEL.queue.declare(queue='rpc_queue... | [
"me@eandersson.net"
] | me@eandersson.net |
5c2f5a4d3afa0546859b1ee116e19d77620fcff3 | 827e0c2b46043635c307eb985654afb56efa76d4 | /python_stack/django/django_full_stack/hammer_and_thistle-master/hammer_and_thistle-master/hammer_and_thistle/urls.py | 32e6c072f95c8f7a7108dc01af5bd6c4199b303a | [] | no_license | efaro2014/Dojo-Assignments | 0f51e695a99bcc830de0fa2b56cd4d0f1d32ba97 | bcf5150f00ffaf408167cb9357b979dd80b4d509 | refs/heads/master | 2022-10-29T10:03:00.837990 | 2019-12-27T05:40:53 | 2019-12-27T05:40:53 | 230,378,896 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | """hammer_and_thistle URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/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... | [
"efarkbg@gamil.com"
] | efarkbg@gamil.com |
6033d53dbc557f177f5618eb13bead953214860f | 39d4504ec1da8975fac526d6801b94f4348b6b61 | /official/utils/logs/hooks_helper_test.py | 5adb5fdc343ad00cfab2557436de927e68501743 | [
"Apache-2.0"
] | permissive | vincentcheny/models | fe0ff5888e6ee00a0d4fa5ee14154acdbeebe7ad | afb1a59fc1bc792ac72d1a3e22e2469020529788 | refs/heads/master | 2020-07-23T21:38:24.559521 | 2019-11-15T07:50:11 | 2019-11-15T07:50:11 | 207,712,649 | 1 | 0 | Apache-2.0 | 2019-09-11T03:12:31 | 2019-09-11T03:12:31 | null | UTF-8 | Python | false | false | 2,777 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"1155107977@link.cuhk.edu.hk"
] | 1155107977@link.cuhk.edu.hk |
89133a725bf8b4dd09c893b7dcf573b8bc55edc6 | 734f733f017953ae9236c61296a6cb7c0550475a | /non-overlapping-intervals/non-overlapping-intervals.py | 4361fdfaf5d3a85a695d18dc7a53b42f9baf5aef | [] | no_license | piercepatrick/leetcode-solutions | 24dc0a62f13d0c4e09f945f05548758c991212fb | 07fdae302a5e2548bc2c547de1c0b81c3e5ac0e7 | refs/heads/main | 2023-08-14T18:38:31.150090 | 2021-10-05T17:28:10 | 2021-10-05T17:28:10 | 343,958,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | class Solution:
def eraseOverlapIntervals(self, intervals: List[List[int]]) -> int:
close = float('-inf')
counter = 0
for interval in sorted(intervals, key= lambda x: x[1]):
if interval[0] >= close:
close = interval[1]
else:
co... | [
"62151779+piercepatrick@users.noreply.github.com"
] | 62151779+piercepatrick@users.noreply.github.com |
82628634478433a38edb9517e6ac55360bafb97e | 75c4cdc89ce739d9224c07063d4871e9f8da8a1d | /myapp/models.py | 6299bfc9dd199414123bdb9a86356160b765e5ab | [] | no_license | ynynloxx/todo_app | 023fdba35f6de445e286d0c0941b565651ef8fd5 | b36ecbce83240f4ad0ac9c58456a05951508455f | refs/heads/master | 2020-08-02T09:45:14.163510 | 2019-09-27T14:14:26 | 2019-09-27T14:14:26 | 211,306,903 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,185 | py | from django.db import models
from django.utils.translation import gettext_lazy as _
class Category(models.Model):
category = models.CharField(_('category'), max_length=200)
class Meta:
verbose_name = _('category')
verbose_name_plural = _('categories')
def __str__(self):
return se... | [
"yin-yin.lo@rwth-aachen.de"
] | yin-yin.lo@rwth-aachen.de |
b8d7d87c6f928ea9a18d3b66ed5cfefaaeaff7ae | cff7af9a3ef1b656bd4c2263251dbf3aa7921af3 | /leetcode/78.py | a7a08b35f656714bb46b78ecce6d3b7f6407045a | [] | no_license | geekben/codeiscool | 3c2f348cceafaadadc448a1a4e723dd0adefae36 | ef04457edd6343b49b66ba96425140baf03fc07f | refs/heads/master | 2023-04-17T19:54:51.588627 | 2023-04-16T05:58:26 | 2023-04-16T05:58:26 | 21,737,729 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | class Solution(object):
def subsets(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
ret = []
ret.append([])
for i in nums:
tr = ret[:]
for r in ret:
tr.append(r + [i])
ret = tr
re... | [
"bn0418@gmail.com"
] | bn0418@gmail.com |
83da652419481dabdaf24f5404e72bfbfac9a22c | 6699b8944b71e86725fdc17bb5f9cd69e254b4eb | /yelp/multipleAnagrams.py | 60f739bd5af1aa575d1efe9634c7866e8c50d1db | [] | no_license | jadesym/interview | 6099e663090408f548b4f4b0b17ae90bb60a7d46 | 5b6eecedfa1c7e496bcfe852e2d3896e993ff16e | refs/heads/main | 2023-01-07T21:56:59.063542 | 2022-12-30T20:13:34 | 2022-12-30T20:13:34 | 41,118,644 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,319 | py |
# test cases 2, 6, and 7 should fail
# 20 Minutes was give on this problem
# print 'true' if all inputs (could be more than 2) are anagrams of each other. print 'false' otherwise
# Example Input:
# acme
# came
# mace
#
# acme, came, and mace are anagrams because each contain 1 a, 1 c, 1 m, and 1 e
# Exam... | [
"kevin.fu808@gmail.com"
] | kevin.fu808@gmail.com |
0bca67d5dbda5c361751fb8d0161f51039842bca | 02ed9f1241e14e60772648158b0f3ad97b5cf56e | /Chapter_19/functionCall.py | 98b8dd5ffa6736b6db026975b245a20eb5625fe8 | [] | no_license | disp1air/Lutc_M | b8e30b194d11562638621ea4ee6006ef422c496a | 7057d4c6905c1b97be332fb5b089e2ad0ced5622 | refs/heads/master | 2021-05-09T18:26:23.890523 | 2019-03-03T18:55:06 | 2019-03-03T18:55:06 | 119,164,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | def echo(message):
print(message)
def indirect(func, arg):
func(arg)
indirect(echo, 'Argument call')
schedule = [ (echo, 'Spam!'), (echo, 'Ham!') ]
for (func, arg) in schedule:
func(arg)
| [
"hola-shola@mail.ru"
] | hola-shola@mail.ru |
745bc7d2a0ee083e17423d8cf64b2fa4ba20c778 | 92808c51ef597e57dfbcffc73714d007b5adc0ec | /model/Goal.py | e7eeca1bac852bec0e3ed021121b37f4882b1239 | [] | no_license | chatreejs/assistiverobot-web-service-python | 37352bc293d8f0b5ce94178f57563d5690d91c65 | 0fa8549e9092aae0c1de6d497d43775b81f37d19 | refs/heads/master | 2023-04-18T03:25:28.876821 | 2020-07-22T12:50:25 | 2020-07-22T12:50:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | from enum import Enum
class GoalStatus(Enum):
PENDING = 'pending'
ARRIVED = 'arrived'
SUCCESS = 'success'
FAILED = 'failed'
class Goal(object):
def __init__(self, goal_id: int, position: dict, orientation: dict, status: str):
self.goal_id = goal_id
self.position = position
... | [
"v_chanont@ctlsd.set"
] | v_chanont@ctlsd.set |
40b41c66fbb21c566055b1a9a5b54f665202643f | e2fc034597f13a0e0b106e4f5fde737eb4d8d448 | /scr.py | 00513f50ad014db1b86d0c596e65e80615a31e25 | [] | no_license | s5uraj/Python | 9d8fca0e0f6856bbdeb8a833775d5d337e61816c | 1d07f05532a7a58b0361ba6e4fd38c53c7ab6722 | refs/heads/master | 2021-05-05T06:10:38.051930 | 2018-03-12T05:21:44 | 2018-03-12T05:21:44 | 118,786,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | import random
new_list=[]
def rec(my_list):
if not my_list:
return new_list
else:
ran=random.randint(0,len(my_list)-1)
new_list.append(my_list.pop(ran))
rec(my_list)
return new_list
word="Suraj"
my_list = [i for i in word]
sc = ''.join(rec(my_list))
print(sc)
| [
"noreply@github.com"
] | s5uraj.noreply@github.com |
06c1b7128e4e03525c80978f40c0045334e11190 | c5d68f58c9523257a8b41954553f5cff2cd5f487 | /Secao_08_Lista_Ex_73e/ex_67.py | b48841401026d069e655abe6f4ea6e4a504e6079 | [] | no_license | SouzaCadu/guppe | 04bfcde82d4404eb9ec795006c6931ba07dc72b6 | 1f8a672230c5c27712f522e1e34516591c012453 | refs/heads/master | 2023-03-13T01:32:51.019871 | 2021-02-25T17:02:59 | 2021-02-25T17:02:59 | 320,908,119 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | """
faça uma rotina que receba como parâmetro um vetor de caracteres e
seu tamanho. a função deverá de ler uma string do teclado, caractere por caractere
usando a função getchat() até que o usuário digite enter ou o tamanho máximo do
vetor seja alcançado.
"""
def getchar():
"""
Função que retorna o caractere ... | [
"cadu.souza81@gmail.com"
] | cadu.souza81@gmail.com |
5b107b578718c9b0aaa2357f326b690954baa459 | 5a6128dfb3ade793f23e78e3be469e33a65171dd | /Scientific_Expedition/verigy_anagrams.py | 425bd0018d819fc71c8253dd6fb460cf17cffdca | [] | no_license | PeriLara/Checkio | f56ca42ebc6dd7221d1979e96409e52e46e1ee37 | 737effca3c6b5920825178ba5da0d5d2f865ecb5 | refs/heads/master | 2021-07-04T21:27:43.460203 | 2021-01-30T12:28:49 | 2021-01-30T12:28:49 | 222,951,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,378 | py | """
An anagram is a type of word play, the result of rearranging the letters of a word or phrase to produce a new word or phrase, using all the original letters exactly once. Two words are anagrams to each other if we can get one from another by rearranging the letters. Anagrams are case-insensitive and don't take acco... | [
"perilara@Laras-MacBook-Pro.local"
] | perilara@Laras-MacBook-Pro.local |
b60649f4c4b736596cca545ed05537059ce0b28b | 92ee07fc0547293ed5104af36811f5b8ba1408c9 | /envir/bin/rstpep2html.py | 9ad82aaf4ef79f06f47c7fae123e25dfa19db1c4 | [] | no_license | Samantha853/CV-App | e29135763b8d1e15309738363c7230da277f318b | 481926bdf09c573eb1d7406a32ae4665daa57ef9 | refs/heads/master | 2023-01-04T20:33:43.091678 | 2020-10-29T14:02:53 | 2020-10-29T14:02:53 | 308,311,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | #!/home/botlhale/Desktop/CV-App/envir/bin/python3
# $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML from PEP
(Python Enhancement Proposa... | [
"athenkosicetyana@gmail.com"
] | athenkosicetyana@gmail.com |
a103c0f0debc9626589d08b1f3082d1731ac66ec | 8f713987a97033b9bc6b75b95220686e943edf67 | /web/views/__init__.py | 13ffdb59202ba283b37439fdd223fe9942f0a223 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | alexpatel/mvpaas | 95adda033dd3722b9fc3fad5528bacdb72d0db60 | dbebd71a691dbc2f83e1e16d59c5a9af11c8d873 | refs/heads/master | 2021-01-02T23:15:06.789339 | 2017-08-07T17:14:22 | 2017-08-07T17:14:22 | 99,492,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | # -*- coding: UTF-8 -*-
"""
BoGO: views
Separate view packages are implemented as Flask "Blueprints"
See: http://flask.pocoo.org/docs/latest/blueprints/
Copyright 2017, Anonymous Author
License: MIT
"""
from . import admin
from . import auth
from . import main
| [
"patelalex02@gmail.com"
] | patelalex02@gmail.com |
1dd08619ac36d52f32068d872beef468e6a1960d | f73772977253aed97b5d68045e607560e6376b91 | /Day 38 January 25.py | 9415510da47efc3ce5c91e7a61e7c2c7def6f2c4 | [] | no_license | elvogt/Mentorship | f98d87a110c0086c95a34bba7254aa540d8e5cf3 | 1e7448d029057679da5f662ccc7345dbe883a8aa | refs/heads/master | 2021-01-10T23:54:04.032945 | 2017-05-08T19:11:30 | 2017-05-08T19:11:30 | 70,090,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,862 | py | import urllib.request
from urllib.parse import urlparse
import datetime
import re
from pathlib import Path
import os
import json
import io
import sys
import argparse
from collections import OrderedDict
from bs4 import BeautifulSoup, SoupStrainer
global tagOption #Do you want to get the anchor tags?... | [
"noreply@github.com"
] | elvogt.noreply@github.com |
8cd6761ddd03ae43a68fa8191fc22e926b2fcefd | 016c0feb5e657f0aeb7f93b9b8468d56eb77a72b | /Scripts/CreateEpisodeGUI.py | 29b2ad0c72ba7d81c575bef7ebe8238a53141c1d | [] | no_license | nluongo/ShowApp | add026f19ef2d731e2c4e98c4d56b7d0fceb6cf1 | dccafb6e1c757c4332191a969016219ba8474e7b | refs/heads/master | 2020-04-01T03:42:29.253115 | 2018-10-20T05:31:34 | 2018-10-20T05:31:34 | 152,699,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | from tkinter import *
from TableTester import *
def show_result():
resulttext.delete(1.0, END)
resulttext.insert(INSERT, EpisodeFromShow(e1.get()))
window = Tk()
window.title("Random Episode Generator")
label = Label(window, text="Enter your show:")
label.grid(row=0, sticky=W)
e1 = Entry(window, width=22)
e1.... | [
"nluongo@gmail.com"
] | nluongo@gmail.com |
f2d735b073eda95981eb74d263efe7b8b08b0939 | 181af10fcf40b824fe92d3b8f72fd15d6d1490c2 | /Contests/101-200/week 178/1368. Minimum Cost to Make at Least One Valid Path in a Grid/Minimum Cost to Make at Least One Valid Path in a Grid.py | c0f974e882a945b86410b30ef80cb3fbd07b4071 | [] | no_license | wangyendt/LeetCode | 402c59a0b7b7f5b3a672231ea5dad8056ade36af | 4a3ba15284c45b2d8bf38306c8c8526ae174615c | refs/heads/master | 2023-08-10T06:27:54.995152 | 2023-08-10T02:22:27 | 2023-08-10T02:22:27 | 176,651,399 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: Wayne
@contact: wangye.hope@gmail.com
@software: PyCharm
@file: Minimum Cost to Make at Least One Valid Path in a Grid
@time: 2020/3/5 14:47
"""
class Solution:
def minCost(self, A: list(list())):
n, m, inf, k = len(A), len(A[0]), 10 ** 9, 0
dp... | [
"905317742@qq.com"
] | 905317742@qq.com |
06a9ffa33abf6d1042a27b30cae8aaf4f1dbf069 | 93c079b2d5e7064ec8394b8a9b5f8d5939981f55 | /matplotlib/01_hello.py | e56a63a179e88e678b742a45552a05b3a2ae0041 | [] | no_license | SmithHZZ/MachineLearning | 04cd5215dbe9fc3eca5b7a527ca80481c209e6b6 | d5a614c706c19a03449b8111f0dda04203885045 | refs/heads/master | 2020-12-24T03:13:11.623556 | 2020-12-08T09:32:36 | 2020-12-08T09:32:36 | 237,362,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | import matplotlib.pyplot as plt
# 创建画布
plt.figure(figsize=(3, 2), facecolor='lightgrey')
# 绘制空白图形
plt.plot()
# 划分子图
plt.subplot(2, 2, 1)
plt.subplot(2, 2, 2)
plt.subplot(2, 2, 3)
plt.subplot(2, 2, 4)
# 设置中文字体
plt.rcParams['font.sans-serif'] = 'SimHei'
plt.suptitle('我是Hello')
plt.tight_layout(rect=[0, 0, 1, 0.9])
p... | [
"huzz@zumaxmedical.com"
] | huzz@zumaxmedical.com |
bde02ad8a8879bcd4db29dacd4ee4365425387e0 | 1e1eed0ea0b7cd2329cd8b310e3c127565ede4d0 | /python_test.py | cc3a8f691c2fd63a3f71fef3731fb0c1ba694a43 | [] | no_license | Observatoriolab/ProcesoNoticiasBCInformeDiario | bbb62e263034741af038ab7a287c167c349e70a3 | dc715c84aca4fdf25aa664c57e0238d33e0b870b | refs/heads/main | 2023-06-18T06:41:54.487240 | 2021-07-11T15:53:22 | 2021-07-11T15:53:22 | 328,668,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | # code
import sys
import requests
from bs4 import BeautifulSoup
from csv import writer
from requests import get
def print_to_stderr(*a):
# Here a is the array holding the objects
# passed as the arguement of the function
print(*a, file = sys.stderr)
print_to_stderr("Hello World") | [
"leiser.mahu@usach.com"
] | leiser.mahu@usach.com |
1133302eb839e5951fd8bf790cf8a3f12f2527bb | ec6b0488af24f6ea3f810732dd1c4a7b4a017fec | /AppEngine/cgimain.py | e70a04a282a0d6e390d9c88b2274b5cb164e2f33 | [] | no_license | sanyamc/pythonExplorations | 40239703e8b012f7dbcd638ec7ef14a3ca707608 | bed27cb2b20e5423657f681b8abf13832f0da79d | refs/heads/master | 2023-05-20T01:38:33.006806 | 2019-10-08T03:57:16 | 2019-10-08T03:57:16 | 205,612,571 | 0 | 0 | null | 2023-05-01T20:13:00 | 2019-09-01T00:57:44 | HTML | UTF-8 | Python | false | false | 194 | py | import os
print 'Content-Type: text/plain' # done so that browser understands the response type and print it accordingly
print ''
for env in os.environ:
print env ,": " , os.environ[env] | [
"sanyamchaudhary@gmail.com"
] | sanyamchaudhary@gmail.com |
70cfde39fc00d4c6dbdb49f823c1d203e72aeaa0 | d09ad52c0911a83a5e5a03850bb5371d22446226 | /metrics.py | c0c926ae23018f66d249ffebc51658a841faf430 | [] | no_license | hzfmer/pyawp | 88d0ea24b47aa02a8ef4a89e59335b636a5c205b | aff564d59c1f00ada2755ab239980fbfa0a8d9cb | refs/heads/main | 2023-05-08T07:37:53.603933 | 2021-05-27T18:51:56 | 2021-05-27T18:51:56 | 371,476,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,102 | py | import sympy as sp
def covariant_basis(x, r):
"""
Compute covariant basis vectors.
Arguments:
x : List of mappings of physical coordinates to parameter coordinates
r : List of parameter coordinates.
Returns:
a : Covariant basis (list of vectors). For example, `a[0]` gives the... | [
"hzfmer94@gmail.com"
] | hzfmer94@gmail.com |
94547a2d5945424fe6d0f40934e69eedc44a5cba | 86a017dd4c8d4d77c511cc598190aaa9dc0ae3e8 | /data structure/mine_tree.py | 50c7743ae9b425ddc25d7aea392e1c7f56c1aff7 | [] | no_license | sungguenja/studying | fd7459eb9faa6488d7b63bf3884a92513daf3c54 | 719f4dfbda211c34de2a0c8cf3b9d3001f29fcec | refs/heads/master | 2023-08-17T13:46:44.343780 | 2023-08-10T11:55:15 | 2023-08-10T11:55:15 | 232,306,053 | 0 | 0 | null | 2022-12-16T10:53:26 | 2020-01-07T11:00:28 | Python | UTF-8 | Python | false | false | 1,713 | py | import mine_node
from collections import deque
def preorder(n):
if n is not None:
print(n.data)
preorder(n.left)
preorder(n.right)
def inorder(n):
if n is not None:
inorder(n.left)
print(n.data)
inorder(n.right)
def postorder(n):
if n is not None:
po... | [
"59605197+sungguenja@users.noreply.github.com"
] | 59605197+sungguenja@users.noreply.github.com |
a2da708e8a915c36cec79c4906017ccb3ea8061e | 9568292e65670cc295a20f97f20593a3439aef77 | /python/cluster_methods/cluster_profile.py | b46fb885a57aea9784368cf030229206d8f7df02 | [] | no_license | jodarie/python_lib | c7f707d85111dca4e9d233c39b66311372f1cd24 | c6f0ac1b4586691c4b1db80da4d7610daa78fff4 | refs/heads/master | 2020-04-11T04:25:53.420339 | 2015-07-08T10:15:52 | 2015-07-08T10:15:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,866 | py | ## @file cluster_profile.py
#
# CLUSTER PROFILE FUNCTIONS
#
# Functions for analysing cluster profile.
#
# @author Samuel Farrens
# @version 1.0
# @date 2015
#
import warnings
import numpy as np
from scipy.stats import chi2, chisquare, ks_2samp, anderson_ksamp
from scipy.optimize import minimize, brute
from func... | [
"samuel.farrens@googlemail.com"
] | samuel.farrens@googlemail.com |
c6b1027798ea7efbde4529e0fcdf805a6712af82 | a6eee38c1af50c4e0361760a1a6ab32faf3a6f23 | /src/evaluation/predict.py | 22b459d13228f60ad8c98dca5cf690254e4aec13 | [] | no_license | saisnehasv/2020_CSE_14 | 60c0e0c6ba285c486e0f47e12cb2420548bda571 | 854894f8c90368f7a282a1e3f913d038378aabe8 | refs/heads/main | 2023-06-17T20:13:48.084063 | 2021-07-15T19:02:47 | 2021-07-15T19:02:47 | 361,099,867 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,798 | py | from lipnet.lipreading.videos import Video
from lipnet.lipreading.visualization import show_video_subtitle
from lipnet.core.decoders import Decoder
from lipnet.lipreading.helpers import labels_to_text
from lipnet.utils.spell import Spell
from lipnet.model2 import LipNet
from keras.optimizers import Adam
import ffmpeg
f... | [
"noreply@github.com"
] | saisnehasv.noreply@github.com |
c6e6f9bd653b30106c5a7b037e27c646eb369115 | b666d9a685b4fa43de71c2cbc87fd3cf6c069e8b | /stock_prediction_lstm.py | d5007f78ded2c73dccf7b4db967cf296a9d91549 | [
"Apache-2.0"
] | permissive | devangdayal/G-Research-Crypto-Forecasting-1 | c514313044ac315219cac23bbc2523ce2b30af96 | e78aca0cb56560b2012262ca0b7e94864d67c42d | refs/heads/main | 2023-09-01T09:47:48.162378 | 2021-11-07T18:29:52 | 2021-11-07T18:29:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,038 | py | # Copyright 2020 Jordi Corbilla. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | [
"jordi.coll.corbilla@gmail.com"
] | jordi.coll.corbilla@gmail.com |
d066657a658a5b4bcac8e5964f2e917273576be4 | a9a8931d6877d6e0f4f11cbd7b50322819e0fe45 | /hpc/REBAGG-SMOTER_43.py | b5ee6bdf31673ae698cb31a019f9f71d1437d5cd | [] | no_license | jafetgado/tomerdesign | 8517f9f8266bcf1db64fdf00d12294f682cd412d | a0d0961a11d7d84be5343d374198ab0f5084c2b3 | refs/heads/master | 2022-05-31T18:15:55.045419 | 2020-04-25T05:49:32 | 2020-04-25T05:49:32 | 258,499,679 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,399 | py | """
Template script for hyperparameter tuning with HPC
Evaluates the performance of a strategy for a single
set of hyperparameter combinations)
"""
# Imports
#============#
import numpy as np
import pandas as pd
import joblib
import itertools
from sklearn.tree import DecisionTreeRegressor
from sklearn.ensemble ... | [
"japhethgado@gmail.com"
] | japhethgado@gmail.com |
50aa70d96d4ecf396fa4b2b1408af5b358224895 | 78ad0cfccf36500af0bf5bbacd45d5a474cc5d64 | /runstat/views.py | 681bf4ad225c397b45e8e01c8f0b3632ab9f03ea | [] | no_license | dimadvk/runstat | 12207cede383424277c69ac07de12ad467f47cac | ab277666d98abfcb5d5540c864c656d5a18f21dd | refs/heads/master | 2021-01-17T14:24:15.931172 | 2016-08-02T11:25:16 | 2016-08-02T11:25:16 | 58,715,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,305 | py | """Views for runstat application."""
from qsstats import QuerySetStats
from datetime import datetime
import pytz
from django.shortcuts import render
from django.views.generic import TemplateView
from django.db.models import Count
from django.shortcuts import get_object_or_404
from .models import GroupMember, GroupPos... | [
"ren-kpi@i.ua"
] | ren-kpi@i.ua |
d9d0e43141e2b72654fc0332044fd4bd5edfd710 | 5ff2ed505223d4d496abb86c08f41fdfd0a9be31 | /lab1/script.py | da822fcdda441bf634d8ef42677b15839c83a2e7 | [] | no_license | fredford/cmput404 | bf4d5095106923baff93fbd50b1e1f2e3117c5d3 | 9f320dd08a0599a05f664fd987c1e4df7428fc38 | refs/heads/main | 2023-08-28T19:08:00.619563 | 2023-08-13T07:30:14 | 2023-08-13T07:30:14 | 332,294,932 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | import requests
print("Requests version: " + requests.__version__)
print("Google status code: " + str(requests.get("http://www.google.com/").status_code))
print("GitHub Python Script:\n")
r = requests.get("https://raw.githubusercontent.com/fredford/cmput404_lab1/master/script.py")
print(r.text) | [
"fredford@ualberta.ca"
] | fredford@ualberta.ca |
e45ffa21bf35454f51c22e5d6ecb3e65e31004c0 | fdc9cd062021a182900338228f70ca3bb13de9ec | /Lesson5/hw05_normal.py | 6aacb2eb17a6cc61fa6dfa4559300259f52b4ec8 | [] | no_license | AndreyU123/Python_Language_Basics-Lessons-Home_works | 4d7350d6e03ddc256ead8ff3366d63a66c086c57 | 7c5d7f20a8ab51dc6654ed6bd875f5d452b371a8 | refs/heads/master | 2020-05-17T14:09:03.168988 | 2019-05-26T15:24:56 | 2019-05-26T15:24:56 | 183,756,099 | 0 | 0 | null | 2019-05-26T15:28:52 | 2019-04-27T09:56:21 | Python | UTF-8 | Python | false | false | 2,521 | py | # Задача-1:
# Напишите небольшую консольную утилиту,
# позволяющую работать с папками текущей директории.
# Утилита должна иметь меню выбора действия, в котором будут пункты:
# 1. Перейти в папку
# 2. Просмотреть содержимое текущей папки
# 3. Удалить папку
# 4. Создать папку
# При выборе пунктов 1, 3, 4 программа запра... | [
"ukladnikovandrey@yandex.ru"
] | ukladnikovandrey@yandex.ru |
e08424fb63b30b7e4070d6a0b10bf47cf1c65b6b | dbf6aa7fa7ac1f7527231b4f977ceac4b5b5b8ca | /manage.py | bd8047ffba8d993071b46e8ba54d8289cd508564 | [] | no_license | smilejay/music-web | c1919f8ab759aebe39fecad79050864e2e07e7b8 | dcfa5ee6eb269182ffa5743bb3045b97fe071a6f | refs/heads/master | 2021-01-25T08:48:50.179850 | 2015-03-17T02:25:20 | 2015-03-17T02:25:20 | 26,998,776 | 0 | 1 | null | 2015-05-24T10:48:59 | 2014-11-22T12:54:08 | Python | UTF-8 | Python | false | false | 252 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "music_web.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"smile665@gmail.com"
] | smile665@gmail.com |
1b48c2c801138d4194a45b77645531339d867313 | 2d6847bdd4543a495fcb3acab42d8c0cad93be17 | /Problems/A simple expression/task.py | aba5880e00a90dbb39e19cb01e4fcd466cc95cda | [] | no_license | HectorZetino/PythonPractices | 9dc2ed3cec14b30b9f7e04eedc1b31ff2f56978f | 6fbbcae44e8fd57684b9b8621af7ab2809c60ade | refs/heads/master | 2022-11-24T14:09:07.512456 | 2020-07-31T01:35:37 | 2020-07-31T01:35:37 | 279,436,510 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | # work with these variables
a = int(input())
b = int(input())
c = int(input())
value = a * b
sub = value - c
print(sub) | [
"h.rzc.zetino@hotmail.es"
] | h.rzc.zetino@hotmail.es |
9724a2b64d22895b19723a1faba558d6c6fa5e86 | 6096f8b6689fa3c967eb459e0506819a4be3d059 | /examples/QKD/qkd.py | 6e67eb939df2a18d4b1099cb3bc4691b148a02c8 | [
"MIT"
] | permissive | zeroegg/QuNetSim | cefa837000aa94f0099f8e5d44cff0d939162e0e | 24239c3881f1d14c6a10e466c2f833b3dc0bd35f | refs/heads/master | 2022-12-03T07:22:43.534515 | 2020-07-16T09:00:57 | 2020-07-16T09:00:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,762 | py | import numpy as np
import random
from qunetsim.components import Host
from qunetsim.components import Network
from qunetsim.objects import Qubit
from qunetsim.objects import Logger
Logger.DISABLED = True
wait_time = 10
# !! Warning: this Crypto algorithm is really bad!
# !! Warning: Do not use it as a real Crypto ... | [
"AnirbanHFX@users.noreply.github.com"
] | AnirbanHFX@users.noreply.github.com |
35950c8356581390bba8855f424cf6e26e3c6bc5 | 7dc65b6d2e857c807bd2f75e2586af5f8e933fe5 | /scripts/securitygroup/test_regression.py | 574e5de1f23065be99d681f0425ed5fae7b1fe47 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | vkolli/contrail-test-perf | d6fdc20f4a2004066c5a6316afd915ecdc9366c2 | db04b8924a2c330baabe3059788b149d957a7d67 | refs/heads/master | 2021-01-18T15:36:18.120487 | 2017-03-30T19:19:30 | 2017-03-30T19:19:30 | 86,661,522 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111,564 | py | import unittest
from tcutils.wrappers import preposttest_wrapper
from vnc_api.vnc_api import NoIdError
from verify import VerifySecGroup
from policy_test import PolicyFixture
from vn_test import MultipleVNFixture
from vm_test import MultipleVMFixture
from base import BaseSGTest
from common.policy.config import ConfigPo... | [
"root@5b3s45.contrail.juniper.net"
] | root@5b3s45.contrail.juniper.net |
ffe05317dc06d9997163e1418a54c24f60a49031 | fb0f6646b2a7972454453907fbdc656b7471f55f | /p260_file_read.py | 8c4892ed1674aecd1e9a19996f1fc807b08cae99 | [] | no_license | woojin97318/python_basic | 6497d5c85369746edfe8ca79ad7f3f47c871ee66 | 97e9a322a08f1483bf35dc03507ac36af2bf1ddb | refs/heads/master | 2023-07-15T03:06:05.716623 | 2021-08-25T03:46:48 | 2021-08-25T03:46:48 | 399,681,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | # 파일을 엽니다.
with open("basic.txt", "r") as file:
# 파일을 읽고 출력합니다.
contents = file.read()
print(contents) | [
"woojin97318@naver.com"
] | woojin97318@naver.com |
ba137e225ffcd1d84491f193ce1d730f525ac753 | 6781266e8bc647be68c2457a7e0828d8289c5f47 | /fnc4ADXF2Shape.py | f258a864834b13de8845d6cbd33c149f9cdc86bc | [] | no_license | EZUSoft/AnotherDXF2Shape | 39d4bf7398499eb80b870b798e11a5ae6efbba66 | f1bfde2c0db22bbfa5703cce761c706e888f1ccc | refs/heads/main | 2023-05-13T22:31:59.149757 | 2023-05-03T09:05:29 | 2023-05-03T09:05:29 | 62,165,883 | 9 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,253 | py | # -*- coding: utf-8 -*-
"""
/***************************************************************************
A QGIS plugin
AnotherDXF2Shape: Convert DXF to shape and add to QGIS
copyright : (C) 2020 by EZUSoft
email : qgis (at) makobo.de
***********************************... | [
"noreply@github.com"
] | EZUSoft.noreply@github.com |
b70fe5fe1aa3a94ea7853606ca9712b4bb96da96 | 39b4397767371b6f978287e7bae80fc983a1163f | /nebula3/graph/ttypes.py | 69c7f9eb1143084a44e853d711ad032b287df7d1 | [] | no_license | vesoft-inc/nebula-python | a8fa80a104a70a3ca3ba2cf1dccdc2c67905c2e1 | 1fe9a44aa7b0f9fdfc35fec12af63e30d7f3546e | refs/heads/master | 2023-08-06T02:47:24.445679 | 2023-07-24T07:42:31 | 2023-07-24T07:42:31 | 214,361,893 | 163 | 76 | null | 2023-07-24T07:42:33 | 2019-10-11T06:37:53 | Python | UTF-8 | Python | false | false | 57,318 | py | #
# Autogenerated by Thrift
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
# @generated
#
from __future__ import absolute_import
import sys
from nebula3.fbthrift.util.Recursive import fix_spec
from nebula3.fbthrift.Thrift import TType, TMessageType, TPriority, TRequestContext, TProcessorEventHan... | [
"noreply@github.com"
] | vesoft-inc.noreply@github.com |
2e5923958751997de7a31f882f59feb24638e206 | 7430f5ab33deb70eba4e65120a1f118fdfbfed4b | /Perceptron de uma Camada/Perceptron_2.py | 5143a2a96bf55c444ef472e8ce5b31cf4d18fcb6 | [
"MIT"
] | permissive | filipeaguiarrod/Redes-Neurais-Artificiais-em-Python | 9eababd0ba247a0d9aba19d0481afaae502137fe | 11d3b27d1f456aae1412e2e333bad3dad6edcc03 | refs/heads/main | 2023-02-11T07:29:29.633313 | 2021-01-05T16:18:44 | 2021-01-05T16:18:44 | 327,052,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Aug 9 13:30:54 2020
@author: rodri
"""
# Otimizando Percpetron com numpy (soma)
import numpy as np
# Entrada e pesos
e = np.array([-1,7,5]) #np.array cria um array do numpy.
p=np.array([0.8,0.1,0])
# Simulando função soma do perceptron
def soma(e,p):
return e.d... | [
"filipeaguiarrod@users.noreply.github.com"
] | filipeaguiarrod@users.noreply.github.com |
92ddf5fae9b43efdb1c307b28dee8ff189c8154d | c2f82f21eb2733a8bf648e0b5fb4c531ba98e6b5 | /mysite/mysite/settings.py | 21b7e8c45aeb8fa25390fa2dc3795d9ead3f5edd | [
"MIT"
] | permissive | wasp33/BeidaKTV | 09e6f7822952142f3ab6f0f7ee5c7c6260573559 | f4ee568b82489f5d9de91649814536a1140577f3 | refs/heads/master | 2023-07-05T08:55:06.871076 | 2023-07-03T13:31:04 | 2023-07-03T13:31:04 | 275,689,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,220 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# ... | [
"drowsy.liu@gmail.com"
] | drowsy.liu@gmail.com |
c855d27252c4e9895ee1840feea6785bdd2d0d86 | 17c8928215e60e57b711e8ebe9bea526e424552a | /server/user.py | 2eaa70dec292a06c83e351e7556a5d175f8ae258 | [] | no_license | wangfpp/active | e1d0bb4c66acb0a628903b4d02d578cb55b09fa9 | 31e6394010d12fa65da4a51e37e9d7cb514c4b55 | refs/heads/master | 2020-04-07T23:19:56.737408 | 2018-12-07T13:05:51 | 2018-12-07T13:05:51 | 158,807,969 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,900 | py | # -*- coding: utf-8 -*-
# @Author: wangfpp
# @Date: 2018-11-21 15:22:53
# @Last Modified by: wangfpp
# @Last Modified time: 2018-11-21 15:24:11
#desc 用户管理
from tornado import web,ioloop
import uuid
import pymysql
import json
db = pymysql.connect('172.16.1.60', 'root', 'ddkk1212', 'dinner', charset='utf8')
def byt... | [
"wangfpp@gmail.com"
] | wangfpp@gmail.com |
e213299e3e5936a72fb2811c97f9437e373809c7 | f473e5e680dbd89837ad52249f609d0f63491c20 | /programming assignment 2.py | e69eff87a57e81b722982356de195e91fa231ea1 | [] | no_license | charlieirmiger/AlgorithmsHW | 8bf261f4d65c187e3eb9bfbd11f9f520bb46eb69 | b757f7c53ec62b3b721b5644d6d0c9ff612eb0b7 | refs/heads/main | 2023-03-05T01:55:27.620125 | 2021-02-18T22:18:31 | 2021-02-18T22:18:31 | 336,408,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,784 | py | #Programming Assignment #2 - Charlie Irmiger - 9/11/2020
#bin counter has time complexity of O(n)
def bin_counter(n):
count = 0
# print("int form: "+str(n))
n = int(n)
# print("Binary form: "+str(bin(n)))
n = n % 2**64
bin_val = str(bin(n))
for i in range(2, len(bin_val)):
... | [
"noreply@github.com"
] | charlieirmiger.noreply@github.com |
442688e008074047d9bebfb25ce0c4caee87c561 | b6501328e6f871a17cde63e0bfdffcf8ac7043c7 | /test_work.py | 58c7273d836cea437921f74a2ba32b19baaf47ff | [] | no_license | caoxiaozhidezhi/study-test | e68568670e0aa4814986cc5b09486fd0b0e0cf81 | 09a4d32529a239f6befbe9335e0f6f4b0ea96333 | refs/heads/master | 2021-04-03T09:42:34.163393 | 2018-04-17T01:26:46 | 2018-04-17T01:26:46 | 124,985,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,836 | py | # _*_ coding:utf-8 _*_
from functools import reduce
# ==利用内置函数chr(),ord()以及random模块写一个简单随机4位验证码==
import random
tmp = "" # 随机码的变量
for i in range(4):
# random.randrange(start, stop, step)返回指定递增基数集合中的一个随机数,基数缺省值为1。
n = random.randrange(0, 2) # 成随机数1或0,用来判断下面,是生成随机数字,还是字母
if n == 0:
num = ra... | [
"1029565222@qq.com"
] | 1029565222@qq.com |
36a524eddcd8d89d6f280c017fdc5cccda929a36 | ebd1f217d89d9963684dc18b11e38aa90cdf64a1 | /hundred_days/admin.py | 3e9175e4f9b99e70fb2ad4e00bc2184e47cfeaa8 | [] | no_license | emmanuelcodev/portfolio_django | 28cf75fa97531735809b86fb274e3ff8b30134f2 | 535ab838e1e179a255afb5e8fd3ec452e8fdb478 | refs/heads/master | 2020-03-23T04:14:31.573866 | 2018-09-06T01:05:43 | 2018-09-06T01:05:43 | 141,071,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | from django.contrib import admin
from .models import HProject
# Register your models here.
admin.site.register(HProject)
| [
"emmanuel.adw@gmail.com"
] | emmanuel.adw@gmail.com |
93cdae512cf458fe26263ccfd8795b2587eed450 | e074be8c042a872c3c97abe6e01ccaad101f0564 | /appr/models/kv/etcd/blob.py | 17855f9cedc685bea9cfb1616fc8beca065f1a7e | [
"Apache-2.0"
] | permissive | quay/appr | 1a8f80a4a3fcaf92403cae3cba27a5fc29aeea8f | 8e3dc3417c3b43eacb6ebe9543155b3586a75146 | refs/heads/master | 2022-07-13T22:59:24.023665 | 2022-07-05T20:54:56 | 2022-07-05T20:54:56 | 233,668,674 | 1 | 2 | Apache-2.0 | 2022-07-05T20:54:56 | 2020-01-13T18:50:19 | Python | UTF-8 | Python | false | false | 238 | py | from __future__ import absolute_import, division, print_function
from appr.models.kv.blob_kv_base import BlobKvBase
from appr.models.kv.etcd.models_index import ModelsIndexEtcd
class Blob(BlobKvBase):
index_class = ModelsIndexEtcd
| [
"2t.antoine@gmail.com"
] | 2t.antoine@gmail.com |
fc5b92b4ab95fe210cc599056cb9cc793811d72c | d67c252e76ae9f9d6a71d93847a13ba0b296a1bc | /day_2/module_4.py | 2f953015be70eede041201e4cf02892ecc45d8be | [] | no_license | ritacoimbra8/day_2 | fad3b5d997f96952f3d986bc3c13fd07866a4e2c | 6d70ab12fb507ec11fc5f96e0a4ddc2cd1e7196d | refs/heads/master | 2021-05-03T06:26:15.527802 | 2018-02-06T17:30:05 | 2018-02-06T17:30:05 | 120,490,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | '''
Created on 06/02/2018
@author: rita
'''
import utils
import time
def count_down(valor):
for i in range(valor, 0, -1):
print(i)
time.sleep(1) # faz pausa de 1 segundo no ciclo
print('final')
if __name__ == '__main__':
while True:
valor = input('Introduz um valor ... | [
"rita@rita-TravelMate-P258-MG"
] | rita@rita-TravelMate-P258-MG |
9a09f5b51e8fa36263109fb6373db5074e8069e7 | a11939df2aeea4e6ff54ac2678c941c2a1a0052b | /.arch/call_flow_charting.py | d48317eb34616a72b36b1281159ef05a59617fc8 | [
"BSD-2-Clause"
] | permissive | AXGKl/docutools | 70198e596763f126dd009883428fdc8d16b262db | e715c30a87280bf7a8c59f26d0816b73fffdee4c | refs/heads/master | 2023-08-10T20:33:52.784679 | 2021-10-04T22:09:54 | 2021-10-04T22:09:54 | 366,191,449 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,356 | py | from theming.formatting import markdown
from theming.formatting.viz_sequence import Mermaid, Plant
from devapp.tools import write_file, project
import json
vizs = {'plantuml': Plant, 'mermaid': Mermaid}
def make_call_flow_chart(flow, d_dest, fn=None, viz_name='plantuml', ILS=None):
"""
- flow from original I... | [
"gunther.klessinger@axiros.com"
] | gunther.klessinger@axiros.com |
7f08de5fc9d940f912450c7c8a1c200a3d404b56 | 21f38f1a9f6d4edfa3b233697e17d86f30b168ce | /janeway/migrations/0002_add_releases_and_credits.py | 8046d7841d026120c8fed38e386d74af867f80ff | [] | no_license | m100bit/demozoo | 3734d0126a6f0bd9ff98128a4350e40b22cdd8a3 | 93918da57e7cb96a0d2f724e5a876406d3477891 | refs/heads/master | 2023-03-14T05:34:20.323613 | 2023-01-27T23:10:32 | 2023-01-27T23:23:52 | 232,933,218 | 0 | 0 | null | 2020-01-10T00:32:53 | 2020-01-10T00:32:53 | null | UTF-8 | Python | false | false | 2,068 | py | # Generated by Django 1.11.8 on 2019-07-11 16:07
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('janeway', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Credit',
... | [
"matthew@torchbox.com"
] | matthew@torchbox.com |
73446be50d7bc2058cf047559cf8f880901e74ab | 8e2136416b393121fcd8560d7e26c392ec80a46a | /main.py | 2bccdbca16b06a5b1b29544d536a7d0cd75a079c | [] | no_license | afdaapala/belajartelebot | 48f9e28eb77df48c4d81dd51deea8edf1049bd7c | 3c8adebbe810103cdda5f325086505ac6e9c92bd | refs/heads/master | 2023-04-12T20:37:18.265873 | 2021-05-08T08:21:41 | 2021-05-08T08:21:41 | 365,459,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,716 | py | import os
import telebot
import requests
from bs4 import BeautifulSoup as bs
my_secret = os.environ['api telegram bot']
bot = telebot.TeleBot(my_secret, parse_mode=None)
kode = {
'0': ' Cerah / Clear Skies',
'1': ' Cerah Berawan / Partly Cloudy',
'2': ' Cerah Berawan / Partly Cloudy ',
'3': ' Berawan / Mostly Cloudy'... | [
""
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.