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
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
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
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
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
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
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
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
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
abd55fff1b001ff3becce11b8f04db976569f22e
1f3194a70bb89affa0281e5463269df7f64fa994
/hackerrank/maximise-it.py
e5ab8e61d86568a799b6cab5351249a2aad38723
[]
no_license
deepakchandh/competitive
58e4143c232c0a343d0747c022548f23990c2fc4
1a18e7470b6c2887e49361dd464a1706c371f0be
refs/heads/master
2020-04-06T18:18:54.928405
2018-11-15T10:39:23
2018-11-15T10:39:23
157,693,702
1
0
null
2018-11-15T10:31:04
2018-11-15T10:31:03
null
UTF-8
Python
false
false
218
py
k, m = map(int, raw_input().split()) import itertools ls = [] for _ in xrange(k): ls.append(map(lambda x:x**2, map(int, raw_input().split()[1:]))) print max(map(lambda x:x%m, map(sum, itertools.product(*ls))))
[ "avi.aryan123@gmail.com" ]
avi.aryan123@gmail.com
1d278c8edab4c51c36daaf1d3b3a55ac92845f91
48da1cc4ff2148f42a9713920b7e4e8cd5240b2b
/booker/settings.py
fa9bfbc6588524f7b485618a87fc9c2ffb287dd8
[]
no_license
win777g/booker_backend
91ff197688d025c4a7286ac70014a5b19a001685
593417eef1ccb1779e4eb0eabfe67fab2ed37b33
refs/heads/master
2022-06-08T15:30:22.757206
2020-01-28T12:35:27
2020-01-28T12:35:27
236,739,191
0
0
null
2022-05-25T02:44:17
2020-01-28T13:16:17
Python
UTF-8
Python
false
false
5,070
py
""" Django settings for dj_backend project. Generated by 'django-admin startproject' using Django 2.2.1. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os...
[ "win21g@mail.ru" ]
win21g@mail.ru
ec2d9e087a2156a013066577811e66b731e52bfb
dd6297fc583860c9bf5f47b407e3430cda004dde
/tests/test_darts.py
6005768f7cc5402241cb0ec3dcd72452951351da
[ "Apache-2.0" ]
permissive
veritynoob/python-darts
0d32e4b92d91c709dee97dc14066347889e85061
fbebf1b3fc379afa99944cca50acbc02ba72411f
refs/heads/master
2020-05-23T08:10:48.165357
2014-03-07T10:21:21
2014-03-07T14:10:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
641
py
# -*- coding: utf-8 -*- import sys import os import unittest from nose.tools import * err = sys.stderr from darts import Darts class TestDarts(unittest.TestCase): def setUp(self): data_path = os.path.join(os.path.dirname(__file__), 'mock_data.darts') self._ins = Darts(data_path) def test_...
[ "ikuya@ikuya.net" ]
ikuya@ikuya.net
157c3a0c40e118adfd794b9feb813995acaf6ae4
8e5d44c70978b7c9ac259adc31f6f9156ac936db
/helusers/urls.py
9f886f236d9467ccc2837ccac5458d9adc260dc9
[ "BSD-2-Clause" ]
permissive
tommimanbytes/django-helusers
60a950c5030a63356b7e2c75e74336474ddfd047
f31d22a59e78a5a119f721d7ae5afa16602028de
refs/heads/master
2021-03-08T13:22:57.787460
2020-01-28T12:21:40
2020-01-28T12:21:40
246,348,419
0
0
BSD-2-Clause
2020-03-10T16:12:00
2020-03-10T16:11:59
null
UTF-8
Python
false
false
563
py
"""URLs module""" from django.urls import path from django.conf import settings from django.core.exceptions import ImproperlyConfigured from . import views app_name = 'helusers' urlpatterns = [ path('logout/', views.LogoutView.as_view(), name='auth_logout'), path('logout/complete/', views.LogoutCompleteView....
[ "juha.yrjola@iki.fi" ]
juha.yrjola@iki.fi
4e801cd7f9fa6def00c0bec6926f95c343631736
584db1be8b6bdedaa56d186692ad72da5ee07164
/patron/tests/unit/scheduler/filters/test_retry_filters.py
03b0e77d37fadcfea2b203a179a5741c78eff48b
[ "Apache-2.0" ]
permissive
casbin/openstack-patron
66006f57725cf1c3d735cd5529d3459fd77384c8
b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25
refs/heads/master
2023-05-31T05:23:37.721768
2015-12-31T12:18:17
2015-12-31T12:18:17
382,054,546
0
0
null
null
null
null
UTF-8
Python
false
false
1,935
py
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
[ "hsluoyz@qq.com" ]
hsluoyz@qq.com
201462d73fbc31fcfb0a63611fb330dc99024f9a
5cec1ff43bf38cf31316254dabe3f972d38744ad
/src/hydrat/corpora/langid/acl2011.py
fdbd31fb88a5161451f55b4d3ed1863efe994fce
[]
no_license
eyadsibai/hydrat
7fb63f3c54f1fca25d04ab7266712c1077ffa2e3
5a68c6b8f32bc6bad59c3f002340bf7ef62e868c
refs/heads/master
2016-09-06T14:16:46.082697
2013-08-06T05:14:02
2013-08-06T05:14:02
33,199,904
1
0
null
null
null
null
UTF-8
Python
false
false
805
py
from hydrat import config from hydrat.dataset.iso639 import ISO639_1 from hydrat.dataset.text import ByteUBT, SingleDir from hydrat.dataset.encoded import CodepointUBT, UTF8 from hydrat.dataset.split import CrossValidation from hydrat.configuration import Configurable, DIR class Wiki10k(Configurable, ISO639_1, UTF8, C...
[ "saffsd@gmail.com" ]
saffsd@gmail.com
e0eb80c1116dd85abdd4c4f684c80f82dcb013ec
53e99ac63c093cf9d6b6061386229a52ae851fef
/_1_PythonBasic/Modules.py
8e65b767e7cfd787c7ca9b8a70bfc054a4b84f08
[]
no_license
zouwen198317/TensorflowPY36CPU
d33c1ef3fd0580f498caf512eb5e2db078202c53
97d1d815efbef7e531aa6fbd10c8806bef0710e7
refs/heads/master
2021-08-31T04:22:19.828203
2017-12-20T10:11:05
2017-12-20T10:11:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
165
py
import math class ModulesDemo(): def buildin_Modules(self): print(math.sqrt(100)) print(math.sqrt(200)) m = ModulesDemo() m.buildin_Modules()
[ "em3888@gmail.com" ]
em3888@gmail.com
c233bacb97efe39e05892848a99b0eee5d880136
7702446393583be7e29e26ca0911c938bb61f79f
/tests/test_objects.py
2b208055b4d50b376b3c7879d888bceb2bd2b9f3
[]
no_license
RussellLuo/easyconfig
d554953600d78a0563d5b2f035e561541b41d5f6
a599ae95750be92547f6b5df15872cd347222f61
refs/heads/master
2020-05-19T12:57:22.751638
2017-11-02T01:57:36
2017-11-02T01:57:36
28,290,302
4
0
null
null
null
null
UTF-8
Python
false
false
2,258
py
# -*- coding: utf-8 -*- import os import pytest from easyconfig import str_object, envvar_object class TestObjects(object): def test_valid_str_object(self): obj = str_object('configs.default_config') assert obj.DEBUG assert obj.PORT == 5000 assert obj.SECRET_KEY == '123***456' ...
[ "luopeng.he@gmail.com" ]
luopeng.he@gmail.com
387482384e4dd046d7add4e9d91323b0feff67a1
90d06e9cacd52f2ba07d55dd852cb3cb7171c452
/leetcode/_380_InsertDeleteGetRandomO1.py
13512bbfe2e5287bd9d8b1aa137a925219712dc1
[]
no_license
shahidul2k9/problem-solution
efd91af08e103b552a225bca37660c51c60b98f2
0e970ac9c72f2ba13e66c180b208a2ec53886cd1
refs/heads/master
2022-10-16T04:04:31.556454
2022-09-24T08:09:46
2022-09-24T08:09:46
19,431,424
51
92
null
2022-09-24T08:09:47
2014-05-04T17:13:28
C++
UTF-8
Python
false
false
1,013
py
import random class RandomizedSet: def __init__(self): self.index_map = dict() self.val_seq = [] def insert(self, val: int) -> bool: index_map = self.index_map if val in index_map: return False else: index = len(self.val_seq) index_...
[ "shahidul2k9@gmail.com" ]
shahidul2k9@gmail.com
c4b8c62f5834dc6196a1cdfc3d83e3eda3d86ded
2a1b8a671aceda6bc446f8ce26400aa84fa444a6
/Packs/ForescoutEyeInspect/Scripts/ForescoutEyeInspectButtonGetVulnerabilityInfo/ForescoutEyeInspectButtonGetVulnerabilityInfo.py
6d2dfea341558f8ac93a1816c1bfe95c7672c67c
[ "MIT" ]
permissive
demisto/content
6d4722d46f0ff0beea2748e9f7de585bf91a78b4
890def5a0e0ae8d6eaa538148249ddbc851dbb6b
refs/heads/master
2023-09-04T00:02:25.618032
2023-09-03T21:56:22
2023-09-03T21:56:22
60,525,392
1,023
1,921
MIT
2023-09-14T20:55:24
2016-06-06T12:17:02
Python
UTF-8
Python
false
false
595
py
import demistomock as demisto from CommonServerPython import * def get_cve(): cve_id = demisto.args().get('cve_id') if not cve_id: return_error('Missing CVE ID.') return demisto.executeCommand('forescout-ei-vulnerability-info-get', {'cve_id': cve_id}) def main(): try: return_results...
[ "noreply@github.com" ]
demisto.noreply@github.com
556da0869ff035d8d7bacb7fd7b934185e14653b
a55a2d6af33fcb46283bee27a930cbae67cc0d83
/hparams.py
e68e76ebe0c7e89f09f8e07cc47911b861a89152
[]
no_license
xcmyz/GST-Tacotron
b5a2eed58def49120d3dc2fd0588ed17c783bf0e
7ff97fe6b3ca522d42dd32f1089ee829dc801cd4
refs/heads/master
2020-04-24T14:33:13.384029
2019-02-22T14:04:56
2019-02-22T14:04:56
172,024,521
1
1
null
null
null
null
UTF-8
Python
false
false
1,050
py
# Preprocess cleaners = 'english_cleaners' # Audio: num_mels = 80 n_mels = 80 num_freq = 1025 sample_rate = 20000 frame_length_ms = 50 frame_shift_ms = 12.5 preemphasis = 0.97 min_level_db = -100 ref_level_db = 20 griffin_lim_iters = 60 power = 1.5 n_fft = 2048 n_iter = 50 # max_db = 100 # ref_db = 20 # Model: E = 2...
[ "noreply@github.com" ]
xcmyz.noreply@github.com
85363835deab82e3430cbf858b2eb89c7ee9e4c6
5f4e13201d4c5b7edc8dbbda289380682a187bec
/nlpfr/nltk/stem/wordnet.py
e34292f9efaa40eaf268bd03c313c4d2f95de5ba
[]
no_license
intellivoid/CoffeeHousePy
92f4fb344de757837c3d3da05cb5513e90408039
57c453625239f28da88b88ddd0ae5f1ecdd4de3c
refs/heads/master
2023-02-23T14:32:01.606630
2021-01-28T02:57:10
2021-01-28T02:57:10
324,419,067
0
2
null
null
null
null
UTF-8
Python
false
false
1,322
py
# Natural Language Toolkit: WordNet stemmer interface # # Copyright (C) 2001-2019 NLTK Project # Author: Steven Bird <stevenbird1@gmail.com> # Edward Loper <edloper@gmail.com> # URL: <http://nltk.org/> # For license information, see LICENSE.TXT from nltk.corpus.reader.wordnet import NOUN from nltk.cor...
[ "netkas@intellivoid.info" ]
netkas@intellivoid.info
cb9151a77cd1ec635a88b99df80f378fbcf242fb
eb9597c78d4bee2a0ebdcf147490eb514cb7a565
/samples/module_sample/usqlite/test_python/test_python.py
c70fda3f32e239bfd1594dfb9f508081bab05fca
[]
no_license
Bayonetta5/socketpro
fede51bcc6d1e6f91d8060e1e9c4149b6a8c2163
ddefe87e0572fde6f12930d867c2c10aed8a980e
refs/heads/master
2020-03-09T15:51:15.000640
2018-04-07T18:48:01
2018-04-07T18:48:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,711
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys from spa import Pair from spa.udb import * from spa.clientside import CSocketPool, CConnectionContext, CSqlite, CUQueue import datetime with CSocketPool(CSqlite) as spSqlite: print('Remote async sqlite server host: ') cc = CConnectionContext(sys.stdin.r...
[ "support@udaparts.com" ]
support@udaparts.com
1f502fe59baef7019192d84d80899a3a869ae157
0072acbd082e994d7fc51b00ba7ef1470042dac3
/movies/movie/models.py
f5fa2ed7b40db0347c64788bf3157dccc6eec7be
[]
no_license
jaybenaim/day22-data-modeling
fd8a5e512115f1f235c987a93afadbb610a86ee6
cdf8e087c17e4b47e2f32fd24e1e14452a0b61f8
refs/heads/master
2022-11-04T00:33:59.103810
2019-08-01T04:28:27
2019-08-01T04:28:27
199,929,719
0
1
null
2022-10-20T08:58:40
2019-07-31T21:12:04
Python
UTF-8
Python
false
false
701
py
from django.db import models class Viewer(models.Model): name = models.CharField(max_length=255) films = models.ManyToManyField('Film') def __str__(self): return f'{self.name} ' class Film(models.Model): name_of_film = models.CharField(max_length=255) # viewers = models.Foreig...
[ "benaimjacob@gmail.com" ]
benaimjacob@gmail.com
7e64fba06f1c66052bced856711f1e9be047b79e
0a6d0ea3a60ece86ec477e490605b063b2e8c060
/calcAverageDurationAs2ndWordInFile.py
0acddb31ed92ef920406e9a3d975e9e4ebb603b1
[]
no_license
alclass/bin
bdbe063d629c05e17f64dc27f71211e5881e1f3b
b4c5642c8d5843846d529630f8d93a7103676539
refs/heads/master
2023-07-24T11:36:50.009838
2023-07-09T20:26:42
2023-07-09T20:26:42
17,493,545
0
0
null
null
null
null
UTF-8
Python
false
false
2,490
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import glob, sys DEFAULT_EXTENSION = 'mp4' def calcAverageDurationAs2ndWordInFile(files): ''' ''' total_duration = 0; n_counts = 0 for eachFile in files: try: word = eachFile.split()[1] if word.find('h') > -1: hours, minutes = word.split(...
[ "livrosetc@yahoo.com.br" ]
livrosetc@yahoo.com.br
4e8647f661d6e79fbed4f1c02d6a128b5a187d7b
cc87a78151e3229ab408f8562fb2ee0c90af9d43
/hothouse/cli.py
2d889b2baa4df074a8e517df5d50809000252903
[ "MIT" ]
permissive
cropsinsilico/hothouse
c6823bbde426d2dfced10e314af1b4a34181f474
11bda5941ee84ad024f8b73a4cdbe82b4be16f18
refs/heads/master
2023-01-12T08:59:11.871734
2021-06-09T17:51:06
2021-06-09T17:51:06
179,533,155
0
3
MIT
2022-12-26T20:47:17
2019-04-04T16:12:12
Python
UTF-8
Python
false
false
401
py
# -*- coding: utf-8 -*- """Console script for hothouse.""" import sys import click @click.command() def main(args=None): """Console script for hothouse.""" click.echo("Replace this message by putting your code into " "hothouse.cli.main") click.echo("See click documentation at http://click.pocoo.org/") ...
[ "matthewturk@gmail.com" ]
matthewturk@gmail.com
e7a32e42f05f7c64f62178c14d630f5e48ad7c81
2a4ad073755ff447926e44b7c2e0b56b5ded37d2
/NowCoder/56J_撤除链表中的重复节点_A.py
e8d1baf1e93c34bbd24a4c52285a92849ae3f96c
[]
no_license
wcb2213/Learning_notes
3a9b3fdb7df5c6844a9031db8dd7e9dd858e093c
d481e1754c15c91557027bee872f4d97da3c0fca
refs/heads/master
2021-07-06T15:54:56.199655
2020-09-04T14:05:50
2020-09-04T14:05:50
174,832,296
0
0
null
null
null
null
UTF-8
Python
false
false
1,526
py
#!/usr/bin/env/ python # -*- coding:utf-8 -*- # Created by: Vanish # Created on: 2019/4/2 # 30ms # 在一个排序的链表中,存在重复的结点,请删除该链表中重复的结点,重复的结点不保留,返回链表头指针。 例如,链表1->2->3->3->4->4->5 处理后为 1->2->5 # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: # 哈希 def de...
[ "wcb2213@163.com" ]
wcb2213@163.com
05ec1415c241cba02bf60e5d92821b0af3d152b0
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/battle_royale/scripts/client/battle_royale/gui/prb_control/entities/regular/squad/actions_validator.py
adb24bb413320f6de9fbdcfab72bae70f4f1fdfc
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
2,704
py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: battle_royale/scripts/client/battle_royale/gui/prb_control/entities/regular/squad/actions_validator.py from gui.prb_control.entities.base.actions_validator import ActionsValidatorComposite from gui.prb_control.entities.base.squad.actions_validator...
[ "StranikS_Scan@mail.ru" ]
StranikS_Scan@mail.ru
7a4f3c708d4bdec13d5f9cd966a09d72fcc35f87
9827086f2a2a21d5b21bed9ee3b0ca888dc1bb50
/m01_basics/l_08_enums.py
77804d1a7a61664461be0cb37d0e42babe1beaf9
[ "MIT" ]
permissive
decolnz/python-52-weeks
d011918e39660b3b96ee5bbe1f9978c6d1c3679c
b604b47983df16a6e931ed241ce0439dd1764c56
refs/heads/main
2023-01-22T19:46:44.697916
2020-11-16T18:46:54
2020-11-16T18:46:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,624
py
from random import choice import string from tabulate import tabulate from operator import itemgetter from enum import Enum class Vendor(Enum): cisco = "cisco" juniper = "juniper" arista = "arista" devices = list() # CREATE EMPTY LIST FOR HOLDING DEVICES # FOR LOOP TO CREATE LARGE NUMBER OF DEVICES f...
[ "chuck.a.black@gmail.com" ]
chuck.a.black@gmail.com
1a13ba5ba28bd37616d3053fdcef0493368a562c
1c594498900dd6f25e0a598b4c89b3e33cec5840
/iqps/upload/google_connect.py
22e9bcdd1ea0b105c7b3a968296f7235797b4dcf
[ "MIT" ]
permissive
thealphadollar/iqps
cef42ed8c86e4134e724a5f4967e96a83d672fcd
187f6b134d82e2dce951b356cb0c7151994ca3ab
refs/heads/master
2023-07-14T04:41:13.190595
2020-06-25T14:51:17
2020-06-25T14:51:17
277,360,692
0
0
MIT
2020-07-05T18:29:17
2020-07-05T18:29:16
null
UTF-8
Python
false
false
3,088
py
from __future__ import print_function import pickle import os.path from googleapiclient.discovery import build from googleapiclient.http import MediaFileUpload from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request # Source: Google Drive API Python Quickstart SCOPES ...
[ "smishra99.iitkgp@gmail.com" ]
smishra99.iitkgp@gmail.com
56ce6a890dccd4e3bb8a690789eead2575122f23
e406b247a64ad3981eae234de9cb0a933b5df6ec
/07. Passing Networks/01. Basic Passing Networks/passing_network.py
bad793b8c09dedd49fe9da3a794924452095f8ac
[]
no_license
Slothfulwave612/Football-Analytics-With-Python
973f333be3ccb42cd04d3506e16f475dc16f27de
31de88dd7303fa5b781eb2bbb1d3a2c7db5bceb3
refs/heads/master
2023-08-15T17:31:46.548650
2023-07-24T11:39:17
2023-07-24T11:39:17
255,636,264
30
12
null
null
null
null
UTF-8
Python
false
false
2,581
py
# -*- coding: utf-8 -*- """ Created on Tue May 12 20:31:09 2020 @author: slothfulwave612 Modules Used(4):- 1. numpy -- numerical computing library. 2. matplotlib -- plotting library for the Python. 3. utility_function_io -- Python module for i/o operation. 4. utility_function_viz -- Python module for visualization. "...
[ "noreply@github.com" ]
Slothfulwave612.noreply@github.com
28facf418ae9ab812b638f0ed6bd12ef0dce123d
777b5c266360b29b6d4af916726abd5d364b74a1
/src/utils/oauth/facebook.py
cade1f947ec4bd4075814e55b1e2dab7e32b98ce
[]
no_license
uryyyyyyy/django-graphql
44d08afc3e44514270d1d5c183caa9d1c1cf3f88
f3d6513d2325a8e675e47500cc71d8ef56c01537
refs/heads/master
2021-06-10T11:11:45.110271
2019-02-28T07:39:54
2019-02-28T07:39:54
172,325,424
0
0
null
2021-04-20T17:56:57
2019-02-24T10:44:31
Python
UTF-8
Python
false
false
907
py
import os from typing import Optional import requests from requests import Response OAUTH2_ID = os.environ['OAUTH2_FACEBOOK_ID'] OAUTH2_SECRET = os.environ['OAUTH2_FACEBOOK_SECRET'] OAUTH2_REDIRECT = os.environ['OAUTH2_FACEBOOK_REDIRECT'] def oauth(code: str)-> Optional[dict]: url = f'https://graph.facebook.com...
[ "koki@anymindgroup.com" ]
koki@anymindgroup.com
fd3e0dcb98417ef93842c6bd574ee434d02e33c4
a5fabc6d6341925b587fecb082dc70c0d1b95619
/Stage4_Linux_dm_Mod.py
3be18daac9a82eb2f31f2368fb98b5ea7a4446e5
[]
no_license
illuminous/pythonScripts
fcfef9c0fb9bd3155edcf02b56bbec563ff08b2a
1bb69a1bb1e10f6041274c027cc0ab06c7a9efed
refs/heads/master
2022-10-22T09:35:48.088907
2022-09-28T22:35:32
2022-09-28T22:35:32
120,963,663
0
0
null
null
null
null
UTF-8
Python
false
false
8,141
py
"""Stage4.py Creates the input files for fireharm and renames the ascii output files from Stage3.aml. Created by Jason M.\n Herynk 2010""" import os import sys import shutil import tempfile resrange = [] zones =[] res = [] ############################################################## def chu...
[ "noreply@github.com" ]
illuminous.noreply@github.com
be35ddd0d45e132bb15e23130777452ff8896226
3e24611b7315b5ad588b2128570f1341b9c968e8
/pacbiolib/pacbio/pythonpkgs/pbreports/bin/ccs_report
4c5af46e1f2b872922db35a77f270f162a0c83b2
[ "BSD-2-Clause" ]
permissive
bioCKO/lpp_Script
dc327be88c7d12243e25557f7da68d963917aa90
0cb2eedb48d4afa25abc2ed7231eb1fdd9baecc2
refs/heads/master
2022-02-27T12:35:05.979231
2019-08-27T05:56:33
2019-08-27T05:56:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
213
#! python # -*- coding: utf-8 -*- import re import sys from pbreports.report.ccs import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "409511038@qq.com" ]
409511038@qq.com
a0fafc33252870bd04f6a5089915d8837494b042
553b309379b95ee0fa411e90cabd1cecada21daf
/tests/training/test_parameters.py
aad49b921270c42f334c1fcba797956bc3332387
[ "BSD-2-Clause" ]
permissive
gitter-badger/delira
523c2a4f0ab4866c9862086a136c65e2b8622d62
e79072eb33ba76bb444d93b424a5318232d5fba3
refs/heads/master
2020-04-25T23:37:56.562572
2019-02-26T12:44:34
2019-02-26T12:44:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,327
py
import pytest from delira.training import Parameters from delira.utils import LookupConfig @pytest.mark.parametrize("fixed_model_params,variable_model_params," "fixed_training_params,variable_training_params," "valid_nested_key,valid_nested_value," ...
[ "justus.schock@rwth-aachen.de" ]
justus.schock@rwth-aachen.de
8304d52d475e946ac42da523f39ddf4b264e53cd
ff6248be9573caec94bea0fa2b1e4b6bf0aa682b
/StudentProblem/10.21.11.24/7/1569573204.py
13cb49303c014c62aa005ac69bc3e71d01c49d55
[]
no_license
LennartElbe/codeEvo
0e41b1a7705204e934ef71a5a28c047366c10f71
e89b329bc9edd37d5d9986f07ca8a63d50686882
refs/heads/master
2020-12-21T17:28:25.150352
2020-03-26T10:22:35
2020-03-26T10:22:35
236,498,032
0
0
null
null
null
null
UTF-8
Python
false
false
708
py
import functools import typing import string import random import pytest ## Lösung Teil 1. def divisors(n: int) -> list: """Gibt alle Divisoren einer zahl zurück Arg: n: int > 0 Return: list von allen teilern leere Liste falls n <= 0 """ if n <= 0: return [] else: re...
[ "lenni.elbe@gmail.com" ]
lenni.elbe@gmail.com
6cc1749926f29e51919453e49fa53f1bc15a3b34
2b502aae9bc33bac6c4b28d1e702591f2cbed690
/terrascript/cobbler/r.py
7711613b1868ac135b7e9876ca62f7612f9aa84b
[ "Python-2.0", "BSD-2-Clause" ]
permissive
LeeroyC710/python-terrascript
4c8fbe032e9b7dd8844d962f888c28f87a26ff77
b8f3c3549b149c124e3e48e0cea0396332ad1a1d
refs/heads/master
2020-12-28T03:58:04.502969
2020-01-19T21:46:52
2020-01-19T21:46:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
380
py
# terrascript/cobbler/r.py import terrascript class cobbler_distro(terrascript.Resource): pass class cobbler_kickstart_file(terrascript.Resource): pass class cobbler_profile(terrascript.Resource): pass class cobbler_repo(terrascript.Resource): pass class cobbler_snippet(terrascript.Resource): ...
[ "markus@juenemann.net" ]
markus@juenemann.net
3587d1ceb6ec5894fae9423eda952a68b75d5044
b4477b89c0e43c85a8e91b152a29003a89d0211e
/game_stats.py
f43c631024928ce718c71d13d0abdb3c3023bad7
[]
no_license
WillMartin32/Project-1-Alien-Invasion
0b1935e27a7e63075167ac274e66beb9b3bb2681
5197a40c5eebf7cdab7d9958b7e05d65ee3663b6
refs/heads/master
2023-08-30T22:03:16.511054
2021-10-24T00:37:51
2021-10-24T00:37:51
410,123,105
0
0
null
null
null
null
UTF-8
Python
false
false
556
py
class GameStats: """Track statistics for Alien Invasion.""" def __init__(self, ai_game): """Initialize statistics.""" self.settings = ai_game.settings self.reset_stats() # Start Alien Invasion in an inactive state. self.game_active = False # High score should n...
[ "you@example.com" ]
you@example.com
429f458c11766686359fa797c199a0e1934200de
71894f980d1209017837d7d02bc38ffb5dbcb22f
/multi/DIYSmartphone/apps/settings/settings.py
967fb98c0538c57b96db03efc7e40f24ff09a816
[ "MIT" ]
permissive
masomel/py-iot-apps
0f2418f8d9327a068e5db2cdaac487c321476f97
6c22ff2f574a37ba40a02625d6ed68d7bc7058a9
refs/heads/master
2021-03-22T04:47:59.930338
2019-05-16T06:48:32
2019-05-16T06:48:32
112,631,988
0
0
null
null
null
null
UTF-8
Python
false
false
3,073
py
#settings App #copyright (c) 2015 Tyler Spadgenske #MIT License ############################### #To be packaged with stock TYOS ############################### from subprocess import Popen import sys import pygame class Run(): def __init__(self, fona): self.fona = fona self.headset = False ...
[ "msmelara@gmail.com" ]
msmelara@gmail.com
a669aae80ce81db10f67b0a18af9b9f2aae71c7c
7134e45563b2045837296cb5c4f1974a025e4f2b
/.history/dices_throw_20200311233054.py
5e54f81580878e0bf8757aa4c5e2a992cce563d7
[]
no_license
Nordenbox/Nordenbox_Python_Fundmental
dca175c471ac2c64453cc4bcf291dd0773be4add
9c79fd5d0dada580072b523d5aa1d72f996e3a22
refs/heads/master
2022-01-21T06:37:15.084437
2022-01-06T13:55:30
2022-01-06T13:55:30
240,154,945
0
0
null
null
null
null
UTF-8
Python
false
false
1,617
py
"""n 个骰子都扔出某一面的概率计算""" import random class ThrowDices: def __init__(self, dices_numbers, face_want, throw_times): self.dices_numbers = dices_numbers self.face_want = face_want self.throw_times = throw_times def get_probabilities(self): list_calculate = self.create_dices_thro...
[ "nordenbox@gmail.com" ]
nordenbox@gmail.com
f8a87828e500d77821f9c8ce31080c6413b22225
b28d13b2e785398f1a8074e0034080539009c837
/django-rest-doc/snippets/views.py
f3fd32d0a2886ad4eedfc9fcc007937511625611
[]
no_license
sdugaro/django
c58f1c290a1cadf90d723083c1bceefbbac99073
1704f1796cb3f25cac260c6120becd70e9f1c33f
refs/heads/main
2023-02-06T22:06:41.872202
2020-12-27T09:04:12
2020-12-27T09:04:12
311,162,303
0
0
null
null
null
null
UTF-8
Python
false
false
2,226
py
from rest_framework import generics from rest_framework import permissions from rest_framework import viewsets from rest_framework import permissions from rest_framework.decorators import action from rest_framework.response import Response from rest_framework.views import APIView from rest_framework.response import Re...
[ "sdugaro@yahoo.com" ]
sdugaro@yahoo.com
b766e18d258b7d090406b2c976ae0eb267fbddda
3b4c4ed90545d848bc6fd536a36a8ccea065ed33
/backend/home/admin/home_page.py
19fff037cc67ec64caf463d0d920fbf3da7ea943
[]
no_license
garpixcms/example-corp-templates
43e2478687e3aa6d4b30985f6cb4e2566254bcdd
56e0897dfc3d26853b2117cad22074e32e565af9
refs/heads/master
2023-07-19T00:17:26.397663
2021-09-18T19:10:40
2021-09-18T19:10:40
407,945,859
0
0
null
null
null
null
UTF-8
Python
false
false
263
py
from django.contrib import admin from garpix_page.admin import BasePageAdmin from ..models.home_page import HomePage from .carousel_item import CarouselItemInline @admin.register(HomePage) class HomePageAdmin(BasePageAdmin): inlines = (CarouselItemInline,)
[ "crusat@yandex.ru" ]
crusat@yandex.ru
50250c4996d256760a59ad157fd528f12325bcd7
19d47d47c9614dddcf2f8d744d883a90ade0ce82
/pynsxt/swagger_client/models/lb_snat_translation.py
55afbc1decee3f8c6fa2737cf58f6a9315d8a193
[]
no_license
darshanhuang1/pynsxt-1
9ed7c0da9b3a64e837a26cbbd8b228e811cee823
fb1091dff1af7f8b8f01aec715682dea60765eb8
refs/heads/master
2020-05-25T14:51:09.932853
2018-05-16T12:43:48
2018-05-16T12:43:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,382
py
# coding: utf-8 """ NSX API VMware NSX REST API # noqa: E501 OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class LbSnatTranslation(object): """NOTE: This class is auto generated by the s...
[ "tcraft@pivotal.io" ]
tcraft@pivotal.io
d1003e312f68da8ca9e65ebc3e28108892f9de3b
667cec9312ac63e329b0249bf57b2c4f4246b896
/django_lair/urls.py
d9ce71a6079b9c6802c368637d329991f9f3f62c
[ "MIT" ]
permissive
narfman0/django_lair
3cb09e3c4156476a3a181a595c0734b6d42440f7
f731f4048463d6b0e2cf37e67ac1a3fa8062a5b1
refs/heads/master
2023-01-11T18:43:53.108839
2016-12-05T05:25:51
2016-12-05T05:25:51
75,147,732
1
0
MIT
2022-12-26T20:26:31
2016-11-30T03:32:06
Python
UTF-8
Python
false
false
655
py
# -*- coding: utf-8 -*- from django.conf.urls import url from django.views.decorators.csrf import csrf_exempt from . import views urlpatterns = [ url( regex="^datum/$", view=views.DatumListView.as_view(), name='datum_list', ), url( regex="^datum/create/$", view=csrf...
[ "narfman0@gmail.com" ]
narfman0@gmail.com
a40f971d91c9c8f7a33407864a4035996e808564
3f80628d7fc96db14bd3e46f67a264d172d78bed
/project_name/settings_prod.py
5aeda66c4d9a89a313cba8509ef692f6d2220b74
[]
no_license
jeremyjbowers/django-project-template
a33de39fe83ee909d3ea907407d62a43b0dd6132
3631b6b8760b4fe629f0069784d3f84ae2c54d6a
refs/heads/master
2021-01-15T10:06:17.070154
2013-12-10T02:01:28
2013-12-10T02:01:28
15,066,215
1
0
null
null
null
null
UTF-8
Python
false
false
738
py
DEBUG = False DEVELOPMENT, PRODUCTION = False, True DEBUG_TOOLBAR = False DATABASES = { 'default': { 'ENGINE': 'django.contrib.gis.db.backends.postgis', 'NAME': '', 'USER': '', 'PASSWORD': '', 'HOST': 'localhost', 'PORT': '5433', } } CACHES = { 'default': { ...
[ "ben.welsh@gmail.com" ]
ben.welsh@gmail.com
c7c17f1a1331a54d890e1aa3c688e33f09f0395f
3775102a3f59bc8aac9b8121ba2aef87409724ee
/Medium/email_validation.py
a2d415d1ce133906ac158b4b47155fd08aa7e3b1
[]
no_license
csikosdiana/CodeEval
a446ec6673e9f97439662bfccbd7454e5740d509
15cdd9ca454939e93c77d5ed5076595ecc7e4301
refs/heads/master
2016-08-11T14:49:27.565799
2016-03-22T17:48:20
2016-03-22T17:48:20
46,176,059
0
0
null
null
null
null
UTF-8
Python
false
false
1,060
py
data = ['foo@bar.com', 'this is not an email id', 'admin#codeeval.com', 'good123@bad.com', 'A@b@c@example.com', 'b@d.net', 'a"b(c)d,e:f;g<h>i[j\k]l@example.com', '"very.unusual.@.unusual.com"@example.com', 'Abc.example.com'] import string #print string.ascii_lowercase #print string.ascii_uppercase #import sys #tes...
[ "csikosdiana@gmail.com" ]
csikosdiana@gmail.com
6b05463668a33fe1f943e09e558af61cf216efe7
52f4426d2776871cc7f119de258249f674064f78
/baekjoon/bfs/3197.py
e95e691708be4642280c20ba66324c1f967e3be8
[]
no_license
namhyun-gu/algorithm
8ad98d336366351e715465643dcdd9f04eeb0ad2
d99c44f9825576c16aaca731888e0c32f2ae6e96
refs/heads/master
2023-06-06T02:28:16.514422
2021-07-02T10:34:03
2021-07-02T10:34:03
288,646,740
0
0
null
null
null
null
UTF-8
Python
false
false
1,983
py
# region Input redirection import io import sys example = """ 8 17 ...XXXXXX..XX.XXX ....XXXXXXXXX.XXX ...XXXXXXXXXXXX.. ..XXXXX.LXXXXXX.. .XXXXXX..XXXXXX.. XXXXXXX...XXXX... ..XXXXX...XXX.... ....XXXXX.XXXL... """ sys.stdin = io.StringIO(example.strip()) # endregion # # ⛔ DO NOT COPY ABOVE CONTENTS # import sys from ...
[ "mnhan0403@gmail.com" ]
mnhan0403@gmail.com
08c411d4c50b99bfb273e6f1fc5b5aae83b99172
d0ad071c259151bf8cce28d5a36c65ee53960b8d
/Session8E.py
57b68ed71ed0801054f8bfdf3e64ea8cf7073cd4
[]
no_license
ishantk/GW2020P1
705f44ddd634a408690db6a3ecfccb0a6801da8e
682c57e930b38d6f597861e23d0ba5a3b409715a
refs/heads/master
2022-11-23T18:13:14.453946
2020-07-31T03:13:40
2020-07-31T03:13:40
272,337,327
6
0
null
null
null
null
UTF-8
Python
false
false
605
py
# Conversions numbers1 = (10, 20, 30, 40, 50, 20, 10) print(numbers1, type(numbers1), id(numbers1)) print() # Converting Tuple into list: Creating a new list out of tuple at new memory location numbers2 = list(numbers1) print(numbers2, type(numbers2), id(numbers2)) print() numbers3 = set(numbers2) print(numbers3, t...
[ "er.ishant@gmail.com" ]
er.ishant@gmail.com
e4850e41d1bbf8e67a5984a07863c2a1f41ebb3a
df789505c99974c0ba45adc57e52fc7865ff2a28
/面向对象/类的公有属性&私有属性.py
4eb77736d2ed78f62971df23ee866940e46a806d
[]
no_license
zhiwenwei/python
6fc231e47a9fbb555efa287ac121546e07b70f06
76d267e68f762ee9d7706e1800f160929544a0a3
refs/heads/master
2021-01-20T04:21:44.825752
2018-12-19T06:20:10
2018-12-19T06:20:10
89,676,097
0
0
null
null
null
null
UTF-8
Python
false
false
643
py
#-*- coding:utf-8 -*- #Author:Kevin ''' 在类里面定义的属性叫做公有属性 ''' class Dog(object): kind = "哈士奇" #类的公有属性 def __init__(self,name): self.N = name self.__heart = 'normal' def sayhi(self): #self.__heart = 'Die' print('i am a dog,my name is ',self.N,self.__heart) # def shiyan(self...
[ "ddzhiwenwei@163.com" ]
ddzhiwenwei@163.com
dc4cfaf631cc0c2788c085ed481f39c32c2e3ff1
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/28/usersdata/133/8585/submittedfiles/serie1.py
5633ea4ecf4bf2e4534779b5e71da2bd577544a1
[]
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
262
py
# -*- coding: utf-8 -*- from __future__ import division import math n=input('Quantidade de termos:') while ( n!=a): n=input('Quantidade de termos:') S=0 for i in range (1, n+1, 1): S = S + (math.pow(-1, i+1))/ i print(' %.5f' %S)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
82484e521db18fd2670726ff82cde13c8262b5bb
954663b85752f2578c85bc146c123078addd42a5
/oscar/apps/basket/migrations/0002_auto_20140729_1113.py
06c793abab5cdea0b6269a7d31ca359248eee5ad
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
marcoaacoliveira/labweb
d7ca4542315480fb801053d6052fe4d800180916
99be44ce4f09a753ee5d6202e19919e2b1eb7192
refs/heads/master
2021-05-28T00:02:06.672881
2014-08-05T21:03:03
2014-08-05T21:03:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,813
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('catalogue', '0001_initial'), ('voucher', '0001_initial'), ('basket', '0001_initial'), ('partner', '0001_initial'), ...
[ "m@maikhoepfel.de" ]
m@maikhoepfel.de
47d11fd5c17b0c2cfe8a940cd224d8cc10045b97
387be4647a519caa396c4c16c78a6f69cc0999a4
/tests/plugins/test_tags.py
90d45cea34c8adcb6030995031d1c33a55cd23b4
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
fedj/biggraphite
dba6aef439ea375aafaac7097734a9659aed5388
723cd0da70f4bd03c144b3c4ea4a78ef131810df
refs/heads/master
2020-03-22T07:45:13.135235
2018-07-25T08:01:31
2018-07-25T08:01:31
139,722,687
0
0
Apache-2.0
2018-07-04T13:00:35
2018-07-04T13:00:35
null
UTF-8
Python
false
false
1,574
py
#!/usr/bin/env python # Copyright 2017 Criteo # # 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 agree...
[ "c.chary@criteo.com" ]
c.chary@criteo.com
f3a4b28c98c1b1f793c86a89883d877934da3bc3
103ef307c8485355aef679c2b0e1010c10b7320b
/solutions/0417-Pacific-Atlantic-Water-Flow/0417.py
45956d408c7a6162cca55e7f895367872c763720
[ "MIT" ]
permissive
leetcode-notebook/wonz
649d63551851d8a75470852945814cca678d4be1
9ffd2ce9b5f3a544ee958f5a0673215afd176c2b
refs/heads/master
2021-05-19T00:03:10.261045
2020-04-12T14:41:47
2020-04-12T14:41:47
251,487,131
0
0
MIT
2020-04-12T14:41:48
2020-03-31T03:06:16
null
UTF-8
Python
false
false
1,424
py
from typing import List class Solution: def pacificAtlantic(self, matrix: List[List[int]]) -> List[List[int]]: if not matrix or not matrix[0]: return [] m, n = len(matrix), len(matrix[0]) p_visited = [[False] * n for x in range(m)] # Pacific a_visited = [[False...
[ "wangzhou5130@gmail.com" ]
wangzhou5130@gmail.com
ebd96819dbbb3ad1ee0c8c177ad14fc9ee15c4e5
53b47cbfea75afd22f37a2a9c8af4573165a0515
/Week1/Week1Day4/sample-code/csv/csv_read.py
be9b816378084cfbb698c95cd5293db2eeb346f2
[]
no_license
bmolina-nyc/ByteAcademyWork
d757ed04033e23a4ec7aa8d09283f65b4cebcb17
b7a6790c2905afc9532b348149b730b7ea71de44
refs/heads/master
2022-12-06T19:17:02.164451
2019-03-11T15:31:10
2019-03-11T15:31:10
169,432,884
0
1
null
2022-11-18T15:08:12
2019-02-06T16:00:41
Python
UTF-8
Python
false
false
399
py
import csv """ with open('airtravel.csv', 'r') as file_object: reader = csv.reader(file_object) for row in reader: print(row) """ with open('hurricanes.csv', 'r') as file_object: reader = csv.DictReader(file_object) for row in reader: print(row['Month']) for key, value in row.it...
[ "bruce.molina.81@gmail.com" ]
bruce.molina.81@gmail.com
c86d45e58fed16be3cabbb5a71d138a77e3db976
69329efb6a668e3e11fe3d1104e076c635be63f1
/sage/model_g_symbolic_integrator.py
fc15921a4963b53cd7868da99fb707356e47a600
[ "MIT" ]
permissive
frostburn/tf2-model-g
8354853a760fa60fd9cbebdf75cd0ecb0f40aa42
ea90d84754265b47af383b17e347e4f76bddf10c
refs/heads/master
2021-07-10T14:50:23.233075
2020-05-02T17:32:08
2020-05-02T17:32:08
239,732,547
0
3
MIT
2021-03-25T23:41:20
2020-02-11T10:15:48
Python
UTF-8
Python
false
false
1,602
py
from sage.all import * G, X, Y, A, B, k2, k_2, k5 = var("G, X, Y, A, B, k2, k_2, k5") G0 = A*(k5 + k_2)/(k2*k5) X0 = A/k5 Y0 = B*k5/A g = G + G0 x = X + X0 y = Y + Y0 gx_flow = k_2*x - k2*g xy_flow = x*x*y - B*x v_G = A + gx_flow v_X = -gx_flow + xy_flow - k5 * x v_Y = -xy_flow t = var("t") coefs_a = var(",".join(...
[ "lumi.pakkanen@gmail.com" ]
lumi.pakkanen@gmail.com
461492da713d11f0820cfa38a68a4c1272591fb3
b5fabc6c6de064690f8d4ee423001cf9365a3d9f
/flash/pointcloud/segmentation/open3d_ml/app.py
e9fbfd4c975b99b7eff4ee7347ef9cebb853b49d
[ "Apache-2.0" ]
permissive
dmarx/lightning-flash
021dfd76bde6e30309f14feb5853020b0babe90d
4cda031c1f9c8d8754fd36b5720d2a5a7d866765
refs/heads/master
2023-09-06T06:24:29.856354
2021-11-24T23:38:14
2021-11-24T23:38:14
422,352,910
0
1
null
null
null
null
UTF-8
Python
false
false
4,017
py
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
[ "noreply@github.com" ]
dmarx.noreply@github.com
bbc6ca99f40557885574f31d97132d1f809b6cad
2bc83e48bfeab7a164bf5406f7c19c08a3b86782
/src/step_2/search_with_tag_name_and_other_attribute.py
b64fc57c68ec5c0a0c85b35fdbd4b3b67114b23f
[ "MIT" ]
permissive
Rezwanul-Haque/web_scraping_with_bs4_selenium
a5683e6acab2ce9cd73dbf39f66a8a767c3b4873
c445200aa2f63a73f1e413151d5de9c671b74443
refs/heads/master
2020-04-26T08:11:32.053055
2019-03-28T05:03:21
2019-03-28T05:03:21
173,415,351
0
0
null
null
null
null
UTF-8
Python
false
false
949
py
from bs4 import BeautifulSoup html_doc = """ <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title>The Dormouse's story</title> </head> <body> <p class="title"> <b>The Dormouse's story</b> </p> <p class="story">Once upon a time t...
[ "rezwanul.cse@gmail.com" ]
rezwanul.cse@gmail.com
dd2406b65e3b1a18b062bfb1b7a2892ae86324d2
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part004950.py
05d936b5ea96b6a706d95d20168c983f2765c6f6
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
2,655
py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
[ "franz.bonazzi@gmail.com" ]
franz.bonazzi@gmail.com
6271b235d95319d9ce49d00c4d0d361e640f8dba
48e124e97cc776feb0ad6d17b9ef1dfa24e2e474
/sdk/python/pulumi_azure_native/network/v20191201/get_bastion_shareable_link.py
08e9fbc511ce20444a5a465041764355e9f0164c
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
bpkgoud/pulumi-azure-native
0817502630062efbc35134410c4a784b61a4736d
a3215fe1b87fba69294f248017b1591767c2b96c
refs/heads/master
2023-08-29T22:39:49.984212
2021-11-15T12:43:41
2021-11-15T12:43:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,881
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ "noreply@github.com" ]
bpkgoud.noreply@github.com
cc8d1da40b1bd5ed0b6ca2cffc6b84f94ace159c
8c658165889758b346038a308c863bc93a26d0da
/old_xlvin/gnn_executor/sparse_models.py
f0068b2788357709f3acafb2165840a12bb0f6da
[]
no_license
andreeadeac22/logml_xlvin
4fd3279b38e19e2a7451ce123491b469b2203013
880e78059e43c1f4e3cac9497a9e73f2543e1896
refs/heads/main
2023-06-20T06:26:16.635690
2021-07-15T10:33:46
2021-07-15T10:33:46
385,325,958
2
2
null
null
null
null
UTF-8
Python
false
false
4,513
py
import torch import torch.nn as nn from torch_scatter import scatter_max, scatter_sum from collections import OrderedDict class SparseMessagePassing(nn.Module): def __init__(self, node_features, edge_features, hidden_dim, message_function=None, ...
[ "andreeadeac22@gmail.com" ]
andreeadeac22@gmail.com
a1f17c242e8eb47405eb4d4d4b496c641aa3dd71
0e8758b50a74cdbb5d97d988f2075112e07d4f00
/src/zojax/cache/ram.py
2215b5bfdb3632b382d213dbeb63fcd7a98328ba
[ "ZPL-2.1" ]
permissive
Zojax/zojax.cache
513d7dc749603f3583acca4b994d80ea58ec6c25
bd22dfef23a4da21ca9a1079fa32fd374a96a75e
refs/heads/master
2020-04-06T04:31:32.346337
2014-02-05T10:26:44
2014-02-05T10:26:44
2,035,340
0
0
null
null
null
null
UTF-8
Python
false
false
819
py
############################################################################## # # Copyright (c) 2009 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
[ "andrey.fedoseev@gmail.com" ]
andrey.fedoseev@gmail.com
7870ca97acd70fe051a39ca5bbd5b94b3141d3cd
b5ef3b9da130f604f111bd469128b73e78d6ba9d
/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/AccountingTransactionModule_getPaySheetMovementMirrorSectionItemList.py
d45aca40fb53d879887519ab6da346b91bd519c6
[]
no_license
soediro/erp5
154bb2057c4cd12c14018c1ab2a09a78b2d2386a
3d1a8811007a363b7a43df4b295b5e0965c2d125
refs/heads/master
2021-01-11T00:31:05.445267
2016-10-05T09:28:05
2016-10-07T02:59:00
70,526,968
1
0
null
2016-10-10T20:40:41
2016-10-10T20:40:40
null
UTF-8
Python
false
false
775
py
item_list = [('', '')] portal = context.getPortalObject() getobject = portal.portal_catalog.getobject for x in portal.portal_simulation.getInventoryList( portal_type=('Pay Sheet Cell', 'Pay Sheet Line'), group_by_res...
[ "georgios.dagkakis@nexedi.com" ]
georgios.dagkakis@nexedi.com
148a21faccd7c7c7aef62e51e326d413be656fc9
b4eb7a3efff554ad76daeaf440721ab4011217af
/train_cifar.py
0a69b749f25389f892e57b0fd6664af6b1b60e10
[ "MIT" ]
permissive
Swall0w/dual-path-networks
8c0b0012901735c565aa02007fd1c3fcb55a974d
dfd935b16a2fe7aa414ad280846a6cd2fd0fda12
refs/heads/master
2021-05-13T21:39:49.099834
2018-02-03T05:58:55
2018-02-03T05:58:55
116,468,778
0
0
null
null
null
null
UTF-8
Python
false
false
4,312
py
from __future__ import print_function import argparse import chainer import chainer.links as L from chainer import training from chainer.training import extensions from chainer.datasets import get_cifar10 from chainer.datasets import get_cifar100 import models.VGG import models.dpn def main(): parser = argpars...
[ "technext.jpn@gmail.com" ]
technext.jpn@gmail.com
6908a5eb239a6916514e4e5a69ee1b36c604ebba
8dc64db8a0d7ddb8778c8eae2dac9075b9a90e2b
/env/Lib/site-packages/flask_simple_geoip.py
bf15adea0d557037690ccb3fe517dd69d69abb9b
[ "MIT" ]
permissive
theXtroyer1221/Cloud-buffer
c3992d1b543a1f11fde180f6f7d988d28b8f9684
37eabdd78c15172ea980b59d1aff65d8628cb845
refs/heads/master
2022-11-22T22:37:10.453923
2022-02-25T01:15:57
2022-02-25T01:15:57
240,901,269
1
1
MIT
2022-09-04T14:48:02
2020-02-16T14:00:32
HTML
UTF-8
Python
false
false
2,198
py
from os import environ from simple_geoip import GeoIP from flask import request CONFIG_KEY = "GEOIPIFY_API_KEY" import ipaddress class SimpleGeoIP(object): def __init__(self, app=None): self.app = app if app is not None: self.init_app(app) def init_app(self, app): api_ke...
[ "jaddou2005@gmail.com" ]
jaddou2005@gmail.com
a67d9defbdf633e3736721a0224c3c393d244d2a
dca0bd2e04dda3801d395c2a6ab2f9d95be79551
/Python/SmallProject/improving_the_index.py
00576b45bef129d99882d00405807d6d6ce25985
[]
no_license
A-khateeb/Full-Stack-Development-Path
ab8c86abea2f983fb8e0046a65b99772416c754c
5a5eaa198367cc95a6b5638e9740f4ad564dec23
refs/heads/master
2021-06-01T23:52:04.965494
2020-05-01T22:59:20
2020-05-01T22:59:20
89,286,943
2
0
null
2017-12-22T22:21:52
2017-04-24T21:04:07
Shell
UTF-8
Python
false
false
3,096
py
# The current index includes a url in the list of urls # for a keyword multiple times if the keyword appears # on that page more than once. # It might be better to only include the same url # once in the url list for a keyword, even if it appears # many times. # Modify add_to_index so that a given url is only # inclu...
[ "khateebafeef@gmail.com" ]
khateebafeef@gmail.com
c394a9cbdf35c8a5e98933cb392930c904b2e737
1446ba991034652370c9d64df08caa817735e1f6
/office365/graph/teams/channel.py
fb5034e80178479d9b640e5bafa997aa01a376e3
[ "MIT" ]
permissive
kakaruna/Office365-REST-Python-Client
3ab949bc8d48a604e534c902883af62fd089a87d
9f2f564972b988f1f41a3080c99684b4f6ce2164
refs/heads/master
2022-09-26T15:32:40.326036
2020-06-02T13:24:04
2020-06-02T13:24:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
636
py
from office365.runtime.client_object import ClientObject class Channel(ClientObject): """Teams are made up of channels, which are the conversations you have with your teammates""" @property def webUrl(self): """A hyperlink that will navigate to the channel in Microsoft Teams. This is the URL that...
[ "vvgrem@gmail.com" ]
vvgrem@gmail.com
0de52008434f22cd1e333b2eb912ca49397e2ea1
5e2284bff015e6b03e4ea346572b29aaaf79c7c2
/tests/correct_programs/aoc2020/test_day_8_handheld_halting.py
7a0b9706e46bcedf4a4b8a1b0b45bbe6e810e889
[ "MIT" ]
permissive
LaurenDebruyn/aocdbc
bbfd7d832f9761ba5b8fb527151157742b2e4890
b857e8deff87373039636c12a170c0086b19f04c
refs/heads/main
2023-06-11T23:02:09.825705
2021-07-05T09:26:23
2021-07-05T09:26:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,390
py
import textwrap import unittest import icontract_hypothesis from correct_programs import common from correct_programs.aoc2020 import day_8_handheld_halting class TestWithIcontractHypothesis(unittest.TestCase): def test_functions(self) -> None: for func in [ day_8_handheld_halting.parse, ...
[ "noreply@github.com" ]
LaurenDebruyn.noreply@github.com
101e90cf679f5063e1980a9f9e9de772d5dc3146
f915fd79447086ac70eac7de2aa7f12e1225b246
/trimesh/interfaces/scad.py
f90038034166d7b2391819c575b994a47c8a9473
[ "MIT" ]
permissive
drancom/trimesh
55036fc37b20eebdd5c1bc5b0a1e47f81090cbcb
9568557e00b501d242eb4de79f52c9a5e42a55af
refs/heads/master
2021-01-18T02:25:46.446407
2016-03-20T19:54:58
2016-03-20T19:54:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,099
py
import numpy as np from .generic import MeshScript from distutils.spawn import find_executable def interface_scad(meshes, script): ''' A way to interface with openSCAD which is itself an interface to the CGAL CSG bindings. CGAL is very stable if difficult to install/use, so this function provides...
[ "mik3dh@gmail.com" ]
mik3dh@gmail.com
331a5cef6090eb593ac8ec2b91fc7963b4abc6ab
40f3a05d15269914ca2a0adccb66a9938c4e68fb
/examples/feasible_example.py
dadf6fa17e36835f94fc22ec5c4aa2fe142ce49e
[]
no_license
slivingston/magnumSTL
1cc15123d17f86a96359eb9d9822850765e52217
acb505874ddad2a2518669a163aeeff6d85ea63f
refs/heads/master
2021-07-19T06:39:12.929399
2017-10-28T02:24:18
2017-10-28T02:24:18
108,613,125
3
0
null
2017-10-28T02:21:15
2017-10-28T02:21:15
null
UTF-8
Python
false
false
900
py
import stl from sympy import Symbol from magnum import game as G from magnum import io import numpy as np ## Setup the Model model = G.Model( dt=0.01, H=2, vars=G.Vars( state=(Symbol("x"),), input=(Symbol("u"),), env=() ), t=0, dyn=G.Dynamics( A=np.array([[0]...
[ "mvc@linux.com" ]
mvc@linux.com
61b774c0fc27cb3364a70fc915e6c1269ebb8ec8
5e20a397bef40163792a185d392cbd6794fca648
/common/models.py
8dc24f6a2bdc0383f2048310bae469e5e5554a3a
[]
no_license
uralbash/django-hyango
aba92d2e0d558b439229d67dced980e5f19e0280
301ec384774e9ab585831a0df8847fac8c9a18cc
refs/heads/master
2020-12-30T10:50:15.154925
2014-02-02T15:01:33
2014-02-02T15:01:33
16,456,402
1
0
null
null
null
null
UTF-8
Python
false
false
1,481
py
# -*- coding: utf-8 -*- from django.db import models from mptt.models import TreeManager class VisibleTreeManager(TreeManager): """ Менеджер моделей с наследованием от менеджера MPTT """ def get_query_set(self): return super(VisibleTreeManager, self).get_query_set()\ .filter(visib...
[ "root@uralbash.ru" ]
root@uralbash.ru
e66541a799c3600f25c6e3da839fb7744ba2058a
7a8345e0a3b84614f9c8f31bb249f7e211cbd549
/PycharmProjects/untitled/class/new.py
83a8afd95ccd3a5278a4e7daa13f687ca849b118
[]
no_license
oumingwang/ubuntupythoncode
5ac5baf16acecec3cd518094a49f9766dc6a823b
48dd76f848efedf13ba049c5d4ef9402d3285675
refs/heads/master
2020-07-04T03:42:16.080197
2016-11-19T15:21:49
2016-11-19T15:21:49
74,214,129
0
0
null
null
null
null
UTF-8
Python
false
false
488
py
class MyClass(object): def __new__(cls, *args, **kwargs): print '__new__ called' return object.__new__(cls) def __init__(self): print '__init__ called ' self.a = 1 instance = MyClass() print instance.a class MyOtherClass(MyClass): def __init__(self): pr...
[ "474978390@qq.com" ]
474978390@qq.com
b89ee8ae67353f7aba0cc5263abbd8c3a1ea7b6b
49185bd5cf7e2f5190ce22b5189a09fe1ab6bb0f
/Proper/proper/examples/talbot_correct_demo.py
c4cf7d80eb8839cfe27c4007790db5db7e006ed6
[ "MIT" ]
permissive
RupertDodkins/MEDIS
c3f55d8adb6a8c4120593ba6552c9dfe3784d4e2
bdb1f00fb93506da2a1f251bc6780e70e97a16c5
refs/heads/master
2021-07-05T20:06:44.162517
2019-09-05T22:16:12
2019-09-05T22:16:12
160,850,558
2
2
null
null
null
null
UTF-8
Python
false
false
1,810
py
# Copyright 2016, 2017 California Institute of Technology # Users must agree to abide by the restrictions listed in the # file "LegalStuff.txt" in the PROPER library directory. # # PROPER developed at Jet Propulsion Laboratory/California Inst. Technology # Original IDL version by John Krist # Python transla...
[ "rupertdodkins@gmail.com" ]
rupertdodkins@gmail.com