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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4a2ecbc07be3e1defbf0fed67e0ccfd2451a3d05 | a35ec94d6346fa20ad33aed7b00d3326f67ffa7a | /e_commerce/urls.py | 50e7eef5b4fe3d2b88ef6142825341877d16b05e | [] | no_license | UsamaMashood/e_commerce_project | b2d4c4843c9edc72f4f90341d944647be4dbb098 | 09faf224321ed4de0ea55cc2143d8610f2ed5d99 | refs/heads/master | 2020-05-23T05:52:07.758188 | 2019-05-14T16:03:18 | 2019-05-14T16:03:18 | 186,632,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('shop/', include('shop.urls')),
path('blog/', include('blog.urls')),
] + static(settings.MEDIA_URL, docum... | [
"usamamashood008@gmail.com"
] | usamamashood008@gmail.com |
b4190faf905e258263c3afd8f9712baf92b92424 | 6f14bd1f6a17d5129d79ad47661f317cb69d7079 | /TempestD_converter/decode_tempest_for_QA.py | 25486b773920fde82a67809cf30a4fa43462db11 | [] | no_license | CSU-CIRA/tempestd_data_assimilation | 2874970f40c532f026f25a72cf31b4172f18fd4f | f6d425368012cd8af9c42d427b2fc20af3942751 | refs/heads/master | 2023-04-05T16:57:18.109051 | 2021-04-29T12:13:48 | 2021-04-29T12:13:48 | 271,883,194 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,353 | py | # coding: utf-8
# Stock modules
import os
import sys
import math
import argparse
import glob
import re
import numpy as np
import numpy.ma as ma
import datetime
import pytz
import h5py
import logging
# Downloaded specialty modules
import ncepbufr
# Local modules
from tempest_h5_to_bufr import TD_record
'''
"python d... | [
"heather.cronk@colostate.edu"
] | heather.cronk@colostate.edu |
f2e3a44793aa3a254b55ee606674a23f99ca7d8a | d1eee92848bcb6c7179a004bbe37e0c3656821ed | /scripts/bba.py | 66ab1873dae8aaeebe4635127086b646344f58ab | [] | no_license | sswaans/CS244Project | b1dba7b2d6e7d225a7f530326fd598df764b363f | 21dfada26b361dea8da97e786884f325f0a56216 | refs/heads/master | 2022-10-23T11:43:24.369486 | 2020-06-11T06:11:02 | 2020-06-11T06:11:02 | 265,962,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,611 | py | from queue import Queue
import random
import matplotlib.pyplot as plt
class BBASim:
def __init__(self, rates, chunkSec, bufSize, reservoirSize, cushionSize, capacity):
self.rates = rates # Available video rates (Mbps)
self.chunkSec = chunkSec # Number of seconds in a chunk
self.bufSize = bufSize # Maximum numbe... | [
"sswaans@stanford.edu"
] | sswaans@stanford.edu |
61875b4157b2a3997a65fe8185632e870931a8fd | 8cdf2632e4858aac74bcb276701fea329bda253b | /max_subarray_dc.py | e275901b747449d2fa8b6112f59f4c25a10c1c5e | [] | no_license | victorhslima98/Complexidade_de_Algoritmos | b90fba85e97d7eb74238fa778b1f10b190d4efe7 | 50f666e5e4f2d9e2b7d7481499d36f256229505a | refs/heads/master | 2020-05-18T22:17:07.535425 | 2019-05-03T02:26:44 | 2019-05-03T02:26:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | from max_crossing_subarray import max_crossing_subarray
from math import floor
def max_sum_subarray(a, low, high):
if low == high:
return [low, high, a[low]]
else:
center = int(floor((low+high)/2))
(left_low, left_high, left_sum) = max_sum_subarray(a, low, center)
(right_low, ... | [
"noreply@github.com"
] | victorhslima98.noreply@github.com |
b18d2508a46f66081f28699a952ef5d57a521629 | ed8a031dd8a34eb614798ceb553e70439a0000ce | /Blog/Blog/urls.py | 5f8d259fe1dfe5ceb11ec8801966c066111e0b44 | [] | no_license | gunnalasreekanthreddy/myblog_using_django | d86a90528dcd9ef78826ef25d9b638afd088320e | 94307d90450cd4a4a615b15c6cfa0418520cb4ef | refs/heads/master | 2020-06-27T03:33:00.079948 | 2019-08-02T12:05:38 | 2019-08-02T12:05:38 | 199,832,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,440 | py | """Blog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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 vi... | [
"sreekanth.g@apalya.com"
] | sreekanth.g@apalya.com |
68d0e1293ce58896cd7ef5a2be74639b3686fcb9 | 7f50d37ba987fade8bce93fb10286292a9a0d7e1 | /sentry.conf.py | f381b1ea1c92503f43337372fa43c0fff2a7968e | [] | no_license | rochacon/docker-sentry | db4ac5be75392b6d7fdabdf211532b3b5b9eca34 | 32d41ab39a2dbc222e5ed6080ca943b2225cc07a | refs/heads/master | 2021-01-18T14:06:01.265851 | 2014-10-27T19:02:54 | 2014-10-27T19:02:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | # /etc/sentry.conf.py
# edit this to your liking
import os
import dj_database_url
DATABASES = {'default': dj_database_url.config()}
# No trailing slash!
SENTRY_URL_PREFIX = 'http://127.0.0.1.xip.io' # FIXME modify this to your domain
# SENTRY_KEY is a unique randomly generated secret key for your server, and it
#... | [
"rochacon@gmail.com"
] | rochacon@gmail.com |
c79e23af4259ba1c22d26c8aa3efba74db913669 | 3fb24e6505ffdc3a3961c467bc54ba7c0b526454 | /gravityRK4_resized.py | bb4decb7fef61bfc5574688ebcdd950f6745dc2a | [
"MIT"
] | permissive | martinohanlon/minecraft-planets | 8d76018cb1dc4154becf9ec836f1e00488673b9e | c7017eb9be6260c8c664891a77063305ac97ae57 | refs/heads/master | 2020-06-02T07:50:33.539646 | 2013-03-07T21:19:43 | 2013-03-07T21:19:43 | 8,636,766 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,722 | py | #!/usr/bin/env python
"""
An improved version of my Python-based gravity simulator, using Runge-Kutta
4th order solution of the differential equations - coded during Xmas 2012.
Happy holidays, everyone!
I've always been fascinated by space - ever since I read 'The Family of
the Sun', when I was young. And I always wan... | [
"martin@ohanlonweb.com"
] | martin@ohanlonweb.com |
499e78c1d4c85fbf210f6bfa70ebea06fd01bca7 | dc3b2dfb012d4a2738f7fecbc128b7cb3b1090e0 | /utils.py | e28f15eb879683d5278f67ff4d1680ec38cdb3b4 | [] | no_license | jonathanlctt/ihs_srht | 5f8d93796e4facb3759f121c95a144ee4270cdfa | 6cc7e687da68cb470f636e4755579028b48a19bb | refs/heads/main | 2023-04-10T00:18:04.789764 | 2023-04-01T03:11:03 | 2023-04-01T03:11:03 | 306,413,609 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | import numpy as np
from time import time
def timeit(method):
def timed(*args):
start = time()
result = method(*args)
end = time()
return result, end-start
return timed
def generate_example(n=1024, d=64, nu=1.):
A = 1./np.sqrt(n)*np.random.randn(n, d)
U, _, V = np.linalg.s... | [
"lacotte@stanford.edu"
] | lacotte@stanford.edu |
8526d76d462eb31cb9b6edae46331fdb9552850a | 7a5b729a660a35d0d80c9836202025a719f026fb | /general codes/mod10_10.py | 8c80260bc5a7216f6b44eceaaa9cf816b84db9ad | [] | no_license | Harshit2009/My-Programs- | 7a05eb3369b98010805752a0234867b726c4ac0e | 1ac60faeb0ba514f2c35bcb82be43654b5cef785 | refs/heads/master | 2023-01-13T18:58:26.088714 | 2020-11-19T08:31:43 | 2020-11-19T08:31:43 | 269,538,702 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | import mod10
mod10.mod10(0,1,10)
| [
"noreply@github.com"
] | Harshit2009.noreply@github.com |
5676c70152b1f096593b050e73984295b82952ee | 6674ecfc4a2c0a3a5bdc45b458e7f18e9b134092 | /src/lvgl/scripts/release.py | 28370c668b96a1bc915498d83c2659b7a44e2049 | [
"MIT"
] | permissive | AlexGoodyear/TTGO_TWatch_Library | 0ab8b76b0d96cadcf5982bafc028bdf0ad6a5ac4 | d982092b2700ba2a4deba8be38bf338ffde855c1 | refs/heads/master | 2022-12-05T03:26:52.905530 | 2020-08-21T19:28:45 | 2020-08-21T19:28:45 | 276,957,141 | 5 | 0 | MIT | 2020-08-12T10:32:06 | 2020-07-03T17:46:09 | C | UTF-8 | Python | false | false | 13,699 | py | #!/usr/bin/env python
# Release lvgl, lv_examples, lv_drivers. docs, blog and prepare the development of the next major, minoror bugfix release
# Usage: ./release,py bugfix | minor | major
# The option means what type of versin to prepare for development after release
#
# STEPS:
# - clone all 5 repos
# - get the ver... | [
"lewisxhe@outlook.com"
] | lewisxhe@outlook.com |
d3c7eba1a1d9d06ee6edec913210550daf9fc33e | 94c64fc5191243d41322e1ddeefa53fe368cd79f | /its_triage/models/account_move.py | 42063865f86c305e92c83d7d97420f3310e279f4 | [] | no_license | solo-jr/its_kassim | 342784c4c7bac65f72b8dcf89e72fd9cb6cef2c3 | 4fe85ea56c95da8980c0f351121fcde9a4b10b26 | refs/heads/main | 2023-05-11T17:25:03.280755 | 2021-05-29T21:44:54 | 2021-05-29T21:44:54 | 368,870,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2021 IT-Solutions.mg. All Rights Reserved
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the... | [
"jeanrobertr0@gmail.com"
] | jeanrobertr0@gmail.com |
fda009d969b4c11b4518f554302e60e88490b46b | 0f09759025db447fe63b3af0af80c3e31e2a887f | /scripts/cell/taskScripts/Bangzhushenmiren.py | 06b8d8ab06630b18f47c4ebd930e3d56d5de5726 | [] | no_license | jevonhuang/huanhuoserver | d7db1cd4c67d8be2da4dc9ec84ef8f23e891c537 | caa8a87cd303b4d0368a0a6397fc1d47685c3bc3 | refs/heads/master | 2020-12-07T16:47:40.668507 | 2018-04-02T10:12:01 | 2018-04-02T10:12:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | # -*- coding: utf-8 -*-
import KBEngine
from KBEDebug import *
class Bangzhushenmiren(object):
def __init__(self, owner, selfIndex, npcName, npcTaskIndex):
DEBUG_MSG("Bangzhushenmiren:__init__")
self.owner = owner
self.selfIndex = selfIndex
self.npcName = npcName
self.npcTa... | [
"969041327@qq.com"
] | 969041327@qq.com |
87d3f4edd0f90cf21b88a93a2fb448387e317cda | cfe58567a8f5a07bfc3bbf75bd0aeb674de10b35 | /Git_Vundle_Vim_BashIt_Linux.py | 6a11a10a3eba110ee303aee2694a84b9908e615f | [] | no_license | chrisrosa418/vimrc | eb215e8db560542e66ad6d030a489ad23707978a | 8c0d42ae8b110a79e9d343a570cef598fd66adc2 | refs/heads/master | 2021-01-23T07:03:06.720252 | 2018-07-17T00:20:27 | 2018-07-17T00:20:27 | 40,999,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | #Check to See if GIT is installed
from subprocess import Popen, PIPE
import os
#Fresh Install
update = "sudo apt-get update"
os.system(update)
#Install Git
git = "sudo apt-get install git"
os.system(git)
#Install Vim
vim = "sudo apt-get install vim"
os.system(vim)
#Install Vundle
vundle = "git clone https://gith... | [
"chrisrosa418@gmail.com"
] | chrisrosa418@gmail.com |
fba52c98ec47e1d97dde2ada860f69add0d7d445 | daca5cf1750496799a07f436644efac8bf1c68cc | /src/fiduciaPro/urls.py | 10bb528a6c5e7ee3deb887367f8e6f46f4f675e2 | [] | no_license | TasifTarikul/Fiducia | 88ed3c00e734156fb715a68ed0b22e88f3687338 | eca356ba247f94dc02e6a6b0d5527cc8e74dd774 | refs/heads/master | 2022-05-19T22:39:02.088312 | 2020-12-11T12:31:23 | 2020-12-11T12:31:23 | 241,008,454 | 0 | 0 | null | 2022-04-22T23:06:49 | 2020-02-17T03:05:36 | JavaScript | UTF-8 | Python | false | false | 1,138 | py | """fiduciaPro URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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-ba... | [
"tasiftarikul@gmail.com"
] | tasiftarikul@gmail.com |
f5520c23088623002d67820d418372da588ac78d | 7a4ae475933d65998ad401fa13e8ebdc198446ce | /Python/Exercicio05.py | e48a2639dd392b92fb4dbcd9ad652af01f45d5c6 | [] | no_license | vlkonageski/Logica | b26f20b0ee8e1bdcc4fb0125af18ba44af6eb6a5 | 962aa382dc4af41712f0ca1f59339d8435bfa4b2 | refs/heads/master | 2023-04-03T14:33:40.034303 | 2021-04-20T00:48:34 | 2021-04-20T00:48:34 | 303,716,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
Faça um algoritimo que pergunte quanto voce ganha por hora e o numero de horas trabalhadas no mes.
Calcule e mostre o total do seu salario no referido mes.
"""
valor_hora = float(input("Informe quanto voce ganha por hora: "))
horas_trabalhadas = int(input("Informe a quantidade de horas trabalhadas: "))
salario = ... | [
"vinicius@alimentoscenci.com"
] | vinicius@alimentoscenci.com |
ecbe3b9041201d2af65fc820530e64b9a5aa5439 | a1382b2bcfea1485130bd69835343fdbacef218a | /preimage/models/weighted_degree_model.py | 8d782f0a7d4c7c26682f3d9cda360a4d4dfd44f9 | [
"BSD-2-Clause"
] | permissive | a-ro/preimage | 6dde6285b7918bcdd2522a855214b921fc32d0c6 | 5489e8ab34bdd5f1f1f2eb18718425373ede44bb | refs/heads/master | 2021-03-30T15:53:08.386991 | 2015-07-17T02:14:28 | 2015-07-17T02:14:28 | 33,873,950 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,987 | py | __author__ = 'amelie'
from preimage.features.weighted_degree_feature_space import WeightedDegreeFeatureSpace
from preimage.inference.graph_builder import GraphBuilder
from preimage.models.model import Model
class WeightedDegreeModel(Model):
def __init__(self, alphabet, n, is_using_length=True):
self._gra... | [
"amelie.rolland.1@gmail.com"
] | amelie.rolland.1@gmail.com |
6eb8b235fd81ce33dab57b99690a47093bc66b94 | 9c47fbb2761cc50b7b0be67decb20c377dd1d078 | /CodeWars/Python/020-Count_IP_Addresses.py | 77ab020caab135c43570828f47bde8c58e3618d3 | [
"MIT"
] | permissive | IsFilimonov/Interviews | 782ec1f5d82373c20df0edaaeb56cfb0d493a9e7 | 3b9858f43ef6b7a2b5e565ef58406e4018edbf97 | refs/heads/main | 2022-12-12T13:16:25.750870 | 2022-11-30T11:31:38 | 2022-11-30T11:31:38 | 213,611,039 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | import ipaddress
def ips_between(start, end):
return int(ipaddress.ip_address(end)) - int(ipaddress.ip_address(start)) | [
"Filimonov_IS@mail.ru"
] | Filimonov_IS@mail.ru |
f434d074c2a942412002f5c9efc9a15c033dacc0 | 5472a3f913e1a6698b9dab902545f0ba02e7a02e | /pbay_url.py | 30c40f18b360964362158d06ed0107620e90d399 | [] | no_license | Arrowheadahp/piratebay-search-and-download | bf38956588ce6da8caf25cec653bec76409cfd79 | 0fe8db913215e4a0b00a9153e7085728e7d3ecf7 | refs/heads/master | 2020-05-31T05:56:18.592671 | 2019-07-20T06:15:26 | 2019-07-20T06:15:26 | 190,131,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | from bs4 import BeautifulSoup
from urllib.request import Request, urlopen
import webbrowser
def soupcreate(url):
req = Request(url, headers={'User-Agent': 'Mozilla/5.0'})
webpage = urlopen(req).read()
#print ('url page read')
return(BeautifulSoup(webpage,features="lxml"))
def geturl():
proxylist... | [
"prasunbhuin.pkb@gmail.com"
] | prasunbhuin.pkb@gmail.com |
2947dd334a9962628fbd6ad140d2c25e8e572f97 | ba54b70f93fe7f9d114623d76b1ad3f88309d66f | /main/views/public.py | 2b2679a267e16f85bdc1a067bb156f7ebb7f755b | [] | no_license | loobinsk/newprj | 9769b2f26092ce7dd8612fce37adebb307b01b8b | c6aa6a46973fb46375f4b05a86fe76207a8ae16d | refs/heads/master | 2023-05-07T00:28:44.242163 | 2021-05-25T08:22:05 | 2021-05-25T08:22:05 | 370,617,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,630 | py | #-*- coding: utf-8 -*-
from registration.backends.default.views import RegistrationView
from main.form import RegisterForm, AuthForm, FeedbackForm, ReclameForm
from django.views.generic import View, TemplateView, FormView
from django.contrib.auth.views import login, logout
from main.models import Company, Advert, Tarif... | [
"root@bazavashdom.ru"
] | root@bazavashdom.ru |
b9b99e68650ad4506aabc58561593edbd3eb674b | 6dc10e1f30c558fa274e8d7935bf9e8d34b6bfba | /sparql_shim/parsers.py | 07b5b5406dadb17b3aa1dfd894fcbde9d9b58fd0 | [] | no_license | npilon/sparql-shim | f7131ec0350af490c932332b0c3888834cc4fb98 | 0497211e7f2b88c0fe0fa9310f4f6a14bca4a1fb | refs/heads/master | 2020-12-24T17:17:39.564463 | 2010-12-05T03:11:29 | 2010-12-05T03:11:29 | 1,124,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | from cStringIO import StringIO
import rdflib
from pymantic import content_type_to_rdflib_format
def parse_graph(request, content_type):
request.body_graph = rdflib.Graph()
request.body_graph.parse(StringIO(request.body),
format=content_type_to_rdflib_format[content_type])
def par... | [
"npilon@gmail.com"
] | npilon@gmail.com |
22a0efd61428ca996199ba140cb48190c54006e0 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/0/bfi.py | e4c0d8a77b1235838847b5ced1684c62c97867da | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
97e11e4eb41ae9950e9f027a56876c03c99d3f64 | 37a273eb995edcc6267ffa0f9409ccf6897845c6 | /climetlab/mockup.py | 9ee6f3e5eddd62605127bd2fdbf47d75844f3d5a | [
"Apache-2.0"
] | permissive | dingxinjun/climetlab | 3f6fe6a6547c5e29df4ab2bbcdd378d7c43ce1ce | 9ae9210f81e754f3d7d97aa75fd29c5b1a581533 | refs/heads/main | 2023-08-15T15:17:01.458040 | 2021-09-27T11:52:35 | 2021-09-27T11:52:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,708 | py | # (C) Copyright 2020 ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergovernmenta... | [
"Florian.Pinault@ecmwf.int"
] | Florian.Pinault@ecmwf.int |
5d379cb7e6ff7287440a81755fb4498393ba2973 | e2585a04a371f1bec5581b481f0da7dcb69b06f9 | /client/migrations/0006_client_bonus.py | a7515d18c1d536cd420519ec9a6b48efa243a359 | [] | no_license | cianidtop/prokat-crm | fd1edca0a3d389e62b5f4917c65dd5d91ff8e9b7 | 13b60dadeabdb22643c55e911202c48d9727a9bd | refs/heads/main | 2023-08-10T08:50:59.063119 | 2021-09-13T08:09:27 | 2021-09-13T08:09:27 | 405,884,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | # Generated by Django 3.0.4 on 2020-03-22 15:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('client', '0005_auto_20200316_1555'),
]
operations = [
migrations.AddField(
model_name='client',
name='bonus',
... | [
"root@e7cfa4b601be"
] | root@e7cfa4b601be |
5253d398213d1c154ea2dffba964210fbf476c74 | e33ecdb112045327344dce2ae8b0612848938f24 | /cotidia/socialshare/conf.py | 1e7d660917e60fb666ce61f86598c24b02e1edef | [
"BSD-3-Clause"
] | permissive | guillaumepiot/cotidia-social-share | 939125b97474bb34e8a94cd0fa6d6919026c029c | 9c926bb86e7f158f2b59eaddcf09eba459c009b6 | refs/heads/master | 2020-04-21T07:28:24.520846 | 2019-03-26T14:00:00 | 2019-03-26T14:00:00 | 169,393,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | from django.conf import settings
from appconf import AppConf
class SocialShareConf(AppConf):
FACEBOOK_APP_ID = "[Not implemented]"
class Meta:
prefix = 'socialshare'
| [
"guillaume@cotidia.com"
] | guillaume@cotidia.com |
563989d6542731165bdd0c43292b32598e100512 | ecca799453ce5939ce703915fb461f628a77eabe | /course/csic5011/2023/homework/homework4/LI_YAKUN_MATH 5473_HW4/HW4_T2.py | 308c51fdca776aad5a412338b2b88be11a6738f7 | [] | no_license | yao-lab/yao-lab.github.io | 830c3835f69d3f285a533b2cdc2c032dfc9eb12d | 08c96fb16a7516e5db556b135cc6a49964bc398c | refs/heads/master | 2023-06-08T00:50:12.585105 | 2023-05-29T11:52:48 | 2023-05-29T11:52:48 | 124,191,804 | 39 | 37 | null | null | null | null | UTF-8 | Python | false | false | 1,487 | py |
import numpy as np
import math
import random
import pandas as pd
from cvxopt import matrix, solvers
from cvxopt.modeling import variable, op,sum, dot
import matplotlib.pyplot as plt
N = 20
d = 20
K = 20
S = np.zeros((N, K), dtype = float)
def function(a):
if a == 0 :
return -1
else:
return... | [
"yuany@ust.hk"
] | yuany@ust.hk |
4c273131315b983cb2e4a345e77c2afd9fd4eb39 | e4276439d0bdb0e0009900527852542854d59e23 | /scoreboard.py | 2f3ad26aa2e9885ed005aa162e9a2aa5cc81ec6d | [] | no_license | Daceman07/Frogger_game | b688ab1001138f2509bcf0a593d2228fa391668d | 7f9c26da1d93e0207e817b76065c66af3b8df11b | refs/heads/master | 2023-06-29T10:21:01.238055 | 2021-08-05T22:11:33 | 2021-08-05T22:11:33 | 393,181,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | from turtle import Turtle
FONT = ("Courier", 20, "normal")
class Scoreboard(Turtle):
def __init__(self):
super().__init__()
self.penup()
self.hideturtle()
self.level = 1
self.goto(-280, 260)
self.write(f"Level: {self.level}", align="Left", font=FONT)
def upda... | [
"joemorano@yahoo.com"
] | joemorano@yahoo.com |
a4e7abec0d0fbe8262a04058bd93baabf0bee303 | c99006d4bfe69b72757b267f2c51fb1ffcf4d8aa | /baseline3-8050.py | be726a05653739fc9140058e3c93df3c375b1eae | [] | no_license | a550461053/2019CCF-jinnan | 24a6f5dce8956b4d61427e6099d49cbada534f1f | 2633f2d23a5e54a0db5b0074c9220a9846129454 | refs/heads/master | 2020-04-17T11:56:21.211932 | 2019-01-19T15:28:36 | 2019-01-19T15:28:36 | 166,560,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,646 | py | # coding=utf-8
# @Time : 2019-01-19 10:07
# @Auther : Batista-yu
# @Contact : 550461053@gmail.com
# @license : (C) Copyright2016-2018, Batista Yu Limited.
'''
'''
import numpy as np
import pandas as pd
import lightgbm as lgb
import xgboost as xgb
from sklearn.linear_model import BayesianRidge
from sklearn.model... | [
"a550461053@gmail.com"
] | a550461053@gmail.com |
7cf273190d96620eee668d08dc2db2285ad01b3b | 0e5c7b5e82d11ff3af358e8d83a76adda0dcbb53 | /generator/generator.py | 50350dc31c14d8e56a496c40a1110e8016ce88e1 | [] | no_license | zkroliko/ADPTO-Project--Queens | 64d8dfa95866ad1759bf62ef69f610608ff27408 | 34fa1eab0507f9d356abdc85caa5e614702f89af | refs/heads/master | 2021-01-20T20:36:36.932686 | 2016-10-09T17:16:23 | 2016-10-09T17:16:23 | 63,703,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,162 | py | #!/usr/bin/env python
# coding=utf-8
# generator.py
import random
from sys import *
PRINT_MOVES = True
MAX_TRIES_FOR_TARGET = 10
MAX_TOTAL_EXPONENT = 25 # 60
MAX_BOARD_SIZE = 128
directions = {
"top_left": (-1, -1),
"top": (0, -1),
"top_right": (1, -1),
"right": (1, 0),
"bottom_right": (1, 1)... | [
"zbkrolikowski@gmail.com"
] | zbkrolikowski@gmail.com |
75209e21a5a4c7a82156680d8a773a25f5018b16 | 08a754c83ad8455077670abb2736ba0e3a8e3817 | /work/clean_files.py | 698ffebf605b6cb54a6e64902dae6aa010a73639 | [] | no_license | momoforever/momo | f4a52dbf7b24fad70fe9ffc61a8333e951aeabff | 040173dc519bdfdd3c10b28f6cecf62c6015d23b | refs/heads/master | 2021-01-17T15:36:20.004289 | 2016-06-25T00:27:54 | 2016-06-25T00:27:54 | 56,226,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | #!/lab/gw_test_framework/app/venv/python3.5-rhes6.x86_64-epglib2/bin/python
# coding:utf-8
import os
import datetime
def clean_file(file_dir, days):
lists = os.listdir(file_dir)
file_lists = []
count = 0
for i in range(len(lists)):
path = os.path.join(file_dir, lists[i])
if os.path.i... | [
"dream.liu@ericsson.com"
] | dream.liu@ericsson.com |
8d704be2ad0bccea7611b5a9eac75d47a7e74899 | f448b9635d076d88a4439e937eec7dd050cc316a | /xx.py | 6a1bcaeeb2767fb3a0468cbdf1fb2786afa1066f | [] | no_license | udaytejam/practicesamples | c7e6ba2e30f52138b3b22414c57ddc1f9e94162a | acda24dfe5c3aff60b688c9b434b83a3132b0af1 | refs/heads/master | 2021-01-10T02:03:51.456102 | 2015-10-05T11:23:42 | 2015-10-05T11:23:42 | 43,500,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | globvar = 10
def read1():
print(globvar)
def write1():
global globvar
globvar = 5
def write2():
globvar = 15
read1()
write1()
read1()
write2()
read1() | [
"admin@Admins-MacBook-Pro.local"
] | admin@Admins-MacBook-Pro.local |
243077a75698f29576100138de41aa8a654a2058 | 3129e4c7e2b6264c6fea1cf7a182a1b600f506ff | /src/server/server/migrations/0001_initial.py | 0ffc0e17608a8cdc6108c1bfce2e72750f5db506 | [
"MIT"
] | permissive | ITCoders/MobileCloudIR | a8202aebd2173378f317514dd3191bd93635c81e | b48e8ab0bda8c3764320ef8c51bd0c70c01663a8 | refs/heads/master | 2021-05-15T13:19:44.725078 | 2018-03-18T17:02:55 | 2018-03-18T17:02:55 | 107,083,232 | 3 | 1 | MIT | 2018-03-18T17:02:56 | 2017-10-16T05:48:11 | Java | UTF-8 | Python | false | false | 963 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-18 19:14
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='DataRe... | [
"solankiarpit1997@gmail.com"
] | solankiarpit1997@gmail.com |
f4e823b8074caad03b76b275a87e60d38b5c1ea2 | df04a9fce4208476afdc35c32d8c8a4ef388bfba | /pandas/core/array_algos/take.py | 31cbadb0e442bcce4d507c8f7fab585186ff5bb8 | [
"BSD-3-Clause"
] | permissive | burbanom/pandas | 6c0807ee6ab72eb1d7a94764c551e6aa7972b023 | 285dae9d29f1a0693b7c3e62ede5449ec3812c2a | refs/heads/master | 2021-06-19T10:48:21.732456 | 2021-03-16T15:33:07 | 2021-03-16T15:33:07 | 181,310,248 | 0 | 0 | BSD-3-Clause | 2021-03-16T15:33:10 | 2019-04-14T13:06:32 | Python | UTF-8 | Python | false | false | 19,176 | py | from __future__ import annotations
import functools
from typing import (
TYPE_CHECKING,
Optional,
overload,
)
import numpy as np
from pandas._libs import (
algos as libalgos,
lib,
)
from pandas._typing import ArrayLike
from pandas.core.dtypes.cast import maybe_promote
from pandas.core.dtypes.com... | [
"noreply@github.com"
] | burbanom.noreply@github.com |
6547662049ad68d0f522d83608f4a1bc4000f4a6 | 58e78ec0c9997e416546e49bff5a1c65de7e1059 | /E_Choice/main/urls.py | d2630d17c7a47131b2205420ccb7d3586b91595e | [] | no_license | bramlap/E-Choice | f79d66dc2828b3a54c5b905a12d7697961c0d8cd | 5e34c02cc615a426d8a6bd099bc59785606336f8 | refs/heads/master | 2020-04-18T00:32:29.483072 | 2016-08-31T08:04:03 | 2016-08-31T08:04:03 | 66,548,714 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | """ftc URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/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-based v... | [
"bramlap@gmail.com"
] | bramlap@gmail.com |
e4c2ae0d87d85c79e418b6439a463334c40e3c8a | a6f735889e77d2469e9bac9fb253adb872cdc766 | /server.py | 8027bc50c4e12d3a0c98022096c13a4c03f43e03 | [] | no_license | DevCodes1/portfo | dc9c84783526cfa9d008ef88cc161fd4965cde03 | c6afe9d26388d78590abfd9a3c3030ebbc7b59c7 | refs/heads/main | 2023-01-07T12:25:17.918485 | 2020-11-10T14:52:02 | 2020-11-10T14:52:02 | 311,688,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | # lonked to the text file database CSV File
from flask import Flask, render_template, url_for, request, redirect
import csv
app = Flask(__name__)
print(__name__)
@app.route('/')
def home():
return render_template('/index.html')
@app.route('/<string:page_name>')
def html_page(page_name):
return render_temp... | [
"60689176+DevCodes1@users.noreply.github.com"
] | 60689176+DevCodes1@users.noreply.github.com |
ab60c94e17edc63d738db0bc96f31a64f747d412 | 21fe5be2ec275416c06a09a006be9b68f31230dc | /regexURLfinder.py | abc821259e59374967b2a5406edc0e7f089c1609 | [] | no_license | heyquentin/automate-the-boring-stuff | 0ead12d761cf4837433f081867cd90b1b1fc2913 | d34654990734b6dab655c33a42a8da2973a7f0d1 | refs/heads/master | 2021-03-16T21:00:45.053373 | 2020-04-07T02:29:31 | 2020-04-07T02:29:31 | 246,943,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,745 | py | import re
# TODO: Create a text variable with URLs in it
text = """But I must explain to you how all this mistaken idea of denouncing pleasure and https://www.lipsum.com/ praising pain was born and I will give you a complete account of the system,
and expound the actual teachings of the great explorer of the trut... | [
"noreply@github.com"
] | heyquentin.noreply@github.com |
072d371ce95370c4977fcc64b3a3e77c06ca6c30 | 5f07c38899e350b0b776510fd7d7831d44cf1404 | /drfmixins/drfmixins/settings.py | d599783f7b76ad7f17b66c1c6fd0e90c0991e475 | [] | no_license | shubham454/Django-Rest | b733f1d47ada9df452e912dcd8acad48a7ec4c75 | 3d94f57cab3537c51caa68807d5fcdf8883d2d2c | refs/heads/master | 2022-12-14T20:37:11.835794 | 2020-08-13T18:43:26 | 2020-08-13T18:43:26 | 287,354,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,133 | py | """
Django settings for drfmixins project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"moreshubham203@gmail.com"
] | moreshubham203@gmail.com |
d302c5d3ee83f2c09c5d7ac3a31c6e14d9b5b0cb | 32661df15c5eef6e7f14f388aa16af254e6c4141 | /main/data_feature_muti_main.py | d06df63f2be0a357a2bfabb27bcacac686d73dd4 | [] | no_license | hyren01/KunShan-stdmatcher | 10dcb14f21e68cb3831b468b671eecef7ce4fb1a | 37afd06b5a8374e4ab54e71142f13960030da3ed | refs/heads/master | 2022-11-05T11:58:46.333595 | 2020-06-22T06:56:23 | 2020-06-22T06:56:23 | 274,062,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,509 | py | import logging
import multiprocessing
import time
import ibm_db
from configuration import Config
from dao import get_db2_connect
from utils.common_util import date_trans
from main.data_feature_main import analyse_table_feature
from utils.log_util import init_log
init_log('../logs/feature', level=logging.DEBUG)
if __na... | [
"1103406663@qq.com"
] | 1103406663@qq.com |
bd159b3012e8e7eba9eba97fabcc90c2eaa40352 | 431418fb8be3eb611cb417538e7a06e5a2e1267d | /talosblockchain/talosvc/test/test_policy.py | 87fef750c16853ba27307ad05f0bc3971025e7e2 | [
"Apache-2.0"
] | permissive | chunchuan-wang/droplet-engine | a4f6e3c4d6d50fe40942ff44bf67865b77f3ebfa | 6f542c456ba51162aec183c22f56efbe0accfc4b | refs/heads/main | 2023-01-03T05:03:02.612949 | 2020-11-03T12:32:46 | 2020-11-03T12:32:46 | 300,635,447 | 0 | 0 | Apache-2.0 | 2020-10-02T14:11:00 | 2020-10-02T14:10:59 | null | UTF-8 | Python | false | false | 1,527 | py | import unittest
from talosvc.policy import Policy, create_policy_from_json_str
from talosvc.config import *
from talosvc.policydb import create_db, TalosPolicyDB
import binascii
class TestPolicy(unittest.TestCase):
def test_1(self):
policy = Policy("Me", 12, 1, "nonce")
policy.add_share(["A", "... | [
"lukas.burkhalter@ringwil.ch"
] | lukas.burkhalter@ringwil.ch |
4e3fa15f47c92e5b5c108003def6343323d488e5 | bd5cf1a71604fe2b9ec5ca77803e396c802ac02e | /codeforces/ppc/02contest/l.py | 9acb8a4ae8ee4ca34c966cb87e4f8b67bce29f53 | [] | no_license | rafaelmakaha/competition-programming | 405e665dd7d3b42f40e086c9ab006e9e6a9d9307 | 6840b53dcb042497d3446bb267786984e0360fb9 | refs/heads/master | 2023-04-01T22:45:25.067308 | 2021-04-03T15:00:33 | 2021-04-03T15:00:33 | 177,287,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,652 | py | '''
L. Way Too Long Words
time limit per test1 second
memory limit per test256 megabytes
inputstandard input
outputstandard output
Sometimes some words like "localization" or "internationalization" are so long that writing them many times in one text is quite tiresome.
Let's consider a word too long, if its length is ... | [
"rafael.makaha@gmail.com"
] | rafael.makaha@gmail.com |
1a4112e5ec12d83e80e2b90b621e04a155b02728 | 61744d85bbf2aefdf0fc27006acc2e742db9e152 | /misoKG-master/legacy_code/run_multiKG_DragAndLift.py | 7611d9296675d8bd95723646ed6c3787b57bcfc3 | [] | no_license | sunatthegilddotcom/perovskite-4 | 896da29694830a6b98c33050f1aa41258310bd59 | dd21c8b6217c5859783a6a92e9b082aeea98f9e8 | refs/heads/master | 2021-07-03T13:36:08.618860 | 2017-09-25T02:18:44 | 2017-09-25T02:18:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,361 | py | from joblib import Parallel, delayed
import scipy.optimize
from moe.optimal_learning.python.data_containers import HistoricalData, SamplePoint
from moe.optimal_learning.python.geometry_utils import ClosedInterval
from moe.optimal_learning.python.python_version.domain import TensorProductDomain as pythonTensorProductDo... | [
"hwcxy2008@yahoo.com"
] | hwcxy2008@yahoo.com |
fe495c9341a1eb554cfe5de479bfbb5f57e1bab2 | 677fbc1a97c53aa8c56da070539afc3d8f48dd8c | /libraries/botbuilder-core/botbuilder/core/user_state.py | 9bc0d12586bb993faaaba0ade4b488957cd3ee8d | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | crazyrex/botbuilder-python | e1e83110e57ffd92c6687d7ec3856a631efd501c | f2f1a8bb4171bbebdc42b94a68b2c2cf7aea8683 | refs/heads/master | 2020-03-31T03:49:09.024171 | 2018-09-19T18:53:44 | 2018-09-19T18:53:44 | 151,879,387 | 1 | 0 | MIT | 2018-10-06T20:34:16 | 2018-10-06T20:34:16 | null | UTF-8 | Python | false | false | 1,463 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from .turn_context import TurnContext
from .bot_state import BotState
from .storage import Storage
class UserState(BotState):
"""
Reads and writes user state for your bot to storage.
"""
no_key_error_messag... | [
"steven.gum@gmail.com"
] | steven.gum@gmail.com |
50fd88816adb4f8b0d7547c4fe8995661dad64a1 | 47538a35f3900a3bd06913a64b52ad77874a0941 | /practice3.py | 3507322f90b6d5f74358cfde1e2f7c12f4818ba5 | [] | no_license | thxxx/Python_learning | ef42ae95f785fa91409b1b8f839e759d5e17a935 | d2a9f200a745a5b613ed75006f23b9abf5c62378 | refs/heads/main | 2023-06-06T14:48:57.427760 | 2021-06-27T00:13:34 | 2021-06-27T00:13:34 | 326,104,816 | 0 | 0 | null | 2021-06-27T00:13:34 | 2021-01-02T04:01:17 | Python | UTF-8 | Python | false | false | 1,661 | py | import os
import requests
from bs4 import BeautifulSoup
from babel.numbers import format_currency
os.system("clear")
url = "https://www.iban.com/currency-codes"
countries = []
request = requests.get(url)
soup = BeautifulSoup(request.text, "html.parser")
table = soup.find("table")
rows = table.find_a... | [
"gimhojin@gimhojin-ui-MacBookAir.local"
] | gimhojin@gimhojin-ui-MacBookAir.local |
c9ad73bbe82399296d85ed65b6b54ec0055bcc34 | 1b43b76d5a7db101b19edfe240309e5e16543170 | /src/identifiers.py | 8101d73c479986363ad5d9529089d35d4a745985 | [] | no_license | mfilmer/SDD | 464adfa4422ea8c084fff7fb5e5fae86611d02c5 | 0505147e6725e52945e81f4133e9e87bfb695b11 | refs/heads/master | 2020-05-18T19:53:52.481472 | 2014-08-18T03:29:53 | 2014-08-18T03:29:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | # Identifiers
class Single(object):
def __init__(self, name):
self._name = name
def __str__(self):
return self._name
def __repr__(self):
return "{}({})".format(type(self), self._name)
class Alignment(Single):
pass
Unaligned = Alignment('Unaligned')
Good = Alignment('Good')
Bad =... | [
"mattfilmer@gmail.com"
] | mattfilmer@gmail.com |
d9477781652f2bd42dbb5cac6cabe820b018c6c5 | 187b62e1b808fa92b04912c211301a5695a2d1fe | /Hackerrank/algorithms - practice/implementation/10-bon-appetit.py | 4595a6c29fa1219a1e8c86ae65bc03e81a98c08e | [] | no_license | tonymontaro/Algorithmic-Problem-Solving | fda498ee841a88e9e43ad624136e86b4e101e587 | 290e4c3af79ff5477b31a314a08eb24f3690890b | refs/heads/master | 2021-06-07T04:49:22.786439 | 2020-11-24T10:49:00 | 2020-11-24T10:49:00 | 122,983,998 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | def bon_appetit(n, k, bill, ar):
correct_bill = (sum(ar) - ar[k]) / 2
return 'Bon Appetit' if correct_bill == bill else int(
(bill - correct_bill))
print(bon_appetit(4, 1, 12, [3, 10, 2, 9])) # 5
print(bon_appetit(4, 1, 7, [3, 10, 2, 9]))
| [
"anthony.ngene@andela.com"
] | anthony.ngene@andela.com |
9f25d416bd468bb65eb3923ab99d32b912f60ca7 | 3e85618c79a1a934fec543e1327e772ca081a5b9 | /N1949.py | 2c0945dcd3d845154cc7480e681a4eb6834ef180 | [] | no_license | ghdus4185/SWEXPERT | 72d79aa4a668452327a676a644b952bab191c79b | 4dc74ad74df7837450de4ce55526dac7760ce738 | refs/heads/master | 2020-07-16T18:31:22.153239 | 2019-12-20T04:18:30 | 2019-12-20T04:18:30 | 205,843,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,019 | py | import sys
sys.stdin = open('sample_input.txt', 'r')
# 가장 높은 봉우리를 찾아야한다
# 내 주변을 선택할 때 나보다 낮은 얘들을 선택하거나 한번 깎아서 선택할 수 있다.
# 이후에 깎는게 더 유리할 수 있으므로
# 1) 낮은 칸으로 이동해보기
# 2) 높거나 같은 칸에 대해서 2가지 선택 깍는다 or 깍지않는다.
# 3) 깍아서 지나갈 수 있는 상황이라면 굳이 많이 깍지 않고 딱 나보다 작은 정도만
# 깍는다.
def f(i, j, c, e): # c : 깍는 횟수, e : 이동거리
di = [0, 1, 0, -1... | [
"ckdghdus@naver.com"
] | ckdghdus@naver.com |
6263e039ad9af13ef791509c181faa8db28b8c59 | 95328183fc4a8be5dfac47d36eca7d6c62393432 | /server/helpers/generate_link.py | bbc5d0a6397e5287aa48e10ab39f906672e99658 | [] | no_license | KirillIvano/pickles | cbf2426b1a51d10c9fb8c37aa22d0fec00a14f58 | 3cf53403093f99c257883a276ac79d7f2b588a05 | refs/heads/master | 2023-08-07T16:42:24.904373 | 2021-07-14T20:57:34 | 2021-07-14T20:57:34 | 277,870,222 | 0 | 0 | null | 2021-04-02T13:41:26 | 2020-07-07T16:38:27 | TypeScript | UTF-8 | Python | false | false | 119 | py | from aglobell.settings import HOST
def get_order_link(order):
return f'{HOST}/order/{order.id}?key={order.hash}'
| [
"artemandriy@gmail.com"
] | artemandriy@gmail.com |
16a2aa4eab29fc1a01f30df04ebadd198816e166 | eb1861482c91eea76efc1a237bb12ffb09e902d1 | /d5.py | e6b81f16a9d710200e34dd774c998f0ae1649801 | [] | no_license | SindreSkrede/AdventOfCode2018 | 24e6a181c30505edc2a4839097585ec50dec2bd0 | 3f793c84d2940b1fcca0dc49fde80a499ad83025 | refs/heads/master | 2020-04-09T12:28:28.459835 | 2019-02-10T11:32:16 | 2019-02-10T11:32:16 | 160,351,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | d_org = open("data/d5.txt").read()[:-1]
#d_org = "dabAcCaCBAcCcaDA"
sol = {}
for l in "abcdefghijklmnopqrstuvwxyz":
d = d_org.replace(l,"").replace(l.upper(),"")
while(True):
stop = True
for i in range(len(d)-1):
x = ord(d[i])
y = ord(d[i+1])
diff = abs(x - y)
if (diff == 32):
d = d[0:i] + d[i+2:... | [
"sindre.skrede@gmail.com"
] | sindre.skrede@gmail.com |
272f220f3f3ebc85c30ee2deceb3ddb12740a3f5 | f3bfd5c7639e24072e97033fd2366879d7480598 | /quizsolver.py | 358540cdf87b3010e90cb99b0ab5d28063701daf | [] | no_license | dimnikolos/quizsolver | cffa8699d513b9cd7cfa9f362de0fcbd7783ab2a | 49c6359e4632151475168685b8dbb648a07996df | refs/heads/master | 2021-05-16T03:02:38.500288 | 2017-11-23T21:05:33 | 2017-11-23T21:05:33 | 20,495,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,216 | py | def quizsolver1():
for a in range(0,10):
for b in range(0,10):
for c in range(0,10):
for d in range(0,10):
for e in range(0,10):
for f in range(1,10):
for g in range(0,10):
if (((10*a+b)*(10*b+c)==d*100+a*10+d)
and ((10*e+c)/f == ... | [
"dnikolos@gmail.com"
] | dnikolos@gmail.com |
3aeef00917e1279b07e812d3dc03007fc0495598 | 3545d589a6d33f44c0da75ed12e64d8530677c70 | /examples/anime.py | 7b53f9dcbccdb65db224694eddb77cd23316b714 | [
"MIT"
] | permissive | pengode-handal/animec | f6ff2e335e19be5d728c545ca595263a24fe5e24 | 1f1940e69e13e68e6e4891f786694ee2dfd8994d | refs/heads/main | 2023-06-29T21:19:13.001375 | 2021-08-09T03:55:01 | 2021-08-09T03:55:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | from animec import Anime, NoResultFound
def get_anime(name: str):
try:
anime = Anime(name)
except NoResultFound:
return None
return anime
def body(base: Anime):
display_body = f"""
Name: {base.name}
Alt Titles: {base.alt_titles}
Description: {base.descr... | [
"noreply@github.com"
] | pengode-handal.noreply@github.com |
b1532dca490f5b992fcd2d4448901b761f3b2807 | 025dc1fa797b0de25b556365d23bddb848ab8ce0 | /colossus/apps/lists/mixins.py | ec6726113587e1a0aef7d4b9d7aedb437406729a | [
"MIT"
] | permissive | ramanaditya/colossus | eab49ec33031b8542b07e3aaebc36467a97786d6 | 11b34a216b2021a5da79cd6e347aef842f7b0c72 | refs/heads/master | 2023-03-30T12:39:12.948490 | 2021-03-25T17:11:32 | 2021-03-25T17:11:32 | 340,977,981 | 1 | 0 | MIT | 2021-03-25T16:34:54 | 2021-02-21T18:51:05 | Python | UTF-8 | Python | false | false | 1,295 | py | from django.http import Http404
from django.shortcuts import get_object_or_404
from django.views.generic.base import ContextMixin
from colossus.apps.subscribers.constants import TemplateKeys
from colossus.apps.subscribers.models import SubscriptionFormTemplate
from .models import MailingList
class MailingListMixin(... | [
"vitorfs@gmail.com"
] | vitorfs@gmail.com |
b0e9a2e9dea4cf099fab569ff2818440f8a53bc4 | 2c0bcae51ffbd26080af47616992963c38ba9e83 | /bridge/methods.py | c34cdaf16bc3272cd7fd2e0ea1ca321a534e247a | [
"MIT"
] | permissive | Emilien-P/CompVis-project | ba1b39575a18e00d5e8ac59e5a6568923f4f07e5 | 41b236e120d134319135f5e8b240b065b3fb180e | refs/heads/master | 2020-03-18T07:43:41.758660 | 2018-06-08T19:10:58 | 2018-06-08T19:10:58 | 134,469,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,598 | py | """
An entire file for you to expand. Add methods here, and the client should be
able to call them with json-rpc without any editing to the pipeline.
"""
#def count(number):
# """It counts. Duh. Note: intentionally written to break on non-ints"""
# return int(number) + 1
import argparse
impo... | [
"tomn@uw.edu"
] | tomn@uw.edu |
2ca7726a97e24168ecf4147fb619ac3d3540182e | d1808d8cc5138489667b7845466f9c573591d372 | /notebooks/Reproducible Papers/Syngine_2016/figure_2_source_width.py | 7eb1deaeb1cbee060358396def82df02fcfa286e | [] | no_license | krischer/seismo_live | e140777900f6246a677bc28b6e68f0a168ec41ab | fcc615aee965bc297e8d53da5692abb2ecd6fd0c | refs/heads/master | 2021-10-20T22:17:42.276096 | 2019-11-27T23:21:16 | 2019-11-28T10:44:21 | 44,953,995 | 69 | 59 | null | 2020-05-22T11:00:52 | 2015-10-26T08:00:42 | Python | UTF-8 | Python | false | false | 5,880 | py | # ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.4'
# jupytext_version: 1.2.4
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# + {"deletable": true, "editable": true, "cell_type": ... | [
"lion.krischer@gmail.com"
] | lion.krischer@gmail.com |
e88fda088c2f404fcd59acff5d348e1c622ee84c | 222469236b22fe44d4cfdd791fcdeaada73138ba | /migrations/versions/e84c5458f62c_add_all_models.py | b6f6d698e3633c9afc088ed7a1cde6df46d56fbe | [
"MIT"
] | permissive | vshalt/flask-reddit | 9b807d098e1ce0c3a9858528a01baf2e6800e259 | 72059a6bb1a10af7937fe5db9833fd2513b1db51 | refs/heads/main | 2023-01-13T06:49:21.685939 | 2020-11-21T12:49:13 | 2020-11-21T12:49:13 | 314,663,793 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,347 | py | """add: all models
Revision ID: e84c5458f62c
Revises: 985b5267334c
Create Date: 2020-11-16 01:36:12.374598
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'e84c5458f62c'
down_revision = '985b5267334c'
branch_labels = None
depends_on = None
def upgrade():
... | [
"chocotacove@gmail.com"
] | chocotacove@gmail.com |
940b7535dac448f5b89c7bf95f5086ad745a8ee8 | 08e9d00e2545c6a89c3d6b45443303796a636d8e | /Chapter4/tuanhtran/iterativeFeatureSelection.py | 17598f1094dbdac42fd3e3b01b3500082bf499b7 | [] | no_license | tuantran1810/MLWithPython | cde92dd81153228943dd98ce6382b53bf02a2401 | 93a5ff1ffba7cbe85f944c5177f0981ff05a0572 | refs/heads/master | 2022-01-08T22:45:17.650813 | 2019-07-02T16:09:40 | 2019-07-02T16:09:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,283 | py | from sklearn.feature_selection import RFE
from sklearn.datasets import load_breast_cancer
from sklearn.feature_selection import SelectFromModel
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression
import numpy as np
... | [
"TuanTranEngineer@github.com"
] | TuanTranEngineer@github.com |
028717923cb8ac9e5f0ec24005740682c5357995 | dcf8dc9d8c248a1932d3e5fa5c9f8fc380d030a2 | /setup.py | 70f047b608a86f3f008fe7fa6d74edde15e21a66 | [
"MIT"
] | permissive | xqdzn/pyzatt | 8e59f0cd0d8806f006bf393065b39f63b7792075 | d61ae5cdc93400b7714bfbb434f76bbde64f631a | refs/heads/master | 2022-12-23T16:29:59.694383 | 2020-09-09T23:43:43 | 2020-09-09T23:43:43 | 293,735,267 | 0 | 0 | MIT | 2020-09-08T07:32:48 | 2020-09-08T07:32:47 | null | UTF-8 | Python | false | false | 1,516 | py | #!/usr/bin/env python
"""The setup script."""
from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = ['Click>=7.0', ]
setup_requirements = ['pytest-runner', ]
te... | [
"alexanderm2230@gmail.com"
] | alexanderm2230@gmail.com |
2d25948fc47ae05e17ec0c8404dc6012cc0a51f0 | f9c7969c8649c484f2460fb245a3d5bd6870fa5a | /ch07/exercises/exercise 35.py | 85def5a86980f358fd4a9a1b39f5216c13556056 | [] | no_license | Pshypher/tpocup | 78cf97d51259bfea944dc205b9644bb1ae4ab367 | b05b05728713637b1976a8203c2c97dbbfbb6a94 | refs/heads/master | 2022-05-18T13:11:31.417205 | 2020-01-07T13:50:06 | 2020-01-07T13:50:06 | 260,133,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | # Unless stated otherwise, variables are assumed to be of the str data type
def reverse_string(S):
"""Return the string S in reverse order using a for loop."""
S_reverse = ""
for ch in S:
S_reverse = ch + S_reverse
return S_reverse
# Prompt user for a string
chars = input("Enter a sequence of... | [
"jimishote@gmail.com"
] | jimishote@gmail.com |
7f379fc9f27c5f050bdf2abf7b91ae3ec247be87 | 71c48ce854552f32d436218ce2d185afadf80785 | /test/functional/feature_logging.py | f09595dbebd1a20869942f3db26a60595b672b91 | [
"MIT"
] | permissive | fizzgig656/ConneX | 7fd75abb3437728a2b5fe456e3853bf8d4ad978c | 2a67367ef9e28109a536d5d6e4ddc11e4831022c | refs/heads/master | 2020-05-15T22:09:07.873339 | 2019-03-25T07:45:30 | 2019-03-25T07:45:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,978 | py | #!/usr/bin/env python3
# Copyright (c) 2017-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test debug logging."""
import os
from test_framework.test_framework import CONNEXTestFramework
from t... | [
"48711806+ConneXdev@users.noreply.github.com"
] | 48711806+ConneXdev@users.noreply.github.com |
ed769fa51d32f54a61f3ed5cf8b7c1edf229e81c | 6474c3439723587026def4cb936f668698aae1a7 | /users/migrations/0001_initial.py | be24f00c5070d7f4b2ff9b95dff8dbbdf9b39316 | [] | no_license | shadowdevcode/blog-app | 37219760b02a56926bbcbea878c6f8c28d9c0431 | 6c3c9723429be20162cba61db36fb2c2a1cb554d | refs/heads/master | 2022-12-07T14:06:09.941766 | 2019-07-23T07:41:33 | 2019-07-23T07:41:33 | 167,966,809 | 1 | 0 | null | 2022-11-22T03:24:30 | 2019-01-28T13:27:46 | JavaScript | UTF-8 | Python | false | false | 777 | py | # Generated by Django 2.1.5 on 2019-01-27 16:30
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"vijay.b.sehgal@gmail.com"
] | vijay.b.sehgal@gmail.com |
aafb7acdd937d5e18a31b404b96b813a8b2089d1 | 1f70692436b1f70f62eab6cd88cb4305ddb80823 | /StockRight/stockQuotes/migrations/0004_stock_quantity.py | 275ee1340f5cbbca256288673e9da622045e9485 | [] | no_license | rohanpatel711/CMPT350-StockRight | 28ec2b5946396d71b60c59b1193081d610c165df | febe702bae4c91ac13492adcc110ff2bef561644 | refs/heads/master | 2022-04-11T16:47:44.457551 | 2020-04-02T15:10:30 | 2020-04-02T15:10:30 | 249,769,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # Generated by Django 3.0.4 on 2020-04-01 04:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stockQuotes', '0003_auto_20200331_2056'),
]
operations = [
migrations.AddField(
model_name='stock',
name='quantity',... | [
"rohanspatel711711@gmail.com"
] | rohanspatel711711@gmail.com |
c989db8a045c7efe3de706c8ce506ed845b322b4 | b9c84f50509e5d35c59a7978f3345966cd8828b1 | /fyp/Model/migrations/0003_auto_20210205_1554.py | 46c81463fb967b43f521e37e429c041c396ff1a9 | [] | no_license | FY-Zhang/FYP | b483615e9463f2afcda899299715914e2d57ae09 | 56284a7b1be1aa035bb33c102043035eb5c74a40 | refs/heads/master | 2023-04-18T10:32:29.141580 | 2021-04-28T09:14:38 | 2021-04-28T09:14:38 | 332,101,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | # Generated by Django 3.1.2 on 2021-02-05 07:54
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Model', '0002_auto_20210205_1551'),
]
operations = [
migrations.RenameModel(
old_name='User',
new_name='Users',
),
... | [
"50323953+FY-Zhang@users.noreply.github.com"
] | 50323953+FY-Zhang@users.noreply.github.com |
5ddf5e813713edbb4b9e1d05174fb7a38507ae8f | e50b8bc3e15c9480d9e433dd5ec41139345d6e2e | /zparkl_demo/apps/zparkl_demo/urls.py | adc693c842c065cb7312476dfa0ee241c9bbd35f | [] | no_license | artminster/zparkl-demo | 927bce1be24a9d906c8417dd6136c2f955be1ba6 | 8938d8c2feedd8ad9f38e8567578a26e18a98379 | refs/heads/master | 2020-06-06T15:06:39.400176 | 2013-12-20T02:40:51 | 2013-12-20T02:40:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | from django.conf.urls.defaults import patterns, include, url
from django.contrib.auth.decorators import login_required, permission_required
from django.conf import settings
from views import *
urlpatterns = patterns('',
url(r"^$", Home.as_view(), name="home"),
)
| [
"nmonteiro@nelsons-mbp.home"
] | nmonteiro@nelsons-mbp.home |
5f39f871c28451f45bdd8d8b12b694b82f7509cc | c40680fdb9fec4a40372a5b85103baae668c7493 | /etrade/migrations/0008_paper_paper_reference_value.py | 80f08f71c5e2611acafaac872be85086b2e2aa85 | [] | no_license | Henrique-Costardi/Sportstrader | 32d70229dfdb58f6213a0892043524fbfe64fed8 | 7e09b2d3ddc11a8d68ec0c17b91ff3b944efa0bd | refs/heads/master | 2021-01-20T14:16:31.874398 | 2017-05-08T03:28:13 | 2017-05-08T03:28:13 | 83,870,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-08 22:14
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('etrade', '0007_paper_last_transaction'),
]
operations = [
migrations.AddFie... | [
"fencman@gmail.com"
] | fencman@gmail.com |
ec13aae73282e9274cd0ebbdc680e4d555db294b | 90b47d053812f54ebc62b94f996a44836d405085 | /daily_charge.py | 2b5765282995ed56f007c455ebc34283ef94b2a4 | [] | no_license | zeus911/aws_billing_monitor | be05301c8e20a146185d1e47aa19136e8c69b939 | 98965b591b7bfafe2791de9d13f68ebb3a82f6a3 | refs/heads/master | 2020-12-30T16:59:43.004161 | 2015-05-19T07:58:50 | 2015-05-19T07:58:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | #!/usr/bin/env python
import MySQLdb
import logging
import datetime
from datetime import timedelta
def Daily_charge(table):
#Now=datetime.date.today()
#Now=datetime.date.today() + timedelta(days=-5)
Yesterday=datetime.date.today() + timedelta(days=-1)
OneDayBefore=Yesterday + timedelta(days=-1)
conn = MySQLdb.c... | [
"wu1405@gmail.com"
] | wu1405@gmail.com |
42d9e0ac5b905f545f05a2e2624b82db8a952a70 | d0f802ff64e68e12b2b0fab84d4f13d047b3ff1e | /_11_1_Linear_Regression_Source.py | 9f3d302b50bbf179b11ce7d1f7281b3e8140c1b8 | [] | no_license | joohongkeem/MachineLearning | 592d977e1db775034fc841bf2306d48f9902df5c | 0be89190b0d53a3a1f1801ae43202451b648550d | refs/heads/master | 2020-03-22T21:25:59.824090 | 2018-07-23T00:20:28 | 2018-07-23T00:20:28 | 140,687,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,528 | py | # Run module(Hot key : F5)
print("-------------------------------------------------")
print("# 20180712","Made by joohongkeem#".rjust(38),sep=' ',end='\n')
print("-------------------------------------------------")
# 선형 회귀 분석 예시1 (최소 제곱법 - 1)
#
import matplotlib.pyplot as plt
import numpy as np
def predict(x): ... | [
"38645351+joohongkeem@users.noreply.github.com"
] | 38645351+joohongkeem@users.noreply.github.com |
c8cf806d2df5d35fa3ff2f8cfe24065527558025 | ec46cb07a709a04af186e06d810938a6e73a4ea4 | /src/tests.py | 041d3a277f758730ed786e8344f49d4e13f59930 | [] | no_license | nathanesau/BinaryTreeVisualizer | 819fa795114e011ef111af1a156d4c7bde11736c | bf46e5cf07269a15c4a2976997c4d1e1c9b02a24 | refs/heads/master | 2020-08-28T18:00:17.514676 | 2019-10-26T22:32:26 | 2019-10-26T22:32:26 | 217,776,904 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | import unittest
from bst import BST, TestBST
if __name__ == '__main__':
unittest.main() | [
"nathanesau1@gmail.com"
] | nathanesau1@gmail.com |
3abcc4770b5d3213f9bbe698c4fd2bd2e30bc2df | 015ce35e6344d1726173594ae509dfc1ca6f856d | /3-OOP and DSA/4-Recursion/Study/5-fibonichi.py | cd8fcc970c153783d338b2223d11fd4aeb930ddb | [] | no_license | ayman-elkassas/Python-Notebooks | 4af80df75c15a6ac3049450b3920d500fef0e581 | 26a8265f458c40ac22965d55722f32a650851683 | refs/heads/master | 2023-04-03T19:12:17.707673 | 2021-04-10T21:32:37 | 2021-04-10T21:32:37 | 356,699,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | # Fn
# = F
# n−2 + Fn−1 for n > 1.
# import gzip
# gzip.GzipFile.readline(r"C:\Users\Ayman Elkassas\Desktop\dump.txt",)
def fib(n):
if n<=1:
return n
else:
return fib(n-1)+fib(n-2)
print(fib(5))
| [
"aymanelkassas88@gmail.com"
] | aymanelkassas88@gmail.com |
6905fda86703d56d27ced0178a27ebf687bb1da0 | d18df0ec22dc766496d4b0c2dcdcc933bdf332d8 | /utils.py | f15c3122cd9f699a4a7cf4c18cdcaea62d5eff1b | [] | no_license | thanhlt998/tktdtt | edc6610a28e09482f0746db258eed5323636abaa | 64f32e62fb3b2d5d6ef6c2a0e74294bdff4b2057 | refs/heads/master | 2022-03-21T07:24:59.104986 | 2019-12-17T02:32:25 | 2019-12-17T02:32:25 | 208,956,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,151 | py | from pyvi.ViTokenizer import ViTokenizer
import re
from dateutil.parser import parse
import json
def tokenize(terms):
terms = ViTokenizer.tokenize(terms)
terms = [f"\"{re.sub(r'_', ' ', term)}\"" for term in re.findall(r'\S+', terms)]
return ' '.join(terms)
def time_str2iso_format(time_str, is_24h_forma... | [
"thanhlt998@gmail.com"
] | thanhlt998@gmail.com |
5d91b705be958d470d09162659872e29488acbda | 3f3ebf4a4053a51e438a03cc6495f9a287a5b0bd | /at210/fun_dir.py | bade6ffb530ff2e474af831c123fd03f2a7f2992 | [
"MIT"
] | permissive | asakura-yoshifumi/publication20200818 | d838b4b3e649c1738f4fd66f5a2b7fab8cd86a5a | 7d22fa48b3fc5fb06255da69be65030217df38f1 | refs/heads/main | 2023-03-10T05:38:19.598677 | 2021-02-22T05:05:31 | 2021-02-22T05:05:31 | 319,922,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,904 | py | #!/usr/bin/env python
################################################################################
# MIT License
#
# Copyright (c) 2021 Yoshifumi Asakura
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
#... | [
"asakura.yoshifumi.84x@kyoto-u.jp"
] | asakura.yoshifumi.84x@kyoto-u.jp |
f352972ed899074c94eae89a2beb3d3b03c245b5 | 5f6248b0a950c64f11a6b7a4604dbb8b353c2338 | /flaskr/__init__.py | 8ea451354f48b54e77637cd92495c08fa2003c6e | [] | no_license | hnumair/flask-tutorial | 63817ecf6e8e26aa77b5a03948d1206ab4c3b931 | 7401a2fa58c67226a5fcd6c8ca28a4da3d458205 | refs/heads/master | 2023-02-21T06:08:47.586276 | 2021-01-20T12:52:26 | 2021-01-20T12:52:26 | 328,558,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | import os
from flask import Flask
def create_app(test_config=None):
# create and configure the app
print(__name__)
app = Flask(__name__, instance_relative_config=True)
app.config.from_mapping(
SECRET_KEY='abcd',
DATABASE=os.path.join(app.instance_path, 'flaskr.sqlite'),
)
if ... | [
"hussainnumair96@gmail.com"
] | hussainnumair96@gmail.com |
caf3885eb69dffefab2740e33c5b3de38ac0c871 | a7153a124669a93c611fe64a61e4efac96b61d7d | /tool/test_singleidcard_split_logo.py | 0a5be9e871dfcde33f711996dcdfc50149773e12 | [
"MIT"
] | permissive | hks5201106166/segmentation_models.pytorch | a3c95792fa82c34bd59b13f8488927452a55d7db | 440a53dd9520378f7f2225a2a81eee6f5a67cc00 | refs/heads/master | 2022-11-15T22:34:54.938859 | 2020-07-09T08:41:04 | 2020-07-09T08:41:04 | 271,442,584 | 0 | 0 | null | 2020-06-11T03:28:07 | 2020-06-11T03:28:07 | null | UTF-8 | Python | false | false | 7,210 | py | #-*-coding:utf-8-*-
#-*-coding:utf-8-*-
#-*-coding:utf-8-*-
#-*-coding:utf-8-*-
import os
os.environ['CUDA_VISIBLE_DEVICES'] = '0'
import numpy as np
import cv2
import matplotlib.pyplot as plt
from torch.utils.data import DataLoader
from torch.utils.data import Dataset as BaseDataset
import torch
import numpy as np
im... | [
"729681512@qq.com"
] | 729681512@qq.com |
229e39097ba9ce78b622007287da9fc967f81220 | b3c8dda0112573aa7d393781aa143d2fdd01443f | /41:Learning to Speak Object_Oriented/ex41-1debug.py | e2be5641f9801edda005800e839f827319f4ac5a | [] | no_license | YukyCookie/learn-python-three-the-hard-way | 34fbd58e379dba5dd4ca0feddf89b79c2d62891c | 462bd850571ecf32c6eec2b5ee7bd0dc40b8a59f | refs/heads/master | 2020-06-21T15:11:52.702279 | 2019-11-03T02:53:45 | 2019-11-03T02:53:45 | 197,488,523 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,064 | py | import random
from urllib.request import urlopen
import sys
WORD_URL = "http://learncodethehardway.org/words.txt"
WORDS = []
PHRASES = {
"class %%%(%%%):":
"Make a class named %%% that is-a %%%.",
"class %%%(object):\n\tdef __init__(self, @@@)":
"class %%% has-a __init__ that takes self and *** par... | [
"josephinezhang@hotmail.com"
] | josephinezhang@hotmail.com |
fb7b8c96b8ddf267dc54ca2f53581f447373a03a | bea753dd89c38df2611bb300f460eaa2cbb82e6a | /watcher/common/policies/data_model.py | 768240d239a15bb3f47c14abe0824b75162cafbc | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | openstack/watcher | c28bd146b4239fc187f34958c4295cd9df76a12a | 1e11c490a7ec300974c589dff804858cdeb7860c | refs/heads/master | 2023-09-01T18:12:40.545788 | 2023-08-29T11:21:46 | 2023-08-29T11:21:46 | 35,901,539 | 69 | 39 | Apache-2.0 | 2018-05-11T15:29:38 | 2015-05-19T18:46:11 | Python | UTF-8 | Python | false | false | 1,052 | py | # Copyright 2019 ZTE Corporation.
#
# 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 or a... | [
"chen.ke14@zte.com.cn"
] | chen.ke14@zte.com.cn |
10bf66a31ac6a7609891546fa9062c1561711a39 | 13fd82d61ce17bd1389b977632fc46e2dbadf81c | /Linked Lists.py | 49e09e5cdf9e45d2960d6ad046cb7c3c50024233 | [] | no_license | Pranay-sopho/Data-Structures-and-Algorithms-in-Python | ed1f502d5b55f95f3d15b3a978fb2c865dfa2844 | cfaf8ea5c21f3f86e97f5c5eff7486e1b4f64815 | refs/heads/master | 2021-01-01T18:41:11.976237 | 2017-07-12T22:44:52 | 2017-07-12T22:44:52 | 98,408,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,019 | py | class Empty(Exception):
pass
class LinkedStack:
class _Node:
__slots__ = '_element', '_next'
def __init__(self, element, next):
self._element = element
self._next = next
def __init__(self):
self._head = None
self._size = 0
def ... | [
"kotkar.pranay04@gmail.com"
] | kotkar.pranay04@gmail.com |
dd52beff462a1f2913ede44aad3668e054509274 | 49743d1b594284c18af9370e8907bcc7e66443ca | /nhotel/jythonui/jythonuiserver/resources/packages/jsutil.py | 38cb56cb12e8f032a34212d03f0679fa0b1d8825 | [] | no_license | stanislawbartkowski/javahotel | 1a06ce1eecc8508787be8fbcce697471d0c8d2b3 | 13f65d0fda5238dc5cb944aaa90c7275ce186ef9 | refs/heads/master | 2021-01-25T07:21:48.960529 | 2017-07-31T10:55:43 | 2017-07-31T10:55:43 | 34,128,037 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,409 | py | from com.google.gson import JsonObject
from com.google.gson import JsonParser
import cutil,con,miscutil
def toList(s,listid,dialname=None,listname=None) :
elem = JsonParser().parse(s)
object = elem.getAsJsonObject()
array = object.getAsJsonArray(listid)
list=[]
lform = None
if dialname != None... | [
"stanislawbartkowski@gmail.com"
] | stanislawbartkowski@gmail.com |
7e5363f7bc158f952ae5fcf883d622a0fa2cd660 | 83ed8b754703a1c9e661c90f0763bfebbc0f2606 | /数据处理/计财Excel/excel_jicai.py | 35dffa6e8fac69b1cf98e1de6347fdde61ce573e | [] | no_license | zbh123/hobby | 4ce267a20e1af7f2accd2bde8d39af269efa319b | 2215c406fe7700bf150fd536dd56823a2e4733d1 | refs/heads/master | 2021-08-02T10:31:34.683391 | 2021-07-26T07:26:16 | 2021-07-26T07:26:16 | 150,555,879 | 4 | 0 | null | 2021-07-27T07:34:28 | 2018-09-27T08:41:44 | Python | UTF-8 | Python | false | false | 11,085 | py | #!python3
# -*- coding:utf-8 -*-
import re
from datetime import datetime, date
import xlrd, xlwt
import time
import os, sys
from xlutils.copy import copy
"""
股票质押明细表操作,
1,选取自有资金。
2,批注及备注中包含本月
3,提取字段
"""
def open_excel(excel_file):
"""
读取excel函数
args:excel_file(excel文件,目录在py文件同目录)
returns:boo... | [
"zbh@example.com"
] | zbh@example.com |
759aec4daa0e5dfea558e0ed071b43b9ea35f424 | fae6b5956dd9b9982f81fa00307e95144c7f1415 | /user/migrations/0005_friendrequest_sender_name.py | 656b97881f8a18df0fb91bfb9d94321b70404726 | [] | no_license | BohdanDziadyk/socialNetworkAPI | 94abc7168fa654a87930d9b02d5aa51fe84dbfae | 77d91f3b5dff40635044354b465081b84f778cbf | refs/heads/master | 2023-03-19T07:54:07.336733 | 2021-03-09T15:17:59 | 2021-03-09T15:17:59 | 309,443,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | # Generated by Django 3.1.3 on 2021-02-04 14:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0004_auto_20210201_1403'),
]
operations = [
migrations.AddField(
model_name='friendrequest',
name='sender_na... | [
"bohdan.reaper669@gmail.com"
] | bohdan.reaper669@gmail.com |
ce1e8ee4af6bb77e44595abb85662bd95b62a293 | 8b0add00a2c76ebae9476d36a39e324ade213b86 | /Matplotlib/ScatterPlot.py | 694a5215e195e072016ce537ed0042d0ae434cef | [] | no_license | HarshKothari21/DataAnalysis_Practice | e51269b4132facd3eb7ac85fe3424f94941c6c49 | 7fd1049c5150a2e535bcb36032b6d636c86d4e69 | refs/heads/master | 2023-01-19T12:02:18.478609 | 2020-11-27T10:53:02 | 2020-11-27T10:53:02 | 250,902,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | import pandas as pd
from matplotlib import pyplot as plt
plt.style.use('seaborn')
# x = [5, 7, 8, 5, 6, 7, 9, 2, 3, 4, 4, 4, 2, 6, 3, 6, 8, 6, 4, 1]
# y = [7, 4, 3, 9, 1, 3, 2, 5, 2, 4, 8, 7, 1, 6, 4, 9, 7, 7, 5, 1]
# colors = [7, 5, 9, 7, 5, 7, 2, 5, 3, 7, 1, 2, 8, 1, 9, 2, 5, 6, 7, 5]
# sizes = [209, 486, 381, 255... | [
"harshkothari2112000@gmail.com"
] | harshkothari2112000@gmail.com |
1fb5bfb391c21ca3c77f093c94956dfbc3c708eb | 11336266140cabb0063623105cf7b1e3962e7ba4 | /scraping_scripts/get_metadata.py | b01bc77717f7729da537c093068a92832bd9e4a0 | [] | no_license | mugak/tweet-sentiment-analyzer | 6d98a3300b359a840154ef7a3152043652c4630f | c164f6774add022049d3f1b7ddbd88cb18ca94a2 | refs/heads/master | 2020-05-30T13:34:14.046816 | 2019-10-08T02:03:20 | 2019-10-08T02:03:20 | 189,764,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,780 | py | import tweepy
import json
import math
import glob
import csv
import zipfile
import zlib
from tweepy import TweepError
from time import sleep
# CHANGE THIS TO THE USER YOU WANT
user = 'elonmusk'
with open('api_keys.json') as f:
keys = json.load(f)
auth = tweepy.OAuthHandler(keys['consumer_key'], keys['consumer_se... | [
"ukim@ucdavis.edu"
] | ukim@ucdavis.edu |
54bf32eb364d3ed74bc83adcfc5cf42f98ff7f41 | cae5ac194790a05c6c6976fa2751a6be9a33fa89 | /tests/rackspace_test_boot.py | f70e8c3e22cbaa5cd8cdadb874c4ca020919ddad | [] | no_license | moonstruck/kozinaki | 54142b21a6d941623df2376e4f7721cef07a6fd6 | 19309c13a6ef74ac5f72920843022cd076fbe50e | refs/heads/master | 2020-06-06T07:17:36.782154 | 2014-12-23T23:23:41 | 2014-12-23T23:23:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,616 | py | # Copyright (c) 2014 CompuNova 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 law or... | [
"tomekniedz@gmail.com"
] | tomekniedz@gmail.com |
c8f3b068e8ec104fe2c76cd33556bc435eca51e3 | 12bd6a1d7b4e4776601baf5448c9730084b81c5c | /venv/lib/python3.7/keyword.py | 484e685dec5dd061a4b68d5771964c9ae143fd60 | [] | no_license | danijelkecman/weather-flask | e711f99a2cad705cd2671291ef17064dcdf04bba | 1510668704dddca971e54094bac5c84deddfda24 | refs/heads/master | 2023-05-13T11:39:56.610433 | 2023-05-02T23:19:14 | 2023-05-02T23:19:14 | 156,313,066 | 1 | 0 | null | 2023-05-02T23:19:15 | 2018-11-06T02:18:15 | Python | UTF-8 | Python | false | false | 61 | py | /Users/danijel/.pyenv/versions/3.7.0/lib/python3.7/keyword.py | [
"danijel.kecman@gmail.com"
] | danijel.kecman@gmail.com |
25fdbb891b81e16ae59e248f5e55d405a5193f6b | 7c0417790c363ad38befb58b6cab7254abcefaa4 | /scripts/deploy_lottery.py | d7b0b785bf82bc1306331c9b103195ef32473311 | [] | no_license | DieKant/smartcontract-lottery | 453b33468c8773f3d138b5e65d81231dfd2e270f | 7cfb7eef14e45b3dd18a5c70997920822d973746 | refs/heads/main | 2023-08-24T13:15:25.089065 | 2021-10-17T20:12:51 | 2021-10-17T20:12:51 | 412,749,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,420 | py | from scripts.helpful_scripts import get_account, get_contract, fund_wiht_link
from brownie import Lottery, network, config
import time
def deploy_lottery():
# al get_account gli passo il mio indirizzo locale cosi che scelga il deploy su rete testnet oppure un index se volgio usare ganache
# id="codecamp-train... | [
"olmastroni.fedro2000@gmail.com"
] | olmastroni.fedro2000@gmail.com |
fb18237e50b60ad7bbcfdb1e3feb562d44904519 | a2844a2cc2c45d93c27bead19dcfd1c473f3aad2 | /authapp/views.py | 9d6b0958e31cfa93e0987a6be44923178f58c8f3 | [] | no_license | ASV1870asv1977/asv-server2 | 39aa36425e17de2173302779d721adec2d3f637e | 6f1cbf58b46aa02999afcb23693c7a7e389d0290 | refs/heads/master | 2023-07-24T03:58:20.646106 | 2021-08-31T12:03:53 | 2021-08-31T12:03:53 | 392,986,942 | 0 | 0 | null | 2021-08-31T12:03:53 | 2021-08-05T09:42:27 | Python | UTF-8 | Python | false | false | 3,489 | py | from django.shortcuts import render, HttpResponseRedirect
from authapp.forms import ShopUserLoginForm, ShopUserRegisterForm, ShopUserProfileEdit
from django.contrib import auth
from django.urls import reverse
from django.conf import settings
from django.core.mail import send_mail
from authapp.forms import ShopUserEdit... | [
"73542571+ASV1870asv1977@users.noreply.github.com"
] | 73542571+ASV1870asv1977@users.noreply.github.com |
6117082d0bb54f9eb0eaf89afb5636e8fe4cab5f | f92f341079ed56cb3966a984bd1b107b28f04079 | /ESP8266/ESP8266_SDK/tools/gen_appbin.py | d5629015685218fd9084c14646e79b042d48d004 | [
"LicenseRef-scancode-warranty-disclaimer",
"GPL-1.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | FrauBluher/ShR2 | 6aeca9ef632076e6630f0c8e53da2e5ee4c38421 | e23e5482c3695833eebf992e9047a2efa2f3076a | refs/heads/master | 2023-01-05T16:17:05.921040 | 2015-06-10T23:35:28 | 2015-06-10T23:35:28 | 17,427,876 | 1 | 3 | MIT | 2022-12-26T20:04:52 | 2014-03-05T04:25:07 | C++ | UTF-8 | Python | false | false | 6,999 | py | #!/usr/bin/python
#
# File : gen_appbin.py
# This file is part of Espressif's generate bin script.
# Copyright (C) 2013 - 2016, Espressif Systems
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of version 3 of the GNU General Public License as
# published by the Free Softwa... | [
"henrycrute@gmail.com"
] | henrycrute@gmail.com |
ea6c75d7901bc3c2c2b99057719760e4d00c157d | 0b1790e0f3b230ea1b2b08578370e0ef332be8f6 | /manage.py | 1cf317f5f02620f5f108e49add30f228229b34e2 | [] | no_license | SA-Deve/ProjectBlog | d3a4d6f56903085027aae7ce38f5c129f004ed05 | f0c0c3d7f3d72415e4883627f9b799bd9dfa3876 | refs/heads/master | 2022-12-07T15:53:25.519635 | 2020-08-16T16:27:06 | 2020-08-16T16:27:06 | 287,935,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ProjectBlogs.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise I... | [
"arjun@bsg.ind.in"
] | arjun@bsg.ind.in |
6fc250290cd0b7389544fbe3a86bdc07265dc7d7 | 8eccc4cab7ba7292c932468163c711d4058e3b90 | /app/inheritance/abstract/migrations/0003_auto_20191223_0612.py | 5f9ce7809d3b1fe08e15168d3691200f35a33369 | [] | no_license | zehye/django-document-wps12 | 97b1aa4be5a56b949ba59ac92e8d0c5cb3e22f73 | 086fdc581ba3f2db7bc39a6eb906fd97cc61c415 | refs/heads/master | 2022-09-08T12:46:19.110011 | 2019-12-26T09:07:15 | 2019-12-26T09:07:15 | 228,784,564 | 0 | 0 | null | 2022-08-23T17:59:03 | 2019-12-18T07:37:14 | Python | UTF-8 | Python | false | false | 737 | py | # Generated by Django 3.0 on 2019-12-23 06:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('abstract', '0002_auto_20191223_0539'),
]
operations = [
migrations.AlterField(
model_name='childa... | [
"zehye.01@gmail.com"
] | zehye.01@gmail.com |
30fd4c0678c66be6af14d4791127bff677a27ddd | a69924d0ccdb289af3ca9bca14236dd881e5ab99 | /machineLearning.py | b35658c7b2c797cf64d806c51eaf53e81e675d0d | [] | no_license | RGuseynov/Financial_Inclusion | 7926a330bcb28d73d67aa62fd8459573d19faa26 | 84814f010d654c2c72c03f575b2e34abac5968bc | refs/heads/master | 2023-01-31T05:14:52.300097 | 2020-12-01T15:46:52 | 2020-12-01T15:46:52 | 317,588,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,344 | py | import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score,recall_score,precision_score,f1_score
from sklearn.metrics import confusion_matrix
from sklearn.feature_selection import SelectKBest, chi2
from sklearn.model_selection import GridSear... | [
"roustam@live.fr"
] | roustam@live.fr |
e4586b0f5765576ab04d9219405f92bf1d7bdeb1 | 511ba6b5e456be55bd07f20699572b3d351013de | /app/lol/forms.py | a78e21890ddd3460f71025f6b77fcced7f034716 | [] | no_license | Specimen209/leagr2 | 02a03b0d1c365c101e3f21423c0f91c6d82355d0 | ed502b1ddd605510e915b9d73f3dcce3117667c0 | refs/heads/master | 2022-10-09T06:47:15.247732 | 2020-02-28T14:31:01 | 2020-02-28T14:31:01 | 239,011,167 | 0 | 0 | null | 2022-09-16T18:17:14 | 2020-02-07T19:52:49 | HTML | UTF-8 | Python | false | false | 358 | py | from flask_wtf import FlaskForm
from wtforms.fields.html5 import EmailField, TelField
from wtforms import validators, StringField, PasswordField, TextAreaField, SubmitField, BooleanField
from flask_wtf.file import FileField, FileAllowed
from wtforms.ext.sqlalchemy.fields import QuerySelectField
from flask_ckeditor impo... | [
"laik@gilmour.org"
] | laik@gilmour.org |
bc07120ad5e34e021098976f2146c1caf97acd3d | fd0cc608faf0447e236ffdb2564e8a96853f1ba6 | /07_intermediate_python/python-patterns-master/patterns/other/graph_search.py | 968e4342b0d719056fb76d07453df790fcc8a200 | [] | no_license | niaid/python_biologist | 6d27bf3f86a7e249443607dffb1bad9846fd2a79 | f6cc03d03f10d679b270fd7066382501d9620226 | refs/heads/master | 2023-07-19T22:59:09.297053 | 2022-05-10T15:01:21 | 2022-05-10T15:01:21 | 252,785,320 | 9 | 2 | null | 2022-05-09T14:16:36 | 2020-04-03T16:33:39 | OpenEdge ABL | UTF-8 | Python | false | false | 1,976 | py | class GraphSearch:
"""Graph search emulation in python, from source
http://www.python.org/doc/essays/graphs/"""
def __init__(self, graph):
self.graph = graph
def find_path(self, start, end, path=None):
path = path or []
path.append(start)
if start == end:
... | [
"burkesquires@users.noreply.github.com"
] | burkesquires@users.noreply.github.com |
029f69b24d71aad0ea9e3c1ab946b1a407f9b9fa | bf450b34ed441b775ea9914bf6bebed9610a3dbb | /hgame2020/week1/Pwn/Number Killer/Number.py | 3396043b86bc406dbc5600cb3f18ba98194ca7fe | [] | no_license | p199yw4ng/CTF | 1a6b182bb42de8cf3585d1b805406b296dea41a2 | 6c81576e191ece03523595fe128f4e752289ff83 | refs/heads/master | 2020-12-20T16:48:39.445655 | 2020-02-08T05:31:16 | 2020-02-08T05:31:16 | 236,143,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | from pwn import*
import time
context.log_level = 'debug'
context(arch = 'amd64', os = 'linux')
cn=remote('47.103.214.163',20001)
#cn=process('./Number_Killer')
print cn.recv()
for i in range(1,14):
cn.sendline('47244640256')
sleep(0.1)
cn.sendline('4196237')
sleep(0.1)
cn.sendline('7074926021049463112')
sleep(0.1)
cn... | [
"1136424713@qq.com"
] | 1136424713@qq.com |
278b8e682bc501a77202c694f122550190dcb82e | 5109bc49adc5525d3cd50c4f736600dbee9996cb | /066-Easy-PlusOne.py | a47f8c76129221ef0bb6423c54795e8811dc9444 | [] | no_license | mariobeaulieu/leetcode | 447df79e4a0457014345f33cc545a63cb82c2066 | abfbb97080158dc5532dc2bd2de7b9b449fdc7f5 | refs/heads/master | 2020-05-14T20:21:00.355757 | 2019-09-30T01:53:49 | 2019-09-30T01:53:49 | 181,942,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | #!/usr/bin/env python
import sys
from typing import List
class Solution:
def plusOne(self, digits: List[int]) -> List[int]:
ll=len(digits)
for i in range(ll):
ll2=ll-1-i
digits[ll2]+=1
if digits[ll2]<10:
break
digits[ll2]=0
... | [
"beaulieu.mario@gmail.com"
] | beaulieu.mario@gmail.com |
2089c0866d0077654c90b360bd87b465295e4e21 | ebf3a44a24bdca43553307338ff31440d5e2e11a | /src/clustering/clustering/similarity.py | 97c72f51c1aec50a005124b7ea1ce150f8b34d48 | [
"MIT"
] | permissive | juhuntenburg/pipelines | daeb13896023e22350eb33b90007d8a74d592745 | 9904065cccb8e316cece5451f595a24774f07bd5 | refs/heads/master | 2020-04-05T09:27:17.263763 | 2017-05-02T20:28:33 | 2017-05-02T20:28:33 | 30,145,021 | 0 | 3 | null | 2015-02-01T12:09:49 | 2015-02-01T12:09:49 | null | UTF-8 | Python | false | false | 1,789 | py | from nipype.interfaces import afni as afni
import os
from nipype.interfaces.base import BaseInterface, \
BaseInterfaceInputSpec, traits, File, TraitedSpec
from nipype.utils.filemanip import split_filename
class SimilarityInputSpec(BaseInterfaceInputSpec):
in_file = File(exists=True, desc='surface data to const... | [
"watanabe.aimi@gmail.com"
] | watanabe.aimi@gmail.com |
63a6cc1020a6c44e7812410db00dc5bd93090c4c | 50573423a9bc4034cdded596032a42ede5cdb458 | /Derivacao Numerica.py | f84993c3ec78a44c4bed40407c5a4ce2788088e8 | [
"MIT"
] | permissive | gabrieltardochi/numerical-algorithms | 1bf5c9d9280d81a23dac875745016de30bfae5f2 | 2ae95f25d1aca76082ad1df9e06cc2d168870acc | refs/heads/main | 2023-03-13T19:03:27.204155 | 2021-03-14T18:42:32 | 2021-03-14T18:42:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,786 | py | import math
def getFlt(flt):
flt = str(flt)
was_neg = False
if not ("e" in flt):
return flt[:10]
if flt.startswith('-'):
flt = flt[1:]
was_neg = True
str_vals = str(flt).split('e')
coef = float(str_vals[0])
exp = int(str_vals[1])
return_val = ''
if int(exp) >... | [
"60230715+ga-tardochisalles@users.noreply.github.com"
] | 60230715+ga-tardochisalles@users.noreply.github.com |
256a6d27be8d5d13a5dd9e245e5f27869dd2051e | b04cd64d459c607591c319732f1214afe5ed011b | /practice/orm外键练习.py | fc302d552a6d7a571dc46676e1517c22210409d0 | [] | no_license | xm369083227/pyScripts | fb318938946eec8e5557095187d6f58e433b2309 | 26ce200fe3e51bf699ffca0588a63c91a355bdfc | refs/heads/master | 2020-03-27T23:31:00.003520 | 2018-09-20T06:06:33 | 2018-09-20T06:06:33 | 147,323,947 | 0 | 0 | null | 2018-09-05T09:56:48 | 2018-09-04T09:47:53 | Python | UTF-8 | Python | false | false | 2,254 | py | #author:xm
#coding:utf-8
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column,Integer,String,DATE,ForeignKey
from sqlalchemy.orm import sessionmaker,relationship
#连接mysql引擎,echo为程序运行信息的启动开关
engine = create_engine("mysql+pymysql://root:Xt2018@58.206.... | [
"369083227@qq.com"
] | 369083227@qq.com |
9c038c2afd1ea1459a7bf0d73d5d30b1fb93b2df | 0a58c0f9537a8291445f753f759b3892efc3a5bc | /services/venv/bin/rst2odt_prepstyles.py | b2976f588cca641e3c412ea5062751d31eb62985 | [] | no_license | jasonshere/MAPS | 3f34fe3ce505aa123e55b4eb8f367e39eca50dfd | 7f9c9691d29d48a6503e61c9cb990bb5670884d4 | refs/heads/master | 2020-03-27T23:14:05.105897 | 2018-10-08T06:42:00 | 2018-10-08T06:42:00 | 147,303,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,766 | py | #!/Users/JasonLee/Repository/IoT_Assignment_2/doctor_patient/services/venv/bin/python3
# $Id: rst2odt_prepstyles.py 5839 2009-01-07 19:09:28Z dkuhlman $
# Author: Dave Kuhlman <dkuhlman@rexx.com>
# Copyright: This module has been placed in the public domain.
"""
Fix a word-processor-generated styles.odt for odtwriter... | [
"mrjasonedu@gmail.com"
] | mrjasonedu@gmail.com |
efae7520995f8ad3e0624364bbf8175761cae2fd | 3c40387650df6d93c4b226d6eaed7b77ec97c1bd | /box-file-management/simple-sql.py | e44dd2cf532b890f01129c9c37544c5d47220368 | [] | no_license | stephenberndt/Data_Projects | fe04bb9c252de5afa59c2bba30d37cfba130b51b | 953860500bf16c955d00cd3b5778b56e49d732f7 | refs/heads/master | 2020-03-12T17:35:35.922492 | 2018-04-23T20:09:19 | 2018-04-23T20:09:19 | 130,739,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | # -*- coding: utf-8 -*-
import psycopg2
from sqlalchemy import create_engine
import pandas as pd
import json
from configparser import ConfigParser
parser = ConfigParser()
parser.read('config.ini')
db_name = parser.get('Redshift', 'db_name')
host = parser.get('Redshift', 'host')
port = parser.get('Redshi... | [
"berndt.stephen@gmail.com"
] | berndt.stephen@gmail.com |
08b1a08138cf2a9f104b5f00cfba5cf8fb7aaa24 | de6f57fa8391d447a50b1fe2f394cc2fc0488bfa | /BookMyShow/urls.py | 7470e069be75c7a4371b1370572efd74c250c991 | [] | no_license | himdhiman/BMS-2 | ce8db13d88dacd27b45757f5d30b78717041d0f8 | 440886028006211a1995f9d28d21fde9caf7fb0a | refs/heads/master | 2021-09-27T17:25:10.187898 | 2021-01-21T15:40:19 | 2021-01-21T15:40:19 | 205,708,449 | 1 | 0 | null | 2021-09-22T17:58:58 | 2019-09-01T17:16:10 | JavaScript | UTF-8 | Python | false | false | 1,031 | py | """BookMyShow URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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-ba... | [
"himanshudhiman9313@gmail.com"
] | himanshudhiman9313@gmail.com |
4b5e6169ff8d2976efc0b118d1a59ece273b810b | fbb1550dc5437d672ed0137bd7711eba3290dee3 | /students/smckellips/lesson01/inventory_management/inventory_class.py | a23818804808193fa47c12c1f674b366c65919ab | [] | no_license | JavaRod/SP_Python220B_2019 | 2cc379daf5290f366cf92dc317b9cf68e450c1b3 | 5dac60f39e3909ff05b26721d602ed20f14d6be3 | refs/heads/master | 2022-12-27T00:14:03.097659 | 2020-09-27T19:31:12 | 2020-09-27T19:31:12 | 272,602,608 | 1 | 0 | null | 2020-06-16T03:41:14 | 2020-06-16T03:41:13 | null | UTF-8 | Python | false | false | 738 | py | '''
Module for inventory functions.
'''
class Inventory:
'''
Class for inventory functions.
'''
def __init__(self, product_code, description, market_price, rental_price):
self.product_code = product_code
self.description = description
self.market_price = market_price
sel... | [
"sean.mckellips@gmail.com"
] | sean.mckellips@gmail.com |
b8c70af9726a94eba9ac6a43188c0994be97dfcb | cdc9a8bc051be72de5bace23fd0637701d699da3 | /preprocess/create_stanford_labels.py | 880bf6d76e11854488987df9b35ea38a1836deac | [
"Apache-2.0"
] | permissive | marshuang80/pe-slice-finder | 4a51a8f7ef90f836d3cd5935f89a3e7f13c1fd63 | 2426a55c404e8eb694110351d604d6bdd613e5ae | refs/heads/master | 2022-12-29T02:20:42.135931 | 2020-10-13T04:16:47 | 2020-10-13T04:16:47 | 296,091,898 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,236 | py | import os
import sys
sys.path.append(os.getcwd())
import h5py
import pickle
import argparse
import pandas as pd
from constants import *
from tqdm import tqdm
from collections import defaultdict
def main(args):
# create hdf5 file
hdf5_fh = h5py.File(args.hdf5_file, 'a')
slice_labels = pickle.load(open(ar... | [
"marshuang80@gmail.com"
] | marshuang80@gmail.com |
163e0034af894a9a7ead6fc469d11e2a2b917cf5 | 58b3ef7362ad040f4ea3b976837fa023af8f2426 | /GoodShearTestCase/ToastDemo.py | f91bc5b7585870b461b46106d1ebecbfff9b837c | [] | no_license | Ghuashang/GoodShears | 1b76d9d670954c7b7fc8cb8e381f9ca5c0142917 | 89bdbc52320d2a08dd029bfc7e9734646565498c | refs/heads/master | 2021-03-07T09:40:34.284168 | 2020-03-10T09:25:21 | 2020-03-10T09:25:21 | 246,258,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,768 | py | # 导入webdriver库
from appium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
import time
#定义空字典
device_info={}
device_info['platformName']='Android'#设备平台
device_info['platformVersion']="6.0.1"#设备系统版本
device_info["deviceName"]="DUK_AL20"#设备名称
device_info["device"]="hlteuc"#设备厂商信息
device_info["app"... | [
"1946259605@qq.com"
] | 1946259605@qq.com |
0a2c635b30ba3fceb06674f761530776ee51e64e | c1a05663947ad6ba03183c91add95500b622d74e | /PYTHON/code/failed/grammar.py | e452f842db06f513198551ec78edfe6af7e747ee | [] | no_license | qhb1001/A-simple-interpreter | c90ca6334cf448a98ee0a38a2d4edabb8e2d745a | ed9200bfc7d50f5a2f1fc6132372d025d836da4d | refs/heads/master | 2020-04-10T09:34:38.303791 | 2019-05-08T08:46:48 | 2019-05-08T08:46:48 | 160,941,087 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,071 | py | import exceptions
import lexical
# first deal with the brackets
def check_brackets(lines):
line_number = 0
# if last
if lines == None:
exit()
for line in lines:
stack = []
line_number += 1
for token in line:
# if this is a '(', then just push it into the s... | [
"z694895876@gmail.com"
] | z694895876@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.