blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M โ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3ca57b11d92a7d2c2ffb779458d209bfc706cdd5 | d3f92b32093159ddb62822b0da166c06983846d1 | /Downloads/PycharmProjects/pyse11/python_base/import_1.py | 7833a6ce798e75885be32e1829bf08bf7acf6d3d | [] | no_license | zyall/demo | 73f4ad7f09e286df8d22b74e0d6c35ffd1884c5c | 053df3fb20040021e3da5254e148a66abf204f56 | refs/heads/temp | 2021-06-14T13:00:01.766615 | 2019-07-19T03:11:36 | 2019-07-19T03:11:36 | 197,181,715 | 0 | 0 | null | 2021-06-02T00:01:08 | 2019-07-16T11:33:18 | Python | UTF-8 | Python | false | false | 272 | py | # from selenium import webdriver
#ๆจก็ป
# import time
# from time import sleep,ctime
# from time import *
def sleep():
'''ๅฆๆ้ๅ๏ผไผๅ
่ฐ็จ่ชๅฎไน็ๆนๆณ'''
print("I am def sleep")
print(ctime())
sleep(1)
print(ctime())
# print(help(time))
| [
"1554754887@qq.com"
] | 1554754887@qq.com |
8018a99e055ad4843c27b7387124fad14d59ae97 | ac4c53256a5e78553bf6d58f2644715a097fe855 | /python/math_axplusbyplusczequald.py | 37d16088cedc5cb4c85c9a331e3f6746fd5bc2b9 | [] | no_license | kalyancheerla/sample-codes | c9868cc2f35f1f3a5836a855c5f0096855a620d2 | b6719c0717ebdea5b2c0974789ec1d180fa7dc10 | refs/heads/master | 2023-08-23T04:00:16.695031 | 2021-09-23T04:10:54 | 2021-09-23T04:10:54 | 227,298,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | #!/bin/env python3
import sys
def main():
# lets assume ax+by+cz=d equation
# a,b,c,d as +ve integer constants
# x, y, z are +ve integers
# for known values of a,b,c,d
# find all possible values of x y & z.
a,b,c,d = map(int, input().split())
# print(a, b, c, d)
# lets find range of x
... | [
""
] | |
534ad72b7cc4d76225e99a6607852a2b134d1119 | c5c0c9200f1d8f0f66950a00f18ebd690f678cb8 | /.c9/metadata/environment/todo/apps.py | 3b7a661c7db22b18b1f31f49281a09eb53c8c81a | [] | no_license | Lemoenskil/django_todo | de882e0926eeffbaa1488452b845dd6979c209aa | cc2435513ad5af284e045120e8008c9bc3d8cb2e | refs/heads/master | 2022-12-13T06:48:11.144994 | 2021-04-27T19:02:12 | 2021-04-27T19:02:12 | 245,660,781 | 0 | 0 | null | 2022-12-08T03:45:32 | 2020-03-07T15:49:37 | Python | UTF-8 | Python | false | false | 414 | py | {"filter":false,"title":"apps.py","tooltip":"/todo/apps.py","undoManager":{"mark":-1,"position":-1,"stack":[]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":0,"column":0},"end":{"row":0,"column":0},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"f... | [
"ubuntu@ip-172-31-38-9.eu-central-1.compute.internal"
] | ubuntu@ip-172-31-38-9.eu-central-1.compute.internal |
377d56b008a18aee612969c8d1d865f1fabb4bc0 | 3187cb009bb5134b3fddd0c0cdf45e944c5715de | /tokenizer/migrations/0008_auto_20200720_1958.py | abc79fab13fdcee46170e056a9b36c6d0ae1572a | [] | no_license | Jiyoonki/annotator | 978dfb16e0122b42760da8df292514551458ad7f | 9472b2d58043e7ca61b1e622ec99f6ef62eee0a8 | refs/heads/master | 2022-11-21T13:17:41.244333 | 2020-07-30T02:19:02 | 2020-07-30T02:19:02 | 283,648,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | # Generated by Django 3.0.3 on 2020-07-20 10:58
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tokenizer', '0007_auto_20200720_1955'),
]
operations = [
migrations.RenameField(
model_name='keywords',
old_name='code',
... | [
"kjiyoon1@gmail.com"
] | kjiyoon1@gmail.com |
b08d1c7b5e05781d77b4702a12bf846f79a46088 | 2fc8c742ff48219e5866667767b5fb5e4dfd5c88 | /alabb/kรคllkod/karta.py | b09c2236acf0dd39c71a63289c081c5923602672 | [] | no_license | fabianrevilla/tilda | 41cd7ed4043a595d3ade38f356e920514050d550 | 19d5b7ccad58e9738e35bf6b3b7268d3eb2cf561 | refs/heads/master | 2020-09-08T23:04:02.884057 | 2019-11-12T17:34:41 | 2019-11-12T17:34:41 | 221,269,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,710 | py | island_map="""
---------------------------------------------------------------------------------------------------------------------------
. ๐
... | [
"fabianrevilla95@gmail.com"
] | fabianrevilla95@gmail.com |
53f105e9a16c218d5698c35ab3d888d4d9d69c58 | 9baa9f1bedf7bc973f26ab37c9b3046824b80ca7 | /venv-bck/bin/easy_install | f306fde1138489c4a226dd5e0a062fb6a8fad8e7 | [] | no_license | shakthydoss/suriyan | 58774fc5de1de0a9f9975c2ee3a98900e0a5dff4 | 8e39eb2e65cc6c6551fc165b422b46d598cc54b8 | refs/heads/master | 2020-04-12T05:36:59.957153 | 2017-01-08T06:12:13 | 2017-01-08T06:12:13 | 59,631,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | #!/Users/saksekar/suriyan/venv/bin/python
# -*- coding: utf-8 -*-
import sys
import re
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"shakthydoss@gmail.com"
] | shakthydoss@gmail.com | |
70fa6242536c1c1bcbeeaaff1057f7626d0145e1 | 6d0a9262618334516cce2f1a59e41cb02e7280c4 | /dist_ml/local_test.py | ae636da75a247a772f53fcd6a6ec4802df263723 | [
"Apache-2.0"
] | permissive | rzhu3/ray_dist_ml | 2bdc7b7c75d35d7eae5a981ff6cdc5f3a159f0a4 | a576810922a9de763af4df62f93e2f74272f628a | refs/heads/master | 2020-03-28T11:34:08.530568 | 2018-09-11T02:53:06 | 2018-09-11T02:53:06 | 148,226,974 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,449 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import argparse
import time
import datetime
import logging
import tensorflow as tf
import numpy as np
from dist_ml.sparse_nnpca import SparsePCA
# from dist_ml.sparse_classifier import SparseClassifier
logg... | [
"rui.tyler.zhu@gmail.com"
] | rui.tyler.zhu@gmail.com |
e739400744b2ad5200541f59322b788dbfd44032 | 34a81b1c39a1c5200342cb63959d935c002b2c19 | /PYTHON/dataModels.py | 64b0feddfb3b63dddd3833166dc8728745aa1e00 | [] | no_license | coretx09/PW-CS50 | 69921a746d819c258a78ae2e77cc487fc25b0727 | 799c859efa0a29b23cb1f3dea6a257c1edc4267a | refs/heads/master | 2023-07-17T04:15:44.671855 | 2021-08-09T09:38:46 | 2021-08-09T09:38:46 | 316,319,773 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,473 | py | # SEQUENCES
# COLLECTIONS
import collections
from random import choice
# collections.namedtuple to construct a simple class to represent ---> individual cards
Card = collections.namedtuple('Card', ['rank', 'suit']) # Card: class
print(Card.__doc__)
beer_card = Card(4, 'moi') # beer_card: class instance
prin... | [
"ngampiosauvet@gmail.com"
] | ngampiosauvet@gmail.com |
311069543284b2bc146f63a4419a6b1c1c2286b8 | 08607218396a0269a90e8b4e6d099a5e99e39a8b | /database/schemes/easyTest/script/testCase/Uๅๅ้กน็ฎ/Uๅๅ็ฎก็็ซฏ/็ซ็น่ฎพ็ฝฎ/ๅๆ
้พๆฅ/worm_1482819508/ๅๆ
้พๆฅ.py | a743fe0cfcbaa179d5cb2864b7ab079e770d7400 | [
"MIT"
] | permissive | TonnaMajesty/test | 4a07297557669f98eeb9f94b177a02a4af6f1af0 | 68b24d1f3e8b4d6154c9d896a7fa3e2f99b49a6f | refs/heads/master | 2021-01-19T22:52:18.309061 | 2017-03-06T10:51:05 | 2017-03-06T10:51:05 | 83,779,681 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,227 | py | # coding=utf-8
from time import sleep, time
from SRC.common.decorator import codeException_dec
from SRC.unittest.case import TestCase
from script.common import utils
class EasyCase(TestCase):
def __init__(self, webDriver, paramsList):
# ่ฏทไธ่ฆไฟฎๆน่ฏฅๆนๆณ
super(EasyCase, self).__init__(webDriver, paramsList)
@codeExcep... | [
"1367441805@qq.com"
] | 1367441805@qq.com |
2ac30f335a6c1d4abe97c7e865c42caf18562513 | 40be1809a4421276c52b5e707dae6eca195947b2 | /svc_twitter_old.py | f56b432aec785be2d51f17170504fb5254de11bd | [] | no_license | Selenestica/apex-legends-armory | a2c16480a9133d8c09e9ff56e0f2abfe79f44b2f | 8c42102a2ef7b7fe03e8830d40c52a09817fbc09 | refs/heads/master | 2023-03-30T04:06:02.629010 | 2021-04-01T10:35:39 | 2021-04-01T10:35:39 | 263,827,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | import re
import requests
from loguru import logger
from sqlalchemy import *
import twint
class SVC_Twitter:
@staticmethod
def cmd_twitter(phrase, metadata, session):
# phrase to be two parts: search by (keyword or username), the search argument
search_by = phrase.split(", ")[0]
keywor... | [
"53917177+Selenestica@users.noreply.github.com"
] | 53917177+Selenestica@users.noreply.github.com |
3967764432938a4044f5f34273540736100967e3 | 67692cd6c7948874a06aa24381a070cd8e1ce251 | /Challenge 8 v3 For While Mean Median.py | f442b2cb6c4b0180912f56be3fda8fb5ff93e940 | [] | no_license | kawmaiparis/Completed-Programs | c8f557df246d6a576791c705f4a11274d208b133 | f8a292b7b2ad78c36332e9576ad2c156d799563e | refs/heads/master | 2021-01-11T04:14:28.547336 | 2016-10-23T12:37:01 | 2016-10-23T12:37:01 | 71,226,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,586 | py | import statistics
import math
import time
mark = []
run = "yesh"
while "y" in run:
try:
print("1.For\n2.While")
option = input("")
print("")
if option == "1":
position = 1
n = input("Number of scores you... | [
"paris.kawmai@gmail.com"
] | paris.kawmai@gmail.com |
1299c9e41ff370f25e6bbbead09c4555cb0e18c4 | 07831f9929568b8a3671cb9a0d2ef3d9b7dc2c08 | /test/regression/NOX_QS/NOX_QS_Newton_NoPrec_np1/NOX_QS_Newton_NoPrec.py | 7c988343fd7957acd2aaffb5a5751fca9a86c90a | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | oldninja/peridigm | 2743ea5501138342f9baaf5182c0befc33da4d9b | ac49e53565d0130a3cbeda85e6bc6851ff68705b | refs/heads/master | 2021-01-05T01:46:03.876180 | 2020-11-25T17:23:04 | 2020-11-25T17:23:04 | 245,474,842 | 0 | 0 | NOASSERTION | 2020-11-08T08:08:09 | 2020-03-06T17:03:04 | null | UTF-8 | Python | false | false | 1,546 | py | #! /usr/bin/env python
import sys
import os
import re
import glob
from subprocess import Popen
test_dir = "NOX_QS/NOX_QS_Newton_NoPrec_np1"
base_name = "NOX_QS_Newton_NoPrec"
if __name__ == "__main__":
result = 0
# log file will be dumped if verbose option is given
verbose = False
if "-verbose" in ... | [
"djlittl@sandia.gov"
] | djlittl@sandia.gov |
6d5d2be5a463e58fc1862feabe2bcc443fce727b | f07391f481150ad07cd5652a7b09cf1cd60d345f | /cmsplugin_container/cms_plugins.py | ee489a8a5b52902cedc985968117762177b4c1a3 | [] | no_license | django-cms-plugins/django-cmsplugin-container | 39dc956d1b7aa29132c0c841aa1d187da779e568 | c35d7111a6bd2c73de3d5df6a673497214df8e76 | refs/heads/master | 2021-01-21T15:07:12.658207 | 2013-07-23T14:56:19 | 2013-07-23T14:56:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,735 | py | #-*- coding: utf-8 -*-
from django.utils.translation import ugettext_lazy as _
from cms.plugin_pool import plugin_pool
from cms.plugin_base import CMSPluginBase
from cms.models import CMSPlugin
from cmsplugin_container.models import Container, Grid
from cmsplugin_container.forms import ContainerForm
class ContainerPl... | [
"jacob.rief@gmail.com"
] | jacob.rief@gmail.com |
bd9c708c01a9274f8594b9dad16bc2006de86d43 | d5e605e79afa760c87dfbb739af15d1cdd762310 | /grupo08/simulador/cliente_all.py~ | 1113d3079e08ce415c0fbe8253e0a28757a8ee04 | [] | no_license | francianespessanha/WebServices | 5bd997831dbf72db5abda0804df00781a84a6aa7 | 011fdda80863126d9f9b4c2cf107173e7b592e5e | refs/heads/master | 2021-01-20T19:42:09.852426 | 2013-05-03T18:29:56 | 2013-05-03T18:29:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | #!/usr/bin/env python
from SOAPpy import SOAPProxy
# conectando diretamente
proxy = SOAPProxy("http://localhost:8001")
print str(proxy.consultaProduto("001"))
print str(proxy.consultarCliente("001"))
print str(proxy.consultarFuncionario("001"))
| [
"estela.paulino@gmail.com"
] | estela.paulino@gmail.com | |
616de202a514fdbd9bd3d224e044df7efee8bebf | 587611b9259834e692537ccfceeb7ceecce0f654 | /exercism/python/ghost-gobble-arcade-game/arcade_game.py | a938a4ce369abbe7cba5db979d6f9ae16659bc8b | [] | no_license | mtykhenko/sandbox | c1e10dc08f1e1fea5f6ceb4287af89429c1b532a | 32c7e32de275af831e5fd1c2fe6388fd80c06251 | refs/heads/master | 2023-01-23T00:36:35.049356 | 2023-01-10T01:39:06 | 2023-01-10T01:39:06 | 107,407,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,760 | py | """Functions for implementing the rules of the classic arcade game Pac-Man."""
def eat_ghost(power_pellet_active, touching_ghost):
"""Verify that Pac-Man can eat a ghost if he is empowered by a power pellet.
:param power_pellet_active: bool - does the player have an active power pellet?
:param touching_gh... | [
"maksym.tykhenko@gmail.com"
] | maksym.tykhenko@gmail.com |
0dfa3ad8b1db8c484c528310797f0ec686504412 | b21e5af64331f5571233c5712fac413df8dff312 | /CorePython/io/files.py | c3418de0206b960b25259d815023d69dffc26d93 | [] | no_license | vipinparambil/python_study | 65942366132e42d4f6223f4d8ee190be00ea1a75 | c4bf56b66f765eb82a320cb9c1bd2fd54ff21f31 | refs/heads/master | 2022-06-09T12:26:27.475978 | 2020-05-08T17:34:52 | 2020-05-08T17:34:52 | 258,800,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | import sys
file = open("wasteland.txt", mode="rt", encoding="utf-8")
try:
for line in file:
sys.stdout.write(line)
finally:
file.close()
# with block
with open("wasteland.txt", mode="rt", encoding="utf-8") as f:
for line in f:
sys.stdout.write(line.strip())
| [
"vipinparambil@gmail.com"
] | vipinparambil@gmail.com |
47db17de360ac2b63bb8ee45b3ebe73eafc76d61 | d5929d2076af03f824a68a3f02f90f6dbd7671c3 | /Documentos/Python/Diagramacion/Ejercicios/2/7 2.py | 5ab323e70a90e5a8cbb8d6cbcd839bba65e3c527 | [] | no_license | xcabezaderadiox/EDD_Paradigmas | 5603822e06cd5edb0955dacbfbaedaf1449092dc | 5409883fb6aefb30834fad39a8e59d3d943d823f | refs/heads/master | 2021-08-15T11:42:52.935451 | 2017-11-17T20:11:11 | 2017-11-17T20:11:11 | 108,488,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,821 | py | print ('BIENVENID@ ALUMN@')
print ('Estas son las siguientes notas en Analisis: ')
print ('Nota examen')
NOTA_EXAMEN = int(input())
print ('TP NUMERO 1')
TP1 = int(input())
print ('TP NUMERO 2')
TP2 = int(input())
print ('TP NUMERO 3')
TP3 = int(input())
print ('Promedio de TPS')
PROMEDIO_DE_TPS = (TP1 + TP2 + TP3) / ... | [
"christianmontesdeoca89@yahoo.com.ar"
] | christianmontesdeoca89@yahoo.com.ar |
a5865745f7d3f7da98361b21a9792d2a879fc5a2 | 5496337758c4f908695445d5025dd11c8fe4bd71 | /Laba 2.py | 4c1d38fd4948b84ed3c6ee7bff34f34bab4e2ccd | [] | no_license | Chakazula123/Math-Modeling_10_class | dec8dd95dea9ec2d1b2a393292e03b69643001a6 | ebdffb8b19d4eedeec707191424b5ab7c1e02bfb | refs/heads/master | 2020-08-08T01:56:26.313937 | 2019-10-22T15:48:42 | 2019-10-22T15:48:42 | 213,667,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | print('--------ะะฐะดะฐะฝะธะต 2---------')
import my_module as mc
import numpy as np
import math as mt
v=((mc.g)*(mc.h)*(np.tan(mc.b))**2/(2*(np.cos(mc.a))**2*(1-(np.tan(mc.b))*(np.tan(mc.a)))))**0.5
print(v) | [
"noreply@github.com"
] | noreply@github.com |
a6b94171e773217e8d86aa4794a7f531b936d445 | 13562737273dc553480be2c42a1575f710bbecac | /mobilenet_fpn/lib/nets/mobilenet_v2.py | fc9c76d422bda66bd4c953524da51d6aca80f5d5 | [] | no_license | violet2020/TF20200104 | 6cee49e3cdd156871f31e78a3fcc1880826dd7d5 | 134c57137b3b2da791026340eb9f260fac1b9f77 | refs/heads/master | 2020-12-04T10:34:06.821016 | 2020-01-13T10:28:50 | 2020-01-13T10:28:50 | 231,728,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,042 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"noreply@github.com"
] | noreply@github.com |
edd48cf5a03c972cc97900de46d36464eea29caf | b44445cc8afde84686167affec9825b381caee8d | /core/admin.py | 481037bfcfd7d076e75d6f07231595127358de1b | [] | no_license | RodrigoBeltran/PaginaWebFinalizada | 974df52fa0144a2ad14ef9e2bd8b845a7fff53f6 | d616d554e875e8a305ea0e37bb070cd70570e098 | refs/heads/master | 2023-06-23T20:30:39.090223 | 2021-07-10T01:05:55 | 2021-07-10T01:05:55 | 384,579,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | from django.contrib import admin
from .models import Distribuidor, GPU, Juegos, Rams, Gabinete, Procesador
# Register your models here.
admin.site.register(Distribuidor)
admin.site.register(Rams)
admin.site.register(Juegos)
admin.site.register(Gabinete)
admin.site.register(Procesador)
admin.site.register(GPU)
| [
"ma.valles@duocuc.cl"
] | ma.valles@duocuc.cl |
0282d4a368747ab0860a64a8100fceaaf0f6a852 | 342d01d22f453ef7cb6fea382da0071d71c418e4 | /moped-modeling-py/src/descutils.py | f0631d91e6d03600f1f6801636ae25b49e922a5c | [] | no_license | kanster/moped | 1ddf78cb2aa939e788fe0c0b5974797f58f46b87 | f8d74b6680915eca73265be656d72e7d346e1aa0 | refs/heads/master | 2021-01-19T04:25:16.861856 | 2016-08-01T02:08:29 | 2016-08-01T02:08:29 | 64,627,677 | 13 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,264 | py | #!/usr/bin/env python
################################################################################
#
# descutils.py: common feature utilities to apply on images
#
# Copyright: Carnegie Mellon University
# Author: Alvaro Collet (acollet@c... | [
"vandeweg@users.noreply.github.com"
] | vandeweg@users.noreply.github.com |
953ebf3bf301af11ff0e2a8d80fc3624fcfc21f7 | 13a37b1137519b7b34e9754836c3aac15fb514c6 | /mysrc/using_sys.py | 2f61d47e18a1ba5ceb7e3b1f22645275df0ebafc | [] | no_license | puma-wong/Python-pool | 303ff16cbbfa7a708deba9f4a785c4da16051948 | df8f2b9a26ee88a1042d175d17351f6483561576 | refs/heads/master | 2021-11-29T12:00:08.874185 | 2021-11-09T14:50:38 | 2021-11-09T14:50:38 | 3,459,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | import sys
print 'The command line arguments are:'
for i in sys.argv:
print i
print '\nThe PYTHONPATH is', sys.path, '\n'
| [
"weibiao.h@gmail.com"
] | weibiao.h@gmail.com |
c3a7c950f9a23512bad117ac3626ffae1b2589b3 | 87ca11415d7d0d72e2dd7a98e8c89410236d6550 | /shoutVS.py | 4dd265da5879e6ee2239f71768bbeeb4428b45dd | [] | no_license | dom143/Python- | a960ee88d2a9f8afea994cea3a9641330510fc84 | 9c2ef0bde2f6eff82efc550d23297b0796e1b30f | refs/heads/master | 2022-08-20T09:49:45.636808 | 2020-05-26T15:29:12 | 2020-05-26T15:29:12 | 267,081,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,250 | py | a=[]
x=0
while True :
print('____________________\n\n เธฃเนเธฒเธเธฃเธญเธเนเธเนเธฒเธเธญเธเธเธญเธกเธเธญเธก\n____________________\n')
print('1) Nike[n]\n2) Adidas[a]\n3) Show Pay[s]\n4) Exit[x]')
brand=(input(" -> Select Brand : "))
brand=brand.lower()
while brand=='n':
print("\n*********** Nike ***********\n\n 1)... | [
"noreply@github.com"
] | noreply@github.com |
49c9b831d7494a17b8b9e2e2a8847fe9fb7f86e6 | f928edfc876d715159521589a22485d9de45cc89 | /import_hourly_csv_to_mariadb_09.py | 666d2da36d65dde7c7db69c75b28ea5fa5820375 | [] | no_license | guitar79/AirKorea_Python | cd06432740e0b292ca6ad3cde7144717967f5190 | 8077eaa0b6c444d575a25c7f7b992477a36c8294 | refs/heads/master | 2020-08-05T01:05:47.209200 | 2019-10-28T03:36:14 | 2019-10-28T03:36:14 | 212,342,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,349 | py | '''
-*- coding: utf-8 -*-
Auther guitar79@naver.com
'''
#import numpy as np
import os
import pymysql
from datetime import datetime
#import warning
#import time
start_time=str(datetime.now())
#mariaDB info
db_host = '10.114.0.121'
db_user = 'modis'
db_pass = 'rudrlrhkgkrrh'
db_name = 'AirKorea'
tb_name = 'hourly_vc... | [
"noreply@github.com"
] | noreply@github.com |
ed312867880b8b41459e2cbb72aa46b1af2dc936 | 550e34ae9a58866e18572a1a06f4360f9697513f | /venv/bin/pip | 2cf4d01fd52eadfadd74aa20016d08a86bc6f956 | [] | no_license | ak89224/Python_Projects | c31bb50b97a10f9c3a74b8d66d396de55848b6bb | 5669a89ac73895f1cdb72928e9730dbae11cfb32 | refs/heads/master | 2020-06-19T12:51:41.858940 | 2019-07-13T22:49:36 | 2019-07-13T22:49:36 | 196,712,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | #!/home/shah/PycharmProjects/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"ak89224@gmail.com"
] | ak89224@gmail.com | |
ae1e8444b7e83511169be63c369f1ce2d53da1bd | f9462f3768fa058bd895a56b151da694664ce588 | /examples/713_no-op.py | 1a3dcf7281703f179d38d40bd7d138b5afd82c90 | [
"MIT"
] | permissive | ryanpennings/workshop_swinburne_2021 | 16a9a7e2c7134832f8f714b7b430376f1b67dfb2 | 820ef4e36e73ac950f40e1846739087180af2e1c | refs/heads/main | 2023-05-31T16:35:16.535310 | 2021-06-17T06:24:51 | 2021-06-17T06:24:51 | 377,373,107 | 0 | 0 | MIT | 2021-06-17T06:24:51 | 2021-06-16T04:45:02 | null | UTF-8 | Python | false | false | 418 | py | import compas_rrc as rrc
if __name__ == '__main__':
# Create Ros Client
ros = rrc.RosClient()
ros.run()
# Create ABB Client
abb = rrc.AbbClient(ros, '/rob1')
print('Connected.')
# No operation
done = abb.send_and_wait(rrc.Noop())
# Print feedback
print('Feedback = ', done)... | [
"casas@arch.ethz.ch"
] | casas@arch.ethz.ch |
c5d90f334d2ad652397bb2e7363d56a969035396 | 5dedc0312eb49b0a58ae381f4e1bddb1cdee9aea | /sk_jieba.py | 06e608e97285b1ec52e18eb676840b473a80f541 | [] | no_license | matt-bentley/Chinese-Text-Classification | b983a1825966c1ad084694ab3073bf3bdd337c51 | 696df0dd4fe93601c1a73a50b1b294edf4c12a00 | refs/heads/master | 2020-04-20T13:58:03.474266 | 2019-02-02T22:17:08 | 2019-02-02T22:17:08 | 168,884,279 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,771 | py | import data_helpers
from time import time
import sys
import os
import numpy as np
import scipy.sparse as sp
import matplotlib.pyplot as plt
import jieba
import jieba.posseg as pseg
from sklearn import feature_extraction, model_selection, preprocessing, linear_model, naive_bayes, metrics, svm
from sklearn.feature_ext... | [
"matthew_j_bentley@hotmail.com"
] | matthew_j_bentley@hotmail.com |
0c3cedf2685c67f2eb9d33bc6c35662dcaa91c7a | fb408595c1edee0be293302c6d7bfc0c77d37c46 | /CODEFORCE/AprilFools2019/d.py | 432b7019cabe3980ec625ddae3e2873b4e70eb90 | [] | no_license | as950118/Algorithm | 39ad25519fd0e42b90ddf3797a61239862ad79b5 | 739a7d4b569057cdb6b6faa74254512b83d02bb1 | refs/heads/master | 2023-07-21T12:38:00.653579 | 2023-07-19T06:57:17 | 2023-07-19T06:57:17 | 125,176,176 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | input()
input()
print(4)
| [
"na_qa@icloud.com"
] | na_qa@icloud.com |
817e5a809cd9b42f85bc7b98f88cae0525ecf649 | 4bd555bc662b8182a2e7644976bfdb00ed5e1ebe | /PythonistaAppTemplate/PythonistaKit.framework/pylib/zipfile.py | 9a21f7db76f5b8bd0c14c61af5223034a5ba37a7 | [] | no_license | fhelmli/homeNOWG2 | a103df1ef97194dec9501dbda87ec1f7c111fb4a | e794fd87b296544542fd9dc7ac94c981c6312419 | refs/heads/master | 2020-04-04T13:40:20.417769 | 2019-01-30T21:41:04 | 2019-01-30T21:41:04 | 155,970,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65,550 | py | #\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
... | [
"tberk@gmx.at"
] | tberk@gmx.at |
daf1da1a639961efd5aa81fb41791833c8b2eb8d | 6b5a3e8de615791442bb0a5055edbbed3b7a858a | /py_stealth/config.py | 43f18a2baf9f5526462a56c3667cb8dadedbad06 | [] | no_license | cesarsl/ultimate-uo-trainer | 950b9a8aedcc3e7e8ed818477a726145c6cb2910 | 25f68f4c1f3a68eb80060b3e912791287ee50b09 | refs/heads/master | 2020-11-28T23:44:37.246663 | 2020-03-24T15:33:37 | 2020-03-24T15:33:37 | 229,952,033 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py |
STEALTH_CODEC = 'UTF_16LE'
SCRIPT_CODEC = 'UTF8' # your files encoding. py2 only
HOST = 'localhost'
SOCK_TIMEOUT = 10
MSG_TIMEOUT = 10
DEBUG = False
ERROR_FILTER = False
| [
"cesarsl@gmail.com"
] | cesarsl@gmail.com |
4d2f3d3d5ec4f52d5551c3eedac05787f4596acb | 3df0b8fc28854e3e5a4b048eecc74ee65704444b | /Tool/util.py | efddd38b982f036059d1c3f947fb3ae7bcff3471 | [] | no_license | Bright-Sheep/Hack4TreeSite | 7c711c34adbfaad32a7c5a63955d63f672c5d9d2 | ca795475da09fcd2e5135268a1049438f1574f69 | refs/heads/master | 2023-06-03T08:34:52.431941 | 2021-06-17T13:39:51 | 2021-06-17T13:39:51 | 376,833,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | import json
from shapely.geometry import Point
from shapely.geometry.polygon import Polygon
from shapely.geometry.multipolygon import MultiPolygon
def coordinates_in_city(lat,lon,city="Marseille"):
# Les coordonnรฉes sont en (lat,lon) mais les limites trouvรฉes sont en (lon,lat)
point = Point(lon,lat)
with open('Tool... | [
"agpr95@yahoo.com"
] | agpr95@yahoo.com |
4feca85e222a9f2924ecd5bab182e3cbc059a4d3 | 6a278cce5af0cdb4ac07d6e980f9247f199f110b | /gui_VMWARE/startstop.py | 3f08affd6985e50860a7f2ba7460b3330d67afe1 | [] | no_license | donatiri/gui_biowolf | 5d65c7e1a1194e636537c1ac29d841133fb7369b | 0691bff43f30ceeefa1a728a60297a64e1066b5c | refs/heads/main | 2023-07-21T14:53:31.167894 | 2021-09-02T09:22:55 | 2021-09-02T09:22:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,777 | py | from PyQt4.QtCore import *
from PyQt4 import QtGui
import struct
import time
import datetime
import tables
from tables import *
from enum import Enum
from queue import Queue
import libusb1
import usb1
import ctypes
from ctypes import byref, create_string_buffer, c_int, sizeof, POINTER, \
cast, c_uint8, c_uint16, c... | [
"donatiriccardo94@gmail.com"
] | donatiriccardo94@gmail.com |
1b7eed8f744ea11802a5df7be117bebf014e3e99 | 7f08abad82eebf29fbe5d8ab2761645d71089c53 | /web-apps/helloworld/helloworld.py | a9ea7fa6f32b34ec9c06cb9ce0574003ec084e99 | [] | no_license | leenamurgai/cs253-web-app-eng | 6f1ad5d7c64fbce84e2555d2af4d7c0830cff476 | d219923e6af93f42a557c6850f705b574a31fc89 | refs/heads/master | 2020-03-25T00:53:29.691420 | 2018-08-31T23:04:13 | 2018-08-31T23:04:13 | 143,210,829 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,706 | py | import webapp2
from valid_date import valid_day
from valid_date import valid_month
from valid_date import valid_year
from html_escape import escape_html
form="""
<form method="post">
What is your birthday?
<br>
<label> Day <input type="text" name="day" value="%(day)s"> </label>
<label> Month <inp... | [
"code@leenamurgai.co.uk"
] | code@leenamurgai.co.uk |
97f031e8f649387e73049f799030bcf50f8486b3 | c3c4fc370de0d2c4938a1ef2afb50b0432790b60 | /fiend/urls.py | 16177af9d9ef32150c48faf8ac9ed093a63e9c67 | [] | no_license | mikezentz/fiend | 210a47b812220186c83ab9e21058f7c08626ef43 | d58ed107fc31d7fef65fc84a9621357e3224404e | refs/heads/master | 2022-12-11T15:06:44.325473 | 2018-12-07T01:59:08 | 2018-12-07T01:59:08 | 156,812,316 | 0 | 0 | null | 2021-06-10T21:18:49 | 2018-11-09T04:56:54 | JavaScript | UTF-8 | Python | false | false | 1,014 | py | """fiend 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-based v... | [
"mike@pop-os.localdomain"
] | mike@pop-os.localdomain |
105a9117038b30a098e30547683df67d15c627b8 | dd07d32524bd1cc021537cbc0472a39f68a3858d | /handlers/chat_list.py | 88693c2b1cf71f67b171420cc7cbe20e3366e9d3 | [] | no_license | maxnoodles/websockt_chat_robot | 2e23e5c7b371980f6a51d849a76b5f24dec21529 | 35d52b3ebacd8c8b8775ec842bf60b46067494e8 | refs/heads/master | 2022-11-13T02:38:36.433764 | 2020-06-18T03:51:03 | 2020-06-18T03:51:03 | 256,470,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,744 | py | # -*- coding:utf-8 -*-
#
# Author: chenjiaxin
# Date: 2020-04-13
from copy import deepcopy
from const import CONST
from orm import mongo_op
from util.chat_util import join_key
from handlers.comm import MongoHandlerMixin, BaseHandler
class ChatListHandler(BaseHandler, MongoHandlerMixin):
def get(self):
s... | [
"chenjiaxin@touchdata.io"
] | chenjiaxin@touchdata.io |
4c625a2df47fccd5e8dcf32fa957a588f590cb3a | 4cc368e591ee18067609f5a493f9570ea67dc0ad | /web_analytics_project/mainapp/models.py | 830be3a3fcf6b88bb5bbe556d26b9e4030d67a00 | [] | no_license | 253Youssef/WebAnalytics-Project | 716384886ce069c74b2230a8bf2932c7b6085851 | c6177eaf57eb8b0436e1564db1dc9eb113213906 | refs/heads/master | 2020-05-18T18:36:39.222466 | 2019-05-17T23:03:15 | 2019-05-17T23:03:15 | 184,590,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
# Create your models here.
class Post(models.Model):
title = models.CharField(max_length=100)
content = models.TextField()
date_posted = models.DateTimeField(default=... | [
"253youssefayman@gmail.com"
] | 253youssefayman@gmail.com |
1113dcdfb3bc80d5d421dc9b0dbc0fdd9b13f093 | 8c6cf0541b861714707f956e987438690568bc2c | /valid_password.py | 1a79af933f1e76ac88be7f5ec7551dc281b9f1b5 | [] | no_license | windellevega/stackleague | 8ed3029171ab95aefe410fb5ab0bf6e1aa205b9a | 54f7a020b74065bdcd6d314d358ddb488f66d07e | refs/heads/master | 2023-06-21T01:05:37.309207 | 2021-07-23T01:49:47 | 2021-07-23T01:49:47 | 350,924,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | import math
import itertools
import re
import operator
import collections
def validate(password):
if len(password) < 8:
return False
if not any(char.islower() for char in password):
return False
if not any(char.isupper() for char in password):
return False
if any(char == ' ' or ... | [
"windellevega@gmail.com"
] | windellevega@gmail.com |
39488c26270cabe7fb0720f02e7f86e06baa8868 | db5264994305e8c926f89cb456f33bd3a4d64f76 | /Sklep zielarski/orders/migrations/0001_initial.py | c21bd1168a45aeac59c66f7e35c2afffd875dd47 | [] | no_license | marcinpelszyk/Django | 7842e20d5e8b213c4cd42c421c1db9ab7d5f01d5 | aff2b9bd20e978a22a4a98994bf8424892d3c82f | refs/heads/main | 2023-05-01T19:20:37.267010 | 2021-05-18T17:51:53 | 2021-05-18T17:51:53 | 356,532,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,201 | py | # Generated by Django 3.1.7 on 2021-05-08 19:15
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),
('stor... | [
"marcin.pelszyk90@gmail.com"
] | marcin.pelszyk90@gmail.com |
5368e10c586e4215b5c8e3f625e26107c9cdac63 | 5b97095801c59098da69a97662f644a54e7e7be6 | /CS50-web-programming-python-django/projects/commerce/auctions/migrations/0024_auto_20201129_2144.py | 77a1a3fb12864ebc63f80691a862ddd8e02b63ca | [] | no_license | markmisener/harvardx-courses | 40f570c0c0557f8e2bcd72e32f34a2790d84d918 | 77e2dd63fda68aa09fc5ceb89d9d0cde11ae0885 | refs/heads/main | 2023-01-29T00:09:58.105746 | 2020-12-13T05:22:25 | 2020-12-13T05:22:25 | 315,108,443 | 0 | 0 | null | 2020-12-13T05:19:59 | 2020-11-22T18:46:56 | Python | UTF-8 | Python | false | false | 818 | py | # Generated by Django 3.1.3 on 2020-11-29 21:44
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('auctions', '0023_listing_active'),
]
operations = [
migrations.AddField(
... | [
"markmisener@gmail.com"
] | markmisener@gmail.com |
e12c18b70fd84928cbc1573546c00e0a3f3c9f0f | d3c9301df20c32ac0a985008a0bbb64b7ffdda54 | /pyredis/scen/pf.py | d369ed20b7c95c5206eb9afdd4f3c0fdcec3eb49 | [] | no_license | tianyuzhiyou/wan-pyredis | 3f66657ec4baee95fedb15d6a03384b8dc1f14ad | 3c175a03601f7a55efe3aabedd252f59838a6d77 | refs/heads/master | 2023-06-04T22:17:07.778354 | 2021-06-23T07:03:48 | 2021-06-23T07:03:48 | 379,200,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,776 | py | # -*- coding: utf-8 -*-
import hashlib
class PfCache(object):
def __init__(self, cache=None):
"""
@desc ๅฐ่ฃ
redis็HyperLoglog็ปๆ๏ผ
่ฟๆฏๆฏไธ็งๆฆ็ๆฐๆฎ็ปๆ๏ผ
ๅช่ฝ็จๅจ้่ฆ็ป่ฎกไธ้ฃไน็ฒพ็กฎ็็ปๆ,
ๆฏๅฆ๏ผไธ็ฏๆ็ซ ็ๆฅ็ไธ้ๅคไบบๆฐ
:param cache:
"""
self._client = cache
def _get_signature(self, *args):
... | [
"626004181@qq.com"
] | 626004181@qq.com |
0414b9b01748784c314fd0dfef81da76993e9938 | 32054ac29f0c3a6321f82736d5cea1e5dd142a0b | /104.maximum-depth-of-binary-tree.py | 5ac0c204a64e4ec50be567c67c2eb1688401b151 | [] | no_license | yliu8976/FufuLeetCode | af70f8179518449aa2414816f8592f1d970f15ed | f8b1de54f3af911f920ff0e86a66ee3a2263cc16 | refs/heads/master | 2023-04-05T06:23:57.827043 | 2021-04-11T11:20:15 | 2021-04-11T11:20:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,304 | py | #
# @lc app=leetcode id=104 lang=python3
#
# [104] Maximum Depth of Binary Tree
#
# https://leetcode.com/problems/maximum-depth-of-binary-tree/description/
#
# algorithms
# Easy (67.50%)
# Likes: 3354
# Dislikes: 87
# Total Accepted: 1M
# Total Submissions: 1.5M
# Testcase Example: '[3,9,20,null,null,15,7]'
#
# ... | [
"frankxu@umich.edu"
] | frankxu@umich.edu |
165ca782092804494e27969dff1db2a7617c8440 | 7b45fdc06f2bfa6538271275de7b0595f068d0b6 | /user/usermanager.py | 7457daa5b9402e12e9c66c83ba7f2983b9712efd | [] | no_license | yu0428/pingtai_twice | ce6875d3fada0cd903c32243fe01ece60fad750a | bc1b942c0766e3fd8742a1754f3d07eceb279351 | refs/heads/master | 2021-01-09T21:50:41.791633 | 2015-06-21T04:48:29 | 2015-06-21T04:48:29 | 36,345,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | #!/usr/bin/env python
__author__ = 'bing'
class User:
def __init__(self, name, passwd):
self.name = name
self.password = passwd
class UserManager:
"""UserManger is responsible for authenticating user informaiton or
creating a new user in database.
"""
def __init__(self):
... | [
"cbyrr1@gmail.com"
] | cbyrr1@gmail.com |
4cbd1bf398bacd6d203b1f3e374298c7a5351948 | 6dbdbefe7f3879b5d2ee437771c7e58b8cdfdfcc | /asset_allocation_v1/shell/db/asset_is_investor_criteria.py | ef443fdb8780ccf19beb347bf95e4b323e8aae9c | [] | no_license | fagan2888/recommend-model | 367346e96d7f8d5917a99271a36806ae10f30d14 | 5b0ae6cad65b565f5d3938c5cd185c42124d684f | refs/heads/master | 2022-11-11T09:47:13.675877 | 2019-07-30T04:23:49 | 2019-07-30T04:24:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,715 | py | #coding=utf8
from sqlalchemy import MetaData, Table, select, func, literal_column
# import string
# from datetime import datetime, timedelta
import pandas as pd
# import os
# import sys
import logging
import database
from dateutil.parser import parse
logger = logging.getLogger(__name__)
#
# ra_markowitz
#
# def loa... | [
"liulikun@gmail.com"
] | liulikun@gmail.com |
167b432f42540e3d03e42f06fed6a9f210ad66f4 | 16cabaf09583547a6034dc2d99086ed852f06c87 | /text to emoji gui.pyw | 66670cf96c27b4f91c5397882415210791b85005 | [] | no_license | NicolasCaceda/DiscordLetterText | be837b965726c2b63bbfcc369df2fd213bc3f548 | 0b0d65bb99c16fad15f5419ae0c5ea6f2b042c36 | refs/heads/master | 2020-03-26T15:15:08.770039 | 2018-08-16T19:53:38 | 2018-08-16T19:53:38 | 145,031,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,775 | pyw | import tkinter
class ConvertDiscordEmojiGUI:
def __init__(self):
self.main_window = tkinter.Tk()
self.main_window.title("Discord Emoji Text")
# top frame contains input label
self.top_frame = tkinter.Frame(self.main_window)
# middle first frame contains input entry
... | [
"nicolas.caceda@gmail.com"
] | nicolas.caceda@gmail.com |
636817d0c3b6740f1462067612714d62481e32b0 | b8b2206a952e01526c403d8fd61821ec109fdee1 | /nlp_sarcasm.py | 6ac481b8fa2d5be27a1a7eb2a0d8aad3b546608b | [] | no_license | jenny-chou/tensorflow_practices | 477ae44ccf817faeda88dcd271945385467e7498 | 4359d113b146ca141082c4fd49621a677e919523 | refs/heads/main | 2023-04-20T00:10:30.003404 | 2021-05-03T14:46:00 | 2021-05-03T14:46:00 | 363,962,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,697 | py | import numpy as np
import tensorflow as tf
# import matplotlib.pyplot as plt
import json
from tensorflow.keras.preprocessing.text import Tokenizer
from tensorflow.keras.preprocessing.sequence import pad_sequences
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Embedding, Globa... | [
"jennychou0823@gmail.com"
] | jennychou0823@gmail.com |
f3c87a426b410738daa15cf0e744653471d9a380 | b105fa4092a08d7263b7e67760c23734c227e740 | /41 lesson/urls.py | 7561cc882b8db2f0ae59155f2123f48ace68792b | [] | no_license | SerhijZhenzhera/zhzhs_python | 98276777839d7d5557216bdcaaf171dfd0e132d1 | 3401bfbe69a6eadf5d9e2cea26ae57e321312142 | refs/heads/master | 2023-04-17T12:29:52.764419 | 2021-04-27T02:32:13 | 2021-04-27T02:32:13 | 323,181,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,941 | py | from django.urls import path
from .views import edit, dashboard, register
from django.urls import reverse_lazy
from django.contrib.auth.views import (LoginView, LogoutView, PasswordResetDoneView, PasswordResetView,
PasswordResetCompleteView, PasswordResetConfirmView,
... | [
"noreply@github.com"
] | noreply@github.com |
c82d3a37fc944204f5db277b2c98979ab8efef44 | 76d4430567b68151df1855f45ea4408f9bebe025 | /test/functional/test_framework/coverage.py | 7f4c1c66546c66896b4314f57e91dcf935f48336 | [
"MIT"
] | permissive | MicroBitcoinOrg/MicroBitcoin | f761b2ff04bdcb650d7c0ddbef431ef95cd69541 | db7911968445606bf8899903322d5d818d393d88 | refs/heads/master | 2022-12-27T10:04:21.040945 | 2022-12-18T05:05:17 | 2022-12-18T05:05:17 | 132,959,214 | 21 | 33 | MIT | 2020-06-12T04:38:45 | 2018-05-10T22:07:51 | C++ | UTF-8 | Python | false | false | 3,386 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2018 The MicroBitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Utilities for doing coverage analysis on the RPC interface.
Provides a way to track which RPC com... | [
"iamstenman@protonmail.com"
] | iamstenman@protonmail.com |
3018d83ac2e45b567d543161d4efa6c95141ef00 | f45cc0049cd6c3a2b25de0e9bbc80c25c113a356 | /LeetCode/็ณๅญๆธธๆ/5611. ็ณๅญๆธธๆ VI.py | ea53be09b91192af8790730394fd8bcd26bf5197 | [] | no_license | yiming1012/MyLeetCode | 4a387d024969bfd1cdccd4f581051a6e4104891a | e43ee86c5a8cdb808da09b4b6138e10275abadb5 | refs/heads/master | 2023-06-17T06:43:13.854862 | 2021-07-15T08:54:07 | 2021-07-15T08:54:07 | 261,663,876 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,385 | py | """
5611. ็ณๅญๆธธๆ VI
Alice ๅย Bob ่ฝฎๆต็ฉไธไธชๆธธๆ๏ผAlice ๅ
ๆใ
ไธๅ ็ณๅญ้ๆปๅ
ฑๆย nย ไธช็ณๅญ๏ผ่ฝฎๅฐๆไธช็ฉๅฎถๆถ๏ผไปๅฏไปฅ ็งปๅบย ไธไธช็ณๅญๅนถๅพๅฐ่ฟไธช็ณๅญ็ไปทๅผใAlice ๅ Bob ๅฏน็ณๅญไปทๅผๆ ไธไธๆ ท็็่ฏๅคๆ ๅย ใ
็ปไฝ ไธคไธช้ฟๅบฆไธบ nย ็ๆดๆฐๆฐ็ปย aliceValues ๅย bobValuesย ใaliceValues[i] ๅย bobValues[i]ย ๅๅซ่กจ็คบ Alice ๅ Bob ่ฎคไธบ็ฌฌย iย ไธช็ณๅญ็ไปทๅผใ
ๆๆ็ณๅญ้ฝ่ขซๅๅฎๅ๏ผๅพๅ่พ้ซ็ไบบไธบ่่
ใๅฆๆไธคไธช็ฉๅฎถๅพๅ็ธๅ๏ผ้ฃไนไธบๅนณๅฑใไธคไฝ็ฉๅฎถ้ฝไผ้็จ ๆไผ็ญ็ฅย ่ฟ่กๆธธๆใ
่ฏทไฝ ๆจๆญๆธธๆ็็ปๆ๏ผ็จๅฆไธ็ๆนๅผ่กจ็คบ๏ผ
ๅฆๆ Alice ่ตข๏ผ่ฟ... | [
"1129079384@qq.com"
] | 1129079384@qq.com |
d544cf72032322140529f7e21f0da9b534d87aa6 | 84b27451c2d347cdc381b035905b17c5509160bd | /20180614_00/20180614_03.py | 85a0f1ac59e60a26cbff1d913a80e72060d91db1 | [] | no_license | TrunkWang/PythonNote | 70f998e8916c9a36d3fef422a913d21ebadd82ec | 5ede3d9ff6282a4b22dff22f5671d63c5c4e493b | refs/heads/master | 2020-03-19T02:45:34.837267 | 2018-06-24T13:47:49 | 2018-06-24T13:47:49 | 135,658,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | #!/usr/bin/env python
# -*- coding:utf-8-*-
import threading
import time
import os
def coChore():
time.sleep(0.5)
class BootThread(threading.Thread):
def __init__(self,tid,monitor):
self.tid = tid
self.monitor = monitor
threading.Thread.__init__(self)
def run(self):
while True:
monitor['lock'].a... | [
"xuefan0609@sohu.com"
] | xuefan0609@sohu.com |
58c456b9e168ba17eb5cc5d6e3bc8715df702e0d | f4dd8aa4e5476ffde24e27273dd47913c7f9177a | /Dlv2_safe2/tests/parser/edbidb.2.test.py | 7ca82d647d28036317512550cf746da486a374b1 | [
"Apache-2.0"
] | permissive | dave90/Dlv_safe2 | e56071ec1b07c45defda571cb721852e2391abfb | f127f413e3f35d599554e64aaa918bc1629985bc | refs/heads/master | 2020-05-30T10:44:13.473537 | 2015-07-12T12:35:22 | 2015-07-12T12:35:22 | 38,256,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | input = """
g(3,4).
g(4,1).
h(X,Y):- h(Y,X).
g(X,Y):- h(X,Z), g(Z,Y).
h(3,4).
g(5,2).
"""
output = """
g(3,4).
g(4,1).
h(X,Y):- h(Y,X).
g(X,Y):- h(X,Z), g(Z,Y).
h(3,4).
g(5,2).
"""
| [
"davide@davide-All-Series"
] | davide@davide-All-Series |
8d0039781b6ab3e7a778be7dadf37916bf356057 | 55aba9dae9b9b6caa5617b5d4f68e0678cdcda93 | /dm2019summer_hw2/regularization-cross-validation/logistic_r.py | 99e29939af4350dfcb9af0ff4592e2f28f6524c9 | [] | no_license | Dearkano/Data-Mining | e13422a38f1a5def4ddd90cd5a1ebcbe62c746d8 | c574e0ab4dd734e06c137a5a4e3fa3b770b062e9 | refs/heads/master | 2020-05-23T14:03:35.652520 | 2019-06-25T19:03:14 | 2019-06-25T19:03:14 | 186,793,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | import numpy as np
def sigmoid(inX):
return (1 + np.exp(inX))
def logistic_r(X, y, lmbda):
'''
LR Logistic Regression.
INPUT: X: training sample features, P-by-N matrix.
y: training sample labels, 1-by-N row vector.
OUTPUT: w: learned parameters, (P+1)-by-1 column vector.
'''
... | [
"vaynetian@cc98.org"
] | vaynetian@cc98.org |
eb5c2010387158948bc1e2996332dbd8a800d330 | 17bdb906c2c0886d6451b55ac84633d416d5c50a | /chapter_one/test_list.py | 28308ca52a00ce387a5426c39769e05cde52ba57 | [
"MIT"
] | permissive | vyahello/unittest-bootcamp | 10053994dc834720b76df90a37d4756a6f1437c7 | af24c5c00032ab7265a0c00da5955a26d25dff33 | refs/heads/master | 2021-07-17T03:42:30.058662 | 2020-05-09T22:21:17 | 2020-05-09T22:21:17 | 139,250,120 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | from typing import List
from unittest import TestCase
class TestListMethods(TestCase):
""" This test case is verifying basic list data type methods. """
def test_append(self) -> None:
""" Test checks if given elements are adding to array """
flist: List[...] = []
for i in range(1, 4)... | [
"vyahello@gmail.com"
] | vyahello@gmail.com |
5679e7a79c5e5694fc959140e9c696630b307830 | 2a6dbece45c391e6dc3d28f04c7c02b18d17b24b | /myapi/views.py | e7798b0b48cf6abbd44a3179bd4bbeac4e5ba3e6 | [] | no_license | KassadReda/Rest_API_Blender | 3b1e43b2a488541d8d8a9aa9f95a39c4e70c34ae | ee9e5216462902a5cfee98a5502b4580b3af12e6 | refs/heads/main | 2023-04-17T06:35:49.204734 | 2021-05-03T22:45:52 | 2021-05-03T22:45:52 | 364,080,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | """
class BlenderViewSet
this class define how to display a model.
by Reda
"""
# coding=utf-8
from django.shortcuts import render
from rest_framework import viewsets
from .serializers import BlenderModelSerializer
from .models import BlenderModel
# Create your views here.
class BlenderViewSet(viewsets.Mo... | [
"="
] | = |
6b5d998541fd2b21e9067847d776fa45634941f0 | c33746a1eb2fdff17b302a457d96a8423025d956 | /const_and_inp.py | c08c61afe753d97fab33ee0ca883b0a21121a7c4 | [] | no_license | DavitNoreyanFD/Astronomy_Task_v_2 | 46577362ed6c35e4ffa6e337d81c7131fe9b562a | 15272e66177b6bd050fab98d6a89fd8d8bab47ab | refs/heads/master | 2023-04-10T06:21:05.712296 | 2021-04-21T19:41:58 | 2021-04-21T19:41:58 | 360,260,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | """
All constants and imported variables were collected in this module.
"""
import configparser
config = configparser.ConfigParser()
config.read('config.ini')
data_file = config['USER']['data_file']
fov_v = float(config['USER']['fov_v'])
fov_h = float(config['USER']['fov_h'])
ra_user = float(config['USER']['ra_user'... | [
"davit.noreyan.fd@gmail.com"
] | davit.noreyan.fd@gmail.com |
85116fe45968b70261db2e77ba8680b3da2d7385 | 7604e3f3f4c6dae4a46473c2a672e87ac180dff3 | /CosineTransform/GradientDescent.py | 00d1c6a092e45ab50daaf38e15221dcaf60463f8 | [
"MIT"
] | permissive | Louiii/MarianaOptimisation | 55eaa5ef5e6c1b6e020a2c80223a5a2b514866f0 | 74e2f27c68add73b19656c23acdd654b0a24fc30 | refs/heads/master | 2022-04-25T05:03:24.572907 | 2020-04-23T00:27:24 | 2020-04-23T00:27:24 | 258,024,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,594 | py | from LoadSmooth import Mariana
import numpy as np
from tqdm import tqdm
import matplotlib.pyplot as plt
def gradDescent(xstart, alpha=0.005):
xcurrent = xstart
gradcurrent = m.grad_true(xcurrent)
xs, gs = [np.array([xcurrent[0], xcurrent[1], m.f_true(xcurrent)])], [gradcurrent]
for t in range(1, 200):
xcurrent ... | [
"43211625+Louiii@users.noreply.github.com"
] | 43211625+Louiii@users.noreply.github.com |
4effb3beb42cb3fb7e5bbec90de7dd762dc6990a | 794d86860a924a1571dd6b04539d9459743580c9 | /check_normality.py | c6de4dde9b0a2604190a7614287a4c6e53e21b9e | [] | no_license | lixinf/DFSS_with_python | bc9e99454ecde00704362eb7f98f1c2a4f9d6589 | 55382033ded25e17f9cc75da68bcc5ad7891d84a | refs/heads/master | 2022-11-26T03:01:17.705658 | 2020-08-01T04:16:55 | 2020-08-01T04:16:55 | 284,179,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py |
"""
This code is used to identify the normality of data.
Code will return false if Data is empty or less than 2 number
Otherwise, code will return p_value for normality. p>0.05 means data is normal distribution
- For small sample-numbers (<300), you should use the "normaltest"
- the Kolmogorov-Smirnov(Kolmogorov... | [
"noreply@github.com"
] | noreply@github.com |
71986ad624234b73af60e4a768b4a74d431e3313 | 3fadc3b9353d1745dd3af9fc7fe7b2c4064a51e0 | /manage.py | be7718735b01234d68671099ff2cf955c2fe208b | [] | no_license | Ashish2831/Class-Based-CRUD-Project | 16a36ad9c4d615d0e6e517696c12312134953319 | c6445cfe298197e4050cf5f31ac332ff383b1237 | refs/heads/main | 2023-04-21T03:33:19.282851 | 2021-05-08T11:10:00 | 2021-05-08T11:10:00 | 365,490,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Class_Based_CRUD_Project.settings')
try:
from django.core.management import execute_from_command_lin... | [
"ashishpatil28032001@gmail.com"
] | ashishpatil28032001@gmail.com |
8c6b0a368630b73f5ec1414d732f2d73c7cf66e5 | 67a361a2a58d18776abc49814e362eddaa1997bf | /mongo.py | f47d50f51ba014ac66b2bbec40347b41ca6945d8 | [] | no_license | johnnyferns14/milestone-project-3 | b62d1038a9e3e4ce580f0e943b7a78f1ead56e64 | ebed6ac2650b4e89c05ec6c00fbc360b8b3b0eab | refs/heads/master | 2023-04-08T08:07:37.054734 | 2021-03-28T00:32:34 | 2021-03-28T00:32:34 | 347,879,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | import os
import pymongo
MONGO_URI = os.environ.get("MONGO_URI")
DATABASE = "myRecipe"
COLLECTION = "recipies"
USERS = "members"
def mongo_connect(url):
try:
conn = pymongo.MongoClient(url)
print("Mongo is connected")
return conn
except pymongo.errors.ConnectionFailure... | [
"johnnyferns@gmail.com"
] | johnnyferns@gmail.com |
d7e35795109593422c728043090178b3c899e3ec | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/65/usersdata/159/31031/submittedfiles/investimento.py | 5b61ed3d81f3cbef16ed56e9d8cb401d0f95499a | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | # -*- coding: utf-8 -*-
from __future__ import division
a=float(input('Valor do investimento'))
x=float(input(''))
b=a+(x*a)
print('%.2f' %b)
c=b+(x*b)
print('%.2f' %c)
d=c+(x*c)
print('%.2f' %d)
e=d+(x*d)
print('%.2f' %d)
f=e+(x*e)
print('%.2f' %f)
g=f+(x*f)
print('%.2f' %g)
h=g+(x*g)
print('%.2f' %h)
i=h+(x*h)
print... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
7a2d804bfeae7d288dc2c166ea105a91da40ca97 | 3cd19164c17d9793ea506369454b8bacd5cebfa9 | /Backend/clubmg_bak_20190726/clubserver/urls.py | 48019cb3399c4c52f203ca02e80992ee2532ec11 | [] | no_license | Myxg/BadmintonClubSystem | 337a17728122ab929d37e7f2732850beb49d8be0 | 1c51236098ab3770cadd925212f9d3978ed83c2a | refs/heads/master | 2022-12-27T10:13:55.129630 | 2020-09-16T10:21:36 | 2020-09-16T10:21:36 | 295,998,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,500 | py | #coding: utf-8
from django.conf.urls import include, url
from rest_framework_jwt.views import obtain_jwt_token
from . import views
urlpatterns = [
url(r'^token-auth$', obtain_jwt_token),
url(r'^useradd$', views.UserAdd.as_view()),
url(r'^user$', views.UserView.as_view()),
url(r'^user/password$', vie... | [
"15234407153@163.com"
] | 15234407153@163.com |
922e2af7bfc749605040905b8f8e66a656738ba6 | 0c89de726d02869a823d925d57e57676534e86b2 | /producers/models/weather.py | 58b95d05dc39a6f23e9b930f4e306cbcae7f6b64 | [] | no_license | aditya232/optimzing-chicago-public-transport | d4bba25211207fff33c55ec0bde50ab6a2fff43c | ea130877eb66415b28d92110a7c3fb82219eedaa | refs/heads/master | 2023-05-25T21:37:30.461224 | 2020-04-21T20:07:24 | 2020-04-21T20:07:24 | 257,704,771 | 0 | 0 | null | 2023-08-14T22:09:48 | 2020-04-21T20:12:22 | Python | UTF-8 | Python | false | false | 2,978 | py | """Methods pertaining to weather data"""
import json
import logging
import random
import requests
from enum import IntEnum
from models.producer import Producer
from pathlib import Path
logger = logging.getLogger(__name__)
class Weather(Producer):
"""Defines a simulated weather model"""
status = IntEnum(
... | [
"wingify@WINDELLAP-223.local"
] | wingify@WINDELLAP-223.local |
1a1c18677bf3255b70a8c250813450f293c27f9f | 38e477b325ec85256caee1eac021e821ad9d31e9 | /src/sigmoid_tanh.py | 65a8823db8451f7c27892f0e680d865cf1032529 | [
"Apache-2.0"
] | permissive | wojtekwalczak/ml_snippets | 04cfbb448bc2202ef364a67e4037aaa4b339f1c2 | caf140b36a0d586d26b5a10f128827db7ea0c0e1 | refs/heads/master | 2022-01-29T13:36:52.985536 | 2022-01-16T10:50:09 | 2022-01-16T10:50:09 | 135,038,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | #!/usr/bin/env python3
"""Draws `W = tanh(W_hat) * sigmoid(M_hat)`, where `*` is element-wise multiplication.
The formula is taken from the following paper: https://arxiv.org/pdf/1808.00508.pdf
The question is: why on earth the surface resulting from element-wise multiplication
of tanh and sigmoid makes sense when o... | [
"wojciech.walczak@tcl.com"
] | wojciech.walczak@tcl.com |
86047464007e688dadd3b3c27012b467b686a566 | bb150497a05203a718fb3630941231be9e3b6a32 | /framework/api/optimizer/reader.py | ebbceb27d15008ded7a2c8cd080b7547fb67cd48 | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 222 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
reader
"""
import numpy as np
reader = np.random.random(size=[1, 1, 10])
reader_img = np.random.random(size=[1, 3, 16, 16])
| [
"noreply@github.com"
] | noreply@github.com |
5dba47e35bc312535682975ede83decc02cb821c | a2d709f4665e01b3f7e209850747f461b890746b | /nf_real_fade_out_Det.py | 8f5b5c3325454056783e11e53d06feb746cab60e | [] | no_license | tphwong/notch_filter | 6bb8f1cd4cebb7256fce7824fe37e98bb575b9d2 | af5b91e806565f2bf72241c465c836b5ee961c5d | refs/heads/master | 2021-04-15T12:58:59.184645 | 2018-08-08T14:46:12 | 2018-08-08T14:46:12 | 126,387,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | import serial
import time
import math
import nf
import nf_header
# specify which COM port to open
com = nf.comOpen('COM32')
speed = 31.3 # assume vehicle speed is 70 mi/h, converted to m/s; 70mi/h === 31.3m/s
freq = 105100000 # frequency at which HD data is transmitted
wavelength = 299800000 / freq # by v = f * lam... | [
"tphwong@umich.edu"
] | tphwong@umich.edu |
ddebfadd0c2daa17807f8177153eeb52ef49dbd9 | df2499ddc1e44aa36cf82d652a3d4501efdeea14 | /burnerbotserver/admin.py | 3ae9dd6521daad321efcb966d5637ac8d4d5ae87 | [] | no_license | johngrantuk/burnerbotserver | 5e232c85df58076818c4d5353440bfa0b82545c2 | 3a102d46073a6ed25ca8cca8a4cea465f6d65cdc | refs/heads/master | 2020-05-17T00:19:01.545866 | 2019-04-25T09:04:06 | 2019-04-25T09:04:06 | 183,393,293 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | from django.contrib import admin
from .models import UserDetail
admin.site.register(UserDetail)
| [
"johngrantuk@googlemail.com"
] | johngrantuk@googlemail.com |
8fae93e73af0f748fedd37ca6fe18c5c6b00fb09 | 6b6fe6cb7e182d078779e801fcb57c379d6e4bdd | /venv/bin/bandit | ac30727966bba95cfd3e82d068c89da9b5d43ab5 | [] | no_license | lm-bsl/fsnd_p1 | 76c3c591bb0c87b8b6b3a5215f38c0b9e8a7d3d9 | efd97b57d5b23a4fe8719b8fe757b8471d7ecad3 | refs/heads/master | 2021-10-25T12:27:12.689337 | 2019-11-11T22:03:35 | 2019-11-11T22:03:35 | 221,076,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | #!/Users/max/PycharmProjects/FSND_project_1/venv/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from bandit.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"maxime.letellier@ml3w.com"
] | maxime.letellier@ml3w.com | |
882dd051b7a1fff21dee017e84de337271d6bcb6 | 39329ae5773c9b4c1f9c91eec393507f5e8ae1c0 | /server/.history/server_20200307213734.py | 40e4aa62a922652973d3ff4b8b8636ddb900856f | [] | no_license | dobreandrei1/legal | 083267aae7faa10775e5a634679869fce0ac3136 | dd05fad8df599f9fc34f56628ebd8861f7a004b4 | refs/heads/master | 2021-09-08T20:16:29.926214 | 2020-03-08T09:24:04 | 2020-03-08T09:24:04 | 245,785,262 | 0 | 0 | null | 2021-09-03T00:42:33 | 2020-03-08T09:22:37 | Python | UTF-8 | Python | false | false | 1,712 | py | from pathlib import Path
from flask import Flask, render_template, request, send_file, send_from_directory, safe_join, abort, current_app
# from werkzeug import secure_filename
import pandas as pd
import os
import time
import json
from flask_cors import CORS
from haikunator import Haikunator
import unidecode
import PyP... | [
"dobreandrei1@yahoo.com"
] | dobreandrei1@yahoo.com |
4062480923890be48ce91948af01567a73be9bed | 6573a45c4389688666821621c26a5a95a0765e4d | /archived_envs/20190625_100746/bin/google-oauthlib-tool | ed107688f59c3ccd9c6f360932ed99b926c0aff3 | [] | no_license | ilhmndn/Warehouse-Management-System-With-Frappe | 66a41be2286dbdb556ab51a4788fc42987d6ed2e | bd9864c5a04a6e2f2f625a8755fba3df4b6409be | refs/heads/master | 2022-10-23T11:13:57.810948 | 2019-07-02T05:18:19 | 2019-07-02T05:18:19 | 194,467,571 | 2 | 2 | null | 2022-10-15T16:16:10 | 2019-06-30T02:40:05 | Python | UTF-8 | Python | false | false | 264 | #!/home/ilhmndn/frappe-training/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from google_auth_oauthlib.tool.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ilhmndn@localhost.localdomain"
] | ilhmndn@localhost.localdomain | |
19c37356466ad944b8cb042d417054ce008b1f64 | 17bdf40c2bbdf3dd09bf0fa683d471f4e07159fd | /asymmetric_jwt_auth/apps.py | be5200a58c04ac73f83aa2863dfef64592b567c1 | [
"ISC"
] | permissive | chiranthsiddappa/asymmetric_jwt_auth | c8c9f0a11b36994b72c87f2d834189df94ef6fee | a95d28ba61e38395da483243a6f536bf25a41e74 | refs/heads/master | 2020-12-25T17:56:18.972703 | 2016-05-24T05:16:06 | 2016-05-24T05:16:06 | 59,540,392 | 0 | 0 | null | 2016-05-24T04:30:18 | 2016-05-24T04:30:18 | null | UTF-8 | Python | false | false | 151 | py | from django.apps import AppConfig
class JWTAuthConfig(AppConfig):
name = 'asymmetric_jwt_auth'
verbose_name = "Asymmetric Key Authentication"
| [
"crgwbr@gmail.com"
] | crgwbr@gmail.com |
ec9c7d2a3db1de8e236b53724f1cbf8c028163a0 | 8638bf84783732f87d88b02ad0a41f68684fbe1f | /plotsprecht.py | 4bb13dda0e82bafc31cdb209b2b5a4505d07baeb | [] | no_license | JLammering/V-351 | fa7f43d025e44426e143b12e4517a4bd734fe559 | 2532300f9ae01a3acc68afc2061efacf349b12e4 | refs/heads/master | 2021-01-10T16:30:20.834091 | 2016-01-13T12:43:44 | 2016-01-13T12:45:33 | 48,593,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,216 | py | import matplotlib.pyplot as plt
import numpy as np
#from itertools import chain
#Messdaten einladen
# k, U = np.genfromtxt('datenb_1.txt', unpack = True)
# #plt.plot(f, U, 'k.', label = r'Messdaten')
#
# N=9
#
# ind = np.arange(N)
# width = 0.3
# ax = plt.subplots()
#
#
# rects = ax.bar(ind, U, width, color ='r')
# ax... | [
"jlammering@me.com"
] | jlammering@me.com |
54fde6cf27909a8351ad62b64d290dbcb4045d4a | 648e5ea6722db2f29806e24f11cf169257dfc1c7 | /doorsadmin/migrations/0076_auto__add_field_doorway_priority__add_field_snippetsset_priority__add_.py | 20830d5176fda335cd25b5743aa423cf2137cfb5 | [] | no_license | cash2one/doorscenter | 30d4f65e3fb57c417df3f09d7feab721d8425faa | d2771bf04aa187dda6d468883a5a167237589369 | refs/heads/master | 2021-05-27T15:38:56.219907 | 2012-06-20T05:38:15 | 2012-06-20T05:38:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,100 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Doorway.priority'
db.add_column('doorsadmin_doorway', 'priority', self.gf('django.db.model... | [
"alex@altstone.com"
] | alex@altstone.com |
2a46dd981ecb739e9e46f9c71da3e33492974bb5 | a075ee186532121edbe5febd9978d9c98fb7d888 | /app/test/test_service.py | 2d99be24b353940df520ed27d15ce723d6f85acc | [] | no_license | HoonJin/fastapi-sample | ef68c77b4129bf6d855ef23d19089aba4e81f3ee | 0b535711e47bf0c0b2d2b2e984859223d0bfb502 | refs/heads/master | 2022-12-24T00:27:41.655204 | 2020-09-29T10:10:52 | 2020-09-29T10:10:52 | 249,173,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | from config.exceptions import NotFoundException
from database import db
from .test_dao import TestDao
class TestService:
@staticmethod
async def get_all_pagination(page: int, per_page: int) -> dict:
total_cnt = await TestDao.get_all_count()
total_page = int(total_cnt / per_page) + (0 if total_... | [
"bwjhj1030@gmail.com"
] | bwjhj1030@gmail.com |
c869b985f6efcc06cb7b2c9d71bff7a64242bbeb | 856c2ce82997975f747f04b823819e6c65624477 | /blog/urls.py | f69c1a3a567d53eeb5703fa1058d4968a4795da9 | [] | no_license | leadmeout/simple_blog | 348f83db921d6b0a9cf46d24cdb87b160552d61f | edfef1295dbaa9a35d60e6d7fa4cfb0c9a267da0 | refs/heads/master | 2023-01-04T10:30:15.605104 | 2020-10-28T20:14:49 | 2020-10-28T20:14:49 | 308,122,152 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | """blog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"markhorvat@protonmail.com"
] | markhorvat@protonmail.com |
34d1e03b2cc53375a6a2534a8570f72711e0d8ba | d3b4c1ad4fb521b7d44ec66ab88a6ca075d20533 | /q16.py | 395bd5fae27c8b3b749f6e4c8de9b99a2264c2ab | [] | no_license | Ayesha116/piaic.assignment | 06b57c25f38a0836da5f26c654682c1ca7e4d665 | 5ef29d394cea55c1d467f45d6b07d611378b419f | refs/heads/master | 2020-06-16T07:24:13.153377 | 2019-07-06T19:42:43 | 2019-07-06T19:42:43 | 195,512,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | #Write a Python program to compute the distance between the points (x1, y1) and (x2, y2).
import math
a = int(input("enter co-ordinate of x1: " ))
b= int(input("enter co-ordinate of x2: " ))
c= int(input("enter co-ordinate of y1: " ))
d= int(input("enter co-ordinate of y2: " ))
distance = math.sqrt(((b-a)**2)+((d-c)**... | [
"ayeshajawed1168@gmail.com"
] | ayeshajawed1168@gmail.com |
747f951d4ca6a9d9514d42fb822a390819fb5427 | 17a5d9c1b10c9d0483d69cb2201c054d96cb0c68 | /main.py | 16c4cb2fbf4b85e1e443b20e09007eeb6d1ecf23 | [] | no_license | Croustimath/Projet-ISN | 95ab9efc221e0442a54e57fbc5501c4d342edb3e | 90032cd51609bd47ffa42a3f69618cfc0d47fe6e | refs/heads/master | 2020-05-03T01:54:09.932073 | 2019-05-11T14:34:46 | 2019-05-11T14:34:46 | 178,352,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,456 | py | from tkinter import *
import time
from math import*
########################################################## Classes #####################################################################
class Niveau:
"""Classe permettant de crรฉer un niveau"""
def __init__(self,fichier):
self.list... | [
"noreply@github.com"
] | noreply@github.com |
2ff3d6352d5241a08ded28a3f45e2e30c903eee7 | 1841c29ffb26901bc7830b2ce4ea712197f1b740 | /models/GraphNN/DTNN.py | e2ad09c182e6617d8bbdf55b57b5fb2b13b136e6 | [
"MIT"
] | permissive | chubbymaggie/Deep_Learning_On_Code_With_A_Graph_Vocabulary | 756bdd54b17d351d31200cc0ceacf8f639e0c678 | 29ee2fdffc5bc05582a91025697e256980e75ef2 | refs/heads/master | 2020-03-28T12:33:33.820671 | 2018-09-10T22:54:14 | 2018-09-10T22:54:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,446 | py | # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
from collections import OrderedDict
from mxnet import gluon
from models.FITB.FITBModel import FITBModel
from models.GraphNN.MPNN import MPNN
class DTNN(MPNN):
'''
Deep Tensor Neural Network from https://www.nature.com/articles/ncomms1... | [
"mwcvitkovic@gmail.com"
] | mwcvitkovic@gmail.com |
f3e029ef5acbe8e796a4ba75d99292456d5d7dd7 | 8832f83436809e8e918e60e5526d95add9fe8dbd | /books_app/migrations/0069_auto_20191002_1610.py | 825b2b23a78d57c127bd9697fe680eaecabd9d58 | [] | no_license | HCDigitalScholarship/booksofduchesses | e31e56eaba253b92a1362de5918b5b005cb27f3c | 3f0e27515963c92a56714c5bada3b6a68a8665df | refs/heads/master | 2022-12-09T18:41:20.019687 | 2021-10-25T14:58:18 | 2021-10-25T14:58:18 | 190,254,161 | 0 | 3 | null | 2022-12-08T05:21:54 | 2019-06-04T18:05:08 | Python | UTF-8 | Python | false | false | 849 | py | # Generated by Django 2.2.2 on 2019-10-02 16:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("books_app", "0068_auto_20190930_1758")]
operations = [
migrations.AddField(
model_name="text",
name="estc_link",
fiel... | [
"apjanco@gmail.com"
] | apjanco@gmail.com |
a901c6830b2d98e5814d5c7d028e4744d7464039 | fa8344a5f37ffd5f10bef00a6f7cab6acc6382f7 | /apps/family/views.py | 5b69f137536d5f86284785fb0032fdfff6f28e77 | [] | no_license | hustels/django-crud-ajax-demo | 2fcd8d3e1c050a76ec1d7e16cfd04fbf1175d8fa | 06de79bf60918b7e270491e4d5cbc7e1422ffd23 | refs/heads/master | 2021-01-12T19:43:44.480199 | 2011-11-16T01:07:31 | 2011-11-16T01:07:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,466 | py | # -*- coding: utf-8 -*-
from django.views.generic.simple import direct_to_template
from django.http import HttpResponse
from django.db.models import Q
from family.models import People
from family.forms import PeopleForm, ImporterForm
def index(request, form=None, peoples=None, importer_form=None):
if form is Non... | [
"gustavo@gustavohenrique.net"
] | gustavo@gustavohenrique.net |
7725709e661cfee7b68604a65aeaac90af786093 | 96818d4bb3803a386026ec59d2e2a653c7dff324 | /NIT_Admission_System/src/NIT_Admission_System/urls.py | c1d67ff6bd8fa97fcded86db1f8fa613d434c5f4 | [
"MIT"
] | permissive | abhijithanilkumar/NAS | 4211405ad619474f4590aaddcffc5206e849ee2f | b8c766201f66696a296b5a76a968214d500254b9 | refs/heads/master | 2020-04-06T03:53:26.511287 | 2015-06-16T09:46:15 | 2015-06-16T09:46:15 | 32,319,542 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static
import profiles.urls
import accounts.urls
from . import views
urlpatterns = patterns(
'',
url(r'^$', views.HomePage.as_view(), name='home'),
url(r... | [
"abhijithanilkumar@live.com"
] | abhijithanilkumar@live.com |
7e6327db88706423541fdcd736a385bd77c5cb65 | 4cbe1145ef29aab3ef17c5ebd74dd94c2fece7c7 | /Guess_the_country_name.py | 90fcc438f7e08aaa6de061bf0db40eacbdddfe9e | [
"MIT"
] | permissive | jyothi1910/Guess_the_country_name | 2903b4d943b8d9495559c8d68756fbc9ce88e0d8 | fc154488a4f3ff6aa7e27a127963f2c5a4c42628 | refs/heads/main | 2023-06-06T09:53:28.414026 | 2021-06-21T07:00:16 | 2021-06-21T07:00:16 | 378,835,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py |
import random
Country_names=["India","Korea","Japan","China","USA"]
print(Country_names)
randomName = random.choice(Country_names)
for guessTaken in range(1,4):
guess=input("Take a guess:")
if guess != randomName:
print("Your guess is wrong, try another guess")
elif guess == randomName:
... | [
"noreply@github.com"
] | noreply@github.com |
da05f206093955bc97ef19a62bc0a70e69711fc6 | 5e9dacbb7a9613b7c8d8c92398bb66926a314c38 | /script.py | ecff88305875f987118660b170ce2849290d9f87 | [] | no_license | pol9111/tencent_WechatOffAcc_auto | 645b95bfd893706df4651f1e8f67ea1dc57a03de | 3aa2a9a8a78796d5b829f9bf49cc849713ed41b7 | refs/heads/master | 2020-03-24T16:24:08.783424 | 2018-07-30T04:07:14 | 2018-07-30T04:07:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | import json
import pymongo
import re
from config import *
def response(flow):
global like_num, title, pub_time, read_num, comment_num
client = pymongo.MongoClient(MONGO_URL)
db = client[MONGO_DB]
table = db[MONGO_COLLECTION]
# ่ทๅๅพฎไฟกๅนฟๅjsonๆไปถ, ้้ขๆ้
่ฏปๆฐๅ็น่ตๆฐ
url_msg = 'mp.weixin.qq.com/mp/getappmsgex... | [
"biscuit36@163.com"
] | biscuit36@163.com |
f9da954cdcb17cee51e9d873568d288fdf2c9cdb | f6f29c2fa719c53eee73de2acd86db9e1278182e | /code_wars/calculating_with_functions.py | a3f2c7e84a244f5b3dd4d6052494c5ab40d538cb | [] | no_license | byt3-m3/python_code_practice | ca08320e1778449d30204b65f15903d5830b7975 | 40e215c4d4ab62cf7d55d2456d94550335825906 | refs/heads/master | 2023-07-24T08:29:06.624850 | 2021-09-04T02:39:32 | 2021-09-04T02:39:32 | 256,984,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,290 | py | '''
This time we want to write calculations using functions and get the results. Let's have a look at some examples:
seven(times(five())) # must return 35
four(plus(nine())) # must return 13
eight(minus(three())) # must return 5
six(divided_by(two())) # must return 3
Requirements:
There must be a function for each nu... | [
"cbaxtertech@gmail.com"
] | cbaxtertech@gmail.com |
d3a11b03a1299ac463f87eea644d12b3ad7ee1da | d29baf1efe018a9f30280cdfb6fabb553ea27b86 | /pruebas/pruebas aisladas/pestaรฑas y su ejecucion.py | 80210068f93a827fdb363021c4ad02d5e4a5ead7 | [] | no_license | ColqueRicardo/v-version | 7c3bd074a5ce9e3b774d1cbd95a4059683d7b46e | 45fd067443e084f510f69053a70507956edae0a2 | refs/heads/master | 2023-01-22T22:56:03.732007 | 2020-12-07T02:41:36 | 2020-12-07T02:41:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,261 | py | from tkinter import *
import tkinter as tk
from tkinter import ttk
from tkinter import messagebox
from pynput.mouse import Button as Mouse_button, Controller
import xml.etree.ElementTree as ET
def archivoxml():
bd = ET.Element("base")
ventana = ET.SubElement(bd, "ventana", name="ventana-consultas")
vent... | [
"ricardocolquerc@gmail.com"
] | ricardocolquerc@gmail.com |
2624fc2cc2558380db72259518fe7ca467c5f0a4 | 5fa98b709c68c1f8c8aa8914b9ec790f21c60c98 | /tests/test_updates.py | 229c23a3f617313abddd80dde8a374f78913e73a | [
"MIT"
] | permissive | Nextpertise/versionalchemy | b0085d1b383e5ff2d13fe0caa6b824f33476de0f | ba14a8f3369db568e7eb300630e96ef8c67b79a5 | refs/heads/master | 2020-05-15T12:30:19.228686 | 2019-07-05T08:19:48 | 2019-07-05T08:19:48 | 182,266,873 | 0 | 1 | MIT | 2019-04-29T13:37:12 | 2019-04-19T13:13:32 | Python | UTF-8 | Python | false | false | 5,844 | py | import os
import sqlalchemy as sa
from sqlalchemy.exc import IntegrityError
from sqlalchemy.orm import sessionmaker
import unittest
from tests.models import (
ArchiveTable,
Base,
UserTable,
)
from tests.utils import (
SQLiteTestBase,
VaTestHelpers,
)
class TestUpdate(SQLiteTestBase):
def tes... | [
"akshay@nerdwallet.com"
] | akshay@nerdwallet.com |
8ffd467913fac03b01efbb61d71509207cf1337c | c5cee987dd9fc79778ae0804048af13f76d7567f | /perTreatment.py | 9b3b7a6b280e3e55d11461e487913dfcd2ed9ed5 | [] | no_license | LingGuguang/new-word-discover | 063dcdf0cc3d95be2306ed8405e3c8cf43d8e829 | 37640afeb8c10216fb44d05d7ed7a1171910f710 | refs/heads/master | 2020-06-01T16:25:11.812212 | 2019-06-08T06:07:35 | 2019-06-08T06:07:35 | 190,849,114 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | from Delete import Delete
import pandas as pd
import jieba
import re
# #ไปฅไธไธบๅผนๅนๅป้
txt = 'danmu.txt'
save_txt = 'save.txt'
ammos = []
with open(txt, 'r', encoding='utf-8') as t:
for ammo in t.readlines():
ammos.append(ammo[:-1])
#print(len(ammos)) = (48000)
dele = Delete(ammos)
ammos = dele.delete()
ammos ... | [
"1186986256@qq.com"
] | 1186986256@qq.com |
e3baf698b803e39d4869c69af482d97836496848 | 91d96fc4084a55a74f761ed7bc7d0adba533618a | /projects/pset2.0_Forkable_Difficulty_Adjusting/blockchain-visualizer/visualize.py | 352b2f7230f8cd77c28efa64538cda9744295698 | [
"MIT"
] | permissive | Averylamp/mas.s62 | 169bb76f1289a3d4569a952075bfb8e7842e1dca | 382dc036ae014785be4c464ed8c4aef533fd52ab | refs/heads/master | 2020-03-17T16:14:56.613227 | 2018-05-17T03:56:09 | 2018-05-17T03:56:09 | 133,741,785 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,143 | py | import pickle
from datetime import datetime
from datetime import timedelta
import matplotlib.pyplot as plt
import graphviz
def mine_rate_info(endpoint_block, origin_block, block_information, time_interval):
endpoint_dt = datetime.fromtimestamp(highest_block[0]['timestamp'])
origin_dt = datetime.fromtimestamp(block_i... | [
"averylamp@gmail.com"
] | averylamp@gmail.com |
a2d6c12a2bd7956f2c562f8cfe0e2ac7678d9769 | 3003a8663135aa10f5a152a8642bc6ab270995b9 | /ggCloudSDK/google-cloud-sdk/lib/googlecloudsdk/sql/lib/instances.py | 9580cc32edf3f272d2994243b0b16c424ce6e6fb | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/packmybot | 1b4d199b36d196e5e769a781b520019bb4d0bdbc | 92de1e72cfc51b41447366ffc81a9dcd9a5e7870 | refs/heads/master | 2022-11-25T23:46:06.946645 | 2015-10-22T08:22:04 | 2015-10-22T08:22:04 | 282,313,675 | 0 | 0 | null | 2020-07-24T20:50:10 | 2020-07-24T20:50:10 | null | UTF-8 | Python | false | false | 7,040 | py | # Copyright 2015 Google Inc. All Rights Reserved.
"""Common utility functions for sql instances."""
from googlecloudsdk.calliope import exceptions
class _BaseInstances(object):
"""Common utility functions for sql instances."""
@classmethod
def _SetBackupConfiguration(cls, sql_messages, settings, args, origin... | [
"cboussicaud@leaseplan.fr"
] | cboussicaud@leaseplan.fr |
447215391bd91ac4d5a721c47f8d0298d4eb5b3f | c001d8cff7e634bfa19d682ccdcf5261bc7bf397 | /cotizacionweb/migrations/0005_auto_20160420_1104.py | f9051f65ba22309b3fc40fa1bad989072d8ebdc8 | [] | no_license | yusnelvy/mtvmcotizacionv02 | 4053a6883519901e3652a141ef83c297c5aa0ccd | f0d94faff9c721f25018b7db12a07786508da565 | refs/heads/master | 2021-01-21T12:58:49.014716 | 2016-05-06T20:49:59 | 2016-05-06T20:49:59 | 50,135,715 | 0 | 0 | null | 2016-05-25T12:32:34 | 2016-01-21T20:48:27 | CSS | UTF-8 | Python | false | false | 2,464 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('contenedor', '0005_contenedortipicopormueble_tipo_de_contenido'),
('cotizacionweb', '0004_auto_20160414_1529'),
]
operations... | [
"yusnelvy@gmail.com"
] | yusnelvy@gmail.com |
8c08e9331e2a444c62e36c3a44d664c13b4c40df | 122cef3b7e5c65f4df2b5d17b88bbb6986c16b3f | /script_1.py | 462eafb9a1a567ee22ba559cf0538723cbbe4ca1 | [
"MIT"
] | permissive | markregine/FHIR_Python_fhirclient_testing_open | 98d843c6d2c223256afbb948c256d09fa7276e84 | 44061ee1522bfc7de5fe553683d6cb778c4b5f4e | refs/heads/master | 2020-04-30T02:44:19.943085 | 2019-03-19T18:13:00 | 2019-03-19T18:13:00 | 176,568,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
from fhirclient import client
import fhirclient.models.patient as p
import fhirclient.models.bundle as bundle
settings = {'app_id':'xxxx',
'api_base': 'https://r2.smarthealthit.org',
'patient_id': 'smart-1137192'}
# In[2]:
settings = {'app_id'... | [
"noreply@github.com"
] | noreply@github.com |
5957173b293dfaea06fcdce0d133e9d754b9f80c | c030e3de3b6822c859f453456dc5f34845ae86da | /2.add-two-numbers.py | 511ca1d156495ca20cf1d8ba552cce7057e77629 | [] | no_license | xxli807/PythonForFun | 5ca07e5728d04e08019efe33f8bc126256ec05e6 | 5c980466146450309949388ca3ab0cedcf5f12fc | refs/heads/master | 2020-05-16T23:24:57.798569 | 2019-05-11T12:28:38 | 2019-05-11T12:28:38 | 183,364,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | #
# @lc app=leetcode id=2 lang=python3
#
# [2] Add Two Numbers
#
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode:
root = ListNode((l1.val + l2.val) %... | [
"lxx871030@gmail.com"
] | lxx871030@gmail.com |
dd9b515004d1932557315b736706692edce7c9f4 | a7a11639a6c7fddc702b55530b7a86e77796813c | /green_rose_shop/settings.py | 43f273257b1b5a1fa5f4fca49f6f37292fd1e069 | [] | no_license | venindobhasa/green_rose_shop | 2f9f9ec7eaa25e7e9f85d7d5da8c9dcf15e195c3 | 44ae92c29fe9eebbdc5c63177292907697263a17 | refs/heads/master | 2022-11-05T04:30:14.459444 | 2020-06-19T02:50:21 | 2020-06-19T02:50:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,458 | py | """
Django settings for green_rose_shop 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... | [
"saunghninsi91@gmail.com"
] | saunghninsi91@gmail.com |
c856a237edfe16a2af62af7f31bb6f4ea80ef390 | c96a5c821a24cdb41095d33ee734f94f35e81fb2 | /octoprint_rgbcontrol/__init__.py | 055ce2c4304023baf7719c59ff01a1c596c927cd | [] | no_license | mikedmor/Octoprint_RGBControl | 7915c806942f53c930ed672be71bdd7a2784699b | 0711896004079cc2efcdf74775a44f2892c16d0f | refs/heads/master | 2020-03-16T23:10:44.868686 | 2018-05-12T20:31:27 | 2018-05-12T20:31:27 | 133,068,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,607 | py | # coding=utf-8
from __future__ import absolute_import
import octoprint.plugin
import octoprint.settings
class RGBControlPlugin(octoprint.plugin.StartupPlugin,
octoprint.plugin.TemplatePlugin,
octoprint.plugin.SettingsPlugin,
octoprint.plugin.AssetPlugin... | [
"mikedmor@gmail.com"
] | mikedmor@gmail.com |
f340f6fe2ce9cef2755406e2d7327934041ad8c1 | 6fe477c7b32f0020a5fffe6affbc7546b16ab879 | /healthpoints/src/healthpoints/apps/tracks/migrations/0003_auto__add_field_activity_shard_id__add_field_activity_note_id.py | aca19183adb724bd430c79164d590c788b213d1b | [] | no_license | rootart/healthpoints | cb79cc4b8e3ceb9401eb5894518e026673f98545 | c33f8e2d0d62e66b3e967f3e464097482abebd91 | refs/heads/master | 2021-01-01T05:52:06.661165 | 2014-10-12T05:45:11 | 2014-10-12T05:45:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,555 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Activity.shard_id'
db.add_column(u'tracks_activity', 'sha... | [
"dijakroot@gmail.com"
] | dijakroot@gmail.com |
762824112bf390cf4f8ff8ee2d484e6524fbca21 | c95f245a5252ec1185e13ef5d37ff599dd451fee | /telethon/network/connection/tcpfull.py | fd9fd1cf58e9bd9932053d283a5d676b226f6cd5 | [
"MIT"
] | permissive | perryyo/Telethon | 6f95ce09ad86a94c44fe697ba6d49df4914cb321 | 0046291254f9c96f8824ff7b42fa695fa3f71fc5 | refs/heads/master | 2020-04-07T17:08:15.994174 | 2019-02-11T07:13:44 | 2019-02-11T07:13:44 | 158,558,142 | 0 | 0 | MIT | 2018-11-21T14:12:22 | 2018-11-21T14:12:21 | null | UTF-8 | Python | false | false | 1,463 | py | import struct
from zlib import crc32
from .connection import Connection
from ...errors import InvalidChecksumError
class ConnectionTcpFull(Connection):
"""
Default Telegram mode. Sends 12 additional bytes and
needs to calculate the CRC value of the packet itself.
"""
def __init__(self, ip, port, ... | [
"totufals@hotmail.com"
] | totufals@hotmail.com |
f956625b352f998eb26833b0e51195907af6cf82 | b3bac39420c4864de4a9f53a27845ba71e4f08fa | /App.py | 864555395f640864608ca50ba8d233c23cbcf07b | [] | no_license | nickbetke/Music-Mood-Recognition | bb2c6377de99b47b3e629bb02853412e63494e80 | 3811e0d3bb28ae4e06039f7d2ab463cbcc7a667f | refs/heads/master | 2021-02-10T02:55:55.878712 | 2020-10-17T14:35:53 | 2020-10-17T14:35:53 | 244,346,711 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,490 | py | import tkinter as tk # python 3
from tkinter import *
from tkinter.ttk import *
from tkinter import font as tkFont
from tkinter.filedialog import askopenfilename
from tkinter import messagebox
import numpy as np
from pydub import AudioSegment as pas
import librosa as lr
import joblib
global do
class SampleApp(t... | [
"noreply@github.com"
] | noreply@github.com |
d8740f4f41ffea793ecdef962f03b008182d8ec7 | c07ecb7b177d3296580dec755e4c5a34c01f4132 | /120_Triangle.py | 3b5add816517340c3027d281b3ef7a59950e827b | [] | no_license | bokveizen/leetcode | 78c6e00a97ab9b658752dfcbf6380918ce5611d7 | 7c7eb77e23310563dbbabae4ff9c726620a8dd6d | refs/heads/master | 2021-07-09T19:59:15.338846 | 2021-03-18T06:28:14 | 2021-03-18T06:28:14 | 231,543,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | # https://leetcode-cn.com/problems/triangle/
class Solution:
def minimumTotal(self, triangle: List[List[int]]) -> int:
n = len(triangle)
temp = triangle[-1] # triangle[n-1]
while True:
if n == 1:
return temp[0]
temp = [min(temp[i], temp[i + 1]) for i ... | [
"boqvezen97@kaist.ac.kr"
] | boqvezen97@kaist.ac.kr |
f25e7844fc3f123aff20df8ed51e37a677b10356 | 1107279f4447455a2fea8ff4341e856845cf8e57 | /testes/I2C_sniffer.py | faa21308ec2891c94910ec8d4369c332d9d2c356 | [] | no_license | rmborges/Distributed-Lighting-Control | a0d9cea26b5c538bc41d328e94bc805c97b56a9f | e59a8c5f299cbf739352d1db98787e934e9c4c16 | refs/heads/master | 2021-03-30T18:03:04.574228 | 2018-01-07T15:59:11 | 2018-01-07T15:59:11 | 113,502,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,913 | py | #!/usr/bin/env python
import time
import pigpio
class sniffer:
"""
A class to passively monitor activity on an I2C bus. This should
work for an I2C bus running at 100kbps or less. You are unlikely
to get any usable results for a bus running any faster.
"""
def __init__(self, pi, SCL, SDA, set_as... | [
"rafael.m.borges@tecnico.ulisboa.pt"
] | rafael.m.borges@tecnico.ulisboa.pt |
b5f7d6f9fb35ce51fcbddc2f6bdffd4aaadeda7a | 5f59fb34fe9c4bcca96d18a765063fefa4bf8e8d | /lib/eval.py | 4499eec599ad5788222d5fd94fcd30d239ca1123 | [] | no_license | chrischoy/HighDimConvNets | 674ee682aa0c3b37b2e2e0e0b1fc36469b1978d6 | bd8f03150b4d639db61109a93c37f3be0dcaec38 | refs/heads/master | 2023-08-06T22:41:06.052791 | 2021-09-15T17:23:11 | 2021-09-15T17:23:21 | 263,797,270 | 39 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,020 | py | import torch
import numpy as np
def pdist(A, B, dist_type='L2', transposed=False):
"""
transposed: if True, F0, F1 have D x N. False by default N x D.
"""
if 'L2' in dist_type:
if transposed:
D2 = torch.sum((A.unsqueeze(2) - B.unsqueeze(1)).pow(2), 0)
else:
D2 = torch.sum((A.unsqueeze(1) -... | [
"cchoy@nvidia.com"
] | cchoy@nvidia.com |
bf811162014e14e26b71ed53ffec58e618d594a3 | 2157782cf5875767f8d1fe0bb07243da2e87600d | /send_email/email_helper.py | 5012f4ab74d9a69b947ea3e386bf2d903abaa39f | [] | no_license | mouday/SomeCodeForPython | 9bc79e40ed9ed851ac11ff6144ea080020e01fcd | ddf6bbd8a5bd78f90437ffa718ab7f17faf3c34b | refs/heads/master | 2021-05-09T22:24:47.394175 | 2018-05-11T15:34:22 | 2018-05-11T15:34:22 | 118,750,143 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,112 | py | #email_helper.py
'''
ๅ่๏ผhttps://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000/001432005226355aadb8d4b2f3f42f6b1d6f2c5bd8d5263000
ๅฐ่ฃ
ๆ็ฎๅ้ฎไปถๅ้ๆจกๅ
'''
from email import encoders
from email.header import Header
from email.mime.text import MIMEText
from email.utils import parseaddr, formataddr
im... | [
"1940607002@qq.com"
] | 1940607002@qq.com |
2bc647123df644c429a647698050cb197c682e88 | 5b5a49643c75aa43d5a876608383bc825ae1e147 | /tests/lists/p121_test.py | 22041a3cf5ee7085bd6f9c855959da66c5eaec06 | [] | no_license | rscai/python99 | 281d00473c0dc977f58ba7511c5bcb6f38275771 | 3fa0cb7683ec8223259410fb6ea2967e3d0e6f61 | refs/heads/master | 2020-04-12T09:08:49.500799 | 2019-10-06T07:47:17 | 2019-10-06T07:47:17 | 162,393,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | from python99.lists.p121 import insert_at, insert_at_mutable
def test_insert_at():
assert insert_at([1, 2, 3, 4, 5, 6], 2, 'a') == [1, 'a', 2, 3, 4, 5, 6]
assert insert_at([1, 2, 3, 4, 5, 6], 1, 'a') == ['a', 1, 2, 3, 4, 5, 6]
assert insert_at([1, 2, 3, 4, 5, 6], 7, 'a') == [1, 2, 3, 4, 5, 6, 'a']
def tes... | [
"ray.s.cai@icloud.com"
] | ray.s.cai@icloud.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.