blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
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
684 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
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
f4447eb60eec73954e51b7efa70ffa9f18869a7a
24a291e5eb298b7c2b4f1105d789ac488457b59c
/Python_Basics/python06_16_DataTypeEx0_김민교.py
539d13510fc578ff955549ac1e7e68e6f860fb61
[]
no_license
gmrdns03/Python-Introductory-Course_Minkyo
da3afff502ed44f178d5b3885fbb1b01249ad1de
ef0d4e16aee3dba6a4a10c422ef68b1465745833
refs/heads/main
2023-05-29T16:08:31.814542
2021-06-23T13:32:14
2021-06-23T13:32:14
379,300,979
1
0
null
null
null
null
UTF-8
Python
false
false
463
py
vl01 = 10 vl02 = 20 print(id(vl01)) print(id(vl02)) ''' 1530162480 == vl01이라는 변수에 10이 저장되어 있는 주소값 1530162800 == vl02이라는 변수에 20이 저장되어 있는 주소값 id 함수는 변수가 가리키고 있는 객체의 주소 값을 돌려주는 파이썬 내장 함수이다. 즉 여기에서 필자가 만든 변수 vl01이 가리키는 리스트의 주소 값은 1530162480 임을 알 수 있다. '''
[ "noreply@github.com" ]
gmrdns03.noreply@github.com
47c2d6a4851473c5dd8779a58f3fbb002659da78
64bf39b96a014b5d3f69b3311430185c64a7ff0e
/intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/inspur/sm/plugins/modules/self_test_info.py
a5b0be963a3356086489952a29788583ec4b1504
[ "MIT", "GPL-3.0-only", "GPL-3.0-or-later" ]
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
2,215
py
#!/usr/bin/python # -*- coding:utf-8 -*- # Copyright (C) 2020 Inspur Inc. All Rights Reserved. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = ''' --- module: self_tes...
[ "sifang@cisco.com" ]
sifang@cisco.com
50e4e33a9e057ace2c4b3719982e0faa15bf0597
863a1cda00ab2eda30a9463d69e471740ae7c515
/models/SSD_DetNet.py
b458d2bf238bfabb08290b34efd92b1166b4bf1f
[]
no_license
sclzsx/Improved_SSD
ab9571c09c22589da61f00ecd42896ac194b3444
bd6229a134188ab08115fa4105ec0c96f4824b0f
refs/heads/master
2023-03-28T08:26:27.583019
2021-04-02T13:38:30
2021-04-02T13:38:30
354,029,229
0
0
null
null
null
null
UTF-8
Python
false
false
6,365
py
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import torchvision.transforms as transforms import torchvision.models as models import torch.backends.cudnn as cudnn import os import torch.nn.init as init from models.modules import * from models.FPN import DetNet_FP...
[ "1044068981@qq.com" ]
1044068981@qq.com
43b21f98599d04e5232fe8734a9a9ac30960cbdc
671ec3242f1d83846560ccf34ea9a924c6e37354
/pandastabletooltip/main.py
4a87276cf93fc0409da350ba10dbec02bdf9b0aa
[ "MIT" ]
permissive
simon-ritchie/pandas-table-tooltip
a4590731d57d73ac954cf221d9a2af9fe3ed6aef
cf85501f0502c4d7c7b67dfdbe592c69f5be59c8
refs/heads/master
2020-06-24T15:30:20.024367
2019-07-27T03:48:16
2019-07-27T03:48:16
199,001,497
0
0
null
null
null
null
UTF-8
Python
false
false
1,866
py
"""A module that handles tooltip display. """ import pandas as pd from IPython.display import HTML, display def make_table_html_with_tooltip(df, limit=3000): """ Make a table with tooltips. Parameters ---------- df : DataFrame DataFrame to be displayed. limit : int, default 3000 ...
[ "antisocial.sid2@gmail.com" ]
antisocial.sid2@gmail.com
a9aa83125c49314aac7eec6297fd67dfd86331f6
4c7914bf0eb52f2fe5dab70fa630a322a9449e05
/learnOpencv/venv/Scripts/easy_install-3.6-script.py
a1f29dc75bf1e2af2366ebf9c88f94bdff507b63
[]
no_license
xhongc/pythonCrawl
f334d737326a47782d2533c4db23734729f13099
a38e59496dd78b6e070ea6882043b1744190103e
refs/heads/master
2022-12-10T01:22:01.608193
2020-01-12T09:43:19
2020-01-12T09:43:22
93,115,695
4
5
null
2022-11-22T02:36:28
2017-06-02T01:47:22
Python
UTF-8
Python
false
false
464
py
#!C:\Users\xhongc\work\pythonCrawl\learnOpencv\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.6' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-scrip...
[ "408737515@qq.com" ]
408737515@qq.com
b42555da9cd6e0002fc0b67b79a21e51526bd952
f1cdcfe600aa10c871486c2cf5a91f23a00b5e81
/ch5/dorm.py
9db7ace7cf0d6f604f3e16dec60cb2c322507726
[]
no_license
mccarvik/collective_intelligence
58268c4f5bcf38466951e3ddf96aba1ad05aaa7e
9bf448eea62fa59e2ec97fdca0cafeb1d4ce5c50
refs/heads/master
2021-09-04T22:38:13.581625
2018-01-22T20:00:04
2018-01-22T20:00:04
106,424,553
0
0
null
null
null
null
UTF-8
Python
false
false
1,933
py
import random, math, pdb, time import optimization # The dorms, each of which has two available spaces dorms=['Zeus','Athena','Hercules','Bacchus','Pluto'] # People, along with their first and second choices prefs=[('Toby', ('Bacchus', 'Hercules')), ('Steve', ('Zeus', 'Pluto')), ('Karen', ('Athena', 'Ze...
[ "mccarviks@gmail.com" ]
mccarviks@gmail.com
d3dea0d179f7790f5f123aabbfaac8f1eac7b1f8
0a1f8957a798006deaa53d10d09f733fab1e6b05
/src/CADAssembler/PostProcessing/Calculix_PostProcess.py
53efc40f6ca44a42b92ac38869812a268b66624d
[ "LicenseRef-scancode-other-permissive" ]
permissive
metamorph-inc/meta-core
a89504ccb1ed2f97cc6e792ba52e3a6df349efef
bc7a05e04c7901f477fe553c59e478a837116d92
refs/heads/master
2023-03-07T02:52:57.262506
2023-03-01T18:49:49
2023-03-01T18:49:49
40,361,476
25
15
NOASSERTION
2023-01-13T16:54:30
2015-08-07T13:21:24
Python
UTF-8
Python
false
false
5,229
py
#title :Calculix_PostProcess.py #description :This script performs post processing on Calculix output files (.frd). #author :Di Yao #date :2012-6-19 #version :1.0.0.0 #usage :python pyscript.py #notes : #python_version :2.7 #========================...
[ "kevin.m.smyth@gmail.com" ]
kevin.m.smyth@gmail.com
5e24f92dbeb200f2d413edb16c62470ebe24c5dd
fb5d9f9b4ae3d7059d582ebb390916c2f9528852
/models/pix2pix_model.py
e60d32a75ef9b52d29453b688af008de8946200f
[]
no_license
tianxiaguixin002/Code-Implementation-of-Super-Resolution-ZOO
32d4168f4d8d031968b7a601cf68b50730b15b06
f6ccf309c7653a27173de5184d17bb5933baab14
refs/heads/master
2022-11-13T17:09:11.484532
2020-07-06T01:51:25
2020-07-06T01:51:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,404
py
import torch from .base_model import BaseModel from . import base_networks class Pix2PixModel(BaseModel): """ This class implements the pix2pix model, for learning a mapping from input images to output images given paired data. The model training requires '--dataset_mode aligned' dataset. By default, it ...
[ "chenyx.cs@gmail.com" ]
chenyx.cs@gmail.com
8e32439681edbd47329d1474f20b17008dc11dd4
ff8ec937d9e5bef6d527f91ec4c8a2248063e9f8
/Flask_Projects/HuntingBallApp/config/config.py
dcbf3f6a8a86d1b4f003e229f2c60d94f9750b65
[]
no_license
zyxyuanxiao/Python-Framework-Study-Resources
3c7743946b828dbd4c0a5b530363d36e54319e9c
cff0f9cefa36afa9fb43f0af5478b7428795d718
refs/heads/master
2020-09-04T15:00:06.987122
2019-08-19T10:07:29
2019-08-19T10:07:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,080
py
# -*- coding: utf-8 -*- # @Time : 2018/10/20 下午4:02 # @Author : ShaHeTop-Almighty-ares # @Email : yang6333yyx@126.com # @File : config.py # @Software: PyCharm from datetime import timedelta import redis import os def app_conf(): """ # 设置环境 export FLASK_ENV=development export FLASK_ENV=produc...
[ "yang6333yyx@126.com" ]
yang6333yyx@126.com
d163d193ab625d2cae6dc04b0724d037904fd11f
8487cb41afd00c9cc30402fd3f06e7f52650669e
/python/Run2016G-Nano14Dec2018-v1/MET_cff.py
6daabedbe6cf3b8f2b2d7082e12dc2e3ef26cd34
[]
no_license
TreeMaker/ecalBadCalibFilterLists
bf7fd35aee6bccc90b214542e163a94c3f3749f3
1e43aff994dff79d768b7b9d284aab6cb951e864
refs/heads/master
2020-04-24T05:58:37.174381
2019-03-13T20:58:15
2019-03-13T20:58:15
171,749,544
0
2
null
2019-03-13T20:58:16
2019-02-20T21:08:38
C
UTF-8
Python
false
false
1,911
py
import FWCore.ParameterSet.Config as cms maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) readFiles = cms.untracked.vstring() secFiles = cms.untracked.vstring() source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles) readFiles.extend( [ '/store/data/Run2016G/MET/...
[ "Alexx.Perloff@Colorado.edu" ]
Alexx.Perloff@Colorado.edu
580a57ae46929c6900e795d79b5db84f2c334313
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/59/usersdata/158/48878/submittedfiles/testes.py
8ce6c6878e8f49b7c1aa558cb328afafad3ddb5b
[]
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
161
py
# -*- coding: utf-8 -*- #COMECE AQUI ABAIXO cf=float(input('custo de fábrica:')) cc=cf+((28/100)*cf)+((45/100)*cf) print('o valor final do carro é: %.2f' %cc)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
346d53ab383825b68c08ad5965f9c6b063709893
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_dampers.py
3dcd5ff2c852940976e53da2f7db1e902d48cf0b
[ "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
222
py
#calss header class _DAMPERS(): def __init__(self,): self.name = "DAMPERS" self.definitions = damper self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['damper']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
ed089dd7e4ef4bb26dae77576405c261a91ab7f2
f8f2536fa873afa43dafe0217faa9134e57c8a1e
/aliyun-python-sdk-dms-enterprise/aliyunsdkdms_enterprise/request/v20181101/ListDatabaseUserPermssionsRequest.py
1f27eb7699a8380d923ac31a72e1792a68f5f12e
[ "Apache-2.0" ]
permissive
Sunnywillow/aliyun-openapi-python-sdk
40b1b17ca39467e9f8405cb2ca08a85b9befd533
6855864a1d46f818d73f5870da0efec2b820baf5
refs/heads/master
2022-12-04T02:22:27.550198
2020-08-20T04:11:34
2020-08-20T04:11:34
288,944,896
1
0
NOASSERTION
2020-08-20T08:04:01
2020-08-20T08:04:01
null
UTF-8
Python
false
false
2,355
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...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
f6f93bec6a9ed313c15f650bd437670efc3c85ce
44ba7f2c3e396ab2c58ce42763da5c18f5d0db4b
/ethicml/implementations/svm.py
85c8de88e2b577e559d2c95422816287de183b90
[]
no_license
anonymous-iclr-3518/code-for-submission
99e45110d2377c08433b619afb9c14cf645be5b0
3aecb7642d9611ae0a61cd47948931f8f47b6f76
refs/heads/main
2023-01-13T18:27:03.728542
2020-11-25T15:21:49
2020-11-25T15:21:49
315,338,150
0
0
null
null
null
null
UTF-8
Python
false
false
1,008
py
"""Implementation of SVM (actually just a wrapper around sklearn).""" from pathlib import Path import numpy as np from sklearn.svm import SVC, LinearSVC from .utils import InAlgoArgs class SvmArgs(InAlgoArgs): """Commandline arguments for SVM.""" c: float kernel: str def main(): """This function ...
[ "anon@ymo.us" ]
anon@ymo.us
e367812cc0beb8b25b485671395f92b4d26a3224
9aaa5eccdb29909c48de9f03732d598fa66920e5
/binheap.py
1c50eeecfb93a62782851c8d25b5c828fd75b419
[ "MIT" ]
permissive
vector8188/AlgorithmAnalysisPython
76e09126be0654c9eca0a53b6153129bf8beff46
026ca8bf846a504c5eae1677680306b0462b49b9
refs/heads/master
2021-01-22T13:23:39.617256
2018-09-14T13:54:21
2018-09-14T13:54:21
100,664,673
1
0
null
null
null
null
UTF-8
Python
false
false
4,269
py
class BinHeap: """Class for implementing BinHeap.""" def __init__(self): """Bin heap constructor.""" self.heapList = [0] self.currentSize = 0 def percUp(self, i): """Checks if the newly entered item is greater/lesser than parent.""" while i > 0: if self.h...
[ "vaibhav.rbs@gmail.com" ]
vaibhav.rbs@gmail.com
584d4619db06c8d1462cb07e7215ad04c548557e
31681488e69da3c7e00b0eda28e5cb720ef2299c
/liteiclink/serwb/packet.py
e8fc035b1b096ded56e1cea8560fc1819ccb2679
[ "BSD-2-Clause" ]
permissive
zsipos/liteiclink
4e9bdf6a819f490461cb33d0837247041203071d
864cd831f3475dffd1c92d6d4a1b86608680bcf2
refs/heads/master
2021-07-08T07:43:10.897604
2020-01-28T09:40:17
2020-01-28T09:40:17
245,119,569
0
0
NOASSERTION
2020-03-05T09:25:16
2020-03-05T09:25:15
null
UTF-8
Python
false
false
4,839
py
# This file is Copyright (c) 2017-2019 Florent Kermarrec <florent@enjoy-digital.fr> # License: BSD from math import ceil from migen import * from migen.genlib.misc import WaitTimer from litex.gen import * from litex.soc.interconnect import stream class HeaderField: def __init__(self, byte, offset, width): ...
[ "florent@enjoy-digital.fr" ]
florent@enjoy-digital.fr
d2d2f55bf58acf2c7b0638ee9c3f974eddcc7f15
1f41b828fb652795482cdeaac1a877e2f19c252a
/maya_tools_backup/chRig/python/chModules/jointBasePsd/ui/part1_driverInfo.py
f84898d94a6be94c7c1a4dcd28d3858e67aa209f
[]
no_license
jonntd/mayadev-1
e315efe582ea433dcf18d7f1e900920f5590b293
f76aeecb592df766d05a4e10fa2c2496f0310ca4
refs/heads/master
2021-05-02T07:16:17.941007
2018-02-05T03:55:12
2018-02-05T03:55:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,678
py
import maya.cmds as cmds import uifunctions as uifnc import globalInfo import math from functools import partial class MovedDriverList: def __init__(self, width, targetUI, minValue=0.1 ): self._width = width-25 self._minValue = minValue self._updateTargetUi = targetUI ...
[ "kimsung9k@naver.com" ]
kimsung9k@naver.com
532ef36c34decb44e73a5e1b81beb7a67c57cc0a
f3b233e5053e28fa95c549017bd75a30456eb50c
/ptp1b_input/L83/83-79_MD_NVT_rerun/set_1.py
e52dbdc3dbc2b5c4afd43f06c240d855b04ecbb2
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
741
py
import os dir = '/mnt/scratch/songlin3/run/ptp1b/L83/MD_NVT_rerun/ti_one-step/83_79/' filesdir = dir + 'files/' temp_prodin = filesdir + 'temp_prod_1.in' temp_pbs = filesdir + 'temp_1.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for j in la...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
29fe4042cd2cbd2f2ca9d31a58cf53afd5ba5298
4368c51ce45504e2cc17ea8772eeb94c13e1c34a
/utils/meta_utils.py
2c8068279495081ff5d67c14a8d980c40f3f982b
[]
no_license
Shuai-Xie/metaASM
1eddc02846ee3fc05198883277357f9735dbaeb0
c6a7b8fe3ecbca2bdc874e3b0dad6dd8f8c1c4cd
refs/heads/master
2021-03-18T17:57:12.952618
2020-04-03T14:20:12
2020-04-03T14:20:12
247,087,294
0
0
null
null
null
null
UTF-8
Python
false
false
3,664
py
import torch import numpy as np import random from datasets import CIFAR from datasets.dataset_utils import get_cls_img_idxs_dict from datasets.transforms import transform_train from utils.asm_utils import detect_unlabel_imgs, get_select_fn """ sort each cls samples by criterion """ @torch.no_grad() def sort_cls_sa...
[ "shuaixie@zju.edu.cn" ]
shuaixie@zju.edu.cn
9c39907cb189fd01a905f1183f03c509c54c9867
c89e4099f801cb4e71b732f74ba2237883de0b16
/spider/concurrent/concur_threads_insts.py
0dbe75f7f91c002521ecda1898366e1fa47d83e3
[ "BSD-2-Clause" ]
permissive
JiyangZhang/PSpider
3abc14792875e306d4a0207f1cd872834c35335c
2151bbdd028acfa5794acab6c87988dc4bf485d3
refs/heads/master
2021-08-19T01:31:22.975247
2017-11-24T10:03:10
2017-11-24T10:38:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,792
py
# _*_ coding: utf-8 _*_ """ concur_threads_insts.py by xianhu """ import time import logging from .concur_abase import TPEnum, BaseThread # =============================================================================================================================== def work_fetch(self): """ procedure of f...
[ "qixianhu@qq.com" ]
qixianhu@qq.com
f3ad2d30d023ac96ee324cece587c787ec28b6ad
93652e0f73558ffa24059647324f79ba043ba241
/topi/tests/python/test_topi_clip.py
041565433bccd162ef55c48cb1e6cd6f106a8200
[ "Apache-2.0" ]
permissive
souptc/tvm
830b1444435b6bda267df305538a783eb687d473
a8574e7bb814997cb3920a72035071899635b753
refs/heads/master
2020-03-25T12:42:20.686770
2018-08-06T21:07:38
2018-08-06T21:07:38
143,789,191
1
0
Apache-2.0
2018-08-06T22:18:20
2018-08-06T22:18:19
null
UTF-8
Python
false
false
1,458
py
"""Test code for clip operator""" import numpy as np import tvm import topi from topi.util import get_const_tuple from tvm.contrib.pickle_memoize import memoize def verify_clip(N, a_min, a_max, dtype): A = tvm.placeholder((N, N), dtype=dtype, name='A') B = topi.clip(A, a_min, a_max) s = tvm.create_schedul...
[ "tqchen@users.noreply.github.com" ]
tqchen@users.noreply.github.com
2d38dcb91332ff3a7c9d232d62866608fb719f06
ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1
/res/packages/scripts/scripts/client/bwobsolete_helpers/PyGUI/PyGUIBase.py
834a250a485148a54b8d4bd40344fe93be77ec21
[]
no_license
webiumsk/WOT-0.9.20.0
de3d7441c5d442f085c47a89fa58a83f1cd783f2
811cb4e1bca271372a1d837a268b6e0e915368bc
refs/heads/master
2021-01-20T22:11:45.505844
2017-08-29T20:11:38
2017-08-29T20:11:38
101,803,045
0
1
null
null
null
null
WINDOWS-1250
Python
false
false
5,952
py
# 2017.08.29 21:44:03 Střední Evropa (letní čas) # Embedded file name: scripts/client/bwobsolete_helpers/PyGUI/PyGUIBase.py import BigWorld, GUI import weakref from bwdebug import * from functools import partial from Listener import Listenable class PyGUIBase(object, Listenable): def __init__(self, component = No...
[ "info@webium.sk" ]
info@webium.sk
24e24c1bb50cbbd0c3f4af14a06c6dcf353f6fe4
425db5a849281d333e68c26a26678e7c8ce11b66
/LeetCodeSolutions/LeetCode_0252.py
ccf1daf59fe8c44bc1f9575209b20c8851cafb90
[ "MIT" ]
permissive
lih627/python-algorithm-templates
e8092b327a02506086414df41bbfb2af5d6b06dc
a61fd583e33a769b44ab758990625d3381793768
refs/heads/master
2021-07-23T17:10:43.814639
2021-01-21T17:14:55
2021-01-21T17:14:55
238,456,498
29
8
null
null
null
null
UTF-8
Python
false
false
361
py
from typing import List class Solution: def canAttendMeetings(self, intervals: List[List[int]]) -> bool: if not intervals: return True intervals.sort() end = -1 for interval in intervals: if interval[0] < end: return False end = m...
[ "lih627@outlook.com" ]
lih627@outlook.com
213840862cac4a5e0577be766248cd201e560514
be6b4181de09a50ccbd7caea58dbdbcbf90602be
/numba/servicelib/threadlocal.py
2ad13112109b26cdbb93c40202dffb8edc1a6bf4
[ "BSD-2-Clause" ]
permissive
pombreda/numba
6490c73fcc0ec5d93afac298da2f1068c0b5ce73
25326b024881f45650d45bea54fb39a7dad65a7b
refs/heads/master
2021-01-15T10:37:08.119031
2014-11-06T22:32:48
2014-11-06T22:32:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
910
py
""" Implements: - Threadlocal stack """ from __future__ import print_function, absolute_import, division import threading class TLStack(object): def __init__(self): self.local = threading.local() @property def stack(self): try: # Retrieve thread local stack return ...
[ "michael.lam.sk@gmail.com" ]
michael.lam.sk@gmail.com
43866c23e7957b764f0b579688d0275579b2fd44
ef2e2a40c9e03173ee936f6672a90a794db5b2a0
/app/search.py
5dbfba175888cd77005d66737abc91a5e3083ee9
[]
no_license
crazynayan/flask-tutorial
fc2fbc3bd7e7f30d48dd2abce5ea05ef3168fc6b
6e51323bf086cadd39a4860388e07b047b8c6fbe
refs/heads/master
2022-12-13T23:13:08.832155
2019-10-30T12:16:54
2019-10-30T12:16:54
182,255,340
0
0
null
2022-12-08T05:01:38
2019-04-19T11:36:10
Python
UTF-8
Python
false
false
969
py
from flask import current_app def add_to_index(index, model): if not current_app.elasticsearch: return payload = {} for field in model.__searchable__: payload[field] = getattr(model, field) current_app.elasticsearch.index(index=index, id=model.id, body=payload) def remove_from_index(...
[ "nayan@crazyideas.co.in" ]
nayan@crazyideas.co.in
7b98acc53d76f81399ffb120b7e715a6c5608d0a
00c9701cfc7b1b0bff6a72319d02cd59dc1eca9c
/ros_ws/src/regulation_imugps/src/regulation_from_err_alpha_dist.py
146f95c8f23cd620b7aa61a5194cd0db3ac032a3
[]
no_license
EnstaBretagneClubRobo/GuerledanDamScanning
ae80340556898ec6a39395e11975e21272c16c31
4309412f0dc883db3e5e4415539f38b5baaa762d
refs/heads/master
2021-06-14T16:11:16.907465
2017-03-03T14:10:51
2017-03-03T14:10:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,085
py
#!/usr/bin/env python """ This regulateur is just a template and publish a forward command only """ import rospy from geometry_msgs.msg import Twist from std_msgs.msg import Float32 from math import atan, pi, tan def update_err_d(msg): global eD eD = msg.data def update_err_cap(msg): global ecap eca...
[ "ejalaa12@gmail.com" ]
ejalaa12@gmail.com
ebbdd594ec1e0b143441c4a911fcf81481ed0acf
4ae1879c21a4193da3df6ae740674ee0655a8beb
/drawDeviation.py
a8b9efe078feb123768f809991f2275a25cac77e
[]
no_license
cynerelee/collision-avoidance
68bccce1a54009ce7b3bee1bf2adc571b6cde956
c269b7040b68b91eb5e7e1134feb8363da1091f0
refs/heads/master
2023-07-09T02:40:23.760176
2023-06-24T03:44:02
2023-06-24T03:44:02
281,842,101
0
0
null
null
null
null
UTF-8
Python
false
false
2,147
py
import matplotlib.pyplot as plt import matplotlib import numpy as np import xlrd #读取excel的库 x=np.arange(0, 2.01,0.01) #print(x) #print(x.shape) data1 = xlrd.open_workbook("deviation_k1.xlsx") table1 = data1.sheet_by_index(0) line=table1.col_values(0) base=np.array(line) base=base.T resArray=[] #先声明一个空list data = xlrd...
[ "l" ]
l
3a2127cf485882ad716605f78202ae8536f46498
f453897fccafc2278f959010c6bad52c7802a2fe
/sidebarUpdate.py
ec7becd648760176a127d1c08e6db75bb5c76b28
[]
no_license
ColinHaley/Python
4977c325c13652251386e5a5e3f65d55a3f13a07
bbef9fc8c4e1d31fe5e1142cf7506fc4738295dd
refs/heads/master
2021-01-25T08:28:17.231365
2018-05-09T21:46:32
2018-05-09T21:46:32
42,951,804
1
0
null
null
null
null
UTF-8
Python
false
false
4,866
py
""" __author__ = 'Colin Haley, aka Kazra' __purpose__ = 'Update the /r/asov sidebar with online players from asov Vanilla' Steps: 1. Create upload variables: [string]CSS, [string]Sidebar 2. Get current players a. If 0: i. Clear Sidebar Playerheads ii. Set to "No Players Online....
[ "unconfigured@null.spigotmc.org" ]
unconfigured@null.spigotmc.org
2c827b70acdad62ca67fd30e1824c1fba685a3ec
492c1e1dabb84ec4efb874b3d9228d31a675a38f
/121.py
bd46672c3c29a00f05e67a8d9d5a65edbc8accd8
[]
no_license
ksnt/leet
65f3c36c8a524e1cc1a5d00bb7a840222ecc9dfe
6680ff978b88d3c44e538b4d5f0e6805ed85f9cf
refs/heads/master
2022-09-24T10:59:18.740314
2022-09-01T19:06:12
2022-09-01T19:06:12
136,970,152
0
0
null
null
null
null
UTF-8
Python
false
false
494
py
import sys class Solution: def maxProfit(self,prices): """ :type prices: List[int] :rtype: int """ if len(prices) == 0: return 0 min_price = sys.maxsize max_profit = 0 length = len(prices) for i in range(length): if prices[i] < min_...
[ "ksn0215@gmail.com" ]
ksn0215@gmail.com
33bd9813fab74f630b0d6986aa9f4747cd2d0f9b
18f2d1458103e1aacaaa14d9ff52654da0154dc8
/src/layers/cnn.py
a65eefba9fdcd3fd3a51a8020d43ef2cd3f172b7
[]
no_license
yamad07/IADA
4fbda5b2e7cdb5efd83f2bd2960bfb8dcfd0d455
7dbda1eb336f44e57567f4541e14b31304a4e381
refs/heads/master
2020-04-10T23:18:01.809883
2019-01-30T16:05:21
2019-01-30T16:05:21
161,347,800
5
0
null
null
null
null
UTF-8
Python
false
false
598
py
import torch.nn as nn def conv_layer(in_dim, out_dim, kernel_size): return nn.Sequential( nn.Conv2d(in_dim, out_dim, kernel_size=kernel_size, padding=int((kernel_size - 1)/2)), nn.ELU(inplace=True), nn.Conv2d(out_dim, out_dim, kernel_size=kernel_size, padding=int((kernel_size - ...
[ "yuhsukeshootsfc@gmail.com" ]
yuhsukeshootsfc@gmail.com
a82c891c8c753024768d78e5716329e714114205
cf5b2850dc9794eb0fc11826da4fd3ea6c22e9b1
/xlsxwriter/test/comparison/test_chart_drop_lines01.py
6e303f1bb4c31e9ce82494adcc98a6d81795dacb
[ "BSD-2-Clause" ]
permissive
glasah/XlsxWriter
bcf74b43b9c114e45e1a3dd679b5ab49ee20a0ec
1e8aaeb03000dc2f294ccb89b33806ac40dabc13
refs/heads/main
2023-09-05T03:03:53.857387
2021-11-01T07:35:46
2021-11-01T07:35:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,470
py
############################################################################### # # Tests for XlsxWriter. # # SPDX-License-Identifier: BSD-2-Clause # Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org # from ..excel_comparison_test import ExcelComparisonTest from ...workbook import Workbook class TestCompar...
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
440d85991f4a5c63c993bfa5575e75c0fe80b2eb
f281d0d6431c1b45c6e5ebfff5856c374af4b130
/DAY001~099/DAY25-BOJ1068-트리/shinjam.py
7db78b4398a5df90c58f272225b3fb2e50d4feb0
[]
no_license
tachyon83/code-rhino
ec802dc91dce20980fac401b26165a487494adb4
b1af000f5798cd12ecdab36aeb9c7a36f91c1101
refs/heads/master
2022-08-13T09:10:16.369287
2022-07-30T11:27:34
2022-07-30T11:27:34
292,142,812
5
6
null
null
null
null
UTF-8
Python
false
false
612
py
from collections import defaultdict N = int(input()) input_nodes = map(int, input().split()) del_node = int(input()) nodes = defaultdict(list) stack = [] visited = [0] * N for idx, val in enumerate(input_nodes): if del_node in [idx, val]: continue if val == -1: stack.append(idx) cont...
[ "noreply@github.com" ]
tachyon83.noreply@github.com
4a59a6d730c7d42759eeb4c97d075bd0b74a5420
3c000380cbb7e8deb6abf9c6f3e29e8e89784830
/venv/Lib/site-packages/cobra/modelimpl/vns/rsvdevdomainrefconttodomainref.py
6f6631bb9d8ebd61481610df7c86e13fd1a69120
[]
no_license
bkhoward/aciDOM
91b0406f00da7aac413a81c8db2129b4bfc5497b
f2674456ecb19cf7299ef0c5a0887560b8b315d0
refs/heads/master
2023-03-27T23:37:02.836904
2021-03-26T22:07:54
2021-03-26T22:07:54
351,855,399
0
0
null
null
null
null
UTF-8
Python
false
false
7,979
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "bkhoward@live.com" ]
bkhoward@live.com
2599f43c702b477847beae310b71941347de3dfc
d5492bcc77824e29669400622fd89b1349c90caf
/python网络数据采集/my_爬虫_进阶_之路/scrapy框架/my_spiders/电商项目/阿里1688_淘宝_天猫_京东_折800_卷皮_拼多多/my_flask_server/tools/时间戳_to_时间.py
bb9790a02ba469733ed07993cf5d5bc247faef0e
[]
no_license
XCodeAny/python
d88980682ba4db839911a5de8c073fa33a63da80
35991daf6c7eff4197662b9d07cb9fcdee6a0c02
refs/heads/master
2021-08-30T20:00:14.231120
2017-12-19T07:55:15
2017-12-19T07:55:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,009
py
# coding:utf-8 ''' @author = super_fazai @File : 时间戳_to_时间.py @Time : 2017/11/15 17:13 @connect : superonesfazai@gmail.com ''' import time def timestamp_to_regulartime(timestamp): ''' 将时间戳转换成时间 ''' # 利用localtime()函数将时间戳转化成localtime的格式 # 利用strftime()函数重新格式化时间 # 转换成localtime time_loc...
[ "superonesfazai@gmail.com" ]
superonesfazai@gmail.com
44bf8f5d04ab2ef20b3544249cd1b6392eb19290
1e9c9f2a9639db7cdb032aae69cb4d99aef1d3a5
/w3schools/python/reference/builtInFunctions.py
b9e411f63673bbb33d19faf1d68a200cdb99c7a9
[ "MIT" ]
permissive
sagarnikam123/learnNPractice
f0da3f8acf653e56c591353ab342765a6831698c
1b3b0cb2cff2f478006626a4c37a99102acbb628
refs/heads/master
2023-02-04T11:21:18.211654
2023-01-24T14:47:52
2023-01-24T14:47:52
61,184,927
2
1
MIT
2022-03-06T11:07:18
2016-06-15T06:57:19
Python
UTF-8
Python
false
false
3,948
py
# Built in Functions # abs()-Returns the absolute value of a number print(abs(-7.52)) print(abs(3+5j)) # all()-Returns True if all items in an iterable object are true mylist = [True, True, True] print(all(mylist)) # True print(all([1, 1, 1])) # True print(all([0, 1, 1])) # False print(all([])) # True print(all((...
[ "sagarnikam123@gmail.com" ]
sagarnikam123@gmail.com
05bf10e915b53d57bb3f0174801892d61daffed8
f4434c85e3814b6347f8f8099c081ed4af5678a5
/sdk/search/azure-search-documents/azure/search/documents/_internal/_generated/aio/__init__.py
fa69578ea7f244621643bd7e1b4c113301d9ff0d
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
yunhaoling/azure-sdk-for-python
5da12a174a37672ac6ed8e3c1f863cb77010a506
c4eb0ca1aadb76ad892114230473034830116362
refs/heads/master
2022-06-11T01:17:39.636461
2020-12-08T17:42:08
2020-12-08T17:42:08
177,675,796
1
0
MIT
2020-03-31T20:35:17
2019-03-25T22:43:40
Python
UTF-8
Python
false
false
552
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
yunhaoling.noreply@github.com
ae18e15d31cb04495f56ec8136afcdb8cbf22861
6ecf8227cc63ea5c8f05fdd6a7d28b3167119367
/blueking_forum/wsgi.py
9b85fd8c45ff19aed7455d4ee3ba00e35d2a3b0a
[]
no_license
doraemonext/blueking_forum
5ad0f46780e785a5af4db6f171654e351f509aa1
f5737dcdeaef15c37b37a0988aa1be98f6283834
refs/heads/master
2020-12-28T21:29:19.982785
2015-11-04T04:15:20
2015-11-04T04:15:20
44,859,369
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
""" WSGI config for blueking_forum 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.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANG...
[ "doraemonext@gmail.com" ]
doraemonext@gmail.com
9d8eef47748cb50afa81f15fa27c8d75bfaca146
08351ac650385e2ee0f4fc08ab8ef0978bc5bf3c
/Module2_HTTP/Request_response/Request.py
981163757b7ae56b101453c505885d2f3f2dcdcd
[]
no_license
tertiarycourses/PythonNetworkingTraining
d3c02488e91d318874558130a89fb112a2c95d55
9c5f223a4b83d21a791ac0d322306c3a78c4122f
refs/heads/master
2019-07-13T07:59:49.241235
2017-05-11T14:48:19
2017-05-11T14:48:19
83,748,786
0
0
null
null
null
null
UTF-8
Python
false
false
3,087
py
#Requests with urllib # from urllib.request import urlopen # from urllib.request import Request # response = urlopen('http://www.debian.org') # print(response) # print(response.readline()) # ##response object # print(response.url) # print(response.status) # print(response.headers['content-type']) #r...
[ "angch@tertiaryinfotech.com" ]
angch@tertiaryinfotech.com
e223b08659d04f02b9ff57fd9cc627a0bfbc4420
63ba933a294865f65409635f62e0f1d59f725f37
/src/arrays/bagOfTokensScore.py
86ce1032d9eb0987f1da6b22e658f67679b0f34d
[ "CC0-1.0" ]
permissive
way2arun/datastructures_algorithms
fc4302bdbb923ef8912a4acf75a286f2b695de2a
4ea4c1579c28308455be4dfa02bd45ebd88b2d0a
refs/heads/master
2021-12-07T04:34:35.732026
2021-09-30T12:11:32
2021-09-30T12:11:32
203,658,808
1
0
null
2020-08-08T15:55:09
2019-08-21T20:23:46
Python
UTF-8
Python
false
false
2,716
py
""" Bag of Tokens You have an initial power of P, an initial score of 0, and a bag of tokens where tokens[i] is the value of the ith token (0-indexed). Your goal is to maximize your total score by potentially playing each token in one of two ways: If your current power is at least tokens[i], you may play the ith toke...
[ "way2aru@yahoo.com" ]
way2aru@yahoo.com
a8b32038a3ade070c8f67b3eed0e66408c072e48
25d4c31d5ebe470118b14beb84f3cd1e53d99c15
/01_Tutorials/PyQt5_GUI_Tutorial/09_2_Tutorial_Progressbar_Button.py
195496bbd802cc5cf6756f04db46337e8a71d385
[]
no_license
daltdoerfer/Python_Templates-1
ea4b59489feb7b7617e81b7c94d4375dbf25def3
c2471cebeaf20bbfdfd3fd263d458e5a67ad8d1e
refs/heads/master
2023-05-10T15:07:10.109280
2021-06-08T06:45:53
2021-06-08T06:45:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,012
py
# Dieses Tutorial beinhaltet das einfügen von: # Progressbar mit ButtonS und (Multi-)Threading (Programm muss weiterlaufen und lagert andere Prozesse aus) # https://riptutorial.com/pyqt5/example/29500/basic-pyqt-progress-bar import sys import time from PyQt5 import * from PyQt5.QtWidgets import * from PyQt5.QtGui imp...
[ "daltdoerfer@yahoo.com" ]
daltdoerfer@yahoo.com
78b480c59e1129fef3f5117392043d5251f5e5cb
7c551e749064b25af706b9167211050f8c6ad0a9
/signatures/windows/trojan_rovnix.py
f9b6b29446060b6a111cd040ea82c6e53ff79178
[]
no_license
dashjuvi/Cuckoo-Sandbox-vbox-win7
fa382828b4895c5e1ee60b37a840edd395bf1588
a3a26b539b06db15176deadeae46fc0476e78998
refs/heads/master
2020-03-12T08:33:06.231245
2019-01-14T23:09:02
2019-01-14T23:09:02
130,529,882
6
1
null
null
null
null
UTF-8
Python
false
false
1,606
py
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. from lib.cuckoo.common.abstracts import Signature class Rovnix(Signature): name = "rovnix" description = "Rovnix Trojan" severity = 3 ...
[ "diegovm14@gmail.com" ]
diegovm14@gmail.com
e243451ce164809caa479471221ee886f2b8c8da
41c605bf3a002a757cb2344cff526d7a7ae56ea9
/plotly/validators/choropleth/unselected/__init__.py
6b386c7525f160cb5f23f28d158a37c663b847da
[ "MIT" ]
permissive
Jonathan-MW/plotly.py
9674b90b5de11fd9089e6afefd04b57bc4587829
7528c00772f44dee24c0df7e15d70a4852f171a8
refs/heads/master
2020-05-30T06:04:13.621478
2019-05-31T10:34:15
2019-05-31T10:34:15
189,571,988
2
0
MIT
2019-05-31T09:59:53
2019-05-31T09:59:53
null
UTF-8
Python
false
false
684
py
import _plotly_utils.basevalidators class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__( self, plotly_name='marker', parent_name='choropleth.unselected', **kwargs ): super(MarkerValidator, self).__init__( plotly_name=plotly...
[ "noreply@github.com" ]
Jonathan-MW.noreply@github.com
75b7140688bd7f5663275f7481f344ba0990f781
4e04f819e376c3fba7b6a57c228c289b2c3dde12
/compass/ocean/tests/global_ocean/mesh/so12to60/dynamic_adjustment/__init__.py
c183fae208713987c10bf3bf3c959e87c5ac2da9
[ "LicenseRef-scancode-warranty-disclaimer", "BSD-2-Clause" ]
permissive
Rihui-L/compass
65e88253f24240a4376a9f04c047c2756848a45a
4446f76222be26996fc44569a2047bdfb22e33ff
refs/heads/master
2023-06-19T12:45:30.190857
2021-07-20T19:48:43
2021-07-20T19:48:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,066
py
from compass.ocean.tests.global_ocean.dynamic_adjustment import \ DynamicAdjustment from compass.ocean.tests.global_ocean.forward import ForwardStep class SO12to60DynamicAdjustment(DynamicAdjustment): """ A test case performing dynamic adjustment (dissipating fast-moving waves) from an initial conditi...
[ "xylarstorm@gmail.com" ]
xylarstorm@gmail.com
06dec5bffda4f9bce976bfa3abf34ab323768695
c29de7ce2d91f572aeb4da56801de7a1dc034054
/st2/experiments/cifar10/exp011.py
f2fd3d516a219c49e1c585326c4a98eaf1043f51
[]
no_license
kzky/works
18b8d754bfc2b1da22022926d882dfe92ea785e6
b8708c305e52f924ea5a7071e0dfe5f2feb7a0a3
refs/heads/master
2021-01-10T08:04:44.831232
2018-03-01T15:09:47
2018-03-01T15:09:47
54,316,791
0
0
null
null
null
null
UTF-8
Python
false
false
5,121
py
import nnabla as nn import nnabla.functions as F import nnabla.parametric_functions as PF import nnabla.solvers as S import nnabla from nnabla.contrib.context import extension_context import numpy as np import os import time import argparse from st2.cifar10.cnn_model_011 import cnn_model_003, ce_loss, sr_loss, er_loss,...
[ "rkzfilter@gmail.com" ]
rkzfilter@gmail.com
fb4055ed05dc497e1fbf506797c4d8371e6725f6
bd053d2bf5444ab8f0b8b0ff56772fa75281e38d
/qchem/tests/test_observable.py
09b74d615188f94b288e790d8fe1d3a885eb13cd
[ "Apache-2.0" ]
permissive
johannesjmeyer/pennylane
bcb762583e95537b04a9b38756369571f957d2e5
8f602312baea107d5248267fb3dc1593722810e0
refs/heads/master
2023-07-11T18:21:31.086858
2021-08-14T19:21:42
2021-08-14T19:21:42
341,190,636
3
1
Apache-2.0
2021-06-16T09:01:58
2021-02-22T12:19:10
Python
UTF-8
Python
false
false
4,359
py
import os import numpy as np import pytest from pennylane import qchem from openfermion import FermionOperator, QubitOperator t = FermionOperator("0^ 0", 0.5) + FermionOperator("1^ 1", -0.5) v = ( FermionOperator("0^ 0^ 0 0", 0.25) + FermionOperator("0^ 1^ 1 0", -0.25) + FermionOperator("1^ 0^ 0 1", -0...
[ "noreply@github.com" ]
johannesjmeyer.noreply@github.com
c94b2c053a007e87154dc677ea8df2d8d6db02e4
e63c1e59b2d1bfb5c03d7bf9178cf3b8302ce551
/uri/uri_python/iniciante/p1038.py
e994b8738d0a17022bb596d11005b2a23996e826
[]
no_license
GabrielEstevam/icpc_contest_training
b8d97184ace8a0e13e1c0bf442baa36c853a6837
012796c2ceb901cf7aa25d44a93614696a7d9c58
refs/heads/master
2020-04-24T06:15:16.826669
2019-10-08T23:13:15
2019-10-08T23:13:15
171,758,893
5
0
null
null
null
null
UTF-8
Python
false
false
160
py
valor = input().split(" ") codigo = int(valor[0]) quantidade = int(valor[1]) preco = [4, 4.5, 5, 2, 1.5] print("Total: R$ %.2f" % (quantidade*preco[codigo-1]))
[ "gabrielestevam@hotmail.com" ]
gabrielestevam@hotmail.com
98e5bb02b2f1e5c29f9b110dae3b25cd10b004f1
d75703c2083dfc508c5608c4c35167b67d1a4308
/2nd Chapter/graphTwo.py
13107201655ba9be1fc0423142010b1927106346
[]
no_license
vubon/Python-core
e8159763d281152a1b64da3a0534899fd3def2b5
a415ef3c6159f0c85afa3240a762a00b2c68bd02
refs/heads/master
2020-07-03T17:08:10.091827
2016-12-09T19:26:51
2016-12-09T19:26:51
67,540,882
0
0
null
null
null
null
UTF-8
Python
false
false
213
py
import networkx as nx G=nx.Graph() G.add_node("A") G.add_node("B") G.add_none("C") G.add_edge("A","B") G.add_edge("B", "C") G.add_edge("C", "A") print("Nodes: " + str(G.nodes())) print("Edges: " + str(G.edge()))
[ "vubon.roy@gmail.com" ]
vubon.roy@gmail.com
354596a7e215dbda43d8b2a0e5becc1707e1fa44
e3946d91dc5fe71989c2f4b6390232865fcb5d1b
/fjord/flags/tests/test_tasks.py
cc907a579b61d1e71e3621331f63e2dfa138d835
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
zeusintuivo/fjord
61b632fd6df0e1b3508e628fe4f682a937cc0244
3bd227004d369df1fdc39f06acff12ebc8f0fe34
refs/heads/master
2021-01-16T18:28:52.564638
2014-09-24T21:02:51
2014-09-24T21:02:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,983
py
from mock import patch from nose.tools import eq_ # These tests require that tasks be imported so that the post_save # signal is connected. Don't remove this. import fjord.flags.tasks # noqa from fjord.base.tests import TestCase from fjord.feedback.tests import ResponseFactory from fjord.flags.spicedham_utils import...
[ "willkg@mozilla.com" ]
willkg@mozilla.com
ff0180f0924a802c747f04609234a645c5b90d6f
69c33fcad69a2e61cc60209401215530d033e712
/Python/Python Basics/32.opr.py
dae93683c4b9860393bb38c99d87a73107461c88
[]
no_license
KULDEEPMALIKM41/Practices
7659b895ea959c7df2cdbc79c0b982b36f2bde63
193abe262ff281a384aac7895bb66dc39ee6e88d
refs/heads/master
2023-08-17T11:01:11.694282
2021-09-30T08:12:41
2021-09-30T08:12:41
289,527,102
0
0
null
null
null
null
UTF-8
Python
false
false
509
py
# 4.Logical Operator => and , or, not # and or not # A B A and B | A B A or B | A not(A) # F F F F F F T F # F T F F T T # T F F T F T F T # T T T T T T a,b,c=10,20,5 res= b>a and b>c print('result : ',res) a,b,c=10,5,15...
[ "Kuldeepmalikm41@gmail.com" ]
Kuldeepmalikm41@gmail.com
42c2877963f0980cf4683bb135d63c3593ccd77c
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_267/ch3_2020_04_10_19_31_46_547518.py
f2b28c9beb403cc065d37ef9eac91b50609cac83
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
import math def calcula_gaussiana(x, mi, sigma): a = sigma*((2*math.pi)**(1/2)) b = -0.5*((x-mi)/sigma)**2 gaussiana = ((1/a)*(math.exp**b)) return gaussiana
[ "you@example.com" ]
you@example.com
459af06cd809435cbcaf4c1ecd35e0e3e713e427
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2981/60712/256536.py
0d28d89f2d62c8f4b6a26f95305cd6fb99293d9d
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
1,321
py
import re p =list(map(int,input().split())) s=re.split(r"([-])",input()) for i in range(len(s)): if s[i]=='-': pre = list(s[i-1]) pres =0 post=list(s[i+1]) posts=0 if 'a'<=pre[len(pre)-1]<='z': pres=1 else: pres=2 if 'a'<=post[0]<='z...
[ "1069583789@qq.com" ]
1069583789@qq.com
4e23d1b44a12c5b9a789d8eec13f30ebec60eef8
750c45da795fe15d7ef40d09660742b650631967
/snippet_builder/settings.py
7b0c8a5ce9b385cd0ef5bb27441918dd22218181
[]
no_license
John-W-Stevens/django_snippet_builder
cd984b69b3499136c4757bbae11d3f4701ef132e
58d2ecd2432d1c288969cffdd6de5c0ad546306e
refs/heads/master
2022-11-12T06:48:35.642128
2020-07-06T17:18:49
2020-07-06T17:18:49
258,379,535
0
0
null
null
null
null
UTF-8
Python
false
false
3,143
py
""" Django settings for snippet_builder project. Generated by 'django-admin startproject' using Django 2.2.10. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ imp...
[ "john.william.stevens1@gmail.com" ]
john.william.stevens1@gmail.com
a0857f8022a9592f8bee88c3e97a5859915ed831
55647a80c8b412af9df0ba3f50595cc2f29c25e6
/res/scripts/client/gui/Scaleform/daapi/settings/__init__.py
9aa47f81067051a2e6f0d8d3d3e359503585fce2
[]
no_license
cnsuhao/WOT-0.9.17-CT
0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb
d1f932d8cabaf8aa21708622e87f83c8d24d6451
refs/heads/master
2021-06-08T18:11:07.039293
2016-11-19T19:12:37
2016-11-19T19:12:37
null
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
494
py
# 2016.11.19 19:49:21 Střední Evropa (běžný čas) # Embedded file name: scripts/client/gui/Scaleform/daapi/settings/__init__.py class BUTTON_LINKAGES(object): BUTTON_BLACK = 'ButtonBlack' BUTTON_RED = 'ButtonRed' BUTTON_NORMAL = 'ButtonNormal' # okay decompyling c:\Users\PC\wotsources\files\originals\res\s...
[ "info@webium.sk" ]
info@webium.sk
6796605bf711e664aab04f2e9738a8154d274c11
5851bfab6684e49c808bcc724437a601107d17a8
/cnova_api_lojista_v2/model/TicketStatus.py
daf055a860a0629849121960142851503970bdd2
[]
no_license
ballke-dev/ViaVarejoSDK
18e3224a9d1faebfa00803dd41d4e70fe392e51e
90875423e4a5382faac926036de3cbc243a5c97f
refs/heads/master
2020-04-17T17:57:12.034404
2019-01-21T11:55:24
2019-01-21T11:55:24
166,805,846
0
0
null
null
null
null
UTF-8
Python
false
false
476
py
#!/usr/bin/env python class TicketStatus: def __init__(self): self.swaggerTypes = { 'ticket_status': 'str' } self.attributeMap = { 'ticket_status': 'ticketStatus' } #Novo status desejado do Ticket. Fechado &lt;st...
[ "ti2@ballke.com.br" ]
ti2@ballke.com.br
642d2eb59544d36fa4596d933f4e433abb98af6d
3fc3c2707a4618f81cc308a15abeea11c3d0101e
/neural_network.py
2b4d75fd9475c6b50031f7e57050c11e451422b3
[]
no_license
Louis-Saglio/Connect4
734fdfcf8c68f452db03f7f91827a02a8ae9049a
bbf7538ebd03c9b3be996b915546951cde15d209
refs/heads/master
2023-07-15T09:27:31.423144
2021-09-04T19:35:05
2021-09-04T19:35:05
385,692,431
0
0
null
null
null
null
UTF-8
Python
false
false
1,784
py
from __future__ import annotations import random from typing import Iterable import numpy as np def sigmoid(array): return 1/(1+np.exp(-array)) def relu(array): return np.maximum(0, array) class NeuralNetwork: def __init__(self, input_size: int, layers_size: Iterable[int]): self.layers = [] ...
[ "louis.saglio@sfr.fr" ]
louis.saglio@sfr.fr
2aad9c9d2778ce0c1f3d99e883d37d9ca996fc08
f1cb02057956e12c352a8df4ad935d56cb2426d5
/LeetCode/1928. Minimum Cost to Reach Destination in Time/Solution.py
cdd9f72047c03732266a7e77c97893623d41598b
[]
no_license
nhatsmrt/AlgorithmPractice
191a6d816d98342d723e2ab740e9a7ac7beac4ac
f27ba208b97ed2d92b4c059848cc60f6b90ce75e
refs/heads/master
2023-06-10T18:28:45.876046
2023-05-26T07:46:42
2023-05-26T07:47:10
147,932,664
15
2
null
null
null
null
UTF-8
Python
false
false
1,575
py
class Solution: def minCost(self, maxTime: int, edges: List[List[int]], passingFees: List[int]) -> int: # Time Complexity: O(V' + E') # where V' = maxTime x V, and E' = maxTime x E # Space Complexity: O(V') # Construct an augmented graph, whose nodes are (node, time) # and i...
[ "nphamcs@gmail.com" ]
nphamcs@gmail.com
bcf5a5f0b3af1dc80a764845106316ccaa7392fc
3939c1fc17fc5ad77b28c3da3b18ac3aeafc0fa8
/neighbour/migrations/0009_auto_20210726_2340.py
f38682d79eed9cc3ad4caba45fb83916b383eb65
[ "MIT" ]
permissive
ObadiaH123/neighbour
1bca1ba7e9ecbc330f4c8b9337b05bdba1b0e1da
e30085236ddb2048f751400805784241eec44d9f
refs/heads/master
2023-06-27T19:08:46.054615
2021-07-26T22:34:30
2021-07-26T22:34:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
950
py
# Generated by Django 3.1.7 on 2021-07-26 20:40 import cloudinary.models from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('neighbour', '0008_auto_20210726_2221'), ] operations = [ migrations.CreateModel( ...
[ "ronohkelvin99@gmail.com" ]
ronohkelvin99@gmail.com
0db13be2b7ae900ae80f4762afe3fbd131182e3b
d4a4b42fc7ce9f88f241f884d1b8f9f227c92b33
/examples/neq/loopunreach300/loopunreach300_1.py
da08d79d547395ba0c9a2859fa093f5647795141
[]
no_license
Client-Specific-Equivalence-Checker/CLEVER
a5cabcc6a127c80b7e8193f885bca8e5cf64b204
44a9027be67dcd94e0b4a30eb3cb5e7aeb0ab163
refs/heads/master
2022-02-13T04:23:29.654278
2019-02-06T17:10:48
2019-02-06T17:10:48
114,670,863
5
5
null
null
null
null
UTF-8
Python
false
false
216
py
def lib(a, b): c = 0 if a < 0: i = 1 while i <= a: c += b i += 1 return c def loopunreach300(x): if x >= 273 and x < 327: return lib(x, 300) return 0
[ "fmorarocha@gmail.com" ]
fmorarocha@gmail.com
c1c6117e9c201aada7c6b6791f1d3dbfd252238e
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/N5JhvabK6DTD5t6gS_15.py
f6baaf716744a9bad75f70f01fe4407df3c0b5a2
[]
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
231
py
import string def markdown(symb): def func(sentence, word): return ' '.join([symb+w+symb if w.lower().translate(str.maketrans('', '', string.punctuation)) == word.lower() else w for w in sentence.split(' ')]) return func
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
2a06d8169969719f56f6c0c63ed1ca5648bc7854
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02959/s028217014.py
14c06dba3326e2507be8d625653369abe7bef9af
[]
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
257
py
N = int(input()) A = list(map(int, input().split())) B = list(map(int, input().split())) ans = 0 for i in range(N+1): if i >= 1: p = min(A[i], B[i-1]) ans += p A[i] -= p if i < N: p = min(A[i], B[i]) ans += p B[i] -= p print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
2c80a63e8968899fc9de36d41cef0107e0562572
ee4db47ccecd23559b3b6f3fce1822c9e5982a56
/Build Chatbots/ChunkVerbPhrase.py
a1dfee73cfa4abcf2db55bb45550a1293288388d
[]
no_license
meoclark/Data-Science-DropBox
d51e5da75569626affc89fdcca1975bed15422fd
5f365cedc8d0a780abeb4e595cd0d90113a75d9d
refs/heads/master
2022-10-30T08:43:22.502408
2020-06-16T19:45:05
2020-06-16T19:45:05
265,558,242
0
1
null
null
null
null
UTF-8
Python
false
false
791
py
from nltk import RegexpParser from pos_tagged_oz import pos_tagged_oz from vp_chunk_counter import vp_chunk_counter # define verb phrase chunk grammar here chunk_grammar = "VP: {<VB.*><DT>?<JJ>*<NN><RB.?>?}" #chunk_grammar = "VP: {<DT>?<JJ>*<NN><VB.*><RB.?>?}" # create RegexpParser object here chunk_parser = RegexpPa...
[ "oluchukwuegbo@gmail.com" ]
oluchukwuegbo@gmail.com
0e4aaae67303557ecd576180c2a28859058ec15e
0cb38adedbe3a5192076de420e1aa0fd10ae3311
/returned_items/urls.py
6100088eab96c5170acd4668bd1525d0d7c18808
[]
no_license
fogcitymarathoner/rma
73ada816b98f068b6c00b2e1fcf39461259453fa
133d6026f99820d0702f0578b8a3b4574671f888
refs/heads/master
2021-01-11T00:32:47.797673
2016-10-10T18:34:54
2016-10-10T18:35:11
70,516,821
0
0
null
null
null
null
UTF-8
Python
false
false
970
py
from django.conf.urls import patterns, include, url from returned_items.views import index from returned_items.views import move_items from returned_items.views import ReturnedItemCreateView from returned_items.views import ReturnedItemUpdateView from returned_items.views import ReturnedItemDeleteView from returned_ite...
[ "marc@fogtest.com" ]
marc@fogtest.com
4ecdb5f970f3ac775afb8cb4bbf3db8350538c59
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_tb.py
d43de208d660ddec2bbd491b4d2a8ecbfce158ae
[ "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
343
py
#calss header class _TB(): def __init__(self,): self.name = "TB" self.definitions = [u'abbreviation for tuberculosis ', u'written abbreviation for terabyte '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'nouns' def run(self, obj1 = [], obj2 = []): ...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
fd357530dfd0ab6b2300482b496fcc90edc6ae81
1491bc7c6c1a8e025f84e7ceaeb389f109b3d37c
/Eapp/modals/product.py
e04b28b97bcb9f6ce8df74429d25969063f27c9c
[]
no_license
Taraltinu/Second-project
47516dbce9255e0b0a9452accce178e7a2a9ec55
e052457afb1559b572331f5e62840f78d5b07b07
refs/heads/master
2022-12-29T18:15:19.251268
2020-10-02T17:40:20
2020-10-02T17:40:20
300,688,143
1
0
null
null
null
null
UTF-8
Python
false
false
786
py
from django.db import models from django.contrib.auth.models import User from Eapp.modals.category import CategoryModel class ProductModel(models.Model): seller = models.ForeignKey(User,on_delete=models.CASCADE) product_name = models.CharField(max_length=250) product_Cat = models.ForeignKey(CategoryMode...
[ "tinu1316@gmail.com" ]
tinu1316@gmail.com
6abdc35a733f4947b3ff36352ec09f4ccde3faeb
a1cbf221a6befed3891d75c69e2a546effd2499d
/payroll/models.py
12882e648d086a944362c8df582726c35acbbf23
[]
no_license
Coder339/V-django-newCRM
9a93efbb252ba814241076ece17088af8dd15935
2182266204f54d301b7c087a99627d441e00fe54
refs/heads/master
2022-12-24T15:12:47.081949
2020-08-24T12:15:13
2020-08-24T12:15:13
247,274,031
0
2
null
2022-12-08T04:19:35
2020-03-14T12:39:13
Python
UTF-8
Python
false
false
2,281
py
from django.db import models from authentication.models import EmployeeProfile class EmployeePackage(models.Model): # to be send # months = ( # ('JAN','JAN'),('FEB','FEB'),('MAR','MAR'),('APR','APR'), # ('MAY','MAY'),('JUN','JUN'),('JULY','JULY'),('AUG','AUG'), # ('SEP','SEP'),('OCT',...
[ "amanpreet.leanvia@gmail.com" ]
amanpreet.leanvia@gmail.com
9d52bc51d884bd0bd422bf9fc7be75aa01e5af19
1538320b5419539879c76f923206753fc0746b4a
/proteus/tests/SWFlows/dam3Bumps.py
dc0732ed3e744a0559ff73677e586e6efa738a5a
[ "MIT" ]
permissive
dloney/proteus
829169228221e2ca8bffad2c518d8d858da6af48
615cdf57f765b2e99bac904bb6eb71e39e58ab56
refs/heads/master
2020-06-30T00:05:53.816553
2019-08-01T07:41:15
2019-08-01T07:41:15
200,662,475
0
0
MIT
2019-08-05T13:38:18
2019-08-05T13:38:17
null
UTF-8
Python
false
false
3,481
py
from __future__ import division from builtins import object from past.utils import old_div from proteus import * from proteus.default_p import * from proteus.mprans import SW2D from proteus.mprans import SW2DCV from proteus.Domain import RectangularDomain import numpy as np from proteus import (Domain, Context, ...
[ "cekees@gmail.com" ]
cekees@gmail.com
05c338ef5fbde0852cfd563177a583f42c08bcd4
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/380/usersdata/308/85637/submittedfiles/testes.py
b124f9a58f1dbe095c14a4e1a353c59ee692bba3
[]
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
514
py
# -*- coding: utf-8 -*- #COMECE AQUI ABAIXO n = int(input("Digite a quantidade de vezes: ")) for i in range (0, n+1, 1): print('Olá mundo') """ visual = [[' ',' ', ' '], [' ', ' ',' '], [' ', ' ', ' ']] for i in range(0, 10, 1): a = str(input('Selecione a posição: ')) if i%2==0: visual[int(a[0])][in...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
cc2cdf4e5ff6349c49bcbc52e970a773bbc84e63
8c917dc4810e2dddf7d3902146280a67412c65ea
/v_7/NISS/shamil_v3/fuel_management/wizard/fuel_slice_report.py
65ec4386e868bb9ae0da2e2aba4d26c188ce0b93
[]
no_license
musabahmed/baba
d0906e03c1bbd222d3950f521533f3874434b993
0b997095c260d58b026440967fea3a202bef7efb
refs/heads/master
2021-10-09T02:37:32.458269
2018-12-20T06:00:00
2018-12-20T06:00:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,407
py
# -*- coding: utf-8 -*- ############################################################################## # # NCTR, Nile Center for Technology Research # Copyright (C) 2016-2017 NCTR (<http://www.nctr.sd>). # ############################################################################## from osv import fields, osv...
[ "bakry@exp-sa.com" ]
bakry@exp-sa.com
94b322e6f3fc89092bd1e3c38f205837a8b9d53b
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_sundowns.py
e5bbcdb49d823bb48b71f7c94f658c3e6ef988cd
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
#calss header class _SUNDOWNS(): def __init__(self,): self.name = "SUNDOWNS" self.definitions = sundown self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['sundown']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
a9cb150fe24e6d478a7062b79a9926b1c2c792b8
bd6fd6bb82bf3179a4571c7a2ca3a030f5684c5c
/mundo3-EstruturasCompostas/081-ExtraindoDadosDeUmaLista.py
bad61e35e4d14143637f0d9408833e3179835979
[ "MIT" ]
permissive
jonasht/CursoEmVideo-CursoDePython3
b3e70cea1df9f33f409c4c680761abe5e7b9e739
a1bbf1fe4226b1828213742ee5a440278d903fd1
refs/heads/master
2023-08-27T12:12:38.103023
2021-10-29T19:05:01
2021-10-29T19:05:01
276,724,139
0
0
null
null
null
null
UTF-8
Python
false
false
571
py
lista = [] print('type s to exit\ndigite s para sair') while 1: num = input('N: ') if num == 's': break else: lista.append(int(num)) lista.reverse() print('lista reversa', lista) print('foram digitados', len(lista), ' numeros') print('numero 5 foi digitado' if 5 in lista else 'sem 5') #Exercício Python 0...
[ "jhenriquet@outlook.com.br" ]
jhenriquet@outlook.com.br
1e3ed3f3fd8d5b2c94d100304c32df7f9ac83452
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/72/usersdata/212/39304/submittedfiles/tomadas.py
ef757877e9f3f17521a58f298b71fb444b7e3dab
[]
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
377
py
# -*- coding: utf-8 -*- import math #COMECE SEU CODIGO AQUI t1=int(input('digite o número de tomadas da régua do integrante 1:')) t2=int(input('digite o número de tomadas da régua do integrante 2:')) t3=int(input('digite o número de tomadas da régua do integrante 3:')) t4=int(input('digite o número de tomadas da régua...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
1024a326cae1b15ef82188bdaf3d59809f4f0394
77353aa80cefff9856c423acdb1313f6f7239bc4
/dictionary/dict_count_item.py
d5935917c6b69b866c300d20b63c95f6c0688023
[]
no_license
upasek/python-learning
ed21bc555bd684fbb432d852a274dc5a8fff38de
026c73fe8369254bffb3f78cfd80fb152648cffa
refs/heads/master
2023-03-18T19:34:11.297607
2021-03-12T17:51:54
2021-03-12T17:51:54
284,996,974
2
1
null
null
null
null
UTF-8
Python
false
false
346
py
#Write a Python program to count number of items in a dictionary value that is a list. dict = {'Alex': ['subj1', 'subj2', 'subj3'], 'David': ['subj1', 'subj2', 'subj3']} print("Original dictionary :",dict) count = 0 for values in dict.values(): count += len(values) print("Number of items in a dictionary value th...
[ "kvsupase@gmail.com" ]
kvsupase@gmail.com
5e6c0294c8f9f716e5347736ce9e9ba02b6e07b6
09e7c3aab7cd34c6caf701ec7224581f68c246b0
/zkmanager/filters.py
2743c148ad9fe1cd62398f3656f2e839414f9f73
[]
no_license
itimor/kaoqin
d383430b29b67152469cf652690aa1ad4fd3c4eb
8113f393c5375295494890a5d17fea2d47b30599
refs/heads/master
2021-04-15T03:49:19.965242
2018-05-03T05:38:24
2018-05-03T05:38:24
126,454,042
3
0
null
null
null
null
UTF-8
Python
false
false
359
py
# -*- coding: utf-8 -*- # author: itimor from .models import Punch from django_filters import rest_framework as filters from django_filters import DateFromToRangeFilter class PunchFilter(filters.FilterSet): create_date = DateFromToRangeFilter() class Meta: model = Punch fields =...
[ "kevin@126.com" ]
kevin@126.com
7bd962e4114a78c5aa9d3f87534c875261886917
13f33343e701fbfb4306c6835c24877e81dba12e
/backend/epic_kidz_3889/settings.py
0e8f599bee2d8fae95582265c65cfb7a1d4d5a77
[]
no_license
crowdbotics-apps/epic-kidz-3889
386f8b944b2c31438a6e5ae277c866ac0eb87921
64ced56bcffe1fa0e7d4d17de7b60e26ad1a7f91
refs/heads/master
2022-12-12T21:07:15.985176
2019-05-27T02:47:13
2019-05-27T02:47:13
188,760,034
0
0
null
2022-12-03T11:08:16
2019-05-27T02:47:10
JavaScript
UTF-8
Python
false
false
4,752
py
""" Django settings for epic_kidz_3889 project. Generated by 'django-admin startproject' using Django 1.11.16. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ i...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
db04a848e4b84dbd17930a7c2f34b562f45e428c
b13a1a96e9f1dddb3a3a44b636ca939b85962899
/LevelFive/template_project/app_template/views.py
76972ad28a08916481e475c5e6e8f27f5d09afed
[]
no_license
jspw/Django-Test
f266331c73c34b83b1189811a163567b6b4cc60b
13a6d0146c9c78f8fa03c269e4546b5bbdb146bd
refs/heads/master
2021-03-23T17:50:21.764636
2020-10-18T09:21:23
2020-10-18T09:21:23
247,472,132
5
0
null
null
null
null
UTF-8
Python
false
false
2,923
py
from django.shortcuts import render from app_template.forms import UserProfileInfoForm,UserForm from django.core import validators from django import forms # from django.contrib.auth import authenticate,login,logout from django.http import HttpResponseRedirect,HttpResponse # from django.core.urlresolvers import reve...
[ "mhshifat757@gmail.com" ]
mhshifat757@gmail.com
66a1617fd944f84ba67cfff2a6a9a9b743131465
786027545626c24486753351d6e19093b261cd7d
/ghidra9.2.1_pyi/ghidra/util/state/FunctionAnalyzer.pyi
8ef7e534299b278b57e27b3297e6d55cfed74262
[ "MIT" ]
permissive
kohnakagawa/ghidra_scripts
51cede1874ef2b1fed901b802316449b4bf25661
5afed1234a7266c0624ec445133280993077c376
refs/heads/main
2023-03-25T08:25:16.842142
2021-03-18T13:31:40
2021-03-18T13:31:40
338,577,905
14
1
null
null
null
null
UTF-8
Python
false
false
6,284
pyi
from typing import List import ghidra.program.model.address import ghidra.program.model.pcode import ghidra.program.model.symbol import ghidra.util.state import ghidra.util.task import java.lang class FunctionAnalyzer(object): def dataReference(self, op: ghidra.program.model.pcode.PcodeOp, instrOpIndex: i...
[ "tsunekou1019@gmail.com" ]
tsunekou1019@gmail.com
3fb9d6f478528789a6f211aea81aac01dd9a6fe1
b7eb41b068614e04f38a969326f43d8f8119cb05
/897__increasing_order_search_tree.py
82e08117e36c06d7d355bd81c0c774907a48e697
[]
no_license
YI-DING/daily-leetcode
ddfb6985bf5014886cba8d6219da243e0aa28d71
a6d3898d900f2063302dc1ffc3dafd61eefa79b7
refs/heads/master
2020-05-19T06:07:21.557077
2019-07-19T16:31:46
2019-07-19T16:31:46
184,866,366
0
0
null
null
null
null
UTF-8
Python
false
false
1,475
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def increasingBST(self, root: TreeNode): print(f'{root.val} is what we are examining. Its left is {None if not root.left...
[ "yiding1@uchicago.edu" ]
yiding1@uchicago.edu
05d317851bc0a3a46cc148bd399a725b7cd60215
ace30d0a4b1452171123c46eb0f917e106a70225
/filesystems/vnx_rootfs_lxc_ubuntu64-16.04-v025-openstack-compute/rootfs/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/ovo_rpc.py
ec7d84d2665cd4773f8a00eb74734e919975206b
[ "Python-2.0" ]
permissive
juancarlosdiaztorres/Ansible-OpenStack
e98aa8c1c59b0c0040c05df292964520dd796f71
c01951b33e278de9e769c2d0609c0be61d2cb26b
refs/heads/master
2022-11-21T18:08:21.948330
2018-10-15T11:39:20
2018-10-15T11:39:20
152,568,204
0
3
null
2022-11-19T17:38:49
2018-10-11T09:45:48
Python
UTF-8
Python
false
false
6,363
py
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under ...
[ "jcdiaztorres96@gmail.com" ]
jcdiaztorres96@gmail.com
04054e64b66cefba84ca094869841104b29f8fdb
14d8adc86adc14c1d64a5550b1bbd5663e984545
/链条/reverse_linked_list.py
2a4d84cb454b930a26ef0694c55d5098cf8338e6
[]
no_license
milllu/leetcode
e1b68ef7774cc0c1b49325ec1b87280d27570d94
458b3e72cd82a203b10bdca747c4c3ba85708f75
refs/heads/master
2020-03-30T23:41:46.180308
2018-10-11T01:08:31
2018-10-11T01:08:31
151,709,941
0
0
null
null
null
null
UTF-8
Python
false
false
785
py
""" 反转一个单链表。 示例: 输入: 1->2->3->4->5->NULL 输出: 5->4->3->2->1->NULL """ # Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def reverseList(self, head): """ 迭代 """ res = ...
[ "3351440959@qq.com" ]
3351440959@qq.com
cb474534c6555535ead6b6ef459893799675e547
463c053bcf3f4a7337b634890720ea9467f14c87
/python/ray/tune/tests/test_trial_executor_inheritance.py
0ced35aff17c1af561f0108d7e295cdf648f720c
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
pdames/ray
e8faddc4440976211a6bcead8f8b6e62c1dcda01
918d3601c6519d333f10910dc75eb549cbb82afa
refs/heads/master
2023-01-23T06:11:11.723212
2022-05-06T22:55:59
2022-05-06T22:55:59
245,515,407
1
1
Apache-2.0
2023-01-14T08:02:21
2020-03-06T20:59:04
Python
UTF-8
Python
false
false
1,700
py
import unittest class TestTrialExecutorInheritance(unittest.TestCase): def test_direct_inheritance_not_ok(self): from ray.tune.trial_executor import TrialExecutor msg = ( "_MyTrialExecutor inherits from TrialExecutor, which is being " "deprecated. " "RFC: http...
[ "noreply@github.com" ]
pdames.noreply@github.com
3508427df51b9b799e24ea86dfef9e9c939e0510
9d5c9d9373002ab4ed1b493136517e8b4ab160e5
/saas/backend/apps/role/filters.py
f626398fc2b1aff6f2a1f372c0d99597f01bf2aa
[ "MIT" ]
permissive
robert871126/bk-iam-saas
f8299bb632fc853ef0131d445f84c6084fc84aba
33c8f4ffe8697081abcfc5771b98a88c0578059f
refs/heads/master
2023-08-23T19:23:01.987394
2021-10-22T09:45:28
2021-10-22T09:45:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,213
py
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-权限中心(BlueKing-IAM) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with th...
[ "zhu327@gmail.com" ]
zhu327@gmail.com
1beee7a48a2061f0237ff1299fb0a91d09dcbc80
c85aede0797e73dd719646a0f7671594b0d4e4e9
/sbin/coveragerc_manager.py
9292485b449a1bbfe9fe5d1bd624d95e573d4a61
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mtiid/putil
c0493535ed5ee7694546ee9193cad0a764c440fc
a99c84ee781aa9eb6e45272f95b82ac35648ba4b
refs/heads/master
2021-01-18T09:05:50.437577
2016-01-20T16:01:12
2016-01-20T16:01:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,345
py
#!/usr/bin/env python # coveragerc_manager.py # Copyright (c) 2013-2016 Pablo Acosta-Serafini # See LICENSE for details # pylint: disable=C0111 # Standard library imports from __future__ import print_function import os import sys ### # Global variables ### SUBMODULES_LIST = ['plot', 'pcsv'] ### # Functions ### def...
[ "pmasdev@gmail.com" ]
pmasdev@gmail.com
696ddcda78f4d5e20f42851f7bec6f166409b249
c127946e261f7a1739f998bab5126825bb3c1399
/osext/test/__main__.py
6fa395430c40f7e4a7a30d3674dedfcae7be7c5b
[ "MIT" ]
permissive
Tatsh/osext
a9763aa87d357f90169a2595caff01616558d066
d375990eee1b66fd2cd7bdde0d9313e2340eee3c
refs/heads/master
2020-03-30T13:11:08.709090
2015-01-09T20:32:16
2015-01-09T20:32:16
28,982,701
0
0
null
null
null
null
UTF-8
Python
false
false
233
py
from osext.test import argparse_actions_test, pushdtest import unittest for test in (pushdtest, argparse_actions_test): suite = unittest.TestLoader().loadTestsFromModule(test) unittest.TextTestRunner(verbosity=2).run(suite)
[ "audvare@gmail.com" ]
audvare@gmail.com
08a264c9708f0dee374d65a90f0a2fc828e0b770
8afe87c4e26e08b1dc24090a39fbedd7fa84210a
/sdnmpi/topology.py
61ce97e6272298ba52328eaa2955b933ae0546c1
[]
no_license
keichi/sdn-mpi-router
ca1cc128fa4fff11b61851d34fae0b21ed4b65ab
b20be81d39363cc28a9a0a5826a4450f9946d9d9
refs/heads/master
2023-01-10T00:29:03.959435
2016-02-09T01:03:07
2016-02-09T01:03:07
56,743,429
1
0
null
2022-12-26T20:03:41
2016-04-21T04:50:56
Python
UTF-8
Python
false
false
7,216
py
from ryu.base import app_manager from ryu.controller.handler import MAIN_DISPATCHER, set_ev_cls from ryu.controller.event import EventRequestBase, EventReplyBase from ryu.topology import event, switches from ryu.controller import ofp_event from ryu.lib.mac import haddr_to_bin, BROADCAST_STR, BROADCAST from ryu.lib.pack...
[ "keichi.t@me.com" ]
keichi.t@me.com
609168d13020a0c809176ddcb3d7c7dc19e27ab8
5c6a8cd15955f7ca5f822b17b56c37c36ca4144d
/networks/cnn_pathnet.py
b180e502fad140c272e3f43dd85b7daf79977d15
[]
no_license
xavoliva/CAT
57e48eb958d10f17071797645f4836ed33ae74a7
5f32ada1eed4bf4de4488840bd3ae7163e9dd22b
refs/heads/main
2023-01-22T16:06:40.200292
2020-12-08T17:38:30
2020-12-08T17:38:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,851
py
import sys import torch import numpy as np import utils class Net(torch.nn.Module): def __init__(self,inputsize,taskcla,nhid,args=0): super(Net,self).__init__() ncha,size,_=inputsize self.taskcla=taskcla self.ntasks = len(self.taskcla) """ # Config of Sec 2.5 in t...
[ "15011700342Xuan" ]
15011700342Xuan
f8eb3d68f2d770a036a28684ef69c41aea31c054
cd876d32aa66112892dc9550837ad843e3e03afd
/env_carzone/Lib/site-packages/django/core/management/commands/createcachetable.py
a12ceb3830b2b8047936d89d1ddde2574dd92d98
[ "BSD-3-Clause" ]
permissive
viplavdube/Car-Yard-App
7665b7e6e54f3b0e4a4da563151f85d65c225cef
65381a50f828e80f31d25d4f35e497f51c2d224d
refs/heads/master
2023-04-19T03:49:18.991604
2021-04-27T17:51:10
2021-04-27T17:51:10
349,094,392
0
0
null
null
null
null
UTF-8
Python
false
false
4,591
py
from django.conf import settings from django.core.cache import caches from django.core.cache.backends.db import BaseDatabaseCache from django.core.management.base import BaseCommand, CommandError from django.db import ( DEFAULT_DB_ALIAS, connections, models, router, transaction, ) from django.db.uti...
[ "viplav45@gmail.com" ]
viplav45@gmail.com
574e2bed1cd21db75ad93f26f6a4d3ef13c1fe29
e04dbc32247accf073e3089ed4013427ad182c7c
/ABC170/ABC170E.py
1c214969afcd03042c9fd6af3e054cba88882ed0
[]
no_license
twobooks/atcoder_training
9deb237aed7d9de573c1134a858e96243fb73ca0
aa81799ec87cc9c9d76de85c55e99ad5fa7676b5
refs/heads/master
2021-10-28T06:33:19.459975
2021-10-20T14:16:57
2021-10-20T14:16:57
233,233,854
0
0
null
null
null
null
UTF-8
Python
false
false
1,115
py
# from math import factorial,sqrt,ceil #,gcd # from itertools import permutations,combinations,combinations_with_replacement # from collections import deque,Counter # from bisect import bisect_left # from heapq import heappush,heappop # from numba import njit # from functools import lru_cache # 簡単メモ化 @lru_cache(maxsize...
[ "twobookscom@gmail.com" ]
twobookscom@gmail.com
9e6391d2d0d23d34224673b134a21aec53a8b1e5
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/atbash-cipher/732cc5e5db4b4586a3bb7cffc064fcb3.py
ba9e3ac694f7d1f30189a304637ff582b21d8087
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
580
py
from string import (maketrans, translate, ascii_letters, ascii_lowercase, punctuation) atbash_cipher_trans = maketrans(ascii_letters, ascii_lowercase[::-1] * 2) def encode(msg): # Puts message in lower case, translates it # and removes the whitespace and punctuation. msg = ms...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
3c4e22716c2bd1accf2c11a6210fd7e12e7a2bcc
64cd09628f599fe18bf38528309349f7ac0df71e
/Introduction/02_Introduction_numpy/10 Numpy functions/expand_dims.py
c146781e6b7b57ef3ce33ab609f0f9f00c00b100
[]
no_license
JunyoungJang/Python
958c057b2fd37c03876d3cf566ee27ee637bb020
76d4cd441deff8061e10608e0848360bc4f34490
refs/heads/master
2021-01-19T21:54:42.208469
2020-02-14T09:54:17
2020-02-14T09:54:17
83,768,220
1
0
null
null
null
null
UTF-8
Python
false
false
168
py
import numpy as np a = np.array([1,2]) print a.shape # (2,) b = np.expand_dims(a, axis=0) print b.shape # (1, 2) c = np.expand_dims(a, axis=1) print c.shape # (2, 1)
[ "lakino@yonsei.ac.kr" ]
lakino@yonsei.ac.kr
cb3f6f45cc319404055a4824bd21acb67168c260
6def5721d5c7c6a9cde32a19c58ec129d2c7c6b2
/Week_3/socket.py
ef9afd70ca80bee32b0565b18c6528d74234e23e
[ "MIT" ]
permissive
Sid2697/Python-to-access-web-data
9d054a7e5c6d2300ec3652f367f85e355a4702c5
74b61339cc9060263e3f2d22e9ed90281276ab50
refs/heads/master
2021-05-01T17:42:27.894592
2018-02-12T11:36:52
2018-02-12T11:36:52
120,995,037
1
0
null
null
null
null
UTF-8
Python
false
false
331
py
import socket mysock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) mysock.connect(('data.pr4e.org', 80)) cmd = 'GET http://data.pr4e.org/intro-short.txt HTTP/1.0\r\n\r\n'.encode() mysock.send(cmd) while True: data = mysock.recv(512) if (len(data) < 1): break print(data.decode(),end='') myso...
[ "noreply@github.com" ]
Sid2697.noreply@github.com
d6e26c537e5b3b7cc83493da35a8217f0921a9d8
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02995/s716079488.py
cb1f2ffe4fe50d37290c4cfff656f2583b7f8e62
[]
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
167
py
import math a, b, c, d = map(int, input().split()) m = b//c + (-a//c) n = b//d + (-a//d) g = c * d // math.gcd(c, d) p = b//g + (-a//g) print(b-a+1-(m+1+n+1-(p+1)))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
a8c3c9123e66db1f7cb29f5b7e0b69ccab0c0c28
b0210f0320e47e3384c43c56e686844081374c6d
/tyk2_input/L31/31-46_wat/run.py
03974c39662571c19c71e562bc7471b25406fdc3
[]
no_license
taisung/MSU_Rutgers-GTI
2531a9346e82131a38dfdef727380f1c100f5def
3914a07a6be9af6d3d968288b9d4c3049fc10066
refs/heads/master
2021-09-14T05:45:38.906495
2018-05-08T17:42:16
2018-05-08T17:42:16
114,943,688
0
0
null
null
null
null
UTF-8
Python
false
false
1,083
py
import os dir = '/mnt/scratch/songlin3/run/tyk2/L31/wat/ti_one-step/31_46/' filesdir = dir + 'files/' temp_equiin = filesdir + 'temp_equi.in' temp_prodin = filesdir + 'temp_prod.in' temp_pbs = filesdir + 'temp.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.9...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
f2c37c2304e5871aa5b2d791a0ac8b0d94018f0b
4ae775089e78aa6362545ae1f3b1beeb9dbba748
/offset-game/envs/base_env.py
b546f66d8ed51eec258014406aa613eb4ab30903
[ "MIT" ]
permissive
JosephDistefano/offset-human-interface
9a3da267becaf1a2c2fafa20fd48684726e97c2c
88ba05554c289f2c966f663b11930f37fc938a83
refs/heads/master
2020-09-14T17:52:53.198045
2019-11-19T01:51:42
2019-11-19T01:51:42
223,205,679
0
0
MIT
2019-11-21T15:31:41
2019-11-21T15:31:40
null
UTF-8
Python
false
false
2,448
py
import math import numpy as np import pybullet as p import pybullet_data import pybullet_utils.bullet_client as bc class BaseEnv(object): def __init__(self, config): self.config = config # Usage mode if config['simulation']['headless']: self.p = bc.BulletClient(connection_mod...
[ "hemanthm2277@gmail.com" ]
hemanthm2277@gmail.com
d32ed17280ed2172a5ce234c61ad8de6e9779b1b
b0c8bdf5f8045ca5c0322d8e1ca685d3c0d4944a
/download_soundcloud_playlist_to_wav.py
544d86183ba1a30ba6945c2895977c04a0630028
[ "MIT" ]
permissive
255BITS/DCGAN-tensorflow
428525fbd59f90f4ff54482f43e981ba82b72629
684a24da17d1359606d05a36b97c82a33b3fa4da
refs/heads/master
2020-12-13T23:30:32.728196
2016-03-31T06:42:17
2016-03-31T06:42:17
54,516,766
0
0
null
2016-03-22T23:50:15
2016-03-22T23:50:15
null
UTF-8
Python
false
false
537
py
import os import sys import glob import time def do(command): print("Running " + command) print(os.system(command)) i = 0 if(len(sys.argv) > 1): do("cd training/to_process && scdl -c -a -l "+sys.argv[1]) for file in glob.glob('training/to_process/**/*.mp3'): wav_out = 'training/wav'+str(i)+'-...
[ "mikkel@255bits.com" ]
mikkel@255bits.com
2ffd314ff2cf58180b30587ccf95ac157863664e
618f7f381ef68cf6b4384ad2a544202f0f4d286e
/Plugins/ChatLikeCMD/ChatLikeCMD.py
bec65332609d49bcedccbb4344171b9b49370934
[ "MIT" ]
permissive
Lao-Tzu-Taoism/EasierLife
bc7b4bed8cc79f9e348a34d13827b4e53d274ac8
1a6bb691f99c6075e92cf1e566529b9074f3edab
refs/heads/master
2021-08-29T23:27:43.248207
2017-12-15T08:26:38
2017-12-15T08:26:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,974
py
#coding=utf8 import thread, time, sys, os, platform try: import termios, tty termios.tcgetattr, termios.tcsetattr import threading OS = 'Linux' except (ImportError, AttributeError): try: import msvcrt OS = 'Windows' except ImportError: raise Exception('Mac i...
[ "i7meavnktqegm1b@qq.com" ]
i7meavnktqegm1b@qq.com
e9d20af65be43f8bf9ec9fb4ea874002c82bf2e2
22b906ca2dab20d8b88e58a5bc862ddc15960f05
/src/python/app/controllers/sample_controller.py
951eda108863580add8f7a796efcc5e2b11da0e3
[]
no_license
itsumura-h/speed_test
3705d7e587362f14ed7cbc33e0e5b6463e3d94da
57c999e7833cfc1e3abb48bf46e77df48732e1a1
refs/heads/master
2022-12-15T13:11:15.125585
2019-09-03T14:14:53
2019-09-03T14:14:53
204,280,512
0
0
null
2022-04-22T22:15:41
2019-08-25T10:42:30
Python
UTF-8
Python
false
false
268
py
from django.http.response import JsonResponse from ..services.domain_services.sample_service import SampleService class SampleController: def fib(self, num): new_num = int(num) data = SampleService().fib(new_num) return JsonResponse(data)
[ "dumblepy@gmail.com" ]
dumblepy@gmail.com
f9529e9350359629ea1dd8c1d73962ffbc7413c0
d930edd227427e03931a9d4be2997bfaea8cb3a6
/unit_10/talk.py
6e153a52f84943baf0c4afb8752eed45e8b71b7f
[]
no_license
mikeselezniov/python-21v
2d95c5a87c9d1e9371577127d4dfbc03a1b77d7f
8c5753ccdc07492ea9cf46acac643c9e9674d4c7
refs/heads/master
2020-12-28T04:38:54.456159
2015-07-05T19:06:24
2015-07-05T19:06:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
856
py
# -*- coding:utf-8 -*- # функция в Python'e может быть определена… внутри другой функции! def talk(): # Внутри определения функции "talk" мы можем определить другую... def whisper(word="да"): return word.lower()+"..."; # ... и сразу же её использовать! print whisper() # Теперь, КАЖДЫЙ Р...
[ "janusnic@gmail.com" ]
janusnic@gmail.com
05a625ebd18925ce38954b5a657ed70269ef23fd
f7c82725ae83896385109ffa1476eb98e411b13e
/setup.py
cee2f8da328b2ae8f2a02d7dd08b28374400aa18
[ "MIT" ]
permissive
myousefi2016/vtkInterface
f173fda29648ee28fb8e0ba39d3724a6d4ef6205
3c18f4a5fe25b67f918809fd0589b80bbf3bff1d
refs/heads/master
2021-06-20T03:41:42.666862
2017-08-04T12:44:52
2017-08-04T12:44:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,742
py
""" Installation file for python vtkInterface module """ from setuptools import setup import os from io import open as io_open package_name = 'vtkInterface' # Get version from tqdm/_version.py __version__ = None version_file = os.path.join(os.path.dirname(__file__), package_name, '_version.py') with io_...
[ "akascap@gmail.com" ]
akascap@gmail.com
be70b94decd74015163cc6d0d9c11389e0116e44
0bb1d74bac2872b76fb7ae5bfb40e36ecac7cfa2
/py/funcion.py
5e4a47cda6a6e1d6f2f02f8dbe8ac97b457d41d4
[]
no_license
antalcides/migit
965349fa53f4e2c99419fc15ae2e3c2e6c9cc3cf
e9b611e1ba91a63d52b14efb9963eec7f4c20d75
refs/heads/master
2021-07-13T04:59:38.732109
2020-09-05T03:39:24
2020-09-05T03:39:24
74,794,023
0
1
null
null
null
null
UTF-8
Python
false
false
233
py
# -*- coding: utf-8 -*- """ Created on Fri Oct 16 16:09:00 2015 @author: antalcides """ from math import* # in main def f(x): e = exp(-0.1*x) s = sin(6*pi*x) return e*s # in main x = 2 y = f(x) print 'f(%g)=%g' % (x, y)
[ "antalcides@gmail.com" ]
antalcides@gmail.com
7fa8c4b0e4c9540f36fbf566ad99d48e913d1c26
885feec0699da96fcfa1e118adffbc94b4f31fd1
/src/tbm_utils/path.py
dc75a16cd2a6428dad91d7e6043bacbfaaea12e7
[ "MIT" ]
permissive
ddboline/tbm-utils
d48bfdb98737a4a45def81143bf13fa11f00f6d3
7f77bc25651079bc8884de1cfcb45e28d672fb16
refs/heads/master
2020-08-29T11:43:49.571204
2019-10-16T20:05:55
2019-10-16T20:05:55
218,022,543
0
0
MIT
2019-10-28T10:34:34
2019-10-28T10:34:34
null
UTF-8
Python
false
false
664
py
__all__ = [ 'UNIX_PATH_RE', 'convert_unix_path' ] import re from pathlib import Path UNIX_PATH_RE = re.compile(r'(/(cygdrive/)?)(.*)') """Regex pattern matching UNIX-style filepaths.""" def convert_unix_path(filepath): """Convert Unix filepath string from Unix to Windows format. Parameters: filepath (str, o...
[ "mail@thebigmunch.me" ]
mail@thebigmunch.me