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
91466fad4434ae3cac50d7862221c1f502a79389
c13b4b0d3ab59d76a91a0811c30110098f8e4e9d
/catalogo/views.py
1b3105a16718c6cbae293edd2b91c715d5ddbea7
[]
no_license
ryujiin/store
8d44b1f70df28df855c8966b3e9b50c99d99c409
dab4e586daa9162d0a5d2fef0b3856669fd2795c
refs/heads/master
2021-01-23T01:41:43.503719
2017-05-31T00:29:33
2017-05-31T00:29:33
92,887,946
0
0
null
null
null
null
UTF-8
Python
false
false
2,948
py
from django.shortcuts import render from django.http import HttpResponse, Http404 from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status # Create your views here. from rest_framework import viewsets from rest_framework.permissions import IsAuthenticated,...
2cc2e4c133cd02104d71c53eb5e1e727fac86306
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/AlipayInsUnderwritePolicyQueryModel.py
37b60946a99f201e4b87ce3ea9ab5c476f897e8a
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
1,895
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayInsUnderwritePolicyQueryModel(object): def __init__(self): self._out_biz_no = None self._policy_no = None self._prod_code = None @property def out_biz_no(se...
07ec8a97e20250841881fe935a533613ac674c22
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/prime-big-253.py
4df2497c7f4ca82b29a6f23247f3508acd85d1c8
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
1,707
py
# Get the n-th prime starting from 2 def get_prime(n:int) -> int: candidate:int = 2 found:int = 0 while True: if is_prime(candidate): found = found + 1 if found == n: return candidate candidate = candidate + 1 return 0 # Never happens def is_prime...
dd95d06ea3f6f07d84040319aff47321d5d4a365
fc0c01ffcbb20dfcdfe177f0f527bcea68bb0909
/backend/home/migrations/0002_load_initial_data.py
f1bd274487616909656e29aa72105a5bae7c4c68
[]
no_license
crowdbotics-apps/msm-mobile-0312145--16172
e6736783118f61d3b928042da41c983a27011c91
a4c5eef430966d7f3f528ff3c400cc86bb56cda0
refs/heads/master
2023-01-25T04:07:39.278417
2020-12-03T10:49:41
2020-12-03T10:49:41
318,110,455
0
0
null
null
null
null
UTF-8
Python
false
false
1,327
py
from django.db import migrations def create_customtext(apps, schema_editor): CustomText = apps.get_model("home", "CustomText") customtext_title = "MSM-mobile-0312145" CustomText.objects.create(title=customtext_title) def create_homepage(apps, schema_editor): HomePage = apps.get_model("home", "HomeP...
f7c3af69717fdd9fe8134409fada9606a5081c25
d247d27a9e48b53db2ff298467ceddc47368d963
/forExamples/SEA1stFlwithoutContinue.py
6f170c8b6906b58deb5e547552e15e4a0ba6423f
[]
no_license
Panzl/PythonClass2016
4814fa6bb3eea33248199a2985684b9eb870bbf1
e486d149ebeba7358d7f50cf390facd403559f9e
refs/heads/master
2021-01-11T03:40:06.468815
2016-10-19T13:45:16
2016-10-19T13:45:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
300
py
for iFloor in range(1,6): for iWing in range(100,401,100): if not(iFloor==1 and iWing<300): for iRoom in range(26): wingRoom = iWing + iRoom roomNumber = 'SEA ' + str(iFloor) + '.' + str(wingRoom) print(roomNumber)
25471bac763649727c460bd35d3e989530910df7
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5636311922769920_1/Python/bquark/fractiles.py
d40a361db6a8c357bb963ba9a04b429c9ff10cbb
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
496
py
import math fi = open("D-large.in") fo = open("D-large.out", "w") line = next(fi) T = int(line) for t in range(T): line = next(fi) [K, C, S] = [int(x) for x in line.split(' ')] smin = (K + C - 1) // C y = ['IMPOSSIBLE'] if S >= smin: y = [] k = 0 while k < K: yy = 0 for c in range(C)...
76bbf0b45b41d05234904bd18feaf90dc6401f40
7589cdaaf2f3eba5854028732792c1ef16172eb7
/plot_supp_mat_figures.py
c9e5cbc7c17c578b8024edda0adefac2ae9cb253
[ "MIT" ]
permissive
IdoSpringer/TCR-PEP-Classification
96ea67e81c053d9a8bf68dc6dc3db557e188be3b
1cca1551ca71359239a5f5caea7f13ec01f4982b
refs/heads/master
2020-04-05T00:33:05.187020
2019-06-26T09:01:55
2019-06-26T09:01:55
156,401,275
1
0
null
null
null
null
UTF-8
Python
false
false
1,672
py
import matplotlib.pyplot as plt import compare_data_stats as cmp from Kidera import kidera import numpy as np w = 'McPAS-TCR_with_V' t = 'TCRGP_with_V' nt = 'TCRGP_negs_with_V' def kidera_hists(data1, data2): factor_observations1 = [[] for i in range(10)] with open(data1, 'r') as data: for line in d...
cf2437bbb631b33ae6e6807748210e78b731a4f1
fb1d7f7dea35f992d5d7a80d2b76cb7ad12aec2f
/restart.py
1e24de7e7333dcaa48507049b172766fde8db826
[]
no_license
kohnakagawa/implicit_dpd
1e418b038f7f4bc935f01e6403cca8b37334334d
592640bd6a70193eeabd9614f86ac907c846a9d1
refs/heads/master
2021-01-20T20:37:03.061054
2017-09-04T07:25:55
2017-09-04T07:25:55
47,946,761
0
0
null
null
null
null
UTF-8
Python
false
false
1,553
py
#!/usr/bin/env python import glob import os import sys import re import shutil def copy_with_log(src, dst): print "%s -> %s" % (src, dst) shutil.copy(src, dst) def get_backup_number(root_dir, f_back_pattern): backup_nums = set() for f in os.listdir(root_dir): f_number = re.search(f_back_patte...
90f88061995145befde80c2bce56e91f3b03e14b
eaac679161dfd275964575193f82d24171321f43
/setup.py
654e245dd8752b93d1cecf50ae82bbfcf36ad6da
[ "MIT" ]
permissive
aagallag/pubg-python
0ff3816cfcbeb185cc6a83ab04934bacd425badf
42d1a16d332ee53d5ebe136293bfcd65d34a4da6
refs/heads/master
2020-03-11T13:11:13.745847
2018-04-16T15:08:22
2018-04-16T15:08:22
130,018,032
0
0
null
2018-04-18T06:58:26
2018-04-18T06:58:25
null
UTF-8
Python
false
false
858
py
from setuptools import ( find_packages, setup) setup( name='pubg-python', version='0.2.8', description='A python wrapper for the PUBG developer API', url='https://github.com/ramonsaraiva/pubg-python', author='Ramon Saraiva', author_email='[email protected]', license='MIT', ...
cd3b531914b0f7e87c1fdf8e76c6404c03ae150d
9bf522a1716339fe928e83c9b416eeebaa1421af
/aiida_lammps/calculations/lammps/force.py
11f3143a6fb0dfaa6cc6ed3da3a21f84ab3c9b05
[ "MIT" ]
permissive
zaidurrehman/aiida-lammps
132ccf6f6bc2b8e2a81fa3f852a76c8bd3bdcedd
e00d5501778c918b4333747398d4ae4df46fd3eb
refs/heads/master
2020-03-22T16:07:52.265272
2018-05-15T08:26:39
2018-05-15T08:26:39
140,304,946
0
0
MIT
2018-07-09T15:31:32
2018-07-09T15:25:24
Python
UTF-8
Python
false
false
2,367
py
from aiida.orm.calculation.job import JobCalculation from aiida.common.exceptions import InputValidationError from aiida.common.datastructures import CalcInfo, CodeInfo from aiida.common.utils import classproperty from aiida.orm import DataFactory from aiida_lammps.calculations.lammps import BaseLammpsCalculation from...
5bb3365c6f397cdc145999193c20452bf0d67692
3cf0d750948a758d5771dd778fbb783d64a044ae
/src/basic/web/flask/01hello/do_flask.py
7765c119d4516759757f524df238b1c5042fa794
[ "CC-BY-NC-SA-4.0", "Apache-2.0" ]
permissive
hbulpf/pydemo
6552a08b3c85721ac1b2ba335b030e234ad03b6c
ea3e9f9086116a86ecef803e9e3179a34c94c20f
refs/heads/master
2022-11-30T21:06:29.933820
2022-01-15T17:05:16
2022-01-15T17:05:16
237,584,300
6
1
Apache-2.0
2022-11-22T09:49:38
2020-02-01T08:20:43
Python
UTF-8
Python
false
false
795
py
from flask import Flask from flask import request app = Flask(__name__) @app.route('/', methods=['GET', 'POST']) def home(): return '<h1>Home</h1>' @app.route('/signin', methods=['GET']) def signin_form(): return '''<form action="/signin" method="post"> <p>username:<input name="username"></p> ...
54bec16a1e8a091fb14b3314055c0bfc1ade59c2
08cfe7ccf78f098924efdcf0db72f32d56e995fe
/envosx/bin/pip
d805a53a4465a5e6982e53bfb89d17841e9f7151
[]
no_license
carloxdev/veritas
6709031a020801181dc81751133433adc96dfb71
e91e42545b7c42b8fd5090f58572715c3f653095
refs/heads/master
2020-04-21T23:31:32.031949
2019-02-10T06:25:27
2019-02-10T06:25:27
169,949,610
0
0
null
null
null
null
UTF-8
Python
false
false
278
#!/Users/carloxdev/Files/Trabajo/Sintaxyz/Proyectos/Veritas/envosx/bin/python3.7 # -*- coding: utf-8 -*- import re import sys from pip._internal import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
9d69eb0935be8ecd1893a4b8bbbb712dbb6b2c3f
2daa3894e6d6929fd04145100d8a3be5eedbe21c
/tests/artificial/transf_exp/trend_linear/cycle_12/ar_/test_artificial_1024_exp_linear_12__0.py
d3250a459fa582199ac7047cea2b5bd10721479e
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Henri-Lo/pyaf
a1f73a0cc807873bd7b79648fe51de9cfd6c126a
08c968425d85dcace974d90db7f07c845a0fe914
refs/heads/master
2021-07-01T12:27:31.600232
2017-09-21T11:19:04
2017-09-21T11:19:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
306
py
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art dataset = tsds.generate_random_TS(N = 1024 , FREQ = 'D', seed = 0, trendtype = "linear", cycle_length = 12, transform = "exp", sigma = 0.0, exog_count = 0, ar_order = 0); art.process_dataset(dataset);
4abc683ed81e9286e0ff9350feee1b386ac7ffe5
4cbf572b446af438249911e2b07ae873234609df
/examples/postman_echo/request_methods/hardcode_test.py
e60254c428b1d0552596a765052181cb6c195cab
[ "Apache-2.0" ]
permissive
jeremy8250/httprunner
0a1d164c18df43bf65754130615bab8a91b14862
a40c7892f3666dd1de200e53ecd5cee9fa8a68ee
refs/heads/master
2022-07-04T08:20:01.979326
2020-05-18T02:47:56
2020-05-18T02:47:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,548
py
# NOTICE: Generated By HttpRunner. DO'NOT EDIT! # FROM: examples/postman_echo/request_methods/hardcode.yml from httprunner import HttpRunner, TConfig, TStep class TestCaseHardcode(HttpRunner): config = TConfig( **{ "name": "request methods testcase in hardcode", "base_url": "https:...
2c7f7315aae320bc1caeb77516b600a04ca3a90f
ace30d0a4b1452171123c46eb0f917e106a70225
/filesystems/vnx_rootfs_lxc_ubuntu64-16.04-v025-openstack-compute/rootfs/usr/lib/python2.7/dist-packages/keystone/conf/extra_headers.py
247d879764f82dcec291593525b0478080abbdef
[ "Python-2.0" ]
permissive
juancarlosdiaztorres/Ansible-OpenStack
e98aa8c1c59b0c0040c05df292964520dd796f71
c01951b33e278de9e769c2d0609c0be61d2cb26b
refs/heads/master
2022-11-21T18:08:21.948330
2018-10-15T11:39:20
2018-10-15T11:39:20
152,568,204
0
3
null
2022-11-19T17:38:49
2018-10-11T09:45:48
Python
UTF-8
Python
false
false
960
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 # distributed under t...
2d0b99e0bd8d4068049d46c68973cd8748ee3dd6
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_drove.py
1f3fa8910c98a175c0f442468e208abbc398f454
[ "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
331
py
#calss header class _DROVE(): def __init__(self,): self.name = "DROVE" self.definitions = [u'to move farm animals on foot from one place to another'] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'verbs' def run(self, obj1 = [], obj2 = []): return sel...
b8beb75f1384cd86e0be5cf1fca0bff678731ddc
b4fc645746dd2a88a951acea06db91eae1d0eda4
/fluent_blogs/__init__.py
e531338f42cc1e7e73c6966faff30d43d6e2196f
[ "Apache-2.0" ]
permissive
nishchintg01/django-fluent-blogs
40a2a5c25f0afbdbb08af14852af5a128e564e75
86b148549a010eaca9a2ea987fe43be250e06c50
refs/heads/master
2020-06-13T16:45:11.847957
2018-07-31T10:52:10
2018-07-31T10:52:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
328
py
# following PEP 440 __version__ = "2.0.3" # Fix for internal messy imports. # When base_models is imported before models/__init__.py runs, there is a circular import: # base_models -> models/managers.py -> invoking models/__init__.py -> models/db.py -> base_models.py # # This doesn't occur when the models are imported...
50a51ca5d16e357fec283b6b5598b557ab490c41
63044bff27a0cf40ae9bd203e12562386b0fc925
/courses/management/commands/update.py
b323a77606477d99af35698445c40cbe516b99fb
[ "BSD-3-Clause" ]
permissive
afg-archive/nthucourses
696f208b57b3f870fdae6a87030804fb70cda080
9f28f8e9480b9d7a9db1f9c023955fb23b1a28aa
refs/heads/master
2021-05-29T01:46:36.882086
2015-05-29T10:51:13
2015-05-29T10:51:13
36,482,509
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
from django.core.management.base import BaseCommand import sys from courses import adapter from logs.models import Logger class Command(BaseCommand): help = 'update stuff' def add_arguments(self, parser): parser.add_argument('count', type=int) def handle(self, *args, **options): with Lo...
3b9a978a922a5b196bc117898814b0cbec445d6c
25ebc03b92df764ff0a6c70c14c2848a49fe1b0b
/daily/20180118/example_pandas/x.py
b249ecd7574e9204bf7e358494db3c0a1f66cdf8
[]
no_license
podhmo/individual-sandbox
18db414fafd061568d0d5e993b8f8069867dfcfb
cafee43b4cf51a321f4e2c3f9949ac53eece4b15
refs/heads/master
2023-07-23T07:06:57.944539
2023-07-09T11:45:53
2023-07-09T11:45:53
61,940,197
6
0
null
2022-10-19T05:01:17
2016-06-25T11:27:04
Python
UTF-8
Python
false
false
173
py
import pandas as pd ax = df.plot(kind="scatter", x="x", y="y", s=40) for _, row in df.iterrows(): print(row.name, row.x, row.y) ax.annotate(row.name, row.x, row.y)
1c676289043ddc7f0d412e1cc3be5ddf29fa5bbd
31a9a6cd0c6d06c612705a6d572f97d6a6ec7286
/render.py
a077a40bd70d27e379908dc0a77abc7d79ca947c
[]
no_license
mikeboers/RenderHeatmap
ce9860f1f6d451f65442a566477b97079282c44d
684a3fef7dc4c3fb0983eed69a983ceb9ecb473b
refs/heads/master
2023-06-08T05:52:28.983104
2013-07-16T01:49:07
2013-07-16T01:49:07
11,429,803
2
0
null
null
null
null
UTF-8
Python
false
false
3,259
py
#!/usr/bin/env python from __future__ import print_function import ctypes as c import functools import os import re import sys from subprocess import call, check_output import prman from mako.template import Template def debug(*args, **kwargs): kwargs['file'] = sys.stderr print(*args, **kwargs) _memo_sto...
62c027779e60eb717cd1ecc9b3f065887d5c151d
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/qNQkYzY8GpiFMmndh_9.py
1c13b93ebc6d37c3186cdfd2d117379f9db81968
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
378
py
def join(lst): output = lst.pop(0) n = 0 for word in lst: for i in range(1, len(output) + 1): substring = output[-i:] if word.startswith(substring): output += word[i:] if n == 0 or i < n: n = i break ...
ab7cc7d498bcf6e430f5f3ee54ce21077a31f0f6
e20ed90b9be7a0bcdc1603929d65b2375a224bf6
/generated-libraries/python/netapp/qos/qos_policy_group_delete_iter_info.py
b9c1249c80dd536e9d9b77e35d7b894771e5a5ac
[ "MIT" ]
permissive
radekg/netapp-ontap-lib-gen
530ec3248cff5ead37dc2aa47ced300b7585361b
6445ebb071ec147ea82a486fbe9f094c56c5c40d
refs/heads/master
2016-09-06T17:41:23.263133
2015-01-14T17:40:46
2015-01-14T17:40:46
29,256,898
2
0
null
null
null
null
UTF-8
Python
false
false
2,209
py
from netapp.qos.qos_policy_group_info import QosPolicyGroupInfo from netapp.netapp_object import NetAppObject class QosPolicyGroupDeleteIterInfo(NetAppObject): """ Information about the deletion operation that was attempted/performed against qos-policy-group object. were not deleted due to some error. ...
7996e73b8d40a38bcb034f1713d2b76544270a5a
c97b9ae1bf06757ba61f90905e4d9b9dd6498700
/venv/Lib/site-packages/skimage/util/setup.py
b9b8d3221b147d91483dc8bf4e7f656014dea973
[]
no_license
Rahulk1p/image-processor
f7ceee2e3f66d10b2889b937cdfd66a118df8b5d
385f172f7444bdbf361901108552a54979318a2d
refs/heads/main
2023-03-27T10:09:46.080935
2021-03-16T13:04:02
2021-03-16T13:04:02
348,115,443
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:4915141ae116202354212e66d14926ed94771f1e4478f2a19210d8f9d010464e size 1206
382e99a6a5e95ffe23cf57a4cfd4f4c83d66325f
a52f9758ace9a85adfb735609e0cb8839aab2977
/tests/sitetester
b1cfbddc4e01b1b26c0a31ef2a248c188e16be64
[]
no_license
yadudoc/Swift
8ec085c4297861c2197d504571e10dce2df961a4
e96600ae9ce74f529a436d33d984534ca9566ee7
refs/heads/master
2021-01-22T09:09:37.081267
2011-07-25T08:47:03
2011-07-25T08:47:03
1,968,948
1
1
null
null
null
null
UTF-8
Python
false
false
1,791
#!/usr/bin/env python import commands import os # the workdir for a given site needs to exist on the site you're testing # and should contain run-suite & suite.sh # this script will ssh onto the site, pass run-suite the necesary variables # for running suite.sh class Site: def __init__(self,login,logtype,workdi...
681c3498de14ed65faac6556b9a4a4fdd30bb14a
23b9600c8a5afb6451902c3c9b3fd3a6ba9ed1e3
/pycontour/cnt/tests/test_cnt_property.py
671b185d4386656c8b6478b5f6fbb0f5be19fe84
[ "Apache-2.0" ]
permissive
codingPingjun/pycontour
a822cef6f40f80b978b6e24db660d46c4e5e3660
892f42dd8569bcffe50433c32ca3bb414163a293
refs/heads/master
2020-03-29T10:37:48.033915
2018-09-21T18:17:24
2018-09-21T18:17:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
928
py
# -*- coding: utf-8 -*- import os, sys from pycontour import point_list_to_np_arr from pycontour import np_arr_to_cv_cnt from pycontour.cnt import get_cnt_area from pycontour.cnt import get_cnt_aspect_ratio from pycontour.cnt import get_cnt_solidity def test_property(cnt): cnt_area = get_cnt_area(cnt) cnt_a...
112b1c682d5f843710c2bb57bd848e533ac37db9
5ec06dab1409d790496ce082dacb321392b32fe9
/clients/python/generated/test/test_com_adobe_cq_social_commons_comments_scheduler_impl_search_scheduled_pos_properties.py
1694f07b9f29ee9d009be5fff57d48e5001c1ead
[ "Apache-2.0" ]
permissive
shinesolutions/swagger-aem-osgi
e9d2385f44bee70e5bbdc0d577e99a9f2525266f
c2f6e076971d2592c1cbd3f70695c679e807396b
refs/heads/master
2022-10-29T13:07:40.422092
2021-04-09T07:46:03
2021-04-09T07:46:03
190,217,155
3
3
Apache-2.0
2022-10-05T03:26:20
2019-06-04T14:23:28
null
UTF-8
Python
false
false
1,487
py
# coding: utf-8 """ Adobe Experience Manager OSGI config (AEM) API Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501 The version of the OpenAPI document: 1.0.0 Contact: [email protected] Generated by: https://openapi-...
2391b4f2d82d25411949f36512c5b7942e8622d5
c9094a4ed256260bc026514a00f93f0b09a5d60c
/homeassistant/util/process.py
6f8bafda7a70aed91d6d24f7703edddc5045ef30
[ "Apache-2.0" ]
permissive
turbokongen/home-assistant
824bc4704906ec0057f3ebd6d92788e096431f56
4ab0151fb1cbefb31def23ba850e197da0a5027f
refs/heads/dev
2023-03-12T05:49:44.508713
2021-02-17T14:06:16
2021-02-17T14:06:16
50,231,140
4
1
Apache-2.0
2023-02-22T06:14:30
2016-01-23T08:55:09
Python
UTF-8
Python
false
false
442
py
"""Util to handle processes.""" from __future__ import annotations import subprocess from typing import Any # mypy: disallow-any-generics def kill_subprocess( # pylint: disable=unsubscriptable-object # https://github.com/PyCQA/pylint/issues/4034 process: subprocess.Popen[Any], ) -> None: """Force kill ...
93dbb80bdcbe510bed8809ddb9090334d1b7cba5
edbe6966098d925e831b4e3054c76e4ae1c1891a
/cluster/code/test/test_requester.py
4ad4d87f316d1d3324176bd449314c690175eacf
[ "CC-BY-3.0", "MIT", "BSD-3-Clause" ]
permissive
Sean10/Algorithm_code
242fcb21de97186ed1caea30ab967c3f4b4e9351
8ba923150102e16a9072b8f32ced45d15b18223b
refs/heads/master
2023-06-22T17:47:07.241192
2023-06-19T15:22:23
2023-06-19T15:22:23
107,443,471
0
0
BSD-3-Clause
2021-06-08T20:35:47
2017-10-18T17:51:56
C++
UTF-8
Python
false
false
1,272
py
from cluster import * from . import utils import mock CLIENT_ID = 999999 class Tests(utils.ComponentTestCase): def setUp(self): super(Tests, self).setUp() self.callback = mock.Mock(name='callback') with mock.patch.object(Requester, 'client_ids') as client_ids: client_ids.next...
7dabd080543a7db593ce58222f1664ce3b14a7f9
e9c4239c8064d882691314fd5b37208f10447173
/leetcode/252meetingRoom.py
4cfdabad9de26d758a4eb4eebb2264529d6c4179
[]
no_license
IronE-G-G/algorithm
6f030dae6865b2f4ff4f6987b9aee06874a386c1
6f6d7928207534bc8fb6107fbb0d6866fb3a6e4a
refs/heads/master
2020-09-21T03:02:20.908940
2020-03-22T15:19:41
2020-03-22T15:19:41
224,658,441
0
0
null
null
null
null
UTF-8
Python
false
false
858
py
""" 252 会议室 给定一个会议时间安排的数组,每个会议时间都会包括开始和结束的时间 [[s1,e1],[s2,e2],...] (si < ei),请你判断一个人是否能够参加这里面的全部会议。 示例 1: 输入: [[0,30],[5,10],[15,20]] 输出: false 示例 2: 输入: [[7,10],[2,4]] 输出: true 来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problems/meeting-rooms 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。 """ class Solution: def canAtten...
51ef5cd2d9cfbed4111cec84b099160d93c11f59
9d418674a6cb6797656b15926f1f259964dabd71
/jokedbapp/image_profiles/basic_vertical.py
d702ca3843eaed294094d238a45faea1dfc4b388
[ "MIT" ]
permissive
BL-Labs/jokedbapp
f54a7aedded95591e1719ef19d6ae1f72bb6d73f
a0e03eefbf04255623a9ad81db145f1508fade5f
refs/heads/master
2020-06-08T09:19:45.827254
2019-04-10T16:04:14
2019-04-10T16:04:14
23,437,207
0
0
null
null
null
null
UTF-8
Python
false
false
5,369
py
import cairo DEFAULT = {'font': 'American Typewriter', 'size':32.0, 'style': cairo.FONT_SLANT_NORMAL, 'weight': cairo.FONT_WEIGHT_NORMAL, 'LINEHEIGHT':1.1} DEFAULT_SMALL = {'font': 'American Typewriter', 'size':22.0, 'style': cairo.FONT_SLANT_NORMAL, 'weight': cairo.FONT_WEIGHT_NORMAL, 'LINEHEIGHT':1.1} BOLD = {'font'...
68b2a186aa88e4263e2be029b45f32089b87e6ec
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03855/s164056215.py
bdc63f1ec0e4debd072fc610599656e89ad76b4e
[]
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
2,705
py
import sys from collections import deque from collections import defaultdict from collections import Counter def conn(n,m,e): d=dict(zip(range(1,n+1),range(-1,(-1)*n-1,-1))) td=defaultdict(lambda:deque([])) #tdは同値類がキーで中の元が値 c=1 for edge in e: a=edge[0] b=edge[1] da=d[a] #da,dbはa...
19516fddcf46da7c958112de4b4a48b588f34952
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02262/s633587482.py
d753ca2ac61eed71618d108cbb94d29de6373baa
[]
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
652
py
from sys import stdin def insertionSort(A, n, g): global cnt for i in range(g, n): v = A[i] j = i - g while j >= 0 and A[j] > v: A[j+g] = A[j] j = j - g cnt += 1 A[j+g] = v def shellSort(A, n): global cnt cnt = 0 g = 1 G = [...
17783be31b334cd82e6068aab17d8f98bec6cca8
de9b8b7192a0a81e9249823bb2b86f0b7e452863
/.history/main_20171106171523.py
deb4ddd52f38171dcbe23d61cbf9d45aa121589b
[ "MIT" ]
permissive
reecebenson/uwe-dadsa-tennis-a
f5eaeb1b96d4e61f29279514e68eeea8ad6533db
d0763f819b300fcd0ce27041f5bc4ef0519c00bf
refs/heads/master
2023-07-08T16:13:23.963348
2017-11-30T12:07:01
2017-11-30T12:07:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
499
py
# DADSA - Assignment 1 # Reece Benson from classes import Handler as Handler from classes import Player as Player from classes import Season as Season from classes import Tournament as Tournament from classes import Round as Round from classes import Match as Match class App(): def __hold__(self): input(">...
bfaf7ad3a1c88c89c66f90f56a241c967f7662e2
4f0e26b19f9b97c2a62605c039440fa984ebaaba
/scripts/easy_install-2.6-script.py
2c20b3f8a0a56b276e911c4435a3fbfc81403321
[]
no_license
acmiyaguchi/buildbotve
61ff08955997445a2b38032692d1ba0fcc9235e0
8f2806e1b83ff1df5f6f6313089c0d1d1f2fe288
refs/heads/master
2020-12-25T19:04:13.485076
2015-08-10T21:48:24
2015-08-10T21:48:24
40,506,723
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
#!c:\mozilla-build\buildbotve\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'distribute==0.6.14','console_scripts','easy_install-2.6' __requires__ = 'distribute==0.6.14' import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.exit( load_entry_point('distribute==0.6.14...
6306027d406174be1fb961bc6ff1ffcd7c4b825f
b4afb44b8f483c048716fe12d778186ce68ac846
/pages/ios/ffan/fei_fan_activity_page_configs.py
d12c7b41288668dca21a167d40b4743ce3b02f25
[]
no_license
liu111xiao111/UItest
64309b2c85f6d2334d64bb0875ba9ced459ebb1e
67e2acc9a99da81022e286e8d8ec7ccb12636ff3
refs/heads/master
2021-09-01T18:30:28.044296
2017-12-28T04:36:46
2017-12-28T04:36:46
115,585,226
1
0
null
null
null
null
UTF-8
Python
false
false
478
py
#!/usr/bin/env python # -*- coding:utf-8 -*- class FeiFanActivityPageConfigs(object): ''' This is a configuration class for FeiFanActivityPage class. ''' # Assert view time out assert_view_timeout = 10 # Assert invalid view time out assert_invalid_view_time = 3 # Click button time ...
a622006114c11724974981c8fde6b7a6250f0085
57e6f45405452526945c34c43d42c8f8fdbf1de4
/changeseeking_tracing/run_m6.py
fd887a5c4f2374d0d3d53b7e2b0b5f5750026482
[]
no_license
mitroadmaps/map-maintainer
d48c4d58d4129672afb615674eb4718ca265a870
b9e125830ed177f182bbd87d18e8b76946408e7b
refs/heads/master
2023-08-29T13:00:09.442187
2021-11-02T23:52:43
2021-11-02T23:52:43
335,781,636
5
1
null
null
null
null
UTF-8
Python
false
false
6,214
py
from discoverlib import geom, graph import model_m6a as model import tileloader as tileloader import numpy import math import os import os.path import random import scipy.ndimage import sys import tensorflow as tf import time model_path = sys.argv[1] old_tile_path = sys.argv[2] new_tile_path = sys.argv[3] graph_path ...
9687d37ecb9adfe8cd3cd82ced27afb31f1bafd2
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2653/60749/257218.py
8275f8a1cd5eee9113e42a0a5bae23d48fe94bb8
[]
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
152
py
n=int(input()) res=[] for _ in range(n): res.append(input().split(" ")) for h in res: a=h[0] b=h[1] res=str((a-1)*(10-b)) print(res)
5eb4a0a88031d87a676379e40039387261a2a1cf
d967cf34a147f1bde1839fecfa1d356bb4c83d66
/scripts/releaser_hooks.py
5c115013ca4c09b6a6f7c21760ccdee4dbc72608
[ "BSD-3-Clause" ]
permissive
Lessica/django-photologue
dbb44656b85c06f5c733ca50efb3595599b9387e
3e2e7b3cf02ba396ccb063927513930a9a711036
refs/heads/master
2022-04-18T01:52:04.228366
2022-02-23T10:01:06
2022-02-23T10:01:06
256,437,446
0
0
BSD-3-Clause
2020-04-17T07:49:46
2020-04-17T07:49:45
null
UTF-8
Python
false
false
3,436
py
import os import subprocess try: import polib except ImportError: print('Msg to the package releaser: prerelease hooks will not work as you have not installed polib.') raise import codecs import copy def prereleaser_before(data): """ 1. Run the unit tests one last time before we make a release. ...
03665678c340fd12dded68cb93404683636a2552
63ce91bae5eeadf885262b8fe0e769a64454d257
/ignite_template.py
860100b069677d6072b88c13df487527f4e5f296
[ "Apache-2.0" ]
permissive
Data-drone/cv_experiments
c7349e7808f7f9c1315ce1efe33be1f86f4a9f80
d6e1d9716c03a9165e3d8a08f4cc1287323a56ca
refs/heads/master
2021-06-26T04:33:10.079771
2021-01-19T11:40:30
2021-01-19T11:40:30
196,596,871
0
0
null
null
null
null
UTF-8
Python
false
false
4,638
py
### Ignite Example from argparse import ArgumentParser from torch import nn from torch.optim import SGD from torch.utils.data import DataLoader import torch import torch.nn.functional as F from torchvision.transforms import Compose, ToTensor, Normalize from torchvision.datasets import MNIST from ignite.engine import...
a0a3845ac7ef4d04ce903f51f533772194a7f499
a0c60bd23fbdc7a89786d1f775455057aeb32701
/torch/onnx/_constants.py
8b71a4f86c173d18eec7d8955e92137a7d42a1e7
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
cpuhrsch/pytorch
474dd74a729c11970af0a010d3f076e8ef31b74f
be327ec08f320e256d444693dde65fe55831bc46
refs/heads/master
2023-06-23T04:33:16.514572
2022-09-30T18:51:43
2022-09-30T18:51:43
118,517,346
2
2
NOASSERTION
2022-05-24T00:58:21
2018-01-22T21:26:11
C++
UTF-8
Python
false
false
355
py
"""Constant values used in ONNX.""" ONNX_ARCHIVE_MODEL_PROTO_NAME = "__MODEL_PROTO" ONNX_BASE_OPSET = 9 ONNX_MIN_OPSET = 7 ONNX_MAX_OPSET = 17 # ONNX_DEFAULT_OPSET generated by tools/onnx/update_default_opset_version.py ONNX_DEFAULT_OPSET = 14 ONNX_CONSTANT_FOLDING_MIN_OPSET = 9 PYTORCH_GITHUB_ISSUES_URL = "https://...
9dd608ba30dfbbde63634e389ca85fd9e593e4db
dbbb048a0e494d92ee3851b0e67836ae38b147b5
/util/cdx2db.py
b2bd77d54d92546ab1d77b31b793c795412c9883
[ "Unlicense" ]
permissive
ArchiveTeam/justintv-index
4c5ce07711c8357dbfedaec14ffe0bc3e783ab69
3c6397f54a9e50456ad683a944c32db2aeee4153
refs/heads/master
2021-01-18T16:22:52.003475
2014-09-05T20:41:15
2014-09-05T20:41:15
22,726,463
0
0
null
null
null
null
UTF-8
Python
false
false
1,805
py
'''Process the CDX files into a database.''' import gzip import argparse import dbm import re def read_cdx(filename): with gzip.open(filename, 'rt') as in_file: header = in_file.readline() assert header.rstrip() == ' CDX N b a m s k r M S V g' for line in in_file: (massaged_u...
48da04f61e056962abffa6aab149f7ef9965f6c3
b6bcfd935f7876fc65416e7340fda1c9b0516fd7
/examples/pbc/12-gamma_point_post_hf.py
38f775af31be359c38bccf0b98f07a92246a91a7
[ "Apache-2.0" ]
permissive
lzypotato/pyscf
62f849b9a3ec8480c3da63a5822ea780608796b2
94c21e2e9745800c7efc7256de0d628fc60afc36
refs/heads/master
2020-09-06T22:45:04.191935
2019-06-18T06:04:48
2019-06-18T06:04:48
220,578,540
1
0
Apache-2.0
2019-11-09T02:13:16
2019-11-09T02:13:15
null
UTF-8
Python
false
false
913
py
#!/usr/bin/env python ''' Gamma point post-HF calculation needs only real integrals. Methods implemented in finite-size system can be directly used here without any modification. ''' import numpy from pyscf.pbc import gto, scf cell = gto.M( a = numpy.eye(3)*3.5668, atom = '''C 0. 0. 0. ...
bd55384ca7a0585407e1d2dfe91d875ad040fbdf
9b9f7546c9d4396bae7d9065b81b8c6c163b9a1d
/lectures/physics/old/NumericalIntegration003.py
04b881c55a92a5de32c593f54cd00e16b9b1b659
[]
no_license
geo7/csci321
60db9454fab00fc63624a4fc32c4dd47f02fda41
527744c8d76c5c4aceb07e23a1ec3127be305641
refs/heads/master
2020-12-28T14:50:17.267837
2015-06-03T19:18:53
2015-06-03T19:18:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,786
py
import numpy as N import pygame, time from pygame.locals import * from pygame.color import * import numpy as N from particlesystem import * #### Globals pygame.init() screen = pygame.display.set_mode((640,480)) background = pygame.Surface(screen.get_size()) background.fill((128,128,255)) myfont = pygam...
feb125c8c1bdc5ba19a5cbac3035d3dc811bf671
4e5d078e21cccd8ad2793055ca79865c2bb4c10a
/crawler/julyedu_crawler/julyedu_crawler/settings.py
d8b27127827e007dcc8ffec5a361ee941877fd59
[]
no_license
gifts1912/PythonProject
13cabf395cd9efaebca19e2ea8519d39b772a3c6
e6bccdb37a60bee9c219eaf8f9514109074c3ce4
refs/heads/master
2021-01-09T09:37:47.114854
2017-04-01T07:45:09
2017-04-01T07:45:09
81,183,554
1
0
null
null
null
null
UTF-8
Python
false
false
3,206
py
# -*- coding: utf-8 -*- # Scrapy settings for julyedu_crawler project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # http://doc.scrapy.org/en/latest/topics/settings.html # http://scrapy.readthedocs.org/e...
d7dfea7732fa3aeb28a4d33e5c072968ab7880a2
de0724c1b71dce624ae2fcef9044952a6360c8cf
/pca_masks/extract_signal_subrois.py
7733df08085d1f4ecf29433da676cda48a8c7937
[]
no_license
Gilles86/bias_task
8c52914c55dc7866d5d679305be2ad4fcb96dc5e
18cce163e662c7edf8d42d7f32e87f0ed644875d
refs/heads/master
2021-07-09T01:45:43.381063
2020-07-29T08:17:20
2020-07-29T08:17:20
168,526,219
0
0
null
null
null
null
UTF-8
Python
false
false
3,474
py
import argparse import os.path as op import nipype.pipeline.engine as pe import nipype.interfaces.io as nio import nipype.interfaces.utility as niu import nipype.interfaces.ants as ants from niworkflows.interfaces.bids import DerivativesDataSink def main(derivatives, ds): if ds == 'ds-01': subjects = ...
902e51bf7e36d601a8ba585d3269eb982f6f8d7c
a38670ee08ea64af33477899a68ee22936f70ce7
/luffy/第三模块/第6章网络编程/第6章每小节/5 文件传输/优化/服务端.py
d8ea33a935f6021bdfff842963a99952f97a3b17
[]
no_license
foremostxiao/d
40ed37215f411e8b081a4cb92c8ecbd335cd9d76
fe80672adc6b2406365b05d5cedd02c6abf66c11
refs/heads/master
2020-03-29T13:51:19.589004
2018-09-23T09:29:56
2018-09-23T09:29:56
149,985,622
0
0
null
null
null
null
UTF-8
Python
false
false
2,991
py
import socket import subprocess import struct import json import os,sys BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(BASE_DIR) from db import settings def get(conn,cmds): filename = cmds[1] header_dic = { 'filename': filename, 'md5': 'xxdxxx', ...
f27edaccdc64a506e287adb8921ebb20260c7a50
e0c00b126aecd06e0b914a6134c8c14f647ad620
/comment/models.py
43376e0cb71cc865babafdbc205c54541d018c96
[]
no_license
ssk1987/MyBlog_django
e658eb29504968fdf5659f8befbb598d039e721e
12d9e38b5f1b1460f3525fb4a57a0a73ceac1435
refs/heads/master
2023-03-28T09:47:08.446446
2021-03-26T06:52:46
2021-03-26T06:52:46
351,415,646
0
0
null
null
null
null
UTF-8
Python
false
false
1,548
py
from django.db import models from django.contrib.auth.models import User from article.models import ArticlePost from mptt.models import MPTTModel, TreeForeignKey from ckeditor.fields import RichTextField # 文章评论 class Comment(MPTTModel): # 被评论的文章 article = models.ForeignKey(ArticlePost, on_delete=models.CASCAD...
b9464425e45d62a6f92da84b5b394988caf0a5a1
0c01446c765b9765b1dd1e95dfd1915e61e5d16d
/run.py
6191de1ff540b604c8b4e4269fa1b126ea901f0d
[ "MIT" ]
permissive
saeedbeiraki/Second_Order_Parsing
3cf3ff75d62297236432d3efec895ee7f6e99c04
333c2dc5a72b2018f3e3331a232dfe3cd63f9a37
refs/heads/main
2022-12-29T15:22:16.908353
2020-10-22T09:15:57
2020-10-22T09:15:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,364
py
# -*- coding: utf-8 -*- import argparse import os from parser.cmds import Evaluate, Predict, Train from parser.config import Config import torch import pdb if __name__ == '__main__': parser = argparse.ArgumentParser( description='Create the Biaffine Parser model.' ) subparsers = parser.add_subpa...
0f6336a4696e6bd762d1b4c51b39b6aaca2b9344
3eed647ca50411ce28072085e50aaf83ea792539
/config.py
1fb9b937ded6c83b3ff2ec66e7fd7142b35075df
[]
no_license
valhuber/ApiLogicServerProto
132dcd6064b63fe0d02cb40e9c58ae191a3674f1
5425bf518e4201b103c7c943e23f18434284e6c7
refs/heads/main
2023-03-02T03:16:17.226783
2021-01-26T18:07:59
2021-01-26T18:07:59
328,511,148
1
1
null
2021-01-26T15:24:43
2021-01-11T00:46:32
Python
UTF-8
Python
false
false
1,794
py
"""Flask configuration variables.""" from os import environ, path import util from dotenv import load_dotenv # for complete flask_sqlachemy config parameters,session handling, # read: file flask_sqlalchemy/__init__.py AND flask/config.py ''' app.config.setdefault('SQLALCHEMY_DATABASE_URI', 'sqlite:///:memory:') app....
692f0ccbe03319a9173e638c8c084eaaaa48af69
96c6060e49418f87f49625fa2e141324aa809b5a
/setup.py
e2e56cba82e8fc128873f37e444afd18132ff835
[]
no_license
paulosjd/aqrecs
9e08dc79b74d24610bfc2c360f6fafd988ec38e7
3ea59811aabfb9b67431ab971e7cc9630cfea920
refs/heads/master
2020-12-10T00:18:06.044062
2020-03-15T22:41:00
2020-03-15T22:41:00
233,456,167
0
0
null
null
null
null
UTF-8
Python
false
false
1,468
py
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.md')) as f: README = f.read() requires = [ 'plaster_pastedeploy', 'pyramid', 'pyramid_mako', 'pyramid_debugtoolbar', 'waitress', 'alembic', 'pyr...
2740018dd7730df6381dd6898796dac5699a78f5
a7d41aa056165fc33b0c1d8edd50b8557f642548
/Python/Map-1/map_ab3.py
b30e1d8ec495be592f788fc466020d41a6bd6c6e
[]
no_license
jemtca/CodingBat
3243ec9c5309f8581e1a54fba0b076069cec7d74
8545a70348dd621070c8b3efa280ca79a24f9d5a
refs/heads/master
2023-04-05T03:20:17.416495
2023-03-31T06:35:08
2023-03-31T06:35:08
147,287,514
0
0
null
null
null
null
UTF-8
Python
false
false
460
py
# modify and return the given map as follows: if exactly one of the keys "a" or "b" has a value in the map (but not both), set the other to have that same value in the map def map_ab3(d): if 'a' in d and not 'b' in d: d['b'] = d['a'] elif not 'a' in d and 'b' in d: d['a'] = d['b'] return d...
3ab1275b9cc38744553596af5a248053d6f0c3cc
e83e8a3b7ef31b36b2c590b37bf2d1df1487fe5a
/ninja/security/apikey.py
ef210d43560322ac2c455bd8552c365eca0a3299
[ "MIT" ]
permissive
duilio/django-ninja
19d66eae1b3b01f9910f3ea0f569ed6d3a561707
8dac3c981bcf431322d32acd34c8179564a3698d
refs/heads/master
2023-01-21T07:17:02.544071
2020-11-25T10:48:30
2020-11-25T10:48:30
316,243,580
0
0
MIT
2020-11-26T13:56:19
2020-11-26T13:45:12
null
UTF-8
Python
false
false
981
py
from ninja.security.base import AuthBase from ninja.compatibility.request import get_headers class APIKeyBase(AuthBase): openapi_type = "apiKey" param_name = "key" def __init__(self): self.openapi_name = self.param_name super().__init__() def __call__(self, request): key = se...
8dfd73233628b2b4e5705f550dd176e3c4993a6f
fd1612fb542fede6899c3f69ff124e7b2335ad95
/list/views.py
15db2a2bde30f4d531e2cf5ac7e5e847feec1fd7
[]
no_license
Shovon588/toDoList
821a7163caa6d6abb4c7f8e6ecea34e6249b1b87
bf037097a37734a106c959729c05d9beb0f503e6
refs/heads/master
2021-09-25T08:07:45.355541
2020-04-19T05:18:23
2020-04-19T05:18:23
231,726,869
0
0
null
2021-09-22T18:52:30
2020-01-04T07:37:16
JavaScript
UTF-8
Python
false
false
2,062
py
from django.shortcuts import render from list.models import Item, UserIP from django.http import HttpResponseRedirect from django.urls import reverse from django.contrib import messages from datetime import datetime # Create your views here. def index(request): x_forwarded_for = request.META.get('HTTP_X_FORWARDE...
83f5415c5e682e0e5c90fe418860953455cc7050
cebe89b09271deb0dfff1baa5e1beb8b5a4f95c4
/pycurve/parser.py
d74028c6b2e9ddaec1f1845561fc620f793867bb
[ "Apache-2.0" ]
permissive
thatch45/curve
1ff3bcd8f961e25cf6d6f38a6c509c287d98eb82
2684733ad2de51e0a0c78a46d99ae4442f879e87
refs/heads/master
2020-05-29T21:49:37.110085
2013-12-12T05:38:46
2013-12-12T05:38:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
997
py
''' Parse command line options ''' import optparse def parse(): ''' Parse options for a server ''' parser = optparse.OptionParser() parser.add_option( '--server-ip', dest='server_ip', default='127.0.0.1', help='the server ip') parser.add_option(...
47c7333bc96d80de441ad9dfc8c33af56bea3437
03f32cdb30e6a44decd529f9112a6459c655b1ef
/2_FormNetAndSomeStatics/createnet.py
bcedbee39a9a6babce8a0838f2967829f15e8837
[]
no_license
curryli/AntiLanudry-Python
ee693480e0c62dc0795bd9b76499149cdec7a83a
4d69d911be5cea6aa30f6aeb263644614808cea2
refs/heads/master
2021-01-11T01:47:24.384978
2016-12-14T07:04:32
2016-12-14T07:04:32
70,667,232
0
0
null
null
null
null
UTF-8
Python
false
false
1,179
py
import sys import re import os def GetInOut(filein,fileout): r = re.compile('\s') with open(filein,'r') as FILEIN: with open(fileout,'w') as FILEOUT: for line in FILEIN.readlines(): ItemList = r.split(line) #in, out, money, locati...
cfeb943a74dbd748829d195b83c317c63c5c287f
d838bed08a00114c92b73982a74d96c15166a49e
/docs/data/learn/Bioinformatics/input/ch3_code/src/Stepik.3.10.CodeChallenge.GenerateContigsFromReads.py
9dac465815b57c2cd32dbeb1129b39899c5e4a18
[]
no_license
offbynull/offbynull.github.io
4911f53d77f6c59e7a453ee271b1e04e613862bc
754a85f43159738b89dd2bde1ad6ba0d75f34b98
refs/heads/master
2023-07-04T00:39:50.013571
2023-06-17T20:27:05
2023-06-17T23:27:00
308,482,936
1
0
null
null
null
null
UTF-8
Python
false
false
610
py
from FindContigs import find_maximal_non_branching_paths from Read import Read from ToDeBruijnGraph import to_debruijn_graph with open('/home/user/Downloads/dataset_240263_5.txt', mode='r', encoding='utf-8') as f: data = f.read() lines = data.split('\n') kmers = lines[:] kmers = [l.strip() for l in kmers] # get r...
cc46f4e6f27650f01b8dfc036fb07f4c738cc912
dc95dfb24f3cd12b823dfad2cca8607ab12e757b
/11-Lists-Mutation/Coding Exercises/while_testing.py
8fe180696ca79d5a7fb264b089e7bd7d79518111
[]
no_license
RandyG3/Python
06213a361deac2d653d4cd4734728838ed34e733
86068d81ae037beb6fd6114d93074a92c2f3108e
refs/heads/master
2023-01-06T15:18:43.173886
2020-11-08T03:03:34
2020-11-08T03:03:34
236,549,506
0
0
null
null
null
null
UTF-8
Python
false
false
171
py
def delete_all(strings, target): i = 0 while target in strings: strings.remove(target) i += 1 return strings print(delete_all([4, 4, 4], 4))
e10707058cbb09229792c940f0b0188728ca2335
c39f999cae8825afe2cdf1518d93ba31bd4c0e95
/PYME/ParallelTasks/taskQueue.py
c486b62becb2b78e8edbd235be56dd08794665e8
[]
no_license
WilliamRo/CLipPYME
0b69860136a9b2533f2f29fc29408d7471cb934d
6596167034c727ad7dad0a741dd59e0e48f6852a
refs/heads/master
2023-05-11T09:50:58.605989
2023-05-09T02:17:47
2023-05-09T02:17:47
60,789,741
3
1
null
2016-06-17T08:52:44
2016-06-09T16:30:14
Python
UTF-8
Python
false
false
5,659
py
#!/usr/bin/python ################## # taskQueue.py # # Copyright David Baddeley, 2009 # [email protected] # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Lice...
3804ffbc4338cf88a60d5ae74c2722e1a81e2149
09dd58f46b1e914278067a69142230c7af0165c2
/blackmamba/lib/rope/base/fscommands.py
3564ed919c9cfb40b50806b43940c8f8240d4135
[ "MIT" ]
permissive
zrzka/blackmamba
4e70262fbe3702553bf5d285a81b33eb6b3025ea
b298bc5d59e5aea9d494282910faf522c08ebba9
refs/heads/master
2021-01-01T18:43:19.490953
2020-01-20T08:26:33
2020-01-20T08:26:33
98,410,391
72
12
MIT
2020-01-20T08:26:35
2017-07-26T10:21:15
Python
UTF-8
Python
false
false
7,983
py
"""Project file system commands. This modules implements file system operations used by rope. Different version control systems can be supported by implementing the interface provided by `FileSystemCommands` class. See `SubversionCommands` and `MercurialCommands` for example. """ import os import shutil import subp...
8443bf3ecaa41447fe625e2fe2294e82ecab398d
ccbfc7818c0b75929a1dfae41dc061d5e0b78519
/aliyun-openapi-python-sdk-master/aliyun-python-sdk-cloudesl/aliyunsdkcloudesl/request/v20180801/DescribeStoresRequest.py
5a7a3d07d56264658c0fd2ae92922535fd509779
[ "Apache-2.0" ]
permissive
P79N6A/dysms_python
44b634ffb2856b81d5f79f65889bfd5232a9b546
f44877b35817e103eed469a637813efffa1be3e4
refs/heads/master
2020-04-28T15:25:00.368913
2019-03-13T07:52:34
2019-03-13T07:52:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,173
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
b7cc73147ba4ef14c6838961e1aef059cb0b31c4
66bb3f65f0157a2b5475903c90a54d5173bc4f0a
/djthia/bin/thank_you.py
ee920d6ca181a5ffa1743eab7dad3af84a511194
[ "MIT" ]
permissive
carthage-college/django-djthia
691233049bcb05391fd82e390edb717f3bc0588a
52401592291a980c7226c0573d415e7cdb8c20d3
refs/heads/master
2023-03-04T08:22:03.055448
2023-02-24T18:33:12
2023-02-24T18:33:12
249,989,382
0
0
MIT
2023-02-24T18:33:56
2020-03-25T13:43:24
Python
UTF-8
Python
false
false
1,155
py
#! /usr/bin/env python3 # -*- coding: utf-8 -*- import django import os import sys # load apps django.setup() from django.conf import settings from djthia.gearup.models import Annotation from djtools.utils.mail import send_mail # env os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djthia.settings.shell') DEBUG = ...
7b98ad676a95b27ba930eb3ee2cf809754df15c6
9cc1b58d0319308da98187d071295b2fabf1f080
/0730_numpy/a0730_終於教到Numpy_02.py
3e6fefbfabd6cd5f2e6ebc2b2d00832df63433cd
[ "MIT" ]
permissive
Arwen0905/Python_Test
60d1dee383c9cf27df6b93cfde7884c91092229c
c75357e4354a684a9fae41f751dae60d4cf0716c
refs/heads/master
2023-01-13T13:14:55.355898
2020-10-31T18:52:07
2020-10-31T18:52:07
265,150,874
0
1
null
null
null
null
UTF-8
Python
false
false
1,089
py
import numpy as np a = np.array([1,2,3]) a = a * 3 a = a + 2 print(f"原本的a: {a}") b = np.array([2,2,0]) print(f"原本的b: {b}") print("a+b: ",a+b) # print("a/b: ",a/b) #除有問題 print("a*b: ",a*b) #建立陣列: np.array #建立陣列: np.arange c = np.arange(10) print(c) d = np.linspace(0,10,5) #平均撒點 print(d) e = np.array([[1,2,3],[4,5,6]...
3ff08b6463ee0d3726a8807965d91aba577eb6f3
dd87194dee537c2291cf0c0de809e2b1bf81b5b2
/test/test_v1beta1_deployment_spec.py
661c7f5b82ef365e85cabe855eb49e525f5a2da1
[ "Apache-2.0" ]
permissive
Arvinhub/client-python
3ea52640ab02e4bf5677d0fd54fdb4503ecb7768
d67df30f635231d68dc4c20b9b7e234c616c1e6a
refs/heads/master
2023-08-31T03:25:57.823810
2016-11-02T22:44:36
2016-11-02T22:44:36
73,865,578
1
0
Apache-2.0
2018-10-10T12:16:45
2016-11-15T23:47:17
Python
UTF-8
Python
false
false
1,440
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: unversioned Generated by: https://github.com/swagger-api/swagger-codegen.git Licensed under the Apache License, Version 2.0 (the "Licens...
f28198c3ce34e8dc612664c6550ed1185d9c3b32
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5690574640250880_1/Python/kevinleeone/main.py
7a28010c1cded6c2928d58496a1d84262b6a4e88
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
2,338
py
import sys def fillRow(data, row): for i in range(len(data[row])): data[row][i] = '*' def fillCol(data, col): for i in data: i[col] = '*' def fill(data, row, col): data[row][col] = '*' def printSolution(data): return '\n'.join([''.join(i) for i in data]) def solve(): row, col, m...
050fdadc5b742ad96f26c3e3b74fc638ca7f9300
2cb2bc953975540de8dfe3aee256fb3daa852bfb
/kawagashira_nobuyuki/tyama_codeiq186.py
c27fa12584c938e2faec4bcece92b9bd39865131
[]
no_license
cielavenir/codeiq_solutions
db0c2001f9a837716aee1effbd92071e4033d7e0
750a22c937db0a5d94bfa5b6ee5ae7f1a2c06d57
refs/heads/master
2023-04-27T14:20:09.251817
2023-04-17T03:22:57
2023-04-17T03:22:57
19,687,315
2
4
null
null
null
null
UTF-8
Python
false
false
870
py
#!/usr/bin/python #coding:utf-8 import nltk #import re #nltk.download() #Download Corpora -> gutenberg from nltk.corpus import gutenberg #words1 = [w.lower() for w in gutenberg.words('austen-sense.txt')] #words2 = [w for w in words1 if re.sub(r'[^a-z]','',w)==w] words2 = [w.lower() for w in gutenberg.words('austen-sens...
3ce44d8bde5dbf48a665dbc4c07d1ad54d105060
4db539a1fec5369d1970a10554a71f85b31a1855
/manage_command/migrations/0003_auto_20200707_2112.py
43943b20f0285a850ceef3038c56e8a6990cda4a
[]
no_license
1SouravGhosh/API_MONGO
8f04f37892703fbac9d851028505252cf58886b8
b7071ec5797adf3bcccdf6749c560f50e1469839
refs/heads/master
2022-11-19T23:35:03.933449
2020-07-10T07:24:22
2020-07-10T07:24:22
278,567,555
0
0
null
null
null
null
UTF-8
Python
false
false
374
py
# Generated by Django 3.0.5 on 2020-07-07 15:42 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('manage_command', '0002_auto_20200707_2111'), ] operations = [ migrations.RenameField( model_name='command', old_name='comman...
f86b14c00d63c82b17124a789bec6e8f3d9f89e5
37683c6f6c36f47ff4c7344576b268817e992ec3
/源代码/p17/p17_50.py
5b95523d6d60cf37313b3d1f9b97a73f93d0f7ac
[]
no_license
WhiteSheep-y/Python
33e026a798e2a02d75908cefa2b02fa2c654e199
a166bdb8ec8bcea2f955b43d16e9c9b92c44f558
refs/heads/main
2023-06-01T02:09:32.641415
2021-06-16T15:00:09
2021-06-16T15:00:09
359,199,929
0
0
null
null
null
null
UTF-8
Python
false
false
251
py
# p17_50.py from tkinter import * root = Tk() def create(): top = Toplevel() top.title("FishC Demo") msg = Message(top, text="I love FishC.com") msg.pack() Button(root, text="创建顶级窗口", command=create).pack() mainloop()
53096071f7b1fc09e5f96abc1c67458157a34650
1b78ca7f3250ebed418717c6ea28b5a77367f1b8
/051.n-queens/n-queens.py
0d216ecb8ef8f38a36a8a90aa7459786820bdf17
[]
no_license
JaniceLC/lc-all-solutions
ced854f31b94f44c0b03a0677988805e3b9ee718
3f2a4ee8c09a8890423c6a22c73f470eccf979a2
refs/heads/master
2020-04-05T19:53:31.307528
2018-11-12T04:18:45
2018-11-12T04:18:45
157,155,285
0
2
null
2018-11-12T04:13:22
2018-11-12T04:13:22
null
UTF-8
Python
false
false
1,091
py
class Solution(object): def solveNQueens(self, n): """ :type n: int :rtype: List[List[str]] """ ans = [] def dfs(path, n, ans): if len(path) == n: ans.append(drawChess(path)) return ...
b7334aef4dd1fac6f082369bba23650ac0764e78
6f866eb49d0b67f0bbbf35c34cebe2babe2f8719
/tests/app/forms/field_handlers/test_field_handler.py
81289acd03f8c36048634f0175cd0fdb9e99385b
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
ONSdigital/eq-questionnaire-runner
681b0d081f9cff0ee4ae3017ecc61f7390d553bf
87e7364c4d54fee99e6a5e96649123f11c4b53f1
refs/heads/main
2023-09-01T21:59:56.733363
2023-08-31T15:07:55
2023-08-31T15:07:55
219,752,509
12
18
MIT
2023-09-14T11:37:31
2019-11-05T13:32:18
Python
UTF-8
Python
false
false
2,438
py
from wtforms import validators from app.forms import error_messages from app.forms.field_handlers.string_handler import StringHandler from app.forms.validators import ResponseRequired def test_get_mandatory_validator_optional(value_source_resolver, rule_evaluator): answer = {"mandatory": False} text_area_ha...
690ea698c2f6650c9785ed6877b332086552e8c7
6b4f38370ce1126a7f74e13c2012ab238a01df93
/azure-mgmt-compute/azure/mgmt/compute/compute/v2017_03_30/models/os_disk_image.py
52165b11bc0cd25a81a4315d22b3130f970e4f7d
[ "MIT" ]
permissive
action/azure-sdk-for-python
52d8a278bfb2fbc9c7e11297e3bd21c604f906b1
f06553e45451f065c87ee9ed503ac4be81e64a71
refs/heads/master
2020-12-03T02:13:52.566291
2017-06-30T18:42:49
2017-06-30T18:42:49
95,917,797
1
0
null
2017-06-30T19:25:58
2017-06-30T19:25:58
null
UTF-8
Python
false
false
1,140
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
3c288fa74b379bbb4e9419282be8f2108292fa16
139715a923c8c82b172803d5bdc1b1bca46fbdf3
/leetcode/swap_node.py
5bfdd00934e97a6e295d9ed9688c73a3b12c36b5
[]
no_license
haoccheng/pegasus
ab32dcc4265ed901e73790d8952aa3d72bdf72e7
76cbac7ffbea738c917e96655e206f8ecb705167
refs/heads/master
2021-01-10T11:33:23.038288
2016-03-18T04:17:28
2016-03-18T04:17:28
46,103,391
0
0
null
null
null
null
UTF-8
Python
false
false
955
py
# Given a linked list, swap every two adjacent nodes and return the head. # 1->2->3->4 return: 2->1->4->3. # Use constant space. May not modify the values in the list; only nodes itself can be changed. class ListNode: def __init__(self, x): self.val = x self.next = None def pt(self): ret = [] ret....
b285f83ba9cb715e85abeb79cde46b6044797581
9507ff9e9bca2ca8104369c9e25acd74d308e9b3
/data_collect/novatel_pi.py
485fa7917c9ecbd01b49b1f1ad849886d092ea02
[]
no_license
yangkang411/python_tool
03e483c7ec7e1e76284f93cf5b9086fdf98af826
713071a9fbabfabcbc3c16ce58d1382c410a7ea3
refs/heads/master
2023-03-17T16:14:03.332332
2020-09-10T02:37:05
2020-09-10T02:37:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,837
py
#!/usr/bin/python import serial import math import time import datetime import os def get_utc_day(): year = int(time.strftime("%Y")) month = int(time.strftime("%m")) day = int(time.strftime("%d")) hour = int(time.strftime("%H")) minute = int(time.strftime("%M")) second = int(time.strftime("%S")) local_time = d...
6dc99ea802bf1e2b5e2bec7686b08547ccf9f1ae
b71e4e576d242598d8cec5c552e1d66630b81328
/tools/generate_changelog.py
810bde02639a0ed417bc48dd5d0bd88b0c2d2b77
[ "Apache-2.0" ]
permissive
Global19-atlassian-net/qiskit-bot
d77b7b326e3a9b3e4db3b7453fa62326ecc65be7
2cd2e27d0ff51bb517eee0ceab24cb57b2034f12
refs/heads/master
2023-03-31T08:05:38.992587
2021-04-09T20:23:50
2021-04-09T20:23:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,863
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2019 # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICE...
7c7f43bb605f5e933d8b743773578ddafeecd426
35e79b51f691b7737db254ba1d907b2fd2d731ef
/AtCoder/ARC/108/B.py
70f7cfc3ece60774a07f7d71f03ed6736989158b
[]
no_license
rodea0952/competitive-programming
00260062d00f56a011f146cbdb9ef8356e6b69e4
9d7089307c8f61ea1274a9f51d6ea00d67b80482
refs/heads/master
2022-07-01T02:25:46.897613
2022-06-04T08:44:42
2022-06-04T08:44:42
202,485,546
0
0
null
null
null
null
UTF-8
Python
false
false
220
py
n = int(input()) s = input() seq = [] for i in range(n): seq.append(s[i]) if len(seq) <= 2: continue if seq[-3] + seq[-2] + seq[-1] == "fox": for j in range(3): seq.pop() print(len(seq))
dacc6ba9a649d25e5bab950814610ce498f64c67
e77b92df446f0afed18a923846944b5fd3596bf9
/Programers_algo/DFS_BFS/pro_4_re_re_re.py
6c6c3154a70e176d89d9f76bbb775c1d43586c4c
[]
no_license
sds1vrk/Algo_Study
e40ca8eb348d1fc6f88d883b26195b9ee6f35b2e
fbbc21bb06bb5dc08927b899ddc20e6cde9f0319
refs/heads/main
2023-06-27T05:49:15.351644
2021-08-01T12:43:06
2021-08-01T12:43:06
356,512,348
0
0
null
null
null
null
UTF-8
Python
false
false
1,037
py
from collections import defaultdict def solution(tickets): # 특정 티켓의 인접 리스트를 구하는 함수 def init_graph(): routes = defaultdict(list) for key, value in tickets: routes[key].append(value) return routes # 재귀 호출을 사용한 DFS def dfs(key, footprint): if len(footprint) == N...
ec3d37871d0b7c038a83fbd98c57ece4b479fd40
ba4e73e43a419b2491c68ef1b64f6ff21c296fb8
/src/profiles_project/profiles_api/serializers.py
41de36ffefe6a3fc177d0ac206d764e10d37fdc8
[]
no_license
adithyanps/profile-rest-api
7ca6c14f43bc072b4cd3815463950753867b5786
65421b9f3fd45f80ef86a8ca6591929a0e5453d8
refs/heads/master
2020-04-09T22:35:40.979205
2018-12-06T07:15:54
2018-12-06T07:15:54
160,632,750
0
0
null
null
null
null
UTF-8
Python
false
false
1,114
py
from rest_framework import serializers from . import models class HelloSerializer(serializers.Serializer): """serialise a name field for testing our API view""" name = serializers.CharField(max_length=10) class UserProfileSerializer(serializers.ModelSerializer): """A serializer for our user profile object...
3cf0e33afa27ddc56d6846b1d08d09011df235f6
5c11c2731c736be4055639b9ddae74d2536a62b9
/cloudmesh_base/locations.py
f7d263a459b779d2e44c894868778aa42b558464
[ "Apache-2.0" ]
permissive
zaber-paul/base
6694e1e12c0ca7e500e7e645df0336475bf0b11a
9c4d4e40db7a5059dcaa32d44be0146b6bb829c4
refs/heads/master
2020-08-11T09:37:08.805336
2020-01-08T01:24:44
2020-01-08T01:24:44
214,541,353
0
0
Apache-2.0
2019-10-11T22:56:48
2019-10-11T22:56:48
null
UTF-8
Python
false
false
890
py
from cloudmesh_base.util import path_expand from cloudmesh_base.Shell import Shell import os __config_dir_prefix__ = os.path.join("~", ".cloudmesh") __config_dir__ = path_expand(__config_dir_prefix__) def config_file(filename): """ The location of the config file: ~/.cloudmesh/filename. ~ will be expanded ...
a78b3e5b9320fcde83a6189f7374d3fd0882b1bf
98dfa21cd26462658165c802a16b697cf1ba582f
/blog/models.py
e9c5ed76a0502a3bcd4b7f74d90fcf624cd8409b
[]
no_license
samirpatil2000/startwith_rest-framework
9408c295bf08ed21551ae5e5fe45a54c45bde8d2
0b1e3978886ab3fea40d046814c3ca3bc258c8f7
refs/heads/master
2022-12-31T14:04:36.376080
2020-10-18T06:17:36
2020-10-18T06:17:36
304,104,735
0
0
null
null
null
null
UTF-8
Python
false
false
1,795
py
import random from django.db import models from django.db.models.signals import pre_save from django.urls import reverse from django.utils.text import slugify from django.conf import settings from django.db.models.signals import post_delete from django.dispatch import receiver # Create your models here. def upload_l...
bf25d724880936aef9b3440e4517fa7ff12fc670
a024fe3b05dd320a7860165dd72ebd832ce6e484
/sale_order_portal/models/models.py
09856cd628a8bd90a34b8d5a2e76f83c0d408bf3
[]
no_license
acostaw/erp_odoo
97d02a675908e441cf8e1ba4e3dcbc62691f8dec
2437997b650c9fdbf6a6f007c0a1fea2aab018e2
refs/heads/main
2023-04-19T14:52:48.877851
2021-04-22T18:40:07
2021-04-22T18:40:07
360,644,871
0
0
null
null
null
null
UTF-8
Python
false
false
414
py
# -*- coding: utf-8 -*- from odoo import models, fields, api # class sale_order_portal(models.Model): # _name = 'sale_order_portal.sale_order_portal' # name = fields.Char() # value = fields.Integer() # value2 = fields.Float(compute="_value_pc", store=True) # description = fields.Text() # # @a...
978ffec64bc93981e16854128c9f7aade48bfc3f
a4e6b080d17611853374577aaecb0367366b39b5
/glycresoft_sqlalchemy/web_app/services/json_api.py
222df0e6d93e068677cb4d7a0fa37616774c997e
[]
no_license
mobiusklein/glycresoft_sqlalchemy
6235b1ea2c8da9ef6b2e725a60f0b6a925f1689d
e0edf12a8d6243cc2438a6236aa0564a28f92a8a
refs/heads/master
2020-04-06T05:38:35.849225
2016-11-21T03:25:26
2016-11-21T03:25:26
37,537,754
0
2
null
2016-11-21T03:25:27
2015-06-16T15:10:45
Python
UTF-8
Python
false
false
1,370
py
from flask import Response, Blueprint, g, jsonify from glycresoft_sqlalchemy.data_model import GlycopeptideMatch, Hypothesis, HypothesisSampleMatch, json_type from glycresoft_sqlalchemy.report import colors JSONEncoderType = json_type.new_alchemy_encoder() # ---------------------------------------- # JSON...
f1627ae27f127f6561a052c0246ee3cff0d0491e
b84955813634b3e64a82bc9c9bef13d2b596e4db
/us_addresses.py
fabfdb2b11e79431c34aab25c462521541da4a27
[]
no_license
henocdz/postalcodes
6cf5157c5f6946a42abad875b0d6bddfd77ec7c2
3f95618b2423b6f0fd9970b7b92f8f53322d28d7
refs/heads/master
2021-01-03T04:48:22.295053
2020-02-14T16:25:13
2020-02-14T16:25:13
239,929,346
0
1
null
null
null
null
UTF-8
Python
false
false
4,442
py
import json from geopy.geocoders import GoogleV3 import concurrent.futures MAPS_API_KEY = "" STATES = { "AA": "Armed Forces Americas", "AE": "Armed Forces Middle East", "AK": "Alaska", "AL": "Alabama", "AP": "Armed Forces Pacific", "AR": "Arkansas", "AS": "American Samoa", "AZ": "Ariz...
8bc19bc8b5f4e92d2e69058ec02dacb602eba280
36273a4ce1e01bdd3d80c71e22fb5fae751a264c
/elementary/first_word.py
dc268bd1542686110339791a8ac293dd90665da6
[]
no_license
pavoli/checkIO
63e0e347a0a4800626e5d2d1be07f53e86de070f
27578ce460c45a82bd549206a4260fc3f9ec711b
refs/heads/master
2022-02-07T08:26:40.509503
2019-07-11T06:54:54
2019-07-11T06:54:54
114,545,792
0
0
null
null
null
null
UTF-8
Python
false
false
411
py
# -*- coding: utf-8 -*- import re #s = 'Hello world' #s = 'greetings, friends' #s = ' a word ' #s = "don't touch it" #s = "... and so on ..." s = "Hello.World" def first_word(str): new_str = str.replace(',', ' ') new_str = new_str.replace('.', ' ') for i in new_str.split(' '): if re.search('^([a-...
3720c7d48077bc2eb852dfeb905da7a06b79d172
463c8ba5baad086d37819804af4ee10f43ab6dd5
/Algorithm/190826/서울3반_홍수경_4880_토너먼트 카드게임.py
5e28e22ac950f854a850cfbf5df5597d724a4a28
[]
no_license
sooya14/TIL
dbbb0608d45ce273ddef6f7cea1b1195285f269d
232b0d38d8f6ee2e6e5517bfd6a2a15cf1000dad
refs/heads/master
2023-01-11T17:12:39.370178
2020-05-11T12:06:41
2020-05-11T12:06:41
195,916,241
0
0
null
2023-01-05T18:22:56
2019-07-09T02:17:42
Jupyter Notebook
UTF-8
Python
false
false
231
py
import sys sys.stdin = open('4880_토너먼트 카드게임.txt', 'r') def gbb(people): T = int(input()) for tc in range(T): num = int(input()) people = list(map(int, input().split())) print(tc+1, num, people)
9493189223318dadd253d8cd0089fddd799df474
60e38d3122cfb18cf8901e0d7fba02ef2a32affa
/notebooks/__code/ui_registration_profile_settings.py
557057a50a472250f2e9186f5148506fa616bf90
[ "BSD-3-Clause" ]
permissive
earnestdl/python_notebooks
ac11b40d9d5e721b947b083b2f4c301079f206a8
4ef31711b70b90cf621e9e9d094fa2a43eeeae16
refs/heads/master
2023-03-12T19:41:44.229158
2021-02-22T15:41:57
2021-02-22T15:41:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,331
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/Users/j35/git/python_notebooks/notebooks/ui/ui_registration_profile_settings.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Ma...
0838708c369b20173d3a097231fd65eda479e366
368c66467b78adf62da04cb0b8cedd2ef37bb127
/SW expert/python/회문2.py
c76690313edabce32dc132e0b0a60e8d53b94f55
[]
no_license
DJHyun/Algorithm
c8786ddcd8b5693fc9b3b4721fdf1eeda21611c5
fd6ae800886dac4ec5ff6cf2618bc2c839a76e7a
refs/heads/master
2020-07-30T16:32:49.344329
2020-02-25T07:59:34
2020-02-25T07:59:34
210,289,983
0
0
null
null
null
null
UTF-8
Python
false
false
1,193
py
import sys sys.stdin = open("회문2.txt", "r") def my_palindrome(a): for i in range(len(a) // 2): if a[i] != a[len(a) - 1 - i]: return False return True for test_case in range(1,11): input() sh = [] sv = [] result = 0 for i in range(100): sh.append(lis...
4ebaf23e1ab2fff8d10ecedfe6fb866c36b15ff4
83de24182a7af33c43ee340b57755e73275149ae
/aliyun-python-sdk-elasticsearch/aliyunsdkelasticsearch/request/v20170613/UpdateInstanceChargeTypeRequest.py
cab978c843cbe65c84557ce41d927fee367195fd
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-python-sdk
4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f
83fd547946fd6772cf26f338d9653f4316c81d3c
refs/heads/master
2023-08-04T12:32:57.028821
2023-08-04T06:00:29
2023-08-04T06:00:29
39,558,861
1,080
721
NOASSERTION
2023-09-14T08:51:06
2015-07-23T09:39:45
Python
UTF-8
Python
false
false
1,944
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
f4a798c794dcd2f46d7d18e1f36c63693a7d3aec
232c2738dff4b89ca63d7d4ec3c812570e3860c3
/ch06/better_rnnlm.py
0f8b26a6b999cb089ed405c9a6e08498643d5b53
[]
no_license
Soh1121/DeepLearningFromScratch2
0c115fcdf15c7b0cfd5d1ce7c6c32873354839d7
f2294156c6394fd105a6534801ff42a078b0a0af
refs/heads/main
2023-02-19T15:58:58.779465
2021-01-20T02:06:07
2021-01-20T02:06:07
319,550,802
0
0
null
2021-01-19T06:30:58
2020-12-08T06:45:41
Python
UTF-8
Python
false
false
2,722
py
import sys sys.path.append('..') from common.np import * # import numpy as np from common.time_layers import * from common.base_model import BaseModel class BetterRnnlm(BaseModel): ''' LSTMレイヤを2層利用し、各層にDropoutを使うモデル [1]で提案されたモデルをベースとし、weight tying[2][3]を利用 [1] Recurrent Neural Network Regularizat...
faaa83c242009275d9ca670497e67c056417638e
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-gsn-edf/gsn-edf_ut=2.0_rd=1_rw=0.06_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=2/params.py
a831fdb8216bcc697815a8f8e189c1e1b40951a2
[]
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
251
py
{'cpus': 4, 'duration': 30, 'final_util': '2.040810', 'max_util': '2.0', 'periods': 'harmonic-2', 'release_master': False, 'res_distr': '1', 'res_nmb': '4', 'res_weight': '0.06', 'scheduler': 'GSN-EDF', 'trial': 2, 'utils': 'uni-medium-3'}
7c34b796aabf2898ce5b3391cd849ba3d47df125
5380c194fd3d97ce5779790abe8ffa1694daa519
/BackEnd/Account/views/Account.py
f6880e538f29d92e69825a4999c829b54ee73d67
[]
no_license
frshman/LuffyCity
4efc5360256cb328cdc34091762078bde11610be
8f3143e832a457a1bfbf5aa46c0abb298198164a
refs/heads/master
2023-08-13T22:10:50.544455
2020-06-05T04:47:37
2020-06-05T04:47:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
649
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2020/5/18 23:12 # @File : Account.py # ---------------------------------------------- # ☆ ☆ ☆ ☆ ☆ ☆ ☆ # >>> Author : Alex 007 # >>> QQ : 2426671397 # >>> Mail : [email protected] # >>> Github : https://github.com/koking0 # >>> Bl...
affef3944b882801c0913fe7ca31980c9b4f1b7f
de5be7e4d9e20bbfda3ce8697afc3433a3ccf55d
/python_tutorial/excercise_3/reverse_string_list_func.py
6b8f844aa74c95bd28dd0956de310a0c381b3d6d
[]
no_license
poojataksande9211/python_data
42a88e0a0395f383d4375000a3d01b894bd38e62
64c952d622abfa77f2fdfd737c210014fce153c5
refs/heads/main
2023-04-16T10:24:27.213764
2021-04-27T16:34:32
2021-04-27T16:34:32
360,673,774
0
0
null
null
null
null
UTF-8
Python
false
false
837
py
def rev_string(l): element=[] for subelement in l: element.append(subelement[::-1]) return element words=["abc","def","ghi"] print(rev_string(words)) #---------------------------- # def rev_string(l): # element=[] # for subelement in range(len(l)): # element.append(subelement[::-1])...
0fbc601cc05227e44edc2e2eea6511f140d8c776
d4f1d1a1657f94376c989b12a8e16c8ff1d86e01
/Stanford_ml/ex2/pylogistic/logistic.py
c0888790944abd48764a573c639db092c0d66ae3
[]
no_license
sbmaruf/DataMing-MachineLearning
6e2335c4f16039bf7e5b4aad852e7426e10d2e6f
baf9d9b668588329504975c6586dbd31b2932900
refs/heads/master
2021-06-07T02:22:31.129127
2016-09-30T09:56:07
2016-09-30T09:56:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,921
py
#!/usr/bin/env python # coding=utf-8 import numpy as np import pandas as pd def sigmoid(z): """""" g = 1 / (1 + np.exp(-z)) return g def cost_function(theta, X, y): """""" m = y.size J = (-y.T * np.log(sigmoid(X * theta)) - \ (1 - y).T * np.log(1 - sigmoid(X * theta))) / m grad ...
2ca6d767460661f1a4351a9b75835ee0d90e53b8
0ef933a7b019e9a754222464046aeaaf8a42b553
/django_facebook/tests/test.py
4343a14b74f0bd22fe50c3f8c76231417a08b410
[ "BSD-3-Clause" ]
permissive
kennu/Django-facebook
1d858a53856a3f3997557ad5564c768b9c83c21d
88ba7025d24023756a417d1bae4f84e6ed6b67fd
refs/heads/master
2020-12-25T08:19:29.244207
2011-10-12T17:22:10
2011-10-12T17:22:10
2,562,533
0
0
null
null
null
null
UTF-8
Python
false
false
4,749
py
from __future__ import with_statement from django.contrib.auth.models import AnonymousUser from django_facebook import exceptions as facebook_exceptions from django_facebook.auth_backends import FacebookBackend from django_facebook.connect import connect_user, CONNECT_ACTIONS from django_facebook.tests.base import Face...
110c2eaecef9a00e4485c50558865f58db4514b5
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/101/usersdata/173/49768/submittedfiles/av1_m3.py
d342df107865d5b70a00235643849cdcbd0af61c
[]
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
220
py
# -*- coding: utf-8 -*- import math m=int(input('Digite o número de termos: ')) i=2 for i in range(0,m,2): if(m>0): pi=4/(i*(i+1)*(i+2))+soma i=i+2 soma=pi-(4/(i*(i+1)*(i+2))) i=i+2 print(soma+3)
ec6006c50785e0e8b157893e35b4789999df4d00
6be8aa517e679b33b47d35f100e6590902a8a1db
/Greedy/MST/Problem06.py
403924f5fc49aba57dc94d7603a32fc491a619fb
[]
no_license
LeeJuhae/Algorithm-Python
7ca4762712e5e84d1e277abecb3bf39c9cbd4e56
729947b4428205adfbac194a5527b0eeafe1c525
refs/heads/master
2023-04-24T01:02:36.430970
2021-05-23T07:17:25
2021-05-23T07:17:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,081
py
# https://www.acmicpc.net/problem/17472 import sys from collections import deque, defaultdict directions = ((1, 0), (0, 1), (-1, 0), (0, -1)) read = sys.stdin.readline n, m = map(int, read().strip().split()) islands = [list(map(int, read().strip().split())) for _ in range(n)] v = 0 visit = [[0 for _ in range(m)] for ...
5ea58c5b4506ca5eba55364cae0aa1b3d9f5e864
b4afb44b8f483c048716fe12d778186ce68ac846
/pages/ios/ffan/movie_page_configs.py
cdc95760ceb5ada9045205274bfe84e52614c57f
[]
no_license
liu111xiao111/UItest
64309b2c85f6d2334d64bb0875ba9ced459ebb1e
67e2acc9a99da81022e286e8d8ec7ccb12636ff3
refs/heads/master
2021-09-01T18:30:28.044296
2017-12-28T04:36:46
2017-12-28T04:36:46
115,585,226
1
0
null
null
null
null
UTF-8
Python
false
false
921
py
#!/usr/bin/env python # -*- coding:utf-8 -*- class MoviePageConfigs(object): ''' This is a configuration class for MoviePage class. ''' # Assert view time out assert_view_timeout = 10 # Verify view time out verify_view_timeout = 10 # Assert invalid view time out assert_invalid_...
a9316fca169c00cd96bfefb8ba8ffbead21d8a48
0cb72fac7926b7415af3bff1bf7dbe03e96fead5
/LC_Non_Decreasing_Array.py
ca41f20ed70e4daf05dfc1ccff9b789768309e9f
[]
no_license
venkatsvpr/Problems_Solved
586b5ef9f5868785cb52552da674ed003e139278
11c81645893fd65f585c3f558ea837c7dd3cb654
refs/heads/master
2022-11-11T21:53:27.469213
2022-10-14T05:59:11
2022-10-14T05:59:11
114,329,154
5
1
null
null
null
null
UTF-8
Python
false
false
1,785
py
""" 665. Non-decreasing Array Given an array with n integers, your task is to check if it could become non-decreasing by modifying at most 1 element. We define an array is non-decreasing if array[i] <= array[i + 1] holds for every i (1 <= i < n). Example 1: Input: [4,2,3] Output: True Explanation: You could modify ...
32226188a7bed68e781ad02fb2608f42c19404c7
a3cc7286d4a319cb76f3a44a593c4a18e5ddc104
/lib/googlecloudsdk/core/util/keyboard_interrupt.py
8a1c992f84aeaeb3bed44caaeb72156c683c93d1
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
jordanistan/Google-Cloud-SDK
f2c6bb7abc2f33b9dfaec5de792aa1be91154099
42b9d7914c36a30d1e4b84ae2925df7edeca9962
refs/heads/master
2023-09-01T01:24:53.495537
2023-08-22T01:12:23
2023-08-22T01:12:23
127,072,491
0
1
NOASSERTION
2023-08-22T01:12:24
2018-03-28T02:31:19
Python
UTF-8
Python
false
false
1,941
py
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
591261811f03add0430c0fb4333e9d46e62d9105
c3ff891e0e23c5f9488508d30349259cc6b64b4d
/python练习/老王开枪/老王开枪2.py
1897dcbc68707445a20bba1d7fbb9ffb4d19a52b
[]
no_license
JacksonMike/python_exercise
2af2b8913ec8aded8a17a98aaa0fc9c6ccd7ba53
7698f8ce260439abb3cbdf478586fa1888791a61
refs/heads/master
2020-07-14T18:16:39.265372
2019-08-30T11:56:29
2019-08-30T11:56:29
205,370,953
0
0
null
null
null
null
UTF-8
Python
false
false
2,754
py
class Person(): def __init__(self,name): super(Person,self).__init__() self.name = name self.gun = None self.hp = 100 def install_bullet(self,clip_temp,bullet_temp): clip_temp.store_bullet(bullet_temp) def install_clip(self,gun_temp,clip_temp): gun_temp.store_...
a24eae2a57094a02b726d84a5b8fa1291192c8f5
53784d3746eccb6d8fca540be9087a12f3713d1c
/res/packages/scripts/scripts/client/tutorial/doc_loader/sub_parsers/quests.py
ab4c7a0dda44086cdaa465d5711086060442461e
[]
no_license
webiumsk/WOT-0.9.17.1-CT
736666d53cbd0da6745b970e90a8bac6ea80813d
d7c3cf340ae40318933e7205bf9a17c7e53bac52
refs/heads/master
2021-01-09T06:00:33.898009
2017-02-03T21:40:17
2017-02-03T21:40:17
80,870,824
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
7,831
py
# 2017.02.03 21:54:21 Střední Evropa (běžný čas) # Embedded file name: scripts/client/tutorial/doc_loader/sub_parsers/quests.py from tutorial.control.quests import triggers from tutorial.doc_loader import sub_parsers from tutorial.doc_loader.sub_parsers import chains, readVarValue from tutorial.doc_loader.sub_parsers i...
78651cd819bee71e2717fa7ef9e14dd50ca938b4
be1ebe1b2b7fa059e49922a4ba66cf74bb4bcbd2
/main/admin.py
ec32b6e207b024e42a4909134afc658c05fbb6a3
[]
no_license
Offdevelopers/realestate
8c6c5fb222cb2372c223a31183080d6f3c366652
f40d131f0c3c05de1ea38839732835dc6f2b16c5
refs/heads/master
2020-03-21T18:31:39.094430
2018-06-15T16:00:43
2018-06-15T16:00:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
234
py
from django.contrib import admin from .models import Developer, Agent, Property, Mortage # Register your models here. admin.site.register(Property) admin.site.register(Developer) admin.site.register(Agent) admin.site.register(Mortage)