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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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"
] | ManiAtGenex.noreply@github.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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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"
] | AshishWilson.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 |
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... | [
"王孟之"
] | 王孟之 |
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 |
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 |
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 |
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 |
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 |
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"
] | antoinech2.noreply@github.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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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"
] | hotval.noreply@github.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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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"
] | stjordanis.noreply@github.com |
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 |
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 |
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 |
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 |
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 |
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"
] | dakuapraveen.noreply@github.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 |
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 |
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 |
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 |
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 |
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 |
80061a213c1bde5aef15c9b944e4fddf228b8218 | c95691559b7e94ccbd30d0295a852816bfd42f8a | /day25/day25.py | a48bdc73c07790270577bbe72ce4072fae2428da | [] | no_license | nsmryan/aoc2020 | 2fe515ca5f1db8711da00c9c921111d120d23b9f | a7810af1d2a0eff95d33da8d1378ba3b3a20b218 | refs/heads/master | 2023-02-03T05:32:08.817045 | 2020-12-25T14:54:21 | 2020-12-25T14:54:21 | 317,392,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | key1 = 8184785
key2 = 5293040
#key1 = 17807724
#key2 = 5764801
def step(value, subject):
return (value * subject) % 20201227
def find_loop(key):
value = 1
loop_times = 0
while value != key:
value = step(value, 7)
loop_times += 1
return loop_times
loop1 = find_loop(... | [
"nsmryan@gmail.com"
] | nsmryan@gmail.com |
bc03d8274188df69eac85d025d78dbfa59a16efd | 42321745dbc33fcf01717534f5bf7581f2dc9b3a | /lab/jax/linear_algebra.py | 618778d388a9415d7318fdcb5ef3dd6f36ac76e4 | [
"MIT"
] | permissive | talayCh/lab | 0a34b99fd60bc65fdfd1ead602d94dfb6b96f846 | 4ce49b68782a1ef8390b14ee61f57eeaa13070cf | refs/heads/master | 2023-08-25T04:42:06.904800 | 2021-11-01T18:22:00 | 2021-11-01T18:22:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,756 | py | import logging
from typing import Union, Optional
import jax.numpy as jnp
import jax.scipy.linalg as jsla
from . import dispatch, B, Numeric
from .custom import jax_register
from ..custom import (
toeplitz_solve,
i_toeplitz_solve,
s_toeplitz_solve,
i_s_toeplitz_solve,
expm,
i_expm,
s_expm,... | [
"wessel.p.bruinsma@gmail.com"
] | wessel.p.bruinsma@gmail.com |
6d1251f96e95ba1a11e3cc90efb4ac438f43f3c2 | 2fc85575c373c9cd404b7a824e751ea984cbd1b9 | /ingredients/migrations/0001_initial.py | 547306c5c3d609a677c616c9fadc6cff85181ea3 | [] | no_license | ildecarz/bigbox | 3fd46e194346a10907fa33106e76df05b92bd7df | be45180fd979344b5412586cc92f13a331a2a8ad | refs/heads/main | 2023-05-05T21:23:53.353828 | 2021-05-28T13:55:52 | 2021-05-28T13:55:52 | 361,298,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | # Generated by Django 2.2 on 2021-05-19 20:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"ildemarocarrasco@gmail.com"
] | ildemarocarrasco@gmail.com |
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 |
91e562078bece0259cf7a8eeb1a9714d1804c552 | 5d8c3150f28ab998326e38f1da420eb4e8d946c6 | /app.py | 7fd829b831371a7fdfadebdd9b241882fd616fac | [] | no_license | hoon0624/garbage-classification-heroku | 6bb587704a38a18c9a65735c4eb84e3b1db116bc | e3f2d1535db9097cfb2f0d5ca42230ed3566e889 | refs/heads/master | 2023-05-13T08:33:40.825155 | 2020-04-14T17:38:17 | 2020-04-14T17:38:17 | 254,552,658 | 4 | 3 | null | 2023-05-01T21:37:48 | 2020-04-10T05:35:52 | Jupyter Notebook | UTF-8 | Python | false | false | 1,649 | py | from __future__ import division, print_function
# coding=utf-8
import sys
import os
import glob
import re
from pathlib import Path
# Import fast.ai Library
from fastai import *
from fastai.vision import *
# Flask utils
from flask import Flask, redirect, url_for, request, render_template
from werkzeug.utils import sec... | [
"donghoon.lee@mail.mcgill.ca"
] | donghoon.lee@mail.mcgill.ca |
5be75593b7002ffbd31b4897bca03ea2ca701912 | cb938bb6201fb7ec3611623b54682a2252a0fc32 | /stud_comms/urls.py | 179f878fc5543e3e915ec1f32679e4628bab1528 | [] | no_license | JonoCX/2015-placement | 35e6ca11dac3841fcf785b4a787a5aadf403e5af | 385d70911cbc70cd9e030665caae44aa4504a685 | refs/heads/master | 2021-01-10T16:39:53.242741 | 2015-11-09T15:01:27 | 2015-11-09T15:01:27 | 45,845,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
from core.views import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'stud_comms.views.home', name='home'),
# url(r'^blog/', include('... | [
"j.carlton@newcastle.ac.uk"
] | j.carlton@newcastle.ac.uk |
35da58bdb8be02fba0f38d7f0bb56498199a2c1a | b090cb9bc30ac595675d8aa253fde95aef2ce5ea | /trunk/test/NightlyRun/test304.py | 73f9108132ad2bddc032b4278bf438f74d72234c | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | eyhl/issm | 5ae1500715c258d7988e2ef344c5c1fd15be55f7 | 1013e74c28ed663ebb8c9d398d9be0964d002667 | refs/heads/master | 2022-01-05T14:31:23.235538 | 2019-01-15T13:13:08 | 2019-01-15T13:13:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | #Test Name: SquareSheetConstrainedStressSSA3d
from model import *
from socket import gethostname
from triangle import *
from setmask import *
from parameterize import *
from setflowequation import *
from solve import *
md=triangle(model(),'../Exp/Square.exp',180000.)
md=setmask(md,'','')
md=parameterize(md,'../Par/Sq... | [
"cummings.evan@gmail.com"
] | cummings.evan@gmail.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 |
816e04e5d69c642ba2a24942f2af7ce25030a1a5 | 8c9402d753e36d39e0bef431c503cf3557b7e777 | /Sarsa_lambda_learning/main.py | e198580483ff22b2a9cc4c9141037276d21998a9 | [] | no_license | HuichuanLI/play_with_deep_reinforcement_learning | 9477e925f6ade81f885fb3f3b526485f49423611 | df2368868ae9489aff1be4ef0c6de057f094ef56 | refs/heads/main | 2023-07-08T04:52:38.167831 | 2021-08-21T14:05:36 | 2021-08-21T14:05:36 | 395,042,978 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | py | # -*- coding:utf-8 -*-
# @Time : 2021/8/17 10:59 下午
# @Author : huichuan LI
# @File : main.py
# @Software: PyCharm
from maze import Maze
from Sara_Lambda import SarsaLambdaTable
def update():
for episode in range(100):
# initial observation
observation = env.reset()
# RL choose action ba... | [
"lhc14124908@163.com"
] | lhc14124908@163.com |
2c67af0e6a0e47698557d1c16075616c11e7da42 | 1ec59e88299c7af9df3854188736b706e89e01fa | /app/forms/public/profile_forms.py | 1f3f68864842f4660895d45a56b96a51956c26cd | [] | no_license | Chenger1/NutCompany_FlaskApp | 7484b04721766b42f9cc909d11c3e942bf3b3371 | c51129e04f2c9e35263d9e28810b4c2862932ef6 | refs/heads/master | 2023-08-06T09:08:27.532820 | 2021-09-23T19:52:25 | 2021-09-23T19:52:25 | 405,457,276 | 0 | 0 | null | 2021-09-12T10:55:47 | 2021-09-11T18:44:35 | HTML | UTF-8 | Python | false | false | 1,241 | py | from flask_wtf import FlaskForm
from wtforms import StringField, SelectField
from wtforms.validators import Email, Optional
from ..custom_field import CustomFileField
from app._db.choices import CountryChoice
class ClientPersonalInfoForm(FlaskForm):
fio = StringField('ФИО', validators=[Optional()])
email = ... | [
"exs2199@gmail.com"
] | exs2199@gmail.com |
3c7761a66a130162d48b33cc7bb6d62086a049f8 | 1b9dcc5051719fce3fdf6d64ef6b39adc10d5bb3 | /Tools/cve-search-master/web/minimal.py | 8ed4b0e2f7a93f31d4aeed408738049797a0376e | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license"
] | permissive | abuvanth/watchdog | 20e0358a6892206fcc794478d2d24c95c838fa4e | 0a0fae253bf4321cdfb83052f56555a5ca77f7b9 | refs/heads/master | 2020-10-01T20:23:53.950551 | 2019-12-12T13:57:56 | 2019-12-12T13:57:56 | 227,618,188 | 2 | 0 | Apache-2.0 | 2019-12-12T13:51:25 | 2019-12-12T13:51:24 | null | UTF-8 | Python | false | false | 8,912 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Minimal web interface to cve-search to display the last entries
# and view a specific CVE.
#
# Software is free software released under the "Modified BSD license"
#
# Copyright (c) 2013-2016 Alexandre Dulaunoy - a@foo.be
# Copyright (c) 2014-2016 Pieter-Jan Moreels ... | [
"mohan.kk@flipkart.com"
] | mohan.kk@flipkart.com |
e095364f26d4002c10f2091881651d28c6288ec2 | d732fb0d57ec5430d7b15fd45074c555c268e32c | /misc/config_files/read_config_1.py | 7778e50073f61ca9d0f99726798d819291ac18a6 | [] | no_license | askobeldin/mypython3 | 601864997bbebdabb10809befd451490ffd37625 | 8edf58311a787f9a87330409d9734370958607f1 | refs/heads/master | 2020-04-12T08:01:16.893234 | 2018-02-01T18:23:23 | 2018-02-01T18:23:23 | 60,504,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | # -*- coding: utf-8 -*-
#
################################################################################
from configparser import ConfigParser, ExtendedInterpolation
import re
import myutils
parser = ConfigParser(interpolation=ExtendedInterpolation(), strict=True)
parser.SECTCRE = re.compile(r"\[ *(?P<header>[^]]+?)... | [
"askobeldin@gmail.com"
] | askobeldin@gmail.com |
ca46b5a2afb0afc86c6767c17a30760e6a097ebe | af46ef78a8e680733efa0056e0388db529a523a3 | /list/is_instance.py | 4a52a23d6b36f6cba7246bfc4960f42ebeba6397 | [] | no_license | mjhea0/python-basic-examples | 90f3aa1cb1a1399a7fe7b1b7e07cced517433490 | aaf4a5458f3e016703b6677033ea17b9cc901596 | refs/heads/master | 2021-01-15T18:31:28.455291 | 2013-09-21T03:59:23 | 2013-09-21T03:59:23 | 13,141,089 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | #coding:utf-8
numList = [2000, 2003, 2005, 2006]
stringList = ["Essential", "Python", "Code"]
mixedList = [1, 2, "three", 4]
subList = ["A", "B", ["C", 2006]]
listList = [numList, stringList, mixedList, subList]
for x in listList:
for y in x:
if isinstance(y, int):
print y + 1
if isins... | [
"wang.bo@okcash.cn"
] | wang.bo@okcash.cn |
b29c5e65d26f5c8c0c9f722d200de823dcf5af31 | a478489da108ec850795ac24f798a0ac75bb4709 | /Standard_deviation-master/graphs/class1.py | d9180f882b2dbfe906f689b678c6b6f76b08ae4f | [
"MIT"
] | permissive | LiamBrower/Class-105 | 9ff0f54f98b3bc1a2e0b659cc67995a0b7b1c604 | 11b2aeaf8ad5836bd2da113261bbfb7abd52d441 | refs/heads/main | 2023-08-16T07:13:37.831836 | 2021-10-12T23:53:30 | 2021-10-12T23:53:30 | 416,531,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | import csv
with open(r'C:\Users\docto\Dropbox\WhiteHatJr\Class-105\Standard_deviation-master\graphs\class1.csv', newline='') as f:
reader = csv.reader(f)
file_data = list(reader)
#To remove headers from CSV
file_data.pop(0)
total_marks = 0
total_entries = len(file_data)
for marks in file_data:
total_mar... | [
"noreply@github.com"
] | LiamBrower.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.