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
a60935cfa8dae08bce2ff3cda00428329bb70552
331ed33890f103ce95318abe0d4bd255929e8f4d
/source/addcode3.py
de77590e3a533f3efb249fe212a7c9c7f61e1647
[]
no_license
manon2012/e
fa15ce55a72fa6ee20f10d06e9f670ade207209a
c20a345e96ccd702b56a802e2efbd924f1cd808d
refs/heads/master
2021-01-22T19:25:41.688876
2018-09-20T09:59:29
2018-09-20T09:59:29
102,418,775
0
0
null
2017-09-22T08:21:04
2017-09-05T01:30:02
Python
UTF-8
Python
false
false
524
py
#! /usr/bin/env python #coding=utf-8 import string, random #激活码中的字符和数字 field = string.letters + string.digits #获得四个字母和数字的随机组合 def getRandom(): return "".join(random.sample(field,4)) #生成的每个激活码中有几组 def concatenate(group): return "-".join([getRandom() for i in range(group)]) #生成n组激活码 def...
[ "manon2012@126.com" ]
manon2012@126.com
50fdc9adae0c20329e8f09e7b153a38d0e0d84e4
804d40b874e2eb1f2e9f3f3f124d507bf2b517f1
/env/Lib/site-packages/sqlalchemy/engine/default.py
bc9d9efa8ddf2cda5eab5f4abef8c36a82532d63
[]
no_license
Nestor-Leyva/api-flask
86d5d3053e62767813aeacea5f30cc6a355320d0
55675a02fd79263518b0dfc731a2b4a2be50bd0d
refs/heads/main
2023-08-21T03:00:18.740097
2021-10-04T19:25:38
2021-10-04T19:25:38
413,517,941
0
0
null
null
null
null
UTF-8
Python
false
false
57,329
py
# engine/default.py # Copyright (C) 2005-2021 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Default implementations of per-dialect sqlalchemy.engine classes. The...
[ "noreply@github.com" ]
Nestor-Leyva.noreply@github.com
21bf7c487c1b9c93cf82fd2d75a3211f366adae1
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02627/s593488255.py
20f1737d2fcd33b169b6e476a79494c243027b86
[]
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
63
py
x = input() if x.islower(): print("a") else: print("A")
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
0eef2b6a52956de948410e4e9c6e033167b702c7
62e58c051128baef9452e7e0eb0b5a83367add26
/x12/5040/264005040.py
513841a97cbf65b75f2325a806e4038bc2fd7268
[]
no_license
dougvanhorn/bots-grammars
2eb6c0a6b5231c14a6faf194b932aa614809076c
09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d
refs/heads/master
2021-05-16T12:55:58.022904
2019-05-17T15:22:23
2019-05-17T15:22:23
105,274,633
0
0
null
2017-09-29T13:21:21
2017-09-29T13:21:21
null
UTF-8
Python
false
false
2,104
py
from bots.botsconfig import * from records005040 import recorddefs syntax = { 'version': '00504', 'functionalgroup': 'MG', } structure = [ {ID: 'ST', MIN: 1, MAX: 1, LEVEL: [ {ID: 'BGN', MIN: 1, MAX: 1}, {ID: 'MIS', MIN: 0, MAX: 1}, {ID: 'N1', MIN: 1, MAX: 2, LEVEL: [ {ID: 'N2', MIN: 0...
[ "doug.vanhorn@tagglogistics.com" ]
doug.vanhorn@tagglogistics.com
c492c46afabdb6f86014168232c25d145e6184d4
db7a459e31c0a186dca64a829f93090fa58feab0
/model_pytorch/pretrained/modeling.py
b96a81d856c28817aaaf7a1089a83c618befe74c
[]
no_license
ZouJoshua/dl_project
a3e7c9e035c37af698d4ef388fbb8c46174d5de1
ee7ecedd55ce544b127be8009e026ac2cdc3f71b
refs/heads/master
2022-12-04T04:21:19.937698
2022-01-27T07:33:37
2022-01-27T07:33:37
175,645,793
9
3
null
2022-11-21T21:30:23
2019-03-14T15:07:27
Python
UTF-8
Python
false
false
60,059
py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, 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 cop...
[ "joshua_zou@163.com" ]
joshua_zou@163.com
be482746b575856b1c3066b076cb0366368f336f
3abcde3ca444d7612e24a0faf9b89af61d9bad6d
/backend/helpers/basics.py
d2b90f0117484a68d11355657f30f6ecfa701b56
[]
no_license
cbib/COBRA
fa43d5600beaf36d3dcab98bc7b8faa940a02aea
54f43d3d2867b4f228dccc6630416808e258be77
refs/heads/master
2022-09-25T00:20:57.688447
2021-02-16T21:53:28
2021-02-16T21:53:28
29,740,646
2
3
null
2022-09-01T22:15:54
2015-01-23T16:10:43
HTML
UTF-8
Python
false
false
660
py
# -*- coding: utf-8 -*- import os import socket from configobj import ConfigObj from helpers.path import config_dir def get_hostname(): """ Get host name :return: host name in lower case """ return socket.gethostname().lower() def load_config(filepath=None): """ Load config object from ...
[ "massyah@gmail.com" ]
massyah@gmail.com
985bcdf1b5a6191154114626de32dee9d23f0777
18c99e7d06cb18570a7a2177066e5da2372f895c
/resources/Rougier Tutorial/scripts/contour_ex.py
7b23fce2fe125487b170f498a7ef97a154bbb519
[ "MIT", "CC-BY-SA-4.0" ]
permissive
nstarman/2019-10-22-dotAstronomy-Plotting-Workshop
00a7d9cc17a32effa0bb6cf758c02efa25d33bd8
31e1a10b3d0f051a2cd197ce390bcf96753f153c
refs/heads/master
2021-07-13T12:14:28.031574
2019-10-22T16:00:54
2019-10-22T16:00:54
214,871,831
7
0
MIT
2020-10-10T07:10:38
2019-10-13T18:27:13
Jupyter Notebook
UTF-8
Python
false
false
772
py
# ----------------------------------------------------------------------------- # Copyright (c) 2015, Nicolas P. Rougier. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. # ----------------------------------------------------------------------------- import numpy as np impo...
[ "nstarkman@protonmail.com" ]
nstarkman@protonmail.com
07550d5e6fdcbc52b17afb6e73ec3d7d63f2f34f
bef2f86cfbf8dd7915c5ec72a6b38e26b5238641
/application/apps.py
b3e76b61bebbdcea9af4d962559306f250536674
[]
no_license
rayhancse08/IMS
19f66ba20b3101ea4ced7d88cd7bd5c8c22b14f6
553050a1b6f621a43c1b141459fc1c89c39cfd4a
refs/heads/master
2023-04-29T23:37:41.202213
2019-09-22T10:21:38
2019-09-22T10:21:38
210,084,538
0
0
null
2023-04-21T20:37:48
2019-09-22T03:23:48
Python
UTF-8
Python
false
false
192
py
from django.apps import AppConfig class ApiConfig(AppConfig): name = 'application' def ready(self): # noinspection PyUnresolvedReferences import application.signals
[ "rayhancse08@gmail.com" ]
rayhancse08@gmail.com
c0145b7cab1a1625f2d70ee33750828557e05f2d
4a6e49b33d07c83da9ec56621c27c37a6a28a8ce
/configs/hyper_c32/upernet_swin_small_patch4_window7_4k_hyper_c32.py
b4b092bc4bac1b426b1f12be9915ec6ece9aba54
[ "Apache-2.0", "MIT" ]
permissive
DKJJ/Swin-Transformer-Semantic-Segmentation
213e7516d2abc34b9ecca9dc6037b0ab5499397f
c8707951ddabdc0189451bcbd25c145f1f6cc041
refs/heads/main
2023-04-21T12:13:00.624902
2021-05-06T12:15:13
2021-05-06T12:15:13
365,226,907
1
0
null
null
null
null
UTF-8
Python
false
false
1,497
py
_base_ = [ '../_base_/models/upernet_swin.py', '../_base_/datasets/hyper_c32.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_4k.py' ] norm_cfg = dict(type='BN', requires_grad=True) model = dict( backbone=dict( embed_dim=96, depths=[2, 2, 18, 2], num_heads=[3, 6, 12...
[ "1395133179@qq.com" ]
1395133179@qq.com
a6a678b8ba3327da88bff0b8846c393e3e21ab86
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2606/60622/314959.py
b4aeade74d5cd1b7d707179de1be3c9a40e2440f
[]
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
156
py
arr=eval(input()) targrt=int(input()) get=False for i in range(len(arr)): if arr[i]==target: get=True print(i) if not get: print(-1)
[ "1069583789@qq.com" ]
1069583789@qq.com
5ef3e003fbc3b211a53280eedf68c8e5c6f2743d
9b64f0f04707a3a18968fd8f8a3ace718cd597bc
/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/cluster_redis_node_monitored_object.py
e9d88d7507107ddb26464bc9702d96002ef08dc5
[ "Apache-2.0" ]
permissive
jaminGH/huaweicloud-sdk-python-v3
eeecb3fb0f3396a475995df36d17095038615fba
83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b
refs/heads/master
2023-06-18T11:49:13.958677
2021-07-16T07:57:47
2021-07-16T07:57:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,524
py
# coding: utf-8 import re import six class ClusterRedisNodeMonitoredObject: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value i...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
d6a97cd6ef028407a1cfffa44d848b5f9689f803
c57439f0c98af370ace65f9d55ef5a457bedc531
/ydk/models/infra/_meta/_Cisco_IOS_XR_infra_alarm_logger_oper.py
77489aa52aacd470c677f59e9d95d406bef1006f
[ "Apache-2.0" ]
permissive
myahmao/ydk-py
c932fbd8245e554227cce0fd723d9a22887b0c40
2f367d93f2088d4abdc2f2bb10ca4864952b458a
refs/heads/master
2021-01-14T11:32:29.064494
2016-03-15T22:44:05
2016-03-15T22:44:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,724
py
import re import collections from enum import Enum from ydk._core._dm_meta_info import _MetaInfoClassMember, _MetaInfoClass, _MetaInfoEnum, _dm_validate_value from ydk.types import Empty, YList, DELETE, Decimal64, FixedBitsDict from ydk._core._dm_meta_info import ATTRIBUTE, REFERENCE_CLASS, REFERENCE_LIST, REFEREN...
[ "manradha@cisco.com" ]
manradha@cisco.com
c3498026921873ea903ce9a2244d311663417b05
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/built-in/others/CLIP_for_PyTorch/transformers/templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/modeling_flax_{{cookiecutter.lowercase_modelname}}.py
7c33e637c9f47c5c6cf5cd3e91458c74e23af9f5
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
120,457
py
# coding=utf-8 # Copyright 2022 {{cookiecutter.authors}} and The HuggingFace Inc. team. 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/lice...
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
019af73cde0ddb511c0a9d5cb31e3865fc933fd2
61f9c7094be028e040d1234f05ee6d7370c2206d
/pytext/models/output_layers/intent_slot_output_layer.py
1a831b9e0f9fcb261594fa81513bece669755bdb
[ "BSD-3-Clause" ]
permissive
timgates42/pytext
3ce5473fecca5174108a4eb63209a3eecfb6d8dd
5f2c3ca6c3ba56e1001e95825abd7ee295de1dff
refs/heads/main
2023-03-15T07:33:21.217159
2022-07-11T16:06:16
2022-07-11T16:06:16
231,028,915
0
0
NOASSERTION
2019-12-31T05:04:01
2019-12-31T05:04:00
null
UTF-8
Python
false
false
7,272
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from typing import Any, Dict, List, Optional, Tuple, Union import torch import torch.nn as nn from caffe2.python import core from pytext.common.constants import DatasetFieldName from pytext.data.utils import Vocabulary from ...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
429b8aebe0e1a0732958d27d2a34cc2b6c0d64f3
b28305dab0be0e03765c62b97bcd7f49a4f8073d
/components/cronet/tools/cr_cronet.py
50a1c371b6c5044149e25ebb99b3029e2786eb66
[ "BSD-3-Clause" ]
permissive
svarvel/browser-android-tabs
9e5e27e0a6e302a12fe784ca06123e5ce090ced5
bd198b4c7a1aca2f3e91f33005d881f42a8d0c3f
refs/heads/base-72.0.3626.105
2020-04-24T12:16:31.442851
2019-08-02T19:15:36
2019-08-02T19:15:36
171,950,555
1
2
NOASSERTION
2019-08-02T19:15:37
2019-02-21T21:47:44
null
UTF-8
Python
false
false
7,538
py
#!/usr/bin/python # Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ cr_cronet.py - cr - like helper tool for cronet developers """ import argparse import os import sys def run(command, extra_options=''...
[ "artem@brave.com" ]
artem@brave.com
75d1e9b373c45d4eeb5da68148b4476d955e7fd8
0811cd3a37e82eb5175e0c1ffdc13510b256c7de
/bcs-app/backend/apps/configuration/yaml_mode/release.py
74c76eec59643c3e951e70340e7b17d81810fa86
[ "MIT", "BSD-3-Clause", "LicenseRef-scancode-unicode", "ICU", "LicenseRef-scancode-unknown-license-reference", "Artistic-2.0", "Zlib", "LicenseRef-scancode-openssl", "NAIST-2003", "ISC", "NTP", "BSL-1.0", "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
QiChangYin/bk-bcs-saas-copy-modify
363d08a64dd860329b8ab051a02f4733a29c33dd
7ef3b003ff20857a99415d7a3c99d8eb4f5764d9
refs/heads/master
2023-02-10T02:30:40.616494
2020-01-13T09:23:18
2020-01-13T09:23:18
233,553,174
0
0
NOASSERTION
2023-02-02T05:12:22
2020-01-13T09:01:09
Python
UTF-8
Python
false
false
5,381
py
# -*- coding: utf-8 -*- # # Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. # Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved. # Licensed under the MIT License (the "License"); you may not use this file except i...
[ "gejun.coolfriend@gmail.com" ]
gejun.coolfriend@gmail.com
58a9bca015b47a6e87d1c80668382adeb76cc14b
fa3e527114cd5799dddb0a25067da4923eae354e
/FastSim/JUNO/LearnPDF/learn_pdf.py
58df9e1684c302ce7aff741034c46b988eabe111
[]
no_license
wenxingfang/FastSim_ML
e64c6b56ce2afd703d1ddda0ada2de6f65fde049
d2f1abbb2f6879313d5f4f137b64c4d8bf10fe83
refs/heads/master
2022-11-28T01:35:39.727895
2020-08-03T15:47:37
2020-08-03T15:47:37
284,734,310
0
0
null
null
null
null
UTF-8
Python
false
false
8,595
py
import h5py import sys import argparse import numpy as np import math import tensorflow as tf #import tensorflow_probability as tfp #import matplotlib.pyplot as plt from sklearn.utils import shuffle def load_data(data): print('load data:',data) d = h5py.File(data, 'r') hit_time = d['firstHitTimeByPMT'][:...
[ "1473717798@qq.com" ]
1473717798@qq.com
31be9df7d3cd9b20bfa38224354423ad59df2139
45c170fb0673deece06f3055979ece25c3210380
/toontown/building/ToonInterior.py
ff17ab85cfeaca2646dd0331d92b7043f0f90da7
[]
no_license
MTTPAM/PublicRelease
5a479f5f696cfe9f2d9dcd96f378b5ce160ec93f
825f562d5021c65d40115d64523bb850feff6a98
refs/heads/master
2021-07-24T09:48:32.607518
2018-11-13T03:17:53
2018-11-13T03:17:53
119,129,731
2
6
null
2018-11-07T22:10:10
2018-01-27T03:43:39
Python
UTF-8
Python
false
false
9,180
py
#Embedded file name: toontown.building.ToonInterior from direct.directnotify import DirectNotifyGlobal from direct.fsm import ClassicFSM, State from direct.fsm import State from direct.fsm import StateData from direct.showbase import DirectObject from direct.task import Task from pandac.PandaModules import * from otp.d...
[ "linktlh@gmail.com" ]
linktlh@gmail.com
4cd3b162fb3f2dcf97349017329fb4abb9623ee9
327d83545dc9f309de74f4e670cc7a92db954f17
/python-alg/algorithms/models/node.py
7c26f409dc734939ce35dd032ac69f064a338444
[]
no_license
felipe-basina/algoritmos
eb936c45aaa6ae45c514d43e31cabbad5d8ee874
a4ee5b30801f54f42f71f23c963781d7bed899eb
refs/heads/master
2023-06-10T17:33:56.420717
2021-06-24T01:17:56
2021-06-24T01:17:56
360,247,224
0
0
null
null
null
null
UTF-8
Python
false
false
497
py
class Node: def __init__(self, data): self.data = data self.next = None # References to another node def __str__(self): return "[data={}:next={}] ".format(self.data, self.next) class LinkedList: def __init__(self): self.head = None self.tail = None def inse...
[ "felipe.basina@gmail.com" ]
felipe.basina@gmail.com
1462fd76543b2b6609f1a9102b0c572db25685d5
a1080c28573e1a59ec418ad3b0b0bf18e035dc41
/LeetCode/Largest Number_366617438.py
72e6404214711f50d16b2cd8c159aa203f976682
[]
no_license
AumkarG/Algorithms-and-Data-Structures
8c6fc21218897d2361fed1512dc6bb13eabd8842
03603ad579564ef213c58edd57cb8753cf8f86ba
refs/heads/master
2023-03-04T09:48:25.167519
2021-02-14T17:16:18
2021-02-14T17:16:18
330,424,446
0
0
null
null
null
null
UTF-8
Python
false
false
330
py
def custom_compare(x, y): return int(x+y)-int(y+x) class Solution(object): def largestNumber(self, nums): nums=[str(i) for i in nums] nums=sorted(nums, cmp=custom_compare,reverse=True) if(nums[0]=='0'): return '0' s="" for i in nums: s+=i ...
[ "aumkaar,g@gmail.com" ]
aumkaar,g@gmail.com
3fc636e9d82d6fb11367eecaec1349a89d61de26
c6969585b7edec377a389da46825a7389b5e8e12
/examples/twisted/websocket/echo_wsgi/server.py
55d5c779b9fc775e710c53630db196a5f4ba4dc2
[ "MIT" ]
permissive
hzruandd/AutobahnPython
38b35a9d413d53dde9271ec436ccd3d8d07da74e
942d27eb6a87084cb8964fd2c9abaae67807be13
refs/heads/master
2021-01-16T21:43:49.398537
2015-09-13T19:16:21
2015-09-13T19:16:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,335
py
############################################################################### # # The MIT License (MIT) # # Copyright (c) Tavendo GmbH # # 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 with...
[ "tobias.oberstein@tavendo.de" ]
tobias.oberstein@tavendo.de
ad9332db347bf438e8ee4f9c260de6368599a431
223c05418090665e9aedb754783cbb55bc3555c1
/277-Find-the-Celebrity.py
aa6318bbf4b60a4419c8c132d0522012d1b958c3
[]
no_license
dkrotx/leetcode
227639030aa62c80adf9412aa50cba4e4ae13034
501c347004c140a82a95461e1dbcef6775b3d9da
refs/heads/master
2021-06-05T23:37:10.369386
2019-12-04T17:59:14
2019-12-04T17:59:14
111,242,268
0
0
null
null
null
null
UTF-8
Python
false
false
865
py
# The knows API is already defined for you. # @param a, person a # @param b, person b # @return a boolean, whether a knows b # def knows(a, b): class Solution(object): def findCelebrity(self, n): """ :type n: int :rtype: int """ guests = list(range(n)) while len(gues...
[ "kisel@corp.mail.ru" ]
kisel@corp.mail.ru
6ea3185e6c1f56dd935d1047fdc2829d8e96362c
62b736eff115a6d9cfd323c1b396c94f8a9302fe
/tkinter/simple_grid_window.py
3c50166b69166d56d82b070fb5b1d328c7360f03
[]
no_license
ccnelson/Python
dccbb9a2c00f8124216f2f4d4202b94907134083
ebd0c401b23aee7467332d692588f02cda0ff935
refs/heads/master
2023-04-02T09:09:55.716686
2021-03-28T18:16:15
2021-03-28T18:16:15
184,681,086
0
0
null
null
null
null
UTF-8
Python
false
false
339
py
import tkinter as tk root = tk.Tk() tk.Label(root, text="Username").grid(row=0, sticky=tk.W) tk.Label(root, text="Password").grid(row=1, sticky=tk.W) tk.Entry(root).grid(row=0, column=1, sticky=tk.E) tk.Entry(root).grid(row=1, column=1, sticky=tk.E) tk.Button(root, text="Login").grid(row=2, column=1, sticky=tk.E)...
[ "noreply@github.com" ]
ccnelson.noreply@github.com
03ac8e612ab1fe00f08e2288e8e207e0a263bd26
49536aafb22a77a6caf249c7fadef46d63d24dfe
/tensorflow/tensorflow/contrib/slim/python/slim/data/dataset_data_provider_test.py
9b9f6d8b299b60cd67a647e0dc0d0302815a82fb
[ "Apache-2.0" ]
permissive
wangzhi01/deeplearning-1
4e5ad93f0d9ecd302b74352f80fe1fa6ae70bf0d
46ab82253d956953b8aa98e97ceb6cd290e82288
refs/heads/master
2020-05-28T03:14:55.687567
2018-09-12T16:52:09
2018-09-12T16:52:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,177
py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
[ "hanshuobest@163.com" ]
hanshuobest@163.com
2d7a4891643b36d60a90eca1ad6434ec699c9d0f
d402d51fed36f5f2b4f8bd18d8d60f38963f61c7
/model/CNN/resnet.py
0d0b8fdf5e8a235176e4c0a89d11e266f8448060
[]
no_license
bruceyang2012/imageclassification
9a8751bb0924d0a952e3e4d65ae47f5ad7514cf7
1a09a46089f0fb57dff67dd5c492b8ae0641689d
refs/heads/master
2023-06-17T10:41:46.402216
2021-07-12T07:48:27
2021-07-12T07:48:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,510
py
import torch import torch.nn as nn __all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101', 'resnet152', 'resnext50_32x4d', 'resnext101_32x8d', 'wide_resnet50_2', 'wide_resnet101_2'] model_urls = { 'resnet18': 'https://download.pytorch.org/models/resnet18-5c106cde.pth', 'r...
[ "13246876815@163.com" ]
13246876815@163.com
ae5634dc045f83121134040f072c8b310c823b31
9f03e20a34599816358891adc6bcce29cd48aed6
/test/test_config.py
7b1fa6d485b48999903d072b0fe69863aaa2e6d9
[ "MIT" ]
permissive
projg2/flaggie
9917adf783dca7c18471ad8f822a35e8afec351f
4485aed08c4e33347d88736fdd4a9914b8349908
refs/heads/master
2023-08-08T12:20:58.729741
2023-07-27T14:15:01
2023-07-27T14:15:01
72,996,715
14
2
MIT
2023-03-20T06:05:47
2016-11-06T14:40:07
Python
UTF-8
Python
false
false
4,723
py
# (c) 2022-2023 Michał Górny # Released under the terms of the MIT license import dataclasses import os import stat import pytest from flaggie.config import (TokenType, ConfigLine, find_config_files, parse_config_file, dump_config_line, ConfigFile, read_config_...
[ "mgorny@gentoo.org" ]
mgorny@gentoo.org
00fe334671f8b26e7570ae945446b1944bf41d48
9893602fdad77858441c08de15980174e1bd3216
/examples/gym/tests/test_mp_speed.py
ca36a13a6947aaba69b88c87289009cf7bab731f
[ "MIT" ]
permissive
batermj/TensorArtist
b61a1fa71325b7dc538318160a0924e1b3d5c3d5
7654eb026f6d87f64e28ca152d006ef7625b0f45
refs/heads/master
2020-03-29T02:28:59.101255
2017-11-01T12:37:49
2017-11-01T12:37:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,360
py
# -*- coding:utf8 -*- # File : test_mp_speed.py # Author : Jiayuan Mao # Email : maojiayuan@gmail.com # Date : 10/08/2017 # # This file is part of TensorArtist. from tartist import image from tartist.app import rl import time import multiprocessing.pool as mppool def make_player(dump_dir=None): def resize...
[ "maojiayuan@gmail.com" ]
maojiayuan@gmail.com
38562e9aaea1b41c2e4b85cc909df95320520890
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/e8TFAMbTTaEr7JSgd_24.py
1ca289103b566112414504dfb983bcf3e86bd3fb
[]
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
132
py
def left_digit(num): num=list(num) for x in num: try: x=int(x) return x except ValueError: continue
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
1440e3fdc04667cea54daecb56015389ec30e3d1
1e0a8a929f8ea69e476d8a8c5f3455aaf5317de6
/tests/app/crud/test_dog_crud.py
afd0b8d1e8870ae8f2425c8541e38e56329efd68
[ "MIT" ]
permissive
jearistiz/guane-intern-fastapi
aa41400fa22076111e96be695fde0a1ff6f118d0
269adc3ee6a78a262b4e19e7df291fd920fae2e1
refs/heads/master
2023-06-25T08:58:03.729614
2023-06-11T15:28:59
2023-06-11T15:28:59
370,229,796
63
9
MIT
2021-06-11T01:28:52
2021-05-24T04:45:23
Python
UTF-8
Python
false
false
625
py
from sqlalchemy.orm import Session from app import crud from mock_data.db_test_data import adopted_dogs_dicts from tests.utils.handle_db_test import HandleDBTest from tests.utils.parse_dict import update_dict_fmt_item class TestDogCrud(HandleDBTest): def test_get_adopter(self, db: Session): adopted_dogs_...
[ "jeaz.git@gmail.com" ]
jeaz.git@gmail.com
b1101dc270e2d33a82dcf6c6848da1264ae388c2
456433ac78b70cb8ae076ae166a85e349f181d7f
/systems/KURSSKLAD/KURSTERM/DOCFREESELECT/templates/task.py
f70b8d39f033caef223f1634035ffd6063851dbf
[]
no_license
shybkoi/WMS-Demo
854c1679b121c68323445b60f3992959f922be8d
2525559c4f56654acfbc21b41b3f5e40387b89e0
refs/heads/master
2021-01-23T01:51:20.074825
2017-03-23T11:51:18
2017-03-23T11:51:18
85,937,726
0
0
null
null
null
null
WINDOWS-1251
Python
false
false
18,895
py
#!/usr/bin/env python # -*- coding: cp1251 -*- ################################################## ## DEPENDENCIES import sys import os import os.path from os.path import getmtime, exists import time import types import __builtin__ from Cheetah.Version import MinCompatibleVersion as RequiredCheetahVersion from Cheeta...
[ "s.shybkoi@gmail.com" ]
s.shybkoi@gmail.com
e9d4a1e15e50708818c91043e99270b983a6336f
e66770daf4d1679c735cfab1ac24dd1f5107bd83
/Chapter02/Ch02_Code/GUI_add_padding.py
ed137f365e58ba1817dfca017a7f893771e77317
[]
no_license
CodedQuen/Python-GUI-Programming-Cookbook
c038eb6cec4945ff4f2b09e1551f9db712dd2502
f02b0f9916fb8272edc7ed4704eecce53ae0231c
refs/heads/master
2022-05-27T19:35:35.004455
2020-05-05T01:00:51
2020-05-05T01:00:51
261,329,651
0
0
null
null
null
null
UTF-8
Python
false
false
4,147
py
''' May 2017 @author: Burkhard A. Meier ''' #====================== # imports #====================== import tkinter as tk from tkinter import ttk from tkinter import scrolledtext # Create instance win = tk.Tk() # Add a title win.title("Python GUI") # Modify adding a Label a_label = ttk...
[ "noreply@github.com" ]
CodedQuen.noreply@github.com
7792841836eb91ce3be5aa927a1a37b5f335c11b
ac54aa0127a47fb59211fba9e6cb8431d9d864cd
/muscn/settings/base.py
be10c07ea832ffd447b82e096349324c124e21c9
[]
no_license
xiringlama/manutd.org.np
8919e3c1ad0494f88b819089686a756d67d38598
f394f16edb96c05e2e864dcec1ec52532cd35ac2
refs/heads/master
2021-07-12T00:33:17.197706
2017-10-16T14:45:10
2017-10-16T14:45:10
107,222,122
1
0
null
null
null
null
UTF-8
Python
false
false
4,820
py
import os BASE_DIR = os.path.join(os.path.dirname(os.path.dirname(__file__)), '..') STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'static'), ] INSTALLED_APPS = ( 'jet', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.m...
[ "xtranophilist@gmail.com" ]
xtranophilist@gmail.com
948de2c172a457ca55617d1ab99b85b378c019ce
1840eff4a604161d56fba2747520686a5a008301
/src/apps/dh/urls.py
6c7f4b97920cad4dcd334b410b7cf1cbfb3c53eb
[]
no_license
jinchuika/app-suni
f9291fd2e5ecc9915178141039da19444769cb85
0e37786d7173abe820fd10b094ffcc2db9593a9c
refs/heads/master
2023-08-24T21:52:04.490613
2023-08-14T21:32:22
2023-08-14T21:32:22
68,239,483
7
6
null
2023-08-14T21:32:24
2016-09-14T20:10:09
Python
UTF-8
Python
false
false
619
py
from django.conf.urls import url from apps.dh.views import * from django.views.decorators.cache import cache_page urlpatterns = [ url(r'^evento/add/$', EventoDHCreateView.as_view(), name='evento_dh_add'), url(r'^evento/(?P<pk>\d+)/$', EventoDHDetailView.as_view(), name='evento_dh_detail'), url(r'^evento/(?...
[ "jinchuika@gmail.com" ]
jinchuika@gmail.com
d601e47ed1794cce231d067d5f51a3a2fa9dd4ab
2d05050d0ada29f7680b4df20c10bb85b0530e45
/python/tvm/tir/schedule/_type_checker.py
5c51b1b09fedd38a6aa9032abcb9c340522bcdb3
[ "Apache-2.0", "BSD-3-Clause", "MIT", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "Zlib", "LLVM-exception", "BSD-2-Clause" ]
permissive
apache/tvm
87cb617f9a131fa44e1693303aaddf70e7a4c403
d75083cd97ede706338ab413dbc964009456d01b
refs/heads/main
2023-09-04T11:24:26.263032
2023-09-04T07:26:00
2023-09-04T07:26:00
70,746,484
4,575
1,903
Apache-2.0
2023-09-14T19:06:33
2016-10-12T22:20:28
Python
UTF-8
Python
false
false
12,491
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "noreply@github.com" ]
apache.noreply@github.com
2afc06ad0c4f9e8735adae24182886d198a029d3
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03284/s870585423.py
e77617648221cc20c5db9167bc932d1b07055052
[]
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
328
py
import sys read = sys.stdin.read readline = sys.stdin.readline readlines = sys.stdin.readlines sys.setrecursionlimit(10 ** 9) INF = 1 << 60 MOD = 1000000007 def main(): N, K = map(int, readline().split()) if N % K == 0: print(0) else: print(1) return if __name__ == '__main__': ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
d390872599b775908541f61bca80c5d479995e3e
f900a9f48fe24c6a581bcb28ad1885cfe5743f80
/Chapter_3/Pg_89_Try_It_Yourself.py
18af1c66106cd96e52bca0048c6335ef2c061c01
[]
no_license
Anjali-225/PythonCrashCourse
76e63415e789f38cee019cd3ea155261ae2e8398
f9b9649fe0b758c04861dad4d88058d48837a365
refs/heads/master
2022-12-03T21:35:07.428613
2020-08-18T11:42:58
2020-08-18T11:42:58
288,430,981
0
0
null
null
null
null
UTF-8
Python
false
false
1,879
py
#3-4 guest = ['Joe','Eric','Sarah','Helly'] message = f"{guest[0]}, you are invited to dinner" print(message) message = f"{guest[1]}, you are invited to dinner" print(message) message = f"{guest[2]}, you are invited to dinner" print(message) message = f"{guest[3]}, you are invited to dinner\n" print(message)...
[ "noreply@github.com" ]
Anjali-225.noreply@github.com
03ee2745ee616d850f07343d7d489f52af1d54c3
7d1e23982439f530f3c615f3ac94f59861bc2325
/controller.py
70d1ac19194843aea3eac826c23ea21ef5b3ffdb
[]
no_license
daskorod/RPG_project
3104afafd19038f1c9da0d9aca6f489f9629093b
3b42a7f3131830d3b728f5d65332750fa032ec03
refs/heads/master
2020-05-24T04:24:33.198371
2017-11-30T19:29:48
2017-11-30T19:29:48
84,820,405
3
0
null
null
null
null
UTF-8
Python
false
false
4,385
py
import pygame import sys import sounds class Holy_Spirit (): def __init__ (self): self.auto = True self.k_space = False self.stage1_flag = False self.stage2_flag = True self.flag = 0 self.left = False self.right = False self.up = False self.down = False self.k_1 = False self.k_2 = False self.k...
[ "daskorod@gmail.com" ]
daskorod@gmail.com
cdbded1453eefce5a9932e58c56c62071e4acfa4
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-gsn-edf/gsn-edf_ut=3.5_rd=0.65_rw=0.06_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=72/params.py
3e12d7ff33ac0d25b94cbf315139e7c926365d5c
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
255
py
{'cpus': 4, 'duration': 30, 'final_util': '3.518429', 'max_util': '3.5', 'periods': 'harmonic-2', 'release_master': False, 'res_distr': '0.65', 'res_nmb': '4', 'res_weight': '0.06', 'scheduler': 'GSN-EDF', 'trial': 72, 'utils': 'uni-medium-3'}
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
f8929bcfb574e4ad6472200e8721328615419355
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/tree-big-6279.py
0ee32f9d4e13b8b1b73f473249d96e94703c6449
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
23,289
py
# Binary-search trees class TreeNode(object): value:int = 0 left:"TreeNode" = None right:"TreeNode" = None def insert(self:"TreeNode", x:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode(x) return True else: ...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
374137ee28176ba0c2168a43b68a6388dd3a8e5a
1dc4fbb38f333c665abd0f7e4f9919ad1b349c37
/calories/taskapp/celery.py
2931a91b8d7ded7aebc3e8e3d816fafd07496a4b
[ "BSD-3-Clause", "MIT" ]
permissive
zulfiyagit/calories
2dd98a4b160fa88ba592ec150e8e6f640a3fb2e9
0719d61891a93eff7c06a9356c26f42b99019444
refs/heads/master
2020-12-29T18:52:20.372303
2016-03-28T20:54:20
2016-03-28T20:54:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,358
py
from __future__ import absolute_import import os from celery import Celery from django.apps import AppConfig from django.conf import settings if not settings.configured: # set the default Django settings module for the 'celery' program. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local")...
[ "germanilyin@gmail.com" ]
germanilyin@gmail.com
fb329c76b6c441fb363aee300ad275687f9b6472
d3efc82dfa61fb82e47c82d52c838b38b076084c
/Autocase_Result/MEDIUM/YW_ZXBMM_SZSJ_081.py
5286dc8bfa248725178097270b3c4f214c05c938
[]
no_license
nantongzyg/xtp_test
58ce9f328f62a3ea5904e6ed907a169ef2df9258
ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f
refs/heads/master
2022-11-30T08:57:45.345460
2020-07-30T01:43:30
2020-07-30T01:43:30
280,388,441
0
0
null
null
null
null
UTF-8
Python
false
false
3,010
py
#!/usr/bin/python # -*- encoding: utf-8 -*- import sys sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api") from xtp_test_case import * sys.path.append("/home/yhl2/workspace/xtp_test/service") from ServiceConfig import * from mainService import * from QueryStkPriceQty import * from log import * sys.path.append("/h...
[ "418033945@qq.com" ]
418033945@qq.com
662681f8d9d3bea85b90b39c2599f1cef5f7dfc0
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03438/s156659931.py
39826d4f4203b8b35ce295fa8eb7b93a219c170d
[]
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
405
py
from sys import stdin n = int(stdin.readline().rstrip()) a = list(map(int,stdin.readline().rstrip().split())) b = list(map(int,stdin.readline().rstrip().split())) A = sum(a);B = sum(b) count_1 = 0 count_2 = 0 total = B-A for i,j in zip(a,b): if i < j: count_1 += (j-i+1)//2 else: count_2 += i-j c...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
db59646f14d746ecbb38317653de635b14662ea4
c823e437ffd46aa3b1465819686ee50fd1932214
/src/transformers/models/oneformer/modeling_oneformer.py
9e72003a9f9d5d9981679751e7baf4b3dcd5d2a3
[ "Apache-2.0" ]
permissive
nateraw/transformers
f03258d62c4773732514e443d98f1684d3467bfd
7fd902d3351b81775112cd6b526bc32cf9ba856d
refs/heads/main
2023-03-19T00:31:55.123718
2023-01-20T22:16:42
2023-01-20T22:16:42
564,090,117
5
0
Apache-2.0
2022-11-10T01:00:04
2022-11-10T01:00:03
null
UTF-8
Python
false
false
142,017
py
# coding=utf-8 # Copyright 2022 SHI Labs and The HuggingFace Inc. team. 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...
[ "noreply@github.com" ]
nateraw.noreply@github.com
951bf4d60636cb348271486a74c5e08e4e35b053
5d3556043828ec87b4f28b92895904c20b083d2e
/electoral_constituencies/models.py
0881ebae4ecf60958bfb14f53fce930e1ee322a7
[]
no_license
Election-Portal/Election-Portal-Webapp
826c926807bb54568c5db4861a01eaba217fc00b
90c6a3da19f4bd029f0bd98ea2ca98ab095abbab
refs/heads/master
2022-12-06T19:38:53.693793
2021-05-16T06:16:57
2021-05-16T06:16:57
139,657,468
3
3
null
2022-11-22T02:48:27
2018-07-04T02:16:56
JavaScript
UTF-8
Python
false
false
1,683
py
from django.db import models from political_divisions.models import Province, District from political_parties.models import PoliticalParty # Create your models here. class Sabha(models.Model): name = models.CharField("Name", max_length=50) district = models.ForeignKey(District,on_delete=models.CASCADE, relat...
[ "aakrist666@gmail.com" ]
aakrist666@gmail.com
7c874e9bd36d9da166eb7dbe16f7b4208a2ca064
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_55/446.py
9f01e2cc099049a3b984b3b6a4598d3fb9b46375
[]
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
872
py
FILE = open("C-small-attempt0.in","r") OUTPUT = open("C-small-attempt0.out","w") cases = FILE.readline() def rideCoaster(): global k global groups groupsOnCoaster = [] numberOfRiders = 0 while(len(groups) > 0 and numberOfRiders + groups[0] <= k): groupCount = groups.pop(0) numberO...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
ae4b4ce6d77449745f49c95d0a0c4c087506107c
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/10/usersdata/132/9950/submittedfiles/testes.py
af2fd0de3a5a21e6725e176347e0e0201d8e9097
[]
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
181
py
# -*- coding: utf-8 -*- from __future__ import division a=input('digite um numero:') i=1 while(i*i+1*i+2)<a: if (i*i+1*i+2)==a: print('s') else: print('n') i=i+1
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
a2d9dd9b79e3f5e7b06713e7c0d82ccb5958531c
7f4fb112bc9ab2b90f5f2248f43285ce9ac2e0a0
/src/igem/neutronics/water/container/borosilicate-glass-backfill/5cm/50wt/plot_all.in.one_cask.thickness_dose.rate_t4045_bottom.py
a45cb45d0aafb14cb4f353d47ae77969fc35a8da
[]
no_license
TheDoctorRAB/plot
dd3b5134c91c8fa7032fcc077c5427b26a80e49d
ed6746d511222c03e79f93548fe3ecd4286bf7b1
refs/heads/master
2021-07-11T10:21:19.347531
2020-07-16T17:13:15
2020-07-16T17:13:15
20,462,189
0
0
null
null
null
null
UTF-8
Python
false
false
6,321
py
######################################################################## # R.A.Borrelli # @TheDoctorRAB # rev.11.March.2015 ######################################################################## # # Plot routine # All in one file, with no separate control input, lib files # Plot data is contained in a separate data f...
[ "borrelli@localhost.localdomain" ]
borrelli@localhost.localdomain
8c420f57c5fe425f7d0fa0dae48e942a44174687
ceeeb927544c474163347254b11485cc945ea951
/core/migrations/0002_alter_user_managers.py
ce6eb500dce47749534bad897ccb645b67da9adf
[]
no_license
alisamadzadeh46/filestore
ecc8d84ca16e8a8a51af0b74446a0c3b88cda646
4f31e51b2d028cd5f79b6af06d05568a8af7e9e1
refs/heads/main
2023-06-22T18:38:08.179128
2021-07-26T16:03:19
2021-07-26T16:03:19
377,806,835
0
0
null
null
null
null
UTF-8
Python
false
false
324
py
# Generated by Django 3.2.4 on 2021-06-18 16:17 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.AlterModelManagers( name='user', managers=[ ], ), ...
[ "alisamadzadeh46@gmail.com" ]
alisamadzadeh46@gmail.com
eb105e8f898024dd5992253c0332f1e6987e2698
875bb84440094ce058a2ec25a661a7da6bb2e129
/algo_py/boj/bj1647.py
e51a516645ce66ea00558949de82a9b29f3f55b6
[]
no_license
shg9411/algo
150e4291a7ba15990f17ca043ae8ab59db2bf97b
8e19c83b1dbc0ffde60d3a3b226c4e6cbbe89a7d
refs/heads/master
2023-06-22T00:24:08.970372
2021-07-20T06:07:29
2021-07-20T06:07:29
221,694,017
2
0
null
null
null
null
UTF-8
Python
false
false
603
py
import sys input = sys.stdin.readline def find(x): if parent[x] == x: return x parent[x] = find(parent[x]) return parent[x] def union(x, y): parent[find(y)] = parent[find(x)] def kruskal(): cnt = res = 0 for c,a,b in q: if find(a) == find(b): continue cnt...
[ "shg9411@naver.com" ]
shg9411@naver.com
62ac4885dae7b11cc8dde424e4969271cc97bbc6
51b838412b7d9d38e398fefff92a0f17b3e040d7
/enso/enso/utils/strings.py
64d7d425ff3f7eef188c554f110433ea14749552
[ "BSD-2-Clause" ]
permissive
thdoan/enso-portable
ed87bb30f3fe5d95e8dc6f3c4fa2a1a3a46f37fc
2dd6db78f40811d78fe9a162ec95eac14bda2250
refs/heads/master
2020-04-05T19:01:50.058547
2015-01-11T16:46:56
2015-01-11T16:46:56
28,119,291
8
5
null
null
null
null
UTF-8
Python
false
false
5,804
py
# Copyright (c) 2008, Humanized, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditi...
[ "gchristnsn@gmail.com" ]
gchristnsn@gmail.com
4889e9d816eea1681649c7ec54bc5f45d77208e7
01e4fad56b16110843b1906d90cec29b64c6c72d
/thonnycontrib/pyboard/api_stubs/hashlib.py
dbf78816260dc2903521f26add9e8de42d6682fc
[ "MIT" ]
permissive
jurajhalama/thonny-pyboard
1a753b24293068d35fdf28e0ff73ce877e1ce7a1
d967ffe653ef3678ae4ab8ed6a58ca696b47b6a6
refs/heads/master
2020-06-19T21:12:15.168310
2019-06-10T08:41:54
2019-06-10T08:41:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
86
py
class sha256: '' def digest(): pass def update(): pass
[ "aivar.annamaa@gmail.com" ]
aivar.annamaa@gmail.com
a61cdb49b970d13ed67911410634ebf20bf05b5f
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/H5AQQhFhvLWMp9giA_3.py
db920cb06f0b0e787060313a1e8d53e1e434e67d
[]
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
39
py
import re ​ pattern = r'^\s*|\s*$'
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
3562f25f6517f4afb0b4ec5ceb853d99f9d34116
a331ac86bf0dc281b1b819f70110deb873833698
/python/higher/test/setup.py
e4e45f1aa39b2122f55e2f893e2600f14fb9fc1a
[]
no_license
sunhuachuang/study-demo
f0c2bbaca78a6735442039a33a051a8b715f8490
822dfec043d53678c62f5dce407477f9fdd42873
refs/heads/master
2020-07-22T06:16:00.361964
2018-01-08T09:50:50
2018-01-08T09:50:50
66,520,404
0
0
null
null
null
null
UTF-8
Python
false
false
283
py
from setuptools import setup, find_packages setup( name="test", version="0.0.1", keywords=("test", ), description="test package", url="https://github.com/sunhuachuang", author="sun", author_email="huachuang20@gmail.com", packages=find_packages() )
[ "huachuang20@gmail.com" ]
huachuang20@gmail.com
2aced5c4391eace15eacc74cf045c411483606cb
17993dcca87d490bc9841437309f309a5592ab38
/Codes/logistic_regression/mnist_gd_tfdata.py
73d698f2f762ef720a43606f260da1deb67e8ee2
[]
no_license
dreamlikexin/machine_learning
bc86ea15ef8552ad1be78a5bc65fb74a2cdb274e
850e87025270847210b6ad188d2da181983a72c7
refs/heads/master
2022-01-16T09:51:20.538340
2019-06-19T16:27:26
2019-06-19T16:27:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
760
py
import numpy as np from tensorflow.examples.tutorials.mnist import input_data from machine_learning.logistic_regression.lib.logistic_regression_gd import LogisticRegression import machine_learning.logistic_regression.lib.classification_metrics as metrics mnist = input_data.read_data_sets("MNIST_data/", one_hot=False) ...
[ "wanglei@wanglei-mbp.local" ]
wanglei@wanglei-mbp.local
b90c426c5c0356cb66726af358af4424b301208b
1c83920efda583d0dcedda2ac9d91235094685e2
/web/appauth/urls.py
09dc1c47d4ea8a5f66990da9a38e74d9f4098dfe
[]
no_license
eshandas/django_project_template
d866d2d8c5e206b0430e6130bc470042af50b7fa
09786f6201d8e83199a2c0b7a83b6b6b0c8fd285
refs/heads/master
2022-07-22T14:39:50.521081
2019-08-06T11:00:19
2019-08-06T11:00:19
65,455,207
0
1
null
null
null
null
UTF-8
Python
false
false
664
py
from django.urls import path from .views import ( Login, Logout, ForgotPassword, ResetPassword, ChangePassword, UserInfo, Dashboard, ) app_name = 'appauth' urlpatterns = ( path('login/', Login.as_view(), name='login'), path('logout/', Logout.as_view(), name='logout'), path('pas...
[ "eshandasnit@gmail.com" ]
eshandasnit@gmail.com
cf863da28d00b3b02a014b33d5711b05ca1f763f
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp-with-texts/Wellfleet-WFMPC-MIB.py
cd9109a973e88291045a215d99c3d7cdaa215b2e
[ "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
25,685
py
# # PySNMP MIB module Wellfleet-WFMPC-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Wellfleet-WFMPC-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:42:17 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default...
[ "dcwangmit01@gmail.com" ]
dcwangmit01@gmail.com
44d5f850f17713244033a26d848e397da519eccd
af41ca2086f7da6ca036921b2e2cec89e0e5d522
/src/Pyro4/utils/flameserver.py
8d278f20be023c123746e028a09a4f2d8f4c0f03
[ "MIT" ]
permissive
irmen/Pyro4
023830905bb0d8fc25aed8e990631268f7fbe52c
8ec0db055d76ae1512239710b1e30883ee6bd74b
refs/heads/master
2023-08-22T10:18:47.878310
2023-06-04T16:00:32
2023-06-04T16:00:32
11,037,154
667
105
MIT
2022-06-26T14:23:01
2013-06-28T20:25:58
Python
UTF-8
Python
false
false
2,593
py
""" Pyro FLAME: Foreign Location Automatic Module Exposer. Easy but potentially very dangerous way of exposing remote modules and builtins. This is the commandline server. You can start this module as a script from the command line, to easily get a flame server running: :command:`python -m Pyro4.utils.flameserver`...
[ "irmen@razorvine.net" ]
irmen@razorvine.net
d6a5eef6d6e045d62b9c8acd509ebff2eb2df38e
1bd073f585706c31c406bceb81eb400f8ac27c1d
/tools/Polygraphy/examples/api/00_inference_with_tensorrt/load_and_run.py
e6a2a4542f7d1efcfc9ee553b1ebadc2d5df6384
[ "BSD-3-Clause", "MIT", "ISC", "Apache-2.0", "BSD-2-Clause" ]
permissive
neevaco/TensorRT
7b5e54c6a7cc6d0fc545e47ab7cf6656f23d5e19
650a4a6ed29403bec1a55663b48ef41a075d0b3c
refs/heads/neeva
2023-05-29T19:20:26.431716
2022-08-19T23:09:26
2022-08-26T19:09:39
526,771,012
0
0
Apache-2.0
2022-08-19T23:09:27
2022-08-19T22:49:25
null
UTF-8
Python
false
false
1,848
py
#!/usr/bin/env python3 # # SPDX-FileCopyrightText: Copyright (c) 1993-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # # 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...
[ "rajeevsrao@users.noreply.github.com" ]
rajeevsrao@users.noreply.github.com
c8b052e45e49f5ed4a2b6da595120102c8858fdf
aef8eb6681e555ecb61ac67151e4c54d6fdd1023
/plots/plotsTommy/reco/limit_from_plot.py
af021609fd4aa6c7cba619ecabb02483a7fbc6ee
[]
no_license
HephyAnalysisSW/TopEFT
0e2dc89f7a43bacf50c77a042f56663e9d4f3404
53174807c96dffa6654e4dc63bef92f2b71706ee
refs/heads/master
2022-11-07T02:41:53.120759
2020-03-31T08:08:27
2020-03-31T08:08:27
98,643,866
0
3
null
2019-10-14T09:02:09
2017-07-28T11:38:23
Python
UTF-8
Python
false
false
6,928
py
#!/usr/bin/env python ''' Make limit from plot ''' # # Standard imports and batch mode # import ROOT, os ROOT.gROOT.SetBatch(True) ROOT.gROOT.LoadMacro("$CMSSW_BASE/src/StopsDilepton/tools/scripts/tdrstyle.C") ROOT.setTDRStyle() import array from RootTools.core.standard import * from TopEFT.Tools.user ...
[ "robert.schoefbeck@cern.ch" ]
robert.schoefbeck@cern.ch
ce6d3961163e58a9f22bb9d51ea651701b5b7154
9b64f0f04707a3a18968fd8f8a3ace718cd597bc
/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/list_user_login_protects_request.py
66abf386c7fd819e50d5432578b575a2dd82df3a
[ "Apache-2.0" ]
permissive
jaminGH/huaweicloud-sdk-python-v3
eeecb3fb0f3396a475995df36d17095038615fba
83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b
refs/heads/master
2023-06-18T11:49:13.958677
2021-07-16T07:57:47
2021-07-16T07:57:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,065
py
# coding: utf-8 import re import six class ListUserLoginProtectsRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is j...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
c95b725df892a32e5f2b3b50a98bab78b289cd2f
be79025b3bc13fecc54d03db4786c83056bd0b41
/pydir/Special.py
316457ff4915b6c58a99669e6bb6c79a81085941
[]
no_license
brainysmurf/pydir
695875016094d72fe2b4a68d60510129940b664b
35acb56f2f311407efbcfb0c403756425f18e723
refs/heads/master
2021-01-10T21:01:53.988603
2011-08-14T03:33:34
2011-08-14T03:33:34
2,203,880
0
0
null
null
null
null
UTF-8
Python
false
false
93
py
def yo(): """ Program {0} """.format("Yes") pass print(yo.__doc__) help(yo)
[ "amorris@mistermorris.com" ]
amorris@mistermorris.com
17d31d1319d4f86626104931e9945e669c8ebd41
ef41528b736f0ac7927fb110211f016f51362b9a
/Mux_src/aScript_Add_Songs_in_Path.py
de61edc3f4d8b63faeb42e08fd424baa9ff9b05d
[]
no_license
rduvalwa5/Mux
d243edb10121dcd991f5129c367bf918c4bd31e7
2dba11861f91e4bdc1ef28279132a6d8dd4ccf54
refs/heads/master
2023-05-10T06:53:20.249532
2023-04-26T23:53:21
2023-04-26T23:53:21
73,444,154
0
0
null
null
null
null
UTF-8
Python
false
false
603
py
''' Created on Mar 16, 2017 @author: rduvalwa2 ''' from Music_Get_Functions import musicGet_Functions if __name__ == "__main__": mux = musicGet_Functions() myPath = "/Users/rduvalwa2/Music/Music/Media.localized/The Statler Brothers/The Best of the Statler Bros_" album = "The Best of the Statl...
[ "rduvalwa5@hotmail.com" ]
rduvalwa5@hotmail.com
9176f63c57c1e41f0f2eda2e4230db2966440a0b
64bf39b96a014b5d3f69b3311430185c64a7ff0e
/intro-ansible/venv2/lib/python3.8/site-packages/ansible/plugins/test/mathstuff.py
b8251ad42ca082239b0a74e1ffec429da98f11f7
[ "MIT" ]
permissive
SimonFangCisco/dne-dna-code
7072eba7da0389e37507b7a2aa5f7d0c0735a220
2ea7d4f00212f502bc684ac257371ada73da1ca9
refs/heads/master
2023-03-10T23:10:31.392558
2021-02-25T15:04:36
2021-02-25T15:04:36
342,274,373
0
0
MIT
2021-02-25T14:39:22
2021-02-25T14:39:22
null
UTF-8
Python
false
false
1,327
py
# (c) 2016, Ansible, Inc # # This file is part of Ansible # # Ansible 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. # # Ansible is di...
[ "sifang@cisco.com" ]
sifang@cisco.com
4169ad39d56c6d5f14227d8946f7bbe55d190baf
c3432a248c8a7a43425c0fe1691557c0936ab380
/2022/two_pointer/1806_부분합.py
b9e0e04008b3c43ba286237ccdafd8891c2652f6
[]
no_license
Parkyunhwan/BaekJoon
13cb3af1f45212d7c418ecc4b927f42615b14a74
9a882c568f991c9fed3df45277f091626fcc2c94
refs/heads/master
2022-12-24T21:47:47.052967
2022-12-20T16:16:59
2022-12-20T16:16:59
232,264,447
3
0
null
null
null
null
UTF-8
Python
false
false
570
py
import sys N, S = map(int, input().split()) arr = list(map(int, input().split())) def solve(): left = 0 right = 0 sum_value = 0 min_length = sys.maxsize while left < N: if sum_value < S: if right == N: break sum_value += arr[right] right...
[ "pyh8618@gmail.com" ]
pyh8618@gmail.com
f8455f61ade57470067945166776dbd8bbb6fabf
bec402eb6b6ae6cecf53a6d3190568526584a18c
/coursera/models.py
cc8c7cf0c31d1d9e816567887ed6636eeebeb5ce
[]
no_license
Lozoniuk/bionic_python_django
c29ab730bbeacb7d80be935650a3e9b36be3b679
80755b7524d650d99effdf69cc243bd0cdf9b7f5
refs/heads/master
2020-04-01T21:25:09.823735
2014-11-20T12:23:27
2014-11-20T12:23:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
197
py
from django.db import models from django.contrib.auth.models import User class Student(User): group = models.CharField(max_length=200) def __unicode__(self): return self.username
[ "bohdan.korniyenko@gmail.com" ]
bohdan.korniyenko@gmail.com
772b1aa1376317fe86b2851e740a3595c3ade06e
fba6a51f946e71a48c4f7564079ca6e718dbec15
/documenters_aggregator/middlewares.py
98b6425d8773422d676178b71d4fbbf8b684378f
[ "MIT" ]
permissive
milti/documenters-aggregator
2eb87122d18240dbcc27f82561e98a8754009779
96ac8cd2f3d1192d414f1196567a0d4b154f7eda
refs/heads/master
2020-12-30T09:27:28.384703
2017-08-16T00:44:43
2017-08-16T00:44:43
100,422,679
0
0
null
2017-08-15T21:58:38
2017-08-15T21:58:38
null
UTF-8
Python
false
false
1,919
py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # http://doc.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals class DocumentersAggregatorSpiderMiddleware(object): # Not all methods need to be defined. If a method is not defined, ...
[ "davideads@gmail.com" ]
davideads@gmail.com
acb51f21a28766d559c06b940092f26692e89267
dd9a63a074384d465175ea6dc5343a2a5848d3c1
/pyexcel/sheets/nominablesheet.py
7dcada7cf79990eb4de1c77444cdeb68fac2c131
[ "BSD-3-Clause" ]
permissive
nikolas/pyexcel
c95ef11b1f83156c563c04b4ee1957dd886c625f
72bda1b3787584592243a7892817feadcdce210f
refs/heads/master
2021-01-21T17:53:36.336541
2016-08-01T12:21:05
2016-08-01T12:21:05
64,692,577
1
0
null
2016-08-01T18:44:27
2016-08-01T18:44:27
null
UTF-8
Python
false
false
25,410
py
""" pyexcel.sheets.nominablesheet ~~~~~~~~~~~~~~~~~~~ Building on top of formattablesheet, adding named columns and rows support :copyright: (c) 2014-2015 by Onni Software Ltd. :license: New BSD License, see LICENSE for more details """ from .matrix import Row, Column, Matrix from ..formatters imp...
[ "wangc_2011@hotmail.com" ]
wangc_2011@hotmail.com
b243c1eb7fd87338027443c852b9034370f180e6
cc81cc2e5b52bbfe4d13ed6b37859965f7e9408a
/resources/tests.py
0bdef30d6c623104d15067e803172c8249d07683
[]
no_license
youpiyoful/pythonclassmates
edb966e3cdf71d00277e49efb1e16aa4c16bbb5e
08fae9c919b6376239c150697dc9719520c06b1c
refs/heads/master
2023-02-14T17:22:09.349226
2021-01-14T02:56:16
2021-01-14T02:56:16
323,906,893
0
1
null
2021-01-14T01:21:34
2020-12-23T13:17:05
Python
UTF-8
Python
false
false
2,896
py
"""Integration tests of the resources app pages.""" from wagtail.images.blocks import ImageChooserBlock from wagtail.tests.utils import WagtailPageTests from wagtail.tests.utils.form_data import nested_form_data, streamfield from blog.models import BlogPage, PostPage from home.models import HomePage from events.models ...
[ "yoanfornari@gmail.com" ]
yoanfornari@gmail.com
2be30b19aaefb84da5148586d9978e42bae4eaf9
48e124e97cc776feb0ad6d17b9ef1dfa24e2e474
/sdk/python/pulumi_azure_native/insights/get_activity_log_alert.py
d81b36925eeb8c51d68e403b066ae1877a85315e
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
bpkgoud/pulumi-azure-native
0817502630062efbc35134410c4a784b61a4736d
a3215fe1b87fba69294f248017b1591767c2b96c
refs/heads/master
2023-08-29T22:39:49.984212
2021-11-15T12:43:41
2021-11-15T12:43:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,196
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, overload from .. import _utilities from...
[ "noreply@github.com" ]
bpkgoud.noreply@github.com
e497ee7c6fc1d99e7cec72d1a9672e3eaba1d033
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p04001/s666000652.py
8febb46752a063e6eaf83e2495a6012824ec9336
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
1,148
py
# -*- coding: utf-8 -*- S = input() n = len(S) sum_formula = 0 # bit全探索 for bit in range(2 ** (n-1)): nums = [] # 何ビットシフトさせるか num = S[0] for shift in range(n-1): if not ((bit >> shift)&1): num = num + S[shift+1] else: nums.append(int(num)) num = S[sh...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
627bfc86c47a4d66c3aa8d88de13b29fe6301b04
2a171178942a19afe9891c2425dce208ae04348b
/kubernetes/test/test_v1beta1_job_status.py
cfc5fd57f823f4d33a882fee43bf94f753ee86de
[ "Apache-2.0" ]
permissive
ouccema/client-python
ac3f1dee1c5ad8d82f15aeecb87a2f5f219ca4f4
d7f33ec53e302e66674df581904a3c5b1fcf3945
refs/heads/master
2021-01-12T03:17:54.274888
2017-01-03T22:13:14
2017-01-03T22:13:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,436
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.5.0-snapshot Generated by: https://github.com/swagger-api/swagger-codegen.git Licensed under the Apache License, Version 2.0 (the "Li...
[ "mehdy@google.com" ]
mehdy@google.com
c24bb6886a48aaa9e47428e2df5af60d5ed73c55
63daf225819636397fda6ef7e52783331c27f295
/taobao-sdk/top/api/rest/ItemcatsAuthorizeGetRequest.py
fd5db84b60c429ab09a6969487e4d598ee750905
[]
no_license
cash2one/language-Python
e332ecfb4e9321a11407b29987ee64d44e552b15
8adb4f2fd2f023f9cc89b4edce1da5f71a3332ab
refs/heads/master
2021-06-16T15:15:08.346420
2017-04-20T02:44:16
2017-04-20T02:44:16
112,173,361
1
0
null
2017-11-27T09:08:57
2017-11-27T09:08:57
null
UTF-8
Python
false
false
310
py
''' Created by auto_sdk on 2014.03.04 ''' from top.api.base import RestApi class ItemcatsAuthorizeGetRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.fields = None def getapiname(self): return 'taobao.itemcats.authorize.get'
[ "a@ie9.org" ]
a@ie9.org
c8085220e7b6b96d11824d7bb4b34a4c007bc174
1cceb7c7e6d708dc9de0084739f582ccde2633a3
/examples/test_no_sensors.py
647a1dd10226b958ce9207ed3fbddf1dcae15cd9
[ "BSD-3-Clause" ]
permissive
zjtomy/python-rpi-greenhouse
5144d0267aecfa2de240832f3350ec67a5e23955
e263f3b1c933e2d5a174f5b1de1cbb9fc3e8e56f
refs/heads/master
2020-06-28T08:11:48.233302
2015-12-04T13:40:25
2015-12-04T13:40:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
167
py
from rpi_greenhouse import GreenhouseIndicator from time import sleep indicator = GreenhouseIndicator() while True: indicator.show_status_on_leds() sleep(5)
[ "ben@bennuttall.com" ]
ben@bennuttall.com
e261f7fae236ff20693fddc7323d3fc97bb5d8e5
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2851/47329/233364.py
52a521838bcc0f87cedcdc749af9060f67225042
[]
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
80
py
n = int(input()) print(max([sum(map(int, input().split())) for i in range(n)]))
[ "1069583789@qq.com" ]
1069583789@qq.com
72763d657d04cba848de805950347bceacb614cb
79aa4b99a48bb16a907916ad63c902443420541a
/0022.py
d6ffc37f8e6df753e4e3fb2d944ef83a56d7bdfd
[]
no_license
mach8686devops/leetcode-100
62dec66c719d7cfa120ca9505701df49d8d5b982
f90526c9b073165b86b933cdf7d1dc496e68f2c6
refs/heads/main
2023-04-11T06:28:15.059587
2021-04-13T12:11:54
2021-04-13T12:11:54
329,346,572
0
0
null
null
null
null
UTF-8
Python
false
false
872
py
from functools import lru_cache from typing import List class Solution: @lru_cache(None) def generateParenthesis(self, n: int) -> List[str]: if n == 0: return [''] ans = [] for c in range(n): for left in self.generateParenthesis(c): for right in ...
[ "zhangjohn202@gmail.com" ]
zhangjohn202@gmail.com
988438f1bea17c5b2c089e07dac7e8713136fdc0
d91f0dbfeb72e9069803efbe7d230d3836b6759b
/FormExam/FormExam/FormExam/wsgi.py
53e80fb58b7662495aa858acdf1b1d75ff1263be
[]
no_license
daiki-0520/django_practice
98efda419fb98fd6097e69cab4bb046c653082bf
379622a962bcfe08b143c35b84c7e6f60d97df7c
refs/heads/master
2023-03-22T05:41:01.857022
2021-03-19T06:24:03
2021-03-19T06:24:03
341,800,971
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
""" WSGI config for FormExam project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETT...
[ "daiki.20000727@gmail.com" ]
daiki.20000727@gmail.com
3e2c7d114bfedc67dae2e3410fac2792652dc324
a7b66311c2ce113789933ec3162f1128b2862f13
/numeric/scripts/ode_ivp.py
2441368ba7dc04cf56439a1acc9e817fc837164e
[ "MIT" ]
permissive
ChanJeunlam/geolearn
214b2c42359ea1164b39117fad2d7470adeb6d35
791caa54eb70920823ea7d46714dc8a3e7fa7445
refs/heads/master
2023-07-16T04:13:15.526364
2021-08-16T05:24:18
2021-08-16T05:24:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,155
py
import numpy as np import matplotlib.pyplot as plt from numeric import ode # ODE system using euler forwarding def F(t): return np.array([t*np.exp(-2*t), np.exp(-t)]) def dF(t, y): return np.array([-y[0]*2+y[1]**2, y[0]-y[1]-t*y[1]**2]) ny = 2 t = np.arange(0, 10, 0.01) y = np.ndarray([len(t), ny]) y[0,...
[ "geofkwai@gmail.com" ]
geofkwai@gmail.com
efaa18429722ce4503c8ba19e35771809d9e0396
e6e57bf7d4eda37f1188ab72ff249675f40029ee
/algorithms_and_data_structures/strings/Longest Substring Without Repeating Chars.py
eb64961b7d75fe8faebb2d570e7abbd1b9e84eb2
[]
no_license
juanpedrovel/bomboclap
4e186331ef1c26c8522e44c21d6a33358471786b
99db02266c31dd14357ef6a575d35fcf55718617
refs/heads/master
2020-04-19T21:16:38.141830
2019-01-31T00:31:24
2019-01-31T00:31:24
168,436,881
0
0
null
null
null
null
UTF-8
Python
false
false
662
py
class Solution: def lengthOfLongestSubstring(self, s): """ :type s: str :rtype: int """ if not s: return 0 table = {} max_lenght = 0 index = 0 for i in range(len(s)): if s[i] not in table: table[s[i]] = i...
[ "juanpedrovel@gmail.com" ]
juanpedrovel@gmail.com
01365cc5d8a7bed6566b16093c7c394beaa19bc0
18b3d06a8a93839f7e7a1cf536a71bfc0adf8e20
/devel/lib/python2.7/dist-packages/msgs_demo/msg/_AutoDockingActionFeedback.py
6b0cdfd25c794b66c7f618c1b775e595acc632eb
[]
no_license
akingse/ros_tutorial_ws
dc52cbbf443f7823a0abd9223fef076cf959a24e
7c776d2f62af0455a899c80e171d5210e0a8b382
refs/heads/main
2023-03-01T04:48:54.510004
2021-02-08T14:08:18
2021-02-08T14:09:30
337,094,532
4
0
null
null
null
null
UTF-8
Python
false
false
14,247
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from msgs_demo/AutoDockingActionFeedback.msg. Do not edit.""" import codecs import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import actionlib_msgs.msg import genpy import msgs_demo.msg import s...
[ "akingse@qq.com" ]
akingse@qq.com
dd8ba826e8603a45322205319804915132768d87
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/SettleCardInfo.py
c423d25f0cd7537346ab3f05842c9ac0b29eede3
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
6,111
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class SettleCardInfo(object): def __init__(self): self._account_branch_name = None self._account_holder_name = None self._account_inst_city = None self._account_inst_id ...
[ "liuqun.lq@alibaba-inc.com" ]
liuqun.lq@alibaba-inc.com
79cb03ca3c03bf897ace62b065716c192a9ae22a
2a1b8a671aceda6bc446f8ce26400aa84fa444a6
/Packs/CrowdStrikeFalconX/Integrations/CrowdStrikeFalconX/test_data/context.py
3a246853c6d4bb1965a56beadd3cab66b0c8e349
[ "MIT" ]
permissive
demisto/content
6d4722d46f0ff0beea2748e9f7de585bf91a78b4
890def5a0e0ae8d6eaa538148249ddbc851dbb6b
refs/heads/master
2023-09-04T00:02:25.618032
2023-09-03T21:56:22
2023-09-03T21:56:22
60,525,392
1,023
1,921
MIT
2023-09-14T20:55:24
2016-06-06T12:17:02
Python
UTF-8
Python
false
false
44,910
py
from CommonServerPython import DemistoException SEND_UPLOADED_FILE_TO_SENDBOX_ANALYSIS_CONTEXT = { 'submitted_id': 'id', 'state': 'created', 'created_timestamp': '2020-05-12T15:34:11Z', 'environment_id': 160, 'sha256': 'sha256', 'file_name': 'test.pdf' } SEND_URL_TO_SANDBOX_ANALYSIS_CONTEXT = ...
[ "noreply@github.com" ]
demisto.noreply@github.com
e137ef7c38d70656f375646a2aa4195efccc728c
6d54a7b26d0eb82152a549a6a9dfde656687752c
/src/controller/python/test/test_scripts/commissioning_window_test.py
6a113aede20baf05365072828d9a20694ebdf7a0
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
project-chip/connectedhomeip
81a123d675cf527773f70047d1ed1c43be5ffe6d
ea3970a7f11cd227ac55917edaa835a2a9bc4fc8
refs/heads/master
2023-09-01T11:43:37.546040
2023-09-01T08:01:32
2023-09-01T08:01:32
244,694,174
6,409
1,789
Apache-2.0
2023-09-14T20:56:31
2020-03-03T17:05:10
C++
UTF-8
Python
false
false
4,141
py
#!/usr/bin/env python3 # # Copyright (c) 2022 Project CHIP Authors # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lice...
[ "noreply@github.com" ]
project-chip.noreply@github.com
bf46a05ff7701f589104c9dbb546b75c67f08206
6e843cd6fa659696220fe5db8b20c14a4bae7465
/rest/photograph/views.py
033088113bfe0dc21cc479c1aece3a84f172faf0
[ "MIT" ]
permissive
cmu-lib/campi
024f178c00e6ff6a8e477622ec882cbfa9177c06
c2c4bfbf2d5932dde1dde985d7b5c8786b9f2ab2
refs/heads/master
2023-01-13T19:05:01.151517
2020-10-09T13:37:27
2020-10-09T13:37:27
254,439,760
13
0
MIT
2020-11-25T04:12:18
2020-04-09T17:43:35
Python
UTF-8
Python
false
false
12,932
py
from django.db.models import ( Count, Prefetch, OuterRef, Exists, ExpressionWrapper, BooleanField, F, ) from django.db.models.functions import Extract from django.contrib.postgres.search import SearchRank, SearchQuery from rest_framework import viewsets from rest_framework.response import Re...
[ "matthew.d.lincoln@gmail.com" ]
matthew.d.lincoln@gmail.com
d13a948f9a23c48970fce20715c43920dd560cef
cb4cfcece4bc14f591b038adbc7fadccaf447a1d
/FFL.py
ca7c42027fa2499d1ac1f01774358f322ab53de3
[]
no_license
psycho-pomp/CodeChef
ba88cc8e15b3e87d39ad0c4665c6892620c09d22
881edddded0bc8820d22f42b94b9959fd6912c88
refs/heads/master
2023-03-21T06:46:14.455055
2021-03-11T12:07:48
2021-03-11T12:07:48
275,214,989
3
0
null
null
null
null
UTF-8
Python
false
false
422
py
# cook your dish here t=int(input()) for _ in range(t): n,s=map(int,input().split()) p=list(map(int,input().split())) a=list(map(int,input().split())) forward=101 defender=101 for i in range(n): if a[i]==0: defender=min(defender,p[i]) else: forward=min(for...
[ "noreply@github.com" ]
psycho-pomp.noreply@github.com
ae6f6eb11eddca39b273b09aef1c744440f99616
a97fb0584709e292a475defc8506eeb85bb24339
/source code/code/ch1713.py
6b4765d3aa02f8de2a92852301a82b8975666146
[]
no_license
AAQ6291/PYCATCH
bd297858051042613739819ed70c535901569079
27ec4094be785810074be8b16ef84c85048065b5
refs/heads/master
2020-03-26T13:54:57.051016
2018-08-17T09:05:19
2018-08-17T09:05:19
144,963,014
0
0
null
null
null
null
BIG5
Python
false
false
1,037
py
#!/usr/bin/env python # -*- coding: cp950 -*- # 載入wx模組 import wx class myApp(wx.App): def OnInit(self): frame = myFrame() frame.Show() return True # 定義myFrame並繼承wx.Frame類別 class myFrame(wx.Frame): def __init__(self): wx.Frame.__init__( self, None, -1, ...
[ "angelak.tw@gmail.com" ]
angelak.tw@gmail.com
86bd165356c0d04df9db767185f55bfd03bdff46
93684882400d0249ad733249f5b2c8dbd230110f
/ClassExercise & studio/chapter 10/ex.04.py
4c70f122bd5ee54fdb03df271fb9de2af6b7e6e9
[]
no_license
SmileShmily/LaunchCode-summerofcode-Unit1
c492bbed966547cc8c1be7f15d7a23cb989d407b
03474cf77b0dae2bcfaf8513711d3fec72bd4166
refs/heads/master
2021-01-16T23:19:23.413010
2017-06-29T02:49:19
2017-06-29T02:49:19
95,730,117
0
0
null
null
null
null
UTF-8
Python
false
false
333
py
'''Write a function to count how many odd numbers are in a list. ''' import random def countOdd(lst): odd = 0 for e in lst: if e % 2 != 0: odd = odd + 1 return odd # make a random list to test the function lst = [] for i in range(100): lst.append(random.randint(0, 1000)) print(co...
[ "zyxjyaya@gmail.com" ]
zyxjyaya@gmail.com
34dbac9104ddf3232cb07a538b70a5491f9efc58
0d86675d6f69836db9a7cd5244ebc7307d7f997a
/open_spiel/python/algorithms/psro_v2/utils.py
6959c12d3adaa76b18373a5ea2d3617408b5e70c
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
sarahperrin/open_spiel
a7a4ecde1156b458d144989d3d7ef1814577741b
6f3551fd990053cf2287b380fb9ad0b2a2607c18
refs/heads/master
2021-12-25T04:12:19.270095
2021-12-09T16:17:43
2021-12-09T16:17:43
235,547,820
3
0
Apache-2.0
2020-01-22T10:17:41
2020-01-22T10:17:40
null
UTF-8
Python
false
false
15,286
py
# Copyright 2019 DeepMind Technologies Ltd. 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 appl...
[ "DeepMind technologies Ltd" ]
DeepMind technologies Ltd
0b428bafc96d69a7ec8a727903cea42cf0da8fd4
3c0f93b707e94b8e1363588a1699ab7d663d8f98
/bin/extract-extrema
9c4d337bd4e25c292cd676ab2f7aee1be00d2d98
[ "MIT" ]
permissive
reedessick/universality
3b9c39dbf3d15fe6fe824ac124cbecec5d3f1836
d4eaf5ee6ea1ecf79f0ec32ea5e62093c95d4b57
refs/heads/master
2023-07-13T19:31:38.277188
2023-06-25T23:03:14
2023-06-25T23:03:14
118,136,331
2
2
MIT
2023-04-25T17:29:33
2018-01-19T14:39:26
Python
UTF-8
Python
false
false
3,553
#!/usr/bin/env python3 """an executable to extract extrema from a single CSV """ __author__ = "Reed Essick (reed.essick@gmail.com)" #------------------------------------------------- import os import numpy as np from argparse import ArgumentParser ### non-standard libraries from universality.utils import io from u...
[ "reed.essick@ligo.org" ]
reed.essick@ligo.org
add0946623b02c0745122b9f79576c4775ae89d3
be0898ceaee2a7758ffe0365b976f597b2ad26dd
/rls/common/when.py
e669f55384cf6128b09564efcdf3616c92ce3403
[ "Apache-2.0" ]
permissive
violet712/RLs
1edaa6427108e3e36d513cb6038be771837ecca4
25cc97c96cbb19fe859c9387b7547cbada2c89f2
refs/heads/master
2023-08-25T12:04:24.174034
2021-10-03T15:37:32
2021-10-03T15:37:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,196
py
# Added from https://github.com/danijar/dreamerv2/blob/main/dreamerv2/common/when.py class Every: def __init__(self, every): self._every = every self._last = None def __call__(self, step): step = int(step) if not self._every: return False if self._last is N...
[ "keavnn.wjs@gmail.com" ]
keavnn.wjs@gmail.com
1c8e159794e5cfb1b219726ba7ee4901f03e4a45
e4ec5b6cf3cfe2568ef0b5654c019e398b4ecc67
/azure-cli/2.0.18/libexec/lib/python3.6/site-packages/azure/mgmt/monitor/models/log_profile_resource.py
f9ecb885b923e3bdda411b695f0559bb08ac013c
[]
no_license
EnjoyLifeFund/macHighSierra-cellars
59051e496ed0e68d14e0d5d91367a2c92c95e1fb
49a477d42f081e52f4c5bdd39535156a2df52d09
refs/heads/master
2022-12-25T19:28:29.992466
2017-10-10T13:00:08
2017-10-10T13:00:08
96,081,471
3
1
null
2022-12-17T02:26:21
2017-07-03T07:17:34
null
UTF-8
Python
false
false
3,481
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 ...
[ "Raliclo@gmail.com" ]
Raliclo@gmail.com
1374e0b0e8afa74b17c2f850934167d58caa106d
1ac87c808c33336338f359f0233593a8e603f45e
/allauth/socialaccount/providers/github/models.py
9db7841b25cbd32da8ff47e04218751cb5eb7996
[ "MIT" ]
permissive
chhabrakadabra/django-allauth
140a10de87061f7d60e1fa692b98b64afb9f987e
19c7070c1b777b7ad69c2c6fd59571cc5a18f4e4
refs/heads/master
2021-01-15T20:19:26.777224
2012-06-19T04:26:29
2012-06-19T04:26:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
373
py
from allauth.socialaccount import providers from allauth.socialaccount.providers.base import Provider, ProviderAccount class GitHubAccount(ProviderAccount): pass class GitHubProvider(Provider): id = 'github' name = 'GitHub' package = 'allauth.socialaccount.providers.github' account_class = GitHub...
[ "raymond.penners@intenct.nl" ]
raymond.penners@intenct.nl
0ea1c176cc778405f57d3480c00c550dd52c912d
e23a4f57ce5474d468258e5e63b9e23fb6011188
/070_oop/001_classes/_exercises/_templates/ITDN Python RUS/002_Nasledovanie i Polimorfizm/07-complex-hierarchy-mro.py
fdcb6405dbda80c5c907ab54361512d72eeb6716
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
1,916
py
# # -*- coding: utf-8 -*- # # # """ # Ещё один пример использования super и построения интерпретатором линеаризации. # Иерархия классов в данном примере: # object # / \ # / \ # A B # \ /| # \ / | # \ / | # ...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
3497af07bb08348af9c4922ec8bd53d41bfe1fa4
7bd5ca970fbbe4a3ed0c7dadcf43ba8681a737f3
/atcoder/other/lang_test_v1/d.py
6fd5f61c90ff0b66f7c278d91505477cd77d5fe2
[]
no_license
roiti46/Contest
c0c35478cd80f675965d10b1a371e44084f9b6ee
c4b850d76796c5388d2e0d2234f90dc8acfaadfa
refs/heads/master
2021-01-17T13:23:30.551754
2017-12-10T13:06:42
2017-12-10T13:06:42
27,001,893
0
0
null
null
null
null
UTF-8
Python
false
false
719
py
# -*- coding: utf-8 -*- import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll N = int(raw_input()) md = [map(int, raw_input().split("/")) for i in xrange(N)] days = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] day = 1 yobi = 6 hurikae = 0 seq = 0 ans = 0 for month in xrange(1, 13): ...
[ "roiti46@gmail.com" ]
roiti46@gmail.com
bfffbcc498ac8cd37e2b430fca1a96b35ea64a56
384d0be5ac54b306b945cf38c10d9b0a44c975ea
/devstack/tools/jenkins/jenkins_home/print_summary.py
1d71a4a8ebc7b254f088afcd8a132aed0bbd2b19
[]
no_license
ashokcse/openstack-bill
05ae313637b3cfecba946d2a9b32e8c7609fc721
1a3d7575d4b341f64fa1764ed47e47a7504a9bcc
refs/heads/master
2021-01-18T14:05:24.696165
2012-09-12T11:29:20
2012-09-12T11:29:20
5,424,267
5
2
null
null
null
null
UTF-8
Python
false
false
1,208
py
#!/usr/bin/python import urllib import json import sys def print_usage(): print "Usage: %s [jenkins_url (eg. http://50.56.12.202:8080/)]"\ % sys.argv[0] sys.exit() def fetch_blob(url): return json.loads(urllib.urlopen(url + '/api/json').read()) if len(sys.argv) < 2: print_usage() BASE_U...
[ "ashokcse@live.com" ]
ashokcse@live.com
9f79fa06ef66ddb7cd1d963ace3346532d9816b1
dfcaf26ef27684c7f1e69b7e90ac55094158115d
/paper/pnoise.py
d921844ebbea85d25dbd7430145b0a9781503021
[]
no_license
msyriac/halofg
e038bbacf9332091087be657b39f274cb5507c01
d1aaf54624a3d8bae9eeba667c6e895621a06f24
refs/heads/master
2021-01-21T06:10:04.264115
2018-04-02T02:26:23
2018-04-02T02:26:23
101,939,544
1
0
null
null
null
null
UTF-8
Python
false
false
2,538
py
from __future__ import print_function from orphics import maps,io,cosmology from enlib import enmap import numpy as np import os,sys import healpy as hp proot = "/gpfs01/astro/workarea/msyriac/data/planck/" import matplotlib as mpl from cycler import cycler mpl.rcParams['axes.prop_cycle'] = cycler(color=['#2424f0','#...
[ "mathewsyriac@gmail.com" ]
mathewsyriac@gmail.com
cb1f949112c1df4a50c10d67945f99d7b80e5ba8
448fd7b58f53b6b8394a2a4a8f6325c3b731afa8
/EXE_RP/PROJECT.DailyControls/assetssum.py
01820f1bebe0360217d12028334f0fb3798ecb9a
[]
no_license
webclinic017/TraderSoftwareRP
7c4a5833226f54c84d941830adc26263e984f957
3996bb4b1add72901530079d0a2b7aa6a7b33680
refs/heads/master
2022-04-17T13:29:03.724522
2020-04-12T07:48:00
2020-04-12T07:48:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,830
py
import os, sys, glob, csv, subprocess, datetime, shutil, subprocess, time ################### path = os.getcwd() + '/' test = path + 'test/' print path ######### footerfile = open(bconfig + 'footer.' + countrytag + '.' + currency + '.txt', 'r') sfarea = path + 'DATA/SFDATA/' outfile = open(test + '.asset...
[ "reprior123@gmail.com" ]
reprior123@gmail.com
c4833fd78cb4f1385717b3b9920ad922d0188f62
b6b30fb06124883b074144c419b43d9182efcdff
/CV/optical_flow.py
25910a23c86c039d5993508aecf7a546dac33369
[]
no_license
JohnnySunkel/BlueSky
da9f5107034289bfbdd3ba40458f9b9bd8d01a13
5a20eba9ef7509a5a7b7af86e7be848242e1a72f
refs/heads/master
2021-07-07T09:57:37.256950
2020-09-02T23:06:46
2020-09-02T23:06:46
166,883,639
0
0
null
null
null
null
UTF-8
Python
false
false
4,754
py
import cv2 import numpy as np # Define a function to track the object def start_tracking(): # Initialize the video capture object cap = cv2.VideoCapture(0) # Define the scaling factor for the frames scaling_factor = 0.5 # Number of frames to track num_frames_to_track = 5 # N...
[ "noreply@github.com" ]
JohnnySunkel.noreply@github.com
a0f701624c8c135034af750da087fe9d8ef8866d
54985d2bc6649272d877bfb10df0572a97fb934e
/tests/record_expert_demonstrations.py
9fcc1349c43f65519a88ba2dd37a699007a2a190
[ "MIT" ]
permissive
panlybero/gym-novel-gridworlds
d28a9b282c37327d98bfb19e87a9b1d35bf0aae9
b375cb674337b6cd3c33b165d323cf98b46095e3
refs/heads/master
2022-12-04T23:48:10.462777
2020-07-19T23:15:12
2020-07-19T23:15:12
283,211,610
0
0
MIT
2020-07-28T12:52:44
2020-07-28T12:52:43
null
UTF-8
Python
false
false
1,929
py
import time import gym import gym_novel_gridworlds import keyboard from stable_baselines import DQN from stable_baselines.gail import generate_expert_traj from constant import ENV_KEY """ Generate Expert Trajectories from a model """ # env_id = 'NovelGridworld-v2' # model = DQN('MlpPolicy', env_id, verbose=1) # #...
[ "gtatiya@live.com" ]
gtatiya@live.com
1d9396075c10dcb708d2f88d7167d560926b1b1b
ae101caf03a373e3ad6a2ea0fddd99038574e73f
/Original.__init__.py
0b4c2cc912389abe4e056e8a1d7be94cc1fcf062
[]
no_license
internetimagery/todo
df9be99c34761191c4322eb315681fcd4e9a1cf8
ed09c14f231da5613ec86a2a6ff6683d9a663eb1
refs/heads/master
2020-05-30T22:48:07.645472
2015-12-29T10:44:40
2015-12-29T10:44:40
34,398,039
0
0
null
null
null
null
UTF-8
Python
false
false
26,390
py
# coding: utf-8 # Todo script for Maya # Created by Jason Dixon. # 02.05.15 # https://github.com/internetimagery/todo import maya.utils as utils import maya.cmds as cmds import webbrowser import subprocess import threading import traceback import urlparse import difflib import random import addons import base64 import...
[ "jason.dixon.email@gmail.com" ]
jason.dixon.email@gmail.com
b8f64295f2228f7b120165c28fa4d3c69a7d8e41
31780af7a5558523def1aae5f25df3e0b084be9b
/reg1.py
71aae85831ae6835718ea909d9d9ae25a68bd9aa
[]
no_license
sevilaybayatli/PYTHS19
1796615ff939f2e98ce657feeaa3efd47a2e66c6
ae0607e215a0d8205475d124c0362c39881e5eda
refs/heads/master
2020-07-23T16:12:17.922548
2020-03-23T22:03:00
2020-03-23T22:03:00
207,624,169
0
0
null
null
null
null
UTF-8
Python
false
false
207
py
import re def checkOfString(string): chare=re.compile(r'[^a-zA-Z0-9.]') string=chare.search(string) return not bool(string) print(checkOfString('AgfsrWCB12.')) print(checkOfString('*"q@aQ'))
[ "sevilaybayatli@gmail.com" ]
sevilaybayatli@gmail.com