blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0a4c03dd05dc9d1deeec097157b5ad59aaa9a092 | 9fce5f629873ef5c43274fdae1d49a270ec78f38 | /TS_Modular/TS1.py | 68929104a538e8e2d71d0077737c303f27fa5251 | [] | no_license | makkar-nishant123/Pythonselenium | 2c9273d81915bc1f7724de93d7b87c76b5f9066b | 173f49e6522b80f13e6e406756130c0b1376a139 | refs/heads/master | 2021-06-12T09:30:24.097297 | 2021-04-22T02:48:56 | 2021-04-22T02:48:56 | 182,635,591 | 0 | 0 | null | 2021-04-22T02:52:08 | 2019-04-22T06:26:41 | Python | UTF-8 | Python | false | false | 666 | py | from Modular_helper.be_helper import validate_be
from Modular_helper.ui_helper import *
login_username = driver.find_element_by_name("")
login_password = driver.find_element_by_name("")
peform_order_element1 = driver.find_element_by_name("")
peform_order_element2 = driver.find_element_by_name("")
logout_button = drive... | [
"makkar.nishant123@gmail.com"
] | makkar.nishant123@gmail.com |
7f921075d59189eabfc07610cf12738f7c86eeb1 | 7eb8e38557941cd9d536fd6893028b9dc1342413 | /game/handler.py | b0aef27cdcccf381a2a4b3abcfadeff53fd28a8b | [] | no_license | wlaub/boardgame | 788db37d1f9a50a04fcbc3276e3f94c0536c0063 | b6bb84e9fc09c2809d468767a26b55ec33e887b4 | refs/heads/master | 2021-01-23T04:23:36.915511 | 2017-03-29T21:57:21 | 2017-03-29T21:57:21 | 86,194,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,236 | py | import pygame
from pygame.locals import *
import ui
import sys, time, math
class Handler():
"""
Primary handler class for all the stuff.
Should be subclassed for the main application
"""
usemini = True
msize = 200
def __init__(self, size):
pygame.init()
pygame.font.init()
... | [
"goldcray@gmail.com"
] | goldcray@gmail.com |
99d4816939c2101502a3b5846c0f9d0cf12b593f | 600c2df560bad7b1a0b4ede78887be563b68df6e | /plt_traning_loss.py | 113fe002b9973e1f117a77a675dc84d11db24a5d | [] | no_license | Amitabha2018/AdaSGD-D | 2c2dfc3e66f0f11266d45a10d5a01ff79f56d898 | a55cc677ae9604578034d432ce31c47234b17521 | refs/heads/master | 2023-03-26T14:19:30.961643 | 2021-03-20T00:55:01 | 2021-03-20T00:55:01 | 349,451,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
__author__ = 'IT小叮当'
__time__ = '2021-03-09 21:37'
import pandas as pd
import matplotlib.pyplot as plt
#支持中文显示
from pylab import *
mpl.rcParams['font.sans-serif'] = ['SimHei']
df = pd.read_excel("G:\\AdaSGD-D\\moment.xlsx")
#print(df)
plt.plot(df["Train_Loss"],lab... | [
"haolin-yang@foxmail.com"
] | haolin-yang@foxmail.com |
c836eb2f26492efe6593da686ab6664829916a53 | 5ad131249ee80a2fc137ede7de313601e4f68c5e | /oop/05has_a.py | 14ec12273950a576b5a0ea81f2bf44905fd95c5f | [] | no_license | loujitao/PythonLearn | 703a404f1e7330dcb00a897fdf5fcc2a96487de4 | 49d74bb8a4b72f76d8f52bd9070311013d45267b | refs/heads/master | 2022-02-28T20:50:55.788497 | 2022-02-14T06:51:51 | 2022-02-14T06:51:51 | 204,436,733 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | class Engine:
pass
class Liangqu(Engine):
def __init__(self):
print("两驱引擎")
class Siqu(Engine):
def __init__(self):
print("四驱引擎")
#===================
class Car:
car_eng= Engine # 车有一个引擎
class LiangCar(Car):
car_eng = Liangqu # 两驱车有一个两驱引擎
def __init__(self):
se... | [
"995268272@qq.com"
] | 995268272@qq.com |
b33ae600ed738f20964da455cb841bcdc0b42544 | f548c6ef0e3ecfc7700e50d4c975e1883fb6d63c | /ejercicio8.py | ce8cf548c777f52f55784234be69504c36dc531e | [] | no_license | gabas001/Python | 34c0841b1de2bc77f7f752455f1ca82e46e29140 | bd5c26186cbc62416c579525551af6e1d25291ed | refs/heads/master | 2022-04-25T10:31:59.217173 | 2020-04-28T23:22:37 | 2020-04-28T23:22:37 | 259,699,907 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | '''Pedirle al usuario que ingrese dos números enteros por teclado y contar
cuantos números pares hay entre ambos valores ingresados, verificando también
los números ingresados por el usuario.'''
#se declaran variables y mediante un imput se pide un entero
n1=int (input('Ingresa primer numero: '))
n2=int (input('In... | [
"noreply@github.com"
] | noreply@github.com |
1856d5be861e0964e28aa4f9ce2a648c81ba0a4b | 1da4af09bc143314696f273e99310a7b3fb1df0f | /seleniumwire/proxy/modifier.py | 1ff879f83143cfbcc0204cccfffc7fb3cc657462 | [
"MIT"
] | permissive | fossilet/selenium-wire | 1fbf97d354f7d4fabf5c440c176ee526de5b4ca9 | 62771b1d1c78c60f3b78caacbbf2bb37622ee965 | refs/heads/master | 2020-07-04T00:59:43.875095 | 2020-02-18T01:51:39 | 2020-02-18T01:51:39 | 202,104,673 | 0 | 0 | MIT | 2019-08-13T08:57:56 | 2019-08-13T08:57:53 | null | UTF-8 | Python | false | false | 4,525 | py | import re
import threading
from urllib.parse import urlsplit
class RequestModifier:
"""This class is responsible for modifying the URL and headers
of a request.
Instances of this class are designed to be stateful and threadsafe.
"""
def __init__(self):
"""Initialise a new RequestModifier.... | [
"will@zifferent.com"
] | will@zifferent.com |
c3166149b10a5574db2f8695947dc6c8ee7ad116 | 7651bb30a4b065b0580e2fbe595d8ec99831734b | /local/django.wsgi | 843aa0823bed7969c5348b3d2c9ff6349ed49e03 | [] | no_license | pgmdti/pgmcdl | 78e1316762bae703ab7cd9815aacb7e7b1403777 | ead4691b437f296effdfe39b689c0bb00e22ac8f | refs/heads/master | 2022-11-10T00:03:39.518228 | 2020-06-26T01:40:51 | 2020-06-26T01:40:51 | 275,050,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | wsgi | /home/francisco/PycharmProjects/pgmcdl/django.wsgi | [
"pgm.dti@gmail.com"
] | pgm.dti@gmail.com |
e6ef2ff3aef2eb28e1e428b09f1b275b3f65b883 | 676b765f96cad25393d3cd1243d9b6bcafdd0b62 | /funciones_camara.py | 5a7da5cb7292c1bc253b5b1c76cfb6475bbd5e0f | [] | no_license | santosg572/Camara_USB | 32e2fe6fcda3b0e67e7b6dff53a185b949882213 | 2e235a2a986326bbae9e8649671b41ba0487e458 | refs/heads/main | 2023-04-23T00:43:48.699211 | 2021-05-06T18:22:01 | 2021-05-06T18:22:01 | 365,000,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | import numpy as np
import cv2
import time
def CapturaImg(file=''):
cap = cv2.VideoCapture(0)
def DespliegaImagen():
while(True):
ret, frame = cap.read()
# cv2.imshow('frame',frame)
if cv2.waitKey(1):
break
return frame
fm = DespliegaImagen()
time.sleep(10)
cv2.imwrite(f... | [
"santosg@Leopoldos-MacBook-Pro.local"
] | santosg@Leopoldos-MacBook-Pro.local |
3bb30c6db1a0356f3af2b6f8d2c7b95adbca7a3e | 02fea9b0494d3f0ee498ae107e27c0d69fe411bc | /PySpark/ngt_utils.py | dc0f33ea86b0f3d0e4e18abd776fd5ae385c767f | [] | no_license | antrad1978/bigdata | 3af09c40e13c7463ec2ff907e998672bf6966753 | bd1b0c78decabc7031d3bf2888adbf310c082979 | refs/heads/master | 2020-04-05T14:25:04.746939 | 2020-02-24T10:25:24 | 2020-02-24T10:25:24 | 156,928,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | import pyspark.sql.functions
def get_sum_grouped_by_date(sales: pyspark.sql.functions.DataFrame, gbdestination: str, total_destination: str,
source_date_field: str, format: str, agg_field: str) -> pyspark.sql.functions.DataFrame:
"""
:type sales: object
"""
res = sales.wit... | [
"antonio.radesca@nitroagility.com"
] | antonio.radesca@nitroagility.com |
03159897d72bde6296f55d1e3c46df799c87511e | c4381edcf681a0d6f9fa734096daeb2490330ce6 | /ITGK Øvinger/Øving 6/Teoridelen på eksamen.py | 90cf04e392230595ea8db68e23dad38a4f6e49c5 | [] | no_license | sirirusten/Python-kode | 9f9e3e18b28915a227e43eec24bc6829c0fcbb8f | 969532edee5876696e72dab8f841c087059cd815 | refs/heads/main | 2023-08-23T11:57:50.990160 | 2021-10-08T21:04:13 | 2021-10-08T21:04:13 | 415,123,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,061 | py | #!/usr/bin/env python
# coding: utf-8
# <nav class="navbar navbar-default">
# <div class="container-fluid">
# <div class="navbar-header">
# <a class="navbar-brand" href="_Oving6.ipynb">Øving 6</a>
# </div>
# <ul class="nav navbar-nav">
# <li ><a href="Generelt%20om%20lister.ipynb">Generelt om... | [
"siri.rusten@outlook.com"
] | siri.rusten@outlook.com |
d482bf2007e6ca4bc5811018ed948bdb73595fb1 | 9ac4fa2714f735e83a5527ad5961cf2219c2bc89 | /python prog vit ques/mongo/insert.py | 2e32144973dd47cdb21628eadc4c585059dca2b0 | [] | no_license | jyotsnatiwary/Data-structures-algo | 40705928e4332af166c9a27b238cffb4a6bdffd2 | 6051c51638328db932e35d644fa6964d7c5ec509 | refs/heads/master | 2023-03-09T01:49:32.622607 | 2021-02-15T19:58:57 | 2021-02-15T19:58:57 | 294,473,802 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | import pymongo
myclient = pymongo.MongoClient("mongodb://localhost:27017/")
mydb = myclient["mydatabase"]
mycol = mydb["customers"]
mydict = { "name": "John", "address": "Highway 37" }
x = mycol.insert_one(mydict)
| [
"noreply@github.com"
] | noreply@github.com |
47cf272440f88b1aa5b80e249d9103aa94560525 | a2c7064e18bc358ee1fe85ed4058cd3054515eaa | /sfepy/fem/extmods/setup.py | 1f43f58ae18fc236122554fb40e8877e9ab18b32 | [
"BSD-3-Clause"
] | permissive | akshaydolas09/sfepy | b775b9d701bec84377eccd0a8714cf2489f0cf8b | 6518a7b9970fe2d92c0f5675ee4e85d3b29794f9 | refs/heads/master | 2021-01-24T20:02:53.634703 | 2013-12-14T23:15:59 | 2013-12-14T23:15:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,034 | py | #!/usr/bin/env python
def configuration(parent_package='', top_path=None):
import os.path as op
from numpy.distutils.misc_util import Configuration
from sfepy import Config
site_config = Config()
os_flag = {'posix' : 0, 'windows' : 1}
auto_dir = op.dirname(__file__)
auto_name = op.split(... | [
"cimrman3@ntc.zcu.cz"
] | cimrman3@ntc.zcu.cz |
e3d86e847164add00cad6f8328582c87bf288fdc | f0d1bfb45ff5fad468270b586f4cebc3aa73da10 | /1-Docker/Typing_practice_app/Symbiosis/urls.py | efceb0bf0b42d7c92e9f26ccdd7776802bc3aebb | [] | no_license | D-GopalKrishna/Django-with-Docker | 28a87a94fe224af9a1d9e3d1ef5df8c48ace6622 | f3241ce01e3c6dc30be4f565037723f710619aa8 | refs/heads/master | 2023-03-01T21:29:58.106486 | 2021-01-29T09:27:34 | 2021-01-29T09:27:34 | 331,938,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.rendertypingPage, name="rendertypingPage"),
]
| [
"nikhil0223@gmail.com"
] | nikhil0223@gmail.com |
8319ca257a9797c0458b66d41fe28358ce09d48b | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/224/users/4464/codes/1692_1100.py | 239ea5c42efa5964b11417144314bec588596035 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | # Teste seu código aos poucos.
# Não teste tudo no final, pois fica mais difícil de identificar erros.
# Ao testar sua solução, não se limite ao caso de exemplo.
ceduula = int(input("valor da cedula: "))
print("Entrada:", ceduula)
if (ceduula == 5 or 2 or 10 or 20 or 50 or 100):
if (ceduula == 2):
mensagem = "Tartar... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
ef3c22bf6d7baa651ec5bd61199cd7a54b6ae4f4 | 13ea98f80a13da42edacf845a35c00d401e5465a | /magnetic_matter~.py | 3e5246a2a6e36707c33da062c3df033b986f2fe3 | [] | no_license | ikursakov/PhysPython | 5b02d76be0cc5756fd30a1c36a6cc5fbe3897ce2 | da5dbd9ddd12429b55edba7e4593e1ce205f1830 | refs/heads/master | 2021-07-18T14:29:01.296885 | 2021-01-25T00:12:36 | 2021-01-25T00:12:36 | 235,593,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,317 | py | # -*- coding: utf-8 -*-
# ---
# jupyter:
# jupytext:
# formats: ipynb,py:light
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.6.0
# kernelspec:
# display_name: Python 3 (Spyder)
# language: python3
# name: python... | [
"AndrewNovikov@yandex.ru"
] | AndrewNovikov@yandex.ru |
98e1f4b684ce01a53c3137b621a085607febcb4c | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /ec2_read_2/scheduled-instance-availability_list.py | 223f1e5aac895b58ce0cbfd9584db5de193fc0ff | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import execute_two_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-scheduled-instance-availability.... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
ff231ff6ef6cc7841fb8b8ec677794c305ffdc53 | 03efe8d9df9fe4c6849bc77c99900159ca2a15ec | /views/views.py | af7cb1c20807bc7511fd89b526785f03d6421008 | [] | no_license | Farighno/Bot-n-Emergencia | fdc15583a5a31efd43b7fd33a2bca6d0e2179674 | 5a5fdec74289afc6bd59b23b0ab9610c536f48ec | refs/heads/master | 2021-01-12T17:53:46.000708 | 2016-10-24T18:49:18 | 2016-10-24T18:49:18 | 71,296,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,446 | py | from BotPan import app
from flask import render_template, redirect
from api.apis import mandaMensaje, registro, ingreso, telefonosUrgencias
from forms.forms import identificacion, regTelefonosUrgencias
@app.route("/")
def intro():
return render_template("index.html")
@app.route("/reg", methods=('GET','POST'))
def... | [
"farid.neme@broxel.com"
] | farid.neme@broxel.com |
2fe2da55b13f9076998a27c8b7fd9e3e739cb822 | e901838dd4fc60221eb65cd7e34495c04a6c03fc | /02-numpy/page96.py | f113853e24e60d0c7dcc9140bed86f19423d20fd | [] | no_license | j415/data_analysis | 7fdd7f27005ff2d9940170a1ac702c10d36c33b4 | bfccb8a0fb27702a623c2cec2c13bca84f2b2d48 | refs/heads/master | 2020-03-28T23:42:00.390912 | 2018-09-29T08:50:59 | 2018-09-29T08:50:59 | 149,304,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | import numpy as np
# 随机种子
np.random.seed(10)
# 生成随机列表
t= np.random.randint(0,20,(3,4))
print(t) | [
"1720049083@qq.com"
] | 1720049083@qq.com |
c0e5f4bf9977533db466b1310984df01269e7eec | cf6ebecf4fb96537519977b992e71b71cbcda9ff | /python/importing/dqmclassic_importer.py | 799a1b5b88551b84270600dac5ee4a2653626fe4 | [] | no_license | srimanob/dqmgui | 594753893a4c855b3c526280e32d0c3f6c6c0fbc | a805e1e7247154c72f3417cdb8773d892179d06f | refs/heads/master | 2023-04-30T10:27:24.300255 | 2021-04-02T17:06:21 | 2021-04-02T17:06:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,277 | py | import re
from ioservice import IOService
from data_types import MEInfo, ScalarValue, EfficiencyFlag, QTest
from nanoroot.tfile import TFile
from reading.reading import DQMCLASSICReader
class DQMCLASSICImporter:
# Don't import these (known obsolete/broken stuff)
# The notorious SiStrip bad component workflo... | [
"andrius.kirilovas@cern.ch"
] | andrius.kirilovas@cern.ch |
7a79bbf9912312d72c4878a1041c7ee4dce6dcac | fcb8b4bcb56d91cecd380a7134b089316d4280f4 | /algorithm_trees.py | a170d61b69dbbe3525702d8ee8681ee2338882d2 | [] | no_license | DebW99/tile_based_DNA_assembly_trees | fe09c48dd28a94258fc2352b2312d03db9d97d94 | 21f8f2f7cdcfe3b7c1a281ed2779cfe5fddb1906 | refs/heads/main | 2023-04-28T11:26:00.605555 | 2021-05-12T13:22:35 | 2021-05-12T13:22:35 | 366,721,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,268 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# =============================================================================
# Created By : Debbie Wagenaar
# Created Date: April 2021
# =============================================================================
"""
This code determines the minimum amount of... | [
"noreply@github.com"
] | noreply@github.com |
5fabb56daf386a587981ca756429c23831ecd423 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_to_M_Gk3_no_pad/pyr_Tcrop256_pad60_jit15/pyr_3s/L7/step09_3side_L7.py | c950ee398333287fa3c141e7a3f687dc98eb8ccd | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59,545 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
aba0d1be5693801aa0ce6f9cf16d37d6dbefeb14 | fe5fe77738bb861bb5572982c10febb1c0c63d2d | /flask_fake_server.py | c86247837ccb0c7b81b2d52c51b9b8ec089dbdba | [] | no_license | saraakuroda/web-workshop | e1fb5040b85953a3d11e9bfd1dafc979b81c4a9f | 8f9cc75a65173889a2b3f1f5cbbe8d64556c36ec | refs/heads/master | 2022-11-19T19:46:12.550356 | 2020-07-01T03:46:34 | 2020-07-01T03:46:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,443 | py | from flask import *
app = Flask(__name__)
@app.route("/list") # ,methods=["GET", "POST"])
def new():
return str({'data': [{'id': 15, 'user': 'n', 'kami': 'aa', 'naka': 'bb', 'shimo': 'cc'}, {'id': 14, 'user': 'g', 'kami': 'aa',
... | [
"irukkora@gmail.com"
] | irukkora@gmail.com |
6825210ae768c3ece86e560e983d86f51e1ada00 | a5e5c215daff8c21698c6ec0abc5589804812c2d | /cm_plugin_cart_api_exchange/cart_api_operations.py | b1d6bb3dea49898cae00003ba0d5e5e9afb0d7ef | [] | no_license | arielmorelli/cm_plugin_cart_api_exchange | e019d62b7e1946b40847873911040cd6fcf682ef | 75906704786c057a253ed59db403c2a5db2238e3 | refs/heads/main | 2023-02-23T01:35:58.631681 | 2021-01-29T19:26:42 | 2021-01-29T19:26:42 | 333,059,630 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,108 | py | import requests
import logging
from requests.auth import HTTPBasicAuth
def chunk_dict(target, size):
values = list(target.values())
for n in range(0, len(values), size):
yield values[n:size + n]
class ExchangeApi(object):
CREATE_CART_URI = "https://market.feedbooks.com/carts"
def __init__(... | [
"arielmorelli2@gmail.com"
] | arielmorelli2@gmail.com |
088b98b7b149fa57eb4da266f239468dfffc5dcf | 42ad8af851f911a12ea831d752897ecba597abcc | /wargame/wsgi.py | 7b2c2991bee61567f727276c9968c9a70b91e229 | [] | no_license | wojtekzozlak/wargame | 75d2afebbaaa19a8d57f24bfd778f4f1cb39de76 | d61b8c60be70f5fc1c514e8b08e61a2cd5691061 | refs/heads/master | 2020-12-20T12:42:00.472359 | 2016-08-04T20:43:58 | 2016-08-04T20:43:58 | 53,892,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for wargame project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | [
"wojtekzozlak@gmail.com"
] | wojtekzozlak@gmail.com |
f115cc4f7a505488250757f330d9420cbdc28a8c | abf44d209786884a7e51a5c8fce090f30430c193 | /判断一个字符串是否为数字.py | bd49d600137ec6e6f8993d9c05d31f8ec40e427d | [] | no_license | Bonnie-Bonnie-li/python | 27714d9bb5a4a241cefaa66225d08f2f14761360 | e6162432a849137e23bac0b78c44137ac4a8baa9 | refs/heads/master | 2022-03-14T00:14:39.269640 | 2019-10-31T07:48:51 | 2019-10-31T07:48:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | def is_number():
a=input()
try:
float(a)
print(True)
except ValueError:
print(False)
if __name__ == '__main__':
is_number() | [
"noreply@github.com"
] | noreply@github.com |
22d5fc4243eec9d12069733703960af6a6d1fc2b | 8defde7b3ee16a7ef8d24d5ed9cb33803137776d | /blockparser/base58.py | 9ce735ec4bba8da67024d4a87e7ee0e7ec05c59d | [
"MIT"
] | permissive | baobunuo/crypto-deanonymization | afddc71230eaf097c0d4e3bea4aeee02c3134073 | 54e7b0e2d8d5fb290fc829583ed60f6036ae428a | refs/heads/master | 2021-12-23T05:04:06.470460 | 2017-10-23T20:21:18 | 2017-10-23T20:21:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,826 | py | """
Filename: base58.py
Purpose: encode/decode base58 in the same way that Bitcoin does
Author: Gavin Andresen (github.com/gavinandresen/bitcointools)
License: MIT
"""
__b58chars = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
__b58base = len(__b58chars)
def b58encode(v):
""" encode v, which is a... | [
"pengwu100@gmail.com"
] | pengwu100@gmail.com |
d32d0455d55966975e881038ac6adb3879e7e60e | 466ed5560fc7ecc07b427f9d5cbdcc04b5b57eab | /json_module/confirmation.py | f2df2f7f071c14d1e6941e5b837224abac366e6c | [] | no_license | IcySakura/hadoop_food_ordering_system | e244e85e0f0e80c216e940dca321891257d0cf47 | 5c17ef5935038a9fcc4abb717119c077abb09fb9 | refs/heads/main | 2023-03-22T17:51:48.736227 | 2021-03-17T21:44:12 | 2021-03-17T21:44:12 | 335,792,467 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | from constants import ORDER_ID_KEY, CUSTOMER_ID_KEY, RESTAUARNT_ID_KEY, ESTIMATED_FINISH_KEY
from info import info
from menu_item import menu_item
#TODO: add type checking, conversion to correct type
class confirmation:
def __init__(self,confirmation_dict=dict()):
self.order_id = ""
self.... | [
"wschallo@uci.edu"
] | wschallo@uci.edu |
f7899f842aa5257da695fbd13711e0dd38238e10 | 79094076e9e489abbd30b99a75d16f42f32a1a5c | /lesson9/lr.py | 6d5dde297e6028e90f1413f61506d6a38bbb972e | [] | no_license | greenmapc/machine_learning_course | 220d75cdcc93dd1942fb3923e43a6a472cf98612 | 9d4d7d77401b936911b117d08756b8daab17eeef | refs/heads/master | 2023-02-01T16:58:39.264797 | 2020-12-16T22:23:03 | 2020-12-16T22:23:03 | 295,010,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,839 | py | import numpy as np
import plotly.graph_objects as go
from sklearn.linear_model import LogisticRegression
n = 100
cluster_1_x = []
cluster_1_y = []
cluster_1_z = []
cluster_2_x = []
cluster_2_y = []
cluster_2_z = []
# генерируем точки случайно
def generate_points():
x = np.random.randint(0, 100, n)
y = np.ran... | [
"greenmapc@gmail.com"
] | greenmapc@gmail.com |
fdab3b2f1ec2ce6d9e4cecce45be8359f9a73ce4 | bf2eab60a0e6e905c63766620731e8ac68f834a7 | /opencv/blur_demo.py | 2ff13c2eb9730ad7a90c49c50238c04ababda0ab | [] | no_license | Xenos24R/vscode | cd95b85b589af83e6cd41207438e4dc17ecfb7a0 | dc6aca51a6d8c332fba2acd8b7eb5f09b06d9a54 | refs/heads/master | 2021-05-21T08:05:06.472335 | 2020-06-20T05:06:33 | 2020-06-20T05:06:33 | 252,612,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,741 | py | import cv2.cv2 as cv
import numpy as np
def blur_demo(image):#均值模糊,去噪
dst = cv.blur(image,(1,20))#第二个参数是卷积范围
cv.imshow("image",dst)
def middle_blue_demo(image):#中值模糊,去除椒盐噪声
dst = cv.medianBlur(image,5)
cv.imshow("image",dst)
def custom_blur_demo(image):#自定义滤波,模板总和为1做增强,模板总和为0做边缘梯度
#kernel = np.o... | [
"329365032@qq.com"
] | 329365032@qq.com |
37fdd0d6b3eafd9a93257c5ec2279c25b4408568 | c974438dc90164c27669ced877ccd2ddf64e6e82 | /plugins/base.py | 1b6b0d3fb9aadc3a11fa4327098c99e781b65826 | [] | no_license | numkem/pycollect | bf07eef7a4ff8bb7a7ee33cdba40b7f693f38106 | 9fbcba80afbc4058a174deb9035a23601268c4b1 | refs/heads/master | 2021-01-10T20:19:05.324641 | 2015-12-28T02:50:57 | 2015-12-28T02:50:57 | 38,643,246 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | from lib.command import Command
import sys
class BaseCommand(Command):
def __init__(self, *args, **kwargs):
self.register_command('exit', sys.exit)
self.register_command('quit', sys.exit)
main_class = BaseCommand | [
"numkem@numkem.org"
] | numkem@numkem.org |
a2bd706091303ba3fede7a4be4de5334638fca56 | 82d6803a32622ec56b27f246c7a7d53cc25b74d6 | /regex2.py | 24d73a3696599952862e48d3b8659f6ebffa0a14 | [] | no_license | andrzejStempien/CompletedScriptsFromAutomateBoringStuffWithPython | c635296759442ee68e17aac2e560a7ede5b36571 | 38cb91639e9d30de4f4b18a46922e50bf59f7bc9 | refs/heads/master | 2020-04-05T08:38:45.037127 | 2020-03-04T09:09:19 | 2020-03-04T09:09:19 | 156,722,850 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | batRegex = re.compile(r'Bat(wo)?man')
mo1 = batRegex.search('The Adventures of Batman')
mo1.group()
// 'Batman'
mo2 = batRegex.search('The Adventures of Batwoman')
mo2.group()
// 'Batwoman'
// optional matching with question mark
| [
"andrzej.stempien@outlook.com"
] | andrzej.stempien@outlook.com |
5478cb2e613d6a8e1ebd600288759cef5bb1afb2 | b70f7c563109580201f77b939483f7b8c59fc9f4 | /Intervals/SIVIA.py | a72307e2610f8925d85b23fa0b8ad673aef223be | [] | no_license | thiagoliveira/Gascogne | 68fb0e0c65bcaca07a2eda2474bdc86e529df8cb | e43cd1374b6ed44167a642bbfd214b38892c28db | refs/heads/master | 2021-01-24T04:19:07.733807 | 2016-02-19T07:24:11 | 2016-02-19T07:24:11 | 52,081,797 | 0 | 0 | null | 2016-02-19T10:53:40 | 2016-02-19T10:53:39 | null | UTF-8 | Python | false | false | 1,154 | py | """ Simple SIVIA
"""
from enum import Enum
class IBOOL(Enum):
IN = 0
OUT = 1
MAYBE = 2
UNK = 3
EMPTY = 4
UNK2 = 5
import pyIbex
from pyIbex import IntervalVector, LargestFirst, testR
from collections import deque
from vibes import vibes
def SIVIA(X0, data, eps):
stack = deque([IntervalVecto... | [
"elouan.autret@ensta-bretagne.org"
] | elouan.autret@ensta-bretagne.org |
a76fbeb11b842fae93134861888f350e5b1bedd6 | a1a4a31934ff0e56380535783cd4a5f42783e62e | /geodata/tests/__init__.py | bccab5f24a225381f36589e4140ff56fcf2163da | [] | no_license | pablotcarreira/GeoData | 830a9d359e6ecaf24c3d906f858403ee1417f41a | 58fa657fc9bc5b568b912219ca4970048397f21d | refs/heads/master | 2021-08-29T13:54:43.334353 | 2021-08-10T19:27:50 | 2021-08-10T19:27:50 | 84,600,317 | 2 | 0 | null | 2021-04-20T17:26:53 | 2017-03-10T21:00:00 | Python | UTF-8 | Python | false | false | 27 | py | # Pablo Carreira - 22/06/18 | [
"pablotcarreira@gmail.com"
] | pablotcarreira@gmail.com |
c67ed12480fa56e0b55a51a7c1650c332d839165 | 040123f6873fe3e69a6e630a1a6c42cab6cb1f5b | /rest_api.py | c0fc0de7db22eff36c6b5b7d81baeeecb531be5c | [] | no_license | npalermo10/experiments_rest_api | 6e975800d3010f4b0e9b63761b1eef4ab33893b3 | 82df3c457b8c6a1a4b754b329687e09f3b019660 | refs/heads/master | 2021-01-16T21:33:54.552000 | 2016-08-27T22:38:23 | 2016-08-27T22:38:23 | 44,119,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | from flask import Flask, request
import flask_sqlalchemy
import flask_restless
def run_api(database_name):
app = Flask(__name__)
app.config['DEBUG'] = True
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///{}.db'.format(database_name)
db = flask_sqlalchemy.SQLAlchemy(app)
db.drop_all()
# the rest ... | [
"npalermo10@gmail.com"
] | npalermo10@gmail.com |
30aad7d8cf00122c84821f2562d2c9f239523d57 | 1bdb8ed9cb4522c2621d5b1f9a6c80ebac631c2a | /movies/urls.py | 833d8d6227fb791749a4152d197b0a7dd71e7114 | [
"MIT"
] | permissive | kumaranubhav1654/Django-MOVIE-Ticket-booking | 5f9b740c592f868015f8ea9a762d6c60e455402f | 218411f057cb46c1687e1fbd9c9d0a12c3897dd3 | refs/heads/master | 2022-12-11T12:16:33.243737 | 2020-08-30T18:45:35 | 2020-08-30T18:45:35 | 291,526,588 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | """movies 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 ... | [
"kumar.anubhav1654@gmail.com"
] | kumar.anubhav1654@gmail.com |
1d9f383f868286802d1e94ff5a19b2fc82bf0a2e | 3540b090312fdec1233605457924f9c174aa30cd | /chatbot_website/chatbot_interface/apps.py | 31985bce98d8a798ca46d25bc36c4fabe9e07137 | [
"Apache-2.0"
] | permissive | Conchylicultor/DeepQA | f74afbfbbe1a91a8df88a3317070ddea4f6ec413 | 886ec77ac49ff70be1b6d4de30fffe6a96480a4f | refs/heads/master | 2023-09-02T00:15:32.483337 | 2022-12-30T14:42:36 | 2022-12-30T14:42:36 | 62,824,998 | 3,186 | 1,315 | Apache-2.0 | 2019-07-21T15:57:45 | 2016-07-07T17:17:20 | Python | UTF-8 | Python | false | false | 108 | py | from django.apps import AppConfig
class ChatbotInterfaceConfig(AppConfig):
name = 'chatbot_interface'
| [
"etiennefg.pot@gmail.com"
] | etiennefg.pot@gmail.com |
1bef64bd8a37bd50cecf76e9e0840390f06f0cc4 | 4a0de55146538657e49e7889265d32a2f7600a04 | /ali/2019_templete_query.py | 6d08ad673bd68f5e6f846c45146e836ffd92369e | [] | no_license | listenviolet/NLP | 39491d8e97525b6ca57592a3165d6d6e92eeb269 | d36d139e5915f6b8aac9611e1e7357830f7fb5a5 | refs/heads/master | 2020-04-23T10:13:23.542104 | 2019-04-12T07:13:08 | 2019-04-12T07:13:08 | 159,591,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,760 | py | 1. 问答题
在基于自然语言的人机交互系统中,通常会定义一些语义模板来训练NLU(自然语言理解)模型,比如下面的模板可以支持用户通过语音控制机器播放音乐:
1.放几首@{singer}的歌
2.播放一首@{singer}的歌
3.来一曲@{singer}的歌曲
4.来首@{singer}的音乐
5.来个@{singer}的流行音乐
其中"@{singer}"是一个参数,代表歌手,比如第一个模板可以匹配这样的用户query:“放几首刘德华的歌“。可以看到,同样是放歌,有很多种不同但相似的说法,但把他们一条一条单独列出来,编辑的成本会比较高,而且会漏掉一些说法,不严谨。实际上,上面的5个模板,可以用下面的语义模板表达式来表示... | [
"listenviolet@gmail.com"
] | listenviolet@gmail.com |
3b925241ca7074ca16dc93aaa04a946f3ca24f6b | eadc41731120d5d6044cd120644bd6dda1387792 | /service.py | 7cec07443b34210f51da51c84629c553ab21a244 | [] | no_license | chetan30597/cloud-project | d977fb7b215cea985daa60b6e5ad3053bc0e6169 | c0c1ad23fcf330d28d9236f96dcb5c53c0c26c72 | refs/heads/master | 2020-07-03T12:44:51.358902 | 2019-08-12T10:30:08 | 2019-08-12T10:30:08 | 201,908,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | #!/usr/bin/python2
import cgi,commands
print "content-type:text/html"
print ""
b=(commands.getoutput('hostname -I')).split(' ')
x=cgi.FieldStorage()
c_service=x.getvalue('dn')
if c_service == 'saas' :
print "<a href='http://{}/saas.html'>".format(b[0])
print "<center>"
print "<b><i>ACCESS SAAS CLOUD</b></i>"... | [
"noreply@github.com"
] | noreply@github.com |
601220c66edc366564c071b4cf9be99e4f2021ef | fb2ba196c33fa647909914533559485b716f24b6 | /py/PartitionArrayIntoThreePartsWithEqualSum.py | 28bd6333ae38559bcb0afe5ec54354c8db2cb23f | [] | no_license | ZihengZZH/LeetCode | 7d62ab7211004c0ee5fe49ef3adeb72c698da44f | 96e2faaa8c18636c173883cca55b2c228c81477a | refs/heads/master | 2021-06-04T05:31:03.306503 | 2020-03-07T03:07:28 | 2020-03-07T03:07:28 | 108,906,661 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | '''
Given an array A of integers, return true if and only if
we can partition the array into three non-empty parts with equal sums.
Formally, we can partition the array if we can find indexes i+1 < j
with (A[0] + A[1] + ... + A[i] == A[i+1] + A[i+2] + ... + A[j-1] == A[j] + A[j-1] + ... + A[A.length - 1])
Example ... | [
"zihengzhang1025@gmail.com"
] | zihengzhang1025@gmail.com |
78de47db0f28969bb2785394b90a579faf6c8da7 | 66333a96a8806181228a860085ee5d01888c7b2f | /text_recognition/easyocr/config/model.py | f8241aa784211bef68ec824aa83bcfebc7f97e2a | [
"Apache-2.0"
] | permissive | axinc-ai/ailia-models | 7c5c15d813a58fcae678a8107ebc9c39ee9912f2 | da1c277b602606586cd83943ef6b23eb705ec604 | refs/heads/master | 2023-08-31T07:43:39.848448 | 2023-08-29T05:06:27 | 2023-08-29T05:06:27 | 206,917,330 | 1,554 | 286 | null | 2023-09-14T19:56:14 | 2019-09-07T04:50:59 | Python | UTF-8 | Python | false | false | 31,420 | py |
separator_list = {
'th': ['\xa2', '\xa3'],
'en': ['\xa4', '\xa5']
}
separator_char = []
for lang, sep in separator_list.items():
separator_char += sep
recognition_models = {
'zh_sim_g2': {
'characters': " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrs... | [
"miyamotost1016@yahoo.co.jp"
] | miyamotost1016@yahoo.co.jp |
699130c762ef47518063fd168d4ad07559d13f83 | 054eefaa17157b32869ea986347b3e539d2bf06b | /big_o_coding/Blue_13/Schoolwork/day_16_DISJOINT_SET_UNION.py | 8f2440568b1c442c8c0885d6458abe62531d9a84 | [] | no_license | baocogn/self-learning | f2cb2f45f05575b6d195fc3c407daf4edcfe7d0e | f50a3946966354c793cac6b28d09cb5dba2ec57a | refs/heads/master | 2021-07-12T23:32:14.728163 | 2019-02-10T14:24:46 | 2019-02-10T14:24:46 | 143,170,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | MAX = 20
parent = []
def makeSet():
global parent
parent = [i for i in range(MAX + 5)]
def findSet(u):
while u != parent[u]:
u = parent[u]
return u
def unionSet(u, v):
up = findSet(u)
vp = findSet(v)
parent[up] = vp
if __name__ == "__main__":
Q = int(input())
makeSet()
... | [
"baocogn123@gmail.com"
] | baocogn123@gmail.com |
9f2e2505e2cb58d895d7deee1a5c00d1eebb2472 | a599264b545cbe7340193a98af580b653e690db9 | /eapython/in-class-notebooks/modules/bbox.py | 929ce1fa3396b6c5548428f432ef22910d4affac | [] | no_license | earthlab-education/ea-course-notebooks | 705e426485a8a2e0e408bcef165d8bb1c9f497b7 | 1d49f1134c5379e3e0ed45d05b1d55cb426eb3aa | refs/heads/main | 2023-06-28T08:35:16.420359 | 2023-06-13T18:35:26 | 2023-06-13T18:35:26 | 444,532,413 | 6 | 15 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | """
A Bounding Box class
copyright
authors
"""
import geopandas as gpd
from shapely.geometry import Point
class BBox:
"""
Corner coordinates of a bounding box
"""
def __init__(self, minx, miny, maxx, maxy, crs='EPSG:4326'):
if minx > 180:
raise ValueError('x values cannot exceed 180')
self.minx = mi... | [
"elsa.culler@colorado.edu"
] | elsa.culler@colorado.edu |
a5481029b8657142853a53868a1ce5c6e8e6bfa6 | 419e02cddf6364f70253956c243b828c41011fe1 | /split_to_frames.py | 194e4543a82fcb73f8df57da3401e96d6ac61f2c | [] | no_license | alloky/inteligenceSystemsProject | 2c379b15ae75e6a9522d59c72b5373d33e0c5678 | 2566c93dd395b3e8ba1ee58060baf43bb31f76e0 | refs/heads/main | 2023-04-29T04:41:52.297790 | 2021-05-10T09:56:41 | 2021-05-10T09:56:41 | 358,875,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,907 | py | import cv2
import json
import os
import shutil
from multiprocessing import Pool
from os import listdir
from tqdm import tqdm
def process_video(video_arg):
source_video, target_dir, fps = video_arg
vidcap = cv2.VideoCapture(source_video)
def getFrame(sec):
vidcap.set(cv2.CAP_PROP_POS_MSEC,sec*1000... | [
"supersky2325@gmail.com"
] | supersky2325@gmail.com |
df5bcabe560a6dbec253c154a164052c95265eaa | 7850831b7dcda9730cdd1ce40f873843b079c6a4 | /tests/test_camera_params.py | aade7f33df18d6ebda3c11c0ae7ec40dbbca1a9c | [] | no_license | ashar6194/human_pose_util | 2f64a3ce88995ea08a87910fd49816eec28c5b7a | bff2fcc7f92dfef14996e821a2768200c7a751dd | refs/heads/master | 2021-05-06T05:27:13.499542 | 2017-10-25T22:56:02 | 2017-10-25T22:56:02 | 115,153,665 | 0 | 0 | null | 2017-12-22T22:12:24 | 2017-12-22T22:12:24 | null | UTF-8 | Python | false | false | 2,011 | py | from __future__ import division
import unittest
import numpy as np
from human_pose_util.transforms.camera_params import \
calculate_extrinsics
from human_pose_util.transforms.camera_params import \
calculate_intrinsics_1d, calculate_intrinsics
class TestCameraIntrinsics(unittest.TestCase):
"""Test calcul... | [
"thedomjack@gmail.com"
] | thedomjack@gmail.com |
f11c14ddced2d612bfb6725e3bbc6615a7973140 | 6104023226c47f1eb10613388c8cb5bb02760ea5 | /Text Analytics Model/text_classification_keras.py | 5dcbcf11505e60135305baeae5abc3f43fae791c | [] | no_license | eddible95/Show_Me_Telegram_Bot | 8a5467265b4e54e2fdafa83663740df5f8690ec1 | 31362fc38072cf31a114b9184798b442064307e1 | refs/heads/master | 2022-04-17T19:45:30.900866 | 2020-04-14T05:15:53 | 2020-04-14T05:15:53 | 255,151,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,789 | py | from sklearn.feature_extraction.text import CountVectorizer
from sklearn.metrics import classification_report
from sklearn.model_selection import train_test_split
from nltk.tokenize import RegexpTokenizer
from sklearn import preprocessing
from keras.models import Sequential
from keras.layers import Dense, Dropout
from ... | [
"eddieng63@gmail.com"
] | eddieng63@gmail.com |
0b6d8aa8f5f4709ba022486e13dd579e4d3cb215 | 258aa96b9934da81efccc879f3e07a12014d6700 | /src/sas/sascalc/dataloader/readers/hfir1d_reader.py | 840e796ea912ca9f280a3a385b572e7d9321f0a4 | [
"BSD-3-Clause"
] | permissive | serenidpity/sasview | d56f0f281afe5dfe4f16c8e19acbd9431fa5a373 | bc04647999920281741c996da43238a1d78f7975 | refs/heads/master | 2020-12-03T08:16:06.458244 | 2017-06-19T13:42:18 | 2017-06-19T13:42:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,930 | py | """
HFIR 1D 4-column data reader
"""
#####################################################################
#This software was developed by the University of Tennessee as part of the
#Distributed Data Analysis of Neutron Scattering Experiments (DANSE)
#project funded by the US National Science Foundation.
#See the l... | [
"andrew.jackson@esss.se"
] | andrew.jackson@esss.se |
7294cfe369b946422c5a8bb14eb763880391f0ab | 5ebed2d5c3dbf62ac7dda073b70d79f4e4b1d341 | /nutricionApp/migrations/0006_regla_recomendacion.py | b82362c2eb883c37090e0887cc7876aaaa2dbd0e | [] | no_license | danielm117/nutrition | 7baf8356fc849e4f8c3a2264be72257d1f29a6a4 | 7866cf199a079808cdbf122eca85771a694ea191 | refs/heads/master | 2020-04-06T07:06:04.089305 | 2016-09-22T01:06:07 | 2016-09-22T01:06:07 | 61,918,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('nutricionApp', '0005_remove_regla_recomendacion'),
]
operations = [
migrations.AddField(
model_name='regla',
... | [
"dmartinez@datacrm.com"
] | dmartinez@datacrm.com |
f683e873eb3af00903c9ed3512b46349b1fc7c5f | 4e66c6d90b76ea5938779d67e5c6dd8d71c5df94 | /test.py | 2663064569f457d7f0b1e404a91f592cdb461daf | [] | no_license | huuhoa143/telethon | 043510c179941a1ba45a86fa53f0d16e730f6b81 | a36a8563cb2185012519f38d86b1118031aa03ea | refs/heads/main | 2023-03-27T17:58:46.648017 | 2021-03-26T10:49:12 | 2021-03-26T10:49:12 | 350,533,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,927 | py | from telethon.sync import TelegramClient
from telethon.tl.functions.messages import GetDialogsRequest
from telethon.tl.types import InputPeerEmpty
import csv
from decouple import config
api_id = int(config('API_ID'))
api_hash = config('API_HASH')
phone = config('PHONE')
client = TelegramClient(phone, api_id, api_hash... | [
"17021252@vnu.edu.vn"
] | 17021252@vnu.edu.vn |
ed26457231e3546c2ac46685307f27b2f06b6920 | 5037e085787881f29a635f18c11daa9b7c784205 | /debolina/myproject/new/lib/python3.5/site-packages/lockout/exceptions.py | 86fcc58119e229af8671b13df329f4a8cacf2447 | [] | no_license | debolinakar13/infibeam | a29b5d0d72c4d3638e97af422818efa071ff67dd | d7a896e376ee5e32c42bc681a574fac61664e27b | refs/heads/master | 2020-05-18T20:05:37.534257 | 2019-05-02T17:22:08 | 2019-05-02T17:22:08 | 184,621,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | """
Lockout Exceptions
"""
class LockedOut(Exception):
pass
| [
"debolina@deepcompute.com"
] | debolina@deepcompute.com |
3fa75e32076d5053bcba8b18fab81659263489da | 896939d12044f8cf632827bd7151c80cb9fe8c57 | /djangoDemo/djangoDemo/urls.py | 3b2edce3620c58ee98c1aff3628c165a7031c36d | [] | no_license | king0429/clear_python | b931cac0dc5d8915fab1e928361907f0d163d9e1 | ea0e4071bf79535bd3d7f9a08825dd118b74190b | refs/heads/master | 2020-05-07T12:23:28.947782 | 2019-04-10T07:04:46 | 2019-04-10T07:04:46 | 180,502,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | """djangoDemo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/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... | [
"jinhang@ninstarscf.com"
] | jinhang@ninstarscf.com |
e37f78288f16167c02435940f591c80a408d4600 | b6df7cda5c23cda304fcc0af1450ac3c27a224c1 | /data/codes/pdhoot_client.py | cadffd6a6d289bbc7f98ff473cbccb52757f54d8 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | vieira-rafael/py-search | 88ee167fa1949414cc4f3c98d33f8ecec1ce756d | b8c6dccc58d72af35e4d4631f21178296f610b8a | refs/heads/master | 2021-01-21T04:59:36.220510 | 2016-06-20T01:45:34 | 2016-06-20T01:45:34 | 54,433,313 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | import socket , sys , signalfrom Node import Nodefrom threading import Threadfrom clint.textui import colored
class Client(Node):
def __init__(self , host , port , passwd): self.host = host self.port = port self.passwd = passwd + '\n' self.sock = socket.socket(socket.AF_INET , socket.SOCK_STREAM)
def start(self): sel... | [
"thaisnviana@gmail.com"
] | thaisnviana@gmail.com |
996a526987cf8d6eb927c2c21acaa536add44275 | a6db0ba6f4548dace1fab6a40dd8e207dc87824e | /app/modules/api.py | 94ee9fd633566464d72db3f6b86dec48d89f5428 | [] | no_license | AquaUseful/exam-countdown | 65c108f9148ddf0d9f2b76fe50e5a73e51f3df65 | 797251e2c7bc535ed9f9fcfc9e584f2fc7c5bc95 | refs/heads/master | 2023-01-02T14:35:04.818035 | 2020-10-26T22:13:13 | 2020-10-26T22:13:13 | 307,140,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,982 | py | import quart
import datetime
import os
try:
from app import config
except ImportError:
pass
blueprint = quart.Blueprint("api", __name__)
async def calc_exam_timestamp() -> float:
try:
exam_month = config.EXAM_MONTH
exam_day = config.EXAM_DAY
exam_hour = config.EXAM_HOUR
ex... | [
"l.vladik@outlook.com"
] | l.vladik@outlook.com |
01a894f509a39faaf4841d463b1bb9de17125961 | 468b1f37f8dc207a32f52002001cedeca0b87b80 | /python/ups/tarballs.py | 7f7059362e9f737f8967e851373c336d0a837e5a | [] | no_license | brettviren/python-ups-utils | a0494b4a60336a752612d3212fb1490fa89a2277 | 0014af2dc9427e59a49c5c7afb575e2905ff6c3e | refs/heads/master | 2021-01-10T21:42:39.469722 | 2017-04-27T22:15:21 | 2017-04-27T22:15:21 | 22,932,668 | 0 | 1 | null | 2015-07-31T13:28:12 | 2014-08-13T21:59:32 | Python | UTF-8 | Python | false | false | 538 | py | #!/usr/bin/env python
'''
Interact with UPS packaged tarballs.
'''
import os
import urllib
default_url_pattern = 'http://oink.fnal.gov/distro/packages/{name}/{tarball}'
# fixme move this and similar use in commands.py to some util module
def download(url, target):
if not os.path.exists(target):
url... | [
"bv@bnl.gov"
] | bv@bnl.gov |
078c6790ecd20b0d1f89e3614c50aa51102c5534 | d2c9e2c7139fab07b1ded4ee3e4f09b933b18af9 | /deep_learning/standard/runner.py | ec723ad9b1c1a7f3298d5b8f9a4dce636fb801d1 | [] | no_license | AlbertoCastelo/Neuro-Evolution-BNN | dbc3a7f64c407526ed98693487058abb1860f2ae | 70bb0db0dc72ed4b55401f08658b89ee3cd6dbc7 | refs/heads/master | 2023-08-13T17:55:02.410908 | 2020-08-30T10:53:33 | 2020-08-30T10:53:33 | 194,387,488 | 0 | 0 | null | 2021-09-08T02:29:04 | 2019-06-29T09:23:27 | Jupyter Notebook | UTF-8 | Python | false | false | 1,826 | py | from deep_learning.standard.evaluate_standard_dl import EvaluateStandardDL
from neat.evaluation.utils import get_dataset
import numpy as np
from sklearn.metrics import confusion_matrix, accuracy_score
from neat.neat_logger import logger
lr = 0.01
weight_decay = 0.0005
batch_size = 50000
class StandardDLRunner:
de... | [
"alberto.castelo.becerra@gmail.com"
] | alberto.castelo.becerra@gmail.com |
64b7acb284733c2e588363812f6786b308a55f9b | ac1c9fbc1f1019efb19d0a8f3a088e8889f1e83c | /out/release/pyproto/third_party/metrics_proto/cast_logs_pb2.py | 8cb4f16b6f5a7b16bba526d497e7931e11da775a | [
"BSD-3-Clause"
] | permissive | xueqiya/chromium_src | 5d20b4d3a2a0251c063a7fb9952195cda6d29e34 | d4aa7a8f0e07cfaa448fcad8c12b29242a615103 | refs/heads/main | 2022-07-30T03:15:14.818330 | 2021-01-16T16:47:22 | 2021-01-16T16:47:22 | 330,115,551 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | true | 51,589 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: cast_logs.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf i... | [
"xueqi@zjmedia.net"
] | xueqi@zjmedia.net |
ee2b503fd9062a81cacf1adf5cebe5fe6a404958 | db8d95cfb73b541e07e219c20e3106eb2f792036 | /intcode/tests.py | bd6c5cb780cf76a459163756761a79f5bba79581 | [] | no_license | ey3ball/adventofcode2019 | 48845950260867e5fb56935ebc1f0eea1574b499 | 34027f98ed24a88978234a920787548cd4c6e2d5 | refs/heads/master | 2020-09-23T09:42:20.846058 | 2019-12-24T13:24:22 | 2019-12-24T13:24:22 | 225,468,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,122 | py | #!/usr/bin/env python3
from .lang import IntCodeInterpreter
def test_day2():
program = "1,0,0,0,99"
interpreter = IntCodeInterpreter(program).run()
assert interpreter.mem == [2,0,0,0,99], "Day2 T1"
program = "2,3,0,3,99"
interpreter = IntCodeInterpreter(program).run()
assert interpreter.mem =... | [
"florian@ey3ball.net"
] | florian@ey3ball.net |
0b2f2a71542b974ed43a821a461d32ea33df334d | 19decad8830dee81b7951ca7cbe40eab4bf60ff5 | /src/pipes/coreference.py | f98d21999b59ca92ebe83bb3174a6d83d0ddd378 | [] | no_license | rihardssp/annotationtranslation | 9a0423fc94842065e0636db036a9b7f78a28cec2 | 69f1200e2784a486f31c3d2fb7a5e9785c04179a | refs/heads/master | 2023-05-25T08:58:50.576454 | 2020-05-28T17:38:10 | 2020-05-28T17:38:10 | 257,121,970 | 1 | 0 | null | 2023-05-22T23:27:27 | 2020-04-19T23:16:32 | Python | UTF-8 | Python | false | false | 5,420 | py | import typing
from src.configuration import config_reader
from src.container.base import IContainer, ContainerStatistic, stat_incr
from src.mapping_defaults.coreference import ICoReferenceMapping, CoReferenceMapping
from src.pipes.base import PipeBase
from src.readers.coreference import ICoReferenceAnnotationReaderBase... | [
"admin@example.com"
] | admin@example.com |
94341232b326a230d42f1aa2cb8148416aac46b4 | 9f6add7afbceff0b0a53b9bb0eb5ebd33b4a5284 | /school_management/school.py | f81e4443d51893329c0ecd139916d14e29fd2199 | [] | no_license | nakuldave/training_module | 99045ce6b2199a2f01de32e90f3a38fd945a0d00 | 3c47b3f86a60747a99c996f7b15941eea18824e8 | refs/heads/master | 2016-09-05T10:54:36.316518 | 2015-04-22T14:22:56 | 2015-04-22T14:22:56 | 34,394,079 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,118 | py | from openerp.osv import fields,osv
from datetime import datetime,date
from tools.translate import _
class school_school (osv.Model):
_name = 'school.school'
def create(self, cr, uid, vals, context=None):
res={}
if not vals.get('code'):
vals.update({'code':vals.get('name')}... | [
"nakul_dave@ymail.com"
] | nakul_dave@ymail.com |
de0f646dd751c2cc6dee5b44128b8cc319603c6a | 2080a7c9345c866972174853cbc752dd5bf302fd | /EXAMPLE1.py | 6d80075fc69b50e550c4c8427e3727358f1d0298 | [] | no_license | lollipop6prince/nfu40341107_ZhangRuiShan | 32f9deb67f67ad75366d6559b7bb1752efedb329 | 16bbb840c31ce4b4df586f5b8cc9eaaf383ed67c | refs/heads/master | 2021-06-17T14:56:10.465223 | 2017-06-08T09:48:40 | 2017-06-08T09:48:40 | 85,920,816 | 0 | 0 | null | 2017-04-06T12:24:35 | 2017-03-23T07:42:03 | Python | UTF-8 | Python | false | false | 422 | py | # -*- coding: utf-8 -*-
import numpy as np
from sympy import *
import matplotlib.pyplot as plt
fig = plt.gcf()
fig.set_size_inches(8,5)
var('x')
f = lambda x: exp(-x**2/2)
x = np.linspace(-4,4,100)
y = np.array([f(v) for v in x],dtype='float')
plt.grid(True)
plt.title('Gaussian Curve')
plt.xlabel('X... | [
"noreply@github.com"
] | noreply@github.com |
85607e941bfa1fa1142c6789f5c9b2b4c41ed1b9 | ef4abe23a7dfe97ee2b61441f62e07b40c9db313 | /usk3_protocol/usk3_protocol.py | 8aa7099fbfc51ea1f66a2f13b045bbcecc96f228 | [] | no_license | KurlesHS/USK3Protocol | 569df5e358b70892cedef23dc9f5153a3b28e1f2 | ebc8baa769d185e2ceb95c9319fcfa1d2df0187e | refs/heads/master | 2020-04-05T23:41:04.303955 | 2014-09-24T13:02:19 | 2014-09-24T13:02:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,575 | py | # coding=utf-8
from duplicity.pexpect import searcher_re
from twisted.internet.task import LoopingCall
from twisted.internet.protocol import Protocol, connectionDone
from .usk3_packet import Usk3Packet
class Usk3ProtocolSharedData(object):
def __init__(self):
self.command_queue = list()
self.comm... | [
"kahshs@gmail.com"
] | kahshs@gmail.com |
19b9d8423c168d1629f32779ca59512c0030b359 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/intentions/PyConvertCollectionLiteralIntentionTest/convertOneElementTupleToList.py | 7a88eac62fac3f8402073e1824a9900e34cc3636 | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 12 | py | (<caret>42,) | [
"mikhail.golubev@jetbrains.com"
] | mikhail.golubev@jetbrains.com |
5355fdb733a60e0bebf7ccb2b59e0802981c723c | f78654a152d248592b1bcef22af7113002908fed | /src/estudiantes/domain/eliminar.py | 737d851ac1a5bbb15cf80a28725205eee9890efe | [] | no_license | Bralediro/Parcial_Final_Arq_Hex | 0cfa40d8ca872d339fd774f3b7aa6d302b176c13 | 71ba5df0fe5deefa0f97667b62e160799236998a | refs/heads/master | 2023-05-28T08:47:50.901863 | 2021-06-12T23:06:30 | 2021-06-12T23:06:30 | 376,397,287 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | class EliminarEstudiante():
def __init__(self, DB):
self.DB = DB
def run(self,id):
cur = self.DB.cursor()
cur.execute('DELETE FROM estudiante WHERE id = {0}'.format(id))
cur.close()
| [
"brayan0712@gmail.com"
] | brayan0712@gmail.com |
ca985069bd5d0ec2cc72bd76624bc5e6bbcf14c8 | 42d42645de1dba29813c3df1f0c5c14ea3030fb1 | /doc/conf.py | f4441e77df646ee6a09f8bb413a82c44b99f0104 | [
"MIT"
] | permissive | synapticarbors/MatrixDepot.jl | f0d24698ba50e7ccfc4f11efd68487928b544c3a | 22b70365c80d83270915b78f3c7330df07cd28fa | refs/heads/master | 2021-01-18T00:01:50.710348 | 2015-01-09T08:22:00 | 2015-01-09T08:22:00 | 29,146,318 | 0 | 0 | null | 2015-01-12T17:02:19 | 2015-01-12T17:02:19 | null | UTF-8 | Python | false | false | 8,363 | py | # -*- coding: utf-8 -*-
#
# Matrix Depot documentation build configuration file, created by
# sphinx-quickstart on Tue Dec 23 00:46:02 2014.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
... | [
"weijian.z@hotmail.com"
] | weijian.z@hotmail.com |
6c439cd976d75cc06bba20b1fbb5712902ede5f7 | a4595b7d42573499f4572bdd056ea27770b041e7 | /mysite/settings.py | a4bf328e05ebdb603fc71405607bd9ec56924eb3 | [] | no_license | bobnorigun/my-first-blog | 651da180fbbeb119045d390c10d92da3ff706b11 | c60f455f8cb7d5af34bea21dcecd85c5d6096ee4 | refs/heads/master | 2021-08-19T20:26:35.862020 | 2020-04-11T09:22:22 | 2020-04-11T09:22:22 | 160,304,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,851 | py | import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = 'r4f699iclp6-v%j6+*4sv@ko&8thxunr7=ovfilc($m7-lbe(o'
DEBUG = True
ALLOWED_HOSTS = ['localhost', '127.0.0.1', '.pythonanywhere.com']
INSTALLED_APPS = ... | [
"bobthedesigner@gmail.com"
] | bobthedesigner@gmail.com |
761a16ea5afd9ff1a5cc8d377dfb623a5be75c44 | 4f8d6d3769f26ebe15213e46460325c9165d4e17 | /src/state.py | 73e4f789c7e53a0f2a78d58dd65fff12eaec23f5 | [
"MIT"
] | permissive | KM-200/PyBitmessage | 482b8f88751b7b74724c46c0000e80a2a9ae6815 | 2b2bdce40ef530482f9b545a45e42f125844f19b | refs/heads/master | 2020-03-15T22:23:42.266320 | 2018-09-01T08:53:59 | 2018-09-01T08:53:59 | 132,372,385 | 1 | 0 | MIT | 2018-07-17T02:05:55 | 2018-05-06T20:12:17 | Python | UTF-8 | Python | false | false | 1,705 | py | import collections
neededPubkeys = {}
streamsInWhichIAmParticipating = []
sendDataQueues = [] #each sendData thread puts its queue in this list.
# For UPnP
extPort = None
# for Tor hidden service
socksIP = None
# Network protocols availability, initialised below
networkProtocolAvailability = None
appdata = '' #hol... | [
"surda@economicsofbitcoin.com"
] | surda@economicsofbitcoin.com |
68b98cb29f9ef2a047b4a3942a769644673c1e4e | 9951b1f9957031f9b5015bf48da854faba1079c0 | /slam/imaging/no_lens_light/source_inversion/mass_total__subhalo_nfw/hyper_all.py | dabec6a1c3469e5d8d2a94f16aee5a46550cb822 | [] | no_license | jonathanfrawley/autolens_workspace_test_copy | 07c069b77759afb2d836d9763846d27727eea67c | 7f7c72feedf5ad3dd7b6d65a3b6de463eaaa4fe6 | refs/heads/master | 2023-04-24T11:57:52.620442 | 2021-02-25T15:52:54 | 2021-02-25T15:52:54 | 367,427,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,238 | py | """
__SLaM (Source, Light and Mass)__
This SLaM pipeline runner loads a strong lens dataset and analyses it using a SLaM lens modeling
pipeline.
__THIS RUNNER__
Using 1 source pipeline, a mass pipeline and a subhalo pipeline this runner fits `Imaging` of a strong lens system,
where in the final phase of the... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
599bef3c88ebe2dc1d0f788a7ba9a671c1a147cf | 836a539f8d143fde8dd2d9e8db0187b3322ee567 | /tfne/encodings/codeepneat/codeepneat_optimizer_factory.py | fc053650159a64269314f11c3890e0105568804d | [
"Apache-2.0"
] | permissive | YangZhafou/Tensorflow-Neuroevolution | 1e2a060ea136888a43678d2fbe4792f70c0aef0d | 77a885b31d065ee0b339569347c0e7614fa5c98f | refs/heads/master | 2022-12-07T18:10:38.370395 | 2020-06-05T14:57:48 | 2020-06-05T14:57:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | from typing import Union
import tensorflow as tf
class OptimizerFactory:
""""""
def __init__(self, optimizer_parameters):
""""""
# Register parameters for optimizer
self.optimizer_parameters = optimizer_parameters
def __str__(self) -> str:
""""""
return "Optimize... | [
"mail@paulpauls.de"
] | mail@paulpauls.de |
de279398afe0fcc3910d8628d08b1563ce65bcf8 | 08d98b08a308a053124a888830c2a3b2cfc5df67 | /RateParser/PageRateParser.py | 733405101d3effb5955d570149d7fbfb3e4b6a2c | [] | no_license | mortent/EasyShip | c9bc6304d573a8f28cebf7c35f65eadaa593b5d2 | 7f1421ceb5a8d773fe8f5f7250e88c7003536412 | refs/heads/master | 2021-01-20T15:42:15.128811 | 2013-02-01T19:14:51 | 2013-02-01T19:14:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,580 | py | import re
import Utils as Utils
def parse_page(lines, results):
"""
Find each column and identify if it is a column of weights or rates.
"""
weights = None
column = []
for line in lines:
if Utils.is_only_newline(line): # No content in this line, it must separate two columns.
... | [
"morten.torkildsen@bekk.no"
] | morten.torkildsen@bekk.no |
0eae92a8ca0999637346d12e1ae5d80eea7b7256 | 8dcb8bf9e92fa6b0e818a78af5b641ee197e1e57 | /misc/python_decorators/simple.py | 4f948974376a785c26b12ff0de9e89e9e078a8fc | [] | no_license | deepakguptagit/practice | d7316d96d9afc15e6bedde8d54e7d7bba380f7d0 | d40d5eb5cbce6770a5ca243dee9d352cc1c37a7c | refs/heads/master | 2016-08-11T12:22:25.779056 | 2015-10-23T12:32:32 | 2015-10-23T12:32:32 | 44,811,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | def printargs(func):
def wrapper(*ar, **rgs):
print ar
ret = func(*ar, **rgs)
ret = sorted(ret)
return ret
return wrapper
@printargs
def add(a, b):
return a + b
@printargs
def hello(a , b, c):
print a, b, c
def test(y, x = None):
print x, y
hello([232,323,42,34,23], {"helo":"workd"}, "hell... | [
"deepakgupta@google.com"
] | deepakgupta@google.com |
68d0b8e93907ac1a51114f52f7c8f44df3fe37ef | 183a53ab5185c4aeca1b5ad50b748b542a695a25 | /nspmessage/models.py | 7ddaf6597780d1b826d128db3884dbaf85aca430 | [
"MIT"
] | permissive | MFOSSociety/NSP | 696bb4e6c1dcbc71b2e16cb23f2e36e35710a748 | 578349872041f7b080ee3c6346f9a82e63bd94c9 | refs/heads/master | 2023-01-07T04:47:49.414038 | 2020-06-24T21:12:38 | 2020-06-24T21:12:38 | 127,533,655 | 6 | 5 | MIT | 2022-12-26T20:15:10 | 2018-03-31T13:18:35 | Python | UTF-8 | Python | false | false | 398 | py | from django.db import models
from accounts.models import User
class Message(models.Model):
sender = models.ForeignKey(User, related_name="sender", on_delete=models.CASCADE)
receiver = models.ForeignKey(User, related_name="receiver", on_delete=models.CASCADE)
msg_content = models.CharField(max_length=140, ... | [
"rishieric91@gmail.com"
] | rishieric91@gmail.com |
54b01ea95e7979928107296d665a0e0e0a33a485 | c7750528bdc5cdb9b6b2eddb8fc60915386b3dfa | /harshad_number.py | 4619d06fb7ec431d8a12e65ee1a3ec15861de336 | [] | no_license | shreshta2000/function_questions | c0723270b1770d767e806f3f41207e2b3d763ffe | 9124e4ae9d5e42c6ec7047f915eb2cf0dbb4858a | refs/heads/main | 2023-01-09T04:07:58.113514 | 2020-10-27T15:18:10 | 2020-10-27T15:18:10 | 307,741,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | def is_harshad_number(num):
i=num
while i>0:
j=0
rem=0
sum=0
while j<=i:
rem=num%10
sum=sum+rem
num=num//10
#reverse=rem*10+rem
#sum=sum+reverse
j=j+1
i=i+1
print(sum,i)
if num%sum==0:
print(i,"harshad number")
is_harshad_number(100)
| [
"you@example.com"
] | you@example.com |
cfe5576a1ad5cc059f9bcb15573b75d1104a2553 | 05125b3eef5e092a9ee06a1a17ad850b0ee0e70c | /MiscInterview/unSortedArray.py | 336132647a14623ab1fdf1e202b1a19efcd08b3b | [] | no_license | ischang/Practice-CS-Problems | 6ca91296e3d924c4eec82b70f0e5440015535e80 | eec53da0b98bef1f5bbfcc8bf4546065fff797f9 | refs/heads/master | 2021-01-18T06:57:35.599630 | 2020-03-28T18:17:27 | 2020-03-28T18:17:27 | 46,593,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | def unsortedArray(arr):
dupHash = dict()
cleanList = []
for integer in arr:
if integer not in dupHash:
dupHash[integer] = integer
if integer in dupHash:
continue
for integer in dupHash:
cleanList.append(integer)
print "duplicates removed and sorted", cleanList
arr = [1,5,2,6,8,9,1,1,10,3,2,4,1,3,11... | [
"ischang@ucdavis.edu"
] | ischang@ucdavis.edu |
03b4a4b016aa93232c07a4a78fb4b51336fd30b1 | 8c0f3864d7ecd5d72f1af5df2a89407687928b83 | /utils/content-spider/content_spider/spiders/quinto_dia.py | 9265a31126f63d8f0b97c6b93f75698f9b62e187 | [] | no_license | jredondo/django_topic_explorer | 440f3a6cbd31f2db646838f0b1fead385664d9f8 | 8310f7540a63e743ad7399de283b3f3309e38621 | refs/heads/master | 2021-01-18T22:21:19.021224 | 2017-03-17T15:16:10 | 2017-03-17T15:16:10 | 35,054,920 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | import scrapy
from utils import *
from settings import settings
class SiteSpySpider(scrapy.Spider):
name = "quinto_dia"
start_urls = [settings[name]['url']]
def parse(self, response):
for href in response.css(settings[self.name]['links']):
full_url = response.urljoin(href.extract())
yield scrapy.Requ... | [
"rudmanmrrod@gmail.com"
] | rudmanmrrod@gmail.com |
4902bef02a7a707fe36124ed3842bb6d73289a70 | 0f4a0752059bc56991291337c3f8f462116e5995 | /google_ping.py | 18e5dc63de1f53456490f139015984332c5a29d7 | [] | no_license | oleh-bodnevych/itea | f067661f7d9c5ad19931540ba781d698e71154eb | 92be5c8bf87effa7c6e66da7e0aa6bcc28c6bd9a | refs/heads/main | 2023-08-20T23:53:08.896590 | 2021-10-07T10:49:14 | 2021-10-07T10:49:14 | 414,549,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | #! /usr/bin/python3
import os
hostname = "Google.com"
response = os.system("ping -c 2 " + hostname)
#and then check
if response == 0:
print ('\n',hostname, ' available!')
else:
print('\n',hostname, 'is down!')
print("My Script working!!!!!!")
| [
"olehbodnevych@gmail.com"
] | olehbodnevych@gmail.com |
6736aa42ac8fb27417ecab59e96ef302dc25c84f | e3819b3badcdd17e1a7bb0042e4efeb0151ec39b | /facial_expression_video.py | 3f2e652aa2b3abd63d123525bd39b53b109c742c | [] | no_license | SwetaNikki/Facial-Expression-using-Keras | e6b4ddbb1300cfcdb0327d965353859b2fc32703 | 30158c50fb2dfe815c8755e9375a97691ac666bc | refs/heads/main | 2022-12-30T10:55:26.352453 | 2020-10-19T10:22:12 | 2020-10-19T10:22:12 | 305,315,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py | # -*- coding: utf-8 -*-
"""Facial expression VIDEO.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1fLItY0WxsA4uaNYHX98_5SpB4TdSUkrf
"""
from keras.models import load_model
import cv2
import numpy as np
model = load_model('model-007.model')
fac... | [
"noreply@github.com"
] | noreply@github.com |
7f0607b397f49fb16ab6139277e00a465535b048 | 0e660c413047dd3a160feb10789e2175dab51175 | /Dame/logic.py | 0a16b3a4499d76e86df9ca762ae9364bb75c14f0 | [] | no_license | Yameni-code/Checkers | d21c67fdaba6f4de9c72b12e4904a78c7c304e16 | 77290211b596ec2bee1d5884b3378090ce23266e | refs/heads/main | 2023-07-13T01:02:27.052006 | 2021-08-22T18:53:12 | 2021-08-22T18:53:12 | 359,057,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,000 | py | from .constant import PLAYER2, PLAYER1, KING1, KING2, Y
from .table import get_all_pieces
def check_move_piece(array, n1, m1, n, m, piece, ob_move):
# This function checks if the piece move is valid
# for a piece move to be valid, it should be an element of the possibles moves and it should of max 2 squares f... | [
"82334784+Yameni-code@users.noreply.github.com"
] | 82334784+Yameni-code@users.noreply.github.com |
5de963ed9a19ea27981543f32e902ba33d6b85b8 | 031a7ac86ce97c257bb8dd1b0ef8ce625a38ddbb | /synthesize.py | b5ae838d369991f3e5a2f1607bd31b04f39881f4 | [
"MIT"
] | permissive | aidiary/tacotron-pytorch | 47f36ddd53f78d313e5104c513ca0679315e4951 | 8ea9b1bb61bf753a64ff611b441326ea8c001d20 | refs/heads/master | 2020-08-03T16:20:39.433942 | 2019-10-11T03:55:44 | 2019-10-11T03:55:44 | 211,811,774 | 0 | 0 | MIT | 2019-10-07T01:19:21 | 2019-09-30T08:24:15 | Jupyter Notebook | UTF-8 | Python | false | false | 1,833 | py | import argparse
import os
import numpy as np
import torch
from model import Tacotron
from utils.text import phoneme_to_sequence
from utils.text.symbols import phonemes
from utils.audio import AudioProcessor
parser = argparse.ArgumentParser()
parser.add_argument('text', type=str, help='text to generate speech')
parser... | [
"f2forest@gmail.com"
] | f2forest@gmail.com |
73b3645926d9994b439b76f08e9e33f9edde5f68 | 5c86a796c32351c2f4de1170d6f16fb2f0e18d66 | /code/generate_data.py | 91da01e5f84f18860dd9adc2c0464f1a295a3545 | [
"MIT"
] | permissive | ilkhem/WDTW | 599c0ecac460f7a3302924eb72e057e929203a79 | b8bd27a4494aa52acb45ecd2427512e1a682edb7 | refs/heads/master | 2021-01-25T05:09:48.015195 | 2017-08-02T09:06:16 | 2017-08-02T09:06:16 | 93,514,363 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | import numpy as np
def generate_data(d1=10, d2=10, d3=10, m=5, n=4):
At_ = np.random.rand(d1, d2, d3, m).astype(np.float64)
At = At_ / np.sum(At_, axis=(0, 1, 2))
Bt_ = np.random.rand(d1, d2, d3, n).astype(np.float64)
Bt = Bt_ / np.sum(Bt_, axis=(0, 1, 2))
return At, Bt
def generate_multiple(d1... | [
"ilyes.khemakhem@gmail.com"
] | ilyes.khemakhem@gmail.com |
79d414c018b7519a529149e6461afb25073f5448 | 78144baee82268a550400bbdb8c68de524adc68f | /Production/python/Summer16v3/QCD_Pt-20to30_MuEnrichedPt5_TuneCUETP8M1_13TeV_pythia8_cff.py | 50ebcb86f45450555db52fd14c26ab823c5a71af | [] | no_license | tklijnsma/TreeMaker | e6989c03189b849aff2007bad22e2bfc6922a244 | 248f2c04cc690ef2e2202b452d6f52837c4c08e5 | refs/heads/Run2_2017 | 2023-05-26T23:03:42.512963 | 2020-05-12T18:44:15 | 2020-05-12T18:44:15 | 263,960,056 | 1 | 2 | null | 2020-09-25T00:27:35 | 2020-05-14T15:57:20 | null | UTF-8 | Python | false | false | 46,425 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'/store/mc/RunIISummer16Mi... | [
"Alexx.Perloff@Colorado.edu"
] | Alexx.Perloff@Colorado.edu |
884d22df40efccdab6054745feb79110fdfb3e07 | 55a9f007886340a21cab8d5a86cad74b69d789ec | /blog/forms.py | 61b370300fe2097494d84a762db7bce0de06bb28 | [] | no_license | JackSnowdon/BlogTools | e14b5c4937c35d0e29420ca644d752bde56734f1 | 7077c7922917e589b157a8d71f5172e60cebe6b6 | refs/heads/master | 2021-09-25T14:04:51.023120 | 2020-04-09T13:14:01 | 2020-04-09T13:14:01 | 248,284,246 | 0 | 0 | null | 2021-09-22T18:51:06 | 2020-03-18T16:26:41 | Python | UTF-8 | Python | false | false | 329 | py | from django import forms
from .models import *
class PostForm(forms.ModelForm):
class Meta:
model = Post
exclude = ['created_on', 'done_by', 'last_modified', 'views']
class CommentForm(forms.ModelForm):
class Meta:
model = Comment
exclude = ['post', 'created_date', '... | [
"jacksnowdondrums@gmail.com"
] | jacksnowdondrums@gmail.com |
d5fbac6f749489b5b63810fa4d9a276aaaab110b | 88e7780f549c51e77dda336174e5d4df9af71bb4 | /valuation_undergraduate-spring_2021/session14/target_pnr.py | c37410763d98ced344af6914400fe81293bf810e | [] | no_license | webclinic017/valuation_course | 3db0de92acd4a933fa2ea938e0c5003eef0a9a92 | 14d70cf5b5eb1eb42ae5a51f286214328c035cff | refs/heads/main | 2023-05-10T13:07:12.071847 | 2021-06-11T11:14:57 | 2021-06-11T11:14:57 | 417,762,128 | 1 | 0 | null | 2021-10-16T08:08:26 | 2021-10-16T08:08:26 | null | UTF-8 | Python | false | false | 658 | py | # https://youtu.be/uj5xrGBFf44?t=4308
# Target price and returns calculation
"""
Assume that you believe that your valuation of Con Ed ($42.30) is a fair
estimate of the value, 7.70% is a reasonable estimate of Con Ed's cost of equity
and that your expected dividends for next year (2.32*1.021) is a fair estimate,
what... | [
"teguhwpurwanto@gmail.com"
] | teguhwpurwanto@gmail.com |
9b640140f21c870b89db32c924866bd0f75bc9b8 | 96afeeb22fad2a78edaff62ca0b1ebbc8c0b5a53 | /app.py | 40e5fd77d9a98c7a44fa281726e1009e5df4e653 | [] | no_license | GopalTewari/Diabeties_Prediction | 8b8c31b5e4911f5a58760b82cf31d086e8df0cec | fd8b3e2049fb1ffd0d53117444a2e386331f9917 | refs/heads/master | 2022-11-29T17:06:42.051095 | 2020-08-10T08:11:18 | 2020-08-10T08:11:18 | 286,405,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,617 | py | from wsgiref import simple_server
from flask import Flask, request, app, send_file,render_template
from flask import Response
from flask_cors import CORS
from flask_cors import CORS,cross_origin
import pickle
import pandas as pd
import seaborn as sns
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as p... | [
"gopaltewari325@gmail.com"
] | gopaltewari325@gmail.com |
df473644bee8dc05da278b05f1e4406397899161 | 7a68ad190010c01f5a681074524fe30a830e336f | /IIC/datasets/__init__.py | 0d46346884af4cd26db5eea36bf2706d9c90c662 | [
"MIT"
] | permissive | jizongFox/IIC | c9817f355cf5b3281539d515defddd59d4c98da4 | 572076d5c0c26516ff3e807f2bad4e3498ab12c1 | refs/heads/master | 2022-02-24T18:53:47.271641 | 2022-02-08T23:14:39 | 2022-02-08T23:14:39 | 182,317,472 | 0 | 0 | MIT | 2022-02-02T23:32:37 | 2019-04-19T19:47:43 | Python | UTF-8 | Python | false | false | 54 | py | from .clustering import *
from .segmentation import *
| [
"jizong.peng.1@etsmtl.net"
] | jizong.peng.1@etsmtl.net |
dab9e5915901da7382a754421dfa3c67aac61caf | eac3bc8813c8a27c3f828c82d3506327b1a5dde8 | /neutronclient/v2_0/uos.py | 8420e0dd677c1d2e2d71872a0575dbbd53c5b2b1 | [] | no_license | CingHu/neutronclient-ustack | a21143753321426cc168b3d3430ee1a97cdbbfa9 | 21cb3a1f405f4fc598336c1a30589b346f6479a5 | refs/heads/master | 2021-01-10T18:20:16.110116 | 2015-11-27T03:58:10 | 2015-11-27T03:58:10 | 46,958,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,583 | py | # Copyright 2014 OpenStack Foundation.
# 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 req... | [
"xining@unitedstack.com"
] | xining@unitedstack.com |
29137ff2018cec0c6b0913e8b4d19ec7b709c5db | 9d49ae4c2aaabb4f0a41d5cebc736f08c33dcbfd | /comp_classes.py | 474aeb29597ccc1c8d472a59cec3c8f417c933e7 | [] | no_license | beva-empa/CentralOpt_Classes | 900525f23453f058ccbd3984093b6cfc38d87cf9 | e7b647e0fb210ba16923613c06c7def628e26aba | refs/heads/master | 2023-03-07T21:06:14.550978 | 2021-01-30T23:09:44 | 2021-01-30T23:09:44 | 334,528,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,548 | py | import cvxpy as cp
from test import *
import mosek
import datetime as dt
import time
class PV:
def __init__(self, num_opt_var):
self.P_PV = cp.Variable(num_opt_var)
self.b_PV = cp.Variable(num_opt_var, boolean=True)
self.I_PV = [0] * num_opt_var
self.TempEff_PV = [0] * num_opt_var
... | [
"75076601+beva-empa@users.noreply.github.com"
] | 75076601+beva-empa@users.noreply.github.com |
bae99138058bb1e40dcd3bca86b40f95229b0410 | 148d9ebf9920f4943c63316a18646b7e9ecb5ff1 | /working_files/build_ALS2.py | 57d74214333f83a17898455fdcb5aa2a8c180306 | [
"MIT"
] | permissive | CoraJung/book-recommendation-system | 9b5f75243d24c77053e0118c5534f51d024758d0 | b526b8eac516bb72dabe6217b32d113e5541e798 | refs/heads/main | 2023-01-31T21:46:17.453503 | 2020-12-22T04:46:09 | 2020-12-22T04:46:09 | 323,443,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | def build_ALS(X_train, rank=10, maxIter=10, regParam=0.1):
from pyspark.ml.recommendation import ALS
als = ALS(rank=rank, maxIter=maxIter, regParam=regParam, seed=42)
train = X_train.select(['user_id', 'book_id', 'rating']).toDF('user', 'item', 'rating')
model = als.fit(train)
return model
| [
"hyun4453@gmail.com"
] | hyun4453@gmail.com |
88bbb17181d92b4ddca10a82b218dc98ed361eab | 9eb380a2d27a2ea8d1f8017281e6bafcdf143c4d | /while2.py | 45f0276ab9d9f740f90479ae1f1d057fb8a459e7 | [] | no_license | 1617193103/1617193103 | 8b4163a5023702f94c58418d842b6eba8411f5e5 | 4906b4a4a1b3641274af2a019b805df71adfc04a | refs/heads/master | 2021-09-03T18:34:45.242425 | 2018-01-11T04:12:05 | 2018-01-11T04:12:05 | 109,072,661 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | i = 1
while i < 10:
i += 1
if i % 2 > 0:
continue
print i
i = 1
while 1:
print i
i += 1
if i > 10:
break
| [
"noreply@github.com"
] | noreply@github.com |
d9b7a3b1c81ca2dd45e8e6f0321506e014f68742 | e0946716de0780ce3a2e24220c60e9cca6bbcd0d | /ExtractData.py | 4dc2398061b412d9c0c51f262f087c1b4a51eae8 | [] | no_license | dubeamit/project | 36fe2babd4f0c6702245ade76385918b3167dd7d | a73b904546dfe961694278d0b5a191a6e5450a6a | refs/heads/main | 2023-06-16T08:33:16.626345 | 2021-07-11T14:36:00 | 2021-07-11T14:36:00 | 384,933,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,221 | py |
import cv2
import pytesseract
import os
import preprocessing
import matplotlib.pyplot as plt
class ExtractData:
def __init__(self):
self.data_dict = {}
self.data_dict['type'] = 'NaN'
self.data_dict['length'] = 'NaN'
self.data_dict['width'] = 'NaN'
self.data_dict['height'] =... | [
"dube.amit15@gmail.com"
] | dube.amit15@gmail.com |
df01e912260575aa91cd16ef76a04c578a104d73 | 8ef36a455c2e2f6fdc2d9d98ad56cd5e0a77aa70 | /do/urls.py | c17580bbebb2ef999cbcdd78eb57f6fd39e3e722 | [
"MIT"
] | permissive | esseti/dododo-dadada | 29ae43d05d756a2d55fd804955b0dcee06e2519b | 61cee321a7d5ddb88ca81af832a5e1c9c6ee94da | refs/heads/master | 2020-04-05T16:48:41.046846 | 2014-04-04T15:40:33 | 2014-04-04T15:40:33 | 13,617,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | from django.contrib.auth.decorators import login_required
from django.views.generic.base import TemplateView
__author__ = 'stefanotranquillini'
from django.conf.urls import patterns, include, url
from do import views
urlpatterns = patterns('',
# Examples:
url(r'^todo/$', login_required(views.ToDo.as_view()), n... | [
"stefano.tranquillini@gmail.com"
] | stefano.tranquillini@gmail.com |
a2eb44ec4c93547c472f83caaf94adb5a266662d | 9ee1bd21df57e6c282c9df0d0e412946550de0c5 | /Task3.py | b5087da26865af2f8f42fa70fdd776f29241ea08 | [] | no_license | anukrit01/Udacity_Tasks | fd7c3d9c79d51581a430269f9332d35338732f2d | ffab10730b59472c66c881ffe30b6d64f8928e24 | refs/heads/master | 2022-09-13T10:56:23.818293 | 2020-06-03T04:28:02 | 2020-06-03T04:28:02 | 268,010,124 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,374 | py | """
Read file into texts and calls.
It's ok if you don't understand how to read files.
"""
import csv
with open('texts.csv', 'r') as f:
reader = csv.reader(f)
texts = list(reader)
with open('calls.csv', 'r') as f:
reader = csv.reader(f)
calls = list(reader)
"""
TASK 3:
(080) is the area code for fixe... | [
"noreply@github.com"
] | noreply@github.com |
a23ad0018a553812c8ccd7276151d57eebb62e2b | a0ed3890b44174f8d9b9d9b622737e518d8f4022 | /checkio_sendgrid/settings.py | 92bf3257d0cceb7d6f7e741a1b65adb24351451c | [
"MIT"
] | permissive | CheckiO/checkio-sendgrid | fc19ef4581252f42a59aa66c66bee711a036218a | 420e6694d094ffb6ec4c554425317a4e88e714f2 | refs/heads/master | 2020-04-19T22:54:53.052519 | 2015-05-18T14:51:31 | 2015-05-18T14:51:31 | 35,486,673 | 0 | 0 | null | 2015-05-18T14:51:31 | 2015-05-12T12:30:58 | Python | UTF-8 | Python | false | false | 170 | py | from django.conf import settings
DEFAULT_TIMEOUT = getattr(settings, 'SENDGRID_DEFAULT_TIMEOUT', 10)
USER_ADD_LIMIT = getattr(settings, 'SENDGRID_USER_ADD_LIMIT', 1000)
| [
"undimka@gmail.com"
] | undimka@gmail.com |
737229ad3167d7291f0ed6d47df9eff02ae43ba0 | e7d0d662df63c511fce474ce649696e64dc16f32 | /menu/translation.py | 8841d9326156c2c0c65a6d46514ac632414a1a02 | [] | no_license | jazdelu/minibobi | d78bb8e37ec3cbbc28a0e1af2647baff814ec1d2 | 4f49f893b753294ee22c8a126dd100dd7ba6ee71 | refs/heads/master | 2021-01-18T22:32:41.491151 | 2016-11-30T15:13:06 | 2016-11-30T15:13:06 | 19,132,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | from modeltranslation.translator import translator, TranslationOptions
from menu.models import *
class MenuItemTranslationOptions(TranslationOptions):
fields = ('name',)
required_languages = ('en','zh-cn')
translator.register(MenuItem,MenuItemTranslationOptions) | [
"lushizhao@qq.com"
] | lushizhao@qq.com |
4ee2547dd2aee7dc4bb0cd7c7161b26457304d1a | af3f8f948e181276286d1f417fd7632826febc93 | /Publicar_trabajo/migrations/0041_auto_20190927_0013.py | 5454f8ce74c8457d31c24e58d5d8ab1cf89b2948 | [] | no_license | montecinosd/Proyecto_de_titutlo | c729e01b9ff8e751b0d72e2282360630edadeba9 | ab7f503f4ee9cf37a0e54437744c19e19aa1d2a2 | refs/heads/master | 2022-12-13T02:35:17.103736 | 2020-01-29T02:02:40 | 2020-01-29T02:02:40 | 173,991,278 | 0 | 0 | null | 2022-12-08T07:02:36 | 2019-03-05T17:30:51 | CSS | UTF-8 | Python | false | false | 1,068 | py | # Generated by Django 2.0.4 on 2019-09-27 03:13
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Publicar_trabajo', '0040_auto_20190927_0012'),
]
operations = [
migrations.AlterField(
model_name='calificacione... | [
"danielmontecinoszambra@gmail.com"
] | danielmontecinoszambra@gmail.com |
1993897c753893421095630b3216822e7421ea12 | a07c95d4d9c680e3331a9098e54f01931fbc84e1 | /rougetest/bleu.py | d4518d836b654f03832177e7071624178176d63e | [] | no_license | cym1021/Citation_Recommendation | f16bad3bc39e4254bf36a15658d7a759146c7aa6 | 6f0d03a360f3ed5b56eac7568486335deb344df2 | refs/heads/master | 2020-04-08T04:15:29.873977 | 2018-11-25T06:08:02 | 2018-11-25T06:08:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,468 | py | import math
import rougetest.common as common
class Bleu(object):
def __init__(self, n_size=2):
self.match_ngram = {}
self.candi_ngram = {}
self.bp_r = 0
self.bp_c = 0
self.n_size = n_size
def add_inst(self, cand: str, ref: str):
"""根据添加的预测答案和参考答案,更新match_gram和... | [
"18810937071@163.com"
] | 18810937071@163.com |
9cb28de1e9af79ca0a1490563bc7c6c981e70d4f | 2a4b2efeb11e700c7cc31b94f4503009b2edc6ae | /problem_111.py | d35dbbbb29ddcadf3670bddd033f3e1d4f4a5022 | [] | no_license | SeanLau/leetcode | 66b8daf2d5bfe720015e6f318f217c8892807f97 | 16b6fc4247c91a919d38bf18835f10fc29fccca7 | refs/heads/master | 2020-04-07T12:54:55.282465 | 2018-04-29T09:31:12 | 2018-04-29T09:31:12 | 124,213,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,694 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# 寻找最短深度
# 思路1,逐层遍历即可寻找到最短路径.
from collections import deque
# Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def minDepth(self, root):
"""
... | [
"lsnmail@yeah.net"
] | lsnmail@yeah.net |
be714139f5c6cd5dee96dfbaafa20e9b8cbf182f | 2704813c127d1351ddc2772b22333cf65ff1957f | /linea.py | 50b575678a1542d5683abdb616d9a2b6c622f953 | [] | no_license | GabrielZarate/EjemploPython | cb0f3ba7a382e4c173ba8dcd1fa65d75227263c4 | 8204cf1fcee6f47d2cf1ce341c72cd9cdf25cf2e | refs/heads/master | 2020-08-03T09:22:29.393251 | 2019-10-28T02:21:59 | 2019-10-28T02:21:59 | 211,700,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,654 | py | import math
class Linea:
def __init__(self):
self.etiqueta = "NULL"
self.comando = "NULL"
self.argumento = "NULL"
def toStr(self):
return ("LECTURA " + self.etiqueta + " " + self.comando + " " + self.argumento)
def asignarValores(self, etiquetaEntrad... | [
"noreply@github.com"
] | noreply@github.com |
23ec3d6b581671203df9bb461f433a5231881885 | 4122f1fdf5f9493d91c4adccb4fcdaaa0a557c8c | /pgdrive/scene_creator/ego_vehicle/vehicle_module/PID_controller.py | 9d29063efc8af1a03fa5157a660231741f17b853 | [
"Apache-2.0"
] | permissive | rena-ganba/pgdrive | 2dcda62860ce776913224e19cec03c62169bac28 | 4aab3e74744eb884ae038fc1fcef19797ba5864d | refs/heads/main | 2023-02-07T22:06:11.093582 | 2020-12-29T14:59:01 | 2020-12-29T14:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | class PIDController:
def __init__(self, k_p: float, k_i: float, k_d: float):
self.k_p = k_p
self.k_i = k_i
self.k_d = k_d
self.p_error = 0
self.i_error = 0
self.d_error = 0
def _update_error(self, current_error: float):
self.i_error += current_error
... | [
"noreply@github.com"
] | noreply@github.com |
f00a8f1073c9da5a3b7bb5c4ebe9ca55f99d2734 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-storage/azure/mgmt/storage/v2017_10_01/models/encryption_py3.py | d819a127105d9f1442bbb415f1d0950e4e69a13e | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 1,946 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
99d3016c9da8b142f9ceef69be30b50edf9d8161 | 5cf7564c09c137a9ed76d5f40edb8ae5fa7e85b7 | /scripts/gen_cpp.py | 34c3b1d6638ac5f368e548365cf053b37975412a | [] | no_license | dkw72n/mtv | 504c289b126f598323364a3a492c0801249a4d2e | e41295c2b74c99f307f4e5a0804eed71e579a159 | refs/heads/main | 2023-01-22T08:21:10.231702 | 2020-12-08T08:40:18 | 2020-12-08T08:40:18 | 314,186,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,702 | py | import argparse
import sys
import re
import base64
parser = argparse.ArgumentParser(description='')
parser.add_argument('input', type=str, help='input')
parser.add_argument('path', type=str, help='input')
parser.add_argument('--output', type=str, default="", help='output')
parser.add_argument('--mime', type=s... | [
"matwetu+ad@gmail.com"
] | matwetu+ad@gmail.com |
ec175e73ef8816773523193ceee84d1b05877584 | 759cdfcc72adbc3496b52b3f1c2c1bc7f09b138f | /app/main/signals.py | f3d0a029cfba2b377cc80a8d42c5030ace779dc7 | [
"Apache-2.0"
] | permissive | 395299296/liaotian-robot | a53ade68d843a89d79b955d3058f5f1c0283f8bc | 86d96b75e327d93dc5873c31e2852afaf1b19af8 | refs/heads/master | 2021-01-19T16:02:15.021880 | 2018-02-01T10:11:39 | 2018-02-01T10:11:39 | 88,241,301 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,694 | py | from __future__ import print_function
from flask import request, current_app
from blinker import Namespace
from . import models, ext
from blog.config import RobotBlogSettings
search_engine_submit_urls = RobotBlogSettings['search_engine_submit_urls']
robotblog_signals = Namespace()
post_visited = robotblog_signals.si... | [
"jianbin.zhang@quncaotech.com"
] | jianbin.zhang@quncaotech.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.