blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
debcb753a03393a82bff079b4eeede9847cf8a5e | c02ef8e586a52bf9e548098ff6673639f8435180 | /t2to3/walk/__init__.py | 51a55b4322d287e11870905957d4abc7b9cb53e2 | [
"MIT"
] | permissive | trumanw/t2to3 | ad7f84c3a5a942a09169b449d2807750356c81d1 | 7abdb304b84dcf19b1dc7684a442df096c318691 | refs/heads/master | 2020-12-28T08:52:06.507882 | 2020-02-24T09:49:57 | 2020-02-24T09:49:57 | 238,253,550 | 0 | 0 | MIT | 2020-02-24T09:49:59 | 2020-02-04T16:37:27 | Python | UTF-8 | Python | false | false | 19 | py | from .walk import * | [
"chunan.wu@xtalpi.com"
] | chunan.wu@xtalpi.com |
e0dce17c7d0a408c4ac94daea1d8b126aa2a503d | cf983282bd27b7075915e150dd6869fc68002dff | /manila/share/drivers/lvm.py | 4b39c8a71362c8dc93b1e6a534a77c168b0b036c | [
"Apache-2.0"
] | permissive | scality/manila | 437f5b1cd768626e9ba5df57e21f5a8e30a7201a | b4a67d033cdcbc1389ae52f35ad281be7a18c9ae | refs/heads/master | 2021-01-21T06:02:38.912136 | 2016-08-04T00:46:08 | 2016-08-04T00:46:08 | 36,364,592 | 1 | 2 | Apache-2.0 | 2021-03-25T16:04:17 | 2015-05-27T12:13:10 | Python | UTF-8 | Python | false | false | 14,018 | py | # Copyright 2012 NetApp
# Copyright 2016 Mirantis 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
#... | [
"ben@swartzlander.org"
] | ben@swartzlander.org |
3d8fd81eb1554e7c0714d3e41616b558aba6dd78 | 1ac09c0d00b07b43c7559f82f61f756eecb5ad63 | /tracker/routes/.~c9_invoke_7Hv6Ln.py | bf5856d42ab232dc7f0f91b157fd057d795dd7a1 | [] | no_license | Code-Institute-Submissions/product-request-tracker | 1dc2566418baac5cd20f7eb416c6c785d522575c | c60dda121fbed22e41ff3d3b5096aa560a639a9a | refs/heads/master | 2023-05-10T06:01:04.432210 | 2020-02-25T19:02:07 | 2020-02-25T19:02:07 | 243,238,880 | 0 | 0 | null | 2023-05-01T21:21:04 | 2020-02-26T10:47:03 | HTML | UTF-8 | Python | false | false | 2,203 | py | from flask import Blueprint, render_template, request, redirect, url_for, flash
from flask_login import current_user, login_required
from tracker.extensions import db
from tracker.models import User, Posts, Suppliers, ProductType, Actions
main = Blueprint('main', __name__)
@main.route('/')
def index():
posts = P... | [
"ubuntu@ip-172-31-82-111.ec2.internal"
] | ubuntu@ip-172-31-82-111.ec2.internal |
f1d33a9fad9c5452c92e93fe30a2402dfbdda70c | 1ea860f218305659e191ae6ea1f8eef5236648a9 | /examples/colors.py | e9268aad8af824f6a48373203d4f1c8cac5c92ac | [
"MIT"
] | permissive | jethornton/dxf2plasma | 9e275c8c73dee376826bbeeeff51e609d3f34df2 | 27fd782448cb27b719884eeee319627cbc96c8f6 | refs/heads/master | 2020-09-06T14:49:26.514127 | 2019-11-13T18:17:05 | 2019-11-13T18:17:05 | 220,456,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,639 | py | #!/usr/bin/python3
from PyQt5.QtWidgets import QWidget, QApplication
from PyQt5.QtGui import QPainter, QColor, QBrush
import sys
"""
A colour is an object representing a combination of Red, Green, and Blue
(RGB) intensity values. Valid RGB values are in the range from 0 to 255.
We can define a colour in various ways.... | [
"bjt128@gmail.com"
] | bjt128@gmail.com |
329910711ef3ac8a418e5eb0a24d83f6f3d988ea | 0997e8f18d60d1f2604503b86494f4d7b23bcc1e | /Learning_Log/11_env/bin/sqlformat | b8f6dd5b6d2ba3b2ed495eea53e269bc7808f1f8 | [] | no_license | logicoperation66/django | b5e396466639e26a4717fd71f6078f3f47b005e0 | 3965e90f946289b150d4d95e71e906e53b85a91b | refs/heads/master | 2023-08-11T22:00:45.404296 | 2021-09-23T19:25:34 | 2021-09-23T19:25:34 | 398,197,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | #!/home/stinky/Django/Learning_Log/11_env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"adamwawrzyniak5@gmail.com"
] | adamwawrzyniak5@gmail.com | |
eaf87a426e894caddad0d836d8da5cdaaae825f8 | 07b27b8e7ae801709bc1bebb32566b5041eb5292 | /tests/client/client.py | ee3c22dd0a06d6ea7cb42ed8ef2f9c26b16ff708 | [] | no_license | wyaron/HomeGate | 7625b97017bea6e9b2b5ed2f479f504116667c2c | 95c60bf608374b9a06f1ffb22c5d1b8268837c76 | refs/heads/master | 2023-08-19T21:45:09.068435 | 2021-10-17T12:19:05 | 2021-10-17T12:19:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | import websocket
from threading import Thread
import time
import sys
import json
def on_message(ws, message):
print(message)
def on_error(ws, error):
print(error)
def on_close(ws, close_status_code, close_msg):
print("### closed ###")
def on_open(ws):
gate = {'gate_id': 'gate-benbenben'}
gat... | [
"tal.anker@gmail.com"
] | tal.anker@gmail.com |
6f02d7e1c07128df90d53d4ba42ca76fc3869c11 | 209b02100c49932a43cf147cd115e7c3722f320b | /client/forms.py | 9114ef0f53326718ef8bd0ea5c5dddf4814db407 | [] | no_license | elitehealth/tracker | 3e4f7dfae5b2cf23bd4eb67306fa05e66300d09b | c05af21d57d23f06b847f8cab208de40f34c39e4 | refs/heads/master | 2021-01-20T20:15:10.091991 | 2016-07-25T10:48:16 | 2016-07-25T10:48:16 | 62,283,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | from django import forms
from .models import Client
from django.template.defaultfilters import mark_safe
class ClientForm(forms.ModelForm):
class Meta:
model = Client
fields = [
'client_name',
'date_sign_up',
'program_sold',
'gross_sale',
... | [
"haykm2000@mail.ru"
] | haykm2000@mail.ru |
507b371514e0442eb6f87429ff7907f9236960bd | bb0de69113e40dc7fb320dcb36673ff5674e00a8 | /plugins/ed.py | 15dd338cf223f21103d793b13610f5717919c484 | [
"MIT"
] | permissive | lucasberti/telegrao-py | 14bb345cbc427442c738609c4e4531d01647ea89 | 84fbe0219b3f8e8e88e4e999ad239b4bdc741c2d | refs/heads/master | 2023-05-08T02:48:37.661478 | 2023-04-28T23:31:04 | 2023-04-28T23:31:04 | 90,514,350 | 0 | 6 | MIT | 2019-08-15T02:29:04 | 2017-05-07T06:51:07 | Python | UTF-8 | Python | false | false | 962 | py | import api
import requests
import re
import urllib.parse
def talk_to_ed(message):
print(urllib.parse.quote_plus(message))
ed_endpoint = f"https://in.bot/api/bot_gateway?pure=1&js=0&bot_id=133&bot_token=AGI-v01-EDo42vk8&user_phrase={urllib.parse.quote_plus(message)}"
try:
response = requests.get(e... | [
"berti.lucas@gmail.com"
] | berti.lucas@gmail.com |
6ec92dd72c28ca2f83fb098f71054c643f1c0816 | 93f7eefd835e58262e97aad8d04643236716268b | /openerp/addons/hr_payroll_13thmonth_pay/__init__.py | f97fe39786de9777316c0b6a2738cb9b16f5469f | [] | no_license | jassme16/Ezra_GenX_NEW | a47c6d1e1404a754c363f586e4f6e23ae7f14a82 | f1f4a3635423bfd392670090c65eefd1a74eb20a | refs/heads/master | 2021-01-01T05:13:45.199314 | 2016-05-05T10:01:51 | 2016-05-05T10:01:51 | 58,121,645 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | import thirteenmonth_pay | [
"kennethpaulnava@gmail.com"
] | kennethpaulnava@gmail.com |
9a3029aa9bb0a66d014a7a3ec7717db4d0f30d8a | 471cab6ba89d01cf0361722ee02cbc33b2787c49 | /_aula/aula009d_manip_texto_divisao-juncao.py | 2a5746ed8aeff0e9284ccb68ea8abe32d6c8dae7 | [] | no_license | ercris990/_curso_gg_py_3 | 2e9d6445ec9b0f40bca36bbfd684a09d5b91cb3b | fe4ab944be911edf51683fdab0d6aa452ed96b12 | refs/heads/master | 2022-11-30T02:00:53.947613 | 2020-08-09T10:59:41 | 2020-08-09T10:59:41 | 282,326,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | #Cadeia de Caracteres #divisao e juncao
frase = 'Curso em Video Python'
print(frase)
print('----------------------------------------')
print(frase.split()) #divide a string apartir dos espacos
print('----------------------------------------')
print(' '.join(frase)) ... | [
"ercris990@gmail.com"
] | ercris990@gmail.com |
6845f1afc2b3f70ae15b3ceca6302c7e25b8df22 | f8c17053073399dc2af1f8b083eddb4a636a6174 | /flask_taxonomies/__init__.py | 5bf557af637d55df5df61ae4b49297ef74a3ceed | [
"MIT"
] | permissive | Semtexcz/flask-taxonomies | d3d41b450f71d7190d7582a0484ed82f1d06dddf | dbff51adcb6892d17f821511a149360eebca7004 | refs/heads/master | 2021-07-14T10:51:45.204304 | 2020-04-03T10:31:35 | 2020-04-03T10:31:35 | 202,703,642 | 0 | 0 | null | 2019-08-16T09:55:28 | 2019-08-16T09:55:28 | null | UTF-8 | Python | false | false | 160 | py | # -*- coding: utf-8 -*-
"""Flask Taxonomies."""
from .ext import FlaskTaxonomies
from .version import __version__
__all__ = ('__version__', 'FlaskTaxonomies')
| [
"mirekys@gmail.com"
] | mirekys@gmail.com |
9eaed7819d886ec933a65429535fe29bef2129d8 | eda8b801aab469113be4053a7d492dde0da63373 | /metadata-ingestion/src/datahub/ingestion/source/metadata/business_glossary.py | 28df9565d4a868d1ebf6811b9ab727c2fd6b9e6f | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"MIT"
] | permissive | zuizeze/datahub | 630c00934e7b76eeb3a08feda7a112dd745ee18b | 63a37450103eff3e94d798c36bab6e47fbca47dc | refs/heads/master | 2022-09-06T19:53:02.219574 | 2022-08-13T00:35:53 | 2022-08-13T00:35:53 | 242,064,645 | 0 | 0 | Apache-2.0 | 2020-02-21T05:49:26 | 2020-02-21T05:49:25 | null | UTF-8 | Python | false | false | 9,058 | py | import logging
from dataclasses import dataclass, field
from typing import Any, Dict, Iterable, List, Optional, Union
from pydantic import validator
from pydantic.fields import Field
import datahub.metadata.schema_classes as models
from datahub.configuration.common import ConfigModel
from datahub.configuration.config... | [
"noreply@github.com"
] | zuizeze.noreply@github.com |
a0e0d3d59678d27bada63e72d1ef4660a924ae7b | 9a5854d7e73a6476f9c3ce7986078422acf983f6 | /mnemon/services/__init__.py | 5e3cc9cd8a5f8e2976c422777ca29b50012bec56 | [
"BSD-3-Clause"
] | permissive | papagr/mnemon | 2b48dd1beab048f7b0d27e7fe7bf887b350c2129 | e51787cea3d0d1a2d5e6b8b02211c2335ff73a11 | refs/heads/master | 2023-01-05T03:25:10.295473 | 2020-10-29T20:52:19 | 2020-10-29T20:52:19 | 305,522,288 | 1 | 0 | BSD-3-Clause | 2020-10-22T07:51:03 | 2020-10-19T21:55:41 | HTML | UTF-8 | Python | false | false | 1,802 | py | from mnemon.services.scheduler import init_scheduler
from mnemon.persistence.article import MongoDBArticleRepository
from mnemon.application.article import ManageArticleService
from mnemon.services.content import Arc90ContentExtractService, \
FiveFiltersContentExtractService
def includeme(config):
# Initializ... | [
"nikolaos@papagrigoriou.com"
] | nikolaos@papagrigoriou.com |
a40ca11a046d053887005696c2ce9809e0a846be | 957526fba2d1d779bf8637c9b91fff743a86c108 | /spell.py | 7a8772d0e68d87195112ee3564652bca7ccfc313 | [] | no_license | rrgeorge/5eTtoFC5 | acac22cf58dd51afd08ef6fa13bfe472c60adff3 | 51f3879c021733d44244ab5e56909c5e2dfe696a | refs/heads/master | 2022-04-26T18:38:35.607944 | 2022-03-07T18:03:17 | 2022-03-07T18:03:17 | 231,274,495 | 7 | 4 | null | 2020-11-27T16:51:15 | 2020-01-01T23:17:14 | Python | UTF-8 | Python | false | false | 15,599 | py | # vim: set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab : #
import xml.etree.cElementTree as ET
import re
import utils
import json
import os
from slugify import slugify
from shutil import copyfile
def parseSpell(m, compendium, args):
spell = ET.SubElement(compendium, 'spell')
name = ET.SubElement(sp... | [
"rgeorge@midnightweb.net"
] | rgeorge@midnightweb.net |
7faecae779bde3911e044903901c3c9069dfa309 | 4fdaee9f2612a8c429991a2042dffcee80e7a641 | /rootfs/qboxhd/rootfs/usr/local/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/__init__.py | dc8dd57b592a450dadd83765c112f3da212d8dfb | [] | no_license | OpenSH4/qboxhd | 841072db3b0eaecdcac116b5f96268d47115cdec | 91dd37a5311b5c53fb088ab0ce902ee49552ece0 | refs/heads/master | 2020-09-07T17:55:36.114816 | 2012-01-08T21:33:02 | 2012-01-08T21:33:02 | 220,866,062 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py | # -*- coding: ISO-8859-1 -*-
#===============================================================================
# NetworkBrowser and MountManager Plugin by acid-burn
# netscan lib by Nix_niX
# for further License informations see the corresponding License files
# or SourceCodes
#
#========================================... | [
"duopaguilar@0410bcea-ab32-4fec-9f21-c18eae94034e"
] | duopaguilar@0410bcea-ab32-4fec-9f21-c18eae94034e |
cca1348bd5f51fdecc2aa6f2960bc326a23a307d | 2b3e9b32a38f4992c529de56b4baa51e1a674c4e | /ccui/attachments/models.py | 787f5715353a1411f0f00595a423e5a97c5b968d | [] | no_license | camd/caseconductor-ui | 2c4f63fd6c20ee421012d8770b3b873c1b4f4232 | deb6b22ed417740bf947e86938710bd5fa2ee2e7 | refs/heads/master | 2021-01-18T05:36:22.647236 | 2011-10-10T14:48:29 | 2011-10-10T14:48:29 | 2,447,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | from ..core.api import RemoteObject, ListObject, fields, Named
from ..static.fields import StaticData
class Attachment(Named, RemoteObject):
name = fields.Field()
description = fields.Field()
url = fields.Field()
size = fields.Field()
attachmentType = StaticData("ATTACHMENTTYPE", "attachmentTypeI... | [
"carl@oddbird.net"
] | carl@oddbird.net |
ca0f4036ee4dd12f21957eb3984f7dccdd85e57a | 5d19b1f3f5b7878b2ca30ca407b7aec89ff1aecd | /weather_api/test.py | 47d5baa7458bd6989594fdc32a84f839e596bfe7 | [] | no_license | AlexRedfield/TinyProjects | 75609219d6a66ccc89c5c161427b130f579a8d93 | 99b8f0564857a35aab73592592097bd1a526159d | refs/heads/master | 2020-04-13T08:37:46.910190 | 2019-03-04T12:11:21 | 2019-03-04T12:11:21 | 163,086,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
import numpy as np
sns.set(style="darkgrid")
date = pd.date_range("2017-03", freq="M", periods=15)
count = np.random.rand(15,4)
df1 = pd.DataFrame({"date":date, "count" : count[:,0]})
df2 = pd.DataFrame({"date":date, "count" : count[:,1]+0.7})
df... | [
"877428359@qq.com"
] | 877428359@qq.com |
c6fe6443ef899c8ed96248028a7916f6110ff9bd | 8e2fa36281924fd28327a49d83f9855c6ff0c619 | /photod-backend/photod/api/urls.py | 254dfe2cbae9365ac31db41010e200dc82289133 | [
"MIT"
] | permissive | basilfx/Photod | 10a7ba9200b7337f01bd2f3ad857caa5b6797b7c | 0056a07e39b61e2f3b1c94f1309917dd8b24b654 | refs/heads/master | 2023-08-23T17:16:48.646493 | 2017-08-15T18:37:59 | 2017-08-15T18:37:59 | 98,336,863 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | from django.conf.urls import url
from django.conf import settings
from django.views.decorators.csrf import csrf_exempt
from graphene_django.views import GraphQLView
urlpatterns = [
url(r'^graphql', csrf_exempt(
GraphQLView.as_view(graphiql=settings.DEBUG)
)),
]
| [
"basstottelaar@gmail.com"
] | basstottelaar@gmail.com |
7ae7be994896f20dd269eccef9433c4ec08f2aff | 7a65631f2e879006770131a513ce45a6558afc73 | /info-query/portal/main.py | 272f40fb465ed3f562a5ada4fa3a0d45feb2d7ad | [] | no_license | yang123456789/info-query-system | f18906fc15a0d10b65ad62bd87d9839e90a4b344 | 84913f9301cc6c8bb9a095c2267b1274cf05794f | refs/heads/master | 2021-01-01T06:41:37.486416 | 2017-07-23T02:53:20 | 2017-07-23T02:53:20 | 97,485,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | import os.path
from config import *
from urls import *
import tornado.web
import tornado.httpserver
import tornado.ioloop
settings = dict(
template_path=os.path.join(os.path.dirname(__file__), '../template'),
static_path=os.path.join(os.path.dirname(__file__), '../static'),
xsrf_cookies=True,
debug=Tru... | [
"1877084583@qq.com"
] | 1877084583@qq.com |
1fac3e90a89506c3b23069fe5459317e00ebf077 | a79d7e4ffa8423d8dc1a071796267516d7992d43 | /opencv_study/example9_2.py | e842f67e3c86739611fbea24cf7129494f726ee0 | [] | no_license | go23man/study_project | 7ba9b8d730249ff5e29aa2b3e894794edad67718 | 7929165904ee901dbf309ce62afb45145a4bed2b | refs/heads/master | 2023-01-02T19:04:25.820854 | 2020-10-29T07:38:28 | 2020-10-29T07:38:28 | 293,030,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | import numpy as np
# 복수 객체 저장 및 불러오기
array1 = np.arange(0, 10)
array2 = np.arange(10, 20)
np.savez('saved.npz', array1=array1, array2=array2)
data = np.load('saved.npz')
result1 = data['array1'] # 이름 인덱스로 접근
result2 = data['array2']
print(result1)
print(result2) | [
"noreply@github.com"
] | go23man.noreply@github.com |
7ff101931d51525ae94d1394ddc4cc3c157ad206 | a11effd45c6e71d8bf9d968f3c3c9fa27cedc69f | /uilts/models/GCN.py | c8fa55cf38ba5a922956ada40fcdeeea57e16415 | [] | no_license | huangluyao/squid_segmentation | 30f18cbd4488e4b9b632a9224809862c29f02276 | 6b64d84cb4b7649fe01a314fdc87492d866aae8d | refs/heads/master | 2023-02-12T22:03:34.527386 | 2021-01-18T13:27:14 | 2021-01-18T13:27:14 | 320,613,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,502 | py | """ inpnut size 224×224
Model GCN : params: 58148704
Model GCN : size: 221.819702M
"""
import torch
import torch.nn as nn
from torchvision import models
class Global_Convolutional(nn.Module):
"""全局神经网络"""
def __init__(self, in_channels, num_class, k=15):
super(Global_Convolutional, self).__init__()
... | [
"997911043@qq.com"
] | 997911043@qq.com |
1c264b07e7455a1929f9a63fb059a6aa77bac060 | 16c87ab233d67e1951ae0d9763aa59993490e946 | /odd.py | 7f03519c364486f7f281d98fd7dac9811fe21652 | [] | no_license | chaddattilio/head-first-python | d5e35e5f565f6113b4c47131d2b3aa12c6143adf | 7b719ebfea5cc6879f30d3bdee5c5d7d2b9b5017 | refs/heads/master | 2020-07-30T01:42:28.877642 | 2019-09-21T19:19:19 | 2019-09-21T19:19:19 | 210,041,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | from datetime import datetime
import time
import random
odds = [1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37,
39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59]
for i in range(5):
right_this_minute = datetime.today().minute
if right_this_minute in odds:
print("This minute see... | [
"cdattilio@lyonscg.com"
] | cdattilio@lyonscg.com |
cbfbd4cfa3974be3440d93c0e25bc0feb5791c62 | ccb6e9fd16b2b9ed166f3142296b9ca5d5efbf31 | /Coordinate.py | 89093aba89373a217434f22775c277b8267181d6 | [] | no_license | akhossanX/MDPPY | afcfca0b52a4d4094572a5974a54f264f00ea8cd | 2c5eb72660ffdbbac22f32873bd1a47ec35f0cd5 | refs/heads/main | 2023-03-08T12:22:24.827330 | 2021-02-22T00:36:03 | 2021-02-22T00:36:03 | 341,036,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | from random import randint
class Coordinate:
"""
Represents the coordinates (row, column) of
each state in the environment
"""
def __init__(self, row, col):
self._row = row
self._col = col
def _get_row(self):
return self._row
def _set_row(self, row):
self._row = row
def _get_col(self):
r... | [
"noreply@github.com"
] | akhossanX.noreply@github.com |
934c37f345add83963d763f797ea664f8ad91e8c | 9640f2fee97fcf88190127267b5dabbb7921e19a | /Python/scratchPad3.py | 8f51a2098b5becfecfe1f312d0de952fb9ef1bc4 | [
"MIT"
] | permissive | Isaac-Tait/Deep-Learning | 500d961ae42e816773685dc7edb442ef3a5de907 | e4e158038bbf6425a370518e83f9d9eb86254aa4 | refs/heads/master | 2022-11-23T23:54:12.614314 | 2020-08-05T02:38:29 | 2020-08-05T02:38:29 | 275,589,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,604 | py | num1 = float(input("Enter the first number: "))
num2 = float(input("Enter the second number: "))
operator = input("Enter the operator (*, /, +, -): ")
if operator == "+":
print(num2+num1)
elif operator == "-":
print(num2-num1)
elif operator == "/":
print(num2/num1)
elif operator == "*":
print(num2*num1... | [
"isaac@mountaintopcoding.com"
] | isaac@mountaintopcoding.com |
329190111dbeeb1c7fcaf982ab9f8455d6575216 | 3c4f181f643be17ad150d9047432796afbad529d | /races/middlewares.py | 31775eb7a40a5b217478f170c950e7a3d5065a20 | [
"MIT"
] | permissive | pdittaro/RaceAnalysis | ceb9b5d7897f5eb382b8c926eab7d126ab22f298 | 6121fba1b69516e692c6db625d8ff0398a29df59 | refs/heads/master | 2020-05-04T04:45:17.464447 | 2019-04-10T17:38:38 | 2019-04-10T17:38:38 | 178,972,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,595 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class RacesSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy ac... | [
"pdittaro@gmail.com"
] | pdittaro@gmail.com |
ee1865b37c23051d7bc2248ebc49e9692dd036b8 | b594714f056881dc62d507224ac9e7b200d03e25 | /Projects/app.py | 268ae90d0cff50794fec96c6a97ee958a9819b90 | [] | no_license | AshShaluka/Machine-Learning-Heart-Disease-Prediction-System | 918bb56b169973135611eb6907e07a9384da8268 | 1a091b5378656d1951f3bc53ade6df87e710a2f7 | refs/heads/master | 2022-06-06T13:26:58.647443 | 2020-05-04T14:50:32 | 2020-05-04T14:50:32 | 260,129,589 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,356 | py | import flask
from flask import request
from flask import render_template
app = flask.Flask(__name__)
from flask_cors import CORS
CORS(app)
@app.route('/')
def home():
return '<h1>iClinic </h1>'
#Route of the main index page
@app.route("/predict",methods=['GET'])
def predict():
from sklearn.externals i... | [
"ash.dmasd@gmail.com"
] | ash.dmasd@gmail.com |
3f2430aec993d53a12bf2b286d2c6e954df75aa9 | 07bd1848e35bbb75ef4d23f1982af618aa176852 | /chap08/list0801.py | 61d7b443504731e273a6c346de2ce224320e8385 | [] | no_license | kimurakousuke/MeiKaiPython | c0b56be8fcb79b39b0c8364e71e2da76eab613fe | 674f6001060f56cf55e3d7336e6e4ca5f135beaf | refs/heads/master | 2021-02-22T13:01:53.397290 | 2020-03-07T11:19:10 | 2020-03-07T11:19:10 | 245,377,717 | 1 | 0 | null | 2020-03-06T11:16:16 | 2020-03-06T09:22:53 | Python | UTF-8 | Python | false | false | 563 | py | # 元组的列表(所有元素都是元组的列表)
students = [
(2012, '福冈太郎'),
(2013, '长崎龙一'),
(2011, '熊本纹三'),
]
print('students =', students)
print('students[0] =', students[0])
print('students[1] =', students[1])
print('students[2] =', students[2])
print('students[0][0] =', students[0][0])
print('students[0][1] =', s... | [
"61867402+kimurakousuke@users.noreply.github.com"
] | 61867402+kimurakousuke@users.noreply.github.com |
41753a82068da0014a137032c5c1e406e6f0b79c | e7c03b71f26c463b2670c52cd2fddbc198e3c8cb | /apps/webhooks/signals.py | ce67cc1fc3c8fd8ae1badfe76adf4620eba30505 | [] | no_license | nerosketch/djing2 | 71cc96f4829fc047d788dd7d8a94f1035e9740f9 | 1fbb0941f26389cbfdc8015527ab0d426c2e2c01 | refs/heads/master | 2023-01-13T15:12:50.492646 | 2022-11-18T11:24:21 | 2022-11-18T11:24:21 | 196,469,351 | 7 | 3 | null | 2020-02-29T19:38:37 | 2019-07-11T21:50:34 | Python | UTF-8 | Python | false | false | 2,516 | py | import sys
from typing import Optional, Any
from django.dispatch import receiver
from django.db.models.signals import (
post_save, post_delete,
pre_save, pre_delete
)
from rest_framework.serializers import ModelSerializer
from webhooks.models import HookObserverNotificationTypes
from webhooks.tasks import send_... | [
"nerosketch@gmail.com"
] | nerosketch@gmail.com |
d98640284ad3872cd54920e573886ae38180dbb4 | a9c0daa4a7b9a4d7341afcab270c5b5debb8c13f | /env/bin/easy_install | d376d9adfa89d50b9a0aa01da0885b7db2560bbc | [] | no_license | phamcong/alienator-plf | bad8c4e003fd189c43243b31ef2b975b6f154754 | ea65628af66fbca51f2248ceb4ba93f858dbddce | refs/heads/master | 2022-11-26T01:28:38.286261 | 2017-11-07T15:12:08 | 2017-11-07T15:12:08 | 109,412,097 | 0 | 1 | null | 2020-07-25T23:43:17 | 2017-11-03T15:30:22 | JavaScript | UTF-8 | Python | false | false | 283 | #!/Users/cuongpham/Data/Coding/ALIENNOR/aliennor-plf/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ccuong.ph@gmail.com"
] | ccuong.ph@gmail.com | |
64cc5607bc1c8d2649c165b34cd01941d79c128f | 9013fc19eed18af44b29d68fbec9e38a1ae157eb | /application/api/servers/xmltodict/tests/test_dicttoxml.py | 2aa90134b4318e001ab26943e4eabce54ef59719 | [
"MIT"
] | permissive | cloudcomputingproject/main_repo | 7fc1f5ffa8459131364833f4254dbda652652818 | 4952f51ce630edf49aebd46428b77f26cb717f80 | refs/heads/master | 2020-06-09T05:26:04.839339 | 2015-01-05T15:54:10 | 2015-01-05T15:54:10 | 24,763,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,507 | py | from xmltodict import parse, unparse, OrderedDict
try:
import unittest2 as unittest
except ImportError:
import unittest
import re
import collections
from textwrap import dedent
_HEADER_RE = re.compile(r'^[^\n]*\n')
def _strip(fullxml):
return _HEADER_RE.sub('', fullxml)
class DictToXMLTestCase(unittes... | [
"ppm1g12@soton.ac.uk"
] | ppm1g12@soton.ac.uk |
f68897246e241e33ad3e985789afccfa8577f59c | 29d9a947fc954e5d182cb2d8292f96c0d27cdde0 | /apps/xrayuploader/advanced_search.py | cb2331799ae21142d69e1f13dec228b6e0b9caf3 | [
"Apache-2.0"
] | permissive | slogan621/tscharts | 43ee950a76323a8b99a8ab88743f2e5e5a1e6f42 | 034e661c3f4739f1dc04b3aef096e6bf6cf6e8d3 | refs/heads/master | 2023-08-10T19:04:50.317820 | 2023-07-29T21:03:27 | 2023-07-29T21:03:27 | 55,322,748 | 25 | 10 | Apache-2.0 | 2023-07-08T20:32:54 | 2016-04-03T00:35:37 | Python | UTF-8 | Python | false | false | 2,491 | py | # advanced_search.py
import wx
from pubsub import pub
class AdvancedSearch(wx.Panel):
def __init__(self, parent):
super().__init__(parent)
self.main_sizer = wx.BoxSizer(wx.VERTICAL)
self.free_text = wx.TextCtrl(self)
self.ui_helper('Free text search:', self.free_text)
... | [
"slogan621@gmail.com"
] | slogan621@gmail.com |
31cb08be77816fc5d2ad000825864032983b4b00 | 5bb632eaca756c3282e299e8f27f2ec1f26e5ddb | /app/models.py | 0538b0c9f8ee1053a966ca265ab8f5ec41eae55b | [] | no_license | DCotterill/flask-template | ae98e643669168e5ca95f59c05bd5fc40d9bec4f | 2eb7b6b5d4a1c769cdba6235c80656ec5f0e3720 | refs/heads/master | 2023-03-06T16:28:47.304810 | 2021-02-17T03:05:13 | 2021-02-17T03:05:13 | 339,596,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | from app import db, login
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import UserMixin
@login.user_loader
def load_user(id):
return User.query.get(int(id))
class User(UserMixin, db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db... | [
"darren@Darrens-MacBook-Air.local"
] | darren@Darrens-MacBook-Air.local |
bd03d60d59a2ee126e6932146d29e9b6824aa149 | 9226f5fea200fb033e2730bfc9aa9d97e59dff51 | /venv/project/ui/ui_test_case_old_nozalenium/test_49_7_zhike_signinIB.py | d9223172caa48fe765d158b806474852db12fe1a | [] | no_license | answermvp/mbg_project | 4e4519792bf6e9f493a4f7677b4df1b10d31d9b0 | fa088c9902ed9c670789caa6e96dec84c35008c4 | refs/heads/master | 2023-01-10T21:50:19.962854 | 2019-11-06T03:32:18 | 2019-11-06T03:32:18 | 219,903,934 | 0 | 0 | null | 2022-12-27T14:58:29 | 2019-11-06T03:26:33 | Python | UTF-8 | Python | false | false | 13,102 | py | import unittest
import time
import os
from ddt import ddt, file_data, data, unpack
from selenium import webdriver
from pages.signinIB_page import SignInIB_Page
from selenium.webdriver.common.action_chains import ActionChains
from poium import Page, PageElement, PageSelect
from testdata.read_excel import get_tes... | [
"1826339495@qq.com"
] | 1826339495@qq.com |
a6664a9701004321c7f88b2a8f53a3655a144261 | 7273500edfb40b759f4d63a884f7af39f28c3625 | /Day 4 addition to 3.py | c120920ca04d6561e365cbda3e9febbd7b37106b | [] | no_license | cugis2019nyc/cugis2019nyc-deniesha123 | 9c343955472d5d4dd70367e894bad644adcf5a34 | ea81e8b8e63437af99e1018f542082af65fedee4 | refs/heads/master | 2020-07-04T06:56:57.541759 | 2019-08-16T19:21:50 | 2019-08-16T19:21:50 | 202,194,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,403 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 14 10:25:32 2019
@author: Columbia Girls
"""
chocolate1 = {"milk":5}
chocolate2 = {"dark":6}
chocolate3 = {"white":8}
chocolatebox = {"milk":5,"dark":6,"white":8}
chocolatebox
student1 = ["Steve",32,"M"]
student2 = ["Lia",28,"F"]
student3 = ["Vin",45,"M"]... | [
"noreply@github.com"
] | cugis2019nyc.noreply@github.com |
1ba1e5df848e81242459270ee5b89d21e31a29bd | 7e0ab9f52aa73962260411656903e217ccc34757 | /bench/plot_dmason.py | 752df305cc8c3e9228fa79d7ba2d54e18f7b97b4 | [
"Apache-2.0"
] | permissive | vishalbelsare/OpenABL | 5a46f1e6d61e6317c905f82cc5bd6d7e318abbac | eb08ef86df0b9c0532cb8fd6b714bde5e8551923 | refs/heads/master | 2021-06-05T14:55:52.644766 | 2019-08-12T09:03:53 | 2019-08-12T09:03:53 | 141,203,558 | 0 | 0 | Apache-2.0 | 2021-04-04T17:43:16 | 2018-07-16T22:57:37 | C++ | UTF-8 | Python | false | false | 2,968 | py | # Copyright 2018 OpenABL Contributors
#
# 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 ... | [
"nikita.ppv@gmail.com"
] | nikita.ppv@gmail.com |
60e7d3ffd97421c1d299c0e24eceb1a3b5cb8b9c | f08b0ca36ac38258261a063a3a81d7b407418a71 | /handlers.py | c626e34fa38bb1a08953c08f1a8baed14200ccee | [] | no_license | BON4/toxic_guesser | 7c3c8994ead0464097301c16a14e08bffb4596f3 | 7722aa1d3b9cdcd20569bce20bb782016b85713f | refs/heads/master | 2022-10-15T03:41:59.173438 | 2020-06-09T15:59:58 | 2020-06-09T15:59:58 | 271,047,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | import asyncio
from aiohttp import web
import logging
import json
from aiohttp import web
from utils import validate_payload, CommentListConverter, PredictionConverter
from worker import predict_probability
class SiteHandler:
def __init__(self, conf, executor, base_root):
self._conf = conf
self._e... | [
"silvia.homam@gmail.com"
] | silvia.homam@gmail.com |
8359ab878f82e515d37f56e39cf93b2cad8afd03 | ec257404c0643f6f798f1122932c105231c5905a | /RREF/RREF_TEST.py | 30b553647c044a4b7212c441d02116e932ba96b9 | [] | no_license | Eyecandy/linear-algebra-fun | 4e9498c7bfb05dba7d194c59d8e5c5f833c415ff | 784d352c71d55e8e9231eb3d7958cbea908644f3 | refs/heads/master | 2021-05-12T01:08:06.880239 | 2018-01-15T14:04:52 | 2018-01-15T14:04:52 | 117,366,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | py |
# coding: utf-8
# In[127]:
get_ipython().magic(u"run 'RREF.ipynb'")
# In[132]:
matrix = [[1,2,3],[0,4,8],[9,5,6]]
matrix2 = [[1,0,10,5],[3,1,-4,-1],[4,1,6,1]]
# In[135]:
solve_RREF(matrix)
# In[139]:
step_by_step_REF(matrix2)
# ### Given a matrix: produce a matrix in row echelon form (REF).###
#
# By usi... | [
"joakim.nilfjord@gmail.com"
] | joakim.nilfjord@gmail.com |
5cbfb9fbed9df3084a1ce671438cffd5bfc19aa7 | eed1763c9ea839e62a9c1a90c9c34bfc396d5973 | /priority.py | 8ffc8f9d1cb2ea3548b045925a4e7c9a534b9439 | [] | no_license | stanleyjzheng/IOhackHackathon2020 | d7c18cca4721ed3ca620ebce8424b35e9e0b4bf9 | afc60a6634084b3dd45bf0dc504eaff4acc08800 | refs/heads/master | 2023-05-02T21:23:04.152339 | 2021-01-21T17:04:07 | 2021-01-21T17:04:07 | 267,623,928 | 1 | 0 | null | 2021-05-30T12:18:22 | 2020-05-28T15:17:34 | Python | UTF-8 | Python | false | false | 164 | py | import sys
def priority(total_time, user_priority, store):
return store * total_time + user_priority
print(priority(sys.argv[1], sys.argv[2], sys.argv[3]))
| [
"35879277+Rougg@users.noreply.github.com"
] | 35879277+Rougg@users.noreply.github.com |
3c160933209364311aab0f45e8e6571d2f8babe8 | 135013cb08b9086f986bab8338362abf4357fc3e | /health/staff/migrations/0038_auto_20170727_1128.py | 69fb250110c1d0d85f6be37a3baf57a3f649ba65 | [] | no_license | TakoJ/lineus | 2c49d775e23fb3b31fb3e3d33c7a4b88ad563618 | 67556674b27d6eb9d1babaa73c42160375c21de4 | refs/heads/master | 2021-01-21T14:33:29.231675 | 2017-08-12T04:16:28 | 2017-08-12T04:16:28 | 95,301,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-27 02:28
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('staff', '0037_auto_20170726_2325'),
]
operations = [
migrations.RemoveField... | [
"hgy3047@gmail.com"
] | hgy3047@gmail.com |
82e1b2eaee9de5658d3ce2a864d0b66c69155d84 | 1448eee0e660f8a79ce869d61e908d436968275a | /users/urls.py | 67c29c835981ba554943dde84fad07bce266d798 | [] | no_license | Karley-Liu/Face-recognition-access-control-system | 80e9743f11d2e03a1a1f4227c6e200a3871dcdf9 | ff708f6f619d4c4558c5bebb9c2202b280591ec1 | refs/heads/master | 2022-06-21T08:01:19.979589 | 2020-05-11T09:15:12 | 2020-05-11T09:15:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | from django.urls import path
from . import views
app_name = 'users'
urlpatterns = [
path('register/',views.register),
path('login/',views.login),
path('member_index/',views.member_index),
path('logout/',views.logout),
path('change/',views.change),
path('face/',views.face),
path('recognitio... | [
"361983537@qq.com"
] | 361983537@qq.com |
0e7781fd532a7a35790d2927e43c21f0d8b57d4d | 05b376cd72a05d85cf385922daef38cc52465227 | /linkedlist_test.py | c333a5795066dea2511a0a4f7ba19657d70650c3 | [] | no_license | Nyapal/cs132 | 6b0cbd92fda9d43d77c717b8858c2334c0d9b5d5 | ec0a107f178e3b59e4767739339015ee02df5ae7 | refs/heads/master | 2020-06-01T21:58:30.127703 | 2019-06-20T22:11:32 | 2019-06-20T22:11:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,360 | py | #!python
from linkedlist import LinkedList, Node
import unittest
class NodeTest(unittest.TestCase):
def test_init(self):
data = 'ABC'
node = Node(data)
assert node.data is data
assert node.next is None
class LinkedListTest(unittest.TestCase):
def test_init(self):
ll = LinkedList()
asse... | [
"nyapal14@gmail.com"
] | nyapal14@gmail.com |
9e2c6f911c02510183155ae89505a21cd3ee9fdc | b6056f576907aaf60b1b84d696b04463736fc83b | /processors/lane_extractor/scripts/PolyFinder.py | 97b38411d5d058e1f82a51df6dc2549f9b8083fa | [] | no_license | gtagency/buzzmobile-old | d6f0f77246042e50a6fec42901455c4d05b62840 | a8f96c3bf4d8a8c3c3d91ccc1994a7f052d1157d | refs/heads/master | 2020-04-15T23:34:32.813310 | 2014-11-01T10:08:15 | 2014-11-01T10:08:15 | 11,141,731 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,582 | py | import numpy as np
import cv2
class PolyFinder:
def __init__(self, image):
self.image = image
def getPoly(self):
self.image = self.image[0:][300:]
imgray = cv2.cvtColor(self.image, cv2.COLOR_BGR2GRAY)
ret,thresh = cv2.threshold(imgray,0,255,0)
#cv... | [
"viki@c3po.(none)"
] | viki@c3po.(none) |
60daf50f1cde4a912237f35b6f4be76c2686d3c4 | c800f5d116154ec178a71f670e803cc7dd0b4904 | /predict.py | 9b60fb434538b75ea20fc8208eb1499223843172 | [] | no_license | chungpv-1008/yolov5-pytorch | b8735c7f7f87073b73c94fb4c9b5b473b7438c9b | 08e34ed7eee043ea23356a23090d1248359e034c | refs/heads/master | 2023-07-18T03:06:20.468397 | 2021-08-26T14:47:18 | 2021-08-26T14:47:18 | 400,186,972 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,671 | py | import time
import cv2
import numpy as np
import torch
import argparse
from imutils.video import FPS, WebcamVideoStream
from models.experimental import attempt_load
from utils.datasets import letterbox
from utils.general import non_max_suppression, scale_coords
from utils.torch_utils import select_device
def load_mo... | [
"pham.van.chung@sun-asterisk.com"
] | pham.van.chung@sun-asterisk.com |
66691c5eaa3d77e4a81f63cbe55492db46fc75dd | 6af7cf75fd919f05b47d7516da4568f92abef8aa | /actstream/migrations/0001_initial.py | 802ad43280d127b600e43ed99013de043db04460 | [] | no_license | mauler/activity-stream | 43bdb3363eda1362d66e4abec74c17a282e03d5e | 72477ebec544c686e1691566399545642f4ff104 | refs/heads/master | 2020-04-10T00:31:55.970480 | 2015-03-10T13:28:51 | 2015-03-10T13:28:51 | 32,038,589 | 0 | 1 | null | 2015-03-11T20:06:21 | 2015-03-11T20:06:21 | Python | UTF-8 | Python | false | false | 2,361 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import jsonfield.fields
import django.utils.timezone
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL)... | [
"xtranophilist@gmail.com"
] | xtranophilist@gmail.com |
45778cfc1bbbd390bda742a7966334f7c5947b65 | 695bfbc92a1474a29270d46c7b4ae2805240b077 | /ch-02/09-MultilayerNeuralNetwork-blind-1.py | 195b75302a420f7861e71ae399207bba4e5d6e5b | [] | no_license | paulhendricks/python-machine-learning | 801563275e05fb1f611e9114581c5ef2f7b58125 | 8e1cb6bc37067cc239eaee69fd8aa13ffa405b68 | refs/heads/master | 2021-01-19T04:25:30.002300 | 2016-06-13T15:25:31 | 2016-06-13T15:25:31 | 50,059,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py | import numpy as np
X = np.array([[0, 0], [0, 1], [1, 0], [1, 1]])
y = np.array([[0, 1, 1, 0]]).T
synapse_0 = 2 * np.random.random((2, 10)) - 1
synapse_1 = 2 * np.random.random((10, 20)) - 1
synapse_2 = 2 * np.random.random((20, 10)) - 1
synapse_3 = 2 * np.random.random((10, 1)) - 1
for _ in range(10000):
layer_1 = ... | [
"paul.hendricks.2013@owu.edu"
] | paul.hendricks.2013@owu.edu |
2bdf91f493e655f6bd2d59806e86e98a4c97a6f4 | dabd37cf681f6c00bd71c574eec0215e1e1dba4f | /visitor_experience/serializers.py | 8873b8461a067e8ed3e54294db65aba51df2bc40 | [
"MIT"
] | permissive | sunwei/flask-rest-api | f0e275b2d5f8fbdf1772765d9141d08fd6fbd0b3 | 845ae5d76898822ac539def2d5ad381c15fed24b | refs/heads/master | 2020-05-21T05:57:16.882059 | 2019-05-16T06:15:46 | 2019-05-16T06:15:46 | 185,931,435 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | from flask_restplus import fields
from visitor_experience.restplus import api
envoy_callback = api.model('Envoy callback', {
'api_key': fields.String(required=True, description='Envoy api key'),
'timestamp': fields.String(required=True, description='Callback timestamp'),
'token': fields.String(required=Tru... | [
"sunzhongmou820@163.com"
] | sunzhongmou820@163.com |
96b99049010ef96d63f9812089561f63157f7727 | d9517b7c8bf044778763245b52461acd9e301399 | /parsers.py | b6a3a9cabdd014bbc08af4957996032163731acb | [] | no_license | IIKovalenko/otus_avito_bot | 300c7727167b5c84b8e33c8181631689ba7aa532 | abfc5ac723eb93b49eefa05ef16833b27388a7ef | refs/heads/master | 2020-06-02T12:47:14.104364 | 2018-01-17T18:43:43 | 2018-01-17T18:43:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | import bs4
def parse_html_page(response_text):
return bs4.BeautifulSoup(response_text, 'html.parser')
def parse_avito_results_page_for_prices(soup):
descriptions = soup.find_all('div', {'class': 'description'})
prices_wrappers = [
d.find('div', {'class': 'about'}) for d in descriptions
]
... | [
"melevir@gmail.com"
] | melevir@gmail.com |
28422ed231cdf6b70f5784163f5d6a1d06657595 | 60c1c8e4c3d444f1039a5b18139bc7a26da8a877 | /mapred-lab2/SQLJoin.py | 196a8499607ede5f7085c86fa3dabdbb54102155 | [] | no_license | kay-m/MapRedLabs | 5dc76f535ec698e10d84c7a69fa58d2ff60c16f1 | d92b86aca53531152f82e59efb5111f5a7fb38a6 | refs/heads/master | 2020-04-01T08:24:27.519902 | 2013-11-27T07:22:04 | 2013-11-27T07:22:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,047 | py | import MapReduce
import sys
"""
This application is a map reduce implementation to implement a SQL Join.
"""
mr = MapReduce.MapReduce()
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#
# Application Usage:
#
# python SQLJoin.py arg-1 arg-2
#
# arg-1: File name containing... | [
"krishnamoorthy.b@gmail.com"
] | krishnamoorthy.b@gmail.com |
c6f76eb5503fb4a9a7c9ab83f8bd10aa3fbb381b | 94594cb9b7e48cf4a66d8564589a9d7981a89dac | /loader.py | 984fa3b4f768e8646d8c167cf6c091fc99ec178c | [] | no_license | xal9wiii4ik/parse_freelance_bot | 26d1d6a2c0257a320288fcc0ab87d3b6d327eb79 | 49db047b74888265f01036e467d084be5ce20fda | refs/heads/master | 2023-04-02T08:58:25.581354 | 2021-04-08T21:54:18 | 2021-04-08T21:54:18 | 324,841,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | import asyncio
from aiogram import Bot, Dispatcher, types
from aiogram.contrib.fsm_storage.memory import MemoryStorage
from data import config
from data.config import PARSER_DB
from utils.db_api.categories_command import CategoriesCommands
from utils.db_api.costs_commands import CostsCommands
from utils.db_api.paymen... | [
"xal9wIII4ik@yandex.ru"
] | xal9wIII4ik@yandex.ru |
a94b54375eb88e2b5eda3847c05c86a6a7706985 | 5686d7c83db29e0cb23d13005009a49da9741463 | /notes/experiment_tracking.py | 61a89f59c5de0ab51c8010931ad15abe615ad417 | [
"Apache-2.0"
] | permissive | andrewtruong/notes | 86b508330d84064cf6d6a92bec54090ac91e9c64 | 24e3a7d822f746ac4ab6c3186bc44dccb4f0e169 | refs/heads/master | 2023-04-23T17:51:11.831225 | 2021-05-06T21:34:54 | 2021-05-06T21:34:54 | 364,968,564 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/03_modeling/experiment_tracking_and_hyperparameter_optimization.ipynb (unless otherwise specified).
__all__ = ['log_study_wandb']
# Cell
import lightgbm as lgb
import pandas as pd
from .pandas import categorize
from sklearn.metrics import mean_squared_error as mse
from ... | [
"andrew@dragoon.localdomain"
] | andrew@dragoon.localdomain |
a2c44e6d2ae1253ca3397bc6d37ed63c68b22265 | 3f28b697f570ded0502de70c706200005ab62525 | /env/lib/python2.7/site-packages/scipy/spatial/distance.py | e436acec62f09cbc2243b94def99500b3a1e24a1 | [
"MIT"
] | permissive | Ram-Aditya/Healthcare-Data-Analytics | 5387e41ad8e56af474e10fa2d1c9d8a2847c5ead | d1a15d2cc067410f82a9ded25f7a782ef56b4729 | refs/heads/master | 2022-12-09T12:49:59.027010 | 2019-11-23T20:10:55 | 2019-11-23T20:10:55 | 223,639,339 | 0 | 1 | MIT | 2022-11-22T00:37:48 | 2019-11-23T19:06:20 | Jupyter Notebook | UTF-8 | Python | false | false | 74,146 | py | """
=====================================================
Distance computations (:mod:`scipy.spatial.distance`)
=====================================================
.. sectionauthor:: Damian Eads
Function Reference
------------------
Distance matrix computation from a collection of raw observation vectors
stored in... | [
"ramaditya.danbrown@gmail.com"
] | ramaditya.danbrown@gmail.com |
38a01454324ef8522ace07a19f48e28c7e54f2d6 | 092712c8a8008e7eeef7e45d7328524e8be8092d | /src/steer_net.py | afe7e4a3c1c439ab3425ed89256615b1d9c816e3 | [] | no_license | luis-gonzales/steering-angle-pred-cnn | 3541beac973e6764cde61bf2afadc69814c97c24 | 2ce0928d8f558cc232692f7da5b4d335cf3821ff | refs/heads/master | 2020-03-27T04:15:52.491482 | 2018-10-10T01:02:35 | 2018-10-10T01:02:35 | 145,925,679 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,672 | py | from keras.layers import Flatten, Dense, Lambda, Conv2D, Cropping2D
from keras.models import Sequential
# CNN model borrowed from NVIDIA at:
# https://images.nvidia.com/content/tegra/automotive/images/2016/solutions/pdf/end-to-end-dl-using-px.pdf
# Preprocess including resizing and converting from RGB to YUV
def prep... | [
"noreply@github.com"
] | luis-gonzales.noreply@github.com |
c434cddf878566dc069918bd57301dfc50f6f1b5 | 9465462c634c2a342411ba85892741a93f0c40a8 | /dpam/helper.py | ee0abc44fd94bbbada1a0a00958ff27852f9cb20 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ankitshah009/PerceptualAudio | 9a72587916e173be180b6ae792e83347c08e98da | 553f9e3238fcf7137901ae9fa6e10cbea1f8a4c9 | refs/heads/master | 2023-01-08T13:47:42.212056 | 2020-11-16T08:14:10 | 2020-11-16T08:14:10 | 300,909,516 | 0 | 0 | MIT | 2020-11-16T08:14:11 | 2020-10-03T15:14:02 | null | UTF-8 | Python | false | false | 12,393 | py | import numpy as np
import tensorflow as tf
import tensorflow.contrib.slim as slim
from sklearn.preprocessing import normalize
# LEAKY RELU UNIT
def lrelu(x):
return tf.maximum(0.2*x,x)
# GENERATE DILATED LAYER FROM 1D SIGNAL
def signal_to_dilated(signal, dilation, n_channels):
shape = tf.shape(signal)
pa... | [
"pmanocha@wash.cs.princeton.edu"
] | pmanocha@wash.cs.princeton.edu |
96a584f143220b5d9bf076fcd937eace0d6d45b5 | 1448c0f19f133d748e0027080574ac4c64a9463d | /brain_games/scripts/brain_prime.py | 8ef7aa1fe810bbf0d9196066d61bde388e55127f | [] | no_license | roddy-g/python-project-lvl1 | ccbd27ec21c2199c972a5f3e171b14d3b1aafa24 | ab1b5f92b3f600f5b2fb26943cb3963230814720 | refs/heads/master | 2023-01-02T03:24:52.417185 | 2020-10-25T19:37:12 | 2020-10-25T19:37:12 | 290,157,968 | 0 | 0 | null | 2020-09-26T19:36:20 | 2020-08-25T08:24:54 | Python | UTF-8 | Python | false | false | 169 | py | from brain_games.game_flow import play_game
from brain_games.games import prime
def launch_game():
play_game(prime)
if __name__ == '__main__':
launch_game()
| [
"per677199@yandex.ru"
] | per677199@yandex.ru |
7feecc77519718b968c596e790a22b55c0b0f872 | cb97808c70cf1beef9f1f1073bba43f8da628bf7 | /prerelease_website/settings.py | 79aca0580f2574da5fe055df3a682ffe895bdc42 | [] | no_license | kettj/prerelease_website | 80fc7e61a9b75bba188303d9f03cd25b53db8f0d | b43615122116c053bbceca351caabe5812c4c98e | refs/heads/master | 2021-01-16T20:06:03.045555 | 2012-11-13T01:48:56 | 2012-11-13T01:48:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,601 | py | import os
# Django settings for prerelease_website project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ora... | [
"eitan@hidof.com"
] | eitan@hidof.com |
de0a067f8e44fce59abc9d825bdbcaf794b4bc19 | 92eb3075f4a6a05280cb842d147b8af10c1aae5f | /175 _labs/lab1_q1.py | 84be6503e88cf50da588545e702e4f1913af3005 | [
"Apache-2.0"
] | permissive | lzeeorno/Python-practice175 | a3a27bf4c4fefef56b065c0d738897bea8958766 | e2998830114b304f9857b8f7d89dafec7ae02080 | refs/heads/master | 2020-04-24T07:30:13.006790 | 2019-07-15T16:22:52 | 2019-07-15T16:22:52 | 171,800,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | f1 = open('lab1q1_input_rainfall.txt','r')
newfile = open('rainfallfmt_lab1q1output.txt','w')
sixty = []
seventy = []
eighty = []
ninety = []
for line in f1:
value = line.split()
value[1] = float(value[1])
if value[1]<=70:
sixty.append(value)
elif value[1]<=80:
seventy.append(value)
... | [
"noreply@github.com"
] | lzeeorno.noreply@github.com |
2617fe025e7ddc018281f853dec2e238a062ff20 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /ask_hand_in_able_problem/number_and_person.py | 4b08ca79400b115b7e926ee6a490cd123528665b | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py |
#! /usr/bin/env python
def part_and_day(str_arg):
early_time(str_arg)
print('ask_hand')
def early_time(str_arg):
print(str_arg)
if __name__ == '__main__':
part_and_day('early_man')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
2af3daa1a017b367bd7aea66c6c5a6836aefb283 | fee31527e5fd533c1493830ac4f31e7a180e2bc3 | /Livro/cap5/break_loop.py | 19562952a5e1710c59daf53245660e0e62181d74 | [] | no_license | howraniheeresj/Programming-for-Everybody-Python-P4E-Coursera-Files | 7b9dda14ab13fec19c81a96e1a85324286877851 | c7eb1284bc0a4d17458de18c7a20bba7db30082a | refs/heads/master | 2021-01-15T23:27:58.529784 | 2015-05-20T22:37:48 | 2015-05-20T22:37:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | while True:
line = raw_input('> ')
if line == 'done':
break
print line
print 'Done!' | [
"iurihondaf@gmail.com"
] | iurihondaf@gmail.com |
b0a397839d2484bb418a34d66f90b53b145a961e | 6b6f68f507746e3e39b0e8789af5d044e27d6b0a | /BinarySearch/0108_ConvertSortedArrayIntoBinarySearchTree_E.py | 9f2dbfc81f8e4a56f0487583f5e6e89bc92e38d1 | [] | no_license | PFZ86/LeetcodePractice | bb0012d8b3120451dda1745875836278d3362e45 | 6db9db1934bc0a8142124d8b56bf6c07bdf43d79 | refs/heads/master | 2021-08-28T08:43:27.343395 | 2021-08-17T20:38:32 | 2021-08-17T20:38:32 | 230,925,656 | 1 | 1 | null | 2021-08-17T20:38:32 | 2019-12-30T14:01:27 | Python | UTF-8 | Python | false | false | 876 | py | # https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
# Solution 1: binary search-like split
class Solution(object):... | [
"pengfeizang@pengfeis-iMac.fios-router.home"
] | pengfeizang@pengfeis-iMac.fios-router.home |
15d63dde7a11ee9fe849f5521b5ed833016a6fae | 9b0e9993330c4cc669a6c581f61753c744673982 | /ceng352-Database Management Systems/project2/trip.py | 606c8b4a6dda981252cfc23df57f194692132291 | [] | no_license | sedacivelek/metucenghws | 4b2ceb17994164b11a4ef7fbc1beb02bbedb0b3a | 0fe734653e7067b906c295e6cfbcbb3e87e84c83 | refs/heads/master | 2021-08-26T00:34:13.207620 | 2021-08-10T09:10:04 | 2021-08-10T09:10:04 | 235,657,431 | 0 | 0 | null | 2021-08-10T08:28:18 | 2020-01-22T20:11:50 | HTML | UTF-8 | Python | false | false | 23,159 | py | import time
from datetime import datetime
import psycopg2
from config import read_config
from messages import *
from user import User
POSTGRESQL_CONFIG_FILE_NAME = "database.cfg"
sign_in_timer = 0
sign_out_timer = 0
"""
Connects to PostgreSQL database and returns connection object.
"""
def connect_to_db():
... | [
"Woohop77"
] | Woohop77 |
6aafd571209d20f20d00c13c28a6c81f2c322441 | 00cb0d518fe3f7d7fb0e345e5b4532587574153c | /DataDriverProject/Dat_Test.py | efe21c1e304de0c19286c2076a7bf952a252497a | [] | no_license | xiaohongjun123/MyPythonCode | 3b2065eea42a3bc622acaea25da82afe0f0f1135 | 06da2035e6b4b98660c9b90c54117a78f78c411e | refs/heads/master | 2020-06-06T07:22:19.261995 | 2019-06-26T07:01:31 | 2019-06-26T07:01:31 | 192,676,607 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,028 | py | from selenium import webdriver
import unittest,time
from LogCommon import logger
import traceback
import ddt
import HTMLTestRunner
import os
from selenium.common.exceptions import NoSuchElementException
logger = logger.mylog('test').getlog()
@ddt.ddt
class TestData(unittest.TestCase):
def setUp(self):
self.... | [
"979669145@qq.com"
] | 979669145@qq.com |
71ca5c7fe9b491cae71c8bcce5ad44d000311f75 | 1cf0344795731c3ea4a06c3f9776367ee6e3d91f | /other/BuckeyeProgrammingContest/booo.py | 1b51bc4ba7019b2a38481a9a5bc5578ea124a750 | [] | no_license | Alex7Li/ProgrammingContests | cf900303ef6ea34d686ea005ba810aabcc6bcc3d | cf6aa6758beb4cc5ca458fcda4ba8dd258e639c1 | refs/heads/master | 2023-03-11T04:14:49.577346 | 2023-02-24T20:48:29 | 2023-02-24T20:48:29 | 100,300,632 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | print("B" + "O" * int(input())) | [
"7alex7li@gmail.com"
] | 7alex7li@gmail.com |
957af7ab98048f3fc17fd15cc756be737df7f454 | 72bf58b8366863b385aec107d5db4b651bf1526a | /analysis_pipelines/pipeliners.py | 9d361ca984e31fee33055c11bd166ff700a6639d | [] | no_license | ngleadall/programming_examples | f30029f148dd6d97715be69533890ed018bdcff8 | 742dc8678ad5348a4672e2853e01900cdcd6024c | refs/heads/master | 2021-01-10T06:22:51.581599 | 2016-02-10T22:52:55 | 2016-02-10T22:52:55 | 51,436,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,953 | py | # pipelining script for creation of simple bioinformat analysis pipelines.
# set __verbose_level to control detail printed to STDOUT as required.
#
# Runs commands by creating daughter processes and checking for exit status.
#
# Nicholas Gleadall - nick.gleadall@googlemail.com
import subprocess
__verbose_level = 0
... | [
"nick.gleadall@googlemail.com"
] | nick.gleadall@googlemail.com |
3ad363f6c59cd2e4efd917af8214322fccedf9fd | a8d7c9c20075e6ab51d367d34b8209434031e075 | /recognize_faces_image.py | 301df6f4cda045effebd20c529798120c7666c18 | [] | no_license | wenhengqiu/face_recognition_resources | 762d7a80a2f006212031bdcd32be2a913d0c2dcc | 7059dac3737eb14643782420002e4a2a73a89727 | refs/heads/master | 2020-03-20T23:31:38.015257 | 2018-06-19T06:41:13 | 2018-06-19T06:41:13 | 137,850,484 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,628 | py | # USAGE
# python recognize_faces_image.py --encodings encodings.pickle --image examples/example_01.png
# import the necessary packages
import face_recognition
import argparse
import pickle
import cv2
# construct the argument parser and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-e", "--encod... | [
"noreply@github.com"
] | wenhengqiu.noreply@github.com |
52fc86278c6178bed247ebe135a06ea8b9428ff7 | 0691d9503dac9a17197726e173a773ea23d39a87 | /venv/Lib/site-packages/vedo/dolfinx.py | 7c68530014a932b1ccd1e9a081d050ea74f39f36 | [] | no_license | Aigor35/Computing_exam | 643d2217bafe5acb70eb9b99b973f2bdb9d2cfa7 | 88e3474a6724dda7b53ec4f25274a78caf29751a | refs/heads/master | 2023-08-27T16:21:53.716699 | 2021-10-18T16:44:40 | 2021-10-18T16:44:40 | 376,243,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,903 | py | import vtk
from vtk.util.numpy_support import numpy_to_vtk
import numpy as np
import vedo.utils as utils
from vedo.utils import printHistogram, ProgressBar
import vedo.docs as docs
from vedo.colors import printc
import vedo.settings as settings
from vedo.settings import dataurl, embedWindow
from vedo.mesh import ... | [
"alexcolavecchia1356@gmail.com"
] | alexcolavecchia1356@gmail.com |
7df3bcbfa42d4a7f74ba3a7e9dbcecc69c3e55eb | f88e49b5aa336cea3bfd2fa46bb23048f6bfe875 | /gaussfold/aa/asparagine.py | ac313a65d071a28e58827c86e16e2d7054d3d2ea | [] | no_license | AntoinePassemiers/GDE-GaussFold | c50a05992447f1909b3357db40620e3ede3ffc16 | 323600a75a7b97286fd66d478111140b9496b076 | refs/heads/master | 2020-05-09T23:07:11.930093 | 2019-08-15T21:19:33 | 2019-08-15T21:19:33 | 181,492,718 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | # -*- coding: utf-8 -*-
# asparagine.py
# author : Antoine Passemiers
from gaussfold.aa.amino_acid import AminoAcid
from gaussfold.atom import Bond, Group, Carbon, Hydrogen, Oxygen, Nitrogen
class Asparagine(AminoAcid):
def __init__(self, **kwargs):
AminoAcid.__init__(self, 'ASN', 'N', **kwargs)
... | [
"apassemi@ulb.ac.be"
] | apassemi@ulb.ac.be |
2094fedd524a61f0d72045da9ce90bd2cf6fa89e | 82de2fbcc9bc2b1eea1fcd870dea595d757ea32c | /20 args and kwargs.py | cfaea3ce2cde8aaf7178758645d2ceed35d0034e | [] | no_license | MEng-Alejandro-Nieto/Python-3-Udemy-Course | 4afa230416aaeb35495d7f3d7ef47d4c57cd6b76 | 8ca288aa3a307210867ceb67ebddc338167682c5 | refs/heads/master | 2020-07-17T01:48:42.338447 | 2019-09-02T18:39:38 | 2019-09-02T18:39:38 | 205,915,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | # *args
def myfunc(a,b):
# returns 5% of the sum of a and b
return (a+b)*0.05
print(myfunc(60,40))
'''
the above allow us to to define to values a and b however for varius parameters
we can use *args
'''
def myfunc(*args):
return sum(args)*0.050
print(myfunc(10,10,10,10,10,10,10,10,10,10,10,10))
print("")
... | [
"alejandrolive932@hotmail.com"
] | alejandrolive932@hotmail.com |
046d8c76bb32eecf5ba9ad872efb2f8333d28fd3 | 6478723d180a8ef39941ba04b80c1eca9f437323 | /244. Shortest Word Distance II.py | c3713fd9f7ca35dff4badc5c14b57690aff0adeb | [] | no_license | NiuNiu-jupiter/Leetcode | 2a49a365898ecca393cb1eb53a47f4501b25952d | e278ae6ded32f6a2d054ae11ad8fcc45e7bd0f86 | refs/heads/master | 2022-11-22T01:05:57.417538 | 2020-07-28T23:34:39 | 2020-07-28T23:34:39 | 182,104,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,465 | py | """
Design a class which receives a list of words in the constructor, and implements a method that takes two words word1 and word2 and return the shortest distance between these two words in the list. Your method will be called repeatedly many times with different parameters.
Example:
Assume that words... | [
"cmyumo.zhang@gmail.com"
] | cmyumo.zhang@gmail.com |
53bb357819f48a8696444b2f84a7a50328479ebe | 0dab149d05aaac2013e4dbcde7680f9fa393d2fd | /bindgen/__main__.py | b57a8ecfaf3cb6cdcd9dcb2adab459f6265156a7 | [
"Apache-2.0"
] | permissive | random-builder/design_cadquery_pywrap | 62bac407523df838722ab72291cde51696ccb2cd | 3cef107e986b20bc26b38a20f195bde1a697b2f6 | refs/heads/master | 2021-05-21T23:10:08.560667 | 2020-03-27T07:41:52 | 2020-03-27T07:41:52 | 252,851,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,670 | py | import click
import logzero
import pickle
from types import SimpleNamespace
from path import Path
from . import read_settings, run, parse_modules, transform_modules, render, validate_result
@click.group()
@click.option('-n','--njobs', default=-2,type=int)
@click.option('-v','--verbose',is_flag=True)
@click.option('... | [
"adam.jan.urbanczyk@gmail.com"
] | adam.jan.urbanczyk@gmail.com |
73c8c9798c4e4af993a0122bcfa98e94274748ec | 1ff5866dd2588db86eaafa96ef0f4f3d9453bde1 | /Lessons/2020_12_26_Lesson_4.py | 5d7eea8576da5286d4608d4b71f25cd74e0968da | [] | no_license | supvigi/python-first-project | 49d946df8e198bdce5669bac3cccc3a19143ae8f | 36d63d8cc4ed816a41722a47ae8aadbc411695b2 | refs/heads/master | 2023-02-27T09:32:16.821487 | 2021-02-05T21:24:54 | 2021-02-05T21:24:54 | 318,757,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | def punk_2(func):
def punk_3(x5, x6):
print("___________")
func(x5, x6)
return punk_3
@punk_2
def punk_1(x3, x4):
print("|{} * {} =".format(x3, x4), x3 * x4, "|")
for x in range(1, 11):
for x2 in range(1, 11):
punk_1(x, x2)
print("-----------")
class normal_tank:
type ... | [
"vlas.vigilyanskiy@gmail.com"
] | vlas.vigilyanskiy@gmail.com |
6617fa9ce7e7d448730be1fe578a0ecde00cd495 | 065380d2df34e635655b5ad7ba52c430063bf59c | /faceRecognition/models/nn2.py | e0c6a95a1cebf5e6e2db645fd391f0d41a34ccfb | [] | no_license | nicholaspun/IZ-Net | ace6ec23a31163eb0bb9f7a0286f98e5f12f51a7 | d76f9c567c0bd087e8cf0937b5c3ea47dabf492b | refs/heads/master | 2023-01-07T23:31:11.998391 | 2020-11-08T18:49:05 | 2020-11-08T18:52:15 | 288,926,084 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,368 | py | from keras import backend as K
from keras.models import Model
from keras.layers import ZeroPadding2D, BatchNormalization, Concatenate, Conv2D, Dense, Input, MaxPool2D, Flatten, Lambda, AveragePooling2D
def l2_norm2d(x, pool_size=(2, 2), strides=None, padding='valid', data_format=None):
if strides is None:
... | [
"nicholaspun99@gmail.com"
] | nicholaspun99@gmail.com |
8a76079823a30b4890e38d245aba5425a7fc1472 | f58f153aa974cbebae09d6bbcc965ae037702950 | /1 Preprocessing and Initial Integration/Suface_Data_Preprocessing.py | 4570d6cb6e0d9351a31006344c4c39ca77e8b3e8 | [] | no_license | KenBolingGeoscience/Tennessee_Oil_and_Gas | 511b832a65562549335c23690ad21bfaba273b3a | b78ae24ce896457868e6190af68aa5c6c0eeb79f | refs/heads/master | 2020-06-03T14:56:59.851841 | 2019-10-16T17:07:21 | 2019-10-16T17:07:21 | 191,615,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,813 | py | # Converts polygons to line features representing the geologic contacts for every quad
# This process collects the FID information about the neighboring polygons for each line segment
# The FID is then matched with the label on each polygon to get the geologic unit information
import arcpy
# Set the workspace environ... | [
"KenBoling.Geoscience@gmail.com"
] | KenBoling.Geoscience@gmail.com |
53dc61ca8ee4c7f7a59a654bcb83f31721d9708b | c0be876bcd2a5f5a854b2f3e784ca06f2a0bd375 | /oop/class_porperty.py | 0d12950309cde9402eb698aeba6c321f4777a657 | [] | no_license | wjun7979/liaoxuefeng | f2cee7c7bdc2b85f6f184dbdc84b013906ec2cdd | 81637aae17b9f3efac3c8132dfc7b85bb6314158 | refs/heads/master | 2023-01-10T13:20:01.618163 | 2020-07-23T00:43:48 | 2020-07-23T00:43:48 | 253,358,686 | 0 | 0 | null | 2023-01-06T12:15:32 | 2020-04-06T00:18:01 | TeX | UTF-8 | Python | false | false | 763 | py | # -*- coding: utf-8 -*-
# 请利用@property给一个Screen对象加上width和height属性,以及一个只读属性resolution
class Screen(object):
@property
def width(self):
return self._width
@width.setter
def width(self, value):
self._width = value
@property
def height(self):
return self._h... | [
"wjun7979@gmail.com"
] | wjun7979@gmail.com |
26bde4cc8740ae75056ce1e9a99e4aa2852a1915 | e729d73ea927a7702b6cfb0587d78840c48c6350 | /textract/lib/python3.8/site-packages/ebcdic/cp871.py | 242fd019b51e724bf060e974cdc1b56f7599addd | [] | no_license | mayurtikundi12/allfilereaders-nodejs | 940b5757feb94bfbeec0cb257e34c01417ccd480 | 4525ae2aa4b507dc6985dc16d1302d4aa5242506 | refs/heads/master | 2023-08-07T03:38:02.604917 | 2021-10-03T21:40:25 | 2021-10-03T21:40:25 | 413,202,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,603 | py | """
Python Character Mapping Codec cp871 generated from 'temp/cp871.txt' with gencodec.py.
"""
# Ensure the generated codec works with Python 2.6+.
from __future__ import unicode_literals
import codecs
# Codec APIs
class Codec(codecs.Codec):
def encode(self, text, errors='strict'):
return codecs.charmap... | [
"mayurtikundi12@gmail.com"
] | mayurtikundi12@gmail.com |
7cfc5f00b47415235a0108dd8aef5bdf73c8ca66 | 723a2ee8404146edc4bcc2994496a60f3bbcfc1b | /exceptions.py | 3f65b25d31f6144293554712948a7d2f72f97a61 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | shukyp/Python-Lang | d836f909f2598d0241b3dfefed01e63bf7e8ebab | 24279f3a7446709e981ae6eea3b7bc54a833403a | refs/heads/master | 2021-05-23T13:20:13.009715 | 2020-04-14T14:44:20 | 2020-04-14T14:44:20 | 253,307,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,993 | py | #===========================================================================
# Exceptions Module
#===========================================================================
"""
# Deals with the subhect of exceptions:
# Raising, Catchingm Built-in and user exceptions
# Exception Object is... | [
"shukyp@bezeqint.net"
] | shukyp@bezeqint.net |
8005c05612bbec43b6ca81c5de5062dd6c6fc1ab | bc8d861814d85c240901c30ad4036611d961ffc0 | /src/dicttree/qt/log.py | 4acc51aa531ec8dafbd53ac0cffb84ad2f4eff12 | [] | no_license | chaoflow/dicttree.qt | 2178c306fcc9aea4c653c8e045c5172b702c8750 | 5652415db383ffa2ce62f068edeba1f2528354b2 | refs/heads/master | 2016-09-05T14:41:05.872310 | 2012-06-17T23:57:37 | 2012-06-17T23:57:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from dicttree.log import getLogger
logger = getLogger('qt')
getLogger = logger.getChild
| [
"flo@chaoflow.net"
] | flo@chaoflow.net |
69474564a18666a0963c7e33f1576ef89167c51c | f53ab7c26e342e857cbac30869b717eaf393a9cf | /music_sorter/wsgi.py | 4e149915b514000e3d94e947dadf71d6e9b534c7 | [] | no_license | KellyInnovation/music_library | 36afd8f31a5540ca59a294ef82ecd3969300c1ac | 2b427c0cb02bab92ca3489539420f2ddcf3b7a4d | refs/heads/master | 2021-01-21T23:45:47.731819 | 2016-09-20T20:15:57 | 2016-09-20T20:15:57 | 68,740,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for music_sorter 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.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | [
"kelly.wright@kellyinnovation.com"
] | kelly.wright@kellyinnovation.com |
8c595b965a9063c226bcba10f9c8cac6b78c0f65 | 5ba78d15c0da7ea138230fae9159fbbacde7fbac | /backslashx90/old_tests/map.py | d518f8f225f64160af68735f44fac5568bed1923 | [] | no_license | nbroeking/Basic-Python-Compiler | f8fe23bdfffc85f7142ed0dfaeca830bc25a3e69 | 8e38a1d8f389a183bf4b61a3bd554ca5320a851a | refs/heads/master | 2020-12-07T13:41:55.425269 | 2015-04-30T03:01:38 | 2015-04-30T03:01:38 | 29,210,403 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | def my_map(f, lst, length):
def map_p(f, lst, idx, length):
return [] if idx == length else [f(lst[idx])] + map_p(f, lst, idx+1, length)
return map_p(f, lst, 0, length)
leslie = [1,2,3,4]
def mul(x, y):
return 0 if x == 0 or y == 0 else x + mul(x, y +- 1)
new_leslie = my_map(lambda x: [mul(x,x)] ... | [
"devel@archaen"
] | devel@archaen |
4ca230303453875542b953056c28f281a951c076 | ac8dc53657fb8f5e5abd6a00f196b605ad032e5f | /run_nai.py | bcac8f8cfea08dfa284fc17e5210cca7612a61ac | [
"MIT"
] | permissive | wojtekwalczak/FB_datalab | d1f105a1800484e2535708e93f6768c8daac1363 | 571de13efadb41224583df1aaadd2fba92efa497 | refs/heads/master | 2020-05-18T00:33:44.253376 | 2014-06-27T07:08:19 | 2014-06-27T07:08:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | #!/usr/bin/env python
# -*- coding: utf-8
import sys
from lib.nai.cv import NodeAttrInferCV
if __name__ == '__main__':
z = NodeAttrInferCV()
methods = z.list_methods()
if len(sys.argv) < 2:
print 'Usage: %s <%s>' % (sys.argv[0], '|'.join(methods))
sys.exit(1)
z.register_method(sys.argv[1])
... | [
"ww@tosh.pl"
] | ww@tosh.pl |
ab3480f5c4a85d3fd72aa0503fc6bee836ca37d5 | cc8b2a5953f1d9a3d1f68ddbbf754612fd9913f7 | /supnotebook.py | 3ca3fca4437528dcdefa9247f52210a43c3c1464 | [] | no_license | SachinMaharana/superhero-notebook | fe1023ee2def71340effd9b4bbf1e3afedb841d4 | 8c523e4968d76a23b6efc57a5757d8063090396a | refs/heads/master | 2021-01-19T03:27:48.654245 | 2016-08-11T17:57:47 | 2016-08-11T17:57:47 | 65,483,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | import datetime
last_id = 0
class Hero:
def __init__(self, name, place):
self.name = name
self.place = place
self.creation_date = datetime.date.today()
global last_id
last_id += 1
self.id = last_id
def match(self, filter):
return filter in self.name or f... | [
"sachin.nicky@gmail.com"
] | sachin.nicky@gmail.com |
682878908c9624f81e0c822074e0971a156d2eb3 | c20929d5279e029918e12b4ae95611f8fafc6c91 | /caffe2tf.py | b90e2899486cd6049c88e9cf94a29e9ba16bf053 | [] | no_license | ChangdeDu/fMRI_Reconstruction | c1b7959176b44536438dcc6b79728636b8f35877 | d0a0ae67a73821fadf2665745882e190f600f7bf | refs/heads/master | 2021-09-23T02:17:26.655370 | 2018-09-19T23:17:55 | 2018-09-19T23:17:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,548 | py | try:
import caffe
except ImportError:
print("!!!! Caffe import error")
pass
import numpy as np
from collections import OrderedDict
import tensorflow as tf
import os
def save_model(deploy, model, savename):
net = caffe.Net(deploy, model, caffe.TEST)
params_ = OrderedDict()
for name, layer in ne... | [
"sreejan.kumar@yale.edu"
] | sreejan.kumar@yale.edu |
6d39c603b4faa6fc700e6e2b5f6834ac5a1e616f | c31fa3ef97adefb15a6f178bba38de6ccd3a6c37 | /final_wiener_hammerstein/final_wiener_hammerstein_fig_performance.py | 1d940c6c2c621efe939811128296f2f5319c74b6 | [] | no_license | w601sxs/DeepSSM_SysID | 29f1c7847c5c35e9da3ccd7a98cbe65120531343 | 8e9e15c2f916110d06e67e1f12824749036e73a1 | refs/heads/master | 2022-11-15T05:29:29.882868 | 2020-06-26T11:40:22 | 2020-06-26T11:40:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,680 | py | import matplotlib.pyplot as plt
import os
import torch
import numpy as np
import pandas as pd
import sys
# only to compute the performance if not available
import data.loader as loader
from models.model_state import ModelState
import testing
from utils.utils import compute_normalizer
import options.model_options as mod... | [
"daniel.gedon@gmx.de"
] | daniel.gedon@gmx.de |
a80f3367f2b74b2e587420bdc8b338247e81ce5c | 2bb997c3786efdd2fd7fd418f70be1f05b5e8f95 | /test_dataframe.py | a252964ceb7855ee7d7fbc867ed7035314d963eb | [
"MIT"
] | permissive | UWSEDS/homework-4-documentation-and-style-penguin77777 | 9e0f4f748e681193418d0756ac1689d502ba098a | 6c3fc7fbd04695e80259adac4590250dc18832e8 | refs/heads/master | 2020-09-03T04:14:19.188266 | 2019-11-06T05:18:40 | 2019-11-06T05:18:40 | 219,383,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,083 | py | # coding: utf-8
'''Test Files for HW3 and modified for HW4 based on PEP8 and tested by pylint.
This file contains 11 tests.'''
import copy as cp
import pandas as pd
import numpy as np
import check_dataframe as checker
def data_downloader(name):
'''Download and load test data. It takes a string and returns a dataf... | [
"yxu666@uw.edu"
] | yxu666@uw.edu |
191f542f46a52e8db54d09c0ba6198dd8b8432fc | 01c45c0a44478cd306ffe7e3ac254f8fe280214e | /Search.py | 01aa4dce209153be4daef66b3a505b1127c5ddd5 | [] | no_license | Elhaouri98/Article-Crawler | d02b7508540f023a94c85df08643c9d4ec16d8c5 | 8d5ef33074920616d5229f9404a58c05e8d0dec9 | refs/heads/master | 2022-10-16T17:13:25.045592 | 2020-06-07T16:41:00 | 2020-06-07T16:41:00 | 269,771,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,347 | py | import tkinter as tk
from tkinter import ttk
import tkfontchooser as tkf
import pymongo
import os
import ssl
import dns
cluster = pymongo.MongoClient('mongodb+srv://user:user@cluster0-kiqxz.gcp.mongodb.net/test', 27017)
db = cluster['theguardian']
collection = db['articles']
collection.create_index([('author', 'text')... | [
"elhaouri.lahoucine@gmail.com"
] | elhaouri.lahoucine@gmail.com |
13489a250615136c22647f9c7fcdca9254946a9e | f06824390d7dc3e6e8739b962eacf583cfa2c8b2 | /Week 0/a5 - Practice.py | 20a047d2e5d8316f9a872b7e0a466f8a338b0eb7 | [] | no_license | Jobling/Coursera-Python | 0e9b6a07e2ddefed441402cbad5357b8cda64793 | 4447511a5c3bd5bea6b529609f07ab09bef18c09 | refs/heads/master | 2016-08-12T20:13:49.964191 | 2015-10-18T21:47:20 | 2015-10-18T21:47:20 | 43,599,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | # Compute the circumference of a circle, given the length of its radius.
###################################################
# Circle circumference formula
# Student should enter statement on the next line.
print 2 * 3.14 * 8
###################################################
# Expected output
# Student should look... | [
"tiago.jobling@gmail.com"
] | tiago.jobling@gmail.com |
b5663981c33259a4f4d08baba8001b0fa1b293f0 | 7398cc3833cbc0ce302c13c39f7b0d6e31dda721 | /CLASS/Python_practice.py | f290a957a87b47a0bed2b9bb06763fea0a289e5b | [] | no_license | opeoje91/Election_Analysis | 19d0095ea8b33dd44b3308b253e6cf7c0138e2fb | 932c9a457c18225915923a63f5e4136b2c2ead28 | refs/heads/main | 2023-03-27T09:27:26.193147 | 2021-03-23T22:11:39 | 2021-03-23T22:11:39 | 348,795,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,547 | py | #counties = ["Arapahoe","Denver","Jefferson"]
#if counties[1] == 'Denver':
# print(counties[1])
#counties = ["Arapahoe","Denver","Jefferson"]
#if counties[3] != 'Jefferson':
# print(counties[2])
##Membership and Logical Operators
counties = ["Arapahoe", "Denver", "Jefferson"]
#if "El Paso" in counties:
# print("El ... | [
"76888695+opeoje91@users.noreply.github.com"
] | 76888695+opeoje91@users.noreply.github.com |
52f9bc9a58ff7b20a5649bc9b9f31a563ab06e77 | 196fa30619180e6234e7927433b8014e6f1bb184 | /TurismMedical/afectiuni/admin.py | f664ec7478f1e34ac825bc13b6cc5a88f541bcfc | [] | no_license | CristianCondruz/TurismMedical | 30e6442cac73a19cc3fa01190f74ab5645282175 | 6a62f02759ab50b91068a5b58f68346a46ac340b | refs/heads/master | 2020-07-25T20:42:45.853945 | 2019-09-14T11:40:36 | 2019-09-14T11:40:36 | 208,418,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(StatiuniBalneare)
admin.site.register(Afectiuni)
admin.site.register(AfectiuniStatiuni)
admin.site.register(BazaTratament)
admin.site.register(ConsultatieMedicala)
admin.site.register(Cazare)
admin.site.register(Pro... | [
"cristi.condruz@gmail.com"
] | cristi.condruz@gmail.com |
294a4d954b752e5bd46a91533b451568f6ae9649 | d546a3a1c66c4e5493c330a6f7063e1849395a54 | /app/recipe/views.py | af097beeef07d8ca34f95f1aee806e953c00e1d3 | [
"MIT"
] | permissive | masoudr/recipe-app-api | a0ef10d46d8d3310582de24e03aa2ea317945d91 | 8c397ecddd94a250d1328ec4e1a3e9d8f1d9102f | refs/heads/master | 2020-08-09T19:41:15.619271 | 2020-07-28T06:08:14 | 2020-07-28T06:08:14 | 214,157,823 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,777 | py | from rest_framework.decorators import action
from rest_framework.response import Response
from rest_framework import viewsets, mixins, status
from rest_framework.authentication import TokenAuthentication
from rest_framework.permissions import IsAuthenticated
from core.models import Tag, Ingredient, Recipe
from recipe ... | [
"work.rahimi@gmail.com"
] | work.rahimi@gmail.com |
0737a2f6e17c65219c251686d16823aafc690950 | 414db33a43c50a500741784eea627ba98bb63e27 | /0x0B-python-input_output/3-write_file.py | ae0c2b1e364ed751046127fc160d45a253030029 | [] | no_license | rayraib/holbertonschool-higher_level_programming | 2308ea02bd7f97eae3643e3ce0a6489cc1ad9ff5 | 6b4196eb890ffcb91e541431da9f5f57c5b85d4e | refs/heads/master | 2021-09-14T09:12:26.664653 | 2018-05-11T03:23:12 | 2018-05-11T03:23:12 | 113,070,818 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | #!/usr/bin/python3
'''write to file'''
def write_file(filename="", text=""):
'''open file to write text and return the number of bytes weritten'''
with open(filename, 'w', encoding='utf-8') as f:
return(f.write(text))
| [
"binitarai11@gmail.com"
] | binitarai11@gmail.com |
1d24e571d3b5b5e5d585925e9c05b57940e5ce84 | 91e01736514cd2836ea71fbdf8f1e80b0e544d89 | /Learning step/Kelas online/latihan/latihan object.py | ce597767ba04f72318fb540fdf605c7746a3ef47 | [] | no_license | TrishaAndalene/mySchoolProject | 3c1fe55b070bfbf1593077054e555218fa2a4bbd | ab8e2e680444eadacb9d9e58d1ec7d166963ef18 | refs/heads/master | 2022-12-01T23:08:01.336556 | 2020-08-15T03:55:24 | 2020-08-15T03:55:24 | 274,874,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | class Student:
def __init__(self, name, nickname, grade, age, study):
self.name = name
self.nickname = nickname
self.grade = grade
self.age = age
self.study = study
student1 = Student('Jesse Ario', 'Jesse', 8, 14, 'IPS')
print(f"Halo ini teman saya namanya {student1.name}")
print(f"Kamu dapat memanggilnya... | [
"trishaandalene2006@gmail.com"
] | trishaandalene2006@gmail.com |
2c2bf0e08f45b674f996afac25eb10688eae8afa | b5e8dc7c21659ac33b6e242a298a44d30bfa3610 | /env-prod/Lib/site-packages/sklearn/feature_selection/_univariate_selection.py | 3ad7abb6f9804830d88331b85a864e2066932f54 | [] | no_license | rpuegue/CoursA61 | c168b44cd9835ad7524c97b2983305c56acd8096 | a4fc8f7504491eb94cb2f1d2bf6d16674901a0c5 | refs/heads/main | 2023-03-10T09:08:31.293546 | 2021-02-22T16:25:51 | 2021-02-22T16:25:51 | 339,574,678 | 0 | 0 | null | 2021-02-22T16:25:51 | 2021-02-17T00:57:41 | Python | UTF-8 | Python | false | false | 28,925 | py | """Univariate features selection."""
# Authors: V. Michel, B. Thirion, G. Varoquaux, A. Gramfort, E. Duchesnay.
# L. Buitinck, A. Joly
# License: BSD 3 clause
import numpy as np
import warnings
from scipy import special, stats
from scipy.sparse import issparse
from ..base import BaseEstimator... | [
"djatchepuegue@gmail.com"
] | djatchepuegue@gmail.com |
c813db17e0b517e6d6d3eb324d57cdbd6b573e6a | 95d0806ce766805beffba8144e4b83076b5f8b91 | /hongwai/exam/thermo+hongwai_v01_hongwai.py | 381646566d49c0ddec0464b85706d2008c0c75f5 | [] | no_license | chengw99/dell | 1f4d5a2f20f3e61208266dc4a0adc4e18cd44ff8 | 4f932c3f0d3deb545700a9616456fb0beeb733d0 | refs/heads/master | 2021-04-15T08:53:49.011550 | 2019-03-23T14:56:41 | 2019-03-23T14:56:41 | 104,961,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 15 14:34:03 2018
@author: DELL
"""
# 此程序根据 thermo+hongwai_v01_pic_coord.py 选出的数据范围 对红外数据进行面平均
# 因为每个时间红外数据选择的范围都不同,所以不能做批量处理
import numpy as np
import pandas as pd
ipath = r'E:\py_data\hongwai'
opath = r'E:\py_output'
data = pd.read_csv(ipath+'\\'+'one-facing south-23... | [
"951849311@qq.com"
] | 951849311@qq.com |
070ef5ebe9edfb309d999ffe174f5ac9667d450a | 32c8b6a398d9fb57fdb0ba5f1a646a7dea031243 | /apidemo/manage.py | 871903f7e7812f50809713231932bd387300a9f0 | [] | no_license | jungzi1/starting-django-ninja | 33dc55f125c0a0acbecc2f5a2f191b7a67eeddf1 | 14ebbe604f09cfd2d75c708a6b07e4f545b06968 | refs/heads/main | 2023-08-13T21:14:09.775583 | 2021-09-09T02:45:47 | 2021-09-09T02:45:47 | 394,198,162 | 1 | 1 | null | 2021-09-09T02:45:48 | 2021-08-09T07:44:37 | Python | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'apidemo.settings')
try:
from django.core.management import execute_from_command_line
except Impo... | [
"glenn.adoc.co.kr"
] | glenn.adoc.co.kr |
300f5a9fca5dba9c2e65ac30ba5c630bed926363 | bc6b2d891556ca910f68b355392204959e8cb1c2 | /.ipynb_checkpoints/decoding-checkpoint.py | f703e215c79a7dded16836b706f49b002ff2c7a5 | [] | no_license | Toni-Chan/SumGraph | 10f177ca6a145ab7b3913167bb3d00bc5ef8f0c6 | ede014901b6e92738a219c464605e7de66846909 | refs/heads/master | 2023-05-27T16:36:35.749899 | 2020-12-18T07:32:06 | 2020-12-18T07:32:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,447 | py | """ decoding utilities"""
import json
import re
import os
from os.path import join
import pickle as pkl
from itertools import starmap
from cytoolz import curry, concat
import torch
import pickle
from utils import PAD, UNK, START, END
# from model.copy_summ import CopySumm
# from model.copy_summ_multiencoder import Co... | [
"xwwang111@gmail.com"
] | xwwang111@gmail.com |
7dde55dd8412edc8773a6e87da385af3f55c7e68 | d84f858b917ace9a075902f08f7403a8c7a723ee | /tests/data/io/test_download.py | b73911d29a132073182f4ca48e5618f4ada7aa49 | [
"MIT"
] | permissive | moomoofarm1/yann | c7b153e9d6dee5c30dc2467692c9564da1615d22 | bdf04e883b1d4df462bb64eb686c948f46df4418 | refs/heads/master | 2020-12-03T21:42:36.590648 | 2019-12-26T21:15:37 | 2019-12-26T21:15:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | from yann.data.io.download import Downloader
class RemoteDataset:
def __init__(self, downloader: Downloader):
self.downloader = downloader
def prefetch(self, indices=None):
for n in indices:
self.downloader.enqueue(self[n][0])
def __getitem__(self, item):
return 'id', ['labels']
def test_do... | [
"michalwols@gmail.com"
] | michalwols@gmail.com |
65897456771ac8e12d672fe22229a025e1334994 | 7ac0577053bbb8cf83a9d5feb4c7d0b325a2dd28 | /if-else.py | 6c6e42afa5f61276fe0a35efb0e528d63a64d0ba | [] | no_license | QiangBB/python_learning | 1007aa9807fbe4a7f2ddc5f843e9c3290581ef21 | 573378070b28ea057a413f75b64e56bf61b7cef9 | refs/heads/master | 2020-06-20T13:17:49.190903 | 2019-07-16T06:34:37 | 2019-07-16T06:34:37 | 197,134,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | x=1
y=2
z=0
if x<y<z:
print('x比y小,y比z大')
if x==y:
print('x与y相等')
elif x>y:
print('x大于y')
else:
print('x与y不相等')
| [
"752865241@qq.com"
] | 752865241@qq.com |
7c322d93edc39e53a28a48435e3aa84c0a8fca02 | 3bcdff8dbaa56e174d3454909cda2600c36b0e2b | /accounts/views.py | 0bdc01971c393e4f8b509e343496ce7cd64ff60a | [] | no_license | 7sering/merokart-ecommerce | 1233e9b0926a56c863241cbfd251eb1a2238bcc3 | f92b253de5cebc3ab263c4789877023170e827a5 | refs/heads/main | 2023-06-26T17:05:57.686609 | 2021-07-26T07:23:24 | 2021-07-26T07:23:24 | 382,266,671 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,153 | py | from django.shortcuts import render, redirect, get_object_or_404
from .forms import RegistrationForm, UserForm, UserProfileForm
from .models import Account, UserProfile
from django.contrib import messages, auth
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse
from orders.mo... | [
"codenow8@gmail.com"
] | codenow8@gmail.com |
ea2782e8c450f6c5a2dc9fb342bdfef834919c34 | 0a9949a7dbe5f7d70028b22779b3821c62eb6510 | /gt_order_mongodb/conf/source_getdata0417.py | 4d878aad59c7d787d1dd3cd6a30173596d185ecb | [] | no_license | 744996162/warehouse | ed34f251addb9438a783945b6eed5eabe18ef5a2 | 3efd299a59a0703a1a092c58a6f7dc2564b92e4d | refs/heads/master | 2020-06-04T22:10:14.727156 | 2015-07-03T09:40:09 | 2015-07-03T09:40:09 | 35,603,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,784 | py | #ecoding=utf-8
__author__ = 'Administrator'
import sys
reload(sys)
import datetime
from dateutil.parser import parse
sys.setdefaultencoding('utf-8')
from source_mysql import *
sys.path.append('..')
from conf import *
import model
class GtOrderDao(Mysql):
def __init__(self, dbtype="local"):
Mysql.__init__(s... | [
"744996162@qq.com"
] | 744996162@qq.com |
a42594a6a90b6225122b71b22638061d07d22bdc | bfe6970b41149e0fbea29cc57ecefabe30fb0e5d | /migrations/migrations/migration.py | d16598cbd104bcc6ddd53cdb5593a88994de9cef | [] | no_license | WooodHead/scrap_github | 35d907f4c98439aec7c5a783498d777d53125376 | 08f833f837e5236f77f5badb98b92ba51d67b4fc | refs/heads/master | 2022-06-03T22:35:27.184229 | 2020-03-20T15:05:26 | 2020-03-20T15:05:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,084 | py | from __future__ import with_statement
import os
import sys
from logging.config import fileConfig
from alembic import context
from sqlalchemy import create_engine
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
# Interpret the config fil... | [
"waleed_meselhy@eng.asu.edu.eg"
] | waleed_meselhy@eng.asu.edu.eg |
307c56653999dee4eb9b8b5df9c018dff5c640c2 | 9d2c6f64e7a302e2c2ac752329c2c0fda34bb387 | /Conf/setting.py | 3856de92c8a8f4ecea9ac3f29e655e5262e46ad9 | [] | no_license | Eternity-ZYQ/airtest_demo | 9afc672f29dcd059ac8995e7b08d96c5c2aacbc2 | 79f5029631b80c045cc4b0db3ffc0ef169b83387 | refs/heads/master | 2023-05-31T18:15:39.546984 | 2019-02-02T12:00:38 | 2019-02-02T12:00:38 | 380,183,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py |
"""
统一管理公共的库,不要添加相对路径的
"""
import os
class Setting(object):
path =os.path.dirname(os.path.abspath(os.path.dirname(__file__)))+os.sep | [
"728661182@qq.com"
] | 728661182@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.