blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
81542872c2cca2262b15eedcfd39f2a819780f02 | e94d6b9d8d24d71c1a3d1d515d42f2c81066899e | /neutrino/neff/plot_neff_phase_zoom.py | 73fa40adb14983e282088b02a85c796f194a1eec | [] | no_license | zhnhou/make_figures | aa6ed9c4fcc799f2d9bdcc85e31fcfed5507b3b7 | 6dda7c7cb308ecc88c8e2f57a8c12ee468b53a37 | refs/heads/master | 2020-04-16T02:20:55.464006 | 2017-01-06T21:05:47 | 2017-01-06T21:05:47 | 54,233,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,716 | py | import matplotlib.pyplot as plt
from matplotlib.lines import Line2D
import mpl_toolkits.axisartist as AA
import numpy as np
import cPickle as pickle
from hpylib.util.remote_data import *
from hpylib.cosmology.read_planck_data import *
from hpylib.cosmology.read_spt_data import *
pdf_file = 'neff_phase_zoom.pdf'
plan... | [
"zhn.hou@gmail.com"
] | zhn.hou@gmail.com |
34e9bef4f38535732745fc9fc0abfb95b055de0f | 0ff2814071768f8ec012b3abccf19fda8fe44ba7 | /ex28.py | c6a451f5cba4ad9fb9111b8f57c52aee2834f85b | [] | no_license | leetea/Python_2.7 | 846b58e70362ce539c22d642572fcb39b8c17863 | 93fea523ec9be4520ca225f0e673f912983e076b | refs/heads/master | 2021-01-10T00:53:09.604241 | 2014-08-08T02:28:10 | 2014-08-08T02:28:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | print True and True #True
print False and True #False
print 1 == 1 and 2 == 1 #False
print "test" == "test" #True
print 1 == 1 or 2 != 1 #True
print True and 1 == 1 #True
print False and 0 != 0 #False
print True or 1 == 1 #True
print "test" == "testing" #False
print 1 != 0 and 2 == 1 #False
print "test" != "testing" #T... | [
"lktea@uci.edu"
] | lktea@uci.edu |
7213c46cafde3e70e6cfa4163b9961b53207d0fc | 349ce7dc79b24d6b003b758410b32a7e75917085 | /2 Python Programming Examples on Mathematical Expressions/6 Prime factors of an integer.py | f3a887291e522cbf88322d7e463959328fb506d1 | [] | no_license | Saifullahshaikh/-IPU-Intensive-Programming-Unit-01 | 2844706ecceacf9296b69ea92e82d64a67fce557 | b176bf0508098a0fde0fe467a3676f722b6d524f | refs/heads/main | 2023-01-12T14:42:05.575846 | 2020-11-16T20:30:56 | 2020-11-16T20:30:56 | 313,419,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | def Prime_Factors(n):
for i in range(2,n+1):
while n%i == 0:
n= n/i
print(i,end=' ')
Prime_Factors(12)
| [
"ssaifullah272@gmail.com"
] | ssaifullah272@gmail.com |
e43252b1c78b9d16a9c21784ae22ba5cd362fffa | d475a6cf49c0b2d40895ff6d48ca9b0298643a87 | /pyleecan/Classes/ImportVectorField.py | 8dbc5501c4eb5fc5d7c8a98afbad66071632c118 | [
"Apache-2.0"
] | permissive | lyhehehe/pyleecan | 6c4a52b17a083fe29fdc8dcd989a3d20feb844d9 | 421e9a843bf30d796415c77dc934546adffd1cd7 | refs/heads/master | 2021-07-05T17:42:02.813128 | 2020-09-03T14:27:03 | 2020-09-03T14:27:03 | 176,678,325 | 2 | 0 | null | 2019-03-20T07:28:06 | 2019-03-20T07:28:06 | null | UTF-8 | Python | false | false | 7,283 | py | # -*- coding: utf-8 -*-
# File generated according to Generator/ClassesRef/Import/ImportVectorField.csv
# WARNING! All changes made in this file will be lost!
"""Method code available at https://github.com/Eomys/pyleecan/tree/master/pyleecan/Methods/Import/ImportVectorField
"""
from os import linesep
from logging impo... | [
"sebgue@gmx.net"
] | sebgue@gmx.net |
9b25e94192465363b096c7abad7b9f5a30894dc8 | d191f4b159077af17101453ec699928e7bb59e8d | /bsddb3-6.2.6/Lib/bsddb/test/test_db.py | 320fab67e3fc3bccf4d5454d95a70c3ee426715f | [
"BSD-3-Clause",
"ZPL-2.1",
"BSD-2-Clause"
] | permissive | wllmwng1/CMPUT291_MiniProject2 | 804fccc5e453aea9c56e3be21d9b91d57475f44c | 3921c92c03763333f09d49ea51c2c524da2153bc | refs/heads/main | 2023-01-11T11:36:06.020623 | 2020-11-01T22:49:44 | 2020-11-01T22:49:44 | 309,783,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,322 | py | """
Copyright (c) 2008-2018, Jesus Cea Avion <jcea@jcea.es>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of... | [
"wwong1@ualberta.ca"
] | wwong1@ualberta.ca |
fe23d4216942badda8423cc70f46d0f3ca805036 | 2ea66258df8c51273ded673263b77299ca630582 | /Django/serializer.py | a4a752935fd712b5dd52290f481dedcd819260e5 | [] | no_license | bharati-garde/Djangoapp | 24ccab6a3388ced1392d2193c21db590a7651598 | 5a559512016de2f91587923053fe048fba3230c2 | refs/heads/master | 2023-03-30T12:54:04.790899 | 2021-04-04T14:39:27 | 2021-04-04T14:39:27 | 354,531,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | from rest_framework import serializers
from . import models
class HelloSerializer(serializers.Serializer):
"""Serializes a name field for testing our APIView."""
name = serializers.CharField(max_length=10)
class UserProfileSerializer(serializers.ModelSerializer):
"""A serializer for our user profile o... | [
"gardebharati123@gmail.com"
] | gardebharati123@gmail.com |
2d1023cba9aba5f467e33f025752b84a3c793dea | 4dd55a769c58a17b9473dc111436a343ae05d4b4 | /utils/alertcheck.py | a1a9871694157233a344cc955e6238af201f209f | [] | no_license | Navu4/Hand-Detection-for-Shredder-Machine- | c54a3a6a53d5bf1f05931e53279b024b4aee54b4 | 1beed2222126cdb8443c2c59d7d8970882e46f75 | refs/heads/main | 2023-04-28T02:51:03.313323 | 2021-05-17T17:28:39 | 2021-05-17T17:28:39 | 342,700,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,059 | py | import cv2
from playsound import playsound
import pandas as pd
# crossed=0
def drawboxtosafeline(image_np, p1, p2, Line_Position2, Orientation):
# global crossed
if Orientation == "bt":
bounding_mid = (int((p1[0] + p2[0]) / 2), int(p1[1]))
if bounding_mid:
cv2.line(img=image_np, p... | [
"51900952+Navu4@users.noreply.github.com"
] | 51900952+Navu4@users.noreply.github.com |
48a5631543b1b448171a4a54d85b90249941ac1e | 1881553e6bc233a79c9ee5255786e3628b0c86d2 | /util/vocabmapping.py | d32e20b6039646bf5ca7cea2a0a88723a8cb06a5 | [] | no_license | aarthiis/Word-Sense-Disambiguation-by-learning-long-term-dependencies | 7c5fa783055804847a2b06fca185c8278ac03a23 | 3e796b2259df8bf944c151d00529f22b8ca89b07 | refs/heads/master | 2021-07-25T11:20:02.121293 | 2017-11-07T04:28:21 | 2017-11-07T04:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py |
import pickle
class VocabMapping:
def __init__(self, word):
with open("util/vocab_"+word+"_sentences.txt", "rb") as handle:
self.dic = pickle.loads(handle.read())
with open("util/vocab_"+word+"_senses.txt","rb") as handle1:
self.dic1=pickle.loads(handle1.read())
... | [
"lalchandiitk@gmail.com"
] | lalchandiitk@gmail.com |
e94bb0b4072bf172c48f8d8cb3bfe91985a8dd3e | b2de5660d81afdf6b1fba058faee6ece6a51e462 | /amplify/agent/managers/bridge.py | 76902e4239a982a79bdc60e47f872d32cb28807d | [
"BSD-2-Clause"
] | permissive | Ferrisbane/nginx-amplify-agent | 725d8a7da7fb66e0b41cddd8139d25a084570592 | ef769934341374d4b6ede5fcf5ebff34f6cba8de | refs/heads/master | 2021-01-22T00:03:49.686169 | 2016-07-20T17:50:30 | 2016-07-20T17:50:30 | 63,801,713 | 0 | 0 | null | 2016-07-20T17:41:25 | 2016-07-20T17:41:25 | null | UTF-8 | Python | false | false | 7,064 | py | # -*- coding: utf-8 -*-
import gc
import time
from collections import deque
from amplify.agent.common.context import context
from amplify.agent.common.util.backoff import exponential_delay
from amplify.agent.managers.abstract import AbstractManager
__author__ = "Mike Belov"
__copyright__ = "Copyright (C) Nginx, Inc.... | [
"dedm@nginx.com"
] | dedm@nginx.com |
f9512d043e688a54cf69e99f9f4b2ac850730de9 | 916b653522a6787a977692468602292e479b2c08 | /main.py | 4afab91a0e8c6794dac3e6b483225056e6cffc50 | [] | no_license | zhangming8/synth_video_text | 680c8eedc5a6c4ade6801a00f3f73e98d86de95a | 8d8076c5878d35e7f979508bb3fade53b246bdd4 | refs/heads/main | 2022-12-29T18:41:10.951406 | 2020-10-17T12:12:19 | 2020-10-17T12:12:19 | 304,783,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,671 | py | import cv2
import argparse
import glob
from PIL import Image, ImageDraw, ImageFont
import numpy as np
import os
def read_fonts(folder, size=30):
fonts_extend = ['.ttf', '.otf']
fonts_list = []
for i in fonts_extend:
fonts_list += glob.glob(folder + "/*" + i)
# print(fonts_list)
print("在{}中... | [
"zhangming8@github.com"
] | zhangming8@github.com |
43b5224ac800af753a26bb8e66d9830ccb58e12b | af4c313f5e83fb0e0fd22379a1ad3daf4be01771 | /manage.py | bbbbc95ae700765ac573066d788721f443710df0 | [] | no_license | wellington-carvalho/eventex | ee2c428053c6aa765955c8520c041e75b25c7b17 | 05147a744fb5b02dea527aa079359da6b723fc0d | refs/heads/master | 2020-03-20T02:08:28.787663 | 2018-08-07T10:43:32 | 2018-08-07T10:43:32 | 137,100,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "eventex.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are ... | [
"wellington.carvalho@armazemparaiba.com.br"
] | wellington.carvalho@armazemparaiba.com.br |
80261fed562aa68eeed3feabb91b51944742158c | 29705cfa764b8800a4f611044bb441ae2dbb517e | /ctpbee/indicator/back.py | 0149bc0d761712c1267a20af3ac2da0a1c6fc8f9 | [
"MIT"
] | permissive | ctpbee/ctpbee | 98c720a54999e9c4bb242848a9cd4363f96ea2e1 | 217b73da65931213c1af4733741014d05b3a8bac | refs/heads/master | 2023-03-16T12:47:01.260983 | 2023-03-13T05:49:51 | 2023-03-13T05:49:51 | 202,876,271 | 665 | 186 | MIT | 2023-09-12T12:33:29 | 2019-08-17T12:08:53 | Python | UTF-8 | Python | false | false | 236 | py | """
这里是向量化回测内容以及可视化
主要用于快速回测结果
todo: 通过编写函数对应的参数以及需要执行的函数 来计算出最后的回测结果
"""
class VectorBackTest:
raise NotImplemented
| [
"somewheve@gmail.com"
] | somewheve@gmail.com |
ba330efc4c3d51aa3b56b7900ded652503883d16 | 21303fb98c4b0a535e3f3228099ecf80d5f1d7e6 | /hw1/pinhsuan_lee_hw1/pinhsuan_lee_task2.py | 38b7fbc50bc50b1977ea971e03557a43602db3f8 | [] | no_license | winnie800821/INF553-Data-Mining-Summer-2019- | 2ecfd85c85015c51b0939046ff3d1a4a20ef3e66 | 95737d6908b247c7db831d2910ae7cc17f80f303 | refs/heads/master | 2021-02-13T23:31:34.864332 | 2020-03-03T22:47:19 | 2020-03-03T22:47:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,908 | py | from pyspark import SparkContext
import sys
import json
import time
sc = SparkContext('local[*]', 'pinhsuan_lee_task2.py')
review = sys.argv[1]
business = sys.argv[2]
Re_textRDD=sc.textFile(review)
Re_textRDD=Re_textRDD.map(lambda line:line.split('\n')).map(lambda line:json.loads(line[0]))
Bus_textRDD=sc.textFile(bus... | [
"noreply@github.com"
] | noreply@github.com |
2a4c2e2000a7aff2f1657522ab2b84b85f99e5c7 | a16feb303b7599afac19a89945fc2a9603ae2477 | /Simple_Python/standard/ConfigParser/ConfigParser_9.py | cd739d82a6b2776cc41204fb21e4a9bde96a1869 | [] | no_license | yafeile/Simple_Study | d75874745ce388b3d0f9acfa9ebc5606a5745d78 | c3c554f14b378b487c632e11f22e5e3118be940c | refs/heads/master | 2021-01-10T22:08:34.636123 | 2015-06-10T11:58:59 | 2015-06-10T11:58:59 | 24,746,770 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | #! /usr/bin/env/python
# -*- coding:utf-8 -*-
import ConfigParser
parser = ConfigParser.SafeConfigParser()
parser.add_section('bug_tracker')
parser.set('bug_tracker','uri','http://localhost:8080/bugs')
parser.set('bug_tracker','username','Jack')
parser.set('bug_tracker','password','123456')
for section in parser.sec... | [
"zhuzhulang@126.com"
] | zhuzhulang@126.com |
d80029f6746432f306553ac45e849cce4e54f135 | 1cda54ec4bba8d3b7ff1beba4e59cd251a3bac04 | /DFS/104_maximum_depth_of_binary_tree.py | 526d2d7e692b0773c8511e7a3c128a58b70dd41b | [] | no_license | dodoyuan/leetcode_python | b7ff8798ab311b5d7116f4fa4d0e0f1ce05e752e | b7e59ef26a00ebdd3c253ca63f66ea079f9bca54 | refs/heads/master | 2021-09-15T23:55:16.515337 | 2018-06-13T06:42:40 | 2018-06-13T06:42:40 | 118,602,025 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | # Given a binary tree, find its maximum depth.
#
# The maximum depth is the number of nodes along
# the longest path from the root node down to the
# farthest leaf node.
# Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.ri... | [
"dodoyuan"
] | dodoyuan |
70cb0e409bf571f5c9070607643820cee16901ee | 5b7a480609dfa34e181ba9f8bb696fa9d5902d7d | /model_Trainer.py | b15fe587600b96175bdc61a2ae1a029c58576a2c | [] | no_license | Majdi1994/Structural-Health-Monitring | e4d8f95acedd2b1de056e33dd8bd5d19aaf90a12 | 53ae48107ef50a452c3c9a369a34659bad6f40d6 | refs/heads/master | 2021-01-26T07:17:51.904636 | 2020-02-10T12:58:45 | 2020-02-10T12:58:45 | 243,362,093 | 0 | 0 | null | 2020-02-26T20:45:47 | 2020-02-26T20:45:46 | null | UTF-8 | Python | false | false | 2,603 | py | import torch.nn as nn
from models.models_config import get_model_config, initlize
from pre_train_test_split import trainer
import torch
from torch.utils.data import DataLoader
from utils import *
device = torch.device('cpu')
# load data
my_data= torch.load('./data/train_test_dataset.pt')
train_dl = DataLoader(MyDatas... | [
"42439092+mohamedr002@users.noreply.github.com"
] | 42439092+mohamedr002@users.noreply.github.com |
cbbfe6ccf482a46ef5c3e2fb4a96b0687da01563 | 859d81c87545d9ca83ea6c9a3a70b3bf17c0b3ce | /practice03_fun/practice02.py | ee84244fd02e13a474f1acc0553fac29b3586b4a | [] | no_license | bb04265/PythonStudy | cf3746a5d0d4a3d630de5fd03162c0cea35b3b02 | dd6a5b31f611506c528cea07bb1a2295c86643ef | refs/heads/master | 2020-08-14T15:06:47.218742 | 2019-10-20T18:41:01 | 2019-10-20T18:41:01 | 215,188,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # random.choice함수를 사용해서 6자리의 무작위 비밀번호 생성하는 프로그램
import random
pch = "abcdefghijklmnopqrstuvwxyz0123456789"
def generatePassword():
password = ""
for i in range(6):
pw = random.choice(pch)
password += pw
return password
# for문을 사용하여 6번 반복할 수 있게 하고 random.choice함수를 이용해서 pch문자열에서 랜덤으로 추출하여 ... | [
"asdf01074469118@gmail.com"
] | asdf01074469118@gmail.com |
cb7d797a94bf4428198225fc60a9cc63d8660b24 | ca408d928664d51d02f860eeff45310360570c1f | /vi/metodo/segmentacion/contorno.py | 737d3278c1a16ba4b7029c52aa63c448e4c82392 | [] | no_license | ricardors19/urb-vi | 41fcb17346fa5fbb8f52cb74530401056b1cfb2a | 1cd42584843bbda16c98f817e681003b01efe91c | refs/heads/master | 2021-01-17T23:16:55.740818 | 2013-12-07T03:22:58 | 2013-12-07T03:22:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | # encoding: utf-8
"""Segmetación por búsqueda de contornos """
from __future__ import division
import cv2
import numpy as np
import vi.metodo.segmentacion.contorno_base as contorno_base
class Segmentacion(contorno_base.Segmentacion):
"""Segmentación con filtro por área media """
def __init__(self):
... | [
"gcca@gcca.tk"
] | gcca@gcca.tk |
ce9e9df56c732065b950f993103b5b277bed9fd3 | 73b793758d0db27e4d67e6effbda40f5b550a9f4 | /clientes/servicios.py | d259696e5c55d7906912ca85379b3f91b8bd3f61 | [] | no_license | RubenMaier/python_crud_ventas | a696fb52ec4a2ac37e5983c211fc8ff9bc4fee00 | c95af4646bb8173c41e79118a6f53919308a0898 | refs/heads/master | 2020-08-12T06:38:02.986974 | 2019-12-29T13:39:30 | 2019-12-29T13:39:30 | 214,707,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,195 | py | # modulo que me permite trabajar comodo con el formato de archivo csv (comma-separated values)
import csv
# modulo que me permite manejar funcionalidades del sistema operativo
import os
from clientes.modelo import Cliente
class ServiciosClientes:
def __init__(self, nombre_tabla):
self.nombre_tabla = nomb... | [
"ruben@MacBook-Pro-2017-15-Inch.local"
] | ruben@MacBook-Pro-2017-15-Inch.local |
1e5487eb2f86724a1ceb955e46b3867b66aba095 | 549ccf72082fe25b8c09f553d02994f99e17b2a7 | /iw/search.py | e1efffc6e42204454554226b39aff6fe300b4b09 | [] | no_license | comex/agora-infra | 8192cb82e56fb56b692b4d16adb059a2a376bd88 | 6ca74d91aef144c91f28a67e80a0429ae9d15b75 | refs/heads/master | 2023-07-19T22:34:40.928464 | 2015-08-16T22:57:28 | 2015-08-16T22:57:28 | 11,080,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,096 | py | import re, sre_parse, sre_compile, sre_constants, collections, time, operator, itertools, sys
from collections import namedtuple
from pystuff import config, mkdir_if_absent
import pystuff, stuff
import StringIO
inf, neginf = float('inf'), float('-inf')
def intersect_iterables(iterables, is_asc):
subits = map(iter,... | [
"comexk@gmail.com"
] | comexk@gmail.com |
189290317dbf654f33692762683932c1f63047b6 | 6ffd0d9c617fdf9d17e9383101a7ceb846996e22 | /checkout/signals.py | b035c9b8abefe44567490e85d7ebda171e2bb085 | [] | no_license | KrisK1978/GuitarBarn | 9ccb8bd0a60d7bd072ecbc78e9dbc105cbeda008 | 82243aa232578202ca987002d95fda1e2a1e0bec | refs/heads/master | 2023-02-27T02:46:10.237860 | 2021-02-01T01:40:51 | 2021-02-01T01:40:51 | 333,077,430 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | """ Signals for Checkout app """
from django.db.models.signals import post_save, post_delete
from django.dispatch import receiver
from .models import OrderLineItem
"""
This decorator executes the function any time
the signal is sent
"""
@receiver(post_save, sender=OrderLineItem)
def update_on_save(sender, instance,... | [
"k_kempa@yahoo.co.uk"
] | k_kempa@yahoo.co.uk |
7254eb56a0fe6e70e118de114ad39641ad5db7b4 | 5a174cd92bf9a09d6cc7e0c7d171f31176abda8f | /src/tartarus.py | 7f98cc89d509855e1f3ec836614095df9a4a4c65 | [
"BSD-3-Clause"
] | permissive | Nova38/Tartarus | 42e74e92b79835a1814771b5afc31896016aa2a6 | db0548f5395bbf16c48a30acbd4a3ba82f4f5e33 | refs/heads/master | 2020-05-09T10:49:49.927046 | 2019-04-15T18:51:15 | 2019-04-15T18:51:15 | 181,059,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,665 | py | #!/usr/bin/env python3
import click
import os
import random
import shutil
import gzip
import bz2
import lzma
import zipfile
import base64
import hexrec.xxd
@click.command()
@click.argument('File', type=click.Path(exists=True, resolve_path=True))
@click.option('-o', '--output', default="", help='output file name')
@cl... | [
"dev.csnova@gmail.com"
] | dev.csnova@gmail.com |
ad4e66e29bd494bd629bac9884cd7367ed7601f6 | 69526d234c01b1d33b9fb569e55fe363d96beac0 | /api/routes/payments.py | 099b50144d23882f39259fcecf2873101b650077 | [] | no_license | jzamora5/orders_creator_backend | 53b0a773fb88d99354175835cebdfc93c8e7357e | d5dd51ba39a5f549cc55fd9835b6082edd91d0a6 | refs/heads/main | 2023-03-29T11:27:08.602656 | 2021-04-05T22:49:25 | 2021-04-05T22:49:25 | 348,373,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,726 | py | from api.models.order import Order
from api.models.user import User
from api.models.payment import Payment
from api.routes import app_routes
from flask import abort, jsonify, make_response, request
from flask_jwt_extended import jwt_required, get_jwt_identity
from app import storage
@app_routes.route('/order/<order_i... | [
"jzamora_5@yahoo.com"
] | jzamora_5@yahoo.com |
bbe83a41e209fce4ac10e74b7b02891237b2d179 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_w_M_to_W_focus_Zok/woColorJ/Sob_k15_s001_EroM/pyr_Tcrop255_p60_j15/pyr_0s/L6/step10_a.py | a013a6de43fe29ab368aa4eb3c0e5c3ab7fab72d | [] | 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 | 5,998 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
6e50fb6fe25f4adbdb8891b82dbd2f019d367234 | 4c94f27501ff060ff0d3aecc5fdc5a3f56971664 | /atom/electron/python/test/test_create_card_client_response_vo.py | 4546858eddaede7ba9cad461d8c1459cee30eb4a | [
"Apache-2.0"
] | permissive | hydrogen-dev/SDK | 7af707b9359f169794fe27582903622a19b0e2bc | f101ce79aacf76fdfeb760f7574918f651a25e53 | refs/heads/master | 2023-08-04T00:09:59.646917 | 2022-06-19T20:39:02 | 2022-06-19T20:39:02 | 180,199,768 | 11 | 11 | Apache-2.0 | 2023-07-22T02:33:24 | 2019-04-08T17:30:24 | C# | UTF-8 | Python | false | false | 997 | py | # coding: utf-8
"""
Hydrogen Electron API
The Hydrogen Electron API # noqa: E501
OpenAPI spec version: 1.3.1
Contact: info@hydrogenplatform.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import electron_api
from... | [
"chandrashekhar.paatni@tothenew.com"
] | chandrashekhar.paatni@tothenew.com |
84a82b96a54dcb103897e80e589c155c66bfc308 | cdfa076dbeb3cf5dca174089660aeb10599e9bd1 | /main_site/migrations/0001_initial.py | 7814e4f693985e8a778ff5cb982fbb2a94c0114c | [] | no_license | LiaMed12/LibStore | 3afa480a4995e75ac593a117f02c37d9e3d8ba8a | c690cc461369dbca2013f3b944b28f1e2cd2df75 | refs/heads/master | 2023-05-24T11:43:48.279974 | 2021-06-11T16:15:48 | 2021-06-11T16:15:48 | 366,414,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,965 | py | # Generated by Django 3.1.6 on 2021-02-12 12:49
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"lia.medvedeva2017@yandex.ru"
] | lia.medvedeva2017@yandex.ru |
acd10b8f4a7a1c925fe17066c2dada6d620110a8 | f0b33d42741f3c470cc7f616c70a4b10a73fc012 | /scripts/ddd17_steer_export.py | 1af7dd96ef80d87062a2bd107b25ea8fa25b1c88 | [
"MIT"
] | permissive | duguyue100/ddd20-itsc20 | 1e51a7a76fe1f2759746814ae58f4e1e21c0c4e6 | 667bb5e702a06cfff30b20de669697f3271baf04 | refs/heads/master | 2021-09-17T06:34:17.545026 | 2018-06-28T16:35:39 | 2018-06-28T16:35:39 | 114,002,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,309 | py | """Steer export.
Author: Yuhuang Hu
Email : duguyue100@gmail.com
"""
from __future__ import print_function
import os
import os
from os.path import join, isfile, isdir
import cPickle as pickle
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import spiker
from spiker.data imp... | [
"duguyue100@gmail.com"
] | duguyue100@gmail.com |
7ba33970e027a501fb55d61aba6e69148fb818d7 | 743002f0b4c14c0ed4c0215dfb8c4110ec7d75b1 | /src/ddGeneralSpeeds.py | 06044a43540756de67e83f2f8437b73b63f51563 | [] | no_license | TavoloPerUno/SouthIndiaSHSpeeds | c3c12ce3d8d29da44c4089a4601854f69fdccb25 | 176db1f27a5c3e6509b64258d552f7fcb34afb3a | refs/heads/master | 2021-01-20T02:24:50.498024 | 2017-07-13T14:08:28 | 2017-07-13T14:08:28 | 89,401,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,409 | py | import lib.interpolate as itp
import googlemaps
import pandas as pd
import numpy as np
from datetime import datetime
gmaps = googlemaps.Client(key='AIzaSyD3sNjKSAqK_7eBo8FNRbyapjUODTXnh_M')
# Geocoding an address
orig_geocode = gmaps.geocode('SH 20, Belagavi, Karnataka')
dest_geocode = gmaps.geocode('SH 20, Bagalkot,... | [
"morelwmilliam@gmail.com"
] | morelwmilliam@gmail.com |
f4dd93672e29f0e97bad6fb6a0be8c275e83bce5 | 65ceeadf2d042d6724630644f6ba7309ab7e86c3 | /handlers/message/message_urls.py | e8659a504170d18d5e222fcf241fae88218fc8f0 | [] | no_license | jimsick/tornado_pro | c08611fedc10f39b1ae9365276e81c59760d2adc | 8ee9a17aa8c5f8d2925901f459cb1c467abd9a4f | refs/heads/master | 2021-04-12T10:09:21.358651 | 2018-03-22T07:01:49 | 2018-03-22T07:01:49 | 126,292,701 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | # coding=utf-8
from message_handler import MessageHandler, MessageWebSocket, SendMessageHandler
message_urls = [
(r'/message/message', MessageHandler),
(r'/message/message_websocket', MessageWebSocket),
(r'/message/send_message', SendMessageHandler),
] | [
"877415861@qq.com"
] | 877415861@qq.com |
acaa05cb8da7ae9fe88ad5617ae580dea52be9e4 | c4a49a77665988b81a426420bddbaa8beed728dc | /PageObject/ImageUploadPage.py | 7d014f77251e7ed623c3406e7d4a7bb603c07a78 | [
"MIT"
] | permissive | zhangxiuqing007/EfUITest | 4a0e6a9a0a368ef9893898954bcb193f6b169e44 | d54c568b3996ef3e732ea335916de61cadc06e84 | refs/heads/master | 2020-09-05T20:08:23.531863 | 2019-11-11T09:33:52 | 2019-11-11T09:33:52 | 220,200,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | from selenium import webdriver
class ImageUploadPage:
def __init__(self, driver: webdriver.Firefox):
self.driver = driver
def get_file_input(self):
return self.driver.find_element_by_css_selector('input[name="images"]')
def get_submit_btn(self):
return self.driver.find_element_by... | [
"690313521@qq.com"
] | 690313521@qq.com |
48d03b641514cdc7a52746b3b6dd7a2f331010af | 8a0e2144c9cef99cc1d762366a1baf8a1d365a14 | /calc/views.py | 15b8a914468e4c8b007f31db395fd7bed9c34a1c | [] | no_license | venkatesh-kulkarni/User-Authentication-using-Django | f08920964a2eb6a941e5f6a1fe382b8b1e1b29df | f5c30a50927c236c710e6c4c9c746c87a907c84a | refs/heads/master | 2023-05-12T14:59:03.483237 | 2021-05-07T22:04:39 | 2021-05-07T22:04:39 | 365,361,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def home(request):
return render(request, 'home.html', {'name': 'Venkates'})
def add(request):
val1 = int(request.POST['num1'])
val2 = int(request.POST['num2'])
res = val1+val2
return render(requ... | [
"venkateshkulkarni2001@gmail.com"
] | venkateshkulkarni2001@gmail.com |
f9daf2e153b85d048a26f62dfe798465984f0635 | 443e8f16fc1cea32a40211ba02cc7d07c234b495 | /plotpca.py | 60cb9e46236d49ba5a5753491609c6b18ab3834b | [] | no_license | vipinjose90/magik-mice | 0b1f1dedb7c80d3412eb30bbf4013c0916f91905 | eeafc3073e2edec49e679d799b21e8e7e7f9d0f0 | refs/heads/master | 2020-11-26T17:39:19.934861 | 2019-12-20T00:43:11 | 2019-12-20T00:43:11 | 229,162,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | #!/usr/bin/env python
from pylab import scatter, show, cm, colorbar, savefig, axis, \
figure, xlim, axes, hsv, subplots_adjust as adjust
from itertools import izip
from sys import argv, exit
import os.path as osp
import matplotlib.cm as c... | [
"u1077193@utah.edu"
] | u1077193@utah.edu |
e2b6d1479c13ce721b4cd3e16d796412e4ceafa8 | 8b2fc2aa3cb4bf2f641a542de0f625639f3e4c8c | /modelado/Mimodelo.py | c9987a7b555b8e95dcb4ac2457f1c18ec3aafcbd | [] | no_license | Programacion-Algoritmos-18-2/2bim-clase-04-paxasaval | d8777f7c24d1f3be22748a1cf69d2a7a2f9ca86b | 594acc0a26814d673b75e29ce33390ac62fabce2 | refs/heads/master | 2020-04-14T21:32:11.721660 | 2019-01-04T16:58:15 | 2019-01-04T16:58:15 | 164,131,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,656 | py | class Equipo(object):
"""docstring for Equipo"""
def __init__(self, nombre,ciudad,campeonatos,numJugadores):
self.nombre=nombre
self.ciudad=ciudad
self.campeonatos=int(campeonatos)
self.numJugadores=int(numJugadores)
"""
Creamos los metodos GET y SET para cada atributo
"""
def setNombre(self,nombre):
se... | [
"paxasaval1003@gmail.com"
] | paxasaval1003@gmail.com |
362df6b63b69bd5d5fd4eb04726056f47d873113 | 122f9bf0d996c104f541453ab35c56f6ff3fc7cd | /z수업용문제/JunminLim/2331_반복수열.py | cfed0ed0d334dc85da62587de4d10ebc079ceff3 | [] | no_license | JannaKim/PS | 1302e9b6bc529d582ecc7d7fe4f249a52311ff30 | b9c3ce6a7a47afeaa0c62d952b5936d407da129b | refs/heads/master | 2023-08-10T17:49:00.925460 | 2021-09-13T02:21:34 | 2021-09-13T02:21:34 | 312,822,458 | 0 | 0 | null | 2021-04-23T15:31:11 | 2020-11-14T13:27:34 | Python | UTF-8 | Python | false | false | 281 | py |
n=input()
L=[]
P=[]
while n not in L:
L.append(n)
a = 0
for i in n:
a+=int(i)**2
n = str(a)
while n in L:
L.remove(n)
a = 0
for i in n:
a+=int(i)**2
n = str(a)
print(len(L))
'''
for i in range (len(L)):
dic[L[i], i]
''' | [
"baradamoh@gmail.com"
] | baradamoh@gmail.com |
e258390aa13593f651e7ecf2780121ade1ffe47d | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python/generated/test/test_com_adobe_granite_acp_platform_platform_servlet_info.py | 488d29b6091afc227c8d8f0f40e8699ea4f50cdc | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 1,263 | py | # coding: utf-8
"""
Adobe Experience Manager OSGI config (AEM) API
Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: opensource@shinesolutions.com
Generated by: https://openapi-... | [
"michael.bloch@shinesolutions.com"
] | michael.bloch@shinesolutions.com |
c81bbc5f7d178a12cd37aad67f78fcc2e0903d63 | 20209d95feaab75411555d883536f741f6c58efd | /example/interfaces.py | f7ac396e4f55635d8a2a88de5828a0e9769432bc | [
"MIT"
] | permissive | tomer/di_container | 3962b35950857dfc07a5e9858ee8af2a181803be | 674c4af4ddeffd60a4dffe2bddb4f79b5a75f3f2 | refs/heads/master | 2022-12-07T07:24:28.893142 | 2020-08-11T15:15:28 | 2020-08-11T15:15:28 | 286,786,758 | 0 | 0 | MIT | 2020-08-11T15:55:31 | 2020-08-11T15:55:30 | null | UTF-8 | Python | false | false | 840 | py | from abc import ABC
class ILogger(ABC):
def __repr__(self):
return f'{self.__class__.__name__}()'
class ICommProtocol(ABC):
def __init__(self, logger: ILogger):
self._logger = logger
def __repr__(self):
return f'{self.__class__.__name__}({self._logger})'
class ICommunicator(AB... | [
"66797887+eyaldror@users.noreply.github.com"
] | 66797887+eyaldror@users.noreply.github.com |
d7ec2bb2519157950683aac1cb92ef4219b589b8 | 0ba5fad491c6222da85d21242eefe6aa85e6efdc | /consoleme/lib/v2/roles.py | 66b98a4e254378878741a39e47e39c84d30ecb6a | [
"Apache-2.0"
] | permissive | ManiAtGenex/consoleme | e0b680534d6ec2b1cb5e11fde653ce1b3f1022ca | 4ad693f73d49f6551ed8bf855a224dda98e316a4 | refs/heads/master | 2023-03-05T15:16:54.583837 | 2021-02-09T18:48:39 | 2021-02-09T18:48:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,699 | py | from datetime import datetime, timedelta
from typing import Optional, Union
import ujson as json
from asgiref.sync import sync_to_async
from consoleme.config import config
from consoleme.lib.account_indexers import get_account_id_to_name_mapping
from consoleme.lib.crypto import Crypto
from consoleme.lib.plugins impor... | [
"noreply@github.com"
] | noreply@github.com |
ddba6dd707eb268a90e0934fe9859c21ef4039a1 | f1e5b7c31b3a7fb61b5aadd53d60182987974c1f | /python/model_definitions.py | f950e19291c0fb39745b9ca9e5b76771dd903a2d | [] | no_license | muratcankilic96/fault-detection-in-wind-turbines | 7f4aa316419e2c287cdc4b845bf8e97bee2eb636 | a61653918ba35565dda91355d92954657c3b32a1 | refs/heads/master | 2023-08-12T01:03:30.031015 | 2021-09-13T19:38:11 | 2021-09-13T19:38:11 | 403,759,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,652 | py |
from tensorflow.keras.models import Sequential
from tensorflow.keras import regularizers
from tensorflow.keras.layers import (Dense, Conv2D, Flatten, MaxPooling2D, BatchNormalization, LeakyReLU,
SpatialDropout2D, RNN, SimpleRNNCell, LSTM, Dropout, Input)
class ModelDefinitions:
mfcc_length = 0
mfcc_widt... | [
"hakkibluoyd@gmail.com"
] | hakkibluoyd@gmail.com |
ad087cd2f2a184b6c8c7ed3614035bfa3825fbc1 | 594a306bed275997343209d73306de0d6a65091b | /main_window.py | 22986f561937506bb3f915c062922e3f7a9b7a62 | [
"MIT"
] | permissive | tomdonegan/tarkovammo | c9941792a7d18932e7dccb80e482340dcffebc5f | 151692b7ce96a5687cb2358e64bfdd6133016863 | refs/heads/master | 2023-04-02T20:25:45.013164 | 2021-04-05T09:07:35 | 2021-04-05T09:07:35 | 307,288,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,365 | py | import sys
import os
import database as db
import requests
import urllib.request
# import wget
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
_AppName_ = 'Tarkov Ammo'
__author__ = 'Tom Donegan'
__license__ = 'The MIT License (MIT)'
__version__ = 0.11
__maintainer__ = 'Tom Donegan'
... | [
"tomdonegan@live.co.uk"
] | tomdonegan@live.co.uk |
26f2f4fa282fac3064a8d18fa75e67c517c1a09c | a1c8731a8527872042bd46340d8d3e6d47596732 | /programming-laboratory-I/70b7/seguro.py | f49bcb6be7708680dab29dab7ae4ee5f91b095ce | [
"MIT"
] | permissive | MisaelAugusto/computer-science | bbf98195b0ee954a7ffaf58e78f4a47b15069314 | d21335a2dc824b54ffe828370f0e6717fd0c7c27 | refs/heads/master | 2022-12-04T08:21:16.052628 | 2020-08-31T13:00:04 | 2020-08-31T13:00:04 | 287,621,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | # coding: utf-8
# Aluno: Misael Augusto
# Matrícula: 117110525
# Problema: Cálculo de Seguro
def calcula_seguro(valor_veiculo, lista):
dados_cliente = []
verdadeiros = [10, 20, 20, 20, 10]
falsos = [20, 10, 10, 10, 20]
pontos = 0
if lista[0] <= 21:
pontos += 20
elif 22 <= lista[0] <= 30:
pontos += 15
elif 3... | [
"misael.costa@ccc.ufcg.edu.br"
] | misael.costa@ccc.ufcg.edu.br |
908089328125da6d2932952090fa6f013bd47ea4 | 97dfc004ce16d097594a87b41565c4dfbe496749 | /Week_2/Day_2/app/urls.py | 2522625e8df06fb7bbac4f722019497efbc09845 | [] | no_license | instnadia/python-03-20 | 7df44f2893f51847704de082fb2cf309906eebe5 | d0713c167d6cc461cf2c39469827fd4c4befc2ca | refs/heads/master | 2021-02-11T04:45:23.261105 | 2020-03-19T17:25:43 | 2020-03-19T17:25:43 | 244,455,706 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | from django.urls import path
from . import views
# NO LEADING SLASHES
urlpatterns = [
path('', views.index, name='index'),
path('new_person', views.newPerson),
path('new_pet', views.newPet)
] | [
"nnguyen@codingdojo.com"
] | nnguyen@codingdojo.com |
4dfeba5fcaac6dcaad798a1fffa238cb388cd3b7 | 774f82d7cd43aed9f7252abb2dea7b4ecfee5e12 | /thre_data.py | 73356ad43f856fe27d2f4bf0a90eb38cddf146e4 | [] | no_license | zxliu17/Python_code_for_dissertation | 0531332e65456382e9679a9c226141f737ba3302 | a24d47f7643ade019be38f7072b487f55782b907 | refs/heads/master | 2022-11-08T04:44:08.446243 | 2018-06-21T01:34:11 | 2018-06-21T01:34:11 | 132,671,131 | 0 | 1 | null | 2022-10-16T21:57:14 | 2018-05-08T22:17:47 | Python | UTF-8 | Python | false | false | 10,740 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 5 01:12:37 2018
@author: liuzx17
"""
# -*- coding: utf-8 -*-
"""
Created on Thur May 31 16:13:27 2018
@author: liuzx
"""
import matplotlib.pyplot as plt
import numpy as np
import random
import copy
import math
import time
'''
create a belief world which includes all po... | [
"35967051+zxliu17@users.noreply.github.com"
] | 35967051+zxliu17@users.noreply.github.com |
7321886ae0c42a4712676a31e27e7eabcdd0dd76 | 8d770eefa9c0b0e6605f99c47ac52c4d0c60f064 | /cfod/__init__.py | b42f6fb4bbd8a8bcc12edac7a0eaf93146cd4ff5 | [
"MIT"
] | permissive | chime-frb-open-data/chime-frb-open-data | a1ff270568d80686e2b705c92ce1c42fdf815af2 | fd488ed8dc1c81c9571dc9595569f096e94c5602 | refs/heads/master | 2023-08-30T00:28:47.141794 | 2023-08-24T19:10:14 | 2023-08-24T19:10:14 | 166,888,117 | 11 | 7 | MIT | 2023-08-17T14:11:09 | 2019-01-21T22:14:28 | Python | UTF-8 | Python | false | false | 923 | py | import logging
import os
from pathlib import Path
from cfod.routines import catalogs
logging.basicConfig(format="%(levelname)s:%(message)s")
log = logging.getLogger(__name__)
BASE_DIR: Path = Path(os.path.dirname(os.path.realpath(__file__)))
DATA_DIR: Path = BASE_DIR / "data"
CSV_CATALOG: Path = DATA_DIR / "catalog.... | [
"charanjotbrar@gmail.com"
] | charanjotbrar@gmail.com |
19449ceb8ae2c48004179fa709a46ba407f0cf5e | e5860a008d6a6265dd92501450cace40367e9b7d | /MiniJavaCompiler/MiniJavaCompiler/bin/Debug/netcoreapp2.1/exampleC.tac | 4cc277b5c9f07ef32c95ea53ca33b5fecfc26931 | [] | no_license | jdholst/MiniJavaCompiler | fd52d5c066b720af8b41b45e573a677c753be3a3 | 9b0c79c91796076bd9a7c270e4e5a6cd155d8aaf | refs/heads/master | 2022-06-18T20:59:47.899745 | 2020-05-08T17:36:07 | 2020-05-08T17:36:07 | 237,890,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | tac | proc test1
_bp-6 = 5
_bp+4 = _bp-6
_bp-6 = 10
_bp+6 = _bp-6
_bp-6 = _bp+4 + _bp+6
_bp-6 = _bp-6
endp test1
proc main
endp main
| [
"jacob.holst@jacks.sdstate.edu"
] | jacob.holst@jacks.sdstate.edu |
7379d9371c3922d86ed73492c5400df4bd96a4b1 | fb72d7eb880c7777e414587347d54a0446e962a3 | /pycis/wrappers/base_wrapper.py | ce076d12e21a7994866c5b8b5224567e4a2ce62d | [
"MIT"
] | permissive | marcwebbie/pycis | 4ad806aeb9f257f5178dcb19741666b0f4576721 | 4c123c5805dac2e302f863c6ed51c9e2e05a67c8 | refs/heads/master | 2016-09-06T01:10:11.301029 | 2013-12-28T09:39:36 | 2013-12-28T09:39:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | class BaseWrapper(object):
""" BaseWrapper gives the default interface for wrappers.
It also add utility functions to be shared by sub classes.
Sub classes should override:
self.site_url:
Wrapped site base url
get_streams(self, media):
Get a list of stream for given... | [
"marcwebbie@gmail.com"
] | marcwebbie@gmail.com |
67002af47a503c77d6428d2314e97e80f26e92a0 | a683cd2e1139e314d1473a70dc85d54c29f7d7de | /www/app.py | 3787d053e5662211cdf512aca1be0fdf00875515 | [] | no_license | narata/awesome-webapp | d8dc511215ee3588dca3e3ebf83a17986be918c8 | 752b7e5bca88deb6803be8985e600912ec3a3f21 | refs/heads/master | 2020-03-09T12:41:14.974775 | 2018-04-12T16:05:39 | 2018-04-12T16:05:39 | 128,791,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | import logging
import asyncio
from aiohttp import web
logging.basicConfig(level=logging.INFO)
def index(request):
return web.Response(body='abc')
@asyncio.coroutine
async def init(loop):
app = web.Application(loop=loop)
app.router.add_route('GET', '/', index)
srv = await loop.create_server(app.mak... | [
"mac@narata.com"
] | mac@narata.com |
6726e26d26e7add78314772b18f26038174e56e8 | 64a80df5e23b195eaba7b15ce207743e2018b16c | /Downloads/adafruit-circuitpython-bundle-py-20201107/lib/adafruit_onewire/device.py | 8e2dcb3c176bb555d7382ad17baa965dce45f366 | [] | no_license | aferlazzo/messageBoard | 8fb69aad3cd7816d4ed80da92eac8aa2e25572f5 | f9dd4dcc8663c9c658ec76b2060780e0da87533d | refs/heads/main | 2023-01-27T20:02:52.628508 | 2020-12-07T00:37:17 | 2020-12-07T00:37:17 | 318,548,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,270 | py | # The MIT License (MIT)
#
# Copyright (c) 2017 Carter Nelson for Adafruit Industries
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation ... | [
"aferlazzo@gmail.com"
] | aferlazzo@gmail.com |
1ed7c76a486eeeb7bb21f4557d9cbf587e6ff3ba | a4195b810ae2b4739f8a6a0575ca36e06f24b3fa | /server/utils.py | c29ba62541bb2a86d1de9a3636faa6afc9546869 | [
"MIT"
] | permissive | githubalvin/hi-box | e2821a02d87ed2b28881562ae0a04318dddfa011 | 4bca09ea6df9c91fd2344a4346d037f5a1be643b | refs/heads/master | 2022-12-03T08:36:14.547128 | 2020-08-24T13:13:53 | 2020-08-24T13:13:53 | 288,623,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py |
if "_SINGLE_OBJ" not in globals():
_SINGLE_OBJ = {}
class SingletonMeta(type):
def __new__(cls, name ,bases, attrs):
init_func = attrs.get("__init__", None)
if init_func is None and bases:
init_func = getattr(bases[0], "__init__", None)
if init_func is not None:
... | [
"370736605@qq.com"
] | 370736605@qq.com |
dd2814da60c91c78a52183544b9e0e11c7d2484a | 64f608bd1313f21151443970ef28bca8c8d6fcd0 | /module_reverse.py | f8d60624ceb222648c75a6235064c79b943aa0d3 | [] | no_license | AshishWilson/Python_lab_MCA | 86b194eb0585412e2db73c9a8c1a808b7a33e4b2 | d60944ee666e1411bb383f750b06672abca31e1f | refs/heads/main | 2023-02-21T05:11:00.897017 | 2021-01-25T09:33:07 | 2021-01-25T09:33:07 | 332,985,015 | 0 | 0 | null | 2021-01-26T05:46:55 | 2021-01-26T05:46:54 | null | UTF-8 | Python | false | false | 57 | py | def reverse(get_string):
return get_string[ : :-1]
| [
"noreply@github.com"
] | noreply@github.com |
49af52b275442377a1ba8e116182257f67349b56 | 4753858dabfab1f3ba9f8820680cb1ab4e30c906 | /rcdsubbot/lexer.py | c14ab28d649ee23a72d96adbae72c578c6b48b93 | [
"MIT"
] | permissive | habibutsu/tapl-py | a8077c77ca2f5ca55316bc0141c0e833db862b07 | 8c33255cd1995b75ee006c91e2a6179429843339 | refs/heads/master | 2020-05-21T13:14:50.701971 | 2015-06-29T23:44:21 | 2015-06-29T23:44:21 | 33,068,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,656 | py | import ply.lex as lex
import re
class Lexer:
_unescape_tokens = [
# Symbols
("_", "USCORE"),
# ("'", "APOSTROPHE"),
# ("\"", "DQUOTE"),
# ("!", "BANG"),
# ("#", "HASH"),
# ("$", "TRIANGLE"),
# ("*", "STAR"),
# ("|", "VBAR"),
(".", "DO... | [
"habibutsu@gmail.com"
] | habibutsu@gmail.com |
a5b28f5ed094fbac63ce8b975715abc9271525ea | 3b07655b0da227eec2db98ab9347c9e7bdbc3ffd | /scielomanager/journalmanager/migrations/0004_auto__add_articleslinkage__add_field_article_articles_linkage_are_pend.py | 17462aec38eb32090fcba388c22b5043891a505a | [
"BSD-2-Clause"
] | permissive | scieloorg/scielo-manager | a1b7cc199e5f7c4d4b34fd81d46e180028299d7d | 0945f377376de8ef0ada83c35b4e2312062cdf45 | refs/heads/beta | 2023-07-12T08:23:59.494597 | 2017-09-28T18:39:39 | 2017-09-28T18:39:39 | 1,778,118 | 9 | 5 | BSD-2-Clause | 2023-09-05T19:42:58 | 2011-05-20T19:41:53 | Python | UTF-8 | Python | false | false | 35,762 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'ArticlesLinkage'
db.create_table('journalmanager_articles... | [
"gustavo@gfonseca.net"
] | gustavo@gfonseca.net |
34d2f8fdea69394296424fcca4b9210c110d4620 | 353a95c6762e9fb2522d1109a0df4a0b96670890 | /webapp/profile/forms.py | 2f9c10d156ff11fe884c36c25a4e6d4eb895092e | [] | no_license | gearbox/yandex2goods | 8caa724ba5fba4a84e9e454a530fd076bac13f59 | 918c2e9a6c7d1a0ad5309372821a39a98ab9dfd7 | refs/heads/master | 2021-01-07T09:43:14.378827 | 2020-03-22T19:00:02 | 2020-03-22T19:00:02 | 241,653,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,534 | py | from flask_wtf import FlaskForm
# from flask_login import current_user
from wtforms import StringField, SubmitField # , PasswordField, TextField
# from wtforms.fields.html5 import URLField
# from wtforms.widgets.html5 import URLInput
from wtforms.validators import DataRequired, url # , URL # , Email, EqualTo, Length... | [
"mtayrov@gmail.com"
] | mtayrov@gmail.com |
64b0ae44f2089d3323417912e1a7691351477d3c | 3ee8df34733bd96261f5e4cc51c0880c08f65a3b | /Test-Model.py | 76b286e0d6729656708daaa56178232aabad6d10 | [
"MIT"
] | permissive | skynet1010/ICoTSC2020_Example | e702345d29fb99737c2811a002f25662941d9509 | 8340ef10c06bc1e9d1097763f962e03390694ea0 | refs/heads/master | 2022-11-14T22:50:12.231774 | 2020-07-15T09:51:31 | 2020-07-15T09:51:31 | 279,590,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | from Data.DataPreprocessor import DataPreprocessor
from Model.TestSession import TestSession
from Model.TestDefinition import TestDefinition
from Model.VectorOutput import create_model_vector_gru
dp = DataPreprocessor()
sess = TestSession(name='Test', resample_window=30, data_preprocessor=dp)
sess.tests.appen... | [
"andreas.klos@fernuni-hagen.de"
] | andreas.klos@fernuni-hagen.de |
483b6068787fbdd1524d75258e6e39bb8c9191ec | 4a4f4f4cc7585ab27105346d2999d7eb97851a71 | /BloodTestReportOCR/pd_predict.py | 12d731dcac61dbd4d73b2450641b3163884298ce | [
"Apache-2.0"
] | permissive | sa16225193/BloodTestReportOCR | 82eeb3b3bc037f9365a1a6639a649024337bec8a | 95f25d3426e5e4ad850b0fbfb651b9645dea4c32 | refs/heads/master | 2021-07-22T15:47:47.930078 | 2017-09-29T03:33:09 | 2017-09-29T03:33:09 | 109,948,944 | 2 | 2 | null | 2017-11-08T08:41:59 | 2017-11-08T08:35:05 | Python | UTF-8 | Python | false | false | 397 | py | # -*- coding: utf-8 -*-
from py_paddle import swig_paddle
import sys
sys.path.append("..")
from PaddlePaddle import prediction_sex,prediction_age
def predict(arr):
swig_paddle.initPaddle("--use_gpu=0")
data = [arr.tolist()]
#直接填充4个0
for i in range(4):
data[0][0].append(0)
sex = prediction_sex.predi... | [
"王孟之"
] | 王孟之 |
50ed86316a7f9d4f0518c79fc491aace11f5da1b | 29b240fed70f9585567fa83a627dc6a7a11e4fba | /python/ledticker/postillon.py | cc80b4f66d5939464a7d3ae4f6417b72f2fee9da | [] | no_license | hickerspace/API-Examples | 2567f582b293afdecfd5d52f9bdbbb5ab351bc81 | d4d2696c45451f4591c14e0fd1e1cc2db54921a7 | refs/heads/master | 2020-12-24T13:44:30.149829 | 2013-05-08T16:54:15 | 2013-05-08T16:54:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import feedparser, re, random, helper
def replaceAll(text, replaceDict):
for key in replaceDict:
text = text.replace(key, replaceDict[key])
return text
def postillon():
postillon = []
feed = feedparser.parse("http://feeds.feedburner.com/blogspot/rkEL")
for entry ... | [
"basti@h1747297.stratoserver.net"
] | basti@h1747297.stratoserver.net |
3f8a95e7e90757fac808d96cfcd2c317291992dc | d528235dffbe582adda5d697dafc045091b1783e | /code/visualizer.py | f86b3a2a667ad22b284197a3c659a024deb30af4 | [] | no_license | slugwarz05/proj2-code | 9bdbacb1a507e19ce56b163968a5a29bd9b3cb00 | cab17a6762c88b00a06f8c0b521360c440e45111 | refs/heads/master | 2020-12-27T07:04:32.498421 | 2016-05-01T20:01:44 | 2016-05-01T20:01:44 | 56,452,111 | 0 | 0 | null | 2016-04-17T18:36:14 | 2016-04-17T18:36:14 | null | UTF-8 | Python | false | false | 3,851 | py | import matplotlib.pyplot as plt
import numpy as np
import matplotlib.ticker as plticker
class Visualizer(object):
def __init__(self, log_scale=False, series=()):
"""
Creates a new Visualizer.
Args:
log: Boolean. Whether to use the log scale.
Returns:
A new ... | [
"matthewbentonmay@gmail.com"
] | matthewbentonmay@gmail.com |
cf7b51a007d973d5c333a9a150c50a6d598fab5d | 11066ab31dea56912363171a10c674648520120c | /node_modules/websocket/build/config.gypi | 0d53ee3dea57af4dea48d4637ec355b03a9a4cf2 | [
"Apache-2.0"
] | permissive | bhaskarpraveen/Ai-nodejs | 25570a5bd05c2e60a9f929345d33c4249872b69b | 6865c8cd3855c8ff1b5c38d1ce3b65336caf79bd | refs/heads/master | 2023-03-04T17:39:36.437079 | 2020-03-02T06:45:44 | 2020-03-02T06:45:44 | 244,299,368 | 0 | 0 | null | 2023-03-02T19:39:42 | 2020-03-02T06:42:42 | JavaScript | UTF-8 | Python | false | false | 5,081 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"arch_triplet": "x86_64-linux-gnu",
"asan": 0,
"build_v8_with_gn": "false",... | [
"praveennaidu264@gmail.com"
] | praveennaidu264@gmail.com |
7025d3b3f9bcfb2ad2f093578320bee7358554ef | 01752687e20be48e06a6b863a0036a2524cdf58d | /test/functional/p2p-compactblocks.py | 94c01e0a0d1cda8944145c894264e08c6d9d489d | [
"MIT"
] | permissive | BitcoinInterestOfficial/BitcoinInterest | 8930042b26665f430ff1ae6e25c86c4998d1349c | 9d4eeee6bef0b11ccc569c613daae90d23804b5d | refs/heads/master | 2021-06-21T16:48:58.797426 | 2019-02-01T07:29:49 | 2019-02-01T07:29:49 | 115,038,373 | 30 | 20 | MIT | 2019-02-01T02:55:11 | 2017-12-21T19:10:21 | C | UTF-8 | Python | false | false | 44,276 | py | #!/usr/bin/env python3
# Copyright (c) 2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test compact blocks (BIP 152).
Version 1 compact blocks are pre-segwit (txids)
Version 2 compact blocks are... | [
"aaron.mathis@soferox.com"
] | aaron.mathis@soferox.com |
dd3317312edc41fbbf0c2373970715d2e21aa6b4 | f421edab15be07a6b66a80fff04408916f036617 | /tkinter/projet_v1.0.py | 932d236e73b3a43f3715b23f3b65503325bfec3a | [] | no_license | antoinech2/ISN-exercices-Python-Ann-e-2 | fb729cf830741fe7e22e4d42d7da1f607aac4d61 | d2018409037d8be1c055a7dcdff8bbd49cb52d54 | refs/heads/master | 2022-11-05T17:04:15.277544 | 2020-06-28T18:54:24 | 2020-06-28T18:54:24 | 275,648,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,573 | py | "ISN - Python - TKinter - Mini-projet"
"Jeu du clic-balle"
"Une balle se déplace au hasard sur un canevas, à vitesse faible. Le joueur doit essayer de cliquer sur cette balle à l'aide de la souris. S'il y arrive, il gagne un point, mais la balle se déplace plus rapidement et ainsi de suite. Arrêter le jeu au bout d'u... | [
"noreply@github.com"
] | noreply@github.com |
a33dc8e845cac335d832d9c5e3f45d970634fe61 | 8988e287cb60924c030656a93b0045c9956127f2 | /demo/my_demo/tokenizer_test.py | 50c1ee135f746d655e06a703633f724db4bccaf6 | [] | no_license | TATlong/keras_bert | 7080a1fe685da296dddb86684c5a9681e75c8579 | fa42a817b921181490d8beb3b9ad4fd04ec913c9 | refs/heads/master | 2023-04-01T14:52:17.796633 | 2020-01-17T08:06:54 | 2020-01-17T08:06:54 | 234,500,471 | 2 | 0 | null | 2023-03-24T23:21:37 | 2020-01-17T08:02:06 | Python | UTF-8 | Python | false | false | 2,371 | py | from bertTAT.bert import Tokenizer
# 字典存放着 token 和 id 的映射,字典里还有BERT特有的 token;
# 文本拆分出来的字在字典不存在,它的 id 会是 5,代表 [UNK],即 unknown
token_dict = {
'[CLS]': 0,
'[SEP]': 1,
'un': 2,
'##aff': 3,
'##able': 4,
'[UNK]': 5,
'明': 6,
'天': 7,
}
# 分词:中文的话,在CJK字符集内的中文以单字分割;英文的话采用最大贪心匹配
tokenizer = Token... | [
"1171942852@qq.com"
] | 1171942852@qq.com |
b83295a8369b760b60f547080929ab85c25711bb | 34652a47355a8dbe9200db229a1bbc62619de364 | /BASE SCRIPTS/Logic/__init__.py | 8ea073819416baffd947870cfc2da404aedfb85c | [] | no_license | btrif/Python_dev_repo | df34ab7066eab662a5c11467d390e067ab5bf0f8 | b4c81010a1476721cabc2621b17d92fead9314b4 | refs/heads/master | 2020-04-02T13:34:11.655162 | 2019-11-10T11:08:23 | 2019-11-10T11:08:23 | 154,487,015 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | # Created by Bogdan Trif on 23-09-2018 , 10:07 PM. | [
"bogdan.evanzo@gmail.com"
] | bogdan.evanzo@gmail.com |
c6fe12a1333b2fbeac90c730d484776d8331de04 | 6c978a74e94771c37b387b9ed7b09411dffe814d | /packageopt/services/agents/implementations/vola_agent.py | 9159885acad8cd1bfcd72937274c0d37a47de650 | [
"MIT"
] | permissive | nspostnov/for-article-optimal-position-liquidation | 23aa4f3120301cb568f8a2770bbce54ea6badbe0 | 857152b0450c39cfcdb3d329e57ed07efe344356 | refs/heads/master | 2023-04-17T04:51:07.541344 | 2021-04-27T11:47:59 | 2021-04-27T11:47:59 | 289,775,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | from ..abstract_base_classes.agent import Agent
__all__ = ['VolaAgent']
class VolaAgent(Agent):
def __init__(self, volarepo, volasolver):
self._volarepo = volarepo
self._volasolver = volasolver
def get(self, key):
vola = self._volarepo.get(key)
if vola is None:
v... | [
"postnov.ns@yandex.ru"
] | postnov.ns@yandex.ru |
57ba1aad7d54dc6660b731881b3a63758ed432b9 | e279c36f869bff57f76da76ba3b75e594ad1d4af | /news/migrations/0004_auto_20170318_1320.py | 6dd91325d8cae9f4b858fbb7aa205b896b205c1c | [] | no_license | angleCV/m.roothan.com | 386d97fc1bb910e9a7fe8564f54b35353f2ec506 | e6ac25803c833d656d19209705311cd0fb33247d | refs/heads/master | 2021-01-25T04:42:03.491651 | 2017-06-06T02:18:40 | 2017-06-06T02:18:40 | 93,465,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-03-18 05:20
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('news', '0003_auto_20170318_1319'),
]
operations = [
migrations.AddField(
... | [
"actanble@163.com"
] | actanble@163.com |
9e32b4bbcdbc11ec7d8f2448aa53c0eb16a438b0 | cf3e1b7c984ce9611b14a8a2475a9025e0a3c208 | /object_detection_3.py | 52327be89107fa10d5377f7e605fd378ab45dc59 | [] | no_license | ravo9/TensorFlow_Object_Detection_App | ed2753be8962f2b5a2d20a0dc02aa5269437965a | bead935cd1893bb11f93e3f49c9d3ac5fc5e934a | refs/heads/master | 2020-11-27T14:36:52.533653 | 2019-12-22T23:09:07 | 2019-12-22T23:09:07 | 229,492,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,632 | py | import os
import pathlib
import numpy as np
import os
import six.moves.urllib as urllib
import sys
import tarfile
import tensorflow as tf
import zipfile
import cv2
import urllib.request
from collections import defaultdict
from io import StringIO
from matplotlib import pyplot as plt
from PIL import Image
from IPython.d... | [
"rafalozog@gmail.com"
] | rafalozog@gmail.com |
2c8c00f24140851a86f35ee98958ad47aed4209f | 1e1b6e28104485c47d8f4d7fd8ee527c0d4a579f | /Scientific Computing with Python/boilerplate-polygon-area-calculator/shape_calculator.py | 2a7e28afb673fb99a72794665a621509d59f8a51 | [] | no_license | cdeanatx/FCC-Projects | 82f680a25b90037b526ae0529c13d4ef937ae543 | 22a0ee1875e2edb85684700881f954290f8b0ad5 | refs/heads/main | 2023-08-15T01:15:01.877153 | 2021-10-07T19:57:33 | 2021-10-07T19:57:33 | 397,318,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,282 | py | import math
class Rectangle:
def __init__(self, width, height):
self.width = width
self.height = height
def __str__(self):
return "Rectangle(width=" + str(self.width) + ", height=" + str(self.height) + ")"
def set_width(self, width):
self.width = width
return s... | [
"cdean.atx@gmail.com"
] | cdean.atx@gmail.com |
1b64fd425fcf04cf639ecf7d7de4a1fe6855afb0 | 732fe0652fbd5895a01d3e16ee12faf903cb86f1 | /data_generator/augment_data.py | eafc8a8665ce58b9487a8b4acdb41ee240bf0fc8 | [
"MIT"
] | permissive | KishanChandravanshi/forecast-cyclone-path | 0fd0e9fa6d77bb5f226ea01f99d5ed0834769744 | 766bb8440206b24d34ccd0eae488e2651d4e0467 | refs/heads/master | 2020-04-01T04:04:42.841764 | 2018-12-14T18:40:19 | 2018-12-14T18:40:19 | 152,849,144 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | import cv2
import imutils
import numpy as np
import random
import glob
# Run this script to generate randomly rotated images
folder_name = 'dataset'
destination = 'augmented_data'
files_path = glob.glob(folder_name + "\\*.jpg")
# set this to the number which is last in your dataset
# for e.g. if i've images named 1.j... | [
"milkyway.sagittarius.a@gmail.com"
] | milkyway.sagittarius.a@gmail.com |
e45cc02f03429c514d46d0434bc9d613598dc5fd | c202ee6f075b14d70712b1e93824a5476ac0c6f6 | /content/labs/lab10/solutions/bo2.py | 58b8e305c91bd6009d1804d17937ea188b9aed82 | [
"MIT"
] | permissive | Harvard-IACS/2021-CS109A | 0ab7797d10a04653e88722d1e597909e9c5bc443 | 0f57c3d80b7cef99d660f6a77c0166cffc1253e8 | refs/heads/master | 2022-07-31T17:57:48.205607 | 2021-12-16T16:47:36 | 2021-12-16T16:47:36 | 385,618,658 | 103 | 75 | null | null | null | null | UTF-8 | Python | false | false | 1,781 | py | from tqdm.notebook import trange
#logarithmic values:
exp_powers = list(range(-6,1))
exp_vals = list(np.exp(exp_powers))
#Find Optimal Learning Rate for Ada-Boosting
staged_train_scores, staged_test_scores = {}, {}
score_train, score_test = {}, {}
for i in trange(len(exp_vals)):
model = AdaBoostClassifier(
... | [
"chrisgumb@gmail.com"
] | chrisgumb@gmail.com |
81e70233fa819d68054341510f9384b71ad6bbd7 | 50e4b03b9adae4c04db0bb9c58e9776f664c8e8e | /lotto.py | b412b4e3709605023b35f6f02c9e524976213c46 | [] | no_license | hotval/lotto | 8c80faed44e6da54178ac51e6d602519c3689536 | fcc76437229e38952933352cf5f99f450428dbce | refs/heads/master | 2021-12-10T11:18:58.982042 | 2016-08-15T20:24:22 | 2016-08-15T20:24:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,252 | py | # widgets
from tkinter import *
window = Tk()
img = PhotoImage(file = "logo.gif")
imgLabel = Label(window, image = img)
label1 = Label(window, relief = "groove", width = 2)
label2 = Label(window, relief = "groove", width = 2)
label3 = Label(window, relief = "groove", width = 2)
label4 = Label(window, relief... | [
"noreply@github.com"
] | noreply@github.com |
8c759a8187699d7a2fe3f577cfc3b1b8d9379710 | 6661380e964a5912afad40d06722ed4485420925 | /ex2/exercise_2.ugo.py | 9e8d0a53ace709b829e4478241f78b32eaf2fcda | [] | no_license | smbadiwe/NewbiesLearningPython | d3227e7458a0b232f10200a498149fb9288b21db | 4934d2543c4dcceefc0c4b7fcf45546e5bb573b8 | refs/heads/master | 2022-12-03T23:12:49.890454 | 2020-08-18T00:46:37 | 2020-08-18T00:46:37 | 288,317,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,382 | py | import random
def check_speed(speed: int):
"""
This function is for checking how fast a driver is driving.
It takes one parameter: speed. Units is km/h.
You are to implement it such that it does the following:
- If speed is less than 60km, it should print "OK".
- Otherwise, for every 5km abov... | [
"somasystemsng@gmail.com"
] | somasystemsng@gmail.com |
c501550b0527a427a4e37f01076e814d0968db8a | 376625bac2866debbb4e1771a4cb2c130400bc64 | /product/views.py | 17e4667803aeaae72c5baee19112b413dca9ce6d | [] | no_license | karthickshiva18/pyhtonshopping | 5a2f37faaeaa8a36aecdcac9debe2c0b33f00e74 | 7932d22db6829c5967e3680fc01b8657ed24a180 | refs/heads/master | 2020-09-21T02:10:36.448736 | 2019-11-29T10:34:02 | 2019-11-29T10:34:02 | 224,650,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | from django.http import HttpResponse
from django.shortcuts import render
from .models import Product
def index(request):
products = Product.objects.all()
return render(request, 'index.html', {'product': products})
return render(request, 'index.html', {''})
def new(request):
return HttpResponse('new ... | [
"karthickshekar@live.com"
] | karthickshekar@live.com |
601526ff38f7c0f7bf7b2ca8b976c36bd65d1610 | 2f43ce29b4054e7dd877b001b5ab94447275fa38 | /build/lib/bgcArgo/__init__.py | c3fd188519a00e3fe4aa74684d9de1aafb2b29fc | [
"MIT"
] | permissive | synapticarbors/BGC-QC | e9b38c094c8c01c250f45fc77a87148b085c7652 | 41da86a4e6774ffed625d5b834c4d22324e042a2 | refs/heads/master | 2022-12-07T13:11:15.913352 | 2020-08-28T17:44:53 | 2020-08-28T17:44:53 | 291,386,705 | 0 | 0 | MIT | 2020-08-30T02:40:33 | 2020-08-30T02:40:32 | null | UTF-8 | Python | false | false | 1,734 | py | """
Argo Canada BGC Quality Control
`python` library of functions for quality controlling dissolved oxygen data. Heavily based on the SOCCOM BGC Argo QC methods (https://github.com/SOCCOM-BGCArgo/ARGO_PROCESSING) program in `matlab`, uses either NCEP (https://psl.noaa.gov/data/gridded/data.ncep.reanalysis.html) or W... | [
"chris.gordon@dfo-mpo.gc.ca"
] | chris.gordon@dfo-mpo.gc.ca |
43ba37c8a93da732faad900adadf63fa7b11126f | 9fa72c7944bd8d2223e8fe95544830ea30999259 | /CargaDatos.py | f039dc0cd5e09f45446ba1ac9024a3a6fdc012af | [] | no_license | vnbl/experimento_ub | eec374a3ce5309e65c395afea7ef0bc7a7312ebf | 81aac4f225b922a4e3ad596491dde3143bef1069 | refs/heads/master | 2023-02-06T08:10:27.108308 | 2020-12-25T20:07:13 | 2020-12-25T20:07:13 | 295,383,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,023 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Nov 14 10:30:49 2020
@author: fernanda
"""
import pandas as pd #Para manipular datasets
import numpy as np #Funciones matematicas de manera vectorial
import random as rand
import sklearn.metrics as metrics # Para utilizar algoritmos de machine learning... | [
"fernanda.carles@gmail.com"
] | fernanda.carles@gmail.com |
fff0d9fe421cc561458c5bb3b740ae55d0f1b448 | ea6b2704dba7aba4e5954b3379f949bf120d3dc5 | /energy/forms.py | 51a7ee8f61ac0e9aee5ae46fb66885e5d61f0a31 | [] | no_license | damourus/photovoltaic | 87db18bedcb7794433f915bed9359c213581d6ba | 21227990a60f00527394646cd48ae593eb032c0d | refs/heads/main | 2023-07-16T17:59:05.218348 | 2021-09-05T17:36:57 | 2021-09-05T17:36:57 | 378,584,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | from .models import *
from django import forms
class PvForm(forms.ModelForm):
class Meta:
model = Photovoltaic
fields = ('pv_model', )
class InverterForm(forms.ModelForm):
class Meta:
model = Inverter
fields = ('inverter_model', )
class RadiationForm(forms.ModelForm):
c... | [
"damourus01@gmail.com"
] | damourus01@gmail.com |
e26aa9b8fd359a2976468c02c32eb815b4ca3d67 | 6cefa769477b4d72517783e9b7e57abf1455271c | /access_pb2.py | 0b4633bb1216dcf2b201d1080f7bd42d6d0bb476 | [] | no_license | saewitz/flow-python-protocol | cbdec194e85c803ebc63b2ddafeac8f618b805bb | 1feee35c37c2076dd6c9ebc2d0cd7d547446e94d | refs/heads/master | 2023-03-08T07:53:30.594094 | 2021-02-28T09:59:42 | 2021-02-28T09:59:42 | 343,058,825 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | true | 66,266 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: access.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf... | [
"jonathansaewitz@gmail.com"
] | jonathansaewitz@gmail.com |
82a16cd345d6ca544ea367fa613b86c7f22ffdc1 | afafaa82a058a3ac1d3721039a11e587278bc80b | /script/plot_condition_numbers.py | b1f2c2ccefdab57544cf7d8851cff68ddbec1b06 | [
"BSD-3-Clause"
] | permissive | tonymcdaniel/sfepy | 24ec0b84bd0ee94ac3935ce01a25db5e6574110a | b7a70547515c6b0faf642dcc127841b782a51200 | refs/heads/master | 2021-01-15T20:13:28.735206 | 2012-07-23T14:33:32 | 2012-07-23T15:17:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,961 | py | #!/usr/bin/env python
"""
Plot conditions numbers w.r.t. polynomial approximation order of reference
element matrices for various FE polynomial spaces (bases).
"""
from optparse import OptionParser
import time
import numpy as nm
import matplotlib.pyplot as plt
from sfepy import data_dir
from sfepy.base.base import out... | [
"cimrman3@ntc.zcu.cz"
] | cimrman3@ntc.zcu.cz |
49ba897073a99a01573464ac331ed88f9c6d4f09 | 0291e9e3abcac5fc524af184cfff7fbddb7bb548 | /project_base/contact/migrations/0001_initial.py | f3072939b984db72d96babed879d9d052ce3462e | [] | no_license | anwar03/Ecommerce | 1e34bec1fc4ac3793efb3cb7c69ab7c015c1bbb8 | 250bef57b48bc900cf572ee9a5fbaa45ac29af1a | refs/heads/master | 2022-12-14T23:26:39.844120 | 2019-08-15T13:21:13 | 2019-08-15T13:21:13 | 201,460,949 | 0 | 0 | null | 2022-12-04T07:35:29 | 2019-08-09T12:12:46 | Python | UTF-8 | Python | false | false | 2,883 | py | # Generated by Django 2.2.4 on 2019-08-09 20:12
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Contact'... | [
"anwarazim03@gmail.com"
] | anwarazim03@gmail.com |
471644494010bd6231f991eb1d71af66b413f1f8 | b3114d6f20d066d403bd9b0b290fc3ebef2999a1 | /core/Red9_Meta.py | 680db54cf41af320c40b1a10f75bdee3abf2b7a4 | [
"BSD-3-Clause"
] | permissive | MaxSteven/Red9_StudioPack | f50491fd39def2a8730c799bc88dfa8a68d82d42 | 8dbad05b1a761cfadc86b1a07696dc10839780bc | refs/heads/master | 2021-05-28T05:48:42.845756 | 2014-07-06T12:48:04 | 2014-07-06T12:48:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121,274 | py | '''
..
Red9 Studio Pack: Maya Pipeline Solutions
Author: Mark Jackson
email: rednineinfo@gmail.com
Red9 blog : http://red9-consultancy.blogspot.co.uk/
MarkJ blog: http://markj3d.blogspot.co.uk
This is the Core of the MetaNode implementation of the systems.
NOTE: if you'r... | [
"rednineinfo@gmail.com"
] | rednineinfo@gmail.com |
6e64d297d9172f886c6b437cb286797e7c2fbf47 | 170912538f1cf46f58ed2dd5ae26506b0d885785 | /solutions/p7.py | ffdbdbb0df81aba2f9cce9c83c05bd7bc2c30164 | [] | no_license | gridl/Matasano-Crypto-Solutions | 0147329804ad89e8e8fda562ff7a421a8b48383d | 447baf78e7ee213733c023e102807e6e39407ad3 | refs/heads/master | 2020-03-23T01:57:47.481473 | 2016-01-28T04:06:19 | 2016-01-28T04:06:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | __author__ = 'Amirali Sanatinia'
import base64
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
from cryptography.hazmat.backends import default_backend
def aes_dec_ecb(key, cipher_text):
""" Decrypt a cipher using AES ECB """
backend = default_backend()
key = key
cipher = Cipher(algo... | [
"amiralis@users.noreply.github.com"
] | amiralis@users.noreply.github.com |
8a73389fe82f6d6d6ea7df89a51735607184e012 | f5d7b66802ae7e76274ac07010df76e3fb65f34c | /Learn and Practice PyThOn/chepter-7 (String)/startswith() and endswith().py | 99559c0a7ade034060602e9b6e8c0204ccbfe3c1 | [] | no_license | darkcoders321/fahim | e11ab8989ebad62534dad9ad4dad66f848384049 | e2b2d5a7c00003952f39dfbeb177abc2afcc3443 | refs/heads/master | 2020-09-09T14:41:01.221868 | 2019-11-13T14:13:11 | 2019-11-13T14:13:11 | 221,471,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | name="Fahim"
start=name.startswith("F")
end=name.endswith("m")
print(start,end)
#conditonal example
name="Mr.Fahim"
if name.startswith("Mr."):
print("Dear sir")
| [
"darkcoders321@gmail.com"
] | darkcoders321@gmail.com |
71d2a13f8caafddcea1f116f0df66bf877ac26e0 | 49eaaf069da00421918dd15f66bc5a02cbc2245a | /csp_bluetooth_demo/src/csp_bluetooth_demo_node.py | abf53f59d88a50532538a4ded29cb67a071fdc6b | [] | no_license | YuryXW/csp_bluetooth_practice | 471a73eded83c93887f9776404a9a90b9949c3d4 | afbef42b66353fa6461d19b4dcea994008112042 | refs/heads/master | 2021-08-19T08:01:13.278075 | 2017-11-25T10:58:48 | 2017-11-25T10:58:48 | 110,141,487 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,711 | py | #!/usr/bin/env python
## @package docstring
# This is the typical ROS template node for python.
#
import rospy
import sys
import signal
from std_msgs.msg import String
from duckietown_msgs.msg import Twist2DStamped
from duckietown_msgs.msg import BoolStamped
from std_msgs.msg import Header
#------------------------... | [
"SoulCrash@yandex.ru"
] | SoulCrash@yandex.ru |
5e73ef0d3118c4e024fe986a11cdce3910655b65 | 01b04d980b2746b4d4db1c2be1a263f77e2a7596 | /liangsongyou.blog/blog/views.py | 95f46d736ea14fb65f41de2b0e1d859dea64a6e2 | [] | no_license | liangsongyou/quarkblob | e9763efefe91f30b6da278ca6787564770cef4ec | 5d926ab40881a5f499734bfcbcb083d8bbb5e03e | refs/heads/master | 2022-11-26T17:30:47.276314 | 2018-11-28T09:47:54 | 2018-11-28T09:47:54 | 155,494,671 | 0 | 0 | null | 2022-11-22T03:07:32 | 2018-10-31T03:42:41 | Python | UTF-8 | Python | false | false | 1,505 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.contrib.auth.decorators import permission_required
from blog.models import Post
from blog.forms import PostForm
def post(request, slug=None):
item = get_object_or_404(Post, slug=slug)
return render(request, 'blog/post.html', {'item... | [
"yuebei58@gmail.com"
] | yuebei58@gmail.com |
80a6deb154d10fde1361416d0b9801cad698cb91 | 13de9dc09d02f8287f266ae526ee62538696e646 | /src/billing/admin.py | 75f9e57c571a045f67d2a9530e37161751f4ef37 | [
"MIT"
] | permissive | b4isty/ecommerce_udemy | 187dd981913549cfc0766dbb21e73f22802824b0 | 1c631613afe10a9f51f61cedf509fc79bface2ed | refs/heads/master | 2020-04-07T07:50:35.778308 | 2018-12-19T15:03:41 | 2018-12-19T15:03:41 | 158,191,021 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | from django.contrib import admin
from .models import BillingProfile
admin.site.register([BillingProfile])
| [
"baishakhi@digitalaptech.com"
] | baishakhi@digitalaptech.com |
da026e790a650039b294a25fa6452544897d4cd1 | b00ede2347d9364c2ab8dacc18aae1889db0dfa6 | /webapp/server/__init__.py | 284df315d0d786c32643f6d2ab520c700c337368 | [] | no_license | JZYoshi/AFDA | e81c0f5e10a1ff6c22c102ae050ff4d97610d2c2 | 7d19bdbcf32bdcdf795fa29beab1215796b12ff8 | refs/heads/main | 2023-03-28T12:45:37.618189 | 2021-03-18T15:09:23 | 2021-03-18T15:09:23 | 303,192,043 | 0 | 1 | null | 2021-03-18T15:09:24 | 2020-10-11T19:01:03 | Jupyter Notebook | UTF-8 | Python | false | false | 5,072 | py | from flask import Flask, render_template, current_app, request
import os
from flask.json import jsonify
import numpy as np
from scipy.stats import gaussian_kde, entropy
from . import db
def create_app(test_config=None):
# create and configure the app
app = Flask(__name__, template_folder="../vue/client/dist", ... | [
"jzydsrs617@hotmail.com"
] | jzydsrs617@hotmail.com |
4555c577dc463c13fc775ebb44fbd7a8dfc4a298 | 08e847cc3f05fc5c29193f2da2f53af1cb97ad12 | /Python基础课件/代码/第四天的代码/11-函数的介绍.py | 3fef965691c9e92c8631c16d77061b66987dbdb6 | [] | no_license | MayWorldPeace/QTP | d6605191392e2075053037cc8038de8d43a85680 | 9b0b2d689ffb7ab608f3956642da22d9b6f0a132 | refs/heads/master | 2020-06-06T10:28:16.173186 | 2019-07-04T13:24:10 | 2019-07-04T13:24:10 | 192,714,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,148 | py |
# python中函数
# 函数的定义
# 打印一个佛祖镇楼 -> 一个功能点的解释
def print_info():
print("测试")
print(" _ooOoo_ ")
print(" o8888888o ")
print(" 88 . 88 ")
print(" (| -_- |) ")
print(" ... | [
"liangdoudou@example.com"
] | liangdoudou@example.com |
09ee19f59fcbf8de31c5285d7d5cfcf228701935 | de33ba7be349eed5e2a1fc3f2bd9fce5bfdb9f13 | /phenocube/lib/python3.8/site-packages/setuptools/__init__.py | 25b4679b185857fa015cb43acc5f8b34a0faf3b3 | [
"MIT"
] | permissive | SteveMHill/phenocube-py | 9bebf239e24af3f97e59b080560228605e6611c5 | cb262aef1c0925efd2e955170bacd2989da03769 | refs/heads/main | 2023-02-24T03:35:11.461869 | 2020-12-22T12:15:22 | 2020-12-22T12:15:22 | 334,703,261 | 0 | 0 | MIT | 2021-01-31T16:37:21 | 2021-01-31T16:36:47 | null | UTF-8 | Python | false | false | 7,430 | py | """Extensions to the 'distutils' for large or complex distributions"""
import os
import functools
import distutils.core
import distutils.filelist
import re
from distutils.errors import DistutilsOptionError
from distutils.util import convert_path
from fnmatch import fnmatchcase
from ._deprecation_warning import Setupt... | [
"steven.smhill@gmail.com"
] | steven.smhill@gmail.com |
203d9a37000a582dcdc625710f4e7bbb0c159639 | 78f65f6c8be381773cc847c93da4b28eb4eeefae | /fastmri/models/__init__.py | d1d79c2627e2cc480fe53930fa89a0e984117d8d | [
"MIT"
] | permissive | soumickmj/fastMRI | af7bc3c654eda93905e19c24ab40dd255eb6c128 | 2056879fd9444c14599447af38ba0507f1222901 | refs/heads/master | 2022-11-29T22:32:26.152484 | 2022-03-09T20:50:02 | 2022-03-09T20:50:02 | 214,513,364 | 1 | 0 | MIT | 2022-11-08T08:29:57 | 2019-10-11T19:22:54 | Python | UTF-8 | Python | false | false | 270 | py | """
Copyright (c) Facebook, Inc. and its affiliates.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
"""
from .unet import Unet
from .varnet import NormUnet, SensitivityModel, VarNet, VarNetBlock
| [
"matt.muckley@gmail.com"
] | matt.muckley@gmail.com |
046c7fadc7a3e3cdc813caf214a79d19c739ddf2 | 1a66e07fbdd333e9feee3ae06f90e11cd5c3c79e | /qiskit/providers/honeywell/honeywelljob.py | 63ad4acef11e3f90f8c5ca5bcf2bbd37118c539e | [
"Apache-2.0"
] | permissive | stjordanis/qiskit-honeywell-provider | d385588ca2452ba0e10ddb6f68b03ca41064ed98 | d9c15a0edfb95ab1d715e98711748d2008a52040 | refs/heads/master | 2023-05-05T20:13:19.586574 | 2021-05-21T22:02:11 | 2021-05-21T22:02:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,857 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2017.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | [
"noreply@github.com"
] | noreply@github.com |
bc2488d589a8001efc0e25e3dab4c87c1764de6c | 7859860eeff25f715c970b8fb5dfd2751f3c4264 | /time_problem_5.py | ed7c6c129fc6e79d14b64a2b9f4729b52d6819ee | [] | no_license | dakuapraveen/python_problem_adhoc | d3c3a82b0b7b07f8516fa8ff645772acc5f24bf2 | d79fdebda11908b9a474a912e466719cd0590746 | refs/heads/master | 2020-06-02T17:51:47.462892 | 2019-06-17T06:08:39 | 2019-06-17T06:08:39 | 191,255,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | import datetime
name=input("Enter your name:")
current_time=datetime.datetime.now()
if 0 <= current_time.hour < 12:
print("good morning",name)
elif 12 <= current_time.hour < 17:
print("goodafter noon",name)
elif 17 <= current_time.hour < 20:
print("good evening",name)
elif 20 <= current_time.hour <= 23:
p... | [
"noreply@github.com"
] | noreply@github.com |
0dcf83210fc7b8fd635949e29c1c1f76450b0d2b | 98161af1d00f76fee3c6634ecd82badad10a3287 | /PG/pg_mcts.py | fb91bed10d53e6fc23794cf6157e135a158e37de | [] | no_license | joeleung00/DRL-for-Crack-Attack | 6e18e6c7a91fc66f485a9eb0d628e5d6daf09f3f | 1e5aabdc4c48dda0b7a05c4af98206c2608ca9b2 | refs/heads/master | 2022-09-16T21:14:37.296442 | 2020-05-28T07:11:32 | 2020-05-28T07:11:32 | 216,518,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,599 | py | import random
import sys
import math
from copy import copy, deepcopy
import sys
sys.path.insert(1, '../game_simulation')
sys.path.insert(1, '../cnn')
from GameBoard import GameBoard
from GameCLI import Game
from parameters import Parameter
from policy_net import Net
import pickle
from collections import deque
import nu... | [
"joeleung00@gmail.com"
] | joeleung00@gmail.com |
777934ec38c175bfce59c84dc3617ee2fb805a03 | 3a3eb6f6808070e5827acc3d4c382d59bcee8676 | /utils/position_provider.py | 12ae0128ca118014444a4ec85757e73c395011b3 | [] | no_license | tunaalaygut/the-slate-prototype | 5f0e582d06873cb8ba8f5daf49f7de1605d8b610 | 8e2b37c352479404302bfb2d12b0be4d1f29b8c4 | refs/heads/master | 2020-12-19T16:35:48.452788 | 2020-04-17T11:05:17 | 2020-04-17T11:05:17 | 235,790,247 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,826 | py | #!/usr/bin/env python
"""
position_provider.py: Module that, provides positions to be used when
drawing rectangles in the form of a tuple (topLeft, bottomRight).
Positions are calculated based on the frame size. Difference between points is
based on the scale input.
"""
# Information
__author__ = "Tuna ALAYGUT"
__cop... | [
"alaygut@gmail.com"
] | alaygut@gmail.com |
eb4207d2b4d3b04a745f8b479e228557e21a8021 | 706b3537037ef3a779357ee7c747bc336ed670d1 | /hier_labels/model/old/data_utils_wo_error_analysis.py | 0ac4e96e8b35ce1c77d31100ab5c152d70a8d657 | [
"Apache-2.0"
] | permissive | medical-projects/PICO | 22dea30ab790861d403aad6ab0472cc40577292a | 5b134e32c804a73d960e28528aebf52dd02b8430 | refs/heads/master | 2021-10-01T00:10:29.411607 | 2018-11-26T06:55:12 | 2018-11-26T06:55:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,707 | py | import numpy as np
import os
# shared global variables to be imported from model also
UNK = "$UNK$"
NUM = "$NUM$"
NONE = "None"
# special error message
class MyIOError(Exception):
def __init__(self, filename):
# custom error message
message = """
ERROR: Unable to locate file {}.
FIX: Have you t... | [
"maxaalexeeva@gmail.com"
] | maxaalexeeva@gmail.com |
f5c9a73d8b790153413ae5e3b3afae4b84702db1 | 3d30cf9c7837f0570dec13da02564fad0671f7ae | /src/multiprocessed/error_investigation/this_gives_fnf_error_withOrWithout_manager.py | 9497bccad7fae4955d8cedf61afc6cc5c32ec88f | [] | no_license | phil-shenk/erosion | 6045cb902698aa89ff472ae1d0253a320b93a3fc | e8bf8580aa5452b20b93b4513dd73e5c074bfd7c | refs/heads/master | 2023-02-16T18:56:53.582280 | 2021-01-11T06:49:03 | 2021-01-11T06:49:03 | 287,793,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,693 | py | import numpy as np
import multiprocessing
#from multiprocessing import shared_memory
from multiprocessing.shared_memory import SharedMemory
from multiprocessing.managers import SharedMemoryManager
import matplotlib.pyplot as plt
def initialize_shared_ndarray_for_reading(shape):
# make an array to store terrain
... | [
"shenk.philip@gmail.com"
] | shenk.philip@gmail.com |
4ab09766bdc8e293d8f7f6f4e76a8bc6a5df8c02 | fdc17d049336b24a645dcd585c070e4f7b1a3208 | /components/lifter.py | 440f7c4d7ce5eb5353dee4ca8544c96a8d2aa728 | [] | no_license | team1225/2018-CubeKong-py | 9c5e668719a6da50c53ea7295285649041d5b040 | 1652c4e8a648747e14583ab989bdc35973f21c45 | refs/heads/master | 2020-03-12T08:08:51.137977 | 2018-08-06T17:46:17 | 2018-08-06T17:46:17 | 130,521,182 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | import wpilib
class Lifter:
# The lifting mechanism, will be injected in robot.py
lifter: wpilib.DoubleSolenoid
position: bool
def set_lift(self, new_position):
if new_position == True:
self.position = True
elif new_position == False:
self.position = False
... | [
"hfiantaca@gmail.com"
] | hfiantaca@gmail.com |
466abeb5379b00a0e982d6cb3a40a44efd641980 | 6e0286c37278848f635b68fc675758cf44fe5837 | /money/admin.py | c82b45b2c9d92ba006a62a61422094f69bbaab84 | [] | no_license | davidbonnaud/monthly-money-tracker | 98846f8702edc2c88db57ba0b26bf9c2e9f97383 | ebf7464d7ba5cbd221d914034da8cda557e06509 | refs/heads/master | 2023-04-20T11:44:58.858901 | 2021-05-04T12:03:56 | 2021-05-04T12:03:56 | 364,242,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | from django.contrib import admin
from .models import Transaction, Balance
admin.site.register(Balance)
admin.site.register(Transaction)
# Register your models here.
| [
"david@davidbonnaud.com"
] | david@davidbonnaud.com |
987e31305b1cc7f071b646a09fda38217bed64cd | 7a40b3a8d6e3ff8c7beb7f07459ade7e828696df | /mailer.py | a0309208527394c7fe5dc0973cbd5d4a3ee94d95 | [] | no_license | kpj/WAM | 02ec3bab643252488557f559b368308aa6ec109c | 47e1a5e7eefdd8a34464d232108897665a5eef5a | refs/heads/master | 2021-01-10T20:36:01.338988 | 2011-12-14T13:39:21 | 2011-12-14T13:39:21 | 2,919,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,446 | py | ###############################################
# #
# Send SIGUSR1 to update the subscribe-list #
# example: killall -USR1 python #
# #
###############################################
import smtplib, imaplib, getpass, ... | [
"kpjkpjkpjkpjkpjkpj@googlemail.com"
] | kpjkpjkpjkpjkpjkpj@googlemail.com |
494e005bf465f0567890224eb9e0fc3ebf7b085f | 595ff50f59cc29ee8ff8d5780971b81cdd768d21 | /manage.py | e4d1f918800657b994e5d21218941857761272e9 | [] | no_license | shermanxiong/scam-detection | 62a3c20dd08fa443ad91bf82e4062339a8fb6c45 | d8f33024cd0331f78bf8afe39ac82400464b5c08 | refs/heads/master | 2020-06-06T06:12:05.735943 | 2019-06-21T01:17:46 | 2019-06-21T01:17:46 | 192,660,704 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'scamDetectionTask.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
ra... | [
"sherman.xiong@gmail.com"
] | sherman.xiong@gmail.com |
b789dcc8c2c8b5c5cc7429535c32875a9f690efc | 8cfee59143ecd307fe7d7a27986c3346aa8ce60c | /AI/1. Machine Learning/163_mnist-tocsv.py | cf18d04e18f98b2720fada6f34a867fd43f3f5a4 | [] | no_license | kiminhan/Python | daafc1fde804f172ebfb1385ab9d6205c7a45970 | dc6af486aaf7d25dbe13bcee4e115207f37d4696 | refs/heads/master | 2020-03-08T19:18:10.173346 | 2018-09-06T06:11:40 | 2018-09-06T06:11:40 | 128,288,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | import struct
def to_csv(name, maxdata):
# 레이블 파일과 이미지 파일 열기
lbl_f = open("./mnist_/"+name+"-labels-idx1-ubyte", "rb")
img_f = open("./mnist_/"+name+"-images-idx3-ubyte", "rb")
csv_f = open("./mnist_/"+name+".csv", "w", encoding="utf-8")
# 헤더 정보 읽기 --- (※1)
mag, lbl_count = struct.unpack(">II", ... | [
"rladlsgks4@naver.com"
] | rladlsgks4@naver.com |
2c4bb73122378d72b0354014879f4c1218f974a8 | 92d1de8f4b010b6f29621e95961f2d3682ad6ef9 | /blackwidow/error.py | c7fbaa022e864a9bc8396c403b5979b470077742 | [
"MIT"
] | permissive | tdstarkisoc/BlackWidow | 3495c66ecc14368e9374357a1f8e6163ed700f78 | b03353f75104fbc9a3854214524006ae586dba2f | refs/heads/master | 2022-11-27T19:53:47.896259 | 2020-08-13T10:48:48 | 2020-08-13T10:48:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | class BlackWidowError(Exception):
pass
class BlackWidowIOError(BlackWidowError, IOError):
pass
class BlackWidowValueError(BlackWidowError, ValueError):
pass
| [
"madison@indico.io"
] | madison@indico.io |
2d08f717b2851b1e9f4fc9e7217b39fbf022aadd | 88f25352d2c8b39d149187736bb260cb84097d93 | /lista4/rootNewton.py | 1ce24e0f01a47ba61667893f8bb07406bc59e0c3 | [] | no_license | ducast/alc | 0af83200aa73dc7f00657b3d6fdfad58ab517029 | dccc7426b0722b192a21226a9df534495f37c34d | refs/heads/master | 2021-01-23T14:46:58.863020 | 2017-06-11T21:49:39 | 2017-06-11T21:49:39 | 93,260,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | from math import *
import numdifftools as nd
def rootNewton(f,x0,max_it,tol):
print ("==== Método de Newton para Raízes ====")
for it in range(max_it):
x = x0 - f(x0) / nd.Derivative(f)(x0)
tolk = abs(x - x0)
print (int(it),round(x,2))
if tolk < tol:
print ("Conver... | [
"eduardo-castanho@hotmail.com"
] | eduardo-castanho@hotmail.com |
b8137ddbd4d31ee1e675044996c2784fc45b202a | 28c1c3afaf5e70c0530b864ead16fa8762ef1ca4 | /ch05_Array/list_size.py | 78660ba7e14c0f9ebf85b4bc2b7a1d1726f1190f | [] | no_license | luoshao23/Data_Structure_and_Algorithm_in_Python | 8059381c21580e3e4f1276089b9fe4f96de385f8 | 051754963ca2eb818b981ba72583314a043e5df4 | refs/heads/master | 2020-04-29T06:29:02.148886 | 2019-05-15T02:46:48 | 2019-05-15T02:46:48 | 175,917,337 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | import sys
data = []
n = 27
for k in range(n):
a = len(data)
b = sys.getsizeof(data)
print('Length: {0:3d}; Size in bytes: {1:4d}'.format(a, b))
data.append(None)
| [
"luoshao23@gmail.com"
] | luoshao23@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.