blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8f1135a4fe1bd810fef43a3c51e1e6e339127726 | 38558ac2e78837e7f975364f03a1f55fb02103af | /OBJECT ORIENTED PROGRAMMING IN PYTHON/encap1.py | a4199e1abcb8eca386472268a776fb523aea2f59 | [] | no_license | SOURADEEP-DONNY/WORKING-WITH-PYTHON | a0bc2ff5ddab1b25563927c8f361c6512683d6ff | 5198d14f0711a3ba7f2fe8bac61d6404c20ea40c | refs/heads/master | 2023-07-14T04:49:08.399519 | 2021-08-29T15:22:33 | 2021-08-29T15:22:33 | 270,723,307 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | class car:
def __init__(self,speed,color):
self.speed=speed
self.color=color
def set_speed(self,value):
self.speed=value
def get_speed(self):
return self.speed
maruti=car(200,'blue')
bmw=car(500,'black')
TATA_safari=car(450,'maroon')
print(TAT... | [
"noreply@github.com"
] | SOURADEEP-DONNY.noreply@github.com |
3b5d898fbb6e2df88a271a412c2870043225234e | b7843e20aec7f6f60934ce2ea3ce691d4e9046cf | /[项目二] seiya/seiya/seiya/analysis/job.py | ee18b83280aac4a91c173fca71ac2e3cab0832bb | [] | no_license | redsnowc/challenge | a54a80012beed5ffe264cb09b01e1c8aaeef5384 | c097af045228c51290eae03428b6c6135bd0a5d2 | refs/heads/master | 2020-05-03T08:50:43.085943 | 2019-10-30T07:44:00 | 2019-10-30T07:44:00 | 178,537,982 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | from seiya.db.job import Job, session
from sqlalchemy.sql import func
def analysis_top10_city():
city_list = session.query(
Job.city, func.count(Job.city)).group_by(
Job.city).order_by(func.count(Job.city).desc()).all()
data = [{'name': i[0], 'amount': i[1]} for i in city_list]... | [
"nuanyang.44@gmail.com"
] | nuanyang.44@gmail.com |
654adeff233277840881df8e58bf441d22ccbea3 | 7807bb168d52a2f292e81a5ffcfd00f16dacffed | /source/scripts/wordindex.py | c94239358b2c0de054c9319e5c58458516fdc1b6 | [
"MIT"
] | permissive | paulscottrobson/rpl-c | a248dbf1d3c2b4481fd8371d7faa0827596e1e03 | 2ee72fd0a3381c8b57e7b3af1080733f76e4781d | refs/heads/master | 2020-12-05T11:10:45.403374 | 2020-01-24T16:34:06 | 2020-01-24T16:34:06 | 232,091,109 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,838 | py | # *****************************************************************************
# *****************************************************************************
#
# Name : wordindex.py
# Purpose : Allocate each keyword a specific, final identifier ID.
# Author : Paul Robson (paul@robsons.org.uk)
# Date : 15th Jan... | [
"paulscottrobson@gmail.com"
] | paulscottrobson@gmail.com |
95ce651702a1657e575cdcc81117c4f133541ea6 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/116/usersdata/207/26239/submittedfiles/al1.py | 8de58f1eaa677aefe83a1c90ace636c4dc4d4889 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | from __future__ import division
r=float(input(digite um valor para raio de uma lata:'))
a=float(input('digite um valor para altura de uma lata:'))
v=(3*14159*r*r*a)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
971fc3a8143a232c52ec212094e29eb5b2ca0c29 | bfc25f1ad7bfe061b57cfab82aba9d0af1453491 | /data/external/repositories_2to3/206102/kaggle-lmgpip-master/create_datasets.py | 164f42a999dbbc6ec8339da8be823a36d9f961c4 | [
"MIT"
] | permissive | Keesiu/meta-kaggle | 77d134620ebce530d183467202cf45639d9c6ff2 | 87de739aba2399fd31072ee81b391f9b7a63f540 | refs/heads/master | 2020-03-28T00:23:10.584151 | 2018-12-20T19:09:50 | 2018-12-20T19:09:50 | 147,406,338 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,393 | py | import pandas as pd
import numpy as np
from sklearn import preprocessing
from sklearn.decomposition import *
from sklearn.preprocessing import OneHotEncoder
from sklearn.cross_validation import train_test_split
from sklearn.utils import shuffle
import xgboost as xgb
from sklearn.feature_extraction import DictVe... | [
"keesiu.wong@gmail.com"
] | keesiu.wong@gmail.com |
8bfb2b7badb4bc236ae0884aa55aee8070aeb958 | 59421a289ad349975b595de99276ee6b66a01a0e | /torch/_prims/nvfuser_prims.py | f37a21459e0cdd27cd5dea2436898ef9f094be8b | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | kevinstephano/pytorch | 88fef28c78b26e558abb232df4d2e02042369ca1 | 59001d05b406bb00d5838f04ca972180e1a4946e | refs/heads/master | 2022-11-22T23:40:10.851699 | 2022-10-29T20:36:20 | 2022-10-29T20:36:20 | 468,196,571 | 0 | 0 | NOASSERTION | 2022-03-10T04:45:25 | 2022-03-10T04:45:25 | null | UTF-8 | Python | false | false | 16,892 | py | # Module for defining "primitive" operations executable by the nvFuser. This
# list exists to decouple main set of primitives from the ones that provide a
# lowering of the op to nvFuser’s Python interface. Mostly torch.ops.nvprims is
# a subset of the primitives in torch.ops.prims, but some additional primitives
# can... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
76a28d2c4cfe2561d571b026c4614f17660b2703 | 816955010ba7bcd234688e502a29f522ece05771 | /facility_management/patches/v0_1/add_initial_violation_categories.py | 8e3e91fe009063ac257842d0672661b623f85987 | [
"MIT"
] | permissive | f-9t9it/facility_management | a87a6c5b2840b152e6f97476089bcbd0e2f75cb7 | b17d1c47b543427700acdddf91490b59c5357e50 | refs/heads/master | 2021-07-05T22:18:03.516323 | 2021-05-12T19:52:32 | 2021-05-12T19:52:32 | 241,338,459 | 4 | 4 | NOASSERTION | 2021-05-12T19:52:33 | 2020-02-18T10:57:12 | Python | UTF-8 | Python | false | false | 449 | py | import frappe
def execute():
for violation_category in ['Building & Structure', 'Exteriors', 'General Rules', 'Noise', 'Pets', 'Trash',
'Vehicles & Parking', 'Others']:
if not frappe.db.exists('Tenant Violation Category', violation_category):
frappe.get_doc({
... | [
"irayspacii@gmail.com"
] | irayspacii@gmail.com |
032ededfa1b1cba658ad9a14fb859fbe8d229a97 | a190c38740ff06e12e26b149c49a99595b11a09f | /File_Handling/04_file_delete.py | 8d96e042987be3e831df9f43702b7284d9167b04 | [
"MIT"
] | permissive | MNikov/Python-Advanced-September-2020 | 7d131f060afab1252ea3e9d709acf076086f5f54 | 1d65039de7f094d908411afffa8aee9689ab4220 | refs/heads/master | 2023-01-31T20:50:21.222223 | 2020-12-16T07:41:41 | 2020-12-16T07:41:41 | 295,539,475 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | import os
path = 'my_first_file.txt'
if os.path.exists(path):
os.remove(path)
else:
print('File already deleted!')
| [
"68874299+MNikov@users.noreply.github.com"
] | 68874299+MNikov@users.noreply.github.com |
976a93d9868ac5c4863f05814848d48b2d35828b | b40e5ea1bc1d83bfc94641a3469eeb866f4df24b | /hwk03/tests/test_roni.py | 14eaa40040fe140b4894a8d25ba57f2450ec2937 | [] | no_license | snowdj/LS-88-Demography | d250c9fea4979dca8f05d61a9f9e023784465fcb | c0b125474701fc00f2f285857a4caf08151684c8 | refs/heads/master | 2020-09-27T08:06:07.006160 | 2018-11-30T23:43:06 | 2018-11-30T23:43:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | test = {
'name': 'Question',
'points': 1,
'suites': [
{
'type': 'wwpp',
'cases': [
{
'code': r"""
>>> np.isclose(unpd_roni.where('area', 'Malawi').where('period', 2000).column('roni').item(0), 28.261)
True
""",
'hidden': False
},
... | [
"feehan@berkeley.edu"
] | feehan@berkeley.edu |
07229320ff7998ce9c1f50ed62799d9c7142b35a | bf47722c49c8e26fc3946ec293b080b9899240a8 | /LPR/whole_pro/__test.py | 1b09c64114b3ebe9cada6b0d51001fa3b9d07186 | [] | no_license | renxiaokai-heiyan/Smart_city_Genplate-LPD-LPR | e9aae25e7e542d3dccf02a88d9b417696d71dce8 | f93d8f1a66358be22c37ce94c089d2ab6284a602 | refs/heads/master | 2022-01-25T05:57:31.002166 | 2019-07-24T15:53:14 | 2019-07-24T15:53:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,403 | py |
"""
Author: youngorsu
Email : zhiyongsu@qq.com
Last edited: 2018.1.29
"""
# coding=utf-8
# coding=utf-8 #
# 以utf-8编码储存中文字符
############################################################################
# 本文件主要是实现Qt界面,类“HyperLprWindow”实现主窗口,并调用其他类和函数
# 包含函数:def SimpleRecognizePlateWithGui(image):
# 包含类:class Lice... | [
"w5802022@gmail.com"
] | w5802022@gmail.com |
18e1a95c1abf23d6839f1e3b9d1c9bdb145e2c6b | 3a2c449c5e870a96958772c8ba89d9e119f4b098 | /210-219/214.py | 57e1ebcaba9eded40fa81fa6a3cfafff5cedca8b | [] | no_license | pedrotari7/euler | 0a8ea69c616b84bddfaeaf5d643592a73f321456 | 692ca67c895e3d0c1655bd53501f3d22c1ebb56c | refs/heads/master | 2020-05-21T04:43:34.816108 | 2017-12-11T19:25:31 | 2017-12-11T19:25:31 | 52,283,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,788 | py | from collections import Counter
from itertools import repeat, takewhile
from fractions import Fraction
def multiply(numbers):
result = 1
for n in numbers:
result *= n
return result
class Primes:
def __init__(self, n):
N = n // 2
sieve = [True] * N
for i in range(3, int... | [
"pedrotari7@gmail.com"
] | pedrotari7@gmail.com |
76aad4906a42f7841a9200152a71a8a89d9f4198 | 851f7fde684774ca0388a28cb7035aa1e95f5de0 | /Ercesscorp/migrations/0003_auto_20190511_1215.py | 4f63b800ada217b5c6fb3fd7a0f3078b9c00f073 | [] | no_license | aditya2222/django-tickets | 01451a724cf97c8f2f338ba85a704e85ae57b008 | 3c2ecd252479fc5821873823cdbbb4641268a2d2 | refs/heads/master | 2022-12-16T17:17:07.821446 | 2019-05-12T02:58:05 | 2019-05-12T02:58:05 | 186,204,071 | 0 | 0 | null | 2022-11-22T03:22:25 | 2019-05-12T02:55:47 | JavaScript | UTF-8 | Python | false | false | 328 | py | # Generated by Django 2.1.7 on 2019-05-11 12:15
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Ercesscorp', '0002_auto_20190511_0950'),
]
operations = [
migrations.AlterModelTable(
name='users',
table='users',
)... | [
"adityasingh222247@gmail.com"
] | adityasingh222247@gmail.com |
eee6625e9a6a9f549bd2be92f4c3b33bd8a94475 | 5aaa310a93d5154a80389e1361bcb0e4a3d4f903 | /day07/01_奇异值分解.py | 1c0c63677e68843f96dea8ae5550bc32c6ff93f5 | [] | no_license | 1751660300/ai | 9ef4afb893e59d99c150e0d2abac378c48568bb8 | f5eb845d2e4a9eb73fffb089133191e5edecce77 | refs/heads/master | 2022-12-11T21:53:05.702992 | 2020-09-09T14:29:57 | 2020-09-09T14:29:57 | 294,137,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | # -*- coding:utf-8 -*-
"""
1.什么是奇异值分解?
一个矩阵M,可以分解为3个矩阵U,S,V,使得U * S * V等于M。
U,V都是 正交矩阵(正交矩阵乘于该矩阵的转置等于单位矩阵)
那么S矩阵主对角线上的元素称为矩阵M的奇异值,其他元素都为0.
2.奇异值的应用
可以根据奇异值,逆推原矩阵,跟特征值的作用相似,不同的是奇异值可以提取非方阵,特征值的提取
必须是方阵
3.获取奇异值
使用numpy.linalg.svd(M, full_matrices=False)方法,返回三个矩阵U,S,V,但是S是一个一维数组(就是奇异值)
full_matr... | [
"1751660300@qq.com"
] | 1751660300@qq.com |
a0ca94ab4a085f99eab19d2b5ba6351ef37814b6 | 303d4aa8ec749844d2f7472e1006b46379c62bc6 | /test/turtle模块绘图.py | a390c53b3c474cdcab4ae23fb629576af852457d | [] | no_license | suntyneu/test | d6f63791006785518d8e4c92d89018049396dd01 | a05f93fe71cdd0594fba180e0bed52d402b47bb2 | refs/heads/master | 2023-03-26T10:55:28.214978 | 2021-03-20T07:04:03 | 2021-03-20T10:02:38 | 349,372,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | """
绘图工具,提供一个小海龟,理解为一个机器人呢,只能听得懂有限的命令。
绘图窗口原地在(0, 0)默认朝向右侧
导入 turtle库
运动命令:
forward(d) 向前移动d长度
backward(d) 向后移动d长度
笔画控制命令:
其他命令:
done() 程序继续执行
"""
import turtle
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.done()
| [
"19904270266@189.cn"
] | 19904270266@189.cn |
986960919be0320376e0dde6dcf68eafef65c5ed | 587dbdf730b6cc3e693efc5dca5d83d1dd35ee1a | /leetcode/msjd/01-02.py | d4550e72553de9dc183448adc39bf81ca9d60ffd | [] | no_license | Rivarrl/leetcode_python | 8db2a15646d68e4d84ab263d8c3b6e38d8e3ea99 | dbe8eb449e5b112a71bc1cd4eabfd138304de4a3 | refs/heads/master | 2021-06-17T15:21:28.321280 | 2021-03-11T07:28:19 | 2021-03-11T07:28:19 | 179,452,345 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | # -*- coding: utf-8 -*-
# ======================================
# @File : 01-02.py
# @Time : 2020/5/9 23:06
# @Author : Rivarrl
# ======================================
# [面试题 01.02. 判定是否互为字符重排](https://leetcode-cn.com/problems/check-permutation-lcci/)
from algorithm_utils import *
class Solution:
@timeit
... | [
"1049793871@qq.com"
] | 1049793871@qq.com |
b329ab9cc69df8e15b2920117a312e186e8c8a28 | aef1ea6df9f7fa7a812d9330873dca97ef205e53 | /sales/migrations/0004_auto_20200218_1844.py | a86f6ea059f5e922dc4fb1f7b23d3d09a6ee6e63 | [] | no_license | iamshakibulislam/bakery-management | 0033fec1178d24e427ef68d025682501c5ba6320 | 2751b2cc1f76eeb5825bc3133234ba97e1415569 | refs/heads/master | 2023-02-17T17:05:51.078466 | 2021-01-18T08:36:18 | 2021-01-18T08:36:18 | 254,834,024 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,500 | py | # Generated by Django 3.0.3 on 2020-02-18 12:44
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('sales', '0003_auto_20200216_2114'),
]
operations = [
migrations.CreateModel(
name... | [
"iamshakibulislam@gmail.com"
] | iamshakibulislam@gmail.com |
6cd6f32fe0bd293bf31f942b6055041e058d88de | 017032b3ea86f938925c33858802b2fb5cb0832f | /instagram/config/urls/apis.py | 7c602cc3ec38f9dd3d92db96002088c384071cba | [] | no_license | Fastcampus-WPS-6th/Instagram | 664d9c9fb2ac1a76381bbeece47f791759240a2c | 2b859b3b27dab25e59097b17b9f3940fadb5deeb | refs/heads/master | 2022-12-16T00:55:45.638303 | 2017-11-14T07:53:04 | 2017-11-14T07:53:04 | 106,781,002 | 2 | 2 | null | 2022-12-08T00:37:33 | 2017-10-13T05:19:17 | Python | UTF-8 | Python | false | false | 197 | py | from django.conf.urls import url, include
urlpatterns = [
url(r'^member/', include('member.urls.apis', namespace='member')),
url(r'^post/', include('post.urls.apis', namespace='post')),
]
| [
"dev@azelf.com"
] | dev@azelf.com |
e558be579cdc61dac9294eb4943e5a9f6997937c | e34a44c07adb818a15dd0742761a4c2cf4258336 | /src/homework/homework11/main.py | 1b7c6fe9b9694138f40a7da83440d5654e1ee2e3 | [
"MIT"
] | permissive | acc-cosc-1336/cosc-1336-spring-2018-jjmareck | 629e9cdb3a0f091e440e6dccbd2bc23341df4a2c | 7abfd79cb9a63192c965f828a185ccd981820bae | refs/heads/master | 2021-05-16T14:08:06.763135 | 2018-05-12T03:33:17 | 2018-05-12T03:33:17 | 118,071,035 | 0 | 0 | MIT | 2018-02-25T23:29:58 | 2018-01-19T03:22:07 | Python | UTF-8 | Python | false | false | 1,061 | py | from src.homework.homework11.player import Player
from src.homework.homework11.game_log import GameLog
from src.homework.homework11.die6 import Die6
from src.homework.homework11.die8 import Die8
#write import statements for Die6 and Die8 classes
game_log = GameLog()
#ASSIGNMENT 12: Write statements to create Die6 and... | [
"noreply@github.com"
] | acc-cosc-1336.noreply@github.com |
f700efc6c3f7cee15c14e7308729bd1b4b9dd32f | c237dfae82e07e606ba9385b336af8173d01b251 | /ZServer/medusa/unix_user_handler.py | 7d737c80d552bdf9b0637945802616f82efc5063 | [
"ZPL-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | OS2World/APP-SERVER-Zope | 242e0eec294bfb1ac4e6fa715ed423dd2b3ea6ff | dedc799bd7eda913ffc45da43507abe2fa5113be | refs/heads/master | 2020-05-09T18:29:47.818789 | 2014-11-07T01:48:29 | 2014-11-07T01:48:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,445 | py | # -*- Mode: Python; tab-width: 4 -*-
#
# Author: Sam Rushing <rushing@nightmare.com>
# Copyright 1996, 1997 by Sam Rushing
# All Rights Reserved.
#
RCS_ID = '$Id: unix_user_handler.py,v 1.3 2001/05/01 11:44:49 andreas Exp $'
# support for `~user/public_html'.
import re
import string
import default_handler
imp... | [
"martin@os2world.com"
] | martin@os2world.com |
c57e5a71b7397ea1d38649655ed8f773245c84e5 | 6392354e74cce4a303a544c53e13d0a7b87978ee | /m6/MyBlog/MyBlog/settings.py | 0136cc69f02b7cb015f3c2b498568636608dfbcd | [] | no_license | music51555/wxPythonCode | dc35e42e55d11850d7714a413da3dde51ccdd37e | f77b71ed67d926fbafd1cfec89de8987d9832016 | refs/heads/master | 2020-04-11T20:20:38.136446 | 2019-04-01T09:17:34 | 2019-04-01T09:17:34 | 162,067,449 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,973 | py | """
Django settings for MyBlog project.
Generated by 'django-admin startproject' using Django 2.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# ... | [
"music51555@163.com"
] | music51555@163.com |
a6e7c6bb706e3fdd574e0eef4746a4df0fdafa16 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/ads/googleads/v6/googleads-py/google/ads/googleads/v6/services/services/user_interest_service/client.py | 6bc0da041072cbf210bd1bc4607c85affbd6adad | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,847 | py | # -*- coding: utf-8 -*-
# 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 o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
45f5e444d8a77f49dc82fa426bd042cefa7c4e05 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /important_hand/part_or_year.py | a20ee7526e10994fd0dd1c9a222a98873a7db3b1 | [] | 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 | 221 | py |
#! /usr/bin/env python
def good_government_or_point(str_arg):
first_time(str_arg)
print('make_week')
def first_time(str_arg):
print(str_arg)
if __name__ == '__main__':
good_government_or_point('time')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
d9fbfe1bb534eb343c1c47c1aebd8bfb00e7d944 | 75a35cefa5adf2f42503eb0cc8c60f7f96ff9650 | /produccion/migrations/0010_prodleche_vo.py | e1e409b5bba6811d832d082f8f1c4ab365bc8f15 | [] | no_license | PatacaSis/agroweb | 5c70f35001d0e88fb5f1642161d4eee6b4abda59 | e2181fa0bb6ca7752bdbaab62fe60ede9f2630b2 | refs/heads/main | 2023-06-20T23:37:50.294745 | 2021-07-19T23:26:55 | 2021-07-19T23:26:55 | 381,737,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | # Generated by Django 2.2 on 2021-06-24 19:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('produccion', '0009_auto_20210618_0943'),
]
operations = [
migrations.AddField(
model_name='prodleche',
name='vo',
... | [
"patacasis@gmail.com"
] | patacasis@gmail.com |
f43a80bb21f4e1d7ace060143a3ff8fd95b5a258 | cb95db2638e100f52f8810747fd3ee7be3660b1f | /static/audio_file/clear_cache.py | 0988c8635225a139a6dfd03fe36462f48b02e6fe | [
"MIT"
] | permissive | wanZzz6/smart_robot | c16c7e20c421ff7431a00b95a9f7c5ec56bbcb92 | 769dc3a3dbf35d43abc416c08ba8be81bff72747 | refs/heads/db_version | 2023-05-28T12:40:55.928491 | 2020-04-20T03:52:48 | 2020-04-20T03:52:48 | 140,998,544 | 5 | 1 | null | 2023-05-22T21:37:20 | 2018-07-15T04:38:10 | CSS | UTF-8 | Python | false | false | 158 | py | import os
all_file = os.listdir('.')
print('正在清理缓存')
for i in all_file:
if 'auido' in i or 'clear' in i:
continue
os.remove(i)
| [
"1343837706@qq.com"
] | 1343837706@qq.com |
ae8f27c547a5e25a413c4ee71d01778d834057a3 | 17d23f404a20c34a406dd086b0a89f956c4ecac0 | /Django-Tutorials/listening/migrations/0001_initial.py | 66398fa340306646d1693b2b624511c665b7fc9f | [] | no_license | apabhishek178/ieltsonline | 69df682862d96bc04b318262e962e22a0919fe88 | 42061efa8293c948342a670f0a62c90d3b31ebff | refs/heads/master | 2020-04-26T09:19:55.712217 | 2019-03-20T13:36:31 | 2019-03-20T13:36:31 | 173,451,873 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,002 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2019-02-18 16:03
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"apabhishek178@gmail.com"
] | apabhishek178@gmail.com |
e7d844941964fce550c0dfc36f57e53d74501643 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/liangliangyy_DjangoBlog/DjangoBlog-master/comments/templatetags/comments_tags.py | e23ec803c3847a3a33e438bbaf6b3c38171df187 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 1,676 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@version: ??
@author: liangliangyy
@license: MIT Licence
@contact: liangliangyy@gmail.com
@site: https://www.lylinux.org/
@software: PyCharm
@file: comments_tags.py
@time: 2016/11/2 下午9:17
"""
from django import template
from django.template.loader import render_to_string
... | [
"659338505@qq.com"
] | 659338505@qq.com |
fe090bcc2a7b8e2051f8eb6a23f63a8b9527277a | cf7d96bdd34205ede987f0985dfc9e3ab415ee06 | /product_fifo_lifo/account_anglo_saxon.py | 8ac76dbdc2a5b41e43c82722072e70e3a928799c | [] | no_license | hendrasaputra0501/btxjalan | afc93467d54a6f20ef6ac46f7359e964ad5d42a0 | d02bc085ad03efc982460d77f7af1eb5641db729 | refs/heads/master | 2020-12-30T11:02:05.416120 | 2017-07-31T01:34:08 | 2017-07-31T01:34:08 | 98,836,234 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,614 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-TODAY OpenERP SA (<http://openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of t... | [
"hendrasaputra0501@gmail.com"
] | hendrasaputra0501@gmail.com |
1bafc04c82fcf2e419a27d47e758c586dc6d95cc | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/compose/2017/12/testcases.py | 9427f3d0dad0bc782d0c9d9d7f167207a3c1d6f0 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 5,683 | py | from __future__ import absolute_import
from __future__ import unicode_literals
import functools
import os
import pytest
from docker.errors import APIError
from docker.utils import version_lt
from .. import unittest
from compose.cli.docker_client import docker_client
from compose.config.config import resolve_environm... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
bc76b4c9093b72508244a0815238c338afd49775 | 7dc65b6d2e857c807bd2f75e2586af5f8e933fe5 | /tcutils/pkgs/Traffic/traffic/core/stream.py | 69e5a78e7c8813a72c1172ca57325b026cbe268e | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | vkolli/contrail-test-perf | d6fdc20f4a2004066c5a6316afd915ecdc9366c2 | db04b8924a2c330baabe3059788b149d957a7d67 | refs/heads/master | 2021-01-18T15:36:18.120487 | 2017-03-30T19:19:30 | 2017-03-30T19:19:30 | 86,661,522 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,933 | py | """Module to create traffic stream.
It just parses the arguments given by the user and fills up the approprite
protocol header.
This needs to be extended for new protocol streams with new protocol.
"""
import sys
import inspect
try:
# Running from the source repo "test".
from tcutils.pkgs.Traffic.traffic.u... | [
"root@5b3s45.contrail.juniper.net"
] | root@5b3s45.contrail.juniper.net |
d32b3980d348ba60a4b957a7225a211d4f803884 | 08615c64a62fc364a802bb92314cf49080ddbcee | /new-day02/07.对象/04.类型的判断.py | e91be84d6a4c82303ee691ee3e998464c7d94134 | [] | no_license | xiangys0134/python_study | afc4591fca1db6ebddf83f0604e35ed2ef614728 | 6ec627af7923b9fd94d244c561297ccbff90c1e9 | refs/heads/master | 2023-02-24T01:24:45.734510 | 2022-10-29T02:11:20 | 2022-10-29T02:11:20 | 143,358,792 | 2 | 0 | null | 2023-02-08T03:07:26 | 2018-08-03T00:43:46 | Python | UTF-8 | Python | false | false | 198 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
class A:
pass
class B(A):
pass
# print(issubclass(B,A))
a = A()
b = B()
print(isinstance(a,A))
print(isinstance(b,A))
print(isinstance(a,B)) | [
"ops@xuncetech.com"
] | ops@xuncetech.com |
765bf542a781b1ad6e4337b542b13342b17bbcb6 | 374b3f27fe3cf032e88eccac5992c83eba0ad1b2 | /tutorials/W3D5_NetworkCausality/solutions/W3D5_Tutorial4_Solution_431a3d57.py | 9719ed5491a6af4bb92107ac81919cd72f403124 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | permissive | NeuromatchAcademy/course-content | e2fdca96bcbdc78afaa209e4e77438f44a56c82d | 3d638d00f02d9fd269fa2aff7d062558afdcb126 | refs/heads/main | 2023-08-16T16:09:09.314153 | 2023-08-02T06:21:49 | 2023-08-02T06:21:49 | 262,856,980 | 2,678 | 1,079 | CC-BY-4.0 | 2023-08-17T00:32:24 | 2020-05-10T19:09:05 | Jupyter Notebook | UTF-8 | Python | false | false | 909 | py | def fit_first_stage(T, Z):
"""
Estimates T_hat as the first stage of a two-stage least squares.
Args:
T (np.ndarray): our observed, possibly confounded, treatment of shape (n, 1)
Z (np.ndarray): our observed instruments of shape (n, 1)
Returns
T_hat (np.ndarray): our estimate of the unconfou... | [
"noreply@github.com"
] | NeuromatchAcademy.noreply@github.com |
bfb31af3eba9876a04ed0655b16df30fb0c8340b | 3e6d3e9585c24cb0c29616778ad2e304241a3a65 | /dockerhub_show_tags.py | 52febfd188001ee975c11201c830a2941ba06f89 | [] | no_license | blueroutecn/pytools | 442ef301f5a1b1ef5ce1a22dfe3027873b262934 | 64cb4f6e253bc1f08491874a0db9bcea2ae3dcfd | refs/heads/master | 2021-01-19T14:52:14.886782 | 2017-08-20T21:28:07 | 2017-08-20T21:28:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,675 | py | #!/usr/bin/env python
# vim:ts=4:sts=4:sw=4:et
#
# Author: Hari Sekhon
# Date: 2016-05-10 11:26:49 +0100 (Tue, 10 May 2016)
#
# https://github.com/harisekhon/pytools
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn
# and optionally s... | [
"harisekhon@gmail.com"
] | harisekhon@gmail.com |
e3db1b132f2bd7bbf515311c73de37ae081a5770 | f8580d2c963b6a3c34e918e0743d0a503a9584bd | /etg/unfinished/choicebk.py | 3ed5657f87283336a95d87df56beb9f6b2922919 | [] | no_license | pypy/wxpython-cffi | f59c3faeed26e6a26d0c87f4f659f93e5366af28 | 877b7e6c1b5880517456f1960db370e4bb7f5c90 | refs/heads/master | 2023-07-08T21:13:22.765786 | 2016-12-02T22:10:45 | 2016-12-02T22:10:45 | 397,124,697 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,023 | py | #---------------------------------------------------------------------------
# Name: etg/choicebk.py
# Author: Robin Dunn
#
# Created: 18-Jun-2012
# Copyright: (c) 2013 by Total Control Software
# License: wxWindows License
#-------------------------------------------------------------------------... | [
"wayedt@gmail.com"
] | wayedt@gmail.com |
81e6205099f506d87d51c23755b296cd247d02f8 | 2cafc4981f85e9a25cceb18af1e936e19268e0ee | /scapy_icmp_discovery.py | 1121df8df3afe58afbfc56b36a3501956c738cca | [] | no_license | lapinrepository/ethicalhacking | fdd0647bffeb87544ede182eb62544ee922579fd | 14fac0bee8ca5f58c5499e4e91323e005a5e6c25 | refs/heads/master | 2021-10-09T15:14:29.976534 | 2018-12-30T09:30:19 | 2018-12-30T09:30:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | #!/usr/bin/python
import logging
import subprocess
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
from scapy.all import *
import threading
screenlock = threading.Semaphore(value=1)
def icmpscan(prefix, addr):
try:
answer = sr1(IP(dst=prefix + str(addr))/ICMP(),timeout=1, verbose=0)
screenlock.acq... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
b67e84a4c5fdfc6733b4df7afb9f05a1515a26f9 | 86d9b76692c9fecd26ca3a5bd358119b2f3697dd | /set/change-set.py | e3e2f23ea9cd5507d864419915c48b61241c174d | [] | no_license | khanhnt99/Pythonbook | ec7fa2ff3495ba07e838c9e910aa0758e8f7ae94 | 850e259e6293413e951c77e448d95309dd4f4fad | refs/heads/master | 2022-12-19T09:14:06.193040 | 2020-09-23T10:11:24 | 2020-09-23T10:11:24 | 288,210,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | '''
set la tap hop cac phan tu khong co thu tu nen index khong co y nghia'
'''
my_set={1,3}
print(my_set)
my_set.add(2)
print(my_set)
my_set.update([2,3,4])
print(my_set)
my_set.update([4,5],{1,6,8})
print(my_set)
| [
"you@example.com"
] | you@example.com |
6a021d69064c81144ccb9992145eba87d4ad725f | 7fd7b2de2e1d2317660b7085e3984214ab3f4c9d | /organice/bin/organice_setup.py | 5787ac48176901ebcd5fd3a47da3b9cd26f92108 | [
"Apache-2.0"
] | permissive | brndna/django-organice | 12ae2e1ce1d1f2b79d4ef7932729269c5996a8f5 | 0bea02e0025073ba3e9645b42cff951943400df1 | refs/heads/master | 2020-12-11T06:07:05.363812 | 2015-09-29T20:36:49 | 2015-09-29T21:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,702 | py | #!/usr/bin/env python
#
# Copyright 2014-2015 Peter Bittner <django@bittner.it>
#
# 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 re... | [
"django@bittner.it"
] | django@bittner.it |
543aa44ea9776960042b1a781a575c8e48fc9ae6 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/typeshed/stdlib/mmap.pyi | 8dbec2388838751a229a711f169e2eb9208a238a | [
"Apache-2.0",
"MIT"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 3,766 | pyi | import sys
from _typeshed import ReadableBuffer, Self
from collections.abc import Iterable, Iterator, Sized
from typing import NoReturn, overload
ACCESS_DEFAULT: int
ACCESS_READ: int
ACCESS_WRITE: int
ACCESS_COPY: int
ALLOCATIONGRANULARITY: int
if sys.platform == "linux":
MAP_DENYWRITE: int
MAP_EXECUTABLE: i... | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
ba47a3b2b1b54854c914b8d55705e91c8cecca60 | 1a12cc54ac1b2934cddf12eb733d5a8c25a0bf6d | /interviewbit-trees-sum-root-to-leaf-numbers.py | f36de034600560e22fc2107d9968d6e6512945bb | [] | no_license | sbairishal/CodePath-Alumni-Professional-Interview-Prep-Course | 5813b95cb4c23551d06e74a3aaec6ae7815923ae | 71d8f1e7a456a0f97655e7be90fa17fe18ceaf95 | refs/heads/master | 2020-10-01T01:53:29.246652 | 2018-02-21T06:05:57 | 2018-02-21T06:05:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | # Definition for a binary tree node
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
# @param A : root node of tree
# @return an integer
def do_the_summing(self, node):
if not node.left and not node.right:
... | [
"tachyon@tachyonlabs.com"
] | tachyon@tachyonlabs.com |
9a8428b2135de28dbcd0c266e17fd55c71c38ea9 | 1e67e211123f694bd807e1efb2a85a8cbdae2882 | /server/printer/urls.py | d55cad5aa7bfa09f168e28197e0ebb4d088820ef | [
"MIT"
] | permissive | coll-gate/collgate | 7590ec8dbc7cdb310d0c8452fd6c6e76cf02985d | 8c2ff1c59adda2bf318040f588c05263317a2812 | refs/heads/master | 2021-01-20T03:00:35.617958 | 2019-03-01T16:46:49 | 2019-03-01T16:46:49 | 89,474,611 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | # -*- coding: utf-8; -*-
#
# @file urls.py
# @brief collgate
# @author Frédéric SCHERMA (INRA UMR1095)
# @date 2018-09-20
# @copyright Copyright (c) 2018 INRA/CIRAD
# @license MIT (see LICENSE file)
# @details coll-gate printer module url entry point.
from django.conf.urls import include, url
urlpatterns = [
]
| [
"frederic.scherma@gmail.com"
] | frederic.scherma@gmail.com |
04220f42f761ca699b4f3c16a17d68f44f6de187 | 547e8b46c55fc8e59a2fa95dc1121960badfd7b2 | /ansible/deploy_docker.py | b4a08e7f6b886e08e160d828ffbef0b4dcd9db88 | [
"Apache-2.0"
] | permissive | cammlab/digital_slide_archive | 81bdd234f58321a2f23dff2123d1e8dcbca199bb | 290c1b989d897acc19d6395094dcfe53f670a923 | refs/heads/master | 2022-10-11T13:22:41.813129 | 2020-06-07T15:39:59 | 2020-06-07T15:41:28 | 262,087,325 | 0 | 1 | NOASSERTION | 2020-05-07T15:24:48 | 2020-05-07T15:24:47 | null | UTF-8 | Python | false | false | 40,134 | py | #!/usr/bin/env python
import argparse
import collections
import docker
import getpass
import gzip
import json
import os
import six
import socket
import sys
import tarfile
import time
import uuid
from distutils.version import LooseVersion
if not (LooseVersion('1.9') <= LooseVersion(docker.version)):
raise Exceptio... | [
"david.manthey@kitware.com"
] | david.manthey@kitware.com |
d064af31ff8dfcb1bbf2989110897c624381d5eb | 7343ece3b82ac87a594865c4074623b45b0297b4 | /tests/rest/admin/test_federation.py | 4c7864c629f3e868f98b23586f50b11b14144dd4 | [
"Apache-2.0"
] | permissive | matrix-org/synapse | a00111f83310783b78e2996557f8bbae4d9fb229 | d35bed8369514fe727b4fe1afb68f48cc8b2655a | refs/heads/develop | 2023-09-05T05:24:20.808942 | 2023-09-04T16:14:09 | 2023-09-04T16:14:09 | 22,844,864 | 12,215 | 2,869 | Apache-2.0 | 2023-09-14T15:20:48 | 2014-08-11T15:51:42 | Python | UTF-8 | Python | false | false | 29,661 | py | # Copyright 2021 The Matrix.org Foundation C.I.C.
#
# 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 a... | [
"noreply@github.com"
] | matrix-org.noreply@github.com |
aca98bf3d119fcd3caacbf7ae0055107e799ef81 | e97c25c2e68fbe99b138c0d8c9fff6f17e8860de | /Architecture1/Multiple/Main2.py | 63c27c81615a3b67b55f3f77ac87c5cc46fd80ac | [] | no_license | brycexu/Binarized_Neural_Networks_with_Learned_Pooling-Strategy | 24ab124316458c775011e525d038440f61eccfb1 | 4bdf8e9cdd1f7e17a256bf6efddc874e88e8d4a4 | refs/heads/master | 2020-07-25T14:29:05.228684 | 2019-12-23T11:17:52 | 2019-12-23T11:17:52 | 208,323,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,688 | py | import torch
import torch.nn as nn
import torchvision
import torchvision.transforms as transforms
import Model as model
from torch.autograd import Variable
import time
from Logger import Logger
import numpy as np
import matplotlib.pyplot as plt
device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
be... | [
"XuXianda@Bryce-Xus-Mac-Pro.local"
] | XuXianda@Bryce-Xus-Mac-Pro.local |
556f566fcc8294adf4fa2c33c29d7178f2a6f529 | d0600d512b805c16269faf8e398ccd61aa04a724 | /supervised_learning/regularization/logisteic_regression_with_regularization.py | 125be52f46c5509ab55c1fbbf955002d823e9c74 | [] | no_license | iamMHZ/My-ML-and-DL-experiments | 1ef16b983f46d8440a15019c4cc597cc98f3a0ac | 4b2d1b1e3a9432c0a88796e9c1c489e42509a2e4 | refs/heads/master | 2021-07-11T07:45:12.235042 | 2021-03-12T09:37:37 | 2021-03-12T09:37:37 | 237,808,688 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,732 | py | """
implementation of Logistic regression with L2 regularization
"""
import matplotlib.pyplot as plt
import numpy as np
def load_data():
# https://archive.ics.uci.edu/ml/datasets/Haberman's+Survival
data_file = np.genfromtxt('../../utils/datasets/supervised dataset/haberman.txt', delimiter=',')
X = data_... | [
"iammhz77@gmail.com"
] | iammhz77@gmail.com |
7e471b82d7e87330b02b3ceec2b761f1e46f40d2 | af101b467134e10270bb72d02f41f07daa7f57d8 | /mmagic/models/editors/eg3d/__init__.py | 26ae196273404bdf947578e49c4fcc92287f06b4 | [
"Apache-2.0"
] | permissive | open-mmlab/mmagic | 4d864853417db300de4dfe7e83ce380fd1557a23 | a382f143c0fd20d227e1e5524831ba26a568190d | refs/heads/main | 2023-08-31T14:40:24.936423 | 2023-08-30T05:05:56 | 2023-08-30T05:05:56 | 203,999,962 | 1,370 | 192 | Apache-2.0 | 2023-09-14T11:39:18 | 2019-08-23T13:04:29 | Jupyter Notebook | UTF-8 | Python | false | false | 324 | py | # Copyright (c) OpenMMLab. All rights reserved.
from .camera import GaussianCamera, UniformCamera
from .dual_discriminator import DualDiscriminator
from .eg3d import EG3D
from .eg3d_generator import TriplaneGenerator
__all__ = [
'DualDiscriminator', 'TriplaneGenerator', 'EG3D', 'UniformCamera',
'GaussianCamera... | [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
2da4f79b8bd8154cc469bc70d68325c0ad501612 | eb02ead830632738f9723ba14c495e50a3bbf1a2 | /rohdeschwarz/bin/osp.py | 65a6ed5bc7f32ee04cf9a3fc583e3eb04f82871c | [] | no_license | hgrf/rohdeschwarz | 53461fe2f38156448aa6d2eecdee93c0ff3c77c2 | 20ccf128f8bb1a35b83e803e7d5e742046548ee8 | refs/heads/master | 2023-03-19T15:57:49.175428 | 2019-08-23T14:52:57 | 2019-08-23T14:52:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,678 | py | from rohdeschwarz.instruments.ospswitch import OspSwitch
from ruamel import yaml
import argparse
import code
import datetime
import os
import sys
def main():
parser = argparse.ArgumentParser(description='Connect to a Rohde & Schwarz OSP Switch')
parser.add_argument('--visa', metavar='bus', default=False,... | [
"nick.lalic@gmail.com"
] | nick.lalic@gmail.com |
fa00adef42307ed4652d9211eee22ed83e31fabb | adb295bf248ded84d2c126d73c58b570af440dc6 | /markers/requires.py | 20d9b626d21fb44e65878609473a70cd685a19f6 | [] | no_license | sshveta/cfme_tests | eaeaf0076e87dd6c2c960887b242cb435cab5151 | 51bb86fda7d897e90444a6a0380a5aa2c61be6ff | refs/heads/master | 2021-03-30T22:30:12.476326 | 2017-04-26T22:47:25 | 2017-04-26T22:47:25 | 17,754,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,064 | py | """requires_test(test_name_or_nodeid): Mark a test as requiring another test
If another test is required to have run and passed before a suite of tests has
any hope of succeeding, such as a smoke test, apply this mark to those tests.
It takes a test name as the only positional argument. In the event that the
test nam... | [
"sean.myers@redhat.com"
] | sean.myers@redhat.com |
519dadf3442f8806b441942ada5df14466a94155 | 8b9e9de996cedd31561c14238fe655c202692c39 | /tree/leetcode_Implement_Trie_Prefix_Tree.py | 3e7a8a4a2d448deaec1eb29454d24f582767a17c | [] | no_license | monkeylyf/interviewjam | 0049bc1d79e6ae88ca6d746b05d07b9e65bc9983 | 33c623f226981942780751554f0593f2c71cf458 | refs/heads/master | 2021-07-20T18:25:37.537856 | 2021-02-19T03:26:16 | 2021-02-19T03:26:16 | 6,741,986 | 59 | 31 | null | null | null | null | UTF-8 | Python | false | false | 2,041 | py | """Implement trie prefix tree
leetcode
Implement a trie with insert, search, and startsWith methods.
"""
class TrieNode(object):
__slots__ = ('val', 'end', 'children')
def __init__(self):
"""
Initialize your data structure here.
"""
self.val = None
self.end = False
... | [
"laituan1986@gmail.com"
] | laituan1986@gmail.com |
7d6fe4baf49c9678097573db683c0a29bb674790 | d2616d89ae8d228ecb7c122f76e7754628674d3c | /CircuitPython_Libraries/adafruit-circuitpython-bundle-4.x-mpy-20200114/examples/lsm6dsox_simpletest.py | 68328396384a30b59583e3108c8057b0163306ae | [] | no_license | simsoon27/Microcontrollers | f95761ca081eefc2913068712dd4609bb02f01f7 | 3615ccefe4e649560d26b0a937dd583008dfee54 | refs/heads/master | 2023-06-18T02:11:35.016222 | 2021-07-16T18:18:35 | 2021-07-16T18:18:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | import time
import board
import busio
import adafruit_lsm6dsox
i2c = busio.I2C(board.SCL, board.SDA)
sox = adafruit_lsm6dsox.LSM6DSOX(i2c)
while True:
print("Acceleration: X:%.2f, Y: %.2f, Z: %.2f m/s^2"%(sox.acceleration))
print("Gyro X:%.2f, Y: %.2f, Z: %.2f degrees/s"%(sox.gyro))
print("")... | [
"cmontalvo251@gmail.com"
] | cmontalvo251@gmail.com |
8cb52db936784a8b9eacb4f885340210e48e38ce | 8e954507f612cb375dc55ed7f90896dea131af1b | /test/SConsGnu/GVars/GVarDecls/sconstest-gvardecls3.py | 2526ad653d3af0710efe01d263a881bd21f9968b | [
"MIT"
] | permissive | ptomulik/scons-gnu-build | 8c97ab397b67f58713e95c341608b91fb9c68e00 | 9c46908eed50679d7aaaaf472e324c97545ac837 | refs/heads/master | 2021-01-18T20:30:00.986201 | 2015-10-19T23:48:50 | 2015-10-20T10:58:57 | 6,583,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,030 | py | #
# Copyright (c) 2012-2014 by Pawel Tomulik
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publ... | [
"ptomulik@meil.pw.edu.pl"
] | ptomulik@meil.pw.edu.pl |
237d6cee2a3d139ef9b4113e6049d2bd85c8819c | 9510ff6d4df1a21cbd7abe66301f890ccd519714 | /captain/__init__.py | c7f41218ea4b7ca1e9e1b8be6d7ea467728c0dd1 | [
"MIT",
"BSD-2-Clause"
] | permissive | stmkza/arposandra | 37ea85d62411ba2fe9a14b664672eb081efde451 | e76f9886f98b3e5068b5f135be398c9e77bd3b65 | refs/heads/master | 2021-04-04T23:10:51.812090 | 2020-02-19T03:57:13 | 2020-02-19T04:00:54 | 248,500,182 | 0 | 0 | NOASSERTION | 2020-03-19T12:42:00 | 2020-03-19T12:41:59 | null | UTF-8 | Python | false | false | 3,525 | py | import os
import sys
import configparser
import gettext
import logging
import json
from collections import namedtuple
from tornado.web import Application
from tornado import locale
from . import database
from . import dispatch
from . import pages
from . import card_page
from . import pageutils
from . import tlinject
... | [
"summertriangle.dev@gmail.com"
] | summertriangle.dev@gmail.com |
4593166a53e65ea1bf937735d8ae8662a9e1274d | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /YjwJ6BfujKtmuTMqW_5.py | a15bfdf6d941cfbed39444ebf3d87ec932de004d | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py |
def dice_game(scores):
# this is a hot mess but stfu I'm learning
players = ["1", "2", "3", "4"]
n = len(players)
while n > 1:
this_round = scores[:n]
scores = scores[n:]
totals = [sum(dice) for dice in this_round]
lowest = min(totals)
if totals.count(lowest) == 1:
i = totals.index(lowe... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
da7e83734ca405319febd520ce310db5e2bc9a97 | 0d8486c1d55c40bebea7c5428930f18165d2d0e9 | /tests/wasp1/AllAnswerSets/builtins_10a.test.py | a45344807ef9afdc35b06110f1c7cd3cacfebb7e | [
"Apache-2.0"
] | permissive | bernardocuteri/wasp | 6f81bf6aa8fb273c91bbf68ecce4ecb195a55953 | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | refs/heads/master | 2021-06-08T11:58:25.080818 | 2020-10-05T16:57:37 | 2020-10-05T16:57:37 | 124,245,808 | 0 | 0 | Apache-2.0 | 2018-03-07T14:13:16 | 2018-03-07T14:13:16 | null | UTF-8 | Python | false | false | 136 | py | input = """
a("10.28399"). a("3.7").
b(X,Y) :- a(X), a(Y), X > Y.
"""
output = """
{a("10.28399"), a("3.7"), b("3.7","10.28399")}
"""
| [
"mario@alviano.net"
] | mario@alviano.net |
91b0e7fd648b2b62f82c22a4e4128eb97fdb13e8 | 02255565aff9ea18a4d566955cc53ca06090efa4 | /Python 2000/objectcontent.py | 3f77b46a6c5185b2548503401f06c6c763a92224 | [] | no_license | BrainiacRawkib/Practical-Python-for-Begineers | 20a8a3697812bed78646c6af54a6dc195694109a | cb29ea1a38339fcf2fac005feb92b5a72ae98387 | refs/heads/master | 2020-12-01T09:10:06.802758 | 2019-12-28T15:27:40 | 2019-12-28T15:27:40 | 230,598,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | class Foo():
zname = 'init.name'
def __enter__(self): # with block
self.zname = 'with.enter.name'
def __exit__(self, xtype, xval, trace):
self.zname = 'with.exit.name'
def name(self):
return self.zname
# Just an object
bla = Foo()
# Consistent block entry / exit values
... | [
"brainiacrawkib@gmail.com"
] | brainiacrawkib@gmail.com |
a62f98d1e5a82883078bc383513b920a7276a548 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Games/Dementia RL/tdlib/noise.py | 85597a3e5f643493f71b15226ad3d4f3373b01b3 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:d7ee89dcbac0978f3e0be51be18c9d4df9e003f4ce5a0798db764e5d037d37d4
size 6811
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
34b53ab2947ece36c60a2fa69b2e7dfd676e8e8e | 1843fd5ccb4377240e664acd21ba5a9369eca2ab | /bluebottle/bb_payouts/utils.py | 33a6ad75ba84ef9eae620ac7c8c84883262d376f | [
"BSD-2-Clause"
] | permissive | raux/bluebottle | ba2e576cebcb6835065004c410b22bd8a6b9ee29 | 49d92b5deb289c1539f99122abc20f845577b879 | refs/heads/master | 2020-03-27T03:20:11.465491 | 2018-08-23T13:09:25 | 2018-08-23T13:09:25 | 145,854,614 | 0 | 0 | null | 2018-08-23T13:05:00 | 2018-08-23T13:04:59 | null | UTF-8 | Python | false | false | 1,887 | py | import decimal
import datetime
from django.conf import settings
from django.utils import timezone
VAT_RATE = decimal.Decimal(settings.VAT_RATE)
def money_from_cents(amount):
"""
Convert monetary amount from cents into a Decimal working
with the MoneyField.
>>> money_from_cents(1000)
Decimal('10... | [
"loek@1procentclub.nl"
] | loek@1procentclub.nl |
21c9807b5c8005f1aa58d06aab6da7c3cd3bacaa | 237cc38de0cf7a6e3661ed552ae771bd972d7438 | /base/virtualenv.py | 79ee98001072d09409b57a7f64b0ecf51161dd99 | [] | no_license | chydream/python | af5ad8a98c78de71e255f7b776f936c4b89c616e | e5bfef53a7770d4f323bd2877f93c8166c563695 | refs/heads/master | 2020-05-07T17:00:33.558178 | 2020-05-05T13:45:19 | 2020-05-05T13:45:19 | 180,708,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | # pip install virtualenv
# virtualenv django1.11
# cd Scripts
# 进入/退出虚拟环境:activate/deactivate
# pip install django==1.11
# pip install flask
# pip install virtualenvwrapper-win workon
# pip install pipenv
# mkdir py26
# cd py26
# pipenv --python 2.7
# pipenv shell
# exit()
# pipenv install requests
# pipenv --help/gr... | [
"yong.chen@doone.com.cn"
] | yong.chen@doone.com.cn |
3b6d99b3f015286573099d0345cb67ee74b38848 | f2bec1dbb86b218fc1b7c9106ff13c15dea8c301 | /Connect Four/main.py | c98d476db4933cbef0032c43ab937f4b5db5e699 | [] | no_license | PuffyShoggoth/hatch | 59e0f3684f041846084316f5bfafda1601cf5d2e | e1b32787cb0571469cd06a469b24890e23b78a58 | refs/heads/master | 2021-01-01T16:52:57.758161 | 2017-07-28T18:47:47 | 2017-07-28T18:47:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | from tkinter import *
from board import Board
from ai import Ai
from functools import partial
f = Frame()
f.pack()
a = Ai(4)
buttons = [[] for i in range(7)]
locked = False
emptyhash = 0
for i in range(7):
for j in range(6):
emptyhash^=a.hashvals[i][j][1]
b = Board([[] for i in range(7)], emptyhash)
def d... | [
"shaar@utschools.ca"
] | shaar@utschools.ca |
e08c8a6e0bd133a06c0f98760780129fa4d7c06f | c2ff2ee2b0c84e047a80cfdf0b0d0b122fc9db79 | /features/himario/mmediting/mmedit/models/backbones/encoder_decoders/gl_encoder_decoder.py | 0039f7eab264a5c2b7f8a6920725c9ef47ef7d1f | [
"Apache-2.0",
"MIT"
] | permissive | obarnard99/vilio | 275dcb62cdb8b2d8c55ab1e73f3a796bd2073a5b | 77aac226c3a0910410f11a5999f8908181f57ccd | refs/heads/master | 2023-06-29T17:02:02.282457 | 2021-06-22T09:50:11 | 2021-06-22T09:50:11 | 337,738,373 | 0 | 0 | MIT | 2021-06-22T09:50:12 | 2021-02-10T13:50:49 | Python | UTF-8 | Python | false | false | 2,220 | py | import torch.nn as nn
from mmcv.runner import auto_fp16, load_checkpoint
from mmedit.models.builder import build_component
from mmedit.models.registry import BACKBONES
from mmedit.utils import get_root_logger
@BACKBONES.register_module()
class GLEncoderDecoder(nn.Module):
"""Encoder-Decoder used in Global&Local ... | [
"obarnard99@gmail.com"
] | obarnard99@gmail.com |
97b0c1f5cf34e192fe99aaa9a7dd3a98c3c4aef8 | b9360389f3345c550250a1bd5a5fe58bd7410a71 | /wlct/migrations/0011_auto_20190424_1339.py | a2afd906d1ce15b09ffe3076dc44e15ad81ef9cc | [] | no_license | JustinR17/wzclot | d6f4bd8b46240abbeaa51837c1de1f3115554f17 | 4fa29666eb72aafee28bf57898fecc679fb3d4bb | refs/heads/master | 2023-02-07T22:43:13.827383 | 2021-12-30T22:34:39 | 2021-12-30T22:34:39 | 241,187,417 | 0 | 0 | null | 2020-02-17T19:14:01 | 2020-02-17T19:14:00 | null | UTF-8 | Python | false | false | 1,980 | py | # Generated by Django 2.1.4 on 2019-04-24 20:39
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wlct', '0010_auto_20190423_1427'),
]
operations = [
migrations.CreateModel(
name='RoundRobinTou... | [
"brendanflynn@outlook.com"
] | brendanflynn@outlook.com |
273f87892d2804ebef8f3e0b4dbd80381774b995 | 470e0d4101bf9ca6d22a515e84e591ce37019ca2 | /back/view.py | b450d5005a7317a5a67084043e8f52db41e59b6d | [] | no_license | chenzh111/myblog | 9eedad7bf4601b8235f290f5592a4d19189954e6 | 545c47cb3dd0a0441029c0281c69ab561b369580 | refs/heads/master | 2020-05-17T02:52:17.908901 | 2019-04-25T16:00:03 | 2019-04-25T16:00:03 | 183,464,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,943 | py | from datetime import datetime
from flask import render_template, request, redirect, session
from werkzeug.security import generate_password_hash, check_password_hash
from flask import Blueprint
from back.model import Article, db, User, Articletype
from utils.functions import login_required
blue = Blueprint('app',... | [
"you@example.com"
] | you@example.com |
4549467689c57968bf3e11bc9d9c24c02bf3047d | c24fa89450cccb48fcd481c3cfa475ee0e412e09 | /DatabaseManagementCode/configFileUploaderClass.py | 20195956f745442825dfcd1cbb03071220155465 | [] | no_license | PhoenixYanrongLi/CareEcoSystem_ServerCodeNew | e95d1c552cdcc70aac09482dfda63e253e01fcb0 | b627484694863c425483a04391eedc2ec2ec1098 | refs/heads/master | 2021-01-01T04:34:51.858543 | 2016-04-14T17:57:30 | 2016-04-14T17:57:30 | 56,258,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,048 | py | __author__ = 'Brad, Julien'
import csv
import json
import pickle
import traceback
from dataUploadClass import GenericFileUploader
from dataFileUploaderClass import DataFileUploader
from enum import Enum
from HttpServer... | [
"phl_416cat@sjtu.edu.cn"
] | phl_416cat@sjtu.edu.cn |
5890e87f6173b5cb9740d08aa216544fe73865bb | dffe32dc7f1819217168c42234cc148b142ebe10 | /scripts/download.py | b489821a7590b1f3f7db8fa3e35364f47776e3f5 | [] | no_license | willgdjones/HistoVAE | d4070b991877fb0be83b42b0c110ece6c47563e1 | 5956447b703b5d06115e54843df8c9528a7c1943 | refs/heads/master | 2022-12-12T04:28:06.829139 | 2018-10-18T09:52:25 | 2018-10-18T09:52:25 | 114,638,657 | 10 | 2 | null | 2022-12-08T02:22:28 | 2017-12-18T12:30:02 | Python | UTF-8 | Python | false | false | 903 | py | import sys
import requests.packages.urllib3
import click
import os
import logging
requests.packages.urllib3.disable_warnings()
sys.path.append('.')
from src.classes import Dataset
logger = logging.getLogger(__name__)
@click.command()
@click.option(
'--n_images', default=10,
help="Number of images per tissue... | [
"williamgdjones@gmail.com"
] | williamgdjones@gmail.com |
0b096b3ed4acff128d708bd97fa00312a842e694 | 9a5438bdb8e84d0167ddea5458a7f729fdd54121 | /MetaDataApi/tests/test_utils/test_buildDjangoSearchArgs.py | c210a9521f6cdff2456689f3ca027663c69f3df6 | [] | no_license | Grusinator/MetaDataApi | 740fd2be4cb97b670f827a071a0ac8c50f79f8ff | 081f881c735466ed1dbbd68646b821299c5168f8 | refs/heads/master | 2023-07-25T23:58:22.179717 | 2020-03-15T09:36:05 | 2020-03-15T09:36:05 | 149,087,967 | 5 | 1 | null | 2023-07-25T15:39:12 | 2018-09-17T07:45:09 | CSS | UTF-8 | Python | false | false | 1,302 | py | import django
from django.test import TransactionTestCase
from MetaDataApi.utils.django_utils import BuildDjangoSearchArgs
class test_buildDjangoSearchArgs(TransactionTestCase):
# Django requires an explicit setup() when running tests in PTVS
@classmethod
def setUpClass(cls):
super(test_buildDja... | [
"grusinator@gmail.com"
] | grusinator@gmail.com |
8eb431bf2b7b5607bbc88c85c0e16d7c725be8ef | 5ff8cefa68d52d2427bb3d35320cd8bd0d072968 | /Tuples/Ten_most_repititive_words_from_file.py | b6669b1c49adcea563f57b5a8309203017b378e9 | [] | no_license | gsudarshan1990/PythonSampleProjects | a65a111454f8dc551f1cd29901cead0798ad6dc3 | 3c1a5174c5f966b0eed2828221add76ec0d019d5 | refs/heads/master | 2020-05-09T16:02:37.743568 | 2019-07-14T06:22:55 | 2019-07-14T06:22:55 | 181,255,262 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | """
Find the 10 most repititive words
"""
import string
filename=input('Enter the file name')
try:
filehandle=open(filename)
except IOError as argument:
print('Could not open the file')
print(argument)
exit()
word_dictionary=dict()
for line in filehandle:
line=line.translate(str.maketrans('','',str... | [
"sudharshan.govindarajan@ey.com"
] | sudharshan.govindarajan@ey.com |
a1df8d2c838e3047109aa681da24dea42a0b925a | ee27325f6a3e6a2d1f5e004aa60f5974ad864ae9 | /contrib/python/plotly/py3/plotly/graph_objs/isosurface/_colorbar.py | 63ce7ada86703e454601be2b3ead12cef9289d20 | [
"Apache-2.0",
"MIT"
] | permissive | alvinahmadov/catboost | f32d2b16be9db7439e429c88feb5676de842fc89 | a6e0caa4779b31199f535cf43b09879d7c653abe | refs/heads/master | 2023-06-12T19:29:52.028508 | 2023-05-11T18:33:03 | 2023-05-11T18:33:03 | 202,584,937 | 0 | 0 | Apache-2.0 | 2019-08-15T17:35:23 | 2019-08-15T17:35:23 | null | UTF-8 | Python | false | false | 79,982 | py | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class ColorBar(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "isosurface"
_path_str = "isosurface.colorbar"
_valid_props = {
"bgcolor",
... | [
"akhropov@yandex-team.com"
] | akhropov@yandex-team.com |
e349259897bdd4b47f9069b2a79a212c9fb95105 | 0cf7dd2c3c0b28b52f1273e8fe2ea0a87cacc6af | /Other_Algorithms/Page-Rank_algorithm.py | 257f973d0829fcb8ce938cae730675e41299a2ce | [] | no_license | EngrDevDom/Everyday-Coding-in-Python | 61b0e4fcbc6c7f399587deab2fa55763c9d519b5 | 93329ad485a25e7c6afa81d7229147044344736c | refs/heads/master | 2023-02-25T05:04:50.051111 | 2021-01-30T02:43:40 | 2021-01-30T02:43:40 | 274,971,215 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py | # Page Rank Algorithm
"""
The Page Rank algorithm is applicable in web pages. Web page is a directed
graph, we know that the two components of Directed graphs are -nodes and
connections. The pages are nodes and hyperlinks are the connections, the
connection between two nodes.
We can find out the im... | [
"60880034+EngrDevDom@users.noreply.github.com"
] | 60880034+EngrDevDom@users.noreply.github.com |
036c90c27ad291c077b467be837247756e9b287d | 1f08436bab6cd03bcfb257e8e49405cbc265195a | /1_Basic_I/Basic/40.py | 229ea4394a7ac7e7ccb627f27a4c9b5fd1e54eec | [] | no_license | kuchunbk/PythonBasic | e3ba6322f256d577e37deff09c814c3a374b93b2 | a87135d7a98be8830d30acd750d84bcbf777280b | refs/heads/master | 2020-03-10T04:28:42.947308 | 2018-04-17T04:25:51 | 2018-04-17T04:25:51 | 129,192,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | import math
def calculate_distance(input_xa, input_ya, input_xb, input_yb):
distance = math.sqrt((input_xa - input_xb) ** 2
+ (input_ya - input_yb) ** 2)
return distance
if __name__ == "__main__":
input_xa = float(input('xa'))
input_ya = float(input('ya'))
input_xb = float... | [
"kuchunbk@gmail.com"
] | kuchunbk@gmail.com |
b2e829b6d04503acc4ef29e292c5c36d9b955d55 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /DaVinci_v41r2/Phys/StrippingSelections/python/StrippingSelections/StrippingBandQ/StrippingCharmAssociative.py | 5212680192e3d88cffaf34be5cc48b90d4b6cd11 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,326 | py | #!/usr/bin/env python
# =============================================================================
# $Id: StrippingCharmAssociative.py 176885 2014-08-26 14:00:22Z ibelyaev $
# =============================================================================
## @file
#
# The attempt for stripping of associative ``onium... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
e4f524c34ba0082859ddb9941baece1aca2e4699 | 72c4cea551df0bee51c5740926b2fdb1feaf3470 | /tools/extjs_cc/js_util_types.py | 73c302d3e7b293be2584a95ad8a69eb0447b1b2d | [
"MIT"
] | permissive | joeedh/fairmotion | 2955fda64b36a634c42c3382b20f18dae189d13f | fc0bca395057cd3e78f91bcb1796b6c5eda73d2b | refs/heads/master | 2023-05-26T20:03:51.583970 | 2023-05-14T16:07:53 | 2023-05-14T16:07:53 | 34,099,859 | 1 | 0 | MIT | 2023-03-05T21:45:57 | 2015-04-17T06:13:09 | JavaScript | UTF-8 | Python | false | false | 1,200 | py | class SortedDict (dict):
def __iter__(self):
return self.keys()
def keys(self):
keys = []
for k in dict.keys(self):
keys.append(k)
keys.sort()
return keys
class odict:
def __init__(self):
self.items = []
self.dict = {}
self.keypos = {}
def __setitem__(self, key, va... | [
"joeedh@gmail.com"
] | joeedh@gmail.com |
a77c332b2b115927dcde0f7f51d933d05a77ed39 | 387587c753e76d98a6a0401327766c45561d5109 | /ros_catkin_ws/build_isolated/roswtf/catkin_generated/pkg.develspace.context.pc.py | 1092e102641507a591a765f81fb850af55d4d319 | [
"MIT"
] | permissive | letrend/neopixel_fpga | 7a4819a566fab02bd602c3338b8aaa0ddf4bee85 | d9247417a9d311eceebad5898571846c6e33a44a | refs/heads/master | 2021-01-23T01:00:55.290431 | 2017-05-30T20:15:38 | 2017-05-30T20:15:38 | 92,855,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "roswtf"
PROJECT_SPACE_DIR = "/root/ro... | [
"simon.trendel@tum.de"
] | simon.trendel@tum.de |
96e30180d97e49f108b03f284c1cd9180a406a6f | 4ca8df3a127e9b15cbfecea6505928741f685a63 | /case_crawler/apps/anjuke/anjuke_detail.py | 2056d2c0dd518496541867711808fcc9a781663f | [] | no_license | gongfei6644/gongfei | 2beb082c56197bc23ca20a6927ff6c10d8beaa83 | bfdd5e6a3a8d76ad1e43cf54df186b944cad29e4 | refs/heads/master | 2022-11-30T20:49:22.213040 | 2020-08-16T12:52:28 | 2020-08-16T12:52:28 | 286,283,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,761 | py | from lxml import etree
import datetime
import time
import requests
import json
import re
import bs4
class KeParse:
def parse_xpath(self, html_str):
# print('======================html_str===========================')
dic = {}
if html_str['str'] == '404':
now_time = datetime.da... | [
"1"
] | 1 |
536a06cfcaa0279e625af71aeacac292641c89e2 | 3a02bff6397eb23afd55cc17faf81c24a8751f2d | /sample/searchthu.py | ffe31e067214a28f9ee142f297252b6978367848 | [] | no_license | cothuyanninh/Python_Code | 909fd4d798cbd856e8993f9d4fea55b4b7c97a1f | 7f657db61845cf8c06725a2da067df526e696b93 | refs/heads/master | 2022-11-06T01:00:39.939194 | 2019-01-13T15:27:38 | 2019-01-13T15:27:38 | 164,468,626 | 0 | 1 | null | 2022-10-13T16:16:21 | 2019-01-07T17:40:51 | Python | UTF-8 | Python | false | false | 133 | py | import re
var_search = re.compile(r'\d+\s\w+')
result = var_search.findall('12 bananas , 11 apple , 10 nhan , 9 buoi')
print(result) | [
"cothuyanninh@gmail.com"
] | cothuyanninh@gmail.com |
486ac0bfd66bce156a39da9463114fbf9533402e | d49d2daeb2c69ac40b2d5b688c5e935e7ea5a0c4 | /statsmodels/regression/tests/test_theil.py | 29d88de30dfca79be297d2d1d2bdd570faf31506 | [
"BSD-3-Clause"
] | permissive | twoertwein/statsmodels | 9243e39ec0ef0f0eab503dc612ece29ccc3c021b | a16b49cd997791878b2834bd73c8a38baa1f20ad | refs/heads/master | 2020-05-02T08:29:57.592000 | 2019-03-27T03:16:20 | 2019-03-27T03:16:20 | 177,844,483 | 0 | 0 | NOASSERTION | 2019-03-26T18:14:02 | 2019-03-26T18:14:02 | null | UTF-8 | Python | false | false | 13,584 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 05 17:29:56 2014
Author: Josef Perktold
"""
import os
import numpy as np
import pandas as pd
from scipy import stats
from numpy.testing import assert_allclose, assert_equal, assert_warns
from statsmodels.regression.linear_model import OLS, WLS, GLS
from statsmodels.too... | [
"josef.pktd@gmail.com"
] | josef.pktd@gmail.com |
53d395e3b5cb5d29f3c216dd8eb2aef90a4c9986 | 4be2c72579486ad04a00db0349028de96d2dce89 | /scripts/Helios/commands/Convert Geometry to Bounding Box-advanced.py | c1dbb31dc25f280bfa2822fa5d0cfe3262be0517 | [] | no_license | italic-r/maya-prefs | 6a617d40beee8937186b4699c5cead44e01c2d40 | aa21e5e2938dc2698ce5f555ee74a594e08aed2b | refs/heads/master | 2021-09-09T16:31:00.411349 | 2018-03-18T01:40:10 | 2018-03-18T01:40:10 | 86,961,959 | 16 | 8 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | mc.GeometryToBoundingBoxOptions() | [
"italic.rendezvous@gmail.com"
] | italic.rendezvous@gmail.com |
90b98ddf5b956a0791e967c823e49214eac8d25c | f0f107abf24049ae8a798844fef89387020f6182 | /python/jittor/pyjt_compiler.py | 1bd643c4202a52b1d30485b550de890bda5ed15d | [
"Apache-2.0"
] | permissive | ABlueLight/jittor | 9dc90505fa79eec2f645202a0e7e46c69980db67 | 655f3cc0905f4cbff2a44a0f1151cb43168e7a20 | refs/heads/master | 2023-03-17T05:46:57.453546 | 2021-03-16T03:21:23 | 2021-03-16T03:21:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,635 | py | # ***************************************************************
# Copyright (c) 2021 Jittor. All Rights Reserved.
# Maintainers: Dun Liang <randonlang@gmail.com>.
# This file is subject to the terms and conditions defined in
# file 'LICENSE.txt', which is part of this source code package.
# ************************... | [
"randonlang@gmail.com"
] | randonlang@gmail.com |
b6dc92ec77e8df5536fba11972c47407da157815 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_wolfs.py | 194d3b5e802251036f20fdcd3d81d9b1e51c8aff | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py |
from xai.brain.wordbase.nouns._wolf import _WOLF
#calss header
class _WOLFS(_WOLF, ):
def __init__(self,):
_WOLF.__init__(self)
self.name = "WOLFS"
self.specie = 'nouns'
self.basic = "wolf"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
966d01d06a1e477526327db6dcde20f9bde29880 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/trinutils/driverutils.py | 60e804fa0f9f79cb0f8da31d7f522c627b05356c | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 1,056 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\trinutils\driverutils.py
import trinity
class CannotIdentifyDriverException(Exception):
def __init__(self, vendor, description = 'NA'):
msg = str("Unable to retrieve info from %s card. Please ensure that you... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
68b975e902a1a409aca00a40b7899bf7cd971a86 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02414/s302351716.py | bb38a4daf864560c044955692f3b79691df53c03 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | n, m, l = map(int, input().split())
a = [[int(num) for num in input().split()] for i in range(n)]
b = [[int(num) for num in input().split()] for i in range(m)]
c = [[0 for i in range(l)] for j in range(n)]
for i in range(l):
for j in range(n):
for k in range(m):
c[j][i] += a[j][k] * b[k][i]
for... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0f480898fc7e05f7a44d92e63088b3271791e455 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_pulped.py | a81b741dbf00569f2d280aaa839f8c0f8a92acd4 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py |
from xai.brain.wordbase.nouns._pulp import _PULP
#calss header
class _PULPED(_PULP, ):
def __init__(self,):
_PULP.__init__(self)
self.name = "PULPED"
self.specie = 'nouns'
self.basic = "pulp"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
8c1cd566586a63f35f411d1809372f857c3002bf | 9b07e3fc9436f876a426bf5b02d07733de10d775 | /tests/port_tests/contour_tests/test_is_clockwise.py | 40740d612c4f63110a63c061f91b4ad3f9c81745 | [
"MIT"
] | permissive | lycantropos/martinez | 019e859ec513cc7ad38901e22dff8e897615776c | 86db48324cb50ecb52be8ab2e4278a6d5cdd562b | refs/heads/master | 2021-07-10T04:19:23.372706 | 2020-11-28T00:58:47 | 2020-11-28T00:58:47 | 224,819,004 | 7 | 1 | MIT | 2020-12-20T15:47:17 | 2019-11-29T09:16:26 | Python | UTF-8 | Python | false | false | 927 | py | from hypothesis import given
from tests.port_tests.hints import PortedContour
from tests.utils import implication
from . import strategies
@given(strategies.contours)
def test_basic(contour: PortedContour) -> None:
result = contour.is_clockwise
assert isinstance(result, bool)
@given(strategies.contours)
d... | [
"azatibrakov@gmail.com"
] | azatibrakov@gmail.com |
1db4444ba0313b6d08df9774f979296fed694d05 | f3abfb8d187d24a138aa7dca1b209f2881c5dfe9 | /src/normalize_punctuation.py | 66a0b59c9bee6caffca0103460658e2221b1dd93 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | StevenLOL/mtnt | 48fdfedf6d6eb7f08e770317a0cd4a6db40b6a41 | 1781119df75378c4e2db12315adfbbfa66031f4d | refs/heads/master | 2020-03-28T03:23:58.176606 | 2018-08-31T16:02:01 | 2018-08-31T16:02:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,942 | py | # -*- coding: utf-8 -*-
import re
def normalize_punctuation(s):
"""Adapted from https://github.com/moses-smt/mosesdecoder/blob/master/scripts/tokenizer/normalize-punctuation.perl"""
s = re.sub(r"\r", r"", s)
# remove extra spaces
s = re.sub(r"\(", r" \(", s)
s = re.sub(r"\)", r"\) ", s)
... | [
"pmichel31415@gmail.com"
] | pmichel31415@gmail.com |
62470a4c3f7327cb8d1e809999078427266551ba | 4b7e282fe480415f5d52c0fc0429f144156190fe | /google/ads/googleads/v7/services/services/billing_setup_service/transports/grpc.py | e9ab412e07c9398dde9890e83efe494d5e3b6225 | [
"Apache-2.0"
] | permissive | Z2Xsoft/google-ads-python | c4750357bb19da91bb3b6bf2fa84bef9d2df36d3 | 1779d52a0446c8afb2437b0a9e103dcb849f5590 | refs/heads/main | 2023-08-18T15:22:17.840364 | 2021-09-26T04:08:53 | 2021-09-26T04:08:53 | 410,444,398 | 0 | 0 | Apache-2.0 | 2021-09-26T04:08:53 | 2021-09-26T03:55:38 | null | UTF-8 | Python | false | false | 12,273 | py | # -*- coding: utf-8 -*-
# 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... | [
"noreply@github.com"
] | Z2Xsoft.noreply@github.com |
87001b3f155608be19566116d9d103185444880e | 817712488d5b36c85596e42a0b7178b4a79f95f0 | /knowledge_point/git/常用Git命令.py | d213af979aee72bd03c680e4e7575c1008a07fd6 | [] | no_license | TigerZhao007/GitHub | cfa1dcc5589988a18b0f7661e9f72b8088f95ec2 | 5e08f6a0e4033778f107cc89b422ab107082e4ab | refs/heads/master | 2020-10-02T01:25:39.251198 | 2019-12-12T12:06:25 | 2019-12-12T12:06:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,007 | py |
# ######################################################################################################################
# GIT相关基础命令
# ######################################################################################################################
# Git pull 强制拉取并覆盖本地代码~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"1432467203@qq.com"
] | 1432467203@qq.com |
a83517229a9bc515937ba44bfbcf3ba0b52bde9d | e6f050fd05fb4ca5c296c18c2ee8359017b5cb53 | /final_Python기초/py07선택문/py07_ex13_MaxNumber3.py | 218bcee9b4bf5e81b2c33bdb87d5e4e71aa1906c | [] | no_license | eopr12/pythonfinal | 3f799be3091d9cb34885e922be3de59d6d9245d2 | 823faf1745b6c7d0f6f09941ba1dd8b0482e0d91 | refs/heads/master | 2022-07-15T10:13:09.097154 | 2020-05-16T08:34:39 | 2020-05-16T08:34:39 | 263,354,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | # 숫자 입력 받기
x = input( "정수 입력")
y = input( "정수 입력")
z = input( "정수 입력")
# 문자열 정수 변환
x = int( x )
y = int( y )
z = int( z )
# x, y, z 를 비교
if x > y:
# 여기서 비교해야 값들을 무엇인가?
# x와 z를 비교해야 한다.
if x > z:
print("입력받은 수 중 가장 큰수는 ", x, "입니다")
else:
print("입력받은 수 중 가장 큰수는 ", z, "입니다")
else:
... | [
"kye9565@gmail.com"
] | kye9565@gmail.com |
d2a8ba2e9ec7dce4043827b32255cd8316892c90 | 2695e14b44da27bc853bcbeb5b1ace3733eb7816 | /2017/day04.py | ddba50ddc3792b4f9fc1f955a4e925cb688b6d2a | [] | no_license | st3fan/aoc | ee19cbb0e2de31554cdec12ec4a8dfc92d0c5ecb | 5dfbb271998402579c373f424574995a1683a4c4 | refs/heads/master | 2022-12-25T19:30:53.957717 | 2022-12-25T03:31:53 | 2022-12-25T03:31:53 | 226,227,540 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | #!/usr/bin/env python3
from aoc import sort_str
from collections import Counter
def read_input():
with open("day04.input") as f:
return f.readlines()
if __name__ == "__main__":
# Part 1
def check_password(password):
c = Counter(password.split())
return c.most_common()[0][1] ... | [
"stefan@arentz.ca"
] | stefan@arentz.ca |
ca6a16b00f5b4c1edc81adff0edca68141d06dcb | d04ba4cde1f45d781bdbccd3b07adc4a5c5e55e3 | /data_structures/01_binary_tree/02_binary_search_tree/04_binary_search_tree.py | 03fc73b2a99cde2914b758481b51d1a0ddabdb35 | [] | no_license | lanzhiwang/common_algorithm | 70766604d0faac80af95e829495bbc1cf2d774b6 | 232ad0f2b326ddbf021991a551cd38d39ceccd8f | refs/heads/master | 2020-11-23T21:20:56.067226 | 2020-09-24T06:07:37 | 2020-09-24T06:07:37 | 240,246,083 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,437 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from queue import Queue
'''
构建搜索二叉树
中序遍历 搜索二叉树
判断某个值是否存在
获得最大值和最小值
删除节点
'''
class Node(object):
def __init__(self, value, parent):
self.value = value
self.left = None
self.right = None
#Added in order to delete a node easier
... | [
"hzhilamp@163.com"
] | hzhilamp@163.com |
9125d09021f8a3acd3df626360458b9b9c2ecf91 | 999ed80db247794159be1d752bc6f0fc272bd117 | /ansible/roles/test/files/ptftests/py3/vxlan_traffic.py | 7c1fd86eaa6d86c68abe422e27c1e0aea982cf59 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | ramakristipati/sonic-mgmt | 7fee876412f0121da96d751f7d199690c73496f3 | a86f0e5b1742d01b8d8a28a537f79bf608955695 | refs/heads/master | 2023-08-31T07:55:38.446663 | 2023-08-31T06:34:53 | 2023-08-31T06:34:53 | 315,448,103 | 2 | 0 | NOASSERTION | 2020-11-23T21:44:07 | 2020-11-23T21:44:07 | null | UTF-8 | Python | false | false | 35,558 | py | # VxLAN Traffic Script, to be run in PTF container. Usage:
# ptf --test-dir ptftests vxlan_traffic.VXLAN --platform-dir ptftests
# --qlen=1000 --platform remote -t
# 't2_ports=[16, 17, 0, 1, 4, 5, 21, 20];dut_mac=u"64:3a:ea:c1:73:f8";\
# expect_encap_success=True;packet_count=10;downed_endpoints=["100.0.1.10"]... | [
"noreply@github.com"
] | ramakristipati.noreply@github.com |
2f495d11f725de3593af9efa7b955f96e30c74cd | d767a2048c050421e7213be2ecccff09014e270e | /Day 27/Tram(Codeforces).py | cedb8bcf0809c322aaceb216fc9fc25d3e032cae | [] | 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 | 291 | py | max_count = 0
passengers = 0
for _ in range(int(input())):
a,b = [int(y) for y in input().split()]
passengers -= a
passengers += b
if passengers > max_count:
max_count = passengers
else:
continue
if max_count <= 0:
print(0)
else:
print(max_count) | [
"34964177+Benson1198@users.noreply.github.com"
] | 34964177+Benson1198@users.noreply.github.com |
0ce6e1ec625e46230a485f4fc2c8530032363eed | d703c7eed3e23f087ee7b6b4cbf75db8cc39d614 | /disk_snapshot_service/tests/test_db_operation.py | 5c204dc1d5fafcd8f15e139e18903b991d05670d | [] | no_license | ShawnYi5/OldDisk | e25caed0fa57aebad14a4b1d7c1ac247c073c1e7 | 3d646e37e044f7736ddb6929e43b802aca0608a2 | refs/heads/master | 2020-07-07T01:52:22.587231 | 2019-08-22T03:40:15 | 2019-08-22T03:40:15 | 203,207,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | import pytest
from disk_snapshot_service.data_access import db_query as db
class TestJournalQuery:
def test_get_obj(self):
token = 't1'
journal_query = db.JournalQuery(token)
assert journal_query.get_obj().tree_ident == 'ti1'
def test_get_inst(self):
token = 't1'
jou... | [
"yi.shihong@aliyun.com"
] | yi.shihong@aliyun.com |
e5f854922cbbbb29b068601631417858894a2697 | c7d91529db199322e39e54fe4051a75704ea843e | /NewKe/t1.4.py | af510b6ef35c611063e2b3855df368ecbdfec846 | [] | no_license | 2226171237/Algorithmpractice | fc786fd47aced5cd6d96c45f8e728c1e9d1160b7 | 837957ea22aa07ce28a6c23ea0419bd2011e1f88 | refs/heads/master | 2020-12-26T07:20:37.226443 | 2020-09-13T13:31:05 | 2020-09-13T13:31:05 | 237,431,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,612 | py | '''
给定一棵树的根节点, 在已知该树最大深度的情况下, 求节点数最多的那一层并返回具体的层数。
如果最后答案有多层, 输出最浅的那一层,树的深度不会超过100000。实现代码如下,请指出代码中的多处错误:
struct Node{
vector < Node * > sons;
};
void dfsFind(Node * node, int dep, int counter[])
{
counter[dep] + +;
for (int i = 0; i < node.sons.size();i + +)
{
dfsFind(node.sons[i], dep, counter... | [
"2226171237@qq.com"
] | 2226171237@qq.com |
dae91cd3c9afcdb9b36001351d4b578d21c1e5d2 | 1af78033850e5bbe7a66ad83a238b96e7e2f2778 | /app/pagination.py | 83c5b81cd2d0cecaddd9c5a0db10732f5d21b0b5 | [
"MIT"
] | permissive | Sean10/flask_demo | e7c0aed4a0633f03ded079cadec322dc4bdc6076 | a04b284a1e812f5d291b67fbd04e3073063003f1 | refs/heads/master | 2020-03-27T22:22:30.677486 | 2018-09-03T15:55:10 | 2018-09-03T15:55:10 | 147,225,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | # coding=utf-8
from math import ceil
class Pagination(object):
'''
页码
'''
def __init__(self, page, per_page, total_count):
self.page = page
self.per_page = per_page
self.total_count = total_count
@property
def pages(self):
return int(ceil(self.total_count / flo... | [
"sean10reborn@gmail.com"
] | sean10reborn@gmail.com |
172143bf2e071a8d101ca35ceab439bdbb74fb6c | a37b756e34fc39c1237fc68997dbef77df9fa6fc | /keras/keras17-33/keras32_3_cifar10_dnn.py | 9bdd250e03d846063f30ccecbd3ab48e1c9a996d | [] | no_license | jvd2n/ai-study | e20e38493ad295940a3201fc0cc8061ca9052607 | a82f7c6d89db532f881c76b553b5ab3eea0bdd59 | refs/heads/main | 2023-08-06T03:24:39.182686 | 2021-10-06T14:41:01 | 2021-10-06T14:41:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,933 | py | from tensorflow.keras.callbacks import EarlyStopping
from sklearn import preprocessing
from icecream import ic
import numpy as np
import matplotlib.pyplot as plt
from tensorflow.keras.datasets import cifar10
from keras.utils import np_utils
# 1. Data
(x_train, y_train), (x_test, y_test) = cifar10.load_data()
x_train ... | [
"juhnmayer@gmail.com"
] | juhnmayer@gmail.com |
12b171e219cace843369a845ad03ca1f6e6af427 | 368c66467b78adf62da04cb0b8cedd2ef37bb127 | /SW expert/python/2063_중간값찾기.py | 89048c4e77238eb8510d34160fc102dabbda4779 | [] | no_license | DJHyun/Algorithm | c8786ddcd8b5693fc9b3b4721fdf1eeda21611c5 | fd6ae800886dac4ec5ff6cf2618bc2c839a76e7a | refs/heads/master | 2020-07-30T16:32:49.344329 | 2020-02-25T07:59:34 | 2020-02-25T07:59:34 | 210,289,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | import sys
sys.stdin = open("2063_중간값찾기.txt","r")
n = int(input())
numbers = list(map(int,input().split()))
numbers.sort()
print(numbers[n//2]) | [
"djestiny4444@naver.com"
] | djestiny4444@naver.com |
898c375bf0a507678255b0a240530f2dbe42e88a | db73076ffc750bc1a13cef32d0e03724f40eca5f | /pystudy/base/loop_console.py | 3ce7266cc947f8ba987e2d3774b26583bf715700 | [] | no_license | shengqianfeng/deeplearning | fe4791109ab4dbe37c9d9e81131a511e96b5d980 | 66f6d98cc6d0a680663816ea9329ab17e7f9811f | refs/heads/master | 2022-04-24T04:22:24.867940 | 2020-04-26T13:10:00 | 2020-04-26T13:10:00 | 231,713,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,293 | py |
"""
循环控制
"""
print(1 + 2 + 3)
# Python的循环有两种,一种是for...in循环,依次把list或tuple中的每个元素迭代出来
# 遍历list
names = ['Michael', 'Bob', 'Tracy']
for name in names:
print(name)
# 累加和
sum = 0
for x in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]:
sum = sum + x
print(sum)
# Python提供一个range()函数,可以生成一个整数序列,再通过list()函数可以转换为list
# range(5)生... | [
"answer369"
] | answer369 |
fd1753a305f7aef9054ce1694e44cab83eae9ddd | 4a7804ee05485c345b4e3c39a0c96ed4012542ac | /multimedia/stream/darkice/actions.py | c10beae5d50bff371400cff667324b8b06b5a990 | [] | no_license | Erick-Pardus/Pardus | 1fef143c117c62a40e3779c3d09f5fd49b5a6f5c | 2693e89d53304a216a8822978e13f646dce9b1d3 | refs/heads/master | 2020-12-31T02:49:33.189799 | 2013-03-17T06:29:33 | 2013-03-17T06:29:33 | 17,247,989 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005-2011 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
de... | [
"namso-01@hotmail.it"
] | namso-01@hotmail.it |
31950ddc7f16dc6114686bc41c78a2e1f2207ac9 | c270b1605e8237d4b0539364687caa866f16847c | /Chapter03/Ch3.HeartDisease.py | f282f4b0a81431f66efc9139048f6082cc46f9b9 | [
"MIT"
] | permissive | PacktPublishing/Keras-2.x-Projects | 7b580652e7357d57f77e794a5390d2a90f226f37 | eb60a9b3f3fefa17ee90774edb38d88d31bacd2b | refs/heads/master | 2023-02-09T02:48:19.104508 | 2023-01-30T09:31:54 | 2023-01-30T09:31:54 | 163,262,925 | 14 | 22 | null | null | null | null | UTF-8 | Python | false | false | 2,719 | py | import pandas as pd
#Import data
HDNames= ['age','sex','cp','trestbps','chol','fbs','restecg','thalach','exang','oldpeak','slope','ca','hal','HeartDisease']
Data = pd.read_excel('Ch3.ClevelandData.xlsx', names=HDNames)
print(Data.head(20))
print(Data.info())
summary = Data.describe()
print(summary)
#R... | [
"noreply@github.com"
] | PacktPublishing.noreply@github.com |
84f3ba1e4e7a4d00b0d308008823960d85e55aaa | e45d2faad9389886a82ff5176853b1ff6e37caae | /016_regular_expressions.py | 0fa7d075943a433a11d0bbd0d6b814635519f90a | [] | no_license | allenmo/python_study | 6320aa4cd80fe46ccf73076015c67bdcb6338d30 | 7aff5d810ca6e791d62235d57c072a8dc14457ca | refs/heads/master | 2021-03-24T12:00:33.079530 | 2016-11-22T23:35:58 | 2016-11-22T23:35:58 | 55,770,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | #!/usr/bin/python3
import re
s="Are you afraid of ghosts?"
flag = "ghosts" in s
print(flag)
print("ghosts" in s)
print(("ghosts" in s))
print("the result is ", ("ghosts" in s))
print("the result is ", "ghosts" in s)
print("coffee not in s", "coffee" not in s)
print("coffee in s", "coffee" in s)
ss="123"
matcher = r... | [
"allen02403@gmail.com"
] | allen02403@gmail.com |
6aa20b2479906fedeb660a7d16d08868aeb483d3 | a6ed990fa4326c625a2a02f0c02eedf758ad8c7b | /meraki/sdk/python/updateOrganizationConfigTemplateSwitchProfilePort.py | bdefb531bbde2d3e3e131ca5e8baff0c3c798771 | [] | no_license | StevenKitavi/Meraki-Dashboard-API-v1-Documentation | cf2352976c6b6c00c17a5f6442cedf0aeed46c22 | 5ed02a7def29a2ce455a3f2cfa185f76f44789f5 | refs/heads/main | 2023-03-02T08:49:34.846055 | 2021-02-05T10:31:25 | 2021-02-05T10:31:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | import meraki
# Defining your API key as a variable in source code is not recommended
API_KEY = '6bec40cf957de430a6f1f2baa056b99a4fac9ea0'
# Instead, use an environment variable as shown under the Usage section
# @ https://github.com/meraki/dashboard-api-python/
dashboard = meraki.DashboardAPI(API_KEY)
organization_... | [
"shiychen@cisco.com"
] | shiychen@cisco.com |
b8608a5260514992c8d16921ae57e31de94c8393 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2969/60765/315055.py | 29ea590932fb42c52e1db999a094427123a9c034 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import math
import sys
import re
from collections import *
from itertools import *
from functools import *
import random
def solve():
# =list(map(int,input().split()))
# =int(input())
# def root(i):
# if unions[i]<0:
# return i
# else... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
b6aef5c0b8a418560c4f92fe82cded9ad6281cc9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02606/s864708017.py | d1350b29dffbc685ed0da82d375d2794b3045689 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | d: object
L,R, d = map(int, input().split())
num_list = list()
for x in range(L, R + 1):
num_list.append(x)
dmul_list = list()
for i in num_list:
x = i%d
if x == 0:
dmul_list.append(i)
print(len(dmul_list)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.