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
fdd57a47de5f55ea470232da56fddf9705ce85ae
d442044fca0cb5c2102845c93194246273b3778b
/event_participant_labels/event_participant.py
fa3118b33c26f27f76ace611464af7b6d91e8720
[]
no_license
vertelab/odoo-event-extra
f9d0ee7ac5140ee2cbcb15fbb7af61d1772aaa2e
63dd0b981b23941bae18d2d968b34a7977bc7699
refs/heads/master
2022-07-09T00:26:50.416313
2020-07-01T15:28:58
2020-07-01T15:28:58
47,540,528
2
3
null
null
null
null
UTF-8
Python
false
false
1,562
py
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution, third party addon # Copyright (C) 2004-2016 Vertel AB (<http://vertel.se>). # # This program is free software: you can redistribute it and/or modify # it under...
[ "anders.wallenquist@vertel.se" ]
anders.wallenquist@vertel.se
2c2813d3ae5577ac8185b8e3feff5f018541b05e
35b59ea3b2800b170f82ccec229c88e102e1f4bd
/calculator/codes/solution/pythonprogs/calc_mul.py
30e609967c7df02a1c063aeb0c570826c1787858
[]
no_license
gadepall/LA1400
efcc47c708efee9bebe8db415cd80997db64e834
bbdccf26b2f1c6a40325c139e8e406f923eb023f
refs/heads/master
2020-03-24T16:32:50.508068
2018-07-30T05:14:02
2018-07-30T05:14:02
142,827,762
0
0
null
null
null
null
UTF-8
Python
false
false
3,687
py
#-*-coding: utf-8-*- #Don't remove the above line #This program uses a C routine for multiplication #in the calculator. Other arithmetic operations are not included. from Tkinter import * from ctypes import * import math class calc: def getandreplace(self): """replace x with * and ÷ with /""" self.expressi...
[ "gadepall@gmail.com" ]
gadepall@gmail.com
484d13dc81d16a486d91bb29c9c89c4680416a38
f8933a29319d9062b3f0070d133b9e533efbbc50
/trilpy/ldpnr.py
75544f25ee6722c4f87c617177f690c39f7b0b18
[]
no_license
zimeon/trilpy
13c999eb164c0a935abfdd4c94a7ab842c53cf67
825bd803ed5e5d7b6c906067a4c406a4db18c9c6
refs/heads/master
2021-01-16T23:24:39.374726
2018-07-24T03:28:09
2018-07-24T03:28:09
95,748,971
1
2
null
2018-02-07T20:39:00
2017-06-29T07:07:14
Python
UTF-8
Python
false
false
771
py
"""An LDPNR - LDP Non-RDF Source.""" from .ldpr import LDPR from .namespace import LDP class LDPNR(LDPR): """LDPNR - A binary object. An LDPR whose state is not represented in RDF. For example, these can be binary or text documents that do not have useful RDF representations. See <https://www.w3...
[ "simeon.warner@cornell.edu" ]
simeon.warner@cornell.edu
b4c12bac0b2b9b434698891190b175383559a6af
7742d4ac18867efa9cb976cea831288f9b4887f9
/tensorflow/contrib/estimator/python/estimator/multi_head_test.py
16177aebd53cbff5c8fd727477ac5d18c9f8bce5
[ "Apache-2.0" ]
permissive
liulimin90/tensorflow
cf83a69088329863e5da81a46f550578287ba8a5
daf17e8c041ad9441da57e15e791bfac7553d727
refs/heads/master
2021-08-07T21:18:04.576892
2017-11-08T22:19:12
2017-11-08T22:19:12
110,049,267
1
0
null
2017-11-09T01:05:43
2017-11-09T01:05:43
null
UTF-8
Python
false
false
16,240
py
# Copyright 2017 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 applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
8968aa043a78587dbecbfc6589d1382d05f98626
814992618962991b1b6dd6f1cdf2853687cbfcd0
/quantarhei/qm/propagators/svpropagator.py
e235da8d523f349c30ad53ed9290882148e6a24d
[ "MIT" ]
permissive
MichalPt/quantarhei
a5db7916405236dc78778e4ef378141a19a28ff2
536d4f39bb7f7d6893664520351d93eac2bc90f1
refs/heads/master
2022-12-15T09:36:53.108896
2022-07-28T09:44:12
2022-07-28T09:44:12
226,359,238
1
0
MIT
2019-12-06T15:37:24
2019-12-06T15:37:23
null
UTF-8
Python
false
false
2,624
py
# -*- coding: utf-8 -*- """ StateVector propagator """ import numpy from .statevectorevolution import StateVectorEvolution from ..hilbertspace.evolutionoperator import EvolutionOperator from ... import REAL class StateVectorPropagator: def __init__(self, timeaxis, ham): self.timeaxis = ...
[ "tmancal74@gmail.com" ]
tmancal74@gmail.com
f7c48c6551b9cc700832df0bd94985a171d283a6
8c643886e810f09a2c596066911300ceec64605b
/exercises/chapter03/data/simple2_solution.py
ad2ae388f43b368e5a606e792400b47e8732cef7
[ "MIT" ]
permissive
matt-gardner/test-allennlp-course
fea62c18c983e5a76927a2e8b97ba30081f6838a
15b18144c30cfcdbe9acf5ad9bb30e24f6522d11
refs/heads/master
2023-01-28T05:10:03.787036
2019-06-13T20:16:12
2019-06-13T20:16:12
191,823,476
6
1
MIT
2023-01-11T20:28:39
2019-06-13T19:44:21
CSS
UTF-8
Python
false
false
1,214
py
from allennlp.data.fields import TextField from allennlp.data.token_indexers import SingleIdTokenIndexer, TokenCharactersIndexer from allennlp.data.tokenizers import WordTokenizer, CharacterTokenizer from allennlp.data import Vocabulary # Splits text into characters (instead of words or wordpieces). tokenizer = Charac...
[ "mattg@allenai.org" ]
mattg@allenai.org
4e618625235505db5cacd9c840d94bebff946ac7
75d8667735782cd1d0eb4877e52c89da5cd92dde
/nova/scheduler/driver.py
da8568c970018cf13ea07a0bcacab608bf2c9ac6
[ "Apache-2.0" ]
permissive
bopopescu/nova-token
ffecfd3ec561936b7d9d7e691bc57383cde05436
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
refs/heads/master
2022-11-22T09:53:31.073483
2016-05-14T02:47:01
2016-05-15T22:02:55
282,105,621
0
0
Apache-2.0
2020-07-24T02:42:19
2020-07-24T02:42:18
null
UTF-8
Python
false
false
4,264
py
begin_unit comment|'# Copyright (c) 2010 OpenStack Foundation' nl|'\n' comment|'# Copyright 2010 United States Government as represented by the' nl|'\n' comment|'# Administrator of the National Aeronautics and Space Administration.' nl|'\n' comment|'# All Rights Reserved.' nl|'\n' comment|'#' nl|'\n' comment|'# Lice...
[ "dmg@uvic.ca" ]
dmg@uvic.ca
3746bcad6abb98b4692490cc69798029096ca777
2ff7e53d5e512cd762217ca54317982e07a2bb0c
/eve/client/script/ui/shared/neocom/attributes.py
8ba6cb12ed61f8ac0ac1c5e816617ba2ad9a4bc9
[]
no_license
nanxijw/Clara-Pretty-One-Dick
66d3d69426642b79e8fd4cc8e0bec23adeeca6d6
50de3488a2140343c364efc2615cf6e67f152be0
refs/heads/master
2021-01-19T09:25:07.555284
2015-02-17T21:49:33
2015-02-17T21:49:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
22,035
py
#Embedded file name: eve/client/script/ui/shared/neocom\attributes.py """ This file contains the UI needed to view and respec your attributes independently from the character sheet """ import blue import uiprimitives import uicontrols import util import form from carbonui.primitives.container import Container from carb...
[ "billchang.e@gmail.com" ]
billchang.e@gmail.com
3aa77a9c0f183d217f06a630f4191d7fb841a73d
ca3ff0bc4f7e9e8fcf677afa3a1a18dd2129a5d4
/daily_problems/problem_0_to_100/problem_86.py
42defc172f8b8a0ea3af081435c7fda161acd383
[ "MIT" ]
permissive
rrwt/daily-coding-challenge
d9b23a82a1a3c4824b8f1aeacf6584afc5189ce7
4dcd59eaff021be0b9b1aba1dda73248c81454b7
refs/heads/master
2022-05-29T04:32:44.406196
2022-05-25T01:12:01
2022-05-25T01:12:01
181,972,357
1
0
MIT
2021-04-20T19:58:43
2019-04-17T21:41:25
Python
UTF-8
Python
false
false
1,125
py
""" Given a string of parentheses, write a function to compute the minimum number of parentheses to be removed to make the string valid (i.e. each open parenthesis is eventually closed). For example, given the string "()())()", you should return 1. Given the string ")(", you should return 2, since we must remo...
[ "rohitrawat2000@gmail.com" ]
rohitrawat2000@gmail.com
42ea4f4a66ce8ed2ede113d9666e461fe30a5244
af43615e07f2bfaa908d6d96b4c90f98ce3ad47b
/rdr_service/lib_fhir/fhirclient_1_0_6/models/deviceusestatement.py
642e4f165a8b132be219bba1db9b4de5dc7ab412
[ "BSD-3-Clause" ]
permissive
all-of-us/raw-data-repository
11aa25385543f5f8ef706663b79ce181775c1c9a
461ae46aeda21d54de8a91aa5ef677676d5db541
refs/heads/devel
2023-09-01T06:47:25.710651
2023-09-01T01:18:56
2023-09-01T01:18:56
66,000,771
46
22
BSD-3-Clause
2023-09-14T21:06:38
2016-08-18T13:47:08
Python
UTF-8
Python
false
false
3,846
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 1.0.2.7202 (http://hl7.org/fhir/StructureDefinition/DeviceUseStatement) on 2016-06-23. # 2016, SMART Health IT. from . import domainresource class DeviceUseStatement(domainresource.DomainResource): """ None. A record of a device bei...
[ "noreply@github.com" ]
all-of-us.noreply@github.com
316f82491c8f735a152f72a405f04e15d34d706e
0cf054b1740339b22d3211695e44e11e68c81328
/suggestion/analysis_util.py
d03d3e3988a20faeabe5cc43261d257a8d83659e
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
kcarnold/sentiment-slant-gi18
076aaf557c8e33c84349f78a883c0fa3210e9ada
6028b42627e3eec14a1f27986f8925d8b1e6ad9c
refs/heads/master
2022-07-01T10:20:50.314847
2017-09-13T23:03:14
2017-09-13T23:03:14
125,105,730
0
0
null
null
null
null
UTF-8
Python
false
false
5,623
py
import os try: import ujson as json except ImportError: import json import re import numpy as np from suggestion.util import mem from suggestion.paths import paths import subprocess # # Data for decoding surveys. # skip_col_re = re.compile( r'Great.job|Q_\w+|nextURL|clientId|Timing.*|Browser.*|Location.*|...
[ "kcarnold@alum.mit.edu" ]
kcarnold@alum.mit.edu
bd3081c830696819735002e529dbbb9483b40d02
7d8cafdc9e2a00979381f93149ba247b400badf9
/RequestDemo/script/add_house_develop.py
bb2ea12dfe5ca4bfef7b578ecc96101b3055b62a
[]
no_license
zhonglinglong/isz_request
1987d0897aac390c77a018a08bd0a65647eaf4c4
8eccabfd8bcefdb58f79db0cd9cb5f3f9d227b3a
refs/heads/master
2021-05-12T06:20:22.312090
2018-01-18T11:59:28
2018-01-18T11:59:28
117,217,090
1
0
null
null
null
null
UTF-8
Python
false
false
13,002
py
# -*- coding:utf8 -*- from time import sleep import pymysql import json from requests import Session import sys reload(sys) sys.setdefaultencoding('utf8') sqlConn = pymysql.connect(host='192.168.0.208', user='zhonglinglong', password='zll.123',db='isz_erp_npd',charset='utf8',port=3306) sqlCursor = sqlConn.cursor() ...
[ "125772195@qq.com" ]
125772195@qq.com
045342ac2e42a05f9cab53a4746fa576a9d0dea4
244ecfc2017a48c70b74556be8c188e7a4815848
/res_bw/scripts/common/lib/xml/dom/minidom.py
b74bd0880ba9e6ca29ea81fe6f521e6852347bd7
[]
no_license
webiumsk/WOT-0.9.12
c1e1259411ba1e6c7b02cd6408b731419d3174e5
5be5fd9186f335e7bae88c9761c378ff5fbf5351
refs/heads/master
2021-01-10T01:38:36.523788
2015-11-18T11:33:37
2015-11-18T11:33:37
46,414,438
1
0
null
null
null
null
WINDOWS-1250
Python
false
false
60,353
py
# 2015.11.18 12:06:40 Střední Evropa (běžný čas) # Embedded file name: scripts/common/Lib/xml/dom/minidom.py """Simple implementation of the Level 1 DOM. Namespaces and other minor Level 2 features are also supported. parse("foo.xml") parseString("<foo><bar/></foo>") Todo: ===== * convenience methods for getting e...
[ "info@webium.sk" ]
info@webium.sk
81aa4a71b40e0f4171ac987b67ac21022703be28
200b310a18514177117cda1d1faed81dbfaa3a3e
/devel/.private/bwi_moveit_utils/lib/python2.7/dist-packages/bwi_moveit_utils/srv/_MoveitJointPose.py
0bd46260d0c17d725b0ae73147cbfad24f3bb357
[]
no_license
YoheiHayamizu/rl_ws
c63aedd2dc539bd56398dd19eafe9932bc598040
7fdde2f72a3b9cbef585e218d568e8c44c2e374e
refs/heads/main
2023-08-16T09:29:33.289334
2021-10-23T20:59:08
2021-10-23T20:59:08
420,521,618
0
0
null
null
null
null
UTF-8
Python
false
false
70,169
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from bwi_moveit_utils/MoveitJointPoseRequest.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import moveit_msgs.msg import geometry_msgs.msg import shape_msgs.msg import o...
[ "hayamizu0111@gmail.com" ]
hayamizu0111@gmail.com
3d7128ad8c2784853ee5a33f3ae54cdc77d44044
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02778/s805881510.py
4e1cfd4d744d78cdc97b17f641d6bcb6444548dc
[]
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
121
py
S=input() list=list(S) a=len(list) answer=[] s=0 while s<a: answer.append('x') s=s+1 y=''.join(answer) print(y)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
04aa06f4bac7b7bbb2b7030e09e1f27f1ed8fde4
6206ad73052b5ff1b6690c225f000f9c31aa4ff7
/Code/Reshape the Matrix.py
360911bc17af54a593ab369ee1c177df5d68cbb7
[]
no_license
mws19901118/Leetcode
7f9e3694cb8f0937d82b6e1e12127ce5073f4df0
752ac00bea40be1e3794d80aa7b2be58c0a548f6
refs/heads/master
2023-09-01T10:35:52.389899
2023-09-01T03:37:22
2023-09-01T03:37:22
21,467,719
0
0
null
null
null
null
UTF-8
Python
false
false
1,005
py
class Solution: def matrixReshape(self, mat: List[List[int]], r: int, c: int) -> List[List[int]]: m, n = len(mat), len(mat[0]) #Get dimensions. if m * n != r * c: #If total number of elements do not match, cannot reshape so return mat. ...
[ "noreply@github.com" ]
mws19901118.noreply@github.com
e38ae86f9b1b30b7cde74169a92408df5d3a5d51
8ce2ef401bfa8a7edc075f30671ceb7e12001566
/tensorflow/contrib/distribute/python/estimator_training_test.py
018512ae5a22eaa7fb78a8c4e5918fec22eb8178
[ "Apache-2.0" ]
permissive
TomZRoid/tensorflow
e8167a31dcd707279365c8ee5ec283c00edaafba
89390faf68c153ef8bea0e20ba128c0d54cee0e0
refs/heads/master
2020-03-30T22:38:50.662448
2018-11-08T06:25:34
2018-11-08T06:25:34
151,673,686
2
0
Apache-2.0
2018-10-05T05:15:45
2018-10-05T05:15:44
null
UTF-8
Python
false
false
23,226
py
# Copyright 2018 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 applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
778b02ce1304dfc64f45b5c82dc3ad7d820143a9
bad62c2b0dfad33197db55b44efeec0bab405634
/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/operations/_job_operation_results_operations.py
669fb507126bbbd85b124e09a62c97d867745408
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
test-repo-billy/azure-sdk-for-python
20c5a2486456e02456de17515704cb064ff19833
cece86a8548cb5f575e5419864d631673be0a244
refs/heads/master
2022-10-25T02:28:39.022559
2022-10-18T06:05:46
2022-10-18T06:05:46
182,325,031
0
0
MIT
2019-07-25T22:28:52
2019-04-19T20:59:15
Python
UTF-8
Python
false
false
4,956
py
# pylint: disable=too-many-lines # 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) AutoRe...
[ "noreply@github.com" ]
test-repo-billy.noreply@github.com
aa9712bce0f3ef3690bb9a42fab492d7fae1aaf2
5332fef91e044555e605bb37cbef7c4afeaaadb0
/hy-data-analysis-with-python-spring-2019-OLD/part01-e04_multiplication_table/src/multiplication_table.py
aa3628c78721753935ebdfc0a18b3e1524ce97a2
[]
no_license
nopomi/hy-data-analysis-python-2019
f3baa96bbe9b6ee7f0b3e6f6b8b0f3adfc3b6cc8
464685cb377cfdeee890a008fbfbd9ed6e3bcfd0
refs/heads/master
2021-07-10T16:16:56.592448
2020-08-16T18:27:38
2020-08-16T18:27:38
185,044,621
4
0
null
null
null
null
UTF-8
Python
false
false
191
py
#!/usr/bin/env python3 def main(): for i in range(1,11): for j in range(1,11): print(str(i*j)+'\t', end="") print('') if __name__ == "__main__": main()
[ "miska.noponen@gmail.com" ]
miska.noponen@gmail.com
24a21563e8b0f54b4f865519a0221f033b7f345c
2ab759b4796e36cee89df3718b7042eb527e4b26
/args.py
2ad011c5c0ff5f89e7e555c02e1b52b469c6fbe4
[ "Apache-2.0" ]
permissive
zhangjunjieGit/bert-utils
b78d289effedfa64716219b771a370c410f3d066
7142632ea6b2e6656a2873a60971dbf7330f9550
refs/heads/master
2020-08-22T06:47:33.103393
2019-10-20T09:58:54
2019-10-20T09:59:05
216,340,794
1
0
Apache-2.0
2019-10-20T10:00:53
2019-10-20T10:00:53
null
UTF-8
Python
false
false
748
py
import os import tensorflow as tf tf.logging.set_verbosity(tf.logging.INFO) file_path = os.path.dirname(__file__) model_dir = os.path.join(file_path, 'chinese_L-12_H-768_A-12/') config_name = os.path.join(model_dir, 'bert_config.json') ckpt_name = os.path.join(model_dir, 'bert_model.ckpt') output_dir = os.path.join(...
[ "zjiuzhou@gmail.com" ]
zjiuzhou@gmail.com
399eeab0b7aac90ad1fbae0cecd4ca49be31ec81
7437b9482592119dd6b4fc78706fed1c7c7df89f
/modules/neighbour_covariance_op.py
520f8756b84359cebb69699864b5c50b00d2df88
[ "BSD-3-Clause" ]
permissive
cms-pepr/HGCalML
163c5f2b0ca1079003628b5a53a4aee2305fb3e9
d28477501d93992d25c22b7d5c355a3da3bffa5c
refs/heads/master
2023-08-31T03:33:31.294369
2023-05-10T15:51:59
2023-05-10T15:51:59
236,987,707
11
13
BSD-3-Clause
2023-08-08T12:43:50
2020-01-29T13:25:18
Python
UTF-8
Python
false
false
1,973
py
import tensorflow as tf from tensorflow.python.framework import ops from accknn_op import AccumulateKnn def NeighbourCovariance(coordinates, distsq, features, n_idxs): ''' expands to V x F x C**2, but not in the neighbour dimension Feed features without activation! ''' fea...
[ "jkiesele@cern.ch" ]
jkiesele@cern.ch
d7552e3b106bb7b596621fa2810ed985b0175dd9
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03013/s787334180.py
28e033a57e8473172944172d8c1031ab7c555e8e
[]
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
324
py
N, M = map(int, input().split()) if N == 1: print(1) else: s = [-1] * N s[0] = 1 s[1] = 1 for m in range(0, M): i = int(input()) s[i] = 0 for n in range(2, N): if s[n] == 0: continue s[n] = s[n - 1] + s[n - 2] print((s[N-1] + s[N-2]) % 10000000...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
ab08ca6833912ff2321dd2234faded534afab1ab
c13ccf912360f02010f3185dc29f3e72205984dd
/Hauz/migrations/0015_auto_20180119_0824.py
a94915c8159be33de7285c6226946eca01f3f871
[ "MIT" ]
permissive
VirginiaNdungu1/HauzBox
e3dd238b8ef302e69dd4cefa2036a50500b6f3bc
c586d221a903f2be681b895eec20dd01664ce141
refs/heads/master
2021-05-15T05:41:37.189912
2018-01-31T14:45:43
2018-01-31T14:46:18
116,761,502
1
0
null
null
null
null
UTF-8
Python
false
false
519
py
# Generated by Django 2.0.1 on 2018-01-19 05:24 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('Hauz', '0014_auto_20180119_0821'), ] operations = [ migrations.AlterField( model_name='house', ...
[ "ndungu.wairimu22@gmail.com" ]
ndungu.wairimu22@gmail.com
79dcbfe3d5544e48a61ca3c29afc26988d642d42
64bf39b96a014b5d3f69b3311430185c64a7ff0e
/intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/chocolatey/chocolatey/plugins/modules/win_chocolatey_source.py
cae7637ea3d821e51ef6c10dfcf1d8769d184a97
[ "LicenseRef-scancode-unknown-license-reference", "GPL-3.0-only", "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
3,734
py
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2018, Ansible Project # Copyright: (c) 2020, Chocolatey Software # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
[ "sifang@cisco.com" ]
sifang@cisco.com
a9daa25aa586b9c519f86b630fdd29e6a115d159
c81ea73e93df307d35191ab184a85d6c67c57112
/dockers/rotnet/prepare_nets.py
63510dd367617d93fe4ec8309755cc686e82c50c
[]
no_license
BlenderCN-Org/diplomka
8d0503fc5902dfede8317aed84f5a17f691f687f
575fe3f2436b9c511496c1dc019d9cc3423ba5f0
refs/heads/master
2020-05-22T15:42:00.143738
2019-05-07T07:37:46
2019-05-07T07:37:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
567
py
import os def replace(file, what, for_what): # Read in the file with open(file, 'r') as f: filedata = f.read() # Replace the target string filedata = filedata.replace(what, for_what) #print(filedata) # Write the file out again with open(file, 'w') as f: f.write(filedata) ...
[ "miroslavkrabec@seznam.cz" ]
miroslavkrabec@seznam.cz
cc9e9573db428adfe20c7a930d036f9c4a3eb3ba
29eacf3b29753d65d8ec0ab4a60ea1f7ddecbd68
/examples/pytorch_lightning_distributed/dcl.py
ecf6e7bcd014282101b6c04ec204b23362d2d964
[ "MIT" ]
permissive
lightly-ai/lightly
5b655fe283b7cc2ddf1d7f5bd098603fc1cce627
5650ee8d4057139acf8aa10c884d5d5cdc2ccb17
refs/heads/master
2023-08-17T11:08:00.135920
2023-08-16T12:43:02
2023-08-16T12:43:02
303,705,119
2,473
229
MIT
2023-09-14T14:47:16
2020-10-13T13:02:56
Python
UTF-8
Python
false
false
2,288
py
# Note: The model and training settings do not follow the reference settings # from the paper. The settings are chosen such that the example can easily be # run on a small dataset with a single GPU. import pytorch_lightning as pl import torch import torchvision from torch import nn from lightly.loss import DCLLoss fr...
[ "noreply@github.com" ]
lightly-ai.noreply@github.com
63e8a987a551c5b04f8b8a223840ca4ec9d6208c
1fc7fc8cc0ad49133ba9a4dae910fd7d6e9b242c
/pyqtgraph/graphicsItems/HistogramLUTItem.py
89c45568d5230a161ace8f4ef141337ea99ff687
[ "MIT" ]
permissive
Yingzhang1122/DiffractionLimitedAnalysis
2a67ac2ac87e9fdaf9262a565cc717899e439561
6ea260b738a624962a329dcb7ae19ee048515edf
refs/heads/main
2023-06-03T16:12:15.684375
2021-05-26T18:47:40
2021-05-26T18:47:40
368,825,659
0
0
MIT
2021-05-19T10:11:17
2021-05-19T10:11:17
null
UTF-8
Python
false
false
13,765
py
# -*- coding: utf-8 -*- """ GraphicsWidget displaying an image histogram along with gradient editor. Can be used to adjust the appearance of images. """ from ..Qt import QtGui, QtCore from .. import functions as fn from .GraphicsWidget import GraphicsWidget from .ViewBox import * from .GradientEditorItem import * fro...
[ "zengjie.xia7@gmail.com" ]
zengjie.xia7@gmail.com
0ccaa945ee61fe6e02bfa5331ec1bacd14f0ee07
a560269290749e10466b1a29584f06a2b8385a47
/Notebooks/py/sonukumarsaw/fork-of-titanic-survivors-dataset/fork-of-titanic-survivors-dataset.py
e15a01032f6d55138434ecd5ca6cd6a3f757da58
[]
no_license
nischalshrestha/automatic_wat_discovery
c71befad1aa358ae876d5494a67b0f4aa1266f23
982e700d8e4698a501afffd6c3a2f35346c34f95
refs/heads/master
2022-04-07T12:40:24.376871
2020-03-15T22:27:39
2020-03-15T22:27:39
208,379,586
2
1
null
null
null
null
UTF-8
Python
false
false
6,475
py
#!/usr/bin/env python # coding: utf-8 # In[ ]: # This Python 3 environment comes with many helpful analytics libraries installed # It is defined by the kaggle/python docker image: https://github.com/kaggle/docker-python # For example, here's several helpful packages to load in import numpy as np # linear algebra i...
[ "bitsorific@gmail.com" ]
bitsorific@gmail.com
bc7efdd131ecce9958da72f2a08feb76ecb8da2f
b24c7086c8174023177f67a88980cb2b4a92522d
/src/robots/naoqi/res.py
22647370c74cb65b99651d261179ecfc88cc6c6b
[ "ISC" ]
permissive
chili-epfl/pyrobots-nao
f67da21112dcb3cb33b5c5336a4d0c1abb090673
981addf10beda75466dc3e0a7a4be223b39c260c
refs/heads/master
2021-01-20T11:09:57.440700
2015-02-28T11:42:54
2015-02-28T11:42:54
29,869,379
0
1
null
null
null
null
UTF-8
Python
false
false
260
py
from robots.resources import Resource, CompoundResource # hardware resource that need to be shared LEYE = Resource("left eye") REYE = Resource("right eye") EYES = CompoundResource(LEYE, REYE, name = "eyes") AUDIO = Resource("audio") HEAD = Resource("head")
[ "severin.lemaignan@epfl.ch" ]
severin.lemaignan@epfl.ch
2aefd765c2ca7565c4eead4054bcd72a6c70737b
72316a1d1a2e0358486d50aeecbac8219ccdf092
/ietf/group/migrations/0006_auto__chg_field_groupmilestonehistory_time.py
bd66b5d0e282adc4bb69431ab002dd658d62d069
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
algby/ietfdb
363541941bd6e806bed70891bed4c7f47c9f0539
9ff37e43abbecac873c0362b088a6d9c16f6eed2
refs/heads/master
2021-01-16T18:57:50.100055
2014-09-29T21:16:55
2014-09-29T21:16:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
24,502
py
# encoding: utf-8 from south.db import db from south.v2 import SchemaMigration class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'GroupMilestoneHistory.time' db.alter_column('group_groupmilestonehistory', 'time', self.gf('django.db.models.fields.DateTimeField')()...
[ "henrik@levkowetz.com@7b24d068-2d4e-4fce-9bd7-cbd2762980b0" ]
henrik@levkowetz.com@7b24d068-2d4e-4fce-9bd7-cbd2762980b0
f2056e40108d671f9b0355deab9f4e12a257eebc
6564b596ec27e67ee1b48377da1e7cee59cdcfe9
/shenfun/optimization/__init__.py
d1a6e8057a3b55601f99b532c29a35d270f271d9
[ "BSD-2-Clause" ]
permissive
GeraintPratten/shenfun
077b13d904fd6bf6880c412f74300d78494bee11
d92eb058c9969175da19b23926fb80148cf92ace
refs/heads/master
2023-07-04T13:46:27.969149
2021-08-10T11:48:32
2021-08-10T11:48:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,095
py
"""Module for optimized functions Some methods performed in Python may be slowing down solvers. In this optimization module we place optimized functions that are to be used instead of default Python methods. Some methods are implemented solely in Cython and only called from within the regular Python modules. """ impo...
[ "mikaem@math.uio.no" ]
mikaem@math.uio.no
b2c253c3b2b826b2d4c91a55667970a087f6c604
1786dad5941d4b50561e04104d11d1412433d1f3
/core/admin.py
10d5f471b467447c2538cf468cbb6db779b18fd1
[]
no_license
daryabsb/imdb
5dc4704cb589d97815d98cfa97866a50055ab690
649f9dcc673a3b56c28329af15d1d1bae5f3c370
refs/heads/master
2022-12-25T06:59:26.738297
2020-09-19T13:55:05
2020-09-19T13:55:05
290,747,050
0
0
null
null
null
null
UTF-8
Python
false
false
160
py
from django.contrib import admin from .models import Movie, MovieLink # Register your models here. admin.site.register(Movie) admin.site.register(MovieLink)
[ "daryabsb@gmail.com" ]
daryabsb@gmail.com
22c3b4bba12d8a2089c01805105ab6950a3845eb
23db23583a49dd42002f3815bcfb26249096cb99
/input/channelConfig_dielectron_Legacy2018_EBEE.py
b14170031da10b7294d93389ddde0313092551aa
[]
no_license
JanFSchulte/BiasTests
34560adb1bc747aa3b594dd2c1014dee6093a25e
ff9ad12a2391fe0f409bac2945d21576f4a0cb3d
refs/heads/master
2021-04-22T01:00:35.124191
2020-03-24T23:23:07
2020-03-24T23:23:07
249,836,538
0
0
null
null
null
null
UTF-8
Python
false
false
7,672
py
import ROOT,sys ROOT.gROOT.SetBatch(True) ROOT.gErrorIgnoreLevel = 1 from ROOT import * from math import sqrt from resolution_cfg_2018 import DCB_para nBkg = -1 dataFile = "input/eventList_ele_2018_BE.txt" def addBkgUncertPrior(ws,label,channel,uncert): beta_bkg = RooRealVar('beta_%s_%s'%(label,channel),'bet...
[ "jschulte@cern.ch" ]
jschulte@cern.ch
372479be2663f3a0b763022ee4cd64facba7add6
5e0755091efd2d4ed61bead8aa38b45bab5a8b07
/python/anyascii/_data/_034.py
0c20f1bba793e6f964ca6785a7c6290389254b52
[ "ISC" ]
permissive
casept/anyascii
c27261d87257c17c47fe0e9fc77438437de94c1c
d4f426b91751254b68eaa84c6cd23099edd668e6
refs/heads/master
2022-12-05T07:13:53.075144
2020-08-07T07:55:50
2020-08-07T07:55:50
285,904,577
0
0
ISC
2020-08-07T19:20:00
2020-08-07T19:19:59
null
UTF-8
Python
false
false
875
py
b='Qiu Tian Hei Kua Wu Yin Yi Xie Chou Nuo Dan Dai Xu Xing Xiong Liu Lin Xiang Yong Xin Zhen Dai Wu Pan Ru Ma Qian Yi Yin Nei Cheng Feng Taai Zhuo Fang Ao Wu Zuo Zhou Dong Su Yi Qiong Kuang Lei Nao Zhu Shu Xu Shen Jie Die Nuo Su Yi Long Ying Beng Lan Miao Yi Li Ji Yu Luo Chai No...
[ "hunter@hunterwb.com" ]
hunter@hunterwb.com
33a273361603bc9162e66b2ca04a3dc441178775
8ef477149fdd8cd8c0ad88f160e2b8a445550a1e
/base_ecommerce_v13/models/stock.py
86a7f7c483c94f799c99fe122bff69e115aeeda4
[]
no_license
cokotracy/ebay_connector_v13
97f3e23ba951f14457514b71b408b389a7c16dc7
3c08603875d464e5bee818091fa704f5f7192499
refs/heads/master
2022-07-19T21:15:23.065880
2020-05-20T15:20:23
2020-05-20T15:20:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
186
py
from odoo import api, fields, models, _ import odoo.netsvc class stock_picking(models.Model): _inherit = "stock.picking" shop_id = fields.Many2one('sale.shop', string='Shop')
[ "https://Anjeel@bitbucket.org" ]
https://Anjeel@bitbucket.org
4889cedcd8425ab04971c8f8ff25cf9734da01c9
e5e8553fe434f399d24c1a8f981d5d258574e4af
/universal_landmark_detection/model/networks/globalNet.py
0b2bab7140532e0dbb277efecde6822b98a6b8f8
[ "MIT" ]
permissive
egozoro/YOLO_Universal_Anatomical_Landmark_Detection
4dee00cf4ee140fa373b2dafeea8c95b69ff66c7
465a3d6afcdb23fdec609efe336beebdc9ed61f4
refs/heads/main
2023-08-24T02:04:40.543561
2021-10-07T13:58:16
2021-10-07T13:58:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,472
py
import torch import torch.nn as nn import torch.nn.functional as F class myConv2d(nn.Module): def __init__(self, in_channels, out_channels, kernel_size=1): super(myConv2d, self).__init__() padding = (kernel_size-1)//2 self.conv = nn.Conv2d(in_channels, out_channels, ...
[ "zhuheqin1@gmail.com" ]
zhuheqin1@gmail.com
847b6985e225a008a43c6455650f7843ffa2f1d6
99697559d046cdd04dd9068bd518e4da4177aaa2
/Finish/M019_Remove_Nth_Node_From_End_of_List.py
d1a7c1a10eb90195f94c135192f33c5f6de79380
[]
no_license
Azurisky/Leetcode
3e3621ef15f2774cfdfac8c3018e2e4701760c3b
8fa215fb0d5b2e8f6a863756c874d0bdb2cffa04
refs/heads/master
2020-03-18T22:46:35.780864
2018-10-07T05:45:30
2018-10-07T05:45:30
135,364,168
0
0
null
null
null
null
UTF-8
Python
false
false
668
py
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def removeNthFromEnd(self, head, n): """ :type head: ListNode :type n: int :rtype: ListNode """ fir...
[ "andrew0704us@gmail.com" ]
andrew0704us@gmail.com
f8b639c29269c2aae5cac88c606ca55cac9e1ec6
1d871064c463d4e55c6eec8e479dd3a594e07593
/tests/sequence_classification_tests/dataset_test.py
d892a00ba89dddefe0212dea0065e6d00cbed7d5
[ "Apache-2.0" ]
permissive
little-bigtiger/transformers-keras
76ad5f67e71a1286971735208a13b2b235afc281
d8712a21e0a34a3f26d1e48459d7505c96931a5d
refs/heads/master
2023-08-17T04:19:05.080257
2021-09-29T03:08:42
2021-09-29T03:08:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,295
py
import unittest from transformers_keras.sequence_classification.dataset import SequenceClassificationDataset class DatasetTest(unittest.TestCase): """Dataset test.""" def test_sequence_classification_dataset_examples(self): print() print("====from_jsonl_files") d = SequenceClassifica...
[ "zhouyang.luo@gmail.com" ]
zhouyang.luo@gmail.com
1c29f61d1b995d9e89dc5f3a52a350d1a6308b32
3ab7695bfc34355ba579bc43b9fea396933514dc
/dbaas_cloudstack/util/models.py
79546d1939ff00c64b02437d9629be07d551d26d
[]
no_license
globocom/dbaas-cloudstack
d59ee6147235c5933eb5fa36a3047c61a9de9e5a
8445dde83c231a6af932ef179821c3e0b62485ff
refs/heads/master
2023-01-05T00:18:36.304237
2018-04-18T20:51:30
2018-04-18T20:51:30
18,342,699
8
1
null
2022-12-26T19:43:38
2014-04-01T20:02:04
Python
UTF-8
Python
false
false
769
py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from django.db import models from django.utils.translation import ugettext_lazy as _ class BaseModel(models.Model): """Base model class""" created_at = models.DateTimeField(verbose_name=_("created_at"), auto_now_add=True) up...
[ "raposo.felippe@gmail.com" ]
raposo.felippe@gmail.com
113a7bac74c95751ac2210ca63365a1b2e1fd96e
42b61bf376b172a36759e6c3264562e585630d47
/ascent/wsgi.py
e0b9ba7dc44cd2c055733c9d3a2cd7ec618e6449
[]
no_license
destinymalone/ascent
9ad4d9e1a0db017c6ff8d4820fb92e46b0f282e6
526227115ce6703f66f4c39a7bb2e12153427757
refs/heads/master
2020-09-23T05:03:44.071148
2020-01-27T14:54:59
2020-01-27T14:54:59
225,411,341
1
0
null
2019-12-05T18:50:43
2019-12-02T15:44:27
null
UTF-8
Python
false
false
389
py
""" WSGI config for ascent 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/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTIN...
[ "natec425@gmail.com" ]
natec425@gmail.com
13284b6e642981ad9bab7c9f4b5bd1a8b32ea645
88553181929aa251bc5ae02d81f17970249bca40
/django/angular/aenv/Scripts/painter.py
f7b0e2584de0e394bb34f5a8be649eb0ce7ac5de
[]
no_license
reddymadhira111/Python
2d9c3e5dba8238df6be9a67d422468ac1ca16d35
0f1a0c87748e67a879cd8c31eda7b65c69c5d648
refs/heads/master
2022-11-05T07:23:30.211706
2017-06-13T19:11:25
2017-06-13T19:11:25
94,243,400
0
1
null
2022-10-29T10:56:29
2017-06-13T18:13:59
Python
UTF-8
Python
false
false
2,205
py
#!c:\users\reddy\desktop\python\django\angular\aenv\scripts\python.exe # # The Python Imaging Library # $Id$ # # this demo script illustrates pasting into an already displayed # photoimage. note that the current version of Tk updates the whole # image every time we paste, so to get decent performance, we split # the i...
[ "reddymadhira111gmail.com" ]
reddymadhira111gmail.com
62af4afbd3bef2ec5d05634ac926d9d41c739692
4a9dada02c749e9e5277fe1e35357d7b2b28ad5c
/顾天媛2018010980/操作系统实验/作业3.py
7e4ba1e0148c936d956319f37d9a32e6f1f3efc9
[]
no_license
wanghan79/2020_Option_System
631cc80f52829390a128a86677de527472470348
f37b870614edf7d85320da197d932df2f25a5720
refs/heads/master
2021-01-09T13:10:05.630685
2020-07-10T03:30:39
2020-07-10T03:30:39
242,312,271
13
9
null
2020-07-04T16:13:11
2020-02-22T09:12:56
Python
UTF-8
Python
false
false
1,037
py
# !/usr/bin/python3 # -*- coding: UTF-8 -*- """ Author: Ty.Gu Purpose: multiprocessing Created: 26/6/2020 """ # 作业3. 采用Python语言创建多进程;提示:采用Python内置工具包multiprocessing from multiprocessing import Pool import time, os from random import random def task(task_name): print('开始做任务啦!', task_name) start = time....
[ "noreply@github.com" ]
wanghan79.noreply@github.com
b7e58fa1fcf498998c1ed4a723ca290fc280f15c
23514a0e2baf6da053690dd511f1eef75a573e6b
/log-mining/com/haodou/log-mining/log/searchKeyword45.py
57442a3fa8cb219cd0a04d9be9ebe10fd6f97859
[]
no_license
rainly/scripts-1
b5f31880a1a917df23e4c110bb7661685851eff5
3ef01a58162b94fb36cdd38581c899d8a118eda0
refs/heads/master
2020-07-12T01:41:31.491344
2019-08-27T08:50:10
2019-08-27T08:50:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,296
py
#encoding=utf-8 # #专门为4.5版本定制 import sys import operator sys.path.append("./") sys.path.append("../") sys.path.append("../abtest") import column import column2 from clickCount import * from cardClick import * CardFix="##Card##_" def getRidPos(ret): rids={} if "rids" in ret: size=FirstPageNum if len(ret["rid...
[ "zhaoweiguo@vxiaoke360.com" ]
zhaoweiguo@vxiaoke360.com
d8c7a38a8aeec36a0e7f7cb277b9cbcea34d348d
1fbb308b15a83fd53d7d1eeee1ad103d3ba36ac4
/venv/bin/pip
87b74d7a8f139ff92ee41d635bc4ef98e35fbf19
[]
no_license
jcohen66/twit
a2b585f523a7168c1438c4eea6cf872d7dc3a985
3d164947a63d3102b2b34c86199b26b2f17cc4db
refs/heads/master
2023-03-25T01:29:25.814931
2021-03-16T00:33:07
2021-03-16T00:33:07
347,211,087
0
0
null
null
null
null
UTF-8
Python
false
false
257
#!/Users/jcohen66/PycharmProjects/twit/venv/bin/python # -*- coding: utf-8 -*- import re import sys from pip._internal.cli.main import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "jcohen66@optonline.net" ]
jcohen66@optonline.net
4266bb3abd19427b2cd8572b67e7b4af4d73d196
54708c482b13760fc4a747274b62849b5e8b8277
/leetcode_python/Hash_table/contains-duplicate-ii.py
cc82bea65b88eb03d3c4b67b958a77ccc25b4d1e
[]
no_license
DataEngDev/CS_basics
6520818caa61609eae9b026fb5b25ef9e4ea6961
05e8f5a4e39d448eb333c813093fc7c1df4fc05e
refs/heads/master
2023-03-02T18:58:42.469872
2021-02-14T02:23:27
2021-02-14T02:23:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,021
py
""" Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the absolute difference between i and j is at most k. Example 1: Input: nums = [1,2,3,1], k = 3 Output: true Example 2: Input: nums = [1,0,1,1], k = 1 Output: true Ex...
[ "f339339@gmail.com" ]
f339339@gmail.com
af950af06cd4d8cb80ff701f37666dc4d78deba6
34652a47355a8dbe9200db229a1bbc62619de364
/Matlibplots/samples2/axes_demo.py
4d3fa3d8cc09e86facd7b5e96a3059c143a7f1e4
[]
no_license
btrif/Python_dev_repo
df34ab7066eab662a5c11467d390e067ab5bf0f8
b4c81010a1476721cabc2621b17d92fead9314b4
refs/heads/master
2020-04-02T13:34:11.655162
2019-11-10T11:08:23
2019-11-10T11:08:23
154,487,015
0
1
null
null
null
null
UTF-8
Python
false
false
771
py
#!/usr/bin/env python from pylab import * # create some data to use for the plot dt = 0.001 t = arange(0.0, 10.0, dt) r = exp(-t[:1000] / 0.05) # impulse response x = randn(len(t)) s = convolve(x, r)[:len(x)] * dt # colored noise # the main axes is subplot(111) by default plot(t, s) axis([0, 1, 1.1 * amin(s), 2 * ...
[ "bogdan.evanzo@gmail.com" ]
bogdan.evanzo@gmail.com
027f90da6ae7a9f981c03a08fedff984b0d56959
c309e7d19af94ebcb537f1e8655c0122dbe0cb13
/Chapter03/01-chapter-content/read_video_file_all_properties.py
db4569016c150e9cb77c318253011c5af90209bc
[ "MIT" ]
permissive
PacktPublishing/Mastering-OpenCV-4-with-Python
0fb82c88cb7205c7050c8db9f95a6deb3b1b3333
4194aea6f925a4b39114aaff8463be4d18e73aba
refs/heads/master
2023-03-07T04:51:16.071143
2023-02-13T10:17:48
2023-02-13T10:17:48
151,057,527
375
226
MIT
2022-08-27T13:32:19
2018-10-01T08:27:29
Python
UTF-8
Python
false
false
3,750
py
""" Example to introduce how to read a video file and get all properties """ # Import the required packages: import cv2 import argparse def decode_fourcc(fourcc): """Decodes the fourcc value to get the four chars identifying it""" # Convert to int: fourcc_int = int(fourcc) # We print the int value ...
[ "fernandezvillan.alberto@gmail.com" ]
fernandezvillan.alberto@gmail.com
418631b09fa5046da457ec6b6d12fde3127fe3a9
fab14fae2b494068aa793901d76464afb965df7e
/benchmarks/f3_wrong_hints/scaling_software_termination/11-2Nested_false-termination_13.py
e93f6811be066b40a1149e24f28d064d54e66d26
[ "MIT" ]
permissive
teodorov/F3
673f6f9ccc25acdfdecbfc180f439253474ba250
c863215c318d7d5f258eb9be38c6962cf6863b52
refs/heads/master
2023-08-04T17:37:38.771863
2021-09-16T07:38:28
2021-09-16T07:38:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,279
py
from typing import Tuple, FrozenSet from pysmt.environment import Environment as PysmtEnv from pysmt.fnode import FNode import pysmt.typing as types from utils import symb_to_next from hint import Hint, Location def transition_system(env: PysmtEnv) -> Tuple[FrozenSet[FNode], FNode, FNode, ...
[ "en.magnago@gmail.com" ]
en.magnago@gmail.com
13cd64bc158351be30552a0174bbd7805c1ee073
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_8/ksskou001/question1.py
cbf7c2c649b94f8451d86b9956d6a62f42752649
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
1,146
py
'''This program uses a recursion function to shows whether or not a string is palindromique By Hermann KOUASSI: KSSKOU001 On 3 May 2014''' def pal(the_str): '''check if a given string is palindromic''' #in case empty string is the input if len(the_str)==0: print('Palindrome!') #stop c...
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
856eaeeccbd6c812aee69d362e74757971e1e1b9
391937be6d8c8bcf5c3fe9fae8790024fc1e1727
/Starctf_2019/girlfriend/changeld.py
03c035cf38d567f31740c7a68a2268662cc4b46a
[]
no_license
n132/Watermalon
a9d93d3f0d598de7f8ed9bbe13ed02af364f770f
79b4479458ae0884d9cdd52d317674298d601d0a
refs/heads/master
2022-05-13T21:04:08.108705
2022-04-08T23:29:48
2022-04-08T23:29:48
154,925,917
6
2
null
null
null
null
UTF-8
Python
false
false
1,358
py
import os from pwn import * def change_ld(binary, ld): """ Force to use assigned new ld.so by changing the binary """ if not os.access(ld, os.R_OK): log.failure("Invalid path {} to ld".format(ld)) return None if not isinstance(binary, ELF): if not os.access(binar...
[ "986256128@qq.com" ]
986256128@qq.com
db424bfcd1d912fa13fa0d54efe254c2af125fb6
93ccc1138fd28385e7cebf69fda8327cbf974d13
/test/generate_runtime.py
59710979953e46f6194872112714237b001bfb78
[]
no_license
hbcbh1999/Phy-Net
09613fbd146b6c70e4b52e7e00837ae92c9e6ef8
06ba854b3f281027546b8acfdec29fdbe6eb6649
refs/heads/master
2021-01-19T22:53:19.430191
2017-04-07T19:10:32
2017-04-07T19:10:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,327
py
import math import numpy as np import tensorflow as tf import sys sys.path.append('../') from model.ring_net import * from model.loss import * from utils.experiment_manager import make_checkpoint_path from systems.fluid_createTFRecords import generate_feed_dict import random import time from tqdm import * FLAGS = t...
[ "loliverhennigh101@gmail.com" ]
loliverhennigh101@gmail.com
a127a74237962f2453d6466dd7901670b2f745be
c67b74a8de4d60f2aba025dfba8351996cdaa46c
/tkinter/other/autologging/grid_layout/target_ui.py
f97b6f974a38b238aa9d4c893c0ccf4e81479fff
[]
no_license
texttest/storytext-selftest
a30a58a0ab75fd26e60056222150cf6ae773470e
438977bf044c1ebc98089b667f0ae3d835bc7f37
refs/heads/master
2020-04-26T18:16:20.242220
2015-02-17T15:53:27
2015-02-17T15:53:27
173,739,750
0
0
null
null
null
null
UTF-8
Python
false
false
475
py
# File: hello2.py try: from tkinter import * except ImportError: from Tkinter import * class App: def __init__(self, master): Label(master, text="Top Left").grid(row=0, column=0) Label(master, text="Top Right").grid(row=0, column=1, rowspan=3) Label(master, text="Bottom Left").gri...
[ "geoff.bache@jeppesen.com" ]
geoff.bache@jeppesen.com
fb98535b70b7993474b77e91b3feff3d46b9b3de
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/7BYXC8befjYqzhMsc_11.py
66660ac86c91acd077e3841dd8119a65d3ac8e96
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
2,737
py
""" Kathleen owns a beautiful rug store. She likes to group the rugs into 4 mutually exclusive categories. * imperfect * horizontally symmetric * vertically symmetric * perfect An **imperfect** rug is one that is **neither horizontally nor vertically symmetric**. Here is an example of an **imperfect** rug:...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
8f17fad612ed72e9207bd0bc6151fd98258a7479
c047518e0bc0be1d1a46b734fbf53610cb8a407f
/URI/1564.py
3cf5007b193896b8264fe8720ab63225560887f8
[]
no_license
fernandozanutto/competitive_programming
c3e006544ddba1702a37eeb437cb015713e8c2d1
cf721a7bcce6c5d5fc9f739ad729079c939fc421
refs/heads/master
2020-06-19T06:57:32.288602
2020-04-04T14:58:45
2020-04-04T14:58:45
196,607,123
2
0
null
null
null
null
UTF-8
Python
false
false
183
py
while True: try: x = int(input()) if x > 0: print('vai ter duas!') else: print('vai ter copa!') except EOFError: break
[ "ferzanutto1999@gmail.com" ]
ferzanutto1999@gmail.com
6bafb7696525ab7f42a5402714c53c58186334ea
90419da201cd4948a27d3612f0b482c68026c96f
/sdk/python/pulumi_azure_nextgen/machinelearning/v20160501preview/get_web_service.py
0310879ee63fd0a9c81caf2427c8125f783e25fc
[ "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
3,930
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
9821c77472261b94840d40045f8030e18e1d5e13
927748a4de2b1388d83e554eb76deaa61c1ef167
/namer/admin.py
b47d64e5ce90b02485e6bdd8686abc92b7c2286c
[ "Apache-2.0" ]
permissive
grahamgilbert/macnamer
f2486758ac25ce8fb93a9cabaa8d56600f7f5d71
809345a5c82d890ece2ee6a26e797f540561f49c
refs/heads/master
2021-06-06T20:50:29.651924
2014-11-01T12:06:29
2014-11-01T12:06:29
6,016,337
23
6
Apache-2.0
2019-03-01T01:36:12
2012-09-30T06:08:49
Python
UTF-8
Python
false
false
158
py
from django.contrib import admin from namer.models import * admin.site.register(Computer) admin.site.register(ComputerGroup) admin.site.register(Network)
[ "graham@grahamgilbert.com" ]
graham@grahamgilbert.com
cffd172dc336a08ee43dd702322e72e587f814a8
ae7ba9c83692cfcb39e95483d84610715930fe9e
/csrgxtu/maxent/src/basketball/CVKNN.py
5cd2ae78495e3c298550c337b20cafe503e6473c
[]
no_license
xenron/sandbox-github-clone
364721769ea0784fb82827b07196eaa32190126b
5eccdd8631f8bad78eb88bb89144972dbabc109c
refs/heads/master
2022-05-01T21:18:43.101664
2016-09-12T12:38:32
2016-09-12T12:38:32
65,951,766
5
7
null
null
null
null
UTF-8
Python
false
false
5,299
py
#!/usr/bin/env python # coding = utf-8 # # Author: Archer Reilly # Date: 23/DEC/2014 # File: CVKNN.py # Desc: KNN -- K Nearest Neighbours, use KNN classifier # # Produced By CSRGXTU import cv2 import numpy as np from Utility import loadMatrixFromFile, loadSeasons, loadTeamIds # buildTrainingSets # build training sets...
[ "xenron@outlook.com" ]
xenron@outlook.com
1c7d4811f1c3dfd5bc63c22ca4fa582315a02824
0809673304fe85a163898983c2cb4a0238b2456e
/tmp/ve_asus-rt-n14uhp-mrtg/lib/python3.4/site-packages/setuptools/command/test.py
39746a02bf60246a3d7f1feb3e2f9243977c6177
[ "Apache-2.0" ]
permissive
jasonwee/asus-rt-n14uhp-mrtg
244092292c94ff3382f88f6a385dae2aa6e4b1e1
4fa96c3406e32ea6631ce447db6d19d70b2cd061
refs/heads/master
2022-12-13T18:49:02.908213
2018-10-05T02:16:41
2018-10-05T02:16:41
25,589,776
3
1
Apache-2.0
2022-11-27T04:03:06
2014-10-22T15:42:28
Python
UTF-8
Python
false
false
7,134
py
import sys import contextlib from distutils.errors import DistutilsOptionError from unittest import TestLoader from setuptools.extern import six from setuptools.extern.six.moves import map from pkg_resources import (resource_listdir, resource_exists, normalize_path, working_set, _namespace_...
[ "peichieh@gmail.com" ]
peichieh@gmail.com
ee5cb4dba4207a57b701f57cb2ad43198828c213
096fde1f6e629de8b921de621c1e2eaed3d149e7
/src/android/toga_android/widgets/label.py
66e971a274fe62d5a88ba01b124bb779f3afec2b
[ "BSD-3-Clause" ]
permissive
zeerorg/toga
78079ccde9fc33970f03dd0718cb191d037d9db8
be8182e6131938982dc757f847f938349009de7e
refs/heads/master
2021-01-23T03:16:17.750455
2017-03-19T06:44:37
2017-03-19T06:44:37
86,062,968
0
0
null
2017-03-24T11:54:09
2017-03-24T11:54:09
null
UTF-8
Python
false
false
1,250
py
# from ..app import MobileApp # from .base import Widget # # from toga.constants import * # # # class Label(Widget): # def __init__(self, text=None, alignment=LEFT_ALIGNED): # super(Label, self).__init__() # # self.startup() # # self.alignment = alignment # self.text = text # # d...
[ "russell@keith-magee.com" ]
russell@keith-magee.com
c5ee9c15ca65ada5c73aba41feef5b69a74b50d4
9805edf2b923c74cf72a3cfb4c2c712255256f15
/python/120_triangle.py
719010ee065e6c6d8cc995ea1c85fc78889cc7a4
[ "MIT" ]
permissive
jixinfeng/leetcode-soln
5b28e49c2879cdff41c608fc03628498939b0e99
24cf8d5f1831e838ea99f50ce4d8f048bd46c136
refs/heads/master
2022-10-12T17:02:53.329565
2022-10-06T03:21:56
2022-10-06T03:21:56
69,371,757
0
1
null
null
null
null
UTF-8
Python
false
false
1,283
py
""" Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the following triangle [ [2], [3,4], [6,5,7], [4,1,8,3] ] The minimum path sum from top to bottom is 11 (i.e., 2 + 3 + 5 + 1 = 11)....
[ "ufjfeng@users.noreply.github.com" ]
ufjfeng@users.noreply.github.com
3605b8c88df214a553152d099f2136282236394f
bd01fbbc28b98814c0deb428b412aeec456a3712
/make_train_target.py
360bc19136e82616fd92eb8929c7c0ac37f2beb0
[]
no_license
thusodangersimon/sanral_hack
d693a8fedf6de4f10dde5efcdb1bc5e0a95b0b9d
69c71fc80935ee42488226962b29d643d0a6e75a
refs/heads/master
2020-08-11T18:09:23.997842
2019-10-12T14:31:24
2019-10-12T14:31:24
214,606,084
2
1
null
null
null
null
UTF-8
Python
false
false
1,579
py
""" This file creates training data set. """ import pandas as pd from sklearn.base import BaseEstimator, TransformerMixin class MakeTarget(BaseEstimator, TransformerMixin): def __init__(self, start, end, time_col, segment_col, agg_col): self.start = start self.end = end self.time_col = t...
[ "admin@example.com" ]
admin@example.com
213eae2e246ee6a732fe0b4e2584202dfc940337
b6a97526938a923f442d54b3c02e82051c0df1ff
/tests/functions_tests/test_concat.py
32c9def4fe7e3bdeef21c63267e77160d6a381ac
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
amoliu/chainer
96992ff235dec616e39edb0a840d621fbea4ce12
df4362bc8a2a7bef6513ac788f373f0b5028e03b
refs/heads/master
2021-01-22T16:38:16.727714
2015-06-18T08:31:13
2015-06-18T08:31:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,853
py
from unittest import TestCase import numpy from chainer import cuda, Variable from chainer.cuda import to_gpu, GPUArray from chainer.gradient_check import assert_allclose from chainer.functions import concat cuda.init() class Concat(TestCase): def setUp(self): self.y0 = numpy.arange(42, dtype=numpy.f...
[ "beam.web@gmail.com" ]
beam.web@gmail.com
efd3b2095fe805965d530e8825bb361b4af2b186
dfab6798ece135946aebb08f93f162c37dd51791
/core/luban/cli/db/help.py
efa834580fb7667beb71a842f62daa146103d562
[]
no_license
yxqd/luban
405f5f7dcf09015d214079fe7e23d644332be069
00f699d15c572c8bf160516d582fa37f84ac2023
refs/heads/master
2020-03-20T23:08:45.153471
2012-05-18T14:52:43
2012-05-18T14:52:43
137,831,650
0
0
null
null
null
null
UTF-8
Python
false
false
713
py
# -*- Python -*- # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Jiao Lin # California Institute of Technology # (C) 2006-2011 All Rights Reserved # # {LicenseText} # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
[ "linjiao@caltech.edu" ]
linjiao@caltech.edu
bc78baed56d1faf996c6ec825a93f0f64c9c943f
8e18c91dae4787b53e1ff6b35dc04fa38aa374d3
/Pautas Interrogaciones/Examen/Pregunta 2/P2a.py
ccb0956454e0a77b4a1a6193255f4836793b511d
[]
no_license
GbPoblete/syllabus
4a0cb0a2d92fea04b7891c84efef678e4596fa08
ca0e8c44d7c13c98ce4e4b99b4559daf99804cab
refs/heads/master
2020-05-16T00:49:10.663749
2015-12-01T23:22:14
2015-12-01T23:22:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,391
py
__author__ = 'figarrido' def _promedio(datos): return sum(datos) / len(datos) def _varianza(datos): prom = _promedio(datos) suma = 0 for i in datos: suma += (i - prom)**2 return suma / len(datos) class Estrella: def __init__(self, clase, RA, DEC, id, observaciones...
[ "lopezjuripatricio@gmail.com" ]
lopezjuripatricio@gmail.com
9d6b2500746c6557a739357ecf53aed73bbf15d8
55a849e02a9a3819c72d67e0ef52cee2b5223db2
/ftrace/parsers/sched_task_usage_ratio.py
e6f8c72c3122c2121fd387d2e76aaa87edd6c514
[ "Apache-2.0" ]
permissive
Gracker/SystraceAnalysis
08055bceea6018f6e1dd425d1976c1893bd9f945
b27217e33a260614a9fe9ff3f8c3e470efdbd9a3
refs/heads/master
2023-02-18T19:34:26.071277
2021-01-21T01:51:37
2021-01-21T01:57:40
248,390,276
4
3
null
null
null
null
UTF-8
Python
false
false
2,032
py
#!/usr/bin/python # Copyright 2015 Huawei Devices USA 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 r...
[ "dreamtale.jg@gmail.com" ]
dreamtale.jg@gmail.com
d2791fd72bd25721bcc5818685206a2359cb9cb0
3f100a1002a1f8ed453c8b81a9b403444d77b4c6
/assignment_2/assignment_2_final.py
d1cdbd0f6ced27c57032a5e8f8d15b90444bac53
[]
no_license
Kimuda/Phillip_Python
c19c85a43c5a13760239e4e94c08436c99787ebf
59d56a0d45839656eb15dbe288bdb0d18cb7df2b
refs/heads/master
2016-09-09T22:19:02.347744
2015-05-01T10:56:49
2015-05-01T10:56:49
32,330,951
0
0
null
null
null
null
UTF-8
Python
false
false
4,362
py
uniprot_text="""Entry Gene names Cross-reference (PDB) Length O95813 CER1 DAND4 267 Q8N907 DAND5 CER2 CKTSF1B3 GREM3 SP1 189 O60565 GREM1 CKTSF1B1 DAND2 DRM PIG2 184 P41271 NBL1 DAN DAND1 4X1J; 181 Q96S42 NODAL 4N1D; 347 Q15465 SHH 3HO5;3M1N;3MXW; 462""" uniprot_text_list=uniprot_text.split("\n") protein_list=uni...
[ "pjkanywa@gmail.com" ]
pjkanywa@gmail.com
0fa399848f39ede5587c2770483c24ccf4e954b1
dd14fd0545093bc7fd3ff8b93e32180cec00e24d
/data_utils/load_dataset.py
fb31455fa3afab4b18465f204cfa5061c220c449
[]
no_license
bigdatasciencegroup/PyTorch-GAN-Shop
ce38abf86185c6894ee46166bd41419260b026e5
95d4c3f8d836255cea162b8af38f810b5c638f2a
refs/heads/master
2022-11-08T20:59:29.839442
2020-06-19T05:32:56
2020-06-19T05:32:56
273,416,695
2
0
null
2020-06-19T06:03:16
2020-06-19T06:03:16
null
UTF-8
Python
false
false
4,837
py
from torch.utils.data import Dataset import os import h5py as h5 import numpy as np from scipy import io import torch import torchvision.transforms as transforms from torchvision.datasets import CIFAR10, STL10 from torchvision.datasets import ImageFolder class LoadDataset(Dataset): def __init__(self, dataset_na...
[ "noreply@github.com" ]
bigdatasciencegroup.noreply@github.com
07c6474da4c44a115dfccccca315bbc59945c0d8
a8b37bd399dd0bad27d3abd386ace85a6b70ef28
/airbyte-integrations/connectors/source-convex/source_convex/source.py
ecf094ff9c01ce502d526d5681fd2131c8a7bb17
[ "MIT", "LicenseRef-scancode-free-unknown", "Elastic-2.0" ]
permissive
thomas-vl/airbyte
5da2ba9d189ba0b202feb952cadfb550c5050871
258a8eb683634a9f9b7821c9a92d1b70c5389a10
refs/heads/master
2023-09-01T17:49:23.761569
2023-08-25T13:13:11
2023-08-25T13:13:11
327,604,451
1
0
MIT
2021-01-07T12:24:20
2021-01-07T12:24:19
null
UTF-8
Python
false
false
8,739
py
# # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # from datetime import datetime from json import JSONDecodeError from typing import Any, Dict, Iterable, Iterator, List, Mapping, MutableMapping, Optional, Tuple, TypedDict import requests from airbyte_cdk.models import SyncMode from airbyte_cdk.sources impo...
[ "noreply@github.com" ]
thomas-vl.noreply@github.com
e0e2a417665d20c8069db0592caec6107e06bf18
328afd873e3e4fe213c0fb4ce6621cb1a450f33d
/W3School/conditional_statement_loops/s.py
46f9fed08f807249747610045fd405d9e9df72d3
[]
no_license
TorpidCoder/Python
810371d1bf33c137c025344b8d736044bea0e9f5
9c46e1de1a2926e872eee570e6d49f07dd533956
refs/heads/master
2021-07-04T08:21:43.950665
2020-08-19T18:14:09
2020-08-19T18:14:09
148,430,171
0
0
null
null
null
null
UTF-8
Python
false
false
535
py
row=15 col=18 result_str="" for i in range(1,row+1): if((i<=3)or(i>=7 and i<=9)or(i>=13 and i<=15)): for j in range(1,col): result_str=result_str+"o" result_str=result_str+"\n" elif(i>=4 and i<=6): for j in range(1,5): result_str=result_str+"o" result_str=...
[ "sahilexemplary@gmail.com" ]
sahilexemplary@gmail.com
81e30fa5ec864972411e2d70f75db454d407a91c
15581a76b36eab6062e71d4e5641cdfaf768b697
/LeetCode_30days_challenge/2020/November/Longest Mountain in Array.py
027f86eb75dd45b219ebf43ad294d9e1baa32db8
[]
no_license
MarianDanaila/Competitive-Programming
dd61298cc02ca3556ebc3394e8d635b57f58b4d2
3c5a662e931a5aa1934fba74b249bce65a5d75e2
refs/heads/master
2023-05-25T20:03:18.468713
2023-05-16T21:45:08
2023-05-16T21:45:08
254,296,597
0
0
null
null
null
null
UTF-8
Python
false
false
1,061
py
class Solution: def longestMountain(self, A): if len(A) < 3: return 0 peak = False max_length = curr_length = 1 for i in range(1, len(A)): if A[i] > A[i - 1]: if peak: max_length = max(max_length, curr_length) ...
[ "mariandanaila01@gmail.com" ]
mariandanaila01@gmail.com
010db5b2f3c269b146f0cb527d435487f4a08c5e
c548c10c4fd0b6c1d1c10cc645cb3b90b31f2de6
/keras/keras35_4_load_model.py
b8b3c7da89651bd7a87c1f5e27aeb77c05f64640
[]
no_license
sswwd95/Study
caf45bc3c8c4301260aaac6608042e53e60210b6
3c189090c76a68fb827cf8d6807ee1a5195d2b8b
refs/heads/master
2023-06-02T21:44:00.518810
2021-06-26T03:01:26
2021-06-26T03:01:26
324,061,105
0
0
null
null
null
null
UTF-8
Python
false
false
2,019
py
import numpy as np a = np.array(range(1,11)) size = 5 def split_x(seq, size): aaa = [] for i in range(len(seq) - size +1): subset = seq[i : (i+size)] aaa.append(subset) print(type(aaa)) return np.array(aaa) dataset = split_x(a, size) print("=======================") print(dataset) x =...
[ "sswwd95@gmail.com" ]
sswwd95@gmail.com
e3d34ccc3b810f8a408faaffe681a75d70af1e98
213b8cab639c7d45cbf6a4fd46eb23e379d9d374
/python/curses_examples/tutorial/05_center_text.py
a255e9f843510cbe683534ba35f7dd302d8b021c
[]
no_license
DevDungeon/Cookbook
f85b04b690ea0a202ddfaeda6460b6ba5797cb70
a49a1c77f2b89dc303fa9f2563bb3c19777e4c6c
refs/heads/master
2023-05-12T06:58:50.606019
2022-03-30T04:48:16
2022-03-30T04:48:16
34,371,982
307
94
null
2023-05-03T22:53:45
2015-04-22T06:02:53
HTML
UTF-8
Python
false
false
651
py
# Draw text to center of screen import curses import time screen = curses.initscr() num_rows, num_cols = screen.getmaxyx() def print_center(message): # Calculate center row middle_row = int(num_rows / 2) # Calculate center column, and then adjust starting position based # on the length of the messag...
[ "nanodano@devdungeon.com" ]
nanodano@devdungeon.com
1e4ec58320505450428e6b302e9b75e278535852
cbd2f187fb60939c49a00f154570f53d4bb19910
/rxpy/src/rxpy/engine/parallel/beam/engine.py
3fab110bdf23a65bf2b9be38f20a95c3820dac6c
[]
no_license
andrewcooke/rxpy
3c4443f3ccba479d936f0e49d7d009a64dfc89b3
e7f330dc8c5fa49392a1a018ceda6312270e9a93
refs/heads/master
2021-01-10T13:46:37.129155
2011-06-03T23:29:58
2011-06-03T23:29:58
52,740,676
1
0
null
null
null
null
UTF-8
Python
false
false
3,500
py
# The contents of this file are subject to the Mozilla Public License # (MPL) Version 1.1 (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.mozilla.org/MPL/ # ...
[ "andrew@acooke.org" ]
andrew@acooke.org
5370e7752ece0589186787cb62da98ecb25774b8
a43b180c8911736bb158a98bb49200001c25ef88
/test/dynamo/test_unspec.py
392dbc899743b7e4c1d142a49711b309ec223fbe
[ "BSD-2-Clause", "LicenseRef-scancode-secret-labs-2011", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
unlimblue/pytorch
bafbe98eba7412456c956d99f5c61b64478a8492
4433f508e7b1d916820da7f12ce265a868e17cca
refs/heads/main
2023-06-17T16:01:53.631576
2023-06-14T03:19:12
2023-06-14T03:19:12
193,814,069
0
2
NOASSERTION
2019-06-30T15:29:08
2019-06-26T02:20:36
C++
UTF-8
Python
false
false
10,462
py
# Owner(s): ["module: dynamo"] import math import random import unittest import numpy as np import torch import torch._dynamo.test_case import torch._dynamo.testing import torch.nn.functional as F from torch._dynamo.comptime import comptime from torch._dynamo.testing import same # The intention of this test file is...
[ "pytorchmergebot@users.noreply.github.com" ]
pytorchmergebot@users.noreply.github.com
d6d449b80e62d56b88fbfb2e7e3bc89530bb83f6
1aa5216e8ed1fc53999637a46c6af0716a8a8cdf
/disk_snapshot_service/business_logic/locker_manager.py
3668ebcb7834e64b93ca17fbb9226de6467e3525
[]
no_license
ShawnYi5/DiskInProgress
c3a47fd5c52b1efeeaeee5b0de56626077a947a4
b13d0cdcd0ab08b6dd5b106cda739d7c8ac9e41a
refs/heads/master
2020-05-17T06:19:40.579905
2019-08-22T03:29:31
2019-08-22T03:29:31
183,555,060
0
1
null
null
null
null
UTF-8
Python
false
false
549
py
import threading class LockWithTrace(object): def __init__(self): self._locker = threading.Lock() self._current_trace = None def acquire(self, trace): self._locker.acquire() self._current_trace = trace return self def release(self): self._current_trace = ...
[ "yi.shihong@aliyun.com" ]
yi.shihong@aliyun.com
576462d84b48c93ce54baefe84067f27897cbe9b
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/adjectives/_neutral.py
49c9babdf333c189682df5fb0fa4e46a59f17ec3
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
801
py
#calss header class _NEUTRAL(): def __init__(self,): self.name = "NEUTRAL" self.definitions = [u'not saying or doing anything that would encourage or help any of the groups involved in an argument or war: ', u'A neutral ground or field is a sports stadium that does not belong to either of the two teams taking p...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
7847b19733a6494cd75d660ff936f2f6c1b72c56
17658f39e410b6a179f4640e49ff86d86a6541ba
/taxonomic-annotation/reconcile.py
f76cf0b4962f05e96ca6ebeb9d0de3c6da90d91f
[ "MIT" ]
permissive
luispedro/Coelho2021_GMGCv1
f91f82d3c78cf0773b69ce39cd0143d872933716
caa9b5e156f5f74e147fde371e36ea259fee1407
refs/heads/main
2023-04-16T05:49:27.375227
2022-02-22T14:38:21
2022-02-22T14:38:21
368,166,901
14
8
null
null
null
null
UTF-8
Python
false
false
1,654
py
import pandas as pd from taxonomic import ncbi n = ncbi.NCBI() taxonomic = pd.read_table('/g/bork1/coelho/DD_DeCaF/genecats.cold/GMGC10.taxonomic.map', index_col=0, engine='c') species = pd.read_table('/g/bork1/coelho/DD_DeCaF/genecats.cold/GMGC10.species.match.map', header=None, usecols=[1,2], index_col=0, squeeze=Tr...
[ "luis@luispedro.org" ]
luis@luispedro.org
a873f56004bb76bdee75e786e67d6e1897053095
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/contrib/cv/semantic_segmentation/FastSCNN/segmentron/models/unet.py
f6425505373e615f46bcd51c550b3f3410fe3164
[ "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
4,555
py
# Copyright 2021 Huawei Technologies Co., Ltd # # 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 agree...
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
c59757992997a99fd2580f5c29f1c4843bfa9307
e4ee9f2ca60b60ea9fa1b05c982594a2c1b10484
/day30 课堂笔记以及代码/day30/验证客户端合法性/server.py
2e9c5a0e7e6055064d96994f662687f7d8d4dcdc
[]
no_license
tianshang486/Pythonlaonanhai
100df2cc437aad1ee1baf45bdfc4500b1302092b
2a5b46986f5ca684b2ae350596e293db54e1e2f4
refs/heads/master
2022-09-19T02:16:56.972160
2020-06-04T09:24:30
2020-06-04T09:24:30
269,314,860
1
0
null
null
null
null
UTF-8
Python
false
false
692
py
import os import socket import hashlib secret_key = b'alex_sb' sk = socket.socket() sk.bind(('127.0.0.1',9001)) sk.listen() conn,addr = sk.accept() # 创建一个随机的字符串 rand = os.urandom(32) # 发送随机字符串 conn.send(rand) # 根据发送的字符串 + secrete key 进行摘要 sha = hashlib.sha1(secret_key) sha.update(rand) res = sha.hexdigest() # 等待接收客...
[ "tianshang486@.com" ]
tianshang486@.com
346794fd0cf489c5c4b7c4d74e700415d735faa8
4d43aabef4cd709bf27dbc644d12a6f32eddddf4
/tensorflow/contrib/layers/python/ops/loss_ops_test.py
1453af533180c2616ce322f43139aabc19d50b93
[ "Apache-2.0" ]
permissive
jmhodges/tensorflow
560165f6804d97f12edc6adb395bfcaf81091e0b
672b969b8c033548df4cbec89b87694b6024bf12
refs/heads/master
2022-10-13T09:53:57.176987
2016-03-24T16:27:10
2016-03-24T16:27:10
54,669,784
1
0
Apache-2.0
2022-09-23T22:51:01
2016-03-24T19:48:15
C++
UTF-8
Python
false
false
12,024
py
# 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 by applicable law or a...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
72ddea90b5285225d914e9a05f92d1fcd6f57ce3
e10a6d844a286db26ef56469e31dc8488a8c6f0e
/explaining_risk_increase/input_fn.py
96a243efb7905e56aa629b71a68dcb4a3c29b3c0
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
Jimmy-INL/google-research
54ad5551f97977f01297abddbfc8a99a7900b791
5573d9c5822f4e866b6692769963ae819cb3f10d
refs/heads/master
2023-04-07T19:43:54.483068
2023-03-24T16:27:28
2023-03-24T16:32:17
282,682,170
1
0
Apache-2.0
2020-07-26T15:50:32
2020-07-26T15:50:31
null
UTF-8
Python
false
false
13,661
py
# coding=utf-8 # Copyright 2022 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
0007bb4b25661e5bdbf01bf24eb7cc44d2721b2d
b11899d2edfa17f88da4f45cc828f092125091a0
/udacity/wsgi.py
79b9e9c0657245bbc91b43c1df6900d525977d0f
[]
no_license
chemalle/udacity
15726c03a108dc0e68952027e63b5689870cc5b0
69ee8e5acda4776df1f46c922b30ec799f5589af
refs/heads/master
2020-03-09T14:11:32.381362
2018-04-09T20:17:43
2018-04-09T20:17:43
128,828,589
0
0
null
null
null
null
UTF-8
Python
false
false
392
py
""" WSGI config for udacity project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETT...
[ "chemalle@econobilidade.com" ]
chemalle@econobilidade.com
84cd1164a4f1b0551e720d90ed604c3b8a83c45b
d83fde3c891f44014f5339572dc72ebf62c38663
/_bin/google-cloud-sdk/.install/.backup/lib/surface/access_context_manager/levels/__init__.py
fd037667cf0efbce2318d315932364a60be5025f
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
gyaresu/dotfiles
047cc3ca70f4b405ba272856c69ee491a79d2ebe
e5e533b3a081b42e9492b228f308f6833b670cfe
refs/heads/master
2022-11-24T01:12:49.435037
2022-11-01T16:58:13
2022-11-01T16:58:13
17,139,657
1
1
null
2020-07-25T14:11:43
2014-02-24T14:59:59
Python
UTF-8
Python
false
false
1,021
py
# Copyright 2017 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 by applicable law or ag...
[ "me@gareth.codes" ]
me@gareth.codes
71b112d6742fd0c9701974a2bddaacf7c0f5fc91
dde1cf596cf5969812ecda999828baa9c73e788d
/isi_sdk_8_1_1/api/sync_policies_api.py
b89f81af89e7ae2f788de9d37722a0e1d4e5d839
[]
no_license
dctalbot/isilon_sdk_python3.7
bea22c91096d80952c932d6bf406b433af7f8e21
4d9936cf4b9e6acbc76548167b955a7ba8e9418d
refs/heads/master
2020-04-25T20:56:45.523351
2019-02-28T19:32:11
2019-02-28T19:32:11
173,065,379
0
0
null
null
null
null
UTF-8
Python
false
false
5,319
py
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 6 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa: F401 # python 2 and pyth...
[ "dctalbot@umich.edu" ]
dctalbot@umich.edu
c3d3ce522f487468d1cd7a2495dd1144c24a1b38
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_6658.py
d053f34bf35961831817d9b5d3b432ed001ec245
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
106
py
# Paramiko SFTP - Avoid having to specify full local filename? os.path.join(os.getcwd(), remote_filename)
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
a720749f0cff19ebb480f74da0728b668a147c1e
276e15e7426b97ae550e45f2f7ffb6c3acc3ce07
/company/meituan/1.py
2f23806abc88bfd559908d4e1caca1b0600cb164
[]
no_license
JDer-liuodngkai/LeetCode
1115b946a1495622b1a5905257a8c92523022b8b
4ca0ec2ab9510b12b7e8c65af52dee719f099ea6
refs/heads/master
2023-03-25T03:43:16.630977
2020-11-13T00:44:01
2020-11-13T00:44:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
973
py
""" 每天最多 n 个,各有1个正整数重量 已做好 m 个 买 最重 最轻 a,b; 保证 a/b 大小关系 剩余 n - m 在烤 """ # 不保证 a/b 大小关系 # 1 ≤ n,m,a,b ≤ 1000 , m≤n , 蛋糕重量不会超过1000 def cake(): vmax, vmin = max(arr), min(arr) tmax, tmin = max(a, b), min(a, b) # 已做出的蛋糕 不满足要求 if vmax > tmax or vmin < tmin: return 'NO' # 仍在区间内 remain = ...
[ "shuaixie@zju.edu.cn" ]
shuaixie@zju.edu.cn
1c15f3b8d623086176e436fd2f27d05307235689
caed98915a93639e0a56b8296c16e96c7d9a15ab
/Walmart Labs/Container With Most Water.py
fa9f0a5f15d485592776bc34920e9a6c3966b44c
[]
no_license
PiyushChandra17/365-Days-Of-LeetCode
0647787ec7e8f1baf10b6bfc687bba06f635838c
7e9e9d146423ca2c5b1c6a3831f21dd85fa376d5
refs/heads/main
2023-02-13T10:41:36.110303
2021-01-17T11:58:51
2021-01-17T11:58:51
319,974,573
0
0
null
null
null
null
UTF-8
Python
false
false
318
py
class Solution: def maxArea(self, height: List[int]) -> int: i,j = 0,len(height)-1 water = 0 while i < j: water = max(water,(j-i)*min(height[i],height[j])) if height[i] < height[j]: i += 1 else: j -= 1 return water
[ "noreply@github.com" ]
PiyushChandra17.noreply@github.com
9c85607ad9ff5b44cb32636cec3ac25cc7456f43
fb28906c1f0347ffe50193f6c2bad2d4b490fa9c
/budger/schedules/migrations/0033_add_group.py
7da1b8b63df95fef6af8c788e35aaecf915488d1
[]
no_license
pavkozlov/budger-server
20c695309c34a0451d25b83ab8583b14f0d21c0c
7a98c1789414c83625bda1e5b29cbe5587c3cd6a
refs/heads/master
2020-12-17T06:35:10.550905
2020-01-13T13:27:42
2020-01-13T13:27:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,128
py
# Generated by Django 2.2.8 on 2019-12-12 06:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('schedules', '0032_auto_20191211_1652'), ] operations = [ migrations.AlterModelOptions( name='event', options={'order...
[ "it.pavelkozlov@gmail.com" ]
it.pavelkozlov@gmail.com
7221f4e4fe00f96cc27131f8659619b01f6e8124
84bdc0fd6aaaac7c519866fef855be8eae88a80f
/0x07-python-classes/3-square.py
1c50d5d34600f02b131a03adfde770787a230345
[]
no_license
KatyaKalache/holbertonschool-higher_level_programming
b74ca3e3c32ded6f54a40748775d0d4475e32409
e746a41ccb3f268c9d6d4578b80a0b9e7cf7d067
refs/heads/master
2021-01-20T02:29:04.972257
2017-10-11T06:24:17
2017-10-11T06:24:17
89,413,672
1
0
null
null
null
null
UTF-8
Python
false
false
311
py
#!/usr/bin/python3 class Square: def __init__(self, size=0): if not isinstance(size, int): raise TypeError("size must be an integer") if (size < 0): raise ValueError("size must be >= 0") self.__size = size def area(self): return self.__size ** 2
[ "katya@kalache.fr" ]
katya@kalache.fr
f3ae81f967741b44a1451c0540bfd316e877f45c
9804b20e9bbd2b4ac405700b920b93fb0b4394c0
/server/plugins/admin.py
2d1770caa66eb0d80b9d35ee8f10c5ece83289ef
[]
no_license
jonathanverner/brython-misc
ba5c53989159fdf1684cc956e51e6a22728ca75b
b9d6d243000aa0c4dc587fbcd0e6cf3e7359a9fe
refs/heads/master
2020-04-06T07:02:30.362571
2016-08-20T11:28:22
2016-08-20T11:28:22
58,376,490
1
1
null
null
null
null
UTF-8
Python
false
false
263
py
from ..lib.tornado import RPCService, export from tornado.gen import coroutine class AdminService(RPCService): SERVICE_NAME='admin' @coroutine @export def persists_storage(self): yield self._api.store.persist() services = [AdminService]
[ "jonathan.verner@matfyz.cz" ]
jonathan.verner@matfyz.cz
1e3830f608817ee5f8ae218d7fe951a627fe886e
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startCirq2360.py
e567cdcc03d3850100d2ad44ef059ff6d601d9e8
[ "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
3,005
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=36 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
5bdfd26ec6382992c81f1083de5d813e77df1989
41710e9133d660739f8f9f17040a2a8a6082e9fb
/python/aa_modules/argsparse/mutually_exclusive1.py
922f775acf7b00de572185f03d88335e0519a460
[]
no_license
hanjiangxue007/Programming
591678150e2e300051fdeaf09124d3893076d3a9
7a545ef2300b004497f30d27d1f2aaa032e26af5
refs/heads/master
2020-06-29T18:50:27.776557
2016-10-27T18:31:39
2016-10-27T18:31:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
838
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Author : Bhishan Poudel; Physics PhD Student, Ohio University # Date : Oct-15-2016 Sat # Last update : # # Ref: https://docs.python.org/3.5/howto/argparse.html # # Imports import argparse parser = argparse.ArgumentParser(description="calculate X to the powe...
[ "bhishantryphysics@gmail.com" ]
bhishantryphysics@gmail.com
92aea1fc2467f5278d784d1a69ffb5aecdbbc629
1858001ecc913ad5270f12b2e69e46eead3c7970
/awx/main/tests/functional/models/test_job_options.py
c601413a5d8f46e7ff479e88b5d1b8d2466d3b78
[ "Apache-2.0" ]
permissive
mabashian/awx
e3274046cabe3e539bf842f1f8ee2409efb28677
904cb4af34141ca0cfec6f597eb8016e575a670e
refs/heads/devel
2023-09-04T04:30:31.256861
2017-09-22T17:39:24
2017-09-22T17:39:24
104,504,771
0
1
Apache-2.0
2021-03-22T20:41:15
2017-09-22T18:12:24
Python
UTF-8
Python
false
false
1,245
py
import pytest from django.core.exceptions import ValidationError from awx.main.models import Credential @pytest.mark.django_db def test_clean_credential_with_ssh_type(credentialtype_ssh, job_template): credential = Credential( name='My Credential', credential_type=credentialtype_ssh ) cre...
[ "rpetrell@redhat.com" ]
rpetrell@redhat.com
7963ef741b939e0ecb1eb8a00e0e97309e07b69b
8a378ddae37f834a1c00ba6e63d3ff8f9cabbffb
/tailpos_sync/tailpos_sync/report/product_bundle__register_report/other_methods.py
44e1da2be0547326648c3e5adb24f39630bb769d
[ "MIT" ]
permissive
aakvatech/tailpos-sync
2985d998d0e7ee394c68da578e19819f00cc4acd
7f199459769395d8d21e8effad1af39b1512c205
refs/heads/master
2020-09-08T19:16:57.633724
2020-04-22T05:56:49
2020-04-22T05:56:49
221,221,323
2
0
NOASSERTION
2020-04-22T05:56:50
2019-11-12T13:13:32
null
UTF-8
Python
false
false
5,896
py
import frappe def get_columns(columns): columns.append({"fieldname": "invoice_date", "label": "Invoice Date", "fieldtype": "Data", "width": 150}) columns.append({"fieldname": "invoice_number", "label": "Invoice Number", "fieldtype": "Link", "options": "Sales Invoice", "width": 150, }) columns.append({"fi...
[ "jangeles@bai.ph" ]
jangeles@bai.ph
ada51a31e0faed934a41299946478c420f2573b6
4d51aa09c7b65d2c54212a3004794a50f36a7a89
/leetcode/DP/213.HouseRobber/213HouserRoober.py
87c13157a361c4607ac3426c9c4425ec78b843c3
[]
no_license
letterbeezps/leetcode-algorithm
30bd7335e96fdcca3c3ec1269c1c6fa78afd2f3b
b6211b1bfd699e45164a8cb5a8fbf2b4ec9756f9
refs/heads/master
2021-07-06T18:29:18.666607
2020-08-06T17:52:50
2020-08-06T17:52:50
158,728,987
10
2
null
2020-08-06T17:50:17
2018-11-22T16:56:13
JavaScript
UTF-8
Python
false
false
674
py
class Solution: def rob(self, nums: List[int]) -> int: if not nums: return 0 if len(nums) <= 3: return max(nums) if len(nums) == 4: return max(nums[0]+nums[2], nums[1]+nums[3]) n = len(nums) f = [0] * n num1 = nums[:-1] ...
[ "unlimitedzazp@outlook.com" ]
unlimitedzazp@outlook.com
5d758d4d95cc1b6405db90c73d4118106a45b53a
6219e6536774e8eeb4cadc4a84f6f2bea376c1b0
/scraper/storage_spiders/aobongdacom.py
73b1780602e6b41472488d0a26444813f9b8abeb
[ "MIT" ]
permissive
nguyenminhthai/choinho
109d354b410b92784a9737f020894d073bea1534
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
refs/heads/master
2023-05-07T16:51:46.667755
2019-10-22T07:53:41
2019-10-22T07:53:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
927
py
# Auto generated by generator.py. Delete this line if you make modification. from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor XPATH = { 'name' : "//h1[@class='product-title']", 'price' : "//div[@class='price-box']/h4[@class='product-price']", 'category' : "//ol[@class='breadc...
[ "nguyenchungthuy.hust@gmail.com" ]
nguyenchungthuy.hust@gmail.com
4a1e2aa3c3a7ae5b3de5e9f843d7313f73b1a3d0
9b3f578e63a7e17e2b1bab5f38aa8625b8a80251
/descarteslabs/workflows/types/array/array_.py
30e0fa674c82ddb4c8c20b53cc3d60ea823a17f7
[ "Apache-2.0" ]
permissive
carderne/descarteslabs-python
e6f7000f08cd1569e0ddd0f7fb8e53abb6765183
757b480efb8d58474a3bf07f1dbd90652b46ed64
refs/heads/master
2022-12-09T23:19:02.361226
2020-08-13T11:52:30
2020-08-13T11:52:30
287,264,851
0
0
NOASSERTION
2020-08-13T11:46:58
2020-08-13T11:46:57
null
UTF-8
Python
false
false
3,060
py
import numpy as np from descarteslabs.common.graft import client from ...cereal import serializable from ..core import ProxyTypeError from ..containers import List from ..primitives import Int, Float, Bool from .base_array import BaseArray DTYPE_KIND_TO_WF = {"b": Bool, "i": Int, "f": Float} WF_TO_DTYPE_KIND = dict...
[ "support@descarteslabs.com" ]
support@descarteslabs.com
395840ba68ac389c3468cbd55fcc66294d3322da
c2f42e145c03feb891d83ea294cdda9f37cfc717
/src/modelling/capacity_planning/erlang/erlangb.py
7695f16ce57e10ce6be5b40622e5f76eb9e2d211
[]
no_license
FelixKleineBoesing/queuingSystem
5b38c123f206d9c71014064404b2f50f0f4491a5
09ff583831aa7f8b604f01dc97cf0284ed342f77
refs/heads/master
2023-04-12T00:00:20.309232
2021-04-25T11:55:04
2021-04-25T11:55:04
361,413,917
0
0
null
null
null
null
UTF-8
Python
false
false
835
py
import numpy as np from src.modelling.capacity_planning.erlang.erlang_base import ErlangBase from src.modelling.helpers import power_faculty class ErlangB(ErlangBase): def get_probability(self, number_agents: int, lambda_: float, mu: float): """ calculates the probability that there are c number...
[ "felix.boesing@t-online.de" ]
felix.boesing@t-online.de
9899e3436a3df3f0622c8329670adccfbfa8ae22
f8961fc56e95ea75f2edbb08fae5ad1af102f6f0
/chapter_12/when_to_use_threading.py
08613b1bc4647ea050623289f895564f0a8b60d5
[]
no_license
larago/python_cookbook
eb2cea7425033802775a168d63199eb8e43e2d50
34abdb173c78d9eea046707f88a4bd976dfa26e9
refs/heads/master
2021-01-09T20:12:50.605774
2016-07-13T14:06:22
2016-07-13T14:06:22
63,230,687
0
0
null
null
null
null
UTF-8
Python
false
false
581
py
# GIL limit python only run in single thread, not proper to run cpu concentration task # Better to handle them with mutiple cpu # But thread is appropriate to use when handling potential blocking muti-task # like IO / get result from databse these kind of jobs from threading import Thread class CountdownThread(Thread...
[ "bingeye@foxmail.com" ]
bingeye@foxmail.com
a8b67575d0a9a5cbdc8f1fe45b98a99aa43eb729
1978a9455159b7c2f3286e0ad602652bc5277ffa
/exercises/05_basic_scripts/task_5_1c.py
4613a5511bcd55aadf4fb864116bb31116c9e7d4
[]
no_license
fortredux/py_net_eng
338fd7a80debbeda55b5915dbfba4f5577279ef0
61cf0b2a355d519c58bc9f2b59d7e5d224922890
refs/heads/master
2020-12-03T17:32:53.598813
2020-04-08T20:55:45
2020-04-08T20:55:45
231,409,656
0
0
null
null
null
null
UTF-8
Python
false
false
2,620
py
# -*- coding: utf-8 -*- ''' Задание 5.1c Переделать скрипт из задания 5.1b таким образом, чтобы, при запросе параметра, которого нет в словаре устройства, отображалось сообщение 'Такого параметра нет'. > Попробуйте набрать неправильное имя параметра или несуществующий параметр, чтобы увидеть какой будет результат. А ...
[ "fortunaredux@protonmail.com" ]
fortunaredux@protonmail.com