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
76e519c75aa0d1644ba0ed6cc01b26d0cd4a26c8
573a9594c096b68136ecc4c36e174ebe45bbb0eb
/config.py
04b39420b5eb6e9dffa9352083e945496fdc4307
[]
no_license
lappv/Homber-AI
9e0fb5ebaaadb850d634ba253b568025781cbf1d
4e568d584d0aaa6e98e7ea939af68cb59e625252
refs/heads/master
2020-03-30T19:25:36.776417
2018-10-04T08:41:46
2018-10-04T08:41:46
151,541,821
0
0
null
null
null
null
UTF-8
Python
false
false
157
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Sep 28 15:26:50 2018 @author: lappv """ #width, height of photo WIDTH = 256 HEIGHT = 256
[ "admin@example.com" ]
admin@example.com
d6df19ab392e4ac60327f35673792c38fe97348f
c8c3c88cc8916a1c716c49248c0911c9470e76b2
/setup.py
4dcd2e960fdb8f5c676447b7c14c4eca77283abe
[]
no_license
tehZevo/aegis-core
6f4af20a47ed7af05ad5e38ce91e7cf1fa80e68e
479d5aabfab1c390db295892279a34f7d6eba54b
refs/heads/master
2021-08-19T03:14:58.273516
2020-07-24T01:04:24
2020-07-24T01:04:24
206,859,574
3
0
null
null
null
null
UTF-8
Python
false
false
439
py
from setuptools import setup, find_packages setup(name='aegis_core', version='0.8.0', install_requires = [ 'ml_utils @ git+https://github.com/tehzevo/ml-utils@master#egg=ml_utils', 'dehydrated_vae @ git+https://github.com/tehzevo/dehydrated-vae@master#egg=dehydrated_vae', 'tensorflow', 'numpy', ...
[ "tehzevo@users.noreply.github.com" ]
tehzevo@users.noreply.github.com
7f91c36398d0d5b8cc2f0c988b05ad7a23d2c98f
21b201ebf2ffbbc19fa8d74e5657e12ef597b02d
/research/ptn/nets/ptn_vox_decoder.py
f57581d70911292b7e9604f466bbcbd29961a699
[]
no_license
alhsnouf/model
fa619691ad9d0afc7ad849a9471e6bb0643a8d47
5fe429b115634e642a7469b3f1d4bc0c5cf98782
refs/heads/master
2021-04-12T11:16:02.150045
2018-03-27T15:19:18
2018-03-27T15:19:18
126,702,717
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:dba9372d5cece6fdcbcfd4e7aa4c24c1bf5b531f1dd9fc6e9a2800351ad3ddaa size 4530
[ "alhanouf987@hotmail.com" ]
alhanouf987@hotmail.com
da0effdacc1ec0dde96a1a828b6972734ad46a10
94c7440e7f1d2fdbe4a1e26b9c75a94e49c14eb4
/leetcode/308.py
4976c54ac11b05c64a3737d655c1163c9edd029d
[ "Apache-2.0" ]
permissive
windniw/just-for-fun
7ddea4f75cf3466a400b46efe36e57f6f7847c48
44e1ff60f8cfaf47e4d88988ee67808f0ecfe828
refs/heads/master
2022-08-18T09:29:57.944846
2022-07-25T16:04:47
2022-07-25T16:04:47
204,949,602
1
0
null
null
null
null
UTF-8
Python
false
false
2,813
py
""" link: https://leetcode-cn.com/problems/range-sum-query-2d-mutable problem: 实现在线的矩阵求和算法 solution: 二维线段树。四分矩形。 """ class SegmentTree2D: def __init__(self, a, b, c, d, x): self.a, self.b, self.c, self.d = a, b, c, d self.a_son, self.b_son, self.c_son, self.d_son = None, None, None, None ...
[ "windniw36@gmail.com" ]
windniw36@gmail.com
ee38c3a6bb5ad93c2b71e58179fce0492ebafbed
32079a99520872be97e83ccbd3ae6f003f925006
/build/vision_visp/visp_camera_calibration/catkin_generated/pkg.installspace.context.pc.py
2ed2014be4ccc9b90d326e73857a4b78727d4c1f
[]
no_license
wndxwilson/Azimorph
a00fa8d34e664cc29cd9226ec378f93fa7df088e
60b81694cadaaf30b9f640a4ed3bebd20ebc2f1a
refs/heads/master
2023-02-16T12:55:26.046759
2021-01-08T22:09:30
2021-01-08T22:09:30
328,021,807
1
0
null
null
null
null
UTF-8
Python
false
false
2,229
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include;/opt/ros/melodic/include;/usr/include;/usr/include/opencv;/usr/include/eigen3;/usr/include/libxml2;/usr/include/OGRE;/usr/include/ois".split(';') if "${prefix}/include;/opt/ros/melodi...
[ "you@example.com" ]
you@example.com
656b8a551d3a14007a6a95eef12364aaaec9f6fa
04886ec5b920b178c3c393167b3782c2055efaba
/cog/project_manager.py
3a21e1e8e695cb040e121e7e76e11f3df8f167bf
[]
permissive
EarthSystemCoG/COG
e997dcde733bc54bddf2cb34ba954c1ab6bd8f8a
3cc6a9480177774f6af0ac1c790894fd58ded16e
refs/heads/master
2022-11-09T09:48:27.796256
2021-02-24T15:45:48
2021-02-24T15:45:48
5,108,836
6
18
BSD-3-Clause
2022-10-20T18:57:44
2012-07-19T11:10:15
HTML
UTF-8
Python
false
false
8,036
py
''' Class responsible for listing and serving federation-wide projects. ''' from django.contrib.sites.models import Site from cog.models import Project, ProjectTag, deleteProject from cog.utils import getJson, str2bool from cog.models import getPeerSites from distutils.util import strtobool class ProjectManager(obje...
[ "luca.cinquini@jpl.nasa.gov" ]
luca.cinquini@jpl.nasa.gov
a4dbcbb3e7f8d6439576f5861924536fd46b558a
44064ed79f173ddca96174913910c1610992b7cb
/Second_Processing_app/temboo/Library/Google/Picasa/ListPhotosByAlbum.py
12cf54b90de111ed528c7c08ae9875dff2797e15
[]
no_license
dattasaurabh82/Final_thesis
440fb5e29ebc28dd64fe59ecd87f01494ed6d4e5
8edaea62f5987db026adfffb6b52b59b119f6375
refs/heads/master
2021-01-20T22:25:48.999100
2014-10-14T18:58:00
2014-10-14T18:58:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,309
py
# -*- coding: utf-8 -*- ############################################################################### # # ListPhotosByAlbum # Lists all photos in a specified Google Picasa album. # # Python version 2.6 # ############################################################################### from temboo.core.choreography im...
[ "dattasaurabh82@gmail.com" ]
dattasaurabh82@gmail.com
0202b7fc4625854f5dae3ae985a461f3ba9d5611
b71c43b7f7785ca6718d74aff762557f5591758d
/Python/Week1/CodingDojo_Python/Django_Projects/random_word_generator/random_word_generator/settings.py
b0cbfe12b26177bec2aabb8cf085855f5b182a9c
[]
no_license
jqchang/DojoAssignments
4be9db6039763905eada2253873997ba5bfd1058
3c5a8b351879ccc380af9ce3b5267ca26ea62681
refs/heads/master
2021-01-13T15:28:45.189452
2017-04-15T23:31:58
2017-04-15T23:31:58
79,868,706
0
0
null
null
null
null
UTF-8
Python
false
false
3,162
py
""" Django settings for random_word_generator project. Generated by 'django-admin startproject' using Django 1.10.5. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ ...
[ "jqchang@gmail.com" ]
jqchang@gmail.com
8cce53c03537bc050af6cb6a1d30bb64dcba9d33
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p3BR/R2/benchmark/startQiskit346.py
ff0bff2595fcf501132ad130dd0781cc158c91dc
[ "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,200
py
# qubit number=3 # total number=67 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
f4664348502bd389cdcb77b37cb230ef983a72d5
a7ab35ff204d7c4679ce8b1bf7da8fa363a7a708
/algo_problems/extra/q140.py
b9589cd8032f0cf5b58cd31697922d86accfda5d
[]
no_license
lin13k/practice
c68e7270be2694cb9737c35af8beb19db7e30d65
c3efe1a5839c3ff1c320c0fcfc7b65a9462f7b52
refs/heads/master
2021-01-19T11:05:43.521468
2018-11-12T09:42:29
2018-11-12T09:42:29
87,928,424
0
0
null
null
null
null
UTF-8
Python
false
false
721
py
class Solution: def wordBreak(self, s, wordDict): """ :type s: str :type wordDict: List[str] :rtype: List[str] """ memo = {len(s): ['']} def breaking(i): tmpLt = [] if i not in memo: for j in range(i + 1, len(s) + 1): ...
[ "lin.13k@gmail.com" ]
lin.13k@gmail.com
30d1da834b95cd7b2ae7130abb0fe3077246b2c6
4960e3e005ba04ec0a8b0defc6642dff5e71f5ae
/knowledge/cron/recommentation_in/check_process.py
d5b65a7d0d2c5318c2668a457e8f851c434bcb72
[]
no_license
jianjian0dandan/knowledge_revised
aa7d772ba9efcaa579907b0418e145d6b440a9c9
ffc80dcca932c977755128c80c17dca603ee8a8b
refs/heads/master
2021-01-24T18:27:41.117166
2017-04-25T14:55:42
2017-04-25T14:55:42
84,448,466
1
0
null
2017-06-15T07:32:31
2017-03-09T14:02:46
HTML
UTF-8
Python
false
false
1,696
py
# -*- coding:utf-8 -*- import subprocess import sys import os import time def check(p_name): cmd = 'ps -ef|grep %s|grep -v "grep"' % p_name p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE) if p.wait() == 0: val = p.stdout.read() print val if p_name in val:...
[ "1257819385@qq.com" ]
1257819385@qq.com
fef91133e10e9f161f697e93077d68c39bd43952
a1bffcd8854e1843e56bb812d4d83b3161a5211e
/tests/unit/modules/network/fortios/test_fortios_user_setting.py
285e43334860c4d87435c8c01d70e93a37bc2c0a
[]
no_license
goneri/ansible.community
1a71f9d98c164b77f8ed2ed7f558b4963005ff8f
f26f612dd0a3154050d90b51a75502018c95f6e4
refs/heads/master
2020-12-29T07:47:35.353515
2020-01-22T17:43:18
2020-01-22T17:43:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,210
py
# Copyright 2019 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the...
[ "ansible_migration@example.com" ]
ansible_migration@example.com
dd8a83a1366b4f671e7f8b2dbbe65250adba9dd2
3c5243cb5ecf28e18804fd0260872c6da8dd2c96
/deployer/config_utils.py
b445f947f6908397436662933f44a47702404b72
[]
no_license
sebbekarlsson/deployer
c58edbe354b5784266f7156f0d189fbd2b4909a1
17ee3ad1bfa507d5f45cccacff6f687410443574
refs/heads/master
2022-08-30T09:02:01.638039
2020-05-24T08:41:54
2020-05-24T08:41:54
266,384,280
0
0
null
null
null
null
UTF-8
Python
false
false
664
py
from jinja2 import Environment, PackageLoader, select_autoescape env = Environment( loader=PackageLoader('deployer', 'config_templates'), autoescape=select_autoescape(['html', 'xml']) ) def get_nginx_config(app_name, server_names, app_type): return env.get_template('nginx.nginx').render( app_name...
[ "sebbekarlsson97@gmail.com" ]
sebbekarlsson97@gmail.com
20825625d984fd7a9d662f62d78ee37516c947ee
c2ff2ee2b0c84e047a80cfdf0b0d0b122fc9db79
/features/himario/mmediting/mmedit/models/components/discriminators/modified_vgg.py
b6e3e53decf019f35b02e739d93304364d165f0d
[ "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
4,473
py
import torch.nn as nn from mmcv.runner import load_checkpoint from mmedit.models.registry import COMPONENTS from mmedit.utils import get_root_logger @COMPONENTS.register_module() class ModifiedVGG(nn.Module): """A modified VGG discriminator with input size 128 x 128. It is used to train SRGAN and ESRGAN. ...
[ "obarnard99@gmail.com" ]
obarnard99@gmail.com
64f0281a19f2bae4252d5f0fc9add8f238942cc1
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2707/61048/301434.py
c4a532c680636c002a6dbde14f29cbe46c76e93f
[]
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
288
py
def search5(): arr=[int(x) for x in input()[1:-1].split(',')] res=0 for i in range(len(arr)-2): for j in range(i+2,len(arr)): if(arr[i]==arr[j]^1): arr[i+1],arr[j]=arr[j],arr[i+1] res+=1 print(res) return search5()
[ "1069583789@qq.com" ]
1069583789@qq.com
e0ad8f8132bb12417a032a82389e6ddc3295a4ca
f3b233e5053e28fa95c549017bd75a30456eb50c
/mcl1_input/L29/29-27_MD_NVT_rerun/set_4.py
89a4454df4f7a46e8aaa4e3e4e73b8ba6794413f
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
740
py
import os dir = '/mnt/scratch/songlin3/run/mcl1/L29/MD_NVT_rerun/ti_one-step/29_27/' filesdir = dir + 'files/' temp_prodin = filesdir + 'temp_prod_4.in' temp_pbs = filesdir + 'temp_4.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for j in lam...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
bb96de7540c498897bd8f154a9fd5c1b9e44c9ea
9df5fa4c65df58e30aa23736d44309c228bd2bf7
/CSTraining/CodingSchool/Bootcamp - Intuition/binarytree-2.py
4fc3b439b20986f8d23fdb1ebc0ffb29e2ec21bb
[]
no_license
mwijaya3/Training
db385bbf7001c27fc2be24290c6ae90595c9b96d
1fdbf995be056a04c96cb834f321e35e1c9e3752
refs/heads/master
2020-04-19T08:32:29.977548
2018-09-20T19:59:43
2018-09-20T19:59:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,234
py
class BinaryTree(dict): def __init__(self, key): """ Constructor: set the node data and left/right subtrees to null """ super().__init__(key=key, right=None, left=None) def maxMinDepth(self, max): """ Maximum/Minimum depth of a binary tree """ max += 1 # Increment by one level for the node # Initial...
[ "aferlitsch@gmail.com" ]
aferlitsch@gmail.com
b0d5e40d2a1c2b83f522f0c4c3a829eb576e9591
acf18f318bb1110f80c74f44f3669fe93529dbee
/app/__init__.py
7dde199798c6cd391006aff6b5dc94183cc766bc
[]
no_license
over-cart/server-dev
034dd8a58fa2603af7f953bd3b4381bb4b6337a9
4109e76210dbe8a948a76d998d664748e04dbd59
refs/heads/master
2020-12-11T07:31:29.972350
2016-09-20T18:05:25
2016-09-20T18:05:25
68,577,614
0
0
null
null
null
null
UTF-8
Python
false
false
165
py
from flask import Flask from flask_socketio import SocketIO app = Flask(__name__) app.secret_key = "mysecret" # socket_io = SocketIO(app) from app.routes import *
[ "ljs93kr@gmail.com" ]
ljs93kr@gmail.com
dbfaaf26c327bf2a6540e4b4e8adf595cb2a6051
c4b7399a10b7f963f625d8d15e0a8215ea35ef7d
/530.二叉搜索树的最小绝对差.py
a9516a5b1a92703a5b098a3cb5c8b1a272cf4a3c
[]
no_license
kangkang59812/LeetCode-python
a29a9788aa36689d1f3ed0e8b668f79d9ca43d42
276d2137a929e41120c2e8a3a8e4d09023a2abd5
refs/heads/master
2022-12-05T02:49:14.554893
2020-08-30T08:22:16
2020-08-30T08:22:16
266,042,478
0
0
null
null
null
null
UTF-8
Python
false
false
1,480
py
# # @lc app=leetcode.cn id=530 lang=python3 # # [530] 二叉搜索树的最小绝对差 # # https://leetcode-cn.com/problems/minimum-absolute-difference-in-bst/description/ # # algorithms # Easy (56.16%) # Likes: 106 # Dislikes: 0 # Total Accepted: 15.8K # Total Submissions: 27.7K # Testcase Example: '[1,null,3,2]' # # 给你一棵所有节点为非负值的二...
[ "596286458@qq.com" ]
596286458@qq.com
87db715497241387e5ac64eb2e03c6574a10d9f8
ed6833b4e93b777aec728be1ed782b81a6e100b0
/tencent/tencent/spiders/QQ.py
ebc8b5e54a5a23daf27edb3ed2dc54fc13a97dfc
[]
no_license
chinaylssly/scrapy
27ea18ce448613fe30f2f1c557efc37f0121c4b1
0c5326a52d8bebddd103b89bbae118fe1e0a1a4f
refs/heads/master
2020-04-05T20:30:18.199711
2018-11-12T08:53:06
2018-11-12T08:53:06
157,183,237
0
0
null
null
null
null
UTF-8
Python
false
false
1,994
py
# -*- coding: utf-8 -*- import scrapy # 导入链接匹配规则类,用来提取符合规则的链接 from scrapy.linkextractors import LinkExtractor from scrapy.spiders import CrawlSpider, Rule from tencent.items import TencentItem class QqSpider(CrawlSpider): name = 'QQ' allowed_domains = ['hr.tencent.com'] start_urls = ['http://hr.tencent.co...
[ "chinaylssly@qq.com" ]
chinaylssly@qq.com
8876588e23c8c2d784f587db0ba4a0d22ac4ab0d
fb5c5d50d87a6861393d31911b9fae39bdc3cc62
/Scripts/sims4communitylib/enums/common_cloud_type.py
f0c8f1460b0133d472995d1b510399eae28ced79
[ "CC-BY-4.0" ]
permissive
ColonolNutty/Sims4CommunityLibrary
ee26126375f2f59e5567b72f6eb4fe9737a61df3
58e7beb30b9c818b294d35abd2436a0192cd3e82
refs/heads/master
2023-08-31T06:04:09.223005
2023-08-22T19:57:42
2023-08-22T19:57:42
205,197,959
183
38
null
2023-05-28T16:17:53
2019-08-29T15:48:35
Python
UTF-8
Python
false
false
4,755
py
""" The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0). https://creativecommons.org/licenses/by/4.0/ https://creativecommons.org/licenses/by/4.0/legalcode Copyright (c) COLONOLNUTTY """ from typing import Tuple, Union, Iterator from sims4commun...
[ "ColonolNutty@hotmail.com" ]
ColonolNutty@hotmail.com
18aaa97be2175e871a13e0a51d22db1c92104766
07a3ddc11d39d409491863fd91a0908b4fd3d372
/apps/keywords/migrations/0004_keyword_type.py
bc9cca46fd8564b9a12ca2854bc3ba941c8882c2
[]
no_license
agtt/illegal-content-detector
2d3a6cd22e75491410fd19bb76e7a0b0b12100d0
66b74cd0d1eb57c988130c7eaa7b8f7fbfdfa921
refs/heads/master
2023-06-03T12:46:04.741977
2019-09-28T13:20:42
2019-09-28T13:20:42
378,408,280
0
0
null
null
null
null
UTF-8
Python
false
false
432
py
# Generated by Django 2.2.5 on 2019-09-26 09:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('keywords', '0003_auto_20190926_0931'), ] operations = [ migrations.AddField( model_name='keyword', name='type', ...
[ "csd@hotmail.com.tr" ]
csd@hotmail.com.tr
81caa63f915eb7331c7f14b9bb703c9722b3bcee
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-1/e1d248dddf2a6cfcb61eb18290cc19d39d4ae8b5-<get_aws_connection_info>-fix.py
4c7a7168bf00563d88c635dcc3feacc3521a33c1
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,098
py
def get_aws_connection_info(module, boto3=False): ec2_url = module.params.get('ec2_url') access_key = module.params.get('aws_access_key') secret_key = module.params.get('aws_secret_key') security_token = module.params.get('security_token') region = module.params.get('region') profile_name = mo...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
72bbd446f65dfa3e840f4ea7428719cc800e6dcd
adbf09a31415e6cf692ff349bd908ea25ded42a8
/revision/imports/decorators.py
feb4b50f61da38062e9541977f63d59447f297ec
[]
no_license
cmulliss/gui_python
53a569f301cc82b58880c3c0b2b415fad1ecc3f8
6c83d8c2e834464b99024ffd8cf46ac4e734e7a4
refs/heads/main
2023-08-12T22:33:01.596005
2021-10-11T12:35:41
2021-10-11T12:35:41
408,176,101
0
0
null
null
null
null
UTF-8
Python
false
false
613
py
def get_admin_password(): return "1234" def make_secure(func): def secure_function(): if user["access_level"] == "admin": return func() else: return f"No admin permissions for {user['username']}." return secure_function get_admin_password = make_secure( get_a...
[ "cmulliss@gmail.com" ]
cmulliss@gmail.com
0cb0e4a4d734898aa6e5ff875991d8504b995e25
e770533cc7d8517134d6f9159f5f9e52747c7153
/python/util/NumpyUtil.py
76cbcaa211df4024e381fc1b1fafa6dec49e0b0a
[]
no_license
code1990/bootPython
5d878f7fac8aaa09a2b9e4a6d50a3c0f86c6dea5
e5debd59b07a2c713f3e692aa4f44a9d2e5baeae
refs/heads/master
2022-07-27T04:31:00.292692
2020-08-07T07:07:15
2020-08-07T07:07:23
206,805,170
0
0
null
2020-10-13T15:51:34
2019-09-06T13:56:39
Python
UTF-8
Python
false
false
790
py
import numpy as np """ numpy工具类 """ """ 计算平均值 """ def get_avg(data_list): return np.mean(data_list) """ 方差是各个数据与平均数之差的平方的平均数 """ def get_vari(data_list): return np.var(data_list) """ 标准差 方差开根号 反映的是一维数组的离散程度 """ def get_std_dev(data_list): return np.std(data_list, ddof = 0) """ 协方差是对2组数据进行统计的,反映的是2组数...
[ "s1332177151@sina.com" ]
s1332177151@sina.com
4e797be5267dfcdaeb1f53ef9b7e64383820e980
2052a12f0ab7a827d6427b5533b6ae29847dcc3b
/0977.有序数组的平方/0977-有序数组的平方.py
a0b161af20b5d10774a9618ef0ae7530ff04b902
[ "MIT" ]
permissive
cleiveliu/leetcodecn
7db7af4da18e62bd592afc9f81dfa4aab46adced
618a4b63a9cd055f1782903e860e9a93dfd30fc9
refs/heads/master
2020-08-28T23:44:10.102451
2020-07-19T15:26:45
2020-07-19T15:26:45
217,856,119
1
0
null
null
null
null
UTF-8
Python
false
false
119
py
class Solution: def sortedSquares(self, A: List[int]) -> List[int]: return sorted(map(lambda x: x * x, A))
[ "cleiveliu1@gmail.com" ]
cleiveliu1@gmail.com
bf45614164acfdb963e9f4058b2802c1767806a8
67f988dedfd8ae049d982d1a8213bb83233d90de
/external/tools/gyp/test/ninja/force-include-files-win/gyptest-force-include-files.py
aac3b7628a72eeb895ffac09ad9db860df7f4977
[ "BSD-3-Clause" ]
permissive
opensourceyouthprogramming/h5vcc
94a668a9384cc3096a365396b5e4d1d3e02aacc4
d55d074539ba4555e69e9b9a41e5deb9b9d26c5b
refs/heads/master
2020-04-20T04:57:47.419922
2019-02-12T00:56:14
2019-02-12T00:56:14
168,643,719
1
1
null
2019-02-12T00:49:49
2019-02-01T04:47:32
C++
UTF-8
Python
false
false
809
py
#!/usr/bin/env python # Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Make sure ForcedIncludeFiles is emulated on Windows. """ import TestGyp import sys if sys.platform == 'win32': test = TestGyp.TestG...
[ "rjogrady@google.com" ]
rjogrady@google.com
f29460487e7c36d9ec8211c749d26c601d49d9bb
d94b6845aeeb412aac6850b70e22628bc84d1d6d
/compositional_rl/gwob/CoDE/gym_spaces.py
b3482b4c08f640598af980fb3b97fefdff509143
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
ishine/google-research
541aea114a68ced68736340e037fc0f8257d1ea2
c1ae273841592fce4c993bf35cdd0a6424e73da4
refs/heads/master
2023-06-08T23:02:25.502203
2023-05-31T01:00:56
2023-05-31T01:06:45
242,478,569
0
0
Apache-2.0
2020-06-23T01:55:11
2020-02-23T07:59:42
Jupyter Notebook
UTF-8
Python
false
false
1,471
py
# coding=utf-8 # Copyright 2023 The Google Research Authors. # # 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 applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
09c8552483e9c8a102f3585f1e8f1b1776b9d22b
1b2e1709fc5914559ffa93fcb311863d3484ec76
/SConstruct
5a216f2c88d2d6299e68787ad0779e5f9b4b2944
[]
no_license
muhkuh-sys/org.muhkuh.tools-muhkuh_tester_webui
01cbbf6519eb8b55534b7264655e9bc600122525
7c21859ecd0187939af2045c7c289de2f59b433c
refs/heads/master
2023-07-27T08:59:02.321582
2023-06-30T13:35:17
2023-06-30T13:35:17
218,801,850
0
1
null
null
null
null
UTF-8
Python
false
false
4,419
# -*- coding: utf-8 -*- #-------------------------------------------------------------------------# # Copyright (C) 2019 by Christoph Thelen # # doc_bacardi@users.sourceforge.net # # ...
[ "doc_bacardi@users.sourceforge.net" ]
doc_bacardi@users.sourceforge.net
6bbe817364659acebe2ed2609a2f082e74779de9
32ef8621468095bf9c6dd912767cb97e9863dc25
/python/validating-the-phone-number.py
834a9daaf9838dec9e43f3fe677b95a74da52410
[]
no_license
Seungju182/Hackerrank
286f1666be5797c1d318788753245696ef52decf
264533f97bcc8dc771e4e6cbae1937df8ce6bafa
refs/heads/master
2023-08-17T22:49:58.710410
2021-10-25T09:40:46
2021-10-25T09:40:46
337,652,088
1
0
null
null
null
null
UTF-8
Python
false
false
311
py
# Enter your code here. Read input from STDIN. Print output to STDOUT import re def validate_phone_number(x): if re.match(r'[789]\d{9}$', x): print("YES") else: print("NO") if __name__ == "__main__": N = int(input()) for i in range(N): validate_phone_number(input())
[ "tonysj@snu.ac.kr" ]
tonysj@snu.ac.kr
9b5bb4f38efacfcada1b29b5e959654236cf4f4a
00d3ef5198fd68f2669f8ef0557a32688d411b07
/simple_rl/agents/MCTSAgentClass.py
96b11c79237ca6a09b72d8b50af1b209fa204c98
[ "MIT" ]
permissive
DilipA/simple_rl
4c0723fb63e18e51365307f42fdf8e599d1e1d83
2cfffebabb04041af98659541c65e11e37407da8
refs/heads/master
2021-01-19T00:33:45.204401
2017-11-07T17:08:43
2017-11-07T17:08:43
87,185,651
0
0
null
2017-04-04T12:48:45
2017-04-04T12:48:45
null
UTF-8
Python
false
false
2,824
py
''' MCTSAgentClass.py: Class for a basic Monte Carlo Tree Search ''' # Python imports. import math as m import random as r from collections import defaultdict # Local imports. from AgentClass import Agent from simple_rl.tasks.gym.GymStateClass import GymState class MCTSAgent(Agent): def __init__(self, actions, ...
[ "david_abel@brown.edu" ]
david_abel@brown.edu
dd855bf1da4f6c8d4cb8ee4602d02c17d1664e6c
c850e927206df84e91de93367c5735279b929494
/hrfs.py
59754e69b90335b8600f7c7c63e9b2c83e0c8211
[ "BSD-2-Clause" ]
permissive
parenthetical-e/roi
613720e785e08d8784e7c5485243f814e8922b51
828930da13a7b43530f90541cc3e957ca3383c7d
refs/heads/master
2021-01-10T19:24:34.387969
2013-11-26T16:56:58
2013-11-26T16:56:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,142
py
"""A collection of hemodynamic response functions. """ import numpy as np import nitime as nt import roi def double_gamma(self, width=32, a1=6.0, a2=12.0, b1=0.9, b2=0.9, c=0.35): """ Returns a HRF. Defaults are the canonical parameters. """ x_range = np.arange(0, width, self.TR) d1 = a1 * b1 d2...
[ "Erik.Exists@gmail.com" ]
Erik.Exists@gmail.com
b80f07b41cab1cac471698a6c7a46ceb8e168608
077c91b9d5cb1a6a724da47067483c622ce64be6
/pox_broken_floyd_mcs/orig_config.py
b06ef8f78d7ad129fcda4a86e7177b0c1f0e61a3
[]
no_license
Spencerx/experiments
0edd16398725f6fd9365ddbb1b773942e4878369
aaa98b0f67b0d0c0c826b8a1565916bf97ae3179
refs/heads/master
2020-04-03T10:11:40.671606
2014-06-11T23:55:11
2014-06-11T23:55:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,307
py
from config.experiment_config_lib import ControllerConfig from sts.topology import * from sts.control_flow import EfficientMCSFinder from sts.invariant_checker import InvariantChecker from sts.simulation_state import SimulationConfig simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_cmd=...
[ "cs@cs.berkeley.edu" ]
cs@cs.berkeley.edu
b9c02a79f8a32c989cd1435d7f7d2392d3f5ddb4
9cc76b1b1dd0064ab6613cbca6ce93bc179db355
/ros_ws/build/learning_ros_dependencies/ros_controllers/forward_command_controller/catkin_generated/pkg.develspace.context.pc.py
f266145908cb42a7cfecbd570741b4d23adc94ee
[]
no_license
ABCaps35/learning_ros_ready_ws
1131c32b2ecadffa8dd186c9ebcfdba7284f30ad
1aa9c512d5006584e8bc84101a715e16a222a47d
refs/heads/main
2023-04-03T20:32:58.671255
2021-04-13T23:41:13
2021-04-13T23:41:13
357,715,306
1
0
null
null
null
null
UTF-8
Python
false
false
680
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/abcaps35/ros_ws_nogit/src/learning_ros_dependencies/ros_controllers/forward_command_controller/include".split(';') if "/home/abcaps35/ros_ws_nogit/src/learning_ros_dependencies/ros_controllers/fo...
[ "acapelli345@gmail.com" ]
acapelli345@gmail.com
d4a9edc322ae6103ff8dc71b6c3e81e50fd0518c
3ef70fe63acaa665e2b163f30f1abd0a592231c1
/stackoverflow/venv/lib/python3.6/site-packages/pyasn1_modules/rfc3279.py
428c0e8ec1ac69618ce292e7058c488234b1e5e7
[ "MIT" ]
permissive
wistbean/learn_python3_spider
14914b63691ac032955ba1adc29ad64976d80e15
40861791ec4ed3bbd14b07875af25cc740f76920
refs/heads/master
2023-08-16T05:42:27.208302
2023-03-30T17:03:58
2023-03-30T17:03:58
179,152,420
14,403
3,556
MIT
2022-05-20T14:08:34
2019-04-02T20:19:54
Python
UTF-8
Python
false
false
5,972
py
# # This file is part of pyasn1-modules. # # Copyright (c) 2017, Danielle Madeley <danielle@madeley.id.au> # License: http://snmplabs.com/pyasn1/license.html # # Derived from RFC 3279 # from pyasn1.type import namedtype from pyasn1.type import namedval from pyasn1.type import univ def _OID(*components): output = ...
[ "354142480@qq.com" ]
354142480@qq.com
d06f9ba4b9b60c0adf0d408ec443bd033110907b
fe6f6d11dde2a3205ae9758c7d4eb1f824b84102
/venv/lib/python2.7/site-packages/uritemplate/__init__.py
0e3ae5ae2d3c95f51c18744f7bc8043873f44daa
[ "MIT" ]
permissive
mutaihillary/mycalculator
ebf12a5ac90cb97c268b05606c675d64e7ccf8a6
55685dd7c968861f18ae0701129f5af2bc682d67
refs/heads/master
2023-01-10T14:56:11.780045
2016-09-20T12:30:21
2016-09-20T12:30:21
68,580,251
0
0
MIT
2022-12-26T20:15:21
2016-09-19T07:27:48
Python
UTF-8
Python
false
false
513
py
""" uritemplate =========== The URI templating library for humans. See http://uritemplate.rtfd.org/ for documentation :copyright: (c) 2013 Ian Cordasco :license: Modified BSD, see LICENSE for more details """ __title__ = 'uritemplate' __author__ = 'Ian Cordasco' __license__ = 'Modified BSD' __copyright__ = 'Copyr...
[ "mutaihillary@yahoo.com" ]
mutaihillary@yahoo.com
06e11bad319206a369d39a6702d2a936f06c8a79
1e528494a929deada984822438b3ab569762e6c6
/rx/linq/observable/skip.py
a8a6151c7010163b55cf77b7712eaf42ee500b71
[ "MIT" ]
permissive
Sprytile/Sprytile
a0233a00a243f263691921d7e1f6af05c5eb5442
6b68d0069aef5bfed6ab40d1d5a94a3382b41619
refs/heads/master
2022-07-10T06:54:01.003723
2020-09-26T07:25:35
2020-09-26T07:25:35
72,276,917
860
91
MIT
2022-07-07T23:37:19
2016-10-29T09:47:09
Python
UTF-8
Python
false
false
992
py
from rx import Observable, AnonymousObservable from rx.internal import ArgumentOutOfRangeException from rx.internal import extensionmethod @extensionmethod(Observable) def skip(self, count): """Bypasses a specified number of elements in an observable sequence and then returns the remaining elements. Keyw...
[ "jeiel.aranal@gmail.com" ]
jeiel.aranal@gmail.com
e3ae2bd33573e86f8503e40210275bafe6d97914
76dba08689db40edf2d01a98856fa2a20d98d679
/Python:从入门到实践/从入门到实践代码/第9章 类/9.5 PYthon标准库/Python标准库.py
42cbef4595673efe09e618c55790f7c3a66de24b
[]
no_license
pangfeiyo/PythonLearn
ce0747d75b53eb21acb6199acfe10934778420b2
b514b3d7baa62fa7b801d26ff49266f02cb9cbd2
refs/heads/master
2021-05-11T10:20:14.818774
2020-01-16T15:47:16
2020-01-16T15:47:16
118,096,858
0
0
null
null
null
null
UTF-8
Python
false
false
2,540
py
""" 9.5   Python 标准库 Python 标准库 是一组模块,安装的 Python 都包含它。你现在对类的工作原理已有大致的了解,可以开始使用其他程序员编写好的模块了。 可使用标准库中的任何函数和类,为此只需在程序开头包含一条简单的 import 语句。 下面来看模块 collections 中的一个类 —— OrderedDict 。 字典让你能够将信息关联起来,但它们不记录你添加键 — 值对的顺序。 要创建字典并记录其中的键 — 值对的添加顺序,可使用模块 collections 中的 OrderedDict类。 OrderedDict 实例的行为几乎与字典相同,区别只在于记录了键 — 值对的添加顺序。 我们再来...
[ "35551631+pangfeiyo@users.noreply.github.com" ]
35551631+pangfeiyo@users.noreply.github.com
0f3f1ace39debd5be7188b3a4f50215ca4cf9de7
90133a0edf6644ee0f546c558954eeda08fd477a
/Practice/Dalock/main.py
d8e659b0df14eaac8ce38d7a199f1825d9331af4
[]
no_license
zkffhtm6523/python-rpa
b500800392c8c4d1d68458c95f8af36b7742ed0d
0421594b718177c3bd12d46b9f727b11e257791d
refs/heads/master
2023-05-08T20:45:15.311284
2021-05-27T13:45:57
2021-05-27T13:45:57
317,135,687
0
1
null
null
null
null
UTF-8
Python
false
false
819
py
import socket if __name__ == '__main__': # 내부 Host internal_host = socket.gethostname() print(f'socket.gethostname() : {internal_host}') internal_ip = socket.gethostbyname(internal_host) print(f' 내부 IP : {internal_ip}') # 외부 Host external_host = socket.getfqdn() print(f'socket.getfqdn...
[ "zkffhtm6523@naver.com" ]
zkffhtm6523@naver.com
e2fe9ff7bc8656b2b343edcdf27328c2f4ab50ad
04d478124a6079f3e59c61e89c08bee89a15c4b2
/study_gdg/fashion_MNIST/mnist_reader.py
988e3b71b968a0c6b2102cca246864a58ab068a8
[]
no_license
onitonitonito/deep_MLDL
fb95ab9bc953953ab1633aaecd69ad99ed1d0361
ed058cf04f6b7f656738ee2a5c184e28f1a2050d
refs/heads/master
2021-05-26T07:58:34.271687
2020-01-21T13:35:31
2020-08-29T13:35:34
127,981,615
0
0
null
null
null
null
UTF-8
Python
false
false
1,366
py
""" # Fashion mnist -- sub # https://github.com/zalandoresearch/fashion-mnist #---------------------------------------------- # Fashion-MNIST is a dataset of Zalando's article images—consisting of a # training set of 60,000 examples and a test set of 10,000 examples. Each example # is a 28x28 grayscale image, associate...
[ "nitt0x0@gmail.com" ]
nitt0x0@gmail.com
f1a10bd0117fe112c53a925a2b1671df15fc4cf9
3da1eba82aa5944cd25ea89931839b4d61cbac53
/sitiolectura/biblioteca/urls.py
6c78a92947641541b2659771e3535e6f3d717497
[]
no_license
juanguiSO/ejemplo
bf58deb1c699c08110cb5335631081324917448c
b91393521150ebb6f5aa746e7ec7b60d17ab085d
refs/heads/master
2020-08-05T13:03:20.676286
2016-09-11T13:05:06
2016-09-11T13:05:06
67,929,963
0
0
null
null
null
null
UTF-8
Python
false
false
609
py
from django.conf.urls import include, url from . import views #Le decimos a Django que de este directorio importe el fichero views urlpatterns = [ url( r'^$' , views.books, name='index' ), # url( r'^books/$', views.books, name='all-books'), url(r'^books/(\d+)/$', views.detail_book, name='detail-book'), ...
[ "carlosandresmorenovelez@gmail.com" ]
carlosandresmorenovelez@gmail.com
663ee733ddb30df6f1d205b5773d3d567e91dd22
481689ad0ef6047a5d887520c14f3d5969086f30
/tests/test_systems.py
15876739a9440cc4dc7f5f3f1fc42e56bf34004a
[ "MIT" ]
permissive
pombredanne/features
1f8d31a61f64300bcfcc902f52bb2b10c969c867
29e5d0206842eab67b80141862e973422d1b5a97
refs/heads/master
2021-01-21T16:43:35.402679
2015-11-29T08:15:48
2015-11-29T08:15:48
29,732,622
0
0
null
2015-11-29T08:15:48
2015-01-23T13:00:53
Python
UTF-8
Python
false
false
1,689
py
# test_systems.py import unittest import pickle from features.systems import FeatureSystem from features.meta import Config class TestFeatureSystem(unittest.TestCase): @classmethod def setUpClass(cls): cls.fs = FeatureSystem('plural') config = Config.create(context=cls.fs._config.context) ...
[ "sebastian.bank@uni-leipzig.de" ]
sebastian.bank@uni-leipzig.de
4d9a7e2467c184ed2b958efc5a9ae1fae012c10f
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03439/s401132623.py
c82bd37e8a73ab6d527309d60b88074d7936caf8
[]
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
507
py
N = int(input()) M = 18 left = 0 right = N-1 print(left) l = input() if l != "Vacant": print(right) r = input() if r != "Vacant": notOK = True while notOK: middle = (right+left)//2 print(middle) s = input() if s == "Vacant": notOK = False break elif (middle-le...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
1e1a06541cdff207e58f442ee28ed45a1065d837
368be25e37bafa8cc795f7c9f34e4585e017091f
/.history/app_fav_books/models_20201115175545.py
20cd4acb8231a77296558a2b899d21b213776762
[]
no_license
steven-halla/fav_books_proj
ebcfbfda0e7f3cdc49d592c86c633b1d331da513
512005deb84ac906c9f24d4ab0939bd0db096716
refs/heads/master
2023-03-30T09:37:38.016063
2021-04-02T20:27:22
2021-04-02T20:27:22
354,125,658
0
0
null
null
null
null
UTF-8
Python
false
false
2,649
py
from django.db import models import re class UserManager(models.Manager): def user_registration_validator(self, post_data): errors = {} EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$') if len(post_data['first_name']) < 3: errors['first_name'] = "First ...
[ "69405488+steven-halla@users.noreply.github.com" ]
69405488+steven-halla@users.noreply.github.com
dca45b82f2148a9318267c74373694b778a4b77f
71b1ba776f00f18e215e44ae4eb777eb3a2553f4
/pygeodesy/clipy.py
126559673e3f56524b3c74569f7877aee39efbd5
[ "MIT" ]
permissive
itzmejawad/PyGeodesy
ee436e7adce1ae0315f4800c2cea43b06393c131
c92de037b60124ca2b2bbadb6f7f264f4e8e870a
refs/heads/master
2022-12-12T15:59:55.756980
2020-09-05T19:56:13
2020-09-05T19:56:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,102
py
# -*- coding: utf-8 -*- u'''Functions to I{clip} a path or polygon of C{LatLon} points against a rectangular box or clip region. @newfield example: Example, Examples ''' from pygeodesy.basics import EPS, len2 from pygeodesy.errors import _AssertionError, PointsError, _ValueError from pygeodesy.fmath impo...
[ "mrJean1@Gmail.com" ]
mrJean1@Gmail.com
bbff7a452b4a995844eafb07d9d581fdd8cda7f2
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_34/242.py
27ede54779661c38727aa2c482e2bdcf1efa50e2
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
991
py
def lookup(DICT, D, L, pattern): letters = [] pattern = pattern.strip() unclosed = False cand = [] for i in range(len(pattern)): if pattern[i].islower(): cand.append(pattern[i]) if pattern[i] == '(': unclosed = True if pattern[i] == ')': unclosed = False if not unclosed: letters.ap...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
c259396f10442ad22017f699dea659fd7e951a7a
fe9573bad2f6452ad3e2e64539361b8bc92c1030
/scapy_code/tcp_attack/syn_flood.py
8597c60cc943f718094fd1f0da157c8a925568a5
[]
no_license
OceanicSix/Python_program
e74c593e2e360ae22a52371af6514fcad0e8f41f
2716646ce02db00306b475bad97105b260b6cd75
refs/heads/master
2022-01-25T16:59:31.212507
2022-01-09T02:01:58
2022-01-09T02:01:58
149,686,276
1
2
null
null
null
null
UTF-8
Python
false
false
1,386
py
#!/usr/bin/python3 import argparse from os import system from sys import stdout from scapy.all import * from random import randint def get_args(): parser = argparse.ArgumentParser(description='SYN Flood Attack --- Press CTRL+C to stop the attack!') parser.add_argument('--ip', required=True) parser.add_arg...
[ "byan0007@student.monash.edu" ]
byan0007@student.monash.edu
f3aed31703ce0125f622d76c305f2159e724ef05
81d635211686b1bc87af5892bd9e0fb95cc2ddb8
/adwords api/googleads-python-lib-master/examples/dfp/v201511/team_service/create_teams.py
ac17b297f7513ef5a346ff76cbca2e437ff9feb5
[ "Apache-2.0" ]
permissive
analyticsbot/Python-Code---Part-2
de2f0581258b6c8b8808b4ef2884fe7e323876f0
12bdcfdef4472bcedc77ae61707c25a4a09cba8a
refs/heads/master
2021-06-04T05:10:33.185766
2016-08-31T13:45:45
2016-08-31T13:45:45
66,679,512
3
0
null
null
null
null
UTF-8
Python
false
false
1,762
py
#!/usr/bin/python # # Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
[ "ravi.shankar1788@gmail.com" ]
ravi.shankar1788@gmail.com
9d4a89c6906329ad61773ec2f399b57c18f80529
5e3ebc83bc3fe2f85c34563689b82b1fc8b93a04
/google/ads/googleads/v5/services/services/customer_extension_setting_service/transports/base.py
3437e534bf1d6fa2fa9edc948f406d628ffefbdf
[ "Apache-2.0" ]
permissive
pdsing/google-ads-python
0ce70227cd6bb13a25cd13de0ca05c2636279ecd
ee2c059498d5679a0d1d9011f3795324439fad7c
refs/heads/master
2023-05-04T18:39:57.412453
2021-05-21T16:38:17
2021-05-21T16:38:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,371
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...
[ "noreply@github.com" ]
pdsing.noreply@github.com
01a07ecc4a59e306c7c1c210b43d3aff8e02e9cc
53779837acc8394ed3afe9047cf6218ecdbe2530
/CRYPTO/Lab1/q5.py
6df08e6678e6ba096e98f15af291cb9c5cd87355
[]
no_license
pritamksahoo/III-IV-YEAR-Assignments
60efaa2d26352b7f5d60e042bd778c97f6313bc8
5815941ca1b56835729e86ed50d6da540eb5acf0
refs/heads/master
2022-07-28T21:59:58.412826
2020-05-22T07:10:33
2020-05-22T07:10:33
205,682,268
1
0
null
null
null
null
UTF-8
Python
false
false
287
py
import gmpy2 as mp if __name__ == '__main__': n = mp.mpz(input("Value of n : "), 10) len = mp.mpz(input("Bit length : "), 10) state = mp.random_state() count = n while count != 0: rand = mp.mpz_urandomb(state, len) if mp.is_prime(rand): print(rand) count = count - 1
[ "pritam.ndp@gmail.com" ]
pritam.ndp@gmail.com
b1a06caa942bdbc3773ca6d988aca94b25d39135
cb33113c4063867fa41cb74943d0a056a383b6a1
/1.List1(실습)/venv/Scripts/pip3.6-script.py
85ea28d1d2c29f62d217dccd44c958738c4b0c50
[]
no_license
manuck/Algorithm
9c6280095da6b88473460da52d07fb23ee6c3f9f
4c15ff42f39224eb9b29728544c92dce9341fdfa
refs/heads/master
2020-04-18T02:06:53.437576
2019-06-26T08:59:16
2019-06-26T08:59:16
167,148,058
0
0
null
null
null
null
UHC
Python
false
false
435
py
#!C:\Users\student\Desktop\알고리즘\1.List1(실습)\venv\Scripts\python.exe -x # 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)?$', '', s...
[ "snc9000@naver.com" ]
snc9000@naver.com
00c1157dad79e0cb59ccfb0435db95c2354b893d
a03fcae01292ade6b9498aeebaa89409e1295199
/lstm_eg/lstm_minist_classifier/multi_lstm_attention_minist_cls_wrong.py
03032715eaa797400b1cb0246201ce6535595a59
[]
no_license
TSLNIHAOGIT/tensorflow_work
ead268f6cef55e8202c62d746796d0f12d5379f2
03a6fa9ad24932f66ef1dd1dd2b4b3a090998b19
refs/heads/master
2020-04-02T20:06:35.287793
2018-12-12T05:26:46
2018-12-12T05:26:46
154,758,317
1
0
null
null
null
null
UTF-8
Python
false
false
10,419
py
# coding:utf-8 ''' seq2seq :一般输入为:x1 x2 ...xi ;y1 y2 yj即输入输出都是序列但是一张图片是序列,标签却只是一个数,当然也可以使用one-hot作为序列 ''' import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data import ssl ssl._create_default_https_context = ssl._create_unverified_context tf.set_random_seed(1) # set random seed # 导入数据 m...
[ "2509072638@qq.com" ]
2509072638@qq.com
6a1e763087625254e7009ffa832cd3d8d77df507
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02889/s765707907.py
a61b5ce874d587936e86eb3c83261143301d451d
[]
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
2,949
py
class Graph: class Edge: def __init__(self, to, cost): """ :param to: 終点ノード :param cost: 辺の重み """ self.to, self.cost = to, cost def __init__(self, n, directed=False, decrement=True, edges=[]): self.n = n self.directed = direct...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
2234700e05f94210c14330fd6778bca568ebbafa
396f93d8e73c419ef82a94174815a2cecbb8334b
/.history/tester2_20200322005457.py
b1d44825bdd4b2af751f0b503fd1797427e1b413
[]
no_license
mirfarzam/ArtificialIntelligence-HeuristicAlgorithm-TabuSearch
8c73d9448b916009c9431526864a4441fdeb682a
90b2dca920c85cddd7c1b3335344ac7b10a9b061
refs/heads/master
2021-03-26T21:16:42.561068
2020-04-17T21:44:26
2020-04-17T21:44:26
247,750,502
0
0
null
null
null
null
UTF-8
Python
false
false
2,233
py
import os import subprocess import re from datetime import datetime import time from statistics import mean numberOfTests = 1000 tabuIteration = '1000' tabuDuration = '10' numberOfCities = '50' final_solution = [] list_coverage = [] local_minimum = [] print(f"\n\nTest for Tabu Search with this config: \n\tIterati...
[ "farzam.mirmoeini@gmail.com" ]
farzam.mirmoeini@gmail.com
f4523e5375532c7630e893f2dde407eb0d3db002
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_229/ch169_2020_06_18_01_15_53_022551.py
978184b449c5afaafd9368deb1e8aa431ca64cd7
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
486
py
def login_disponivel(login, lista_logins): if login in lista_logins: for i in range(1, len(lista_logins)): if '{0}{1}'.format(login, i) not in lista_logins: return '{0}{1}'.format(login, i) else: return login texto = '' lista = [] while texto != 'fim': texto = s...
[ "you@example.com" ]
you@example.com
10586ec4917074f43936711b6514c799dcf80a76
155ab3ed394669fa552e6bcb47ad9ae62519c028
/Arcade/Python/31 - constructShell.py
5876e484dafb8a68eb5a08492b2c7bc6b85f4ad9
[]
no_license
rbiegelmeyer/CodeFights-Python
e3336b9249c55b0bd44ca81917ee38557ab06adc
e0e63f14677db9741a0531fdc8aa6e44d2155f33
refs/heads/master
2021-09-28T22:05:07.442470
2018-11-20T21:10:45
2018-11-20T21:10:45
108,603,059
0
0
null
null
null
null
UTF-8
Python
false
false
104
py
def constructShell(n): return [[0] * (i+1) for i in range(n)] + [[0] * (n-i-1) for i in range(n-1)]
[ "robertobiegel@gmail.com" ]
robertobiegel@gmail.com
eb84136beddb96eb43bfec110576a24dda71d87b
8bde38c5b2bf42e807fc811ef5cc00ca45503aea
/app/urls.py
b2010b4170c8c28ce86410700290af11e0588b2c
[ "MIT" ]
permissive
tobyqin/pyindex
e4193179782203ebff0a2ff7df8a08a80bc802e9
1796266445aa94d4a482acdbe92d8c7318681357
refs/heads/master
2021-06-16T02:30:58.141112
2021-06-14T05:26:10
2021-06-14T05:26:10
186,834,354
0
0
MIT
2021-06-14T05:26:51
2019-05-15T13:40:16
CSS
UTF-8
Python
false
false
790
py
""" URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based views ...
[ "toby.qin@live.com" ]
toby.qin@live.com
88b4646eaef8859a6503ad93541553460f58f78f
5d3a5c671d8fca5405acfc556ec946f58835d3fa
/basics/decisions/simple_decisions/if_else.py
6fbb36f6fe1d665f109bf05ae7d30487096e9e2e
[]
no_license
4WHITT04/COM411
bd69b967d5f23509f1d90be02953a95c7d2a5af1
3d4169697903e3226abaf2073ba416c9858273e4
refs/heads/master
2023-02-02T13:07:05.517572
2020-12-18T15:41:34
2020-12-18T15:41:34
302,366,999
0
0
null
null
null
null
UTF-8
Python
false
false
467
py
#code to show if else statments. print("I'm bored and want to do something, what should i do?") task = input() #if statement for calculate input if (task == "Calculate"): print("Performing calculations!") print(".") print(".") print(".") print(".") print("Calculations complete!") #else statement for when ...
[ "replituser@example.com" ]
replituser@example.com
186257d7ab4025c7a470b9101c38f621f44b55d1
6390a7f030cc6b2ff61237e41360af2d270e1efb
/tests/numpy/ndarray.py
cf09b4c493cfe0c0a6660850d15c95d3ccad4715
[ "MIT" ]
permissive
davidkellis/py2rb
b999ca4c3b9316d19ac42c6d57fbbc158ee35700
4518a1549cfacc25a1ea3c736bca3de15a123878
refs/heads/master
2023-06-22T05:32:16.209823
2021-07-05T01:55:53
2021-07-05T01:55:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
import numpy as np a = np.array([1,2,3,4,5], dtype='int8') if isinstance(a, np.ndarray): print('OK') else: print('NG')
[ "naitoh@gmail.com" ]
naitoh@gmail.com
5d05f58c59e8d2c3980e94bb20547fe2ef703a6c
e0d776ec6d324e8630d463a1be81f81ccd3a51a9
/kcse/models.py
59461673945c264dd5a028d590d29ca2ffa3c2cd
[ "MIT" ]
permissive
moshthepitt/shulezote
9b3c8c6d5c53e2b497977fd6900e500e09315c41
e903a208948ab5294183e2a8c2dac9360a184654
refs/heads/master
2021-07-03T11:17:19.274106
2019-08-04T09:49:59
2019-08-04T09:49:59
32,628,463
2
1
MIT
2021-06-10T19:47:39
2015-03-21T10:35:34
Python
UTF-8
Python
false
false
1,631
py
from django.db import models from django.utils.translation import ugettext_lazy as _ from schools.models import School class Result(models.Model): """ This model stores examination results for KCSE (Kenya Certificate of Secondary Education) exams """ # schoo level MALE = '1' FEMALE = '2' ...
[ "kelvin@jayanoris.com" ]
kelvin@jayanoris.com
57a2b283482afb142ed8825464785b1ae4d4c6da
6c37d1d2437a08e43b13d621d4a8da4da7135b3a
/yt_dlp/extractor/weyyak.py
ef12be871fc701d5ec96a4eda3883c286583baac
[ "Unlicense", "GPL-2.0-or-later", "MPL-2.0", "BSD-3-Clause", "GPL-3.0-or-later", "LGPL-2.1-only", "BSD-2-Clause", "MIT" ]
permissive
yt-dlp/yt-dlp
be040bde10cc40258c879c75ab30215686352824
d3d81cc98f554d0adb87d24bfd6fabaaa803944d
refs/heads/master
2023-09-05T21:15:21.050538
2023-09-05T20:35:23
2023-09-05T20:35:23
307,260,205
52,742
5,376
Unlicense
2023-09-14T05:22:08
2020-10-26T04:22:55
Python
UTF-8
Python
false
false
3,497
py
from .common import InfoExtractor from ..utils import ( float_or_none, int_or_none, parse_age_limit, traverse_obj, unified_timestamp, url_or_none, ) class WeyyakIE(InfoExtractor): _VALID_URL = r'https?://weyyak\.com/(?P<lang>\w+)/(?:player/)?(?P<type>episode|movie)/(?P<id>\d+)' _TESTS ...
[ "noreply@github.com" ]
yt-dlp.noreply@github.com
8fcf8cf4c17cf0c25c21321f456bbe26ee5b7d1c
3c000380cbb7e8deb6abf9c6f3e29e8e89784830
/venv/Lib/site-packages/cobra/modelimpl/comm/rtpol.py
fd845ddd4c97f1a9bfbf4d27bc7d32d68f015c6f
[]
no_license
bkhoward/aciDOM
91b0406f00da7aac413a81c8db2129b4bfc5497b
f2674456ecb19cf7299ef0c5a0887560b8b315d0
refs/heads/master
2023-03-27T23:37:02.836904
2021-03-26T22:07:54
2021-03-26T22:07:54
351,855,399
0
0
null
null
null
null
UTF-8
Python
false
false
4,589
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "bkhoward@live.com" ]
bkhoward@live.com
e5260abb414d69275841e0551f60c4cdd79ca64a
30e58b930c31526a1e226a928bc77e23f232080e
/topsim/maker.py
697b6f0d3dd90a9ac30e251d86a9979146d4f14c
[]
no_license
bbw7561135/anisotropy
c8688f9d705234c6a90f607acb3e8cc28ea5be28
a21f85788c16d8aa14fc5934f476def4c8954f34
refs/heads/master
2021-06-01T05:35:48.727845
2016-05-13T00:27:37
2016-05-13T00:27:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,184
py
#!/usr/bin/env python import glob, os, re, sys, argparse import simFunctions_IT as simFunctions import myGlobals as my def cleanBadRuns(config, fileList): badRunFile = 'badFiles.npy' badFiles = np.load(badRunFile) badFiles = badFiles.item() if config not in badFiles.keys(): return fileList ...
[ "jrbourbeau@gmail.com" ]
jrbourbeau@gmail.com
4685a5817a683284b097fcec3d24dfa98cd1e26f
99dcb18a9e3ea367272f740b8cbf3c34285a0c08
/samples/generated_samples/aiplatform_generated_aiplatform_v1beta1_job_service_list_hyperparameter_tuning_jobs_async.py
bbee13435b577218546c45aa5ab2497afeb4aed2
[ "Apache-2.0" ]
permissive
googleapis/python-aiplatform
926a4873f35dbea15b2fd86c0e16b5e6556d803e
76b95b92c1d3b87c72d754d8c02b1bca652b9a27
refs/heads/main
2023-08-19T23:49:02.180075
2023-08-19T13:25:59
2023-08-19T13:27:27
298,017,988
418
240
Apache-2.0
2023-09-14T21:08:33
2020-09-23T15:43:39
Python
UTF-8
Python
false
false
1,653
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" ]
googleapis.noreply@github.com
cb4ee984a40ab5eebf3fd4e19e1161a64db5b43a
d1592126e8d9e42808681db229ea989f8b7dafbb
/Exam-Preparation/Python-Advanced-Retake-Exam-16-Dec-2020/Solutions/problem_3.py
87cc74603f73eea1dc32290f0fdd1715cc9e8175
[]
no_license
momchilantonov/SoftUni-Python-Advanced-January-2021
d2de4839042ae3a9e6446d6b95ccefbef6706598
6fb7e0dd332f4c9ee2bedabb94f18453e69a6c14
refs/heads/main
2023-03-12T01:45:43.994353
2021-02-17T13:43:26
2021-02-17T13:43:26
328,019,789
7
1
null
null
null
null
UTF-8
Python
false
false
212
py
def get_magic_triangle(num): result = [] x = [1] y = [0] for _ in range(num): result.append(x) x = [i+j for i, j in zip(x+y, y+x)] return result print(get_magic_triangle(5))
[ "eng.antonov@gmail.com" ]
eng.antonov@gmail.com
1340efd90e64f10528e5a4d2b38149dbcaca762d
49d073b9a1941f8469aa53321aed56412ccae978
/setup.py
5e76813cab2388e19cb1cff4dc9a595ca259987d
[ "MIT" ]
permissive
ErykB2000/picotui
595f786a6360696e686ab012c977bff4c76cab6b
69adb8b7aa9181da62f941b6960e70a89cb27025
refs/heads/master
2021-05-03T15:26:38.059342
2016-09-03T23:49:50
2016-09-03T23:49:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
498
py
import sys from setuptools import setup if sys.version_info < (3, 0): sys.stderr.write("Sorry, Python < 3.0 is not supported\n") sys.exit(1) setup(name='picotui', version='0.8.1', description="""A simple text user interface (TUI) library.""", long_description=open('README.rst').read(), ...
[ "pfalcon@users.sourceforge.net" ]
pfalcon@users.sourceforge.net
42d8b81b680841fe977ca81410406965b3aa0cef
7f6371f1ab176f9ea0b492b257cc9cd6b98591f7
/age_time_immunity_prop_viz.py
1ff648c42447780c34f2138562c6cd5def7ea58d
[ "MIT" ]
permissive
eclee25/flu-SDI-simulations-age
5a26098aec227366439473e84f0ab1c871119430
055ef42c8d3c760018836f82251948ad86917a3c
refs/heads/master
2020-05-31T13:57:29.935956
2014-07-17T21:28:50
2014-07-17T21:28:50
12,041,378
1
0
null
null
null
null
UTF-8
Python
false
false
7,042
py
#!/usr/bin/python ############################################## ###Python template ###Author: Elizabeth Lee ###Date: 7/16/14 ###Function: ##### Visualize results of time-based epidemic simulations where pre-existing immunity exists and is heterogeneous within the adult population. Vary single average value of immunit...
[ "eclee25@gmail.com" ]
eclee25@gmail.com
d52fcc288423506b5fac2df23d18d4e9f496035a
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02898/s415783263.py
a47022e60354b8e5ccc2604353cd3e0c780673cb
[]
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
322
py
from sys import stdin, setrecursionlimit def main(): input = stdin.buffer.readline n, k = map(int, input().split()) h = list(map(int, input().split())) ans = 0 for hi in h: if hi >= k: ans += 1 print(ans) if __name__ == "__main__": setrecursionlimit(10000) main(...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
56960525bf438758be22018396e2ab6bb45d2bff
625574700973e0d52c5435c0fa60007a0a8cc0a1
/contest/abc178/f.py
c90d67adc58efc3851edf5a65fd41ceaf47d51bc
[]
no_license
konchanksu/AtCoder-practice
b1c63fb6f6da8a409617b23438edf5469773049d
46a7d9b9b33d4fbbcffeb6bb90d4bfca8d5dfa2a
refs/heads/main
2023-08-24T17:35:30.193120
2021-09-29T05:38:40
2021-09-29T05:38:40
311,109,139
0
0
null
null
null
null
UTF-8
Python
false
false
309
py
from collections import Counter N = int(input()) A = list(map(int, input().split())) B = list(map(int, input().split())) tmpA = Counter(A) tmpB = Counter(B) ans = True for v, w in tmpA.items(): if w + tmpB[v] > N: ans = False break if not ans: print('No') else: print('Yes')
[ "nyankomi59@gmail.com" ]
nyankomi59@gmail.com
61022cd42f8db415bee3d5c28daeb862d6ee2521
3ac0a169aa2a123e164f7434281bc9dd6373d341
/toHex.py
0a1e46acf6a0fc86cbaa3c08a3412a03549a2038
[]
no_license
sfeng77/myleetcode
02a028b5ca5a0354e99b8fb758883902a768f410
a2841fdb624548fdc6ef430e23ca46f3300e0558
refs/heads/master
2021-01-23T02:06:37.569936
2017-04-21T20:31:06
2017-04-21T20:31:06
85,967,955
1
0
null
null
null
null
UTF-8
Python
false
false
1,167
py
# Given an integer, write an algorithm to convert it to hexadecimal. For negative integer, two’s complement method is used. # # Note: # # All letters in hexadecimal (a-f) must be in lowercase. # The hexadecimal string must not contain extra leading 0s. If the number is zero, it is represented by a single zero ...
[ "sfeng77@gmail.com" ]
sfeng77@gmail.com
59d936db8e3c569814152b117049911f38efcddb
386055fc38aad3e317898658b66d15d64b486d42
/python/seldon/fileutil.py
4b895372b7bd9a40de467053da9a6df3ee897e52
[ "Apache-2.0" ]
permissive
BenjamWhite/seldon-server
af5d329529a9082f2f9b0810dd043be2202aeecd
2eb47885fdbeb62980a0fc4a0aca1a65f7f0f75d
refs/heads/master
2021-01-24T20:33:14.927887
2015-12-10T15:23:29
2015-12-10T15:23:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,257
py
__authour__ = 'Clive Cox' import sys import zlib import boto from boto.s3.connection import S3Connection from boto.s3.key import Key import glob from shutil import copyfile import os import math from filechunkio import FileChunkIO import logging logger = logging.getLogger('seldon.fileutil') class FileUtil: """uti...
[ "cc@seldon.io" ]
cc@seldon.io
ed7ecf56166831a559b67f3bf468d48f5613f8f5
39b0d9c6df77671f540c619aff170441f953202a
/PYTHON LIBRARY/SUB_9/asyncio_future_callback.py
7d94868eba6af13945e8fc16e3a0e949e18e9d1b
[]
no_license
yeboahd24/Python201
e7d65333f343d9978efff6bf86ce0447d3a40d70
484e66a52d4e706b8478473347732e23998c93c5
refs/heads/main
2023-02-06T10:24:25.429718
2020-12-26T01:08:04
2020-12-26T01:08:04
306,487,550
2
0
null
null
null
null
UTF-8
Python
false
false
622
py
import asyncio import functools def callback(future, n): print('{}: future done: {}'.format(n, future.result())) async def register_callbacks(all_done): print('registering callbacks on future') all_done.add_done_callback(functools.partial(callback, n=1)) all_done.add_done_callback(functools.partial(callb...
[ "noreply@github.com" ]
yeboahd24.noreply@github.com
a4ba285fbb1e0244297e955d3c73b90d394ab317
8e24e8bba2dd476f9fe612226d24891ef81429b7
/geeksforgeeks/algorithm/sort/merge-sort.py
7db85c832113b4739fd71f755d6713dcabceecf4
[]
no_license
qmnguyenw/python_py4e
fb56c6dc91c49149031a11ca52c9037dc80d5dcf
84f37412bd43a3b357a17df9ff8811eba16bba6e
refs/heads/master
2023-06-01T07:58:13.996965
2021-06-15T08:39:26
2021-06-15T08:39:26
349,059,725
1
1
null
null
null
null
UTF-8
Python
false
false
1,063
py
# Python program for implementation of MergeSort def mergeSort(arr): if len(arr) > 1: # Finding the mid of the array mid = len(arr)//2 # Dividing the array elements L = arr[:mid] # into 2 halves R = arr[mid:] # Sorting the first half mergeSort(L) # Sorting the second half merg...
[ "qmnguyenw@gmail.com" ]
qmnguyenw@gmail.com
f341268a857cc25098c7e65deba98fb35b6c5084
76938f270e6165514162856b2ed33c78e3c3bcb5
/lib/coginvasion/minigame/DistributedToonFPSGame.py
9d6ce1347b412696c48df2485483e22eeb227dde
[]
no_license
coginvasion/src
9a5ec682845cc4c9c013fcc35e9b379bd4360b6c
2d7fcdb0cd073050250cb51292ee48300a9fe19f
refs/heads/master
2021-01-19T06:50:11.786112
2015-11-08T12:28:52
2015-11-08T12:28:52
61,545,543
1
2
null
null
null
null
UTF-8
Python
false
false
3,029
py
# Embedded file name: lib.coginvasion.minigame.DistributedToonFPSGame from panda3d.core import Vec4 from direct.interval.IntervalGlobal import Sequence, Func, LerpScaleInterval, LerpColorScaleInterval, Parallel from direct.directnotify.DirectNotifyGlobal import directNotify from direct.distributed.ClockDelta import glo...
[ "ttarchive@yandex.com" ]
ttarchive@yandex.com
3bb83df01c574680cbbe68d57941cba835bb3428
e52c7431f1b14444de52fd943a39fcaabeca21e4
/torch_geometric/transforms/polar.py
cca1f8f8ff80e22ecd21664e60d41d34eaa13ae7
[]
no_license
jwyang/pytorch_geometric
72d3a62f6991d90edb3b8da6445e18421f2174a8
31043b182248852768317a4185384390e95217d5
refs/heads/master
2021-08-30T16:16:03.613724
2017-12-18T15:52:08
2017-12-18T15:52:08
114,831,322
0
1
null
2017-12-20T02:02:54
2017-12-20T02:02:53
null
UTF-8
Python
false
false
936
py
from math import pi as PI import torch from .base import BaseAdj from ..sparse import SparseTensor class PolarAdj(BaseAdj): """Converts a set of adjacency matrices :math:`A \in \mathbb{R}^{N x N}` saved in a dataset :obj:`Data` object to globally normalized polar pseudo-coordinates :math:`A \in [0, 1]^{...
[ "matthias.fey@tu-dortmund.de" ]
matthias.fey@tu-dortmund.de
eb8db127c5c2bda503887c8f64f0d515f08d74c8
1559879496d7220e89f51843997f98b732f0526d
/venv/Lib/site-packages/zope/publisher/interfaces/ftp.py
f2e64172aafba3b7046e5bafccd347b310e75b8a
[]
no_license
357112130/Test
4d0e0a4822c5a4062d768d699e61b3d504090a2e
a58ff4e9811cab77c9a5117d9a70ce1e4582c515
refs/heads/master
2022-12-10T15:08:24.607252
2019-04-21T14:20:58
2019-04-21T14:20:58
168,373,835
0
0
null
2022-12-08T04:57:02
2019-01-30T16:16:41
Python
UTF-8
Python
false
false
1,360
py
############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # TH...
[ "aptx_48691" ]
aptx_48691
6a854205afeb0a1583ce2fb319a9d6214d51f3e0
4577d8169613b1620d70e3c2f50b6f36e6c46993
/students/1665526/homework02/program02.py
20db5aaf9337dd56bf6bc3c88512db75232664b6
[]
no_license
Fondamenti18/fondamenti-di-programmazione
cbaf31810a17b5bd2afaa430c4bf85d05b597bf0
031ec9761acb1a425fcc4a18b07884b45154516b
refs/heads/master
2020-03-24T03:25:58.222060
2018-08-01T17:52:06
2018-08-01T17:52:06
142,419,241
0
0
null
null
null
null
UTF-8
Python
false
false
4,651
py
''' Un file di compiti contiene informazioni su un insieme di compiti da eseguire. Esistono due tipologie di compiti: - compiti che possono essere eseguiti indipendentemente dagli altri. - compiti da svolgere solo al termine di un compito preliminare. I compiti del primo tipo sono codificati nel file mediante una ...
[ "a.sterbini@gmail.com" ]
a.sterbini@gmail.com
02ada7d5094526650f15854a9ad0d60f4d471dfa
55ca3cb5c75b6480b84854baaa5ea744696cdf6c
/runtests.py
f8303190caebc8029f61eee8ef7daeecd53172fb
[ "MIT" ]
permissive
avni/pinax-submissions
4d7686e4eb4abe33166ef286430954437c53295b
f63abad89eb42a3c34195a4f849cde057d683d05
refs/heads/master
2021-01-15T07:54:18.678265
2015-12-17T18:40:13
2015-12-17T18:40:13
48,191,649
0
0
null
2015-12-17T18:36:43
2015-12-17T18:36:42
null
UTF-8
Python
false
false
1,274
py
#!/usr/bin/env python import os import sys import django from django.conf import settings DEFAULT_SETTINGS = dict( INSTALLED_APPS=[ "django.contrib.auth", "django.contrib.contenttypes", "django.contrib.sites", "pinax.submissions", "pinax.submissions.tests" ], MIDD...
[ "paltman@gmail.com" ]
paltman@gmail.com
5a9694514d5f266341d9f19b4e850d58d3f85b16
d1803813c86e7a11e885a6af61d4aee838109e8c
/tensorflow_gan/examples/dme_cyclegan/train.py
489e894db7c5e1ceb8f8bba1f46509ce6fdd1864
[ "Apache-2.0" ]
permissive
tensorflow/gan
c2f8d5b9725bd1c5ac367093257b4155bb663551
9fcb4acee7e82918152ad52babf6c6097cf0d1e6
refs/heads/master
2023-07-04T16:23:09.138175
2023-06-23T19:28:04
2023-06-23T19:29:07
184,105,548
942
265
Apache-2.0
2021-09-27T02:48:43
2019-04-29T16:24:10
Jupyter Notebook
UTF-8
Python
false
false
2,897
py
# coding=utf-8 # Copyright 2023 The TensorFlow GAN Authors. # # 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 applicabl...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
6d660af28a85795d2752863f2e40a24c896990fa
78db5bc74181173f2d00bea409997a64b4682adf
/venv/lib/python3.9/site-packages/webexteamssdk/models/immutable.py
c789cf4c33a72cfc702e36531dfa95269c7fdff4
[ "MIT" ]
permissive
CiscoDevNet/meraki-code
dfe680f077ebd053a3b663f1434f648f5a91b541
d031aab82e3fa5ce7cf57b257fef8c9a4c63d71e
refs/heads/master
2023-05-28T18:43:28.848983
2022-04-11T19:45:19
2022-04-11T19:45:19
188,288,487
67
60
MIT
2023-05-23T00:51:58
2019-05-23T18:43:15
Python
UTF-8
Python
false
false
10,768
py
# -*- coding: utf-8 -*- """Model Webex Teams JSON objects as native Python objects. Classes: ImmutableData: Models Webex Teams JSON objects as native Python objects. The ImmutableData class models any JSON object passed to it as a string or Python dictionary as a native Python object; providing attribute access u...
[ "agentle@cisco.com" ]
agentle@cisco.com
6fe7f04db3b325b522fa67464617fcbc6a786750
1097ed333a4000634e68a590ee6ffc6129ae61e3
/tensorflow/static_graph.py
35787e5b8de1bfde5c0bb004e4a647a102cdf429
[ "MIT" ]
permissive
AutuanLiu/Code-Storm2019
1bbe890c7ca0d033c32348173bfebba612623a90
8efc7c5475fd888f7d86c3b08a3c1c9e55c1ac30
refs/heads/master
2020-04-23T07:03:08.975232
2019-10-24T08:56:26
2019-10-24T08:56:26
170,995,032
1
0
null
null
null
null
UTF-8
Python
false
false
228
py
# 使用静态图模式 import tensorflow as tf a = tf.constant(2) b = tf.constant(3) add = tf.add(a, b) mul = tf.multiply(a, b) with tf.Session() as sess: x = sess.run(add) y = sess.run(mul) print(f'x {x} y {y}')
[ "autuanliu@163.com" ]
autuanliu@163.com
7f6b699d8743c779b458413207a651ca521ba47d
0a788f8e6c1dc5fbc98d6ed200f976c71695d53b
/backend/users/migrations/0002_auto_20200815_0849.py
cc7adba04c16eb987bf6e4da15cfba1b0413abd3
[]
no_license
crowdbotics-apps/branded-by-tae-19573
848bbaccef3dae50fd6659d73fcc41417f24a112
329645856b7d114bd7450b9f0e8997f02ad591d9
refs/heads/master
2022-12-07T16:37:08.781564
2020-08-15T08:49:44
2020-08-15T08:49:44
287,710,100
0
0
null
null
null
null
UTF-8
Python
false
false
394
py
# Generated by Django 2.2.15 on 2020-08-15 08:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AlterField( model_name='user', name='name', field=...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
644deb004ffee5683b4e10c8797331fb9eec2f04
535eb0c6803fb4820ed32ceb601e6633c3890cc1
/opps/goalserve/xml2dict.py
5ace1322b16a0f723838c3a592140517438e189f
[]
no_license
jeanmask/opps-goalserve
bb05310de62931d26f8b74e739ce58744a4958b9
b02bc2bfffd2ee9326a8e28f9163d6dbba2e4e23
refs/heads/master
2020-12-29T01:53:44.420309
2015-06-10T20:29:40
2015-06-10T20:29:40
37,202,870
0
0
null
2015-06-10T14:42:24
2015-06-10T14:42:24
null
UTF-8
Python
false
false
9,781
py
#!/usr/bin/env python "Makes working with XML feel like you are working with JSON" from xml.parsers import expat from xml.sax.saxutils import XMLGenerator from xml.sax.xmlreader import AttributesImpl try: # pragma no cover from cStringIO import StringIO # lint:ok except ImportError: # pragma no cover try: ...
[ "rochacbruno@gmail.com" ]
rochacbruno@gmail.com
d47e6b69ff2c2dd70716f2ffc5691bf8a653e7c6
e83d3e1e0d26a5509816c6d452d3c637052c583a
/exam_prep/shopping_list.py
529c9d0483cdcd38ce3a85169626557e55dbb457
[]
no_license
Nikoletazl/Fundamentals-Python
55670093d58e4b90e6e148b28e01f3e6d6ffccdb
6f4c1516d338f37bee3cadf27a1f883015e1e9a8
refs/heads/main
2023-08-29T12:06:39.231991
2021-10-08T13:37:04
2021-10-08T13:37:04
414,998,101
1
0
null
null
null
null
UTF-8
Python
false
false
871
py
groceries = input().split("!") data = input() while not data == "Go shopping!": command_data = data.split() if command_data[0] == "Urgent": item = command_data[1] if item not in groceries: groceries.insert(0, item) elif command_data[0] == "Unnecessary": item ...
[ "noreply@github.com" ]
Nikoletazl.noreply@github.com
3882776f4906fbf32f15e61f43bfbc1fb1f01f65
1a014c4cc5e091fc210c435ac5b918f2733785a4
/utils/img_trans.py
96972ad1a57bec9f011bf68dce8a6bdec56bfc10
[ "Apache-2.0" ]
permissive
GiggleLiu/neuralCT
18e6abbd34e29bc26a0e9b4d45a02d99071a41d8
a6aa4088541975f6a742a28f39f0164be05ee002
refs/heads/master
2020-08-04T21:40:38.894775
2019-10-02T09:05:18
2019-10-02T09:05:18
212,287,325
1
0
Apache-2.0
2019-10-02T08:13:39
2019-10-02T08:13:38
null
UTF-8
Python
false
false
221
py
import numpy as np import torch def logit(x, alpha=1E-6): y = alpha + (1.-2*alpha)*x return np.log(y) - np.log(1. - y) def logit_back(x, alpha=1E-6): y = torch.sigmoid(x) return (y- alpha)/(1.-2*alpha)
[ "li012589li@outlook.com" ]
li012589li@outlook.com
de591ef9cb9c26ecfa6a2b74d3fe31f8efb1d303
9ad39ce6c0e42c249b3cdee8553af375485c4048
/lib/chatbot/reaction/reactionBase.py
71243f8714508f9df79644d34966edf9a12abc76
[]
no_license
bevzzz/bouncer
8664a8e6b1ee4483a5fed5d966ff6427fd0b3c7a
83da53109e05051adc5c2341e4adac30c1796bf0
refs/heads/main
2023-07-06T20:48:07.106827
2021-06-16T20:30:23
2021-06-16T20:30:23
332,297,556
0
1
null
null
null
null
UTF-8
Python
false
false
1,732
py
import re from abc import ABCMeta, abstractmethod from lib.chatbot.telegramObject import TextMessage, InlineKeyboardButton, InlineKeyboardMarkup class ReactionBase(metaclass=ABCMeta): def __init__(self, message, me): self.message = message self.me = me self.user = message.get_author() ...
[ "--global" ]
--global
f8f009135bf54a683b0ed88fb58437def0cdbcad
3783e1a7ebb98c6543944bed964f8d884c34463f
/ruchatbot/bot/gb_base_detector.py
2886d1aaa5cbdcf2d140a35ee3147806ae6ffabc
[]
no_license
chefe996/chatbot
79227d300b25e9b57f7a107aa3f2e8596e4bf4fa
8cbee59dd72ef992126b8e171f228ba32b6bca0a
refs/heads/master
2022-04-12T10:54:06.545466
2020-04-04T12:57:59
2020-04-04T12:57:59
256,579,641
1
0
null
2020-04-17T18:25:44
2020-04-17T18:25:43
null
UTF-8
Python
false
false
8,747
py
# -*- coding: utf-8 -*- """ Базовый класс для реализации вариантов детектора релевантности и синонимичности, использующих градиентный бустинг и разреженные матрицы шинглов. """ from scipy.sparse import lil_matrix import logging class GB_BaseDetector(object): def __init__(self): super(GB_BaseDetector, sel...
[ "inkoziev@gmail.com" ]
inkoziev@gmail.com
6a8c8359bfefaee505dcccd6a11f6698b8181ede
e16cc78f0e05e50d589558535ae0fc5e414dd4a0
/IM5.4.0_timing/all-test.py
025c4a70ea52a230fbf088237bd5363e4d9c38e8
[]
no_license
wenqiang1990/wenqiang_code
df825b089e3bd3c55bcff98f4946f235f50f2f3d
3c9d77e0a11af081c60a5b1f4c72ecd159945864
refs/heads/master
2020-06-19T04:38:39.052037
2019-12-18T03:40:39
2019-12-18T03:40:39
196,561,628
0
0
null
null
null
null
UTF-8
Python
false
false
2,679
py
#coding:utf-8 import smtplib from email.mime.text import MIMEText import unittest import HTMLTestRunner import time,os import public import suit #=============定义发送邮件========== def send_mail(file_new): #发信邮箱 mail_from='13366778604@189.cn' mail_to=['1058099258@qq.com','wenqiang@yuntongxun.com']#收件箱 ,'weiyy@yu...
[ "1058099258@qq.com" ]
1058099258@qq.com
9e2b830ad5ecc2ef9deddf22b98addd17433ea29
2dd26e031162e75f37ecb1f7dd7f675eeb634c63
/tools/nmt_grpc_service/asr_nmt_client.py
fbdc4ea5933bc58628aa314eae372ed99af52fd8
[ "Apache-2.0" ]
permissive
NVIDIA/NeMo
1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1
c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7
refs/heads/main
2023-08-21T15:28:04.447838
2023-08-21T00:49:36
2023-08-21T00:49:36
200,722,670
7,957
1,986
Apache-2.0
2023-09-14T18:49:54
2019-08-05T20:16:42
Python
UTF-8
Python
false
false
4,640
py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ "noreply@github.com" ]
NVIDIA.noreply@github.com
ccaa43a81a249fed14e4603bf62fe394a81ad05e
4207b53d9fc4e0d9b5c089cb8297c37c634f317d
/ex54.py
3d178f4f490455cdb3e4249fbc17314076c01bd0
[]
no_license
code-repeat/segundomundo
2f8daf0d70e5757faabec72b082c46c37b1f4506
f02d49fccace7d1b948aedbde953bbffbbd2c37c
refs/heads/master
2022-12-04T04:44:47.513506
2020-08-19T14:53:05
2020-08-19T14:53:05
288,476,733
0
0
null
null
null
null
UTF-8
Python
false
false
442
py
from datetime import date totmaior = 0 totmenor = 0 for pess in range(1, 8): atual = date.today().year nasc = int(input(f'Em que ano a {pess}º pessoa nasceu? ')) idade = atual - nasc if idade >= 21: totmaior += 1 # mais uma pessoa maior de idade else: totmenor += 1 # menos uma pess...
[ "coderepeat44@gmail.com" ]
coderepeat44@gmail.com
0e04ffc5e363c98ea194d827e39307d141bb5b65
e204cdd8a38a247aeac3d07f6cce6822472bdcc5
/.history/app_test_django/views_20201116132533.py
b3352fb82d4caa8339ac7638716d3933d9c3997f
[]
no_license
steven-halla/python-test
388ad8386662ad5ce5c1a0976d9f054499dc741b
0b760a47d154078002c0272ed1204a94721c802a
refs/heads/master
2023-04-08T03:40:00.453977
2021-04-09T19:12:29
2021-04-09T19:12:29
354,122,365
0
0
null
null
null
null
UTF-8
Python
false
false
3,018
py
from django.shortcuts import render, redirect from .models import * from django.contrib import messages def index(request): return render(request, "index.html") def register_new_user(request): # creates a new user and redirects them to main page errors = User.objects.user_registration_validator(request...
[ "69405488+steven-halla@users.noreply.github.com" ]
69405488+steven-halla@users.noreply.github.com
f6c64d5301caf7f0a1d629a0c02bba21dae0569c
a838d4bed14d5df5314000b41f8318c4ebe0974e
/sdk/operationsmanagement/azure-mgmt-operationsmanagement/azure/mgmt/operationsmanagement/operations/__init__.py
2782e69839b60ad795c016e952e4d794a2505e0b
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
scbedd/azure-sdk-for-python
ee7cbd6a8725ddd4a6edfde5f40a2a589808daea
cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a
refs/heads/master
2023-09-01T08:38:56.188954
2021-06-17T22:52:28
2021-06-17T22:52:28
159,568,218
2
0
MIT
2019-08-11T21:16:01
2018-11-28T21:34:49
Python
UTF-8
Python
false
false
869
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
scbedd.noreply@github.com
224441e46d1d386baa7761af0531dade30d9efac
ec84ccb07890d5f3cf7b80cd0725875f213ab460
/payroll/migrations/0016_merge_20191125_1104.py
9a125b6953871afe5e40e3fef0a3eae82d15526d
[]
no_license
Imam-Hossain-45/hrm_app
c7a87e0e0572093dca47227c399cd3366bdf5ee9
cde39d6638b5c14555913d263f6b544522added1
refs/heads/master
2023-08-03T05:22:23.398967
2021-09-07T15:09:56
2021-09-07T15:09:56
404,022,016
0
0
null
null
null
null
UTF-8
Python
false
false
275
py
# Generated by Django 2.2.1 on 2019-11-25 05:04 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('payroll', '0015_merge_20191122_1443'), ('payroll', '0015_merge_20191121_2039'), ] operations = [ ]
[ "imamhossain1310@gmail.com" ]
imamhossain1310@gmail.com
9ed0c978bcf1a20776c781faeaf604d9664e5352
fbd98eadeb1cd8cd9ecbe2c53fb08c79a6f1e6ad
/PLOT_linear_step_func.py
dea76796c5212c0518842cd3bf228078eb0abed6
[]
no_license
kolibril13/tricks_for_python
2061de206078158dc0743548969a6ab5ed44438a
73fda8eb07ce39dbf4f87be6a25dd868270395f9
refs/heads/master
2023-03-19T15:22:34.519240
2023-03-13T13:32:28
2023-03-13T13:32:28
173,735,731
2
0
null
null
null
null
UTF-8
Python
false
false
253
py
import numpy as np import matplotlib.pyplot as plt def linear_step_func(x,x0,x1): x = np.maximum(x0,x) x = np.minimum(x,x1) x = x/x1 return x x= np.arange(0,50) y= [linear_step_func(x_val,10,30) for x_val in x] plt.plot(x,y) plt.show()
[ "jan-hendrik.mueller@gmx.net" ]
jan-hendrik.mueller@gmx.net
48254d76ca3154a1725dc1bb70d477a1f17c128f
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_325/ch28_2020_03_18_15_54_08_790110.py
b074e9a839b7fc9025bc4af540f7e03b27ac8f32
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
53
py
i = 0 while i <= 99: c = 1/(2**i) i += 1
[ "you@example.com" ]
you@example.com
6d6b53014569ea3b68c8d403ff97ac2d7522264f
f599e2f9a39e0a70f1a902ccd32321a232401962
/hello/visible1/get.py
049a8f20c825f6373e20f0e4d99a179b9c288990
[]
no_license
oudream/hello-python
2ea8c79f23cd02c10cb06ba59f99a841692fe1ba
a7cf66d44c2b0ba08cdf6ecad3b2eb2d48a5704f
refs/heads/master
2023-06-05T10:02:06.089439
2021-06-16T15:31:12
2021-06-16T15:31:12
92,526,930
2
0
null
null
null
null
UTF-8
Python
false
false
180
py
import glovar as GlobalVar def get(): print(('id GlobalVar: ', id(GlobalVar))) print(("------get mq_client in get.py------mq_client: " + str(GlobalVar.get_mq_client())))
[ "oudream@126.com" ]
oudream@126.com
61db32f2c35d1c780ad697aff125015f8280078c
995974f50d5e605621a15903105875999558ed9d
/examples/digits/digits_gru.py
7d65e4ac1751fc4b6bebf39bbde7cf1e48a1f321
[ "MIT" ]
permissive
Dee-z/zeta-learn
c736de6a64117b9ac488b4a95f866b0b10d06705
04388f90093b52f5df2f334c898f3a1224f5a13f
refs/heads/master
2022-12-22T06:04:48.668562
2020-09-22T03:46:09
2020-09-22T03:46:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,795
py
# -*- coding: utf-8 -*- from ztlearn.utils import * from ztlearn.dl.models import Sequential from ztlearn.optimizers import register_opt from ztlearn.datasets.digits import fetch_digits from ztlearn.dl.layers import GRU, Dense, Flatten data = fetch_digits() train_data, test_data, train_label, test_label = train_test_...
[ "jefkine@gmail.com" ]
jefkine@gmail.com
db6c359e4b7041c79f117f85ce142eb64baf89e1
631f2807116239a1fea8c0085ea9a7c7482731d4
/Analysis/Corrections/save_leptonSFs.py
629178284f99834e1d90a5090f27420bc5193159
[]
no_license
jdulemba/NanoAOD_Analyses
019d6fe6cf7b51348d6cb8c2f7b5adefc0e61b0b
ab10731b70113ebc5f2685b3bb279c7e16e1975c
refs/heads/master
2023-08-03T04:08:51.519709
2023-04-05T12:49:46
2023-04-05T12:49:46
237,410,345
1
1
null
2023-04-05T14:29:23
2020-01-31T10:45:40
Python
UTF-8
Python
false
false
4,420
py
import numpy as np from coffea.util import save from coffea.lookup_tools.root_converters import convert_histo_root_file from coffea.lookup_tools.dense_lookup import dense_lookup from pdb import set_trace import os proj_dir = os.environ["PROJECT_DIR"] jobid = os.environ["jobid"] base_jobid = os.environ["base_jobid"] i...
[ "josdrw9@gmail.com" ]
josdrw9@gmail.com
5115c32cccc0cb97ce154349acb9c9cbf1e7e615
689a78e08c957abc02ea5f89fb657b1f78f88b6e
/configs/waymo/pp/two_stage/waymo_centerpoint_pp_two_pfn_stride1_two_stage_bev_6epoch.py
604898d1da79bc7638fe76f855df9e87b4cdfb7b
[ "MIT", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-unknown-license-reference" ]
permissive
tianweiy/CenterPoint
2bb9a7def8d4bf87b66af2e3b671736eae6fa275
d3a248fa56db2601860d576d5934d00fee9916eb
refs/heads/master
2023-08-30T23:11:49.528882
2022-10-24T13:09:52
2022-10-24T13:09:52
274,006,091
1,692
476
MIT
2023-05-06T10:30:06
2020-06-22T00:32:05
Python
UTF-8
Python
false
false
6,949
py
import itertools import logging from det3d.utils.config_tool import get_downsample_factor tasks = [ dict(num_class=3, class_names=['VEHICLE', 'PEDESTRIAN', 'CYCLIST']), ] class_names = list(itertools.chain(*[t["class_names"] for t in tasks])) # training and testing settings target_assigner = dict( tasks=tas...
[ "yintianwei@utexas.edu" ]
yintianwei@utexas.edu
b5402d5a7e8ade51c22a2026c8d5960cc1d992b5
90419da201cd4948a27d3612f0b482c68026c96f
/sdk/python/pulumi_azure_nextgen/devices/v20200901preview/iot_dps_resource_private_endpoint_connection.py
7272ff880ee76e303e9d1a98fb2dafe0c9f90990
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
test-wiz-sec/pulumi-azure-nextgen
cd4bee5d70cb0d332c04f16bb54e17d016d2adaf
20a695af0d020b34b0f1c336e1b69702755174cc
refs/heads/master
2023-06-08T02:35:52.639773
2020-11-06T22:39:06
2020-11-06T22:39:06
312,993,761
0
0
Apache-2.0
2023-06-02T06:47:28
2020-11-15T09:04:00
null
UTF-8
Python
false
false
5,660
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
[ "public@paulstack.co.uk" ]
public@paulstack.co.uk