blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
708a1c43e8e73d7b97aaaf5accb60204fcf46553 | 31fb20acd57af064190f69a1d33ee9ac1ed6ab4e | /wxagent/txbase.py | f1ed8d86f6b97e6a6ac9f54f657669062e899094 | [] | no_license | kakliu/wxagent | 2ba27b531d4a07b4e059a37f4de03a663173ae1b | b7c5ea47d6616556b4d43eb81c61cf7ac3031c18 | refs/heads/master | 2020-05-27T02:29:27.621687 | 2016-11-13T13:19:04 | 2016-11-13T13:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,674 | py | from PyQt5.QtCore import *
from PyQt5.QtNetwork import *
from .agentstats import AgentStats
# 带获取所有cookie扩展功能的定制类
class AgentCookieJar(QNetworkCookieJar):
def __init__(self, parent=None):
super(AgentCookieJar, self).__init__(parent)
def xallCookies(self):
return self.allCookies()
# XXAgent... | [
"drswinghead@163.com"
] | drswinghead@163.com |
d71f616745cc995556bc100726f428cb131bcfd1 | 32efa132bd56d5a3161f0053e682f35d478ac9eb | /老男孩python全栈开发第14期/python基础知识(day1-day40)/configparser模块.py | 601eccaf656d54b800f085339158746063cdf457 | [] | no_license | dengyungao/python | 6de287aeb26861813724459f4fa37fa82813f9bb | d4b83fe55c6afd84ec009db235ae83c8224e7351 | refs/heads/master | 2020-08-05T04:25:23.843730 | 2020-02-18T16:30:21 | 2020-02-18T16:30:21 | 187,057,495 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | import configparser
import os
config = configparser.ConfigParser()
config["DEFAULT"] = {'ServerAliveInterval': '45',
'Compression': 'yes',
'CompressionLevel': '9',
'ForwardX11': 'yes'
}
config['bitbucket.org'] = {'User': 'hg'}
conf... | [
"18140172792@163.com"
] | 18140172792@163.com |
fe0a2f7e3dd768ecb94a1f4db777f8f8e4963f8c | 5fd5bf0639db4e93bac2a9122cdee9395908247c | /gis_4ban_1/settings/local.py | 285faf8b46e6d38a43837bc3ed4be570b331d1ee | [] | no_license | haki-land/gis_4ban_1 | 23637c205673e08afed8099bf494312d0415236a | 80f6d6536740dfe36b0ca76be9bc7648545d8b55 | refs/heads/master | 2023-08-11T04:47:38.451633 | 2021-10-05T03:17:43 | 2021-10-05T03:17:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,214 | py | from .base import *
env_list = dict()
local_env =open(os.path.join(BASE_DIR, '.env'), encoding='utf-8') # 운영체제 상 경로(path) / join 합쳐준다 BASE_DIR, '.env'
while True:
line = local_env.readline() ##한줄씩 읽다가 없으면 나온다 break
if not line:
break
line = line.replace('\n', '')
start = line.find(... | [
"zoneofgod@gmail.com"
] | zoneofgod@gmail.com |
556e6ee4972beb6872c63bf608a925dd397c0d33 | ab0cc0cb2bf34b24d3aa43a7eacd217a7e33f322 | /profiles_project/settings.py | 7863c452915caf4882a272afff391369c5c552be | [
"MIT"
] | permissive | MarcelIrawan/Profiles-REST-API | f4e81cb81ea28e7869cd77787ec868bf18aec2e7 | 1d5c22cad1789459567a9fd3234c48a8552fe816 | refs/heads/master | 2022-12-12T02:54:45.306573 | 2020-09-02T03:06:45 | 2020-09-02T03:06:45 | 290,787,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,365 | py | """
Django settings for profiles_project 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/
"""
impor... | [
"50488473+MarcelIrawan@users.noreply.github.com"
] | 50488473+MarcelIrawan@users.noreply.github.com |
91e65577a10c06e5542cd09c5fb38bde70ed2a09 | 24d2032596bcb4dcebeec4a448d5f8d0fa343f1a | /Photo_detection.py | bdfd82f566e2a250c6d4609e34fa5ecda64d51c0 | [] | no_license | sanath-kumar364/Object-Detection | fe392d5593c11047b006aaab80d03e4c4c407430 | 74e03bec9419060fcd10dc2b36ba4f28d9363d8a | refs/heads/main | 2023-07-16T07:15:00.105713 | 2021-08-15T06:57:37 | 2021-08-15T06:57:37 | 396,250,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | import cv2
thres=0.5
img=cv2.imread('car.png')
classNames=[]
classFile= 'coco_names'
with open(classFile, 'rt') as f:
classNames=f.read().rstrip('\n').split('\n')
configPath='ssd_mobilenet_v3_large_coco_2020_01_14.pbtxt'
weightsPath= 'frozen_inference_graph.pb'
net = cv2.dnn_DetectionModel(weightsPath,... | [
"noreply@github.com"
] | sanath-kumar364.noreply@github.com |
c2a7c6d6fb4d162c42fa162175195ee56f5a70cf | cedfdd1398b947b15eccf4473e9bbaddccb878d7 | /SDK/openstack/tests/functional/compute/v2/test_server.py | 6712375a7f77b2868cffb1ade69917ad0ebc78a9 | [] | no_license | Doctor-DC/CMP-Recycle | 36fb1fdcf7c3a396bfef89d03948bd0ce626b053 | e3e6421f0b5dc28a075bc5bf91be9a45bcbe97c6 | refs/heads/dev | 2022-12-15T06:28:12.695868 | 2019-02-26T06:22:21 | 2019-02-26T06:22:21 | 142,127,512 | 0 | 0 | null | 2022-12-08T02:29:44 | 2018-07-24T08:18:46 | Python | UTF-8 | Python | false | false | 5,295 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | [
"8920622362@qq.com"
] | 8920622362@qq.com |
e6bb2639249198f8f174f101075567a90774bae1 | b414757d40c62f50febfd721af01dd4316484a53 | /m-reftemplate.py | 357416336e712ba6f0963965c5a451ebde69fcc7 | [] | no_license | masti01/pcms | 60e21b7bd469e4beef7f9ecfb9198b224399e240 | 43506a9cee9fa49e4119238b2f433a3c9279e277 | refs/heads/master | 2021-09-25T16:38:45.683536 | 2021-09-25T09:54:01 | 2021-09-25T09:54:01 | 73,956,313 | 4 | 1 | null | 2019-03-25T16:25:27 | 2016-11-16T20:02:25 | Python | UTF-8 | Python | false | false | 10,079 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
This is a bot to remove template {{Przypisy}} if no reference in article present
Call:
python pwb.py masti/m-reftemplate.py -transcludes:Przypisy -outpage:"Wikipedysta:mastiBot/refTemplate" -maxlines:10000 -summary:"Bot usuwa zbędny szablon {{s|Przypisy}}"
Use global -s... | [
"mastigm+git@gmail.com"
] | mastigm+git@gmail.com |
a7266b63b4e8699dce12d35488b80d449c2de1ea | 12c6b9f4bacb735ade3d8e51e6befa7f15a85d26 | /scripts/demo/mutliapp.py | ce173080f49932e0c699510d1fa221640219445e | [] | no_license | fkanvaly/image_registration | fbec6018f1f61aa68e5e28585390220736972a4e | 220193c074ed6ca3b293b523fbe257553552053f | refs/heads/main | 2023-07-12T08:02:51.862138 | 2021-08-22T12:00:43 | 2021-08-22T12:00:43 | 377,304,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | import streamlit as st
class MultiApp:
"""Framework for combining multiple streamlit applications.
Usage:
def foo():
st.title("Hello Foo")
def bar():
st.title("Hello Bar")
app = MultiApp()
app.add_app("Foo", foo)
app.add_app("Bar", bar)
ap... | [
"123azeDSQ"
] | 123azeDSQ |
053f711b6ae47aea5d315e48b27d56fba7464f6d | 59287fcc4ce0c0fdcfabc73f1fb924265845389a | /a_intro/progs/a.py | 8cf9aa7d88ee69fe485bcd67cfb91615ac07796c | [] | no_license | ebuonocore/NSIT_17_Calculabilite | 787a9579b801727f005000166162a209fc16ace7 | 2450fd4f7ef2694a73ddbe36ea6549f76e2e862c | refs/heads/main | 2023-05-06T04:33:34.509720 | 2021-05-20T21:54:32 | 2021-05-20T21:54:32 | 368,262,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 21 11:50:29 2019
Dessine des carrés imbriqués en impératif
@author: Eric Buonocore
"""
from turtle import *
import math
# importation de la bibliothèque turtle
def pen_style(niveau_max, niveau):
""" Modifie la taille et la couleur du stylo en fonction du ... | [
"noreply@github.com"
] | ebuonocore.noreply@github.com |
6c6d324c7a9eea2c04da96f957aa1bd7d49f4170 | eda52deedb0484146497c376c16e1b4c084e2e37 | /Object_detection_main.py | 49abf8faef8133fe0d867499a4435f3d7b1fb6e5 | [
"MIT"
] | permissive | sriragjayakumar/Table-column-detection | 1d4cf952e0107abddd4bbd22101a0774b52e4a26 | 9542253525cf40bf1af8517ccaffb4a68a0b91c0 | refs/heads/main | 2023-03-18T11:43:08.319508 | 2021-03-18T14:45:53 | 2021-03-18T14:45:53 | 348,051,072 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,471 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 18 22:41:12 2021
@author: srirag
"""
import os
import cv2
import numpy as np
import tensorflow as tf
import sys
from utils import label_map_util
from utils import visualization_utils as vis_util
def table_det(img_name,line_thickness=8,min_score_thresh=0.60):
sys.pat... | [
"sriragjayakumar@gmail.com"
] | sriragjayakumar@gmail.com |
cdf7745843d590141c77de2fc6e44db8ed1d145e | 088d42e04689db579cd5d9e0d600ae4ebafd85ec | /Hackerrank.py | 811d61b60b791838dc12326affe474ac7058040b | [] | no_license | amankumar94/coding_practice | 0c039f46330829dd21a5a1bfa9e9a164419be0bc | b1b5865f6272513471040db15f74e430e3b163fe | refs/heads/master | 2022-12-08T12:47:58.136754 | 2020-09-06T00:13:13 | 2020-09-06T00:13:13 | 292,985,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,331 | py | from itertools import permutations
def getTotalX(a, b):
# Write your code here
list_of_nums = []
init_num = max(a)
max_num = min(b)
while init_num <= max_num:
a_has_factors = 0
num_is_factor = 0
for element in a:
if init_num % element == 0:
a_has... | [
"aman1994.srm@gmail.com"
] | aman1994.srm@gmail.com |
2ec5d2b57a549231c503b53bad41ba084eaa5180 | bb493e881b1efb5966b048dabb3330861fc2348a | /Problem2_Even_Fibonaci_Nums.py | e89ea2a2ca8010b5af4dd39b709863fb26c92a17 | [] | no_license | sharon-ruane/coding_practice | 1d13f669a2c218602a93e2c8a7991096465516a0 | 7f05098b48e5ef6915e148132ea8a7c6a7756063 | refs/heads/master | 2020-06-03T14:09:32.564956 | 2019-06-12T19:49:21 | 2019-06-12T19:49:21 | 191,598,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | # Problem2
# Even Fibonacci numbers
# Each new term in the Fibonacci sequence is generated by adding the previous two terms.
# By starting with 1 and 2, the first 10 terms will be:
# 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
# Considering the terms in the Fibonacci sequence whose values do not exceed four million, find th... | [
"sharon.ruane@gmail.com"
] | sharon.ruane@gmail.com |
86b6b59da4ff0bd5cd94ad890b04687008b97e5a | 136de4786d4a90d75aa168bb8d26ebc85e017366 | /app.py | 12419ddf217f8a6973bd75de494f811f94c230f5 | [] | no_license | aaravpandya/topic-model-article | 69a29353e5ffc3cd38f01050e6c50526012048ff | 867a68b3a1a764daca94169246a9548023d5d5bc | refs/heads/master | 2020-05-18T17:26:19.924308 | 2019-05-02T07:50:12 | 2019-05-02T07:50:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,331 | py | from flask import Flask, request, Response, send_file, render_template, flash, redirect, url_for, jsonify
import io
from tempfile import NamedTemporaryFile
import nltk
import numpy as np
import pandas as pd
import gensim
from gensim.utils import simple_preprocess
from gensim.parsing.preprocessing import STOPWORDS
fro... | [
"shiwang.romi@gmail.com"
] | shiwang.romi@gmail.com |
d1602560d544b4ced553267b4b55e496e58e3b3b | e4f45c96508207366ec192041404e5e0d21fe489 | /ECOL565/tree_calculations.py | 6b6149bed844b3b37c894c26e01035a067fce3a9 | [] | no_license | asherkhb/cousework | 742c05cbb3a03c92ce02291f1becc3c5502e73c3 | 36df2bde2fd7cf68b805b4e5f874f71b1fc7bd2c | refs/heads/master | 2020-05-24T15:50:08.971640 | 2015-11-09T22:30:34 | 2015-11-09T22:30:34 | 35,519,330 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py | __author__ = 'asherkhb'
# tree_calculations.py
# Calculates tree metrics for two trees fed as arguments
#
# Usage: python tree_calcuations.py <tree1> <tree2>
#
# Dependencies: DendroPy
from sys import argv
import dendropy
tree1_file = argv[1]
tree2_file = argv[2]
tree1 = dendropy.Tree.get_from_path(tree1_file, 'newi... | [
"asherkhb@gmail.com"
] | asherkhb@gmail.com |
250cab1ddcefe33e4ec725b9a411629b96eadbab | 39d4504ec1da8975fac526d6801b94f4348b6b61 | /research/object_detection/utils/visualization_utils.py | 4a6f3295590def33574e84e94fed587f31809eb9 | [
"Apache-2.0"
] | permissive | vincentcheny/models | fe0ff5888e6ee00a0d4fa5ee14154acdbeebe7ad | afb1a59fc1bc792ac72d1a3e22e2469020529788 | refs/heads/master | 2020-07-23T21:38:24.559521 | 2019-11-15T07:50:11 | 2019-11-15T07:50:11 | 207,712,649 | 1 | 0 | Apache-2.0 | 2019-09-11T03:12:31 | 2019-09-11T03:12:31 | null | UTF-8 | Python | false | false | 44,714 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"1155107977@link.cuhk.edu.hk"
] | 1155107977@link.cuhk.edu.hk |
ad2689bc3a1ef3272dfa263f7f741b1dd5782703 | 74289c7af7e014aeea6cc76c7fffc8675dca89ab | /dashboard/migrations/0002_auto_20201203_1929.py | fd7859e4673b73367ebb41f2bf9e026ef2e67d1c | [
"Apache-2.0"
] | permissive | Kgermando/e-s | f8f7f569205ad20b48fcc4ea27fd9de668a28ad9 | 249ada84c63ffe99a71c1fbb301c533b9f5a3869 | refs/heads/main | 2023-03-19T05:34:55.115746 | 2021-03-15T23:12:53 | 2021-03-15T23:12:53 | 310,040,022 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,711 | py | # Generated by Django 3.1.2 on 2020-12-03 18:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='forms_artisans',
name='created',
... | [
"katakugermain@gmail.com"
] | katakugermain@gmail.com |
abec0b0ab2b3d432728609d79e7973892253d855 | b7851ffc689990a5c394697b1d016ba34307630c | /venv/lib/python3.8/site-packages/django/contrib/postgres/constraints.py | 1f4e2617ffcafa0c00abd00ab0dea4d74e29e34a | [] | no_license | denokenya/django-schooling-rest-api | f38fb5cc31a6f40462f9cb1dcc6c3fd36e1301c6 | 552b98d5494344049541df615f446713cb5da1fa | refs/heads/main | 2023-06-14T12:53:11.897887 | 2021-07-10T18:02:11 | 2021-07-10T18:02:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,916 | py | from django.db.backends.ddl_references import Statement, Table
from django.db.models import Deferrable, F, Q
from django.db.models.constraints import BaseConstraint
from django.db.models.sql import Query
__all__ = ["ExclusionConstraint"]
class ExclusionConstraint(BaseConstraint):
template = "CONSTRAINT %(name)s ... | [
"lucasciccomy@gmail.com"
] | lucasciccomy@gmail.com |
6959baaf8e251598084436cb4e2e01b9d3cc408c | 96431e6ac30ee6c584e88015a8a07c6b88672992 | /bruteforce/1476.py | 1e87c3429da20d85d02982e3da15caa58e152c31 | [] | no_license | HeidiHyeji/ex-python | 69d66f289ba15c184407a2b5f5248e1ad1fb6aef | bcdb87e4a7d7ac1efdc4f75fc3f3a58697c843e1 | refs/heads/master | 2023-04-09T13:48:43.983019 | 2021-04-22T14:17:38 | 2021-04-22T14:17:38 | 110,086,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | import sys
E, S, M = map(int,sys.stdin.readline().split())#15,28,19
i = 0
while True:
tmp = 15*i+E
rs = tmp % 28 if tmp % 28 != 0 else 28
rm = tmp % 19 if tmp % 19 != 0 else 19
if rs == S and rm == M:
break
i = i+1
print(tmp)
| [
"gogo6076@naver.com"
] | gogo6076@naver.com |
53dd9e2c67a9c021b3cdc7fec38a7bd1609c45fd | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_surfaces.py | b3a610ca69920fd9bb90387cf7f0229b274b8b1b | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py |
from xai.brain.wordbase.verbs._surface import _SURFACE
#calss header
class _SURFACES(_SURFACE, ):
def __init__(self,):
_SURFACE.__init__(self)
self.name = "SURFACES"
self.specie = 'verbs'
self.basic = "surface"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
4a1093c19780bc68360d3038fe87837c29ad8616 | abca9e32e4fb97c9433ce50720049e0a8f18d9d4 | /qa/rpc-tests/getchaintips.py | 6dcf5b4462eb551de671637e340e38f0cd974495 | [
"MIT"
] | permissive | nikolake/minerium | b0829475f24033b81b184781308dbaef1db182d1 | aa014119a70ba4997df1ab4ab05570a0b01f1590 | refs/heads/master | 2022-07-18T13:33:04.536700 | 2020-05-17T19:03:20 | 2020-05-17T19:03:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,191 | py | #!/usr/bin/env python2
# Copyright (c) 2014-2020 The Bitcoin Core developers
# Copyright (c) 2014-2020 The Minerium Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# Exercise the getchaintips API. We introduce a n... | [
"46746362+bunbunbunbunbunny@users.noreply.github.com"
] | 46746362+bunbunbunbunbunny@users.noreply.github.com |
a500b44ee0e69ac3157847f19501d44eec615d3b | 569da3e77e1e3675b7b1fa041ddd413a9d6e5a81 | /scripts/label_image.py | 852f64daad730228c0b9122a788148900df8b0bf | [] | no_license | arun-kumark/Ionic-Android-Application | 35b7e063beb7cf655f5ffd6a13acb25f2c028e69 | 1d462cbc96d6651b03b9751612f4f69f52a44fef | refs/heads/master | 2021-09-05T05:32:01.021616 | 2018-01-24T12:30:23 | 2018-01-24T12:30:23 | 83,131,159 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,648 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"noreply@github.com"
] | arun-kumark.noreply@github.com |
73215e472af2a62953128dacd6bc7599100f045e | 290e4ab74219e8826044a954b9ab6ff44e3916e7 | /src/controller/schema.py | a381e38c35abd67b88fb9920407eb4943352088e | [
"MIT"
] | permissive | mehsoy/jaws | 1ff437778fc8d94be58cd9468eafed0396e55e62 | b79723c1fc549741494ebf5d948e94a44e971f2a | refs/heads/master | 2023-02-09T02:01:16.946703 | 2021-07-17T22:40:14 | 2021-07-17T22:40:14 | 192,337,939 | 2 | 0 | MIT | 2023-02-02T03:36:52 | 2019-06-17T11:56:18 | Python | UTF-8 | Python | false | false | 1,649 | py | """.. module:: schema """
import re
from voluptuous import Schema, Invalid, Required, Any, All
from application.system.user_role import UserRole
"""Contains all schemata used in controller package
``Schema`` objects are used validate incoming JSON formatted
requests.
"""
#Validators for schemata
def Role(value):
... | [
"mehmet@soysal.eu"
] | mehmet@soysal.eu |
3afd25af65dd48d3153fca7882ee2e10c9f20cbc | 7054f04b8aa78792dcc96297eea4c1e5ac86a4fa | /inference.py | 6b00a2497862d2224754a71777fcede4a291c055 | [
"MIT"
] | permissive | T-C-J/shuiying | bba08e1a1ef16063f9613ef167069bae36eb513d | d47a6a3f0ae0c131117d105b58d60932e4be2538 | refs/heads/master | 2020-05-29T08:57:42.709669 | 2019-05-28T15:09:22 | 2019-05-28T15:09:22 | 189,045,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | """Translate an image to another image
An example of command-line usage is:
python export_graph.py --model pretrained/apple2orange.pb \
--input input_sample.jpg \
--output output_sample.jpg \
--image_size 256
"""
import tensorflow as tf
import os
fro... | [
"995321524@qq.com"
] | 995321524@qq.com |
ec22a55cb8bd259d0c57c2ada4fd7ef763304579 | 68772267a2125c17ff4b4b1cf7dfb94a4c97ae56 | /gcloudspeechtotext/models/recognition_config.py | 205aac3ca75802ee3f1d6d5728a5caadcd748959 | [] | no_license | r3versi/gcloud-speech-to-text | 43dfa3f359bf5e207d1374d4177134b5b452b0ea | 4c06a601f09edf58c63cd6696ade7c9034e8734a | refs/heads/master | 2022-11-11T03:23:47.714652 | 2020-07-03T12:26:12 | 2020-07-03T12:26:12 | 276,894,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,229 | py | # coding: utf-8
"""
Cloud Speech-to-Text API
Converts audio to text by applying powerful neural network models. <br> **PLEASE NOTE**: This API is provided by Google, beside the documentation provide below, you can find Google API documentation [here](https://cloud.google.com/speech-to-text/docs/reference/rest... | [
"fluo392@gmail.com"
] | fluo392@gmail.com |
5e8d50005ab897c655e31ce7412c5ebb10c4f5db | dcf29102afcf78cc37073daedd2b4044c235e1e1 | /Bisection.py | 8f24d36ca278fadf62958fd5bd5ba3d1e6f0ecac | [] | no_license | RonsonGallery/Numerical-analysis | 88e9d4335645e5c2b3402cf4940715530dbed69f | 91357e99f2bee4ee147158e2b54440bed4d709d7 | refs/heads/master | 2023-02-18T16:23:58.707028 | 2021-01-19T10:40:55 | 2021-01-19T10:40:55 | 306,577,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,960 | py | #Roni Gerkerov - 316583145
#Eden Mozes - 315997049
import math
import sympy as sp
from numpy import log
x = sp.symbols('x')
f = sp.Function('f')
def func_calc(func,x,val):
return func.subs(x,val).evalf()
def f(x):
#x = sp.symbols('x')
#x**5 -5*x - +2
#(math.sin(x**2 + 5*x + 6))/(2*(2.718)**(-x))
... | [
"ronson537@gmail.com"
] | ronson537@gmail.com |
9c2185ac3b16e3c826891d95458499b40f42744f | d49faba12b010adf33ee0fa99f83741887f40c17 | /machete/questions/models.py | a6e9cec751b61c37d4ca5f51c5286af5cbf845f6 | [] | no_license | rustyrazorblade/machete | db0c7a07f8d8efba256196d1b676d331fe8f76b9 | 47dd8b9dfe8f74edb286a3b38b9a06be1e63bbfa | refs/heads/master | 2020-05-17T22:05:27.499482 | 2013-05-02T04:53:53 | 2013-05-02T04:53:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py |
import thunderdome
from machete.base.models import BaseVertex, BaseEdge
class Question(BaseVertex):
text = thunderdome.String()
class Answer(BaseVertex):
text = thunderdome.String()
@property
def question(self):
self.inV()
class HasAnswer(BaseEdge):
pass
| [
"jon@jonhaddad.com"
] | jon@jonhaddad.com |
685c747e0f76ba7addacb084fdc786402ebe3ff4 | 6ccc87e32feadc811d8a77f119a766fc8b1dde6a | /tests/conftest.py | 141427e988ad9a9f19fe4fa0189e179e2d2e4539 | [
"MIT"
] | permissive | ddhira123/visualkeras | 45ccdf54477f86dcb0dfd3cb3b76a0ae9a57d921 | 6adb60c695dc29fdaa373d7e7a5b0feeb06c0e6a | refs/heads/master | 2023-06-30T23:46:06.041331 | 2021-08-05T03:50:48 | 2021-08-05T03:50:48 | 392,893,038 | 0 | 0 | MIT | 2021-08-05T03:52:52 | 2021-08-05T03:40:43 | Python | UTF-8 | Python | false | false | 7,315 | py | import pytest
try:
import tensorflow as tf
HAS_TF = True
except ModuleNotFoundError:
HAS_TF = False
try:
import keras
HAS_KERAS = True
except ModuleNotFoundError:
HAS_KERAS = False
def get_functional_model(lib):
shape_x = 48
shape_y = 48
input_img = lib.layers.Input(shape=(shape... | [
"paulgavrikov@yahoo.de"
] | paulgavrikov@yahoo.de |
8ecd9ec1df16e13cb9b076d15190233ee81d77f0 | bef2676a1768d2b2f723a2325bb07d61b5c1da39 | /mjengo/bin/zlogger.py | 11544277a9cceb2483dad26b31cfed839ade1f4e | [
"MIT"
] | permissive | bilha-analytics/school | f7c15f6a6881a26b11371971d476c41162166ee0 | d3491eb3f88386dcef35abe13ff8d494790a607d | refs/heads/master | 2023-04-23T08:55:16.020982 | 2021-05-14T01:10:16 | 2021-05-14T01:10:16 | 294,672,089 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,557 | py | '''
author: bg
goal: proper and consistent logging
type: util
how: use std logging module, format to liking,
learn: https://www.loggly.com/ultimate-guide/python-logging-basics/ , https://docs.python.org/3.5/howto/logging-cookbook.html ,
refactors: Do we want this as a class? What form; Singelton?
'''
impo... | [
"bilha.analytics@gmail.com"
] | bilha.analytics@gmail.com |
9cb139e239abbaa3191055c86ee06cfdc79f561f | 5865cc1b70db72b7a9a9a07547f05a1f47959bb1 | /math/0x01-plotting/100-gradient.py | bf7651d269addbcd5a85b11d97dd23e4a4f3424a | [] | no_license | nildiert/holbertonschool-machine_learning | c8cefc3a784348f09128c0f4d82d65b9d56000c5 | 273f81feaa14fe24ac4db5d82be0d13299e857b8 | refs/heads/master | 2020-12-21T12:27:48.280880 | 2020-09-25T17:58:33 | 2020-09-25T17:58:33 | 236,429,499 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | #!/usr/bin/env python3
import numpy as np
import matplotlib.pyplot as plt
np.random.seed(5)
x = np.random.randn(2000) * 10
y = np.random.randn(2000) * 10
z = np.random.rand(2000) + 40 - np.sqrt(np.square(x) + np.square(y))
plt.scatter(x, y, c=z)
clrbar = plt.colorbar()
clrbar.set_label("elevation (m)")
plt.ylabel('y... | [
"niljordan23@gmail.com"
] | niljordan23@gmail.com |
f026bccb96d874bc15ceeb09ae475077d68edd2f | dd364d0defd5164939be057f087576b5f076d610 | /demo/rest_views.py | 4dd1b2ffeef871363107fcf8b958e4d1afca2ec2 | [] | no_license | srikanthpragada/PYTHON_07_SEP_2018_WEBDEMO | 31cc45bd29fb16fbbf1d6e65dd25cee0cad04405 | 227f333fa90a8aafc25a5116799663b03b64de87 | refs/heads/master | 2020-04-01T19:23:21.337333 | 2018-11-01T02:30:47 | 2018-11-01T02:30:47 | 153,551,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | from rest_framework import serializers
from rest_framework.decorators import api_view
from rest_framework.response import Response
from .models import Book
class BookSerializer(serializers.ModelSerializer):
class Meta:
model = Book
fields = ('id', 'title', 'price', 'pubid')
@api_view(['GET', 'PO... | [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
d26c8b7c1f124ad63556a6d7f37ada8c9460daa2 | 7e86a9bd9ec1f82838d114bf71ad0f6d0f12152c | /venv/Lib/site-packages/stellar_sdk/memo.py | 34dbdb18e8a5f30b598f845a00eb162cedea6e34 | [
"MIT"
] | permissive | yunoUNo/fini | b39688e7203d61f031f2ae9686845b0beccd9b2a | a833bc64a3aaf94f7268ec6eac690aa68327dd96 | refs/heads/master | 2023-08-05T17:42:48.726825 | 2021-09-29T13:30:32 | 2021-09-29T13:30:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,226 | py | import abc
from typing import Union
from . import xdr as stellar_xdr
from .exceptions import MemoInvalidException
from .utils import hex_to_bytes
__all__ = ["Memo", "NoneMemo", "TextMemo", "IdMemo", "HashMemo", "ReturnHashMemo"]
class Memo(object, metaclass=abc.ABCMeta):
"""The :class:`Memo` object, which repre... | [
"quit5123@gmail.com"
] | quit5123@gmail.com |
7149333885f89e42070a2bb81b06de54af1b288f | da29f1f5b4459fbfec968bb694bedb9586f87b14 | /new_algs/Number+theoretic+algorithms/Multiplication+algorithms/PrimeMultiplicationTable.py | 563619a279e1a80bcdeddb9bef091618db4481e4 | [] | no_license | coolsnake/JupyterNotebook | 547806a45a663f090f313dc3e70f779ad9b213c0 | 20d8df6172906337f81583dabb841d66b8f31857 | refs/heads/master | 2023-01-13T18:55:38.615312 | 2020-11-17T22:55:12 | 2020-11-17T22:55:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,785 | py | import math
class PrimeMultiplicationTable(object):
def get_primes_3(self, num):
"""
Time Complexity = O(N) Space = O(N)
"""
if num <= 0:
return []
if num == 1:
return [2]
size = self.prime_bound(num)
res = []
count = 0
... | [
"chenqh@uci.edu"
] | chenqh@uci.edu |
6547e8279bbd5efdc686705d8244aa68569c4fbd | 87112170096f33d0bb4426ad07fb038caf0513ac | /node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/config.gypi | ecd8b58fe4ad058b024d9c891b26e4769f797809 | [
"Apache-2.0",
"MIT"
] | permissive | nikithav/MusicLibrary | bd91d0f925c52e5b03072a080275dca0cc7ca6fb | 472482d5001571d53a6a4b020b3704bee14e4f71 | refs/heads/master | 2020-03-27T22:35:33.864619 | 2016-07-19T20:16:13 | 2016-07-19T20:16:13 | 63,095,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,175 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 49,
"host_arch": "x64",
"node_install_npm": ... | [
"nvenkann@kent.edu"
] | nvenkann@kent.edu |
19859afd50d88112c2b7d43a86fdbd7d638132ed | 3e7a0ee19fa6331e09c9c0bf3b1faffbc3ae45e1 | /audioproc/hoa.py | 2a184fd31336faf0abca78f5e2f158f8e59fd3cf | [
"MIT"
] | permissive | penrin/audioproc | 105084105f9ba1c75ecf8b0f7821d0d411d679d1 | ac3df5015d87f2a1e2a7a86ac7f5b75ae8314c03 | refs/heads/master | 2020-12-07T13:32:08.798438 | 2020-11-10T01:51:23 | 2020-11-10T01:51:23 | 95,565,116 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,075 | py | import sys
import numpy as np
import audioproc as ap
from scipy.special import spherical_jn, spherical_yn, sph_harm
def acn_index(N):
'''
ACN ordering
n: order, m: degree
'''
L = (int(np.floor(N)) + 1) ** 2
n_list = np.empty(L, dtype=np.int16)
m_list = np.empty(L, dtype=np.int16)
i = 0... | [
"hrs@penr.in"
] | hrs@penr.in |
c1cfc0961e408dded2fd95b998843ccb855de9c9 | dfb63403ca20927eda6c2215acd9039f7a3afcc8 | /wsl_distro_build/build_distro.py | b9203504ffc8b61806cbaa764f1fbbd311833c83 | [] | no_license | TUM-Core-Facility-Microbiome/ngstoolkit | d511d9e690ef2dc51691c678a73443dd4c285458 | b333f9396266548b6af67be307f1eec388838ab8 | refs/heads/main | 2023-04-18T22:26:07.712478 | 2021-10-08T07:35:54 | 2021-10-08T07:35:54 | 380,019,157 | 1 | 1 | null | 2021-09-24T08:15:30 | 2021-06-24T18:35:41 | Python | UTF-8 | Python | false | false | 1,929 | py | import os
import pathlib
from wiesel.wsl_distributions import Dockerfile, DistributionTarFile
def build_ngstoolkit_wsl_distro(distro_name: str, ngstoolkit_version: str):
"""
Build the ngstoolkit WSL distribution.
This requires docker.
:param distro_name: name for distro
:param ngstoolkit_version... | [
"zsewa@outlook.de"
] | zsewa@outlook.de |
63d9898c8d7855db94d9afdddf237c38f1cc1a3b | 264a1b67473cf734224fd3aefa6893ce2ff3fffc | /driver/art_driver/src/art.py | d3f64ac624e8d830f317c44bb773539540ad42b3 | [] | no_license | ChenZhiqiang12138/rrooss | b7b1e4d5658006afa4ebb861cbdfaeea73467df8 | fa02a11328e7608e47b1c65bcd10b7f786b8ed12 | refs/heads/master | 2020-05-21T06:31:00.292237 | 2019-05-10T08:37:01 | 2019-05-10T08:37:01 | 185,946,925 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import time
import threading
from ctypes import *
def fun_timer():
global timer
timer = threading.Timer(0.05, fun_timer)
timer.start()
lib.send_cmd(vel,angle)
if __name__=="__main__":
vel = 1500
angle = 1500
lib_path = os.path.a... | [
"noreply@github.com"
] | ChenZhiqiang12138.noreply@github.com |
b0ee4ba7b95a7524a13ef8e3a388ffa639062ad5 | 2cffe2b1ccef3909f88445a2b1f408e57d051721 | /apis/urls.py | ec3271511bab43218a13119ef34a9e5ea6fa93f9 | [] | no_license | jfarriagada/estacionamiento | 80da7a298b9ef4fc837fff4c367ee68905cee16b | e518ad4917f2212318d8fa3905807b15d1b7f015 | refs/heads/master | 2021-01-11T19:45:30.715323 | 2017-01-18T22:27:23 | 2017-01-18T22:27:23 | 79,386,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | from django.conf.urls import url, include
from rest_framework import routers
from apis import views
router = routers.DefaultRouter()
router.register(r'parking', views.ParkingViewSet, base_name='parking')
router.register(r'parking', views.ParkingViewSet, base_name='parking-detail')
urlpatterns = [
url(r'^api-', in... | [
"farriagada@MacBook-Pro-de-francisco.local"
] | farriagada@MacBook-Pro-de-francisco.local |
e79a3615b117d1d9c4adf31d8dfddca43c51eb47 | 6a15ca69993b6db29f8c8f0213ff17e8a4d8b65f | /finances/tools/create_credit_cards.py | 7108af50c1950e93eab38cc84ef3d2f31bf8f102 | [] | no_license | julieqiu/python-finances | aa84de5bcf3dd48fce2b99bd4a63fbe0c4b2acfe | 9e3223ba7e7927f9cceff8b4b331a8781decd78d | refs/heads/master | 2020-03-23T05:49:58.904674 | 2019-01-11T01:25:52 | 2019-01-11T01:25:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | from recipes.database import db_session
from recipes.models import Blog
CHASE_RESERVE_CC = 'https://www.domesticate-me.com'
HOST_FOOD_FAITH_FITNESS = 'https://www.foodfaithfitness.com'
HOST_ORGANIZE_YOURSELLF_SKINNY = 'https://www.organizeyourselfskinny.com'
HOST_ANDIE_MITCHELL = 'https://www.andiemitchell.com'
BLOG... | [
"julieyeqiu@gmail.com"
] | julieyeqiu@gmail.com |
f52e79a4c2596ca8c98360f6b9ea1cb4eb97f092 | 110907fd9804a46992123cf1a88326c87f136a1d | /pc/z64porter/z64lib.py | 1ac2817556310acc7295f1470facd1d6fbce24be | [] | no_license | Mooliecool/z64 | 7835ea813cc44ae2b8b23d0c99e5873bccf081dc | 9c1216a2450c1aae263199e047782f4d3268cc03 | refs/heads/master | 2020-05-20T16:46:23.879011 | 2015-04-02T23:51:05 | 2015-04-02T23:51:05 | 33,337,193 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,947 | py |
from struct import unpack
#When editing scene maximums, the two are located below:
MAX_MM_SCENE = 105
MAX_OOT_SCENE = 109
# Scene max values ^---HERE
MM_SCENE_FMT = ">LLLL"
OOT_SCENE_FMT = ">LLLLL"
MM_SCENE_TABLE = 0xC5A250
OOT_SCENE_TABLE = 0xBA0BB0
BAD_MM_SCENES = [ 2, 7, 8, 51, 42 ]
oot_to_mm_acts =... | [
"spinout_182@yahoo.com@0b3f8760-7c76-11de-98bd-fdc22f85cdda"
] | spinout_182@yahoo.com@0b3f8760-7c76-11de-98bd-fdc22f85cdda |
1d38ca9420318d94c10d2d91f562ff836a49acf4 | 35d3c1ba1d3130414355917b6bb35009121075de | /scripts/test.py | 2c169fc31cbd96e03b0bf819c7a449aa4136671a | [] | no_license | raymondnuaa/oxfordreadingtree | 191b852d331dca3e6fd5f3722958b7b433b1f7da | 15acb5d221f870500166d7c0c669717c7ccec968 | refs/heads/master | 2021-07-10T18:24:02.959923 | 2016-11-13T15:28:49 | 2016-11-13T15:28:49 | 58,813,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
import PythonMagick
img = PythonMagick.Image("1900.png")
img.sample('128x128')
img.write('ax.png')
'''
import PythonMagick
pdf = "aa.pdf"
p = PythonMagick.Image()
p.density('300')
p.read(pdf)
p.write('timg3.jpg')
'''
import PythonMagick
img = PythonMagick.Image()
img.de... | [
"raymondnuaa@gmail.com"
] | raymondnuaa@gmail.com |
1bf99a77ebb7106b4099ecd2911a72cea32ea595 | 35e4efcbb9163101c72ebe02585e8ec7c39c104a | /apps/educacion/ed_ladera/models.py | 1568808709ec8a8990306d539cbf938398064bff | [] | no_license | Ivan252512/resiliencia | ff89a30844812fd3916a1d8c31b734745540b9af | e5f9f9cc76f222438476b6c21022fea1d49f41c3 | refs/heads/master | 2020-04-27T15:12:12.266210 | 2019-04-03T08:56:12 | 2019-04-03T08:56:12 | 174,436,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | from django.db import models
# Create your models here.
class LaderaDefEd(models.Model):
termino = models.CharField(max_length=30)
definicion = models.CharField(max_length=300)
# Create your models here.
class PostEdLadera(models.Model):
subtitulo = models.CharField(max_length=80, null=True, blank=True)
... | [
"ivanpineda@ciencias.unam.mx"
] | ivanpineda@ciencias.unam.mx |
4855150320dadf34f922d6a3f9a994c403185fd4 | b94079ef7f5c5748897cb12635b96de545068c0b | /implementations/WGAN/model.py | f2cd9e598cad31a9ae308692c42fc42337e1c07b | [
"MIT"
] | permissive | WN1695173791/animeface | 80e33de33ce7ba29e9df4270389f12f025220f22 | 8836223dcbbdcbeec98bbc0d31c394cf7ea0f70b | refs/heads/master | 2023-08-27T03:30:21.603566 | 2021-11-13T04:27:01 | 2021-11-13T04:27:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,289 | py |
import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
def weights_init_normal(m):
classname = m.__class__.__name__
if classname.find("Conv") != -1:
torch.nn.init.normal_(m.weight.data, 0.0, 0.02)
elif classname.find("BatchNorm2d") != -1:
torch.nn.init.normal... | [
"blackie0110@gmail.com"
] | blackie0110@gmail.com |
6863c84f1e08fd765a78585b8b11b43528e1a653 | 8137e2d4c8a780243d705494f433f1ffa3936045 | /sensor_portal/sensors/admin.py | 6d167554f02de6567981ed31e17466232b4daea2 | [] | no_license | Cyberbyte-Studios/Sensor-Portal | ce8629d339950fa5b3842c7ca6d4ebc43c41aaf1 | 91ec0c148edfd9c12f3845b50f609bbf9907cdb3 | refs/heads/master | 2021-06-21T11:12:14.641949 | 2016-10-09T00:11:38 | 2016-10-09T00:11:38 | 70,187,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | from django.contrib import admin
from ordered_model.admin import OrderedModelAdmin
from .models import Sensor, Metric, Reading
class SensorAdmin(admin.ModelAdmin):
list_display = ('id', 'name', 'position', 'active', 'site')
search_fields = ('id', 'name', 'position', 'site__name')
list_filter = ('active', ... | [
"theatrepro11@gmail.com"
] | theatrepro11@gmail.com |
d8a5907bf59cb7c9a2c036734da17d6e6b78feb7 | 3df995fa02a43932ab2ea5fea26c06403f139f1f | /abc/abc159b.py | bb2f7da1ad146338f6f88aef886947811fafb18a | [] | no_license | jojonki/atcoder | 75fb7016dd90b3b7495f1ff558eedcdc755eac11 | ec487b4e11835f25c6770f0115b98b7e93b16466 | refs/heads/master | 2021-06-23T09:56:05.636055 | 2021-03-13T03:38:50 | 2021-03-13T03:38:50 | 201,834,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | def main():
S = input()
def helper(s):
l, r = 0, len(s) -1
while l < r:
if s[l] != s[r]:
return False
l += 1
r -= 1
return True
N = len(S)
if helper(S) and helper(S[:(N-1)//2]) and helper(S[(N+3)//2-1:]):
print('Yes')
... | [
"junki.ohmura@gmail.com"
] | junki.ohmura@gmail.com |
5613fef55e30f9a87c537f2b7e7e61555d1f36eb | 033b29b6b1538d10e060e5734a1d7488a3fa03b4 | /attic/strings-bytes/identifier_norm_writer.py | 2dfb9b62829436add0cd1d70f288129e0a247d2c | [
"MIT"
] | permissive | yuechuanx/fluent-python-code-and-notes | f99967416abc9c46be50d95f822b2ef3609f2d2d | 2ae19fff8e1d292c6e8d163c99ca63e07259499c | refs/heads/master | 2023-08-09T22:14:22.985987 | 2022-08-28T09:06:32 | 2022-08-28T09:06:32 | 229,009,764 | 2 | 0 | MIT | 2023-07-20T15:11:59 | 2019-12-19T08:30:28 | Jupyter Notebook | UTF-8 | Python | false | false | 256 | py |
src = """
café = 1
cafe\u0301 = 2
names = {(name, tuple(name)):value
for name, value in globals().items()
if not name.startswith('__')}
print(names)
"""
with open('identifier_norm.py', 'tw', encoding='utf8') as out:
out.write(src)
| [
"xiaoyuechuanz@163.com"
] | xiaoyuechuanz@163.com |
7d090276a374a3c55ab482e6d47a825b198232fc | 09c6f66759f3a96c2665c77b5f1e8ae128e79513 | /ML_ColoringBook/20191018_cartoonlization_1.py | 114483c6316a0ea3674270276939cdea1b4a99be | [] | no_license | waylen94/Machine-Learning-Case-Study | 8ab4979e1284fcc5fd7a5e119c39efe5bf96387e | f2f7618cec5c20d51edd771b3f3e67be9128fcc9 | refs/heads/master | 2020-07-26T13:00:45.267002 | 2019-10-18T10:00:25 | 2019-10-18T10:00:25 | 208,652,265 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | # -*- coding: utf-8 -*-
import cv2
import os
def cartoonise(picture_name):
#capturing image effectively
imgInput_FileName = picture_name
edge_filename = 'edge_' + picture_name
saved_filename = 'cartoon_' + picture_name
num_bilateral = 7
print("Cartoonnizing" + imgInput_FileName)
... | [
"763027562@qq.com"
] | 763027562@qq.com |
74b909d448937f1a9f601e91163932784bb35eb9 | 40a18752fe454bbf029f3f39b7e84cf4403d4977 | /Class Files/duplicates.py | f98140df95034eb29dccb47b04032c0bb60804c8 | [] | no_license | jcanning/Class_craftingQualityCode | 51e63b3c08371c1816db48ee3af0ce6813d10712 | 745b9cc4fa0a5b49dd6d64bf9f6243c24c76ea2e | refs/heads/master | 2021-01-01T05:35:45.441972 | 2013-05-01T21:53:09 | 2013-05-01T21:53:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | def removed_shared(L1, L2):
"""(List list)
>>> list_1 = [1, 2, 3, 4, 5, 6]
>>> list_2 = [2, 4, 5, 7]
>>> remove_shared(list_1, list_2)
>>> list_1
[1, 3, 6]
>>> list_2
[2, 4, 5, 7]
"""
for v in L2:
if v in L1:
L1.remove(v)
if __name__ == '__main__':
impo... | [
"JohnAllan@.(none)"
] | JohnAllan@.(none) |
ed689b5e193dc7ed24846cd0dfc9299fd29309fe | d51f222779a4289f074b821fa4c882a7dd144c33 | /app/main/errors.py | 537f163505e4a4da06f3589aa47e05762c87654d | [] | no_license | Nanrou/blog_site | f4657250af26db6f25b24abf979cb1b4d1e56ae4 | 33fd0690b473987186a7b38c5d40ecc1d115e40d | refs/heads/master | 2021-01-19T14:27:27.109925 | 2018-01-15T02:16:48 | 2018-01-15T02:16:48 | 100,903,152 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | from flask import render_template, request, jsonify
from . import main
@main.app_errorhandler(404)
def page_not_found(e):
if request.accept_mimetypes.accept_json and \
not request.accept_mimetypes.accept_html:
response = jsonify({'error': 'page not found'})
response.status_code = 404
... | [
"kkkcomkkk@qq.com"
] | kkkcomkkk@qq.com |
954066244665d6ff6cafb2c5db58cff8997d5b2c | 3d7d0b0abb93e9799161880339571877d753086d | /menuApp/migrations/0005_auto_20170130_1626.py | a3e87f2cf183db030a0f4a3c91bf018d7477b523 | [
"Apache-2.0"
] | permissive | che4web/canteen | efe26b1d5f46f3815929fd9b34dc5100b01ab9c7 | 5bba3bb391795c2d00ce18dad316fe3da57e37ee | refs/heads/master | 2020-05-23T09:09:12.160405 | 2017-02-25T20:50:03 | 2017-02-25T20:50:03 | 80,439,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2017-01-30 11:26
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('menuApp', '0004_categorymenu_order'),
]
operations = [
migrations.AlterModel... | [
"kochergina@prognoz.ru"
] | kochergina@prognoz.ru |
bd32ec23fe4da9f7a873c505755008fde5a3955e | 054b3171aec06fb64dd4dd4f50156621024aa59f | /login_register/migrations/0003_auto_20180405_1314.py | 7a9ce60f7feaad0eb31645d9ff741d95b0f29b3b | [] | no_license | TtTRz/ALG_x | 4d21368a525d6a60ec9465a941260d059df542bd | 6db7cd0b7893288ea7d232a40925ce2b975a1407 | refs/heads/master | 2020-03-08T13:30:36.919513 | 2018-05-14T04:09:49 | 2018-05-14T04:09:49 | 128,159,726 | 3 | 0 | null | 2018-04-14T14:48:02 | 2018-04-05T04:39:37 | HTML | UTF-8 | Python | false | false | 457 | py | # Generated by Django 2.0.2 on 2018-04-05 13:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('login_register', '0002_auto_20180405_1312'),
]
operations = [
migrations.AlterField(
model_name='user_role',
... | [
"thelns@vip.qq.com"
] | thelns@vip.qq.com |
3ebc23f9675e254ad92cd1d6c65f6c23ef92026b | 2b167e29ba07e9f577c20c54cb943861d0ccfa69 | /numerical_analysis_backup/small-scale-multiobj/resource_usage2/arch4_new/ru_arch4_7.py | 2c16791d14e838246ae3e2a686b864b63185fe48 | [] | no_license | LiYan1988/kthOld_OFC | 17aeeed21e195d1a9a3262ec2e67d6b1d3f9ff0f | b1237577ea68ad735a65981bf29584ebd889132b | refs/heads/master | 2021-01-11T17:27:25.574431 | 2017-01-23T05:32:35 | 2017-01-23T05:32:35 | 79,773,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,390 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 4 15:15:10 2016
@author: li
optimize both throughput and connections
"""
import csv
from gurobipy import *
import numpy as np
from arch4_decomposition_new import Arch4_decompose
np.random.seed(2010)
num_cores=3
num_slots=80
filename = 'traffic_matrix.csv'
tm = []
wit... | [
"li.yan.ly414@gmail.com"
] | li.yan.ly414@gmail.com |
3304b1318fafc5c6e1b040e75f24f5bd5f4f19cb | 97806f36a304b3526fab64f03f92f2e0d6bf3663 | /content/tutorials/hsl-color-wheel/axonometry.py | 78da1f96c4902a0286ede1553b15750eb28b7c9a | [] | no_license | joanmas/PythonForDesigners | 41762ce577a5abc687381c17aaaf8156991a8916 | 9e676f0cf0632dc404359bda3fd614fafc48a5bd | refs/heads/master | 2023-03-03T06:25:48.087996 | 2021-02-16T15:02:25 | 2021-02-16T15:02:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,342 | py | #!/usr/bin/env python3
# coding: utf-8
# ---------- #
# Axonometry #
# ---------- #
### Modules
# dependencies
from drawBot import newPage, width, height, translate
from drawBot import save, restore, scale, saveImage
from drawBot import newDrawing, endDrawing, savedState
# from the project folder
from HSLdonut impor... | [
"hello@robertoarista.it"
] | hello@robertoarista.it |
41f182f5c51ff7dae4a0d1aa3db79e6e5f1d63b1 | 8b868defe347284513bbdc3d486d2542acdd4eea | /python/TBUtils.py | 61b447febcacc33d928691abfe489ce44c9caaa6 | [] | no_license | ShashlikTB/H4TestBeam | bdcbe9e13e0c17851cba59556289e6a318fe7397 | f1bbabfc0e64bf86bd3fe2616a32bc22777d28be | refs/heads/master | 2021-01-21T04:54:19.602615 | 2016-06-09T22:34:34 | 2016-06-09T22:34:34 | 25,589,648 | 1 | 4 | null | 2016-06-09T22:26:49 | 2014-10-22T15:40:04 | C++ | UTF-8 | Python | false | false | 12,956 | py | # Created 4/12/2014 B.Hirosky: Initial release
import sys, os, bz2, inspect, re, time, collections, StringIO, pickle
from commands import getoutput,getstatusoutput
from ROOT import *
def hit_continue(msg='Hit any key to continue'):
print
print msg
sys.stdout.flush()
raw_input('')
# a simple command ... | [
"bob.hirosky@gmail.com"
] | bob.hirosky@gmail.com |
f36722fa138b892831049e06bd6d310de8047724 | 912324171c1181eb1ea033dd57414c3ef28b6b74 | /LR/lr/util/decorators.py | 147bcc600068122ff0dba2a51bb169ece26d09a1 | [
"Apache-2.0"
] | permissive | aworkman/LearningRegistry | 0161c41978ee3376e51008003fb43f2703d3a261 | cf9e9071cba50953f1231cd92fca1c64d9864eb3 | refs/heads/master | 2021-01-15T23:06:54.083832 | 2012-02-01T17:06:49 | 2012-02-01T17:06:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,136 | py | '''
Created on Oct 11, 2011
@author: jklo
'''
from uuid import uuid1
import json
import logging
from contextlib import closing
from pylons import config
import time
import urllib2
import ijson
from ijson.parse import items
import os
import urllib
log = logging.getLogger(__name__)
def ForceCouchDBIndexing():
json... | [
"jim.klo@sri.com"
] | jim.klo@sri.com |
27339df49ba8e212dfde10d2caa99ea5666d1985 | d6cc63e9c21cf3d806397aa8dc18c3927b53ebc8 | /DjangoDemoProject/wsgi.py | 04d0b0444588ba1532a063e4b9616e14be225f53 | [] | no_license | Yogesh-Shaligram/Ecommerces | 03614c396abaef14d9edb1a52dc77e884265c6cd | 408da57fb35c5550f8dd1ff2bd9336f953609714 | refs/heads/master | 2023-06-24T22:24:04.282410 | 2021-07-28T16:59:09 | 2021-07-28T16:59:09 | 390,432,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
WSGI config for DjangoDemoProject 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/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJ... | [
"yogesh.shaligram98@gmail.com"
] | yogesh.shaligram98@gmail.com |
041066009b160414b3a5f7a2b9dd2e8ceba37856 | e22a696ab7c2a0ecd14136acbcd0c999b905ec8d | /DAS/codes/trail.py | 5153b052415b12eb0b849863c03deb77c0525656 | [] | no_license | 99002646/Genesis | 5faaf9ce2165556a52c57bfa468a081aeaefd2af | edfd755aa6e42153b1217ad1620b1040c4bdd2d3 | refs/heads/main | 2023-02-03T22:29:07.970692 | 2020-12-24T09:25:55 | 2020-12-24T09:25:55 | 309,572,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,606 | py |
import numpy as np
from matplotlib.lines import Line2D
import matplotlib.pyplot as plt
import matplotlib.animation as animation
# Your Parameters
amp = 1 # 1V (Amplitude)
f = 1000 # 1kHz (Frequency)
fs = 200000 # 200kHz (Sample Rate)
T = 1/f
Ts = 1/fs
# Select if you ... | [
"noreply@github.com"
] | 99002646.noreply@github.com |
323800e9c6b4f20af345fb68cbaced088e6fb955 | 9a0858d1fdccdc0114cd1a33ab2364cf504d18e8 | /Семинар1. Задача 5.py | 693554e9e2614351b9e2e7bfe3c22d051ccc38ea | [] | no_license | DenisGlebov96/- | 6d458d92f879dd04a7c18c4fdecc0332680f396d | a9175aff572d6ab589d3735a596d0c19fe6fc57b | refs/heads/master | 2022-12-30T22:38:03.459551 | 2020-10-14T18:29:16 | 2020-10-14T18:29:16 | 300,227,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | a = input()
for i in reversed(a):
print(i,end='') | [
"noreply@github.com"
] | DenisGlebov96.noreply@github.com |
aac12304f8e7507d5574691b3321be28f30fc98f | 8a89ba166e6740c0082d56c6af4021c7e8c93686 | /FindTheUnknownDigit.py | 74b48172f60de57ceea26e4f3095d3107bce201d | [] | no_license | xylonlin/codewars | db26b198efa15919dbfa501d47fde9b60146c999 | e23a6dabbdb9cdeb1dabbc3d3a57e46451fa092a | refs/heads/master | 2020-03-28T10:22:38.785845 | 2018-09-22T12:18:55 | 2018-09-22T12:18:55 | 148,103,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | #codewars link
#https://www.codewars.com/kata/546d15cebed2e10334000ed9/train/python
def solve_runes(runes):
temp = runes
print(temp)
for i in "0123456789":
if i in temp or i == '0' and (temp[0] in '0?' and \
temp[1] in '?1234567890' or \
any([ True for i,s in enumerate(temp) \
... | [
"xylonlin@tencent.com"
] | xylonlin@tencent.com |
4dd9b94c80c34f8e6191e417b3ac9124d3613601 | 1c33942c013776c6b4a2e1d26be0a3ac28f36c91 | /chainer/layer_function.py | 190944e8fd3e6a0144e3ce4bdc7589af3060c663 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | asrlabncku/RAP | d9845868204bd5b687b77bb3e39836eded5b1da7 | 11fab37c8d98257ec0aed1b306aa9709a3a51328 | refs/heads/master | 2023-02-02T01:53:02.576516 | 2020-12-23T07:49:10 | 2020-12-23T07:49:10 | 280,380,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,026 | py | import math
import chainer
from chainer import cuda
from chainer.variable import Variable
# from chainer.functions import clipped_relu as f_clipped_relu
# from chainer.functions import crelu as f_crelu
# from chainer.functions import elu as f_elu
# from chainer.functions import hard_sigmoid as f_hard_sigmoid
# from cha... | [
"monica43a@gmail.com"
] | monica43a@gmail.com |
2ba61dfc1f4009952ba24d1ad2f07b48321ea0be | d8004ee845f8d9b883f4ff9ebc28e262700cfba5 | /Anagram solver.py | 974b6ff67060b912b8534a332f4ef008bc609d61 | [] | no_license | Bhavan24/Anagram_solver | 8b1dc1b5c3ca9102f3eba558c8c9a3d02261c755 | 160a28cbc0b95b7d27e9bc19d701f31035a21809 | refs/heads/main | 2023-02-14T21:25:27.313678 | 2021-01-09T13:22:41 | 2021-01-09T13:22:41 | 326,018,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | user_input = input('Enter your anagram: ')
from itertools import permutations
spel = [''.join(data) for data in permutations(user_input)]
for i in spel:
with open("WordList.txt", "r") as a_file:
for line in a_file:
stripped_line = line.strip()
if i == stripped_line:
print(stripped_line) | [
"noreply@github.com"
] | Bhavan24.noreply@github.com |
020c7f5f4602d40cbdfc38168fc2605b321b5420 | 65532d899ee8dde699d176677397d41605822bd3 | /componentspython/configure_env.py | 53e0893473a899e554197a7dd07002de0fce8b68 | [
"Apache-2.0"
] | permissive | Mirantis/mos-components-ci | 2d07c5460ea9b2f689119f15814fc464c8075441 | 9fbf056ba47a5d278869f8a9c90f4091bd2fc19a | refs/heads/master | 2021-01-10T16:23:54.267826 | 2016-04-18T14:31:30 | 2016-04-18T14:31:30 | 52,099,218 | 1 | 4 | Apache-2.0 | 2020-02-26T11:57:42 | 2016-02-19T16:04:42 | Shell | UTF-8 | Python | false | false | 7,247 | py | # Copyright 2014 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
"vrovachev@mirantis.com"
] | vrovachev@mirantis.com |
41ef6c08789a5dc38f99ad6c193e5ba387c28397 | a984fa1a01a6b5153483b5abef634c926ffd3065 | /scripts/Test scripts/test3.py | d6050fe765d0f8d8ac23f6f211a5467256dcd662 | [] | no_license | jkapilivsky/IG---Valeria | 585ceaa2ea7198ffc128836ed9a07f77b1af0cf5 | db465f51771ef008c6d96abada388b59729ea557 | refs/heads/master | 2022-06-27T12:07:17.863574 | 2018-08-27T03:25:35 | 2018-08-27T03:25:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | def subtract():
num = 150
for x in range(150):
num -= 1
print(num)
if num == 140:
quit() | [
"jamie.kapilivsky@gmail.com"
] | jamie.kapilivsky@gmail.com |
54bb06e4261361caee62ccf3d67c664134ce721a | 94889e022b2ffd80d17a626b68df597f14a028f7 | /auto_python4/common/handledata.py | 79597a5b02ef5313e1cec84a8490ade28946b289 | [] | no_license | wushengling/AutoTest | 2059b799374aa7794435d28642246d77580ca018 | 6698f2f275ed4ce47e197d87e9e5a0cda2a8d6a0 | refs/heads/master | 2022-07-02T17:58:45.651811 | 2020-04-19T11:15:02 | 2020-04-19T11:15:02 | 188,354,973 | 4 | 0 | null | 2022-06-21T03:15:04 | 2019-05-24T04:59:46 | HTML | UTF-8 | Python | false | false | 714 | py | #coding:utf-8
# vscode读取不到了包路径解决方案
import sys
import os
curPath = os.path.abspath(os.path.dirname(__file__))
rootPath = os.path.split(curPath)[0]
sys.path.append(rootPath)
import re
from common.myconfig import conf
class CaseData():
''''这个类专门用来保存,用例执行过程中提取出来,给其他用例用的数据'''
pass
def replace_data(s):
r1= r"#(.... | [
"740776409@qq.com"
] | 740776409@qq.com |
12edd86424b96b1e5788cbd1593107b8c86e375a | e6640746bc6fd5cbe272b764e7744239545b8a94 | /check.py | 35e33b7abb58fb7989401b95ed1302b2baea12cb | [] | no_license | avoredo/weather-vk-bot | 014acbe9d5a9175f79bcc8f3f799d2ea9caf4f05 | 373efde40ae2b1e9fea2a81a8b0a1a9ec59ed065 | refs/heads/master | 2020-06-05T10:34:08.387628 | 2020-01-08T14:46:35 | 2020-01-08T14:46:35 | 192,410,737 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,958 | py | # -*- coding: utf-8 -*-
import time
import requests
import os
import locale
import pytz
try:
locale.setlocale(locale.LC_TIME, 'ru_RU')
except:
locale.setlocale(locale.LC_ALL, '')
def check(place):
url = 'https://meteoinfo.ru/hmc-output/meteoalert/map_fed_data.php'
html = requests.get(url).text ... | [
"georgybombelo@gmail.com"
] | georgybombelo@gmail.com |
d409d9b0d081d9962a79d6d88693067405aab5b0 | b5ee0c8f0dfc58b2065b361dbc5d530ec9ae9981 | /joblog/__init__.py | e44fe10ebef26bed2486e358fa706c2bd35bc0e5 | [] | no_license | Esmaeili/joblog | 523152eaacbed446231f332b947652447b402bde | 45614d05872f28166ef6618b7cc4610d38e60b23 | refs/heads/master | 2020-12-27T10:13:37.990310 | 2013-01-31T18:18:17 | 2013-01-31T18:18:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | from .joblog import Job, JobFactory
| [
"beaumont@hawaii.edu"
] | beaumont@hawaii.edu |
d6d6f8eda2c0111a45ed400d96dc7173bcd437cc | 37508e5ea95f5404e7afc073a64a8007367254f0 | /apps/organization/migrations/0001_initial.py | 27b0c7185a6ba4b08f6ae75923e837d314ae7970 | [] | no_license | Snow670/EDonline | 5ea6e96f05c5f406856cc791cff3ebcccf8b504a | 1da1c546f4a880621d9ec1a3c6139f3d76f030f6 | refs/heads/master | 2022-11-06T04:15:39.345033 | 2020-06-18T13:01:40 | 2020-06-18T13:01:40 | 271,508,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,191 | py | # Generated by Django 3.0.7 on 2020-06-10 01:51
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='CityDict',
... | [
"1419517126@qq.com"
] | 1419517126@qq.com |
10ded9deb1efd0dc17c9e96152f66b7aec0396c1 | eaceab983a69a3394b41c8de538ea224651d83cc | /UMOD_PAPER/src/PED2HTML.py | 2fa40a949a0c1d5435f42a27e7389ee5598f541b | [] | no_license | wavefancy/CircularPedigreeTree | 01e70bf6a74a457e22dee330384da119a2a0d1b4 | 783283b49467aff156227e02e4aab5f5906783a6 | refs/heads/master | 2020-06-01T13:05:32.740511 | 2020-04-07T07:36:06 | 2020-04-07T07:36:06 | 190,789,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,234 | py | #!/usr/bin/env python3
"""
Convert ped file to newick format.
@Author: wavefancy@gmail.com
Usage:
PED2HTML.py [--html base_file] [-d int] [--notext] [-c color] [--sweep txt] [--degree int]
PED2HTML.py -h | --help | -v | --version | -f | --format
Notes:
1. Read sigle family pe... | [
"wavefancy@gmail.com"
] | wavefancy@gmail.com |
5afeb293e7de68b98386f7002a1bca0ce280583c | 028e1f1544573e9dc85a7f267257085a076305c1 | /models/base_res101/model.py | 27b6230ad4ab7066b5be01a62118213a385c21f4 | [
"MIT"
] | permissive | cadkins052/tab-vcr | e5333b05c7a1afbdf81a9f482b2980f535f5b332 | ea713a6ef7ca54eb3123d8729dfc26dc604644c5 | refs/heads/master | 2020-11-26T19:27:21.267397 | 2019-12-24T03:11:39 | 2019-12-24T03:11:39 | 229,185,220 | 0 | 0 | MIT | 2019-12-20T03:46:05 | 2019-12-20T03:46:04 | null | UTF-8 | Python | false | false | 10,110 | py | from typing import Dict, List, Any
import torch
import torch.nn as nn
from torchvision.models import resnet
from torch.nn.modules import BatchNorm2d,BatchNorm1d
from utils.pytorch_misc import Flattener
import torch.nn.functional as F
import torch.nn.parallel
from allennlp.data.vocabulary import Vocabulary
from allennlp... | [
"deanplayerljx@gmail.com"
] | deanplayerljx@gmail.com |
7651f52a6e70bf69a76a880ee086f1b872405b0a | 8a8c9517e0107802c5abfea72f8fe78d73569879 | /Books/forms.py | 2b1698a52ae85f2c0b3cbd744a5e8b185c2ecfa7 | [] | no_license | SrivastavaRishabh/Projects | b4d2b841cf6051e9def55bbf123b70f677e06938 | e768e43a3f9c31d48370629f0c97c8249f9619ce | refs/heads/master | 2020-03-24T21:44:24.220022 | 2018-08-13T13:43:39 | 2018-08-13T13:43:39 | 143,047,422 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | from django import forms
from .models import Books
class EntryForm(forms.ModelForm):
class Meta:
model = Books
fields = ('name', 'isbn', 'pages', 'image', 'description', 'genre',
'publisher', 'authors', 'pubdate')
| [
"rishabh@testpress.in"
] | rishabh@testpress.in |
5f2721ffbb6a6b15822f2107e3fc1814431d1975 | a969f4d87360010bb0ae7fff1373bb0b92e2b21a | /badger/models.py | b6487c6f80ff849f8e103af68ab27c0771bd2b24 | [] | no_license | philratcliffe/django_badger | b059e52025930696352020a318dc1a7100a47193 | 1f136741f391c918ed75862373e4a858e63d2f40 | refs/heads/master | 2020-04-05T04:09:23.694598 | 2019-01-23T13:14:14 | 2019-01-23T13:14:14 | 156,539,879 | 0 | 0 | null | 2018-11-23T10:18:57 | 2018-11-07T11:59:09 | Python | UTF-8 | Python | false | false | 2,245 | py | import itertools
from django.template.defaultfilters import slugify
from django.conf import settings
from django.db import models
from django.urls import reverse
from model_utils.models import TimeStampedModel
from .validators import validate_employee_name
class Badge(TimeStampedModel):
name = models.CharField... | [
"phil@philratcliffe.co.uk"
] | phil@philratcliffe.co.uk |
4019e75fe7c301209c534516e97c8758f8c51c65 | efad856f87ce545e640633112c094363e03d98a1 | /venv/bin/easy_install-3.7 | dffc980f922be2122df9a0f4404b113c74031daf | [] | no_license | Gabriel-Tales/PayBot_Whatts_App | 1e18f83b7726a9824d2b5aa22a1bb30784a78f05 | 23a052f41c94a2ec578090547d79a5e1eceecb65 | refs/heads/master | 2022-12-01T16:23:08.766578 | 2019-05-30T15:32:20 | 2019-05-30T15:32:20 | 189,235,859 | 0 | 0 | null | 2022-11-22T03:50:43 | 2019-05-29T13:55:35 | Python | UTF-8 | Python | false | false | 262 | 7 | #!/root/Projetos/python/zipzop/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
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())
| [
"gabrieltales.pinho@gmail.com"
] | gabrieltales.pinho@gmail.com |
9f1d0915a82bbebeff6a08afaad893423aae0abf | 84d1d0e86f85ff945f65c9ce83c6f75477c52022 | /sample.py | baa1010924b1e3d717a7e3a544700b18c5585e11 | [] | no_license | kodamitsuyoshi/tradingbot | d761128f9a7cb87e4e920eab72fb18733b91799e | 8933560f50f1592a4db36756f2cb9cdf82cbc2b7 | refs/heads/master | 2020-03-10T17:40:22.444458 | 2018-05-08T17:47:00 | 2018-05-08T17:47:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,722 | py | from bitmexwebsocket import BitmexWebsocket
import time
import numpy as np
import pandas as pd
from notify import Line_Notify
def date_from_timestamp(s=None):
if s==None:
s = round(time.time())
return str(datetime.fromtimestamp(s + 60 * 60 * 9))
if __name__ == '__main__':
LINE_TOKEN=sys.argv[1... | [
"3nan.mkoda@gmail.com"
] | 3nan.mkoda@gmail.com |
a38915a88964170726d29431be29c2924d72c2cd | 4f8b0cb6779752f3c0b61c0e403f011f20e16a5e | /venv/Scripts/easy_install-3.7-script.py | 4e766e84754e05f97bc5c469c4542cee44f68c02 | [] | no_license | FredoCeroAnon/TallerGitHub | c8086d45f425ffd73a3cb3c0e658b4abe3435824 | d5e3c2439ee306b4d140134ace9b60174750c01b | refs/heads/master | 2020-05-14T11:32:46.442694 | 2019-04-16T23:12:09 | 2019-04-16T23:12:09 | 181,779,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | #!C:\Users\LUISALFREDO\PycharmProjects\TallerGitHub\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-... | [
"luisalfredo9905@gmail.com"
] | luisalfredo9905@gmail.com |
bb93cb7b1fe4a984fbc93ec52a9b316230cc8390 | cb9bc5926279b2396c8b5489171fd0f43b5eaa50 | /scripts/py-callgraph | 0f2334b72285c514fcddb5f4c21c597db73321df | [
"MIT"
] | permissive | roy2220/systemtap-python-tools | 008e1e615de325091896fa301fe196f25f7007f5 | 2bb850f4ce70cb9175c2dbeb0752755b0faa9bb7 | refs/heads/master | 2021-05-04T08:49:48.730066 | 2016-09-29T22:15:11 | 2016-09-29T22:15:11 | 70,374,292 | 0 | 0 | null | 2016-10-09T03:31:26 | 2016-10-09T03:31:25 | null | UTF-8 | Python | false | false | 1,677 | #!/usr/bin/env python
from __future__ import print_function
import argparse
import subprocess
import sys
from common import abspath, build_stap_args, gen_tapset_macros
def main():
argparser = argparse.ArgumentParser()
argparser.add_argument('-x', '--pid', help='PID to profile', required=True)
argparser.ad... | [
"freemaneben@gmail.com"
] | freemaneben@gmail.com | |
e73a9385df2d135e22c411c5d7930ecc8f37b31d | 50ac1b24ecab60da963f143dad2018c0f82301d1 | /urls.py | 5553a1c61fcd500f1933b856105d20a50446b7f3 | [] | no_license | odero/django_oauth | bc70dfb5c3e157cd46a77755ee640acd41a20b05 | d2455f6f67b9ed96d91c8db76e44704cf7e7429c | refs/heads/master | 2020-06-04T16:51:03.866400 | 2011-06-09T19:08:53 | 2011-06-09T19:08:53 | 1,870,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns(
'',
(r'^admin/', include(admin.site.urls)),
(r'^login/$', 'django.contrib.auth.views.login', {'template_name':'admin/login.html'}),
... | [
"billyx5@gmail.com"
] | billyx5@gmail.com |
1258569d923b14536a0ab54b19113ff8c54e5152 | 2555654319106963d7d833dacf2c870f073f2950 | /serwer/rest_srv/serializers.py | 0f1247b94d26fbfac4acc744fdc8f5872d4fa13e | [] | no_license | LuzikArbuzik/Server-Python | 0462c40b68bb5955f5ec750934f88261abbcc860 | 594650c3c525278837567ae01d7bfdcdb7e85c91 | refs/heads/master | 2021-01-21T20:19:11.638397 | 2017-05-23T21:37:13 | 2017-05-23T21:37:13 | 92,220,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,118 | py | from django.contrib.auth.models import User
from rest_framework import serializers
from rest_srv.models import *
class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = User
fields = ('url', 'username', 'email')
class OrderSerializer(serializers.HyperlinkedModelSerializ... | [
"jablonski.bartosz93@gmail.com"
] | jablonski.bartosz93@gmail.com |
16f30bf6fd6afc00cb0ded311baf89c145a1e50c | bc67fe1a95800fc008e168cf72b67830dd0d8ad4 | /scripts/train_gold.py | 13e64adff9a28b9f0a0ede53fefa8dd6eb7ef268 | [
"MIT"
] | permissive | Ekeany/Dawid-Skene | 635a3e347239371b55202720f849627a106360e9 | 288b64bffd6e2796b3b34ffaa47286afadd4d23e | refs/heads/master | 2020-05-24T11:19:25.238701 | 2019-05-17T16:57:52 | 2019-05-17T16:57:52 | 187,246,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,071 | py | from sklearn.tree import DecisionTreeClassifier
from sklearn.metrics import accuracy_score,f1_score
from gold_sample import m_sample
from io import StringIO
import pandas as pd
import numpy as np
def generate_prediction_file(y_test, y_pred, sen_id,file_name,approach_name): #Decllared function to gene... | [
"noreply@github.com"
] | Ekeany.noreply@github.com |
bf7039aa3899de3043bc3db68c5610d1ac4283fb | 4bc6028ed8ba403b69adfd6f5cbd139baece0f4d | /basic_python/multi_thread/produce_consume_demo2.py | c18acdfccda9eb4b6e2336e247e9fd341d63cff3 | [] | no_license | xrw560/learn-pyspark | 0ef9ed427ff887ceed1c5e5773bf97ed25ecae04 | 618d16dafd73165e714111670119d9cdecc0bf1f | refs/heads/master | 2020-03-07T00:12:36.885000 | 2019-01-04T09:51:32 | 2019-01-04T09:51:32 | 127,152,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,573 | py | #!/usr/bin/python
# -*- encoding:utf-8 -*-
"""
@author: zhouning
@file:produce_consume_demo2.py
@time:2018/7/30 18:51
@desc:生产者消费者
"""
import threading
import time
condition = threading.Condition()
products = 0
class Producer(threading.Thread):
def run(self):
global products
while True:
... | [
"ncutits@163.com"
] | ncutits@163.com |
c3c6c6d1d9393e69ac648a65ecc9a297ae9e8921 | cdbc1e37586bd6b08bed4ee3c97831250b585699 | /pre_process/extract_bboxes.py | 9b515f7efd5ad8ddaeabb89e6d4b293b6ccd56c0 | [] | no_license | PeterZhouSZ/hf2vad | efdf66e3191e0b9597cfeec07cbc16c691bd5afd | f909f427001e7bbabf8994e8992bd3e72334f547 | refs/heads/master | 2023-08-06T16:11:57.432201 | 2021-10-09T04:35:22 | 2021-10-09T04:35:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,329 | py | import numpy as np
import os
import argparse
import cv2
import torch
from tqdm import tqdm
from datasets.dataset import get_dataset, img_tensor2numpy, img_batch_tensor2numpy
from pre_process.mmdet_utils import init_detector, inference_detector
torch.backends.cudnn.benchmark = True
torch.backends.cudnn.enabled = True
... | [
"csliuzhian@mail.scut.edu.cn"
] | csliuzhian@mail.scut.edu.cn |
1797cc28eea736cc574b2a6da4546b8189e379b5 | 9923e30eb99716bfc179ba2bb789dcddc28f45e6 | /apimatic/python_generic_lib/Samsara+API-Python/samsaraapi/models/address.py | 2b975d18c5a4bcc100d752ae06f73c387069e96d | [
"MIT"
] | permissive | silverspace/samsara-sdks | cefcd61458ed3c3753ac5e6bf767229dd8df9485 | c054b91e488ab4266f3b3874e9b8e1c9e2d4d5fa | refs/heads/master | 2020-04-25T13:16:59.137551 | 2019-03-01T05:49:05 | 2019-03-01T05:49:05 | 172,804,041 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,681 | py | # -*- coding: utf-8 -*-
"""
samsaraapi
This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
"""
import samsaraapi.models.contact
import samsaraapi.models.address_geofence
import samsaraapi.models.tag_metadata
class Address(object):
"""Implementation of the 'Addr... | [
"greg@samsara.com"
] | greg@samsara.com |
fabb5d55230bd7f608c260d329d753b3fc9ad165 | dd16094e1128c7b5708df537b3dd9189db53511d | /wellen/wellen/urls.py | 67d0faf994e00af1ea3d5a4cec4bebd35bbfbc51 | [] | no_license | jpcvandam/acaciadata | 30937ec770762ea78dfa2f21a98ca5e4c09ee699 | d2c6a1f13d8eb9944000e00f9a4ff19979969989 | refs/heads/master | 2021-01-21T08:58:06.598229 | 2015-10-19T13:27:36 | 2015-10-19T13:27:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,818 | py | from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from django.conf import settings
from django.contrib import admin
from .views import HomeView, DashGroupView
admin.autodiscover()
urlpatterns = patterns('wellen.views',
url(r'^$', HomeView.as_view(), name='home'),
... | [
"tkleinen@gmail.com"
] | tkleinen@gmail.com |
143e7bdddeb47fa9368a9a91853b3f277b78725a | e3cfd7e0b30b9605f0f9d83876b79d9511b02b58 | /vrtManager/create.py | 3a755014a55ad8a2b565da2448cce757df447cba | [
"Apache-2.0"
] | permissive | AliasRK/WebVirtCloud-B7 | 56dd8539375a3e0c06b77582e0a1c707ff15d7da | 3694f5615bae9fd071d4400bc129918d277775af | refs/heads/master | 2020-03-24T17:58:04.601169 | 2018-07-27T19:14:20 | 2018-07-27T19:14:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,939 | py | import string
from vrtManager import util
from vrtManager.connection import wvmConnect
from webvirtcloud.settings import QEMU_CONSOLE_DEFAULT_TYPE
from webvirtcloud.settings import INSTANCE_VOLUME_DEFAULT_FILE_EXTENSION
from webvirtcloud.settings import INSTANCE_VOLUME_DEFAULT_FORMAT
def get_rbd_storage_data(stg):
... | [
"r.v.mirchev@gmail.com"
] | r.v.mirchev@gmail.com |
558f941e1f5daf39d0d1e2e9416df55369a27e83 | f5070c669f20f89dc23de19db94d662fd245eebb | /s3recovery/ut/s3recovery_recover_tests.py | 0e10d0ded6e0888ff61e0200ab470865a3153e38 | [
"Apache-2.0"
] | permissive | kaustubh-d/cortx-s3server | 8471e9581d6843e260e048a911ddb8beb0af4316 | 43cffc0e3e9e261e9956dfcf90b1e75e97cd367d | refs/heads/main | 2022-12-18T18:03:03.438484 | 2020-09-24T15:33:39 | 2020-09-24T15:33:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,153 | py | #
# Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates
#
# 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 ap... | [
"noreply@github.com"
] | kaustubh-d.noreply@github.com |
65a182d71eda63a105602f86927d6443abe837d3 | 222a67d44ea67372f61c090d467bf43f874ee769 | /prac_08/silver_service_taxi.py | 2c7365032ce11dd7b40fe12179abc3fa425cac62 | [] | no_license | JarrodPW/cp1404practicals | 1504f7cd44fff202b2b020c90fbff508d663e16b | 7e508fe6dcce8f0e5879a27a5c777352a66537b1 | refs/heads/master | 2023-08-24T05:35:37.214840 | 2021-10-11T22:27:29 | 2021-10-11T22:27:29 | 397,093,991 | 0 | 0 | null | 2021-10-05T03:01:17 | 2021-08-17T04:17:03 | Python | UTF-8 | Python | false | false | 563 | py | """
prac 08
SilverServiceTaxi Class
"""
from prac_08.taxi import Taxi
class SilverServiceTaxi(Taxi):
price_per_km = 1.23
flagfall = 4.5
def __init__(self, name, fuel, fanciness=0):
super().__init__(name, fuel)
self.fanciness = float(fanciness)
self.price_per_km *= fanciness
... | [
"jarrod.paynewatson@my.jcu.edu.au"
] | jarrod.paynewatson@my.jcu.edu.au |
ee29f93552f28f3f2169f28fead98430500fabf2 | 154d42c739793fbf61df002f9d8c659b07a0fcac | /19_friend_date/friend_date.py | 8a95efc01a96105034214e3b1588a8fc5e752352 | [] | no_license | mcodemax/PythonDSPrac | 048aced3d4e58e9091dc25404160c7702bd6c597 | e62dc6efb4bedb0fb9f7e94448f22330581fb571 | refs/heads/master | 2023-05-06T19:44:30.122344 | 2021-05-25T00:37:21 | 2021-05-25T00:37:21 | 369,969,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | def friend_date(a, b):
"""Given two friends, do they have any hobbies in common?
- a: friend #1, a tuple of (name, age, list-of-hobbies)
- b: same, for friend #2
Returns True if they have any hobbies in common, False is not.
>>> elmo = ('Elmo', 5, ['hugging', 'being nice'])
>>> sauron... | [
"mwalterjohnson7@gmail.com"
] | mwalterjohnson7@gmail.com |
217f34413d63eb6f3d1186e468fd660c6e515573 | 303f5990985aba9a1884053baf08ff0d47c3a5de | /build/ork/tod/catkin_generated/pkg.installspace.context.pc.py | c9c7b014ef7ddc0718c98663eb475ce45d5460a1 | [] | no_license | Brendon2016/Tsing-Siemens-Competiton | d1339e162c8582a59aa153f29bec0180c4e261d7 | 8ffc7ee931a877898342fdd3593e92b633e22bce | refs/heads/master | 2020-03-28T23:30:48.267738 | 2018-09-18T13:53:33 | 2018-09-18T13:53:33 | 149,294,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "object_recognition_tod"
PROJECT_SPACE... | [
"251311876@qq.com"
] | 251311876@qq.com |
561b48e0f9faad2ba29366f95238236a3b524eb6 | 05b0bcbef59def8743ae56e4110153837ff24ec1 | /Scripts/get_model_weights.py | 23d806b38b1582bb4e772757722662ce44fa20a4 | [] | no_license | AkselAllas/Bachelor_thesis | fdb468d142d209e593729ff205fe12a3ae4a244e | 50aebb8a3ad60f9604c1bb525f6c5949fc4c0f0b | refs/heads/master | 2020-04-30T15:38:40.391119 | 2020-01-15T07:03:54 | 2020-01-15T07:03:54 | 176,925,588 | 0 | 0 | null | null | null | null | MacCentralEurope | Python | false | false | 4,808 | py | #!/usr/bin/env python
# coding: utf-8
#Import all the dependencies
#This disables python on GPU
#import os
#os.environ["CUDA_VISIBLE_DEVICES"]="-1"
from sklearn.utils import class_weight
from keras.callbacks import EarlyStopping, CSVLogger, ModelCheckpoint
from keras.optimizers import SGD, RMSprop, adam
from keras... | [
"allasaksel@gmail.com"
] | allasaksel@gmail.com |
b1814ccda60066a724e595cb3887d46398bfb2bf | 3fc8150fe6cd3dd7f800341a1c193a628f6c60ad | /App/settings.py | ddce24681fc319deb2a1d5bf6260bdd204221d4b | [
"MIT"
] | permissive | passed-by/WeatherTornado | 9fbe8b179115dac866745b4aa50c71bc06164e94 | 05f1ccc56b93c3267d65fbee312de4b99fb1a5e4 | refs/heads/master | 2020-08-02T09:39:54.257203 | 2019-09-27T11:43:30 | 2019-09-27T11:43:30 | 211,306,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | # settings.py: 项目配置
import os
from tornado.options import define, options
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
define('port', default=8082, type=int)
define('debug', default=True, type=bool)
app_settings = {
"debug": options.debug,
"template_path": os.path.join(BASE_DIR, 'tem... | [
"2809196989@qq.com"
] | 2809196989@qq.com |
aa07d79b5463041171e9c12a10d01361b10412d2 | f653f96c26501523d36f67330186e546b9067749 | /20/00/9.py | 8a4e8ca785dcdfa995155a8d1c1d57d37d7b58ce | [
"CC0-1.0"
] | permissive | pylangstudy/201711 | 6d5fb40d3bf0b1be5310e6c85ac23c76a7f9db56 | be6222dde61373f67d25a2c926868b602463c5cc | refs/heads/master | 2022-11-13T22:11:52.127874 | 2017-11-29T23:32:17 | 2017-11-29T23:32:17 | 109,062,692 | 0 | 1 | null | 2022-10-20T07:22:56 | 2017-10-31T23:22:16 | Python | UTF-8 | Python | false | false | 420 | py | import argparse
parser = argparse.ArgumentParser()
parser.add_argument('bar')
parser.parse_args(['XXX'])
parser = argparse.ArgumentParser()
parser.add_argument('-f', '--foo-bar', '--foo')
parser.add_argument('-x', '-y')
parser.parse_args('-f 1 -x 2'.split())
parser.parse_args('--foo 1 -y 2'.split())
parser = argpars... | [
"pylangstudy@yahoo.co.jp"
] | pylangstudy@yahoo.co.jp |
8c222de0453c329c322e024d9cbbc2e7f7988275 | 37448df3b6375f69471d2c8723ada56505d3dbbc | /apps/entity/apps.py | bc2f2558cf2082ba8093a0670a171d0e5e475865 | [] | no_license | williamsko/payhouse | 4df63ac32069b2803d53451089ff572de054eea9 | bcee45b09f0a889e35accd652c02522b15edbf7a | refs/heads/master | 2022-12-08T23:52:22.206285 | 2020-02-09T20:23:36 | 2020-02-09T20:23:36 | 209,165,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | from django.apps import AppConfig
class EntityConfig(AppConfig):
name = 'entity'
def ready(self):
import entity.signals # noqa
| [
"wdesouza-prestataire@ina.fr"
] | wdesouza-prestataire@ina.fr |
8183baa66dbb0e983f4690fd1ca40a8bc1f5d061 | 14c1ae3c47863babc40e473c8d55383459612e2b | /mysignal/mysignal.py | 933287a23881a705566351a28ea31de5a129bb91 | [
"WTFPL"
] | permissive | hz-b/MSc_FOFB-Simulation | 009852321dad92dd88912c1cc818d544e8f50f78 | dc9a43f54bf7e570915d0360d102ad04f3cb761d | refs/heads/master | 2021-01-12T01:42:45.320526 | 2016-08-22T09:43:37 | 2016-08-22T09:43:37 | 78,421,032 | 1 | 0 | null | 2017-01-09T11:01:37 | 2017-01-09T11:01:37 | null | UTF-8 | Python | false | false | 7,858 | py | # -*- coding: utf-8 -*-
from __future__ import division, print_function
import matplotlib.pyplot as plt
import numpy as np
from scipy import signal
import sympy as sy
def poly_to_sympy(num, den, symbol='s', simplify=True):
""" Convert Scipy's LTI instance to Sympy expression """
s = sy.Symbol(symbol)
G ... | [
"olivier@churlaud.com"
] | olivier@churlaud.com |
71c57adceb32539990a21ff9eaf0cd83f2419dbf | 2a608e9830157ba2842d3ce2f9eb5acac0d304eb | /day_6_part_2.py | bfb0d36c7d8eaa9901a76d4f4a98045c56d88d0e | [
"MIT"
] | permissive | Korred/advent_of_code_2016 | 71709773176dee4cb736b88ce459d4bfe1ae8133 | 8b6e9b51569bf75da9b0fc56cc9e7c1c4dddeb5e | refs/heads/master | 2021-01-11T10:37:15.441378 | 2016-12-22T11:38:35 | 2016-12-22T11:38:35 | 76,345,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,783 | py | recording = '''jtfxgqec
zxoeuddn
anlfufma
dxuuyxkg
ttnewhlw
sjoyeiry
rgfwwdhw
qymxsllk
forftdvy
rzmnmewh
hogawihi
mtsyexba
mrjzqqfk
ypmkexpg
pjuyopgv
rtqquvaj
evubmlrq
bqlrtuce
ndidnbps
vqukosam
mzdyfkcd
rrbwdimb
uhnvxgly
aaimxpcv
acxvinqj
muaeikzy
lhzbosjd
fflqqiit
unfhzfrs
gmwoyvob
cculubmy
zqbugcwa
ijouicwt
bildjjww... | [
"noreply@github.com"
] | Korred.noreply@github.com |
ebe40c80ffb741da326f2574f07345b6dafe1bc5 | 0bd284f7cc7fab96c76998cc8043a5474fe83671 | /full_program/part15B_merge_diff_chunks.py | 35c2b601abf4dc5d7d28d85367532a69648fe137 | [] | no_license | bgallag6/SolarProject | 46fd40c66a1a33b19ed0b96271abda1f0a367d83 | 53f844604a2e819b24815f5b13f35fc154539d28 | refs/heads/master | 2021-01-11T23:35:57.410978 | 2019-04-03T18:53:39 | 2019-04-03T18:53:39 | 78,604,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,143 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Apr 6 16:04:57 2018
@author: Brendan
"""
import numpy as np
import sys
import yaml
import os
size = int(sys.argv[1])
stream = open('specFit_config.yaml', 'r')
cfg = yaml.load(stream)
directory = cfg['fits_dir']
date = cfg['date']
wavelength = cfg['wavelength']
mmap_derot... | [
"bgallag6@gmu.edu"
] | bgallag6@gmu.edu |
a35de49d058abb362dd85af4f6b2e58e2d3d16a1 | 24fef9c1cdd1829bd8160feeafa9982530b9e17f | /examples/simple.py | a1ac45f869972b350fb71c2107fe190175e8645f | [
"BSD-3-Clause"
] | permissive | sprockets/sprockets.logging | e011e6ba151ad8d20f5e15c1aa8b8bc65865fc46 | 37ff1180f91696547a25fed2228c829c1a8fcb17 | refs/heads/master | 2021-01-16T19:00:22.419596 | 2015-12-11T17:59:01 | 2015-12-11T17:59:01 | 37,081,330 | 1 | 2 | BSD-3-Clause | 2021-11-01T12:04:27 | 2015-06-08T17:18:46 | Python | UTF-8 | Python | false | false | 663 | py | import logging
import sys
import sprockets.logging
formatter = logging.Formatter('%(levelname)s %(message)s {%(context)s}')
handler = logging.StreamHandler(sys.stdout)
handler.setFormatter(formatter)
handler.addFilter(sprockets.logging.ContextFilter(properties=['context']))
logging.Logger.root.addHandler(handler)
lo... | [
"daves@aweber.com"
] | daves@aweber.com |
5afb442366deb72a4ed57ace517a81b771406e4c | 283ce303a34e3632568ffc5fb3502fc6cb8e0525 | /python_file/blog.py | a778224f7aef4571e9014298d95bbedf52fb25a3 | [] | no_license | billkunghappy/The_main_page | d245bed6cd6e8ce3724f8944ca9a26ae7f3da2d7 | ba08670e214527da3d3c11cd8c4c9a80be5f8987 | refs/heads/master | 2021-01-22T07:13:43.468146 | 2014-12-18T15:04:05 | 2014-12-18T15:04:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,642 | py | #!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"billkung.happy@gmail.com"
] | billkung.happy@gmail.com |
c48e0acd0b93aaa16ad29b6b933ddccd5bbcaa1e | 18b053edfbc8b58a2a9c25f65508d251440fb419 | /ap2final.py | d9d0c3d40b032a71b4d866a4ab4933c394417131 | [] | no_license | pedromsilva99/labi_weather_tcp | 3bd46fac4dc53cf6af6762ef8da184a84bccd102 | f112b682a591b28ffb70201a446f7226a4cfe32b | refs/heads/main | 2023-03-26T02:16:16.328684 | 2021-03-25T22:14:04 | 2021-03-25T22:14:04 | 351,587,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,557 | py | import sys, socket, csv, json, hashlib, binascii
from random import randint
from Crypto.Cipher import AES
import base64
def main():
tcp_s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
tcp_s.connect(("193.136.92.147", 8080))
#res = input("Quer usar mensagens encriptadas? Y/n ")
#if res in ['Y', 'y']:
# encry... | [
"pedromsilva99@ua.pt"
] | pedromsilva99@ua.pt |
fb48dd21d053b996a5c472cecc4e2896db4f5c60 | 2729328611dcacaeeae2d9e6f0937f32d7b6d33e | /scripts/1d-mol.py | 8626d83dc45643a181c4a472402969ad66c1f160 | [] | no_license | BourgValentin/B2-Python | 3563994b2890bf56600f9a0a7ecb08f261db9a76 | aedb6246492243b1454ab6e861d689838410b262 | refs/heads/master | 2020-04-02T09:14:27.023888 | 2018-11-11T21:27:13 | 2018-11-11T21:27:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | #!/usr/bin/python3.6
####################
#Le jeu consiste a trouver un nombre entre 1 et 1OO
#
#Il est possible d'appuyer sur 'q' pour quitter
#
#Appuyer sur CTRL+C affichera un message puis eteindra le programme
####################
import re
import random
import signal
import sys
pattern = re.compile("^[1-9][0-9]... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
e6038327cf20250247c84a651dcc30768538ba60 | 9402b2b379d633959431711ea2151ebdb58e30db | /trackme/bin/getlistdef.py | dff23efcc86e7afc8ddb8bd66d65dad83ff20d6e | [
"Apache-2.0"
] | permissive | densetax2/trackme | 2ffdcfc78cb40f1a240e9325fec008d8f934604d | 7143d807f67529f2f2faa1fb8d5fbfd388dc45d1 | refs/heads/master | 2022-11-17T21:14:42.342309 | 2020-07-05T12:41:21 | 2020-07-05T12:41:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,413 | py | #!/usr/bin/env python
# coding=utf-8
#
# Copyright © 2011-2015 Splunk, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"): you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | [
"guilhem.marchand@gmail.com"
] | guilhem.marchand@gmail.com |
aaa5ad87911a42ebbb247e8b73f56da709fefbcd | 7bd0954e956993df19d833810f9d71b60e2ebb9a | /phasor/matrix/linalg.py | 3a6788b4d1a7ce9f510a4e048f3678bca9bf17d9 | [
"Apache-2.0"
] | permissive | aa158/phasor | 5ee0cec4f816b88b0a8ac298c330ed48458ec3f2 | fe86dc6dec3740d4b6be6b88d8eef8566e2aa78d | refs/heads/master | 2021-10-22T09:48:18.556091 | 2019-03-09T18:56:05 | 2019-03-09T18:56:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,805 | py | # -*- coding: utf-8 -*-
"""
"""
from __future__ import division, print_function, unicode_literals
#from builtins import zip, range
import numpy as np
def stackrange(rangetup):
rangestack = []
for v in rangetup:
try:
iter(v)
except TypeError:
rangestack.append(list(rang... | [
"Lee.McCuller@gmail.com"
] | Lee.McCuller@gmail.com |
8e639334544826247ad7d472b44bb501b4a7028c | bf9b262fb305e2ed815e079323115fbc4c7f6bfb | /leetcode_198.py | d7bf652f5f62f6767a0e58a1d52dab2e3e6c9255 | [] | no_license | Rockrs/Algorithm_DS | 5c3a7a2dc0214b32f664f14194a09957e384b747 | b3e462a6cba7a164818e71e480ca9f8cb91e2bca | refs/heads/master | 2023-02-10T13:42:52.605408 | 2021-01-05T02:16:32 | 2021-01-05T02:16:32 | 288,692,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | class Solution:
def rob(self, nums: List[int]) -> int:
if len(nums)==0:
return 0
for i in range(len(nums)-3,-1,-1):
if i==len(nums)-3:
nums[i]+= nums[i+2]
else:
nums[i]+= max(nums[i+2],nums[i+3])
return max(nums)
| [
"shrmabhishek2012@gmail.com"
] | shrmabhishek2012@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.