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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
50e30b493faf1d7f25e8435890ae0d3625daa2f5 | d0dcc77793433e31adda34b0a9989da694b61f19 | /caffe_visualization_tools/visualization_tools.py | b9d1fea0d025e807465ef4f5541ed1d1c48d94af | [] | no_license | MagicSen/python_tools | 0bac702a31ad5b8b742fe809e63f027891783d4c | 296b375cb3807f8436ce6b7c8a661daeecd975c1 | refs/heads/master | 2021-09-02T15:57:59.758341 | 2018-01-03T14:10:17 | 2018-01-03T14:10:17 | 116,134,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,681 | py | ##
# @file visualization_tools.py
# @brief This tools is for caffe model visualization.
# @author Yang Sen, magicys@qq.com
# @version 1.0.0
# @date 2017-01-04
# Copyright(C)
# For free
# All right reserved
#
import numpy as np
import matplotlib.pyplot as plt
import sys
import caffe
import os
import pylab
# set the p... | [
"syang@usens.com"
] | syang@usens.com |
1e589a1a4cc05b5d9810004cab44e34774d06d70 | f1bdc509d64633fde353b58bd283b9c06da6a71c | /plot.py | ae52d8c562bb832b7b9b2d11a7977af1bca1d816 | [] | no_license | Fersol/tcp-congestion-ns3 | 503b1829808814e224a150bfd9f890e1d9c5b203 | b181311fb24ba53e9acf582b3d6f9467eb131311 | refs/heads/master | 2022-04-16T19:54:33.586905 | 2020-04-15T19:47:02 | 2020-04-15T19:47:02 | 255,039,380 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | import pandas as pd
import matplotlib.pyplot as plt
import argparse
def parse_args():
parser = argparse.ArgumentParser(add_help=True, description="Files to plot")
parser.add_argument("-files", "--files", nargs="+", required=False,
default=('cwndVegas.tr', 'cwndNewReno.tr', 'cwndBic.tr')... | [
"alex-2011.s@yandex.ru"
] | alex-2011.s@yandex.ru |
30d736d8402f7e58e7668fb6e6c5636bb1ed7d5a | c2fe2b45ca6c1372596834af4686e84f66ce6f0b | /apps/files/forms.py | 796d381fd3e7f45cbfe5ccb264168e64033df360 | [] | no_license | seun-otosho/DjModelProject | 9cecf18fac66ad729f0bde88cccb18d224928b06 | 75aa0d1dc465556f3afa31abce6e6f51f04e5671 | refs/heads/master | 2023-05-13T04:00:24.787683 | 2021-05-31T02:17:43 | 2021-05-31T02:17:43 | 369,716,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | from django import forms
from . import models
class submissionForm(forms.ModelForm):
class Meta:
model = models.submission
fields = [
"file_name",
"file",
"object_id",
"content_type",
]
| [
"seun@kolacredit.com"
] | seun@kolacredit.com |
d1e9592a5372de64fff11d1be0fd0d8c24210af6 | 39add6f458ca28dcc5cf4dbe3afde986cedd8648 | /VAE.py | 1a1275a0108f1d04db5cfcacc6c45ff5aaa7c30f | [] | no_license | ArifulIslamPreence/Radio-link-failure-prediction-drafted-obsolete | 1e219919280d4160678c68b6dddd8220e81b8a70 | 5c85f76a8731530f8a7b06a774c87cbd8bb7c049 | refs/heads/master | 2023-06-25T17:52:25.359385 | 2021-07-12T17:38:43 | 2021-07-12T17:38:43 | 385,331,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,016 | py | '''Implementation of Variational Autoencoder Network for dataset reconstructing into normalized form.
The whole combined dataset is fed into model by spliting batches'''
import csv
import numpy as np
import pandas as pd
from sklearn import preprocessing
import seaborn as sns
from sklearn.model_selection import train_... | [
"noreply@github.com"
] | ArifulIslamPreence.noreply@github.com |
b083604a03c1f5064d2aff52934739fa3325be94 | fa639f7fd14c4b860c06eb0ae5b66217bb83a585 | /lambda/main.py | 3acd167a5537af6bb63c5b27aabbd3810e0474c3 | [] | no_license | Lcmkey/aws-cdk-serverless-deep-learning-inference | c007331b25237eefbadb065571e18e6bc572c042 | 2b56c8c527669d93ef76b36347f742de138b7b58 | refs/heads/master | 2023-02-26T09:06:53.946495 | 2021-02-01T14:01:57 | 2021-02-01T14:01:57 | 322,429,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
import sys
import os
# Setting library paths.
efs_path = "/mnt/python"
python_pkg_path = os.path.join(efs_path, "tensorflow/lib/python3.8/site-packages")
sys.path.append(python_pkg_path)
import json
import string
im... | [
"lcmkey@gmail.com"
] | lcmkey@gmail.com |
46951ff9e914c649aac2882ba5d1e640deded76e | 866182bc8950cf851c412777871a4157f7bf2fff | /smsp/schema_utils.py | 7f3c16ace73070a087c653aa6d254ad8d6263ee0 | [
"MIT"
] | permissive | elementechemlyn/pysmsp | f8170e51e28feaeb24b252cd6d442e13ce8199b4 | a6ddea5068bfc67dbeb94d73a9290f12ec726d46 | refs/heads/master | 2021-09-02T10:18:56.306691 | 2018-01-01T20:45:29 | 2018-01-01T20:45:29 | 115,945,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,141 | py | import sys
import re as re_
import base64
import datetime as datetime_
import warnings as warnings_
try:
from lxml import etree as etree_
except ImportError:
from xml.etree import ElementTree as etree_
Validate_simpletypes_ = True
if sys.version_info.major == 2:
BaseStrType_ = basestring
else:
BaseStr... | [
"emlyn@blue"
] | emlyn@blue |
5adb1a7c3497fb7477cdb13de87de36dbe2cfa4e | 531bb144a2027f0db257bf2e7166e9231bb475ec | /node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/config.gypi | 5ea2a9787107a20e60bdc2bbc75271e0fb9dd77d | [
"Apache-2.0",
"MIT"
] | permissive | Rmoore424/reciprosity | bd4e5bb806ce1f7000baccf92695b6cd6e02fa53 | b264ab4a0c310066338cec66aa4661e2be6a8f9f | refs/heads/master | 2021-03-12T22:12:15.738135 | 2015-02-07T21:39:30 | 2015-02-07T21:39:30 | 30,359,899 | 0 | 0 | null | 2015-02-07T21:39:30 | 2015-02-05T14:39:00 | JavaScript | UTF-8 | Python | false | false | 3,270 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 1,
"host_arch": "x64",
"node_install_npm": "false",
"node_pref... | [
"Rmoore424@gmail.com"
] | Rmoore424@gmail.com |
2bea257ba29d7d3568169cd2499598f98eebd812 | 8255dcf7689c20283b5e75a452139e553b34ddf3 | /app/views/dashboard/items/index.py | b38bac919cd8357f3585cc1c835d0bce2c8762e2 | [
"MIT"
] | permissive | Wern-rm/raton.by | 09871eb4da628ff7b0d0b4415a150cf6c12c3e5a | 68f862f2bc0551bf2327e9d6352c0cde93f45301 | refs/heads/main | 2023-05-06T02:26:58.980779 | 2021-05-25T14:09:47 | 2021-05-25T14:09:47 | 317,119,285 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,654 | py | from flask import render_template, redirect, url_for, request
from flask_login import login_required
from flask_paginate import get_page_args
from app import db, logger
from app.controllers.dashboard_controller import dashboard_controller
from app.controllers.pagination import get_pagination
from app.forms.dashboard_i... | [
"devwern@gmail.com"
] | devwern@gmail.com |
29e38aed9818dbd98fd36c0f4dcf2c39bf1a9e2d | 4261f5ed5e3401ae9bc8ad09149d6d3529afbefb | /models.py | 5b53597c87c0f81ed624d13c39cdcf1330c0589c | [] | no_license | lrivallain/survey | 165c928d4f830fbda161eee40644f8385d2b0c23 | 798a3732cda854b22ae73e3ecf85c736ea2bede0 | refs/heads/master | 2021-01-10T07:38:04.692743 | 2019-05-19T07:14:47 | 2019-05-19T07:14:47 | 36,890,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,619 | py | from django.db import models
from django.contrib.auth.models import User
import random
import string
from django.utils import timezone
from datetime import datetime, timedelta
# Tocken settings
TOKEN_LENGTH=20
TOKEN_REF_SETS=string.ascii_letters + string.digits
# Generate a random token with TOKEN_LENGTH characters fr... | [
"ludovic.rivallain@gmail.com"
] | ludovic.rivallain@gmail.com |
1099e40b6a420049aa66c9efe1dffc09c240475a | a960f0f01beab623e4ce1c21382284ff409ad2cd | /Python/venv/Lib/site-packages/pmdarima/model_selection/_validation.py | cd715ad44cbb9b94ae10578b535aa5bdb5b804d5 | [] | no_license | eoeroglu/grad-proj | e343c0266de1768417aa8724a6440cb088f9d014 | 3cef3383e5dd0f9937c18512fe8c6dc3b00e7729 | refs/heads/master | 2022-11-19T11:06:42.429979 | 2020-07-20T06:25:24 | 2020-07-20T06:25:24 | 257,416,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,442 | py | # -*- coding: utf-8 -*-
"""
Cross-validation for ARIMA and pipeline estimators.
See: https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/model_selection/_validation.py
""" # noqa: E501
import numpy as np
import numbers
import warnings
import time
from traceback import format_exception_only
from sklearn ... | [
"eoeroglu@gmail.com"
] | eoeroglu@gmail.com |
73063d99ce9277f02182be41df4226b158411a0a | 147e37057d507c499d9474204d8b9ec01aa048ba | /backend/src/blog/models.py | 61a2677cc07905135442778699d2d7e8eb4d0d6d | [
"MIT"
] | permissive | andebor/overflow | de4cc231a95cfabba48aeda7a0de20c5c0d6ccb5 | b4860bade3587ae233422a973c6ffb8fae6031b7 | refs/heads/master | 2020-05-19T20:30:15.110110 | 2019-05-05T21:25:12 | 2019-05-05T21:25:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | from django.contrib.auth import get_user_model
from django.db import models
from django.utils.text import slugify
class Tag(models.Model):
name = models.CharField(max_length=256)
def __str__(self):
return '{}'.format(self.name)
class Post(models.Model):
title = models.CharField(max_length=256)
... | [
"myth@overflow.no"
] | myth@overflow.no |
60188d8b70ac88226e0b5c0c47a462c35d280a1f | fe281868b9321c3b8e186f5349bd022e2a082e07 | /实验2_垃圾邮件过滤/贝叶斯多项式算法/main.py | 9869ce07a319ff0c6b8b06560ecc49d34868459d | [] | no_license | LastCigarete/infosecurity | c51d381276a05d3e7f82769cd286e9958ee2fb15 | 780c088d7c139bfe1bdf09445ff773ef53ac8156 | refs/heads/master | 2023-03-15T18:15:04.080890 | 2020-05-06T03:15:46 | 2020-05-06T03:15:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,277 | py | #coding=utf-8
import os
from collections import Counter
import numpy as np
import random
import re
import matplotlib.pyplot as plt
plt.rcParams['font.sans-serif']=['SimHei']
def getFileDiv():
hamFile = './/email//ham'
spamFile = './/email//spam'
hamEmails = [os.path.join(hamFile,f) for f in o... | [
"1029076560@qq.com"
] | 1029076560@qq.com |
09e278b839107b839c504a7ee39854da665cd9f9 | 394072f7fd3e2a226aeed78bf0a4f587f4c4e383 | /lambdaExpr/pick_lambda.py | eb8c2306a372907e577c942ccd5c5b4e7827dcb3 | [] | no_license | LeonCrashCode/DRSparsing | ec5cca079a2c73eb512444e1ac86215722e6503a | c7e92beb8878ff2386bc6789e6c17f0d35bf1277 | refs/heads/master | 2020-03-16T09:52:11.217219 | 2019-01-17T14:20:16 | 2019-01-17T14:20:16 | 124,549,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | import sys
import types
import json
def ascii_encode_dict(data):
ascii_encode = lambda x: x.encode('ascii') if isinstance(x, unicode) else x
return dict(map(ascii_encode, pair) for pair in data.items())
def tostring(expre):
assert type(expre) == types.DictType
re = []
re.append(expre["type"]+"(")
if len(... | [
"jmliunlp@gmail.com"
] | jmliunlp@gmail.com |
5022b25cb069afe810d84ff795b402a89157ac94 | 20eb79521bfd5103dd088ef9ddd7b0e654b3e3f9 | /Binary_search.py | 4f3e93a7ce7e39189c0e13633c67fa90a8e0103d | [
"Apache-2.0"
] | permissive | Sourav4yogi/Python | dfec0403b22f3d3df95397926b560889fad63d6c | 53284da8982a76638bff230f3230c3adee5195d8 | refs/heads/master | 2023-05-26T11:54:49.872038 | 2023-05-20T14:47:12 | 2023-05-20T14:47:12 | 263,278,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | def binary_search(array,item):
high=len(array)-1
low=0
while high>=low:
mid=int((high+low)/2)
guess=array[mid]
if guess==item:
return mid
if guess>item:
high=mid-1
else:
low=mid+1... | [
"noreply@github.com"
] | Sourav4yogi.noreply@github.com |
cad9054648026ec7176604a02079681b1fb1d29b | 0e1bfd89a58f679490a7bc03c113bd37b4cb3ec0 | /SVAGP/kernels.py | 32c351e0503f025993845fc7a605ea9896a72c2b | [
"Apache-2.0"
] | permissive | UCL/SVAGP | 8014f47954ea7d2c210c8fd9a73cc459d0433c74 | d8a9d9d4b87f317ef9b3c74aa39a2b30a488ab35 | refs/heads/master | 2021-01-23T10:35:53.170429 | 2017-06-01T17:14:24 | 2017-06-01T17:14:24 | 93,076,432 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,921 | py | # Copyright 2016 James Hensman, alexggmatthews
#
# 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 t... | [
"vincent.adam87@gmail.com"
] | vincent.adam87@gmail.com |
b5c2d29c6ec32dea08c50833b0043f0b3d64b696 | e8c0f3c3ef2c1476b3e2af01ba63fea3cd993787 | /tools/google_activity_parser.py | 2902242ccfe5702ac057657d1d7c41559b3197b4 | [] | no_license | hal2001/machine_learning | 05ff47a2fe08fa7267a673b54c84f939c3ef565c | 39c857fa937b3301d42624ef9b264ab04b49c3dc | refs/heads/master | 2020-03-11T15:28:01.434296 | 2018-02-15T18:53:22 | 2018-02-15T18:53:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,865 | py | # -*- coding: utf-8 -*-
"""
Parses "My Activity" from Google, specifically for Google Search
Author: Aaron Penne
Example input of a single Google search:
<div class="outer-cell mdl-cell mdl-cell--12-col mdl-shadow--2dp">
<div class="mdl-grid">
<div class="header-cell mdl-cell mdl-cell... | [
"noreply@github.com"
] | hal2001.noreply@github.com |
df824d5307b1a45d4bdaaf6834c8633efa3b5d87 | 0a14400b5df85592b9732ef00c893f62a458554b | /src/main.py | aee09a0a7404ad5eb0498de67c44241deb38229f | [] | no_license | a1rwulf/movlibgen | c193e19110164806b017074462079c43eb5ad8fc | b66c5c7e76084383846ef51d77b3ff60162bcb7c | refs/heads/master | 2020-06-14T05:53:50.781062 | 2019-10-07T09:28:33 | 2019-10-07T09:28:33 | 75,224,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | import tmdbsimple as tmdb
import configparser
import time
import os
from datetime import datetime
config = configparser.ConfigParser()
config.read('movlibgen.cfg')
x = 'abcdefghijklmnopqrstuvwxyz'
path = config.get('CONFIG', 'PATH')
samplefile = config.get('CONFIG', 'SAMPLE')
tmdb.API_KEY = config.get('CONFIG', 'API_K... | [
"haupt.wolfgang@gmail.com"
] | haupt.wolfgang@gmail.com |
479ea80a853b8988ea10248c71a04b9972d837aa | 7f99c0d6fd03ac7388efc9713a311040989fda59 | /Python/script_runner/test/db.py | fe2e2691172da8431f2d67aad803d1f27425c0cc | [] | no_license | helver/Alliances | 35b688513e9030751d33d9d0b17adeb3ed5f1aa8 | 4e85e3453fac3484d293208db5bf7dc44518cc14 | refs/heads/master | 2021-01-15T16:29:30.158420 | 2015-04-30T14:09:45 | 2015-04-30T14:09:45 | 34,855,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,447 | py | import string
import twisted.internet.defer as defer
import twisted.internet.reactor as reactor
import mir.models as models
import re
import mir.identity as identity
database = "/usr/lib/python2.5/site-packages/mir/script_runner/test/"
job_script = file(database + "data/job_scripts/basic_agent_1.xml").read()
job_sc... | [
"ehelvey@gmail.com"
] | ehelvey@gmail.com |
c721a92ac5444111678c7fa54101abe580bfdaa5 | d4cd0a2c56c697bf7637ac8941d694eb515dce96 | /CTDLGT_Python/bt12_cài_đặt_đồ_thị_vô_hướng.py | 0d9839adbc3724a3e61301d0eeea656835c57726 | [] | no_license | ldthinh220802/THI_CTDLGT | d456796321d9377201916e84211f8f9ae255406e | 2c1c6865a9d5d59b83d983de46289323ecbb75b7 | refs/heads/main | 2023-06-25T15:53:38.180421 | 2021-07-19T06:21:27 | 2021-07-19T06:21:27 | 384,970,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | # -*- coding: utf-8 -*-
"""BT12. Cài đặt đồ thị vô hướng
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/github/ldthinh220802/cau_truc_du_lieu_va_giai_thuat/blob/main/BT12_C%C3%A0i_%C4%91%E1%BA%B7t_%C4%91%E1%BB%93_th%E1%BB%8B_v%C3%B4_h%C6%B0%E1%BB%9Bng.ipynb
... | [
"noreply@github.com"
] | ldthinh220802.noreply@github.com |
7933f46b513502a6a56250aef30b1525cc20a4e3 | a15b9fe01e2edb0c126d926e2f5ad4d0e2e5c33f | /listings/urls.py | 9bdb96448ff8143ffb269c01e05598c474c24417 | [] | no_license | zohaibk22/realestate-with-django | 6abea13e49156ef4fba7a4918bd34dd54c07c3c4 | ff0ab708a36b058adf02632f3a5ec3db0b94703c | refs/heads/master | 2023-05-05T07:28:45.241477 | 2021-05-28T02:38:36 | 2021-05-28T02:38:36 | 347,839,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from django.urls import path, include
from . import views
urlpatterns = [
path('', views.index, name='listings'),
path('<int:listings_id>', views.listing, name='listing'),
path('search', views.search, name='search' ),
] | [
"zohaibk1111@gmail.com"
] | zohaibk1111@gmail.com |
cd5fc1a0531d8ded0b2c72c3befd66f483a78b86 | f0151c7e52ac2c88e9bdf74767f1f1727f6789d0 | /pieces.py | 6b2894e5936438d720a7e3afc081530fb70187d7 | [] | no_license | lyulka/NFTSOI-Chess-Engine | fcb7e3e37e7d8d79456c9c1b0a84f6d1c49dddb2 | c566f1e64a210ae67635107b3cd273fa9aba04cc | refs/heads/main | 2023-01-23T10:21:08.646569 | 2020-11-28T19:38:16 | 2020-11-28T19:38:16 | 316,014,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,422 | py | from move import Move
from coord import Coord
class Empty:
def __str__(self):
return u'\u25c7'
class Piece:
def __init__(self, color):
self.color = color
def is_enemy(self, other: 'Piece'):
if type(other) == Empty:
return False
return self.color != other.color
def is_friend(self, othe... | [
"strelka@connect.hku.hk"
] | strelka@connect.hku.hk |
7888c84676fc0e2cc852fcbafaf9c206231c3e44 | 04f2b23dc29b024711b297104eb57e8b7943ac28 | /dmdashboard/migrations/0006_auto_20170615_2130.py | 99c42c4fd3c2b250b02a890b2c808fef51245575 | [] | no_license | acaggiano/dmtools | 9e6e2609ae7e63369c4339b43bf17225c49f51db | e0969955ccdc0a45ff18bfe7ddca79283b408c65 | refs/heads/master | 2022-12-16T03:02:43.734781 | 2019-07-11T18:36:00 | 2019-07-11T18:36:00 | 94,246,208 | 1 | 0 | null | 2022-12-08T05:18:47 | 2017-06-13T18:44:51 | JavaScript | UTF-8 | Python | false | false | 697 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-16 01:30
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dmdashboard', '0005_auto_20170615_2122'),
]
operations = [
migrations.Alter... | [
"onaiggaca@gmail.com"
] | onaiggaca@gmail.com |
67496ec447aca5bf4189dab19f0983fcd1386567 | ed410a1af46f1c52a7803eb23c64b396b9eb952b | /google-gcp/automl_sample_code/automl-detect.py | f945c0cc3ad01bcf6b2af444309bdb06602b9926 | [] | no_license | vaibhavpatil123/reference-architecture | 0afbe2a0635b77d9d0ca60d8afaf2d83e3079016 | 2d9dfb57f2bb87bef297b6bbcac6f3184f26843b | refs/heads/master | 2022-03-04T23:07:19.741351 | 2019-10-28T14:06:00 | 2019-10-28T14:06:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,359 | py | #!/usr/bin/env python
# Copyright 2017 Google Inc. 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... | [
"jorwalk@gmail.com"
] | jorwalk@gmail.com |
e7a41ab6ff5efcaeebafaabd9037e6b8f9d2cadc | 55cc60ae22e27b121383098aae7c7ab36f2bb64f | /exercices/045/solution.py | e87f5aab9db144e93f73f4b0492504c664388865 | [] | no_license | lnarbona/hackinscience | 6ad804faa2a6ce0a9d14d070f1808b6851fcafa3 | 1497c33e29a4cfe8ac009ae1894661aacc95e5c3 | refs/heads/master | 2021-07-07T00:13:33.986964 | 2015-12-15T10:38:08 | 2015-12-15T10:38:08 | 43,556,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | def sqrt(numero):
return numero**(0.5)
| [
"lara.narbona@cri-paris.org"
] | lara.narbona@cri-paris.org |
7b68ba9a1d655a781e41cb1aeb3c4390cd69e5fa | 3cf379c79764a0aa8bdd556b90ad3b1c287f8bba | /models/base/model_base.py | 6afb121d0034490558d0d5ff5d81325b16c4d7fc | [] | no_license | alexnwang/SketchEmbedNet-public | b2c5924ba02e0d01343e1adbbae63529d3a1c78a | a98b212f91c459b575546edebf127c7ade85fb4e | refs/heads/master | 2023-01-10T00:14:03.945769 | 2020-11-06T19:59:27 | 2020-11-06T19:59:27 | 285,636,393 | 11 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,015 | py | import os
import tensorflow as tf
class BaseModel(object):
"""
Basic model
"""
def __init__(self, base_dir, model_id):
self._base_dir = base_dir
self._dir = os.path.join(base_dir, model_id)
self._summary_dir = os.path.join(self._dir, "tfsummary", self.__class__.__n... | [
"alexn.wang@mail.utoronto.ca"
] | alexn.wang@mail.utoronto.ca |
67b4fdb18932e728d619611ee41d81e11eb82f6e | 02c6b39399c1cfb434ad718c90bed3d8e6310ed0 | /symbolic/symbolic_interval/__init__.py | a05b1f606a6c61911dc1a5c02ffb66d08e5ade09 | [] | no_license | phate09/SafeDRL | 09b8924fa91aa43cf543ea5727ebe4cc8e13c0a5 | 3d4278eaaabb046a90fc1cebd1b5862d63dc5894 | refs/heads/master | 2022-09-17T05:12:28.529329 | 2022-08-29T08:21:32 | 2022-08-29T08:21:32 | 204,663,981 | 8 | 3 | null | 2021-12-02T14:13:46 | 2019-08-27T09:07:04 | Python | UTF-8 | Python | false | false | 97 | py | from .interval import Interval, Symbolic_interval
from .symbolic_network import Interval_network
| [
"phate09@hotmail.it"
] | phate09@hotmail.it |
0b2eda8e021bc7530e43f336462b37a03d23ece8 | 604d1065eb2f098a4873fd9470cc7850d5bde86a | /datet.py | f8b4297fa2705d8337f2755419924f8bd3c5cf1b | [] | no_license | rjayajadhav/Python-code | a05117a339b3b8591141374aa061700109de4577 | c734fa83696779c9eb2a893b593813369eb84e10 | refs/heads/main | 2023-07-15T11:27:16.997616 | 2021-08-28T16:12:42 | 2021-08-28T16:12:42 | 392,303,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | import json
# some JSON:
x = '{ "name":"John", "age":30, "city":"New York"}'
z = '{ "name":"Jaya", "age":35, "city":"Pune"}'
# parse x:
y = json.loads(x)
n= json.loads(z)
# the result is a Python dictionary:
print(y["age"])
print(y["city"])
print(n["age"]) | [
"noreply@github.com"
] | rjayajadhav.noreply@github.com |
81c76479930f2493db07e52dad0cb747a679b934 | 2dc23883f2cf91176907316fbeb5e95517e9c878 | /Experiments/main.py | 55fe2be1326b7866e37028f38f002253398951c1 | [
"Apache-2.0"
] | permissive | nour-mubarak/eye-gaze-dataset | 835f53542f256bbe646d6a0fa200aedeaa859878 | 82f2427541a54e3d5e20cc7850ed75c84d80988f | refs/heads/master | 2023-05-03T00:49:01.117203 | 2021-05-21T03:12:04 | 2021-05-21T03:12:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,449 | py | import os
import argparse
import torch
import sys
import random
import logging
import numpy as np
import torch.nn as nn
import torch.optim as optim
import matplotlib.pyplot as plt
from visdom import Visdom
from datetime import datetime
from torchvision import transforms
from imgaug import augmenters as iaa
from torch.u... | [
"Ismini.Lourentzou@ibm.com"
] | Ismini.Lourentzou@ibm.com |
3d5e6311fe9aa6c00f6660d25bea7056cf7cb256 | e48e655f69466f8a4a1bff0cf2f51d7f4fe48065 | /venv/Scripts/pip3-script.py | bb18517866e77e527bae5f4fec198eac2aec8783 | [] | no_license | Panoramikes/Lista2 | 38f6d364a0ece07d432a04078dc9d079552fca83 | 752b5bf32282ef2aa9af3765c2770273c0535b2e | refs/heads/master | 2020-04-30T12:09:27.352950 | 2019-03-20T21:29:57 | 2019-03-20T21:29:57 | 176,819,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | #!C:\Users\panor\PycharmProjects\Lista2\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
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... | [
"panoramikes@gmail.com"
] | panoramikes@gmail.com |
ba5b5c54db62dfe9833b5715954dced8bc4760f2 | ad53e0cb71d59c1a6708c84cbb5e712c2c695fa9 | /weblog/app/models.py | a1da6f3223631c7b533278a246c784ec1a87915b | [] | no_license | lyn233/DOBlog | 304e1d030c2f05d94753584954321775ee4be764 | 2c827c0363d86dcb04c82f7bd9ae43da9a60fea9 | refs/heads/master | 2021-01-10T07:41:48.801034 | 2017-12-07T05:59:58 | 2017-12-07T05:59:58 | 45,041,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,356 | py | # -*- coding:utf-8 -*-
from weblog.app import db
from flask_login import UserMixin
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
from werkzeug.security import generate_password_hash, check_password_hash
from flask import current_app,url_for
import bleach
from markdown import markdown
fr... | [
"daiguanlin@126.com"
] | daiguanlin@126.com |
4234da45fec98149194742c6fe4d1dea150fa8dc | ea7ae0d383b3d97cde7995eaeda9651afc2496c4 | /main.py | b4923bbcd52ab065f981cfbd83b98da0734a3416 | [] | no_license | Brucejy/Human-Protein-Atlas-Image-Classification | 7abef1a42c5f9fd683cfbf2f781d24ae2957a925 | 0eb4e502db291e2a863ea1a2818d6f72242c6b93 | refs/heads/master | 2020-05-23T02:11:25.619370 | 2019-05-18T07:29:41 | 2019-05-18T07:29:41 | 186,598,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,133 | py |
# coding: utf-8
import keras
from keras import backend as K
from keras.models import Model
from keras.layers import Activation, Dense, Input
from keras.optimizers import Adam
import os, cv2
import numpy as np
import glob
import pandas as pd
from keras.preprocessing.image import ImageDataGenerator
from sklearn.model_s... | [
"b25940965@gmail.com"
] | b25940965@gmail.com |
f0532a41a963e81aeff001bdd8f8af1e6ba68351 | d7be95f0099bc32bf6fd45589fda8dd7b1b0337f | /mysite/urls.py | 34d5b8ae8dd9e842f55e6be355e7d438682581ce | [] | no_license | Rafael-Wassoaski/projetoProntodePPi | 5c3df7b53ea51ed63f3b5d558a3e414ab8f23e0c | e73618e2d3ec761a7964523d6a552e1a7cbd5947 | refs/heads/master | 2022-11-27T17:41:13.300843 | 2019-06-25T20:05:46 | 2019-06-25T20:05:46 | 193,741,206 | 0 | 0 | null | 2022-11-22T02:23:52 | 2019-06-25T16:05:39 | Python | UTF-8 | Python | false | false | 1,296 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"meireles200@hotmail.com"
] | meireles200@hotmail.com |
1060e48d0bb83bb3216ccdf445a1b5b2cea8077e | 303b3e0447e66c22471d82395ec1302ba6622a92 | /python/query-stub.py | 1dc5ac8bc7597200fd71af77e2354c39e42a126c | [] | no_license | shuque/getdns-examples | b83b2feaab9fa7cb58033184b40be9f7b2091281 | 735c4a356f13ece075b27112d54caf1af8359452 | refs/heads/master | 2021-01-10T03:16:30.982938 | 2016-02-01T18:09:28 | 2016-02-01T18:09:28 | 47,571,878 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | #!/usr/bin/env python
import getdns, sys
hostname = sys.argv[1]
ctx = getdns.Context()
ctx.resolution_type = getdns.RESOLUTION_STUB
extensions = {}
results = ctx.address(name=hostname, extensions=extensions)
if results.status == getdns.RESPSTATUS_GOOD:
for addr in results.just_address_answers:
print(ad... | [
"shuque@gmail.com"
] | shuque@gmail.com |
222904f660559d82269ebc7563fc3be1f7d00b69 | 9e0f5fac5711e69477770deb30dbaa53e8a5b961 | /example.py | ffc8c0c13b85f4c356e40945cbce0754de887eb8 | [
"MIT"
] | permissive | qerty123/Vector | b462813f106e4e2c0a888e2c980dded442c3e2cb | 9f065d34b0aa8f4a0ffb6c85c32ed941009c3960 | refs/heads/master | 2020-12-11T12:45:59.747431 | 2020-02-08T09:51:19 | 2020-02-08T09:51:19 | 233,853,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | # Copyright (c) 2020 Kapitonov Stanislav <delphi.troll@mail.ru>
from vector import Vector2d, Vector3d
v1 = Vector3d(3, -1, 2)
v2 = Vector3d(-1, 2, 1)
v3 = Vector3d(0, -2, 1)
v4 = Vector3d(-1, 1, 3)
dif = v3 - v4
# Find projection of vector v3 - v4 for vector v2
pr = dif.project(v2)
print('Projection of vector v3 - v... | [
"delphi.troll@mail.ru"
] | delphi.troll@mail.ru |
0b036f6d5d139798df7f73985ec061a219bf7a22 | fcfbe523bb3d7cb6d36822a7f01d0a59410972a0 | /7kyu/Help Bob count letters and digits.py | 41ea21297356a09afde2a2c545289164dced0a3f | [] | no_license | HighHopes/codewars | 6239803d5255a9ab81c50222b1b1bc9293bc2fd9 | 65bcda121ec09d6d141cdf682ed17d223a0eee4e | refs/heads/master | 2020-04-28T19:21:47.217399 | 2020-03-11T17:25:33 | 2020-03-11T17:25:33 | 175,502,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | """Bob is a lazy man.
He needs you to create a method that can determine how many letters and digits are in a given string.
example:
"hel2!lo" --> 6
"wicked .. !" --> 6"""
import re
def count_letters_and_digits(s):
if s == None: return 0
return len(re.findall("[a-zA-Z0-9]", str(s)))
print(count_letters... | [
"oprisaalin@gmail.com"
] | oprisaalin@gmail.com |
07b373d67b8a0825866ba2663627a162bf88e47e | abb94cfc69c7d83842fd4213d0ce16b33c8e9a3d | /venv/Scripts/easy_install-3.7-script.py | cc213bc4edb9eaa8697344a69f26ff68584ab052 | [] | no_license | TigranMelkonian/PersonalWebPage | 5bc93ee7e17aa496ac1c84fd5f12a92fd05f9148 | d975fba7dc1f665836bd3b19572862719e60099d | refs/heads/master | 2020-09-17T07:52:17.410856 | 2019-11-25T21:26:37 | 2019-11-25T21:26:37 | 224,039,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | #!C:\Users\pete\PycharmProjects\MyFirstPythonWebApp\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-... | [
"tigran@spotted.us"
] | tigran@spotted.us |
a7ebc45ec08fa90f7be4d3ab92e042f19fa0326a | cd74536e8403400675e8b54fa64ee6466400370f | /bot.py | 6b6baa487ed1d5d668d9476a1b22feac1766868a | [
"MIT"
] | permissive | volskaya/norman | 1feff41d91ba64de714f0a37e041d4bba8b0c515 | dc414b0b661cce3b8c9fd06c50c52c5c7f6cf0b9 | refs/heads/master | 2022-02-21T00:36:01.611059 | 2019-09-19T13:40:45 | 2019-09-19T13:40:45 | 141,054,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,349 | py | #!/usr/bin/env python
""" Copyright (C) 2018 github.com/volskaya
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 the rights
to use, copy, modify,... | [
"roolaav@gmail.com"
] | roolaav@gmail.com |
4941b887741964e84f7b9663a1aee8aac7b087db | ed3c56e4d78142c4bc73a90fbc32d7ee48747fe0 | /chainerV2による実践深層学習/test-mt.py | cb5d2d94e6e6900ee29fc92ee0ef45e6ae859db5 | [] | no_license | johne-numata/chainertest | 6ca2332778f35f826a160125e08c922dd26293b2 | c05cdcf0f13dcc75890258290404af35ce18ac0c | refs/heads/master | 2021-04-15T05:51:01.745898 | 2018-08-17T04:29:11 | 2018-08-17T04:29:11 | 126,454,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,115 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import numpy as np
import chainer
from chainer import cuda, Function, Variable, optimizers, serializers, utils
from chainer import Link, Chain, ChainList
import chainer.functions as F
import chainer.links as L
jvocab = {}
jlines = open('jp.txt').read().split('\n')
for i in ra... | [
"hideo.numata@toshiba.co.jp"
] | hideo.numata@toshiba.co.jp |
2185d6664cc16b654ee558a6645234eab7ea8521 | a3fdebd406a37da34561969f37ea7a5feb14f236 | /src/testMorphology.py | df8d5f39a001e32fe92548e49e0c52c0abdc1df0 | [] | no_license | nikifaets/pointsProcessing | e076976914f2dbd51fbb64fa57194b47a3c56f87 | 74f2422c9a2117fc40bad6650cf97110f3b29c40 | refs/heads/master | 2021-09-12T10:39:13.233534 | 2018-04-15T19:32:02 | 2018-04-15T19:32:02 | 107,880,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,599 | py | import cv2
import numpy as np
import extractor as ext
import findLines as fl
import laserFindPoints as lfp
import time
cap = cv2.VideoCapture(0)
cap.set(3,240)
cap.set(4,320)
projecting = False
while(True):
millis = int(round(time.time() * 1000))
ret, img = cap.read()
thresh,grayscale = lfp.threshImage(im... | [
"nikifaets11@gmail.com"
] | nikifaets11@gmail.com |
d8b44b3e7c654ab09fe42ab83ec0937b19133d4d | cabc3bcc0f6fedc7e8f2cd011892e43f1fb80a92 | /CustomErrors.py | ecfb6c9725bb7bb3f8dbe91be0e6e30e94c76627 | [] | no_license | nikist97/CodingChallenge | a3c87d33bab1b8d2fd4f46cdfeda78bffedbcfd7 | db26c2473d8478386a6625b88b17cd2648a94131 | refs/heads/master | 2021-08-11T13:09:30.049882 | 2017-11-13T19:07:01 | 2017-11-13T19:07:01 | 110,493,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | class InvalidPriceError(ValueError):
"""
a custom type of error raised when there is an invalid price for a ticket, e.g. negative number for price
"""
def __init__(self, msg):
"""
the constructor for the error calls the parent's (ValueError) constructor
:param msg: the msg of th... | [
"nikist97@abv.bg"
] | nikist97@abv.bg |
8ac0480670678ce2f641aae18ee7719838e5f722 | d30c6d691a34fc9181fb71e9712b9505384422ec | /数字,日期和时间/分数的计算_P96.py | be37c7b9b724074146f45662cb34e480751597bf | [] | no_license | shishengjia/PythonDemos | cef474eb01ee9541ba0c70fc0750ee48a025f42f | c0a857b1cacdbb2b6b727a84f95f93b6e86d60c2 | refs/heads/master | 2021-01-01T16:15:19.593635 | 2017-10-26T07:18:46 | 2017-10-26T07:18:46 | 97,797,104 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | """
fractions模块
"""
from fractions import Fraction
a = Fraction(1, 2)
b = Fraction(3, 4)
print(a + b) # 5/4
c = a + b
print(c.numerator) # 5 分子
print(c.denominator) # 4 分母
print(float(c)) # 1.25 转化为小数
print(c.limit_denominator(8))
x = 0.625
print(Fraction(*x.as_integer_ratio())) # 5/8 小数化分数
| [
"shishengjia1@live.com"
] | shishengjia1@live.com |
82d22436bd0102102ac1d19ba37f0005304c2064 | 3ba314ca88e89dded85a3448e730e215c47f3ceb | /allSkyImagingModule/skyImaging/rfiPlotter.py | 38081ce03fd7f192a1d9ce79da8cfc9a93ddbbf7 | [] | no_license | David-McKenna/allSkyImaging | 9f3dc5984541a6d39617dd5fd583654d0901d685 | e20a4bb48cca7814c32326177c121e149664764c | refs/heads/master | 2021-07-06T11:28:58.345222 | 2019-02-06T13:21:06 | 2019-02-06T13:21:06 | 166,459,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,970 | py | """RFI Interative plot handlers.
Originally ported to Python by Joe McCauley, slightly modified for this module. The source contained the following header:
@author: Joe McCauley (joe.mccauley@tcd.ie)
Written for Python 2.7
Based on a translated matlab script originally from ASTRON for processing
xst data from an int... | [
"mckennd2@tcd.ie"
] | mckennd2@tcd.ie |
c5e700d40f7b620b11f50fed1069337c0eda7ee2 | 07eb32060101b438934954d6f705305d54296380 | /sorts.py | 856dc7ab65436defd4947e49211a0610e84b7e39 | [] | no_license | pragmaticarun/algo_n_datastructures | e6742c48bbba22b2b1d2db52862c77d9c60566fc | bb359afb77df957dddfac9b476094e9ecb39e50e | refs/heads/master | 2020-08-11T14:45:40.477662 | 2020-02-02T14:27:50 | 2020-02-02T14:27:50 | 214,582,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,539 | py | # -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
a = [4,9,1,-1,3,22,11,18]
for i in range(len(a)):
for j in range(i,0,-1):
if a[j] < a[j-1]:
a[j-1],a[j] = a[j],a[j-1]
else:
break
#print(a)
b = [90,75,42,1,3,22,27,65... | [
"pragmaticarun@gmail.com"
] | pragmaticarun@gmail.com |
6506ce4fe77bbd8e8505bbda7a0e1ca97a15f9a8 | 4fe825814efae31cc777295f1d3e059dfbdedbfe | /train.py | d1a22ea06b036799cae0457e12673be7701ef5e4 | [] | no_license | gokulpch/gender-estimation-model | 045b292956a36e35c1a30f42d7d5571cad77c688 | aadbe6ff8765cada9bc3b68d3acef181c1935ffc | refs/heads/master | 2020-06-10T12:28:50.789389 | 2019-06-25T06:11:37 | 2019-06-25T06:11:37 | 193,645,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,268 | py | # import necessary packages
import matplotlib
matplotlib.use("Agg")
from keras.preprocessing.image import ImageDataGenerator
from keras.optimizers import Adam
from keras.preprocessing.image import img_to_array
from keras.utils import to_categorical
from keras.utils import plot_model
from sklearn.model_selection import ... | [
"gpurnach@cisco.com"
] | gpurnach@cisco.com |
db55e22cfc6843e012dc04ca9c723fc8cb0b1c89 | 418e7f374c0b344cc8eb988eefda6e2a6e910251 | /iss-rnns/ptb/ptb_word_lm.py | 0dad35ef3346aaa52b21fd3f8d8656e4afabd589 | [
"Apache-2.0"
] | permissive | feiyuhug/SHS_LSTM | 9e66d009ddb298d40df9f6704e9b410f1cc128f7 | 230888785c8c06733cac7649a162b505ea6bdc2c | refs/heads/master | 2020-05-29T23:27:27.820331 | 2019-05-30T15:31:40 | 2019-05-30T15:31:40 | 189,436,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,327 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"yuniange@gmail.com"
] | yuniange@gmail.com |
d34d3f80e71ecef1c4524423b84ab098accdcfb4 | e6b5790c886f651e142260571fe0d20eb5629f48 | /datacamp/statistical-thinking-python/01_02_variance_and_std.py | c142b338bdf8399336cf420c9598677de42670c9 | [] | no_license | anderalex803/nuwara-online-courses | 23dda7997a7659ca32dd0d82a571ec609c0dff0c | 12ff31f5f88b0632319025eabb13aad375534590 | refs/heads/master | 2022-12-18T10:24:17.510602 | 2020-09-09T15:07:41 | 2020-09-09T15:07:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | " Compute variance step-by-step and using build-in function np.var"
# Array of differences to mean: differences
differences = versicolor_petal_length - np.mean(versicolor_petal_length)
# Square the differences: diff_sq
diff_sq = differences**2
# Compute the mean square difference: variance_explicit
variance_explicit... | [
"noreply@github.com"
] | anderalex803.noreply@github.com |
0ce4d0fdfbcbdcb08fd020f84fdb01abca1796f9 | 42685605f569e9d0afadc358ace6ce212e86bf1c | /1_Zadania/Dzien_3/5_Virtualenv_biblioteki/ddd.py | 63411dd73ff18565b3727122a9f9e1681374153c | [] | no_license | Danutelka/Coderslab-Podstawy-Python | e6bdbbd9dc2031cf9ec5d9d3eeba717d22e9ecd7 | eed6a957f081e488ae3c94298718f7b93e17a93c | refs/heads/master | 2020-08-04T15:21:28.058433 | 2019-04-07T19:24:54 | 2019-04-07T19:24:54 | 212,181,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | import requests
r = requests.get("http://onet.pl")
print(r)
| [
"kawecka.d@gmail.com"
] | kawecka.d@gmail.com |
8dff565e4a3145736f3847daf00e0a91801c7e21 | a4275e529b564c3ec5c084fb360c2f4207068477 | /src/montague/validation.py | 9a20e422a8c17d2122978e27db86e67d8d0db92f | [
"MIT"
] | permissive | rmoorman/montague | aacc11837016400e37b69e18b2461a3246c2052c | 423a2a5a773e975fa27f7b61627cc706fb084984 | refs/heads/master | 2020-12-29T01:41:17.262828 | 2015-06-18T00:46:45 | 2015-06-18T00:46:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,702 | py | from __future__ import absolute_import
import collections
import types
def validate_montague_standard_format(config):
for key in ('globals', 'application', 'composite', 'filter', 'server', 'logging'):
assert key in config
assert isinstance(config[key], collections.Mapping)
def validate_config_l... | [
"jon@inklesspen.com"
] | jon@inklesspen.com |
434f569b0c237c070439c7b30b69de0e7e04c549 | 21f3162b80f5edd4e0be3f5bee04142f397b8e26 | /tutorial/tutorial/spiders/img_spider.py | 65a56601eecaf68bc2181c23e7cc2941f24fdb37 | [] | no_license | jiangbingo/scrapy-house | e599e02f2e42d598d3bce1e052d55d68211b9379 | 533e98a56a5c869f45928ded512b0a12f4894965 | refs/heads/master | 2020-04-09T17:32:50.701832 | 2016-12-01T14:25:23 | 2016-12-01T14:25:23 | 67,988,718 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,865 | py | #!-*-coding:utf-8-*-
__author__ = 'PD-002'
import os
import json
import scrapy
from hashlib import md5
from tutorial.items import DmozItem, TestItem
class DmozSpider(scrapy.Spider):
"""
for test
"""
name = "img"
allowed_domains = ["img.org"]
start_urls = ["http://newhouse.... | [
"jiangbingo@hotmail.com"
] | jiangbingo@hotmail.com |
a09754bd46ba1e705aa2818cb0065461ffc04a4b | 77088306e65adb0ae131b51a9c6acf799ec669bc | /train.py | 922a433af50334f9d448a3c2ec1397361f4ddead | [] | no_license | NeerajTulsani/ChatBot | 452285c979957c3788684956b796b85351e1a835 | 0db1f6c908d032ee15f2abf013af55ce4f78b5d4 | refs/heads/main | 2023-04-26T23:35:51.674944 | 2021-05-25T05:13:00 | 2021-05-25T05:13:00 | 328,322,624 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,561 | py | import numpy as np
import json
import torch
import torch.nn as nn
from torch.utils.data import Dataset, DataLoader
from nltk_utils import bag_of_words, tokenize, lem
from model import NeuralNet
with open('intents.json', 'r') as f:
intents = json.load(f)
all_words = []
tags = []
ab = []
for intent in intents['i... | [
"noreply@github.com"
] | NeerajTulsani.noreply@github.com |
501ed856db70e2877ac34046453bf4981788b2b1 | 4c6c1e729e5d9ae2908ee2d580d91c60fc6b76ff | /accounts/urls.py | dafa5bc491d2bf87f8b6421b49992da951d61faa | [] | no_license | vcrl/P13 | 6e098733bdd06a2c0a97835570d314ba9e758587 | 365c973a07326b71bf5ef9d16cbb9770edcfd415 | refs/heads/master | 2023-06-17T06:37:33.381796 | 2021-07-16T13:37:33 | 2021-07-16T13:37:33 | 364,944,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | from django.contrib import admin
from django.urls import path
from . import views
urlpatterns = [
path('signup/', views.signup, name="signup"),
path('signout/', views.signout, name="signout"),
path('signin/', views.loginuser, name="loginuser"),
path('profile/', views.displayprofile, name="profile"),
... | [
"vruel@pm.me"
] | vruel@pm.me |
a211852f23f82de502629246d40e8e38a13b64de | 96fe253e9a740b51dcd7f83d6ab01bb248c2bf4b | /patrones_arquitectura/DDD/value_object/prueba_cuenta_bancaria.py | 013e69c83e8ab92979a1390c08af8ed518910598 | [] | no_license | vvalotto/Patrones_Disenio_Python | 7574470752a5f14214434a927c2c5e0faaa592ba | 7ab6a74e9b008c3434af0a56d4c2b6b7de3617bf | refs/heads/master | 2021-04-28T19:16:21.535998 | 2018-10-21T14:05:36 | 2018-10-21T14:05:36 | 121,891,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from DDD.value_object.cuenta_bancaria import *
mi_dinero = Dinero(100, Moneda.Pesos)
print(mi_dinero.moneda)
print(mi_dinero.monto)
mi_cuenta = CuentaBancaria(1, mi_dinero)
print(mi_cuenta.balance.monto)
print(mi_cuenta.balance.moneda) | [
"vvalotto@gmail.com"
] | vvalotto@gmail.com |
7c378f7c5a01b084095dc622f0eca72997914d5e | b3b3ac6bef90834d3c02858b243afc84a30f35ab | /api/migrations/0003_container_prev_art.py | b71622eb2aef9f4cb99810b841bd3e3859fba695 | [
"MIT"
] | permissive | sinofeng/edgy-controller | ce17eff41a75e099260d58e5c2fe5f685fb1d197 | 140bf952fcc43bbba344f169c782132d500e1343 | refs/heads/master | 2023-07-25T00:18:31.879146 | 2020-12-31T10:45:42 | 2020-12-31T10:45:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-04-24 14:31
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0002_auto_20180424_1428'),
]
operations = [
migrations.AddField(
... | [
"avgeris.marios@gmail.com"
] | avgeris.marios@gmail.com |
275a0a4f256f1d54872f57ef1f6b4f51287f4070 | 38a868d3a4605e32739efe49343642c1bb84d924 | /data_loader/unet_data_loader.py | 4e69011b1a973a87589d5655d3b556dc71b29f19 | [] | no_license | ferraric/Semantic-Segmentation-of-Histopathological-Slides | c505c7f9e0710f04f23b50b0a3d563c979e1bef6 | 5461ec858c875f1e5463193466c82c48358cba9c | refs/heads/master | 2023-07-03T15:33:56.048279 | 2021-07-30T11:18:13 | 2021-07-30T11:18:13 | 391,037,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,264 | py | import tensorflow as tf
import os
import math
import numpy as np
from PIL import Image
AUTOTUNE = tf.data.experimental.AUTOTUNE
class UnetDataLoader:
def __init__(self, config, validation=False, preprocessing=None, use_image_augmentations=False):
self.use_image_augmentations = use_image_augmentations
... | [
"ferraric@student.ethz.ch"
] | ferraric@student.ethz.ch |
a1b6fb392741e41deadbff3e6f9ad7e1f8c4f790 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/63/usersdata/158/31530/submittedfiles/swamee.py | 2c5e1ac2906cab6729e807c9e54f3c38de172e65 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | # -*- coding: utf-8 -*-
import math
f=float(input('digite f:'))
L=float(input('digite L:'))
Q=float(input('digite Q:'))
deltaH=float(input('digite deltaH:'))
v=float(input('digite v:'))
g=9.81
E=0.000002
D=((8*f*L*(Q)**2)/((math.pi)**2*g*deltaH))**1/5
print('D é:%.4f'%D)
Rey=(4*Q)/(math.pi*D*v)
print('Rey é:%.4f'%Rey)
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b0e19c15084f07ee5e146abca8e1ab776d778910 | 57e8a41e63af3ef94001c03f07beacf39e340f0d | /cse_udub/cse_415_AI/hw3/ui.py | ae82ccb2a4d1982121f085a48ddff517f32e6a15 | [] | no_license | zhy9036/cs_2016_fall | 0e5f9f1f84777729b1761675cfb27086269c2358 | c35c0cf64038dda3888e48ca63e92c67dc9ad346 | refs/heads/master | 2020-04-10T03:55:45.688046 | 2018-02-17T19:26:49 | 2018-02-17T19:26:49 | 68,164,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,911 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'all.ui'
#
# Created: Sat Apr 26 22:09:41 2014
# by: PyQt4 UI code generator 4.10.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeE... | [
"zhangyang9036@gmail.com"
] | zhangyang9036@gmail.com |
04a6fc2e76234c2cc09fd5a634d68cf9561700ee | 9cd8c0e01d6197c77b15d24ea46be2c4c5ea2e73 | /src/justchat/urls.py | 0b81a21cf0a8ec353944f20feceae33376d0644b | [
"MIT"
] | permissive | vaibhav0000patel/Chat-Application-Django-Channels | 6a0ecfb7b80505ed452ac2e8336aa2d3adbcf72d | 7470ecf8e22951e72081d344d8123e768a75b0b0 | refs/heads/main | 2023-03-06T20:13:15.323707 | 2021-02-23T14:08:17 | 2021-02-23T14:08:17 | 341,572,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | from django.contrib import admin
from django.urls import path,include
urlpatterns = [
path('admin/', admin.site.urls),
path('chat/', include('chat.urls',namespace='chat')),
]
| [
"vaibhav0000patel@gmail.com"
] | vaibhav0000patel@gmail.com |
185d7e4291d29d014020b6b40ebfb2d8398b5f8c | cf444d07d8056416dfba34e73bba128567b7c692 | /readandloadperfpadbenchasof.py | fd9df58a4e0df4d295b906d84dace758c8374d5d | [] | no_license | rtstock/scriptsvapp01 | cf9e993e5253e9a60dc191cca5e34532fa559ee1 | 7c2db888f0dcd92de62c031f9867e1c5cb4cbc0e | refs/heads/master | 2021-01-23T00:29:11.267852 | 2017-03-21T19:24:34 | 2017-03-21T19:24:34 | 85,737,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,756 | py | import ftplib
class perform:
#def __init__(self):
# print 'class initialized...'
# #self.DataFilePathName = []
# #self.BuildFilepaths()
def __init__(self,p_datafilepathname):
print 'initialized readandloadperfpadbenchasof.py'
self.DataFilePathName = p_datafilep... | [
"noreply@github.com"
] | rtstock.noreply@github.com |
553ab201ccf7e1ce364dc3f6956d2b9849fcd972 | b341adbf938239c37c7c2cfe1c295ad1396d339b | /week06/geojson_worked_example.py | 562600cf296ecf90f15138f9bdce5102d79e63d1 | [] | no_license | sunda-y/UsingPythontoAccessWebData | c84025f1b724a2c10a5932c9a574ddde0079715f | 964deed29b531a8a5a79f24d234ae5329b25dd44 | refs/heads/master | 2021-01-24T08:11:54.277570 | 2018-03-04T15:37:27 | 2018-03-04T15:37:27 | 122,972,524 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | import urllib.request, urllib.parse, urllib.error
import json
serviceurl = "http://maps.googleapis.com/maps/api/geocode/json?"
while True:
address = input("Please enter location: ")
if (len(address) < 1):
break
url = serviceurl + urllib.parse.urlencode(
{"address": address}
)
... | [
"SundaySunxiran@gmail.com"
] | SundaySunxiran@gmail.com |
226f2dde2e7f83c6d967dd639b88280ff249582c | 661c0a56baddaa344c9c06cfd70ad60e776efe41 | /textminer/extractor.py | 179f5e65114a098feb217ba40014a2dd301cf8de | [] | no_license | lancekrogers/textminer | c6426bb519ac3d46c3fd6ec2dc2ac9ffa30562f9 | 21a24dc17e06d90d8df4ae785c72cbdc2a768dd3 | refs/heads/master | 2021-01-14T08:51:09.045553 | 2015-07-22T20:09:36 | 2015-07-22T20:09:36 | 37,545,282 | 0 | 0 | null | 2015-06-16T17:29:19 | 2015-06-16T17:29:19 | null | UTF-8 | Python | false | false | 136 | py | import re
def phone_numbers(text):
return re.findall(r"\(\d{3}\).\d{3}.\d{4}", text)
# hard mode
def emails(text):
pass
| [
"lancekincaid1994@gmail.com"
] | lancekincaid1994@gmail.com |
912732738030d84355aa57768facc7293bf43a88 | 187a6558f3c7cb6234164677a2bda2e73c26eaaf | /jdcloud_sdk/services/clouddnsservice/models/HostRRlb.py | a70c1c23618e54df92e3c0396719c63ee09311d7 | [
"Apache-2.0"
] | permissive | jdcloud-api/jdcloud-sdk-python | 4d2db584acc2620b7a866af82d21658cdd7cc227 | 3d1c50ed9117304d3b77a21babe899f939ae91cd | refs/heads/master | 2023-09-04T02:51:08.335168 | 2023-08-30T12:00:25 | 2023-08-30T12:00:25 | 126,276,169 | 18 | 36 | Apache-2.0 | 2023-09-07T06:54:49 | 2018-03-22T03:47:02 | Python | UTF-8 | Python | false | false | 1,141 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# 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 ... | [
"oulinbao@jd.com"
] | oulinbao@jd.com |
ffc7cf8cd00d31e3bf1693cd8ac482e0f6bdc78e | 7dab00e63b7193010344a0f05e0cc641d7091f5f | /students/Zhengtang_Yang/lesson07/Activity/populate_job.py | b7cce248e766d043f66bf5f3457c618ce6bd910c | [] | no_license | aurel1212/Sp2018-Online | 9307e872c14c5ddd795bdc738b325de087895d55 | 263685ca90110609bfd05d621516727f8cd0028f | refs/heads/master | 2020-04-05T18:35:49.761140 | 2018-06-19T18:24:27 | 2018-06-19T18:24:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,124 | py | """
Learning persistence with Peewee and sqlite
delete the database file to start over
(but running this program does not require it)
populate the DB with data
"""
from peewee import *
from v00_personjob_model import Person, Job, Department
import logging
def populate_db():
"""
... | [
"zyang888@uw.edu"
] | zyang888@uw.edu |
20b8d239d8fca159e12fc334016dc66ab721cc89 | d3092656c078cc461f7d80f74bfc51340be98bed | /KerasFuzzy/experiments/digit-recognizer-2.py | b2261336559d2aea92172341a6913acfdb491f0a | [] | no_license | kenoma/KerasFuzzy | d7beadfe770bf93c20a9b8f6f561b31b4e54fe94 | 679db95dc74af91175f811c0bf21af880213e2a4 | refs/heads/master | 2023-01-11T06:02:19.772627 | 2023-01-07T08:14:23 | 2023-01-07T08:14:23 | 126,618,152 | 21 | 5 | null | null | null | null | UTF-8 | Python | false | false | 13,144 | py | #%%
import sys
sys.path.insert(0, 'D:/projects/KerasFuzzy/KerasFuzzy/layers')
from fuzzy_layer_2 import FuzzyLayer2
from defuzzy_layer_2 import DefuzzyLayer2
from defuzzy_layer import DefuzzyLayer
import pandas as pd
import numpy as np
import datetime
import matplotlib.pyplot as plt
np.random.seed(2)
random_seed = 2
... | [
"bghati@yandex.ru"
] | bghati@yandex.ru |
987b92e6df6ed00e5ca4fb6ce748e467405a8347 | f4434c85e3814b6347f8f8099c081ed4af5678a5 | /sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_03_22/aio/operations/_certificates_operations.py | 4fdc763e3e5033ecae73c8337024f88ac2e80684 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | yunhaoling/azure-sdk-for-python | 5da12a174a37672ac6ed8e3c1f863cb77010a506 | c4eb0ca1aadb76ad892114230473034830116362 | refs/heads/master | 2022-06-11T01:17:39.636461 | 2020-12-08T17:42:08 | 2020-12-08T17:42:08 | 177,675,796 | 1 | 0 | MIT | 2020-03-31T20:35:17 | 2019-03-25T22:43:40 | Python | UTF-8 | Python | false | false | 23,167 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | yunhaoling.noreply@github.com |
4599ace703ad37d50d4e3e1ee36e57491d12aebf | 6b5b3396ebf5c1af4f6f14cbeb03fc9bc4570a23 | /www/Webserver.py | f703d55dccf3102a6d3ac6083df3373cec870017 | [
"CC-BY-3.0",
"OFL-1.1",
"MIT"
] | permissive | william-stearns/E_ink_dashboard | 0f5b03ec2da1a54a5941a35f2b957b7e3d62abb0 | 1625b213baef336833497c4593157485cfffdad4 | refs/heads/main | 2023-02-03T21:20:00.375604 | 2020-12-13T10:36:02 | 2020-12-13T10:36:02 | 323,455,960 | 0 | 0 | MIT | 2020-12-21T21:52:08 | 2020-12-21T21:52:07 | null | UTF-8 | Python | false | false | 9,334 | py | from flask import Flask, render_template, request
from dashboard_forms import Dashform
#import create_pickle as p_j
import json
import os
app = Flask(__name__)
app.secret_key = 'dash_flask_key'
creddir = os.path.join(os.path.dirname(
os.path.dirname(os.path.realpath(__file__))), 'credentials/dash_id.json'... | [
"noreply@github.com"
] | william-stearns.noreply@github.com |
9daa5c6e9687c22774d2f1effd501abdaf003b84 | 2412ab2a7fdefe1d165a6ec63292fdbe965c5131 | /run_GOseq.py | 0cd6278fe2ee1279bbe8a15bc3b07ebb23156e13 | [] | no_license | cfc424/NGS | e7651d9cbd1309821f5251c3ab3c9c7ba9e19352 | a7fd0631adc7365d358e49f407e2ebe796163443 | refs/heads/master | 2023-03-21T14:36:05.877307 | 2019-11-13T01:09:13 | 2019-11-13T01:09:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,447 | py | #!/usr/bin/env perl
use strict;
use warnings;
use Getopt::Long qw(:config no_ignore_case bundling pass_through);
my $usage = <<__EOUSAGE__;
###############################################################################################
#
# --factor_labeling <string> tab delimited file with format: factor<ta... | [
"root@zinc.(none)"
] | root@zinc.(none) |
8efe16a04e801c369c14cae73a57768ce018fca8 | 7ada9e1ede668f402ae9598bc1e5c3caa17658d5 | /app.py | 8a289bef4395897b72277d2ebdd8646b27963cf4 | [] | no_license | nikolaskarta/Information_Systems_Project1 | a2db2e838a824c2b0b62a340a782bd20b9ba9c5c | d6f325c73af0a3b835827da07ed78941bd36e100 | refs/heads/main | 2023-05-05T09:14:22.117293 | 2021-05-16T20:43:26 | 2021-05-16T20:43:26 | 367,971,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,748 | py | from pymongo import MongoClient
from pymongo.errors import DuplicateKeyError
from flask import Flask, request, jsonify, redirect, Response
import json
from bson import json_util
import uuid
import time
# Connect to our local MongoDB
client = MongoClient('mongodb://localhost:27017/')
# Choose database
db =... | [
"noreply@github.com"
] | nikolaskarta.noreply@github.com |
a1f08199e9d65120982277c5b73430048437c363 | e751c59ca3c98c8f6a98b7c6fc7167fe615aa1b0 | /streamz/orderedweakset.py | 82136ecdea1138314b8cd2277154f13f468712af | [
"BSD-3-Clause"
] | permissive | yutiansut/streamz | a10e0d2beefd450b5d19cb7d78b4c8a333ebcd48 | e51f0397d27957f8b3bfc78ecdb946cbfbac21b6 | refs/heads/master | 2020-07-10T15:23:35.567092 | 2019-12-24T07:07:43 | 2019-12-24T07:07:43 | 204,297,562 | 1 | 0 | NOASSERTION | 2019-12-24T07:07:44 | 2019-08-25T13:24:35 | Python | UTF-8 | Python | false | false | 977 | py | # -*- coding: utf8 -*-
# This is a copy from Stack Overflow
# https://stackoverflow.com/questions/7828444/indexable-weak-ordered-set-in-python
# Asked by Neil G https://stackoverflow.com/users/99989/neil-g
# Answered/edited by https://stackoverflow.com/users/1001643/raymond-hettinger
import collections
import weakref
... | [
"mrocklin@gmail.com"
] | mrocklin@gmail.com |
3b3b4383ef951f3c0055d62bc0357e73dea7e020 | c85a766dca16877993cc4477e5da3c117851aa1d | /src/recaptcha/client/captcha.py | 7a54cbad28f130fe454ad497335e9b257cdf4ae8 | [] | no_license | iguzu/banian | 467ddebbb65126b3611dc9a7d4acf6a03c1d0287 | 9158d7036061400f262ddfa79210fe9f5710097a | refs/heads/master | 2021-05-28T10:53:07.819656 | 2010-03-09T03:55:24 | 2010-03-09T03:55:24 | 532,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,653 | py | import urllib
from google.appengine.api import urlfetch
"""
Adapted from http://pypi.python.org/pypi/recaptcha-client
to use with Google App Engine
by Joscha Feth <joscha@feth.com>
Version 0.1
"""
API_SSL_SERVER ="https://api-secure.recaptcha.net"
API_SERVER ="http://api.recaptcha.net"
VERIFY_SE... | [
"sbl@iguzu.com"
] | sbl@iguzu.com |
58ecd20ff1982f1c16f54d7e4aab822e9e33c351 | b7a8cedcd7df9a70eda8432866bdbe8a33833dab | /Day 54 Web Dev/decorator.py | ca01adc8d724b84b07f1ce8739267057526e763c | [] | no_license | shidoken/100DaysofPython | 55bcd703382fa2ca875e428aee902652efaf4d27 | 3808560893dc7097d82fd59c545d647278415c8f | refs/heads/main | 2023-04-03T18:10:08.202986 | 2021-04-16T07:12:16 | 2021-04-16T07:12:16 | 329,128,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | import time
def c_time():
current_time = time.time()
return current_time
def speed_calc_decorator(function):
def wrapper_function():
# Do something before
function()
function_name = function.__name__
time_1 = c_time()
function()
time_2 = c_time()
d... | [
"noreply@github.com"
] | shidoken.noreply@github.com |
afe7b68eebc859166be1c5e13503095b75df042c | 3527ff6346f98a5b7c51ce3c58428227f4bc8617 | /acwing/800.py | 3e10fbf147a1197999a55e116c697baa1c94510e | [] | no_license | ShawnDong98/Algorithm-Book | 48e2c1158d6e54d4652b0791749ba05a4b85f96d | f350b3d6e59fd5771e11ec0b466f9ba5eeb8e927 | refs/heads/master | 2022-07-17T04:09:39.559310 | 2022-07-13T15:46:37 | 2022-07-13T15:46:37 | 242,317,482 | 0 | 0 | null | 2020-10-11T14:50:48 | 2020-02-22T09:53:41 | C++ | UTF-8 | Python | false | false | 277 | py | n, m, x = map(int, input().split())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
i = 0
j = m -1
while i< n:
while j >= 0 and A[i] + B[j] > x:
j -= 1
if j >= 0 and A[i] + B[j] == x:
print(f'{i} {j}')
break
i += 1
| [
"ShawnDong98@gmail.com"
] | ShawnDong98@gmail.com |
93111d9e9273607e9c92ad7799985e969cb48408 | e97434a363fc559d070ba7439abf07ee975e3415 | /IPL/pointstable/serializers.py | e86338f7da56852b5574166e3f0737de70b88165 | [] | no_license | vipulpathak113/iplbackend | 2c9311b5869018be9b4fc8e1c50f66d8d444e0f6 | 7be4c3cfe2c21ed4aef2634de0fbeb4a2e85142c | refs/heads/master | 2020-07-30T21:30:23.578815 | 2019-09-23T13:38:22 | 2019-09-23T13:38:22 | 210,364,946 | 0 | 1 | null | 2020-07-21T22:00:00 | 2019-09-23T13:40:32 | Python | UTF-8 | Python | false | false | 265 | py | from rest_framework import serializers
from .models import PointsTable
class TeamlistSerializer(serializers.ModelSerializer):
class Meta:
model = PointsTable
fields = ('id', 'team_name', 'played', 'won', 'lost', 'no_result', 'points', 'nrr')
| [
"vipulkumarpathak@ASDP1740PO02529.qait.com"
] | vipulkumarpathak@ASDP1740PO02529.qait.com |
fca6944ac17fdb848882685b614c20e6f19803df | fb594bf2cd33157a1d1d486e25c8014d6463fe9b | /project-1/expriments/plot-hidden-num.py | c3c6e7a2d5a09c0a704fe067d167cd044bdddd80 | [] | no_license | ShirleyHan6/CZ4042-Assignments | 6469d2977b07302c5496eb9f83b360e6e5f06500 | 915b2e53008575741627333103bafbef1a91d600 | refs/heads/master | 2020-08-14T00:01:36.843411 | 2019-11-16T05:57:25 | 2019-11-16T05:57:25 | 215,060,266 | 0 | 2 | null | 2019-11-16T05:57:27 | 2019-10-14T14:05:58 | Python | UTF-8 | Python | false | false | 489 | py | import pickle
from utils.utils import plot_batched_accuracies, plot_train_val_accuracies
with open('val-accs-hidden-num.pickle', 'rb') as f:
val_accs_dict: dict = pickle.load(f)
with open('train-accs-opt-hidden-num.pickle', 'rb') as f:
train_accs: list = pickle.load(f)
with open('val-accs-opt-hidden-num.pickl... | [
"yli056@e.ntu.edu.sg"
] | yli056@e.ntu.edu.sg |
25c35446e2c1e506709da0324a51c48114a589fb | fab8b89c723caf54ed49e2f0da8be592243d21ee | /Matlab/Stepping-Stones_msg_gen/catkin_ws/src/morpheus_skates/src/calibration_arduino.py | 98f7a24660c9f498b08d643c37d9f31ccb94fcf0 | [] | no_license | saunair/Stepping-Stones | 97752f5b9dad10cbe8cb4a208b99fefe99b7be05 | 177c9e884779227beaa725efb1f061d1a52db751 | refs/heads/master | 2021-06-20T16:12:46.651961 | 2017-07-27T16:46:46 | 2017-07-27T16:46:46 | 72,512,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,395 | py | #!/usr/bin/env python
# license removed for brevity
import rospy
import time
from std_msgs.msg import UInt16
import yaml
from morpheus_skates.msg import skate_feedback
import os
import rospkg
#config_file = '~/catkin_ws/src/motor/config/calibration_values.yaml'
#config_file = '/home/stepping/mrsd_team_H/Stepping-Sto... | [
"bfactor@andrew.cmu.edu"
] | bfactor@andrew.cmu.edu |
5d9d6c025131f2a3f97852b760a240950735157f | 46eb22dbe3514fc586ca57dd5e9a2ef1e486ed7e | /src/lanyon/parser.py | 5e43a9d5db751938ac34fd688b085ebb43fc5d44 | [
"BSD-3-Clause"
] | permissive | arthurk/lanyon | 06d37d2e96358a190f8926a65f9f8df00db09393 | d4c319cc5659c50aa3e356cbf74e976ba82acc4b | refs/heads/master | 2021-01-17T07:41:28.518803 | 2011-04-16T11:37:06 | 2011-04-16T11:37:06 | 804,624 | 5 | 2 | null | 2016-06-06T13:33:41 | 2010-07-29T06:45:49 | Python | UTF-8 | Python | false | false | 6,056 | py | import datetime
import re
from os.path import splitext
class ParserException(Exception):
"""Exception raised for errors during the parsing."""
pass
class Parser(object):
output_ext = None
def __init__(self, settings, source):
self.settings = settings
self.source = source
self.... | [
"arthur@arthurkoziel.com"
] | arthur@arthurkoziel.com |
ae5543276e6ec4f6dc0823885d5ba0a303c5e818 | cfc3fa658f826d02308453e557d82758895399c2 | /datasets/covid_qa_deepset/covid_qa_deepset.py | d43c1e5924c54b5a73b245220e1e6d2c37d225e1 | [
"Apache-2.0"
] | permissive | meehawk/datasets | cac530ec0e17514c01cdff30302521d6303ed93b | b70141e3c5149430951773aaa0155555c5fb3e76 | refs/heads/master | 2023-03-29T12:51:54.700891 | 2021-04-08T17:22:53 | 2021-04-08T17:22:53 | 355,996,122 | 9 | 0 | Apache-2.0 | 2021-04-08T17:31:03 | 2021-04-08T17:31:02 | null | UTF-8 | Python | false | false | 4,607 | py | # coding=utf-8
# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# 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/lice... | [
"noreply@github.com"
] | meehawk.noreply@github.com |
67c14f9b85a6fc763604cad2949acf2dbcbbab72 | 00c3f5934ba4e674c8f01ab1fc2d30f7eb9a803d | /Performance_Metric_Functions.py | 61f8f2501d66a75e12708503079a7b8a7bc81b5e | [] | no_license | alexanderbooth/Prattle_Interns | a67224ba82bafe661f95d7f8443fabbf009c3a03 | a97c65596af89feee6e6db7be281ce08f0a5f459 | refs/heads/master | 2020-12-31T01:48:31.110739 | 2015-07-06T21:44:36 | 2015-07-06T21:44:36 | 37,205,087 | 0 | 0 | null | 2015-06-10T15:20:47 | 2015-06-10T15:20:46 | Python | UTF-8 | Python | false | false | 5,587 | py |
# coding: utf-8
# In[2]:
import dateutil.parser
import json
import matplotlib.pyplot as plt
import numpy
import pandas as pd
import pandas.io.data
import requests
import datetime
import math
import operator
import scipy
import requests
import calendar
import statsmodels.api as sm
# In[3]:
#NEEDS COMMENTS FROM AL... | [
"jacob.cavner@gmail.com"
] | jacob.cavner@gmail.com |
dfa597d173fb2935cab5373869ba275323196172 | 7b1119c13af2a2c165d860123499ea1eba02b0f2 | /Own Implementation Final/activation.py | 932da22c017c53272c91e249e28f8fab421cee30 | [] | no_license | mohamed-minawi/RNN | 232adf641b9037357d680ff968d18e87d41bfdab | bfc452a650153967189139c51ed289a70e14b5ad | refs/heads/master | 2020-03-22T13:10:43.867256 | 2018-07-07T14:13:54 | 2018-07-07T14:13:54 | 140,088,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | import numpy as np
class Sigmoid:
def forward(self, x):
return 1.0 / (1.0 + np.exp(-x))
def backward(self, x, top_diff):
output = self.forward(x)
return (1.0 - output) * output * top_diff
class Tanh:
def forward(self, x):
return np.tanh(x)
def backward(self, x, top_di... | [
"mohamed-minawi@aucegypt.edu"
] | mohamed-minawi@aucegypt.edu |
64a3215ec3906affa3702053fa372ce9684ba680 | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/System/Windows/Media/Animation_parts/Timeline.py | fc7d6ac0df9229690da3777f143d98381abde625 | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 14,492 | py | class Timeline(Animatable,ISealable,IAnimatable,IResource):
""" Defines a segment of time. """
def AllocateClock(self,*args):
"""
AllocateClock(self: Timeline) -> Clock
Creates a System.Windows.Media.Animation.Clock for this System.Windows.Media.Animation.Timeline.
Returns: A clock for this System.Win... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
308b48444a600edc33da2bb114ac11b915fe08b0 | 07009e377963302aaebb44861d1e96c4de359b7c | /maio/management/commands/maio_getimages.py | cb4597b04599b7b0001a3706b628a8d80a9e8bc4 | [
"MIT"
] | permissive | jonmsawyer/maio_old | 3489307ecb02b54317ec7e88554b0acb973434ec | 3670d0fe2a4e9173ac3d02fe7b629f563e935894 | refs/heads/master | 2021-06-21T09:00:18.703397 | 2017-07-08T20:54:06 | 2017-07-08T20:54:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,306 | py | import os
import sys
import hashlib
import magic
from PIL import Image
from django.core.management.base import CommandError
import django.db.utils
from maio_core.models import File
from maio.management.commands._base import MaioBaseCommand
class Command(MaioBaseCommand):
args = '<None>'
help = 'Generates a ... | [
"jon@jonmsawyer.com"
] | jon@jonmsawyer.com |
f889324acec930ae67fcd208eae5a87585845cd0 | 2cda9caaa7a0f070139e39cae13744b11e0066ec | /Day5Class/NSAEncoder3.py | 61b8b4c2abf814d71896f4ba16966cabb79187de | [] | no_license | sc137/WASTC_Programming_Concepts_Python | 68df4e5cf016c56c571cc2ef51f1919e6140bf4d | 3f8d2ed614d04087e2211fa7a603c1b5a1e12c79 | refs/heads/master | 2021-01-19T00:31:29.481577 | 2016-07-05T19:05:35 | 2016-07-05T19:05:35 | 61,576,736 | 1 | 1 | null | 2016-06-24T20:54:59 | 2016-06-20T20:06:01 | Python | UTF-8 | Python | false | false | 729 | py | # version 1.0
fin = open('input.txt')
fout = open('output.txt', 'w')
encoded = []
decoded = []
while True:
sOld = fin.readline()
sNew = ""
if len(sOld) == 0:break
for i in range(len(sOld)):
sNew = chr(ord(sOld[i]) - 1)
encoded[len(encoded):] = [sNew] # Inserts at the end
i +=... | [
"sales@dansid.com"
] | sales@dansid.com |
b9c66f7ddec07dd1b3c1c83bccd25902d510d6a9 | d149fc886482603e0cb3c7788284e9de16cc6edd | /DecisionTree/studentMain.py | e478aded910070a35d93dd1d66ab7e69c31be287 | [] | no_license | lishengxu/ud120-sklearn | 12451eac1ad06ef0999980182ed7577db1c2e5bf | b831a944410a5e503255cba524499d87b1f9e820 | refs/heads/master | 2020-03-28T13:38:15.602433 | 2018-10-15T12:12:35 | 2018-10-15T12:12:35 | 148,413,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | #!/usr/bin/python
""" lecture and example code for decision tree unit """
import sys
from class_vis import prettyPicture, output_image
from prep_terrain_data import makeTerrainData
import matplotlib.pyplot as plt
import numpy as np
import pylab as pl
from classifyDT import classify
features_train, labels_train, fea... | [
"lsx1@meitu.com"
] | lsx1@meitu.com |
69977fa0a2c06e8ff76915a512f98a4297e62f81 | bb607ff53fba9fe657291f6249c2c22abda2db4c | /settings.py | abb0840405d3700432a6d955f107a180498f66fb | [
"MIT"
] | permissive | AdrianSosaUV/pacman | 0c2442913f3b62fe42b19eb1e32e213ed8bd55e2 | 09865179cf0d92bab0f0276a3dfe49a6727c9bb4 | refs/heads/main | 2023-07-02T18:45:33.439762 | 2021-08-01T22:17:17 | 2021-08-01T22:17:17 | 381,440,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | import pygame
import random
import sys
from pygame.math import Vector2 as vec
##### SCREEN SETTINGS #####
TOP_BOTTOM_BUFFER = 50
WIDTH, HEIGHT = 610, 670
MAZE_WIDTH = WIDTH - TOP_BOTTOM_BUFFER
MAZE_HEIGHT = HEIGHT - TOP_BOTTOM_BUFFER
FPS = 60
COLS = 28
ROWS = 30
##### COLOR SETTINGS #####
BLACK = (0, 0, 0)
ORAN... | [
"adrsosa@uv.mx"
] | adrsosa@uv.mx |
6e1aa88b726678e7f8b9712a1ce89865aa0879a7 | 98819f2bd523a159a5ea820f76f1705879048b32 | /osb-proxy/editPOIexec | 781f1de029acd8cff60eec463b1f255a790500dd | [] | no_license | cboehme/mappa-mercia | 97f9bcf11b4950772acf28c0f5fb0d14c2dee008 | 6a63007587d54c9771c71e707b734495b3041cdf | refs/heads/master | 2023-07-19T04:43:12.884620 | 2021-09-09T11:55:08 | 2021-09-09T11:55:08 | 305,172,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | #!/usr/bin/env python
import MySQLdb
import cgi
import re
def main():
print "Content-type: text/html\n"
form = cgi.FieldStorage()
values = {}
values["id"] = form.getfirst("id", "")
values["text"] = form.getfirst("text", "")
# Check that parameters have a valid format:
if not re.match(r"^\d+$", values["id"]):... | [
"christoph@b3e.net"
] | christoph@b3e.net | |
a92459e9e8ae533390d8cd2ec5542ac8dbe5714e | 7e9977bbf988fe2136529640afb08460cce833bc | /HeroRegistrationProj/manage.py | c117eea3936972ec247c0372ef508f7c1c854c19 | [
"Apache-2.0"
] | permissive | cs-fullstack-2019-spring/django-fields-widgets-cw-itayanna | b8c761376f89fd0c8b4d2fead46b5dc75a7194df | 7702fe9b541dfaf5ac0458729bcdacd538b6c232 | refs/heads/master | 2020-04-27T13:24:13.427170 | 2019-03-12T14:37:11 | 2019-03-12T14:37:11 | 174,368,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "HeroRegistrationProj.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import... | [
"icage97@gmail.com"
] | icage97@gmail.com |
10f5ab79003ff1e2cbfd7c31754b890b1ab31a6d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03283/s440786665.py | fe6e5bf6654473cf6b9ff410adac87f56d2c24dd | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | class BIT:
def __init__(self, n):
self.n = n
self.bit = [0]*(self.n+1) # 1-indexed
def init(self, init_val):
for i, v in enumerate(init_val):
self.add(i, v)
def add(self, i, x):
# i: 0-indexed
i += 1 # to 1-indexed
while i <= self.n:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4c746a134c722966896c1d1fd737f5e6b1e8bd09 | dfa0f11043ea0848526ec069efb644c715fdf67c | /AppiumGS V0.1/Logic/Base.py | 56aa7b37c92af587130eff1f7d26f1213518471f | [] | no_license | shaonianshaonian/appiumyaml | 81f4578863019ed07a9010c1232d3ed4f7d6bb12 | 0e00e8dc34ce7d8a0e6b83371b02a564bb89f4fb | refs/heads/master | 2020-12-30T11:28:02.398290 | 2017-05-23T02:21:02 | 2017-05-23T02:21:02 | 91,561,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,168 | py | __author__ = 'shaonianshaonian'
from appium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
import time
class Base:
driver = None
desired_caps = {}
desired_caps['platformName'] = 'Android'
desired_caps['platformVersion'] = '5.1'
desired_caps['deviceName'] = '192.168.12.101... | [
"953577962@qq.com"
] | 953577962@qq.com |
744c28d6995722779eb62143a829e3a0342ff3aa | 600879a175c0d077ffdc7f06b630517eedc712c7 | /parser.py | 950b7c097dd191064002d04fe052056881e4a763 | [] | no_license | lebahoang/cooking-chatbot | 7a41ae5275f81c1bc5f09d4a751abcbc66774be2 | 36c2dd74d29aa9f1e28a399651e36c65fbb4c06d | refs/heads/master | 2021-01-20T15:09:47.185166 | 2017-05-15T04:19:33 | 2017-05-15T04:19:33 | 90,725,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,376 | py | import os
import functools
import bson
import optparse
import pykka
import time
import Discusscooking
import Crutils
class DiscussActor(pykka.ThreadingActor):
def __init__(self):
super(DiscussActor, self).__init__()
self.posts = []
self.site = Discusscooking.Discusscooking(runPreConfig=False)
def pars... | [
"hoang.le@zinio.com"
] | hoang.le@zinio.com |
e08be3ba1cb5e7385ca2ee43f750efd00c3a8623 | ecc3dd38ed577fe3d8eff65ab36e9123a3f9f48f | /Clustering/AngelCalvoTask1.py | 1fc98490623b243d5c08b59c18963223cb5b1514 | [] | no_license | AngelCalvoGrande/MachineLearningTechniques | 813299c394a805d5c422b9e1d426ffc0c4bdcfde | ac124af84581888fb73a64e263c865db3d42145a | refs/heads/master | 2020-08-09T06:40:46.469766 | 2020-01-31T22:35:20 | 2020-01-31T22:35:20 | 214,023,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,639 | py | # -*- coding: utf-8 -*-
"""
Editor de Spyder
Este es un archivo temporal
"""
import pandas as pd
from mpl_toolkits.mplot3d import Axes3D
#0 . Load the data
# read the csv
df = pd.read_csv("T2.csv")
# list the columns
list(df)
# print number of rows and columns
print (df.shape)
# 1. Filtering
# 1.1 Filter rows... | [
"noreply@github.com"
] | AngelCalvoGrande.noreply@github.com |
885ab0e81a4c8b85a9a027b63a65dd41a961590c | 63eae9dff408b3b8e3fa22fcfcbb012b025854bf | /shop/templatetags/app_filters.py | a440fed183a07d8b1b47772206ced7f0bffbd742 | [] | no_license | adityasam1994/dlw | 2fe88858ea80e1d04cd3c9349ecdbcf41f24bb30 | e0bc5a0b8f52e1deaa655d3d95d4860285a059bb | refs/heads/master | 2020-08-09T03:40:31.143100 | 2019-10-16T09:51:16 | 2019-10-16T10:00:07 | 213,988,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,382 | py | from django import template
from django.template.defaultfilters import stringfilter
import datetime
from django.utils import timezone
register = template.Library()
@register.filter(name='getimage')
@stringfilter
def getimage(string):
from shop.models import Image
im = Image.objects.filter(product_id=int(strin... | [
"adityanath1994@outlook.com"
] | adityanath1994@outlook.com |
bbf927c655fcaa281080a77ef766b9c16e906256 | 907edfeeccf9a11cbc8dbe7d104cbaa9d561baf1 | /Algorithms/Embedding/2. Density Text/Error Diffusion/Density Sierra.py | 813557e39c97ed85203207fcc6ea9d7b0da55ba0 | [] | no_license | JGPreston/Final-year-project | c31076e006f3d20505d4e12501ebb281c822e10e | f46e932bc6fcf22f242c332dc52dd2a05da2a239 | refs/heads/master | 2023-08-17T19:40:29.165112 | 2021-10-10T16:59:06 | 2021-10-10T16:59:06 | 415,642,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,682 | py | from PIL import Image
import time
import numpy as np
import binascii
import os
import traceback
import re
import statistics
import collections
import matplotlib.pyplot as plt
from collections import Counter
#Excel
import openpyxl
#Add path to directory
import sys
sys.path.append("../../../Analysis/PSNR+SSIM/")
from... | [
"32721120+JPreston-1@users.noreply.github.com"
] | 32721120+JPreston-1@users.noreply.github.com |
3250c742e18eed7ddfe5a22d65db4e60f3926cbe | 4039fa476687096b4cc6e931da6e81bc2f5f136b | /guestbook/migrations/0001_initial.py | 818ec5376f6f2966eb42ad91719a4eeaa23caa4e | [] | no_license | Kuzzmich/broomtrade | 469073625d0e880640641defd939759639399009 | 93f82de850e8b9148adfd89f2158fb575d6cb73f | refs/heads/master | 2020-03-08T20:19:34.258706 | 2018-06-07T12:45:31 | 2018-06-07T12:45:31 | 128,379,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | # Generated by Django 2.0 on 2018-04-11 09:18
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Guestbook',
fields=[
('id', models.AutoField(... | [
"kramin.alexey@gmail.com"
] | kramin.alexey@gmail.com |
07a63215fea749792f50a56c355479e76e5b0bc7 | d180a90cdf7a3fb49117652ad437fdea8718b0cd | /clipped_linear.py | 939f7d3efcf9ba1fff5eb58c311d2dfd5dc4c2c6 | [] | no_license | parap1uie-s/Co-Adaptive-Mixed-Precision-CNNs | 31d08048cda2114919afd470321ddec2ec31e49e | 3ea45558bc18f22b4b33b5127b9c349187440898 | refs/heads/master | 2020-11-23T19:10:30.879703 | 2019-12-16T10:22:33 | 2019-12-16T10:22:33 | 227,783,568 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,513 | py | #
# Copyright (c) 2018 Intel Corporation
#
# 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... | [
"shangfangxin@ShangFangxin.local"
] | shangfangxin@ShangFangxin.local |
b7a67705b4d88255bfb2c97fac26bb30ee8d70cf | d3ee2dea9d3eac84d6309eb522ea72c21819a04d | /Aula 05. Laço/calcula_serie.py | dc9d5f16d951b0eba494d900e87d0ee8764cbd75 | [] | no_license | ArthurCisotto/insper.dessoft | 477faf97f6a340c06deb68c9838cd5da9b943e15 | 22b13b1b39141cfad6f3f57fc919fc02eddc1ee7 | refs/heads/master | 2023-07-05T03:06:13.542442 | 2021-09-01T11:41:46 | 2021-09-01T11:41:46 | 350,466,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | def calcula_serie(a,b,n):
soma = 0
for i in range(n):
soma += 1/(a**(i*b))
return soma
| [
"noreply@github.com"
] | ArthurCisotto.noreply@github.com |
7e0d640376e63f86e98bb1d374db75fba481468c | 98db4a1bb76ec58a5c42996a0e571c75913f40d6 | /exercise32.py | e702477a06deb0f09b706a2fd825a02dc267d8e9 | [] | no_license | YoChen3086/PythonPractice | f26479e1c5c9494a20b47425336469101aded53b | cea760699fc9e55106d562b1d63f547190ac98b5 | refs/heads/master | 2020-05-13T22:31:38.652864 | 2019-04-16T10:37:04 | 2019-04-16T10:37:04 | 181,668,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | # 题目:
# 按相反的顺序输出列表的值。
a = ['one', 'two', 'three']
for i in a[::-1]:
print (i) | [
"d87487575107@gmail.com"
] | d87487575107@gmail.com |
a4739e6b7b3fa154e27241a940dfcb81a0f52890 | 3ce0e97886f4ab528470653991aebbde29b0c4eb | /catalog/tests/test_models.py | f4f4e9c867427250fc2d128bed151587bc0de567 | [] | no_license | ahashim01/django-locallibrary | 5f4ef97c964e4a3a44aa936d687039a0e20300f7 | d661336e8a258a9959918d0a070ada509e3c49e9 | refs/heads/main | 2023-06-25T21:53:51.898114 | 2021-07-23T14:42:14 | 2021-07-23T14:42:14 | 388,821,839 | 0 | 0 | null | 2021-07-23T14:42:15 | 2021-07-23T14:06:11 | Python | UTF-8 | Python | false | false | 1,356 | py | from django.test import TestCase
from catalog.models import Author
# Create your tests here.
class AuthorModelTest(TestCase):
@classmethod
def setUpTestData(cls):
# Set up non-modified objects used by all test methods
Author.objects.create(first_name='Big', last_name='Bob')
def test_first_... | [
"ahmedalaahashem01@gmail.com"
] | ahmedalaahashem01@gmail.com |
1994b2ed70e786f28ee1b7718183c2fd83e2f3a8 | 4f0195aa9a3a161f898bc85d7081792875ee096b | /test.py | c7f90cb17921659789c931821ed2354cde89e761 | [
"Apache-2.0"
] | permissive | dheeraj135/Flow-Free-Solver | 141b789b0048493d6fff3a3fe380ccfcb5024979 | 325d377f9e0786105e64a893d91491a85abe38a5 | refs/heads/main | 2023-01-29T02:14:33.054486 | 2020-12-10T19:14:44 | 2020-12-10T19:14:44 | 319,928,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | from z3 import *
def solve(phi):
s = Solver()
s.add(phi)
r = s.check()
if r==sat:
print("sat")
m = s.model()
print(m)
else:
print("unsat")
solve(phi) | [
"dhirajyadav135@gmail.com"
] | dhirajyadav135@gmail.com |
7586bcfb03e48fa8291c02cce4d8609e56263346 | b7303814936202841acc710b793c7f9fc26ef6d9 | /project-job-insights/src/jobs.py | 49c761de2c98f1c4af8e0a3976d9187bccdfd63f | [] | no_license | victor-felipe-code/projetos_trybe | 4027aaa77f12180b051aea032fa4ef75ed7e9084 | 8e9d8c4a716321ab6b14eadd3de371326bbaf06a | refs/heads/master | 2023-08-16T21:57:42.994317 | 2021-09-27T19:08:08 | 2021-09-27T19:08:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | import csv
from typing import List
def read(path: str) -> List[dict]:
"""Reads a file from a given path and returns its contents
Parameters
----------
path : str
Full path to file
Returns
-------
list
List of rows as dicts
"""
# esse código estava com algum comp... | [
"victorfelipeoliveira1@gmail.com"
] | victorfelipeoliveira1@gmail.com |
3a12ef11cb456aa1655cff4b35934ba431905c60 | f09e98bf5de6f6c49df2dbeea93bd09f4b3b902f | /google-cloud-sdk/lib/surface/kms/__init__.py | 0d7325c69d646db4cfbaff6358f3574909329d0a | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Peterfeng100/notepal | 75bfaa806e24d85189bd2d09d3cb091944dc97e6 | d5ba3fb4a06516fec4a4ae3bd64a9db55f36cfcd | refs/heads/master | 2021-07-08T22:57:17.407571 | 2019-01-22T19:06:01 | 2019-01-22T19:06:01 | 166,490,067 | 4 | 1 | null | 2020-07-25T04:37:35 | 2019-01-19T00:37:04 | Python | UTF-8 | Python | false | false | 1,892 | py | # -*- coding: utf-8 -*- #
# Copyright 2017 Google Inc. 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 requir... | [
"kevinhk.zhang@mail.utoronto.ca"
] | kevinhk.zhang@mail.utoronto.ca |
64e6e5f1b7535a036a951d60f63e3f0d13603ffd | 40bb50de9c868dc8ac23c426a9f8386ac463d18f | /src3/dataset.py | 531220c9f7bc8d384f2bf3385cfe0eab2309274d | [] | no_license | durbin-164/Bengali_Ai | 8dcfd23e96a2c446315a542eb00528c6c468b384 | 36beb6da1bc04a4e4e83082dd080290f06bad161 | refs/heads/master | 2022-04-08T03:49:22.689816 | 2020-03-12T16:09:00 | 2020-03-12T16:09:00 | 242,517,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,474 | py | import pandas as pd
import joblib
from PIL import Image
import albumentations
import numpy as np
import torch
class BengliDatasetTrain:
def __init__(self, folds, img_height, img_width, mean, std):
df = pd.read_csv('../input/train_folds.csv')
df = df[['image_id', 'grapheme_root','vowel_diacritic', ... | [
"masud.rana@infolytx.com"
] | masud.rana@infolytx.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.