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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9923ed6418a41df1bcffcaa83ba5e9daa2bda808 | d9d493d158377a36cf30b424b317d5942676161b | /util.py | 3a7059aff47bf21f38be501725e97b7ec7f9ee00 | [
"MIT"
] | permissive | xinzheshen/ml_practice | afe5a1b8ef9fd58d8627b3bdcdba72408e65717d | 4ceafc760655fb745074a318b92da5e2e75e5137 | refs/heads/master | 2020-12-12T02:45:13.954201 | 2020-05-17T13:51:34 | 2020-05-17T14:11:44 | 234,024,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | import os
import numpy as np
def iris_type(s):
it = {'Iris-setosa': 0, 'Iris-versicolor': 1, 'Iris-virginica': 2}
return it[str(s, encoding='utf8')]
# 花萼长度、花萼宽度,花瓣长度,花瓣宽度
# iris_feature = 'sepal length', 'sepal width', 'petal length', 'petal width'
iris_feature = '花萼长度', '花萼宽度', '花瓣长度', '花瓣宽度'
def get_iri... | [
"xinzheshen@163.com"
] | xinzheshen@163.com |
7425e04ede66a3dd3f8b4ca7af53c5c3c88b6787 | 795d4691d4f0b7b80fa399f9d7e9f4e2388cb6a4 | /filter_lidl_csv.py | 94c4d425bbdd7e10b7fdfe5002d0c630de74925b | [] | no_license | ChristianPetersen/winereccsv | 0bb41dba59a71bcf86219b3a613dcde7c221816c | 6e1a79503b47443ffe30889395219c74138e5649 | refs/heads/master | 2020-12-24T07:45:04.796293 | 2016-11-10T10:23:04 | 2016-11-10T10:23:04 | 73,373,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,873 | py | #!/usr/bin/env python
# coding=utf-8
import csv
completecontent = csv.DictReader(open('lidl_raw.csv','rb'))
g=open('lidl_wein.csv', 'wb') #vielleicht mag auch rb besser passen
# writer = csv.DictWriter(g, ['ProductName', 'ProductPrice', "ProgramId", 'Zupid','MerchantProductNumber','CurrencySymbolOfPrice','ValidFromDate... | [
"cpetersen@christisensimac.localdomain"
] | cpetersen@christisensimac.localdomain |
37fd9413602461c02c3a941cb3de80c99a03bdcd | 5c238e795dd280f3ccd3d772d75ce8664c9e2887 | /ch09/improved_spark_mllib_model.py | 35b6016e18ca191a147eb20e1123bf01d321acef | [
"MIT"
] | permissive | wikibook/agile-data-science | d149878fff6da6cd8e71c579e0817af8ff4ff05b | 7769fc2d6c810e9f1a64e45d3684e9260d99d983 | refs/heads/master | 2020-03-11T06:07:21.118819 | 2018-04-17T00:25:27 | 2018-04-17T00:25:27 | 129,822,191 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,615 | py | # !/usr/bin/env python
import sys, os, re
import json
import datetime, iso8601
from tabulate import tabulate
# airflow에서 날짜와 기본 경로를 main()으로 전달
def main(base_path):
APP_NAME = "train_spark_mllib_model.py"
# SparkSession이 없으면 환경 생성
try:
sc and spark
except NameError as e:
import findspark
findsp... | [
"dylee@wikibook.co.kr"
] | dylee@wikibook.co.kr |
dfb74484bd02dc473a131398c56b893d5be98e0d | cdd4b2373e2ccefe921ea5469038f2d3f87a8766 | /config.py | 4194cab1a40673e9d683e65fdf2be42950fc7410 | [] | no_license | auscenery/GAN_tensorflow_eager | f5e04fc5dee8a1eff376da4e0726087659637121 | 8c766b33a2274b2837aeec2a96f0e39e9514c801 | refs/heads/master | 2020-06-04T07:18:38.464713 | 2019-06-13T04:03:57 | 2019-06-13T04:03:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/6/11 下午3:30
# @Author : Zhizhou Li
# @File : config.py
import os
ROOT_DIR = os.path.dirname(os.path.realpath(__file__))
OUTPUT_DIR = os.path.join(ROOT_DIR, "outputs") | [
"lizhizhou@kingsoft.com"
] | lizhizhou@kingsoft.com |
b1386fad363c4f684ef7f0fec17ecba51981d38e | 997b4268d71db634d1dfd5cca61f1175a955e8b0 | /Cloudera_Api/cloudera_python_api.py | d02e4996fdcba4317c54c34d0ba342d2536ef9dd | [] | no_license | kaushikamaravadi/Python_Practice | ec04b7756cd54cf0411d4558f4ca0ef10910c5e6 | f6e1c8b72ede73bc42b89d0f5693be2b16765090 | refs/heads/master | 2020-04-06T03:55:34.208816 | 2017-06-26T03:49:59 | 2017-06-26T03:49:59 | 83,100,997 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,454 | py | from cm_api.api_client import ApiResource
import smtplib
import time
import datetime
cm_host = '104.198.165.120'
api = ApiResource(cm_host, 7180, username="admin", password='admin')
# Basic Usage
cdh5 = None
cdh4 = None
for cluster in api.get_all_clusters():
print(cluster.name)
if cluster.version == 'CDH5':
... | [
"kaushik.amaravadi@gmail.com"
] | kaushik.amaravadi@gmail.com |
47f00f80cad38759f334b8bab11475d0fb59109b | 1ed536ef1527e6655217e731f622d643ece49c2b | /scripts/gpipe/predictions2assembly.py | e1a513826d4d3fdb4fe7b6583ffb7338c3e950d1 | [] | no_license | siping/cgat | de0f7af124eb38c72d7dece78fff83ff92ddbf96 | aa4cc85ffdc53998ea1a5ac5516df2d16c254d2e | refs/heads/master | 2021-01-22T13:03:18.060139 | 2013-10-07T15:53:55 | 2013-10-07T15:53:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,182 | py | ################################################################################
#
# MRC FGU Computational Genomics Group
#
# $Id$
#
# Copyright (C) 2009 Andreas Heger
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as publish... | [
"andreas.heger@gmail.com"
] | andreas.heger@gmail.com |
6088bcce1e0e71bca1ed27d25cdb98d7774b4b30 | 8a4f0d4aad4a901bd08fd5eb92b2a31fb1bac167 | /dizoo/procgen/maze/envs/test_maze_env.py | ebbcb7bebde90feee04225266ee24dedf0f8ca7f | [
"Apache-2.0"
] | permissive | lichuminglcm/DI-engine | 3977eed854dc634f8796764e0a7e0b71b615747f | e9052f195d231a9875afb053ba815c6341857571 | refs/heads/main | 2023-08-21T05:09:49.931351 | 2021-10-11T12:32:36 | 2021-10-11T12:32:36 | 415,903,070 | 0 | 0 | Apache-2.0 | 2021-10-11T12:32:37 | 2021-10-11T11:48:26 | Python | UTF-8 | Python | false | false | 807 | py | import pytest
import numpy as np
from easydict import EasyDict
from dizoo.procgen.maze.envs import MazeEnv
@pytest.mark.unittest
class TestMazeEnv:
def test_naive(self):
env = MazeEnv(EasyDict({}))
env.seed(314)
assert env._seed == 314
obs = env.reset()
assert obs.shape ==... | [
"noreply@github.com"
] | lichuminglcm.noreply@github.com |
77a1e59545434c658624ddc110f40d384f6e9774 | b31e7898aa5131125f243eaff973049b17e08512 | /.venv/bin/coverage | 85f14e7690c8b0e6cbea6f2ec81bf93f8cf98538 | [] | no_license | ramsred/MyProjects | f2978eeda3d73421daf0da9f2d012caef6c3ccda | a7f90ef1ecfbc7517be61e71286bd14405985de5 | refs/heads/master | 2023-07-09T03:19:17.683705 | 2023-07-02T19:30:19 | 2023-07-02T19:30:19 | 71,980,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | #!/workspaces/MyProjects/.venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from coverage.cmdline import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"venkataramireddy534@gmail.com"
] | venkataramireddy534@gmail.com | |
0d6742dae1f53fd577588a524c1be9c5a955bc06 | dab8d9af2a3111731ab41e818f2729e9631f52d2 | /command_show_info.py | 13de733e4b41840315d7587795dedf05b6bfe53f | [
"WTFPL"
] | permissive | sagold/FuzzyFilePath | e99e6feaf06b991e8918ca7891c1d615e9b36935 | 5c50ecdc2af212801ef07d9abb2d9129c9162a1e | refs/heads/master | 2021-01-17T13:11:00.781732 | 2019-04-03T06:52:42 | 2019-04-03T06:52:42 | 19,465,273 | 162 | 16 | WTFPL | 2019-04-09T17:25:39 | 2014-05-05T17:53:41 | Python | UTF-8 | Python | false | false | 343 | py | import sublime_plugin
import FuzzyFilePath.common.settings as settings
import FuzzyFilePath.project.validate as Validate
class FfpShowInfoCommand(sublime_plugin.TextCommand):
""" shows a message dialog with project validation status of current file """
def run(self, edit):
Validate.view(self.view, set... | [
"post@saschagoldhofer.de"
] | post@saschagoldhofer.de |
7cb73ceefb5f84a42e46e124b96ab48221531a18 | 368ef102345a6575d97727b314addcd65f150e19 | /Modules/Crawler/Test/test_urlencode.py | 1551c2f5ebf5acfefcf1449c5331ebfdb14c4aa6 | [] | no_license | newstar123/Pythonlab_DEV | 844b43b6a8aef977515e367bd367e658e37cfa19 | cdb2f0c2369291d6bccd597c33354830e5606eab | refs/heads/master | 2020-04-07T18:08:06.631487 | 2018-11-21T19:47:54 | 2018-11-21T19:47:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | # -*- coding: utf-8 -*-
#---------------------------------------
# 程序:test_urlencode.py
# 版本:0.1
# 作者:ctang
# 日期:2016-02-19
# 语言:Python 2.7.10
# 说明:测试urlencode方法
#---------------------------------------
import urllib
import urllib2
data = {}
data['word'] = 'python'
url_value = urllib.urlencode(data)
url... | [
"devilcuruso@gmail.com"
] | devilcuruso@gmail.com |
fd829064e4909b62f86477e660a7cd3ab16a8829 | 20c9f3a089286a442cc15f8a31bb34e110e68d8b | /tests/python/setitem.py | 3c7a408d59d93ef0b1725084817a4cd7ce5274e2 | [
"MIT"
] | permissive | denim2x/py2nim | 00ca515daef897d380dbf4915583a470ffe4c94e | 56fc2699d31241c60bed726f59efea4bf46be238 | refs/heads/master | 2021-09-28T06:37:42.786868 | 2018-11-15T08:12:30 | 2018-11-15T08:12:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | class A:
def __setitem__(self, e, f):
print(e + f)
a = A()
a[2] = 8
| [
"alehander42@gmail.com"
] | alehander42@gmail.com |
7adeb882f2d4a19aa1c68c3de1192346cd54071a | ba334a178d9cdb69deceb77f071cda27367d6332 | /LoanApp/asgi.py | e04f295aa28b6d31333310720fb6f0f7f6725fe9 | [] | no_license | Suri321123/LoanApp | 7ea10f4de5727ff00eb6d6844b92334c199e4df6 | 2d16130be2ec83a30279c3541f9d70713c2fd0b5 | refs/heads/master | 2020-12-15T19:51:38.450497 | 2020-01-21T02:16:28 | 2020-01-21T02:16:28 | 235,235,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
ASGI config for LoanApp project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault(... | [
"noreply@github.com"
] | Suri321123.noreply@github.com |
0296081c7b5ffd91876af93bf00f5ccdda287dd6 | 292cec77b5003a2f80360d0aee77556d12d990f7 | /src/bentoml_cli/worker/grpc_api_server.py | 87a8e336eb31fd6ceeb1eba0e4e6b26cc1e24fd8 | [
"Apache-2.0"
] | permissive | yubozhao/BentoML | 194a6ec804cc1c6dbe7930c49948b6707cbc3c5f | d4bb5cbb90f9a8ad162a417103433b9c33b39c84 | refs/heads/master | 2022-12-17T00:18:55.555897 | 2022-12-06T00:11:39 | 2022-12-06T00:11:39 | 178,978,385 | 3 | 0 | Apache-2.0 | 2020-12-01T18:17:15 | 2019-04-02T01:53:53 | Python | UTF-8 | Python | false | false | 4,379 | py | from __future__ import annotations
import json
import typing as t
import click
@click.command()
@click.argument("bento_identifier", type=click.STRING, required=False, default=".")
@click.option("--host", type=click.STRING, required=False, default=None)
@click.option("--port", type=click.INT, required=False, default... | [
"noreply@github.com"
] | yubozhao.noreply@github.com |
41950d41c02e097263c14ccf584089cf7beaaaa8 | cfd32a7e3241599ba6cd8e9737c54af97aaeb357 | /yukiko/handlers/test_handler.py | 0e73c84256aee8d1d6dafb8143662cf8053c0e35 | [] | no_license | coela/yukiko | 9812dbf6d1d284ba0656a5c69d9474527f880b1b | 4e1fa72ae1ccf2f7fdeca88a3b9e9fe21b890ce4 | refs/heads/master | 2021-01-17T05:24:29.523970 | 2013-05-15T10:02:32 | 2013-05-15T10:02:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | #-*- coding:utf-8 -*-
import re
def handle(msg, event):
if event == u"RECEIVED":
if re.search(u'ガンダム', msg.Body):
msg.Chat.SendMessage(u"test handler")
| [
"ihara@spiber.jp"
] | ihara@spiber.jp |
ff4049d1d74978856ed56decfb9d45b59ac18862 | 31ba691ba262066c486f9dc9cce5421e7b71445a | /tests/unit/bokeh/test_ext.py | 29cf4fe50140f884034e66d5249a381dccd2208f | [
"BSD-3-Clause"
] | permissive | wulixin/bokeh | 3d4443403a64355c6dc974806d9317076492eb10 | 13b330acffbaf400f81a2671603d04774aa103da | refs/heads/master | 2020-12-03T04:40:21.375025 | 2019-12-28T23:43:51 | 2019-12-28T23:43:51 | 231,204,726 | 1 | 0 | BSD-3-Clause | 2020-01-01T10:57:35 | 2020-01-01T10:57:35 | null | UTF-8 | Python | false | false | 2,377 | py | #-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors.
# All rights reserved.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#-------------------------------------------------------------------... | [
"noreply@github.com"
] | wulixin.noreply@github.com |
d356db3139cd030250d3e26c6ccb8df49c84fc66 | 955281861be4fc4bbff48f0cfead3900cc8b9a90 | /Tests/createNTest.py | 05c5c43421fe291eb6a27e3f9bdd595b9d287281 | [] | no_license | NolanRudolph/FlowSynth | 1020b87553685918d76a5886a4566e543bda0c4b | 0603bd0a71d6841f96f9fd026ee5673d3cc916a2 | refs/heads/master | 2022-03-29T01:59:03.551450 | 2020-01-14T21:31:46 | 2020-01-14T21:31:46 | 184,869,866 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,659 | py | """
This Python module designs CSV test cases to be used with the project packetizer
Potential future implementations:
1. TOS Value (currently defaulted as 0)
2. TCP Flags (currently defaulted as 0)
"""
from sys import argv
def main():
if len(argv) != 11:
print("Use as: $ python " + argv[0] + " [# of Flows] [Dura... | [
"nolan@localhost.localdomain"
] | nolan@localhost.localdomain |
71d0264e5004723d857b4dd896afda2fcd4d3210 | 2aa66b9e3e1bb2e861a0c44137f679150f3a6820 | /JVAP_grid_search_and_train_Gen.py | 94e8f7f0e38597b5071dc0883450cf809327b241 | [] | no_license | qyxiao/mlcs16 | 1609b3250467c41508bcab4b134175d0dbbf5138 | 5ae2baafcef6cbfa97c420ed91adf2a874284263 | refs/heads/master | 2021-05-04T03:23:30.643542 | 2016-05-11T09:53:58 | 2016-05-11T09:53:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,049 | py |
# coding: utf-8
import pandas as pd
import numpy as np
from sklearn.ensemble import RandomForestClassifier
from sklearn.svm import SVC
from sklearn.tree import DecisionTreeClassifier
from sklearn.grid_search import GridSearchCV
from sklearn.metrics import accuracy_score,make_scorer,f1_score,classification_report,ave... | [
"sv1239@login-0-2.local"
] | sv1239@login-0-2.local |
ace1fe5fec3fc6229525da6953460c72a247a54a | c4ed1f4f8bb6fc56b5a8ececaa183d8867dfcd1e | /users/admin.py | 2d2cd0b5cbc61e192b224b0bc06027948eb99007 | [] | no_license | inuinseoul/project_teammate | 58d30114fcd2020d024d574a4eb541cb0df17d55 | e6469f0a820350e466713f9598b8899be5cd1f83 | refs/heads/master | 2023-02-19T11:19:29.205430 | 2021-01-17T13:25:21 | 2021-01-17T13:25:21 | 300,584,711 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | from django.contrib import admin
from .models import Customer, Domain, Score, Role, Study
from alarm.models import Message
# Register your models here.
admin.site.register(Customer)
admin.site.register(Domain)
admin.site.register(Score)
admin.site.register(Role)
admin.site.register(Study)
admin.site.register(Message) | [
"70463738+inuinseoul@users.noreply.github.com"
] | 70463738+inuinseoul@users.noreply.github.com |
410d4bb5e5e781c634ccb36147315481554ca815 | 542d6c7a1303916a60bf0d7d24c8499a02f961c1 | /lib/python3.7/site-packages/azure/mgmt/recoveryservicesbackup/models/mab_file_folder_protected_item.py | f04f303870c1f5e21e635c8a9ec6e22c29c9d67c | [] | no_license | jim-minter/azhack | e9918a916d2b71f3adcc4f1ea208312ad9c59210 | 0e8631fd067014a9f3000101a886e7a9a94acc95 | refs/heads/master | 2020-05-07T19:50:43.980332 | 2019-04-11T15:37:43 | 2019-04-11T22:20:29 | 180,830,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,151 | 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.
# C... | [
"jminter@redhat.com"
] | jminter@redhat.com |
732804ac9de9b5a510efcf7dafc6a26c58df18bd | 4587befcd4c62246d81c97588e6fac5106912e51 | /examples/robot_ros_test.py | b9530caa5c596519afcf5f1e80c7c980847341d1 | [
"Apache-2.0"
] | permissive | dimitriosp/qibullet | d0b560c46a433861b42e55c3d3632cddfacdb292 | 952829e7f2ea6a7711c168a92f73895fafd70c04 | refs/heads/master | 2021-03-26T15:29:36.793194 | 2020-02-20T16:59:16 | 2020-02-20T16:59:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,860 | py | #!/usr/bin/env python
# coding: utf-8
import sys
import rospy
import pybullet
import pybullet_data
from qibullet import NaoVirtual
from qibullet import RomeoVirtual
from qibullet import PepperVirtual
from qibullet import NaoRosWrapper
from qibullet import RomeoRosWrapper
from qibullet import PepperRosWrapper
from qibu... | [
"mbusy.pro@gmail.com"
] | mbusy.pro@gmail.com |
5b6aa737ee88102c13b11d77e3b42a9c49f453dc | 013081f74ca70927b4f5d02310c07a2566351dec | /Rasa_NLU.py | 29e560b51a104bd694841196b23de17f7b5528c5 | [] | no_license | Suchana34/Chatbot | 08616b9b382acbf3193380853a3a200eb8e4a13c | d1b8393da3267cd765b0f6f94069d8fe0c0a6e33 | refs/heads/master | 2022-04-09T15:30:24.257241 | 2020-02-02T13:50:44 | 2020-02-02T13:50:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | #we will train an intent and entity recognizer without having to create any arrays.
# Import necessary modules
from rasa_nlu.converters import load_data
from rasa_nlu.config import RasaNLUConfig
from rasa_nlu.model import Trainer
# Create args dictionary
args = {"pipeline" : "spacy_sklearn"}
# Create a configuration... | [
"suchanachakraborty@gmail.com"
] | suchanachakraborty@gmail.com |
838fb5bb18e6534d6c2b5c7fe2bb3abda47ec76d | 0ecf89ac9c7bb33201bde5358fdcbee9626cd9f1 | /shellingfolder/exp.py | 11e41e01bcd132b6bda0468af23b5d4518f07c2b | [] | no_license | remi-chyan/CTFs | b0eead4fff5bea23df73b3fd7a6947d1d721869a | 63a85690854aceef90573c247698db3f4ddf4983 | refs/heads/master | 2021-01-18T03:33:17.421073 | 2017-03-22T10:10:53 | 2017-03-22T10:10:53 | 85,812,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,387 | py | #!/usr/bin/python
from pwn import *
#current_fold=0x202020
class mypwn(object):
def __init__(self,io):
self.io=io
self.elf=ELF("./shellingfolder")
#libc="./libc.so"
#self.elf=ELF(libc)
def debug(self):
sc=''
#sc='x /30x '+hex(current_fold)
pwnlib.gdb.attach(self.io,sc)
def new_folder(self,name):
... | [
"li@MacBook.local"
] | li@MacBook.local |
b4855df888650d91b7ec705e138601353c3e0be1 | 3c3cfb671748aad086c85d4e186338a7c1c271e6 | /graph/shortest_path/floyd_warshell.py | b19eb421159b5b00b6b7d78d3aa3b5f8183a8e7f | [] | no_license | Yogesh7920/Algorithms | 59f6dbdbf64e15b6bde2743e3cddb5d7262a29c5 | f0e1085c435525305eb03a322e38c838f3b505d8 | refs/heads/master | 2022-11-30T18:33:00.128624 | 2020-08-13T07:13:01 | 2020-08-13T07:13:01 | 265,497,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | def all_pair_sp(g):
am = g.adjacency_matrix()
vertices = g.nodes
for k in vertices:
for i in vertices:
for j in vertices:
am[i][j] = min(am[i][j], am[i][k] + am[k][j])
return am
| [
"111801047@smail.iitpkd.ac.in"
] | 111801047@smail.iitpkd.ac.in |
814ae34121af68101fa9d6de61f59a063b68a8fc | 6d53fe518760359aad98503003a17655de2c40f5 | /assignmentweb/apps.py | ca6e68bf736bbecb3cb4e440737a597c48c95f0e | [] | no_license | rahuls225632/AssignmentMakerWebsite | 97700ce03f131875617b0759111a7ba01f4e1a95 | 7d0ca5422966f0802fd480e89675c3ecbaa8a127 | refs/heads/main | 2023-03-06T12:40:28.557153 | 2021-02-19T15:07:16 | 2021-02-19T15:07:16 | 340,398,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | from django.apps import AppConfig
class AssignmentwebConfig(AppConfig):
name = 'assignmentweb'
| [
"rahulvashistha1998@gmail.com"
] | rahulvashistha1998@gmail.com |
c58d0e885bc9c57fb5b6b5e05f3f4de4b367caa2 | 397825ce787c003b035bf8c9a367f0104658207d | /app/operations.py | abea8eda13a63a127969bf2f2ade92e6754da523 | [] | no_license | pyoner/binance-staking-streamlit | b40c37c69cbbf4d936f4510f56f8b704398abb3a | 235bd9e5af787e9bdaff11ae9bdbfb6ad016ff28 | refs/heads/main | 2023-06-14T01:35:32.292058 | 2021-07-10T10:06:09 | 2021-07-10T10:06:09 | 373,104,998 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | import streamlit as st
import pandas as pd
from binance_staking.api import get_operations_by_delegator
from binance_staking.models import OperationType
operation_colors = {
OperationType.delegate: 'green',
OperationType.redelegate: 'purple',
OperationType.undelegate: 'red',
}
def operation_color(x: pd.D... | [
"devex.soft@gmail.com"
] | devex.soft@gmail.com |
90c756f512fb32649c9ec73fa43d1af2fd58ef50 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_examples/_algorithms_challenges/pybites/advanced/164/test_links.py | 8d9d7847acae4547f25225d0f966e663dbd91d85 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 2,463 | py | import os
from pathlib import Path
import platform
import subprocess
import pytest
# no need to import make_html_links as we call links.py from CLI!
TMP = Path(os.getenv("TMP", "/tmp"))
SCRIPT = 'links.py'
IS_LOCAL = platform.system() == 'Darwin'
MY_CODE = SCRIPT if IS_LOCAL else TMP / SCRIPT
# https://docs.pytest... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
347fc0c2ff61dcb9b07a5b8aa85132c792a2723f | f905323462b518160cf6ccf9cf24038c7342a903 | /models/vgg16_pretrained.py | 64edcb88bbdea35d35346881f583b3e4867cd10f | [] | no_license | msypetkowski/SNR-proj | 7a9f1bca8cfde74b610ae4d7f888f152562f631c | ac9601e32560b05ac496bdaaac137d932e47fb01 | refs/heads/master | 2020-03-11T19:40:32.379895 | 2018-06-13T12:46:31 | 2018-06-13T12:46:31 | 130,214,631 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,070 | py | """ Ripped from: https://gist.github.com/omoindrot/dedc857cdc0e680dfb1be99762990c9c/
VGG16 model pretrained on ImageNet
wget http://download.tensorflow.org/models/vgg_16_2016_08_28.tar.gz
tar -xvf vgg_16_2016_08_28.tar.gz
"""
import tensorflow as tf
import tensorflow.contrib.slim as slim
import tensorflow.contrib.sli... | [
"M.Sypetkowski@gmail.com"
] | M.Sypetkowski@gmail.com |
421b10d2fc7590340caa139968f9aea18f1bf474 | 92659b17e3b9bb234e920be5d19c8467ca19f3b7 | /authentication/admin.py | 9667da40a137b72e1afd05f6a1479b7391232e8f | [] | no_license | Dinara0809/backendschops | a26b87f5b1bd28cccf51b0eb2d0bb3e5290473b2 | 79a18b142ac158d6dc97ebef14fea64b79f1cf6a | refs/heads/main | 2023-08-21T12:36:41.443545 | 2021-10-13T18:14:36 | 2021-10-13T18:14:36 | 417,089,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | from django.contrib import admin
from authentication.models import User
admin.site.register(User)
| [
"azat.temirov7@mail.ru"
] | azat.temirov7@mail.ru |
9d0a98c0426670afb904771fdbbbd6e0afc75a99 | f043e088cba69bb9a02eb27e81c2deaa8ffb218b | /les 2/pe2_2.py | 3493369930c9fb6f84bab4e229fe16ed6b7a9fae | [] | no_license | koenvanputten/programeren | cf1b234da6c8e006186441ad4bc8ec0a0eaf6829 | 8e508b9b204841685985da1ef40ae6f24a6503e1 | refs/heads/master | 2021-05-16T06:15:08.573523 | 2017-09-13T09:23:07 | 2017-09-13T09:23:07 | 103,380,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | for i in range(0, 11):
print(i, end= ' ')
print()
for i in range(1, 10):
print (i, end= ' ')
print()
for i in range(0,9, 2):
print (i, end= ' ')
print()
for i in range (1, 10, 2):
print (i, end= ' ')
print()
for i in range (20, 70, 10):
print (i, end= ' ')
print()
s = "abcdefghijklmnopqrstuvwxyz"
fo... | [
"koen.vanputten@student.hu.nl"
] | koen.vanputten@student.hu.nl |
8cbb4e9c73c074d346ac82b353623f3c95b574d0 | 37c6021f06d5d5aca2693b12449aab483d123669 | /backend/task_profile/migrations/0001_initial.py | 37879e374141ed157d4e079eb19ba798a8d6f010 | [] | no_license | crowdbotics-apps/den-sc-ity-21727 | 8165971a3611a143b2ba2a5bf865375a10cb7744 | 13790db00a09483f4a23df177c544b6d07acd2c3 | refs/heads/master | 2022-12-31T04:32:18.963986 | 2020-10-19T21:46:40 | 2020-10-19T21:46:40 | 305,520,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,239 | py | # Generated by Django 2.2.16 on 2020-10-19 21:45
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
op... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
38208982c2d014d233c50e8817e0a80f71c021ff | 2f963d7989749037a3ec27aaa39b31416b33cbb2 | /ib_users/views/get_user/get_user.py | 183ff7a74ce5cd00bbb88a71c9efbd66b445cd96 | [] | no_license | migsantos121/phd3-backend | 3cd014908856c995de3c4473d82059bc9c1b5794 | 9d1d2bd6f55dc89719ce5a1916c5db3d573aec1e | refs/heads/master | 2022-12-12T17:25:59.334509 | 2020-03-09T09:24:08 | 2020-03-09T09:24:08 | 245,991,086 | 0 | 0 | null | 2022-06-28T14:45:50 | 2020-03-09T09:17:18 | Python | UTF-8 | Python | false | false | 1,711 | py | def get_user(*args, **kwargs):
"""
Note: replace below mock implementation with your actual implementation
Request:
kwargs["user"] -> request user
kwargs["request_object"] -> request body type object
kwargs["request_data"] -> request body data dict
kwargs["... | [
"migsantos121@outlook.com"
] | migsantos121@outlook.com |
7b6a4d6df8f67ad85480b8a58255130a952e5298 | bc441bb06b8948288f110af63feda4e798f30225 | /monitor_sdk/model/flowable_service/bpmn_end_event_pb2.py | 2ff0cb3c70459b361343271db62a5a44c17ff8f6 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 3,046 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: bpmn_end_event.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.proto... | [
"service@easyops.cn"
] | service@easyops.cn |
e87fec872353b9b1d397b4b3a75fa7d1c8a2031e | eb56f1060e8f5d34d054712446b80baa69bac631 | /recursion/power_sum_recursion.py | 3e8261f89a98eba1036d3c109c91824f29cfb25a | [
"MIT"
] | permissive | tonyvu2014/algorithm | 0a18b19e7deb884411f32e0ed44b434097b516a5 | 1c2add0c6f4cbb6e86b98a628136546f76de3337 | refs/heads/master | 2023-05-25T10:56:58.533713 | 2023-04-29T06:44:27 | 2023-04-29T06:44:27 | 67,861,883 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | def generate_outcome_count(Y, N):
outcomeMap = {}
outcomeMap.update({
1: 1
})
if Y == 1:
return outcomeMap
previousOutcomeMap = generate_outcome_count(Y-1, N)
outcomeMap.update(previousOutcomeMap)
powerValue = Y**N
if powerValue in outcomeMap:
outcomeMap[powerVal... | [
"developer@masterpte.com.au"
] | developer@masterpte.com.au |
81bf5193c810ed6af8da843e360ad55bc12f6b93 | fc40a77fffa774569712a2eb5aaad9a464661af4 | /model_b/model_b_dropout.py | 3d36ffe4b9f78a03e1e0af77949c0b12f3b898aa | [] | no_license | WormOn/CNN-Roadlines | b430341f8cba4fac9aa6a2cbfd2ec6c5740dc4b2 | ef5be6ea81b1fcceea5ff25bc20099e9d756b6aa | refs/heads/master | 2020-03-17T05:05:48.098033 | 2018-01-06T12:41:15 | 2018-01-06T12:41:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,719 | py | import numpy as np
from keras.models import Model
from keras.layers import Activation, Dropout
from keras.layers import Conv2D, Deconv2D
from keras.layers import MaxPool2D, UpSampling2D
from keras.layers import Input, Concatenate
from keras.layers.normalization import BatchNormalization
input_shape = (80, 160, 3)
poo... | [
"krylov.nikita.a@yandex.ru"
] | krylov.nikita.a@yandex.ru |
75756f9ba46ed2a17cfa953b34e33f1d53128f32 | 47d73cc290ef2124b66b227b7159457b1423dbc5 | /SimplexMethod with 3 variables.py | 05e54c3f71807069b34e5be66e03c233c871bc1a | [] | no_license | Deepk7112001/Paper-3-Operation-Research- | 13abe002601000fd64170ff98fc5bfaafa7695f4 | f6ec08e1533dffaf671f21ec1d405417455a28fa | refs/heads/main | 2023-02-08T14:12:09.262353 | 2021-01-03T17:27:43 | 2021-01-03T17:27:43 | 326,462,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | #!/usr/bin/env python
# coding: utf-8
Min z = x1 - 3x2 + 2x3 subject to
3x1 - x2 - 3x3 <= 7
-2x1 + 4x2 <= 12
-4x1 + 3x2 + 8x3 <= 10
x1,x2,x3 >= 0
# In[1]:
from scipy.optimize import linprog
# In[32]:
obj = [1,-3,2]
# In[33]:
lhs_ineq=[[3,-1,3],
[-2,4,0],
[-4,3,8]]
# In[34]:
rhs_ineq=[7... | [
"noreply@github.com"
] | Deepk7112001.noreply@github.com |
64715fc45ed9e8d593f4f04756d7017cf99c864d | 3674a31fade393324eb2c4c165df9adc1e5a3b5f | /torchfes/opt/utils/__init__.py | 0db08c870d9ac5dc35e8f6feac607e3f0bcb1eef | [
"MIT"
] | permissive | AkihideHayashi/torchfes1 | bf37b0f43ece4897f2989710e60a42232607a256 | 83f01525e6071ffd7a884c8e108f9c25ba2b009b | refs/heads/master | 2023-07-01T08:45:58.934131 | 2021-07-29T03:00:16 | 2021-07-29T03:00:16 | 264,376,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | # flake8: noqa
from .derivative import (hessian, jacobian,
set_directional_gradient, set_directional_hessian,
set_hessian)
from .generalize import generalize, Lagrangian
from .linalg import solve, dot
| [
"akihide.94@gmail.com"
] | akihide.94@gmail.com |
ac4624b7d6cd708c7e2083e0734acc7cc2dbbce5 | 34d67f0bf55601b044471d58247be6ca840400ca | /service.py | 93a72d53880c55c46c1defe3b6422d85a45f7f61 | [
"MIT"
] | permissive | cmput401-fall2018/web-app-ci-cd-with-travis-ci-dong-alex | dfdbb6b34f391986b6210ca9fb8c14d350bf7e82 | 07c4a3098d623a27d93dfcd38dfcc1a3deb9f6c4 | refs/heads/master | 2022-12-06T07:31:18.911732 | 2018-11-02T03:20:04 | 2018-11-02T03:20:04 | 151,114,749 | 0 | 2 | MIT | 2022-11-22T02:22:05 | 2018-10-01T15:49:42 | Python | UTF-8 | Python | false | false | 607 | py | import random
class Service():
# returns a random number
# NOTE: You do not need to modify this method!
# Mock it instead
def bad_random():
file = open('/Users/dchui1/datafile', 'r')
numberStrings = file.readlines()
numbers = [int(x) for x in numberStrings]
return rando... | [
"adong@ualberta.ca"
] | adong@ualberta.ca |
bc9eef0e4e81ae1161547c791d74db65fecbea31 | e711a80c7ca3e5d1997da9a780cefdcb238faa40 | /sdk/python/kfp/v2/dsl/__init__.py | 3585a1049dc36803be1d8d0b631ba593c18770f3 | [
"Apache-2.0"
] | permissive | numerology/pipelines | c42bd863d9f3592ff87b6fc4a85ac6be315d7075 | 61f9c2c328d245d89c9d9b8c923f24dbbd08cdc9 | refs/heads/master | 2021-06-23T11:23:23.974586 | 2021-02-19T22:56:45 | 2021-02-19T22:56:45 | 198,512,889 | 0 | 0 | Apache-2.0 | 2021-02-03T02:03:57 | 2019-07-23T21:47:24 | Python | UTF-8 | Python | false | false | 1,064 | py | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | numerology.noreply@github.com |
afe953ba302666ebc7638326e31355024673e9ed | df3ef00bba29d4b4411d5e0fec4aaee83a64ae8f | /01 Basics/011 - Functions and Examples/011 -b- Global Local Var.py | 5951b44284a702dba9c7a36facc1e55596963cfd | [
"Apache-2.0"
] | permissive | TheUnicum/CorsoPython | 6822ab32ed81597e05a06faf56f3b839e2c5e08f | 06cb2b58d46b26fc6d1cf4a585ff2666ab4b5c19 | refs/heads/master | 2020-04-05T21:06:46.077548 | 2018-12-06T16:47:40 | 2018-12-06T16:47:40 | 157,207,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,865 | py | #!/usr/local/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2018 Mattia Benedetti
# All rights reserved.
#
# Author: Mattia Benedetti
"""
- FUNCTIONs -
Docs
https://docs.python.org/2/tutorial/controlflow.html#defining-functions
4.6. Defining Functions
>- global GLOBAL_VARIABLE -<
inside functions... | [
"tia_ben@tin.it"
] | tia_ben@tin.it |
a8e7a3becf987efb1c8650964ec7fe9e6a9d06c7 | d4716d977785cdf62b2960cd23ae5deecf09e3ab | /Assignment_6-4.py | 50ff2dafee94bd6fbc7cab8eea9ccf988d4b1ada | [] | no_license | chancebeyer1/CSC110 | 024e7e7f88c0e9636f49cbe5d9ad632687315e77 | 520d9e83bac7d6bbd306d458a5f50f1b81eda3a0 | refs/heads/master | 2020-08-22T01:14:21.838071 | 2019-10-20T00:51:36 | 2019-10-20T00:51:36 | 216,288,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | S = input("Input a string ")
T = ""
i = ""
pos = 0
i = S[pos]
upper = ord(i) - 32
i = chr(upper)
T = T + i
pos = 1
while pos < len(S):
if S[pos] == chr(32):
T = T + S[pos]
pos = pos + 1
i = S[pos]
upper = ord(i) - 32
i = chr(upper)
T = T + i
p... | [
"noreply@github.com"
] | chancebeyer1.noreply@github.com |
411b49ef3a7c64182815fa9026ab2d3518e3ad86 | 6395591c56db63e6928f056f7c7bc64ea6653381 | /djangobook/mysite/urls.py | 7b46690c847be0120270b0a9f7192a6635beb491 | [] | no_license | mascot6699/Django_projects | 39ca331f66f4b0d9bab37108da894bdaeb4739f3 | e155522aa80c6ed8484be261a55cafa42dc37df3 | refs/heads/master | 2021-01-01T05:41:54.858581 | 2015-08-17T11:29:47 | 2015-08-17T11:29:47 | 17,361,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | from django.conf.urls import patterns, include, url
from views import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^time/$', current_datetime),
(r'^time/plus/(\d{1,2})/$', hours_ahead),
(r'^time/minus/(\d{1,2})/$', hours_behi... | [
"umangshucool@gmail.com"
] | umangshucool@gmail.com |
9d8cc9f43fad40403b595b3943f0646b153de858 | 4d0f3e2d7455f80caea978e4e70621d50c6c7561 | /MongoDB/BigData_Bulk/Update_unordered.py | 0879aac9fe0ae108a62abacca7d7a3a7501a65e4 | [] | no_license | mhdr/PythonSamples | 66940ee2353872d2947c459e3865be42140329c6 | 1a9dccc05962033ea02b081a39cd67c1e7b29d0c | refs/heads/master | 2020-04-14T01:10:13.033940 | 2016-05-28T15:33:52 | 2016-05-28T15:33:52 | 30,691,539 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,764 | py | # http://api.mongodb.org/python/current/examples/bulk.html
__author__ = 'Mahmood'
import time
from pymongo import MongoClient
from bson.objectid import ObjectId
client=MongoClient()
# drop last db
client.drop_database("test-db")
# database
db=client["test-db"]
# table
people_bulk=db["People"].initialize_unordered_... | [
"ramzani.mahmood@gmail.com"
] | ramzani.mahmood@gmail.com |
3cf1ef3fc6a2ce86f73dbfb29e6c45869041ae2e | 5e2928f3acdd06288c6d7ff8aac96f185905ae9a | /lib/game_analysis/youtube_url.py | 9af19a148521cf4eb0981d31694e5efd410f54cb | [] | no_license | devin-fisher/treadstone | 4352ef9084739e83ff618fe9b7d131fdbd91c905 | b76ef63a3e5421d78f71bdf1a16988ba9c2a7f9f | refs/heads/master | 2020-05-21T20:18:50.292982 | 2018-10-09T19:31:55 | 2018-10-09T19:31:55 | 64,407,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,039 | py | from lib.util.http_lol_static import request_json_resource_cacheless
import string
from dateutil.parser import parse
from datetime import timedelta
import re
DEFAULT_PARAMETERS = {
'part': 'id,snippet',
'type': 'video',
'key': 'AIzaSyDV3vsGVOBXP4BTL4N-10HvSq0QkKDIONs',
'order': 'date',
'channelId':... | [
"dev.fisher@gmail.com"
] | dev.fisher@gmail.com |
dbe0605dfc8836252a7be025717a2c025a583ef3 | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/iotsecurity/v20210201preview/__init__.py | 4fdb5150fbe12dc9d3eb365657246551620919aa | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,640 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
# Export this package's modules as members:
from .defender_setting import *
from .get_defender_setting import *
from .get_on_premise_sensor import *
fr... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
aacd17774b7ca947c61eb332e74e803315d096d0 | 7b60c68ddda39ef82f5d49404bbcf62cc83e4860 | /sleftry/LSTM/one LSTM.py | 0ed0f8660cd59c49d978a0f837371a5b5509b64f | [] | no_license | joycejhang/learningml | da802e0ab9cfb6cce89791561870c0078cfaaaf9 | 884ed0541bcb257bb82e77c126ab77c927fe9add | refs/heads/master | 2020-04-22T15:04:58.445844 | 2019-07-04T11:31:03 | 2019-07-04T11:31:03 | 170,466,049 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,884 | py |
import tokenFile
import numpy as np
# 输出单元激活函数
def softmax(x):
x = np.array(x)
max_x = np.max(x)
return np.exp(x-max_x) / np.sum(np.exp(x-max_x))
def sigmoid(x):
return 1.0/(1.0 + np.exp(-x))
def tanh(x):
return (np.exp(x) - np.exp(-x))/(np.exp(x) + np.exp(-x))
class myLSTM:... | [
"noreply@github.com"
] | joycejhang.noreply@github.com |
2a9bc550bea44eb196c64c844c99139bf5af217a | 837b7405ff199e7585ac2c43810be7acd7bdbae0 | /scripts/palxss.py | 8a71bbbed5b2637633b104ead9a6cadc74cedc32 | [] | no_license | nzatsepin/DatView | d2fdf8e4052dbf8c0445f0f5d4e669e0f90ac478 | dcc4071c466274d0241d5251611943f47dd7589e | refs/heads/master | 2021-03-17T07:10:20.742226 | 2020-03-13T02:40:05 | 2020-03-13T02:40:05 | 246,972,789 | 0 | 0 | null | 2020-03-13T02:32:48 | 2020-03-13T02:32:47 | null | UTF-8 | Python | false | false | 7,066 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# datview/datexport.py
# Command line interface to load/export options of GUI
# Author Natasha Stander
import sys
import argparse
import os
import numpy as np
import h5py
import tables
sys.path.append(os.path.dirname(sys.path[0]))
from api.datamodel import DataModel
fr... | [
"hxpp-admin@debian"
] | hxpp-admin@debian |
f0446e3e3155dcf1b1f894aa07cd495bb7a72dbe | 293d36396636ebf99c6fbf2a9c6628a10e05c419 | /cms/tests/page.py | 12771b1b002202197474c19bac75ea160e8a5143 | [] | no_license | artemrizhov/itcm | c2892f1d4474562f7f10555d2f8a92bb97a3b4e9 | 905edfa681a1145fe2ba194de1707b7ac760bdf4 | refs/heads/master | 2021-01-18T09:52:54.053843 | 2014-08-01T08:50:12 | 2014-08-01T08:50:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,502 | py | # -*- coding: utf-8 -*-
from django.conf import settings
from cms.models import *
from django.test.client import Client
from django.http import HttpRequest
from django.template import TemplateDoesNotExist
from cms.tests.base import PageBaseTestCase
from cms import settings as cms_settings
class PagesTestCase(PageBaseT... | [
"tom@almostobsolete.net"
] | tom@almostobsolete.net |
026d531e586f6ec33b28d2a334d8a2ab72dd825b | ce301c71843239548d0540d5dc357fe6145799ed | /mirror.py | 9527e2e524de013c5901c7bb93969bce6778f9f5 | [] | no_license | iampei/PeiMirror | eabc82654f9aa5f75c57739162ca4664b73210bb | 4084f0316889457658f6a5ae75ef9b775c985002 | refs/heads/master | 2020-12-24T20:24:11.251757 | 2016-05-27T01:17:02 | 2016-05-27T01:17:02 | 57,802,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,091 | py | from flask import Flask, request, session, g, redirect, url_for, \
abort, render_template, flash, jsonify
import datetime
import get_weather
import random
# configuration
# DATABASE = '/tmp/flaskr.db'
DEBUG = True
#SECRET_KEY = 'development key'
#USERNAME = 'admin'
#PASSWORD = 'default'
app = Flask(__name__)
a... | [
"pyl@uw.edu"
] | pyl@uw.edu |
186c0d00b41443e5bd1528bd91748d9a7afc1c13 | 928f99bed2e89dd2501a1f0ad7e0a9f9b2b7d867 | /utils/Data.py | d1b6949b00e8bb260f846fad2e773d9e36c00cbb | [
"Apache-2.0"
] | permissive | SWKoreaBME/MLP-Mixer-PyTorch | 397aa6f7b21ec77e3ab066725ef4c506eb64a5b9 | f7df6f6fa196c61a868a1da10b28c505cf482cc6 | refs/heads/main | 2023-04-30T05:12:48.437134 | 2021-05-19T06:53:02 | 2021-05-19T06:53:02 | 368,772,064 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,260 | py | import pandas as pd
import pickle
import numpy as np
import torch
import cv2
from torch.utils.data import Dataset, DataLoader
from torch.utils.data import WeightedRandomSampler
from utils.tta_augmentation import *
def split_train_valid_folds(BaseDatasetClass, fold_file, transform, kwargs):
data_dir = kwargs["da... | [
"swk0704@korea.ac.kr"
] | swk0704@korea.ac.kr |
e12e62c63f590e83a1ac219f35d976ba846191e3 | fd449b6a35350a66c416f7d937f24fbcd0bf830e | /ms_draw/data/s2s_preprocess.py | 791bf31afb0e28d4cc2f02381743e3d963ffb1dc | [] | no_license | scape1989/nn_math_solver_clean | dc5d22ce13b1406b7efc505018ec95dabbfdaeed | 1a81f0e156ead1e0122455db37ba622881fd4334 | refs/heads/master | 2020-09-03T12:54:48.617705 | 2018-03-06T19:39:10 | 2018-03-06T19:39:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | """
s2s preprocessor for tencent
"""
def main():
# WITH SNI
# WITHOUT SNI
split('./working/no_sni/train.tsv', './working/s2s_nosni/src-train.txt', './working/s2s_nosni/tgt-train.txt')
split('./working/no_sni/val.tsv', './working/s2s_nosni/src-val.txt', './working/s2s_nosni/tgt-val.txt')
spl... | [
"brobaidek@gmail.com"
] | brobaidek@gmail.com |
cb6390869567b60ba5c832406a13daea0f8bc963 | 66334644d8687233e61e05035488c386344b3687 | /models/bill.py | 4e436eeec4b014bb51593f203a4788b5a5f2f95d | [] | no_license | zh6/fastapi_zh | 820ab4d0f08abf12922eb65a09fd6ac146e09d73 | d1d4b12e69e8d887706b3cb06547568b8f3e94a1 | refs/heads/master | 2023-08-28T13:57:03.531912 | 2021-10-29T06:46:04 | 2021-10-29T06:46:04 | 405,015,628 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | from sqlalchemy import Column, VARCHAR,Numeric,Integer
from db.base_class import Base
class Bill(Base):
bill_method=Column(Integer,nullable=False,default=1,comment="账单类型(1:收款;2:转账)")
bill_code= Column(VARCHAR(100),comment="账单编码")
bill_name= Column(VARCHAR(100), comment="账单名称")
member_id = Column(Intege... | [
"1144941477@qq.com"
] | 1144941477@qq.com |
22bbe05b376afb7261d2ccc0c655fab46d2139f9 | d42a9128898d504a9831f1afee3198c4677236c9 | /Level_2/카펫.py | 7590489b9346b70f2da4fc35051fa1209028eb67 | [] | no_license | ketkat001/Programmers-coding | 6848a9c8cffd97b792cfc8856ec135b72af5d688 | 799baba8d66a9971b43233d231cecbf262b4ea27 | refs/heads/master | 2023-09-02T23:07:25.614820 | 2021-10-17T18:12:02 | 2021-10-17T18:12:02 | 235,016,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | def solution(brown, yellow):
answer = []
for i in range(yellow, 0, -1):
if yellow % i != 0:
continue
if (2*i) + (2*(yellow//i)) + 4 == brown:
answer.append(i+2)
answer.append(yellow//i+2)
break
return answer
print(solution(10, 2)) | [
"ketkat001@gmail.com"
] | ketkat001@gmail.com |
85e7572f6023bbf69991688f4e805f81871c2d12 | 432deb6e409bd920133d588788eaa68cfd078a04 | /python_numpy.py | 9cf9426a821c702ed127a4c9c7fbe7348f1197ca | [] | no_license | lfy246/Scripts | 173528e197b9e8d7a328f46e2d64b12b9c71f3ba | b7c411f2d4d9a2bcf892cd221617f667c968f573 | refs/heads/master | 2020-03-17T20:26:48.005644 | 2018-05-18T06:02:08 | 2018-05-18T06:02:08 | 133,910,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | # #numpy实现矩阵相加相乘
# import numpy
#
# a = numpy.matrix([ [1, 2, 3, 4],
# [5, 6, 7, 8],
# [9, 10, 11, 12],
# [13, 14, 15, 16] ])
# b = numpy.matrix([ [16, 15, 14, 13],
# [12, 11, 10, 9],
# [8, 7, 6, 5],
# [4, 3, 2, 1] ])
# prin... | [
"2460002643@qq.com"
] | 2460002643@qq.com |
e91732b63eeaa7d858772a45a594528a87b2f9cc | 983b6d613679575b31af8e606451fe2411e3f028 | /Login/manage.py | fcfa282c0c839cb163cd070b6c195192bd728158 | [] | no_license | DalfroseCeline/Login-page | 12ebf3c691b786ebfb0e933d57bfb7a3248ebc33 | cc545f4a0483b5f563d914344a0f860cfb2a372f | refs/heads/master | 2020-12-13T11:21:09.991618 | 2020-01-16T20:00:37 | 2020-01-16T20:00:37 | 234,400,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'chaps.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rai... | [
"noreply@github.com"
] | DalfroseCeline.noreply@github.com |
abb9e8d07146fd93787a23e3c00f4f035f2e6a3c | d767a2048c050421e7213be2ecccff09014e270e | /Day 24/Set Intersection(Hackerrank).py | 86fd4076cac1c920fcd2f36da4bae154bb48429b | [] | no_license | Benson1198/31-Days-of-CP | 23ff16f9899d37e2ca9a1eba81a87b521233fd2f | 0e5de1d0b4e1d4811fb096455de951f37c3d69d0 | refs/heads/master | 2022-09-18T22:26:53.178381 | 2020-06-03T14:20:41 | 2020-06-03T14:20:41 | 260,527,724 | 2 | 1 | null | 2020-05-04T17:36:36 | 2020-05-01T18:15:21 | Python | UTF-8 | Python | false | false | 173 | py | for i in range(int(input())):
a = set(map(int,input().split()))
break
for i in range(int(input())):
b = set(map(int,input().split()))
break
print(len(a&b)) | [
"34964177+Benson1198@users.noreply.github.com"
] | 34964177+Benson1198@users.noreply.github.com |
2110e2d8ff46242e165b85237205ad16cccf56ad | 7083cddadf54f8b4917c400f4f4fb1f12fcaffc7 | /helpers/face_track.py | 2881e54e40338989878fe8f0c2e2cb82d1126bea | [
"MIT"
] | permissive | ahmadabdulnasir/FaceAttendance | a2bbb60d7152b585f716d51fdab93d255a447ebd | 01c72bf66c8419336b089712aefac477848f1f0a | refs/heads/master | 2022-07-28T10:53:50.124503 | 2019-07-12T20:14:07 | 2019-07-12T20:14:07 | 192,237,211 | 0 | 0 | MIT | 2022-06-21T22:10:29 | 2019-06-16T21:10:20 | Python | UTF-8 | Python | false | false | 2,317 | py | import requests
import cv2
def regFace(imgs, userid, base_url='http://134.209.226.48:8088'):
''' registering unknown person to the db, takes in list of images files and a userid'''
try:
binimgs = [open(img, "rb").read() for img in imgs]
go = 1
except ValueError:
print("[ERROR]: Plea... | [
"ahmadabdulnasir9@gmail.com"
] | ahmadabdulnasir9@gmail.com |
d72723401e75bdb7191c3caacdd17c51deb11905 | 0bcaf3f6b884a24f0c00a8524fe3e9f92be1b9f6 | /Exercícios/ex009.py | 56de62510c378d400825a3774e4b2b6faf8fb6b9 | [
"MIT"
] | permissive | francisvanoliveira/Python-curso-em-video | a93d8e15db72bea0d8a610ad6898bdbade49f0f4 | 5b2fe15a395a038b509bb8059df3b48de6ee6d71 | refs/heads/main | 2023-06-24T19:46:00.490375 | 2021-07-17T00:34:40 | 2021-07-17T00:34:40 | 374,884,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | #Faça um programa que leia um número inteiro e mostre na tela sua tabuada
num = int(input('Digite um número para ver sua tabuada: '))
print('='*12)
print('{} x {:2} = {}'.format(num, 1, num*1))
print('{} x {:2} = {}'.format(num, 2, num*2))
print('{} x {:2} = {}'.format(num, 3, num*3))
print('{} x {:2} = {}'.format(num... | [
"francisvan.oliveira@outlook.com"
] | francisvan.oliveira@outlook.com |
670a8fb21e80aef94c1ac28f4b689b614e770eb4 | 13ba299b31ef0182c69ed0b175e148c7d824f898 | /Week_3/Chapter_14/Board.py | 59f97558106b8edabbcb3360d8a5f7cc875eb7db | [] | no_license | Marnix641/advanced_course | ba5d5541dbe2f77dd934f018658848e5b441960e | bf3937c17f50f33f21e0e2f2ecc77da7cb3692d8 | refs/heads/master | 2022-11-08T04:18:44.760994 | 2020-07-02T15:44:08 | 2020-07-02T15:44:08 | 256,275,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,341 | py | import pygame
import PIL
from PIL import Image
def draw_board(the_board):
""" Draw a chess board with queens, as determined by the the_board. """
pygame.init()
colors = [(255,0,0), (0,0,0)] # Set up colors [red, black]
n = len(the_board) # This is an NxN chess board.
surface_size = 480 # Propose... | [
"m.dekker.18@student.rug.nl"
] | m.dekker.18@student.rug.nl |
20a917bbba605283093d58651ab03940621dad41 | b7928f119bf50bc1b8b02e85bc9dc9397410157c | /HW1/search_py3/search.py | 439e804499cb61f1d0beb4508addff92985ce454 | [] | no_license | jeroee/Artificial-Intelligence-2020 | b52e3fdd2b8e56f7da0ccd0ed12ea8fa2e5cc1f6 | dd2615536e6a73906dcfd68b4c6fc48b9ecd81d8 | refs/heads/master | 2022-11-26T23:25:47.999777 | 2020-08-04T08:04:31 | 2020-08-04T08:04:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,864 | py | """Search (Chapters 3-4)
The way to use this code is to subclass Problem to create a class of problems,
then create problem instances and solve them with calls to the various search
functions."""
from search_py3.utils import *
import math, random, sys, time, bisect, string
import copy
#_____________________________... | [
"33095731+IC088@users.noreply.github.com"
] | 33095731+IC088@users.noreply.github.com |
f37f7d7c82c82375da501602f5d5321c76a026da | 1d20a24b898a8dc082e664d06e8013b2d1a5f57d | /venv/bin/pip3.6 | 0c47ecfc810e67adb206c9e80f503f9ce14ac150 | [] | no_license | ss7424Refar/bilibili_cxk | de8af736526fb4dd1162b0d76ed054f0406cbaef | adeb5b9a53ae68396096adde5e7de62eb99c8fda | refs/heads/master | 2020-05-09T13:07:37.501961 | 2019-04-13T09:12:47 | 2019-04-13T09:12:47 | 181,138,581 | 10 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | 6 | #!/home/refar/PycharmProjects/bilibili_cxk/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.6'
__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])
... | [
"812647742@qq.com"
] | 812647742@qq.com |
917503f915820aedab3034d4fbbbcb034b44f88e | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week02/2/singupshimo_20200705174440.py | ce44289871c2554146760f435e3113f67b10850c | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 73 | py | from selenium import webdriver
import time
try:
browser = webdriver. | [
"31039587+ydbB@users.noreply.github.com"
] | 31039587+ydbB@users.noreply.github.com |
6ef8e0043c706e3c0157806b602ccd6e2097d142 | db16f96fbc623c0a19859ed83fefe0505565cd41 | /0x0F-python-object_relational_mapping/model_state.py | 923b9b51367ee500edf6f0eb1e8bb8f5b22958c8 | [] | no_license | jsebdev/holbertonschool-higher_level_programming | 884cfea29a4d5545879f100739c8bccb9c2a8b42 | aa710c59b6a497465ef7ae93d004223c4b4a5f32 | refs/heads/main | 2023-08-04T14:11:51.575459 | 2021-09-22T18:37:09 | 2021-09-22T18:37:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | #!/usr/bin/python3
"""
This is the model of states
"""
from sqlalchemy import Column, Integer, String
from sqlalchemy.orm import relationship
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class State(Base):
"""
State Class
"""
__tablename__ = 'states'
id = Col... | [
"sebas93cay@gmail.com"
] | sebas93cay@gmail.com |
88d30e3bb719d1f0ca8412ce5b5a131ffaa6e8a3 | 2e5bda2c9812cd1669ba990762fd96dfc358940e | /Rhino/change layer to confirmed.py | 06cd15bec579de33f4f7e50c8c0541fc92bcae2f | [] | no_license | mj-bvtc/pythonTest | 4fe66bdce084d241f2b2b7897bbe428c502fa08d | 310d3b7941529f3220be26270f97d48fe9dcb884 | refs/heads/master | 2021-01-22T18:15:14.349797 | 2019-12-06T17:07:06 | 2019-12-06T17:07:06 | 85,069,109 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | import rhinoscriptsyntax as rs
import Rhino
obj = rs.GetObjects()
rs.ObjectLayer(obj, layer="CONFIRMED") | [
"mkreidler@bvtccloud.local"
] | mkreidler@bvtccloud.local |
c3d4e81a3c0d45e1f41190732262efc7428078ae | 5f1ce3d168695f38f8fec53ab56d464042fbcbae | /meraki_v1/api/insight.py | 48f25659153929344e3df744090bf80d0ca950b4 | [
"MIT"
] | permissive | fsandberg/dashboard-api-python | e209b927f1b5d1b29a76e36def1587b873764b0f | c01ff038643a39bd12660d2719375eeb05c7ba24 | refs/heads/master | 2022-06-23T06:25:37.599413 | 2020-05-11T16:47:31 | 2020-05-11T16:47:31 | 263,100,991 | 0 | 0 | MIT | 2020-05-11T16:43:14 | 2020-05-11T16:43:13 | null | UTF-8 | Python | false | false | 4,514 | py | class Insight(object):
def __init__(self, session):
super(Insight, self).__init__()
self._session = session
def getOrganizationInsightMonitoredMediaServers(self, organizationId: str):
"""
**List the monitored media servers for this organization. Only valid for organizations with... | [
"shiychen@cisco.com"
] | shiychen@cisco.com |
79bb98089306e4d5c8d4e255a7cccf3ee753e373 | bd5d0c48ed686dd833207e1e1b9d1d04ef454c08 | /DJangoProject/MySite/Main/views.py | 7596cbbdb4cfc94a648ba6e9f918ef523a0a3486 | [] | no_license | SoongMoo/DJangTest | 9f5a12e1dfdcb9d94c7b4cec84aefd7c1bae6f35 | 33bafd593107aaf8071a554a164a5b85e131f677 | refs/heads/master | 2021-03-06T03:23:28.754341 | 2020-03-10T01:11:17 | 2020-03-10T01:11:17 | 246,176,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,977 | py | from django.shortcuts import render
from django.http import HttpResponseRedirect
from member.models import Member
from .forms import SigninForm
from django.views.decorators.csrf import csrf_exempt
from member.views import pwEncypt
# Create your views here.
def index(request):
form = SigninForm(request.P... | [
"HKMASTER@LAPTOP-0JGDFE4E"
] | HKMASTER@LAPTOP-0JGDFE4E |
1a18da1a3bcf2b21918ce7e6ecfedfb024214533 | 207dad13abf6739a62a1793e984a3c6409c3524e | /src/preprocessing/64multiplechoice/constants.py | 312308639fb6b6b1433eb428e370e6dd06c9d7d9 | [] | no_license | brookekelseyryan/VisualAcuity | 373cc23c98e7cd2f5477b94d19cdbad6957a68b5 | 692e023ed3c6818f43bb4445ceb0215dc5d41f43 | refs/heads/master | 2023-06-24T09:05:47.806945 | 2021-07-19T22:22:04 | 2021-07-19T22:22:04 | 358,431,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,168 | py | low_distortion_filenames = ["0-0-0",
"0-1-0",
"0-1-45",
"0-1-90",
"0-1-135",
"0-3-0",
"0-3-45",
"0-3-90",
... | [
"brookekelseyryan@gmail.com"
] | brookekelseyryan@gmail.com |
0096083f9246d661a3f54e1a514347e517ac5392 | c074fb834cb4a8ac75d107146df10f9496590792 | /shows/migrations/0013_auto_20200924_0651.py | 48e9ac2712f64fd60afd0c97b326d8e90fc0b462 | [
"Unlicense"
] | permissive | jmhubbard/quote_of_the_day_custom_user | 4d5ffd4183d7e6290161b84cae2aa1f7ad621a99 | 27024b2953c1c94fd2970563c3ab31ad444912b6 | refs/heads/master | 2023-02-19T00:59:27.372671 | 2021-01-10T02:45:56 | 2021-01-10T02:45:56 | 293,443,918 | 1 | 0 | Unlicense | 2020-12-03T17:59:59 | 2020-09-07T06:41:25 | Python | UTF-8 | Python | false | false | 363 | py | # Generated by Django 3.1.1 on 2020-09-24 06:51
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('shows', '0012_remove_episode_number'),
]
operations = [
migrations.AlterUniqueTogether(
name='episode',
unique_together={('n... | [
"jasonhubb@gmail.com"
] | jasonhubb@gmail.com |
6dbae67dcd9866b17b156deffea339d9229aab29 | fbbcd99b5292c2b2fa62fb1d0a891dd4ddcea5ba | /Barras_Gd/programs/STR_test_stefan_GD.py | 11e2fce55fa731baa2c0bea99d27fb775456eb68 | [] | no_license | ornemarioni/Barras_GdGs | 77b77ab0fe6155415a20f64a2f0b71f177779b71 | 75da0be7f3091b5b8edc7d6976a47d78b634e8db | refs/heads/master | 2023-06-11T04:06:16.078236 | 2023-05-24T13:18:31 | 2023-05-24T13:18:31 | 112,016,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,823 | py | import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import h5py
import rotation_mio as rot
import numpy as np
import barstrength2 as strng
import time_conversion as tiempo
import sphviewer as sph
# from mpl_toolkits.axes_grid1 import make_axes_locatable
h=0.73005
G = 4.299e-6
a0=1
H0 = h*100
omega... | [
"ornemarioni@hotmail.com"
] | ornemarioni@hotmail.com |
2d885b952a3c7eefa2117b08ef568eb6bbe509a4 | 1ccf77a059c754ba4f35cf11256f67a288650fb1 | /crawler/wikia/sources.py | 682ec5ea6ebc0cb63dc9e0db3a6ccd432e3fb5f3 | [
"MIT"
] | permissive | aminhjz/neural-namer | 5a0b2f0fdb5ecd2ff45d362ecc7809d7d1e23a2b | 13a35d8c119515bac0a8df3e6133330f712acbff | refs/heads/master | 2021-11-03T07:25:03.242780 | 2019-04-26T09:00:15 | 2019-04-26T09:00:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,020 | py | """List of Wikia sources to scape."""
SOURCES = [
{
"author": "Tolkien",
"dump_url": "http://s3.amazonaws.com/wikia_xml_dumps/l/lo/lotr_pages_current.xml.7z",
"root": "/n:mediawiki/n:page",
"xpath": "./n:title/text()",
"where": {
"xpath": "./n:revision/n:text/tex... | [
"crestonbunch@gmail.com"
] | crestonbunch@gmail.com |
cde1f260ed13f4523b8a7b8f1fbd4efafc2b4f18 | 9aa7df71fdde556cf192941dbe332b595b6e173e | /exercises/07_files/task_7_3.py | 1594402bb0039bc23ba2669cc36fb4153c9bf24f | [] | no_license | sshamarin/Python-for-network-engeneers | 1fb1bdf778742ebf7fdbde57057de6134c0a6711 | 3c146946bda54f33891220cc5ef70b0975617136 | refs/heads/master | 2023-03-30T22:51:06.452001 | 2021-03-30T22:44:25 | 2021-03-30T22:44:25 | 353,160,272 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | # -*- coding: utf-8 -*-
"""
Задание 7.3
Скрипт должен обрабатывать записи в файле CAM_table.txt. Каждая строка,
где есть MAC-адрес, должна быть обработана таким образом, чтобы
на стандартный поток вывода была выведена таблица вида:
100 01bb.c580.7000 Gi0/1
200 0a4b.c380.7c00 Gi0/2
300 a2ab.c5... | [
"78884219+sshamarin@users.noreply.github.com"
] | 78884219+sshamarin@users.noreply.github.com |
e41d504145d10fb8274fce1c3f5713e39777271b | 59911f060202e0329a305a4ffb8329fef46079df | /src/application/filters/error_handler.py | a7534b810a1e2c9948a14a863df006bd619b5c28 | [
"MIT"
] | permissive | GDGPetropolis/backend-event-checkin | 1e3280b55ae2838c1cd00f3560ee1cc8a79ca3e7 | 694089ad19ee6ce8173b8fb3e38fcc1741eb4723 | refs/heads/master | 2020-04-24T12:29:41.837473 | 2019-03-28T16:34:09 | 2019-03-28T16:34:09 | 171,957,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | from functools import wraps
from flask import Response
def error_handler(f):
@wraps(f)
def decorated_function(*args, **kwargs):
try:
return f(*args, **kwargs)
except Exception as ex:
print(ex)
return Response(status=500)
return decorated_function
| [
"johnathanfercher22@gmail.com"
] | johnathanfercher22@gmail.com |
5d77eb09e4b6cf34c16b1f1dd27fa8980347f031 | cb30d1a3a4fa6c8f7a6f89a671fbdb4a808e19e3 | /c3/func-name.py | 68b47cdad8ff7c3dad23e07a02f312777672a6df | [] | no_license | systemchip/python-for-everyone | 0b45172ca5b41c3b5fc1a835fbccf4a479c282ea | 9fb7f751a97fb6a110079e1e3e1dd9601fb24374 | refs/heads/master | 2021-09-02T09:18:22.013704 | 2017-07-17T07:46:19 | 2017-07-17T07:46:19 | 115,913,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | # 함수 정의
def calcTime(dist, speed):
t = dist / speed
t = round(t, 1)
return t
# 일반적인 호출 --- (*1)
print( calcTime(500, 100) )
# 키워드 인수를 사용한 호출 --- (*2)
print( calcTime(dist=500, speed=100) )
| [
"dylee@wikibook.co.kr"
] | dylee@wikibook.co.kr |
5b2712d33855ea8aa7812ac1258c53c7409bfc55 | 512579de34bba5d516ec07447f623344a524f1aa | /evenv/Scripts/django-admin.py | b3d5a4dda584239f42f80c8cf6e481a28dd95dbd | [] | no_license | hkeegstraUMD/INST490-Multiplayer-Game | 2cf017a3df8c4da303f52178e3df78f741d96c91 | 750415cf864d5f19bf36727e93297899047b044c | refs/heads/master | 2022-06-20T20:17:31.748428 | 2020-05-11T19:52:09 | 2020-05-11T19:52:09 | 256,562,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | #!C:\Users\HAND\Documents\490muddev\evenv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"hkeegstra@mac.com"
] | hkeegstra@mac.com |
71ad0515fca562d7f5067aec818dc3aa4556943e | 561e84bcf8e81e325795a7f917eda62fa850f23e | /tests/Mujoco/multi_plot_loss.py | 6629eec90d2de05b8a6341404e6897bbe30888d1 | [] | no_license | maxiaoba/SoftAC | e397de3c82f7c6c3c97c7a9e483bc9f669e5a07e | 668c91511fa5b1a77676197115561eb7a8ecf5c5 | refs/heads/master | 2020-05-23T12:16:22.721219 | 2020-03-19T04:44:39 | 2020-03-19T04:44:39 | 186,754,090 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,744 | py | import csv
import os.path
import matplotlib
matplotlib.rcParams.update({'font.size': 10})
from matplotlib import pyplot as plt
import numpy as np
itr_interval = 10
max_itr = 2e4
fields = [
'return-average',
# 'vf--avg',
# 'vf1-avg',
# 'vf2-avg',
# 'log-pi-m... | [
"maxiaoba@umich.edu"
] | maxiaoba@umich.edu |
eb09bf862ac9f67fe5ad039cf9567f99953ecbff | 2fc981b20e238b5815ac1292c6d79ab925d97865 | /09_A3C_GRU.py | b85f960d2646a626a9051a8902610fa0455057c1 | [] | no_license | ayjabri/refresh | 9662e04ff473c91aebc84b3c345ad1701f4ee0b0 | 8d3b4ce9b66c98fa68bfe54643de4be5c8763028 | refs/heads/master | 2023-06-03T03:14:51.771424 | 2021-06-19T11:16:45 | 2021-06-19T11:16:45 | 369,875,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,315 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Attempting to solve Atari games using A2C
@author: Ayman Jabri
"""
import os
import torch
import ptan
from lib import data, utils, mp_utils, model
from tensorboardX import SummaryWriter
import torch.multiprocessing as mp
ALGORITHM = 'A3C_GRU'
FORKS = 4
MINI_BATCH = ... | [
"ayman.aljabri@gmail.com"
] | ayman.aljabri@gmail.com |
4c6392fa5873487af848e8d1467ac221f4033f0b | 2d1769af5eee0c764e1a917fca7a0f58c8751a13 | /cnn/faces/face_utils.py | 73aa05568ee350ac35e6283d6bcfd48a4e504288 | [] | no_license | m-learning/tensorflow_ann_modules | aca785991ba9700da0a1e7a70cce9f32fc6ac6e9 | 914a9fb2c6a4400ea4b7643e3f3fd6aac5f94f8d | refs/heads/master | 2020-05-22T03:59:18.650205 | 2017-08-27T14:34:16 | 2017-08-27T14:34:16 | 61,343,012 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,101 | py | """
Created on Jan 12, 2017
Utility module for FaceNet model
@author: Levan Tsinadze
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
from scipy import misc
from cnn.faces import detect_face, facenet
import numpy as np
import tensorflow as t... | [
"levantsinadze@gmail.com"
] | levantsinadze@gmail.com |
dca5787f4d2ad6160fed2ec06c7c4f0710c8c682 | 875a7d333f344bee54859dc7c31b4fb336832b0f | /pythonProject/Frameworkdevelopment/Tests/test_Homepage.py | 0ce06003b506c0ee76b908317bc0390808b4f552 | [] | no_license | medishettyabhishek/Abhishek | 75076bcc454c13eda456bee4a7f69548e580bfde | a698f35649e9b9570e3e5c5590aeee2d27bd67ae | refs/heads/master | 2023-05-27T14:04:44.277134 | 2021-06-09T17:24:56 | 2021-06-09T17:24:56 | 375,280,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | import pytest
import logging
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.wait import WebDriverWait
from PageObjects.homePage import HomePage
from Testdata.Homepagedata import HomePagedata
fr... | [
"abhishek.medishetty@gmail.com"
] | abhishek.medishetty@gmail.com |
ada1387065207483a988baa6ad1f33206c2dd449 | e4066b34668bbf7fccd2ff20deb0d53392350982 | /project_scrapy/spiders/dulux.py | 34f2fba74f7d2b55e236d9094a345fdac84c6e22 | [] | no_license | sushma535/WebSites | 24a688b86e1c6571110f20421533f0e7fdf6e1a8 | 16a3bfa44e6c7e22ae230f5b336a059817871a97 | refs/heads/master | 2023-08-18T09:09:16.052555 | 2021-10-11T00:41:50 | 2021-10-11T00:41:50 | 415,621,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,539 | py | import scrapy
from scrapy.crawler import CrawlerProcess
import os
import csv
from csv import reader
import re
total_data = {}
class SimilarWeb(scrapy.Spider):
name = 'SW'
user_agent = 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36'
start_url... | [
"sushmakusumareddy@gmail.com"
] | sushmakusumareddy@gmail.com |
a64dc7a5fc3a5edc3f00688d41909573fa5af8a3 | bd7b704b0a22d244938654d3d5de6755950ea11d | /ws_chat/redis_session_test.py | ae6f440694ab11110c3d68cb6aaae05dd0681bb3 | [] | no_license | inzem77/ws-chat2 | 6482fcc85f80d455fd485da774759cdd48916542 | f2b5174d75108d5430af7498cdeee92b301b8ac6 | refs/heads/master | 2021-01-10T09:46:44.970944 | 2016-03-26T09:43:27 | 2016-03-26T09:43:27 | 54,766,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | import asyncio
import time
from aiohttp import web
from aiohttp_session import get_session, session_middleware
from aiohttp_session.cookie_storage import EncryptedCookieStorage
import aiohttp_session
import aioredis
@asyncio.coroutine
def handler(request):
session = yield from get_session(request)
session['las... | [
"inzem77@gmail.com"
] | inzem77@gmail.com |
576723441b43a8cf67f3a463022eba84b8e01376 | a27b219a140b7a540070fc34e2979133f672a4bd | /RomH5.py | 9117cde5bd207995ae021adfb5a3f7db8e259360 | [] | no_license | RomanHarutyunyan/Homework-5 | fd8622802fa256ed1a790ec78de0dc0d1da120d4 | 4d14fd5ee76c82a240232067ba8e3c4d063fde71 | refs/heads/master | 2021-04-09T15:01:34.959505 | 2018-03-18T14:41:34 | 2018-03-18T14:41:34 | 125,734,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,469 | py | import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output, State
from plotly.offline import plot, iplot
import plotly.graph_objs as go
import numpy as np
import pandas as pd
import quandl
import plotly.figure_factory as ff
import matplot... | [
"noreply@github.com"
] | RomanHarutyunyan.noreply@github.com |
55a8ce672f93c1ac8c14ad9db132aa3cb25e038f | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /EYojuPCtvSzF2chkZ_24.py | 1b12d28fa0ef8d5bd219097ad16e1cf7a8231166 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | """
Create a function that returns the selected **filename** from a path. Include
the **extension** in your answer.
### Examples
get_filename("C:/Projects/pil_tests/ascii/edabit.txt") ➞ "edabit.txt"
get_filename("C:/Users/johnsmith/Music/Beethoven_5.mp3") ➞ "Beethoven_5.mp3"
get_filename("ffp... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
c50d89dc32982364e13661f4d0c1340ed34dcbda | de4e1332950d37707620c54a9613258c1dd9489c | /janghun/7주차/프로그래머스_타겟넘버.py | 69fd54f034dae29088c66f1ee1e2b86e7c409565 | [] | no_license | PnuLikeLion9th/Summer_algorithm | 8fe74066b9673fb891b7205f75f808a04c7fe750 | dcfcb6325854b3b4c529451d5c6b162298b53bc1 | refs/heads/master | 2023-07-10T13:57:05.511432 | 2021-08-15T07:50:00 | 2021-08-15T07:50:00 | 378,679,514 | 3 | 10 | null | 2021-08-15T07:50:01 | 2021-06-20T15:32:18 | Python | UTF-8 | Python | false | false | 738 | py | answer = 0
def dfs(idx, numbers, target, value):
global answer # 전역변수 사용한다는 선언
length = len(numbers)
# 전부 다 계산했을 때 target 과 같은 경우, 정답
if(idx == length and target == value):
answer += 1
return
# 전부 다 계산했을 때 target 과 다른 경우,
if(idx == length):
return
# 현재... | [
"noreply@github.com"
] | PnuLikeLion9th.noreply@github.com |
fd81ae94be949535cf1fe0eadba9b97f8ce2d737 | 8f7c595f2b9d075a89417760b7fbf9abb1fecb72 | /common/candle_pattern.py | c952698bb83a7754f6f4afe856dbc8241fd19850 | [
"MIT"
] | permissive | MainakMaitra/trading-utils | 555ed240a20b26d4876f1490fc8a2d9273231fc5 | 3e73091b4d3432e74c385a9677b7f7ca4192c67f | refs/heads/main | 2023-07-04T09:19:40.122188 | 2021-08-08T09:01:37 | 2021-08-08T09:01:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,057 | py | import warnings
warnings.filterwarnings("ignore")
def identify_candle_pattern(ticker_df):
last_candle = ticker_df.iloc[-1]
c = last_candle.close
h = last_candle.high
l = last_candle.low
o = last_candle.open
patterns = []
is_doji = (
abs(c - o) / (h - l) < 0.1
and (h - max... | [
"575441+namuan@users.noreply.github.com"
] | 575441+namuan@users.noreply.github.com |
c5b11a0dd5db5c6fdf0dfbc2ffa87ba1ab6f03e7 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /WxkFoXTLYiAq57uDq_6.py | ef17e6cb7e3ba1e66c2d2c4130f086ae67aa0da7 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,880 | py | """
The insurance guy calls. They were about to pay you all that fortune you've
been anxiously waiting for, but they detected further irregularities; the list
of stolen items is misformatted and appears to contain other entries that
don't belong there. Find and remove them.
You receive a dict with nested dicts with... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
cca18d07394d58c0c590d6275ef40c4d171a3c2a | 7ef31b89478f024217f50574bb4f87a6d2a84c1f | /sort-for-p5008.py | f9e05258cfc3c28064e6a92f142420fb399ad95e | [] | no_license | mandiberg/artandfeminism-scripts | c885c407f8f32e9e44d0dc00e2635cd0430aaa45 | f8ef7289592017c14c9711442eced74d905a6fad | refs/heads/master | 2020-03-29T13:06:20.994987 | 2018-09-23T02:09:10 | 2018-09-23T02:09:10 | 149,940,251 | 0 | 0 | null | 2018-09-23T02:05:38 | 2018-09-23T02:05:38 | null | UTF-8 | Python | false | false | 2,386 | py | import csv
inputFile = 'all-categories-QS.csv'
qidColumnNumber = 0
occupationQIDColumnNumber = 2
listFile = 'red-green-list.csv'
outputFile_green = 'green-' + inputFile
outputFile_red = 'red-' + inputFile
outputFile_grey = 'grey-' + inputFile
def createOutputCsv (outputFileName):
outputCSV = open(outputFileName, 'w'... | [
"ds4489@nyu.edu"
] | ds4489@nyu.edu |
03b3b8f9fdb793492ea9bae3c491501a03d9b573 | f56191df948b9c04c11af9b7bbaf3d08ff4bf2ae | /puzzles/queens.py | 4a56babfbe5f1041b0842eb888247ee2f0c70a06 | [] | no_license | ynvtlmr/7641.A2 | d7cfd3d3af2bd4dc64e8979aa83f503178358340 | 440f683025f59ee017cce86611b8899fd6209c77 | refs/heads/master | 2020-05-20T10:28:17.470152 | 2019-03-04T04:20:12 | 2019-03-04T04:20:12 | 185,526,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | import mlrose
from puzzles.puzzle_solver import solver, avg_solver
# Globals
max_iters = 1000
max_attempts = 50
"""## Define a Fitness Function Object"""
fitness = mlrose.Queens()
problem = mlrose.DiscreteOpt(length=8,
fitness_fn=fitness,
maximize=False,
... | [
"ynvtlmr@gmail.com"
] | ynvtlmr@gmail.com |
54f750c36c535b539881a4f58beedf316189a38a | a073ba435ac5ac987c16abe5fd1491ac24be9cbd | /sjtwo-c/site_scons/site_tools/codegen/site_packages/can/interfaces/ixxat/constants.py | 92c32336bf4f8b4cc8b11d2ef17d3aebcd0625a5 | [] | no_license | ChrisFSF/CMPE146-MP3-project | f2fb34c89e84126b67ef184dfaa966a122a63c9b | e1f40417d0a98521dba06e0b7c169cecb4aa6340 | refs/heads/master | 2023-02-09T06:15:42.240261 | 2021-01-07T01:48:20 | 2021-01-07T01:48:20 | 261,683,682 | 4 | 2 | null | 2020-05-08T21:08:42 | 2020-05-06T07:28:23 | C++ | UTF-8 | Python | false | false | 4,685 | py | # coding: utf-8
"""
Ctypes wrapper module for IXXAT Virtual CAN Interface V3 on win32 systems
Copyright (C) 2016 Giuseppe Corbelli <giuseppe.corbelli@weightpack.com>
"""
FALSE = 0
TRUE = 1
INFINITE = 0xFFFFFFFF
VCI_MAX_ERRSTRLEN = 256
# Bitrates
CAN_BT0_10KB = 0x31
... | [
"814218674@qq.com"
] | 814218674@qq.com |
94c9bf6a82d36e6355b2edb66a267156ea64b88f | 8a706bc0fb0f6ecab95a42a8e3d249d7306e8b6e | /doc2vec.py | 2c7efa6a95936152f8cd0bf1ccf5b27ad9b884a0 | [] | no_license | WeilunDu/BagOfWordsMeetsBagOfPopcorn | 1eb9bc1d43b93a7910484467188342fb3d9ffe91 | 2e51ea7ec02b805dfacf0b69fb8d09f5617d66ad | refs/heads/master | 2020-04-24T19:38:45.626702 | 2015-10-15T21:55:36 | 2015-10-15T21:55:36 | 35,254,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,357 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2013 Radim Rehurek <me@radimrehurek.com>
# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html
'''
README: this modified module is aimed to achieve the following goals:
1, provides an online training method to produce a document vec... | [
"wd387@nyu.edu"
] | wd387@nyu.edu |
1f320c3de6e2963e75238e0f5091347cc938b7a7 | 85ac9f05432a2a4299cb43969395fd7865e78267 | /entrega1/src/dump_movies_info.py | b32c447efa6d015870e60b43c41c52b8932cb071 | [] | no_license | pablodanielrey/twss | 72d8056c2f3fd2a70d465d3176802dbc019fd022 | b533fa6e0ea86460d8ccb49ec554a6f6e7ab4352 | refs/heads/master | 2023-05-20T03:06:23.078921 | 2021-06-12T23:31:13 | 2021-06-12T23:31:13 | 352,428,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | """
script utilitario para hacer un json con info plana sobre cada película.
solo para proceso de debug y verificación
procesa el archivo de merge
"""
import json
import datetime
from common import Merge, MergeInfo, Movie, Show
if __name__ == '__main__':
movies = []
with open('data/merged.json', ... | [
"pablodanielrey@gmail.com"
] | pablodanielrey@gmail.com |
e75b174da365df8b83a6955eb68b0452c45eddf3 | e19e9da795664645e38c95a6bae27a8c50a63bc0 | /examples/probzoo/nlpca_mnist.py | c8b2501d321128782113c126b9ceed0add4b5579 | [
"Apache-2.0",
"BSD-3-Clause",
"Minpack"
] | permissive | xcgfth/InferPy | 185003e323c14c35433f88ca95ac7c6e301cb71d | c0503de31ba8f248ddda64bf55ab2a54d0b24713 | refs/heads/master | 2020-06-11T00:00:37.536557 | 2019-05-27T18:04:46 | 2019-05-27T18:04:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,272 | py | # required pacakges
import inferpy as inf
import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
from inferpy.datasets import mnist
# number of components
k = 2
# size of the hidden layer in the NN
d0 = 100
# dimensionality of the data
dx = 28*28
# number of observations (dataset size)
N = 1000
... | [
"rafacabanas@gmail.com"
] | rafacabanas@gmail.com |
6289659853a3f52588b54dee16761d5fd5d92783 | fcc88521f63a3c22c81a9242ae3b203f2ea888fd | /Python3/1061-Lexicographically-Smallest-Equivalent-String/soln.py | e5984b3c6419925571e515793f7e0abedf137ee7 | [
"MIT"
] | permissive | wyaadarsh/LeetCode-Solutions | b5963e3427aa547d485d3a2cb24e6cedc72804fd | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | refs/heads/master | 2022-12-06T15:50:37.930987 | 2020-08-30T15:49:27 | 2020-08-30T15:49:27 | 291,811,790 | 0 | 1 | MIT | 2020-08-31T19:57:35 | 2020-08-31T19:57:34 | null | UTF-8 | Python | false | false | 578 | py | class Solution:
def smallestEquivalentString(self, A: str, B: str, S: str) -> str:
parents = {ch : ch for ch in string.ascii_lowercase}
def find(x):
if x == parents[x]:
return parents[x]
parents[x] = find(parents[x])
return parents[x]
def u... | [
"zhang623@wisc.edu"
] | zhang623@wisc.edu |
ceff0e66113e55cc400b14d9dc6b0e5d41f6c97e | 2c8425b13bb2962f69a0936d2d79f7f3e4a03459 | /leads/migrations/0002_auto_20211103_1858.py | 5ae1afb99863a5f4b9b7505901f91df8ec6eba50 | [] | no_license | abasse05/ProjetApi | c982d570732dff393ac09647f95c72c8100dae3d | 711c7a6cdd8000c465534b89295cf858ba2dfc23 | refs/heads/main | 2023-08-27T16:05:00.881716 | 2021-11-13T17:48:36 | 2021-11-13T17:48:36 | 427,733,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | # Generated by Django 3.2.3 on 2021-11-03 18:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('leads', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='lead',
name='message',
field=... | [
"abasse882@gmail.com"
] | abasse882@gmail.com |
46d2826acee2eb13e4bc666f800cf7ebf92a1178 | cab46859aa7ee7fa08717394af29d82ad6447e92 | /mysql.py | f67bb93d5fcf36965ab4e6393dddc9b24d61541c | [] | no_license | hjj1711/webBS | 07b0eb8f4f2ffd6bae026f5e1a18c94c1684f182 | ecb6ed02bc088b8869c858635f248d9579d38f2a | refs/heads/master | 2020-04-29T07:57:12.813788 | 2019-03-17T08:00:41 | 2019-03-17T08:00:41 | 175,969,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,858 | py | # -*- coding: utf-8 -*-
# @Time : 2018/5/18 0018 16:02
# @Author : HJ
# @Email : 18287251710@163.com
# @File : mysql.py
# @Software: JetBrains PyCharm 2018.1.2
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import Table, Column, Integer, String, Date,DECIMAL
import config
impor... | [
"45137688+hjj1711@users.noreply.github.com"
] | 45137688+hjj1711@users.noreply.github.com |
1d74779941be7c2ec5a61584d9f59ed8e7c146d9 | 01de6d81902613321043f7d5f33df43a68488c1f | /init.py | 76780fcad352b06e3db80463dafabe25ad81f322 | [] | no_license | aac6012/SWEN331_Fuzzer | cc0a176b819da79b7ab40a5f88860c67a4ec926a | bbd3c1f1da07ce6a76140f3e2a8608bbc00be72f | refs/heads/master | 2021-01-19T16:51:10.458408 | 2015-10-11T17:26:37 | 2015-10-11T17:26:37 | 42,601,988 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,355 | py | """
This handles the setup stuff for the fuzzer.
"""
import sys
import getopt
def getArgs(passed_args):
args = {}
# Get the arguments passed from command line.
passed_args = passed_args[1:] # eliminate the running file from args.
# Exit if there are not enough parameters
if len(passed_args) < 2:
... | [
"aac6012@rit.edu"
] | aac6012@rit.edu |
2fe82648e0dbc0c6bcdcd0cc15c015ebefc12861 | b712ca75d765487903ca95d50dc2dae8f3c9342c | /SemiTargetedPGD20.py | 01581a9aba5d527d2f9b11191fb309c9f8ed7565 | [
"Apache-2.0"
] | permissive | yaojin17/adversarial-project | 72e4c1921ed0a09c042870a6985ab1dd3bb1c09c | 76af16f126ae701fb3a0a83152b37cbec5e7b28f | refs/heads/main | 2023-05-30T20:11:49.511685 | 2021-06-15T09:54:58 | 2021-06-15T09:54:58 | 376,556,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,353 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
# 返回每一行元素第二大元素的下标
def second_max(y_hat):
_, max_idx = torch.max(y_hat, 1)
min_emt, _ = torch.min(y_hat, 1)
for i in range(len(y_hat)):
y_hat[i][max_idx[i]] = min_emt[i]
_, second_max_idx = torch.max(y_hat, 1)
re... | [
"noreply@github.com"
] | yaojin17.noreply@github.com |
800ad7f7ceb5c6d0b024288fbf63c40b291b9cf8 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R2/benchmark/startQiskit_noisy398.py | 211c288f57aab268aa0776e4eb56d9b981a0e392 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,510 | py | # qubit number=3
# total number=78
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
f370719f650e1ac160855baefd47d9249b6345fa | 4f1b4a8040fdd31ed795b08a0ab88e87a8840a28 | /PYT/block1_part1.py | b35ac2d2d80278ad5f241aef9f498cecdbbc381c | [] | no_license | atinanit/master_upf | d0a8cf66d85505e1d962f0f40ac601ca151217a8 | 1920db7e0619c04ee6286e09a156a412bdea7cfd | refs/heads/master | 2021-01-18T09:12:12.186315 | 2016-01-20T10:46:28 | 2016-01-20T10:46:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | #!/usr/bin/python3
# encoding: utf-8
import numpy as np
def get_sphere_volume(radius):
"""Calculate the volume of a sphere
>>> get_sphere_volume(5)
523.5987755982989"""
assert radius > 0
return 4 / 3 * np.pi * radius ** 3
def recursive_factorial(n):
"""Calculates recursively the factorial
... | [
"llrs@users.noreply.github.com"
] | llrs@users.noreply.github.com |
520cde3d3f0c94dc5897de66e8202c048d2b4f9c | 25dacc259905a2672caae041f2ce6bc3fadc4bba | /layers/attention_filter.py | 49c5b6c2b52673075953c3b8020e84c37f4f3d82 | [] | no_license | ME495/TextBasedVideoPositioning | 3186b09fdc35da0744bd0bf6088f67b4e1acdde2 | 24a745d8a71435c94188dccb246446aa247d78ac | refs/heads/master | 2020-08-16T07:16:59.596940 | 2019-11-05T12:19:52 | 2019-11-05T12:19:52 | 215,472,906 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 322 | py |
def attention_filter(video_feature, sentence_feature):
'''
Attention.
Inputs:
video_feature: tensor, shape=(batch_size, T, video_feature_dim), T is variable.
sentence_feature: tensor, shape=(batch_size, sentence_feature_dim).
Returns:
A tensor, shape=(batch_size, T, video_feature_dim).
'''
pa... | [
"771256240@qq.com"
] | 771256240@qq.com |
3641a73ee26062916ed3b69d6410289a73e49b66 | 65efd0155b68b3cd3101930cad1273fdb9892dca | /unsave.py | 57d34eae30136b34d8e51721ddcd3a8a883f64a8 | [] | no_license | BenJamesmudd/random-replier | 0320d4cfdec5063cfab7306978d474b0de9a4814 | 59ac701bd28b3e2f4e1e88d4529d6067c3b9ded4 | refs/heads/master | 2020-06-26T12:10:05.537196 | 2019-07-30T09:48:45 | 2019-07-30T09:48:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | import praw
import pdb
import re
import os
import time
import random as rando
reddit = praw.Reddit('bot1')
def unsave():
saved = reddit.user.me().saved(limit=1000)
for s in saved:
try:
s.unsave()
print("Unsaved post")
except AttributeError as err:
print(err)
print("Uns... | [
"capnben2009@hotmail.com"
] | capnben2009@hotmail.com |
506ad697da20580fe7c04f475cd6a9627d12a143 | 3fb0ce33f00b96ae3808a32da44de3e887434afb | /.提出一覧/AtCoder/ABC152/b/main.py | db01e75914ac864f9d5405badbb44bdf931bfdbe | [] | no_license | Yukikazari/kyoupuro | ca3d74d8db024b1988cd0ff00bf069ab739783d7 | 343de455c4344dbcfa4524b492f7f6205c9db26f | refs/heads/master | 2023-02-21T01:53:52.403729 | 2021-01-27T03:55:01 | 2021-01-27T03:55:01 | 282,222,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | #!/usr/bin/env python3
#import
#import math
#import numpy as np
#= int(input())
#= input()
a, b = map(int, input().split())
print(str(a) * b if a < b else str(b) * a)
| [
"haya_nanakusa793@yahoo.co.jp"
] | haya_nanakusa793@yahoo.co.jp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.