blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b8ed4dd75db4c11d74ead4f0f3d2b08577c4eb57 | 1cae869afd37b514ea1c85ccd1d3e9928b0e63d0 | /main.py | a9fd0378575d035e73bed780cb32bf4ccbcbd874 | [] | no_license | diegodocs/python-flask-container | fc346c4add4d68423803ea2e37c72c2ca6c47241 | 2e9449b74be2ee2dab9916c3cf71fb825a991ae3 | refs/heads/master | 2023-06-15T11:23:52.573811 | 2021-07-15T15:06:33 | 2021-07-15T15:06:33 | 386,331,309 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | from flask import render_template
import connexion
# Create the application instance
app = connexion.App(__name__, specification_dir="./")
# Read the swagger.yml file to configure the endpoints
app.add_api("swagger.yml")
# create a URL route in our application for "/"
@app.route("/")
def home():
return re... | [
"diegogabrielcardoso@hotmail.com"
] | diegogabrielcardoso@hotmail.com |
8fdad98f0744d1235757c322861bd452fb27013c | 69f3174a930c82cee384e4e254d83602287fe05c | /app/views.py | 62204c9ce18f8a366d79ba3b1a1c564b674985df | [
"BSD-3-Clause"
] | permissive | ruganda/ShoppinglistApp | f459fe38e6376530b1cb6ccc9c3dd04ca07822b5 | 30ae866dab2e220e0004e501870ca6402bb7ee2e | refs/heads/master | 2021-06-25T11:40:42.746943 | 2017-09-10T06:43:04 | 2017-09-10T06:43:04 | 103,006,893 | 0 | 0 | null | 2017-09-10T06:43:05 | 2017-09-10T05:46:01 | null | UTF-8 | Python | false | false | 4,635 | py | from flask import Flask, render_template, flash, redirect, url_for, session, request, logging
from wtforms import Form, StringField, TextAreaField, PasswordField, validators
from passlib.hash import sha256_crypt
from functools import wraps
import models
app = Flask(__name__)
# Register Form Class
class RegisterForm... | [
"mubaruganda@gmail.com"
] | mubaruganda@gmail.com |
7447e71d41061af2d2b957e2cd0674a8d8f0083a | 1f154c0499c6302a4b4416485b6edb03de0df4bb | /index/migrations/0003_auto_20200626_1416.py | f0fc64e05f1f70cf851ee34381d1fc0ceb9662a5 | [] | no_license | sbswapnil/OnlineStore | d2aa19c5a81b70ebea85d58345a019f75f224058 | 78af51c3e079e011e6015acf4170c5175f15cc2b | refs/heads/master | 2022-11-10T00:31:39.147353 | 2020-07-05T13:34:49 | 2020-07-05T13:34:49 | 275,309,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | # Generated by Django 2.1.15 on 2020-06-26 08:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('index', '0002_product'),
]
operations = [
migrations.AlterModelOptions(
name='department',
options={'ordering': ('d... | [
"swapnil@users.noreply.github.com"
] | swapnil@users.noreply.github.com |
b56a8887499549bddcddf330ff397a1eb4b0c35c | 5dffd214621058efbc28a47968be2f728f78b98c | /Tensorflow/tensorflow-builtin-estimators/classification-sigmoid-perceptron1.py | cb96c89c3bae54816bf25f55b2fccb0673393f98 | [] | no_license | SatishEddhu/Deep-Analytics | 25446466a27aa70d02dff3efc824af0cf37dac0c | a33a0ad7df1175e66af02e9c0758413d1de172da | refs/heads/master | 2021-01-13T15:51:03.044058 | 2017-08-05T06:44:54 | 2017-08-05T06:44:54 | 76,864,213 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,306 | py | # Import required packages
from tensorflow.contrib import learn
from tensorflow.contrib import layers
import tensorflow as tf
import pandas as pd
import numpy as np
import os
import seaborn as sb # for graphics
import matplotlib.pyplot as plt
# Set logging level to info to see detailed log output
tf.logging.set_verbos... | [
"et_satish@hotmail.com"
] | et_satish@hotmail.com |
9523ac8b61860442304daa426b823b5a950dd867 | afc9d4d8f62abbfe319905d58c7517b70e6a7794 | /mortgage_insight/urls.py | 55ba57c126cfa145bf3b9bfaec17742e1318de10 | [] | no_license | chris-nlnz/mortgage_insight | c5b8608305d9d00e5c2f666a5456d4c44af265ae | 24b247c1a388487bc76ea095b5f03bb5dbbe45d4 | refs/heads/master | 2022-02-27T04:57:10.301940 | 2019-12-21T03:08:32 | 2019-12-21T03:08:32 | 229,021,508 | 0 | 0 | null | 2022-01-21T20:10:33 | 2019-12-19T09:35:15 | HTML | UTF-8 | Python | false | false | 805 | py | from django.contrib import admin
from django.contrib.auth import views as auth_views
from django.urls import path, re_path
from mortgages.views import IndexView, MortgageListView, MortgageDetailView
urlpatterns = [
path('admin/', admin.site.urls),
# See https://developer.mozilla.org/en-US/docs/Learn/Server-... | [
"ccvanegmond@gmail.com"
] | ccvanegmond@gmail.com |
71267b8cf3be5526d75182327fab41e31206548d | 46cdce72fe4cf1f63ec3a8f4cd1890e316de4ee1 | /data/Datasets.py | fd61417d4bee327e8e956da7d5b2be1fa1056dc5 | [
"MIT"
] | permissive | Guim3/StackGAN | 520de10f189633a88f7e2c933f750a7e967082fa | f42ebfa7379fd8472b873c9dad0bf6bb9c03588e | refs/heads/master | 2021-01-12T07:00:21.969243 | 2016-12-24T17:35:06 | 2016-12-24T17:35:06 | 76,892,436 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,634 | py | import numpy as np
"""Dataset: given dataset images and their labels, constructs a dataset and generates mini-batches. """
class Dataset:
def __init__(self, images, labels):
""" Input:
- images: numpy array N x height x width x color, where N is the number of samples
- labels: numpy... | [
"guimperarnau@hotmail.com"
] | guimperarnau@hotmail.com |
e98d20d5572a244abbb3af09a27c99b20802283c | f680851b5704cb60c9a21589ee123b7adc474124 | /2015/Database/pyTK/view/__init__.py | 9fc19c9b2001f5ff79306e4b1cebc12ef31a857e | [] | no_license | joeyLewis/HighSchoolPortfolio | 999c3841c27d36f4988be424d808e89299d3e007 | c2e380506637d9f52ddbb956d4cf6b2c095cad84 | refs/heads/master | 2021-01-10T09:58:11.043094 | 2016-02-01T21:32:46 | 2016-02-01T21:32:46 | 50,872,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | __all__=["customs","portals","windows","view"]
| [
"joelewis@ucdavis.edu"
] | joelewis@ucdavis.edu |
f164d4d35d6ba2cb3d5766e27840cb4977d6d9ad | 04054ede9aa76745c9680e3b1d0d68d25b2d16e6 | /POSProject/sale/admin.py | e887b0950545fd0d94f4abffb264aed0f227fcf4 | [] | no_license | Kittiwat17/POSProject | 486ffe8f433d4b206f6e7bb071becb4366f8ddc1 | 3ab59e95725641c22e7678512562da9e90e67f88 | refs/heads/master | 2021-03-04T11:20:34.369852 | 2020-03-09T12:30:51 | 2020-03-09T12:30:51 | 246,029,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | from django.contrib import admin
from sale.models import Order, Order_Products, Type, Product
# Register your models here.
admin.site.register(Order)
admin.site.register(Order_Products)
admin.site.register(Type)
admin.site.register(Product) | [
"memoryeamkijkarn@gmail.com"
] | memoryeamkijkarn@gmail.com |
25dcc255986a15191b7d8adffac8fd5a28d49057 | 697ed34849347359628e8c8a36ba4d29715753ad | /minishift/minishift/wsgi.py | 6a8226f1068d2d6518c341d2e83f63b6401d7451 | [] | no_license | elrik/minishift | 5e9a61fdbc67d9064db2a21f8afaad24915a9de0 | 37aef58c1bbb41cb5e1c0a98dd127fc4ab7727ab | refs/heads/master | 2020-06-22T00:12:54.719051 | 2019-07-19T06:55:56 | 2019-07-19T06:55:56 | 197,586,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for minishift project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"nikola@elegantsolutions.no"
] | nikola@elegantsolutions.no |
4b74bef4bfc273b7967bbac170ea748de830187a | 3899dd3debab668ef0c4b91c12127e714bdf3d6d | /venv/Lib/site-packages/tensorflow/python/profiler/model_analyzer.py | 538717edb0c2f79205cc2784a9ba9a2865e71cc4 | [] | no_license | SphericalPotatoInVacuum/CNNDDDD | b2f79521581a15d522d8bb52f81b731a3c6a4db4 | 03c5c0e7cb922f53f31025b7dd78287a19392824 | refs/heads/master | 2020-04-21T16:10:25.909319 | 2019-02-08T06:04:42 | 2019-02-08T06:04:42 | 169,691,960 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 15,436 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"a@bogdanov.co"
] | a@bogdanov.co |
13756ff278f9a4ac63da0589411824f4ae1acb25 | b0e0843d8410ea59ba01fb923fce78921d3b6cf6 | /TrainDataset.py | 3bdbe02d6abeb50bdb823f3b96d3b791f409ea62 | [] | no_license | mosfiqunnahid/Trainning-Dataset | 8306158dbd0c303d0dee07ff42770b61e107094e | 24c368d13aa6a095a9235add4b5a7cc38316b837 | refs/heads/main | 2023-03-12T16:06:20.831572 | 2021-03-05T15:10:54 | 2021-03-05T15:10:54 | 344,847,276 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,352 | py | import cv2, os
import numpy as np
from PIL import Image
recognizer = cv2.face.LBPHFaceRecognizer_create()
detector = cv2.CascadeClassifier("haarcascade_frontalface_default.xml");
def getImagesAndLabels(path):
# get the path of all the files in the folder
imagePaths = [os.path.join(path, f) for f in... | [
"noreply@github.com"
] | noreply@github.com |
4df84ef4b569e91799830f0ab4d861684e4beb33 | d8aead947769557bd9c231095f0e1e01568d2407 | /app/calibrate.py | f5ab75635865a879df68c4e92ae10a79ae081b8f | [
"MIT"
] | permissive | arvind-india/UCD-Research-Practicum-WiFi-Occupancy-Platform | d48542a672feb767c69b5ee9e75ae2a078096a24 | 5a1841ac961403f6b39ce6ca985ce2eee1d0bbdf | refs/heads/master | 2023-03-18T16:04:09.166206 | 2016-08-27T15:46:20 | 2016-08-27T15:46:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | from .mod_sensors import *
calibration.calibrate_rssi_baseline("app/mod_sensors/rssi/baseline_readings/test.csv", "B002")
| [
"markgyr@gmail.com"
] | markgyr@gmail.com |
4ecca9d00e626da5c1cb01ab25691b1ad5dc13cb | c577f5380b4799b4db54722749cc33f9346eacc1 | /BugSwarm/scikit-learn-scikit-learn-405135881/buggy_files/sklearn/ensemble/bagging.py | 777e25edec064811e2752739a180b74dfd3e8754 | [] | no_license | tdurieux/BugSwarm-dissection | 55db683fd95f071ff818f9ca5c7e79013744b27b | ee6b57cfef2119523a083e82d902a6024e0d995a | refs/heads/master | 2020-04-30T17:11:52.050337 | 2019-05-09T13:42:03 | 2019-05-09T13:42:03 | 176,972,414 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,755 | py | """Bagging meta-estimator."""
# Author: Gilles Louppe <g.louppe@gmail.com>
# License: BSD 3 clause
from __future__ import division
import itertools
import numbers
import numpy as np
from abc import ABCMeta, abstractmethod
from warnings import warn
from .base import BaseEnsemble, _partition_estimators
from ..base im... | [
"durieuxthomas@hotmail.com"
] | durieuxthomas@hotmail.com |
9f9ad8ebb6fedbc7c53a79ce92698a7cc44d3b29 | d532b85841b459c61d88d380e88dd08d29836d43 | /solutions/1137_n_th_tribonacci_number.py | 213daa978cf7e1bbfd004aa81928729015dbfb37 | [
"MIT"
] | permissive | YiqunPeng/leetcode_pro | ad942468df5506de9dc48a4019933f658e2a3121 | 4a508a982b125a3a90ea893ae70863df7c99cc70 | refs/heads/master | 2022-05-15T09:32:02.699180 | 2022-05-14T16:32:17 | 2022-05-14T16:32:17 | 182,453,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | class Solution:
def tribonacci(self, n: int) -> int:
"""Array.
Running time: O(n).
"""
t = [0, 1, 1]
for i in range(3, n + 1):
t[i%3] = sum(t)
return t[n%3]
| [
"ypeng1@andrew.cmu.edu"
] | ypeng1@andrew.cmu.edu |
c1b66e6ceeca994c6c42b9d66d43dc2c32636294 | d57c448fb5d711717912e002ac62bfe658045068 | /djsr/frontend/urls.py | ee73869d8c19a5c5fe66c2a3fdd630236ad73a65 | [] | no_license | Mysta3/django-react-sjwt-app | 5ba1f0d9e77c62c564d753eef9ac0b44e9712bdb | a7ef5bd3f3db8a33527071ede5fcbe916011ff0c | refs/heads/master | 2023-03-08T00:39:03.200767 | 2022-02-15T20:46:36 | 2022-02-15T20:46:36 | 249,324,609 | 0 | 0 | null | 2023-03-04T07:32:58 | 2020-03-23T03:13:29 | Python | UTF-8 | Python | false | false | 244 | py |
from django.contrib import admin
from django.urls import path
from django.conf.urls import url
from .views import index_view
urlpatterns = [
path('', index_view), # for the empty url
url(r'^.*/$', index_view) # for all other urls
]
| [
"myshawnestallings@gmail.com"
] | myshawnestallings@gmail.com |
dec008f73c4a1a5746f1cef660b824097051ac6a | 571a89f94f3ebd9ec8e6b618cddb7d05811e0d62 | /abc178/f/main.py | e33571678bbcc68cd02255451e160931f0c863be | [] | no_license | ryu19-1/atcoder_python | 57de9e1db8ff13a107b5861f8f6a231e40366313 | cc24b3c2895aad71d40cefbb8e2893dc397b8f4f | refs/heads/master | 2023-05-10T05:32:16.507207 | 2021-05-19T17:48:10 | 2021-05-19T17:48:10 | 368,954,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | #!/usr/bin/env python3
from collections import Counter
INF = 1e12
def main():
N = int(input())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
lA = Counter(A)
lB = Counter(B)
if max(Counter(A+B).values()) > N:
print('No')
exit()
C = [0] * (N + 1)
... | [
"ryu1007kami@gmail.com"
] | ryu1007kami@gmail.com |
9476e7cff83f6852d1dfbdb1d49609b98621d26c | 2867897534993b590c4fb4bd90b02f2c188f9a11 | /db/upload_design_docs.py | bf2a3dfdc179522fc8a9a649b3ac63dd6d916194 | [
"MIT"
] | permissive | nfvs/idavoll | 82ad7807e9bdb2772ec1bda24feea84b86714ea5 | 5423584d062705ffd60f088d31b8d6a301fe3742 | refs/heads/master | 2021-01-16T21:57:25.647674 | 2013-04-17T12:42:43 | 2013-04-17T12:42:43 | 873,655 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | #!/usr/bin/env python
import sys
from couchdbkit import Server
if len(sys.argv) <= 3:
print 'Usage: %s <couchdb-url> <couchdb-db> <path-to-couchdb-design-docs>' % sys.argv[0]
print
exit(-1)
url = sys.argv[1]
db = sys.argv[2]
p = sys.argv[3]
print
print 'Uploading design docs'
print 'from \t folder = "%s... | [
"nunofvsantos@gmail.com"
] | nunofvsantos@gmail.com |
d4bff4cd9bbe8248787a6d57c2a536df58de18c8 | 45ac47507b05b8b08c95a94fea31765343ca278a | /tespost.py | a85e24f748338d8e6453b8d8bcd8aa056b16953c | [] | no_license | nsohit/Sriver | c0e179133a63581ad83c7104b4478a7aa04a1fb4 | c3ea1d0d8a0994546fbe4272441a28d0f397e7f7 | refs/heads/master | 2020-11-29T18:48:22.232464 | 2020-07-04T03:03:19 | 2020-07-04T03:03:19 | 230,193,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | import requests
import json
servername = 'http://inoprex.com/post-esp-data.php'
apiKeyValue = 'tPmAT5Ab3j7F9'
sensorName = 'tampa-nama'
sensorLocation = 'Universitas_Raharja'
#data = 'api_key=' + apiKeyValue + '&sensor=' + sensorName+ '&location=' + sensorLocation + '&value1=' + str(321)+ '&value2=' + str(987) + '&valu... | [
"noreply@github.com"
] | noreply@github.com |
b37be2064d3accc9ab5dd6bdbb1bf3353fe77af3 | 912cb61eaa768716d30844990ebbdd80ab2c2f4e | /ex046.py | e55b7ccacaec6e147ab1c140c23a4c353c0a1c65 | [] | no_license | luizaacampos/exerciciosCursoEmVideoPython | 5fc9bed736300916e1c26d115eb2e703ba1dd4ca | 398bfa5243adae00fb58056d1672cc20ff4a31d6 | refs/heads/main | 2023-01-06T21:48:17.068478 | 2020-11-11T12:29:10 | 2020-11-11T12:29:10 | 311,964,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | from time import sleep
for i in range(10, -1, -1):
print(i)
sleep(1)
print('PA PA POW BUM!!') | [
"luiza.almcampos@gmail.com"
] | luiza.almcampos@gmail.com |
ead6a48ab9b1dc29f28974572c698cf90040a882 | 6d9a754296b5ffbbe82c2594793532155f37a7e0 | /python/virtualEnvironments/myEnvironments/flaskEnv/lib/python2.7/site-packages/sqlalchemy/orm/relationships.py | 1a25fbc012c9cd155ff9e6fa08e13f3a9033e4d7 | [] | no_license | rnwokoye/Dojo-Assignments | 5ed941224df699b8cd988cc076c2ba8075803b2c | 47350f73b9dd270e88ba0877266d16d21a73f635 | refs/heads/master | 2021-09-22T10:10:19.407835 | 2018-09-07T17:56:54 | 2018-09-07T17:56:54 | 120,479,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118,222 | py | # orm/relationships.py
# Copyright (C) 2005-2017 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Heuristics related to join conditions as used in
:func:`.relationship`.
Pro... | [
"rnwokoye@gmail.com"
] | rnwokoye@gmail.com |
4868a3b1aa639cd755689a4481b1b90f1b278bc3 | 138bf6981ade36858e94074597daf6483083de63 | /MethodsRanker.py | b0b19811d7cdbe23f5334167ef74fbd2729c792e | [] | no_license | muralikrishnasn/BGSKdash | 7c11921989957ff4ee85791bc3ba705d8b5c8439 | a7774be2c77f467e55409d4e9b00fd9d9c74a49b | refs/heads/master | 2021-04-15T17:36:20.317213 | 2020-12-12T09:06:37 | 2020-12-12T09:06:37 | 126,199,598 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,744 | py | #!/usr/bin/env python
#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
#AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
#IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
#DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTR... | [
"mkr_sn@yahoo.co.in"
] | mkr_sn@yahoo.co.in |
d60b8848647073fb6debacd86e0751ebbc55838b | 0a21d5e72b4afbabcbf4ec0d65ea84cd8d6159c7 | /Python/899_orderly-queue.py | 0ed36e03d5f37b04e0c9fa9b063527040a5e06b2 | [] | no_license | LuoJiaji/LeetCode-Demo | 193f27ba36c93f9030435874a145c63a81d3c0f8 | 78e6e87c01848a1dc71b7dc0716029ece5f35863 | refs/heads/master | 2020-06-24T03:03:33.366537 | 2020-04-05T02:09:41 | 2020-04-05T02:09:41 | 198,830,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | class Solution(object):
def orderlyQueue(self, S, K):
"""
:type S: str
:type K: int
:rtype: str
"""
if K >= 2:
s = sorted(S)
s = ''.join(s)
# print(s)
return s
else:
s_min = S
for _ in ran... | [
"lt920@126.com"
] | lt920@126.com |
67a0640150e639d50308878ea58580cff5f9bc62 | eeaf464197e3fab5599334bfaf4b31cd3883b2d0 | /ejercicio12.py | 3a8b9d9d5f7927ae1ee61b57c10efbe99bb23167 | [] | no_license | henry2023/ejercicios | d96231a4d06c2878d92e75ce1398505ed56c79f6 | 279c67a004233d4b47cb87873c3ed9b190cd3dd7 | refs/heads/main | 2023-08-14T06:15:02.715395 | 2021-09-27T22:18:46 | 2021-09-27T22:18:46 | 406,185,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | c = float(input("costo unitario: "))
d = int(input("numero de docenas: "))
print("Monto a pagar: ",d*12*c) | [
"henryriverosrodriguez@gmail.com"
] | henryriverosrodriguez@gmail.com |
18af37301aaae47db6b2794060444127633d9f54 | 42dedcc81d5dc9a61a79dbcea9bdd7363cad97be | /figures/fig_04/save_A1_cwas+global_pysurfer_easythresh.py | b50fac031ecfaf56259988e8e0361a0addb8352a | [] | no_license | vishalmeeni/cwas-paper | 31f4bf36919bba6caf287eca2abd7b57f03d2c99 | 7d8fe59e68bc7c242f9b3cfcd1ebe6fe6918225c | refs/heads/master | 2020-04-05T18:32:46.641314 | 2015-09-02T18:45:10 | 2015-09-02T18:45:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,165 | py | #!/usr/bin/env python
import sys
sys.path.append("/home2/data/Projects/CWAS/share/lib/surfwrap")
import os
from os import path
#from surfwrap import SurfWrap
import numpy as np
import nibabel as nib
from newsurf import *
###
# Setup
strategy = "compcor"
scans = ["short", "medium"]
hemis = ["lh", "rh... | [
"czarrar@gmail.com"
] | czarrar@gmail.com |
1c4ed1090065f2ee2276387bc10be0ac903da2f4 | 7a19312d8b509baa9015432ab4004ffadbcdfd69 | /app.py | a5bfbabaf024206fd13b45f62f216aebb51de7fb | [] | no_license | eytorinn/lokaverk | 5d70f9bcaa830671518e9c5e915c3f03710e0813 | 9eb67f455d1bcb326732e48efde01d7023567588 | refs/heads/master | 2020-09-30T05:21:11.245084 | 2019-12-10T20:59:59 | 2019-12-10T20:59:59 | 227,214,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,381 | py |
import os
from flask import Flask, flash, redirect, render_template, request, url_for, make_response, escape, session, abort
import pymysql
app = Flask(__name__)
app.secret_key = os.urandom(12)
print(os.urandom(12))
conn = pymysql.connect(host='localhost', port=3306, user='root', password='root', database='lokaverk... | [
"eytoralex@gmail.com"
] | eytoralex@gmail.com |
77428b4cae22fb06075246b610647ee94a08229b | e6abffb7afc1a7dc264974b21d759d53c53e3704 | /Proyecto/Util/FlaskServer.py | 230e83dbe886c9085b14705dddf13b9faff3c3fe | [] | no_license | AlexP97/Microservicios | bf9aab449dfa20afadc0f59722e25ac4f9619b05 | 662be2177248b725ee9493e5107261787c5e5348 | refs/heads/master | 2020-03-23T13:31:07.955241 | 2018-07-19T19:35:46 | 2018-07-19T19:35:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | from flask import request
def shutdown_server():
"""
Funcion que para el servidor web
:raise RuntimeError:
"""
func = request.environ.get('werkzeug.server.shutdown')
if func is None:
raise RuntimeError('Not running with the Werkzeug Server')
func()
| [
"alejandro.perez.97@hotmail.com"
] | alejandro.perez.97@hotmail.com |
eef50aee18acf71d992d3a49bb87f06c6a487227 | 811c674d3b77a7bb161c98d365fa5fc1645d7eca | /Ejercicios/Week3/imports/b/c/z.py | a4292d52523f169bd69c2a7c44b4b745b4423dff | [] | no_license | Adriagallardo/adria_gallardo_thebridge_ds | 8925f08c50ffd4f2990035e7033262a8510a4f06 | 7ba34f12a53ea9b41425d270a026b19090a20633 | refs/heads/main | 2023-06-25T11:13:57.436048 | 2021-07-29T10:46:37 | 2021-07-29T10:46:37 | 361,670,370 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | import sys, os
ruta= __file__
print(ruta)
for i in range(3):
ruta= os.path.dirname(ruta)
print(ruta)
sys.path
sys.path.append(ruta)
import a.x as x
import b.y as y
def f1z():
print("f1z")
y.f1z
def f2z():
print("f2z")
x.f2x()
z = 3
z_z = 33
| [
"adriagallardo96@gmail.com"
] | adriagallardo96@gmail.com |
fd67bb3eb27cb61ca670ea0a0bef7798d885a136 | d34391683da30dc5a58af43462774a9e90871bab | /particle_reading.py | 992a95732c98e3fbe881a2398754d575d4759aa5 | [] | no_license | davidrball/reconnection_plotting | d3dcb648002ab66df5406a00f684ce0cae2c25e2 | 8eb03eb056301236b65f7a92185cbed3891c2147 | refs/heads/master | 2020-09-12T18:52:48.297571 | 2019-11-18T18:28:51 | 2019-11-18T18:28:51 | 222,516,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,027 | py | import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
from tristan_funcs import get_val_filename, load_particle
import h5py
import matplotlib.patches as patches
plt.rcParams['mathtext.fontset'] = 'stix'
plt.rcParams['font.family'] = 'STIXGeneral'
plt.rcParams.update({'font.size': 10... | [
"davidrball@email.arizona.edu"
] | davidrball@email.arizona.edu |
41d9f41f0768ef28ba15605b72de18bac5527208 | ad28505bf34ecb6b64c4f7cbcda431b35f3b4de4 | /SVC1_binary_fist.py | a9b545f596dbd83d76607d377d0ed98e36018520 | [] | no_license | zuchermann/skywalkerSVM | 88c29f4e4755100a606ea484e4b17f3f7cf7844e | 2b7d9b8ebe6656034c0a07c88f85c0ca5ad49739 | refs/heads/master | 2021-07-13T14:25:58.511694 | 2017-10-15T18:25:34 | 2017-10-15T18:25:34 | 104,824,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,081 | py | import random
from util import *
from sklearn import svm, metrics
from PIL import Image
##importing images
images, data = get_image_h5("./../data/with_brace/sonostar/binary_fist_small") # get images
images, shape = downsample_images(images)
##convert label data to two classes
fist_to_binary(data)
##shuffle and split... | [
"zachk414@gmail.com"
] | zachk414@gmail.com |
1190c7b70e65c07abc408fbb78766afb0e31a44b | 958033b337e44d9a862b216f739eca51422bf6ef | /deep-learning-nanodegree/first-neural-network/Your_first_neural_network.py | 47ed3eee2426f488c937cee7425d1d56686961ca | [] | no_license | zhongdesen/Udacity | c7756532ab790522d39d97e32deab142bf72f123 | 842e2bad0351bfb185cd9053c5be2a86ee44b46f | refs/heads/master | 2022-10-18T22:14:33.447859 | 2018-08-22T02:29:59 | 2018-08-22T02:29:59 | 145,640,473 | 0 | 1 | null | 2022-10-10T12:00:02 | 2018-08-22T01:42:22 | Jupyter Notebook | UTF-8 | Python | false | false | 16,640 | py |
# coding: utf-8
# # 你的第一个神经网络
#
# 在此项目中,你将构建你的第一个神经网络,并用该网络预测每日自行车租客人数。我们提供了一些代码,但是需要你来实现神经网络(大部分内容)。提交此项目后,欢迎进一步探索该数据和模型。
# In[1]:
get_ipython().magic('matplotlib inline')
get_ipython().magic("config InlineBackend.figure_format = 'retina'")
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
... | [
"503468974@qq.com"
] | 503468974@qq.com |
1a6975cd55131e7bd09d9bc4e42dd3e044eb92c9 | 3ef70fe63acaa665e2b163f30f1abd0a592231c1 | /stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/pyuisupport.py | 1e7def5911854cb1cd5a6c3f5be81cc1e5bd2184 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | wistbean/learn_python3_spider | 14914b63691ac032955ba1adc29ad64976d80e15 | 40861791ec4ed3bbd14b07875af25cc740f76920 | refs/heads/master | 2023-08-16T05:42:27.208302 | 2023-03-30T17:03:58 | 2023-03-30T17:03:58 | 179,152,420 | 14,403 | 3,556 | MIT | 2022-05-20T14:08:34 | 2019-04-02T20:19:54 | Python | UTF-8 | Python | false | false | 817 | py | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
This module integrates PyUI with twisted.internet's mainloop.
Maintainer: Jp Calderone
See doc/examples/pyuidemo.py for example usage.
"""
# System imports
import pyui
def _guiUpdate(reactor, delay):
pyui.draw()
if pyui.update() =... | [
"354142480@qq.com"
] | 354142480@qq.com |
94f40202f3e35fe04abdfa187f1ab1fe9b3f457b | 2ec67709f1308a4437a1015967682c587039e1af | /venv/bin/chardetect | 2ce458dcfdb2f9d322a1ac47f86a15563c38e23e | [] | no_license | AndreyNoMercy/social_media | f8448bad64ba0248a79270dae8ee1a9a1f52e02c | cd6ece29a8c96da0d3862cabf5ea75b7e501c7ec | refs/heads/main | 2023-03-26T21:28:23.370016 | 2021-03-30T12:28:08 | 2021-03-30T12:28:08 | 352,992,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | #!/Users/mac/data_mining/social/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"andrey88borodin@gmail.com"
] | andrey88borodin@gmail.com | |
32d06dc49e46306b27d555cc5eb7bd40056a2c00 | ce2bc16ac803434be57c7813732c97ca0b6bd6c7 | /lab02/google-python3-exercises/babynames/solution/babynames.py | 69a94da7f52d989972e22642888455adb6cc5a73 | [] | no_license | mathana96/dev-ops | 0600b22b39d7b619d7f6e303d6d7366b068fb98e | c5eb00294bdcd4965e409b17f62e904ffd17b239 | refs/heads/master | 2021-07-15T22:01:27.180601 | 2017-10-19T17:59:32 | 2017-10-19T17:59:32 | 104,484,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,855 | py | #!/usr/bin/python3
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
import sys
import re
"""Baby Names exercise
Define the extract_names() function below and ... | [
"mathana96@gmail.com"
] | mathana96@gmail.com |
37b2f9d6b52094089172c38cd1e6751779dfb331 | ec47e801c93d0e13de72884a1e4b8ad61b102b2a | /dbsession.py | 989b358dcb8c4c37bb275c8b3cebc5df02958f95 | [] | no_license | Sekitakovich/AIS5G | 37e07cd246b94f5980986a8807ec63a765831a6b | 9d531d63856331aa31bf7b6b01bcc3d195051812 | refs/heads/master | 2022-11-20T05:44:42.131046 | 2020-07-17T10:03:38 | 2020-07-17T10:03:38 | 268,015,057 | 0 | 0 | null | 2020-05-30T05:44:21 | 2020-05-30T05:24:12 | JavaScript | UTF-8 | Python | false | false | 3,313 | py | from datetime import datetime as dt
from typing import List
from contextlib import closing
import pathlib
import sqlite3
from multiprocessing import Process, Queue as MPQueue, Lock
from queue import Empty
from dataclasses import dataclass
from loguru import logger
@dataclass()
class Record(object):
sentence: byte... | [
"k-seki@klabo.co.jp"
] | k-seki@klabo.co.jp |
573c13844654553a89dfe7f3a802ab62bfb20452 | efdc190e08c5ae51cbc3fe7345df252e17454890 | /sql_injection_escape.py | 69f05a2312ec1b7d11d48eea702d05e0009e95d8 | [
"BSD-3-Clause"
] | permissive | dafna972/WAF | bc15aef5ded69e029a8f690a6eb2d83d5b01bee2 | 8339f493dc202fcbf3660ba936621090934b1443 | refs/heads/master | 2020-04-25T12:46:27.829706 | 2019-02-26T20:53:47 | 2019-02-26T20:53:47 | 172,788,778 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | def sql_escape(req_body):
# escape all suspicious chars (regarding SQLi)
return req_body.replace("%27", "\\%27")\
.replace("%00", "\\%00")\
.replace("%08", "\\%08")\
.replace("%09", "\\%09")\
.replace("%0a", "\\%0a")\
.replace("%0d", "\\%0d")\
.replace("%1a", "\\%... | [
"dafna972@gmail.com"
] | dafna972@gmail.com |
644a87cc993ec601656954004027ab4fbed81f22 | 6e141361fc9268240d6a1d0a4ae7fb880adffb07 | /tests/unit/streamalert_cli/athena/test_helpers.py | 61294b4f8a3f40a029c028094621d89610a0ca9d | [
"Apache-2.0"
] | permissive | bellyfat/streamalert | 3e5ed4ab39f17eb7bda11a18f8c2d657146d4d4c | a0a284c6bfdb9de40e76fc7581627b5863445cc0 | refs/heads/master | 2022-12-01T05:46:26.929911 | 2020-04-10T23:10:48 | 2020-04-10T23:10:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,476 | py | """
Copyright 2017-present Airbnb, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... | [
"noreply@github.com"
] | noreply@github.com |
ebb7cc1a92ce4d62d536460981e70b4154a3e415 | 44e08242888922dcd425f457b89fb8f576f9ac28 | /jss_api.py | b742970545a7a84f53e3eb9ceba2d6a737ef9853 | [] | no_license | dSalazar10/Jamf | de80a7a04370ef806653bc0a34cf7bae5b5ab334 | bd44ea6f5a9a06b355fa5eb157b26ce040a6c7fd | refs/heads/master | 2021-09-20T06:22:24.668203 | 2018-08-05T20:01:50 | 2018-08-05T20:01:50 | 141,527,743 | 0 | 1 | null | 2018-07-24T18:46:02 | 2018-07-19T05:17:11 | Python | UTF-8 | Python | false | false | 1,693 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 19 17:19:59 2018
@author: vu7972
Inspired by sreyemnayr JSSAPI:
https://github.com/sreyemnayr/jamf_pro_api/blob/master/jssapi/jssapi.py
CoProducer jpsthecelt:
https://github.com/jpsthecelt/configNquery/blob/master/rdConfigNqueryBF.py
"""
import requests
import sys
import ... | [
"noreply@github.com"
] | noreply@github.com |
3446191b847ea26f7fe1e44c40529ad84b9f76e8 | e24002c17b1a406edf15f5ed681a94f26be0e400 | /3.VariablesAndDataTypes.py | 57dadd81f92f7dc992cc387329d39b9469609eee | [] | no_license | Jason30102212/python_basics_refresher | ac6e65c0472db516a9ef81e9c3e31c3f72f67a57 | b8e6560c311139cb45c13c0947a67a64c99db547 | refs/heads/master | 2020-04-22T10:33:31.544806 | 2019-02-14T04:45:50 | 2019-02-14T04:45:50 | 170,309,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | #3.VariablesAndDataTypes
#Variables:
number = 2
name = "Jim"
print("The following number will be based on a variable: "+str(number) )
print("Name based on variable: "+name)
number = 5
name = "Jack"
print("The following number will be based on a variable: "+str(number) )
print("Name based on variable: "+name)
#Data... | [
"jason30102212@gmail.com"
] | jason30102212@gmail.com |
7c866ecffb76cea14f2093856b5a25d302269a79 | 999ed80db247794159be1d752bc6f0fc272bd117 | /tests/container_hardening/test_container_hardening.py | 6150f77f72f470bc5676f6750e08a825ff00ae58 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | ramakristipati/sonic-mgmt | 7fee876412f0121da96d751f7d199690c73496f3 | a86f0e5b1742d01b8d8a28a537f79bf608955695 | refs/heads/master | 2023-08-31T07:55:38.446663 | 2023-08-31T06:34:53 | 2023-08-31T06:34:53 | 315,448,103 | 2 | 0 | NOASSERTION | 2020-11-23T21:44:07 | 2020-11-23T21:44:07 | null | UTF-8 | Python | false | false | 970 | py | import pytest
import logging
from tests.common.helpers.assertions import pytest_assert
pytestmark = [
pytest.mark.topology('any'),
]
logger = logging.getLogger(__name__)
NO_PRIVILEGED_CONTAINERS = [
'bgp',
]
def test_container_privileged(duthost):
"""
Test container without --privileged flag has no... | [
"noreply@github.com"
] | noreply@github.com |
037ef6e7c30b36905415c7b5b3bc8f1ee0f50dc0 | b13271e8ca691771e15fa8a40166bad951f8d51d | /depreciated/FireModel.py | 468064e8319f7e9f4c112984e691ea2ec653e6bf | [] | no_license | nkuo/suds-fire-commercial | 4a7a90fba66e9b5fc84681af54602bae51c562ad | 8a7c0f73161a08c35231e35cbe14ab8ba8d87588 | refs/heads/master | 2021-09-04T18:36:18.604130 | 2018-01-21T03:37:49 | 2018-01-21T03:37:49 | 110,370,520 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 28,571 | py | #importing relevant libraries
import pandas as pd
import numpy as np
import sqlalchemy as sa
import matplotlib.pyplot as plt
from sklearn.decomposition import PCA
from sklearn.preprocessing import scale
#%matplotlib inline
# Reading plidata - permits, licenses and inspection
plidata = pd.read_csv('data/pli.csv',encodi... | [
"20330339+nkuo@users.noreply.github.com"
] | 20330339+nkuo@users.noreply.github.com |
9979c413406f18379a77e1c667bf53fd290ccd31 | 8aea9270d2941377500aaac06b112908e706aa6f | /bitcoin/basics/final/constants.py | 4a193527c6dae6616bb188e4d10bbed53a42b0a1 | [] | no_license | oscarsernarosero/blockchain | e4a10163e8fc4cd2cf89cb2101693cba94566b5a | fdff5506f8b590d0a4a02598dbf01e8337116988 | refs/heads/master | 2023-01-28T07:59:32.288165 | 2020-12-09T03:54:22 | 2020-12-09T03:54:22 | 238,325,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | FALSE = 0
TRUE = 1
P2PKH = 2
P2SH = 3
P2WPKH = 4
P2WSH = 5
P2SH_P2WPKH = 6
P2SH_P2WSH = 7 | [
"oscar.eduardo.serna@gmail.com"
] | oscar.eduardo.serna@gmail.com |
138416d9407f0ecf82210259f71be5495feb8791 | f4b2c035ad1aa18bed1b67ceb971eb4e535d6dcf | /medhacks17/wsgi.py | 7bae2dd2c93a127853c4dced5469378208f75ed4 | [] | no_license | thejonathanma/medhacks17 | 222a10f3982f8937b016a536bc7cf269ae2297e2 | b9c02e674c6a054512817190a8c122e0f48f1328 | refs/heads/master | 2021-01-23T22:20:06.574900 | 2017-09-10T03:44:04 | 2017-09-10T03:44:04 | 102,928,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | """
WSGI config for medhacks17 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... | [
"jonathan.ma@duke.edu"
] | jonathan.ma@duke.edu |
a39e3c581d7f281d9d39e3c07cb80e2daced9831 | 532e337751c44b89e68f0022966d6295116928a9 | /client/commands/check.py | a4c1104173a880f18eb681db839b4e013cce5d44 | [
"MIT"
] | permissive | laashub-soa/pyre-check | 8f1a2717888a22c15a7f6608e0d732e62fa060f9 | cc1a1b5c1007bf3e0e52e7f8b04c8e8fc365db44 | refs/heads/master | 2022-04-13T12:12:46.317095 | 2020-04-11T03:39:21 | 2020-04-11T03:41:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,891 | py | # Copyright (c) 2016-present, Facebook, Inc.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import argparse
import logging
from logging import Logger
from typing import List, Optional
from ..analysis_directory import AnalysisDirectory, res... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
f2a579a60c4cd35a2c5881d5eaa956df42173082 | e11f1025ae854b2fee71ad2f3d5f7cdbd48b6c72 | /mygame01.py | 59b6e530b9fe14e220e2fbabb6bcd8cab0d0f0d2 | [] | no_license | mikesaccount/mycode | 6f924383bfa473ef99ff4c38070ff06de8a73c99 | af078d98895a70170769fa7a195b966810405145 | refs/heads/master | 2020-05-04T00:48:37.334269 | 2019-04-04T16:45:13 | 2019-04-04T16:45:13 | 178,891,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,199 | py | #!/usr/bin/env python3
# Replace RPG starter project with this code when new instructions are live
def showInstructions():
#print a main menu and the commands
print('''
RPG Game
========
Commands:
go [direction]
get [item]
''')
def showStatus():
#print the player's current status
print('-... | [
"Mike.Milewski.Mail@gmail.com"
] | Mike.Milewski.Mail@gmail.com |
d9c34f82754e052494324bd101103e86d0390101 | 1ce0d2e83367ca96137ff21e20c63cd6bd682316 | /Python/SortIPs.py | 3d1155e2c75227fb35e81070f5fe94fda3f4fbe0 | [] | no_license | raystyle/Small-scripts-and-one-liners | d361b791deed5ac3f16df78a0619a6c044f683d3 | 9562f66c9f223550743138a8f7a0e9decd3b8386 | refs/heads/master | 2020-06-15T17:04:29.849060 | 2017-08-22T00:13:50 | 2017-08-22T00:13:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,431 | py | #!/usr/bin/python
import argparse
import os
import re
# Grab our argument values with ArgParse
parser = argparse.ArgumentParser(description='Sort IPs in file and kill dupes')
parser.add_argument('-f', '--file', help='The file containing unsorted IP addresses', action='store')
args = parser.parse_args()
inputFile = ar... | [
"robbins.andy@gmail.com"
] | robbins.andy@gmail.com |
3dcafcb8ddbfcf101cf8d23f6cd6121a86d227a3 | e09bbc5a50010270db56af7bbfd9e821df25ffc4 | /segmentation/prediction/predict.py | 3655da62ab80ccf5830f8336de01e3f762f69843 | [] | no_license | treyamador/machine-learning | 5c9318172dc49fde57b29e6794a4d9e8a4327865 | 3b5ac49dace202875344493840d072daf772f31b | refs/heads/master | 2020-03-08T04:33:22.888344 | 2018-05-28T17:29:25 | 2018-05-28T17:29:25 | 127,925,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,244 | py | # prediction script
from keras.models import load_model
from keras import backend as K
from skimage import transform
from skimage import io
from PIL import Image
import numpy as np
import cv2
MODEL_NAME = 'model.nodropcont.unet.35'
def dice_coef(y_true, y_pred):
y_true_f = K.flatten(y_true)
y_pred_f = K.fl... | [
"tmamador@cpp.edu"
] | tmamador@cpp.edu |
4be6061f5023ac300b2a7e8fcfe8c0db52c94e8a | daedd651442329e46d492e9ddfc040c57c912077 | /HW5.0/03-evaluate.py | 032d74f591807f754144401cabbe341417257f41 | [] | no_license | JCgithubaccount/590-jc3155 | 4a8b286006b343f2270821b6bcf1c9ac14bb5b8f | 40da69c770142f57f26ec3c2f496b801577f613f | refs/heads/main | 2023-08-30T17:49:01.757767 | 2021-11-16T19:42:43 | 2021-11-16T19:42:43 | 403,991,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,497 | py | import numpy as np
import tensorflow as tf
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.metrics import classification_report
data = np.load('02vector.npz')
features = data['features']
target = data['target']
cnn_model = tf.keras.models.load... | [
"jialichen@jialis-mbp.myfiosgateway.com"
] | jialichen@jialis-mbp.myfiosgateway.com |
7dfa8742af0323539e84ac872f221265e1bdca25 | 9976538606416c483f9df88e72369b3ad43d0337 | /ansible/load_ips.py | f7d0961a005eb1ac38ab921e9433579162f268fc | [] | no_license | maxburkhardt/midnight-net | 7a7ca9c92a45181439b7274f0e606efe12af7205 | e95ccf8445250e71a65bf449a525b0e35c6e6f07 | refs/heads/master | 2021-07-07T16:10:39.119901 | 2020-06-22T00:25:10 | 2020-06-22T00:25:10 | 89,821,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,253 | py | #!/usr/bin/env python
import json
import uuid
import subprocess
from jinja2 import Template
"""
A script to load the IP addresses of generated midnight net hosts from the
terraform state file and automatically create relevant ansible infrastructure,
such as inventory.ini.
"""
def get_from_terraform():
state_data... | [
"squid219@gmail.com"
] | squid219@gmail.com |
8bf2ee94e3e751581ea7caa05a37b30b802ff49a | 0f89b48353f0a9e1339faca745b94bf2e2a80ead | /clusterAnalysis/Kmeans/k-means4.py | a1e265c5f45f0b6c1d10e14591ff642ad9d48d0e | [] | no_license | Limlin-Qs/MachineLearningAlgorithm | efbb5a68076159349281131db7f5f709deea78b6 | c5237dc4467de72974e94bf195e55d313c50eee0 | refs/heads/master | 2023-08-18T19:39:51.878228 | 2021-10-14T10:46:55 | 2021-10-14T10:46:55 | 363,423,200 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,503 | py | # -*- coding:utf-8 -*-
# 会根据给出的数据分析,并生成聚类,输出图像到文件
import math
import pylab as pl
import codecs
import re
import datetime
pl.rcParams['axes.unicode_minus'] = False
# 计算欧式距离,a,b代表两个元组
def calcudistance(a, b):
return math.sqrt(math.pow(a[0] - b[0], 2) + math.pow(a[1] - b[1], 2))
# 求出最小距离
def dist_min(Ci, Cj):
... | [
"limlin95@126.com"
] | limlin95@126.com |
48b90312527aaca5a3d117dcad0c546c2006051c | f0792fc58c0d2c261428464971b1379a42b17cc1 | /group/g32_뱀_p327.py | 7126f264a418af888e49bedbe14646f5cf5d1986 | [] | no_license | Tao-Kim/study_algo | d3e6ae70995b87f92286fe0243bbf3b0e2426e2e | aacf5de901b38eb53b21147e867eaa7c860fc113 | refs/heads/master | 2022-12-21T13:26:35.519167 | 2020-09-28T12:53:38 | 2020-09-28T12:53:38 | 288,083,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,106 | py | from collections import deque
n = int(input())
board = [[0] * n for _ in range(n)]
board[0][0] = 1
moveQueue = deque()
moveQueue.append((0,0))
k = int(input())
for _ in range(k):
row, col = map(int, input().split())
board[row-1][col-1] = 2
l = int(input())
turnQueue = deque()
for _ in range(l):
x, c = in... | [
"taog397@gmail.com"
] | taog397@gmail.com |
f225e76098fd88d5fb8e7bec28cb199093663486 | eca8c05a405d13cc2402464be18ca49e8175f5f8 | /project/main.py | de304a098689c9d5297e53d02a1b9ee6c0515931 | [] | no_license | o-oJames/MapBox_James | c8d716c54ec1343743deafa888a2b2699e63d631 | 2fc55c6f1f2a1d63ccc089e3c4de81eb63f43fbb | refs/heads/master | 2023-02-05T01:31:09.803302 | 2019-12-10T03:12:09 | 2019-12-10T03:12:09 | 226,804,727 | 0 | 0 | null | 2023-02-02T05:12:17 | 2019-12-09T06:53:03 | HTML | UTF-8 | Python | false | false | 419 | py | # main.py
import os
from flask import Blueprint, render_template, request, json
from flask_login import login_required, current_user
from pyproj import Transformer
main = Blueprint('main', __name__)
@main.route('/')
def index():
return render_template('index.html')
@main.route('/profile')
@login_req... | [
"hellocoming1995@gmail.com"
] | hellocoming1995@gmail.com |
4940ca8db7984e58d9977e6e369641cf36cadd49 | 4968a692977a725c69cf1f0b75883c862d71e4a3 | /CtCI/recursion-dynamic-programming/davis-staircase.py | ebe4b0bab0288fcf6147b9be417f4e5a57dd44b5 | [] | no_license | OscarOzaine/Hackerraank | e4edcda7021ca47e079b552a0cb9c837c5e140ae | eabafecd312bc01e00a1f9779184e2ea6382045b | refs/heads/master | 2021-01-09T09:37:47.560605 | 2018-08-03T03:42:19 | 2018-08-03T03:42:19 | 81,183,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | ## Recursion: Davis' Staircase
## https://www.hackerrank.com/challenges/ctci-recursive-staircase
def getSteps(n, cache=dict()):
if n == 0:
return 1
if n < 0:
return 0
total = 0
if cache.get(n):
return cache[n]
for hop in [1, 2, 3]:
total += getSteps(n-... | [
"oscar.ozaine@gmail.com"
] | oscar.ozaine@gmail.com |
9f6c426d5a8caf837408e0c5f02c5fb25805e144 | 49b5e4b5f19f539866dfe2ac64292e255625af86 | /python_lessons_luts/Streams/reader.py | 5cccaefbdd66158536af0a3ed640bec04850deef | [] | no_license | nikitaKravchenko/Funny_scripts | 6ffd74a69b7d4e1a20a0f20919ecb587ca9a8fe6 | 486cbb6188f2793248e8e99a23f2dee7814c3c50 | refs/heads/master | 2021-01-20T03:21:57.066009 | 2019-12-03T14:16:15 | 2019-12-03T14:16:15 | 89,528,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | #print('Got this: "%s"' % input())
import sys
data = sys.stdin.readline()
print('The meaning of the life is', data, int(data)*2)
| [
"nkravchenko@llnw.com"
] | nkravchenko@llnw.com |
a024f955b0216ad6ae22356a5a4212bbed1014f3 | e8bf2e6550113ffcdaab92a5e8311477221d69e5 | /music_player.py | 4ab3a232d30c324822ce4453153617275be1df15 | [] | no_license | PrateekJain999/Music-Player | 8b8fc3f96a6edc638c8d282659466386d0d558d1 | 4b6165141120650eb03f3735fb96e2727f3f82bb | refs/heads/main | 2023-02-24T13:45:20.313424 | 2021-02-04T11:41:33 | 2021-02-04T11:41:33 | 331,238,413 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,026 | py | from tkinter import *
from tkinter import ttk
import os
import tkinter.messagebox
from tkinter import filedialog
from pygame import mixer
import time
import threading
from mutagen.mp3 import MP3
root=Tk()
#=======================MENU BAR==============================================
menubar=Menu(root)
root.config(men... | [
"jain22719@gmail.com"
] | jain22719@gmail.com |
7331026b83d8e6f850f8c56d9a5b1831c2cf19a3 | 656333723126feda937bff37cbae7d675a77c186 | /euler/2_EvenFibonacciNumbers.py | c1532a8f573a97167d2154fc2cc41fdac130fe93 | [] | no_license | luyaosuperman/python3-playground | 424ead9f69ed0d208f019d7ad7b838f74191205b | 3ac89c15bb03c8282376f354705d2c437b41775e | refs/heads/master | 2023-07-23T07:30:19.038120 | 2023-07-17T07:59:59 | 2023-07-17T07:59:59 | 88,848,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | #!/usr/bin/python3
import unittest
class Solution(unittest.TestCase):
def sol(self):
self.result = 0
self.count = 0
self.a = 1
self.b = 2
self.result = 0
while self.a < 4000000:
if (self.count - 1) % 3 == 0:
print(self.a)
self.result += self.a
self.feb()
print(self.result)
def feb(... | [
"luyaosuperman@gmail.com"
] | luyaosuperman@gmail.com |
67b3c669ef83f6826df7fe37df6cce574c437a79 | d646608860b6d384200f2bcc3dc30f0fd0403c36 | /app/models/reviews.py | 15c7064f076feaa5a5b5dec4365164fb50a06084 | [] | no_license | karobia001/Watchlist | 7503c5c1e6b5cb14b2bfc2e6aeadcb32e607f61c | bed75eefc00147febf921d7d778399cff7aa398e | refs/heads/master | 2020-08-08T15:59:08.670249 | 2019-10-11T15:35:31 | 2019-10-11T15:35:31 | 213,864,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | class Review:
all_reviews = []
def __init__(self,movie_id,title,imageurl,review):
self.movie_id = movie_id
self.title = title
self.imageurl = imageurl
self.review = review
@classmethod
def get_reviews(cls,id):
response = []
for review in cls.all_review... | [
"karobiamaina81@gmail.com"
] | karobiamaina81@gmail.com |
fe1a7825059ee36d7669e58884816a5ed5472ab3 | 0a66f88db3e902465657dba290481d4d87161de2 | /code/OrbitalDebris/venv/bin/runxlrd.py | 3b86586b761b0841ba34e6eef8dda29a71dc4ff9 | [] | no_license | ReeceHumphreys/OrbitalDebrisThesis | c26440f60ab2e33027912a9e0dffdc5f93919851 | 3c703a01ea69679e3ee82123e0b68b6b89766777 | refs/heads/master | 2023-04-16T07:30:07.396842 | 2021-04-23T01:53:34 | 2021-04-23T01:53:34 | 298,690,476 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,330 | py | #!/Users/reecehumphreys/Developer/Thesis/Thesis/venv/bin/python3
# Copyright (c) 2005-2012 Stephen John Machin, Lingfo Pty Ltd
# This script is part of the xlrd package, which is released under a
# BSD-style licence.
from __future__ import print_function
cmd_doc = """
Commands:
2rows Print the contents of ... | [
"reecewh@icloud.com"
] | reecewh@icloud.com |
98a5cad2cf3eaa198f86362ddbe11f53eaf77e90 | 5e2a66e0416dcaf4674bd58f7dd7bc905800aa92 | /chapter6_calculator/not_eval.py | 19b6b540e3d3b4f4cad577f42734a3714894ec95 | [] | no_license | gridl/applications_with_wxpython | c96ed05b49e3494323e612afb1baccc8ea1e6f93 | 1fc63c384b7856402b99a97bf91fe0966a5ec413 | refs/heads/master | 2020-05-17T08:37:01.672727 | 2019-04-25T19:24:14 | 2019-04-25T19:24:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | # not_eval.py
import ast
import operator
allowed_operators = {ast.Add: operator.add, ast.Sub: operator.sub,
ast.Mult: operator.mul, ast.Div: operator.truediv}
def noeval(expression):
if isinstance(expression, ast.Num):
return expression.n
elif isinstance(expression, ast.BinOp):
... | [
"mike@pythonlibrary.org"
] | mike@pythonlibrary.org |
84c3b710030d76d8822dda535ce1e7a9fccde6d2 | 3fa8676cfde6abe3c67c12b316e282641328da49 | /ch16/LineBot/app/router.py | 5d07a2776f6d1b9ef7f27f5cb74d638333586115 | [
"MIT"
] | permissive | antallen/PythonMaterial | 33ae38581e01144924fee3aecef66fb4f5ebe46e | c582fb1610610feb72002f43a3758d5c58d6da85 | refs/heads/main | 2023-07-14T15:15:52.963373 | 2021-08-19T12:19:31 | 2021-08-19T12:19:31 | 307,311,816 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | from app import app, handler, request, abort
from linebot.exceptions import InvalidSignatureError
from flask import render_template
# 設定預設網頁
@app.route("/")
def home():
return render_template("home.html")
# 接收 Line 平台來的「通知」
@app.route("/callback", methods=['POST'])
def callback():
signature = request.headers[... | [
"antallen@gmail.com"
] | antallen@gmail.com |
5d87c3542355bd8f653901ad12eeea83b43d4bde | 17f069da55a7f41fa73dd070c7b51d74e1c8dca5 | /Generic ReTarget Addon/KeeMap Retarget Addon.py | f641c589d0c8f4c272399d7be78307f8a4c52586 | [
"MIT"
] | permissive | dorsalstream/Blender-Retarget-Rig-Radical-to-Daz3D | 0b632e67fe3e4e2108e64a98a96be296681182f8 | 34418db2ca835ed0e30b3e2626c74bc5664bd920 | refs/heads/master | 2022-12-30T10:23:06.153004 | 2020-10-10T22:01:20 | 2020-10-10T22:01:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,083 | py | bl_info = {
"name": "KeeMap Anicmation Transfer Tool",
"description": "Tools for moving animation from one Rig To Another",
"author": "Nick Keeline",
"version": (0, 0, 0),
"blender": (2, 83, 0),
"location": "3D View > Tools",
"warning": "", # used for warning icon and text in addons panel
... | [
"noreply@github.com"
] | noreply@github.com |
7aa79c03836223277f5b6a4e670ec095339614e3 | 2c665ab7365b82ac6103475cea4cc729019ff3bc | /cisco/netmiko/netmiko-from-file.py | 74cbc3be4911ff9013c2ae99040f643c286acddc | [] | no_license | Magnusjensaas/Network-Automation | a67f47573dc895c5f564daf23e9e123d1aa7def8 | 09816766ebee50c6fa8ef81fb0881da67393c07c | refs/heads/master | 2020-09-22T11:09:30.779457 | 2020-03-29T19:35:34 | 2020-03-29T19:35:34 | 225,169,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,465 | py | import netmiko
import getpass
# Get user input for username and password.
username = input("Username: ")
password = getpass.getpass()
def check_software_version(device_list):
"""
Method to check software running on IOS device.
From list of predefined IOS versions.
"""
for software_version in devi... | [
"magnusjensaas@gmail.com"
] | magnusjensaas@gmail.com |
4844e849b8071a58ff807d6e75b08f584e26e7d7 | 0443d4b2c79568c0f39b0a966b9bc20cd3cec990 | /day2/day2.py | 7a8e10fdc42b8193467bc8089a193e7c4987fb51 | [] | no_license | OskarSigvardsson/adventofcode2020 | d1ee3f23a73c8cbf8734db1589143b3eb29a2bbf | c0883e4b0f2de19096fb840eee35c035d641daaa | refs/heads/master | 2023-02-16T08:02:06.771826 | 2021-01-03T21:36:46 | 2021-01-03T21:36:46 | 318,456,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | import sys
import re
def valid1(line):
m = re.match(r"(\d+)-(\d+) (.): (.*)", line)
a, b, char, string = m.groups()
a = int(a)
b = int(b)
return a <= len([c for c in string if c == char]) <= b
def valid2(line):
m = re.match(r"(\d+)-(\d+) (.): (.*)", line)
a, b, char, string = m.groups(... | [
"oskarsigvardsson@gmail.com"
] | oskarsigvardsson@gmail.com |
15c7f29986320a0bf73be21f29f997e888550da3 | cd184204d05399d44cea30373bad52882d2d1051 | /conta.py | 5bd4342991fcc5818630b04a669dbb16008fa6e4 | [] | no_license | davidapdf/Python_teste | b560d91dcd0bde05bff556ce65c60d80f5068a29 | 00fe5a821c7d1bf7e7b667161a573ae7c2d93a2e | refs/heads/master | 2020-12-22T00:07:50.542644 | 2020-02-04T15:40:08 | 2020-02-04T15:40:08 | 236,609,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,361 | py | class Conta:
def __init__(self, numero, titular, saldo, limite):
self.__numero = numero
self.__titular = titular
self.__saldo = saldo
self.__limite = limite
@property
def saldo(self):
return self.__saldo
@property
def titular(self):
return self.__tit... | [
"david.paula.dias@everis.com"
] | david.paula.dias@everis.com |
3f3c072b38918ee758b521266ef022a96d913f0d | 87c70b2a720311c3341bc6cd4fb49a6fcfdee232 | /polls/polls/settings.py | 95e69518c79c6dcb4ac8838e9ae786ae780a328f | [] | no_license | AlexKotl/python-exercises | 44b734d18dc7d126514ea86437e2b26c1d1fe310 | ddec09f1e5c0e8833df0c96c3533bf3b808d25da | refs/heads/master | 2020-03-21T19:03:39.944981 | 2018-07-04T19:55:09 | 2018-07-04T19:55:09 | 138,928,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,233 | py | """
Django settings for polls project.
Generated by 'django-admin startproject' using Django 2.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# B... | [
"slicer256@gmail.com"
] | slicer256@gmail.com |
5cff741a726a542d9473a208e7e9f1745c667589 | 738e54ead99e912a43a6b0cf0521bcf7324825cc | /ProjectX/src/HotelReservation/migrations/0032_best_choice.py | 2b15641680a5f0e4c72316a4ab95e12410d33164 | [] | no_license | gugajung/HotelReservation | 413abba1a64c3cafde909fbb48cd6c0a219c3bef | d3e150aa732fe94e95f43aa708ec21c654b4be4c | refs/heads/master | 2020-04-10T19:23:11.068556 | 2018-12-04T02:25:55 | 2018-12-04T02:25:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | # Generated by Django 2.0.4 on 2018-09-11 01:41
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('HotelReservation', '0031... | [
"lavashort@gmail.com"
] | lavashort@gmail.com |
24b1dbb3765a4c32784a7441086967dcc5356ff7 | 309d70c23cfad319073bfb5d390e93de01c2d712 | /python/questions/24.py | 9101465c455902732a82fe3841c98135f6178f8d | [] | no_license | BarryLiu/python | 53eb0accd778289b182a2b0b5cd837d22f6f0c2b | d07c3e74d2048715084c9c15ce0c883fcdfcc033 | refs/heads/master | 2022-01-18T08:01:13.502299 | 2022-01-07T13:12:24 | 2022-01-07T13:12:24 | 94,323,741 | 0 | 0 | null | 2018-07-30T23:07:58 | 2017-06-14T11:28:57 | Python | UTF-8 | Python | false | false | 440 | py | """
【程序24】
题目:给一个不多于5位的正整数,要求:一、求它是几位数,二、逆序打印出各位数字。
"""
def rever_num(num):#递归输出
if num==num_len-1:
print(input_number[num],end='')
else:
rever_num(num+1)
print(input_number[num],end='')
input_number=input('请输出数字:')
num_len=len(input_number)
print('该数字有%d 位' %num_len)
rever_... | [
"yingjing.liu@wheatek.com"
] | yingjing.liu@wheatek.com |
125a463b34ea48dd39865a7cd348be89e1fd7e91 | 072729bae2cef5a462d63dfe0c8ed896ac67114d | /weasyl/views/test/test_debug.py | 98d4b83b75e8bd029cfa421b3bb8f62a289d89b4 | [] | no_license | Weasyl/weasyl3 | b9d209decdbc08284b3ce9f69918ca592e7fd7ce | beeae4706d8779f34449f32e3911ef3428493c02 | refs/heads/master | 2020-04-06T07:02:30.818436 | 2019-12-21T06:28:08 | 2019-12-21T06:28:08 | 60,926,001 | 1 | 0 | null | 2019-12-21T06:28:09 | 2016-06-11T20:14:42 | CSS | UTF-8 | Python | false | false | 462 | py | import pytest
from libweasyl.exceptions import ExpectedWeasylError
from weasyl.views import debug
def test_expected_exception():
"""
expected_exception just raises an ExpectedWeasylError always.
"""
pytest.raises(ExpectedWeasylError, debug.expected_exception, None)
def test_unexpected_exception():
... | [
"weykent@weasyl.com"
] | weykent@weasyl.com |
a79f7c7977cd6f6139db715b281a671c4b23ca83 | 5151814817d3b7d11fcdf25cd11a7f2137838b4f | /printServer.py | 857055edb48b4357549b8848e8b4a4cb166ea79c | [
"MIT"
] | permissive | TsukuyomiJolno/virtualPrinter | e11c0f58092e2cdf9b884ed27d3ee5d3fc96a149 | 28d19ae9ee634ac4dd9115695272349932aa5227 | refs/heads/master | 2020-03-28T20:45:06.961942 | 2018-03-27T04:41:55 | 2018-03-27T04:41:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,172 | py | #!/usr/bin/env python
#
# We can use RedMon to redirect a port to a program, but the idea of this file is to bypass that.
# We simply set up a loopback ip and act like a network printer.
import socket
import os,time
import atexit
import select
class PrintServer:
def __init__(self,printerName='My Virtual P... | [
"TheHeadlessSouceMan@gmail.com"
] | TheHeadlessSouceMan@gmail.com |
081daa6f2c35d6ea72e3992de9435bd63d2fce9b | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/securityinsights/v20190101preview/threat_intelligence_indicator.py | 8d782a258d979e17d79d8f4a75dcda538209db73 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 38,988 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | noreply@github.com |
c8270736785050d121d5e0b23cd2728d7bfa27f6 | c38592e18f0492f43e14ded616cb0bcf246e51c5 | /gtp.py | b080cd578df31d54df6c128450b8f2f27c32eba2 | [] | no_license | CMACH508/2020-WangZhiwei | ed81a119391e5b35dc79d21a8c1282d4bf2a163b | d9112b3a0bfc688681ce9a85dcaec0230494bb1d | refs/heads/master | 2022-04-22T03:10:42.936674 | 2020-04-22T11:11:24 | 2020-04-22T11:11:24 | 251,605,983 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,576 | py |
import re
def unparse_pygtp_coords(c):
if c is None:
return PASS
return c[1] + 1, 19 - c[0]
def parse_pygtp_coords(vertex):
'Interprets coords. (1, 1) is bottom left; (1, 9) is top left.'
if vertex in (PASS, RESIGN):
return None
return 19 - vertex[1], vertex[0] - 1
def pre_engine... | [
"lipeiying@sjtu.edu.cn"
] | lipeiying@sjtu.edu.cn |
a39e5237a2f64dd433e68606927b0b35856daaf7 | 3423fa49ec691b5111e30234036bdf7ce27b59a0 | /basic_oop_with_python/3-main.py | 720e4c22b6fcd27316f8a6988c8e1180a1cb2690 | [] | no_license | DoraKorpar/holbertonschool-higher_level_programming | 69254dbe626cb1ea021791f1ba4f1c1e1e41e0d8 | 07f895d25a57eda1f4c516a6effa42a538a7462a | refs/heads/master | 2021-01-21T04:33:20.210091 | 2016-07-02T20:37:53 | 2016-07-02T20:37:53 | 51,212,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | from circle import Circle
c = Circle(4)
c.set_center([0, 0])
c.set_color("Yellow")
c.name = "Sun"
print "Area of %s is %f" % (c.name, c.area())
print "Center of %s sun is [%d, %d]" % (c.get_color(), c.get_center())
| [
"dora.korpar@gmail.com"
] | dora.korpar@gmail.com |
580b1f7c8954ad727b99f744821d25755d8610ec | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/nos/v7_2_0/interface/port_channel/ip/interface_po_dhcp_conf/dhcp/__init__.py | 43d3dcd59779544ca02ce50f9c3fb363039a675d | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,154 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
e9683267b636a822e2ab4e7e3f11d76614b0273c | 16a48ec3a2f15db89ba819db80721aeea4e10bd1 | /EX2_Ramp angle_Joshua.py | 8905c60f73df79ff5090b2849767bbdad487a261 | [] | no_license | joshualxndrs/ALGOPRO-HW-1_Exercise1-2_JOSHUA | 58ccb0312914f0da7f385855a90f42c130ca8dd1 | 36ba244e3e67061040535c7dd5facd9aa2c10f03 | refs/heads/master | 2023-08-19T14:27:15.066238 | 2021-10-14T16:23:54 | 2021-10-14T16:23:54 | 416,177,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | #Input mass, Input Force
#C = 9.8
#Formula for angle --> angle = f/(m*c)
#Asin(angle) --> degrees
import math
m = float(input("Please enter the mass of the cart (unit in kg): "))
f = float(input("Please enter the force acting on the cart (unit in N): "))
c = 9.8
angle = f/(m*c)
A = math.asin(angle)
Final = math.deg... | [
"josualex156@gmail.com"
] | josualex156@gmail.com |
03d889a33613d1136e0bc0ffb09a5aa16709224e | bc2000f224d4f555a54c1fb43cb55e027bc8f64f | /ctc/chapter_3/problem_1.py | 7435f9b2f44d7acf0efd7685317573e1abe9a5fb | [] | no_license | nplutt/learning | 4779aed3a62da4de85e99c86f92c0fc7c36e69ee | 0d4635ff5c1e72353776ac9930749fe37b3b9603 | refs/heads/master | 2023-08-14T23:10:13.400627 | 2021-09-27T16:04:17 | 2021-09-27T16:04:17 | 104,288,020 | 0 | 0 | null | 2020-12-29T00:18:19 | 2017-09-21T01:49:17 | Python | UTF-8 | Python | false | false | 1,174 | py | class ArrayStack(object):
def __init__(self):
self.arr = []
self.index_1 = 0
self.index_2 = 0
self.index_3 = 0
def get_index(self, stack):
if stack == 1:
return self.index_1
elif stack == 2:
return self.index_1 + self.index_2
elif... | [
"nplutt@gmail.com"
] | nplutt@gmail.com |
7e0f926a9bf981d7d265549da68801d92684d17e | 555cef093fc32ecd9212bcc24c277fa7ad8a5a06 | /code/heatmap.py | cc4cc51fe5952984b6952dacaf5c426bcda73acb | [] | no_license | rushilgoyal/San_francisco_Crime_Classification | e00568c2c2bd98b8a923c1f63a7a0188d0c466bd | c4e5ccf0a062b99c2fcab39eb78501154fad9408 | refs/heads/master | 2021-07-12T04:27:23.343351 | 2017-10-16T21:15:13 | 2017-10-16T21:15:13 | 107,182,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 961 | py |
# coding: utf-8
# In[1]:
import numpy as np
import pandas as pd
from pandas import Series,DataFrame
import matplotlib.pyplot as plt
get_ipython().magic(u'matplotlib inline')
class heatmap():
def __init__(self):
self.sf_df = pd.read_csv('/Users/rushilgoyal/Desktop/train2.csv') #load the dataset
def crime_h... | [
"noreply@github.com"
] | noreply@github.com |
749ac50eb84d8577418fcad493dda78c942f223f | d89db6f6278174c0f1062e964541681218a85ac9 | /src/openbiolink/graph_creation/file_processor/edge/edgeStitchBindInhProcessor.py | d117636c2e282e96bc59bbda54c2ad5b5a11e017 | [
"MIT",
"CC-BY-NC-4.0",
"CC-BY-SA-3.0",
"LicenseRef-scancode-public-domain",
"CC-BY-4.0"
] | permissive | cthoyt/OpenBioLink | b6e8e2e88b4491385fe53a1b00a8111b0a5d0930 | c5f85b99f9104f70493136c343e4554261e990a5 | refs/heads/master | 2020-12-27T16:36:45.033091 | 2020-02-03T13:37:22 | 2020-02-03T13:38:08 | 237,973,611 | 0 | 0 | MIT | 2020-02-03T13:38:33 | 2020-02-03T13:38:32 | null | UTF-8 | Python | false | false | 1,161 | py | from openbiolink.graph_creation.file_processor.fileProcessor import FileProcessor
from openbiolink.graph_creation.metadata_infile import InMetaEdgeStitchBindInh
from openbiolink.graph_creation.types.infileType import InfileType
from openbiolink.graph_creation.types.readerType import ReaderType
class EdgeStitchBindInh... | [
"anna@breit-mail.at"
] | anna@breit-mail.at |
6b7af3bfcd7fc3d5e1f5edf634c7ebc6a18c736e | 0a84b080f6f6c03e27f61b1a3481c007e444cec8 | /Interpolation/testcase7.py | f50cd17e2a8a3d790966b8ce36236b2af52948de | [] | no_license | andersas/numeric | ee00192279bba215089c6cc40e6cb3d5962e62b8 | 924282fed257d9af678a406bf7d3349c833b1dfc | refs/heads/master | 2021-01-21T22:58:31.045460 | 2012-05-15T11:15:55 | 2012-05-15T11:15:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | #!/usr/bin/env python
from math import *;
from random import *;
def f(x):
return 0.75 + gauss(0,0.02);
for i in range(-10,11):
print(i, "\t", f(1.0 * i));
| [
"andersas@gmail.com"
] | andersas@gmail.com |
bb6cc272291525c1e3332815bf161285720d7557 | 4bd7895dc8277a061a3fdbf3b91e3b0842baa08d | /DigiAnalyzer/python/__init__.py | 973ed98b0de22ad4f432105ca59e564819f211d0 | [] | no_license | ramankhurana/HGCAnalyzer | 69dab165754876e8ea26bc7a038b98d5d502f47b | a2a314048d41295c7c57203f9988a67d2e76e1c6 | refs/heads/master | 2021-01-04T14:18:58.886153 | 2014-09-26T09:27:05 | 2014-09-26T09:27:05 | 20,794,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | #Automatically created by SCRAM
import os
__path__.append(os.path.dirname(os.path.abspath(__file__).rsplit('/HGCAnalyzer/DigiAnalyzer/',1)[0])+'/cfipython/slc6_amd64_gcc472/HGCAnalyzer/DigiAnalyzer')
| [
"ramankhurana1986@gmail.com"
] | ramankhurana1986@gmail.com |
499fe5961bfb74e9857dfca8a118a7d17511860f | 37e7988db5a84dc2e7bb9bdb3148fd2152a0f996 | /tmowx/admin.py | bfabcec8f84edf4912ca4099cfc5465680a19711 | [] | no_license | dunjian/django-weixin | e6381757b8c07546a0b8cfbf35e12621c74897b0 | d4f1ea2254458cd97826ba118f5ad4727e0f5107 | refs/heads/master | 2020-12-11T09:09:03.333900 | 2015-07-23T16:02:23 | 2015-07-23T16:02:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | #!coding=utf-8
from django.contrib import admin
from api.menu import send_menu
from models import *
from mptt.admin import MPTTModelAdmin
class WMenuAdmin(MPTTModelAdmin):
list_display = ('name', 'menu_type', 'value')
list_filter = ('menu_type',)
actions = ['update_menu']
def update_menu(self, reques... | [
"zhongkunchen@126.com"
] | zhongkunchen@126.com |
a8e6954e32e6f7f81feebfb0d061c9902352e68d | 491da668958aa4f36e2dd85833cca194b5eb8598 | /venv/bin/pip3.8 | 4c954639d0176b3927089add5165edbd39c55f34 | [] | no_license | KisLupin/ML_Math | 262d802587cdc0066a5dbe279e5b7cc954d15516 | 5e81182adb81e46858c7cd2e8310896f6a3ae620 | refs/heads/master | 2022-04-24T20:46:04.381713 | 2020-04-27T16:01:58 | 2020-04-27T16:01:58 | 259,078,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | 8 | #!/Users/kislupin/PycharmProjects/svcc/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"linh.nt.iot@gmail.com"
] | linh.nt.iot@gmail.com |
d46781c1b05729cf472e800330d9a3e0ec09696b | b65764888ebca49c78daf845aab00d08e9a6aa9d | /tractseg/libs/preprocessing.py | 3781f9203c986e63c5f18716cc222f62efb8596e | [
"Apache-2.0"
] | permissive | chamberm/TractSeg | 7ad56b885f60eb87cca07ec6f29a2417d6300c43 | 4c7d55bc8ff698c2f1af0b0ccca96bb0ba6f57d2 | refs/heads/master | 2022-12-26T08:24:19.196497 | 2020-10-12T09:23:12 | 2020-10-12T09:23:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,717 | py |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
from os.path import join
from pkg_resources import resource_filename
from tqdm import tqdm
from tractseg.libs import img_utils
def reorient_to_std_space(input_file, bvals, bvecs, brain_mask, outpu... | [
"j.wasserthal@dkfz.de"
] | j.wasserthal@dkfz.de |
38178f626de03f0d8f5098858870ec70a4883763 | 76baa6c56311eb214aae3581a0b50a8727e4770b | /env/Scripts/pilprint.py | 8a2be037126ed2d426790edb2b59d47c54962d6a | [] | no_license | GitDeus/django-online-market | 3d02c9f95c17a89d09f95751d034ce2435886554 | e3e0be842224c6e586e00c6a3b5dc8fe07e1ca71 | refs/heads/master | 2021-01-12T04:06:31.264202 | 2016-12-28T04:42:56 | 2016-12-28T04:42:56 | 77,502,861 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,658 | py | #!c:\users\deus\desktop\django-online-shop-master\myshop\env\scripts\python.exe
#
# The Python Imaging Library.
# $Id$
#
# print image files to postscript printer
#
# History:
# 0.1 1996-04-20 fl Created
# 0.2 1996-10-04 fl Use draft mode when converting.
# 0.3 2003-05-06 fl Fixed a typo or two.
#
from __f... | [
"sanyochik3@mail.ru"
] | sanyochik3@mail.ru |
7e5b4662dfeffa20c7a76130c4a799862891251a | 59166105545cdd87626d15bf42e60a9ee1ef2413 | /test/test_surfer_api.py | 83c9232867753d43d3aac45774a3c8f63d646ba2 | [] | no_license | mosoriob/dbpedia_api_client | 8c594fc115ce75235315e890d55fbf6bd555fa85 | 8d6f0d04a3a30a82ce0e9277e4c9ce00ecd0c0cc | refs/heads/master | 2022-11-20T01:42:33.481024 | 2020-05-12T23:22:54 | 2020-05-12T23:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | # coding: utf-8
"""
DBpedia
This is the API of the DBpedia Ontology # noqa: E501
The version of the OpenAPI document: v0.0.1
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import dbpedia
from dbpedia.api.surfer_api import SurferApi # noqa... | [
"maxiosorio@gmail.com"
] | maxiosorio@gmail.com |
48459734f57ca2aff30cb9fb72e12f0f1e30aaac | dfd39dcb9eea14ca132753f32001c40375d737ba | /NEMS/tests/produtil/NCEPLIBS-pyprodutil/produtil/testing/__init__.py | 59c6074a83b55cd98a3e888e79e49ef734b60022 | [
"CC0-1.0",
"LGPL-3.0-only"
] | permissive | pvelissariou1/ADC-WW3-NWM-SCHISM-NEMS | 8e1a003b8df8d5676398b4fa5d6d809b850d7dbf | 707ddcd84417211e3a7c92aa15d8cd8ddfa080ab | refs/heads/main | 2023-05-10T19:10:47.979097 | 2021-06-02T19:04:07 | 2021-06-02T19:04:07 | 372,129,845 | 0 | 1 | CC0-1.0 | 2021-06-02T19:04:08 | 2021-05-30T05:19:35 | Fortran | UTF-8 | Python | false | false | 555 | py | ##@namespace produtil.testing
# Test suite automation utilities.
#
# The produtil.testing package contains a system that automates
# testing of a suite of programs. This is intended to be used for
# regression testing, not large-scale retrospective science tests.
#
# The produtil.testing suite has its own test descrip... | [
"panagiotis.velissariou@noaa.gov"
] | panagiotis.velissariou@noaa.gov |
41e740e93235349f30ec5b8dc68543b2c9b87ef0 | 6b36d717a64c93e780664e83228b89e0929812c4 | /chapter5/section3/imagine/main.py | 04e3da2799a2e39713e0084a2d6333d75120c806 | [
"Apache-2.0"
] | permissive | KazuoASANO/ird_make_gui_in_python_with_qt | ae77e396deb60a6aaa3c7b3168de36c8543b13f3 | e98d5019392f3286c1efc090a5fcba6b2bfcd8e3 | refs/heads/master | 2020-04-11T12:44:39.943468 | 2018-12-14T14:37:52 | 2018-12-14T14:37:52 | 161,790,454 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | py | import os # 環境変数を設定する為に、 os モジュールをインポート
import sys
from PySide2.QtWidgets import QApplication
from PySide2.QtQml import QQmlApplicationEngine
from PySide2.QtCore import QUrl
def main():
""" 環境変数に Qt Quick Controls 2 のコンフィグファイル設定 を追加する
環境変数 QT_QUICK_CONTROLS_CONF に対して、本 Code と同じ
ディレクトリにある qtquickcon... | [
"kazuo.asano@gmail.com"
] | kazuo.asano@gmail.com |
db4e1fbdf4f4daa269c76ee2db02b5f22ca44af0 | 2e56d8c64533ae6a6f58785ab3cbe0f790a5a081 | /processing/data_reader.py | 790b71e7dbdf626e1d8110a114eb485c1cfcaf46 | [] | no_license | ryanho9453/HAND | d655e0425ca0cab312772ed456c75d03f8d5e369 | 0684cb62d1f061287dbb5d634c55aa8668ddf82d | refs/heads/master | 2020-03-24T10:16:03.010102 | 2018-07-29T06:05:48 | 2018-07-29T06:05:48 | 142,651,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,083 | py | import cv2 as cv
import numpy as np
import random
import os
import re
"""
data_size (2062, 64, 64)
"""
class DataReader:
def __init__(self, config, mode=None, process=None):
self.config = config
self.index = 0
self.exclude_folder = ['.DS_Store']
self.finish_all_data = False
... | [
"ryanho9453@gmail.com"
] | ryanho9453@gmail.com |
cf38e723f308e6cb69aa55eabc523f2fe10c4339 | bdf94f37cf0ca8a7b14f495a16899922b86013a4 | /daily coding/remove-nth-last-element-from-list.py | 1eaa19a9067a2c521a8a88cf5d229df328f80814 | [
"MIT"
] | permissive | sirken/coding-practice | d1f00f1f48378c853c3644c92efc1c888acc7400 | b1617f0d48bf0a544eaea12a4c8d679a5a0fd870 | refs/heads/master | 2023-07-09T01:00:54.764631 | 2023-07-01T05:51:59 | 2023-07-01T05:51:59 | 254,274,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | from Test import Test
'''
Given a singly linked list and an integer k, remove the kth last element from the list. k is guaranteed to be smaller than the length of the list.
The list is very long, so making more than one pass is prohibitively expensive.
Do this in constant space and in one pass.
'''
def del_from_lis... | [
"sirken@users.noreply.github.com"
] | sirken@users.noreply.github.com |
7f5fbd9996c1007612b2685bd47102a929aec41d | 301e55ee3990b2daf135197eac81e1cc244e6cd3 | /python/last-stone-weight.py | 030bca282591c92a277769382f86d0902d9b3236 | [
"MIT"
] | permissive | alirezaghey/leetcode-solutions | 74b1b645c324ea7c1511d9ce3a97c8d622554417 | c32b786e52dd25ff6e4f84242cec5ff1c5a869df | refs/heads/master | 2022-08-22T16:28:05.459163 | 2022-08-18T12:02:51 | 2022-08-18T12:02:51 | 203,028,081 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | import heapq
from typing import List
class Solution:
# Time complexity: O(n * log n)
# Space complexity: O(1)
def lastStoneWeight(self, stones: List[int]) -> int:
for i in range(len(stones)):
stones[i] = -stones[i]
heapq.heapify(stones)
while len(stones) > 1:
... | [
"alireza.q1357@gmail.com"
] | alireza.q1357@gmail.com |
2568a2ae2fe8a84f888e363d6229b616c41b738b | d6ff68dbcb85488fac60f57d90c97f50ce2cb36b | /tests/test_search_api.py | 4a2d264e9115d003074f6f501ac5c7c6049fa675 | [
"MIT"
] | permissive | cksachdev/redis-sitesearch | 0b6e0ecd0dbf44ac8997eb828a28cee0046a1fdf | 376cd19b59a68817c7c00ea181c2ca3d21ca596e | refs/heads/master | 2023-03-25T12:56:07.755279 | 2021-03-23T22:48:40 | 2021-03-23T22:48:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | import time
def test_query_python(docs, client):
result = client.simulate_get('/search?q=*')
assert result.status_code == 200
assert result.json['total'] > 0
titles = [doc['title'] for doc in result.json['results']]
assert 'Database Persistence with Redis Enterprise Software' in titles
def test... | [
"andrew.brookins@redislabs.com"
] | andrew.brookins@redislabs.com |
cf236ac38a90af930689696647a23828d4053ba1 | 05e9ee0e4a20a6a75fdf28c40a85b2df08160bd9 | /src/datasets/build_datasetV1.py | dc1ac08c3be13f97eda37d5998631ba1a7b76b9c | [] | no_license | mpearmain/merc | 1fd0e53a0c37890106cff015fdeadc8c1c27a6ac | 54b90d738484559de2462f5cef07cfe16c53d1e9 | refs/heads/master | 2021-01-23T04:13:54.046757 | 2017-06-08T20:48:13 | 2017-06-08T20:48:13 | 92,920,866 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,055 | py | import fastparquet
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
from src.features.build_rowwise_binary_features import binary_counts, binary_hashmap
# from src.features.build_ordinal_features import
pd.options.mode.chained_assignment = None
pd.options.display.max_columns = 999
"""
A script ... | [
"michael.pearmain@gmail.com"
] | michael.pearmain@gmail.com |
53c74fbda0f5822bb095ce083dfe2ca4b48cf755 | 6c375d17a1a0be1c8fda5305548694b5d0d4f1b6 | /deep_learning_computer_vision_python/Centroid/detect_faces_video.py | 9519edf0f77676c7add082d7d815f66c886a64da | [] | no_license | LinearPi/pycode | d566e7c2450e2ace2bb14ed09b4f310078b0c42d | b97582ba89b4f3d981eda35ea6db660db3ceaa05 | refs/heads/master | 2022-12-02T14:46:20.935006 | 2019-09-12T01:58:45 | 2019-09-12T01:58:45 | 171,231,401 | 1 | 0 | null | 2022-11-22T02:57:30 | 2019-02-18T06:58:27 | Jupyter Notebook | UTF-8 | Python | false | false | 2,505 | py | # import the necessary packages
from imutils.video import VideoStream
import numpy as np
import argparse
import imutils
import time
import cv2
# construct the argument parse and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-p", "--prototxt", required=True,
help="path to Caffe 'deploy' prototxt... | [
"807745654@qq.com"
] | 807745654@qq.com |
9834494975b1d64b80c28e44a79b7587fe1c1701 | 22930121054cd6607a0888af4c9bc52a025fd6b0 | /models/item.py | d57c866de7d8c1721ad191d68ce05d01b3fc17e8 | [] | no_license | suruisunstat/REST-API | 6e0ae0f13bc154211fc6f84fc4a3111f9c5c53cf | 69fc91528b7dbc9bb8718f3be8a14f6dd22d7ed4 | refs/heads/master | 2020-04-27T02:23:55.892531 | 2019-03-06T18:23:17 | 2019-03-06T18:23:17 | 173,992,568 | 0 | 0 | null | 2019-03-06T09:46:45 | 2019-03-05T17:40:05 | Python | UTF-8 | Python | false | false | 764 | py | from db import db
class ItemModel(db.Model):
__tablename__ = "items"
id = db.Column(db.Integer,primary_key=True)
name = db.Column(db.String(80))
price = db.Column(db.Float(precision=2))
store_id = db.Column(db.Integer,db.ForeignKey('stores.id'))
store = db.relationship('StoreModel')
def __init__(self,name,p... | [
"suruisun@Suruis-MacBook-Pro-2.local"
] | suruisun@Suruis-MacBook-Pro-2.local |
3ecbe576c1f90fba607b933299f498c2d5ab6aa5 | ef9f11a89a1629e15fd8c1afb55e6bee2dcaa33e | /Rest/Code/src/models/__init__.py | 562361d548c63b979eb5e54e78657c89ef06c923 | [] | no_license | learntogithub/Database | 7d42114bca40dde25ff1ff960499bb330fe6215e | 64c1870f2d6908980af3c833e2d858f6a5694bf8 | refs/heads/master | 2020-04-25T00:37:52.896684 | 2019-02-24T20:09:04 | 2019-02-24T20:09:04 | 172,384,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
# initializion db
db = SQLAlchemy()
bcrypt = Bcrypt()
| [
"centos@localhost.localdomain"
] | centos@localhost.localdomain |
cd136c6271b102f4cae77ae4226e47ba77b8eefd | c8930c7310d6a3a11cfac86501866b7d96891dfb | /gui/overlayplotter.py | e73f5612a0056e405ab97c5d8e94af18cf6282e3 | [] | no_license | JonasNorling/nowplot | 88f3703bdf0d17e1f89c91e167bc38674dcabfdd | 85a37bf8b3cb4942c29dc96abb16eed125575b90 | refs/heads/master | 2021-03-12T20:28:01.486592 | 2013-09-03T19:09:01 | 2013-09-03T19:09:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,173 | py | import cairo
class OverlayPlotter(object):
def __init__(self, surface, size, xAxis, yAxis):
self.surface = surface
self.size = size
self.xAxis = xAxis
self.yAxis = yAxis
self.ctx = cairo.Context(self.surface)
# Flip coordinate syste... | [
"jonas.norling@gmail.com"
] | jonas.norling@gmail.com |
04ec99c8d693cb82d323837fe0c3ab785223569f | ed671ae2bbcab3f9a60194b15042fb6fdd9fce73 | /week5/week5-bestR.py | 813b731087d8b23aeaa9744c922bb332bee6cc1c | [] | no_license | yved/python_lesson1 | 23305366685c8de51b68f1fd8d5077f47aeeea00 | 079b552376bb7560d02c99dce25a87236fa73782 | refs/heads/master | 2020-04-29T11:28:34.347581 | 2019-03-07T08:12:19 | 2019-03-07T08:12:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | #過去銷售
salesStr = "14,23,26,17,17,12,24,19,10,18,22,31,19,16,22,28,20,27,20,32"
sales = salesStr.split(',')
for i in range(len(sales)):
sales[i] = int(sales[i]) #把銷售數據轉成整數
#原本有的資訊
stgCost = 2 #缺貨成本: 指的是當有缺貨時,要給客人的折扣
invCost = 1000*0.073/365 #1000為買一個存貨的成本 # 把1000快拿去銀行存會有7.3%的年利率,而這邊算的則是一天的存貨成本
Q = 23 #每一次跟廠商叫貨的進貨量
I =... | [
"n0975116268@gmail.com"
] | n0975116268@gmail.com |
06271ae173105379204ab264845d67f31664140d | fa4ff377f5ec0aa12b6db7e1bb2c24f1cd90542f | /qa-pairs-relation-classification/SANN/text_sann.py | 654ef723121f6bcc46d8e5cdfd7b4cb13935589c | [
"MIT"
] | permissive | NiceMartin/pynlp | 5e0d76103bf73da93e8d502d647e70a60257864d | 21b6d5177da04c90a626131bc83a3b5b767f50bd | refs/heads/master | 2020-04-24T10:08:51.443230 | 2019-02-17T12:27:47 | 2019-02-17T12:27:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,289 | py | # -*- coding:utf-8 -*-
__author__ = 'sliderSun'
import numpy as np
import tensorflow as tf
from tensorflow import sigmoid
from tensorflow import tanh
from tensorflow.contrib import rnn
from tensorflow.contrib.layers import batch_norm
from tensorflow.python.ops import array_ops
class BatchNormLSTMCell(rnn.RNNCell):
... | [
"291952004@qq.com"
] | 291952004@qq.com |
64404eac3284461a9319d05c77721c504a57cf3b | 7929295353a68037f0166b1ce90b73ec424f846a | /userbot/plugins/snake.py | 95297089760eb8000f45f95f0ac823ba3b639fae | [
"MIT"
] | permissive | Marshmellow098/AK-CRAZY-TECH-BOT | 4030c5b80fe0ced93e98a1d502387975826e2d09 | 66b6f57810447b31bb81d675bd1fd5a58740ceb6 | refs/heads/main | 2023-02-14T22:29:23.017523 | 2021-01-03T09:42:57 | 2021-01-03T09:42:57 | 326,139,350 | 0 | 0 | MIT | 2021-01-02T08:21:08 | 2021-01-02T08:21:07 | null | UTF-8 | Python | false | false | 5,220 | py |
from telethon import events
import asyncio
from userbot.utils import admin_cmd
@borg.on(admin_cmd(pattern=r"snk"))
async def _(event):
if event.fwd_from:
return
animation_interval = 0.3
animation_ttl = range(0, 27)
await event.edit("Snake")
animation_chars = [
"◼️◼️... | [
"noreply@github.com"
] | noreply@github.com |
1ad94d636b1c70bbc8bbbc5db86b98be3519b966 | 307e52d79c9068a2648ae82bbe11cd58733bba37 | /calib/CalcBase.py | adc7f797998490a249948cd460d275154adc74bd | [] | no_license | greatofdream/Recon1t | 0aa775c43dcfa5b3da7b5894e2567fbe8e7b2991 | 80e58ba3c2c23f1efa962d02fcb2205a95aa716f | refs/heads/master | 2022-11-09T14:12:55.747488 | 2020-06-09T02:43:24 | 2020-06-09T02:43:24 | 263,953,536 | 0 | 0 | null | 2020-05-14T15:31:27 | 2020-05-14T15:31:26 | null | UTF-8 | Python | false | false | 4,129 | py | import numpy as np
import h5py
def ReadPMT():
f = open(r"../PMT_1t.txt")
line = f.readline()
data_list = []
while line:
num = list(map(float,line.split()))
data_list.append(num)
line = f.readline()
f.close()
PMT_pos = np.array(data_list)
return PMT_pos
def readfile... | [
"839566105@qq.com"
] | 839566105@qq.com |
e6b1b161ddc04c71e8fe91ef84a0980df2bfd177 | caa460b627869c2f1e7bb3a024741d671e9986ff | /redlib/web/htmlparser.py | d5c02208ba2c08e2ced896f9013de8f57fb70bc0 | [
"MIT"
] | permissive | amol9/redlib | 8f920c5055b6bd2d167eb40201bd574f839bae7b | 25d2085925c41473424583bbfeb7ca6033937e62 | refs/heads/master | 2022-12-11T22:32:19.823857 | 2022-12-01T15:41:40 | 2022-12-01T15:41:40 | 32,393,559 | 1 | 1 | null | 2017-10-19T14:47:09 | 2015-03-17T13:02:37 | Python | UTF-8 | Python | false | false | 2,090 | py | import re
import sys
from xml.etree.ElementTree import XMLParser, Element, SubElement, ElementTree
from ..system.common import *
from six.moves.html_parser import HTMLParser
from .htmlparser_debugger import HtmlParserDebugger
__all__ = ['HtmlParser', 'HtmlStripper']
class HtmlParser(HTMLParser):
def __init__(sel... | [
"babaiscool@gmail.com"
] | babaiscool@gmail.com |
6c66e32cf836eef9c9e9d11ed5ba6c404bc97a0e | 1b319753b42d1c61c29eddd9fcf1be15a09efc34 | /tango_with_django_project/rango/migrations/0001_initial.py | 5665331801c0338b7fe6672e67c8cb3f9ba6a861 | [] | no_license | JubyThomas/Disneyfanclubs | 1eb2466933a1849271459aec8ec8494bc351d359 | e380f23e7649cad05ef425013e27b2fdc20e5df3 | refs/heads/main | 2023-07-02T21:32:30.946433 | 2021-08-06T07:56:08 | 2021-08-06T07:56:08 | 393,302,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,955 | py | # Generated by Django 2.1.5 on 2021-07-30 23:27
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... | [
"2598902y@student.gla.ac.uk"
] | 2598902y@student.gla.ac.uk |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.