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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bb15df5cbfefe03a569174c2cf19f2d2bf85747f | 6aea24c1d59efd6edd555e9f635d066b96314b43 | /VotingUsers/admin.py | 6b2d1e686dcf53fd6e3a6c4065051f9ee80f31e4 | [] | no_license | HShehu/Django-Voting-App | 848f167a59dd81d32d6db34a9f8a8cb58d37fac6 | 679e741d4bec54c7d2019ab111059e45fc674964 | refs/heads/master | 2023-04-28T09:43:44.707129 | 2020-01-12T12:04:00 | 2020-01-12T12:04:00 | 233,343,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,913 | py | from django import forms
from django.contrib import admin
from django.contrib.auth.models import Group
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.forms import ReadOnlyPasswordHashField
from .models import VotingUser
# Register your models here.
class LoginForm(forms.For... | [
"harandemshehu@gmail.com"
] | harandemshehu@gmail.com |
ba871c0ac28cf7b9e54bc7b51cf6189e65dda6c3 | 54b70a12932f93216d499666998d80a13fc1fb28 | /PyDSTool/Toolbox/prep_boxplot.py | daf5a9a17df47186b8686547a110a8d8e829e734 | [
"BSD-2-Clause"
] | permissive | waltherg/pydstool-1 | 8e3954b0b5f8728290fd772536987b16325a1b52 | e56086b230627e7cbe2099f3cd0734cb6918dc7f | refs/heads/master | 2021-01-15T20:48:15.566752 | 2013-09-27T08:47:02 | 2013-09-27T08:47:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,211 | py | from PyDSTool import remain, loadObjects, array, save_fig, arange, args
from matplotlib.font_manager import FontProperties
from PyDSTool.matplotlib_import import *
from scipy import mean
##symbol_map = {'isomap': {
## 'K': {10: 'k<', 50: 'k>', 100: 'k^', 500: 'kv'},
## 'eps': {20:... | [
"rob.clewley@gmail.com"
] | rob.clewley@gmail.com |
8df3680c60c5ed0be3507f20ab872a0b2e4420b2 | a340eb341a38be522a5c4fc359d9345cfb378343 | /sample/1get_patent_random.py | 5e0400f1868f45b8fac0e402599b199b5e39ee0b | [] | no_license | Catchy1997/DLPAP | 76fa5758d313be4ddaeacb98b397653a7c4f528b | fda4b7d6fee5398140279ba694663670028180c3 | refs/heads/master | 2023-01-18T17:35:07.235209 | 2020-12-01T10:37:20 | 2020-12-01T10:37:20 | 262,620,534 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,482 | py | import pandas as pd
import os
from tqdm import tqdm
def csv_dir(filepath, path_list):
for i in tqdm(os.listdir(filepath), ncols=50):
path = os.path.join(filepath, i)
if os.path.isdir(path):
csv_dir(path, path_list)
if path.endswith(".csv"):
path_list.append(path)
... | [
"1003677516@qq.com"
] | 1003677516@qq.com |
37b4ccc5e603b7528bd414ae5bfabf393f41b25f | d386ffb0fdd378b6a2478a59866dc9b92ebaac4c | /centrifuge.py | 488456ea39d9c8467af192f4d81b72a4e672756a | [] | no_license | theo-allnutt-bioinformatics/scripts | 7aea8ddb2aee619f866d3bf8a7fde26cc45d317f | 620ce7dcee65a979d86cae96f8a928cce9426879 | refs/heads/master | 2023-04-02T02:15:52.300023 | 2023-03-23T02:17:49 | 2023-03-23T02:17:49 | 135,370,890 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | #!/usr/bin/env python
import sys
import re
import glob
import subprocess as sp
import os
digits = re.compile(r'(\d+)')
def tokenize(filename):
return tuple(int(token) if match else token
for token, match in
((fragment, digits.search(fragment))
for fragment in d... | [
"noreply@github.com"
] | theo-allnutt-bioinformatics.noreply@github.com |
589dc15d83d54624028bcba4ef50d993bef4ab3f | ec1591c8185a9debc63a8a4975b2e06a4f5de8a7 | /tests/test_cli.py | 9b0e0a63fba6cd3cbc10c3924f88b27fd9bc4c97 | [
"MIT"
] | permissive | xkumiyu/case-style-changer | e605b0dd3c0c23ac3bdc6eafbb1a6b81d680f169 | 26405cf63a4a21572ab634c2a25aab33dc5b616d | refs/heads/master | 2021-06-26T21:06:10.049347 | 2021-01-02T07:22:24 | 2021-01-02T07:22:24 | 229,064,331 | 2 | 0 | MIT | 2021-06-01T20:39:30 | 2019-12-19T13:51:15 | Python | UTF-8 | Python | false | false | 927 | py | import pytest
from case_style_changer.cli import change_case_style
from case_style_changer.cli import parse_args
@pytest.mark.parametrize(
"args, expected",
[
(["camel_case"], {"case_name": "camel_case", "text": None}),
(
["camel_case", "--text", "case style changer"],
... | [
"xkumiyu@gmail.com"
] | xkumiyu@gmail.com |
f1ae19fa704e329df40fcda0e9440f272b59a023 | 1cf679c1fbf24d7eef91d07d3b917ed71f1a3c67 | /drf13/drf13/asgi.py | be7705b0ab54acf66648789d68b75631e7d54cce | [] | no_license | manvii3110/Django-Rest-Framework | 76ef0a0b0886184aec061dc0669440969eca4810 | 69fd8701d1be45bfdec4d585b8579dcfcfe4e3c3 | refs/heads/master | 2023-07-17T01:01:47.976108 | 2021-08-28T09:20:32 | 2021-08-28T09:20:32 | 397,284,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
ASGI config for drf13 project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"msinghal3102@gmail.com"
] | msinghal3102@gmail.com |
11512be1019c8d77e6c0541c852f00fd86caa371 | 8739a104f09f17890680fec70f242c2c4f41da86 | /scripts/Calibration/RealsenseF200/make_handCamCalibData_ir.py | 96d0c55aa072c355d37e81cd6217ee4e6e114c2f | [] | no_license | W567/Plates_stacking | dfa71d0cd104e1b80056ef0ce7207ace73e9f211 | 0c5b433b1963726520d00feec153b9164e73e2a5 | refs/heads/master | 2021-02-27T05:25:19.915102 | 2020-03-07T06:54:14 | 2020-03-07T06:54:14 | 245,583,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,540 | py | import sys
import os
import time
import copy
import threading
import numpy as np
import json
import cv2
import xml.etree.ElementTree as xmlEt
from math import pi
# import world path ===================
import WorkspaceDirInfo as shareDir
sys.path.append(shareDir.WorkspaceDir)
import share.tools.geo.geo as geo
# imp... | [
"wlqwa567@hotmail.com"
] | wlqwa567@hotmail.com |
5ea5170baa6fdec14d8316f4133420a9339ddcc1 | 12e1fcbeb0bb0c3866e9aa863016ebf5b8cf6fa9 | /keras/network.py | 908281f9a7e71e3d9586f0d15d278bc7f28cf585 | [] | no_license | Grid-Gudx/sound_classification | 0eee6c523e5c6732ce4456a297757ef20015753c | c79a83b5882c1b386254a33b2ac9ac44d0546f7b | refs/heads/main | 2023-08-18T14:51:33.181996 | 2021-09-15T07:54:53 | 2021-09-15T07:54:53 | 403,004,685 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,423 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Sep 4 16:30:42 2021
@author: gdx
"""
from tensorflow.keras.layers import *
import tensorflow.keras.backend as K
from tensorflow.keras import Model
from attention_module import cbam_block
def cnn_block(x, filters, kernel_size):
x = Conv2D(filters, kernel_size, padding=... | [
"56808862+Grid-Gudx@users.noreply.github.com"
] | 56808862+Grid-Gudx@users.noreply.github.com |
e680db738c872726585c93052f0caf654b612ac1 | e7b7505c084e2c2608cbda472bc193d4a0153248 | /LeetcodeNew/python2/LC_1432.py | 84a5a75c9293ff45e21d69e289d5ee014eee0a6d | [] | no_license | Taoge123/OptimizedLeetcode | 8e5c1cd07904dfce1248bc3e3f960d2f48057a5d | 3e50f6a936b98ad75c47d7c1719e69163c648235 | refs/heads/master | 2023-02-27T21:13:40.450089 | 2023-02-07T04:11:09 | 2023-02-07T04:11:09 | 170,044,224 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | class Solution:
def maxDiff(self, num: int) -> int:
num_string = str(num)
def change(src: str, dest: str, s: str):
return int(s.replace(src, dest))
# -----------------------------------------------------------
# digit replacement for maximum number
maxi = nu... | [
"taocheng984@gmail.com"
] | taocheng984@gmail.com |
70b48dfafc9a4b13b1aa847ed8efe0c4f9c30f64 | 350ef2446bd8d4c23683a96673dfe0eb8ec232ea | /zjazd_4/Mathematica/tests/test_algebra.py | 2e74683ebad360daca4e173f3226ba1d87469bb0 | [] | no_license | vorjat/PythonBootCamp | a6e758c13310bc9de5a76b2e67260971e5ad5807 | d63dbc96b7d15ad6908828cf676f5fbc4a871c04 | refs/heads/master | 2020-03-31T02:51:24.230177 | 2018-12-02T15:44:07 | 2018-12-02T15:44:07 | 151,842,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | import pytest
from zjazd_4.Mathematica.algebra.matrices import add_matrices, sub_matrices
def test_add_matrices():
a = [
[1, 2, 3],
[4, 5, 6]
]
b = [
[7, 8, 9],
[10, 11, 12]
]
result = add_matrices(a, b)
assert result == [
[8, 10, 12],
[14, 16, ... | [
"przemyslaw.jarek@gmail.com"
] | przemyslaw.jarek@gmail.com |
c38ba3b864a46e77567726b65f31b71700254d4d | dcf076f397284659e0b4302bac33901b63e42319 | /blog/views.py | aab81d370014d5c2ec86a9dc303b07680214b87c | [] | no_license | ojudsonleo/Modle | 7f6123c33013f62d72fa4fbfff3bfab00b96dd04 | 6cf0303023c910079f9a418af873934ada2b2286 | refs/heads/main | 2023-06-07T04:09:04.168910 | 2021-06-22T09:29:46 | 2021-06-22T09:29:46 | 378,587,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | from django.shortcuts import render
from django.views.generic import ListView, CreateView,DetailView,DeleteView
from .models import *
# def Blog(request):
# return render(request, "home.asp")
class Blog(ListView):
model = Post
template_name = "home.asp"
class ArticleDetailView(DeleteView):
model = Pos... | [
"ojudsonleo@gmail.com"
] | ojudsonleo@gmail.com |
8c7400085b75a92b05d0c7020226a30b186d9c51 | af5ac397b5247b70ecd4c4d3c000eb8da3faf354 | /custom_auth/models.py | 49463b67f292af3111306923fa4fd4fdc1604560 | [] | no_license | rohithmada00/customAuthentication | 023c978d5e588a7e4b36546884c7e1642672d54f | b9b4253d017c513bfb8af6d5d823ff76e1ed7b99 | refs/heads/master | 2022-12-05T15:39:33.958973 | 2020-08-30T12:45:37 | 2020-08-30T12:45:37 | 291,467,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | from django.db import models
from django.contrib.auth.models import PermissionsMixin
from django.contrib.auth.base_user import AbstractBaseUser
from .managers import CLUserManager
class CLUser(AbstractBaseUser, PermissionsMixin):
email = models.EmailField(unique=True)
first_name = models.CharField(max_... | [
"noreply@github.com"
] | rohithmada00.noreply@github.com |
192c6d5d6351a005d2e9a348a7e5589587dad35f | 102c082395547af278da95d2334b1ff13f5cf5c0 | /romeo/lib/romeo/directives/merge_lists.py | 3d250dd80af958f3491ff275ef08a5dd038f6010 | [
"Apache-2.0"
] | permissive | c0ns0le/droned | ad2690edb2f8f26f380ae7c58ea657a76c49fccf | c4b6a53e384cdb200baba48f6256abc48e052aca | refs/heads/master | 2021-04-15T09:45:37.547708 | 2014-02-25T20:51:52 | 2014-02-25T20:51:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,736 | py | ###############################################################################
# Copyright 2006 to the present, Orbitz Worldwide, LLC.
#
# 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... | [
"justin.venus@orbitz.com"
] | justin.venus@orbitz.com |
da2506dbcd8bbd4a6af403ec8ad4fe380fbf367b | 142c129a6712fb5b67415d2e3b2f18bf1fe83efe | /2019.03.21/회문1.py | 30dc139546999ecd6088e70dda27ce9239ca35fb | [] | no_license | ash92kr/TIL | 03f0d4a664f7bbf641f23534ab6a4548dc68376c | 0b0e42f5f7fca20143899efb3dd10907fa9890d5 | refs/heads/master | 2020-04-11T21:13:27.942570 | 2019-05-23T01:45:09 | 2019-05-23T01:45:09 | 162,098,959 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | import sys
sys.stdin = open("회문1_input.txt")
for tc in range(10):
N = int(input())
arr = [list(map(str, input())) for i in range(8)]
pal = 0
# 가로
for i in range(8):
for j in range(8-N+1):
flag = 1
for k in range(N//2):
if arr[i][j+k] != arr[i][j+N... | [
"ash92kr@gmail.com"
] | ash92kr@gmail.com |
d4d8e4de325808fd6b97ad1ceddd2aa7572913b1 | 75f5f5429175ad50df86677f6ba1f09a0734d946 | /jsonium/drivers/__init__.py | e70cddaefa2620eef3eb418df992347c3901a191 | [
"MIT"
] | permissive | pombredanne/jsonium | 819c6c80bdcaf9e47a9788aa4c6fcfb46233c56a | 3830945f7a4f8b29892158d5bfdcbf3426a21a24 | refs/heads/master | 2021-01-25T11:49:47.061555 | 2017-03-20T01:26:15 | 2017-03-20T01:26:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
from jsonium.drivers.file import FileDriver
from jsonium.drivers.memory import MemoryDriver
from jsonium.drivers.factory import DriverFactory
| [
"ertugkeremoglu@gmail.com"
] | ertugkeremoglu@gmail.com |
cb7cf8108dc3d3578c84139188ed4476a67e35a8 | 6be1990abf99c85ef886b49dcea1824aabb648d3 | /weixinofneolocal/weixinofneolocal/libs/PIL/ImageGL.py | 279f3a32838f0e24f55fca3a9c41db50b3c92cff | [] | no_license | neoguojing/cloudServer | b53ae205efe52cf0aea28dbb9e6c16c20caf991f | 7c19101789b0c46474269e4c8fe00e92203e9cd7 | refs/heads/master | 2020-12-04T23:02:23.551479 | 2017-09-22T03:08:35 | 2017-09-22T03:08:35 | 67,382,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | #
# The Python Imaging Library.
# $Id$
#
# OpenGL pixmap/texture interface (requires imToolkit OpenGL extensions)
#
# History:
# 2003-09-13 fl Added
#
# Copyright (c) Secret Labs AB 2003.
#
# See the README file for information on usage and redistribution.
#
# #
# OpenGL pixmap/texture interface (requires imToolkit ... | [
"guojing_neo@163.com"
] | guojing_neo@163.com |
73f31707e7cdcddd3cec84f232c01508f2c17ff7 | a949c2083ce543874481d2feb07f27bc1301d1f8 | /django_project/blog/migrations/0002_post_image.py | 02d2d4d94c700cec4fc48573787411674d9b58fa | [] | no_license | rdx910/Projects | 76ee94bc66a658049c15fd3feb3bed9924b504fc | 9a6c863485010d34639fefc364e1c0903530d068 | refs/heads/master | 2021-01-16T12:31:24.189506 | 2020-06-07T17:52:33 | 2020-06-07T17:52:33 | 243,122,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | # Generated by Django 3.0.6 on 2020-06-04 21:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='post',
name='image',
... | [
"noreply@github.com"
] | rdx910.noreply@github.com |
018f37ee6f1adac597034d8f4b414225d4c93b3a | ba0cbdae81c171bd4be7b12c0594de72bd6d625a | /MyToontown/Toontown2016/toontown/minigame/Purchase.py | 478d19849772f06b8159fff787fc2746a0980349 | [] | no_license | sweep41/Toontown-2016 | 65985f198fa32a832e762fa9c59e59606d6a40a3 | 7732fb2c27001264e6dd652c057b3dc41f9c8a7d | refs/heads/master | 2021-01-23T16:04:45.264205 | 2017-06-04T02:47:34 | 2017-06-04T02:47:34 | 93,279,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,143 | py | from PurchaseBase import *
from otp.nametag.NametagFloat2d import *
from otp.nametag import NametagGlobals
from direct.task.Task import Task
from toontown.toon import ToonHead
from toontown.toonbase import ToontownTimer
from direct.gui import DirectGuiGlobals as DGG
from direct.directnotify import DirectNotifyGl... | [
"sweep14@gmail.com"
] | sweep14@gmail.com |
a3e6957192f7ca7843ec9b6000732e55ff189c70 | 937a4684691447ee3848043626f73b7ec8e22e25 | /app/embeddings/word2vecs.py | 0ba46648b36b2ee47b5bfab8da8b187784ff682c | [] | no_license | PCS0725/opanalyzer-backend | b96e7d8f17ba4858fab96fe720b7838cf9c7ef03 | 156603c2a22cf991ffc1df20d9ee87c3ed2dae09 | refs/heads/main | 2023-03-21T02:37:30.944025 | 2021-03-07T06:10:46 | 2021-03-07T06:10:46 | 343,015,953 | 1 | 0 | null | 2021-03-07T06:10:47 | 2021-02-28T03:58:41 | null | UTF-8 | Python | false | false | 781 | py | from app.config import WORD2VEC_MODEL
import pandas as pd
import gensim
from gensim.models import Word2Vec
import pickle
class Word2Vecs:
def getEmbeddings(self, df):
glove_vectors = pickle.load(open(WORD2VEC_MODEL, 'rb'))
X = []
for row in df.clean:
sent = []
ls... | [
"prabbhat25199@gmail.com"
] | prabbhat25199@gmail.com |
815e2a00511f0d60f1475f816c1caf77ed92aa6e | 99e3805c58d7f0a341ef2a780422307e6f30ad22 | /01-basics/imports.py | 2e08de9963523e87b3f1081f53d45b119944e6e4 | [] | no_license | WitchoutName/Python | 8c488a7755aa888e4d5a91bfca575500f9209276 | 2dbc0cd8ea4c621a941ecff5abd010ae88ef53c6 | refs/heads/main | 2023-01-30T05:20:22.007636 | 2020-11-24T10:39:13 | 2020-11-24T10:39:13 | 302,704,739 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,496 | py | '''
Importování modulů v Pythonu
Větší programy je žádoucí členit do samostatných modulů.
Modul je soubor obsahující definice a příkazy v Pythonu.
Moduly v Pythonu jsou uloženy v samostatných souborech s příponou .py.
Definice uvnitř modulů mohou být importovány do jiných modulů nebo do interaktivní pythonovské konzol... | [
"noreply@github.com"
] | WitchoutName.noreply@github.com |
7feb66b409ad0fe39a9c6b5db78af52698879c16 | b64425872561b609e9c450bb015e85419d1923c6 | /day-02/part-2/jules.py | 4c90ae39bff1dade9d33ca5eca6ea5fdcec366f1 | [
"MIT"
] | permissive | lypnol/adventofcode-2017 | 4c58fa735b99d197fc4bba974422dd034cba01d1 | 03ced3df3eb80e5c7965c4120e3932919067cb15 | refs/heads/master | 2021-05-06T19:19:21.815272 | 2018-03-25T20:05:07 | 2018-03-25T20:05:07 | 112,111,717 | 16 | 4 | MIT | 2019-10-04T08:55:19 | 2017-11-26T19:49:35 | Python | UTF-8 | Python | false | false | 698 | py | from submission import Submission
class JulesSubmission(Submission):
def run(self, s):
# :param s: input in string format
# :return: solution flag
# your solution code goes here
def find_for_row(row):
for fi in range(len(row)):
for si in range(fi + 1, l... | [
"jules.denardou@datadoghq.com"
] | jules.denardou@datadoghq.com |
7152195962e61a7ae20ea2ef463bfc2c5290927a | 4ec1b366bb46e747d9b82f648bfa931d13943939 | /pico.py | beab3d4d6f6220eb71353e9e8bd5f99cfa3a7a79 | [] | no_license | Random-Person2552/pythonBackup | b59e6b414c824cf9bfe31ffb8a1e410b6158b5a2 | 273fdcbf991b28e6392765e5646fc9871169f435 | refs/heads/master | 2020-05-29T10:49:52.754539 | 2019-05-28T21:10:47 | 2019-05-28T21:10:47 | 189,103,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,809 | py | import math
def egcd(a, b):
if a == 0:
return (b, 0, 1)
else:
g, y, x = egcd(b % a, a)
return (g, x - (b // a) * y, y)
def modinv(a, m):
g, x, y = egcd(a, m)
if g != 1:
raise Exception('modular inverse does not exist')
else:
return x % m
def gcd(a, b):
... | [
"jared@overwatchdmc.com"
] | jared@overwatchdmc.com |
0a6cdefe90e54b7d2c191e658e94a130c0d8e36b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_373/ch52_2020_04_29_18_16_04_599137.py | 0122d8cd2bdc4fe457101602678522d016aa8163 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | x=[]
y=[]
def calcula_total_da_nota (x,y,i):
t= x[i]* y[i]
return t | [
"you@example.com"
] | you@example.com |
74fd3e01423e3b6dfd17bab74791ab088d301a07 | 8986bd27f551aaf90da92ea9906a5d5a000f1508 | /TopCoder-Solutions/SRM's/AlienAndPassword.py | 78c4d95a6e914187ddbb3facb788772566e43ad9 | [] | no_license | siddeshshewde/Competitive-Programming | bb5a9aa82136a7e976b00d7f6087b96a7f7cda55 | 5b525ebfdc4fc57ab1296c9f491221fc34f636bf | refs/heads/master | 2020-05-29T19:42:06.020432 | 2020-04-05T15:15:37 | 2020-04-05T15:15:37 | 83,057,075 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,263 | py | # Problem : AlienAndPassword
# Used In : SRM 605
# Date : 01.21.2014
# Category : Brute Force, String Manipulation
# Division : 2
# Level : 1
# Round : 1
# Points : 250
# Difficulty : Easy
# Problem Type : Single
# Description : https://community.topcoder.c... | [
"noreply@github.com"
] | siddeshshewde.noreply@github.com |
b226c2d3f5ac9b814e1f40847f21c0c0929005d6 | f2a2f41641eb56a17009294ff100dc9b39cb774b | /current_session/python/2136.py | 85d10060df53dffdce504322686c01c2cfa25b8e | [] | no_license | YJL33/LeetCode | 0e837a419d11d44239d1a692140a1468f6a7d9bf | b4da922c4e8406c486760639b71e3ec50283ca43 | refs/heads/master | 2022-08-13T01:46:14.976758 | 2022-07-24T03:59:52 | 2022-07-24T04:11:32 | 52,939,733 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | from typing import List
class Solution:
def earliestFullBloom(self, plantTime: List[int], growTime: List[int]) -> int:
# sort based on grow Time
gt = []
for i in range(len(growTime)):
gt.append((growTime[i], i))
gt.sort(reverse=True)
total_plant_time = sum(plantTi... | [
"yunjun.l33@gmail.com"
] | yunjun.l33@gmail.com |
786942c01ede93b705ab7b420dcbbaad7effe584 | 1dfeaa55dbd04dec8413657db1f636365d5af893 | /venv/Scripts/easy_install-script.py | 72a0acb135552e3161137bbe29363c060d2687e4 | [] | no_license | ghassenjebari/Contact | 836baf50ff5dc54f667e38aab315e61bd2bf2c31 | c0f7e29684e21123c0206b6fa39996b2002ad163 | refs/heads/master | 2022-10-03T04:58:16.310055 | 2020-06-05T10:38:30 | 2020-06-05T10:38:30 | 268,900,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | #!C:\Users\ghassen\PycharmProjects\repertoire\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.py... | [
"ghassenjebari@users.noreply.github.com"
] | ghassenjebari@users.noreply.github.com |
3d03ca482cac616f4050c2adbe75fbcc17b9aceb | 1e08e5b65868bdae9616ca940f233a4309502410 | /neo4s/bin/neo4j/time/arithmetic.py | 67028e43e9fa2459f3d5cebfffab18bf328b57e4 | [
"Apache-2.0"
] | permissive | omerl13/neo4s | 7424db9f5b455a8322f13a0b4c4a99cf54acf839 | 5471818838099310a153d2c0844cc3c0f1943b79 | refs/heads/master | 2023-05-28T14:31:42.259182 | 2020-07-24T09:44:46 | 2020-07-24T09:44:46 | 121,294,087 | 2 | 5 | Apache-2.0 | 2023-05-12T14:10:23 | 2018-02-12T19:51:46 | Python | UTF-8 | Python | false | false | 4,038 | py | #!/usr/bin/env python
# coding: utf-8
# Copyright (c) 2002-2020 "Neo4j,"
# Neo4j Sweden AB [http://neo4j.com]
#
# This file is part of Neo4j.
#
# 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
... | [
"omerl1308@gmail.com"
] | omerl1308@gmail.com |
b19775a6ca6dc6d028c8ce0a658a8fc8661e20a9 | 070afb87f2c5fc0dd749204ab648043b86c39088 | /hog/hog.py | 52c4d3492438c321604599cbfd6c329b3cd82352 | [] | no_license | mitchwong2021/CS61A | 1fa22a955598dd3218aaf6561b8f291532a1b15b | 709ced7b3dce20ee38257e41131ceac8757aee33 | refs/heads/master | 2020-03-16T19:54:53.087499 | 2018-05-10T21:25:58 | 2018-05-10T21:25:58 | 132,937,615 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,123 | py | """CS 61A Presents The Game of Hog."""
from dice import six_sided, four_sided, make_test_dice
from ucb import main, trace, interact
GOAL_SCORE = 100 # The goal of Hog is to score 100 points.
######################
# Phase 1: Simulator #
######################
def roll_dice(num_rolls, dice=six_sided):
"""Simul... | [
"noreply@github.com"
] | mitchwong2021.noreply@github.com |
b00c7ba14a6e28b8a9fd1d4c603605f6e97f4ff7 | da750f9ffee13f8388e0d3ac48db2eab562e5a2b | /tests/test_fault_reader.py | 5b03453e681de92e0024dfadde4ca533df9401c1 | [
"Apache-2.0"
] | permissive | fjanuska/python-ovirt-engine-sdk4 | f86085da0d1e3044d04c41aee5b842ccec37a094 | 8d51d43c63709a2c6064a9d9b8e095874fff4f2e | refs/heads/main | 2023-08-18T13:12:46.491667 | 2021-09-29T13:18:01 | 2021-09-29T13:18:01 | 411,636,996 | 0 | 0 | Apache-2.0 | 2021-09-29T10:56:52 | 2021-09-29T10:56:51 | null | UTF-8 | Python | false | false | 2,814 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2016 Red Hat, 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 applicabl... | [
"necas.marty@gmail.com"
] | necas.marty@gmail.com |
7456e413b9a3950f919689a98dbe123bc227b91e | 0a584b8d564e1cf3b2c4fbc3c4fa2a74007dcb00 | /script.py | a1ae18f5df84505790f67c6246887b363864bd22 | [] | no_license | obour2021/Basta-Fazoolin- | 079902d8d03bf24904a3dc5e251f79fa792961e0 | 4edbfd6b76b0cd6703c0149fdde165f88e7285cb | refs/heads/master | 2023-06-12T16:48:35.318264 | 2021-07-06T12:13:11 | 2021-07-06T12:13:11 | 383,453,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,824 | py | class Menu:
def __init__(self, name, items, start_time, end_time):
self.name = name
self.items = items
self.start_time = start_time
self.end_time = end_time
def __repr__(self):
return "{name} menu available from {start_time}:00GMT to {end_time}:00GMT".format(name=self.name, start_time=self.start... | [
"isaac.mensah@amalitech.org"
] | isaac.mensah@amalitech.org |
92b02adbbcf00bbc96565f31382f594567671f18 | 04b26abb0b9eba98baaa82bdb144cf2b3e9cee42 | /autocomplete_api/apps.py | 9c04a682ff41fa1873ebb61a40b6fb6b34d7adb8 | [] | no_license | ped-alm/Dito_Challenge | 46f04628ede60d5c680721bb28f945093b61b422 | ae0dafd58acf1083e9d34057827e19b29a3ab396 | refs/heads/master | 2020-04-20T16:26:03.185376 | 2019-02-08T12:28:50 | 2019-02-08T12:28:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | from django.apps import AppConfig
class AutoCompleteApiConfig(AppConfig):
name = 'autocomplete_api'
| [
"pedrohenriquealmeidacosta@gmail.com"
] | pedrohenriquealmeidacosta@gmail.com |
22db75686ffaf6b5f0da276f630ea779f6ee2271 | b41a33dff85005ed970f80fcec781436b63c6103 | /tributary/reactive/input/socketio.py | 750a694ac1660e00c764be1527841af77bb0673a | [
"Apache-2.0"
] | permissive | deepankarsharma/tributary | afcf0f3bd048f8a792caec572ef9a4f97a2fb2f3 | aa0eddc3f83a30b4e43f2c1771a1e00fd9d97cd7 | refs/heads/master | 2020-03-28T21:51:35.641555 | 2018-09-17T20:59:38 | 2018-09-17T20:59:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | from socketIO_client_nexus import SocketIO as SIO
try:
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse
from ..base import _wrap
def SocketIO(url, *args, **kwargs):
return SyncSocketIO(url, *args, **kwargs)
def SyncSocketIO(url, channel='', field='', sendinit=None, jso... | [
"t.paine154@gmail.com"
] | t.paine154@gmail.com |
d10fcd68f8efb426334892649e0a7128f55b1fd4 | a9f676c06bacee1f8b27e08d3c411c89a69cfd40 | /falmer/studentgroups/views.py | 3c28e4397c6ade0b3db42472038d4f3fa933b6b4 | [
"MIT"
] | permissive | sussexstudent/falmer | 1b877c3ac75a0477f155ce1a9dee93a5ada686d6 | ae735bd9d6177002c3d986e5c19a78102233308f | refs/heads/master | 2022-12-11T19:40:12.232488 | 2020-03-20T13:01:47 | 2020-03-20T13:01:47 | 88,043,958 | 2 | 3 | MIT | 2022-12-08T03:17:26 | 2017-04-12T11:24:02 | Python | UTF-8 | Python | false | false | 37 | py | from django.http import JsonResponse
| [
"james@brudil.com"
] | james@brudil.com |
401fbd0e0fe0707b28342acd94a30e4a0988e967 | 228de37ad02ee9af51a208ad3287224af1f2c472 | /app/reservation/apis/reservation.py | e05f7278c55cc03bd59302529d88a865ff36c81d | [] | no_license | kahee/MySmallTrip | cb0b0a9afdee009f3b4055af92af0bc5ec50f0cd | 75e1bf32993f137e70360f6aa3b22904d61bd24c | refs/heads/master | 2022-12-11T18:57:12.494011 | 2018-09-02T09:12:59 | 2018-09-02T09:12:59 | 130,799,032 | 1 | 0 | null | 2022-12-08T01:01:50 | 2018-04-24T05:08:26 | Python | UTF-8 | Python | false | false | 1,210 | py | from rest_framework import status, permissions
from rest_framework.response import Response
from rest_framework.views import APIView
from reservation.models import Reservation
from reservation.serializer import ReservationCreateSerializer, ReservationListSerializer
class ReservationCreateView(APIView):
permissio... | [
"hsj2334@gmail.com"
] | hsj2334@gmail.com |
7b5e42b03d83f409b260b99e32203f2b92baa90d | cb3d1b072391b07ef0e9596df7f223f37683e970 | /[0448]_Find_All_Numbers_Disappeared_in_an_Array/Find_All_Numbers_Disappeared_in_an_Array.py | d6f8e35a55cb7a49492d347457eed1386a3ed63a | [] | no_license | kotori233/LeetCode | 99620255a64c898457901602de5db150bc35aabb | 996f9fcd26326db9b8f49078d9454fffb908cafe | refs/heads/master | 2021-09-10T18:00:56.968949 | 2018-03-30T14:38:27 | 2018-03-30T14:38:27 | 103,036,334 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | class Solution(object):
def findDisappearedNumbers(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
n = len(nums)
res = []
for i in range(n):
while nums[i] != i + 1 and nums[i] != nums[nums[i] - 1]:
temp = nums[i] - 1
... | [
"cycycy3333@163.com"
] | cycycy3333@163.com |
c1a9bd3f28bb8cf15970e6bb6d06f6a3be4f8bbb | c492ca97c553319be3965a4ec79fa11cfe959c1f | /parser_project_1.py | 46fb9402b7178913bee30e83fece8e031164be26 | [] | no_license | rocketpy/web_scraping | a626b8459a2d7fbcd5d6e7e4a8c35fcb55fbd59d | 53b4ef7e204efa08199c14c29b5501b454280cc8 | refs/heads/master | 2022-09-15T13:24:07.225362 | 2022-08-29T20:45:03 | 2022-08-29T20:45:03 | 178,544,090 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | import csv
import requests
from bs4 import BeautifulSoup
def get_html(url):
r = requests.get(url)
return r.text
def refined(s):
r = s.split(' ')[0]
return r.replace('.00', '')
def write_csv(data):
with open('file_name.csv', 'a') as f:
writer = csv.writer(f, delimiter=',')
wri... | [
"noreply@github.com"
] | rocketpy.noreply@github.com |
c41f4e23a8c90d9a853b30e124a05c5d69277989 | 4daed53ef188fe57fc90771c9042dd137e306261 | /WebKit/Tools/Scripts/run-gtk-tests | df3d66cd4a75498506b6cda51340381097623e6a | [
"Apache-2.0"
] | permissive | JavaScriptTesting/LJS | ece7d0537b514e06f7f6b26cb06a9ab4e6cd7e10 | 9818dbdb421036569fff93124ac2385d45d01c3a | refs/heads/master | 2020-03-12T14:28:41.437178 | 2018-04-25T10:55:15 | 2018-04-25T10:55:15 | 130,668,210 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,168 | #!/usr/bin/env python
#
# Copyright (C) 2011 Igalia S.L.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# T... | [
"cumtcsgpf@gmail.com"
] | cumtcsgpf@gmail.com | |
08922950ea62ec4b9ef9069f09d94cce46ec64e0 | add5b4f0438ff415515818f8f466a6e88dc211ad | /pythoncount.py | 8f98d156c82317b187d76712ae46595585fc2378 | [] | no_license | pavithraabhi/repo | 93872014c81983b37d3527f9c4b7637161f38be1 | 9ad9b0f6c418e82441bd6f1af1698415cf4562f1 | refs/heads/master | 2020-05-28T09:13:14.971625 | 2019-08-15T15:55:25 | 2019-08-15T15:55:25 | 188,951,732 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | q=int(input())
count=0
while(q>0):
q=q//10
count+=1
print(count)
| [
"noreply@github.com"
] | pavithraabhi.noreply@github.com |
c9e956b886d8dcdf622ade6c0496f384110b170c | c87ef08c32872450dc12eb4f744aed4a45ffa2b3 | /accounts/urls.py | 485d9a05266777f0cae81448adbbfb7cf84c4a70 | [
"CC0-1.0"
] | permissive | webguru071/Django-Ecommerce-Demo | ce9f6b09d305fab4dbe11112a037bd3b98ce6ada | a82e921cbec0c933eecd95a6214f484dac10d073 | refs/heads/master | 2023-01-06T12:19:04.202452 | 2020-01-09T06:02:09 | 2020-01-09T06:02:09 | 232,733,797 | 1 | 0 | CC0-1.0 | 2022-12-26T20:16:13 | 2020-01-09T05:58:50 | Python | UTF-8 | Python | false | false | 378 | py | from django.conf.urls import url, include
from . import urls_reset
from .views import register, profile, logout, login
urlpatterns = [
url(r'^register/$', register, name='register'),
url(r'^profile/$', profile, name='profile'),
url(r'^logout/$', logout, name='logout'),
url(r'^login/$', login, name='log... | [
"saumenroy323@gmail.com"
] | saumenroy323@gmail.com |
9b21a2a6c8b79f9e3c4eff182c2ca2e856aebab3 | da56609056dbae44701a5419a77a1c6da140306f | /flask-by-example/worker.py | 24373f54a05cb90ef0cc3ec8162cf58c1c470895 | [] | no_license | aibars/python-examples | 5e22381cad9ac7ddc463cc8fa66939c30646ce12 | 96bfdaf1bbdc56f502430ca551478830e655018a | refs/heads/master | 2022-09-23T14:56:54.858293 | 2022-01-17T15:25:45 | 2022-01-17T15:25:45 | 213,754,386 | 0 | 0 | null | 2022-09-16T18:10:43 | 2019-10-08T21:05:27 | Python | UTF-8 | Python | false | false | 314 | py | import os
import redis
from rq import Worker, Queue, Connection
listen = ['default']
redis_url = os.getenv('REDISTOGO_URL', 'redis://localhost:6379')
conn = redis.from_url(redis_url)
if __name__ == '__main__':
with Connection(conn):
worker = Worker(list(map(Queue, listen)))
worker.work() | [
"agustin.ibars@gmail.com"
] | agustin.ibars@gmail.com |
184ca3e5b811eacd6c90174f19b3fc4c651aaea6 | cc718e58364101a1af040aec15dc53cb713ab9d4 | /approachs/softrank.py | 0be7175d913d00466d08f831ab16290bf294c90d | [] | no_license | liupengcnu/RerankSim | 87250ecaf0ce793e2d38982b511e969d4419f2f8 | c53798e85ad8218e0b3ba92782edcf91c9ce5bc1 | refs/heads/main | 2023-05-18T15:02:58.448419 | 2021-06-10T01:32:34 | 2021-06-10T01:32:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,120 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import math
import tensorflow as tf
from tensorflow.python.framework import ops
from tensorflow.python.ops import math_ops
from tensorflow.python.ops import embedding_ops
from tensorflo... | [
"yongqing.gyq@alibaba-inc.com"
] | yongqing.gyq@alibaba-inc.com |
65affae5a631c8898bb4d018b1b598f62f2ed797 | 0d79a06910b89bbbc8fe9129f6f9703392d7cbfc | /NeuralNetwork.py | 162570fbe9cf6e53fc6cca761ac6a1c129e5976a | [
"MIT"
] | permissive | codym95/Neuralectric | 310e234c3bda1538dd9ef2d0cc89d38e925c14a0 | af2b0355f37654b1cce34c4a6246d8d303be7b3e | refs/heads/master | 2020-04-04T21:23:52.655733 | 2018-11-05T06:59:17 | 2018-11-05T06:59:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,265 | py | import numpy as np
# X = (hours sleeping, hours studying), y = score on test
#X = np.array(([2, 9], [1, 5], [3, 6]), dtype=float)
#y = np.array(([92], [86], [89]), dtype=float)
X = np.array(([0, 0], [0, 1], [1, 0], [1, 1]),)
y = np.array(([0], [1], [1], [0]),)
class NeuralNetwork(object):
def __init__(self):
#... | [
"jrcoop34@gmail.com"
] | jrcoop34@gmail.com |
650c6a4a6b0f91ab1d27334a8a3a9252847cb343 | 6b320577d0d89f24f08098939ef9c4f548a21a06 | /data.py | 005b858cc48ec235b7490ea21dcbafa1eb83874c | [] | no_license | ShreyesBhat/StudentInformationSystem | 46bb20c2aa4830f3d7807773a62740bb1a3954e1 | 117b86b7a3e1503103499827a5aa5ce062710e11 | refs/heads/master | 2020-04-10T23:44:06.578438 | 2018-08-08T15:20:51 | 2018-08-08T15:20:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | def Semesters():
semesters = [
{
'id' : 1,
'title':'First',
},
{
'id' : 2,
'title':'Second',
},
{
'id' : 3,
'title':'Third',
... | [
"akshay.madiwalar@thughtclan.com"
] | akshay.madiwalar@thughtclan.com |
7300a81feea9fcbde4bbb73d634e207a77dccfdf | 2e63d5782d19628006a5902db6ff40765a262530 | /manage.py | afbb6c208b74e367b68582bd5fac408b5ff5e43b | [] | no_license | gkuwanto/metalurgi_dosen | fdf5e21d1a5d8913593c261f5d2449beb5a685a4 | 66582d50c5b0984788702452d063bf6f0ea02829 | refs/heads/master | 2020-12-15T16:07:45.611920 | 2020-01-20T19:50:33 | 2020-01-20T19:50:33 | 235,170,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | 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', 'metalurgi.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impo... | [
"gkuwanto@gmail.com"
] | gkuwanto@gmail.com |
63ff19314e24c7019278ccd81b420f97afa939cb | b2c637c4b27b05f5d9ce933baba96480a46b61f1 | /ex043.py | e5dddbb7152567060e82319e0779b0d579f67b2b | [] | no_license | LucasSM18/Aulas-de-Python---Exercicios-resolvidos | 7aa55ebea0099d29beb288c9ff49c642ef0db898 | e56abe97f2ba941b7cf0ccf6de7d679b621ed995 | refs/heads/main | 2022-12-30T02:51:09.588960 | 2020-10-19T16:59:52 | 2020-10-19T16:59:52 | 305,453,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | from datetime import date
ano = int(input('Ano de Nascimento: '))
atual = date.today().year
idade = atual - ano
print('O atleta tem {} anos'.format(idade))
if idade <= 9:
print('Classificação: MIRIM')
elif idade <= 14:
print('Classificação: INFANTIL')
elif idade <= 19:
print('Classificação: JUNIOR... | [
"noreply@github.com"
] | LucasSM18.noreply@github.com |
6042e2224d0212c185b9add12624f576174a1060 | 5de041cce04d994b899d169186c039a233dc2501 | /utils/my_logger.py | 2ef75e21b975c620529a65db946bc39dfab15fed | [] | no_license | keyzf/AutoTest_UI | d3ea3a51abc95520fac8761a95744757ce8fac15 | 8cbb984e96452c20e0a24543946030f7ef9a3b02 | refs/heads/master | 2022-11-24T23:23:32.227602 | 2020-07-27T15:00:14 | 2020-07-27T15:00:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,762 | py | import logging
from config.PATH import *
import time
from utils.common import *
from utils.read_yaml import ReadYaml
day = time.strftime('%Y-%m-%d', time.localtime(time.time()))
file = os.path.join(TEST_LOG, '{}.log'.format(day))
yaml_data = ReadYaml(YAML).get_yaml()
class MyLog:
def __init__(self,
... | [
"2398335323@qq.com"
] | 2398335323@qq.com |
6b77faebaa6f3446a44f263b97518ca25808ff57 | 17fb5e4cdcf8e557bd0ab8606dfd88074dc4d525 | /ticket_26333/models.py | 0cbe86a46dbea612388e84d5022281172a510cc1 | [] | no_license | charettes/django-ticketing | 0b17c85afa049d1b73db244e1199798feb9a4b73 | 78ed6a345e760ea46434690e9385ae4d26fc2810 | refs/heads/master | 2021-01-17T06:38:35.337305 | 2016-06-15T02:33:38 | 2016-06-15T02:33:38 | 45,122,368 | 0 | 1 | null | 2016-02-09T20:21:48 | 2015-10-28T15:30:59 | Python | UTF-8 | Python | false | false | 255 | py | from django.contrib.gis.db import models as gis
from django.contrib.gis.geos import Point
from django.db import models
POINT = Point(-104.9903, 39.7392, srid=4326)
class PagedModel(models.Model):
location = gis.PointField(srid=4326, default=POINT)
| [
"charette.s@gmail.com"
] | charette.s@gmail.com |
6a41ebef16e06874f1aab4ac728641e3b01e0900 | bb6ebff7a7f6140903d37905c350954ff6599091 | /third_party/WebKit/Source/devtools/devtools.gypi | 7352471a16d41573bde00923debb78f710603bdf | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0"
] | permissive | PDi-Communication-Systems-Inc/lollipop_external_chromium_org | faa6602bd6bfd9b9b6277ce3cd16df0bd26e7f2f | ccadf4e63dd34be157281f53fe213d09a8c66d2c | refs/heads/master | 2022-12-23T18:07:04.568931 | 2016-04-11T16:03:36 | 2016-04-11T16:03:36 | 53,677,925 | 0 | 1 | BSD-3-Clause | 2022-12-09T23:46:46 | 2016-03-11T15:49:07 | C++ | UTF-8 | Python | false | false | 27,014 | gypi | #
# Copyright (C) 2013 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions an... | [
"mrobbeloth@pdiarm.com"
] | mrobbeloth@pdiarm.com |
849af73f4af5fb0fcdfd30a8278320d74ec2f664 | ab4f74d127bfc89813ee359bb9c779eca5426ddc | /script/label_image.runfiles/org_tensorflow/tensorflow/contrib/slim/python/slim/summaries.py | 92cbdf8b09354cbddfd0203055d7827b13efb286 | [
"MIT"
] | permissive | harshit-jain-git/ImageNET | cdfd5a340b62862ad8d1cc3b9a0f30cccc481744 | 1cd4c2b70917e4709ce75422c0205fe3735a1b01 | refs/heads/master | 2022-12-11T12:47:46.795376 | 2017-12-19T05:47:26 | 2017-12-19T05:47:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | /home/co/Documents/ImageClassifier/tensorflow/tensorflow/contrib/slim/python/slim/summaries.py | [
"harshitjain1371999@gmail.com"
] | harshitjain1371999@gmail.com |
d4fb859c1c32e4e140058d6eae83a7ca3c90cc99 | 6462a085be913f1164de4beecfef44cfd1b8c280 | /src/tests/test_handler.py | 3f04062ef23cd4945d9daad756d0b4822e4b8cfe | [] | no_license | perkdrew/softrobot-backend | 2472dbd7189ace1269a54ea77fcc390546cecf89 | 821574b7c47505a3e54a02526cfa14ca21bfe85b | refs/heads/main | 2023-06-21T17:15:34.701070 | 2021-07-25T23:33:00 | 2021-07-25T23:33:00 | 388,159,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | import pytest, requests
def server(host, port):
pass
| [
"drew@manivadigital.com"
] | drew@manivadigital.com |
aaff714536d0fb5e77c4def099d2dea4223ff9d6 | b0e6bf9053a820d4f2c8884d89bfe7889910c84d | /healthcare/migrations/0028_rx_claim.py | 0829d75ba8a950ebee86b3270aa46345f2cde827 | [] | no_license | fzqr7y/RCG-enable-Demo---HealthCare | acac76c64072681365cc1282f0bea59713863cfb | 414f90ffc39c6b515aff2a4937d254ea81736207 | refs/heads/master | 2021-01-17T18:56:36.420354 | 2016-10-21T19:27:33 | 2016-10-21T19:27:33 | 71,597,565 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,103 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-09-12 21:52
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('healthcare', '0027_auto_20160909_1703'),
]
operation... | [
"swchesney@gmail.com"
] | swchesney@gmail.com |
445d942ea4ffebd2dbe2302f9dd02885998a1ada | 39d4504ec1da8975fac526d6801b94f4348b6b61 | /research/adversarial_logit_pairing/tiny_imagenet_converter/converter.py | 6925cceae9319d3bc9c2b8f585800b65199ee130 | [
"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 | 9,410 | py | # Copyright 2018 Google Inc. 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 ... | [
"1155107977@link.cuhk.edu.hk"
] | 1155107977@link.cuhk.edu.hk |
239fdf3de10fa59e880d57dccdeaa8645206165a | c3d210e8321afff93ff0b2ea8c304fa4a02a6c04 | /spk/deluge/src/app/deluge.cgi.py | ae747dbdd9559b7c61d37c7bd6bcded603540110 | [
"BSD-3-Clause"
] | permissive | cytec/spksrc | 90da6b0542ebca743c6e527626f1f8cfefb040df | a955d47d89f080bd9c4362af4ae80da0afbf4e43 | refs/heads/develop | 2020-04-05T22:43:22.797226 | 2014-08-19T10:14:10 | 2014-08-19T10:14:10 | 7,053,717 | 4 | 4 | null | 2018-04-19T10:13:09 | 2012-12-07T13:36:45 | Shell | UTF-8 | Python | false | false | 159 | py | #!/usr/local/deluge/env/bin/python
import os
protocol = 'http'
port = 8112
print 'Location: %s://%s:%d' % (protocol, os.environ['SERVER_NAME'], port)
print
| [
"diaoulael@gmail.com"
] | diaoulael@gmail.com |
15c21aa0fe33a8dd08ee06da88a96d254f592d0b | 85be01c0a86e72553f24cd6f88bb91c4343a6863 | /test.py | 0f209cbe8df41eb48766bfd0664772c2174d338e | [
"Apache-2.0"
] | permissive | wurentidai/ELMO | 8463783def52c77cc74e5385d9bc3523a5c6b54b | 7df92cc25b0d7e5238ad1821d973a0a56aaa6315 | refs/heads/master | 2020-06-01T08:46:29.004700 | 2019-06-06T09:56:42 | 2019-06-06T09:56:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | import numpy as np
char_inputs = np.zeros([2, 1, 3],
np.int32)
res=np.vstack([[1,2,3]]+[[4,5,6]])
# char_inputs[0,0,:]=res[0:1]
# print(res)#[[1, 2, 3], [4, 5, 6]]
# print(res+1)
import tensorflow as tf
with tf.Session() as sess:
z=tf.random_normal((3,4,2),mean=0.0,stddev=1.0,dtype=tf.flo... | [
"1187663089@qq.com"
] | 1187663089@qq.com |
35e13bd1380af1bac9dcf5f5cc0bb2f542369fb9 | aa5db6a1531d07f56e675e89017cc653d663cb9c | /newmail.py | d5d83fe5f2371716820ca9733ed8837940675ba5 | [] | no_license | arundhatighose/SmartDustbin | 523ff98a2255fdc367ad9fd94d6998aeaf50a2fd | 55cbf749d8f8f62e0beebe3c4fe5de5166a9e28e | refs/heads/master | 2020-03-24T04:11:42.080593 | 2018-07-26T14:03:34 | 2018-07-26T14:03:34 | 142,440,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,949 | py | import smtplib
from email.MIMEMultipart import MIMEMultipart
from email.MIMEText import MIMEText
import smbus
import time
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
TRIG = 23
ECHO = 24
GPIO.setwarnings(False)
print "Distance measurement in progress"
GPIO.setup(TRIG,GPIO.OUT)
GPIO.setup(ECHO,GPI... | [
"ghosearundhati96@gmail.com"
] | ghosearundhati96@gmail.com |
2150310528fef0892cc9b51cd2cf02ef51e65e81 | 7051d14616fb3a1f108f72332a116fc784d5b228 | /Chapter_Rosalind/splc/splc.py | 7e2089097e9d6b13ca557dcc26f06eb68863854e | [] | no_license | demar01/python | 8544b713c2e41394730f983c85f647ba6d503f55 | 2b020e8f1aef3d542bc94bc76fd9e3112f979133 | refs/heads/main | 2023-08-01T21:05:31.012662 | 2021-09-18T07:05:16 | 2021-09-18T07:05:16 | 358,561,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | # -*- coding: utf-8 -*-
"""
http://rosalind.info/problems/splc/
"""
'''
Problem
After identifying the exons and introns of an RNA string, we only need to delete the introns and concatenate the exons to form a new string ready for translation.
Given: A DNA string s (of length at most 1 kbp) and a collection of substr... | [
"maria.dermit@qmul.ac.uk"
] | maria.dermit@qmul.ac.uk |
bffddf8b0f1b8d0b7b5e3f7db6384a95bbf3a8bb | 6d11d48fb6d6ce45d2f9866f05310ae873a727dc | /code/run_exp.py | 3b629b7a22b90091efb75193f2231d5ad0fd6f22 | [
"MIT"
] | permissive | BasemElbarashy/image-compression-and-semantic-segmentation | 634b107154377d4ac1a41fba5777d21d6f8ad075 | 760d7f779e97659f3f8f59f68eaa4268ec08618b | refs/heads/master | 2020-12-19T02:05:02.249473 | 2020-01-22T15:08:14 | 2020-01-22T15:08:14 | 235,588,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,944 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import argparse
import os
from logging_formatter import Logger
import glob
import pickle
import tensorflow as tf
from bls2017 import train, compress, decompress, depth_train, depth_compress
import numpy as np... | [
"mllover1992@gmail.com"
] | mllover1992@gmail.com |
e0ce5752ad88708ef35d5a8042862cc05fb1057b | ddf896fb5487228d1f8d56f19d9e69425554b2aa | /main/utils/response_code.py | ff3a4e6dd0f37f17bad967a8a06f6991497219ea | [] | no_license | quinn-lee/novalinks | caf057b60d721cecb92b526bde1647e5db7e658c | 8bb45cdaff6bde61fe00e41924109fb48c36cbd5 | refs/heads/main | 2023-08-25T15:30:49.049926 | 2021-10-28T12:06:27 | 2021-10-28T12:06:27 | 352,111,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,232 | py | # coding:utf-8
class RET:
OK = "0"
AUTHERROR = "2001"
DBERR = "4001"
NODATA = "4002"
DATAEXIST = "4003"
DATAERR = "4004"
SESSIONERR = "4101"
LOGINERR = "4102"
PARAMERR = "4103"
USERERR = "4104"
ROLEERR = "4105"
PWDERR = "4106"
REQERR = "4201"
IP... | [
"lifuyuan33@gmail.com"
] | lifuyuan33@gmail.com |
aad30ae2f499a4fe38ffa603bb96df94f9fd7b53 | be2ed81c9c35a7095c90addc9285a8d56d233ce7 | /src/Item.py | 61e0a114693edbd2fc072368225f0e229c22372d | [] | no_license | AustinBCole/Intro-Python-II | ea4696d9caec6a954ba496c54ea3a528db883a90 | 130ab3172ea13f468fbada5023c44b78ddd5a5a0 | refs/heads/master | 2020-05-29T17:48:43.152760 | 2019-05-30T23:31:01 | 2019-05-30T23:31:01 | 189,284,228 | 1 | 0 | null | 2019-05-29T19:13:46 | 2019-05-29T19:13:45 | null | UTF-8 | Python | false | false | 1,027 | py | # This is the file for the Item class and other Item subclasses. Each Item will include at least a name and description.
class Item:
def __init__(self, name, description, point_value):
self.name = name
self.description = description
self.point_value = point_value
def on_take(self):
... | [
"austin.cole.chileno@gmail.com"
] | austin.cole.chileno@gmail.com |
0e863e8888aa0fe019d8daa53d295348ed7b230f | ce8a9e0d9d049d223e11924ab94b761560c091d1 | /main.py | 1c437615f87ebe588ffcce2e502879626e7a1345 | [] | no_license | ZeinShehab/Key_Logger | e9b4d5f845d47d38311b0d85dbaa4de645f99864 | 73a41fcf62b2262965fd2ff34fd829855eba421d | refs/heads/master | 2023-01-01T09:47:51.025702 | 2020-10-21T09:31:27 | 2020-10-21T09:31:27 | 305,974,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | from pynput.keyboard import Key, Listener
from mail import SendMessage
import datetime
import time
count = 0
keys = []
def on_press(key):
global count, keys
count += 1
keys.append(key)
print('{} pressed'.format(key))
if count >= 1:
count = 0
write_file(keys)
keys = []
... | [
"zeinshehab@outlook.com"
] | zeinshehab@outlook.com |
48cabdc9e9790d4b88e8a489a10a4d9f616671c7 | 02d7676fbe35cc20ab16ee0fc323af88aa6fdbb2 | /zip_extractor.py | 1fd75e97bb0123585bd52ac5b8852a55db2e1db6 | [] | no_license | Constin-Joseph/ZIP_EXTRACTOR_AND_EXTRACT_INTO_SAME_ZIP_FOLDER_NAME | 91a058f1859134b8263c7983aa42172be6b7c17e | 93e16908e57544c41f8216975cef5fa84e9f88af | refs/heads/master | 2020-09-12T12:35:06.904073 | 2019-11-18T11:24:21 | 2019-11-18T11:24:21 | 222,427,353 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | import os
import glob
import zipfile
def extractor(b,c):
dir_name_base = b
dir_name_base1=c
for arc_name in glob.iglob(os.path.join(dir_name_base, "*.zip")):
arc_dir_name = os.path.splitext(os.path.basename(arc_name))[0]
zf = zipfile.ZipFile(arc_name)
zf.extractall(path=os... | [
"noreply@github.com"
] | Constin-Joseph.noreply@github.com |
5e69c64504234a60e30d75476b388929c83fef33 | 95c4bb5c168f6afd3b833c1dce79a367b59f5fd7 | /matrices y listas/sin duplicados.py | 897a4e3a1a7ddc39f5d86909d24905338264684d | [] | no_license | MikeDev0X/PythonPracticeEcercises | 2abced3bda9e43a7b5e41decc3d3472f5df3f52a | c44dc15e691b65f58d0c50dffa093c22d73d2d69 | refs/heads/master | 2023-06-12T11:11:19.925477 | 2021-07-01T22:09:34 | 2021-07-01T22:09:34 | 382,172,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | '''Miguel Jiménez Padilla
Sin duplicados'''
def sinDup():
elem=int(input())
if elem>0:
lista=[]
num=''
for i in range (0,elem):
num=input()
lista.append(num)
newlist=[]
for x in lista:
if not x in newlist:
... | [
"mike0vortex@gmail.com"
] | mike0vortex@gmail.com |
973632a7c8683bfc4870158b7ba92ba76228c912 | 7eed980f0bbc4a8ec98ca1e90365ef93c3f66ce9 | /spiders/RAKE/rake.py | 546e77bc3994fc3751a681f9580442df15b126c2 | [
"MIT"
] | permissive | Sevenforty740/ZHIKU | 185c0b004f8a6fcaeb195fae9fbc983bfdfa8fa1 | 5b25c58358f9247797d8a7a094cdaff841ed1fc0 | refs/heads/master | 2022-11-15T16:35:08.960080 | 2020-07-11T02:15:06 | 2020-07-11T02:15:06 | 278,771,350 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,457 | py | # Implementation of RAKE - Rapid Automtic Keyword Exraction algorithm
# as described in:
# Rose, S., D. Engel, N. Cramer, and W. Cowley (2010).
# Automatic keyword extraction from indi-vidual documents.
# In M. W. Berry and J. Kogan (Eds.), Text Mining: Applications and Theory.unknown: John Wiley and Sons, Ltd.
impo... | [
"125045209@qq.com"
] | 125045209@qq.com |
081beb03c48dbdcbc41bbeb2a87431355a67be1f | 550207ff24c3afaa3f98aa0fd505231121daf210 | /Hello_World.py | a698d6eefe397558cddd0b0686065531a2d70a28 | [] | no_license | uakin95/Deneme | 46090d7fe181b08b76fca83d7336c81f779109bd | 93b6758b8f9e139b89c10313254d9f4e1dff4d0e | refs/heads/main | 2023-06-10T23:41:08.847464 | 2021-07-04T10:22:02 | 2021-07-04T10:22:02 | 382,816,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | print("Hello World")
# I made a change
#Yeni bir değişiklik | [
"utkuakin95@gmail.com"
] | utkuakin95@gmail.com |
2e9b77089880079fdb7d199d0b91502703b5d26f | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_206/788.py | e8b84134907f46ad0cbe2712afd5aa1543611f5d | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py |
# coding: utf-8
# In[2]:
import numpy as np
import itertools as it
import collections as col
# In[3]:
import sys
sys.setrecursionlimit(10000)
# In[4]:
import networkx as nx
import matplotlib.pyplot as plt
# In[1]:
def solve(*args):
print(args)
# In[16]:
def solve(D,N,Horses):
t = [float(D - x[0])... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
2ad7507ea1d4e5d99a5df93103dbc4567a8bc550 | 79e222e5ffae7f6eac61bcf58db8bc297f3448cd | /testing/conftest.py | 8f54f6687ee1e88f9fd36a4957511dbc1ba52615 | [] | no_license | jhannah01/redisent | 6642d2dbe6c04434acf37407a3d95d4fec80ee48 | b31d724b47cccd688523f224b537e14c2435e124 | refs/heads/master | 2023-07-30T19:04:55.200616 | 2021-02-02T02:03:11 | 2021-02-02T02:03:11 | 332,575,184 | 1 | 0 | null | 2021-02-02T02:03:12 | 2021-01-24T22:59:23 | Python | UTF-8 | Python | false | false | 396 | py | import pytest
import aioredis
import fakeredis
import fakeredis.aioredis
import redis
pytestmark = [pytest.mark.asyncio]
@pytest.fixture()
def use_fake_aioredis(mocker):
mocker.patch.object(aioredis, 'ConnectionsPool', new=fakeredis.aioredis.FakeConnectionsPool)
@pytest.fixture()
def use_fake_redis(mocker):
... | [
"jon@synistree.com"
] | jon@synistree.com |
a9e934b9717261455daf003af05bd1a4579c86ae | 9231713f6fd5a45baafa42a00bba5c36b11168bb | /search1/venv/Scripts/easy_install-3.7-script.py | cf100cbf5f55ab6f80e1c7d439f2554332ee01f5 | [] | no_license | Bizzle917/CourseDiscussion | 095c0593d33f5db09b4db0f3a05da8fcef6cf302 | 7369696ef6a02f94730e086ea8320efb1f5baeec | refs/heads/master | 2022-06-23T21:36:42.322950 | 2020-05-04T04:06:10 | 2020-05-04T04:06:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | #!D:\search1\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]... | [
"1599101385@qq.com"
] | 1599101385@qq.com |
fc059d9841f05ab00deea0b42b02c3bf9c5b672a | f7de679c65e07a83aa39bc8e9d5aeac505b566f3 | /08_mongo/app.py | ff4204bddc97ef6c163adaf3a09e7e72146487b4 | [] | no_license | DenChen11214/softdev7 | 2fed8cff212b2e47f5f2d0c860a3827b7b023526 | 40f73f5251f32a019b9d05cfdf8a70adac10689a | refs/heads/master | 2020-04-19T12:51:06.292044 | 2019-05-02T17:12:26 | 2019-05-02T17:12:26 | 168,202,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,721 | py | #TangoTangoMangoMongo:Dennis Chen, Robin Han, Imad Belkebeer
#SoftDev pd7
#K#08: Ay Mon, Go Git It From Yer Flask
#3/6/19
from flask import Flask, redirect, url_for, render_template, session, request
import pymongo
import os
import json
import mongo
app = Flask(__name__)
app.secret_key = os.urandom(32)
collection = ... | [
"dchen22@stuy.edu"
] | dchen22@stuy.edu |
e79dd2ca53fdbbfde74fe854d3bbab50baefb268 | 850fa06b63bf259d54adecc30644371691505484 | /app/migrations/0001_initial.py | 15fd27323995daa7edea7d9caa30d1dd3a3be3fb | [] | no_license | pkfkzk/djangopython | 534f165d1e9601cafd4914f3e809d7dcbe2550cb | 91ac58cb1f60527cbd3e166bf7bdf1c5d2f165c0 | refs/heads/master | 2022-05-01T05:37:14.898214 | 2019-06-25T21:26:18 | 2019-06-25T21:26:18 | 193,785,164 | 0 | 0 | null | 2022-04-22T21:43:57 | 2019-06-25T21:22:28 | Python | UTF-8 | Python | false | false | 1,629 | py | # Generated by Django 2.2.2 on 2019-06-25 14:41
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
... | [
"pkfkzk@gmail.com"
] | pkfkzk@gmail.com |
2bc572186c70d43c31af48afcccdbafa462dd928 | 334a7ef4d295033bacdcf5573a9ff50d94bb7353 | /basic-form-validation/server.py | 4d86f8e401c4de96bb8e49e463e3b1ab32148de9 | [] | no_license | cd-chicago-june-cohort/flask-fundamentals-john | 75a5b6350bf2d8ad96bf0feb8950246df17b7755 | 5c778b2a6b816bd15ef5ce375becb91519475024 | refs/heads/master | 2020-12-02T17:58:27.170244 | 2017-07-10T02:24:12 | 2017-07-10T02:24:12 | 96,456,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | from flask import Flask, render_template, redirect, request, session, flash
app = Flask(__name__)
app.secret_key = 'KeepItSecretKeepItSafe'
@app.route('/')
def index():
return render_template('index.html')
@app.route('/process', methods=['Post'])
def process():
if len(request.form["name"]) < 1:
... | [
"jpdoherty90@gmail.com"
] | jpdoherty90@gmail.com |
0166ddeeaf5e9d31d55bb080992bc0f5ec7e43ce | d219e3c9b4d72cf1fd6f0c61ca36093af0e9ad12 | /attic/disimpy_libs.py | e7b89c5802190a365a97d582cc3d54211ecf8cc2 | [] | no_license | wovo/disimpy | 747e2961c4b7b465c2d6fccd3b39f5ecaaee9f89 | 2134730a50fd838f8b29eb49031b58dd126081fd | refs/heads/master | 2020-12-14T22:25:18.811424 | 2020-01-30T15:20:24 | 2020-01-30T15:20:24 | 234,891,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,347 | py | """disimpy: digital circuit simulator in Python
"""
import disimpy_base as base
import disimpy_gates as basic_gates
class nand( base.toolkit ):
"""a toolkit with only (unlimited number of inputs) nand gates
"""
def __init__( self, name = "toolkit nand" ):
super().__init__( name )
def f... | [
"wouter@voti.nl"
] | wouter@voti.nl |
05fae65f1269c0c0152dae6c1cad650454a36a28 | 11eb58ac440c8e3cd437002632c1dd488220a81f | /newproject/urls.py | 2866541b4681d7898c7446f30233b7401d609a3d | [] | no_license | rbartosinski/djangogirls_test | 39a6f06be767ea106e11bef515ab954eb23bd06a | 36439d6c67903cdfe6c986194cb5de22f2d4bc2b | refs/heads/master | 2020-04-16T14:39:31.927699 | 2019-01-20T18:29:49 | 2019-01-20T18:29:49 | 165,675,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | """newproject 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... | [
"rbartosinski@wp.pl"
] | rbartosinski@wp.pl |
33dc1b6019a3d71fc08f47f08016af65d512aae8 | 63aef4f6b9a6e5f20e2832d2ed40c6178a219426 | /api/product/resources.py | fcc912656f8c91c5c78bef4ac7de8f4c7442f4fd | [] | no_license | longdt19/vngonow-api | 7b98efd4fa9aca15ff554c81949222fc678d0933 | c6a1a3d2b02a3847e469910b4b2e66df619baf51 | refs/heads/master | 2020-04-15T06:35:19.652708 | 2019-01-07T17:15:37 | 2019-01-07T17:15:37 | 164,465,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | from api.common.base_resources import BaseResource
from .forms import *
from .business_logics import sim_bl
class SimResource(BaseResource):
GET_INPUT_SCHEMA = GetSimDetailForm()
POST_INPUT_SCHEMA = CreateSimForm()
def get(self):
params = self.parse_request_params()
return sim_bl.get_one... | [
"longdt.19@gmail.com"
] | longdt.19@gmail.com |
60bf16f87f5ad4e17e37db5a8f55c69a8ae134a2 | 0a66006ce524377c7f2d6986910a60a11028c62d | /yardstick/network_services/vnf_generic/vnf/base.py | 1d770f724e4522392b04eff71fd5fb8ac1779147 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | alexnemes/yardstick | 6c472ec1b070e4d4f4217d4d00c96c7b8b5a7c49 | 7a89a01cdb1b3569d0b67451572edbae0f3d05aa | refs/heads/master | 2021-01-20T17:12:45.010147 | 2017-06-20T09:59:31 | 2017-06-20T09:59:31 | 94,768,728 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,743 | py | # Copyright (c) 2016-2017 Intel 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 agreed... | [
"deepak.s@linux.intel.com"
] | deepak.s@linux.intel.com |
89cced5029171d8eeac66cd9c271abdabafc816b | 6ce6459f7992f6f884611cc20b94d55e498cb799 | /실습 코드/파이썬을 파이썬 답게/Welcome.py | 9ed199dee1d3821f4c700026b59d4f395f580908 | [] | no_license | Donghyun-34/Python | a05b3dc0feba18839bab074643da75f7bdb1f3fe | 0a1629113fe0cddc5def574b1ec0b11c41cbd20d | refs/heads/main | 2023-07-15T12:38:22.346432 | 2021-08-30T07:42:10 | 2021-08-30T07:42:10 | 393,931,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | def solution(mylist):
"""
Version C
answer = []
for i in mylist:
answer.append(len(i))
return answer
"""
# Version Python
return list(map(len, mylist))
# map : 첫번째 인자로 주어진 함수에 두 번째 인자로 주어진 값을 반복적으로 대입해서 결과값 반환
print(solution([[1, 3, 4, 5], [1, 2]])) | [
"akakak413@naver.com"
] | akakak413@naver.com |
9690f03824a072205a0b0ef9394926d834113ef9 | 342af5b642839c4fd9f833ec93f4b65f3af2296c | /pocs/test/example.py | 1cab5c5e3c4f2a4ab8d0a6b44ee133a86aa21f5c | [] | no_license | anwilx/POC-S | 4cf2a1e8e7e3eef6444cc0f9ff827afc9a5d8dd6 | eb06d3f54b1698362ad0b62f1b26d22ecafa5624 | refs/heads/master | 2022-04-08T16:37:26.838436 | 2020-03-12T02:48:12 | 2020-03-12T02:48:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
import unittest
class MyTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
print "setUpClass"
def test_example(self):
self.assertTrue(1==1)
@classmethod
def tearDownClass(cls):
print "running teardown"
def test_sin... | [
"2461805286@qq.com"
] | 2461805286@qq.com |
b7598b85a18e5062a036788b0b02b5f3f71c8645 | 270d27a79aeace2e5e0d8b33e79b533679558b5f | /storage/objects/nucleus.py | 01d46be2c55c33c24ad5dc2d44d9b99dd1ada304 | [] | no_license | baemms/NucleoSegment | dedc1237d9dccb449292de3e32c723b64da4b857 | e644b3a3dc284cd430c25ea48e9af664c86034cf | refs/heads/master | 2020-06-20T19:39:55.024310 | 2017-08-01T13:55:17 | 2017-08-01T13:55:17 | 74,744,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | """
Store all information regarding individually merged nuclei
"""
class Nucleus:
volume = None
planes = None
coords = None
areas = None
| [
"dominik@schienstock.de"
] | dominik@schienstock.de |
785aff74b90e752d87ebe0e8f429ca461407deb0 | bcdcf2e9e014568c8cb7180f43be2d409218dda5 | /src/pitchly/utils.py | 64299bd401005bd94bf2ea57b52ecc00c5c4724c | [
"MIT"
] | permissive | opunsoars/pitchly | 822d2763a4c528c0806fe7d84ee3b2f50433ea3d | ad3bba4ab7ce1f2dc5cb6d184aac14a487d20056 | refs/heads/master | 2023-07-07T10:54:30.861043 | 2021-08-11T17:00:09 | 2021-08-11T17:00:09 | 358,345,099 | 10 | 2 | MIT | 2021-08-11T13:45:40 | 2021-04-15T17:46:28 | Python | UTF-8 | Python | false | false | 7,659 | py | import glob
import numpy as np
import pandas as pd
import scipy.signal as signal
from .params import prm
match_dir = "/media/opunsoars/My Book/playground/friends_of_tracking/friends_of_tracking/\
datahub/metrica_sports/sample-data/data/Sample_Game_1"
def modify_cols(tracking_df):
cols = list(tracking_df.il... | [
"vinay.warrier@gmail.com"
] | vinay.warrier@gmail.com |
519f704a27b31e3a77185effc036ed4eedd92cdd | 73fb3e773d5f884197882a94036bb1b52f232029 | /legacy/replay_db.py | b5ff023ca178484c834c82f57be4850fbe081a14 | [] | no_license | Steve132/bard | 32bc7fe02876b8a9824d12de4b24a6f488e44c7a | 410e4a9653b15e8390f581f2540be6823bd96417 | refs/heads/master | 2020-05-30T22:43:47.974876 | 2019-11-21T01:27:45 | 2019-11-21T01:27:45 | 21,441,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | import sys
import base64
import json
import urllib
from collections import MutableMapping
class ReplayDB(MutableMapping):
def _decode(self,c):
s=urllib.unquote(c)
#s=base64.standard_b64decode(s)
return json.loads(s)
def _encode(self,o):
s=json.dumps(o)
c=urllib.quote(s)
#c=base64.standard_b64encode(s)
... | [
"steve@soapforge.com"
] | steve@soapforge.com |
a5330d19026db986f20c8b01217e15b07e32f511 | 4066083132057c6948dadfa534412454becd25b3 | /students/form.py | 22acd047397420e6d4849556174764753944456d | [] | no_license | lanchaoxiang/django- | 22d82721caeec9fbd02520c417dd3a4c1668704d | db7144451e6ba9fdef5c3d16e912617591c43ba6 | refs/heads/master | 2022-06-17T19:57:11.513424 | 2020-05-15T07:21:42 | 2020-05-15T07:21:42 | 264,125,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | from django import forms
from .models import Students
class StudentsForm(forms.ModelForm):
def clean_phone(self):
cleaned_data = self.cleaned_data['phone']
if not cleaned_data.isdigit():
raise forms.ValidationError("必须是数字")
return int(cleaned_data)
class Meta:
model ... | [
"982252331.com"
] | 982252331.com |
d584ad747c5fa2dd62dabd8f0807dcc050ba430c | f397eb9e1c05ab26d412d95569986b1b73ed2eb5 | /Python/youtube_services.py | f49e61cd332ac625ce170fcbe77ebbbe5526d153 | [] | no_license | Bror-E/Eurovision-Youtube-Comments | b6539d2646c30b6a9f395d301e3d25b1e5558486 | 2441b50e036e86c5bc28a00e12174f349e48a644 | refs/heads/main | 2023-05-02T06:15:14.995229 | 2021-05-24T11:45:10 | 2021-05-24T11:45:10 | 368,993,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,167 | py |
import requests
import json
from csv import writer
from googleapiclient.discovery import build
from urllib.parse import urlparse, parse_qs
import os
import codecs
test_url = "https://www.youtube.com/watch?v=i6r3MMMAo3Q"
API_KEY_FILENAME = "youtubeDataV3.txt"
def get_api_key(filename):
with open(filename) as f:... | [
"bror_ebk@hotmail.com"
] | bror_ebk@hotmail.com |
e2d72a4b50f635ef0ad2b739407c127437f87cc8 | 926ffe00858129292bcb90a5d4257ce65ba843a0 | /src/ipycbm/plugins/foi/foi_help.py | f00f66813b04f934b6b0813a40351b94837d4d46 | [
"BSD-3-Clause"
] | permissive | VP-GEO/cbm | c07386b1204b0cd2a92b06abb4b9c2dc10057790 | 4ed229f6b6455435b6d032deb8a39dba4ecee7a2 | refs/heads/main | 2023-02-25T19:33:34.147762 | 2021-01-27T13:43:11 | 2021-01-27T13:43:11 | 331,580,086 | 0 | 0 | BSD-3-Clause | 2021-01-21T09:37:53 | 2021-01-21T09:37:52 | null | UTF-8 | Python | false | false | 10,830 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# This file is part of CbM (https://github.com/ec-jrc/cbm).
# Author : Gilbert Voican, Konstantinos Anastasakis
# Credits : GTCAP Team
# Copyright : 2021 European Commission, Joint Research Centre
# License : 3-Clause BSD
from ipywidgets import (HTML, HBox, VBox,... | [
"Konstantinos.ANASTASAKIS@ext.ec.europa.eu"
] | Konstantinos.ANASTASAKIS@ext.ec.europa.eu |
4c75fb886c4b239e33e380d908655600d93ee545 | 29c38a4d4151e91ceedf96995ef6bc42e7aa8229 | /lstm_bus_prediction.py | 32f27addcff416cc0c636ce89ade844dcc00a0e5 | [] | no_license | NeuEIRG/OTL- | bbb4a9b92c71d17a04453cfe49a0fc9f841fc55e | 63b01e088396f02dab30ce89cd4f3a47234355f3 | refs/heads/master | 2020-04-23T11:02:32.536059 | 2019-03-11T17:24:39 | 2019-03-11T17:24:39 | 171,122,551 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,306 | py | from math import ceil
from math import floor
from math import sqrt
from numpy import split
from numpy import array
from pandas import read_csv
from sklearn.metrics import mean_squared_error
from matplotlib import pyplot
from keras.models import Sequential
from keras.layers import Dense
from keras.layers impor... | [
"noreply@github.com"
] | NeuEIRG.noreply@github.com |
fde240b2585bc39894fa72155c2361f0b3504eba | 1877498789048c4bbfec56e1cdbea65324b5a344 | /quiz1.py | ae30c75832cb6e895e06b8c87abb6d78b11528da | [] | no_license | rqnoble/vectors | 7034679c44b234a7057178498b4c737268ecee63 | 56ed5bbcd1f8e7e6db6a5a4e486bd46621c85046 | refs/heads/master | 2021-01-19T10:39:20.697143 | 2017-02-16T16:21:20 | 2017-02-16T16:21:20 | 82,198,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | from vector import Vector
v = Vector([8.218,-9.341])
vv = Vector([-1.129,2.111])
print v.plus(vv)
v = Vector([7.119,8.215])
vv = Vector([-8.223,0.878])
print v.minus(vv)
v = Vector([1.671,-1.012,-0.318])
c = 7.41
print v.times_scalar(c)
| [
"robb.qn@gmail.com"
] | robb.qn@gmail.com |
616dec02e3d4a188053dd731b090bf35d28cf7a7 | 7f570caf00f6319167811c4dde73b2aea802fecc | /Hackathon/demoPage/migrations/0027_auto_20180505_2143.py | e0b4bec2d5212cfa631dcc897cc20c27ac2e373c | [] | no_license | pinchien/Healthcare-Hackathon | 4d44de2b7a556e1da09f10599a45082241a67105 | c1f9c3874ff95544455fa6a7df783e0d4231e00b | refs/heads/master | 2020-03-16T05:58:24.605494 | 2018-05-07T05:22:24 | 2018-05-07T05:22:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | # Generated by Django 2.0.5 on 2018-05-05 21:43
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('demoPage', '0026_auto_20180505_2136'),
]
operations = [
migrations.DeleteModel(
name='PatientData'... | [
"eunice730711@gmail.com"
] | eunice730711@gmail.com |
825d1831a90ed786db9ab8760c0b7c7605b2a7f8 | 98a56d8a1914bd871cde7cf7b199dab16c0ff1df | /projeto/projeto/settings.py | 165197ec1a9a76c33a39e26b9f3de5eacc3b2c5c | [
"Apache-2.0"
] | permissive | hersonananias/Projeto_Django | 47455e62455a17546f744d864db5bcae57e5f4e8 | a9f5f508f73896ce9434c6e56d8d7c3d3e9d6397 | refs/heads/master | 2020-05-18T10:23:41.725956 | 2019-05-07T23:26:43 | 2019-05-07T23:26:43 | 184,352,787 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,132 | py | """
Django settings for projeto project.
Generated by 'django-admin startproject' using Django 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
# B... | [
"herson.ananias@aluno.faculdadeimpacta.com.br"
] | herson.ananias@aluno.faculdadeimpacta.com.br |
a3394a232daaaf1420a9a1059d76d723d0d91293 | 5479670e391f3e0353504de6af8e7043f3874368 | /comments/migrations/0002_auto_20170814_0933.py | bd3ed6dbf6425d7598162ff2a7b8af095648b7da | [] | no_license | seLzzf/web | 555c43af7ea38c9387fd4515e7d7eaa5785d21f9 | 4535b04f9c2881949b3474038fe255526b91bdef | refs/heads/master | 2021-07-19T17:12:23.166756 | 2017-10-25T15:14:08 | 2017-10-25T15:14:08 | 98,084,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-08-14 09:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('comments', '0001_initial'),
]
operations = [
migrations.Alter... | [
"l271938333@gmail.com"
] | l271938333@gmail.com |
825efdebc5e4ceefb5c6788eaea3243e8d09e2d4 | fa1ae88e5299fdeba3951564df755b8eca5d4344 | /nervana_theano/conv.py | cd4fab5d92428dfd0e51e3c2efe297ce796ca0c0 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Libardo1/nervana_theano | 5cc1e32ea110a79f78544b17eb485d233ce1c178 | 1a31f7ee983ad3dc4cb07c12a5844e41f59abc5a | refs/heads/master | 2021-01-17T12:58:24.047900 | 2015-05-07T20:15:03 | 2015-05-07T20:15:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,096 | py | """
This file contains code from nervanagpu, which is covered by the following
license:
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
... | [
"sanderdieleman@gmail.com"
] | sanderdieleman@gmail.com |
7aa212786905e87c1e1736fc67737d33fa121905 | f163960d077a4217ec54f16f5b1e61b3a6edcce4 | /venv/bin/gunicorn_paster | 228b70966bbd81c44f4289a7e5051522bc9b2a0e | [] | no_license | drj17/league_tracker | a020c3fc7ae4c2405f56ffbccff9f06e0f4c7377 | 6bac3b9e88cb5d7a53b80b34c2557d226ed8c711 | refs/heads/master | 2021-05-08T09:40:29.027473 | 2017-10-25T20:49:47 | 2017-10-25T20:49:47 | 107,171,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | #!/Users/davidjanas/league-tracker/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.pasterapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"davidjanasr@gmail.com"
] | davidjanasr@gmail.com | |
7a90c5b9dec84a9caa29ff8fbc9d4e6bce5d1cc6 | 48446536f9d89dedcc2e0e2f68dea99526b66e37 | /structure/DoublyLinkedList.py | 493289a9cede0d970c6e0473eaec236052421c6b | [
"MIT"
] | permissive | Jaidev810/Data-Structures-package | 24e3dcaba6a440a858b7bbe6d126d3c661c8e115 | f651615275817f182662892b2b57b200310d3dba | refs/heads/main | 2023-03-02T16:02:09.974413 | 2021-02-15T16:37:08 | 2021-02-15T16:37:08 | 336,035,126 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,276 | py | class Node:
def __init__(self, val: int):
self.val = val
self.prev = None
self.next = None
class DoublyLinkedList:
def takeinput(self) -> Node:
inputlist = [int(x) for x in input().split()]
head = None
temp = None
for curr in inputlist:
if c... | [
"jaidevchaudhary810@gmail.com"
] | jaidevchaudhary810@gmail.com |
f2e9d57da8c25b307fc6615d861bd06423993923 | 06927b2c6ab0ac9fbf2746ea38a32eb974a57690 | /ConfTool_Open.sikuli/ConfTool_Open.py | 18e3372be86df8c4f5e984e2bd8d022c50470ce7 | [] | no_license | OldFeelLee/sikuliProject | ad104a1b0d70ce177150052aed663e8d0c842e02 | 8941cab54131638894c8852eb43129b6bfa84f54 | refs/heads/master | 2020-03-15T06:12:53.409283 | 2018-10-30T00:45:05 | 2018-10-30T00:45:05 | 132,002,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | from sikuli import *
import datetime
import string
import errorConst
import currentTime
import fileLog
import existsFunc
def ConfToolOpen():
fileLog.status = "ConfToolOpen"
App.open("C:\IDIS Solution Suite\Client\G2ProblemReporter.exe")
wait(5)
existsFunc.whileNotExsits_type("1524447598736.png","152444... | [
"leehunpill@idis.co.kr"
] | leehunpill@idis.co.kr |
951b8e0db40b2e770368adcadb51d50a6816d639 | 2fc7fab5bda38404588f066da9501cd53e0b3c12 | /app/posts/schemas.py | d83fcae42ed082caa940f8c66f653ca3f07b26e4 | [
"MIT"
] | permissive | UKnowWhoIm/FastAPI-Blog | 356c8a9e4ce846a43790da0d48e483d800d45b51 | e0f9653b6fdbe445148b6e0789da49515f3fd87d | refs/heads/main | 2023-02-03T10:44:23.240562 | 2020-12-21T03:35:50 | 2020-12-21T03:35:50 | 322,341,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | from datetime import datetime
from typing import Optional
from pydantic import BaseModel
class PostBase(BaseModel):
title: str
content: str
class PostCreate(PostBase):
pass
class Post(PostBase):
uid: int
time_stamp: datetime
author_uid: int
class Config:
orm_mode = True
cla... | [
"51323747+UKnowWhoIm@users.noreply.github.com"
] | 51323747+UKnowWhoIm@users.noreply.github.com |
7633c1f6a8146068706af993e1f18e6d41fd56be | b5ce03fad3c14b07e8ded6258716eb63a8ba1525 | /.history/app_20210908045601.py | 86d2750206c06c77130c8c846c3fa950a886a04d | [] | no_license | saraalmuraytib/FSND-Capstone-Project | 0d70058a080d3d91004e7d8bfbf38dfd3f9092fc | 4a18217c7aa83899cc3f134c6caa710a2521a8fd | refs/heads/main | 2023-07-28T01:20:03.838641 | 2021-09-10T01:33:26 | 2021-09-10T01:33:26 | 402,197,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,132 | py | '''
* General Specifications *
** Models will include at least…
* Two classes with primary keys at at least two attributes each
* [Optional but encouraged] One-to-many or many-to-many relationships between classes
** Endpoints will include at least…
* Two GET requests --> Get Subjects, Get Tutors based on selecte... | [
"sara.almuraytib@gmail.com"
] | sara.almuraytib@gmail.com |
1f7b7c84b648f677e41fb961d41caf32532e5770 | 369119ec54d3283fcea79f1c483ccf9d93269820 | /processDocx.py | c05e2914cf5edcc035898764b5ef1bdad77a86c2 | [] | no_license | fafargamer/BackendAI | fe2d08a92c78f5e6975b610b52b4e91b73ea97a2 | 1450a1c6774f29c6363e4030c4892c90dd9b0a2e | refs/heads/master | 2023-05-12T17:32:00.667538 | 2021-06-01T00:37:38 | 2021-06-01T00:37:38 | 370,993,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,597 | py | import urllib
import spacy
import requests
import string
import docx
import io
import numpy as np
from nltk.tokenize import RegexpTokenizer
from string import digits
from docx import Document #pip install python-docx
import PyPDF2 #pip install PyPDF2
# import StopWordRemoverFactory class
from Sastrawi.... | [
"68151749+fafargamer@users.noreply.github.com"
] | 68151749+fafargamer@users.noreply.github.com |
06acbf8dd5987d52c3b7c09269cc36980fb87b0a | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Projects/pyinstaller/build/lib/PyInstaller/hooks/hook-pyexcelerate.Writer.py | 7ba728e75020705ce49da0686e9c8f3f40fcd2a6 | [
"LicenseRef-scancode-other-permissive"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:4cc44e1f399e417bbb303f11e4f98452ec119f4f4a6763df9751bd47db29ba4e
size 679
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
a80b1f52ed5144212414ad8969adc627bb1ce950 | 17900afc933c192e6ce921c24fa0488a3ac98e6d | /reader_o_net.py | 5d3c1fbbab79101e8ba855b7f1068caa51c95dad | [] | no_license | JesseYang/MTCNN | 210eb9223eb03b8044a0d22b4372aad376e45ccd | 3ff697442181a16aad858433bcfee77a7012fd4a | refs/heads/master | 2021-01-21T08:20:55.354279 | 2018-01-02T14:28:07 | 2018-01-02T14:28:07 | 101,959,647 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,609 | py | import os, sys
import pdb
import pickle
import numpy as np
from scipy import misc
import random
import six
from six.moves import urllib, range
import copy
import logging
import cv2
from tensorpack import *
from cfgs.config import cfg
def get_img_list(text_file):
with open(text_file) as f:
content = f.read... | [
"jesse.yang1985@gmail.com"
] | jesse.yang1985@gmail.com |
786379d4c59694fe1c9f96f5d1cd36d9be7f5792 | 55540f3e86f1d5d86ef6b5d295a63518e274efe3 | /toolchain/riscv/Darwin/share/gdb/python/gdb/command/frame_filters.py | fd7498fd144731c099fc14fc38755f8fb21e2f32 | [
"Apache-2.0"
] | permissive | bouffalolab/bl_iot_sdk | bc5eaf036b70f8c65dd389439062b169f8d09daa | b90664de0bd4c1897a9f1f5d9e360a9631d38b34 | refs/heads/master | 2023-08-31T03:38:03.369853 | 2023-08-16T08:50:33 | 2023-08-18T09:13:27 | 307,347,250 | 244 | 101 | Apache-2.0 | 2023-08-28T06:29:02 | 2020-10-26T11:16:30 | C | UTF-8 | Python | false | false | 16,256 | py | # Frame-filter commands.
# Copyright (C) 2013-2020 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any late... | [
"jczhang@bouffalolab.com"
] | jczhang@bouffalolab.com |
9589822d526ae5e14200c84b3998d7219995c189 | 783f6e7f10bc1b78c5d79f67db2cc083afdbc651 | /flask_task/day01flask简介/预习/day41_flask(原来上课代码大家可以参考和上面的笔记)/app2.py | 2cf3f5177ce4a38b067c17b47313548207223ea2 | [] | no_license | GoodPhilipShi/flask_test | da72886f095a1af2588697966ea68069bb3e123c | e6399f1364adbc2c19e9395efe33fb3dd1262e99 | refs/heads/master | 2023-03-27T01:43:20.834175 | 2020-08-07T08:59:40 | 2020-08-07T08:59:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | from flask import Flask
# 创建flask对象
app = Flask(__name__)
app.config.from_pyfile('settings.py')
# 路由+视图函数
@app.route('/')
def hello_world(): # ---->视图函数
return 'HELLO hello world!hello kitty!'
@app.route('/abc',endpoint='abc1')
def show_abc():
return '<h1>abc</h1>'
# route就是将函数与add_url_rule进行了装饰
def sh... | [
"jasonboy0526@gmail.com"
] | jasonboy0526@gmail.com |
0111022712207e73557db11daa4c215b62aa68f5 | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /travelport/models/provider_reservation_status.py | e289bb70dc7b7eab923ad8cfe1af2b88069fce75 | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 2,532 | py | from __future__ import annotations
from dataclasses import dataclass, field
from xsdata.models.datatype import XmlDate, XmlDateTime
from travelport.models.type_result_message_1 import TypeResultMessage1
__NAMESPACE__ = "http://www.travelport.com/schema/universal_v52_0"
@dataclass
class ProviderReservationStatus:
... | [
"chris@komposta.net"
] | chris@komposta.net |
6d2d12eec92a60acc5c530dee543f444ce6775e6 | ef7a7397c1f3b07e48619c67f06016cdafd44ee0 | /services/resources/sion/form.py | 16e719e6aed2714e4c0e5f63526c0f8915207371 | [] | no_license | komangsu/sion-automation | a5ec4931fd8a08975e2d24d38b2723b0927a9b8f | 14087311c1045518ce9efcc67ac26642a682da48 | refs/heads/master | 2022-06-10T14:43:59.745367 | 2020-05-07T05:44:31 | 2020-05-07T05:44:31 | 261,810,790 | 0 | 0 | null | 2020-05-06T16:03:23 | 2020-05-06T16:03:22 | null | UTF-8 | Python | false | false | 496 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField, RadioField
from wtforms.validators import DataRequired, Length
class SionForm(FlaskForm):
nim = StringField('Nim',validators=[DataRequired(),Length(min=3,max=10)])
password = PasswordField('Password',validators=[DataRe... | [
"nyomanpradipta120@gmail.com"
] | nyomanpradipta120@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.