blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
ed78e6a932f361509c7b2a9d7e57906f6d9a5d0f
b0485dc3e30dc0170391e131ec00ccb335768817
/_build.py
afeb10aaecab2d7aba8fdf9720bc4faddcca2854
[]
no_license
leisvip/djc_helper
8a54483780bcb6ec3a5316a869d5652cfad393f7
9e5982047ce6db05f09db3d81e7f4df6303f21d7
refs/heads/master
2023-06-25T07:06:13.307176
2021-07-19T02:09:09
2021-07-19T02:09:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,837
py
# 编译脚本 import argparse import os import shutil import subprocess from _init_venv_and_requirements import init_venv_and_requirements from log import logger, color from util import human_readable_size, show_head_line def build(disable_douban=False): # 初始化相关路径变量 venv_path = ".venv" pyinstaller_path = os.pat...
[ "fzls.zju@gmail.com" ]
fzls.zju@gmail.com
42e95b4be95d83bcba4b00923df10849d38dd895
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03393/s345995802.py
343e2097a0d4f2b25bd715fd2830e3222965ec14
[]
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
419
py
S = input() se = set() for s in S: se.add(s) if len(S) < 26: for i in range(26): s = chr(ord('a')+i) if not s in se: print(S+s) exit() else: while len(S) > 1: se.remove(S[-1]) S = S[:-1] for i in range(ord(S[-1]), ord('z')+1): s = c...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
2cc201cf266ff314089da1d203b0b3d0cc31fdfd
1b862f34c125ce200244dd79e4fda4b5b605ce2e
/.history/images_20210218000603.py
0a459524a8dabc3b90e7a0501798a67b7e4b69cb
[]
no_license
edwino26/CoreImages
26085a49cf1cb79442ae563a88354b2fdceace87
6bf6e68cac8ab36c87b1e6ea702bfe6882b0f40e
refs/heads/master
2023-06-22T12:53:37.344895
2021-07-21T04:31:44
2021-07-21T04:31:44
309,553,247
0
4
null
2021-04-29T23:23:15
2020-11-03T02:45:07
Lasso
UTF-8
Python
false
false
2,563
py
import os clear = lambda : os.system('cls') # # %% import glob import cv2 import os.path import numpy as np import matplotlib.pyplot as plt # %% cores_per_image = 6 uvFiles = glob.glob('./Photos/*.jpg') print(uvFiles) # Picture path img = cv2.imread(uvFiles[0].replace('./Photos/','')) print(img) a = [] b = [...
[ "ortega.edwin.y@gmail.com" ]
ortega.edwin.y@gmail.com
7aaf30d580238668767fc362313bb0f9006f72eb
a838d4bed14d5df5314000b41f8318c4ebe0974e
/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_configuration.py
b419fc134f8d50033f2cbf5f5c9a6e3c66cd4704
[ "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
3,264
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
scbedd.noreply@github.com
e0a1f5a316d34042d099a185a757946ab5667625
3f99756553008745dcac63da942c8afe189a0bbb
/src/common/debug.py
2c2a20b77c88f20d2287098df133eea0833a9ebc
[]
no_license
hekaistorm/DQN_wechat_jump_AI
b34e1d15486e4f6884221e68cb110f4b5f8fcaa6
2dc71f22e234bc17dd280d309103e84596754588
refs/heads/master
2020-09-06T09:05:59.478004
2018-02-04T05:28:06
2018-02-04T05:28:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,185
py
# -*- coding: utf-8 -*- """ 这儿是debug的代码,当DEBUG_SWITCH开关开启的时候,会将各种信息存在本地,方便检查故障 """ import os import sys import shutil from PIL import ImageDraw # 用来保存每一次的图片 screenshot_backup_dir = '../data/backups/' def make_debug_dir(screenshot_backup_dir): """ 创建备份文件夹 """ if not os.path.isdir(screenshot_backup_dir...
[ "50673223@qq.com" ]
50673223@qq.com
ee4e5ba67072d17cb87c3d167e85dfec37495d32
bac37a96ead59a3c4caaac63745d5748f5060195
/第9章 异常/异常4.py
7086b6c235bbdfbd54433b2b3796687261036263
[]
no_license
pod1019/python_learning
1e7d3a9c10fc8c1b4e8ff31554d495df518fb385
a15213d33a253c3a77ab0d5de9a4f937c27693ca
refs/heads/master
2020-09-14T11:11:53.100591
2020-04-11T04:00:27
2020-04-11T04:00:27
223,112,718
0
0
null
null
null
null
UTF-8
Python
false
false
500
py
# 多个except结构 try: a = input("请输入被除数:") b = input("请输入除数:") c = float(a)/float(b) print("两数相除的结果是:",c) except ZeroDivisionError: print("异常:除数不能为0") except TypeError: print("异常:除数和被除数都应该为数值类型") except NameError: print("异常:变量不存在") except BaseException as e: print(e) print(type(e)) fina...
[ "pod1019@163.com" ]
pod1019@163.com
8336f14eb60ba8b70f687a50cfcfb4356b0cb70a
9360aeefb3605a3fe0c5e512e52ec3bc0942903f
/app.py
7527e6647e891d5f6706d20edee3162f0ce7496d
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
eliaswalyba/facebound
1ff7dc32cc4bf50d14f2e6434af2adfb14300245
92500e61b1bc50702ea339563ee8b38b55a31169
refs/heads/master
2022-07-01T17:42:02.360416
2020-05-08T15:23:03
2020-05-08T15:23:03
262,851,606
0
0
MIT
2020-05-10T18:37:03
2020-05-10T18:37:02
null
UTF-8
Python
false
false
3,484
py
import cv2, os import numpy as np import streamlit as st import matplotlib.pyplot as plt from PIL import Image, ImageEnhance @st.cache def load_image(img): im = Image.open(img) return im FACE_CASCADE_PATH = '/algos/haarcascade_frontalface_default.xml' face_cascade = cv2.CascadeClassifier(FACE_CASCADE_PATH )...
[ "fodesdiop@gmail.com" ]
fodesdiop@gmail.com
fd07de3d5d3a2288f381e55246f4331593b092d8
f4b8c90c1349c8740c1805f7b6b0e15eb5db7f41
/test/test_room_space_inventory_status_item.py
832bf42dbe4715ab3e1fb79003804c3340495d2d
[]
no_license
CalPolyResDev/StarRezAPI
012fb8351159f96a81352d6c7bfa36cd2d7df13c
b184e1863c37ff4fcf7a05509ad8ea8ba825b367
refs/heads/master
2021-01-25T10:29:37.966602
2018-03-15T01:01:35
2018-03-15T01:01:35
123,355,501
2
1
null
null
null
null
UTF-8
Python
false
false
1,152
py
# coding: utf-8 """ StarRez API This is a way to connect with the StarRez API. We are not the developers of the StarRez API, we are just an organization that uses it and wanted a better way to connect to it. # noqa: E501 OpenAPI spec version: 1.0.0 Contact: resdev@calpoly.edu Generated by: https...
[ "fedorareis@gmail.com" ]
fedorareis@gmail.com
12bc7081611f0cf4e76ac1ca7877c8802cf8993e
61673ab9a42f7151de7337608c442fa6247f13bb
/pyqtgraph/TextItem/main.py
cee6f112509d051cd992e54fb2b7de2352ab1089
[ "MIT" ]
permissive
furas/python-examples
22d101670ecd667a29376d7c7d7d86f8ec71f6cf
95cb53b664f312e0830f010c0c96be94d4a4db90
refs/heads/master
2022-08-23T23:55:08.313936
2022-08-01T14:48:33
2022-08-01T14:48:33
45,575,296
176
91
MIT
2021-02-17T23:33:37
2015-11-04T23:54:32
Python
UTF-8
Python
false
false
268
py
from PyQt5 import QtGui import pyqtgraph as pg app = QtGui.QApplication([]) x = [1,2,3,4,5] y = [0,3,1,2,0] plotWidget = pg.plot() plotWidget.plot(x, y) text = pg.TextItem("Hello World", color='f00') plotWidget.addItem(text) text.setPos(3, 2) app.exec_()
[ "furas@tlen.pl" ]
furas@tlen.pl
86c01d24c8a65bb62895d8f7fd5b4121e6227f36
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_032/ch15_2020_03_09_16_43_39_394880.py
d97f1bf48a978c5d3d9d2f3b83f3fff684be1147
[]
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
132
py
NOME=input('Digite o seu nome:') if NOME == 'Chris': print('Todo mundo odeia o Chris') else: print('Olá, {0}'.format(NOME))
[ "you@example.com" ]
you@example.com
f05afaefedd21c8a8362d23218c7eb4c9d7ffa0f
1ffc17893d9e15fd939628bbc41c3d2633713ebd
/docs/tests/test_documentation_tutorial.py
d607bf9a8a7c3372aaf0f4fa1cdc37a04f40be05
[ "Apache-2.0" ]
permissive
xadupre/sklearn-onnx
646e8a158cdded725064964494f0f8a760630aa8
b05e4864cedbf4f2a9e6c003781d1db8b53264ac
refs/heads/master
2023-09-01T15:58:38.112315
2022-12-21T01:59:45
2022-12-21T01:59:45
382,323,831
0
2
Apache-2.0
2023-01-04T13:41:33
2021-07-02T11:22:00
Python
UTF-8
Python
false
false
3,935
py
# SPDX-License-Identifier: Apache-2.0 """ Tests examples from the documentation. """ import unittest import os import sys import importlib import subprocess def import_source(module_file_path, module_name): if not os.path.exists(module_file_path): raise FileNotFoundError(module_file_path) module_spec...
[ "noreply@github.com" ]
xadupre.noreply@github.com
25eb28da4c15af658689383ec67271d21e30711e
2e145222a18d4509d937951f5cec4df0e26ee86f
/vas/sqlfire/AgentInstances.py
c7014e3358ef52496bfff95762d437cb06c53a4c
[ "Apache-2.0" ]
permissive
vdreamakitex/vas-python-api
7627b7e3fcf76c16b1ea8b9fb670fdb708eff083
ce7148a2044863e078e78b47abbaafc426f732ee
refs/heads/master
2021-01-18T05:13:25.459916
2012-11-05T09:58:45
2012-11-05T09:58:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,711
py
# vFabric Administration Server API # Copyright (c) 2012 VMware, 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 ...
[ "bhale@vmware.com" ]
bhale@vmware.com
205101325b29051add4fec00ed7a7ca59766cd56
f1e7c31d22ee90e5e3705352170388c09b7470d4
/day2/decorator4.py
69c18443a573abae91c47ec9c78ea8ce44331c52
[]
no_license
taizilinger123/apple
d0b58eb184d4a7c5aec674e914fa67139d2419ca
285c10eedfa0863ad6d51efb9dea5c7d0ae540a6
refs/heads/master
2020-03-28T07:54:50.118668
2018-09-09T05:37:12
2018-09-09T05:37:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
499
py
import time def timer(func): #timer(test1) func=test1 def deco(*args,**kwargs): start_time=time.time() func(*args,**kwargs) #run test1() stop_time=time.time() print("the func run time is %s" %(stop_time-start_time)) return deco @timer #test1=timer(test1) def test1(): ti...
[ "837337164@qq.com" ]
837337164@qq.com
9a7fc8e23d82ffb80c491b1e51e26e71ab025f91
ce18cf6bdb1a85a65a509597b4c0ec046b855186
/2020年12月/换酒问题.py
2aae2a3d340b6efc017fbb7a2722d70f2ee89088
[]
no_license
elssm/leetcode
e12e39faff1da5afb234be08e7d9db85fbee58f8
a38103d2d93b34bc8bcf09f87c7ea698f99c4e36
refs/heads/master
2021-06-11T06:44:44.993905
2021-04-28T06:14:23
2021-04-28T06:14:23
171,072,054
3
0
null
null
null
null
UTF-8
Python
false
false
376
py
class Solution(object): def numWaterBottles(self, numBottles, numExchange): """ :type numBottles: int :type numExchange: int :rtype: int """ res=numBottles while numBottles//numExchange: res+=numBottles//numExchange numBottles=numBottle...
[ "noreply@github.com" ]
elssm.noreply@github.com
19051aed542c9f4efa751cfbf4908783c1d3215e
dd0d2a4da64200a7bea42d23122384189b900850
/common_digit.py
64c95fda4c01ff6bdc0db9231dae66fbd66e46a4
[]
no_license
gakkistyle/comp9021
06ad00b47b7b0135013b014464b5f13530cad49d
4d0d4a2d719745528bf84ed0dfb88a43f858be7e
refs/heads/master
2022-09-24T13:10:29.609277
2020-06-06T16:54:42
2020-06-06T16:54:42
270,043,710
14
7
null
null
null
null
UTF-8
Python
false
false
770
py
def average_of_digits(digit=None): if digit == None: return -1 if len(digit) == 1: digit_set = set(str(digit[0])) sum = 0 for e in digit_set: sum += int(e) return sum/len(digit_set) common = [] word_set1 = set(str(digit[0])) word_set2 = set(str(dig...
[ "1824150996@qq.com" ]
1824150996@qq.com
b5ce86e5c7206e0947b0bcb912983f891ecd0ce1
6df76f8a6fcdf444c3863e3788a2f4b2c539c22c
/django code/p109/p109/asgi.py
dbabed799f89d9fe7ba5076c4cdafffb94c9e6d1
[]
no_license
basantbhandari/DjangoProjectsAsDocs
068e4a704fade4a97e6c40353edb0a4299bd9678
594dbb560391eaf94bb6db6dc07702d127010b88
refs/heads/master
2022-12-18T22:33:23.902228
2020-09-22T13:11:01
2020-09-22T13:11:01
297,651,728
1
0
null
null
null
null
UTF-8
Python
false
false
385
py
""" ASGI config for p109 project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTINGS...
[ "36443209+basantbhandari@users.noreply.github.com" ]
36443209+basantbhandari@users.noreply.github.com
c357997cbb60325855930257b942fbd28f13b1d8
6130f811f3acfcb9f60939d8752bb035cadaf928
/examples/adspygoogle/dfp/v201311/order_service/update_orders.py
24750560181ff34e7c6f4beb06d0f96e0cb10b50
[ "Apache-2.0" ]
permissive
gsembi/googleads-python-legacy-lib
f2e3197413c23c1192b11e54bf78c087f04a2baa
9de235ffb65d014dd6ba22be50659c910eca5ae2
refs/heads/master
2021-01-23T23:38:28.076465
2014-10-14T20:38:20
2014-10-14T20:38:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,707
py
#!/usr/bin/python # # Copyright 2013 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 b...
[ "emeralddragon88@gmail.com" ]
emeralddragon88@gmail.com
ac8f9f2c4057ab0711a7c50124f020d7bd010361
5479cdac56abc115d3b52fbd31814dfd27262da7
/TaobaoSdk/Request/MarketingPromotionsGetRequest.py
5cd18fc86d83e7ffabe7feb005d71b73b4f75e98
[]
no_license
xuyaoqiang-maimiao/TaobaoOpenPythonSDK
d9d2be6a7aa27c02bea699ed5667a9a30bf483ab
c82cde732e443ecb03cfeac07843e884e5b2167c
refs/heads/master
2021-01-18T07:49:57.984245
2012-08-21T07:31:10
2012-08-21T07:31:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,100
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim: set ts=4 sts=4 sw=4 et: ## @brief 根据商品ID查询卖家使用该第三方工具对商品设置的所有优惠策略 # @author wuliang@maimiaotech.com # @date 2012-08-09 12:36:54 # @version: 0.0.0 import os import sys import time def __getCurrentPath(): return os.path.normpath(os.path.join(os.path.realpath(...
[ "liyangmin@maimiaotech.com" ]
liyangmin@maimiaotech.com
5f8dc7f6ee3faba3e195cb8bd5c54cebab04e678
6eb282bbe4d43273b9e9cc8c0fa79400888cba9e
/tests/test_routes_image.py
e98c7912a9f48cdf2e6d390350ecba8cd232dc51
[ "MIT" ]
permissive
jdelgad/memegen
d4300c707c5fee59aa2f5c5e0e8e606d699255ef
0de8e5d6bfae75843bbe0d149c7796cb044e24a7
refs/heads/master
2020-12-25T08:51:20.523408
2016-06-10T13:50:46
2016-06-10T13:50:46
60,996,119
1
0
null
2016-06-13T00:30:19
2016-06-13T00:30:19
null
UTF-8
Python
false
false
7,191
py
# pylint: disable=unused-variable,misplaced-comparison-constant,expression-not-assigned import os import pytest from expecter import expect from .conftest import load TESTS = os.path.dirname(__file__) ROOT = os.path.dirname(TESTS) IMAGES = os.path.join(ROOT, "data", "images") LATEST = os.path.join(IMAGES, "latest.j...
[ "jacebrowning@gmail.com" ]
jacebrowning@gmail.com
b5e23c5c655c526644f144779516ce18dd7a353e
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/97/usersdata/194/54823/submittedfiles/lecker.py
f56acb6233287f3cbe81bfd2b3aa0164580158d3
[]
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
824
py
# -*- coding: utf-8 -*- from __future__ import division def lecker(lista): cont=0 for i in range(0,len(lista)-1,1): if i==0: if lista[i]>lista[i+1]: cont=cont+1 elif i==(len(lista)-1): if lista[i]>lista[i-1]: cont=cont+1 else: ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
8aac474ed41ab941cc830699ba847bd56a96843a
7698a74a06e10dd5e1f27e6bd9f9b2a5cda1c5fb
/zzz.masterscriptsTEB_GIST/for005md.py
5c2e1af3abcf60dbbdff817943ffd3a973318e9a
[]
no_license
kingbo2008/teb_scripts_programs
ef20b24fe8982046397d3659b68f0ad70e9b6b8b
5fd9d60c28ceb5c7827f1bd94b1b8fdecf74944e
refs/heads/master
2023-02-11T00:57:59.347144
2021-01-07T17:42:11
2021-01-07T17:42:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,330
py
import sys import copy import math import matplotlib import scipy import numpy import pylab def read_MD_outfile(filename,totE, kE, pE, time, temp, pres): fileh = open(filename,'r') result_flag = False count = 0 for line in fileh: line = line.strip('\n') splitline = line.split() ...
[ "tbalius@gimel.cluster.ucsf.bkslab.org" ]
tbalius@gimel.cluster.ucsf.bkslab.org
7bfaaf0db70cf0354f13f8bb62ab277d818e5da2
972dff80b81c78082e9022084ef75e954b204471
/gui/system/alertmods/volume_status.py
44a265cdb00c201d6b3499a3c0ac6c890b8daed5
[]
no_license
TomHoenderdos/freenas
34bbf9957ed5904f1296af5a57eedc95e04f1074
83ae0c1805ea7e57b70f436810eca3b9cc0c9825
refs/heads/master
2021-01-17T09:29:19.668079
2014-01-28T01:58:23
2014-01-28T01:58:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,124
py
import re import subprocess from django.utils.translation import ugettext_lazy as _ from freenasUI.storage.models import Volume from freenasUI.system.alert import alertPlugins, Alert, BaseAlert class VolumeStatusAlert(BaseAlert): def on_volume_status_not_healthy(self, vol, status, message): if message:...
[ "wg@FreeBSD.org" ]
wg@FreeBSD.org
a6fa412a4318bdd44745d738c2d2aa91cac8f9d2
277b9292d494db49836c93693257ecab87ebeb18
/ynlu/sdk/evaluation/tests/test_entity_overlapping_ratio.py
541945abbd95063fa16157907ee1d43443903ffe
[ "MIT" ]
permissive
hsiaoyi0504/yoctol-nlu-py
90c2df421994006a49a4db7fe6f104d247201fbd
4cec8d52ba3dd7827bddde152c95e814e533c0f2
refs/heads/master
2020-03-23T23:41:40.055683
2018-04-19T08:57:42
2018-04-19T08:57:42
142,249,617
0
0
MIT
2018-07-25T05:00:05
2018-07-25T05:00:05
null
UTF-8
Python
false
false
6,265
py
from unittest import TestCase from ..entity_overlapping_score import ( single__entity_overlapping_score, entity_overlapping_score, ) class OverlappingScoreTestCase(TestCase): def test_single__entity_overlapping_score_different_length(self): with self.assertRaises(ValueError): single__...
[ "s916526000@gmail.com" ]
s916526000@gmail.com
7ffcb76ec73333e2ac89d9c1b17839de77716f5e
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/420/usersdata/329/87976/submittedfiles/exe11.py
715adcb70c57813e5b1796b83f844bcbc85024f3
[]
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
244
py
# -*- coding: utf-8 -*- n = int(input("digite um numero com 8 algarismos: ")) soma = 0 while n < 10000000 and n > 9999999: resto = n % 10 n = (n - resto)/10 soma = soma + resto print ('%d' % soma) else: print("NAO SEI")
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
85872ca81454d863e57c47043a303a247a75e42d
2a8abd5d6acdc260aff3639bce35ca1e688869e9
/telestream_cloud_qc_sdk/telestream_cloud_qc/models/frame_aspect_ratio_test.py
e350d1d1f34c6e4931d4824fe21895777c5735ce
[ "MIT" ]
permissive
Telestream/telestream-cloud-python-sdk
57dd2f0422c83531e213f48d87bc0c71f58b5872
ce0ad503299661a0f622661359367173c06889fc
refs/heads/master
2021-01-18T02:17:44.258254
2020-04-09T11:36:07
2020-04-09T11:36:07
49,494,916
0
0
MIT
2018-01-22T10:07:49
2016-01-12T11:10:56
Python
UTF-8
Python
false
false
6,377
py
# coding: utf-8 """ Qc API Qc API # noqa: E501 The version of the OpenAPI document: 3.0.0 Contact: cloudsupport@telestream.net Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from telestream_cloud_qc.configuration import Configuration class...
[ "cloudsupport@telestream.net" ]
cloudsupport@telestream.net
ed7b5fcf55324e383b99dd8f860e850435b47ada
0faf534ebb6db6f32279e5bee25b968bd425ce3a
/tests/core/_while/_while.py
b6d827a12289764a394e2ef4beffb7579457bc29
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
PyHDI/veriloggen
e8647cb2d40737d84e31d6b89c5799bab9cbd583
f2b1b9567150af097eed1b5e79ba2b412854ef43
refs/heads/develop
2023-08-09T10:02:35.626403
2023-08-09T00:50:14
2023-08-09T00:50:14
37,813,184
282
60
Apache-2.0
2023-07-20T03:03:29
2015-06-21T15:05:30
Python
UTF-8
Python
false
false
1,032
py
from __future__ import absolute_import from __future__ import print_function import sys import os # the next line can be removed after installation sys.path.insert(0, os.path.dirname(os.path.dirname( os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))) from veriloggen import * def mkTest(): m = Mo...
[ "shta.ky1018@gmail.com" ]
shta.ky1018@gmail.com
eb599ad48afd47de67a5a38758872173421836a2
f2a0c0cad8ccc82ac00c7fa9dbf06c5fec96089c
/Student_Management/main/urls.py
b6fe5fc9e31bae12859e560cff9d8544ad9433a3
[]
no_license
tushargoyal22/Django-Learning
49bb0c97f6e344dae053a3c913a74c765a9a021b
eb87ac56220d7f0e1e4741cda754547180835713
refs/heads/master
2020-12-26T18:12:07.305533
2020-04-20T06:22:14
2020-04-20T06:22:14
237,585,513
0
0
null
2020-06-06T09:08:09
2020-02-01T08:31:48
CSS
UTF-8
Python
false
false
497
py
from django.urls import path from main import views urlpatterns = [ path('',views.Index.as_view()), path('college/<int:pk>' , views.CollegeDetail.as_view(),name='college'), path('colleges/',views.CollegeList.as_view()), path('create_college/' , views.CollegeCreate.as_view()), path('update_college/...
[ "tushar22.tg.tg@gmail.com" ]
tushar22.tg.tg@gmail.com
e187641d7db47cec739bd694e61860ff1f2d4b26
a48eaa4419b87c011abdee1eebfd04b469f4417b
/.history/ghostpost/views_20200211120737.py
0c516f78e19399fa4ac83bde5fc952b2f89adef3
[]
no_license
Imraj423/ghostpost
6418d6c9561528ac8c31dd70d8aae7fac4c77cca
4edc559eb1f9ef0d11aae78e2b1dbd5c4903ddb5
refs/heads/master
2021-01-02T13:32:58.032239
2020-02-11T23:21:31
2020-02-11T23:21:31
239,644,968
0
0
null
null
null
null
UTF-8
Python
false
false
1,858
py
from django.shortcuts import render from django.contrib.auth.models import User from ghostpost.models import ghostPost from django.shortcuts import render, reverse, HttpResponseRedirect from ghostpost.forms import addPost def index(request): item = ghostPost.objects.all() return render(request, 'index.html',...
[ "dahqniss@gmail.com" ]
dahqniss@gmail.com
652e8748f26f358862132b7fc9300aa65f1f05ec
3ff9821b1984417a83a75c7d186da9228e13ead9
/No_0530_Minimum Absolute Difference in BST/minimum_absolute)difference_in_BST_by_inorder_iteration.py
a7418dd3d34f9db81a543e4abdb35916f72c1593
[ "MIT" ]
permissive
brianchiang-tw/leetcode
fd4df1917daef403c48cb5a3f5834579526ad0c2
6978acfb8cb767002cb953d02be68999845425f3
refs/heads/master
2023-06-11T00:44:01.423772
2023-06-01T03:52:00
2023-06-01T03:52:00
222,939,709
41
12
null
null
null
null
UTF-8
Python
false
false
2,094
py
''' Description: Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes. Example: Input: 1 \ 3 / 2 Output: 1 Explanation: The minimum absolute difference is 1, which is the difference between 2 and 1 (or between 2 and 3). No...
[ "brianchiang1988@icloud.com" ]
brianchiang1988@icloud.com
35fddb176546bcdc04b5f7168fe7656d9d16c1c5
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02675/s648199301.py
b63ed0e3bb4be52116a50e76ac3fe5f3864781f1
[]
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
332
py
# -*- coding: utf-8 -*- def main(): N = int(input()) case1 = [2, 4, 5, 7, 9] case2 = [0, 1, 6, 8] case3 = [3] num = N % 10 if num in case1: ans = 'hon' elif num in case2: ans = 'pon' elif num in case3: ans = 'bon' print(ans) if __name__ == "__main__"...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
96a1d7b58328b30fde41e93d4831caca9bf6fc36
9aaa39f200ee6a14d7d432ef6a3ee9795163ebed
/Algorithm/Python/146. LRU Cache.py
12ae61d680fa056cf718b935addad161d26c1efe
[]
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
1,259
py
# -*- coding: utf-8 -*- # @Author: WuLC # @Date: 2016-08-04 22:39:03 # @Last modified by: WuLC # @Last Modified time: 2016-08-04 22:40:49 # @Email: liangchaowu5@gmail.com class LRUCache(object): def __init__(self, capacity): """ :type capacity: int """ self.capacity = capacity ...
[ "liangchaowu5@gmail.com" ]
liangchaowu5@gmail.com
f86f346345b1e788b5612e8ac5f117bc6c0dbce1
e168a4b9e7997b5266df4c1fe2afbaf0ed031fed
/url_shortener/profiles/forms.py
470c5cd6344634922a1279b0c41660591cc5b23a
[]
no_license
AaronScruggs/urly-bird
756eba26f21c66e78ed93bf6f936b50fb927aaef
a27314afb309de42230852fc2bd35416dece46d9
refs/heads/master
2021-01-22T01:18:59.907605
2016-04-05T07:01:53
2016-04-05T07:01:53
55,178,264
0
0
null
2016-03-31T19:45:02
2016-03-31T19:45:01
null
UTF-8
Python
false
false
217
py
from django import forms from django.contrib.auth.models import User from profiles.models import Profile class ImageUpdateForm(forms.ModelForm): class Meta: model = Profile fields = ("image",)
[ "aarondscruggs@gmail.com" ]
aarondscruggs@gmail.com
a74b58b3e5974f4098f7a4932dfa112f9fedbc7e
19ddab74600f71700a6b693281d0180d5271f295
/程序员面试金典/01_04_回文排列.py
bc02963092c9dc8e4d739287a6103fd74aad53ce
[]
no_license
zhulf0804/Coding.Python
4d55a430da1a8077c81feba65c13ac654aaf094a
46ab03e23d15ebd5434ef4dd5ae99130000b00a5
refs/heads/master
2022-09-14T18:40:59.880941
2022-08-20T08:25:51
2022-08-20T08:25:51
213,113,482
3
1
null
null
null
null
UTF-8
Python
false
false
337
py
class Solution: def canPermutePalindrome(self, s: str) -> bool: d = {} for item in s: d[item] = d.get(item, 0) + 1 is_odd = False for k, v in d.items(): if v & 1 == 1: if is_odd: return False is_odd = True ...
[ "zhulf0804@gmail.com" ]
zhulf0804@gmail.com
16ae617aa0dff53873785822c7cb2db033f9590b
494e3fbbdff5cf6edb087f3103ad5f15acbc174f
/schedule/migrations/0002_auto_20180727_2329.py
d0a6847d6321e79defcf1bfbd06aa6f38fb59def
[]
no_license
TalentoUnicamp/my
1209048acdedbb916b8ae8ec80761d09f6ad7754
3d87a33cd282d97dbbbd5f62658f231456f12765
refs/heads/master
2020-03-23T21:12:58.316033
2018-08-14T06:11:36
2018-08-14T06:11:36
142,090,262
11
0
null
2018-08-17T05:13:26
2018-07-24T01:53:23
JavaScript
UTF-8
Python
false
false
1,698
py
# Generated by Django 2.0.3 on 2018-07-28 02:29 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('schedule', '0001_initial'), ] operations = [ migrations.AlterField( model_name='event', ...
[ "gustavomaronato@gmail.com" ]
gustavomaronato@gmail.com
9abea3f326ea59ebd86d1c7b1d83e63ad82ffd60
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/ChenglongChen_Kaggle_HomeDepot/Kaggle_HomeDepot-master/Code/Chenglong/feature_group_distance.py
8be14bcf62e8f822d47294b1071b3b95a6516e0a
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
4,848
py
# -*- coding: utf-8 -*- """ @author: Chenglong Chen <c.chenglong@gmail.com> @brief: group relevance based distance features @note: such features are not used in final submission """ import re import string import numpy as np import pandas as pd import config from config import TRAIN_SIZE from utils import dist_util...
[ "659338505@qq.com" ]
659338505@qq.com
4fccba1e6cf207096ecb5d43ef2b1e74b10f2d7a
e41651d8f9b5d260b800136672c70cb85c3b80ff
/Notification_System/temboo/Library/Flickr/PhotoComments/LeaveComment.py
86bbc8411b315c8fddfd9fdd48b7df1f6c43f6c9
[]
no_license
shriswissfed/GPS-tracking-system
43e667fe3d00aa8e65e86d50a4f776fcb06e8c5c
1c5e90a483386bd2e5c5f48f7c5b306cd5f17965
refs/heads/master
2020-05-23T03:06:46.484473
2018-10-03T08:50:00
2018-10-03T08:50:00
55,578,217
1
0
null
null
null
null
UTF-8
Python
false
false
4,616
py
# -*- coding: utf-8 -*- ############################################################################### # # LeaveComment # Add a comment to a specified photo on Flickr. # # Python versions 2.6, 2.7, 3.x # # Copyright 2014, Temboo Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not us...
[ "shriswissfed@gmail.com" ]
shriswissfed@gmail.com
ec358af8dcc747a31d12f7fb499c7a78bba2c640
7701773efa258510951bc7d45325b4cca26b3a7d
/from_trans_file_cloud/explore_pathlib.py
cd6ac1e600ecf9cc21bb0408817543f804917d9b
[]
no_license
Archanciel/explore
c170b2c8b5eed0c1220d5e7c2ac326228f6b2485
0576369ded0e54ce7ff9596ec4df076e69067e0c
refs/heads/master
2022-06-17T19:15:03.647074
2022-06-01T20:07:04
2022-06-01T20:07:04
105,314,051
0
1
null
null
null
null
UTF-8
Python
false
false
222
py
from pathlib import Path root = Path('D:\\Development\\Python\\trans_file_cloud\\.git') child = Path('D:\\Development\\Python\\trans_file_cloud\\.git\\hooks') other = Path('/some/other/path') print(root in child.parents)
[ "jp.schnyder@gmail.com" ]
jp.schnyder@gmail.com
ae83c59eb63599eac7d7f45ea8229a239af25040
82f993631da2871933edf83f7648deb6c59fd7e4
/w1/L3/7.py
8469a86b108877706bb07df0088f4d1eea2b7434
[]
no_license
bobur554396/PPII2021Summer
298f26ea0e74c199af7b57a5d40f65e20049ecdd
7ef38fb4ad4f606940d2ba3daaa47cbd9ca8bcd2
refs/heads/master
2023-06-26T05:42:08.523345
2021-07-24T12:40:05
2021-07-24T12:40:05
380,511,125
1
0
null
null
null
null
UTF-8
Python
false
false
200
py
# - [] Iterators and Iterbales a = [1, 2, 3, 4] # - iterable object it = iter(a) # print(next(it)) # print(next(it)) # print(next(it)) # print(next(it)) # print(next(it)) for i in it: print(i)
[ "bobur.muhsimbaev@gmail.com" ]
bobur.muhsimbaev@gmail.com
f9a25ea75f1038ebb53730647439228ea1d83873
9102c3a5fa3a5b0202d61206973d0ea167f7a4d0
/July/07-IslandPerimeter.py
a93da08ce948ac402b6597b23157a28ceea1580f
[]
no_license
Madhav-Somanath/LeetCode
8e1b39e106cec238e5a2a3acb3eb267f5c36f781
b6950f74d61db784095c71df5115ba10be936c65
refs/heads/master
2023-01-08T15:10:00.249806
2020-10-31T14:45:43
2020-10-31T14:45:43
255,654,520
0
0
null
null
null
null
UTF-8
Python
false
false
1,657
py
""" You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizontally/vertically (not diagonally). The grid is completely surrounded by water, and there is exactly one island (i.e., one or more connected land cells). The island doesn't ...
[ "madhav.somanath@gmail.com" ]
madhav.somanath@gmail.com
a7d11fe7ad97288252922c00a7c365e7199665ed
43e900f11e2b230cdc0b2e48007d40294fefd87a
/Amazon/VideoOnsite/162.find-peak-element.py
5b3ada63691cf9fcf4b02f7261a2be18b71ec8d7
[]
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
557
py
# # @lc app=leetcode id=162 lang=python3 # # [162] Find Peak Element # # @lc code=start class Solution: def findPeakElement(self, nums: List[int]) -> int: l, r = 0, len(nums) - 1 while l + 1 < r: mid = (l + r) // 2 if nums[mid] > nums[mid + 1] and nums[mid] > nums[mid - 1]: ...
[ "wangzhihuan0815@gmail.com" ]
wangzhihuan0815@gmail.com
04fa896307a6d243658fb915099d337f76804cd5
86813bf514f3e0257f92207f40a68443f08ee44b
/0406 根据身高重建队列/0406 根据身高重建队列.py
989f32ac1430a2408dcaef254410bf9310c75be2
[]
no_license
Aurora-yuan/Leetcode_Python3
4ce56679b48862c87addc8cd870cdd525c9d926c
720bb530850febc2aa67a56a7a0b3a85ab37f415
refs/heads/master
2021-07-12T13:23:19.399155
2020-10-21T03:14:36
2020-10-21T03:14:36
212,998,500
4
1
null
null
null
null
UTF-8
Python
false
false
838
py
#label: 贪心算法 difficulty: medium """ 思路 1.排序:按照身高从高到低排,升高相同的按k从小到大排 2.插入:按照排序好的顺序逐个插入新数组,插入的位置按照k来插 如示例中,排序完: [[7,0], [7,1], [6,1], [5,0], [5,2],[4,4]] 插入的过程: 第一插:[[7,0]] 第二插:[[7,0], [7,1]] 第三插:[[7,0], [6,1],[7,1]] 第四插:[[5,0],[7,0], [6,1],[7,1]] ... 先插高的,后插矮的,即使后插的插到前面也不会有影像,因为矮 """ class Solution(object): def ...
[ "noreply@github.com" ]
Aurora-yuan.noreply@github.com
963b0a84d3f5586261ec0ed22a68007f2a76aa70
0a1356b97465cc1d5c3f661f61b3b8c51fb05d46
/android_binding/.buildozer/android/platform/python-for-android/testapps/testapp/main.py
5baa420f3c203147e6abbfe8085c24a0a8778493
[ "MIT", "Python-2.0" ]
permissive
Rohan-cod/cross_platform_calc
00360f971e4da68dd36d6836c9ddbb157f6b77d5
5785a5e8150d174019b330c812e7eb012cc4dd79
refs/heads/master
2022-12-22T10:29:05.317051
2021-06-05T10:52:44
2021-06-05T10:52:44
237,465,912
2
1
MIT
2022-12-09T05:18:55
2020-01-31T16:07:31
C
UTF-8
Python
false
false
4,015
py
print('main.py was successfully called') import os print('imported os') print('this dir is', os.path.abspath(os.curdir)) print('contents of this dir', os.listdir('./')) import sys print('pythonpath is', sys.path) import kivy print('imported kivy') print('file is', kivy.__file__) from kivy.app import App from ki...
[ "rohaninjmu@gmail.com" ]
rohaninjmu@gmail.com
cf7330a35aacb57aecc3cf237fab0a5660c9e136
7a550d2268bc4bc7e2fec608ffb1db4b2e5e94a0
/1101-1200/1155-Number of Dice Rolls With Target Sum/1155-Number of Dice Rolls With Target Sum.py
f54e16cb49f5483bfd0bcd1a41d19b792bf96035
[ "MIT" ]
permissive
jiadaizhao/LeetCode
be31bd0db50cc6835d9c9eff8e0175747098afc6
4ddea0a532fe7c5d053ffbd6870174ec99fc2d60
refs/heads/master
2021-11-05T04:38:47.252590
2021-10-31T09:54:53
2021-10-31T09:54:53
99,655,604
52
28
MIT
2020-10-02T12:47:47
2017-08-08T05:57:26
C++
UTF-8
Python
false
false
863
py
class Solution: def numRollsToTarget(self, d: int, f: int, target: int) -> int: dp = [[0] * (1 + target) for _ in range(1 + d)] dp[0][0] = 1 MOD = 10 ** 9 + 7 for i in range(1, 1 + d): for j in range(1, 1 + target): for k in range(1, 1 + min(f, j)): ...
[ "jiadaizhao@gmail.com" ]
jiadaizhao@gmail.com
efc48cf55cecc69f2b9a01cbc950890c053e3a77
31bc3fdc7c2b62880f84e50893c8e3d0dfb66fa6
/libraries/numpy/python_369/python_369/numpy_118/built_in_scalars/uint_.py
31601e10986c1a268eb3ab8a0b088f9f95f7615e
[]
no_license
tpt5cu/python-tutorial
6e25cf0b346b8182ebc8a921efb25db65f16c144
5998e86165a52889faf14133b5b0d7588d637be1
refs/heads/master
2022-11-28T16:58:51.648259
2020-07-23T02:20:37
2020-07-23T02:20:37
269,521,394
0
0
null
2020-06-05T03:23:51
2020-06-05T03:23:50
null
UTF-8
Python
false
false
1,496
py
# https://numpy.org/doc/1.18/reference/arrays.scalars.html#built-in-scalar-types import numpy as np def what_is_uint(): ''' - "np.uint" and "np.uintc" are aliases for real underlying NumPy scalar types - The values of those aliases depend on the operating system - On my system, "np.uint"...
[ "uif93194@gmail.com" ]
uif93194@gmail.com
2d192a9d9291492a2911fb5ad35382030baf8fc5
fad34b6b81e93850e6f408bbc24b3070e002997d
/Python-DM-Text Mining-01.py
e4b51fba0851281217136c06054f5f0570c357bf
[]
no_license
Sandy4321/Latent-Dirichlet-Allocation-2
d60c14a3abb62e05a31aaac8c9a6d9381ec9d560
0bf6670643c7968064e375a287448b515b077473
refs/heads/master
2021-05-05T09:57:17.304046
2017-07-26T16:14:22
2017-07-26T16:14:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,149
py
############################################################################ # Created by: Prof. Valdecy Pereira, D.Sc. # UFF - Universidade Federal Fluminense (Brazil) # email: valdecy.pereira@gmail.com # Course: Data Mining # Lesson: Text Mining # Citation: # PEREIRA, V. (2017). Project: LDA - Latent Dir...
[ "noreply@github.com" ]
Sandy4321.noreply@github.com
3e30a6a777fc7d9632db4589647703d42784d301
9b64f0f04707a3a18968fd8f8a3ace718cd597bc
/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/real_time_node_status.py
7221161869b508adcbdee1530355437f7d8e3e9e
[ "Apache-2.0" ]
permissive
jaminGH/huaweicloud-sdk-python-v3
eeecb3fb0f3396a475995df36d17095038615fba
83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b
refs/heads/master
2023-06-18T11:49:13.958677
2021-07-16T07:57:47
2021-07-16T07:57:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,485
py
# coding: utf-8 import re import six class RealTimeNodeStatus: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
e5cc439e0b34ca33b3d001bd387a2a4479ab0b82
5f332fd35e0071b6c33727b1ec7b22efefd4182a
/lib/sconstool/util/finder_.py
84618a3615bf73a74897f7ec62a7cd00982180de
[ "MIT" ]
permissive
ptomulik/scons-tool-util
ec4bc3f6971feda4fa918632b0f0431faf96779b
daab1c7db087feb988a721bf10e6b5c29c0e02b2
refs/heads/master
2021-08-07T12:20:17.485348
2020-04-15T18:48:28
2020-04-15T18:48:28
153,349,258
1
0
null
2020-04-15T18:49:16
2018-10-16T20:23:55
Python
UTF-8
Python
false
false
5,721
py
# -*- coding: utf-8 -*- """Provides the :class:`.ToolFinder` class. """ from . import misc_ import os __all__ = ('ToolFinder',) class ToolFinder(object): """Callable object which searches for executables. A single ToolFinder instance searches for a single file (program), for example a compiler executa...
[ "ptomulik@meil.pw.edu.pl" ]
ptomulik@meil.pw.edu.pl
f6325cdee89668b585f012a30c7130e6022150fc
91d1a6968b90d9d461e9a2ece12b465486e3ccc2
/clouddirectory_write_f/schema_delete.py
58f82c7195d72611e6c1e62d27b86b09d9f7b063
[]
no_license
lxtxl/aws_cli
c31fc994c9a4296d6bac851e680d5adbf7e93481
aaf35df1b7509abf5601d3f09ff1fece482facda
refs/heads/master
2023-02-06T09:00:33.088379
2020-12-27T13:38:45
2020-12-27T13:38:45
318,686,394
0
0
null
null
null
null
UTF-8
Python
false
false
866
py
#!/usr/bin/python # -*- codding: utf-8 -*- import os import sys sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) from common.execute_command import write_parameter # url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html if __name__ == '__main__...
[ "hcseo77@gmail.com" ]
hcseo77@gmail.com
7fb7c4d5f15747a600819c85ad9266779fdb129c
a676d918b568964d475a3ea25c79d446b1783abf
/Chap0/project/ex16.py
cbb9237d4682e1be0fb5529a2f836c5ce46caa04
[]
no_license
AIHackerTest/SailingChen10_Py101-004
35d76d32e6a21c487ce8d48f974532fb38a05051
3c95e04f7d54529e897beec7652e089514ee6dd5
refs/heads/master
2021-05-15T00:32:35.407998
2017-09-12T08:31:02
2017-09-12T08:31:02
103,240,423
0
0
null
null
null
null
UTF-8
Python
false
false
731
py
# coding = utf-8 from sys import argv script, filename = argv print ("We're going to erase %r." % filename) print ("If you don't want that, hit CTRL-C (^C).") print ("If you do want that, hit RETURN.") input("yes or no: ") print ("Opening the file...") target = open(filename, 'w') print ("Truncatin...
[ "xiaowan5219@gmail.com" ]
xiaowan5219@gmail.com
9b5b03a445f19ee80e1454f2b69ec50d24fc9858
febeffe6ab6aaa33e3a92e2dbbd75783a4e32606
/ssseg/cfgs/annnet/cfgs_voc_resnet101os8.py
c5a99a673dced76b76fc8e87509c725ef4b0e15f
[ "MIT" ]
permissive
Junjun2016/sssegmentation
7bbc5d53abee1e0cc88d5e989e4cff5760ffcd09
bf7281b369e8d7fc2f8986caaeec3ec38a30c313
refs/heads/main
2023-02-04T22:09:13.921774
2020-12-23T06:28:56
2020-12-23T06:28:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,208
py
'''define the config file for voc and resnet101os8''' from .base_cfg import * # modify dataset config DATASET_CFG = DATASET_CFG.copy() DATASET_CFG['train'].update( { 'type': 'voc', 'set': 'trainaug', 'rootdir': '/data/VOCdevkit/VOC2012', } ) DATASET_CFG['test'].update( { 't...
[ "1159254961@qq.com" ]
1159254961@qq.com
8002b8bd33ebd7c6508328204e0bcaba4abfe848
c527df31f9daf06c36e8025b372d137ad9c1c4c7
/django/call_app/admin.py
e2561d3e10d41c1a4aa4e22c0d7feb735b07ee77
[]
no_license
Katerina964/callback
8dc7d5d230d095ec32ce1d69c4648f4564e99f87
741fa58779413845ccc4e478ccc2b952c6d000a0
refs/heads/master
2023-03-30T17:55:08.611493
2021-04-13T08:53:30
2021-04-13T08:53:30
295,951,947
0
0
null
null
null
null
UTF-8
Python
false
false
169
py
from django.contrib import admin from .models import Crmaccount, Call, Customer admin.site.register(Crmaccount) admin.site.register(Call) admin.site.register(Customer)
[ "katrin.balakina@gmail.com" ]
katrin.balakina@gmail.com
c98f149bd94f32fc457a90250420211834c8d90c
a3d2620bbf25002c7b182600c2e40f8f06555e91
/django_time/lab13/order/migrations/0007_remove_product_product_views.py
c68818c51d3abadc681f55d7596f477885ffcfe3
[]
no_license
alejo8591/backend-lab
782736a82933f705f825a1194369bfe13e86c0ec
4a02a9552083a7c877e91b0f8b81e37a8650cf54
refs/heads/master
2016-09-03T03:53:43.878240
2015-11-26T06:35:38
2015-11-26T06:35:38
3,911,349
0
0
null
null
null
null
UTF-8
Python
false
false
361
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('order', '0006_product_product_views'), ] operations = [ migrations.RemoveField( model_name='product', ...
[ "alejo8591@gmail.com" ]
alejo8591@gmail.com
01994540ff9ece71215b866941314e6004992e91
0c6100dc16291986fab157ed0437f9203f306f1b
/1101- 1200/1124.py
d5f6e0e4c103af58a54d2712db288e17c2355229
[]
no_license
Matuiss2/URI-ONLINE
4c93c139960a55f7cc719d0a3dcd6c6c716d3924
6cb20f0cb2a6d750d58b826e97c39c11bf8161d9
refs/heads/master
2021-09-17T09:47:16.209402
2018-06-30T08:00:14
2018-06-30T08:00:14
110,856,303
13
1
null
null
null
null
UTF-8
Python
false
false
1,008
py
def f(l1, l2, r1, r2): # Processo dx = l1 - r1 - r2 dy = l2 - r1 - r2 if dx < 0 or dy < 0: return False # Se a soma dos raios for maior que um dos lados retorna falso, elimina vários casos return dx * dx + dy * dy >= (r1 + r2) * (r1 + r2) and min(l1, l2) >= 2 * max(r1, r2) # Valor bo...
[ "noreply@github.com" ]
Matuiss2.noreply@github.com
bb02514e4e44722f691e3de8784fab89c79f2dd0
c116a7ab1fb1ec460f526cf8cefe0abd9eac1584
/py/lib/utils/metrics.py
589ada85cb53607b1ba8cb38042382b3b9c77d89
[ "Apache-2.0" ]
permissive
ckunlun/LightWeightCNN
99a60b41d27a05bae6ad6ba7d2d537010f47726e
b3bed250520971c80bbc170958ff7f5b698be7cc
refs/heads/master
2022-10-09T02:24:54.620610
2020-06-08T08:34:25
2020-06-08T08:34:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,734
py
# -*- coding: utf-8 -*- """ @date: 2020/4/27 下午8:25 @file: metrics.py @author: zj @description: """ import torch from thop import profile from torchvision.models import AlexNet from models.squeeze_net import SqueezeNet from models.squeeze_net_bypass import SqueezeNetBypass def compute_num_flops(model): input ...
[ "505169307@qq.com" ]
505169307@qq.com
55bc765f2a5614073dcc33b1956bac232d9e27db
db52e7d3bcc78b60c8c7939bc95f07cab503b3d7
/GUI for NMT/runnmtui.py
bb81a21cd0de211568f7108da7ff99f4b1fb6ab0
[ "BSD-3-Clause" ]
permissive
krzwolk/GroundHog
e2d495254f5794fdbc5a0de51cf49c76e51fdc6a
3d3e6ec9b30f3ae22bda28914c637c10050a472b
refs/heads/master
2020-12-24T18:55:18.983124
2016-02-09T17:20:05
2016-02-09T17:20:05
51,382,746
0
0
null
2016-02-09T17:09:35
2016-02-09T17:09:35
null
UTF-8
Python
false
false
210
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Description: """ from __future__ import division from __future__ import absolute_import from __future__ import print_function from nmtui import main main()
[ "krzysztof@wolk.pl" ]
krzysztof@wolk.pl
256a7ddfba37eb808339ceb2846b338beba828fe
30e8e9365725fbdd7b0ee6660595eb8fa97b4a16
/Semi-Supervised Learning_GAN/code.py
a17a4879c9e6758d1716dbf6fe64f475233c9117
[]
no_license
moileehyeji/Discussion
edf0945c75a45998b13f4a4fa214587ed9bc5a75
d502f45edadb178f14a21201707a6b1651932499
refs/heads/main
2023-05-06T15:15:00.567930
2021-06-04T05:59:20
2021-06-04T05:59:20
373,735,724
0
0
null
null
null
null
UTF-8
Python
false
false
8,125
py
# https://github.com/eriklindernoren/PyTorch-GAN/blob/master/implementations/sgan/sgan.py import argparse import os import numpy as np import math import torchvision.transforms as transforms from torchvision.utils import save_image from torch.utils.data import DataLoader from torchvision import datasets ...
[ "noreply@github.com" ]
moileehyeji.noreply@github.com
a74b092a468de49c8bc506b98a8a0ff2bf39b929
2ce18a0d8e106065b57136927e3e73b4fa82f8fa
/list-comprehension/changing-generators.py
29c62ce4f684f20d09f39b639c0d5fa5b0a8ddf9
[]
no_license
ColinFendrick/python-data-science-toolbox
3eac02f3e65cf7e63f7c297f06a35ee7cbe92216
83a3d4614ef825302f1881b5b9a59e65db583a00
refs/heads/master
2021-01-02T19:06:18.395930
2020-02-17T17:07:44
2020-02-17T17:07:44
239,757,083
0
0
null
null
null
null
UTF-8
Python
false
false
151
py
lannister = ['cersei', 'jaime', 'tywin', 'tyrion', 'joffrey'] lengths = (len(person) for person in lannister) for value in lengths: print(value)
[ "colin.fendrick@gmail.com" ]
colin.fendrick@gmail.com
5b96b98122a2782bb9492808fa86015dbce11b7a
8b5d68c9398186cae64dbcc5b293d62d69e1921d
/src/python/knowledge_base/readers/structured_data_reader.py
7036de83e51c53d32b65ca69040eabecd3cc8e46
[ "Apache-2.0" ]
permissive
reynoldsm88/Hume
ec99df21e9b9651ec3cacfb8655a510ba567abc9
79a4ae3b116fbf7c9428e75a651753833e5bc137
refs/heads/master
2020-07-24T21:28:39.709145
2019-07-10T15:43:24
2019-07-10T15:43:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
295
py
import json class StructuredDataReader: def __init__(self): pass def read(self, kb, structured_kb_file): print "StructuredDataReader READ" with open(structured_kb_file) as f: structured_kb = json.load(f) kb.structured_kb = structured_kb
[ "hqiu@bbn.com" ]
hqiu@bbn.com
1a329ea8b2e8fde9c9df6ee1fd947b58d49244a3
f42affa951cd292e42fa47b4f4c5bfdab5c21eeb
/paddle.py
5a3c751610cf1e19d060b380d81001011fc1d8fc
[]
no_license
thepixelboy/pong-game
27e5432c9ee0080d2db3f2909591a0d2ef8d35c5
d79fea5f8fd85dc06b906375587514a317d32bae
refs/heads/main
2023-05-06T22:22:03.107087
2021-05-30T12:11:50
2021-05-30T12:11:50
372,206,257
0
0
null
null
null
null
UTF-8
Python
false
false
577
py
from turtle import Turtle DEFAULT_MOVE = 20 class Paddle(Turtle): def __init__(self, position): super().__init__() self.position = position self.create_paddle() def create_paddle(self): self.shape("square") self.color("white") self.penup() self.shapesize(stretch_wid=5, stretch_le...
[ "34570952+thepixelboy@users.noreply.github.com" ]
34570952+thepixelboy@users.noreply.github.com
d029186d44f62f98b226e4323b39b616d5f990a0
fb97ccbd6aa0933f991c429c0e30081ce0f1fd90
/Python/_interview_cake/9_valid_bst.py
596335f493c2f0de60817cd5c0c1ec068d7cae43
[]
no_license
01-Jacky/PracticeProblems
a6c9b1dabc794ca52624870e48dcb84b1b69af67
5714fdb2d8a89a68d68d07f7ffd3f6bcff5b2ccf
refs/heads/master
2022-03-23T12:24:13.834902
2019-12-31T08:11:19
2019-12-31T08:11:19
81,617,066
0
0
null
null
null
null
UTF-8
Python
false
false
1,111
py
""" Validate a BST 1) Max of left sub tree must be < than root value Min of right sub tree must be > than root value """ def is_bst(root, min=float('-inf'), max=float('inf')): if root is None: return True return min < root.value < max and \ is_bst(root.left, min, root.value) and \ ...
[ "hklee310@gmail.com" ]
hklee310@gmail.com
7a460d9abfd96d7fe1447f44197a372f74d342bc
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_overcompensating.py
2a2eb667f086df830e2666df3c95521102fec4ca
[ "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
296
py
from xai.brain.wordbase.verbs._overcompensate import _OVERCOMPENSATE #calss header class _OVERCOMPENSATING(_OVERCOMPENSATE, ): def __init__(self,): _OVERCOMPENSATE.__init__(self) self.name = "OVERCOMPENSATING" self.specie = 'verbs' self.basic = "overcompensate" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
d99d576a058ef5956106984d6bfadfa650d180fb
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03167/s367868270.py
31abb3c30c5fcaa1420f7b86a38e2c7adaa479cf
[]
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
541
py
from collections import deque h,w=map(int,input().split()) maze=[[i for i in input()] for _ in range(h)] que=deque([[0,0]]) visited=[[0 for _ in range(w)] for _ in range(h)] visited[0][0]=1 while que: n=que.popleft() x,y=n[0],n[1] if n==(h-1,w-1): break for i, j in [(1,0), (0,1)]: ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
81fe7eadd2418caa75ad8188bf1b5777398c7eb8
24f664aa2344d4f5d5e7b048ac4e85231715c4c8
/datasets/github/scrape_repos/indexer.py
dd7a16e3b4940538eab982c9b84e8157e3e56d50
[]
no_license
speycode/clfuzz
79320655e879d1e0a06a481e8ec2e293c7c10db7
f2a96cf84a7971f70cb982c07b84207db407b3eb
refs/heads/master
2020-12-05T13:44:55.486419
2020-01-03T14:14:03
2020-01-03T14:15:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,203
py
# Copyright 2018, 2019 Chris Cummins <chrisc.101@gmail.com>. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "chrisc.101@gmail.com" ]
chrisc.101@gmail.com
ab575baf490fda95031b2f5688a47b4869525d35
7d172bc83bc61768a09cc97746715b8ec0e13ced
/odoo/migrations/0006_auto_20170628_0402.py
09a34635f361cf04be7b163f3380f627c20f235a
[]
no_license
shivam1111/jjuice
a3bcd7ee0ae6647056bdc62ff000ce6e6af27594
6a2669795ed4bb4495fda7869eeb221ed6535582
refs/heads/master
2020-04-12T05:01:27.981792
2018-11-08T13:00:49
2018-11-08T13:00:49
81,114,622
2
0
null
null
null
null
UTF-8
Python
false
false
406
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2017-06-28 04:02 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('odoo', '0005_auto_20170618_1356'), ] operations = [ migrations.AlterModelTable( ...
[ "shivam1111@gmail.com" ]
shivam1111@gmail.com
ace37ff10fc593ff551992e0b65900a9501b6d8a
e53c7d270e26bd0fac9dedadff9b4a4ff99110ec
/posts/views.py
7d49db83c9a42fea1d31c85f873eff532ba7c0cb
[]
no_license
kydzoster/django-message_board
34b33c0c240bd1dbb21bb0500db791411cca8cc6
df8f038fc94b02e9ec9c51b8aab8307e1bc75848
refs/heads/master
2022-08-01T09:54:13.686456
2020-05-27T14:17:34
2020-05-27T14:17:34
267,337,171
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
from django.shortcuts import render # Create your views here. from django.views.generic import ListView from .models import Post class HomePageView(ListView): model = Post template_name = 'home.html' context_object_name = 'all_posts_list'
[ "kydzoster@gmail.com" ]
kydzoster@gmail.com
d0ae70451d70c0b7ffb35207c06faf07fc9c01d9
5801d65a93670ee89fc92fc59c3948765f8c028f
/loan_management/loan_management/doctype/customer_expenses/customer_expenses.py
7c1e3f0b7e1fa4eb980bd78431ed0448b4f6de7a
[ "MIT" ]
permissive
staumoepeau/customer_loan
a9205476aa4646ba08f8531c27ecd43a21165f12
bb9f42160bc1e17085f000b15810892337dd0465
refs/heads/master
2021-01-22T04:23:16.804892
2018-11-27T21:09:28
2018-11-27T21:09:28
92,459,369
0
2
null
null
null
null
UTF-8
Python
false
false
269
py
# -*- coding: utf-8 -*- # Copyright (c) 2018, Sione Taumoepeau and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class CustomerExpenses(Document): pass
[ "root@localhost.localdomain" ]
root@localhost.localdomain
57800186771cb6665475f9ebaa02f58d2a3cb52f
a570561df345c055a8763aefb63a153ed2a4d002
/django/paper_tracker/papers/urls.py
9a3fbdfcd3d4f5104ea9f1c501953d1a8478b644
[ "MIT" ]
permissive
kmod/paper_tracker
7b089613172788360d5401434e58a31740062577
43dc10286e8ea3d38b888403091d18549a8106d6
refs/heads/master
2020-12-24T12:34:32.130210
2016-11-29T22:52:36
2016-11-29T22:52:36
72,976,695
0
0
null
null
null
null
UTF-8
Python
false
false
715
py
from django.conf.urls import url from . import views urlpatterns = [ url(r'^papers$', views.papers_index, name='papers_index'), url(r'^$', views.collections_index, name='collections_index'), url(r'^collection/(?P<collection_id>[0-9]+)/$', views.collection, name='collection'), url(r'^paper/new$', views...
[ "kevmod@gmail.com" ]
kevmod@gmail.com
c2a5bcff0bcc1420d7abd3fe87de544b2d01d220
5a7a3447d434a458a7bb63f2aa11b64c284d5492
/thread-ing/thread-test.py
837138ed0f016cd25779cf75bbc034ccf39bbfbd
[]
no_license
woshimayi/mypython
35792e12036a7a05f12d3ef7006637b2b03f0e2e
7f1eb38e8585bf6d2f21d3ad0f64dace61425875
refs/heads/master
2023-09-01T08:59:12.301836
2023-08-30T05:30:54
2023-08-30T05:30:54
130,017,052
4
0
null
2018-12-02T16:18:14
2018-04-18T06:50:36
HTML
UTF-8
Python
false
false
1,130
py
#!/usr/bin/env python # encoding: utf-8 ''' @author: woshimayi @license: (C) Copyright 2015-2049, Node Supply Chain Manager Corporation Limited. @contact: xxxxxxxx@qq.com @software: garner @file: thread-test.py @time: 2020/8/6 17:12 @desc: ''' import threading import time exitFlag = 0 class myThrea...
[ "woshidamayi@Gmail.com" ]
woshidamayi@Gmail.com
26a8e7dd07b21f480488e1f4a850785dfd0f4f0d
f98c174d9011ed29cd8d304f0e4d7042b00d0233
/automaton/lib/autoplatform.py
40fe96107a47a44e1797c0eae35c56deb42b1d0e
[ "MIT" ]
permissive
nemec/Automaton
10755e544a2004b31b55bf213c516001955a89f1
eea2f89dc10031fba45c80eb63053480dfc3543f
refs/heads/master
2020-12-24T15:04:49.102660
2016-01-04T20:23:35
2016-01-04T20:23:35
703,746
7
1
null
null
null
null
UTF-8
Python
false
false
2,318
py
import platform as pl import os # pylint: disable-msg=C0103 # This module deals with platform-specific paths # Set the platform we are currently running on if pl.system().lower().startswith('windows'): platform = 'windows' elif pl.system().lower().startswith('darwin'): platform = 'mac' else: platform = 'linux' ...
[ "djnemec@gmail.com" ]
djnemec@gmail.com
afb78213b6b7a098c79cada1633fcf560bcdde47
f156f2d94c1334b60afaab93fedb25da937af7a5
/world/models.py
90bbe5d05af7a6b3c2c4eb9441a8121432a07ae1
[]
no_license
zeroam/geodjango
74e0484263b23a024f453ec5c7fa68da3a2ccbc5
b56a79ac22a126f11bbf6addbc734b6714f516cb
refs/heads/master
2020-04-19T09:32:28.141513
2019-01-29T07:58:18
2019-01-29T07:58:18
168,114,108
0
0
null
null
null
null
UTF-8
Python
false
false
894
py
from django.contrib.gis.db import models class WorldBorder(models.Model): # Regular Django fields corresponding to the attributes in the world borders shapefile. name = models.CharField(max_length=50) area = models.IntegerField() pop2005 = models.IntegerField('Polulation 2005') fips = models.CharFi...
[ "imdff0803@gmail.com" ]
imdff0803@gmail.com
d70057826d20d1c2123c88d7b0b4fc2374b67a16
49536aafb22a77a6caf249c7fadef46d63d24dfe
/tensorflow/tensorflow/python/kernel_tests/matrix_solve_op_test.py
46c0c0de944b57256fb9fa5f616169edea2a8e3b
[ "Apache-2.0" ]
permissive
wangzhi01/deeplearning-1
4e5ad93f0d9ecd302b74352f80fe1fa6ae70bf0d
46ab82253d956953b8aa98e97ceb6cd290e82288
refs/heads/master
2020-05-28T03:14:55.687567
2018-09-12T16:52:09
2018-09-12T16:52:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,173
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...
[ "hanshuobest@163.com" ]
hanshuobest@163.com
284a051b4199ebc1e0859e2bc7ce26faacac59c5
b7a97c2919807983cd418d9262a1246fff9d95a1
/apps/feeder/models/order.py
77d0d82a6596d396f812baa2efc04c2fd78f327f
[]
no_license
PUYUP/kirimsaran
da2f439c70979ab88ef2e62e3b2a73c2278ce077
250dddddc3d22429c26eed6bfeaf054666f0c110
refs/heads/main
2023-08-04T10:11:23.016982
2021-09-29T00:59:11
2021-09-29T00:59:11
397,851,918
0
0
null
null
null
null
UTF-8
Python
false
false
4,508
py
from django.core.validators import RegexValidator from django.db import models, transaction from django.conf import settings from django.apps import apps from django.utils.translation import ugettext_lazy as _ from .abstract import AbstractCommonField from ..utils import save_random_identifier class AbstractOrder(Ab...
[ "hellopuyup@gmail.com" ]
hellopuyup@gmail.com
9cbf73b313ceadb9a84a8983a41d3478ed5d80c4
bd4144e919786b4aded4345a2a69ed79e0922946
/1월 3주차/공통조상.py
2f554303324d304c1362d167d0514050064e797d
[]
no_license
2020-ASW/kwoneyng-Park
670ee027a77c1559f808a51aaf58f27ab3bb85b9
3ef556889bbf3f2762c01fdfd10b59869d5e912f
refs/heads/master
2023-05-14T16:14:04.227511
2021-06-11T08:00:37
2021-06-11T08:00:37
321,286,504
0
0
null
null
null
null
UTF-8
Python
false
false
1,294
py
from math import log2 def makeTree(cur, parent): depth[cur] = depth[parent] + 1 # 자식노드 차수가 부모노드 + 1 dp[cur][0] = parent for i in range(1,mxL): upper = dp[cur][i-1] #1 2^n if upper == 0: break dp[cur][i] = dp[upper][i-1] # dp[13][2] = dp[6][1] for child in n...
[ "nan308@naver.com" ]
nan308@naver.com
96f31bfeb86c80ba89858cec03aa42169c5c1f39
9f98ed0db445cd69e22eea9e6cfefa929111fe7f
/setup.py
8afab05cdee21e2c40619e9211f70e7c7243323a
[]
no_license
zhuyoucai168/talospider
670c34fc75e709814c1dd9f9f72e0a21e07dee47
da4f0bdc6f6046c306be5c36d9016b74794823b0
refs/heads/master
2020-08-29T05:39:57.661905
2019-02-22T06:55:48
2019-02-22T06:55:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
470
py
#!/usr/bin/env python from setuptools import find_packages, setup setup( name='talospider', version='0.0.6', author='Howie Hu', description="A simple,lightweight scraping micro-framework", author_email='xiaozizayang@gmail.com', install_requires=['lxml', 'requests', 'cchardet', 'cssselect'], ...
[ "xiaozizayang@gmail.com" ]
xiaozizayang@gmail.com
0121af025b75095b667e0d0416853d7206c880a4
ac83d1ddb84ecc904c73bdf779f458bd77efc98c
/src/programy/config/brain/binaries.py
730ef746b85832414db26d3fdd3828a61fc3a8a2
[ "MIT" ]
permissive
secrecy27/chatbot
77829f32a15e17563f038663aebebdb71e52c5a7
e65a753cf665a4d6d97b57703431cba5331e4f0b
refs/heads/master
2022-07-24T08:39:57.788009
2020-07-16T03:55:21
2020-07-16T03:55:21
130,678,143
4
4
NOASSERTION
2022-07-06T19:49:14
2018-04-23T10:12:01
Python
UTF-8
Python
false
false
2,747
py
""" Copyright (c) 2016-2018 Keith Sterling http://www.keithsterling.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, m...
[ "secrecy418@naver.com" ]
secrecy418@naver.com
582e6d7977304ec94ff5e09011134c56548fddee
8644a2174c3cb7ccfe211a5e49edffbcc3a74a46
/HackerrankSolutions/ProblemSolving/DataStructures/LinkedList/Easy/insert_node_doubly_ll.py
30a3ceddc485daee86a8b335eec39479fd28e2eb
[]
no_license
bhavya2403/Learning-Python
9e7cc9dee21172321fb217cae27c8072357f71ce
3898211b357fbab320010a82a4811b68611d0422
refs/heads/main
2023-03-24T03:19:49.989965
2021-03-22T20:11:04
2021-03-22T20:11:04
315,962,811
0
0
null
null
null
null
UTF-8
Python
false
false
1,170
py
class DoublyLinkedListNode: def __init__(self, node_data): self.data = node_data self.next = None self.prev = None class DoublyLinkedList: def __init__(self): self.head = None self.tail = None def insert_node(self, node_data): node = DoublyLink...
[ "noreply@github.com" ]
bhavya2403.noreply@github.com
3c40d89ebe58b12e75def3e0190a55e9fe582789
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/contrib/cv/semantic_segmentation/MMseg-swin/configs/ann/ann_r50-d8_512x512_20k_voc12aug.py
84eaca27405633ca786ead28b974db2f7f527e5c
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
3,652
py
# -*- coding: utf-8 -*- # BSD 3-Clause License # # Copyright (c) 2017 # All rights reserved. # Copyright 2022 Huawei Technologies Co., Ltd # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source ...
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
c3b5005a2b16bf465392034a5dd8560026528ce1
9318b1885946f639f1446431abc6ec4fa33fc9ac
/Cisco_python/module_4/act-3.py
4a247a9c4472018c19b3a620743bb178d2405f56
[]
no_license
mcewenar/PYTHON_INFO_I_BASIC
1d365bcd3d0186c8955e3cde2605831717d0a412
e5c3278969b420e7ce03bf7903cf57e63865aaca
refs/heads/master
2023-06-04T02:26:42.124304
2021-06-22T02:48:08
2021-06-22T02:48:08
326,510,259
0
0
null
null
null
null
UTF-8
Python
false
false
1,371
py
#Tu tarea es escribir y probar una función que toma tres argumentos (un año, un mes y un día del mes) #y devuelve el día correspondiente del año, o devuelve None si cualquiera de los argumentos no es válido. #Debes utilizar las funciones previamente escritas y probadas. Agrega algunos casos de prueba al código. #Est...
[ "dmcewena@hotmail.com" ]
dmcewena@hotmail.com
a9ffbf6927f011eca02197d776c8cdf231525322
42ff36f4c6c967d2f39bf75c1f24c8b5911a8491
/whileloop.py
b570fd612b80873ea6da85ac6f2859b7c5ebf077
[]
no_license
cal1log/python
0d47b688e619d0cdd464267225f76fff7d3101a4
c8196c40e5505d4e83301ada97dd384611660778
refs/heads/main
2023-06-29T13:11:31.869976
2021-07-27T22:36:04
2021-07-27T22:36:04
366,841,686
0
0
null
null
null
null
UTF-8
Python
false
false
213
py
#!/usr/bin/env python3 i = 1 ''' incremental while loop ''' while i <= 5: print('hello calilog') i += 1 print() i = 5 ''' decremental while loop ''' while i >= 1: print('hello calilog') i -= 1
[ "orlago250183@gmail.com" ]
orlago250183@gmail.com
16bec49a939949dec19469329515808a53e2b58d
ddd35c693194aefb9c009fe6b88c52de7fa7c444
/Live 10.1.18/_NKFW2/ResettingMixerComponent.py
c2477c605980a00da5595cf0a5b14ce75043c10b
[]
no_license
notelba/midi-remote-scripts
819372d9c22573877c7912091bd8359fdd42585d
e3ec6846470eed7da8a4d4f78562ed49dc00727b
refs/heads/main
2022-07-30T00:18:33.296376
2020-10-04T00:00:12
2020-10-04T00:00:12
301,003,961
0
0
null
null
null
null
UTF-8
Python
false
false
3,013
py
# uncompyle6 version 3.7.4 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.8.5 (default, Aug 12 2020, 00:00:00) # [GCC 10.2.1 20200723 (Red Hat 10.2.1-1)] # Embedded file name: C:\ProgramData\Ableton\Live 9.7 Suite\Resources\MIDI Remote Scripts\_NKFW2\ResettingMixerComponent.py # Compiled at: 2017-10-14 18:5...
[ "notelba@example.com" ]
notelba@example.com
c306ee028f03366c34bdca2afb22d77a7303c459
a6f70134a9bfdcc630e67a6d05c174d35496ada3
/Sum of Inverse of Numbers^n.py
bb4e17b7740256803b5bc189aaea48aee10de4d2
[]
no_license
nauman-sakharkar/Python-2.x
9c0e9d9e5968631e44ab595175ddcbe0a1b615ad
31df433481d75c7b76a40b2fc372fa6fefbb779f
refs/heads/master
2022-10-08T17:20:46.387977
2020-06-10T07:36:03
2020-06-10T07:36:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
147
py
n=int(input("Enter the Number Of Times = ")) q=int(input("Enter The Number = ")) sum=0 for i in range(1,n+1): sum=sum+((1/q)**i) print("",sum)
[ "50130960+nauman-sakharkar@users.noreply.github.com" ]
50130960+nauman-sakharkar@users.noreply.github.com
4ea666bc8e896fbcd40fb73d27e4e967147c0a7b
3e85618c79a1a934fec543e1327e772ca081a5b9
/N1226.py
f9cf0945dd8c9496a8325051fcd4c4ce8e6bba04
[]
no_license
ghdus4185/SWEXPERT
72d79aa4a668452327a676a644b952bab191c79b
4dc74ad74df7837450de4ce55526dac7760ce738
refs/heads/master
2020-07-16T18:31:22.153239
2019-12-20T04:18:30
2019-12-20T04:18:30
205,843,190
0
0
null
null
null
null
UTF-8
Python
false
false
1,138
py
import sys sys.stdin = open('input.txt', 'r') def find(x,y): global di, dj, maze, possible, check stack = [] stack.append([x,y]) while stack: n = stack.pop() for k in range(4): ni = n[0] + di[k] nj = n[1] + dj[k] # 범위 안에 있는지 if 0 <= ni < 1...
[ "ckdghdus@naver.com" ]
ckdghdus@naver.com
7ede643951e1f15dbbd488aee63423bae39dbced
33db9e6d0a73f2353747a4c9d3223d55a38730a8
/apps/first_app/models.py
9c9e3168c45565effb1144ef8f0ded356a58890e
[]
no_license
philmccormick23/Likes-and-Books
94d778df265fe9b1645f783c83358617ca6fe0c0
0a9b18ceb7ce33a72334900e7f9f62b10d87a796
refs/heads/master
2020-04-02T15:14:46.314382
2018-10-24T19:46:10
2018-10-24T19:46:10
154,559,822
0
0
null
null
null
null
UTF-8
Python
false
false
753
py
from __future__ import unicode_literals from django.db import models # Create your models here. class User(models.Model): first_name = models.CharField(max_length=200) last_name = models.CharField(max_length=200) email = models.EmailField() created_at = models.DateTimeField(auto_now_add=True) updat...
[ "phillipmccormick@Phillips-MacBook-Pro.local" ]
phillipmccormick@Phillips-MacBook-Pro.local
0c21269cec3d106c781ee734f3a60a7415c78889
1792509a9accac11c837e2a18dcb3d34f1d7e30e
/client/category.py
edfa52d0b3eb42271cc8d9e90fe84f84bc763d38
[]
no_license
kafura-kafiri/herb
2d3166b94e5fdacd106d6c4bc21d09f6c9cf568e
48329a0059e2843c72ad2d85e7bb31379f0042e5
refs/heads/master
2020-04-09T09:35:03.720161
2018-12-17T11:02:25
2018-12-17T11:02:25
160,238,902
0
0
null
null
null
null
UTF-8
Python
false
false
478
py
import requests url = 'http://localhost:5000/categories/' headers = {'content-type': 'application/json'} _categories = [ { 'ancestors': ['a', 'b', 'c'], 'title': 'd' }, { 'ancestors': ['x', 'y'], 'title': 'z' } ] def fill(): requests.post(url + '*') print() pri...
[ "kafura.kafiri@gmail.com" ]
kafura.kafiri@gmail.com
28cb89506c201fba276f34362a75f76ce01ffe95
f6d2385cd8eb896e17c5e72ac75abe6a0ba28659
/greffe1/essais.py
9f4aebeaa116aa85140e83a9274bb4de511e3b61
[]
no_license
pastrouveedespeudo/greffegreffe
fba94c9169c3d021714eabf1a45812ca762cfe9d
8ebe4d555246aed26e705671014a260a23148a6a
refs/heads/master
2020-06-12T14:50:17.590418
2019-07-04T14:01:25
2019-07-04T14:01:25
194,335,511
0
0
null
null
null
null
UTF-8
Python
false
false
521
py
from fonction import function from fonction import ecrire from fonction import lecture from fonction import ecrire2 page = 'https://fr.yahoo.com/?guccounter=1&guce_referrer=aHR0cHM6Ly93d3cuZ29vZ2xlLmNvbS8&guce_referrer_sig=AQAAAMdlxFFv1CpIEQ0VuhLMZl4pjm_0Ur2KGpLoKBkg4lBqmzqdwLxulK-E29QEXf815EL1VsURfRYB-M3USUSs2...
[ "noreply@github.com" ]
pastrouveedespeudo.noreply@github.com
79258c9426d558486274c453e5f1e7bd0cbb4a0a
52b5773617a1b972a905de4d692540d26ff74926
/.history/validPalindrome_20200803230103.py
15299f1055653cb18098fa47a7ef7af4c4238410
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
402
py
import re def palindrome(str): if len(str) == 0: return True actualStr = str.lower() str = str.lower() cleanStr = re.sub(r"[,.;:@#?!&$]+",' ',str) print('cleanStr',cleanStr) str = str.split(" ") str.reverse() newArr = [] print(actualStr) for i in str: newArr.ap...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
ca7095ab3d8c8f9a438a75a24c6495f62b664b90
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_geologies.py
84e56d430f9355cad6a66d3b9a709b593d67b684
[ "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
247
py
from xai.brain.wordbase.nouns._geology import _GEOLOGY #calss header class _GEOLOGIES(_GEOLOGY, ): def __init__(self,): _GEOLOGY.__init__(self) self.name = "GEOLOGIES" self.specie = 'nouns' self.basic = "geology" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
84eef6cc65ec245e27db562aaabcc91b480142bb
bd72c02af0bbd8e3fc0d0b131e3fb9a2aaa93e75
/Hash Table/logger_rate_limiter.py
2d6dcba5dcff6b6585ced12fe6631fc0e2af2b74
[]
no_license
harvi7/Leetcode-Problems-Python
d3a5e8898aceb11abc4cae12e1da50061c1d352c
73adc00f6853e821592c68f5dddf0a823cce5d87
refs/heads/master
2023-05-11T09:03:03.181590
2023-04-29T22:03:41
2023-04-29T22:03:41
222,657,838
1
0
null
null
null
null
UTF-8
Python
false
false
636
py
class Logger: def __init__(self): """ Initialize your data structure here. """ self._msg_dict = {} def shouldPrintMessage(self, timestamp: int, message: str) -> bool: """ Returns true if the message should be printed in the given timestamp, otherwise returns fal...
[ "iamharshvirani7@gmail.com" ]
iamharshvirani7@gmail.com
377e0a1762965418f5d2a4d4871feeed710a71e8
565f95f207f49d987bdc372cd80942be95451731
/python/misc/hlgrep
d76c0a07ff98af04d294df10bef1e8a2e4b4256a
[]
no_license
dustin/snippets
76724c2131546bddd35a80da16921a44a49e2262
5be535890f9e71e298fec601d55c469c542ea330
refs/heads/master
2023-08-18T22:01:39.546961
2022-12-29T07:39:40
2022-12-29T07:39:40
18,840
18
4
null
2013-01-06T08:10:39
2008-05-22T07:58:19
C
UTF-8
Python
false
false
306
#!/usr/bin/env python import sys import posix import re smso=posix.popen("tput smso").read() rmso=posix.popen("tput rmso").read() expression=re.compile("(" + sys.argv[1] + ")") l=sys.stdin.readline() while l != '': s=expression.sub(smso + '\\1' + rmso, l) sys.stdout.write(s) l=sys.stdin.readline()
[ "dustin@spy.net" ]
dustin@spy.net
a35928309c1fa5bf69a6928dedc88f21e8e1bf73
d05a59feee839a4af352b7ed2fd6cf10a288a3cb
/examples/chartsheet.py
3edbd9dbfe920d08f7d3e6d4ecf08d471cba16e0
[ "BSD-2-Clause-Views" ]
permissive
elessarelfstone/XlsxWriter
0d958afd593643f990373bd4d8a32bafc0966534
bb7b7881c7a93c89d6eaac25f12dda08d58d3046
refs/heads/master
2020-09-24T06:17:20.840848
2019-11-24T23:43:01
2019-11-24T23:43:01
225,685,272
1
0
NOASSERTION
2019-12-03T18:09:06
2019-12-03T18:09:05
null
UTF-8
Python
false
false
1,774
py
####################################################################### # # An example of creating an Excel chart in a chartsheet with Python # and XlsxWriter. # # Copyright 2013-2019, John McNamara, jmcnamara@cpan.org # import xlsxwriter workbook = xlsxwriter.Workbook('chartsheet.xlsx') # Add a worksheet to hold the...
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
f485b1fe84144a2e6e02f8c6db683e8241399c64
831fe3255ab2dd7abb9fc79a21756012d57cb863
/projects/nerf/nerf/raymarcher.py
3be73d32299a15739202136510193efb2809c1ef
[ "BSD-3-Clause", "CC-BY-4.0" ]
permissive
ksengin/pytorch3d
3e84365ed2499c11ef5a443c4ab28bda85e71f7e
1fffa20541c9fa3248e02473bee294724922d989
refs/heads/master
2021-05-16T21:24:36.150263
2021-03-19T07:07:23
2021-03-19T07:07:23
250,474,512
0
0
NOASSERTION
2020-03-27T08:00:17
2020-03-27T08:00:17
null
UTF-8
Python
false
false
2,796
py
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import torch from pytorch3d.renderer import EmissionAbsorptionRaymarcher from pytorch3d.renderer.implicit.raymarching import ( _check_density_bounds, _check_raymarcher_inputs, _shifted_cumprod, ) class EmissionAbsorptionNeRFRaymarcher...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
ada1ac04d0162f1f086d1ebfc1bb718c67f74aee
2a34a824e1a2d3bac7b99edcf19926a477a157a0
/src/cr/vision/core/colors.py
2865015e52642389b5b3c74caf559bef6dda8111
[ "Apache-2.0" ]
permissive
carnotresearch/cr-vision
a7cb07157dbf470ed3fe560ef85d6e5194c660ae
317fbf70c558e8f9563c3d0ba3bebbc5f84af622
refs/heads/master
2023-04-10T22:34:34.833043
2021-04-25T13:32:14
2021-04-25T13:32:14
142,256,002
2
0
null
null
null
null
UTF-8
Python
false
false
4,002
py
''' List of common colors in b g r format ''' ALICEBLUE = (255, 248, 240) ANTIQUEWHITE = (215, 235, 250) AQUA = (255, 255, 0) AQUAMARINE = (212, 255, 127) AZURE = (255, 255, 240) BEIGE = (220, 245, 245) BISQUE = (196, 228, 255) BLACK = (0, 0, 0) BLANCHEDALMOND = (205, 235, 255) BLUE = (255, 0, 0) BLUEVIOLET = (226, 43...
[ "shailesh@indigits.com" ]
shailesh@indigits.com
2915daa920a718772f982608d13e1abbe0e0de8f
96e76bcb634e0e48bcf3ae352eb235ed9bc32b36
/app/migrations/0020_news_date_and_time.py
abf6be4f45c0a5659dc925a56654a48eab0b5a70
[]
no_license
Ectroverse/EctroverseDjango
cef8a8a2149271c0995f1b60676f636e5dfc23ec
a3dad97b4e7a89694248c21df75ebdcc37e975f0
refs/heads/master
2023-04-18T21:12:20.062646
2021-04-28T11:06:01
2021-04-28T11:06:01
291,338,914
1
3
null
2021-01-23T14:32:21
2020-08-29T19:50:33
Python
UTF-8
Python
false
false
409
py
# Generated by Django 3.1 on 2021-01-24 16:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0019_auto_20210124_1638'), ] operations = [ migrations.AddField( model_name='news', name='date_and_time', ...
[ "vsavko@gmail.com" ]
vsavko@gmail.com
6c58b0de7a6aaa29da887706c57a87152a52622a
7208db50a22368c335e7d7d8b37a3fedb09c60e5
/cairis/gui/ResponsesDialog.py
462cb9196456757bb3e23ec2869fb3380d5121b9
[ "Apache-2.0" ]
permissive
nebloc/cairis
41c7f20af56c46bddcb3927dc4aa410f6477e6ed
1277a148a270d5471b59fc238aa6590bc1d3044e
refs/heads/master
2020-03-24T03:51:11.908096
2018-07-27T16:07:36
2018-07-27T16:07:36
142,434,768
0
0
Apache-2.0
2018-07-26T11:58:24
2018-07-26T11:58:24
null
UTF-8
Python
false
false
4,350
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may...
[ "shamal.faily@googlemail.com" ]
shamal.faily@googlemail.com
3d9cb190898bb0de72ad98aa055083f485cc3c08
f07392633118f7f6aff0a5a9b2a5c9eaab1a0299
/Examples/packaging/Capitalize/capitalize/capital_mod.py
2b4d8147fce933a404c366dee5112a3e807866e5
[]
no_license
UWPCE-PythonCert/Py300
afc4abca736cfea031292db6bed996465f37604f
7f93d20ae66ba9a56c4dcc0c1fdafcf79db15349
refs/heads/master
2020-05-26T13:43:38.098926
2018-03-05T07:11:48
2018-03-05T07:11:48
85,002,542
4
7
null
null
null
null
UTF-8
Python
false
false
1,092
py
#!/usr/bin/env python """ A really simple module, just to demonstrate packaging """ def capitalize_line(instr): """ capitalizes the input string :param instr: the string to capitalize it should be a single line. :type instr: string :returns: a capitalized version of instr """ return " ...
[ "PythonCHB@gmail.com" ]
PythonCHB@gmail.com
6dce8ab5aa0b8bd0c0ee86d7753accc09fc9c3a9
8fa8ded3772dd7a124c1bbb91fc109ed2b63574b
/mycelium/apps/groups/migrations/0024_auto__add_field_grouprule_account__add_field_group_account.py
6efb4463b3442d5bbdba8fed2d4d0f47a61bb622
[]
no_license
skoczen/mycelium
3642b0f5e5ea03d609a3e499c7ad68092101dce0
da0f169163f4dc93e2dc2b0d934abf4f18c18af0
refs/heads/master
2020-04-10T09:21:46.893254
2014-05-20T02:27:06
2014-05-20T02:27:06
2,114,887
0
0
null
null
null
null
UTF-8
Python
false
false
6,761
py
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): depends_on = ( ("accounts", "0004_create_old_data_account"), ) def forwards(self, orm): # Adding field 'GroupRule.accou...
[ "steven@quantumimagery.com" ]
steven@quantumimagery.com
133eb8ff9bdd88c775a362eb91c937e712aea0bb
c50e7eb190802d7849c0d0cea02fb4d2f0021777
/src/workloads/setup.py
4eb445f63f094bb7c215e4c40b08e0266e1db3d9
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
Azure/azure-cli-extensions
c1615b19930bba7166c282918f166cd40ff6609c
b8c2cf97e991adf0c0a207d810316b8f4686dc29
refs/heads/main
2023-08-24T12:40:15.528432
2023-08-24T09:17:25
2023-08-24T09:17:25
106,580,024
336
1,226
MIT
2023-09-14T10:48:57
2017-10-11T16:27:31
Python
UTF-8
Python
false
false
1,704
py
# -------------------------------------------------------------------------------------------- # 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 aaz-dev-tools # --------------------------------...
[ "noreply@github.com" ]
Azure.noreply@github.com
0b7dfd99cdf13d9ecafbc21d8fc4f34870cc081b
e1d6de1fb5ce02907df8fa4d4e17e61d98e8727d
/crawlers/urllib2s/urllib2_posts.py
e58f5ccf7fb07608478bd5d3e0cbb37eff0ded44
[]
no_license
neuroph12/nlpy
3f3d1a8653a832d6230cb565428ee0c77ef7451d
095976d144dacf07414bf7ee42b811eaa67326c1
refs/heads/master
2020-09-16T08:24:37.381353
2016-09-10T19:24:05
2016-09-10T19:24:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
257
py
import urllib import urllib2 url = 'http://www.douban.com/accounts/login' values = {'form_email': '', 'form_password': ''} data = urllib.urlencode(values) req = urllib2.Request(url, data) resp = urllib2.urlopen(req) html = resp.read() print(html)
[ "anderscui@gmail.com" ]
anderscui@gmail.com
66259f17ed43af8cc07fab9f59f2c6e11087508a
e84f8bcf2ea91ac12f9850a6f487b8b6bff09235
/pyfr/backends/cuda/types.py
0cc8c1b194cd8f1297244c06bf5c39a0ec500c80
[ "CC-BY-4.0", "BSD-3-Clause" ]
permissive
Aerojspark/PyFR
2bdbbf8a1a0770dc6cf48100dc5f895eb8ab8110
b59e67f3aa475f7e67953130a45f264f90e2bb92
refs/heads/master
2021-01-14T08:51:48.893378
2014-09-01T15:02:28
2014-09-01T15:02:28
24,884,060
0
1
null
null
null
null
UTF-8
Python
false
false
5,726
py
# -*- coding: utf-8 -*- import collections import itertools as it import numpy as np import pycuda.driver as cuda import pyfr.backends.base as base class CUDAMatrixBase(base.MatrixBase): def onalloc(self, basedata, offset): self.basedata = int(basedata) self.data = self.basedata + offset ...
[ "freddie@witherden.org" ]
freddie@witherden.org
91f594c0d623009fa6d5f267254ce89dd81b5e16
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02846/s097636759.py
3a28136572804ebc45464a64aaca2efeebe9c309
[]
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,115
py
import sys sys.setrecursionlimit(10**9) INF=10**18 def input(): return sys.stdin.readline().rstrip() def main(): def nibutan(ok,ng): while abs(ok-ng) > 1: mid = (ok + ng) // 2 if solve(mid,2): ok = mid else: ng = mid return ok ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com