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
a863222fb1e91defe2c86d0d38f569ade5aba177
36222fc73431a89d41a342aa176158b8868bc41a
/solicitudes/migrations/0039_auto_20170503_1538.py
e0488c7dac0bd81f961e1af10ef56dcbc8757261
[]
no_license
dxviidmg/CITNOVA
9e3f555e192d4e875fc4b990b70c52e3f6fc8bc0
f18d6e74082d0ddf58eaba439d5e20f2d48af7b9
refs/heads/master
2021-01-18T23:34:41.179481
2017-05-20T13:59:11
2017-05-20T13:59:11
87,117,216
0
0
null
null
null
null
UTF-8
Python
false
false
618
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-05-03 20:38 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('solicitudes', '0038_solicitudrecursofinanciero_cuenta_banca...
[ "dmg_92@hotmail.com" ]
dmg_92@hotmail.com
8f12f95b70ea336181886ab5320b3c7e13923fe8
53d0b80b64d201def809ef11acbeca38da2c1574
/existencias/urls.py
fe608f35a314cee248e242d8298c178593790a80
[]
no_license
NOKIA-NI/niproyecciones
068558b27afd26bc2eb6ab9c32f98a37742817ce
90c5829250643443f90ae4cbb9b234464a2fcaef
refs/heads/master
2022-12-11T18:22:32.928214
2018-10-25T14:52:52
2018-10-25T14:52:52
127,053,712
0
0
null
null
null
null
UTF-8
Python
false
false
1,051
py
from django.urls import path from .views import ( ListExistencia, DetailExistencia, CreateExistencia, UpdateExistencia, DeleteExistencia, SearchExistencia, FilterExistencia, export_existencia, # calculate_existencia, ) app_name = 'existencias' urlpatterns = [ path('list/existencia/', ListExistencia.as_view(), nam...
[ "jucebridu@gmail.com" ]
jucebridu@gmail.com
d9cc9a117f428a12f40c8b4b8d27458a10fce42d
739fb6eb19eccf179d9cdce8d79169c31610b5d9
/solarsan/storage/device/backend_parted.py
54a710ff45ead4cadbeff7680ecad86ff904674d
[]
no_license
akatrevorjay/solarsan
af17a8eccbe78c550236143ccb9796423eeec98c
8ed19bc7d481e398bce318b7d513f4583f1e623f
refs/heads/master
2020-04-09T22:59:37.896355
2013-05-03T02:19:13
2013-05-03T02:19:13
7,585,765
1
0
null
null
null
null
UTF-8
Python
false
false
3,348
py
raise NotImplemented from solarsan.utils import convert_bytes_to_human #import os import parted RawDevice = parted.Device def get_device_by_path(device): """Returns parted device for given device file""" dev = parted.getDevice(device) dsk = parted.Disk(dev) return dsk def get_devices(): """E...
[ "trevorj@localhostsolutions.com" ]
trevorj@localhostsolutions.com
80137d902667e854909bc7e04fed7030374b6f67
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2798/60642/259052.py
97b49143c4b9a7d990acae98a29e2f49c9208ed6
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
749
py
input() a = input().split() list = [] for i in range(len(a)): list.append(int(a[i])) listsum = sum(list)/3 middlesum = 0 flexible = 0 one = 1 two = 1 thrid = 0 #listsum==0 and max(list)==0 if(listsum==0 and max(list)==0): print(int((len(list)-1)*(len(list)-2)/2)) else: for i in range(len(list)): mid...
[ "1069583789@qq.com" ]
1069583789@qq.com
c5df86b21683747859ac8b04bfb51ce1fba576f6
ef7a5e1445706482a0e20d2632f6cd3d0e279031
/amy/workshops/migrations/0068_auto_20160119_1247.py
1938629e7f6a75bd9603042e9a143da8d137ed05
[ "MIT" ]
permissive
pbanaszkiewicz/amy
7bf054463f4ecfa217cc9e52a7927d22d32bcd84
f97631b2f3dd8e8f502e90bdb04dd72f048d4837
refs/heads/develop
2022-11-17T18:56:18.975192
2022-11-03T23:19:41
2022-11-03T23:19:41
28,005,098
0
3
MIT
2018-03-20T18:48:55
2014-12-14T19:25:22
Python
UTF-8
Python
false
false
1,400
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('workshops', '0067_person_username_regexvalidator'), ] operations = [ migrations.AddField( model_name='event', ...
[ "piotr@banaszkiewicz.org" ]
piotr@banaszkiewicz.org
19ab24349e495605f1cd9e93d8a2710dd41a232c
7fcdb9f3d8dfd39bf196fdb473fba5566cd97500
/test/output/util.py
87658fe16bda1560684da2c5355493ff62797e9c
[ "MIT" ]
permissive
tek/myo-py
4ccf7892a8317d54a02ed8f3d65ea54f07d984b4
3772a00a021cbf4efb55786e26881767d854afe8
refs/heads/master
2021-10-19T20:45:24.774281
2019-02-23T15:16:58
2019-02-23T15:16:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
590
py
from amino import List, do, Do from ribosome.nvim.api.command import nvim_command_output from ribosome.nvim.io.compute import NvimIO def myo_syntax_items(lines: List[str]) -> List[str]: return lines.filter(lambda a: a.startswith('Myo')).rstrip @do(NvimIO[List[str]]) def myo_syntax() -> Do: syntax = yield n...
[ "torstenschmits@gmail.com" ]
torstenschmits@gmail.com
895c1c57ee896fd80be22acead95bf4099357fd2
398c86f15d919eb6b5a7fa1d400383d4d3968fa8
/pvasync/callback_registry.py
45fd9d3d9b52db5cf94d1e32fcf80547ff560c67
[ "EPICS", "LicenseRef-scancode-unknown-license-reference" ]
permissive
klauer/pypvasync
7aab887abf2cc14bcbc1a4fc637e80d913518493
1096624d95dda4973c1bea6a2f2e7241b91469ef
refs/heads/async
2020-04-09T22:00:58.547815
2016-06-22T21:58:43
2016-06-22T21:58:48
50,545,232
1
2
NOASSERTION
2018-10-18T16:33:20
2016-01-27T23:23:06
Python
UTF-8
Python
false
false
5,968
py
import asyncio import sys import logging import functools from collections import OrderedDict from . import ca from . import dbr logger = logging.getLogger(__name__) loop = asyncio.get_event_loop() def _locked(func): '''Lock functions with the context's subscription lock''' @functools.wraps(func) def ...
[ "klauer@bnl.gov" ]
klauer@bnl.gov
7c8c1246c4ae27a94b5448c892bd003dd5c6ef9d
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/Wd9cCvFKC3fHzgqSx_15.py
a3c8d74a1ece8c3f345eb9e427d5ac7b18bc5bf6
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
478
py
""" Create a function that takes a number `num` and returns each place value in the number. ### Examples num_split(39) ➞ [30, 9] num_split(-434) ➞ [-400, -30, -4] num_split(100) ➞ [100, 0, 0] ### Notes N/A """ def num_split(num): sign = 1 if num >= 0 else -1 num, res, power = abs...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
b92d0c94036b21d92a62a1bccf7cba54a2a489e2
40132307c631dccbf7aa341eb308f69389715c73
/PipelineCtrlSys/scripts/pipelineCtrl/past/sk_checkTools.py
871298dbf78108cf44fbd1f06bd90c22850272df
[]
no_license
Bn-com/myProj_octv
be77613cebc450b1fd6487a6d7bac991e3388d3f
c11f715996a435396c28ffb4c20f11f8e3c1a681
refs/heads/master
2023-03-25T08:58:58.609869
2021-03-23T11:17:13
2021-03-23T11:17:13
348,676,742
1
2
null
null
null
null
UTF-8
Python
false
false
116,770
py
# -*- coding: utf-8 -*- # import sys # sys.path.append('D:\\food\pyp\common') # Q:an标记是_an_还是_ca_ # A:_ct_an # 关于proxy代理物体 # 原则就是,有高低模的,在材质没有做好的时候拼场景的,满足这两者任意一个条件的,必须做proxy. # 其他的在场景里,你可以import,而不要用specialRef模式 # 缺少一个脚本,在设置上传之前自动将proxy层级关系设置正确 import maya.cmds as mc import maya.mel as mel from idmt.maya.commonCore...
[ "snakelonely@outlook.com" ]
snakelonely@outlook.com
99f1805f15b943698cbc96aebb89ecc9472d1efc
164e0f43ef3ad4cb7f6b28dfdd2bfbaa66d38ce2
/Greatest_Common_Divisor_of _Strings/Greatest_Common_Divisor_of _Strings.py
246a75b2eb062011518f55ab93c08a9b5b458647
[]
no_license
maoxx241/code
b217f2d10065d90f52cfa38788c99e238565b892
16e97ec5ee7ae9ffa69da2e001d15a86d73d2040
refs/heads/master
2021-07-11T14:25:35.098241
2020-11-25T14:01:56
2020-11-25T14:01:56
222,544,519
0
0
null
null
null
null
UTF-8
Python
false
false
585
py
class Solution: def gcdOfStrings(self, str1: str, str2: str) -> str: def gcd(a, b): while b: a, b = b, a%b return a g=gcd(len(str1),len(str2)) if g!=str2: index=0 for i in range(0,len(str2)//g): if str2...
[ "maomaoyu870@gmail.com" ]
maomaoyu870@gmail.com
7bef6226d124ff3588cc3ee4c3ac4cf64ceb1072
fbd98eadeb1cd8cd9ecbe2c53fb08c79a6f1e6ad
/m3_functions_pass_functions_to_functions.py
a016f5065e06080563a223bdfaa35c36060e331f
[]
no_license
kolibril13/tricks_for_python
2061de206078158dc0743548969a6ab5ed44438a
73fda8eb07ce39dbf4f87be6a25dd868270395f9
refs/heads/master
2023-03-19T15:22:34.519240
2023-03-13T13:32:28
2023-03-13T13:32:28
173,735,731
2
0
null
null
null
null
UTF-8
Python
false
false
1,047
py
# Example with lambda function # generic function takes op and its argument def runOp(op, val): return op(val) # declare full function def add(x, y): return x+y # run example f = lambda y: add(3, y) result = runOp(f, 1) # is 4 print(result) #Example2: is a little faster from functools import partial # g...
[ "jan-hendrik.mueller@gmx.net" ]
jan-hendrik.mueller@gmx.net
e71da042cbba6e2807a6795eb19a7d33ac711c9a
b9dd413023bb129263ed8fccc765f215a8764879
/house/tenant/views.py
bcadf4fd430affe2d0af948f9275c54519ddd2f3
[]
no_license
CollinsMuiruri/what-a-house
3c849b32fcb2f89eac01260224d87d98408bd08f
3cbe26913f141521dd74371965e1c52a6737b317
refs/heads/master
2020-03-22T21:25:08.857285
2018-07-17T19:55:13
2018-07-17T19:55:13
140,686,345
1
0
null
null
null
null
UTF-8
Python
false
false
244
py
from django.shortcuts import render # from django.contrib.auth.decorators import login_required # Create your views here. # @login_required(login_url='accounts/login/') def tenant_homepage(request): return render(request, 'tenant.html')
[ "wanyekicollins@gmail.com" ]
wanyekicollins@gmail.com
dc96753a802f68ee76c1e13cf2268857af2307a1
5085dfd5517c891a1f5f8d99bf698cd4bf3bf419
/094.py
ca59918b4a2d34b7cddaabb4781e84d1d35e4018
[]
no_license
Lightwing-Ng/100ExamplesForPythonStarter
01ffd4401fd88a0b997656c8c5f695c49f226557
56c493d38a2f1a1c8614350639d1929c474de4af
refs/heads/master
2020-03-10T22:07:37.340512
2018-04-15T13:16:30
2018-04-15T13:16:30
129,611,532
0
0
null
null
null
null
UTF-8
Python
false
false
1,314
py
#!/usr/bin/env python # _*_ coding:utf-8 _*_ """ * @author: Lightwing Ng * email: rodney_ng@iCloud.com * created on Apr 15, 2018, 8:43 PM * Software: PyCharm * Project Name: Tutorial 题目:时间函数举例4,一个猜数游戏,判断一个人反应快慢。 程序分析:无。 """ import time import random play_it = input('do you want to play it.(\'y\' or \'n\')') whil...
[ "rodney_ng@icloud.com" ]
rodney_ng@icloud.com
c8e1ed88505a2e750f8c49e8faa777aa7610333a
de23fa7b6a2ea9b85f994ccc06b4c16625c17153
/photoprocessor/utils.py
42a4c078ccb56f15741de031406e3973c3503cac
[ "BSD-3-Clause" ]
permissive
cuker/django-photoprocessor
19341d486784ddc0a74fc56f967edb579e21d913
5d8093b86f364d71789b39b458dbd51a6b285136
refs/heads/master
2021-01-19T17:21:42.877817
2013-04-02T00:15:21
2013-04-02T00:15:21
2,556,736
13
6
NOASSERTION
2019-11-05T21:04:58
2011-10-11T17:00:53
Python
UTF-8
Python
false
false
1,621
py
""" Photoprocessor utility functions """ import tempfile import math from lib import Image def img_to_fobj(img, info, **kwargs): tmp = tempfile.TemporaryFile() # Preserve transparency if the image is in Pallette (P) mode. if img.mode == 'P': kwargs['transparency'] = len(img.split()[-1].getcolor...
[ "jasonk@cukerinteractive.com" ]
jasonk@cukerinteractive.com
bf3f547dfad3d98a6faf9cce9a0c70fac2f77080
00904c49ee6072ce86a92326ad67b45071ab5695
/tests/cli/test_rasa_train.py
78f91469963399e7039e7345e64b8ad6f4600172
[ "LicenseRef-scancode-generic-cla", "Apache-2.0", "MIT" ]
permissive
cvphelps/rasa
b19d3c8c78ec45382960a9f12f241b69a64e18d7
315f0878cf66c39143bc298acd665a05bff8510b
refs/heads/master
2020-05-25T00:18:15.882021
2019-05-18T18:30:01
2019-05-18T18:30:01
187,530,323
0
1
null
2019-05-19T21:33:32
2019-05-19T21:33:32
null
UTF-8
Python
false
false
5,091
py
import os import shutil from rasa.nlu.utils import list_files def test_train(run_in_default_project): temp_dir = os.getcwd() run_in_default_project( "train", "-c", "config.yml", "-d", "domain.yml", "--data", "data", "--out", "train_mode...
[ "tabergma@gmail.com" ]
tabergma@gmail.com
16b0f03406dd798f22a3bc88aeb589edf78b07a0
b05761d771bb5a85d39d370c649567c1ff3eb089
/venv/lib/python3.10/site-packages/pyflakes/test/test_imports.py
20c02cfab08db3ff78f42658b7530a21d7059e5a
[]
no_license
JawshyJ/Coding_Practice
88c49cab955eab04609ec1003b6b8c20f103fc06
eb6b229d41aa49b1545af2120e6bee8e982adb41
refs/heads/master
2023-02-19T10:18:04.818542
2023-02-06T21:22:58
2023-02-06T21:22:58
247,788,631
4
0
null
null
null
null
UTF-8
Python
false
false
96
py
/home/runner/.cache/pip/pool/e9/9d/ee/de1c1e09b3bdeb8116ce09fa12d08f4dcafe52b225d28f3aa3b1dcec03
[ "37465112+JawshyJ@users.noreply.github.com" ]
37465112+JawshyJ@users.noreply.github.com
2de02136b9c5552790172158ee4bc3b34622aacf
2cd24ddd86e97d01c20a96bfc8ed8b541a80d608
/apps/venta/migrations/0002_detalle_venta_subtotal.py
3586355c67519594b57ec74976acb9da199b81a7
[]
no_license
chrisstianandres/don_chuta
1c048db633246effb06800f28a3a4d8af2cac199
e20abeb892e6de572a470cd71c5830c6f9d1dafa
refs/heads/master
2023-01-07T09:14:52.837462
2020-11-18T20:55:10
2020-11-18T20:55:10
293,209,494
0
0
null
null
null
null
UTF-8
Python
false
false
414
py
# Generated by Django 2.2.14 on 2020-09-09 14:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('venta', '0001_initial'), ] operations = [ migrations.AddField( model_name='detalle_venta', name='subtotal', ...
[ "Chrisstianandres@gmail.com" ]
Chrisstianandres@gmail.com
5c2d8defcee32e7acd95804186488aa2afb6c268
25279384025751b3b400aea006f164d66c167104
/lianxi_xuexi/appium_frame/demo/002.py
166325be457361628dc0b84e4ae67c970e2f59d9
[]
no_license
linruohan/my_study
6fda0b49f4c671919ec7a7fc6ba596b49ec66e59
7666f93259495b6928751d50eb1bab114e118038
refs/heads/master
2020-03-28T18:26:47.776943
2018-09-17T05:52:17
2018-09-17T05:52:17
148,882,060
0
0
null
null
null
null
UTF-8
Python
false
false
2,488
py
#coding=utf-8 import time import os from appium import webdriver # 获取当前目录的根路径 apk_path=os.path.abspath(os.path.join(os.path.dirname(__file__),"..")) print(apk_path) desired_caps ={} desired_caps['platformName'] = 'Android' #设备系统 desired_caps['platformVersion'] = '5.1.1' #设备系统版本 desired_caps['deviceName'] = 'SCL-AL00...
[ "mjt1220@126.com" ]
mjt1220@126.com
e2bd2ab5edd7f0b2b6ecee50a088961eda9c023e
402be2009a7fb4fd1996adce889d9c945e992067
/project/L1-regularization.py
962301e7948f5eeff4bb6fb8e7719b091ee0ccd9
[]
no_license
pekkipo/Linear-regression
538475729edc246c3fac37665b42fc0589c374d7
b1907dbcafd585989d579aea4a8fb5f78225d2e6
refs/heads/master
2021-01-11T16:31:53.941814
2017-01-26T20:20:10
2017-01-26T20:20:10
80,103,811
0
0
null
null
null
null
UTF-8
Python
false
false
1,363
py
# The idea is to generate the fat matrix with lots of features # Use L1 regularization to see if we can find a sparse set of weights that identifies the useful dimensions of x import numpy as np import matplotlib.pyplot as plt # Fat matrix N = 50 # number of points D = 50 # number of dimensions # uniformly distr...
[ "pekkipodev@gmail.com" ]
pekkipodev@gmail.com
35c461e0597498996611e72c7cb8981e69a30b0a
748526cd3d906140c2975ed1628277152374560f
/DEInterview/Python/get_average_word_length.py
17a5c1befdb0464b12b03e8629507eec58a7697c
[]
no_license
librar127/PythonDS
d27bb3af834bfae5bd5f9fc76f152e13ce5485e1
ec48cbde4356208afac226d41752daffe674be2c
refs/heads/master
2021-06-14T10:37:01.303166
2021-06-11T03:39:08
2021-06-11T03:39:08
199,333,950
0
0
null
null
null
null
UTF-8
Python
false
false
224
py
def getAverageLength(string): return round(sum([len(each.strip()) for each in string.split()])/len(string.split()), 2) string = "Firstlydddd this is the firstcccc string " print(getAverageLength(string))
[ "librar127@gmail.com" ]
librar127@gmail.com
a550a98dfa80bc116f1ebbe5e5590be4f3422d5f
ca507259c36a4299666f4c064f25832f5c3f45c1
/symbol_openapi_client/models/resolution_entry_dto.py
a2fb6cf944cc30c7e374bc4736d80a7e823cd470
[]
no_license
fullcircle23/symbol-openapi-python-client
ae38a2537d1f2eebca115733119c444b79ec4962
3728d30eb1b5085a5a5e991402d180fac8ead68b
refs/heads/master
2022-04-15T06:20:47.821281
2020-04-16T02:39:14
2020-04-16T02:39:14
254,701,919
0
0
null
null
null
null
UTF-8
Python
false
false
5,444
py
# coding: utf-8 """ **************************************************************************** Copyright (c) 2016-present, Jaguar0625, gimre, BloodyRookie, Tech Bureau, Corp. All rights reserved. This file is part of Catapult. Catapult is free software: you can redistribute it and/or modify ...
[ "fullcircle2324@gmail.com" ]
fullcircle2324@gmail.com
76a8042442217a8467899aa4f7425bcf6900eafe
85a32fc66050b5590f6a54774bbb4b88291894ab
/python/classes/class-1-dealing-with-complex-numbers/python3.py
deb197c1fe5bacca41482dc70132134bbd0e6409
[]
no_license
charlesartbr/hackerrank-python
59a01330a3a6c2a3889e725d4a29a45d3483fb01
bbe7c6e2bfed38132f511881487cda3d5977c89d
refs/heads/master
2022-04-29T07:40:20.244416
2022-03-19T14:26:33
2022-03-19T14:26:33
188,117,284
46
37
null
2022-03-19T14:26:34
2019-05-22T21:38:18
Python
UTF-8
Python
false
false
1,582
py
import math class Complex(object): def __init__(self, real, imaginary): self.real = real self.imaginary = imaginary def __add__(self, no): c = complex(self.real, self.imaginary) + complex(no.real, no.imaginary) return Complex(c.real, c.imag) def __sub__(sel...
[ "e-mail@charles.art.br" ]
e-mail@charles.art.br
2c5ca58c715a0cb4cf4ecd20746dd765e1bb8e0a
15f0514701a78e12750f68ba09d68095172493ee
/Python3/1131.py
f345ab1b9dd81cc9c7f3ea7adba2488065b16885
[ "MIT" ]
permissive
strengthen/LeetCode
5e38c8c9d3e8f27109b9124ae17ef8a4139a1518
3ffa6dcbeb787a6128641402081a4ff70093bb61
refs/heads/master
2022-12-04T21:35:17.872212
2022-11-30T06:23:24
2022-11-30T06:23:24
155,958,163
936
365
MIT
2021-11-15T04:02:45
2018-11-03T06:47:38
null
UTF-8
Python
false
false
1,107
py
__________________________________________________________________________________________________ sample 124 ms submission class Solution: def maxAbsValExpr(self, arr1: List[int], arr2: List[int]) -> int: ans = 0 n = len(arr1) for a, b in (1, 1), (1, -1), (-1, -1), (-1, 1): mn =...
[ "strengthen@users.noreply.github.com" ]
strengthen@users.noreply.github.com
b46dbf659c56de992717890d00386c889de4e04e
803dff6904c555ba0794ea5741eb426037988b3d
/iliad/routing.py
9fda465baa8d23b800d81ddbb997c65ebc5182c1
[]
no_license
grammteus-dev/iliad
07f8734d74af03214c7549a6ac28dfdae4bb9cdb
bbb74784213914b31e6b3ac22c55984426226508
refs/heads/master
2022-11-26T13:38:11.360525
2020-01-21T06:26:02
2020-01-21T06:26:02
233,435,257
0
0
null
2022-11-04T19:31:24
2020-01-12T18:02:14
Python
UTF-8
Python
false
false
325
py
from channels.auth import AuthMiddlewareStack from channels.routing import ProtocolTypeRouter, URLRouter # from authentication.routing import websocket_urlpatterns as authentication_urlpatterns application = ProtocolTypeRouter({ # 'websocket': AuthMiddlewareStack( # URLRouter(authentication_urlpatterns), # )...
[ "nicholas.d.piano@gmail.com" ]
nicholas.d.piano@gmail.com
251d8dfb549b2d594599a7d179ebfe70f6ad041f
da1d21bb8d0760bfba61cd5d9800400f928868aa
/apps/stats/synchronize.py
f0206127ed14daa9633e2754855ad1acee86a2ec
[]
no_license
biznixcn/WR
28e6a5d10f53a0bfe70abc3a081c0bf5a5457596
5650fbe59f8dfef836503b8092080f06dd214c2c
refs/heads/master
2021-01-20T23:53:52.887225
2014-05-13T02:00:33
2014-05-13T02:00:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,751
py
# -*- coding: utf-8 -*- import redis from stats.constants import * from recsys.utils.synchronize import RedisSync class RedisStatsSync(RedisSync): """ This class synchronizes the redis structures and is intended to be called when a signal to the DB is generated, once instantiated an object of this cl...
[ "mbc@Mathiass-MacBook-Pro.local" ]
mbc@Mathiass-MacBook-Pro.local
f63601406e233a475aaee8c53f3c416d7c95956d
8c3b184561d38347df5fcb0299ddf6c28f0bcd75
/tests/models/test_resource.py
94b7d552bec9e6999a3ef5131df5cdfcbca35754
[ "MIT" ]
permissive
bmwant/chemister
fe0d4073c7c45ccef47b485607ed26da9842a2d3
fbefcc9f548acc69966b6fbe19c4486f471fb390
refs/heads/master
2021-07-17T05:55:51.258568
2019-06-26T20:07:56
2019-06-26T20:07:56
129,266,373
0
0
MIT
2020-04-29T23:35:22
2018-04-12T14:44:29
CSS
UTF-8
Python
false
false
278
py
import pytest from crawler.models.resource import get_resource_by_name @pytest.mark.run_loop async def test_get_resource_by_name(pg_engine): async with pg_engine.acquire() as conn: result = await get_resource_by_name(conn, 'noname') assert result is None
[ "bmwant@gmail.com" ]
bmwant@gmail.com
211e9cd9ecf3e41d32bfeaa87fae86a696bb9f3e
b592eaa683d5d117057cc77ad5e14bf1d4ffae6c
/leetcode/254-factor-combinations/main.py
05520487fd0586220545cb0a1ebd1b7a3a6d9f8c
[]
no_license
soninishank/AlgoDaily
97b4dbc5721660c83f6e71e97767a430378cf35d
1ecb944dc39c33b042f1ce259dbccea68135f0ce
refs/heads/master
2020-06-12T20:36:32.153719
2019-06-29T03:53:39
2019-06-29T03:53:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,890
py
import math """ 1st approach: recursion - for every number from 2 to n-1, if it can divide the current number, it is one of the factors e.g. 252 252%2 = 0 252%3 = 0 252%4 != 0 .... Time I am not sure Space I am not sure LTE """ class Solution(object): def __in...
[ "chan9118kin@gmail.com" ]
chan9118kin@gmail.com
6c0216c96656c47584aaec9b2adeac300d72d5e9
aff6478a50a306dc77129f8297c762b7e180b4d1
/python/coral_usb/semantic_segmenter.py
f513d353d76cbd779c91d02c69e933e86f6032fe
[ "Apache-2.0", "BSD-2-Clause" ]
permissive
ibivibiv/coral_usb_ros
3821570a8ade293f8c9b0168da8f3938f5cad62b
27eeda75066ef671b64ba008bd4fef42fe9678b7
refs/heads/master
2023-03-22T00:59:19.133175
2021-03-10T05:56:27
2021-03-10T05:56:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,967
py
import copy import matplotlib matplotlib.use("Agg") # NOQA import matplotlib.pyplot as plt import numpy as np import os import re import sys import threading # OpenCV import for python3.5 sys.path.remove('/opt/ros/{}/lib/python2.7/dist-packages'.format(os.getenv('ROS_DISTRO'))) # NOQA import cv2 # NOQA sys.path.app...
[ "shingogo@hotmail.co.jp" ]
shingogo@hotmail.co.jp
d3692d2fdc9adcd58a55f848a1ea12ffddebd533
1f42ca6bbe600eefbf80cbe5c1b8485003b2cb35
/session_09_working_files/inclass_exercises/inclass_9.4.py
625689f8be2c227355d4bad9a37608e615e361d9
[]
no_license
jongiles/python_data_apy
a4589e39b3a3eaed850d0177ee79f649dd3a0ee1
343bd649635e98897d3924041374e9ad58eb345d
refs/heads/master
2023-05-12T22:43:16.299571
2021-06-07T22:00:27
2021-06-07T22:00:27
374,784,872
0
0
null
null
null
null
UTF-8
Python
false
false
298
py
# 9.4: Convert a function to lambda. The following function # takes one argument and returns the value doubled. Convert # to lambda and use in the map() function. def doubleit(arg): return arg * 2 seq = [1, 2, 3, 4] seq2 = map(doubleit, seq) print(list(seq2)) # [2, 4, 6, 8]
[ "jgiles@MacBook-Pro.local" ]
jgiles@MacBook-Pro.local
7352eedfbd1046fb58fea33ff769cd70365b3620
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/sdssj_031339.21+042028.1/sdB_sdssj_031339.21+042028.1_lc.py
4eda8823f6bdc5afb9901eadaf2464ff316fee07
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
UTF-8
Python
false
false
369
py
from gPhoton.gAperture import gAperture def main(): gAperture(band="NUV", skypos=[48.413375,4.341139], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_sdssj_031339.21+042028.1/sdB_sdssj_031339.21+042028.1_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
5e7c34cb743f27828c13a76f466133a4f3de113b
23a3f7fb0684de95b89ab4e6cdff98dad8237338
/Plotting/python/joosep/cuts.py
777cbe67b3b8f4e698c32e179f8f7a088833f686
[]
no_license
camclean/tthbb13
1ff3c1f5e68bd3ca85cfe0efc3bf9f7c45d03200
7d738c44f6596e153837248354c6f514ff06d651
refs/heads/master
2020-12-30T23:08:39.712119
2015-01-14T16:11:44
2015-01-14T16:11:44
29,531,749
0
0
null
2015-01-20T13:45:15
2015-01-20T13:45:15
null
UTF-8
Python
false
false
1,328
py
#use only nominal systematic cut_nom = "(syst == 0)" #from mem_categories cut_cat1 = cut_nom + "&&" + "(( type==0 || (type==3 && flag_type3>0)) && btag_LR>=0.)" cut_cat2 = cut_nom + "&&" + "(( type==1 || (type==3 && flag_type3<=0) ) && btag_LR>=0.)" cut_cat3 = cut_nom + "&&" + "(type==2 && flag_type2<=999 && ...
[ "joosep.pata@gmail.com" ]
joosep.pata@gmail.com
21b35dcf5c443926ca1bc4eaef1b1f66570b0692
e6c65e2e354336a4bea5b6a4ccbccd3682915fe2
/out-bin/py/google/fhir/models/run_locally.runfiles/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/ops/gen_stateless_random_ops.py
d25f53a6ac1117b66b8b27db7be3275bea800ca1
[ "Apache-2.0" ]
permissive
rasalt/fhir-datalab
c30ab773d84983dd04a37e9d0ddec8bf2824b8a4
3e329fc8b4226d3e3a4a7c23c306a86e7a9ea0de
refs/heads/master
2021-10-09T05:51:04.593416
2018-12-21T18:11:03
2018-12-22T05:38:32
162,744,237
0
0
null
null
null
null
UTF-8
Python
false
false
190
py
/home/rkharwar/.cache/bazel/_bazel_rkharwar/0ddaa3627472ad9d1367a008236ce2f5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/ops/gen_stateless_random_ops.py
[ "ruchika.kharwar@gmail.com" ]
ruchika.kharwar@gmail.com
6fb9a1f7086612ce5af83a82594ae9ec89b45151
1e660b183cbbaaff83ba9283b319fc3dfbf54503
/teach3QXhf/test.py
737d229e3f2cf8292f1ca053f1f16cc30aa9a761
[]
no_license
amtfbky/hfpy191008
d29787ae19d772fa38f8b5ba44ea97b745529d3a
c6640ff8314cd37f617ef2abf669084ae5141d61
refs/heads/master
2020-08-07T15:07:08.763044
2020-04-04T16:19:24
2020-04-04T16:19:24
213,496,959
0
0
null
null
null
null
UTF-8
Python
false
false
332
py
# try: # d = open('xxx.txt') # print(d.readline(), end='') # except IOError as err: # print('File error: ' + str(err)) # finally: # if 'data' in locals(): # d.close() try: with open('its.txt', "w") as data: print("It's...", file=data) except IOError as err: print('File error: ' ...
[ "xjbrhnhh@163.com" ]
xjbrhnhh@163.com
f084615164bbad06cae034cfd452ba9e87e009dd
1a40a037374327dbe0ae788253069c70d551ceae
/dash_bootstrap_components/_version.py
731a8398b899f0c4eeea87f1a0692b145e8dfbe3
[ "Apache-2.0" ]
permissive
tcbegley/dash-bootstrap-components
dc85af514d1c89d8b67b3d74b24292abacc32967
4cea8518bc7d2af299749eecb9e18d2e6522ff90
refs/heads/main
2021-11-25T06:56:17.357244
2021-10-21T20:55:58
2021-10-21T20:55:58
241,688,271
1
0
Apache-2.0
2020-02-19T18:04:35
2020-02-19T18:04:34
null
UTF-8
Python
false
false
26
py
__version__ = "1.0.1-dev"
[ "actions@github.com" ]
actions@github.com
ea8e042d5253fa367f42938ab883c7307f35bcde
9ec58308459dc95405d1a32fcf8fae7f687a207b
/test/test_k_softpasswords.py
417a90dfb754d74aee146ad7d00137d04ef68159
[ "MIT" ]
permissive
ivanlyon/exercises
067aed812486dbd7a3d7de6e47a692c8b9383163
0792976ae2acb85187b26a52812f9ebdd119b5e8
refs/heads/master
2021-05-24T04:17:29.012329
2021-05-11T17:26:50
2021-05-11T17:26:50
65,584,450
0
0
null
null
null
null
UTF-8
Python
false
false
1,720
py
import io import unittest from unittest.mock import patch from kattis import k_softpasswords ############################################################################### class SampleInput(unittest.TestCase): '''Problem statement sample inputs and outputs''' def test_sample_input_1(self): '''Run an...
[ "roblyon00@gmail.com" ]
roblyon00@gmail.com
4368b6ecde546b076566eca501715730f0c7c583
056adbbdfb968486ecc330f913f0de6f51deee33
/386-lexicographical-numbers/lexicographical-numbers.py
e6e8c56c510efd18725c4cfeff71c6fb442f63c3
[]
no_license
privateHmmmm/leetcode
b84453a1a951cdece2dd629c127da59a4715e078
cb303e610949e953b689fbed499f5bb0b79c4aea
refs/heads/master
2021-05-12T06:21:07.727332
2018-01-12T08:54:52
2018-01-12T08:54:52
117,215,642
0
1
null
null
null
null
UTF-8
Python
false
false
820
py
# -*- coding:utf-8 -*- # # Given an integer n, return 1 - n in lexicographical order. # # # # For example, given 13, return: [1,10,11,12,13,2,3,4,5,6,7,8,9]. # # # # Please optimize your algorithm to use less time and space. The input size may be as large as 5,000,000. # class Solution(object): def lexicalOr...
[ "hyan90@ucsc.edu" ]
hyan90@ucsc.edu
db2e44707d54608d6c674da6bc14c348c8b06ef3
32f5bc330388a96877d93fdd7b21599a40735400
/Python/basicprogramming2.py
dbe900760039498ad38997904e08560c268ab4c8
[]
no_license
alexlwn123/kattis
670180d86f0863328a16e12ed937c2fefb3226a2
c1163bae3fdaf95c1087b216c48e7e19059d3d38
refs/heads/master
2021-06-21T16:26:15.642449
2020-12-24T20:59:10
2020-12-24T20:59:10
152,286,208
1
1
null
2018-10-14T22:40:09
2018-10-09T16:40:48
Java
UTF-8
Python
false
false
1,016
py
def main(): n, t = map(int, input().split()) arr = list(map(int, input().split())) if t == 1: S = set() for x in arr: S.add(7777 - x) for x in arr: if x in S: print('Yes') return print('No') return elif t == 2: S = set(arr) print('Unique' if len(set(arr)...
[ "asl0028@auburn.edu" ]
asl0028@auburn.edu
9f62c3f35c14eb521e6e9d267c5c4394b04e713e
b5d6219ac738ed05485439540f38d63d21694c51
/DAT/ED6_DT01/E0410.py
a66ff28875cafdda4066c4442f9637f248fd8078
[]
no_license
otoboku/ED6-FC-Steam-CN
f87ffb2ff19f9272b986fa32a91bec360c21dffa
c40d9bc5aaea9446dda27e7b94470d91cb5558c5
refs/heads/master
2021-01-21T02:37:30.443986
2015-11-27T07:41:41
2015-11-27T07:41:41
46,975,651
1
0
null
2015-11-27T10:58:43
2015-11-27T10:58:42
null
UTF-8
Python
false
false
1,934
py
from ED6ScenarioHelper import * def main(): CreateScenaFile( FileName = 'E0410 ._SN', MapName = 'Event', Location = 'E0410.x', MapIndex = 1, MapDefaultBGM = "ed60010", Flags = 0, En...
[ "Hiromi.Kaede@gmail.com" ]
Hiromi.Kaede@gmail.com
662b68291d3fa8f3db88900044c8c1b5722ed9cb
1799fe1d9dfcf5f9619a87a11f3fa6170e1864fc
/00080/test_remove_duplicates_from_sorted_array_ii.py
1ccba713894c2cddd56392314196d615c03b711e
[]
no_license
SinCatGit/leetcode
5e52b49324d16a96de1ba4804e3d17569377e804
399e40e15cd64781a3cea295bf29467d2284d2ae
refs/heads/master
2021-07-05T18:51:46.018138
2020-04-25T04:06:48
2020-04-25T04:06:48
234,226,791
1
1
null
2021-04-20T19:17:43
2020-01-16T03:27:08
Python
UTF-8
Python
false
false
530
py
import unittest from remove_duplicates_from_sorted_array_ii import Solution class TestSolution(unittest.TestCase): def test_Calculate_Solution(self): sol = Solution() nums = [1, 1, 1, 2, 2, 3] self.assertEqual(5, sol.removeDuplicates(nums)) self.assertEqual([1, 1, 2, 2, 3], nums[:5...
[ "sincat@126.com" ]
sincat@126.com
f2a8975ec53c9e2446612231af9ced7759ec64b7
52855d750ccd5f2a89e960a2cd03365a3daf4959
/ABC/ABC120_B.py
e3df3cf9bd33a81be6c089b5fa9fc4db7c854f42
[]
no_license
takuwaaan/Atcoder_Study
b15d4f3d15d48abb06895d5938bf8ab53fb73c08
6fd772c09c7816d147abdc50669ec2bbc1bc4a57
refs/heads/master
2021-03-10T18:56:04.416805
2020-03-30T22:36:49
2020-03-30T22:36:49
246,477,394
0
0
null
null
null
null
UTF-8
Python
false
false
309
py
# 公約数列挙 # 重複する約数は1つにまとまるので注意 def make_common_divisors(x1, x2): cd = [1] for i in range(2, min(x1, x2) + 1): if x1 % i == 0 and x2 % i == 0: cd.append(i) return cd A,B,K = map(int,input().split()) print(make_common_divisors(A,B)[-K])
[ "takutotakuwan@gmail.com" ]
takutotakuwan@gmail.com
658869a0dbb757596db21145a67920b87b521d58
9806c35c4acfa16e56535970dbe5f84271b67664
/index.py
53771a8d3f042273cf54189744e9dd94cafac336
[]
no_license
dsjmhjs/python_eod
a8e3513c77a37cfebf2f21a55bfb19449b8a013b
48207dd15e7079ef5fd2cf999367c429087197ea
refs/heads/master
2020-06-25T23:22:30.874309
2019-07-29T10:26:02
2019-07-29T10:26:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
32,454
py
# -*- coding: utf-8 -*- import random from flask import render_template, request, jsonify, make_response from flask import Flask from flask_apscheduler import APScheduler from flask_login import login_required from flask_cors import CORS from apscheduler.events import EVENT_JOB_ERROR, EVENT_JOB_MISSED, EVENT_JOB_MAX_IN...
[ "123456789" ]
123456789
9af1f8b3aa6f082e151b27f43ec145cb45a9d62f
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2500/59018/294456.py
39ddef16398424593ba7f554559b5551ce23bbe4
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
743
py
import numpy def pancakeSort(A): # 思路:对每一个子列表,将最大的数排到最后面 def reverse_list(a_list, k): # 对列表的k位置进行反转 b = a_list[0:k + 1][::-1] return b + a_list[k + 1:] res = [] def max_last(a_list): if len(a_list) == 1: return max_idx = numpy.argmax(a_list) ...
[ "1069583789@qq.com" ]
1069583789@qq.com
71ad3c4b515673223c68c37f75e31bf80ab4864b
6f72b3f844c0234649cef7a0ac9e80b8728b9b00
/Python/FEWZtoROOTHist.py
d13951ee862a6709c21060d1fb5aae6f14e17fca
[]
no_license
KyeongPil-Lee/FEWZTool
c2c31fe8b21d39effadb227de5b790bd78d4fa5b
00286b81a07af74781d9c809229f1af95a1a9ec4
refs/heads/master
2021-07-25T11:59:13.115019
2018-10-17T14:10:00
2018-10-17T14:10:00
148,044,071
0
0
null
null
null
null
UTF-8
Python
false
false
6,845
py
import sys, math from ROOT import TFile, TH1D from array import array class FEWZtoROOTHist: def __init__(self): self.FEWZOutput = "" self.dic_histName = [] self.outputFileName = "" self.isCustomBin = False self.dic_customBin = {} def Convert(self): # print "+" *...
[ "kplee@cern.ch" ]
kplee@cern.ch
dde07ffee1df8cbe6116788ca831a585bb2932a4
2dc17d12ff6ea9794177c81aa4f385e4e09a4aa5
/archive/836. Rectangle Overlap.py
f5674230e4f9420e4cdd19b17f8e3e664363143f
[]
no_license
doraemon1293/Leetcode
924b19f840085a80a9e8c0092d340b69aba7a764
48ba21799f63225c104f649c3871444a29ab978a
refs/heads/master
2022-10-01T16:20:07.588092
2022-09-08T02:44:56
2022-09-08T02:44:56
122,086,222
0
0
null
null
null
null
UTF-8
Python
false
false
338
py
class Solution: def isRectangleOverlap(self, rec1, rec2): """ :type rec1: List[int] :type rec2: List[int] :rtype: bool """ x_overlap=max(0,min(rec2[2],rec1[2])-max(rec2[0],rec1[0])) y_overlap=max(0,min(rec2[3],rec1[3])-max(rec2[1],rec1[1])) return x_ov...
[ "yanhuang1293@gmail.com" ]
yanhuang1293@gmail.com
a3f7e498f73946e5cfd4ab5bc134e06a2a7b0a9d
8d580456e4e0547cf7348f7ccfe39b0e13e1ea09
/agency/views.py
73336aa99db068ba73b2c40969d7c7dae67c835b
[]
no_license
kmvit/Estate
440c7c878747406065480713abc282ba2183d9ea
c11ba59f3bc7e23a8c43210634578223ffba3728
refs/heads/master
2016-09-06T07:07:37.756970
2014-12-06T12:29:49
2014-12-06T12:29:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,564
py
from django.shortcuts import render from agency.models import Category, Estate, Page from django.http import HttpResponse from django.shortcuts import render_to_response from django.views.generic import ListView, DetailView from datetime import datetime def index(request): category_list = Category.objects.filter(...
[ "kmv-it@yandex.ru" ]
kmv-it@yandex.ru
4d6b302ee199dc9c1d861cffb64197f46bab3dcd
3b22b066db9acb897439397508236c8326f0f049
/Assignment Backtracking and searching and sorting applications/sorting the skills.py
1279a5976c5e849fd3cb82a3cb2d0b0ce4596c25
[]
no_license
Adityaraj1711/Eminance-coding-ninjas
e633245f3d4638a042511bea9acda22dbc22d9ed
8b7393fe8db10dd047d8841b15f332899e52daf3
refs/heads/master
2020-05-16T14:00:43.044296
2020-04-16T01:48:53
2020-04-16T01:48:53
183,090,072
14
17
null
2019-07-02T06:08:37
2019-04-23T20:21:54
C++
UTF-8
Python
false
false
1,379
py
''' Sorting the Skills Send Feedback There is a company named James Peterson & Co. The company has ‘n’ employees. The employees have skills from 0 to n-1. All the employees have distinct skills. The manager of James Peterson & Co. wants to sort the employees on the basis of their skills in ascending order. He is only a...
[ "adityamailbox0@gmail.com" ]
adityamailbox0@gmail.com
ae7f7b5ce33219b18c4fd9886bf527c3652c59e0
55ceefc747e19cdf853e329dba06723a44a42623
/_CodeTopics/LeetCode/401-600/000405/000405_handmovedoghead.py
5bb76ba784fe94c205f3f073f550ac4621cbe6de
[]
no_license
BIAOXYZ/variousCodes
6c04f3e257dbf87cbe73c98c72aaa384fc033690
ee59b82125f100970c842d5e1245287c484d6649
refs/heads/master
2023-09-04T10:01:31.998311
2023-08-26T19:44:39
2023-08-26T19:44:39
152,967,312
0
1
null
null
null
null
UTF-8
Python
false
false
530
py
class Solution(object): def toHex(self, num): """ :type num: int :rtype: str """ # 手动狗头题 return hex(num)[2:] if num >= 0 else hex(0xffffffff + num + 1)[2:] """ https://leetcode-cn.com/submissions/detail/225055334/ 100 / 100 个通过测试用例 状态:通过 执行用时: 12 ms 内存消耗: 1...
[ "noreply@github.com" ]
BIAOXYZ.noreply@github.com
b8007a0e23814e7c49fd8ba2c5f5a98d25383670
2451ca9bc9ae43bd3b070fa362aa13646ff06f13
/02_Python_Cookbook/object_oriented_programming/magic_method/_note___iter____next__.py
681ac4cac27f7309b8f1026f3cc6f418dbea4514
[]
no_license
MacHu-GWU/six-demon-bag
5cd1cf5d56d4c42cff013ab80dd4fc838add7195
10d772d6b876086f64db39f6ddbc07e08e35a122
refs/heads/master
2020-05-17T17:26:15.961833
2015-09-15T21:50:20
2015-09-15T21:50:20
26,669,763
0
0
null
null
null
null
UTF-8
Python
false
false
3,461
py
################################## #encoding=utf8 # #version =py27, py33 # #author =sanhe # #date =2014-10-29 # # # # (\ (\ # # ( -.-)o I am a Rabbit! # # o_(")(") # # ...
[ "husanhe@gmail.com" ]
husanhe@gmail.com
e7094970621c61fe26fadced45b5b35b0d857f7f
f7574ee7a679261e758ba461cb5a5a364fdb0ed1
/dp/EditDistance.py
95b15ffdba551771551f99fa8944cf3d2c73794f
[]
no_license
janewjy/Leetcode
807050548c0f45704f2f0f821a7fef40ffbda0ed
b4dccd3d1c59aa1e92f10ed5c4f7a3e1d08897d8
refs/heads/master
2021-01-10T19:20:22.858158
2016-02-26T16:03:19
2016-02-26T16:03:19
40,615,255
1
0
null
null
null
null
UTF-8
Python
false
false
1,256
py
# A Naive recursive Python program to fin minimum number # operations to convert str1 to str2 def editDistance(str1, str2, m , n): print str1[:m],str2[:n] # If first string is empty, the only option is to # insert all characters of second string into first if m==0: return n # If second st...
[ "janewjy87@gmail.com" ]
janewjy87@gmail.com
c7521d849016609c0d1118eb8305c9125405559a
4bd207d288c95b9f20785bb841224b914f05c280
/code-master/lib/bitbots/modules/basic/network/__init__.py
67628be7d7f0dc366d60988e7060d08492fbe7b0
[]
no_license
hendrikvgl/RoboCup-Spielererkennung
435e17ee540c4b4c839e26d54db2528a60e6a110
c41269a960f4b5ea0814a49f5a20ae17eb0a9d71
refs/heads/master
2021-01-10T10:39:00.586760
2015-10-21T12:42:27
2015-10-21T12:42:27
44,675,342
1
0
null
null
null
null
UTF-8
Python
false
false
288
py
def get_network_modules(): return ["bitbots.modules.basic.network.game_controller_module", "bitbots.modules.basic.network.mite_com_module", "bitbots.modules.basic.network.network_controller_module", "bitbots.modules.basic.network.team_data_module"]
[ "hendrik.vgl@gmail.com" ]
hendrik.vgl@gmail.com
3906693e34c698652ce6698a8b3ef1ddc9558e40
1cf679c1fbf24d7eef91d07d3b917ed71f1a3c67
/drf17/drf17/settings.py
4d4d8a3fa49b4eb1befdbc7895922fcb8db3f9da
[]
no_license
manvii3110/Django-Rest-Framework
76ef0a0b0886184aec061dc0669440969eca4810
69fd8701d1be45bfdec4d585b8579dcfcfe4e3c3
refs/heads/master
2023-07-17T01:01:47.976108
2021-08-28T09:20:32
2021-08-28T09:20:32
397,284,627
0
0
null
null
null
null
UTF-8
Python
false
false
3,269
py
""" Django settings for drf17 project. Generated by 'django-admin startproject' using Django 3.2.2. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib i...
[ "msinghal3102@gmail.com" ]
msinghal3102@gmail.com
3e863f51924dbb1a5c41b84ea6e66b2fa08e7956
7fbb4f70493a27d2b0fe2c107a1055e493bf7188
/taobao-tianmao/Qimen/top/api/rest/OrderCancelRequest.py
27e244bfd69bef73943bb50f656022a5b76abdbd
[ "Apache-2.0" ]
permissive
ScottLeeF/python-example
da9d78a85cce914153f1c5ad662d28cddde0fc0f
0b230ba80fe5020d70329a9d73e058013f0ca111
refs/heads/master
2022-12-03T00:24:47.035304
2020-04-21T09:51:12
2020-04-21T09:51:12
242,459,649
0
0
Apache-2.0
2022-11-22T05:29:21
2020-02-23T05:03:19
Python
UTF-8
Python
false
false
552
py
''' Created by auto_sdk on 2018.07.26 ''' from top.api.base import RestApi class OrderCancelRequest(RestApi): def __init__(self, domain='gw.api.taobao.com', port=80): RestApi.__init__(self, domain, port) self.cancelReason = None self.extendProps = None self.orderCode = N...
[ "fei.li@tuanche.com" ]
fei.li@tuanche.com
065a6539fc3148973e7d5fa88e5da10cf9e139a9
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_337/ch80_2020_04_12_19_17_53_955986.py
a9498a022d72664c4c3a450be484537b0fe83825
[]
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
240
py
def interseccao_chaves(dic1, dic2): lista = [] for i in dic1: if i in dic2: lista.append(i) for i in dic2: if not i in lista: if i in dic1: lista.append(i) return lista
[ "you@example.com" ]
you@example.com
c3566f0bd99532133425377da91306654134c876
2e4810dde93e6a1526421eb1b492980aecf2fbcb
/robocraft/display/resources.py
da9c5e2b0754947f5600cd3c8d8e0e27203ea51e
[]
no_license
SnowWalkerJ/Robocraft
c11be5f9c5d9ee1752f7df79eaf0d965bcc4c0bd
d1713dfae8cc5ea4960a180b295dcef7084c843a
refs/heads/master
2020-05-15T06:27:06.653432
2019-04-21T13:37:29
2019-04-21T13:37:29
182,124,892
2
0
null
null
null
null
UTF-8
Python
false
false
85
py
import ratcave as rc mesh_reader = rc.WavefrontReader(rc.resources.obj_primitives)
[ "jike3212001@163.com" ]
jike3212001@163.com
4f9d62aa2da06ea70094554246c08561f472dcb1
b5a2aff7633943eda013175c170edfb24e7151cd
/auth-api/migrations/versions/2023_07_12_13121bcf368a_affilation_invitations.py
4e475a8ceb825ad9403256ffe76a83352827b9c5
[ "Apache-2.0" ]
permissive
bcgov/sbc-auth
2b6bbc09b731edc0c986a261ade625d4f8ad344c
923cb8a3ee88dcbaf0fe800ca70022b3c13c1d01
refs/heads/main
2023-08-07T18:41:18.624886
2023-08-04T21:58:30
2023-08-04T21:58:30
168,407,060
13
127
Apache-2.0
2023-09-14T21:54:11
2019-01-30T20:03:54
Python
UTF-8
Python
false
false
3,123
py
"""affilation_invitations Revision ID: 13121bcf368a Revises: d53a79e9cc89 Create Date: 2023-07-12 14:23:09.044117 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '13121bcf368a' down_revision = 'd53a79e9cc89' branch_labels = None depends_on = None def upgrade(...
[ "noreply@github.com" ]
bcgov.noreply@github.com
0f0915539bc2c348b99db0c151703a827352700d
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startQiskit1970.py
c64955e26b46381d388da22726e8a1db51f4cdbc
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
3,881
py
# qubit number=4 # total number=31 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2 import numpy as np import networkx as nx def bitwise_...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
c3614c7f16d58de96e7bedd2b614ed8ebe0e7908
bcd6de19314b6c895caa8697261a1324afed30ab
/Numpy/NumpyRandom/Exercise2.py
524feeffd60efea372712cbc57a90fa41ebe8d1f
[]
no_license
ErenBtrk/Python-Fundamentals
2f84c146a1123692181b27aa87547dc13b6b3ad4
97cb5fea19c9f17af14c36a646c044ce22cfb058
refs/heads/master
2023-08-29T10:38:11.652809
2021-10-30T13:22:27
2021-10-30T13:22:27
398,052,285
0
0
null
null
null
null
UTF-8
Python
false
false
159
py
''' 2. Write a NumPy program to generate six random integers between 10 and 30. ''' import numpy as np np_array = np.random.randint(10,30,6) print(np_array)
[ "=" ]
=
f96eb8dbb3d2cfaa07c2822db4f73ccfa1989ae0
49536aafb22a77a6caf249c7fadef46d63d24dfe
/tensorflow/tensorflow/python/kernel_tests/string_join_op_test.py
9a0c3c5dd8c36e679023dcb740fa59e868df7650
[ "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
1,948
py
# Copyright 2016 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
5e5b973c105628eeef0fadb521fdad9df59abc3c
a8289cb7273245e7ec1e6079c7f266db4d38c03f
/Django_Ninja_myFirst/djangonautic/djangonautic/settings.py
2d37838eee629288565d08c59f2c3ed5d0e56a5e
[]
no_license
palmarytech/Python_Snippet
6acbd572d939bc9d5d765800f35a0204bc044708
41b4ebe15509d166c82edd23b713a1f3bf0458c5
refs/heads/master
2022-10-06T22:51:00.469383
2020-03-13T08:32:11
2020-03-13T08:32:11
272,350,189
1
0
null
2020-06-15T05:30:44
2020-06-15T05:30:44
null
UTF-8
Python
false
false
3,299
py
""" Django settings for djangonautic project. Generated by 'django-admin startproject' using Django 2.1.3. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import ...
[ "leamon.lee13@gmail.com" ]
leamon.lee13@gmail.com
f9b7f2a6703e75d3dd2514c1de417aea71516645
7174b27cd79cad398ffa1add9b59da6e9adbeae4
/python_algorithm/02_sort_algorithm_second/05_merge_sort_second.py
dafbfc57b5f73a3e8206cd5f693a5eee4564f450
[]
no_license
UULIN/py
ddf037021afce04e46d51c133bfa06257ef7200a
a5d32597fc91fbd5ec41f54fb942c82300766299
refs/heads/master
2021-07-18T08:20:49.342072
2020-10-21T14:41:42
2020-10-21T14:41:42
222,977,134
1
0
null
null
null
null
UTF-8
Python
false
false
635
py
# 归并排序 时间复杂度O(nlogn),算法为稳定的算法 def merge_sort(list): mid = len(list) // 2 if len(list) <= 1: return list return merge(merge_sort(list[:mid]), merge_sort(list[mid:])) def merge(left, right): # 设定游标i,j i = j = 0 temp = [] while i < len(left) and j < len(right): if left[i] < r...
[ "1036190402@qq.com" ]
1036190402@qq.com
7411b7839ff70ca1d62490f2a7ecff2155421bd4
3da45c63f83b5acac33da5be8d300b384721c26b
/evolution/evolution_019/examples/simple/simple.py
323e6053295c28eef1c11d1606958fc10ab61be7
[]
no_license
lanzhiwang/japronto_evolution
f18a9fb46c12add9336838c9d716d427a7845eac
3948c213d1465f8ad82ad8d21555cf70d9323e16
refs/heads/master
2021-06-28T02:20:39.589983
2019-11-11T11:28:16
2019-11-11T11:28:16
217,689,114
1
0
null
2021-02-26T03:06:20
2019-10-26T09:56:09
C
UTF-8
Python
false
false
1,673
py
import asyncio import uvloop import argparse import os.path import sys import socket sys.path.insert(0, os.path.abspath(os.path.dirname(__file__) + '/../..')) import protocol.handler from router.cmatcher import Matcher from router import Router from app import Application def slash(request): return request.Re...
[ "hzhilamp@163.com" ]
hzhilamp@163.com
0b8c7992c57b64ed235b8758e9031b6bc070b0e4
135f293948b38aa8eaa6ac31dde79f8bc091fe5b
/Estruturas de repetição em Python/Exercicio6.py
1b6f04289d83f3d6c0ad823072233fd274246f12
[]
no_license
Kaiquenakao/Python
70e42b5fee08a3b50c34913f2f5763f07e754c25
008eefce828522b5107917dc699fc3590c7ef52c
refs/heads/master
2023-08-12T17:03:24.317996
2021-09-25T22:31:46
2021-09-25T22:31:46
279,083,005
5
0
null
null
null
null
UTF-8
Python
false
false
267
py
""" 6. Faça um programa que leia 10 inteiros e imprima a sua média. """ import statistics lista = [] for num in range(1,10+1): numero = int(input(f'Posição{num}:digite o seu número:')) lista.append(numero) res = statistics.mean(lista) print(res)
[ "noreply@github.com" ]
Kaiquenakao.noreply@github.com
592bf070a40a376611e2edb7073c328b0f797fea
d4412fbe37540e2c4cbe59ed6503d3661ccb7d9c
/colossalai/auto_parallel/tensor_shard/node_handler/view_handler.py
7dff89d1d7a39a6e4fe73514bfb16abe2e3e7bea
[ "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0", "BSD-2-Clause", "MIT" ]
permissive
hpcaitech/ColossalAI
a082ed08a3807b53c49d1f86835b9808590d9042
c7b60f75470f067d1342705708810a660eabd684
refs/heads/main
2023-09-01T04:13:13.834565
2023-08-30T15:07:21
2023-08-30T15:07:21
422,274,596
32,044
4,084
Apache-2.0
2023-09-14T15:19:54
2021-10-28T16:19:44
Python
UTF-8
Python
false
false
1,963
py
from typing import Dict, List import torch from ..sharding_strategy import OperationData, OperationDataType from .node_handler import NodeHandler from .registry import operator_registry from .strategy import StrategyGenerator, ViewGenerator __all__ = ['ViewHandler'] @operator_registry.register(torch.Tensor.reshape...
[ "noreply@github.com" ]
hpcaitech.noreply@github.com
6c4596af2e4db4a5e715ac6df23128afe2b7c7d2
6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386
/google/cloud/aiplatform/v1beta1/aiplatform-v1beta1-py/google/cloud/aiplatform_v1beta1/services/tensorboard_service/pagers.py
d0e307d0f7d92c2f2550884b7c1ffacb68efb97a
[ "Apache-2.0" ]
permissive
oltoco/googleapis-gen
bf40cfad61b4217aca07068bd4922a86e3bbd2d5
00ca50bdde80906d6f62314ef4f7630b8cdb6e15
refs/heads/master
2023-07-17T22:11:47.848185
2021-08-29T20:39:47
2021-08-29T20:39:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
28,439
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
3da1e5262469df9c14cd952f0747b4e3bef46952
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/v2k5hKnb4d5srYFvE_4.py
5b7640777bb53834f2eb74dae83f1e5af5b779fc
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
830
py
""" The function is given a string containing digits from `2` to `9`. Return a set of all possible letter combinations that could represent the digit-string. ### Digits to Letters Mapping d = { "2": "abc", "3": "def", "4": "ghi", "5": "jkl", "6": "mno", "7": "pqrs", "8": "tuv", "9": "wxyz" } ### Examples ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
e7a66c40b2647761665107f535888bcf7e4aff8d
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/4/llo.py
6c27b5623d8530f6ddea580fd8d61ae4244db22c
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
4488f1ad332e4e5b0aa60af09fa2aea20a06dc43
8997a0bf1e3b6efe5dd9d5f307e1459f15501f5a
/qt__pyqt__pyside__pyqode/QImageReader.supportedImageFormats.py
cc5d7e46505ef0e11a9fbb95760f2868b47f8933
[ "CC-BY-4.0" ]
permissive
stepik/SimplePyScripts
01092eb1b2c1c33756427abb2debbd0c0abf533f
3259d88cb58b650549080d6f63b15910ae7e4779
refs/heads/master
2023-05-15T17:35:55.743164
2021-06-11T22:59:07
2021-06-11T22:59:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
351
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' from PyQt5.QtGui import QImageReader print( list(map(lambda x: x.data().decode(), QImageReader.supportedImageFormats())) ) # ['bmp', 'cur', 'gif', 'icns', 'ico', 'jpeg', 'jpg', 'pbm', 'pgm', 'png', 'ppm', 'svg', 'svgz', 'tga', 'tif', 'tiff',...
[ "ilya.petrash@inbox.ru" ]
ilya.petrash@inbox.ru
c89128f095fb57cf33b927c35a9545a9bfcbfba0
46aa6f17c8c37a2c9e9a4fc7dad71ed2424f9a4c
/cvbase/io.py
4e1bfacec3f5c1115efc1d107839236124e9277b
[]
no_license
standardgalactic/cvbase
216d5946acc13a1a53f26f0168d4aa1d8e56a76e
e48d2f76aaeea6472b2175c37780f7b90ae7f1b6
refs/heads/master
2023-03-19T07:36:25.891140
2018-10-12T16:58:24
2018-10-12T16:58:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,906
py
import json import os import sys try: import cPickle as pickle except: import pickle import yaml try: from yaml import CLoader as Loader, CDumper as Dumper except ImportError: from yaml import Loader, Dumper from multiprocessing import Process, Queue from os import path def json_load(file): if isi...
[ "chenkaidev@gmail.com" ]
chenkaidev@gmail.com
3cb90c4eec8414e41e9f1842b0adf9ec8c3039ba
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02865/s898818713.py
4c68946ec52a6e310d1602fc919e9021dda9a473
[]
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
105
py
n = int(input()) ans = 0 for i in range(1, n): tmp = n - i if i < tmp: ans += 1 print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
d019ed1143b156e9db31274659858439040608b0
57e35b1595483ae7b3ce248d7b24214111d00bc8
/tests/tet_inheritance_customizing.py
b743774179ecfd78bd0c4bc9299116649cc494fe
[ "MIT" ]
permissive
bnzk/django-svg-tag
68814a2057cb0361d7f31d8dedd33ddc2142c07a
638f00091cb34d3ccb514c472a8f9ed546c6a949
refs/heads/master
2021-06-18T00:10:39.799499
2019-09-16T16:36:48
2019-09-16T16:36:48
145,836,201
0
1
null
null
null
null
UTF-8
Python
false
false
4,144
py
# -*- coding: utf-8 -*- from django.core.urlresolvers import reverse from selenium.webdriver.support.expected_conditions import visibility_of from selenium.webdriver.support.wait import WebDriverWait from djangocms_baseplugins.tests.utils.django_utils import create_superuser from djangocms_baseplugins.tests.utils.sele...
[ "bnzk@bnzk.ch" ]
bnzk@bnzk.ch
8b78350da9457b861ef7bd05ee58e3fafe4f9d12
a2ed68f3ccd04ab77912601740a3ad2ff8514c9f
/www/site/webroot/app/controller/__init__.py
f1d6f97bb349c37d3ecc9c024ccad6aa9c282fc2
[]
no_license
lincolnhuang/www-tp4a-com
1701c757a9d3469fa52bf9445b4557292ca87b73
49de46741ff43fed510653d1bd2b2fb7778c47ef
refs/heads/master
2023-04-07T15:39:42.869839
2021-04-15T12:03:05
2021-04-15T12:03:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,282
py
# -*- coding: utf-8 -*- from . import download from . import support from . import index from . import donate from . import util __all__ = ['controllers'] controllers = [ (r'/', index.IndexHandler), # ==================================================== # 下载页面 # ====================...
[ "apex.liu@qq.com" ]
apex.liu@qq.com
a16d08cd7865026335a2f835ad573cba8f62b30d
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/contrib/cv/semantic_segmentation/DeeplabV3_for_Pytorch/configs/swin/upernet_swin_tiny_patch4_window7_512x512_160k_ade20k_pretrain_224x224_1K.py
7ac5db1493bf51068871fffb4456d8054c307791
[ "Apache-2.0", "GPL-1.0-or-later", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference" ]
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
2,044
py
# Copyright 2021 Huawei # Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2....
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
3bfcc4ee3ccb467ff52a7e4705fa06b8973d0d66
df11a41c67dae050e4b11026e92d914c02141d79
/spinoffs/oryx/oryx/bijectors/__init__.py
449240cd826b7b53ee7797fea84742c6b3eb9fe0
[ "Apache-2.0" ]
permissive
frankfan007/probability
65824ed405e134c0d496befb47a50f181864ac1d
257e614b4b658f48aea32f8be9721077d5acdf5c
refs/heads/master
2022-11-08T07:35:43.534546
2020-06-26T21:42:43
2020-06-26T21:43:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,210
py
# Copyright 2020 The TensorFlow Probability 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 o...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
bc652ec645dff6961d5dd2ac88a1811ec724b9e0
eb64b799ff1d7ef3a244bf8e6f9f4e9118d5cfcd
/homeassistant/components/yamaha_musiccast/__init__.py
d984aaceb96f9f32ea3889a425b31b2058a8666f
[ "Apache-2.0" ]
permissive
JeffLIrion/home-assistant
53966b81b5d5816679f12fc761f79e8777c738d6
8f4ec89be6c2505d8a59eee44de335abe308ac9f
refs/heads/dev
2023-08-22T09:42:02.399277
2022-02-16T01:26:13
2022-02-16T01:26:13
136,679,169
5
2
Apache-2.0
2023-09-13T06:59:25
2018-06-09T00:58:35
Python
UTF-8
Python
false
false
7,680
py
"""The MusicCast integration.""" from __future__ import annotations from datetime import timedelta import logging from aiomusiccast import MusicCastConnectionException from aiomusiccast.capabilities import Capability from aiomusiccast.musiccast_device import MusicCastData, MusicCastDevice from homeassistant.componen...
[ "noreply@github.com" ]
JeffLIrion.noreply@github.com
a4bec651ffed468d41715fb02ab6959c496ee803
e014e5324ac8c05f14fc96227295dbf2007054e5
/2018/delete_inteface_18058.py
a1481b2476747ba5d4a6c69ad8dddeb3144cd99a
[]
no_license
analylx/Py_script
6fa75c02caa53d57c3ffdf5f098de43a62b38346
68098875a2fb3668e4d15ba11079de6adebc6b7f
refs/heads/master
2020-06-22T11:29:47.660370
2019-07-19T06:18:00
2019-07-19T06:18:00
197,707,076
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
import time import os path1 = os.path.dirname(__file__) path2 = os.path.abspath(path1) file_path = path2 + "\\script\\"+ os.path.basename(__file__) + time.strftime('%Y-%m-%d_%H_%M_%S',time.localtime(time.time()))+".ps" def do_write(unit): with open(file_path, 'a') as fi: fi.write(""" delete interfac...
[ "a322494@ecitele.com" ]
a322494@ecitele.com
d1d80510462153641b3db531d5ee83d2bbdb7e9e
aff88e0922ae5c75f18b624cb1c81c263d12f2af
/demo1.py
ca6ff371ae12957bb3281cbb1a7044d31462a285
[]
no_license
TianJin85/Qtwindow
44f42c8972382bcdbde7bc26a4a7f5121736e0aa
3af712d8528d825cb3cecd6bc21c8f836232e775
refs/heads/master
2020-10-01T23:05:30.271773
2020-02-09T14:39:12
2020-02-09T14:39:12
227,642,240
0
0
null
null
null
null
UTF-8
Python
false
false
233
py
from functools import reduce import multiprocessing as mp def power(x): return pow(x, 2) if __name__ == '__main__': with mp.Pool(processes=4) as mpp: print(reduce(lambda a,b:a+b, mpp.map(power, range(1000000)), 0))
[ "307440205@qq.com" ]
307440205@qq.com
2369da0dc42e7ab848f15a78cd611dd640c5f92c
334c1e0904abbb445bd9e57a0f3396bab0704391
/src/wait_travis/__init__.py
92d8b53db7aba50b72b33a56c05af8584a3001a3
[ "MIT" ]
permissive
tkf/wait-travis
11d5fd24b3a364a82791e21ad1c9ab359fa1acad
9067ed5611bfb95a2ff1caf8ada04f46292882c6
refs/heads/master
2020-05-17T15:41:39.410710
2019-05-15T02:33:55
2019-05-15T02:33:55
183,798,313
0
0
null
null
null
null
UTF-8
Python
false
false
83
py
""" """ __version__ = "0.0.0" __author__ = "Takafumi Arakaki" __license__ = "MIT"
[ "aka.tkf@gmail.com" ]
aka.tkf@gmail.com
e5c0da5013ff544c40fa5ea29e684739ca379b5b
ade7b1699bbe32d028c5de31ce46456279495be3
/hr_ykp_appraisal/models/survey.py
bfcb1bf292ae9dac2be6d950a6aacaa751c7d75f
[]
no_license
Jacky-odoo/HRIS-YKP-Flectra
1a3806f672cfb85fc5ccdb2aae03875dc323a2a3
3528dd0d7999f66ed1f891fc09a9fd19b54568f2
refs/heads/main
2023-06-22T18:23:52.746293
2021-07-16T06:48:37
2021-07-16T06:48:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,263
py
import datetime from flectra import models, fields, api, exceptions class survey_department(models.Model): _inherit = 'survey.survey' survey_department = fields.Boolean('Survey Department ?') survey_department_pengurus = fields.Boolean('Survey Department ?') class survey_department_input_employee(mode...
[ "87510026+bambangbc@users.noreply.github.com" ]
87510026+bambangbc@users.noreply.github.com
9c4aed42fc02d50ba07c50728a9b03ece7bb1970
9f1b8a1ada57198e2a06d88ddcdc0eda0c683df7
/submission - lab9/set 2/CAMPBELL BRUCE MOUSSEAU_19357_assignsubmission_file_mousseau lab 9/Lab 9/F_lab9.py
bb9c65726ec9bdb0d3488718768f1c37904455b6
[]
no_license
sendurr/spring-grading
90dfdced6327ddfb5c311ae8f42ae1a582768b63
2cc280ee3e0fba02e95b6e9f45ad7e13bc7fad54
refs/heads/master
2020-04-15T17:42:10.781884
2016-08-29T20:38:17
2016-08-29T20:38:17
50,084,068
0
0
null
null
null
null
UTF-8
Python
false
false
281
py
from math import sin, exp class F: def __init__(self, a, w): self.a=a self.w=w def value(self, x): a=self.a w=self.w return (exp(-a*w) * sin(w*x)) from math import * f=F(a=1.0, w=0.1) print (f.value(x=pi)) f.a=2 print (f.value(pi))
[ "sendurr@hotmail.com" ]
sendurr@hotmail.com
ff89eb4d5c2d646dc3211be325271739912e9dde
aeea7889a986e23ababbfc470e5fa97a4982bca0
/devel/lib/python2.7/dist-packages/pal_detection_msgs/msg/_PersonDetection.py
fd4ae5612ff1bd1d70ee0f4f02efbd51a009a5a6
[]
no_license
robstolarz/sturdy-broccoli
834798751985a0e77c8791859d9d5a8398da0416
2e4ae8f1966f01cab4938b8c5b42e3cfd1d9370a
refs/heads/master
2021-01-20T07:09:07.867184
2017-05-15T14:10:56
2017-05-15T14:10:56
89,967,465
0
0
null
null
null
null
UTF-8
Python
false
false
25,079
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from pal_detection_msgs/PersonDetection.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import pal_detection_msgs.msg import geometry_msgs.msg import std_msgs.msg class P...
[ "robert.stolarz@yandex.com" ]
robert.stolarz@yandex.com
c0827833120ab94824dfba053e146e015ac45730
2426d928a67177cfb19a4ff292003c825ed47867
/ipfy.py
b43a7fcbe3d8b930c4c08d1bdbd470664930b061
[]
no_license
Cicadadenis/ipfy
b6678e59802bce4656a94affd1f00f8b94d2289b
e8c07e930132419e2810d9d84f6e445ddf420096
refs/heads/master
2023-04-11T02:16:48.125099
2021-04-24T09:53:30
2021-04-24T09:53:30
245,186,411
0
0
null
null
null
null
UTF-8
Python
false
false
1,576
py
#!/data/data/com.termux/files/bin/python # Importing Modules \(o,,,o)/ import argparse import requests, json import sys from sys import argv import os # Arguments *_* parser = argparse.ArgumentParser() parser.add_argument("-t", help="target ip address", type=str, dest='target', required=True) args = parser.parse_arg...
[ "noreply@github.com" ]
Cicadadenis.noreply@github.com
e3d261ac37e1ded386e09cd0159bdcde4e4042ab
d1c67f2031d657902acef4411877d75b992eab91
/swagger_client/api/team_role_api.py
63f1df384dc842829de7c7e86a5348712d7e17a4
[]
no_license
Certn/opsgenie-python
c6e6a7f42394499e5224d679cc9a449042fcf9c3
bd5f402f97d591e4082b38c938cbabca4cf29787
refs/heads/master
2023-01-01T10:45:13.132455
2020-10-27T17:40:01
2020-10-27T17:40:01
307,769,432
0
0
null
null
null
null
UTF-8
Python
false
false
26,093
py
# coding: utf-8 """ Opsgenie REST API Opsgenie OpenAPI Specification # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library imp...
[ "john@oram.ca" ]
john@oram.ca
bd8d84b918beaabd5e6610d1523419e5595511d3
a86a66797ff79286ca209cc972a84fa005e8d34e
/8/test.py
f2776c229d1452e5788eed74e6bdced0e93f0bf7
[]
no_license
se2313se/basics-of-programming-on-Python
523d676440d7eb5b58876f068eb88b72274eb909
37fe6b24a55a02857de73c8b6f2914e37302fd0b
refs/heads/master
2023-06-04T16:48:28.160554
2021-06-24T17:18:25
2021-06-24T17:18:25
379,999,853
0
0
null
null
null
null
UTF-8
Python
false
false
61
py
import functools c = functools.lru_cache() c=[1,2,4] c.sort
[ "71695356+se2313se@users.noreply.github.com" ]
71695356+se2313se@users.noreply.github.com
86cd49263a94bae1a4f9756c13dc8b219517d7a6
ee8c4c954b7c1711899b6d2527bdb12b5c79c9be
/stride/code/test_model_isnumber.py
20c13f6595ef3ad50a89ca6a482a549016b2dc7a
[]
no_license
sqlconsult/byte
02ac9899aebea4475614969b594bfe2992ffe29a
548f6cb5038e927b54adca29caf02c981fdcecfc
refs/heads/master
2021-01-25T14:45:42.120220
2018-08-11T23:45:31
2018-08-11T23:45:31
117,135,069
0
0
null
null
null
null
UTF-8
Python
false
false
726
py
#!/usr/bin/env python3 import model as model def test_int(): """ Tests string to integer conversion method :return: """ valid = model.is_number('123', 'int') invalid = model.is_number('abc', 'int') assert valid assert not invalid def test_float(): """ Tests string to float c...
[ "sqlconsult@hotmail.com" ]
sqlconsult@hotmail.com
2e80a8ba7a2b19d5882eeb8be77b4fba4f3fc1aa
dd3b8bd6c9f6f1d9f207678b101eff93b032b0f0
/basis/AbletonLive10.1_MIDIRemoteScripts/Push2/device_decorator_factory.py
5bac61c8d827735830b66c528955aade31520982
[]
no_license
jhlax/les
62955f57c33299ebfc4fca8d0482b30ee97adfe7
d865478bf02778e509e61370174a450104d20a28
refs/heads/master
2023-08-17T17:24:44.297302
2019-12-15T08:13:29
2019-12-15T08:13:29
228,120,861
3
0
null
2023-08-03T16:40:44
2019-12-15T03:02:27
Python
UTF-8
Python
false
false
1,633
py
# uncompyle6 version 3.4.1 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.16 (v2.7.16:413a49145e, Mar 2 2019, 14:32:10) # [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] # Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/Push2/device...
[ "jharrington@transcendbg.com" ]
jharrington@transcendbg.com
cd9e73d41dc2241b16dfbc7daaa4630b0dd1ec66
535503dc18c38b92f8520289da5b4fa42b0a722a
/code/alp/dick_vs_full_rabi.py
2f173bc6a297c98315ac4e5f63c8fee61dbd48e7
[]
no_license
jamesbate/phd_code
fbbbf7657c428a0a1f18768edca1dfce56801cc1
7e71d7f041835497fb421dd741c644ab5c8e3805
refs/heads/master
2023-05-07T10:31:22.168217
2021-05-26T15:00:40
2021-05-26T15:00:40
371,073,491
0
0
null
null
null
null
UTF-8
Python
false
false
2,173
py
"""This code produces plot comparing full rabi flops to dicke approxiamtion """ import matplotlib.pyplot as plt import numpy as np from lib import rabi_flops_LD_blue, rabi_flops_LD_red, rabi_flops_LD_carrier, full_Rabi #prepare figure plt.rcParams.update({'font.size': 16}) colours = ['b','m','c','r','tab:orange', 'tab...
[ "james.bate@oriel.ox.ac.uk" ]
james.bate@oriel.ox.ac.uk
87d7fd11524661149b94c7e22c6ec66379ffd56d
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-mrsp.0/mrsp_ut=3.5_rd=0.5_rw=0.06_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=51/sched.py
c6369ed663e2d0e6f57eee467dc23159100ebf39
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
-S 0 -X RUN -Q 0 -L 3 79 250 -S 0 -X RUN -Q 0 -L 3 69 200 -S 0 -X RUN -Q 0 -L 3 65 400 -S 1 -X RUN -Q 1 -L 3 60 200 -S 1 -X RUN -Q 1 -L 3 60 300 -S 2 -X RUN -Q 2 -L 2 55 200 -S 2 -X RUN -Q 2 -L 2 49 300 -S 1 -X RUN -Q 3 -L 2 40 150 -S 1 -X RUN -Q 3 -L 2 38 200 -S 3 38 200 -S 3 28 1...
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
5482ff8f6ceaa7941208ff40c42c458cd189178e
2c8ef7156d4aae04da7b88722e71acc69f19d532
/tests/test_logout.py
8a2e051d1a5f66109620e54af7f144950a274b20
[ "ISC" ]
permissive
iSevenDays/aiohttp-login
4b02c1239385b506f8afb461a290a34fc83a6bc8
77ed94def31f8e8ba12683a9f8431f68b76662a5
refs/heads/master
2021-06-18T12:24:37.416232
2021-06-11T22:19:54
2021-06-11T22:19:54
84,658,045
0
0
ISC
2021-06-11T22:20:17
2017-03-11T15:00:36
Python
UTF-8
Python
false
false
764
py
from utils import log_client_in from utils import * # noqa from aiohttp_login import cfg, url_for async def test_logout(client): login_url = url_for('auth_login') change_email_url = url_for('auth_change_email') user = await log_client_in(client) # try to access protected page r = await client.ge...
[ "imbolc@imbolc.name" ]
imbolc@imbolc.name
c214386013b9ebdaba8ab7e3a0eb31018ac59dcd
a331955dc07caab0d29199cdc3b7b410d37ec4cc
/api/migrations/0065_auto_20191220_1849.py
cf0160ed208867ef7e02c253ee5b29765568e851
[]
no_license
JobCore/api
7a890be853ada4fd24bb5e809ad7d48f9573fbcc
188585150f2a969aa1303381bf5ddd0897f5444c
refs/heads/master
2023-02-23T18:18:09.186768
2022-04-15T18:02:14
2022-04-15T18:02:14
143,315,392
3
6
null
2023-02-10T22:46:18
2018-08-02T15:46:46
Python
UTF-8
Python
false
false
971
py
# Generated by Django 2.2.6 on 2019-12-20 18:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0064_clockin_automatically_closed'), ] operations = [ migrations.AddField( model_name='employer', name='statu...
[ "aalejo@gmail.com" ]
aalejo@gmail.com
72cc13393588d1c4fe146f9c3048f8ea8edcdfdd
9ceacf33fd96913cac7ef15492c126d96cae6911
/regress/sys/netinet/frag/frag_overreplace.py
0335d94638555699e30f12aa9b282a63aaed7d3f
[ "ISC" ]
permissive
openbsd/src
ab97ef834fd2d5a7f6729814665e9782b586c130
9e79f3a0ebd11a25b4bff61e900cb6de9e7795e9
refs/heads/master
2023-09-02T18:54:56.624627
2023-09-02T15:16:12
2023-09-02T15:16:12
66,966,208
3,394
1,235
null
2023-08-08T02:42:25
2016-08-30T18:18:25
C
UTF-8
Python
false
false
2,096
py
#!/usr/local/bin/python3 print("ping fragment that overlaps fragment at index boundary and replace it") # index boundary 4096 | # |--------------| # .... # |--------------| # |XXXX-----| # ...
[ "bluhm@openbsd.org" ]
bluhm@openbsd.org
fd667264c7818081662e5f557191bd01a6e2da41
96a34a048c783a75736bf0ec775df22142f9ee53
/services/director-v2/src/simcore_service_director_v2/modules/dynamic_sidecar/volumes.py
e00a4177cdd72396a0fad3a1a9a4a47204bc18bd
[ "MIT" ]
permissive
ITISFoundation/osparc-simcore
77e5b9f7eb549c907f6ba2abb14862154cc7bb66
f4c57ffc7b494ac06a2692cb5539d3acfd3d1d63
refs/heads/master
2023-08-31T17:39:48.466163
2023-08-31T15:03:56
2023-08-31T15:03:56
118,596,920
39
29
MIT
2023-09-14T20:23:09
2018-01-23T10:48:05
Python
UTF-8
Python
false
false
7,030
py
import os from pathlib import Path from typing import Any from models_library.projects import ProjectID from models_library.projects_nodes_io import NodeID from models_library.services import RunID from models_library.users import UserID from servicelib.docker_constants import PREFIX_DYNAMIC_SIDECAR_VOLUMES from setti...
[ "noreply@github.com" ]
ITISFoundation.noreply@github.com
fa6faaa2a3ac3120c488cbf191d6b83fd1183291
1cd603a4b003f9cc6b1e3366988440e47f9b03f3
/chembl_business_model/tasks.py
029e26706cb48dc43c2f648513e5f77d9857082a
[ "Apache-2.0" ]
permissive
chembl/chembl_business_model
5e2162c01141f1a25e932839dcda3286462a54db
e7f7df93479cd3bac292a89cfbf1a75d9c80dda5
refs/heads/master
2020-04-27T16:52:25.665777
2017-01-11T13:47:22
2017-01-11T13:47:22
27,773,907
1
2
null
2015-03-23T09:00:02
2014-12-09T15:49:48
Python
UTF-8
Python
false
false
17,755
py
__author__ = 'mnowotka' from celery import shared_task from rdkit import Chem from rdkit.Chem import Draw from rdkit.Chem import Crippen from rdkit.Chem.rdmolfiles import MolToMolBlock from rdkit.Chem import rdMolDescriptors as Descriptors from rdkit.Chem.SaltRemover import SaltRemover from chembl_business_model.indig...
[ "mnowotka@ebi.ac.uk" ]
mnowotka@ebi.ac.uk
c5ef0a3265d4cd7a91dfae206cdb325501e60056
132b261b16338cb7b9297bd04eaaaafe34bde89e
/sendSMSSkillLambda/package/ask_sdk_model/slu/entityresolution/resolution.py
23cdb26aa058fc10f7e1bea83da45533228073ea
[ "Apache-2.0" ]
permissive
ziniman/aws-alexa-lambda-workshop
2835b998272b01856d3dbea6481e9ee4457da2f2
d1e291ebd3e20132098541c92735d29491bfc932
refs/heads/master
2020-06-25T22:58:04.814822
2019-09-08T10:37:00
2019-09-08T10:37:00
199,446,036
0
3
Apache-2.0
2019-09-05T09:03:12
2019-07-29T12:11:58
Python
UTF-8
Python
false
false
4,131
py
# coding: utf-8 # # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file # except in compliance with the License. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "lice...
[ "oritalul@amazon.com" ]
oritalul@amazon.com
7ad29cf02e7da5b8275d98000702b09da5d173cd
6c92fddbdfce8407758632d48b77a01c77ab49c8
/contratospr/users/migrations/0001_initial.py
03329cc854caa139ea22f8960674e0814b7a2538
[ "Apache-2.0" ]
permissive
jycordero/contratospr-api
1ed0245b4b2291ed83c5bb32fb0d55d6f797c3d2
6778b02b42305aa7ce65c956a0d89029ddd857a4
refs/heads/main
2023-03-25T01:05:13.170671
2021-02-22T16:48:43
2021-02-22T16:48:43
343,995,328
0
0
Apache-2.0
2021-03-03T03:57:23
2021-03-03T03:57:23
null
UTF-8
Python
false
false
4,835
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-06-20 13:29 from __future__ import unicode_literals import django.contrib.auth.models import django.contrib.auth.validators import django.utils.timezone from django.db import migrations, models class Migration(migrations.Migration): initial = True ...
[ "jpadilla@webapplicate.com" ]
jpadilla@webapplicate.com
3371395815c8d3c4a5fde21fed0ed3cf0ae7156e
0eeec1dc7d76f40be7e048480dcfeaebb2638706
/src/box.py
3d697459431650eba947026561a68c842b908b38
[]
no_license
amlucas/meshTools
6e69f56d9e7c9074378f8030fe73290b829d6df7
15523e4719935606a3aa47ef04eb2d6bc23aacdf
refs/heads/master
2020-04-07T12:39:54.960705
2019-08-09T13:06:44
2019-08-09T13:06:44
158,376,167
0
0
null
null
null
null
UTF-8
Python
false
false
1,324
py
#! /usr/bin/env python import pymesh, argparse def create_box_simple(box_min, box_max): import numpy as np vertices = np.array([ [box_min[0], box_min[1], box_min[2]], [box_max[0], box_min[1], box_min[2]], [box_max[0], box_max[1], box_min[2]], [box_min[0], box_max[1], box_m...
[ "lucas.amoudruz@wanadoo.fr" ]
lucas.amoudruz@wanadoo.fr
3e85d0358cd1bb8e64df6ae82dc60a06a038a5f8
ce083128fa87ca86c65059893aa8882d088461f5
/python/pytest-labs/.venv/lib/python3.6/site-packages/facebook_business/adobjects/pagepaymentoptions.py
f1879619b1cdd28a05be92d0a9ad31805bdfff03
[]
no_license
marcosptf/fedora
581a446e7f81d8ae9a260eafb92814bc486ee077
359db63ff1fa79696b7bc803bcfa0042bff8ab44
refs/heads/master
2023-04-06T14:53:40.378260
2023-03-26T00:47:52
2023-03-26T00:47:52
26,059,824
6
5
null
2022-12-08T00:43:21
2014-11-01T18:48:56
null
UTF-8
Python
false
false
2,036
py
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
[ "marcosptf@yahoo.com.br" ]
marcosptf@yahoo.com.br
272af5cd8cfc1ba7d535185b62c6a901be3a0963
428ef63ed64396b5a5b7f43fb231048651ec182b
/project_test/project/settings.py
017e4aa20099fbc544eec6618d13b4052cb87a2a
[ "MIT" ]
permissive
Air-Mark/djangocodemirror
fbda8fe07fbe5b923def48e542fe10bdd3f7ead6
977386e63526f7ea260d14eebb163cb430dd9d44
refs/heads/master
2021-01-19T21:06:12.190215
2017-04-18T09:33:29
2017-04-18T09:33:29
88,607,558
0
0
null
2017-04-18T09:33:07
2017-04-18T09:33:07
null
UTF-8
Python
false
false
4,016
py
""" Django settings for sample project. Generated by 'django-admin startproject' using Django 1.8.13. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ NOTE: Currently ...
[ "sveetch@gmail.com" ]
sveetch@gmail.com
489dd39f8d643749a7275fcd58a8d90f341dafe0
254ef44b90485767a3aea8cbe77dc6bf77dddaeb
/38外观数列.py
1ae7c83502ef1ff137cd74dc3076b10236396e59
[]
no_license
XinZhaoFu/leetcode_moyu
fae00d52a52c090901021717df87b78d78192bdb
e80489923c60ed716d54c1bdeaaf52133d4e1209
refs/heads/main
2023-06-19T02:50:05.256149
2021-07-09T00:50:41
2021-07-09T00:50:41
331,243,022
0
0
null
null
null
null
UTF-8
Python
false
false
1,145
py
""" 给定一个正整数 n ,输出外观数列的第 n 项。 「外观数列」是一个整数序列,从数字 1 开始,序列中的每一项都是对前一项的描述。 你可以将其视作是由递归公式定义的数字字符串序列: countAndSay(1) = "1" countAndSay(n) 是对 countAndSay(n-1) 的描述,然后转换成另一个数字字符串。 """ class Solution(object): def countAndSay(self, n): """ :type n: int :rtype: str """ count_and_say...
[ "948244817@qq.com" ]
948244817@qq.com
d6c0124d31535c92b743ddd1f398fb6f785d9e54
95739fd7e64b0b733793d30c99e2f1a5ebe1a382
/Strings/splitIntoLRStrings/split.py
5d8b176b55bfb524e562d18463a78b2415fda763
[]
no_license
vcchang-zz/coding-practice
183f2ef6cc0aa76c819ec69e2bfbe4310ee95109
67ef6117a0e475345ddd6c1010885d6942da8b67
refs/heads/master
2022-02-28T19:10:33.297383
2019-11-18T08:26:11
2019-11-18T08:26:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,514
py
# Find maximum number of 'LR'/'RL' substrings # Time: O(n) -> iterate through each char in given s of len n # Space: O(n) -> build stack of at most len n def split(s: str): result = 0 stack = [] i = 0 while i < len(s): if len(stack) == 0 and s[i] == 'L': while i < len(s) and s[i]...
[ "vcchang@users.noreply.github.com" ]
vcchang@users.noreply.github.com
00998cfd683190bc9daba43cd0c849f733c23379
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_buttressing.py
496291bd1bd114cdd3783ae3bd5eccbebcb82839
[ "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
256
py
from xai.brain.wordbase.verbs._buttress import _BUTTRESS #calss header class _BUTTRESSING(_BUTTRESS, ): def __init__(self,): _BUTTRESS.__init__(self) self.name = "BUTTRESSING" self.specie = 'verbs' self.basic = "buttress" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com