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
ede6a7910e34d87a8089ec7a7a792cc145ae0a44
ec700463d9af81f68a477535ac233646f4d262f7
/python/__main__.py
2966615ac56651c81b277b34316ddc91361aca73
[]
no_license
gregjhansell97/grid-map
36579afa7beadb78a4b8cc53e2c7f45c75ac28a2
7d4c25b583474ec45265b01e524ed0884aaa2937
refs/heads/master
2020-03-16T20:42:24.156940
2018-10-02T23:29:58
2018-10-02T23:29:58
132,969,337
0
1
null
null
null
null
UTF-8
Python
false
false
453
py
from grid_map import GridMap import timeit if __name__ == "__main__": gm = GridMap(5, bit_depth=10) for x in range(1000): for y in range(1000): gm.add(x, y, "loc:" + str((x, y))) gm = gm.sub_grids[1][0] print(gm) gm = gm.sub_grids[0][0] print(gm) gm = gm.sub_grids...
e35cce8f90ca96866959109432451fecbde33194
e7515012ccb999a499947bea3ef01e82b9a2b15f
/plaso/parsers/winjob.py
f971a8822e0f8e1fe7a3a3157e3264dd4c4eaa56
[ "Apache-2.0" ]
permissive
vonnopsled/plaso
ebfe5af84b955b9e40610bd76598671256ddea4f
c14e3a0c1db0b05280ff58219d33f487c0a40a6f
refs/heads/master
2020-12-31T04:07:25.047511
2016-01-04T07:07:01
2016-01-04T07:07:01
46,817,224
0
0
null
2015-11-24T20:38:20
2015-11-24T20:38:20
null
UTF-8
Python
false
false
10,311
py
# -*- coding: utf-8 -*- """Parser for Windows Scheduled Task job files.""" import construct from plaso.events import time_events from plaso.lib import binary from plaso.lib import errors from plaso.lib import eventdata from plaso.lib import timelib from plaso.parsers import interface from plaso.parsers import manager...
d2856e764575cdb8308c02b69d2303ddf1692b83
c6d852e5842cf6f74123445d20ff03876377ae26
/lemon/python22/lemon_14_190918_测试框架_unittest/test_练习相减02.py
447882bd4b22fb5aed635fbc7eb95a77abf6e076
[]
no_license
songyongzhuang/PythonCode_office
0b3d35ca5d58bc305ae90fea8b1e8c7214619979
cfadd3132c2c7c518c784589e0dab6510a662a6c
refs/heads/master
2023-02-13T14:06:10.610935
2021-01-14T09:11:32
2021-01-14T09:11:32
327,183,429
0
0
null
null
null
null
UTF-8
Python
false
false
1,436
py
# --*-- coding : utf-8 --*-- # Project : python22 # Current file : test_练习相减02.py # Author : Administrator # Create time : 2019-09-19 10:22 # IDE : PyCharm # TODO 成长很苦, 进步很甜, 加油! import unittest def minus(a, b): # add 加起来 """ 相减 """'' return a - b x = 3 y = 5 expected = -2 class Test...
4cb569f1636bfc4eae939e6f9a0744d37db16326
20899d453bc61c169153338ac9d22d324df089c1
/abc/abc162/B.py
9eb9826bfab9e83ccd7c92096c9c66a9611d1f39
[]
no_license
mui-nyan/AtCoder
b2d926b113963915426af679bf9b28430569707c
a702280f11a5b0b1b29dd099dbfc7b1c31fb89fd
refs/heads/master
2022-07-04T16:32:41.164564
2022-06-19T07:24:11
2022-06-19T07:24:11
182,425,947
0
0
null
null
null
null
UTF-8
Python
false
false
778
py
import math from functools import reduce from collections import deque import sys sys.setrecursionlimit(10**7) # スペース区切りの入力を読み込んで数値リストにして返します。 def get_nums_l(): return [ int(s) for s in input().split(" ")] # 改行区切りの入力をn行読み込んで数値リストにして返します。 def get_nums_n(n): return [ int(input()) for _ in range(n)] # 改行またはスペース...
85e88feb381eeaebe8cd19e82b3cf2a9e88051bc
c8d7f2da5ff9e13a5bb6f92b9387a336e7059644
/dolo/numeric/matrix_equations.py
0d3eb87483d5360957fdf884ec03b391a427d468
[ "BSD-2-Clause" ]
permissive
TomAugspurger/dolo
675e5c051e7fdcc8d0af441335d526408128b71f
5d9f0f772860eadf3b9df79e47d158155835bd6b
refs/heads/master
2020-12-25T12:47:30.156775
2013-02-11T20:13:56
2013-02-11T20:13:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,339
py
from dolo.numeric.tensor import sdot,mdot import numpy as np TOL = 1e-10 # credits : second_order_solver is adapted from Sven Schreiber's port of Uhlig's Toolkit. def second_order_solver(FF,GG,HH): from scipy.linalg import qz from dolo.numeric.extern.qz import qzdiv from numpy import array,mat,c_,...
9eb155ab168b320e301794c6d06721d8159379c8
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/329/usersdata/297/91364/submittedfiles/dec2bin.py
f499b6f8e6c0b866d68629df150aa2c83d3d617b
[]
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
203
py
# -*- coding: utf-8 -*- while(true): p=int(input('digite um numero p: ')) q=int(input('digite um numero q: ')) if q>=p: break if str(p) in str(q): print('S') else : print('N')
91ed919fe4f82d66d4c1e181233dc01892ee1182
420376c5a1fbf8a4572545a9c891a0f8f204ed5b
/scrapy_amazon/items.py
d2aeed20eb2ea2833ebfb79da6fce00b903d6891
[]
no_license
kishoresurana/scrapy_amazon
946fb8fe198736ba4233a2f3727ca1a1873ae937
bbb72cdb5f468d5c8b605d273bb5c93b9a2b249a
refs/heads/master
2020-12-25T21:55:35.192394
2014-07-27T20:09:24
2014-07-27T20:09:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
451
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class ScrapyAmazonItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() price = scrapy.Field() conditi...
c4e8389d93f36f8805d8c3cdf58cabc747343f84
91fe8f479fa921fa84111d19222a5c6aa6eff030
/basis/execute-unit/aiohttp-and-asyncio-test.py
25312be5c6ecba564f33a7ed14ddc40b68021a95
[]
no_license
romanticair/python
2055c9cdaa46894c9788d5797643283786ed46dd
6f91fe5e7cbedcdf4b8f7baa7641fd615b4d6141
refs/heads/master
2022-11-03T17:17:17.608786
2019-07-05T07:07:29
2019-07-05T07:07:29
195,356,190
0
1
null
2022-10-14T20:51:14
2019-07-05T07:00:33
Python
UTF-8
Python
false
false
1,355
py
""" asyncio 可以实现单线程并发IO操作。如果仅用在客户端,发挥的威力不大。 如果把asyncio用在服务器端,例如Web服务器,由于HTTP连接就是IO操作, 因此可以用单线程+coroutine实现多用户的高并发支持 asyncio实现了TCP、UDP、SSL等协议,aiohttp则是基于asyncio实现的HTTP框架 aiohttp的初始化函数init()也是一个coroutine,loop.create_server()则利用asyncio创建TCP服务 编写一个HTTP服务器,分别处理以下URL 1. / - 首页返回b'<h1>Index</h1>'; 2. /hello/{name} - 根据URL参数...
6a42d49d7d83b0b0520c6e6d394d79b1e6c4fd48
b8302a17ad124b2432380c7274e4780ec5adfe55
/exercises/de/solution_04_03.py
e63f7c7a9d4320eaae8436a4c058573e32639ff4
[ "MIT", "CC-BY-NC-4.0" ]
permissive
FrankGrimm/spacy-course
10da4ebf976d93aec50aa1b200019b4217f4043e
5e09ef9d296dad2b0fd5ff1945f4cf9a55109906
refs/heads/master
2022-04-24T18:18:06.202131
2020-04-21T19:17:09
2020-04-21T19:17:09
257,692,388
1
0
MIT
2020-04-21T19:14:21
2020-04-21T19:14:20
null
UTF-8
Python
false
false
650
py
import json from spacy.matcher import Matcher from spacy.lang.de import German with open("exercises/de/iphone.json") as f: TEXTS = json.loads(f.read()) nlp = German() matcher = Matcher(nlp.vocab) # Zwei Tokens, deren kleingeschriebene Formen "iphone" und "x" sind pattern1 = [{"LOWER": "iphone"}, {"LOWER": "x"}] ...
e9056dcc8a8628a344e0ddf4e9add6e257ddabae
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_310/ch25_2019_03_01_00_00_25_791523.py
70bb03eaebe4809ffcc0bcea7e9b4073d6f8312b
[]
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
160
py
km=int(input(distancia): if km <=200: preco= km*0.5 print("{:.2f}".format(preco)) else: preco= km*0.45 print("{:.2f}".format(preco))
3cc7dc94fdb029bb70bc409a3dc8ffef0368bf06
2cec0797981b73c497866a75fb6d33f4c3a4c06c
/brain_tumor_classification/modules/data/utils.py
e5cd18bf3458f2de6aa299ac09b545c77cfc04b4
[]
no_license
Vadbeg/brain_tumor_classification
ed44e50076627a0682e2eca13cf115716c510ed1
ba87b65717cd1fe75871f3108db1394de271c62d
refs/heads/master
2023-08-01T13:46:27.176780
2021-09-19T15:14:32
2021-09-19T15:14:32
397,667,617
1
0
null
null
null
null
UTF-8
Python
false
false
2,718
py
"""Module with utilities for dataset""" from pathlib import Path from typing import List, Optional, Tuple, Union import numpy as np from monai.transforms import ( AddChanneld, Compose, LoadImaged, Resized, ScaleIntensityRanged, Transform, ) from torch.utils.data import DataLoader, Dataset de...
e3f9b9ccd9704d797def23c50f582b8c877f8f37
9059d9cbad4188ed2980f551151b9678ffb68b44
/Chapter12_logging/12-3.logging_config_example.py
0262db2fa4267b523bc6fa234849422e7c5042d2
[]
no_license
mhee4321/python_basic
ad0e64fa21ecfab231a6627ba6abeea82d725690
86031975a9121efe5785e83f663255a7b4e4ba77
refs/heads/master
2023-02-11T20:31:54.353219
2021-01-07T05:44:31
2021-01-07T05:44:31
326,850,491
0
0
null
null
null
null
UTF-8
Python
false
false
750
py
import logging # 로깅 모듈 탑재 import logging.config # 로깅 설정 모듈 탑재 # 설정 파일 읽어 오기 logging.config.fileConfig('12-2.logging.conf') # 로거 생성 logger = logging.getLogger(__name__) # 로거 생성 # 로그 메시지 출력 logger.debug('이 메시지는 개발자만 이해해요.') # DEBUG 로그 출력 logger.info('생각대로 동작 하고 있어요....
8a4871b4d661ef4a0a122394b00d6b5f55566f2e
9d2bafb07baf657c447d09a6bc5a6e551ba1806d
/ros2_ws/build/std_msgs/rosidl_generator_py/std_msgs/msg/_multi_array_layout.py
e830a59dc03efc5d1893c4f8d32f97cabca4ecd6
[]
no_license
weidafan/ros2_dds
f65c4352899a72e1ade662b4106e822d80a99403
c0d9e6ff97cb7cc822fe25a62c0b1d56f7d12c59
refs/heads/master
2021-09-05T20:47:49.088161
2018-01-30T21:03:59
2018-01-30T21:03:59
119,592,597
1
0
null
null
null
null
UTF-8
Python
false
false
3,630
py
# generated from rosidl_generator_py/resource/_msg.py.em # generated code does not contain a copyright notice import logging import traceback class Metaclass(type): """Metaclass of message 'MultiArrayLayout'.""" _CONVERT_FROM_PY = None _CONVERT_TO_PY = None _DESTROY_ROS_MESSAGE = None _TYPE_SUPP...
4b32a00c650bafd26ad85ee0f76ed96d200dfce0
d99ac626d62c663704444a9cce7e7fc793a9e75e
/crypto_implementations/virgil-crypto-c/wrappers/python/virgil_crypto_lib/foundation/_c_bridge/_vscf_alg_info_der_serializer.py
222936908c80c90638db7d52f3cdf4d1a644e7ae
[ "LicenseRef-scancode-warranty-disclaimer", "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Experiment5X/CryptoFunctionDetection
3ab32d5573a249d24db1faf772721bc80b8d905d
dac700193e7e84963943593e36844b173211a8a1
refs/heads/master
2023-04-19T09:12:35.828268
2021-05-13T22:39:27
2021-05-13T22:39:27
355,299,557
1
0
null
null
null
null
UTF-8
Python
false
false
6,174
py
# Copyright (C) 2015-2020 Virgil Security, Inc. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # (1) Redistributions of source code must retain the above copyright # notice, this li...
519e6d1ad5bda54f6ed5b6ff5dc4202c57d10141
6f0d8416daeb787b13938d5fa49c3d2e08d15e02
/tests/test_cam.py
5a5dbc61b10d60caf62b858b4f880f2bed62d9ec
[ "MIT" ]
permissive
MartinHjelmare/matrixscreener
cbfc0ba95614c7dd6e152bb63a24b67ed03045ca
b6e93d9c96139cf5f2b8942d61681e45d7b6b4e5
refs/heads/master
2021-01-22T14:21:16.758654
2015-02-19T11:53:46
2015-02-19T11:53:46
57,959,734
0
0
null
2016-05-03T10:03:40
2016-05-03T10:03:40
null
UTF-8
Python
false
false
1,526
py
from matrixscreener.cam import * import pytest class EchoSocket: "Dummy echo socket for mocking." msg = '' def send(self, msg): self.msg = msg return len(msg) def recv(self, buffer_size): return self.msg[0:buffer_size] def connect(self, where): pass def setti...
20d215ab84216efee4da368d5a8ad6e24ed57fc4
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03679/s358798230.py
083bf4ccd4da704fe0bfff938691cf5dbc1ec004
[]
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
133
py
X, A, B = map(int, input().split()) if A >= B: print('delicious') elif A + X < B: print('dangerous') else: print('safe')
da878145baa16b59947043420038f917d29d43bd
e7b483d88f80703c89553e1b9e2f5dd0322f7e38
/sketch/util/http.py
e69fe5f151af3818aae7e26ffc6a7d32826a3f52
[ "BSD-2-Clause" ]
permissive
nikcub/Sketch
0f559ff9948bd355407257c25c261c1e0f237021
5d2d5f7e51c3eed374a8b12441dc8577b16c101e
refs/heads/master
2016-09-09T23:32:10.243530
2011-11-04T13:56:03
2011-11-04T13:56:03
2,592,091
1
0
null
null
null
null
UTF-8
Python
false
false
5,451
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim:ts=2:sw=2:expandtab # # Copyright (c) 2011, Nik Cubrilovic. All rights reserved. # # <[email protected]> <http://nikcub.appspot.com> # # Licensed under a BSD license. You may obtain a copy of the License at # # http://nikcub.appspot.com/bsd-license # """ Sketch...
2182531e49175062ac8b030e998b5c2c6ca3ae8d
cad91ae76d2746a6c28ddda0f33a58f9d461378f
/PyTorch/Recommendation/NCF/feature_spec.py
40d56a0e310d345e17261e9bbfbd4618f5acb691
[ "Apache-2.0" ]
permissive
NVIDIA/DeepLearningExamples
fe677521e7e2a16e3cb0b77e358f9aab72f8c11a
a5388a45f71a949639b35cc5b990bd130d2d8164
refs/heads/master
2023-08-31T20:57:08.798455
2023-08-23T10:09:12
2023-08-23T10:09:12
131,881,622
11,838
3,124
null
2023-08-28T16:57:33
2018-05-02T17:04:05
Jupyter Notebook
UTF-8
Python
false
false
1,943
py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
ac4cec9c23d857374e16c812fac948e0c272797e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03108/s870352488.py
0b87a41dcc411c3fbc8ae14366e08bef4bb0f7fc
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
1,652
py
import sys import collections readline = sys.stdin.readline class UnionFind(): def __init__(self, n): self.n = n self.parents = [-1]*n self.rank = [0]*n self.size = [1]*n def find(self, x): if self.parents[x] < 0: return x else: self.par...
9d31dd701cf90d929170893cddab05db06011ba7
c4544c22c0618451746795090e07c80bc85a0877
/file_upload/article/forms.py
fd00ffba0492b96c7d39b7f2448d488bfccf1d67
[]
no_license
RelaxedDong/Django_course
35f7027dc552ad148d2dc8679a19a1ffb12b8d14
2965089d15e4c80cd6402d362ee37f8cc675c08b
refs/heads/master
2022-01-09T14:28:40.503099
2019-05-24T07:07:03
2019-05-24T07:07:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
379
py
#encoding:utf-8 # __author__ = 'donghao' # __time__ = 2019/5/13 21:52 from django import forms from .models import Book from django.core import validators class BookForm(forms.ModelForm): cover_url = forms.FileField(validators=[validators.FileExtensionValidator(allowed_extensions=['jpg','jpeg'])]) class Meta: ...
bbb6268281ee09c15af62c26d0df2d1c6065e735
f9d5bc590bd6c6274d7a6efec0f60cac1d8286b2
/assets/coins/monero/moneroImportPrices.py
6a92df9ceca004c233c3ecc5ce2799c0931dad42
[]
no_license
pr0logas/grepblockBEpython
35c83c1bf2114fc9417bedff6cf2a6e2ad2e667e
bbeaa290d13d80f993d843c7f1dbbfd373eee332
refs/heads/master
2022-10-03T23:35:44.600740
2020-03-09T08:24:53
2020-03-09T08:24:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
782
py
#:: By GrepBlock.com developers // pr0logas #:: Modified date: 2019-11-30 #:: Description: This file is a workspace for Prices importation. import sys, time from time import gmtime, strftime from monero import * sys.path.append('../../../') from mongoDB import * from parsePrices import parseCoinGeckoPrices db = datab...
f6d2ffae909f5992e8ceea3bdc223d04acc73d4b
2c3da6e0bddf55d64d650040bbf286c47b31811a
/学习路线/1.python基础/day05/02-for-else语句.py
ec56422c4833eede814e9a25e0dca957f39f600e
[ "MIT" ]
permissive
Bngzifei/PythonNotes
76bd53db3033a9c51ab4bdd727842cd89607b584
01590e1b6c1bc0f04aa2d355fa2553c04cce27f2
refs/heads/master
2023-02-04T06:49:00.725463
2020-12-15T09:26:40
2020-12-15T09:26:40
155,154,662
1
2
MIT
2020-09-08T01:30:19
2018-10-29T05:02:48
Python
UTF-8
Python
false
false
670
py
list1 = ["zhansan", "lisi1", 'ww'] # for name in list1: # 运行2次,出现逻辑错误 # if name == 'lisi': # print('找到') # else: # print("没有找到") """当for执行完成后,默认for后面的else都会执行一次,如果不想让for后面的else执行,在for里面写个break""" for name in list1: # 批量查找数据 if ... in...(判断有没有,True或False) 判断有没有我要的那个并返回(因为后续要用这个返回的)用for(break) else (判断有没有我要的那个) ...
e5029b3854dbaef24fb6cce6c6025ff4d71cca34
e8e2f3cb21e3f3c289b890dcf3cde567bb92dc32
/venv/bin/chardetect
a471d60fdc696af75d4b511e1d3b9a0af3f271c1
[]
no_license
Timur597/Feliz
a0071b93a87eab015dd205e14cba88bcb5f34926
6f712ded791c84dee71f75934fb77d0ae101f5e6
refs/heads/master
2023-05-27T15:54:54.782528
2021-06-09T16:34:45
2021-06-09T16:34:45
373,058,036
0
1
null
2021-06-09T16:47:59
2021-06-02T06:07:12
Python
UTF-8
Python
false
false
262
#!/home/timur/PyCharmProjects/feeliz-master/venv/bin/python # -*- coding: utf-8 -*- import re import sys from chardet.cli.chardetect import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
b66f70766f6fe3c97d830918ab3d7c33e5f9c1d4
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/59/usersdata/161/49113/submittedfiles/testes.py
3ede0d9001c5c08b41881d224976a6c2ae167e4c
[]
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
113
py
n=int(input('numero:')) soma=0 for i in range(1,n+1,1): soma=4*(-1*i/(2*i+1) print('%.4f' %soma)
fea402ed06f40785cacbf954f34865f10e62de55
76dba08689db40edf2d01a98856fa2a20d98d679
/甲鱼python/课程代码/第11讲/第11讲课后作业.py
f38d6087bebb08ecebe94960c7ce4388591454c7
[]
no_license
pangfeiyo/PythonLearn
ce0747d75b53eb21acb6199acfe10934778420b2
b514b3d7baa62fa7b801d26ff49266f02cb9cbd2
refs/heads/master
2021-05-11T10:20:14.818774
2020-01-16T15:47:16
2020-01-16T15:47:16
118,096,858
0
0
null
null
null
null
UTF-8
Python
false
false
515
py
# 从列表末尾取出一个元素,并将这个元素插入列表最前边 member = ['一','甲鱼','玩笑'] member.insert(0,member.pop()) print(member) #python支持负数下标,列表最后一个元素为-1 list2 = [1,3,2,9,7,8] print(list2[-3:-1]) #切片和赋值的区别 #切片相当于复制 sy1 = [1,3,2,9,7,8] sy2 = sy1[:] #切片复制sy1的内容给sy2 sy3 = sy1 #sy1赋值给sy3 sy1.sort() #对sy1进行大小排序 print('sy1:',sy1) print('...
8edf7add9dd89a5a59c9d84008f56f0adbe83abc
b7b40fffd7d192b89a7ad3bdb791a7dbd072ac64
/axelrod/tests/test_memoryone.py
44167991b5bf6387399275371a16858e90bad540
[ "MIT" ]
permissive
DEFALT303/Axelrod
f91911ad7a404c30edfef38afd02319fcd12bc15
e59fc40ebb705afe05cea6f30e282d1e9c621259
refs/heads/master
2020-09-24T08:39:49.107919
2015-04-16T16:15:42
2015-04-16T16:15:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,640
py
"""Test for the memoryone strategies.""" import random import axelrod from test_player import TestPlayer class TestWinStayLostShift(TestPlayer): name = "Win-Stay Lose-Shift" player = axelrod.WinStayLoseShift def test_strategy(self): """Starts by cooperating""" P1 = self.player() ...
2ca40c9745cafec57f504ad00865b8a15eb016d0
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_15419.py
b16cd84c9dd57f33adebb10f84dbec1286edafa9
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
79
py
# Python comparing individual lists of lists elements if x[i][0] &gt; y[i][0]:
46a2e88f482b70548c82568f1d10bf2234d6b0e0
7bededcada9271d92f34da6dae7088f3faf61c02
/pypureclient/flasharray/FA_2_20/models/array.py
b454053102b55f917520181b04db56e7ba183f91
[ "BSD-2-Clause" ]
permissive
PureStorage-OpenConnect/py-pure-client
a5348c6a153f8c809d6e3cf734d95d6946c5f659
7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e
refs/heads/master
2023-09-04T10:59:03.009972
2023-08-25T07:40:41
2023-08-25T07:40:41
160,391,444
18
29
BSD-2-Clause
2023-09-08T09:08:30
2018-12-04T17:02:51
Python
UTF-8
Python
false
false
7,115
py
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.20 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ...
ec1a5719f569715605b75d20d9dea2e9ea1a20ef
eee741a9d6d55357fb597e0cc3379085f47c2c13
/processData.py
85071304b5d9fe473ea285664cbd0cd5dac57f28
[]
no_license
mbstacy/gdal_ok_mesonet_data_process
6505be783056eeade9664782035c284d76f29e1c
18fe989560d54cc0fff336462c26897778daeaef
refs/heads/master
2021-01-10T07:32:55.865328
2016-02-23T22:42:48
2016-02-23T22:42:48
52,396,676
0
0
null
null
null
null
UTF-8
Python
false
false
5,487
py
#!/usr/bin/env python ''' Created on Feb 2, 2016 @author: ledapsTwo ''' from osgeo import gdal,osr from os import path from csv import DictReader import shlex,sys import pandas as pd import numpy as np class raster: def __init__(self,inFile): gf = gdal.Open(inFile) self.raster = gf se...
044ef7733d33340e7cf093fa5b1b04a826c31548
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/adjectives/_summary.py
18d09be192ac1b4023f64ab173806411d3dcea87
[ "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
417
py
#calss header class _SUMMARY(): def __init__(self,): self.name = "SUMMARY" self.definitions = [u'done suddenly, without discussion or legal arrangements: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'adjectives' def run(self, obj1, obj2): self.js...
a0d550e2fdb493ba6c99d7490c06e07da09bcdde
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/typeshed/stubs/aws-xray-sdk/aws_xray_sdk/core/sampling/reservoir.pyi
322d1d38c3d821602e3e08cb5f590e0f85608dd7
[ "Apache-2.0", "MIT" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
337
pyi
from enum import Enum class Reservoir: def __init__(self) -> None: ... def borrow_or_take(self, now, can_borrow): ... def load_quota(self, quota, TTL, interval) -> None: ... @property def quota(self): ... @property def TTL(self): ... class ReservoirDecision(Enum): TAKE: str BORROW:...
60a71622737aa6e8a866253cebae37379422f533
7d84000f2977def7118b4c93a47b9d71c4ee38f8
/app/src/utils/log_streamer.py
ad37f010c1610fdbb84800feadcdb0afd9627020
[]
no_license
tensorci/core
d405d17099987163dfc589711345ce414ace406e
50d18bb43f73b1d5d47fefad543c2554e87a6520
refs/heads/master
2021-03-19T13:27:26.219591
2020-12-03T01:14:57
2020-12-03T01:14:57
110,917,313
0
0
null
2020-12-03T01:15:26
2017-11-16T03:20:09
Python
UTF-8
Python
false
false
3,800
py
import log_formatter from src import logger, dbi from pyredis import redis from src.helpers.definitions import tci_keep_alive # TODO: This file is disgusting -- make it less disgusting def should_complete_stream(data, deployment): # Check if last_entry was specified in the log. Complete the stream if so. complet...
ee13787901e1cb2cb22e3ad0a896df200708d570
1a166165ab8287d01cbb377a13efdb5eff5dfef0
/sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/aio/operations/_ddos_custom_policies_operations.py
374762f783c3c434a29e76a5bebf00abdd56790d
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
manoj0806/azure-sdk-for-python
7a14b202ff80f528abd068bf50334e91001a9686
aab999792db1132232b2f297c76800590a901142
refs/heads/master
2023-04-19T16:11:31.984930
2021-04-29T23:19:49
2021-04-29T23:19:49
363,025,016
1
0
MIT
2021-04-30T04:23:35
2021-04-30T04:23:35
null
UTF-8
Python
false
false
20,334
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 ...
a42658845c9f20032a391940e548d739fa593468
c8453f83242cd525a98606f665d9f5d9e84c6335
/lib/googlecloudsdk/third_party/apis/bigquery/v2/bigquery_v2_messages.py
c9af6411f99770bce94fba3d09d11478fa6e7675
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
paulfoley/GCP-Cloud_SDK
5188a04d8d80a2709fa3dba799802d57c7eb66a1
bec7106686e99257cb91a50f2c1b1a374a4fc66f
refs/heads/master
2021-06-02T09:49:48.309328
2017-07-02T18:26:47
2017-07-02T18:26:47
96,041,222
1
1
NOASSERTION
2020-07-26T22:40:49
2017-07-02T18:19:52
Python
UTF-8
Python
false
false
98,916
py
"""Generated message classes for bigquery version v2. A data platform for customers to create, manage, share and query data. """ # NOTE: This file is autogenerated and should not be edited by hand. from apitools.base.protorpclite import messages as _messages from apitools.base.py import encoding from apitools.base.py...
67d8405dae494c985db55a7991291fe6a81e390a
38c10c01007624cd2056884f25e0d6ab85442194
/third_party/chromite/cbuildbot/autotest_rpc_errors.py
1ee19f4a5238f93886962b5f9968b1f009275cf6
[ "BSD-3-Clause", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
zenoalbisser/chromium
6ecf37b6c030c84f1b26282bc4ef95769c62a9b2
e71f21b9b4b9b839f5093301974a45545dad2691
refs/heads/master
2022-12-25T14:23:18.568575
2016-07-14T21:49:52
2016-07-23T08:02:51
63,980,627
0
2
BSD-3-Clause
2022-12-12T12:43:41
2016-07-22T20:14:04
null
UTF-8
Python
false
false
670
py
# Copyright 2015 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Error codes used for the Autotest RPC Client, Proxy, and Server. This is a copy of scripts/slave-internal/autotest_rpc/autotest_rpc_errors.py from htt...
46b142b96d6ec205f215bf65fe76cf618722fad6
7236d1d4873faa9735fd5e2d4598b211a370f731
/project/n/projects/projects/ecommapp/users/migrations/0007_myuser_date_join.py
d2f2c4be22f4cc171f14f93f40710f105bb9009e
[]
no_license
Dreambigxz/my_first_django_app
05f5a5d330d72084489f9306fca9ca232af13999
9e21ebcbe63c7394280558d2977ef8a796960e0d
refs/heads/main
2023-01-03T18:45:20.712074
2020-10-23T09:05:47
2020-10-23T09:05:47
306,180,592
1
0
null
null
null
null
UTF-8
Python
false
false
453
py
# Generated by Django 3.0.8 on 2020-09-03 16:55 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('users', '0006_auto_20200903_1752'), ] operations = [ migrations.AddField( model_name=...
116d387dd717fabe096b4ea161ad403d2870e88a
33976fddb32feae0b6b5d38b0a8994490fc4b1db
/src/ar6/constants/gases.py
4df95e992cbd6ed95181fc2ed1bf4bafd19e54c8
[ "MIT" ]
permissive
chrisroadmap/ar6
e72e4bad8d1c1fa2751513dbecddb8508711859c
2f948c862dbc158182ba47b863395ec1a4aa7998
refs/heads/main
2023-04-16T22:57:02.280787
2022-09-27T13:31:38
2022-09-27T13:31:38
305,981,969
27
20
MIT
2022-09-27T13:31:38
2020-10-21T10:02:03
Jupyter Notebook
UTF-8
Python
false
false
6,315
py
""" Gas properties """ # Number of bromine atoms br_atoms = { 'CCl4': 0, 'CFC11': 0, 'CFC113': 0, 'CFC114': 0, 'CFC115': 0, 'CFC12': 0, 'CH2Cl2': 0, 'CH3Br': 1, 'CH3CCl3': 0, 'CH3Cl': 0, 'CHCl3': 0, 'HCFC141b': 0, 'HCFC142b': 0, 'HCFC22': 0, 'Halon1211': 1, ...
2592cd0cd2bea747a58634eb2386b2e46bdca291
a0015a3dc121c8fcdd5d2eadd522ece03b4ceec8
/docs/cornell CS class/Lesson 29. Coroutines/demos/read2.py
fe3ecc58b16f7d80b45c890599a931e740dcc82a
[ "MIT" ]
permissive
LizzieDeng/kalman_fliter_analysis
fc40d475797dbddba5f9f2dfb224fbf68d77865f
50e728f32c496c3fcbb8ca3ee00857b999b88d99
refs/heads/main
2023-03-03T02:46:19.020078
2021-02-05T07:53:10
2021-02-05T07:53:10
329,243,328
0
0
null
null
null
null
UTF-8
Python
false
false
5,137
py
""" A module to show off a long-running function as a coroutine. This module shows another advantage of a coroutine. We can interleave two functions as they load from a file. There are reasons we might want to do this when working with large data, but they are beyond the scope of this course. Author: Walker M. White ...
2cb33275754ec783f5f546a411cf0fe226a579eb
f7982a468b6f76dc72c53e7c3644ae4e7e6f2f49
/pyEX/refdata/ric.py
6e4ab19987f1f4ec33a268a2b177446c705a78b6
[ "Apache-2.0" ]
permissive
timkpaine/pyEX
55002c3718214c6e207976ab3661a47108c6c114
f678c791d05bc28911e25807241c392a9ee8134f
refs/heads/main
2023-08-20T00:17:53.162803
2022-11-22T02:51:13
2022-11-22T02:51:13
109,551,372
350
95
Apache-2.0
2023-09-11T12:26:54
2017-11-05T04:21:16
Python
UTF-8
Python
false
false
1,129
py
# ***************************************************************************** # # Copyright (c) 2021, the pyEX authors. # # This file is part of the pyEX library, distributed under the terms of # the Apache License 2.0. The full license can be found in the LICENSE file. # from functools import wraps import pandas a...
726083e657d4bfe7dfdd3ffc0d4860c40b2161b0
98d9305b1717642bcfb842eecd84d63b6eeaf759
/Funtions/Passing_Information.py
95f7621fc81d57dd2ebdb67a24a82da35ae5f6f4
[]
no_license
er-aditi/Learning-Python
5ceb020f4df8db9e34df78edfaecca3e1854c8a9
297eda435ee2e1cee643f94ea4c5de6a82e3c8a7
refs/heads/master
2020-03-24T17:22:22.129081
2019-06-19T05:47:26
2019-06-19T05:47:26
142,856,993
0
0
null
null
null
null
UTF-8
Python
false
false
106
py
def greet_user(username): print("Hello! " + username + ". ") greet_user('jess') greet_user('sarah')
0f7d8ae5196b70d080e081d05be8478206494a1d
82cd10c024f284555845f006e518924fed3254c7
/Day-06[09-10-2021]/EmployeeProject/EmployeeProject/urls.py
256d1ab7ebea77beebcb3a9ed2b40858b129c6a2
[]
no_license
AP-Skill-Development-Corporation/APSSDC-Workshop2021
61acba18eb55ec2e4bb96ded95d339c73c8ea1ac
fe1f5517f99b17bd0ebcf07c70ee26bd23f262ea
refs/heads/main
2023-08-12T16:29:53.208949
2021-10-16T15:47:22
2021-10-16T15:47:22
413,299,596
1
1
null
null
null
null
UTF-8
Python
false
false
1,549
py
"""EmployeeProject URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cla...
b53fb27016d732c08a7869d38d13162383b30b32
1e09bc56bf2904b349df1873e11da3d527437880
/lecture-27/AdjListGraph.py
8a03efffe1f2ce76c121133adbb645df489cf2d6
[]
no_license
codeforcauseorg-archive/DSA-Live-Python-Jun-0621
f3444f5671cb4985644c7432517477c3585c70fb
e4fe544178d7851c24755242390f39675b99fabe
refs/heads/main
2023-08-09T08:31:41.449120
2021-09-14T16:44:39
2021-09-14T16:44:39
384,725,085
4
2
null
null
null
null
UTF-8
Python
false
false
2,095
py
class Vertex: def __init__(self, value): self.value = value self.neighbours = {} class AdjListGraph: def __init__(self): self.vertices = dict() def add_vertex(self, value): if value not in self.vertices: self.vertices[value] = Vertex(value) def add_edge(se...
cd3d97d846876037d74f4ccc46eefb915c555830
823b69dffc4a6e28b9e4c27ec176f8ce54d2e586
/args/arg_parser.py
c2cea4c5d26614670271806fddc28b28fb6b4b19
[]
no_license
potlee/pbt
1f5af632aa100561da1c284b522a6ca181ea21c1
05160eca9f3a557a25d043502f90aca1a7b76b46
refs/heads/master
2020-03-25T23:48:47.867151
2018-06-23T19:40:16
2018-06-23T19:40:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,599
py
import argparse import util class ArgParser(object): def __init__(self): self.parser = argparse.ArgumentParser(description='Population-Based Training') self.parser.add_argument('--gpu_ids', type=str, default='0', help='Comma-separated list of GPUs to use.') ...
1a5cc4dd4b02297aa61785f8fe17d28cdf7bae2c
99e494d9ca83ebafdbe6fbebc554ab229edcbacc
/.history/Day 1/Test/Answers/NegativeMarking_20210304211811.py
d220b7261e6beb16198606a036f3688522eaee56
[]
no_license
Datta2901/CCC
c0364caa1e4937bc7bce68e4847c8d599aef0f59
4debb2c1c70df693d0e5f68b5798bd9c7a7ef3dc
refs/heads/master
2023-04-19T10:05:12.372578
2021-04-23T12:50:08
2021-04-23T12:50:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
516
py
t = int(input()) for i in range(t): questions,requiredscore = map(int,input().split()) if questions * 4 < requiredscore: print(-1) continue attempt = (requiredscore/questions) + 3 accuracy = attempt / 7 print(format(accuracy*100,'.2f') # # Here Accuracy can be find by usin...
39764d8d79f6697d5e9b2cffeb3f3e9487f9ea0a
2eee2da886d2574f030b22771e707e32f56cbaed
/chaospy/distributions/collection/chi.py
cb04231c2d16b7f21de4aa90574562d6e927b4fc
[ "MIT" ]
permissive
lblonk/chaospy
1759f050229d1365802320d9b13f6195ec55a72c
1759a4307c6134b74ce63ff44973195f1e185f94
refs/heads/master
2022-11-12T19:50:15.108219
2020-07-03T11:13:42
2020-07-03T11:13:42
276,879,282
0
0
MIT
2020-07-03T11:03:14
2020-07-03T11:03:13
null
UTF-8
Python
false
false
3,779
py
"""Chi distribution.""" import numpy from scipy import special from ..baseclass import Dist from ..operators.addition import Add class chi(Dist): """Chi distribution.""" def __init__(self, df=1): Dist.__init__(self, df=df) def _pdf(self, x, df): return x**(df-1.)*numpy.exp(-x*x*0.5)/(2....
c0593805d9fcc7d217660376fbb2688f706642e2
0798277f2706998ab80442ac931579eb47f676e5
/boundary/property_handler.py
45635669e8b5a3731f321b2d7a0d6eb87f6a6557
[ "Apache-2.0" ]
permissive
isabella232/pulse-api-cli
49ed38b0694ab289802f69ee6df4911cf3378e3f
b01ca65b442eed19faac309c9d62bbc3cb2c098f
refs/heads/master
2023-03-18T00:23:15.295727
2016-05-13T15:44:08
2016-05-13T15:44:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,244
py
# # Copyright 2016 BMC Software, 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 at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
87339e4385a890dc9a46c6e5efc4674cb85aefa2
4073f351551c2f73c5659cb3038a68360cc5b369
/Arbetsbok/kap 14/övn 14.1, sid. 36 - söka tal.py
9b318176e080635b41a000e7aeb4734430c42602
[ "MIT" ]
permissive
Pharou/programmering1python
b9a5aca72354d3e7e91a5023a621d22a962ecd7c
9b689027db1f7fbf06925f3094fcb126880453e4
refs/heads/master
2022-11-28T06:33:17.295157
2020-07-25T11:02:07
2020-07-25T11:02:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,437
py
#!/usr/bin/python3.8 # Filnamn: övn 14.1, sid. 36 - söka tal.py # Sökning # Programmeringsövningar till kapitel 14 # Programmet slumpar först fram 20 tal mellan 1 och 100 och lagrar alla talen i # en lista och sedan skrivs listan ut på skärmen. Därefter frågar programmet # användaren efter ett tal som ska eftersök...
4ad42cd6418d521ed2f275b7b73aaa4e7036fbea
964b063c2461aad267ddd991fefaf7ab53b1ca94
/6-kyu/iq-test/python/solution.py
2221bc57375308dc79e1d3f085e299509f860057
[]
no_license
lucasbflopes/codewars-solutions
26c4e2cd1be19db50cc8c1d9fc117c51c82a2259
72ef2c02dde7bd0d5a691e04e3b2a383e892f84b
refs/heads/master
2022-03-14T01:26:41.816498
2019-11-23T17:17:19
2019-11-23T17:17:19
114,834,447
0
1
null
null
null
null
UTF-8
Python
false
false
193
py
def iq_test(numbers): arr = [i % 2 == 0 for i in [int(j) for j in numbers.split()]] if arr.count(True) > 1: return arr.index(False)+1 else: return arr.index(True)+1
5be34879011c0f4d0308e93c05824f2a437ec963
44b87d9faad99d542914c35410ba7d354d5ba9cd
/1/collection/list/divisible by 8 using compre.py
857a0b6ada0c2d9dc98bd9180ec1370a09173462
[]
no_license
append-knowledge/pythondjango
586292d1c7d0ddace3630f0d77ca53f442667e54
0e5dab580e8cc48e9940fb93a71bcd36e8e6a84e
refs/heads/master
2023-06-24T07:24:53.374998
2021-07-13T05:55:25
2021-07-13T05:55:25
385,247,677
0
0
null
null
null
null
UTF-8
Python
false
false
142
py
num=[i for i in range(1,1000) if i%8==0] print(num) print("length of num is",len(num)) # odd=[i for i in range(1000) if i%2!=0] # print(odd)
00f065d20644809c36a60a0fbfe0ad0aa3cd6ef9
4a0f2cc27cd39b8b8901ade728f3b1dc20c2a2ee
/controller/qt_classes/UbNewDocumentViewDelegate.py
096e2b7becda90dbfcb58540466702c64771dd6f
[]
no_license
teamlm2/lm2_mgis
2c016423983a31fcdf15e34508401acf48177f35
9144b1234b25665737986995bd1da7492871151c
refs/heads/master
2021-11-11T23:43:12.647749
2021-10-26T07:55:58
2021-10-26T07:55:58
155,568,182
0
1
null
null
null
null
UTF-8
Python
false
false
3,303
py
# coding=utf8 __author__ = 'B.Ankhbold' from PyQt4.QtCore import * from PyQt4.QtGui import * from sqlalchemy.exc import SQLAlchemyError from ...model import SettingsConstants from ...model.SetOfficialDocument import SetOfficialDocument from ...utils.FileUtils import FileUtils from ...utils.PluginUtils import PluginUtil...
116f6963b88edfdb0db9fda927ba4e4947b376fa
5ec7d0bad8a77c79843a2813f5effcb3a2b7e288
/lean/models/brokerages/cloud/tradier.py
fd5e10b9f48bced5ac4faae3e74d4fac7886ec50
[ "Apache-2.0" ]
permissive
xdpknx/lean-cli
aca9b9c9c4e156c9faefcfa8ccdfc20423b510a0
c1051bd3e8851ae96f6e84f608a7116b1689c9e9
refs/heads/master
2023-08-08T02:30:09.827647
2021-09-21T21:36:24
2021-09-21T21:36:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,163
py
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. # Lean CLI v1.0. Copyright 2021 QuantConnect Corporation. # # 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...
19f3c8b7d94aae6549e86646e36334cb826a906e
6e820756b82ffbe9837348937e53f1a0ce0e6cca
/Lib/site-packages/pandas_datareader/io/jsdmx.py
d602ca88beb058636aceaac714662ee2f457a6c4
[]
no_license
AndreasPatsimas/pms_papei
c2afd941de6ae234dd37784d746e794183ebb8d3
da10220ea468304c1066bed55b8f92ba9e5ada8a
refs/heads/master
2023-02-01T23:33:39.221747
2020-12-19T12:17:59
2020-12-19T12:17:59
321,115,913
0
0
null
null
null
null
UTF-8
Python
false
false
3,167
py
# pylint: disable-msg=E1101,W0613,W0603 from __future__ import unicode_literals from collections import OrderedDict import itertools import re import sys import numpy as np import pandas as pd from pandas_datareader.io.util import _read_content def read_jsdmx(path_or_buf): """ Convert a SDMX-JSON string t...
42242438bea8875d7471ea2ddf09291f67a15799
30a34b3503decf1b4516039df3106cd152631819
/4AL17IS050_T_K_HARSHITH_PRASAD/19_05_2020/2.py
90236ef15cb59e0d27deb74598351d1745cafda7
[]
no_license
alvas-education-foundation/ISE_3rd_Year_Coding_challenge
8ddb6c325bf6ab63e2f73d16573fa0b6e2484136
b4074cab4a47aad07ed0fa426eacccbfafdef7f8
refs/heads/master
2022-11-23T20:52:19.204693
2020-07-23T11:28:15
2020-07-23T11:28:15
265,195,514
4
1
null
null
null
null
UTF-8
Python
false
false
196
py
# This program adds two numbers num1 = 1.5 num2 = 6.3 # Add two numbers sum = float(num1) + float(num2) # Display the sum print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))
190c0b7174e3ee074dcee7447dd6149444d96d20
9030481ef925278a174cbbf58c74bc5058e8d302
/contrib/testgen/base58.py
0b6e6e1ae339c3c25f894b09b621c4777509d655
[ "MIT" ]
permissive
hideoussquid/aureus-13-gui
1b8f85f262cbc1970c3d8072b064956073bc4182
8865c958ba1680d4615128dabcc3cc4d47a24c51
refs/heads/master
2021-01-19T08:22:45.795165
2017-04-26T07:34:19
2017-04-26T07:34:19
87,622,430
0
0
null
null
null
null
UTF-8
Python
false
false
2,999
py
# Copyright (c) 2012 The Aureus Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Aureus base58 encoding and decoding. Based on https://aureustalk.org/index.php?topic=1026.0 (public domain) ''' import hashlib # ...
58bb40f95b996bb5aaf4c9706c5271c0c5978cc2
25d8bac5635ac1cc3577a3593a4512e042ea7ecd
/scripts/asyncore-example-2.py
27a4738c22e98525faf3534d4f880e283ad582e0
[]
no_license
mtslong/demo
2333fa571d6d9def7bdffc90f7bcb623b15e6e4b
a78b74e0eea7f84df489f5c70969b9b4797a4873
refs/heads/master
2020-05-18T18:28:48.237100
2013-11-11T16:10:11
2013-11-11T16:10:11
4,136,487
0
0
null
null
null
null
UTF-8
Python
false
false
885
py
import asyncore import socket, time # reference time TIME1970 = 2208988800L class TimeChannel(asyncore.dispatcher): def handle_write(self): t = int(time.time()) + TIME1970 t = chr(t>>24&255) + chr(t>>16&255) + chr(t>>8&255) + chr(t&255) self.send(t) self.close() class TimeServer(...
deece369baf689aed3e350790563652c99e1df4c
ca0d710ed0469beb7f87ae53f5efdef7bac19a27
/MainView/migrations/0001_initial.py
c421c7915ab1a3ced242749c9b05288a7231a3c2
[ "MIT" ]
permissive
CiganOliviu/wedding_invitation
5d441d786f742d6a4baf5ff418370c0cfbb1b81e
8b243b287b6577b4f5f899e33ade1fec651152f0
refs/heads/main
2023-03-03T08:12:36.345173
2021-02-08T15:37:04
2021-02-08T15:37:04
333,568,503
0
0
MIT
2021-02-08T15:37:05
2021-01-27T21:43:34
null
UTF-8
Python
false
false
646
py
# Generated by Django 3.0.8 on 2020-08-10 08:01 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='ConfirmAnswer', fields=[ ('id', models.Auto...
86a20d0a802a3b77e91c16b62fb4c5702450b991
dc69872f21492d34d7da6eee9f0d03f7c09a8a8d
/libraries/edge/opensearch/granuleisoresponse.py
fd3ed16eb03bd91778c8ff34354a963de13a58c8
[ "Apache-2.0" ]
permissive
isabella232/incubator-sdap-edge
125e9ba8cb1738d8407222f9d21f5452fc5fa840
c725dad1098096048faed9a42a56f3cfc5c25bc5
refs/heads/master
2022-03-19T18:49:03.752184
2019-12-02T23:40:12
2019-12-02T23:40:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,127
py
import datetime from edge.opensearch.isoresponsebysolr import IsoResponseBySolr class GranuleIsoResponse(IsoResponseBySolr): def __init__(self, linkToGranule): super(GranuleIsoResponse, self).__init__() self.linkToGranule = linkToGranule.split(',') def _populateChannel(self, solrResponse): ...
22cce56ad1cf624ac9db09d203ea57c2bd8a72fe
e34d4bf879910b8f41068c1efb90915897e53d53
/sprint/SquaresOfSortedArray.py
a58ff6bd16baa33b009ff18fbabf44af40766e9e
[]
no_license
ZhouningMan/LeetCodePython
6cfc30f0b76f6162502410fef5639fde4801bd74
cad9585c440efb329c9321648f94c58ded198438
refs/heads/master
2020-12-10T03:53:48.824344
2020-01-13T02:29:02
2020-01-13T02:29:02
233,494,907
0
0
null
null
null
null
UTF-8
Python
false
false
618
py
class Solution: def sortedSquares(self, A): size = len(A) squares = [0] * size for i in range(size): squares[i] = A[i] * A[i] copy = [0] * size begin = 0 end = size - 1 i = size - 1 while begin <= end: if squares[begin] > square...
81286eab7404c79ae264329c873fd324031b3ce5
b7054c7dc39eeb79aa4aecb77a8de222400b19a7
/object.py
deee2a4715df5ac355f73bac61921bfff028351c
[]
no_license
csuxh/python_fullstack
89027133c7f9585931455a6a85a24faf41792379
f78571976b3bef104309e95304892fdb89739d9e
refs/heads/master
2023-05-11T09:36:40.482788
2019-06-12T14:21:26
2019-06-12T14:21:26
145,090,531
0
0
null
null
null
null
UTF-8
Python
false
false
988
py
#!/usr/bin/env python #!-*-coding:utf-8 -*- #!@Auther : jack.xia #!@Time : 2018/5/29 21:56 #!@File : object.py class Stuf(object): count = 0 __slots__ = ('name', 'id', 'position') def __init__(self, name, id, position): self.__name = name self.__id = id self.__position = position...
08f4aced36fe56bcec48deaa99f0e5ad628d5792
b978cf7f47c5cd6295f3c0c104752d3e1e9d89d6
/test.py
f88b6b9a5b2b21a543c221161f595e2588fd53b5
[]
no_license
sepidmnorozy/backup-crawler
1e4cd62d5a48b6e3bf974f89d1d513765e5d9c5b
73beddd2febd0dec3a0d1f5706557de073035a06
refs/heads/master
2022-11-18T19:56:43.507394
2020-07-22T13:11:53
2020-07-22T13:11:53
281,674,079
0
0
null
null
null
null
UTF-8
Python
false
false
455
py
from pymongo import MongoClient from rss import rss_reader import json if rss_reader('https://www.khabaronline.ir/rss') == 'Success': with open("links.json", 'r') as f: urls = json.load(f) else: urls = [] client = MongoClient() db = client['newsdb_week'] articles = db.weekarticles start_urls = [] for...
e286247caef6608e64d3f83668b0e57d5c35c469
07e6fc323f657d1fbfc24f861a278ab57338b80a
/python/test_chem_reaction.py
a45fb01f6793461a249921c48059b569c7d781b2
[ "MIT" ]
permissive
ProkopHapala/SimpleSimulationEngine
99cf2532501698ee8a03b2e40d1e4bedd9a12609
47543f24f106419697e82771289172d7773c7810
refs/heads/master
2022-09-05T01:02:42.820199
2022-08-28T10:22:41
2022-08-28T10:22:41
40,007,027
35
4
null
null
null
null
UTF-8
Python
false
false
462
py
#!/usr/bin/python import re import numpy as np import sys from pySimE import chemistry as ch #print ch.str2composition( sys.argv[1] ) #sides = ch.parseReaction( 'Fe+O2=Fe2O3' ) #sides = ch.parseReaction( 'C12H22O11+KNO3=H2O+CO2+K2CO3+N2' ) #print sides #print ch.reaction2string( sides ) #print ch.balanceReactionStr...
fb4d6144389ec8eb93a016186bb5908c2683cdc8
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_clattering.py
3893e7f6289447dca25d947171005c4f61ce3729
[ "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
230
py
#calss header class _CLATTERING(): def __init__(self,): self.name = "CLATTERING" self.definitions = clatter self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['clatter']
a0c529fe9ac1114d4ea620a3a09ab644868c12c2
7c59bbd4ff413a95dc9d25fbfccd11c6db60202a
/python_stack/full_stack_django/test_orm/apps/test_orm_app/migrations/0001_initial.py
ff84e3ca46db76c12c5baaeb018a42283bcbe193
[]
no_license
soikatesc/DojoAssignments
9a185a1164e42a985aea5e49d0ee270fd476d42a
c5c84bc9bd4aedd0fe6aa26bf75793e284edb248
refs/heads/master
2021-01-23T04:34:19.617679
2017-05-16T03:52:58
2017-05-16T03:52:58
86,211,544
0
0
null
null
null
null
UTF-8
Python
false
false
1,310
py
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-04-19 00:12 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Create...
b6cd32dd7c58e44b484925d0981c527b8eb6d61f
ddd09683d9cbd681db5dae4e2d036d28bd4d24c1
/PA3/BAL3.py
f82978400cd729be26ca286631abcea6caa2356a
[]
no_license
nivedn3/DL4CV-EE6132-
41f9cd877a4c43db0a2f511a57df8b624fbc0a07
2cd97c7d2170a8e4fe36b6ccc8443c009e3d003a
refs/heads/master
2021-01-20T05:41:37.019460
2017-11-22T10:17:16
2017-11-22T10:17:16
101,465,640
2
2
null
null
null
null
UTF-8
Python
false
false
4,240
py
import tensorflow as tf import numpy as np sess = tf.InteractiveSession() def data(number,size): a = [] b = [] out = [] for i in range(number): a_in = np.random.choice([0,1],size) a_in = a_in.tolist() #a_in = [1,0,0,0,0] b_in = np.random.choice([0,1],size) b_in = b_in.tolist() #b_in = [1,0,0,0,0] a...
f0921f29f3f682945a8f671213dc391d565db088
9d41570295cc05b66fd52584a90fe87f29155943
/src/crawler/delay.py
649fb6282c26a77936487a5bcd18eeda56ff6aa7
[ "MIT" ]
permissive
diegojromerolopez/relwrac
ed56feeb2a5e455e0fa58f6bc130445e5a0831bd
23ee278ab4019b98269419c53feed2194f079c25
refs/heads/master
2022-12-11T08:06:19.888698
2019-11-16T12:35:34
2019-11-16T12:35:34
219,372,323
0
0
MIT
2022-12-08T06:49:05
2019-11-03T22:09:35
Python
UTF-8
Python
false
false
294
py
import random class Delay(object): @classmethod def none(cls): return None @classmethod def uniform(cls, lower_bound: float, upper_bound: float): def uniform_delay_(): return random.uniform(lower_bound, upper_bound) return uniform_delay_
5f1c2a99593a7553184a6e88dacd5cfddfa94dc2
11286e7989264134a8a8d610e0f609e6fbff9140
/ch06/ch06_6.py
611bb36abeda2b0457a21b95c8675ec3d9cc42ed
[]
no_license
p2c2e/machine_learning_with_python_cookbook
04eeed2e00e0a3e9c0681d4b2f4125aa85485a1d
b176323a02f5b5722e312a579ad764a0276ec9c6
refs/heads/main
2023-01-30T06:54:34.138786
2020-12-13T05:02:07
2020-12-13T05:02:07
320,987,171
0
0
null
null
null
null
UTF-8
Python
false
false
472
py
# Load libraries import unicodedata import sys # Create text text_data = ['Hi!!!! I. Love. This. Song....', '10000% Agree!!!! #LoveIT', 'Right?!?!'] # Create a dictionary of punctuation characters punctuation = dict.fromkeys(i for i in range(sys.maxunicode) if uni...
2b59d2bc871b13882aa71629e364e5ee5cde3a00
186736f265fa7954e95198955546305ab1b9b981
/notesApi/settings.py
d3fd465d97e808c8f69bde9fd61320c402413ffb
[]
no_license
nova-sangeeth/notes-api
6449669870dfb69a72e1aad71c8859ca9de8bfbb
d5d15a4df615b0b276ccf8f49efc9e21eb177b65
refs/heads/master
2022-12-22T11:38:03.065884
2020-09-23T19:58:14
2020-09-23T19:58:14
298,022,798
0
0
null
null
null
null
UTF-8
Python
false
false
3,607
py
""" Django settings for notesApi project. Generated by 'django-admin startproject' using Django 3.1.1. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathli...
4c92871a9b092599b369eba37b5e69ca438f451d
3f7240da3dc81205a0a3bf3428ee4e7ae74fb3a2
/src/Week4/Practice/Trace1.py
6db80027484d73a47f843382e033603034f1470c
[]
no_license
theguyoverthere/CMU15-112-Spring17
b4ab8e29c31410b4c68d7b2c696a76b9d85ab4d8
b8287092b14e82d2a3aeac6c27bffbc95382eb34
refs/heads/master
2021-04-27T08:52:45.237631
2018-10-02T15:38:18
2018-10-02T15:38:18
107,882,442
0
0
null
null
null
null
UTF-8
Python
false
false
267
py
def onesDigit(n): return n%10 def ct1(L): for i in range(len(L)): L[i] += sum(L) + max(L) # The function onesDigit is called on each element before # making comparison. return sorted(L, key=onesDigit) a = [2,1,0] print(ct1(a)) print(a)
ddb617b3840deff9580b1979fa5f9a1accfb1906
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/python/you-get/2016/8/common.py
a5a0fbab63c9d5e6a52916b9ad5356b87ef836b7
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Python
false
false
46,179
py
#!/usr/bin/env python SITES = { '163' : 'netease', '56' : 'w56', 'acfun' : 'acfun', 'archive' : 'archive', 'baidu' : 'baidu', 'bandcamp' : 'bandcamp', 'baomihua' : 'baomihua', 'bigthink' : 'bigthink', ...
67c8f6e68f42cf14fa5dda19c602fbd7976c47fc
b61efe2686feb44c5b0d2fb3094dd2ea94e6ca93
/src/control_decision_4.py
be6dc49f088a3f399c8bf5df9b0a6c7de0b509ca
[]
no_license
idrissahil/bat_wifi_exploration
888f0f7243cc4bedeba6fe8d702762e6e2ad5da9
5a1bc74c1b35360d21d01e5e2a721b38fb380ac8
refs/heads/master
2020-05-31T16:38:49.118742
2019-06-29T14:03:28
2019-06-29T14:03:28
190,386,321
1
0
null
null
null
null
UTF-8
Python
false
false
2,239
py
#! /usr/bin/env python import rospy import math from sensor_msgs.msg import BatteryState from geometry_msgs.msg import Twist, PoseArray, Pose, PoseStamped rospy.init_node('control_decision_drone') control_decision_pub = rospy.Publisher('/mavros/setpoint_position/local', PoseStamped, queue_size=1) state=1 curr_pos =...
c2137568a2e94f717e43fd034e129651b46804a3
a838d4bed14d5df5314000b41f8318c4ebe0974e
/sdk/streamanalytics/azure-mgmt-streamanalytics/azure/mgmt/streamanalytics/operations/_inputs_operations.py
890d33f1b8b1901067d5182d5396b9ae6a0bfef4
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
scbedd/azure-sdk-for-python
ee7cbd6a8725ddd4a6edfde5f40a2a589808daea
cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a
refs/heads/master
2023-09-01T08:38:56.188954
2021-06-17T22:52:28
2021-06-17T22:52:28
159,568,218
2
0
MIT
2019-08-11T21:16:01
2018-11-28T21:34:49
Python
UTF-8
Python
false
false
28,587
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 ...
59944bb8fa971396a0f7e49931ba6f9bf8ed1091
4b29c3e3c8a2cad5071a3fb2ea674253c6f0ef21
/pycharm/digiin/case/TestLogin.py
70e3880684b38a0a5d5a1bb7b50cd59768931663
[]
no_license
yz9527-1/1YZ
a0303b00fd1c7f782b7e4219c52f9589dd3b27b7
5f843531d413202f4f4e48ed0c3d510db21f4396
refs/heads/master
2022-11-30T23:50:56.682852
2020-08-10T02:11:13
2020-08-10T02:11:13
286,354,211
0
0
null
null
null
null
UTF-8
Python
false
false
3,586
py
#coding=utf-8 import ddt,data from common.ExcelUtil import ExcelUtil import time import unittest from selenium import webdriver def self(args): pass class Case(object): def __init__(self): pass def get_case(self): """ 获取数据 得到有用的数据,并且使数据以邮箱地址、密码、预期结果定位、预期结果的顺序返回 ...
2d24c2b1849fbb578426985672e634ca4e13e282
ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3
/python/baiduads-sdk-auto/baiduads/keyword/api/__init__.py
d86d7640ef2ab230105e5b576757bc5d81a011fe
[ "Apache-2.0" ]
permissive
baidu/baiduads-sdk
24c36b5cf3da9362ec5c8ecd417ff280421198ff
176363de5e8a4e98aaca039e4300703c3964c1c7
refs/heads/main
2023-06-08T15:40:24.787863
2023-05-20T03:40:51
2023-05-20T03:40:51
446,718,177
16
11
Apache-2.0
2023-06-02T05:19:40
2022-01-11T07:23:17
Python
UTF-8
Python
false
false
151
py
from __future__ import absolute_import # flake8: noqa # import apis into api package from baiduads.keyword.api.keyword_service import KeywordService
6bb7357e4c3c78a71da4398592fc78ff38a7ab5c
53fab060fa262e5d5026e0807d93c75fb81e67b9
/gaussiana/ch3_2020_09_14_14_36_41_642784.py
986bff292e3d397ff9a597fd31a1ee3912e49175
[]
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
160
py
import math def calcula_gaussiana (x,mu,sigma) : f1 = 1/(sigma*math.sqrt(2*math.pi)) f2 = math.exp((-0.5*((x-mu)/(sigma)**2)) y = f1*f2 return y
91b306ecb2af69f0d6d781d57251266678f159f2
f8d3f814067415485bb439d7fe92dc2bbe22a048
/models/research/syntaxnet/dragnn/python/file_diff_test.py
9e9f1daa40a64ff9595724e30dbc95591ae299c2
[ "Apache-2.0" ]
permissive
gmonkman/python
2f9ab8f159c01f6235c86cb0cd52062cd3fdedd3
9123aa6baf538b662143b9098d963d55165e8409
refs/heads/master
2023-04-09T15:53:29.746676
2022-11-26T20:35:21
2022-11-26T20:35:21
60,254,898
0
2
null
2023-03-24T22:58:39
2016-06-02T10:25:27
Python
UTF-8
Python
false
false
1,631
py
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
22e70becf6b691016982f2b828b13d8eeaf45564
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02571/s663642129.py
60a84cc30f58c36b037db16bb95f49473b02d187
[]
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
314
py
def main(): s = input() t = input() min = int(1e9) for i in range(len(s)-len(t)+1): cnt = 0 for j in range(len(t)): if s[i+j] != t[j]: cnt += 1 if min > cnt: min = cnt print(min) if __name__ == "__main__": main()
200e9917ea1a71489173315c12ac6c736aac3a7c
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/PyBox/pybox2d/library/Box2D/examples/chain.py
c1f19e55dbac3e2fa63532f8b24c48d5d1e22b19
[]
no_license
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:e79af0d06dbe1710b8ba767355096adc26f63f6435e754284e2a3caa01b35291 size 2366
cf37aac9d227dfbd4c7430df7abe6facb7d78387
9bb01fa882e713aa59345051fec07f4e3d3478b0
/tests/cysparse_/sparse/memory/test_copy_CSCSparseMatrix_INT32_t_COMPLEX64_t.py
647b1079524c4d905c0e53d370b23d6cd9d3eca0
[]
no_license
syarra/cysparse
f1169c496b54d61761fdecbde716328fd0fb131b
7654f7267ab139d0564d3aa3b21c75b364bcfe72
refs/heads/master
2020-05-25T16:15:38.160443
2017-03-14T21:17:39
2017-03-14T21:17:39
84,944,993
0
0
null
2017-03-14T12:11:48
2017-03-14T12:11:48
null
UTF-8
Python
false
false
4,646
py
#!/usr/bin/env python """ This file tests ``copy()`` for all sparse-likes objects. """ import unittest from cysparse.sparse.ll_mat import * from cysparse.common_types.cysparse_types import * ######################################################################################################################## # Te...
1bb7b97ff0d7ed871f4280d115fe7d2651c8300f
e2334e514d9a0321fc834d6398519fa86dc1ba93
/cira_ml_short_course/utils/upconvnet.py
2c80a660190e61d2e1945a456101ea1ecc85d46e
[ "MIT" ]
permissive
ChanJeunlam/cira_ml_short_course
4fc99da5a6e051a51fe7fdc307df17eeb06516eb
23741f7ebba9dde8e4f5985ed43bed50b4f99cc3
refs/heads/master
2023-04-30T20:33:37.974674
2021-05-10T17:14:36
2021-05-10T17:14:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,151
py
"""Helper methods for upconvnets (upconvolutional networks).""" import copy import numpy import keras.models from cira_ml_short_course.utils import cnn, utils, image_utils, \ image_normalization KERNEL_INITIALIZER_NAME = cnn.KERNEL_INITIALIZER_NAME BIAS_INITIALIZER_NAME = cnn.BIAS_INITIALIZER_NAME PLATEAU_PATIEN...
4e554d1fb9a88ed2d04b9397feb311493507f223
289da5146b8991942ba22eefe948289ee024d3ff
/sheng/tutorial/L3函数/8 global.py
380ea400f5deb82c17c96c689facbc7d471efff3
[]
no_license
a1424186319/tutorial
263585961ab40e7a9a55405263d80057a88298d4
909bfc9f850118af7892a7ba4b0f7e3d0798db8a
refs/heads/master
2022-12-09T01:05:36.063099
2019-02-18T12:12:52
2019-02-18T12:12:52
166,967,437
0
0
null
2021-06-01T23:20:20
2019-01-22T09:38:51
Python
UTF-8
Python
false
false
500
py
# #(老写法 a是全局变量) 从1 加到 100的和 # a = 0 # for i in range(1,101): # a = a + i # print(a) ## global(全局) 显示声明变量为全局变量 # total = 0 # def add1(n): # global total # total = total + 1 # add1() # add1() # add1() # print(total) ## nonlocal(局部的)https://www.cnblogs.com/saintdingspage/p/7788958.html def outer(): num ...
86dce18c7b5d76d01f32df22306412f7ca2feb73
d7d19d6918029de88bcf060cea23d5b4a1f7efb1
/xiab/apps/subjects/models.py
85c54cc05e21150cfe80e2ddb9d412d7c622452e
[]
no_license
petercollingridge/xiab
8abe2b2b7124eeb0cfa06d2f21ce858a4ffbd975
ae84d3d228f3fe9392d0fd894652e290b219b1d2
refs/heads/master
2020-03-26T04:25:28.163381
2019-09-29T16:20:25
2019-09-29T16:20:25
144,503,055
1
1
null
null
null
null
UTF-8
Python
false
false
535
py
from django.db import models from wagtail.core.models import Page from wagtail.core.fields import RichTextField from wagtail.admin.edit_handlers import FieldPanel class SubjectPage(Page): summary = RichTextField(blank=True) content_panels = Page.content_panels + [ FieldPanel('summary'), ] d...
3999cde4262817329bdd68fd5ae82079cf8e5078
1b382fa35424074f6e93d5efa26412057507ef7e
/brax/experimental/composer/composer.py
4a850f3ccb8b2b5020d9be7537077256b6e02021
[ "Apache-2.0" ]
permissive
LARS12llt/brax
91f2914f78480308930dc83435f076de8a55b470
8cf936d60a393f586daa145e8f378c7aa4bafce6
refs/heads/main
2023-07-27T22:49:59.609896
2021-09-17T11:16:49
2021-09-17T15:06:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,125
py
# Copyright 2021 The Brax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
8aa017b49485a93529f5842ebd6c1605b6019aba
e63c45db069ea20b41fb850c5940e6f99db94914
/TranskribusDU/tasks/TablePrototypes/DU_Table_Row.py
c69734cdcc09f2b14bb86df4a56c86e3b895773d
[ "BSD-3-Clause" ]
permissive
Transkribus/TranskribusDU
669607cc32af98efe7380831d15b087b3fc326c9
9f2fed81672dc222ca52ee4329eac3126b500d21
refs/heads/master
2021-12-29T10:14:49.153914
2021-12-22T10:53:10
2021-12-22T10:53:10
72,862,342
24
6
BSD-3-Clause
2019-07-22T08:49:02
2016-11-04T15:52:04
Python
UTF-8
Python
false
false
5,449
py
# -*- coding: utf-8 -*- """ *** Same as its parent apart that text baselines are reflected as a LineString (instead of its centroid) DU task for ABP Table: doing jointly row BIO and near horizontal cuts SIO block2line edges do not cross another block. The cut are based on baseli...
5fb152a03b97239720932a800dcb93ed2841278e
fd6fab64e64031b319b7dc88b66ad960d30fdfc7
/assignment02_ModelQueryProcess/run_assignment.py
12b99e32a4e8faed2c013945d46efacf258c313c
[]
no_license
mkadhirvel/DSC650
297fa63da3668f91d9ce17c6195522dc21d8b5f2
75556e3a11a3b5801cad7df124dcc19df219934d
refs/heads/master
2023-03-17T12:19:34.332707
2021-02-11T00:29:11
2021-02-11T00:29:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
268
py
""" Author: Alan Danque Date: 20201205 Class: DSC 650 Exercise: Week 2 Assignment - Run all assignments """ import os os.system('python ./kvdb.py') os.system('python ./documentdb.py') os.system('python ./objectdb.py') os.system('python ./rdbms.py')
1beeb283036f8942d827ce37f399f0e69c19519f
ad5f3ed89e0fed30fa3e2eff6a4baa12e8391504
/tensorflow/python/keras/applications/mobilenet.py
224e8c84496ef63c1a35e1597b4b253dc1747dab
[ "Apache-2.0" ]
permissive
DunyaELBASAN/Tensorflow-C-
aa5c66b32f7e5dcfc93092021afee1bf3c97e04b
7a435c0946bdd900e5c0df95cad64005c8ad22f9
refs/heads/master
2022-11-29T23:37:53.695820
2020-02-21T18:16:44
2020-02-21T18:21:51
242,206,767
1
0
Apache-2.0
2022-11-21T22:39:51
2020-02-21T18:38:41
C++
UTF-8
Python
false
false
19,201
py
# Copyright 2015 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...
a26ec63f56bad3f7991ace4eb345ea52f222d5e9
44032f82bcb767175cf86aeccee623eb6cfbd40e
/deploy/compose/gpu/__init__.py
2303c0b0cf1621e03ddbbda08853f070befb4247
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
veyselkoparal/DeepVideoAnalytics
3628d41f8e06547e177a7badd20b399bd7f9028a
013f7e1efcc11f9ed5762192a91589aa6b4df359
refs/heads/master
2020-03-16T04:22:46.603989
2018-05-07T06:55:47
2018-05-07T06:55:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,462
py
""" Code in this file assumes that it is being run via dvactl and git repo root as current directory """ CONFIG = { "deploy/gpu/docker-compose-2-gpus.yml": {"global_model_gpu_id": 0, "global_model_memory_fraction": 0.1, "worke...
7266db340ad3c001b2476e0d9677e9d1a795cf48
46a5df524f1d96baf94f6eb0f6222f2b856235f3
/src/data/image/sliced_grid.py
7612a11c9ffd5b6b038a1658df956563308349f9
[ "MIT" ]
permissive
PhilHarnish/forge
5dfbb0aa2afdb91e55d85187bd86fbeb9b6b2888
c544fb8b499e1e13793c94159f4c35bce187311e
refs/heads/master
2023-03-11T17:23:46.569359
2023-02-25T15:09:01
2023-02-25T15:09:01
1,818,598
2
0
MIT
2023-02-25T15:09:02
2011-05-29T19:36:53
Jupyter Notebook
UTF-8
Python
false
false
2,215
py
import math from typing import Iterable import cv2 import numpy as np from data.image import coloring, image, model from puzzle.constraints.image import sliced_grid_constraints from util.geometry import np2d class SlicedGrid(model.LineSpecification): _source: image.Image _constraints: sliced_grid_constraints.Sl...
f1979087cd1398a523b893f6bdb223fc4f3c142e
65585dce782bb50d92caa69be2431e094ac36a1f
/examples/recursive_dirtree_generator.py
50307af4a1c3021c3703469a8d1c6028f5d8ab66
[ "Apache-2.0" ]
permissive
vishalbelsare/treelib
6e52f594cecb69210332b7092abcf1456be14666
12d7efd50829a5a18edaab01911b1e546bff2ede
refs/heads/master
2023-08-31T07:38:06.461212
2022-04-13T15:07:52
2022-04-13T15:07:52
153,905,842
0
0
NOASSERTION
2023-03-27T15:17:00
2018-10-20T12:59:18
Python
UTF-8
Python
false
false
1,691
py
#!/usr/bin/env python """ Example of treelib usage to generate recursive tree of directories. It could be useful to implement Directory Tree data structure 2016 samuelsh """ import treelib import random import hashlib from string import digits, letters MAX_FILES_PER_DIR = 10 def get_random_string(length): ret...
4425e109b0efe53b2e51a04bcddab969c531489c
d27bf22683710ff090642c05c1df2d13b18c2509
/allauth/openid/admin.py
0967c5c39ae1d4e1a60416bffb65e3f68ea3ecd1
[ "MIT" ]
permissive
snswa/django-allauth
b8db554519111e5d022fb137d259e272db9998f4
0b58191f5d954d7f5a7c4e5bc8c33cf6fdf0c416
refs/heads/master
2021-01-18T10:29:31.434368
2010-10-21T18:24:56
2010-10-21T18:24:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
203
py
from django.contrib import admin from models import OpenIDAccount class OpenIDAccountAdmin(admin.ModelAdmin): raw_id_fields = ('user',) admin.site.register(OpenIDAccount, OpenIDAccountAdmin)
88199abd4462b61b8c1e468a0166393a1ea355c4
699cad5fee497cce94463decf1bf2b811e3fd244
/06프로그램의 흐름 제어하기/if.py
95d092e7f3d31f5adce1aa2a57ab88f03995c7b0
[]
no_license
Jeonghwan-Yoo/brain_python3
91974019a29013abe8c9f9ed132c48b404259e2f
a22e870515e760aaa497cbc99305977cf2f01a3d
refs/heads/master
2020-07-27T00:02:29.604848
2019-09-16T13:16:09
2019-09-16T13:16:09
208,802,993
0
0
null
null
null
null
UTF-8
Python
false
false
315
py
import sys #파이썬 프로그램을 종료하는 exit()을 사용하기 위해 print('수를 입력하세요 : ') a=int(input()) if a==0: print('0은 나눗셈에 이용할 수 없습니다.') #경고 메시지를 출력한 뒤 sys.exit(0) #프로그램을 종료시킵니다. print('3 /', a, '=', 3/a)
42e9fe3ab57bd3c1e296f665413fc82fba5070e3
21e6a09131ac76d734102c829260c3b8e3a0094b
/solutions/21_textfsm/task_21_4.py
9986cf1ad1531aef03cb29f28f968dc09e18cec7
[]
no_license
Egor-Ozhmegoff/Python-for-network-engineers
5fbe8f3a754263ab65c28093fed667684ae76ded
6b70f4f9df658698ea0d770a064ee0e12b4e4de2
refs/heads/master
2023-08-11T20:52:12.999495
2021-09-09T14:42:14
2021-09-09T14:42:14
306,354,285
1
0
null
null
null
null
UTF-8
Python
false
false
2,879
py
# -*- coding: utf-8 -*- """ Задание 21.4 Создать функцию send_and_parse_show_command. Параметры функции: * device_dict - словарь с параметрами подключения к одному устройству * command - команда, которую надо выполнить * templates_path - путь к каталогу с шаблонами TextFSM * index - имя индекс файла, значение по умол...
aba8fcd3ea58d7fe66b3bbe8099f8f60d5f4097d
b64fcb9da80d12c52bd24a7a1b046ed9952b0026
/client_sdk_python/providers/eth_tester/main.py
68fdf1d3a68dcfcbb67e83434e4836cccf5581b6
[ "MIT" ]
permissive
PlatONnetwork/client-sdk-python
e59f44a77690806c8763ed6db938ed8447d42417
94ad57bb34b5ee7bb314ac858071686382c55402
refs/heads/master
2022-07-09T08:49:07.312759
2021-12-24T08:15:46
2021-12-24T08:15:46
173,032,954
7
16
MIT
2022-08-31T02:19:42
2019-02-28T03:18:03
Python
UTF-8
Python
false
false
1,773
py
from client_sdk_python.providers import ( BaseProvider, ) from .middleware import ( default_transaction_fields_middleware, ethereum_tester_fixture_middleware, ethereum_tester_middleware, ) class EthereumTesterProvider(BaseProvider): middlewares = [ default_transaction_fields_middleware, ...
0915102cfa0343f989eef246184cd916f8cc46c4
4bdbec7ad33b31c392b9d1f88ddf84e4b9230467
/cross_origin_test/cross_origin_test/wsgi.py
5bf61a3cc71d9dc0d96e87531d460711a5070d70
[ "BSD-2-Clause", "MIT" ]
permissive
mohawkhq/django-cross-origin
4aa775b15612e505404a9eb6cfe24a568561d265
f73f5c9a49d4044c34e443153c071b6bb0acda31
refs/heads/master
2020-06-08T20:13:02.690261
2013-11-19T15:33:34
2013-11-19T15:33:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
""" WSGI config for cross_origin_test 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.6/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cross_origin_test.settings")...
1c07e950336bf700663363367fa33ecf43c0f407
0cb1ff9d0be4387e33f1003ab5cc72bab0345e7a
/wildcard/dashboards/settings/password/tests.py
3372ec782591fc679b4e3a892d89731e3b8335cc
[ "Apache-2.0" ]
permissive
kickstandproject/wildcard
65995fb0090c4cfcad34f8373cfc912199ecf5da
0ef2a15d8ac6b1d37db964d0baa7e40f9f771bc9
refs/heads/master
2020-05-17T00:41:09.908059
2015-01-27T20:25:33
2015-01-28T03:30:22
14,288,349
2
0
null
null
null
null
UTF-8
Python
false
false
3,365
py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2013 Centrin Data Systems Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LIC...
8c4de2642d9752e64cfff1c79de8129758f696fc
f5d0be87bad113cd3ec0dabc4db0683442c794bf
/alphastarmini/core/arch/spatial_encoder.py
96cbd701618415f6f2794855072f3791699f3169
[ "Apache-2.0" ]
permissive
ZHQ-air/mini-AlphaStar
8aa22242334bd397fa398f2b865d2fc20fb1cab6
6039fd105bd263ee1f7c3276fea7fe7b660e0701
refs/heads/main
2023-07-03T16:10:13.712321
2021-08-17T02:59:56
2021-08-17T02:59:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,731
py
#!/usr/bin/env python # -*- coding: utf-8 -*- " Spatial Encoder." import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from alphastarmini.core.arch.entity_encoder import EntityEncoder from alphastarmini.core.arch.entity_encoder import...
ba497dd3afdf87eae4b1e1d9fa84bbe788335f77
385ed58325dd0cc75bdb9fd3e61c5e005f7a4f28
/source/hall/src/hall/entity/hallfree.py
63e7e839d8986e8730bf43df1ef165e4c0acc70a
[]
no_license
csirui/hall37
17dfa4e4f1f8bf719d0c11ac7738fa4c14fd06db
5c4eb4b2bf57bbbee4731470c830d8d81915d603
refs/heads/master
2021-09-04T03:55:12.460035
2018-01-15T15:12:30
2018-01-15T15:12:30
117,560,615
0
3
null
null
null
null
UTF-8
Python
false
false
5,420
py
# -*- coding=utf-8 -*- from sre_compile import isstring from datetime import datetime import freetime.util.log as ftlog import poker.entity.events.tyeventbus as pkeventbus from hall.entity import hallconf, hallpopwnd, datachangenotify from hall.entity.hallconf import HALL_GAMEID from hall.entity.hallusercond import ...
2892ca34dda7c6bac350599fac9f051e71e64ce2
f0c6b43e325064511c4e2d7ce9c59e88a12d81d5
/Assignment/DataTypes/problem10.py
0565ed8531943f1e8764d0ac461c28ed26bea342
[]
no_license
kendraregmi/Assignment1
bda8402fa216bf54789c4d3b5092a5540d4ee68d
83a8365e508f5b83cee71fc14155b7838103b3ba
refs/heads/main
2023-03-26T17:42:54.255731
2021-03-08T07:29:04
2021-03-08T07:29:04
344,406,856
0
0
null
null
null
null
UTF-8
Python
false
false
245
py
# 10. Write a Python program to remove the characters which have odd index # values of a given string. my_string= "Kathmandu" result="" for i in range(len(my_string)): if i%2==0: result= result+my_string[i] print(result)
eb2c8258f0156a186c1b5525851bf8627d0ebad7
d7f43ee7b91c216b1740dead4cc348f3704d2f5a
/src/beginner_tutorials/scripts/add_two_ints_server.py~
ef69b404916f90b0f5cf43bc27b89200b6fda426
[]
no_license
capslockqq/catkin_ws
26f734cf45cb5fe15301f5448a6005f2b21073b5
a0989427e42988f36ae9e4d83ba7eb871a56b64e
refs/heads/master
2021-08-24T07:04:07.551220
2017-12-08T14:42:19
2017-12-08T14:42:19
113,569,359
0
0
null
null
null
null
UTF-8
Python
false
false
465
#!/usr/bin/env python from beginner_tutorials.srv import import rospy def handle_add_two_ints(req): print "Returning [%s + %s = %s]"%(req.a, req.b, (req.a + req.b)) return AddTwoIntsResponse(req.a + req.b) def add_two_ints_server(): rospy.init_node('add_two_ints_server') s = rospy.Service('add_two_i...
[ "ubuntu@ubuntu.(none)" ]
ubuntu@ubuntu.(none)
58d0a8905b5a6546432140bf05e9ab8f06dfb857
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/77/usersdata/216/42255/submittedfiles/exercicio24.py
f70202f0601ef08a2d7723413c6c64658abd3963
[]
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
177
py
# -*- coding: utf-8 -*- import math a=int(input('Digite um número:')) b=int(input('Digite um número:')) i=0 for i in range(1,a,1): if a%i==0 and b%i==0: print(i)
f82d1bfc18cf23dccc01d4ee011811e1f567837a
0092041336a420af59b73e2ab1bf6e7077b11f6e
/autoeq/constants.py
9e3aa99e634a4cadadc3b973ff61a777af07f613
[ "MIT" ]
permissive
jaakkopasanen/AutoEq
e10280a5413a406623ddbc8b87ddf7953ffd020c
ab5869c8f4996f8eea88abca50a41510263ed098
refs/heads/master
2023-08-22T22:43:51.969927
2023-08-09T11:13:24
2023-08-09T11:13:24
123,807,729
11,367
2,940
MIT
2023-08-11T08:23:26
2018-03-04T16:37:35
Python
UTF-8
Python
false
false
9,711
py
# -*- coding: utf-8 -* import os import math DEFAULT_F_MIN = 20.0 DEFAULT_F_MAX = 20000.0 DEFAULT_STEP = 1.01 DEFAULT_MAX_GAIN = 6.0 DEFAULT_TREBLE_F_LOWER = 6000.0 DEFAULT_TREBLE_F_UPPER = 8000.0 DEFAULT_TREBLE_MAX_GAIN = 6.0 DEFAULT_TREBLE_GAIN_K = 1.0 DEFAULT_SMOOTHING_WINDOW_SIZE = 1 / 12 DEFAULT_SMOOTHING_ITER...