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
3a298e9f83d0dc848bafc398842d0494b9286a9d
4bcc9806152542ab43fc2cf47c499424f200896c
/tensorflow/python/eager/polymorphic_function/autograph_util.py
958dea68e694e1dae728effcb4d4521b0d17078e
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "BSD-2-Clause" ]
permissive
tensorflow/tensorflow
906276dbafcc70a941026aa5dc50425ef71ee282
a7f3934a67900720af3d3b15389551483bee50b8
refs/heads/master
2023-08-25T04:24:41.611870
2023-08-25T04:06:24
2023-08-25T04:14:08
45,717,250
208,740
109,943
Apache-2.0
2023-09-14T20:55:50
2015-11-07T01:19:20
C++
UTF-8
Python
false
false
2,212
py
# Copyright 2023 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
4304bc826ba8b8db4567e9a1ccc5198a05eed509
4e3c976773526fd610d64ffb83589bccfaee5e68
/sponge-integration-tests/examples/core/knowledge_base_on_run_returns_true.py
faaeaed89e135190880a933f1adad8fa886d0f6f
[ "Apache-2.0" ]
permissive
softelnet/sponge
2313d2328953fcff49a002e727bb803757870627
7190f23ae888bbef49d0fbb85157444d6ea48bcd
refs/heads/master
2022-10-28T16:19:55.619882
2021-09-16T19:50:08
2021-09-16T19:50:08
95,256,030
10
2
Apache-2.0
2022-10-04T23:55:09
2017-06-23T20:58:49
Java
UTF-8
Python
false
false
524
py
""" Sponge Knowledge Base Test - onRun """ from java.util.concurrent.atomic import AtomicBoolean def onInit(): sponge.setVariable("onRun", AtomicBoolean(False)) sponge.setVariable("trigger", AtomicBoolean(False)) class AssertTrigger(Trigger): def onConfigure(self): self.withEvent("e") def onR...
[ "marcin.pas@softelnet.com" ]
marcin.pas@softelnet.com
71832eeb0cb42fb13ac05ebf89d0bbef2e48cc4f
e8f99a162207cba82d4e0f969d7bcdb2b9d8b522
/pw_python/imooc/custom_exc.py
3267a64d9854a914e33fd5f82f1908a3219d24f4
[]
no_license
TesterCC/Python3Scripts
edb5446278ebf13edb64336001081941ca27d67d
58be67e1ffc74ef50289a885aa4ad05f58e2c383
refs/heads/master
2023-08-30T21:16:38.328045
2023-08-17T11:23:08
2023-08-17T11:23:08
93,401,996
6
3
null
null
null
null
UTF-8
Python
false
false
730
py
#!/usr/bin/env python # -*- coding:utf-8 -*- __author__ = 'MFC' __time__ = '2020-01-09 14:46' """ 3-4 Python异常机制 为什么自定义异常不是继承自BaseException? 捕获父类异常,其所有子类异常都在捕获范围之内。 根据Exception的层级,BaseException层级在KeyboradInterrupt之上(也在其它Excption之上), 如果自定义异常继承自BaseException,则会捕获BaseException,则其子类KeyboradInterrupt也会被捕获,导致ctrl+c失效。 """ ...
[ "testerlyx@foxmail.com" ]
testerlyx@foxmail.com
1c9f123afbdeb467c98b1be90020de39923117ba
03fef621b7f904bcbb717c6eef942a5e1e077b75
/scrapers/EHA/councillors.py
c2d0257b083d75cd6e7dae66dcb7179f01b2ad43
[ "MIT" ]
permissive
chris48s/LGSF
e2b387f0e8d694d13fc8c777bac3aaec1fdea114
f5b8a5037b0237f811405c5df0aa20fa1c1624e6
refs/heads/master
2020-04-01T10:28:31.370990
2018-10-15T13:18:54
2018-10-15T13:20:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
154
py
from lgsf.scrapers.councillors import ModGovCouncillorScraper class Scraper(ModGovCouncillorScraper): base_url = "http://easthants.moderngov.co.uk"
[ "sym.roe@talusdesign.co.uk" ]
sym.roe@talusdesign.co.uk
2ace5bd1f6c0001b4a6292159155a1e6ae99a6db
e82b761f53d6a3ae023ee65a219eea38e66946a0
/All_In_One/addons/interactive-physics-editor/lib/preferences.py
252964ba1743b1497599d381a3a988c877b3d7a9
[]
no_license
2434325680/Learnbgame
f3a050c28df588cbb3b14e1067a58221252e2e40
7b796d30dfd22b7706a93e4419ed913d18d29a44
refs/heads/master
2023-08-22T23:59:55.711050
2021-10-17T07:26:07
2021-10-17T07:26:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,094
py
# Copyright (C) 2018 Christopher Gearhart # chris@bblanimation.com # http://bblanimation.com/ # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your opt...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
03e2bc03e1794dc68fda35fb95fc87697ffbe47a
fc3cc4d8036eaf800bccd3620002646954c7303f
/script_for_sentence_classification/python_read_file.py
bc31184d06c8ecf2149fbd70cdc6c6029acc04b5
[]
no_license
dalinvip/pytorch_word2vec_process
8e3e4c51d38455b15c4fe82fe8a0e0bff70abba5
dda9450af525f24ce04773801ec6ebd453e27cd1
refs/heads/master
2023-02-23T15:41:31.832300
2018-03-07T11:25:05
2018-03-07T11:25:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
436
py
# @Author : bamtercelboo # @Datetime : 2018/1/24 8:24 # @File : python_read_file.py # @Last Modify Time : 2018/1/24 8:24 # @Contact : bamtercelboo@{gmail.com, 163.com} """ FILE : python_read_file.py FUNCTION : None """ file = open('test.log', 'r') sizehint = 209715200 # 200M position = 0 lines = file.readl...
[ "bamtercelboo@163.com" ]
bamtercelboo@163.com
a156dbe0eca9288d42f2074eb2191f878740abe8
642526009a434c2a6e04fe0293279a151b216d0a
/dkube/sdk/internal/dkube_client/models/node_collection_devices.py
98b17110c5a0ceb97da531b521436cc90475e2c5
[]
no_license
mak-454/dkube-sdk
d4b8e7f7b1d8c0b0f64b10940ae42ab9d62f4654
d2ba78a0abbda589efc0dbd957d9a8f6fd227464
refs/heads/master
2022-12-26T03:17:55.627379
2020-05-09T17:29:08
2020-05-09T17:29:08
262,622,772
0
0
null
null
null
null
UTF-8
Python
false
false
3,164
py
# coding: utf-8 """ Dkube api server No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 0.2.2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 impor...
[ "ahmed.khan@oneconvergence.com" ]
ahmed.khan@oneconvergence.com
d71c25d25c28437916d2be369408b8b327aed064
6fb1227f82220c5f56d45091de9a5c5b28fc2c75
/lixian_download_asyn.py
b79729c062966466e84b3c782f517fd0dc05c6e5
[ "MIT" ]
permissive
gyao/xunlei-lixian
5ee1e946f0c6fe46b7b9b2aec35bd7a3a93b30ab
aebca6bfb513ce43aacb8c54bbfc81e3e36eaca5
refs/heads/master
2020-12-29T03:06:46.500477
2012-07-20T08:47:12
2012-07-20T08:47:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,062
py
import asyncore import asynchat import socket import re #from cStringIO import StringIO from time import time, sleep import sys import os #asynchat.async_chat.ac_out_buffer_size = 1024*1024 class http_client(asynchat.async_chat): def __init__(self, url, headers=None, start_from=0): asynchat.async_chat.__init__(s...
[ "iambus@gmail.com" ]
iambus@gmail.com
b9198967dff387b18975b414997fabb270e25c6f
2359121ebcebba9db2cee20b4e8f8261c5b5116b
/configs/a5.py
0f952458ead70ac6edeb0de1f88907727d28a7c3
[]
no_license
EliasVansteenkiste/plnt
79840bbc9f1518c6831705d5a363dcb3e2d2e5c2
e15ea384fd0f798aabef04d036103fe7af3654e0
refs/heads/master
2021-01-20T00:34:37.275041
2017-07-20T18:03:08
2017-07-20T18:03:08
89,153,531
2
1
null
null
null
null
UTF-8
Python
false
false
6,801
py
import numpy as np import lasagne as nn from collections import namedtuple from functools import partial import lasagne.layers.dnn as dnn import lasagne import theano.tensor as T import data_transforms import data_iterators import pathfinder import utils import app restart_from_save = None rng = np.random.RandomState...
[ "Elias.Vansteenkiste@gmail.com" ]
Elias.Vansteenkiste@gmail.com
687729e3d0279aef38af3f7c56a7aa19bb9502f2
1e2516263e912fa00de3da3e703e06854b28b89c
/pdfbookmarker.py
a2a154d7c51a22e709d60f29ff994a9f72a1c2bc
[ "MIT" ]
permissive
Sandy4321/pdfbookmarker
386ac4d8c3e2a3bca7fb35e2d9480350af606155
a48cdde9ea859275dc4b2f40e85315edd2ed60eb
refs/heads/master
2021-10-26T08:45:36.128822
2019-04-11T15:04:26
2019-04-11T15:13:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,698
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Add bookmarks to existing PDF files Usage: $ pdfbm [options] <FILE.pdf> [FILE.txt] [FILE-new.pdf] Options: -h, --help show this help Examples: $ pdfbm FILE.pdf # will read FILE.pdf as PDF, FILE.txt as a bookmarks file and shall give the FILE-new.pdf as ou...
[ "luopeng.he@gmail.com" ]
luopeng.he@gmail.com
c470af81c6a98182e6a16b77e437e26a93f59b53
4aa6b7c3a5ae3817007e09ad1289c1e9f7a355c0
/dynamic_programming/paint-house.py
3675aa848ae4ec987b213cd2c33c8e8475c5715b
[]
no_license
liuhuipy/Algorithm-python
8f5143e06cf5fa2de2c178e3ba9e5fd12b9bcdf7
4e92a0b874f956d1df84d1493f870a5d1f06cde2
refs/heads/master
2021-06-03T04:19:01.946149
2021-01-08T07:44:40
2021-01-08T07:44:40
99,838,105
0
0
null
null
null
null
UTF-8
Python
false
false
1,430
py
""" 粉刷房子: 假如有一排房子,共 n 个,每个房子可以被粉刷成红色、蓝色或者绿色这三种颜色中的一种,你需要粉刷所有的房子并且使其相邻的两个房子颜色不能相同。 当然,因为市场上不同颜色油漆的价格不同,所以房子粉刷成不同颜色的花费成本也是不同的。每个房子粉刷成不同颜色的花费是以一个 n x 3 的矩阵来表示的。 例如,costs[0][0] 表示第 0 号房子粉刷成红色的成本花费;costs[1][2] 表示第 1 号房子粉刷成绿色的花费,以此类推。请你计算出粉刷完所有房子最少的花费成本。 注意: 所有花费均为正整数。 示例: 输入: [[17,2,17],[16,16,5],[14,3...
[ "liuhui_py@163.com" ]
liuhui_py@163.com
d4e943650769a10a79f79ee51653fef0e02051f1
59de7788673ade984b9c9fbc33664a7cbdba67d3
/res/scripts/common/streamids.py
1a871273ac2485bff37462280aa2973557aa8936
[]
no_license
webiumsk/WOT-0.9.15-CT
3fa24ab37a6c91b7073034afb2f355efa5b7fe36
fbd194fbaa6bdece51c7a68fc35bbb5257948341
refs/heads/master
2020-12-24T21:27:23.175774
2016-05-01T13:47:44
2016-05-01T13:47:44
57,600,180
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
2,677
py
# 2016.05.01 15:26:16 Střední Evropa (letní čas) # Embedded file name: scripts/common/streamIDs.py STREAM_ID_CHAT_MIN = 1 STREAM_ID_CHAT_MAX = 99 CHAT_INITIALIZATION_ID = 50 STREAM_ID_AVATAR_BATTLE_RESULS = 100 STREAM_ID_ACCOUNT_CMDS_MIN = 200 STREAM_ID_ACCOUNT_CMDS_MAX = 30000 class RangeStreamIDCallbacks(object): ...
[ "info@webium.sk" ]
info@webium.sk
0b42a4d684a380df2464e36429ce13186d46c8d2
f3bcda237fd7a77f6bbbaef1ec22f386cb9f6219
/modoboa_demo/handlers.py
b626111a3c2a5b7f3d98d06380613a1ad377990c
[ "MIT" ]
permissive
c0ns0le/modoboa-demo
c3ad3d1f437dd75281c14efa1be1acb81f63ecd7
d8a8fe4d2e3664484ae6e2e66bf3a4e6d543073d
refs/heads/master
2020-04-02T20:48:51.155927
2017-03-03T13:28:37
2017-03-03T13:28:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,759
py
"""Demo handlers.""" from django.core.urlresolvers import reverse from django.dispatch import receiver from django.template.loader import render_to_string from django.utils.translation import ugettext as _ from modoboa.core import signals as core_signals from modoboa.lib.web_utils import static_url @receiver(core_...
[ "tonio@ngyn.org" ]
tonio@ngyn.org
c3584bec6a9c94b4290d5530c9eae1002bf8134e
8140a910c709030d9c5394bc2c9ba5c30eda6063
/26-day/2.自定义异常.py
f70e4a8888ec0e15c87dfa0ad703c15f2d034d71
[]
no_license
liuruitao/2mouth
417139ecfd58d0220a95b78967247c4795ebc022
854e9322cea73462bb2fe08b3bdf6c33b73a40cd
refs/heads/master
2020-03-13T10:49:54.016344
2018-05-25T04:25:37
2018-05-25T04:25:37
131,090,951
0
0
null
null
null
null
UTF-8
Python
false
false
345
py
class ShowError(Exception): def __init__(self,len,length): self.len = len self.length = length def main(): try: s = input('请输入:') if len(s) < 3: raise ShowError(len(3),3) except ShowError as result: print('ShowError:输入的长度是%d,长度至少是%d'%(result.len,result.length)) else: print('没有异常') main()
[ "2590011467@qq.com" ]
2590011467@qq.com
34b2aa7dc114889c5b6d33d4d6b8d2791992bc33
b2a72c68252a80764554ca2ba1e372f82f4fc2ad
/demo/test_bug_nodata.py
b98bb903de239c8947c4fac53fe79664e14a2ebc
[ "MIT" ]
permissive
manmanCover/multi-task-pytorch
f320bfd60dd121b897e6d521944f2fb9d7669b47
7d57645ec8be0ca0c258cfa99fb788e3cd37f106
refs/heads/master
2020-06-03T03:01:40.554172
2019-01-30T16:44:52
2019-01-30T16:44:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,076
py
import torch import lib.modeling.resnet as resnet import lib.modeling.semseg_heads as snet import torch.nn as nn import torch.optim as optim import utils.resnet_weights_helper as resnet_utils from torch.autograd import Variable from roi_data.loader import RoiDataLoader, MinibatchSampler, collate_minibatch, collate_mini...
[ "729622788@qq.com" ]
729622788@qq.com
ecc82ad67eea1a842826c847fe8ae1887bf1f494
be84495751737bbf0a8b7d8db2fb737cbd9c297c
/sdl/dynamic_array.py
92e62d012074dca2f8fde972d46e36697f2aeb38
[]
no_license
mario007/renmas
5e38ff66cffb27b3edc59e95b7cf88906ccc03c9
bfb4e1defc88eb514e58bdff7082d722fc885e64
refs/heads/master
2021-01-10T21:29:35.019792
2014-08-17T19:11:51
2014-08-17T19:11:51
1,688,798
1
0
null
null
null
null
UTF-8
Python
false
false
6,518
py
import x86 from struct import unpack, pack import array from .memcpy import memcpy class DynamicArray: def __init__(self, struct, reserve=0): self.size = 0 self.struct = struct self.sizeof = struct.sizeof() self.members = {} self.members2 = {} self.reserve = reserv...
[ "mvidov@yahoo.com" ]
mvidov@yahoo.com
14a10b1ba5cc71f797448912729b405413dbd484
b0f6f0e2cdc8faf2f86a06edef3ddd11a3684e5c
/scripts/files.py
74bdf3103bfb9f9c55975e50eb50b4353ad69152
[]
no_license
nachocano/trec-kba
f20e1e89ac2bbe38876c4ad63165aa18b689352b
9ffdd95855af203c33a6a3315d9bf2ba886ac123
refs/heads/master
2021-01-19T10:05:30.194144
2015-02-04T22:01:33
2015-02-04T22:01:33
20,716,036
0
0
null
null
null
null
UTF-8
Python
false
false
784
py
import re import argparse import fileinput from collections import defaultdict def main(): parser = argparse.ArgumentParser(description='TODO') parser.add_argument('-s', '--stream_file', required=True) parser.add_argument('-m', '--mapping_file', required=True) args = parser.parse_args() folder_regex = re.co...
[ "nachoacano@gmail.com" ]
nachoacano@gmail.com
b44eefd8646cb63089391f99cd431fb9df6041c3
9e3e8f1befeeb31150b27650ce5f6460b9c17445
/quest/eval_tpu.py
c19bf4db8f6c168530cb1919ee40ed1a9d7a22d0
[ "MIT" ]
permissive
ceshine/kaggle-quest
d5ee108e0b7a7c2daa5469abad0c443f31e00029
a25b9d964c28d97769bc040da05f2e39987433c4
refs/heads/master
2023-06-23T07:18:52.293776
2020-03-31T07:09:17
2020-03-31T07:09:17
240,172,051
8
0
MIT
2023-06-12T21:27:41
2020-02-13T03:53:23
Python
UTF-8
Python
false
false
3,379
py
from pathlib import Path import fire import joblib import numpy as np import pandas as pd from tqdm import tqdm import tensorflow as tf from scipy.special import expit from transformers import AutoTokenizer, RobertaConfig from tf_helper_bot.utils import prepare_tpu from .models import DualRobertaModel from .metrics i...
[ "shuanck@gmail.com" ]
shuanck@gmail.com
487a4d8912d41645bb082b45b1f66a69b4c4d6e6
7434ef0a0840da62c449b73a3810d11bcf300644
/finances/test/test_calc.py
5a8d1560fbf46e7f302e01bda804bcc1a30ecd2e
[]
no_license
webmalc/maxibooking-billing-django
40f497dc794e0b29868a01b482b5865764b35fd3
d5ca86c3701b86e359b0648a5b76b0b71faa7810
refs/heads/master
2022-12-17T21:50:42.210125
2019-08-14T09:33:02
2019-08-14T09:33:02
202,347,569
2
0
null
2022-12-09T22:25:58
2019-08-14T12:36:22
Python
UTF-8
Python
false
false
6,140
py
import pytest from django.test import TestCase from django.urls import reverse from moneyed import AED, EUR, RUB, Money from clients.models import ClientService from finances.lib.calc import (Calc, CalcException, Other, Rooms, get_currency_by_country) from finances.models import Service ...
[ "m@webmalc.pw" ]
m@webmalc.pw
883edeeb0725bcc8d54ee7e760eab12633a54fdd
bde9cfb7af2b9df7ad197d1a09042484839c9dc0
/podi_extractcentral.py
ad0cefdd91278403036a6b4fd6d8e187b26d1b13
[]
no_license
bxy8804/QuickReduce
a77be224a820c9e463fec64b6e40f93e968c60ac
acee6e7358b7f1cbfee3924b54decfca5ea57016
refs/heads/master
2020-06-06T18:31:28.732014
2018-11-08T15:09:01
2018-11-08T15:09:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,194
py
#! /usr/bin/env python # # Copyright 2012-2013 Ralf Kotulla # kotulla@uwm.edu # # This file is part of the ODI QuickReduce pipeline package. # # If you find this program or parts thereof please make sure to # cite it appropriately (please contact the author for the most # up-to-date reference to use...
[ "kotulla@wisc.edu" ]
kotulla@wisc.edu
afd68aa6639281e3cb1ad2225c55b112a6aa7c97
c6ccdf8ae4556c6e7e2719d1324caf037cea8b7b
/backend/course/migrations/0001_initial.py
cf349adad0d33cc61f56ba7d0d4ea02a16c4c35b
[]
no_license
crowdbotics-apps/flyzia-23509
cca29847ef8b202b1210d83e55174693c5c23559
a0d538c83e7be423b5aec437d8f4463660f3fc86
refs/heads/master
2023-02-08T06:55:54.753866
2020-12-29T17:36:57
2020-12-29T17:36:57
323,459,698
1
0
null
null
null
null
UTF-8
Python
false
false
5,517
py
# Generated by Django 2.2.17 on 2020-12-21 22:18 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] op...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
416666c1d1c1adad4e974a5525db9d4b4a8c0f86
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/zxAXEgpjQ3XrLs2K7_7.py
507bad45c4629bd100e03b30105073bac1b397ef
[]
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
590
py
""" Given two lists, merge them to one list and sort the new list in the same order as the first list. ### Examples merge_sort([1, 2, 3], [5, 4, 6]) ➞ [1, 2, 3, 4, 5, 6] merge_sort([8, 6, 4, 2], [-2, -6, 0, -4]) ➞ [8, 6, 4, 2, 0, -2, -4, -6] merge_sort([120, 180, 200], [190, 175, 130]) ➞ [120...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
0b943aee81eb354178d317cc1d1e47125a526f20
1eb7fa8b1745d4e51cefb4eceb44621862516aa6
/leetCode/Python/76-minimumWindowSubstring.py
61a1baaaf6473433aeefad57302fee04ddcbe18a
[]
no_license
geniousisme/CodingInterview
bd93961d728f1fe266ad5edf91adc5d024e5ca48
a64bca9c07a7be8d4060c4b96e89d8d429a7f1a3
refs/heads/master
2021-01-10T11:15:31.305787
2017-03-06T00:03:13
2017-03-06T00:03:13
43,990,453
0
1
null
null
null
null
UTF-8
Python
false
false
1,655
py
''' Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). For example, S = "ADOBECODEBANC" T = "ABC" Minimum window is "BANC". Note: If there is no such window in S that covers all characters in T, return the empty string "". If there are multi...
[ "chia-hao.hsu@aiesec.net" ]
chia-hao.hsu@aiesec.net
79399b7cc82d33a181760bc97e327a836e39d396
bfb591a1d5166d3b56f2e8fb7f2aa52cdbfd4831
/questions/q166_find_quaduple_subarray_sum/brute_force.py
1e54db456a1d7ad6ef30d92169ad0d21468c153d
[ "MIT" ]
permissive
aadhityasw/Competitive-Programs
8a5543995ae6ae2adae7ebaa9cb41b222d8372f1
3d233b665a3b2a9d0b1245f7de688b725d258b1c
refs/heads/master
2022-01-16T19:36:48.332134
2022-01-03T18:14:45
2022-01-03T18:14:45
192,506,814
0
0
null
null
null
null
UTF-8
Python
false
false
447
py
def fourSum(arr, num): arr.sort() n = len(arr) ans = [] for i in range(n) : for j in range(i+1, n) : for k in range(j+1, n) : for l in range(k+1, n) : if (arr[i] + arr[j] + arr[k] + arr[l]) == num : cur = (arr[i], arr[j...
[ "aadhityas@gmail.com" ]
aadhityas@gmail.com
61ec709ac062ee0fdc9c7d3009c29eea63a3a55a
ba075a5cb2ff6af35b6f9a864b9ad1e088940e87
/tests/fixtures/spect.py
be49403f62478b5881e0762944bb5a90cf9f1661
[ "BSD-3-Clause" ]
permissive
JaerongA/vak
f9bbb19e455a4191283a8ec14660e11faed10be5
c94001aed072c5a67ea6e97cf7b298aafc6d5d19
refs/heads/main
2022-02-28T04:14:26.346642
2022-02-08T04:06:14
2022-02-08T04:06:14
456,023,562
1
0
BSD-3-Clause
2022-02-06T00:54:00
2022-02-06T00:54:00
null
UTF-8
Python
false
false
5,346
py
"""fixtures relating to array files containing spectrograms""" import pytest import vak.files.spect @pytest.fixture def spect_dir_mat(source_test_data_root): return source_test_data_root.joinpath("spect_mat_annot_yarden", "llb3", "spect") @pytest.fixture def spect_dir_npz(generated_test_data_root): return ...
[ "nickledave@users.noreply.github.com" ]
nickledave@users.noreply.github.com
ccb32a54360ab84a2189e95946f78d97c6ff6f27
781e2692049e87a4256320c76e82a19be257a05d
/all_data/cs61a/untarred2/182.py
acf30461412386afe3090fcc9f9fea76699a601d
[]
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
8,754
py
# CS 61A Spring 2014 # Name: # Login: from ucb import main letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] bad_num_letters = "Wrong number of letters." not_a_word = "Not a valid word." win_message = "Con...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
07ed1effda09eeaf4bffd2dfe4a27aef6bb825da
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02836/s954196164.py
f72ad55504c196f03f70fce4002d07b8ba79d244
[]
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
169
py
S = input() S_midn = int(len(S) / 2) S_rev = S[::-1] count = 0 for i in range(S_midn): if S[i] != S_rev[i]: count += 1 print(count) #print(S, S_rev, S_midn)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
17e2b144b078813d6d920ad4fdbc20fda5b6ea6f
6440a113597191d3b78aa6b5cae6cea9fb057e2e
/Bloomberg/browser_history.py
ab02385dfe78560a3c6b50fcbb33c651b03009e8
[]
no_license
DarshanGowda0/LC-Grind
40c162d8894df81ea7124f66daf20f86f327b6cb
f7b9a86797d52ab1057f0300352c0c5670a59bd5
refs/heads/master
2023-01-28T01:27:45.195164
2020-12-06T03:58:14
2020-12-06T03:58:14
277,024,335
0
0
null
null
null
null
UTF-8
Python
false
false
1,136
py
class BrowserHistory: def __init__(self, homepage: str): self.arr = [homepage] self.cur = 0 def visit(self, url: str) -> None: # print("visit", url, self.cur, self.arr) if self.cur < len(self.arr) - 1: self.cur += 1 self.arr[self.cur] = url w...
[ "darshan.gowda008@gmail.com" ]
darshan.gowda008@gmail.com
8617091491520978235cfe6feb48a6c8ea795564
4b44a299bafbd4ca408ce1c89c9fe4a449632783
/python2/09_Iterators_generators_coroutines/03_generators.py
e6c021858b1e50bb0263ef05ffa4be354d258bdd
[]
no_license
umunusb1/PythonMaterial
ecd33d32b2de664eaaae5192be7c3f6d6bef1d67
1e0785c55ccb8f5b9df1978e1773365a29479ce0
refs/heads/master
2023-01-23T23:39:35.797800
2020-12-02T19:29:00
2020-12-02T19:29:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
456
py
#!/usr/bin/python def simple_gen(): yield "Hello" yield "World" gen = simple_gen() print(next(gen)) print(gen.next()) def count(n): print "Stating to count!" i = 0 while i < n: yield i # print i i += 1 print '$', i # return i # PEP8 strongly discourages usag...
[ "uday3prakash@gmail.com" ]
uday3prakash@gmail.com
8be9192cabe804ad8ee2e1c2534781dbc329f061
648f742d6db2ea4e97b83c99b6fc49abd59e9667
/common/vault/oas/models/global_parameters_list_global_parameter_values_response.py
337813587ac811bf9d012507a5d06525599367ea
[]
no_license
jmiller-tm/replit
c56ce63718f6eb2d9b53bd09d3f7b3ef3496cb86
c8e6af3268c4ef8da66516154850919ea79055dc
refs/heads/main
2023-08-30T00:49:35.738089
2021-11-16T23:09:08
2021-11-16T23:09:08
428,809,777
0
0
null
null
null
null
UTF-8
Python
false
false
6,504
py
# coding: utf-8 """ vault/kernel/core_api/proto/v1/accounts/core_api_account_schedule_tags.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: version not set Generated by: https://github.com/swagger-api/...
[ "jmiller@jmiller-tm00769-mbp.nomad.thomac.net" ]
jmiller@jmiller-tm00769-mbp.nomad.thomac.net
0483e034e51210b1af608332f28d0fddd4e250a2
6ebdd70c03582952bc3ec7505115533816c06ebc
/main.py
d47efdf152dd1f8fabdafa2e5484263da9fa4dcf
[]
no_license
SimeonYS/fynske
96b5d6df2b7229122045f599225f37412c4d013b
02797d41f32e5676422cea21ddde655253475f6e
refs/heads/main
2023-03-18T13:41:39.164317
2021-03-10T07:30:29
2021-03-10T07:30:29
346,269,812
0
0
null
null
null
null
UTF-8
Python
false
false
73
py
from scrapy import cmdline cmdline.execute("scrapy crawl fynske".split())
[ "simeon.simeonov@ADPVT.com" ]
simeon.simeonov@ADPVT.com
16379711e57e8d6a82d949f0f3980a1b58e0d446
a32056487cebf6bfafef8daac9e31ebfa6b16638
/problem-20.py
63112fb5fc31e7f7575df96ea92c8297c8465449
[]
no_license
samuelreboucas07/Challenges-Project-Euller
e71f9ed99dd6d44f9d5ca746a3f583c75e2fe8e1
cb155918237606e1a2472a872a422fd6587693b5
refs/heads/main
2023-04-16T11:47:51.922055
2021-04-28T12:13:02
2021-04-28T12:13:02
347,523,638
0
0
null
null
null
null
UTF-8
Python
false
false
270
py
# Factorial digit sum limit = 100 factorial = 1 sum_numbers = 0 for i in range (limit, 0, -1): factorial *= i numbers = list(str(factorial)) for number in numbers: sum_numbers += int(number) print('Soma dos dígitos do fatorial de 100: ' + str(sum_numbers))
[ "samuelreboucas07@hotmail.com" ]
samuelreboucas07@hotmail.com
1eac640ffbb05358b5c9e12e090adfe3f0f57f6f
a3385f7636ceb232e97ae30badee0ba9145138f8
/egs/callhome_egyptian/s5/local/split_alt_punc.py
c81cca355810ea43e09689f8d826b53ce0d4b7e6
[ "Apache-2.0" ]
permissive
samsucik/prosodic-lid-globalphone
b6a6ccdcece11d834fc89abaa51031fc9f9e37e1
ca6a8e855441410ab85326d27b0f0076d48d3f33
refs/heads/master
2022-11-29T09:17:24.753115
2021-02-03T18:17:16
2021-02-03T18:17:16
149,014,872
3
2
Apache-2.0
2022-09-23T22:17:01
2018-09-16T16:38:53
Shell
UTF-8
Python
false
false
439
py
#!/usr/bin/env python lexicon = open("data/local/tmp/lexicon.1") lexicon_ext = open("data/local/tmp/lexicon.2", "w") for line in lexicon: line = line.strip() if "//" not in line: lexicon_ext.write(line + "\n") continue lineComp = line.split("\t") prons = lineComp[1].split("//") for...
[ "s1531206@ed.ac.uk" ]
s1531206@ed.ac.uk
a1d3ee3d662e370ad3b2cd6112e33cb4cf16e1e4
3d4520ab8ff54457b9a945c8b9151376e6ef1a71
/plain/CalcWithVars/evaluator_test.py
62e07092778fe48a4acbefa69ae7081499caa5c9
[]
no_license
pliba/kaminpy
dac7e53711cb4f30d4587a3d370230212dc5c99c
f410ad951faf4d2dab257e6764a89268e106eefc
refs/heads/master
2021-06-21T16:20:49.437529
2021-06-08T03:39:04
2021-06-08T03:39:04
157,875,818
16
3
null
2018-11-16T14:07:48
2018-11-16T14:07:48
null
UTF-8
Python
false
false
894
py
from pytest import mark, raises from evaluator import evaluate, global_environment import errors def test_evaluate_number(): got = evaluate(7) assert 7 == got @mark.parametrize("ast, value", [ (['+', 1, 2], 3), (['*', 6, ['+', 3, 4]], 42), (['/', ['*', ['-', 100, 32], 5], 9], 37) ]) def test_ex...
[ "luciano@ramalho.org" ]
luciano@ramalho.org
e6d3452d32c8bd6ce91a3c2635262a21fa8fd464
9aaa39f200ee6a14d7d432ef6a3ee9795163ebed
/Algorithm/Python/796. Rotate String.py
27c7ca9d039d9813fbfddea0a4ad301c8c445f90
[]
no_license
WuLC/LeetCode
47e1c351852d86c64595a083e7818ecde4131cb3
ee79d3437cf47b26a4bca0ec798dc54d7b623453
refs/heads/master
2023-07-07T18:29:29.110931
2023-07-02T04:31:00
2023-07-02T04:31:00
54,354,616
29
16
null
null
null
null
UTF-8
Python
false
false
430
py
# -*- coding: utf-8 -*- # Created on Sun Mar 11 2018 11:33:15 # Author: WuLC # EMail: liangchaowu5@gmail.com # simple solution class Solution(object): def rotateString(self, A, B): """ :type A: str :type B: str :rtype: bool """ if A == B: return True ...
[ "liangchaowu5@gmail.com" ]
liangchaowu5@gmail.com
1ac9ebeaa06cf71b2d03af7f2c8a33a6ac122cf4
9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56
/google/ads/googleads/v10/errors/types/asset_group_asset_error.py
1da4cc631cf5eddf4801ea5c4b4ee4278edc732c
[ "Apache-2.0" ]
permissive
GerhardusM/google-ads-python
73b275a06e5401e6b951a6cd99af98c247e34aa3
676ac5fcb5bec0d9b5897f4c950049dac5647555
refs/heads/master
2022-07-06T19:05:50.932553
2022-06-17T20:41:17
2022-06-17T20:41:17
207,535,443
0
0
Apache-2.0
2019-09-10T10:58:55
2019-09-10T10:58:55
null
UTF-8
Python
false
false
1,272
py
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "noreply@github.com" ]
GerhardusM.noreply@github.com
e3bf61fdd1869c6df5383da371d1bbcf093107f9
396f93d8e73c419ef82a94174815a2cecbb8334b
/.history/tester2_20200321204328.py
ee5b1938c75144057ae20b85257b3114e9cde938
[]
no_license
mirfarzam/ArtificialIntelligence-HeuristicAlgorithm-TabuSearch
8c73d9448b916009c9431526864a4441fdeb682a
90b2dca920c85cddd7c1b3335344ac7b10a9b061
refs/heads/master
2021-03-26T21:16:42.561068
2020-04-17T21:44:26
2020-04-17T21:44:26
247,750,502
0
0
null
null
null
null
UTF-8
Python
false
false
865
py
import os import subprocess import re from datetime import datetime import time numberOfTests = 100 Tabu_iteration = 5 Tab final_solution = [] print("Test for 5 0 10") for i in range(0, numberOfTests): process = subprocess.Popen(['./algo_tabou.exe', '20', '0', '10', 'distances_entre_villes_10.txt'],stdout=sub...
[ "farzam.mirmoeini@gmail.com" ]
farzam.mirmoeini@gmail.com
ed1f6dacb8ce8bd16c4fdacede44ca2bf74c08a2
38cac672104e8d95d4ee34aa38ace1fb9d62f862
/lazyflask/wsgi.py
03d2f26644daac32a4d3899e2f3824475d420ca4
[ "Apache-2.0" ]
permissive
xiaopeng163/lazy-flask
f60e8361e391944c3910f0c8345ec2ccb849d0e8
e55cd5eb5260e152c94b1956194afd8bf8a840e5
refs/heads/master
2021-09-02T11:09:11.688229
2018-01-02T06:59:03
2018-01-02T06:59:03
105,125,175
1
1
null
null
null
null
UTF-8
Python
false
false
907
py
# Copyright 2017-2018 Be-Lazy Groups # 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...
[ "xiaoquwl@gmail.com" ]
xiaoquwl@gmail.com
e94e44a8a5485fed485e560afbd44d0a228843b6
71686ed78b74844b6bb16752a0dd9f245d691eac
/experiments/coco-segmatch-15/run.py
66c3d3b86730f164f6e06e05581cd8d359bd9066
[]
no_license
gchrupala/vgs
aa3c1a1e46f6c80b35de1ff5d51703f01c79cac6
01146cf8a08e1be4964a747fc7a38425e88568f8
refs/heads/master
2021-04-25T05:09:00.773011
2018-10-16T14:25:16
2018-10-16T14:25:16
114,238,061
3
3
null
null
null
null
UTF-8
Python
false
false
1,152
py
import random import numpy seed =1235 random.seed(seed) numpy.random.seed(seed) import vg.simple_data as sd import vg.experiment as E import vg.vendrov_provider as dp import vg.defn.segmatch as D dataset = 'coco' batch_size = 32 epochs=15 prov = dp.getDataProvider(dataset, root='../..', audio_kind='mfcc') data = s...
[ "g.chrupala@uvt.nl" ]
g.chrupala@uvt.nl
669027f993fbea99f5c184e79f238c519752c3dc
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/d278160c1fd0e8c3b24ee96c4fd91dddbbfab668-<_print_figure>-fix.py
4ad915c9b8c85eaee6b029f97a46460ae9aea1c2
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,992
py
def _print_figure(self, outfile, format, dpi=72, facecolor='w', edgecolor='w', orientation='portrait', isLandscape=False, papertype=None, metadata=None, **kwargs): "\n Render the figure to hardcopy. Set the figure patch face and\n edge colors. This is useful because some of the GUIs have a\n ...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
7849d5da6e5498dd762ecb8c677e003fde9d5fc7
53ec01fa57d9cdc7e7fd3364990713d211e1c414
/ABC119/119d.py
88d8811e10867486745ace233673f63e15b1309c
[]
no_license
nekoTheShadow/atcoder-answers
4f2cae82ac2b24df4153c43381ce58084647704c
461e5a9b00718fd9a3b19dc6071da0fb3192f34e
refs/heads/master
2022-02-03T18:24:01.673661
2022-01-24T14:43:44
2022-01-24T14:43:44
165,072,722
0
0
null
2020-03-22T13:25:56
2019-01-10T14:19:52
Java
UTF-8
Python
false
false
968
py
import bisect a, b, q = map(int, input().split()) slist = list(sorted(int(input()) for _ in range(a))) tlist = list(sorted(int(input()) for _ in range(b))) xlist = [int(input()) for _ in range(q)] dlist = [] for x in xlist: i = bisect.bisect_left(slist, x) j = bisect.bisect_left(tlist, x) d = float('inf')...
[ "h.nakamura0903@gmail.com" ]
h.nakamura0903@gmail.com
086a126fa363531111ef146627310e19509dfe58
2fbda72388e0b1a74b2b020a1c5a13f197918e42
/dwi/fit_one_by_one.py
0eabbf62fd98d774912859140014313d2c1c8b8a
[ "MIT" ]
permissive
Nie-yingchun/dwilib
6c8765418ba3ab38e06c2977341c59814acd95d1
9610ab49ee2fbc58f3e09a90b83c2bf5af9c80c6
refs/heads/master
2021-01-24T15:33:30.647566
2014-09-02T18:03:25
2014-09-02T18:03:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,413
py
"""Fitting implementation that fits curves simply one by one in serial.""" import numpy as np from leastsqbound import leastsqbound def fit_curves_mi(f, xdata, ydatas, guesses, bounds, out_pmap): """Fit curves to data with multiple initializations. Parameters ---------- f : callable Cost func...
[ "jupito@iki.fi" ]
jupito@iki.fi
6249f045f17841d0ce1eb71756b679e96d78541f
5cb9dccbcccb8a2137368dd0615fe3e3c7761707
/simulations/kinova/devel/.private/moveit_ros_planning_interface/lib/python2.7/dist-packages/moveit_ros_planning_interface/__init__.py
26552754c7b4aa3aa9af6699a8a69101f17a8b9a
[]
no_license
Simon-Steinmann/sim2real-modular-RL-project
b2467a393014e106043f6128a026f5eac934a83d
4027590ac94de2d5c914731c09efcf2f318b9ca3
refs/heads/master
2020-07-29T01:30:56.450919
2019-10-12T09:33:00
2019-10-12T09:33:00
209,605,548
4
1
null
null
null
null
UTF-8
Python
false
false
1,068
py
# -*- coding: utf-8 -*- # generated from catkin/cmake/template/__init__.py.in # keep symbol table as clean as possible by deleting all unnecessary symbols from os import path as os_path from sys import path as sys_path from pkgutil import extend_path __extended_path = "/home/acis/sim2real/simulations/kinova/src/move...
[ "simon.steinmann91@gmail.com" ]
simon.steinmann91@gmail.com
d7c9b93541dc649e326b6e3df597f83fc0d4c9d7
f85916c3887ef559f4844e87f568e1e093dce32f
/Modules/Blueprint/oldMods/parentJoint.py
b9a763d91e3e1a2513e5979421e9af39c3f04934
[]
no_license
griffinanimator/MPR
f75e0a099fa916b6466e73fe7c5f4dfca04b6018
d217215d13b282f7d64e53fd338786ad5b80e01b
refs/heads/master
2016-09-02T03:06:58.214239
2013-05-31T18:43:43
2013-05-31T18:43:43
10,410,778
2
1
null
null
null
null
UTF-8
Python
false
false
1,170
py
import maya.cmds as cmds import System.blueprint as blueprintMod #reload(blueprintMod) import Blueprint.singleOrientableJoint as singleOrientableJoint #reload(singleOrientableJoint) import System.utils as utils #reload(utils) import os CLASS_NAME = "ParentJoint" TITLE = "Parent Joint" DESCRIPTION = "This module w...
[ "ryangrif@gmail.com" ]
ryangrif@gmail.com
64257221df923ba3c889aaa4ddbd300a6d923ffd
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_360/ch14_2020_03_03_12_13_48_243552.py
338d4068dd07cc41d42bfa504ab0bb1a7b180a76
[]
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
177
py
import math def calcula_distancia_do_projetil(v,y0,teta): p1=(v**2)/(2*9.8)*(math.sin(2*teta)) p2=(1+1+((2*9.8*y0)/(v**2)*(math.sinh((teta**2)**1/2)) return (p1*p2)
[ "you@example.com" ]
you@example.com
2d27ed0f07c2d97d17ac77e98be8040f99dc585f
c8e7b99c2079c3f4a8af380064b9f6fdc5eeef1c
/loops.py
283fb1591d29505ec1f488def8b59b7c0cae0d4d
[]
no_license
stuartelimu/python-1
47de403fba331a17eb4c698236a843786a72d25d
a0bd5d55da08442613f1a7664cc5e3d0fe94732f
refs/heads/master
2020-05-25T17:22:05.553997
2019-05-21T21:58:16
2019-05-21T21:58:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
550
py
# while loop x = 0 while(x < 5): print(x) x = x + 1 # for loop for i in range(3): print(i) for i in range(3, 10, 2): print(i) days = ["Mon", "Tue", "Wed", "Thur", "Fri", "Sat", "Sun"] for day in days: print(day) # continue and break statements for i in range(6): if (i % 2 == 0): cont...
[ "stuartelimu@gmail.com" ]
stuartelimu@gmail.com
34af0d00b1e0794ff6e602861d65af91a8b0f40b
76e23b6b7ea39a8ed83087a2431e0a9952d754ad
/bin/splunk/rcDisplay.py
aaeae52ab75890a08b8702d61e232553e1e67c45
[]
no_license
MobileWebApps/splunk-search-tools-app
279b82fb54e72d090f840b25bb2f8f4f579a90cc
09a4f75619d97b8efbf88c573e09a1d2b2e11a16
refs/heads/master
2016-09-05T19:46:26.418510
2014-09-15T15:15:05
2014-09-24T10:19:32
24,410,736
1
0
null
null
null
null
UTF-8
Python
false
false
43,717
py
import splunk from splunk.rest.format import nodeToPrimitive, AtomEntry, AtomFeed from splunk.rest import simpleRequest from splunk.search import getJob import splunk.rest as rest import logging as logger from clilib import literals import urllib import sys import util import os import math #documentation et all... __...
[ "EMAIL" ]
EMAIL
221f579cb40bbc74ff02fa4ff11c7f841dccc17c
2251d71bc3ecb589ce1a8b274a08370c3240bf51
/0739 Daily Temperatures.py
4e5eaa70d3d03ddb5e606093b90f126d390ac841
[]
no_license
YuanyuanQiu/LeetCode
3495a3878edc2028f134bddb5b9ec963069562cb
6f5d0ef6a353713c0b41fa7ec0fb8c43a7e8dc55
refs/heads/master
2022-12-11T04:04:01.686226
2022-12-06T18:42:14
2022-12-06T18:42:14
231,168,173
0
0
null
null
null
null
UTF-8
Python
false
false
521
py
def dailyTemperatures(self, T: List[int]) -> List[int]: n = len(T) if n < 2: return 0 ans = [0] * n # 栈存放所在日,若当日比栈尾温度高,栈尾日结果update为当日与栈尾所在日之差并从栈中移除 stack = [] for i in range(n): # 结束条件为全部移除或没有出现更高的温度 while stack and T[i] > T[stack[-1]]: prev_index = stack.pop(...
[ "50243732+YuanyuanQiu@users.noreply.github.com" ]
50243732+YuanyuanQiu@users.noreply.github.com
099510054c48263f4910bb44b6ebb59803ec41d2
99f9a64315d051069ada71f8a22a6ca3793b2bba
/pyqt_example/example3.py
f5e5df880a5b25a99e8ab1eb45e52f04ecf21614
[]
no_license
dnddnjs/inflearn-python-pyqt
1fe1bfe7841a3a411b88f9783f676a3f34d014c5
eea4ffa52e54f4e376fb50601b5fc481934fd2a1
refs/heads/master
2020-04-01T06:48:03.729008
2018-10-14T10:57:19
2018-10-14T10:57:19
152,964,455
0
0
null
null
null
null
UTF-8
Python
false
false
1,107
py
import sys from PyQt5.QtWidgets import * from PyQt5 import QtWidgets, QtCore class TestForm(QMainWindow): def __init__(self): super().__init__() self.setupUI() def setupUI(self): self.setWindowTitle("PyQT Test") self.setGeometry(800, 400, 500, 500) label_1 = QLabel("입력테스트", self) label_2 = QLabel("출력테...
[ "dnddnjs11@naver.com" ]
dnddnjs11@naver.com
9d02040ed0b27d0853d0abcc8a826edf961daca5
661e83ed73f7df3413f2f2749a28c1373b5f3cc6
/Django/django-podcasting-master/podcasting/forms.py
eeae41515cb84e8f0c5cdd7f8f45c852673d9ee5
[ "BSD-3-Clause", "MIT" ]
permissive
sooftware/TIL
48bd29ee3e46e9e80767966d9db369a1595286bd
33ee26c3d13d9ddcbcfa66c9830149a9677a64ff
refs/heads/master
2023-01-22T07:11:29.713989
2020-11-28T15:47:38
2020-11-28T15:47:38
220,286,220
4
0
null
null
null
null
UTF-8
Python
false
false
10,153
py
try: from django.utils.timezone import now except ImportError: from datetime.datetime import now # noqa from django import forms from django.conf import settings from django.utils.translation import ugettext_lazy as _ from django.core.exceptions import ObjectDoesNotExist from podcasting.utils.twitter import ...
[ "sh951011@gmail.com" ]
sh951011@gmail.com
4a02f0e5342ec97c9c01895a5e62e078c705aaea
b68115ac6cd996c1a09d70c2cf7158715c125aae
/fmu_storage/api/views.py
03765aae9da2b53c260b7570a026b95a898e32bc
[]
no_license
joakim-hove/fmu_storage
3a71d7521818658a252e90a3b08c32810a86d544
c02feb69493a9e17592b1b5e3cf201c559b20bdf
refs/heads/master
2021-08-28T06:54:59.291006
2017-12-11T13:51:36
2017-12-11T13:51:36
103,049,778
0
2
null
2017-09-14T13:14:26
2017-09-10T17:53:27
Python
UTF-8
Python
false
false
1,011
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.urls import reverse from django.views import View from django.http import JsonResponse, HttpResponse def make_url(key, kwargs, doc): url = reverse(key , kwargs = kwargs) for k,v in kwargs.iteritems(): url = url.replace(str(v)...
[ "joakim.hove@gmail.com" ]
joakim.hove@gmail.com
91ed7201e75a997abe043527c9ffe8391a760bac
af594e2782e0cadef6ca9156144bb8b1b0973e6a
/examples/bench.py
873313ffc89bffbe2b87ea07678726d84aab4027
[ "BSD-3-Clause" ]
permissive
automaticdai/py-bteve
d9ef4f5842e9e38644aa08eddf8cdcb4c5f935e7
dd2dc7cdd9c5e5ef82f84132ec9a05d989788112
refs/heads/master
2022-06-29T17:45:00.605908
2021-07-20T17:04:04
2021-07-20T17:04:04
245,732,049
0
0
BSD-3-Clause
2020-03-08T01:19:14
2020-03-08T01:19:13
null
UTF-8
Python
false
false
937
py
import os import sys import time import bteve as eve gd = eve.Gameduino() gd.init() print(os.listdir("/sd")) FN = "/sd/spa-1500.avi" L = 825478 t0 = time.monotonic() if 0: gd.cmd_memwrite(0, L) with open(FN, "rb") as f: gd.load(f) gd.finish() else: with open(FN, "rb") as f: a = 0 ...
[ "jamesb@excamera.com" ]
jamesb@excamera.com
9e638878d4bfcd715b3e97ef63f02f8d5662ab5f
28dbe47aba287ed94ef7bba734203736bcc06249
/.history/dmac_20200619152024.py
85ba2c28d9c9fafe96bda8b2fe109fa8d0b8ff9b
[]
no_license
ntung88/Trading_Algorithms
242fd816b19df95e02e9fcd8c5c91c862d2ede40
d96488b1754e3751f739d9c3f094a8f8dc54a0a9
refs/heads/master
2022-11-19T16:04:07.800344
2020-07-17T21:14:10
2020-07-17T21:14:10
276,239,640
1
0
null
null
null
null
UTF-8
Python
false
false
1,011
py
import yfinance as yf import numpy as np from scipy.stats import norm import pandas as pd from pandasgui import show def main(): tickers = 'SPY AAPL MRNA TSLA' data = yf.download(tickers, period='max', group_by='ticker') dirty = pd.DataFrame(data['TSLA']) frame = clean_data(dirty) sma = frame.rolli...
[ "nathantung@Nathans-MacBook-Pro.local" ]
nathantung@Nathans-MacBook-Pro.local
208df091e95ea0a8ce9165107a96d1d523e1b634
d3239c2e5652378b17932553f80be1dbcbbdfdbf
/python/week3/ejercicios10.py
1dd7fe07fa57b5cab976ff8fdcb489c62ac8e812
[]
no_license
jorge-alvarado-revata/code_educa
673a8b10817c24b3fc2c5792d216837c15a701aa
241e1e3f43586e486b73cee8f385ab74dd99caf1
refs/heads/main
2022-12-25T21:37:36.988225
2020-10-13T18:59:38
2020-10-13T18:59:38
303,801,120
0
0
null
null
null
null
UTF-8
Python
false
false
241
py
import sys es_bisiesto = False if len(sys.argv) > 0: year = int(sys.argv[1]) es_bisiesto = (year % 4 == 0) es_bisiesto = es_bisiesto and (year % 100 != 0) es_bisiesto = es_bisiesto or (year % 400 == 0) print(es_bisiesto)
[ "serviciosplusapp@gmail.com" ]
serviciosplusapp@gmail.com
d17ce9253b12f231c52503b2a30aaf66cff543e0
9752f8065f5b4fb229d94416bc4c6a1fddbd4179
/templates_advanced-recources/templates_advanced/core/mixins/group_required_mixin.py
abb1d6e4c9e85b615b9d11a4154182ebd9b79d17
[]
no_license
DeanDupalov/web-basic-django
1b2bbc7d3bdb9452f067f230cd14733859071dea
52e79535d12ce7673a4b17680154b48d7d184487
refs/heads/master
2023-07-12T19:13:49.117155
2021-08-26T10:57:41
2021-08-26T10:57:41
370,965,846
0
0
null
null
null
null
UTF-8
Python
false
false
672
py
from django.core.exceptions import PermissionDenied class GroupRequiredMixin: """ group_required - list of strings, required params """ group_required = None def dispatch(self, request, *args, **kwargs): if not request.user.is_authenticated: raise PermissionDenied ...
[ "75751527+DeanDupalov@users.noreply.github.com" ]
75751527+DeanDupalov@users.noreply.github.com
cf9cbe188af8e0a68a3311d008259a5499a05fe3
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_fennel.py
86fa67f2a77d8af74a9f6166a09e57dcba87fc84
[ "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
399
py
#calss header class _FENNEL(): def __init__(self,): self.name = "FENNEL" self.definitions = [u'a plant with a large, rounded base that is eaten as a vegetable and seeds that are used to give a special taste to food'] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.s...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
f3738475e396794c256993f47be55994ae98fb1f
b68c764000a5be543a1a4f3c7b83c23b47984b30
/apiv2/handlers/teacher.py
871e56eece6edc255e56a74ae437edc915fe1831
[]
no_license
nuannuanwu/weixiao
7caea4b791584c595adfefd569e3ad257e21c404
1b1fbe4c66df731f63f10c57dee20cb0bb4edb4c
refs/heads/master
2021-01-06T20:37:12.699189
2014-02-18T08:04:10
2014-02-18T08:04:10
16,940,220
1
0
null
null
null
null
UTF-8
Python
false
false
1,625
py
# -*- coding: utf-8 -*- from piston.handler import BaseHandler from api.helpers import rc from kinger.models import Teacher, Group from api.helpers import query_range_filter from django.core.exceptions import ObjectDoesNotExist class TeacherHandler(BaseHandler): model = Teacher fields = ("id", "school_id", ...
[ "rjpanpan@gmail.com" ]
rjpanpan@gmail.com
0e6641df7961ef4455355c5993679e23159f8d49
bd5995a1063ff552bb127e0344fd5e60612ed6ae
/selenium.py
924642656dc9260acb58db0dea89afd61ba1c122
[]
no_license
Utschie/pythonwork
f07f25d426875cae3d29865c3aa6c1ab5bddd355
b4014585c1f0dd7007b9c7f5368335daa059839f
refs/heads/master
2021-05-01T16:49:26.010743
2020-06-17T23:10:46
2020-06-17T23:10:46
121,054,629
2
1
null
null
null
null
UTF-8
Python
false
false
3,409
py
#selenium自动使用chrome,然后为之后使用PhantomJS做准备 #有时还有bug #需要添加显式等待代码,能点开的时候就马上点开,不用等加载完,要不然太慢 #等待ajax加载那部分要改,用鼠标拖动到底部那个脚本可能有些问题 #中间还要更换IP和UA #然后剩下的就是函数和循环了 from selenium import webdriver from selenium.webdriver.support.ui import Select#用来搞下拉列表 from selenium.webdriver.common.by import By#用来添加显示等待 from selenium.webdrive...
[ "littlecat.j@hotmail.com" ]
littlecat.j@hotmail.com
c3aa4b41deefb3e5801ccf5f28270c5888a76191
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02265/s299791699.py
0a03b091b95ca482891fed801602dfe755b7514a
[]
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
502
py
from collections import deque deq = deque() n = int(input()) for _ in range(n): operation = input() if operation == "deleteFirst": deq.popleft() elif operation == "deleteLast": deq.pop() else: command, value = operation.split() if command == "insert": d...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
b40cf7e5f1bd9a41f3c36398c114b805faf51ad0
f6cb1b34668f4e864836c595efce40083baa8f91
/common/recipes-rest/rest-api/files/boot_source.py
a535f5fde0f6bf289f7aefefd1b04b00fb1717c5
[]
no_license
isabella232/openbmc
d419d61092f457d2c25a057831fc8d56cd482e8a
7a0ece893ac2d985af85701d8a003fa62a34cae0
refs/heads/helium
2023-04-06T06:29:29.854842
2021-04-16T01:04:35
2021-04-16T01:54:48
358,585,013
0
0
null
2021-04-16T12:02:45
2021-04-16T12:01:40
null
UTF-8
Python
false
false
2,819
py
#!/usr/bin/env python3 # # Copyright 2014-present Facebook. All Rights Reserved. # # This program file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation; version 2 of the License. # # This program is distributed ...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
e9991fdae2a3358d519f8e5b51311ad024875de6
8c4782450881b60a4ce6e2cb312505ade3ab105d
/49.py
84ce55b4b2457219f331d7e8ca71598d04f574ad
[]
no_license
minahosam/python-examples
459bc6760fb895866bf8a459ddc26c19aa46efcb
bfcbc64cfecf639a1dd11fbe7a82cadf40b52f2c
refs/heads/master
2022-12-07T09:49:02.022076
2020-09-01T15:16:03
2020-09-01T15:16:03
291,807,180
1
0
null
null
null
null
UTF-8
Python
false
false
170
py
file=open('file.txt','r') text=file.read() print(text) file.seek(0) text1=file.readlines() print(text1) file.seek(9) text2=file.readline() print(text2) input ('p e t e')
[ "you@example.com" ]
you@example.com
d30106f252f929016959ab05eea558f8e3fde4eb
d2b66fa4af757e9e7f17a2f939e43a1e79e81617
/lib/language/messages_fr.py
388b478c97130f0b2ea8a0d53957210d38eda339
[ "Apache-2.0", "MIT", "LGPL-2.0-or-later", "AGPL-3.0-only", "Python-2.0", "LicenseRef-scancode-proprietary-license", "GPL-3.0-only", "BSD-3-Clause", "GPL-2.0-only", "LicenseRef-scancode-public-domain" ]
permissive
Prodject/OWASP-Nettacker
efa80490d353fe2cd7cd230b2815197734d290fc
b6fb4a1fe6b3cf1a0a49872480fd387b77ed9b44
refs/heads/master
2021-01-25T13:58:31.973092
2020-01-21T20:10:27
2020-01-21T20:10:27
123,632,906
0
0
Apache-2.0
2020-01-21T20:10:28
2018-03-02T21:30:19
Python
UTF-8
Python
false
false
17,004
py
#!/usr/bin/env python # -*- coding: utf-8 -*- def all_messages(): """ keep all messages in fr Returns: all messages in JSON """ return \ { "scan_started": "Moteur Nettacker a commencé ...", "options": "python nettacker.py [options]", "help_menu"...
[ "ali.razmjoo@owasp.org" ]
ali.razmjoo@owasp.org
29cff7e5242521a072bc09fb20580402e00962be
8fc9b78c72c4785f15ecda8de3157839340787d0
/backend/home/management/commands/load_initial_data.py
c8fbb5dd85e5a468c1230fbc8c027c0a319b044b
[]
no_license
crowdbotics-apps/starty-4859
5738f4f35d7f5883369d7e403ceec59b0fdd4ffc
9669fbdda0106f03fc009c9974296f72080b3f61
refs/heads/master
2022-12-12T23:52:45.685770
2019-06-18T21:54:58
2019-06-18T21:54:58
192,617,571
0
0
null
2022-12-09T06:51:09
2019-06-18T21:54:41
Python
UTF-8
Python
false
false
715
py
from django.core.management import BaseCommand from home.models import CustomText, HomePage def load_initial_data(): homepage_body = """ <h1 class="display-4 text-center">Starty</h1> <p class="lead"> This is the sample application created and deployed from the crowdbotics slack app. ...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
b0365b49eb3d264584f77f3c44d0b3f17a922868
48f73b5b78da81c388d76d685ec47bb6387eefdd
/scrapeHackerrankCode/codes/gridland-metro268.py
8e1bfb0853377dca11a4707e05fc2888f31015d4
[]
no_license
abidkhan484/hacerrankScraping
ad0ceda6c86d321d98768b169d63ea1ee7ccd861
487bbf115117bd5c293298e77f15ae810a50b82d
refs/heads/master
2021-09-18T19:27:52.173164
2018-07-18T12:12:51
2018-07-18T12:12:51
111,005,462
2
1
null
null
null
null
UTF-8
Python
false
false
217
py
# Wrong Answer # Python 3 n, m, k = [int(x) for x in input().split()] # now n is total train track n *= m for _ in range(k): p, q, r = [int(x) for x in input().split()] r = r-q+1 n -= r print(n)
[ "abidkhan484@gmail.com" ]
abidkhan484@gmail.com
fab28faccdaebf0a967393ad4f2bf5187e2a95fc
95761ba9ca92c9bf68f3fb88524ee01ddba9b314
/api-web/src/www/notasquare/urad_api/__init__.py
fd32ac034fd8a7ba2163055c1266e60ae5f46903
[]
no_license
duytran92-cse/nas-workboard
918adf4b976f04a13dc756f8dc32aecf397c6258
bebe7674a7c6e8a3776264f18a3b7ca6b417dc7e
refs/heads/master
2022-10-23T01:02:39.583449
2020-06-14T19:25:01
2020-06-14T19:25:01
272,268,882
0
0
null
null
null
null
UTF-8
Python
false
false
151
py
import helpers import handlers import tests import parsers import authenticators import authorizators import queues import consumers import containers
[ "thanh.tran@etudiant.univ-lr.fr" ]
thanh.tran@etudiant.univ-lr.fr
ad65cea9418ec75539cecd8d8768bf44fc6a026d
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/pg_1110+045/sdB_pg_1110+045_lc.py
e4b227e048cb58f0daa39932ed56b528b6bbe132
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
UTF-8
Python
false
false
344
py
from gPhoton.gAperture import gAperture def main(): gAperture(band="NUV", skypos=[168.322292,4.220764], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_pg_1110+045/sdB_pg_1110+045_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3) if __name__...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
e23ced542aa57d0d5de3023807086afb46b667b5
a31de016611f3b4efc7a576e7113cad1a738419b
/_smallest_subarray_Sorted_list.py
3fa10e48a7771f422f55af021850ebd12332fa54
[]
no_license
Ing-Josef-Klotzner/python
9d4044d632672fff966b28ab80e1ef77763c78f5
3913729d7d6e1b7ac72b46db7b06ca0c58c8a608
refs/heads/master
2022-12-09T01:40:52.275592
2022-12-01T22:46:43
2022-12-01T22:46:43
189,040,355
0
0
null
2022-12-01T19:52:37
2019-05-28T14:05:16
Python
UTF-8
Python
false
false
74,966
py
from sys import stdin from collections.abc import Sequence, MutableSequence from bisect import bisect_left, bisect_right, insort from itertools import chain, repeat, starmap from math import log from operator import add, eq, ne, gt, ge, lt, le, iadd from textwrap import dedent from functools import wraps, reduce from _...
[ "noreply@github.com" ]
Ing-Josef-Klotzner.noreply@github.com
25c975196c1fe7afe6fce77687bde9cd3a490ef6
8a62da2d9c1ac404c5002f39163c1fa8675ac573
/Scripts/scripts/TC_AD_Bluetooth_12_29_FTP_Long_Duration_File_Transfer_All_1.py
aa32d061cf0a4de8018b8e622c34a122e87b3141
[]
no_license
evijaythegr8/Applications
210c0cf432d3366571daee5f34f477a5c6247c99
f85d7171ae2a177660dc5c5be49575fb52eb849b
refs/heads/master
2021-01-22T07:04:11.509844
2014-04-20T11:15:53
2014-04-20T11:15:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,199
py
# #=BEGIN # # This file is part of the Bluetooth use-case verification # # Copyright (C) ST-Ericsson SA 2010. All rights reserved. # # This code is ST-Ericsson proprietary and confidential. # Any use of the code for whatever purpose is subject to # specific written permission of ST-Ericsson SA. # #=END # import setup_p...
[ "evijaythegr8@gmail.com" ]
evijaythegr8@gmail.com
2ce71e4077d7462db49d850ca83ac65cd0c285c3
7ec0e4c31ed29bcf30f74d779966c8009b2f04f8
/bin/easy_install-2.7
5f34e3f0bbfd0eed2088b6123a2c99c08c461646
[]
no_license
jaythaceo/ToolSet
80a9cf5f3a04da808cf316f76db14f598ca2dc56
4baef18c374af0c6483e2f97c7b5c8d42a62c7bb
refs/heads/master
2021-01-10T08:59:37.391778
2015-06-20T07:38:51
2015-06-20T07:38:51
36,956,365
1
1
null
null
null
null
UTF-8
Python
false
false
276
7
#!/Users/jaythaceo/Documents/djangoApps/toolSet/bin/python2.7 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "jaythaceo@gmail.com" ]
jaythaceo@gmail.com
c03f935a14c689fe6d8d0c981b6f3f7a942675aa
72d7cfbdd02f77300edb0f5e4104a1a147048ade
/tkinterfiles/one.py
41a7caa20c668a2411715f2c66ab1280f24fc07b
[]
no_license
simrangrover5/batch430
33f3e59b7d2c70f87d796cc869855975ffef976a
ec841051d3a84cd56515aeff3b9d328cebea3705
refs/heads/master
2020-12-18T09:21:12.518412
2020-02-11T12:40:48
2020-02-11T12:40:48
235,325,192
1
3
null
null
null
null
UTF-8
Python
false
false
354
py
from tkinter import * root = Tk() l1 = Label(root,text="Welcome to First Class",fg="black",bg="red") l1.config(font=(None,25,'italic')) l1.pack() b1 = Button(root,text="Button1",bg="black",fg="red") b1.pack() b2 = Button(root,text="Button1",bg="black",fg="yellow") b2.pack(side='left') root.geometry('700x700') r...
[ "simrangrover5@gmail.com" ]
simrangrover5@gmail.com
b64490b799287dccc87b7fc1f9679a3e8f54e2da
01d11e0131785d76b7a28a5b0dfac37ccbf3b62f
/brain_games/games/even.py
a29112fbbf39947a3c50c681c93ccbad500e6b54
[]
no_license
paalso/python-project-lvl1
2e7f461bb87c4135c0c74179ce857960b7fb35a1
9e9d8c5d1c58a20b4e404d4bb2677098ae3955fe
refs/heads/main
2023-06-25T17:07:02.871538
2021-07-29T16:29:31
2021-07-29T16:29:31
387,167,672
0
1
null
null
null
null
UTF-8
Python
false
false
413
py
from brain_games.mathlib import is_even, randint task = 'Answer "yes" if the number is even, otherwise answer "no".' def gen_question(): return randint() def str_question(question): return str(question) def correct_answer(question): return {True: "yes", False: "no"}[is_even(question)] ...
[ "40a.pvl@gmail.com" ]
40a.pvl@gmail.com
a5757ffd06cac90806111e74c913978958efd5fc
8e02228b5857d876de244d37b1d6ec3bbd21227e
/python_modules/dagster-test/dagster_test/toys/retries.py
65774b0f3d1db2e392567108e60b26a9a627b39c
[ "Apache-2.0" ]
permissive
ChocoletMousse/dagster
4af255d5ab99c25d1a2be379a5bbd83fa3221b64
a256cb43cde0ab5a800a87ee1f55de560587a4ab
refs/heads/master
2022-12-26T00:04:31.172150
2020-09-25T21:36:15
2020-09-26T02:15:35
297,765,844
1
0
Apache-2.0
2020-09-22T20:35:23
2020-09-22T20:35:22
null
UTF-8
Python
false
false
959
py
import time from dagster import PresetDefinition, RetryRequested, lambda_solid, pipeline, solid @lambda_solid def echo(x): return x _ATTEMPTS = 0 @solid(config_schema={"max_retries": int, "delay": int, "work_on_attempt": int}) def retry_solid(context): time.sleep(1) global _ATTEMPTS # pylint: disabl...
[ "alex@elementl.com" ]
alex@elementl.com
a5bce036c337a09ce3c55f0d8f4ed8e2f27787f2
18430833920b3193d2f26ed526ca8f6d7e3df4c8
/src/transmittals/migrations/0052_remove_trsrevision_originator.py
351a5ade4413729c0e3938564f21b58236df1848
[ "MIT" ]
permissive
providenz/phase
ed8b48ea51d4b359f8012e603b328adf13d5e535
b0c46a5468eda6d4eae7b2b959c6210c8d1bbc60
refs/heads/master
2021-01-17T06:56:07.842719
2016-06-28T11:17:53
2016-06-28T11:17:53
47,676,508
0
0
null
2015-12-09T07:45:19
2015-12-09T07:45:18
null
UTF-8
Python
false
false
366
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('transmittals', '0051_auto_20160226_1127'), ] operations = [ migrations.RemoveField( model_name='trsrevision', ...
[ "thibault@miximum.fr" ]
thibault@miximum.fr
0a8d2d8d857fb7fab45cd210e91f1a8df5efd937
847f94217951a3afc98b22317662c34c6063e762
/alternate_sort.py
748eec487264c400d8058e735222c054c0e9884d
[]
no_license
tashakim/puzzles_python
abf8c4cca4046e3ab611cab2efd33265ece4e954
95a86cbbca28d0c0f6d72d28a2f1cb5a86327934
refs/heads/master
2023-08-30T19:28:55.134966
2021-11-04T03:50:04
2021-11-04T03:50:04
247,339,457
8
1
null
2021-06-11T03:38:40
2020-03-14T19:22:38
Python
UTF-8
Python
false
false
384
py
def alternatingSort(a): """Purpose: Returns a sorted array merged with a special rule. """ cur, prev = 0, float('-inf') for i in range(len(a)): print("i = ", i) if i%2 == 0: # even index cur = i//2 else: # odd index cur = (-i//2) if a[cur] <= prev...
[ "jae_young_kim@brown.edu" ]
jae_young_kim@brown.edu
f30e0228a429f611792ce80f45ea0cb3d7e63e55
2585be29b170ab5724c2eae28dd281e5fc706382
/shopit/serializers.py
ede6bd94c64b9e0f4dfaa3f5a28e5ae05ad56053
[ "BSD-3-Clause" ]
permissive
khchine5/djangoshop-shopit
3ad3fc450f47ea69db03598bf9bf0a078fcfe1b3
d5ed61b6f7ac1083de73169b1c437c8c9e09e909
refs/heads/master
2020-12-02T10:06:37.969034
2017-07-22T21:09:01
2017-07-22T21:09:01
96,692,309
0
0
null
2017-07-22T21:09:02
2017-07-09T15:12:56
Python
UTF-8
Python
false
false
11,867
py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from django.core.urlresolvers import NoReverseMatch, reverse from django.template.loader import select_template from django.utils import six from measurement.base import MeasureBase from measurement.measures import Distance, Mass from pho...
[ "dino.perovic@gmail.com" ]
dino.perovic@gmail.com
30c1ba9aec40610d570059fe794aeb634e32754c
795df757ef84073c3adaf552d5f4b79fcb111bad
/humps/humps.py
b53a9fc0594f8101c39d8e4b28c76a6aab7d935b
[]
no_license
tnakaicode/jburkardt-python
02cb2f9ba817abf158fc93203eb17bf1cb3a5008
1a63f7664e47d6b81c07f2261b44f472adc4274d
refs/heads/master
2022-05-21T04:41:37.611658
2022-04-09T03:31:00
2022-04-09T03:31:00
243,854,197
3
0
null
null
null
null
UTF-8
Python
false
false
10,541
py
#! /usr/bin/env python3 # import numpy as np import matplotlib.pyplot as plt import platform import time import sys import os import math from mpl_toolkits.mplot3d import Axes3D from sys import exit sys.path.append(os.path.join("../")) from base import plot2d, plotocc from timestamp.timestamp import timestamp from i...
[ "tnakaicode@gmail.com" ]
tnakaicode@gmail.com
6a8c25d726145e8d9961e0e54d49fc72ad40bad1
303d4aa8ec749844d2f7472e1006b46379c62bc6
/Tkinter/25、鼠标点击事件.py
8aa072b8e4e36f6b7cf418abc63e1d3c11ff36d1
[]
no_license
suntyneu/test
d6f63791006785518d8e4c92d89018049396dd01
a05f93fe71cdd0594fba180e0bed52d402b47bb2
refs/heads/master
2023-03-26T10:55:28.214978
2021-03-20T07:04:03
2021-03-20T10:02:38
349,372,793
0
0
null
null
null
null
UTF-8
Python
false
false
472
py
import tkinter # 创建主窗口 win = tkinter.Tk() # 创建标题 win.title("sunty") # 设置大小和位置 win.geometry("600x400+200+20") def func(event): print(event.x, event.y) # <Button-1> 鼠标左键 <Button-3>"鼠标右键 <Button-2>" 中间滚轮 # <Double-Button> 左键双击 button1 = tkinter.Button(win, text="leftmouse button") # bind 给控件绑定的事件 button1.bind(...
[ "19904270266@189.cn" ]
19904270266@189.cn
e35ce9da391dade5f3888c5bdb47aa2b4d8af753
82e19a94a4215683ff46e6dfef19b48e3a093736
/impfunctions.py
0aefb954a1eecf1a6390c87cc53abf966354e655
[]
no_license
goginenigvk/PythonSep_2019
d6f0505e3639e54b9f0166aef165e57223053d14
65cf63212d02b805b1f52c15ccaf9bf67a80ef1b
refs/heads/master
2022-03-31T06:33:02.623974
2019-11-22T16:39:54
2019-11-22T16:39:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
237
py
x=int(input("Enter x value :")) y=int(input("enter y value :")) print(x+y) name=input("Enter your name") print(name) print(type(name)) print(type(x)) #range(1,100) for i in range(1,10): print(i) #boolean types True False
[ "rajageturgoal@gmail.com" ]
rajageturgoal@gmail.com
2af2957417f7f9aabded01b15fd09ad7a639b873
b52c715ae1c4e4e7324338849e21fe25ed27c7ed
/lesson2/_csv/example1_read.py
f99f5841d43b2697e2f7d920e9af2041a2b6c120
[]
no_license
romi477/cbs_p_advanced
b65321329a00e6b1d9bda413b908124c0f2d9312
b750d625cb5beddc015c95b432cea3644bd177b1
refs/heads/master
2022-12-10T15:57:12.600289
2019-03-19T17:15:07
2019-03-19T17:15:07
176,159,519
0
0
null
2022-12-08T03:01:41
2019-03-17T20:53:42
Python
UTF-8
Python
false
false
201
py
import csv with open('data/example1.csv', 'r') as f: reader = csv.reader(f) print('Line nums', reader.line_num) print('Dialect', reader.dialect) for row in reader: print(row)
[ "romi4240101@gmail.com" ]
romi4240101@gmail.com
63fc44f5fe7fdd1d108509d73b67a19d0fe23e18
7a043d45cf0ed0938a10a03121c2b75fdd0cc76a
/025/p25.py
3997296b0507635ac6e3236d5c1a63c89924595d
[]
no_license
tormobr/Project-euler
f8d67292a6426ffba9d589d01c31e2d59249e4ff
b544540b0fee111a6f6cfe332b096fe1ec88935c
refs/heads/master
2020-05-29T17:27:03.767501
2020-02-13T13:06:34
2020-02-13T13:06:34
189,276,911
0
0
null
null
null
null
UTF-8
Python
false
false
256
py
def get_digits(n): return len([c for c in str(n)]) current_fib = 1 last_fib = 1 index = 2 while get_digits(current_fib) < 1000: next_fib = current_fib + last_fib last_fib = current_fib current_fib = next_fib index += 1 print(index)
[ "tormod.brandshoi@gmail.com" ]
tormod.brandshoi@gmail.com
f7f81a7e335e78a72290292df56f0a6f45463844
1605519e6ec6f2a092d006a851c9ce57e5a2203c
/Mundo 3/05 - Funções - p1/Ex096 - area.py
4571914968389ae2281e9cccd0e1ddc85b561609
[ "MIT" ]
permissive
FelipeDreissig/Prog-em-Py---CursoEmVideo
2ebe8d537493a917b59d7c98fb8bea34e2d6b5fc
59a85e228b4c7bc0738d1a213e71b0f7fb07d03a
refs/heads/main
2023-02-06T23:57:43.123295
2020-12-28T12:59:04
2020-12-28T12:59:04
324,915,020
0
0
null
null
null
null
UTF-8
Python
false
false
217
py
def area(a, b): ar = a*b print(f'A área do terro é de {ar:.1f} metros².') # programa principal l = float(input('Qual a largura do terreno?')) c = float(input('Qual o comprimento do terreno?')) area(l, c)
[ "58836663+FelipeDreissig@users.noreply.github.com" ]
58836663+FelipeDreissig@users.noreply.github.com
997ab5388e02c02aa0fdba042da2ca9171df0df7
6e5b8ef12d56a11aa0b68fd5a3700a4be0541acd
/.history/predict_20210820172646.py
cb02d05cbe18fa0fa045f09f2bd63ca37d23efe5
[]
no_license
Arcofcosmos/MyYolov5_Pytorch
d8fc7f8398249aeb996fa4b07c3ecdc6fedd2308
07bcb7e3b1dd32ec25171d4aa860d462f5a01078
refs/heads/main
2023-07-15T16:07:52.624808
2021-08-21T07:13:42
2021-08-21T07:13:42
398,490,633
0
0
null
null
null
null
UTF-8
Python
false
false
5,702
py
''' Author: TuZhou Version: 1.0 Date: 2021-08-20 13:37:28 LastEditTime: 2021-08-20 13:37:47 LastEditors: TuZhou Description: FilePath: \my_yolov5\predict.py ''' #----------------------------------------------------# # 对视频中的predict.py进行了修改, # 将单张图片预测、摄像头检测和FPS测试功能 # 整合到了一个py文件中,通过指定mode进行模式的修改。 #-----------------...
[ "tz2062750487@163.com" ]
tz2062750487@163.com
8360225037f5b128ceb9cb9269cbb149c8c77285
1dab494d77c3e7fc3458cf4233a7fb6f74824358
/contacts/migrations/0006_contact_notes.py
96988b86d8e78b76d1c88e1f50cadb310851603e
[]
no_license
lightninglu10/silo-backend
bf5d65cbbe5c1d722081321e11ad817fa9651526
24c9cf42e0dc166488d1f23ca6bb8b85905d4e8c
refs/heads/master
2021-01-20T11:49:54.059057
2017-03-10T19:45:51
2017-03-10T19:45:51
80,680,813
0
0
null
null
null
null
UTF-8
Python
false
false
470
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-13 20:32 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('contacts', '0005_auto_20170207_0303'), ] operations = [ migrations.AddField...
[ "lightning.lu7@gmail.com" ]
lightning.lu7@gmail.com
5480e86837e4170f16b79ef63698fdd20f6e9117
77a3895808b67dd2511ccbe9cd9e56d17c0f7dcf
/src/radical/ensemblemd/kernel_plugins/md/post_lsdmap.py
7c121c2ac4c0ade828b145ebe5a6177b0ce00d60
[ "MIT" ]
permissive
peterkasson/radical.ensemblemd
3b846aaadadae6b074221691c3bdc6fb1223fc36
0c02c5071b42c7af8905f7efc0e633f0f2ed89ca
refs/heads/master
2021-05-29T20:34:59.498724
2015-10-22T07:02:52
2015-10-22T07:02:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,287
py
#!/usr/bin/env python """A kernel that creates a new ASCII file with a given size and name. """ __author__ = "Vivek <vivek.balasubramanian@rutgers.edu>" __copyright__ = "Copyright 2014, http://radical.rutgers.edu" __license__ = "MIT" from copy import deepcopy from radical.ensemblemd.exceptions import ArgumentE...
[ "b.vivek91@gmail.com" ]
b.vivek91@gmail.com
a3bd1e2ae1ede9fce76589419f9a76f5fe5dd718
e9a9a78f0ab3a5ccab4bd7ea8843d6df97f8a08b
/darwen/lib/flask_helpers.py
ea96e11acd13d68a2c511d00a88b3143fcb92f68
[]
no_license
daimon99/darwenrobot
6c66789a736419e44f9b663a2de9f8e5db5aa2a6
22d140a2838282a53bc233b52985d2ca91070b9f
refs/heads/master
2021-04-12T17:17:45.312453
2020-03-23T15:39:53
2020-03-23T15:39:53
249,095,849
0
0
null
null
null
null
UTF-8
Python
false
false
4,290
py
# Copyright (c) 2018 Anki, Inc. # # 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 in the file LICENSE.txt or at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
[ "daijian1@qq.com" ]
daijian1@qq.com
efd0260fac53b7df20c04e8073bcb28df371d6ca
a799a105ab2aba39a475bf2ce086405def0351c2
/test/test_json.py
932e91dac4ce768a61621627e3737e89f1b58e64
[ "Apache-2.0" ]
permissive
mbohlkeschneider/gluon-ts
d663750d13798624eca5c9d6f12a87e321ce7334
df4256b0e67120db555c109a1bf6cfa2b3bd3cd8
refs/heads/master
2021-11-24T06:09:49.905352
2021-10-14T09:30:38
2021-10-14T09:30:38
192,546,557
54
10
Apache-2.0
2022-08-31T18:36:44
2019-06-18T13:33:36
Python
UTF-8
Python
false
false
1,773
py
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
[ "noreply@github.com" ]
mbohlkeschneider.noreply@github.com
dc127cd21186e3eab45d3214b8807089adfaa8b0
a2d36e471988e0fae32e9a9d559204ebb065ab7f
/huaweicloud-sdk-ccm/huaweicloudsdkccm/v1/model/issue_certificate_authority_certificate_response.py
ed0f0d449cca7f886a1cf4895dc4a17263a42622
[ "Apache-2.0" ]
permissive
zhouxy666/huaweicloud-sdk-python-v3
4d878a90b8e003875fc803a61414788e5e4c2c34
cc6f10a53205be4cb111d3ecfef8135ea804fa15
refs/heads/master
2023-09-02T07:41:12.605394
2021-11-12T03:20:11
2021-11-12T03:20:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,521
py
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class IssueCertificateAuthorityCertificateResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name ...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
fbdd17ff1e99dd46d9a573e79b8d428e81813b4d
ed7b5c24d9a13d0c717fd6f6293f3464f43d7cbf
/demo/sjh_opencv/cv1.py
f8f1a8b540dcb192b83d80ca5e0d9281634f0c1f
[]
no_license
befallenStar/python
ccb93d456dc161a8087a78220a7aaab21320ab8b
e44ce8c11b820f03fe2d60dfa84053d8cc356c80
refs/heads/master
2022-12-07T18:34:03.091146
2020-08-20T02:33:56
2020-08-20T02:33:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,257
py
# -*- encoding: utf-8 -*- import argparse import base64 import os import threading import time from io import BytesIO import cv2 import numpy as np from PIL import Image from scipy.signal import argrelextrema import sjh_opencv.crop as crop class Frame: def __init__(self, id, diff_sum_mean): self.id = id ...
[ "sy5622_5@126.com" ]
sy5622_5@126.com
69bab4256e675a638821e9ce640f227e67aefad7
89b6997b24e404c176358073626a8bfad7bcdb8e
/.history/students/views_20210417001941.py
aaf988203c39b6cf2626617d97a08c0dc5b3223b
[]
no_license
mohamedhawas123/Education-platform-django
513e64ac112880385402ce609077796578b4e9ee
7b83e66bba66b8b2b1a007f5818a534653e6abfb
refs/heads/main
2023-07-18T16:19:52.177886
2021-09-24T12:04:09
2021-09-24T12:04:09
352,306,462
1
0
null
null
null
null
UTF-8
Python
false
false
330
py
from django.shortcuts import render from django.views.generic.edit import CreateView from django.contrib.auth.forms import UserCreationForm from django.urls import reverse_lazy class StudentRegisterView(CreateView): template_name = 'students/student/registeration.html' form_class = UserCreationForm succ...
[ "mohamedhawas123@gmail.com" ]
mohamedhawas123@gmail.com
dde827fa141bbbcca5020367683be49b074b49a3
16c2226d89aa473b9e6d083f5fde72c0d49145c7
/experiment_results/multidimensional/diff-4-u/z3query.py
75ca1c482a6a2936b9225b212df41be95ef6088f
[]
no_license
VerifierIntegerAssignment/VIAP_ARRAY
cbb071e02f74a1f36e978486ae6beb00f0ee5101
c918aeaf2ce22526181686808b09deea56b8bc35
refs/heads/master
2021-05-10T19:17:23.638199
2019-04-06T01:28:47
2019-04-06T01:28:47
118,147,979
2
3
null
null
null
null
UTF-8
Python
false
false
33,375
py
import sys import os currentdirectory = os.path.dirname(os.path.realpath(__file__)) sys.path.append(currentdirectory+"/packages/setuptools/") currentdirectory = os.path.dirname(os.path.realpath(__file__)) sys.path.append(currentdirectory+"/packages/z3/python/") from z3 import * init(currentdirectory+"/packages/z3") set...
[ "pritom.rajkhowa@gmail.com" ]
pritom.rajkhowa@gmail.com
f8398fa9dd7ac6c6113b27cd46dc1a3d426fb8a7
43e900f11e2b230cdc0b2e48007d40294fefd87a
/Amazon/OnlineAssessment/storage_optimizations.py
8c7fddbf8258950ce89a119e2cba35090bc421ea
[]
no_license
DarkAlexWang/leetcode
02f2ed993688c34d3ce8f95d81b3e36a53ca002f
89142297559af20cf990a8e40975811b4be36955
refs/heads/master
2023-01-07T13:01:19.598427
2022-12-28T19:00:19
2022-12-28T19:00:19
232,729,581
3
1
null
null
null
null
UTF-8
Python
false
false
2,456
py
# Storage Optimization # https://aonecode.com/amazon-online-assessment-storage-optimization # Intuitive Solution # O(mn) Time def storage_opt(n, m, h, v): return get_max(n + 1, h) * get_max(m + 1, v) def get_max(length, bars): separators = set([]) for i in range(1, length): separators.add(i)...
[ "wangzhihuan0815@gmail.com" ]
wangzhihuan0815@gmail.com
207c055c93fac0e111dc3a878f2e3dab71753dbf
eb3683f9127befb9ef96d8eb801206cf7b84d6a7
/stypy/sgmc/sgmc_cache/taxonomy/builtin_functions/format/error_format_instance.py
b9fc28746bfac82a483c409697a960fce05a561a
[]
no_license
ComputationalReflection/stypy
61ec27333a12f76ac055d13f8969d3e0de172f88
be66ae846c82ac40ba7b48f9880d6e3990681a5b
refs/heads/master
2021-05-13T18:24:29.005894
2018-06-14T15:42:50
2018-06-14T15:42:50
116,855,812
2
0
null
null
null
null
UTF-8
Python
false
false
2,331
py
# -*- coding: utf-8 -*- """ ORIGINAL PROGRAM SOURCE CODE: 1: # coding=utf-8 2: __doc__ = "format builtin is invoked, but a class is used instead of an instance" 3: 4: if __name__ == '__main__': 5: # Call options 6: # (AnyType) -> <type 'str'> 7: # (AnyType, Str) -> <type 'str'> 8: 9: 10: # Type err...
[ "redondojose@uniovi.es" ]
redondojose@uniovi.es
1e1cc3979f0eb76d56924b6bdecf38c49b732f94
9a10e588e6e70c86a146012e62561eb0e45da32a
/src/storage/storage.py
302c84a0e597d9d3647bc8f68baae51b8eee6515
[ "MIT" ]
permissive
yutiansut/PyBitmessage
8f606945eaeaca5d181d44e028e3fed777e924ed
a29f7534ee54a6b93498ec13e581ee2da22dfc94
refs/heads/master
2021-09-24T07:12:18.638728
2017-07-21T07:06:02
2017-07-21T07:06:02
103,613,603
0
0
MIT
2018-10-05T02:18:15
2017-09-15T04:23:42
Python
UTF-8
Python
false
false
1,299
py
import collections InventoryItem = collections.namedtuple('InventoryItem', 'type stream payload expires tag') class Storage(object): pass # def __init__(self): # super(self.__class__, self).__init__() class InventoryStorage(Storage, collections.MutableMapping): def __init__(self): # super(se...
[ "surda@economicsofbitcoin.com" ]
surda@economicsofbitcoin.com
aa5d38b01fccd5e0f0fa0b3ee9e18a5e76560869
b232ab24686a197a88973f26478157d05c71a930
/07. 파이썬 분기문/119.py
7434c666ea5fc97fa0e01f824052747499cca4d4
[]
no_license
areum0505/python300
09a3ea858bb728b6e2f699a57f013457680ab1d8
e3b56bd653390172410b86e15c40f34ef3125787
refs/heads/master
2023-01-06T04:53:44.937116
2020-10-22T23:44:36
2020-10-22T23:44:36
288,321,068
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
# 아래와 같이 fruit 딕셔너리가 정의되어 있다. 사용자가 입력한 값이 딕셔너리 키 (key) 값에 포함되었다면 "정답입니다"를 아닐 경우 "오답입니다" 출력하라. fruit = {"봄" : "딸기", "여름" : "토마토", "가을" : "사과"} user = input("제가좋아하는계절은: ") if user in fruit: print("정답입니다") else: print("오답입니다")
[ "noreply@github.com" ]
areum0505.noreply@github.com
e1a7b60eeafe7c92d17d1dc8122d6733725aa98e
84ef8aba277c90cc483ba6382044d0246049a5ea
/rllab/misc/logger.py
5f25095aa8ed6745b1bf27c875df617391a0385f
[ "MIT" ]
permissive
intelligent-control-lab/Autoenv
1c8c7085ce8de394525d6bdf0da471a67fd84ec0
8d7697421ca14e317ea7de24b6acb694ecae5148
refs/heads/master
2023-04-06T12:21:31.998120
2021-03-06T05:12:12
2021-03-06T05:12:12
206,652,547
5
1
MIT
2023-03-15T23:16:19
2019-09-05T20:33:23
Python
UTF-8
Python
false
false
10,538
py
from enum import Enum from rllab.misc.tabulate import tabulate from rllab.misc.console import mkdir_p, colorize from rllab.misc.autoargs import get_all_parameters from contextlib import contextmanager import numpy as np import os import os.path as osp import sys import datetime import dateutil.tz import csv import job...
[ "erdos_zzh@163.com" ]
erdos_zzh@163.com
f09ab985490e4f9788624ce85e85700ff2f45e14
0ed9bd835476a5a006fdc95a1160e5e605343ac1
/Maschine_L9/SceneMatrix.py
2d75249ebfa75bb2e9780c08d3f2d07602ef7bbf
[]
no_license
deeexter/AbletonLive9_RemoteScripts
b639b0b0851deb4130abe06504bba080fadb8613
e3809a72c0cf6a928ab328b5674fcc05e8f1883a
refs/heads/master
2020-04-07T23:17:54.304879
2013-09-30T08:10:49
2013-09-30T08:10:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,123
py
import Live from _Framework.ButtonElement import * from _Framework.CompoundComponent import * from MIDI_Map import * from SceneElement import SceneElement from ControlHandler import ControlHandler from MainKnobControl import * class SceneMatrix: __module__ = __name__ __doc__ = ' Special button class that can b...
[ "julien@julienbayle.net" ]
julien@julienbayle.net
e65e76288800474141233e3b19bbef65b23deb85
8ef8e6818c977c26d937d09b46be0d748022ea09
/nlp/dialogue_generation/cpm/pytorch/iluvatar/cpm/config/training_event.py
85fd3dad4824c7f0faba219a00369e7d92c1ddfc
[ "Apache-2.0" ]
permissive
Deep-Spark/DeepSparkHub
eb5996607e63ccd2c706789f64b3cc0070e7f8ef
9d643e88946fc4a24f2d4d073c08b05ea693f4c5
refs/heads/master
2023-09-01T11:26:49.648759
2023-08-25T01:50:18
2023-08-25T01:50:18
534,133,249
7
6
Apache-2.0
2023-03-28T02:54:59
2022-09-08T09:07:01
Python
UTF-8
Python
false
false
2,943
py
from typing import Tuple import torch import torch.distributed as dist from torch.nn.parallel import DistributedDataParallel as NativeDDP from torch.optim import Optimizer from model.fp16 import FP16_Module from model.fp16 import FP16_Optimizer from model.models import gpt2_get_params_for_weight_decay_optimization fr...
[ "jia.guo@iluvatar.ai" ]
jia.guo@iluvatar.ai
d7b7f317f85a8f0da4515a4c7f377bb5bb6a0fc3
419637376e445ec9faf04c877d5fb6c09d15903f
/steam/user/student/userStudentCourseService.py
b8c22e0fb5ca9e1927ce8676de8a55f5193dc069
[]
no_license
litaojun/steamOmTest
e4203df30acafaa5e282631d77429c0e4483fb88
86f84dbd802d947198823e02c2f1ba2695418a76
refs/heads/master
2020-04-02T21:48:55.115389
2019-07-11T06:08:27
2019-07-11T06:08:27
154,812,217
0
0
null
null
null
null
UTF-8
Python
false
false
1,975
py
#!/usr/bin/env python # encoding: utf-8 """ @version: v1.0 @author: Lieb @license: Apache Licence @contact: 2750416737@qq.com @site: http://blog.csdn.net/hqzxsc2006 @software: PyCharm @file: userStudentCourseService.py @time: 2018/10/12 17:17 """ import json from opg.util.utils import query_json #from st...
[ "li.taojun@opg.cn" ]
li.taojun@opg.cn
382c8d2668daf27f2440ca45e12297320a6bd9fa
578b77c97e4e6e97404a368dc0cb16c7b38074c0
/backend/mobileapp_dev_1514/wsgi.py
77c6c1c24ec4e477a05deeaff089a85ae97f0a57
[]
no_license
crowdbotics-apps/mobileapp123-dev-1514
26cdbe44b5884c6c856fb00d822713e3f0b9a5fb
55ac3e0f020d45f725539287cc12c9b6993a22a5
refs/heads/master
2022-04-05T18:32:31.188742
2020-01-31T10:45:59
2020-01-31T10:45:59
234,293,965
0
0
null
null
null
null
UTF-8
Python
false
false
413
py
""" WSGI config for mobileapp_dev_1514 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('D...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
45a2da7d700bee7f3f589860e89e0a82fcc56bbc
3b71b68634ff1683ecaa657db744901be7ceaf5c
/ipyparallel/engine/nanny.py
22a72ecb2ad81bfe213cb37db8d31c1ebaa216a0
[ "BSD-3-Clause" ]
permissive
yullianaitem204/ipyparallel
d6981ae150782670302078f2c88305b6e85a2c03
84e4c4d8536df6cb4cbe72a898235012ddcf0c1b
refs/heads/main
2023-06-06T16:20:27.163483
2021-07-09T18:13:12
2021-07-09T18:13:12
384,515,783
0
0
NOASSERTION
2021-07-09T18:04:11
2021-07-09T18:04:10
null
UTF-8
Python
false
false
7,626
py
"""Engine subprocess that receives and relays signals Currently the kernel nanny serves two purposes: 1. to relay signals to the process 2. to notice engine shutdown and promptly notify the Hub, rather than waiting for heartbeat failures. This has overlapping functionality with the Cluster API, but has key differ...
[ "benjaminrk@gmail.com" ]
benjaminrk@gmail.com