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
c3cd637c92069c11289669f7c4eb0a6324b4086e
e0d404675839dc10bc1e995be4c35a69ab9133a5
/grr/core/grr_response_core/lib/util/random.py
0c9e43de82fc1268eddd27da7af1b0019f79bd31
[ "Apache-2.0" ]
permissive
feitianyiren/grr
4afebc4a1912d46b4df4f1b4b0d25500505d05e5
9cc014f44ea9b21166e3b6815eb218d39f37fa07
refs/heads/master
2020-04-09T02:53:22.199635
2018-11-28T10:54:52
2018-11-28T10:54:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,176
py
#!/usr/bin/env python """A module with utilities for optimized pseudo-random number generation.""" from __future__ import absolute_import from __future__ import unicode_literals import os import struct from typing import Callable from typing import List _random_buffer_size = 1024 # type: int _random_buffer = [] #...
[ "realbushman@gmail.com" ]
realbushman@gmail.com
edc7232ff8571f2ba989aedae3673ad96f8d10e3
c9c44fc7a4f28cede97207b25ceec80ad3e1f7b5
/python/sudoku/test_solver.py
7b15ae294126815cae1fb165d8eae135ff251f34
[ "BSD-3-Clause" ]
permissive
aaugustin/sudoku
6651cfbdcf700946a4b5fb1e0f3fe9cae536924e
287c361653341196b4416800fe5ece00fa0a88d1
refs/heads/main
2023-09-02T07:59:34.748194
2023-04-30T21:03:23
2023-04-30T21:03:23
14,256,209
16
5
null
null
null
null
UTF-8
Python
false
false
3,966
py
import unittest from .grid import Grid from .solver import solve class TestSolve(unittest.TestCase): def test_solve(self): # fmt: off tests = [ # one solution, solved without search ( Grid([5, 3, 0, 0, 7, 0, 0, 0, 0, 6, 0, 0, 1, 9, 5, 0, 0, 0, 0, 9, 8, 0, 0...
[ "aymeric.augustin@m4x.org" ]
aymeric.augustin@m4x.org
5fe8a815979d3b10045cf4e64eb92d244c1fde62
9c636aeed2fc0a591507fcf0a8a6124fae710c9b
/moveZeroes.py
b99741df4166ea9cbbf182841f8b52efd690e8cd
[]
no_license
ilkaynazli/challenges
4b2d1ac847b1761f98183457f8ea5bac6556eeff
f7c165fedbdc9811fb7f1d2a43c797f5b5ac5322
refs/heads/master
2020-04-07T01:03:18.625568
2019-04-25T19:40:22
2019-04-25T19:40:22
157,928,932
0
0
null
null
null
null
UTF-8
Python
false
false
986
py
""" Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. Example: Input: [0,1,0,3,12] Output: [1,3,12,0,0] Note: You must do this in-place without making a copy of the array. Minimize the total number of operations. """ #this solution c...
[ "ilkayncelik@gmail.com" ]
ilkayncelik@gmail.com
a7240e0d41632604e6ffa2507e5774b3e07d500e
dc2e335299c3221c759866e6761e3ee29be7e2a9
/twice.py
e888051a7eeaa6893d9bca292b0aae999d8ea1d8
[]
no_license
terasakisatoshi/wasm_with_julia
90ee4fb4def70b4850de08690d3ae41b69932e4c
e8d708297f10760a06ceb4ad668f263b210134a4
refs/heads/main
2023-02-01T15:51:56.914385
2020-12-11T09:25:34
2020-12-11T09:25:34
312,151,587
9
0
null
null
null
null
UTF-8
Python
false
false
190
py
from wasmer import Instance def run_wasm(*args): wasm_bytes = open("twice.wasm", 'rb').read() instance = Instance(wasm_bytes) res = instance.exports.twice(*args) return res
[ "terasakisatoshi.math@gmail.com" ]
terasakisatoshi.math@gmail.com
ea645e586aaea90ea55bf37472e53a26ba0e6fcd
c02bf56c8685501202e32ac2cef354fce805e05a
/tests/unit/lib/observability/xray_traces/test_xray_event_puller.py
a7b737aa540aab5227ab1f4514f414bd47abf015
[ "BSD-3-Clause", "MIT", "BSD-2-Clause", "Apache-2.0" ]
permissive
jfuss/aws-sam-cli
3da2d0413a37e1f3c09cb144582874863a5ea717
6c8c76f8fd91d223530f6c5d5ac75767d6251ff5
refs/heads/chore/auto-label-prs
2023-08-03T08:03:18.791771
2021-11-09T21:01:04
2021-11-09T21:01:04
132,761,763
1
0
Apache-2.0
2023-05-02T19:50:43
2018-05-09T13:34:41
Python
UTF-8
Python
false
false
7,516
py
import time import uuid from itertools import zip_longest from unittest import TestCase from unittest.mock import patch, mock_open, call, Mock, ANY from botocore.exceptions import ClientError from parameterized import parameterized from samcli.lib.observability.xray_traces.xray_event_puller import XRayTracePuller c...
[ "noreply@github.com" ]
jfuss.noreply@github.com
d0aeb8d4c12a405d496f2827c4b78e79cb710b21
332648fcbfe7a77731d2de2cf79d4f24b999ca5c
/day0621/context_process_demo/front/models.py
8106152560b9a4e9f012f25ecca37838c9091f30
[]
no_license
githq123/20200210py
453ffe72392f97622ed6aea15f5dcb9d37ebf585
d041f070d519bfb1fd64a78d7e66a21179fe44ff
refs/heads/master
2021-01-01T21:07:05.996015
2020-02-09T16:30:40
2020-02-09T16:30:40
239,335,334
0
0
null
null
null
null
UTF-8
Python
false
false
457
py
from django.db import models from django.core import validators # Create your models here. class User(models.Model): username=models.CharField(max_length=100,validators=[validators.MinLengthValidator(6)]) password=models.CharField(max_length=30,validators=[validators.MinLengthValidator(6)]) telephone = mod...
[ "1424127615@qq.com" ]
1424127615@qq.com
4093df3ed41ccc2d1b879f21e59fb7ec372cd898
4a839a9f633aa13429a57e7c0610c361e9bff891
/blogs/urls.py
4af0c548426a7993c70f57ebf126f50efe97eeb8
[]
no_license
sharifahmed699/django-with-Bootstrap-Blog
fd2a2442819b1fa737c086d30e068a3f5c981e15
d4fd6f7f8c4b1690d3e9855308971d401ae4d49e
refs/heads/master
2020-12-28T18:09:08.781175
2020-02-05T11:33:58
2020-02-05T11:33:58
238,434,790
0
0
null
null
null
null
UTF-8
Python
false
false
1,053
py
"""blogs URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based v...
[ "sharifahmedewu15@gmail.com" ]
sharifahmedewu15@gmail.com
93f598fbac2a7341b0f8750ac67f9ebd72d79bd9
732536468e61932e7c0829934262b645effbd6d4
/python_stack/python/OOP/User.py
9110e481d562a4cd9aedcd8becdf0765e5a7c53e
[]
no_license
jignacioa/Coding-Dojo
7a83919d09fb6ad714379dc58b1ce8e706ccc7b6
0e1f0d4fc528439bf34d866f4c409994741e870b
refs/heads/master
2023-01-21T06:48:15.880635
2021-02-08T01:36:17
2021-02-08T01:36:17
251,421,342
0
0
null
null
null
null
UTF-8
Python
false
false
942
py
class User: def __init__(self, name, balance): self.name = name self.balance = balance #function to make deposit def make_deposit(self, deposit): self.balance = self.balance + deposit #make a withdrawal def make_withdrawal(self, withdrawal): self.balance = ...
[ "jignacio.aglr@gmail.com" ]
jignacio.aglr@gmail.com
8ca1e67f65e5a92d0254431f2dc4566ad2840748
aee4c0839933a11d8ce3c485d06595202dd3cabd
/keras/dtensor/metrics_test.py
ddad4077ef9554ba626fbb1f77ddcc86051264bb
[ "Apache-2.0" ]
permissive
xiaoheilong3112/keras
fc3025a2f14838bf8416b2faed766cb43da62f9b
8d5e9b2163ec9b7d9f70920d1c7992b6df6820ec
refs/heads/master
2023-08-07T18:23:36.804563
2023-07-25T19:16:12
2023-07-25T19:16:48
137,238,629
1
0
Apache-2.0
2023-07-26T05:22:44
2018-06-13T15:59:45
Python
UTF-8
Python
false
false
3,623
py
# Copyright 2022 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
4f321975b51dca6a7f4e576db78e043785246e44
51f2492a5c207e3664de8f6b2d54bb93e313ca63
/atcoder/abc064/a.py
8f3e1c0754c08c01aa0c7987afe7b963300e6274
[ "WTFPL", "LicenseRef-scancode-unknown-license-reference" ]
permissive
abeaumont/competitive-programming
23c5aabd587d7bb15a61efd3428838cb934233dd
a24c9b89941a59d344b51dc1010de66522b1a0dd
refs/heads/master
2023-09-01T09:50:58.267361
2023-07-31T18:00:10
2023-07-31T18:00:10
117,589,708
618
262
WTFPL
2023-07-12T17:36:20
2018-01-15T20:00:56
C++
UTF-8
Python
false
false
177
py
#!/usr/bin/env python3 # https://abc064.contest.atcoder.jp/tasks/abc064_a r, g, b = map(int, input().split()) if (r * 100 + g * 10 + b) % 4 == 0: print('YES') else: print('NO')
[ "alfredo.beaumont@gmail.com" ]
alfredo.beaumont@gmail.com
5e0d1feb73613f140184b4fc3179275aff818f85
c243661d9d321b39256ad3dee4f5ce4b30a1fa93
/packages/compare-images/python/itkwasm-compare-images-emscripten/itkwasm_compare_images_emscripten/vector_magnitude_async.py
13376d8cd9d0ca4960a9fc947c35775aec4f18a7
[ "Apache-2.0" ]
permissive
InsightSoftwareConsortium/itk-wasm
409621ea9430065c51759e4398959fe0ea3ab64a
63369f1439583f27c77a4534ea2ef204c63dfa39
refs/heads/main
2023-08-31T13:31:27.333792
2023-08-30T04:20:30
2023-08-30T04:20:30
45,812,381
69
23
Apache-2.0
2023-09-11T21:09:22
2015-11-09T03:20:17
C++
UTF-8
Python
false
false
1,291
py
# Generated file. To retain edits, remove this comment. # Generated file. Do not edit. from pathlib import Path import os from typing import Dict, Tuple, Optional, List, Any from .js_package import js_package from itkwasm.pyodide import ( to_js, to_py, js_resources ) from itkwasm import ( InterfaceT...
[ "matt.mccormick@kitware.com" ]
matt.mccormick@kitware.com
e2f298e1df520fabb8e7891f117e441b0411b067
acf445a4fd4384b968c508ced7eab609fc8cfeba
/env/bin/tqdm
fc041caf2406fc2f5da68a5c7cbd1ede9530a40b
[]
no_license
yopi1838/FINAL_FEM_Parser
eb987271a2325cd501e10e447b88992aef43caaf
244991b17676a09aa4987c32f9ddc95422ac68b7
refs/heads/master
2021-07-17T15:57:10.484570
2020-08-09T15:24:39
2020-08-09T15:24:39
200,372,484
0
0
null
null
null
null
UTF-8
Python
false
false
277
#!/Users/yopiprabowooktiovan/Dropbox/Titech/Journal/code/FINAL_Parser/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from tqdm.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "yopi1838@gmail.com" ]
yopi1838@gmail.com
73d4217f1d5695736777975ee47932e887a29fb8
61afd923551491846ae827821f55c4fb5fd04c98
/packages/levylab_lib_cryostation_instrument/levylab_lib_cryostation_instrument-1.1.3.9.spec
68e2b36f24a3317b362697569b6c0338ee843087
[ "BSD-3-Clause" ]
permissive
laserengineer/levylabpitt.github.io
b74b711aff2a5eb1b46f880a1071ac0873f1a9ac
cdf9aeb6faaf136211291ce2232c239229d85bbe
refs/heads/master
2023-04-29T02:36:48.736236
2021-05-14T19:20:40
2021-05-14T19:20:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,781
spec
[Package] Name="levylab_lib_cryostation_instrument" Version="1.1.3.9" Release="" ID=39b9dff85426c8ca2e1ab82ea9f9e11f File Format="vip" Format Version="2017" Display Name="Cryostation" [Description] Description="Program for logging Montana Instruments Cryostation status to the DSC. Provides a UI and API for getting in...
[ "p.irvin@levylab.org" ]
p.irvin@levylab.org
f9657092a3695225f277bfb673d8f84207e4ce49
44a2741832c8ca67c8e42c17a82dbe23a283428d
/cmssw/HeavyIonsAnalysis/JetAnalysis/python/jets/akVs5PFJetSequence_pp_jec_cff.py
2a9e4bf7aabd49fbcf7d491094ef17bcb482436f
[]
no_license
yenjie/HIGenerator
9ff00b3f98b245f375fbd1b565560fba50749344
28622c10395af795b2b5b1fecf42e9f6d4e26f2a
refs/heads/master
2021-01-19T01:59:57.508354
2016-06-01T08:06:07
2016-06-01T08:06:07
22,097,752
0
0
null
null
null
null
UTF-8
Python
false
false
4,505
py
import FWCore.ParameterSet.Config as cms from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import * from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import * akVs5PFmatch = patJetGenJetMatch.clone( src = cms.InputTag("akVs5PFJets"), matched = cms.InputTag("ak5HiGenJets") ) akVs5PFparton = p...
[ "dgulhan@cern.ch" ]
dgulhan@cern.ch
8b585fa945715fea1bba33d9acab2aff06afa47f
47eef5d51b67c75645b51b7fbd8e30a57a33eb29
/panda/tests/test_related_upload.py
20e1cf72795cb90594f4ec4dcec9c5701d980393
[ "MIT" ]
permissive
eads/panda
4105ea0d729399ccd13e68b644fae600b39c69dc
3e343b9e30288abfe39a4a4bff72277d7635dc77
refs/heads/master
2021-01-24T05:42:35.450374
2012-03-27T18:51:41
2012-03-27T18:51:41
3,847,330
1
0
null
null
null
null
UTF-8
Python
false
false
968
py
#!/usr/bin/env python import os.path from django.conf import settings from django.test import TransactionTestCase from panda.tests import utils class TestRelatedUpload(TransactionTestCase): fixtures = ['init_panda.json'] def setUp(self): settings.CELERY_ALWAYS_EAGER = True self.user = util...
[ "staringmonkey@gmail.com" ]
staringmonkey@gmail.com
5c32b33746acd135cbf5368a51794bb7866d2ace
f49fd4f3e8e577b170bccd9ede03edcae4f3e120
/Deadline24 2016/Eliminacje/sets/Rozkazy.py
9ed4d60c5200b38b1464fd622bd5da6a02a4c7fd
[]
no_license
marcinowski/competitions
6f03b7009b8e75e96ecfd416be185a45627ebb87
42829914c724b580f292fddab919131ed3b7d222
refs/heads/master
2021-01-19T08:46:57.421400
2017-04-09T19:10:26
2017-04-09T19:10:26
87,676,403
0
0
null
null
null
null
UTF-8
Python
false
false
3,755
py
import time def reader(plik): f = open(plik) l_1 = f.readline() NM = list(eval(l_1.replace(" ",","))) N = NM[0] #liczba miast M = NM[1] #liczba dróg lista = [] ...
[ "muszynskimarcin@wp.pl" ]
muszynskimarcin@wp.pl
edf36ad6832e9f2ce6443af77ee1c850a5e2dd67
fe090190fb9780414e81aa9e113c047e760564e6
/tests/test_firebase.py
5eb28b47ea4cd02eb695fb46d07296ba9d2ec4ae
[]
no_license
mitubaEX/LINE_bot_MITUBA
4dad7b6af101047160823f2f290453b0f9b1572e
31d6c81d5171f2e760a0679e92a34e96fe78223e
refs/heads/master
2021-05-05T00:28:10.156439
2018-02-11T13:38:22
2018-02-11T13:38:22
119,495,540
0
0
null
2018-02-11T12:12:04
2018-01-30T06:56:04
Python
UTF-8
Python
false
false
298
py
from unittest import TestCase from model.money import Money from data_store.money_store import MoneyStore class TestFirebase(TestCase): def test_get_money(self): moneyStore = MoneyStore() moneyStore.add_money(Money('0', 0)) self.assertEqual(moneyStore.get_money(), 0)
[ "g1344955@cse.kyoto-su.ac.jp" ]
g1344955@cse.kyoto-su.ac.jp
bfc16d722a5bc34451254853de1f541770c276a7
7300938cc6dce48a8142251beba72d17b380435f
/virtual/Lib/site-packages/pip/_vendor/urllib3/__init__.py
6d4bb7b9435597f069098328e83f8dc579fcb34b
[]
no_license
Sriramg89/Restaurant
68ba46912ac29a5b2c5f161a74e98ef6d913b7eb
3c70a42b7fb0ce41d703e16678661d6084c80511
refs/heads/main
2023-03-12T02:01:59.943499
2021-03-01T05:53:52
2021-03-01T05:53:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,777
py
""" Python HTTP library with thread-safe connection pooling, file post support, user friendly, and more """ from __future__ import absolute_import # Set default logging handler to avoid "No handler found" warnings. import logging import warnings from logging import NullHandler from . import exceptions from ._version ...
[ "37271647+sriramg89@users.noreply.github.com" ]
37271647+sriramg89@users.noreply.github.com
3c0ba2d8937238ff3dccd5731a2bb8a8952de192
e22390ec9aa1a842626075113472f81076e1bf5f
/pullenti/ner/core/TableRowToken.py
d85db6d1d6fa1c395548c238dd789f1b4a41e2bc
[]
no_license
pullenti/PullentiPython
ba9f450f3f49786732e80f34d0506d4a6d41afc3
815d550b99f113034c27f60d97493ce2f8e4cfcc
refs/heads/master
2021-06-22T17:12:36.771479
2020-12-11T06:10:23
2020-12-11T06:10:23
161,268,453
3
1
null
null
null
null
UTF-8
Python
false
false
763
py
# Copyright (c) 2013, Pullenti. All rights reserved. # Non-Commercial Freeware and Commercial Software. # This class is generated using the converter UniSharping (www.unisharping.ru) from Pullenti C#.NET project. # The latest version of the code is available on the site www.pullenti.ru from pullenti.ner.MetaTo...
[ "alex@alexkuk.ru" ]
alex@alexkuk.ru
2de2d9d72f8dc018921e35018f879b625dc0ce73
c291ba4506a8998df8d7f384c911f6a0a1294001
/bai__92/Cau_2/TimKiemDm.py
ce4806415471cb0e27da415b5ae37601d4d799bb
[]
no_license
thanh-falis/Python
f70804ea4a3c127dcb7738d4e7c6ddb4c5a0a9d4
fa9f98d18e0de66caade7c355aa6084f2d61aab3
refs/heads/main
2023-08-18T17:34:29.851365
2021-09-30T12:09:30
2021-09-30T12:09:30
398,952,505
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
from QLSP import * data = input("Nhập từ khóa muốn tìm kiếm:") file = DocFile("danhmucSanpham.txt") print(file) print("*"*30) print("Kết quả tìm kiếm:") TimKiemDanhMuc(data)
[ "thanhelma2020|@gmail.com" ]
thanhelma2020|@gmail.com
9350784a903ca86ae303b2fd83a9bf5bcef67e10
5ab1130ae04735463fc44102adbe7d7072d9b8c9
/pylearn/scipy/optimization/unconstrained/rosenbrock.py
e0b259df0424c689696a53fb033d5fb928f51aab
[]
no_license
sigirisetti/python_projects
8f917a6d052d7cb717f48fde8b791e4638ea821d
123386b2f91be870e4795df14109142d7cd2eb96
refs/heads/master
2023-08-23T04:34:36.464290
2023-08-13T11:15:33
2023-08-13T11:15:33
130,079,242
0
0
null
null
null
null
UTF-8
Python
false
false
2,527
py
import numpy as np import pandas as pd from scipy.optimize import minimize from util import timer df = pd.DataFrame.from_items([('Optimization Method', []), ('Iterations', []), ('Function Evaluations', []), ('Status', []), ('Message', []), ('Time in Secs', []), ]) def rosen(x): """The Rosenbrock function""" ...
[ "sigirisetti@yahoo.com" ]
sigirisetti@yahoo.com
30a15cdd42e6965ef99a09588367a249182dbafa
bad62c2b0dfad33197db55b44efeec0bab405634
/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/operations/_operations.py
7c4f7751ce6e36030967e19d85ecf20eeba0be94
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
test-repo-billy/azure-sdk-for-python
20c5a2486456e02456de17515704cb064ff19833
cece86a8548cb5f575e5419864d631673be0a244
refs/heads/master
2022-10-25T02:28:39.022559
2022-10-18T06:05:46
2022-10-18T06:05:46
182,325,031
0
0
MIT
2019-07-25T22:28:52
2019-04-19T20:59:15
Python
UTF-8
Python
false
false
5,061
py
# pylint: disable=too-many-lines # 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) AutoRe...
[ "noreply@github.com" ]
test-repo-billy.noreply@github.com
2a07b25d7a904681d6206b3511f12bd6ad09924d
f11600b9a256bf6a2b584d127faddc27a0f0b474
/normal/926.py
2c452bfc684965b647a36204391265cc5e65c5c4
[]
no_license
longhao54/leetcode
9c1f0ce4ca505ec33640dd9b334bae906acd2db5
d156c6a13c89727f80ed6244cae40574395ecf34
refs/heads/master
2022-10-24T07:40:47.242861
2022-10-20T08:50:52
2022-10-20T08:50:52
196,952,603
0
0
null
null
null
null
UTF-8
Python
false
false
248
py
# 前缀和解法 class Solution: def minFlipsMonoIncr(self, S: str) -> int: P = [0] for x in S: P.append(P[-1] + int(x)) return min(P[j] + len(S)-j-(P[-1]-P[j]) for j in range(len(P)))
[ "jinlha@jiedaibao.com" ]
jinlha@jiedaibao.com
18771097a6f3601b4dc565a926313d08c7a9b61e
b3da2b2a8f8e451020a86791ea258cb000e21416
/das/das/doctype/shift_assignment_tool/shift_assignment_tool.py
75596eac1b6fa4219af312225fb0283f4d7c78e5
[ "MIT" ]
permissive
asoral/das
5412bc6538247f48d6c36c69f308fed1cebacba7
dd5de3b55b06fc2b523c8020acbc96ab86be4609
refs/heads/master
2021-01-04T10:37:54.631552
2019-10-11T10:49:06
2019-10-11T10:49:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
913
py
# -*- coding: utf-8 -*- # Copyright (c) 2019, VHRS and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe,json from frappe.model.document import Document class ShiftAssignmentTool(Document): pass @frappe.whitelist() def update_shift(shift_assignment_...
[ "hereabdulla@gmail.com" ]
hereabdulla@gmail.com
3d5248c39ed9fc1573831a5fa278e8e32b485692
a8d10242ceb3fac0acad44816a1fbe2ed969421d
/WHOIS/whois_003.py
19726403527ee78d092e2fe9bae08533663f1e2d
[]
no_license
Toni-CBS/MBA_Python_01
5bf0ec3392e306589548b28fcd92400faa23adb7
5c760a5443867857dedd5d518264a0c1d9f10474
refs/heads/main
2023-08-24T00:47:45.000045
2021-10-18T23:02:08
2021-10-18T23:02:08
404,312,946
0
0
null
null
null
null
UTF-8
Python
false
false
589
py
#!/usr/bin/python import whois target = "google.com" def func_whois(_domain): querywhois = whois.query(_domain) print("[+] - Nome do dominio", querywhois.name) print("[+] - Data de criacao: ", querywhois.creation_date) print("[+] - Data de Expiracao? " , querywhois.expiration_date) ...
[ "yellow@battosai.yellow.dojo" ]
yellow@battosai.yellow.dojo
d9af4cf0b9e3a100cc451df486f6a96aacfe0297
aa4aa51465d79e0447cbe22281f0402ca95bdaa2
/python/Network-Intrusion-Detection-master/NSL-KDD/SimpleRNN/binary/lskeras1test.py
6be208b3c32cff2e7a0b96ed069dc2f19c3ed572
[]
no_license
zuozuo12/usualProject
2ca06bb7a1ff6f99343f1997053ba8d5a48e00a7
335bcef5d76d6cf0c84dd3209176089b3b07fbba
refs/heads/master
2020-11-27T17:02:33.252884
2019-10-22T06:46:32
2019-10-22T06:46:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,814
py
from __future__ import print_function from sklearn.cross_validation import train_test_split import pandas as pd import numpy as np np.random.seed(1337) # for reproducibility from keras.preprocessing import sequence from keras.utils import np_utils from keras.models import Sequential from keras.layers import Dense, Dro...
[ "llfwyyx@163.com" ]
llfwyyx@163.com
544dc12ee67d639626e18366a8af3f1df0857ee3
035cabcbbd378a360633baaf3e3ded1792e5704e
/3/comp/main.py
c9a4dabc4362b9015ad636947a75aa8538e7f84c
[]
no_license
tomasderner97/Praktikum-III
c30a55050033d1ea23bd142401a6ae30eb18f902
8f84b4a11a197dc4e322db6976de848500906e88
refs/heads/master
2020-09-08T21:20:35.554960
2019-11-12T14:58:17
2019-11-12T14:58:17
221,243,516
0
0
null
null
null
null
UTF-8
Python
false
false
1,151
py
from labrep_utils import * A = uf(1.659, 0.003) * 1e-6 rtut_minuty = dataframe_from_csv("../data/rtut.csv") rtut = pd.DataFrame() rtut["vlevo"] = rtut_minuty["vlevo_stupne"] + rtut_minuty["vlevo_minuty"] / 60 rtut["vpravo"] = rtut_minuty["vpravo_stupne"] + rtut_minuty["vpravo_minuty"] / 60 rtut["vpravo"] -= 3...
[ "tomasderner97@gmail.com" ]
tomasderner97@gmail.com
afcc896518db8edd6e7c1da49f3b3b80f0a15deb
c0cffe5f31070ac163e3963b8616da10d131e355
/env/lib/python3.6/site-packages/scipy/special/_precompute/utils.py
45a1bae1290f5364bed30f3434c6e2d189b53c13
[ "Apache-2.0" ]
permissive
SanaAwan5/smart_contracts7
1bc9a0bf2a700e527436d1f6cee8e0251c0e651b
40a487cb3843e86ab5e4cb50b1aafa2095f648cd
refs/heads/master
2021-08-31T21:50:35.086907
2019-06-25T05:22:19
2019-06-25T05:22:19
193,639,676
0
1
Apache-2.0
2021-08-11T03:42:07
2019-06-25T05:22:07
Python
UTF-8
Python
false
false
1,182
py
from __future__ import division, print_function, absolute_import import warnings try: import mpmath as mp except ImportError: pass try: # Can remove when sympy #11255 is resolved; see # https://github.com/sympy/sympy/issues/11255 with warnings.catch_warnings(): warnings.simplefilter("igno...
[ "sanaawan@ittc.ku.edu" ]
sanaawan@ittc.ku.edu
ecbd6aa8bec606978050bff3d95190ed9cb1a2f2
d8d668c76f446011e8d7edb7a526575dc80b6290
/schemas/question.py
a27981b6cb9faae6655f2d646a00733e9271b3d4
[]
no_license
LondonComputadores/flask-psql-sqlalchemy-alembic
80a351a06d07c6c2480fa8b0c5862658eae3c4ab
ceaf7e0688b59a343c5fb7131b5386d704e0920b
refs/heads/main
2023-07-06T13:32:25.818936
2021-08-11T17:57:44
2021-08-11T17:57:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
558
py
from app.database.ma import ma from app.models.question import QuestionModel from marshmallow import fields class QuestionSchemaMinimal(ma.SQLAlchemySchema): class Meta: model = QuestionModel id = ma.auto_field() question = ma.auto_field() domain = ma.auto_field() class QuestionSchema(Questi...
[ "london.computadores@gmail.com" ]
london.computadores@gmail.com
4bd0246d39796a916a02ce9dc0c9e47b95c1e253
99b0631baa2fd9ab2455d848b47febf581916272
/Api_Auto_Test/common_code/reg_fixed_account.py
f61df632ea159dbb0f110a9e24fb0a60d9647277
[]
no_license
seceast/PyProjects
a934e366cb619f2610d75b9a0fb47d818814a4de
7be7193b4126ce920a3d3ffa4ef5d8743b3fa7d1
refs/heads/master
2023-03-07T22:23:21.229489
2021-02-25T05:37:58
2021-02-25T05:37:58
265,480,151
0
0
null
null
null
null
UTF-8
Python
false
false
3,820
py
#!/user/bin/env python # -*- coding: utf-8 -*- # __author__ = yangyd # Create time: 2019/7/16 0016 15:58 import os from common_code.operate_mysql import OperateMysql from common_code.project_path import CONFIG_PATH from common_code.operate_http_requests import HttpRequest from common_code.operate_config import DoCon...
[ "yangyadong25@163.com" ]
yangyadong25@163.com
11cfb58441b8505c6a931658c82412b37130185f
16c8fdf291430475f40d578b0d64552eb64046e9
/colour/continuous/tests/test_abstract.py
9333e1aa98284d30866cdfa9e76b0ae63e46cc0b
[ "BSD-3-Clause" ]
permissive
nodefeet/colour
4c1bfed87ce173ff878bdf288fd9828bb68022e3
319dd5b1c45aef6983eff1830f918c1e593fb530
refs/heads/develop
2022-02-19T17:39:36.657993
2022-02-15T08:38:26
2022-02-15T08:38:26
460,456,444
0
0
BSD-3-Clause
2022-02-17T13:53:37
2022-02-17T13:53:36
null
UTF-8
Python
false
false
2,040
py
"""Defines the unit tests for the :mod:`colour.continuous.abstract` module.""" import unittest from colour.continuous import AbstractContinuousFunction __author__ = "Colour Developers" __copyright__ = "Copyright 2013 Colour Developers" __license__ = "New BSD License - https://opensource.org/licenses/BSD-3-Clause" __...
[ "thomas.mansencal@gmail.com" ]
thomas.mansencal@gmail.com
b5666ed6aa84d8b3ecbd32245c4225368fd86384
f030c1b724ad3a04dade2463374bd3c03e17b93c
/napari/layers/_source.py
2fc09ec50e40a97114f61c8014856db297efbb73
[ "BSD-3-Clause" ]
permissive
sandutsar/napari
3c8568979c320d57cdb80e2ea2a5db7ea035413b
37d476bc0b00252177f17f25e7d1fd52ddc4bb69
refs/heads/master
2023-07-25T08:31:32.189843
2021-09-05T11:01:02
2021-09-05T11:01:02
390,003,115
0
0
BSD-3-Clause
2021-09-05T12:18:14
2021-07-27T13:56:23
Python
UTF-8
Python
false
false
2,993
py
from __future__ import annotations from contextlib import contextmanager from contextvars import ContextVar from typing import Optional, Tuple from magicgui.widgets import FunctionGui from pydantic import BaseModel class Source(BaseModel): """An object to store the provenance of a layer. Parameters ---...
[ "noreply@github.com" ]
sandutsar.noreply@github.com
4a33138133c0d3c934ebc2ba7e37d53c93f5cf43
c4e9b3e5686ed8c6e885aa9f6a72a571f4b33db6
/matplotlib_study/plot3d.py
613421f202ed1e3b20e10b377004e9ae6a3d7412
[]
no_license
WhiteCri/learn-advanced-python
c2a081db0f901bb76e470341497014b4384ba803
8111cb12e8b05a9168a0236e05f4a6a1cda255eb
refs/heads/master
2023-04-13T22:55:49.060522
2021-04-28T05:00:49
2021-04-28T05:00:49
345,628,312
0
0
null
null
null
null
UTF-8
Python
false
false
559
py
from mpl_toolkits import mplot3d import numpy as np import matplotlib.pyplot as plt fig = plt.figure() ax = plt.axes(projection='3d') z = np.linspace(0, 1, 100) x = z * np.sin(20 * z) y = z * np.cos(20 * z) ax.plot3D(x, y, z, 'gray') ax.set_title('3D line plot') plt.show() from mpl_toolkits import mplot3d import numpy...
[ "sjrnfu12@naver.com" ]
sjrnfu12@naver.com
58358377df84919a1713a925eb29ddf926ff02ff
79e1d04867c4298b23c907f92c7119e4bea8ef02
/allennlp/allennlp/training/checkpointer.py
1c65531199aaaed25cb14ba47026756993701366
[ "Apache-2.0" ]
permissive
ethanjperez/convince
53db0bcd978831799c68fe63ecb0c91473ec40c4
ccf60824b28f0ce8ceda44a7ce52a0d117669115
refs/heads/master
2023-01-08T09:12:16.722614
2021-11-03T18:50:30
2021-11-03T18:50:30
205,189,291
27
8
Apache-2.0
2023-01-05T22:43:12
2019-08-29T15:03:34
Python
UTF-8
Python
false
false
7,497
py
from typing import Union, Dict, Any, List, Tuple import logging import os import re import shutil import time import torch from allennlp.nn import util as nn_util logger = logging.getLogger(__name__) class Checkpointer: """ This class implements the functionality for checkpointing your model and trainer st...
[ "ethanperez18@gmail.com" ]
ethanperez18@gmail.com
9ef5043077d9edbe590df74015323d437151eb55
fea928f66d6f6aeb51aa4c3b1841105e03afbc2a
/cQube_release_1.0/Sanity_Testing/Invalid_credentials_check.py
931441795e86be0a92c027310667a14e7375ff65
[]
no_license
chetandg123/Project1
97dda96458ed519020d5c306c5a64f578fbe3b06
fd502af6653a9cd7fedce28440229e31cb5a4a4f
refs/heads/master
2022-12-12T21:10:38.807562
2020-08-27T10:25:54
2020-08-27T10:25:54
259,562,363
0
0
null
null
null
null
UTF-8
Python
false
false
1,001
py
import time import unittest from selenium import webdriver from Data.parameters import Data from get_dir import pwd class login_test(unittest.TestCase): def setUp(self): dri = pwd() self.driver = webdriver.Chrome(dri.get_driver_path()) self.driver.implicitly_wait(15) def test_url(se...
[ "chetan.goudar@tibilsolutions.com" ]
chetan.goudar@tibilsolutions.com
6c702605a3be8a608094ca9b166472fa2c4a835e
d1cb20b43d86a3e20118e776810ca91f078f9951
/dash/models.py
d7660159feb3a7c3655d538da1ec3146fd326948
[]
no_license
toluwanicareer/wallet
b3118a86b831eebb08ea1673fa10828632db6891
ed07c209fbd86e7a9796cc3a4669daf4041071b5
refs/heads/master
2020-03-18T16:05:36.884898
2018-06-03T10:19:06
2018-06-03T10:19:06
134,945,951
0
0
null
null
null
null
UTF-8
Python
false
false
3,415
py
from django.db import models from django.contrib.auth.models import User from .functions import generate_address, create_or_update_online_wallet,create_eth_wallet,subscribe_to_webhook from django.conf import settings from django.contrib import messages import time import pdb # Create your models here. class Wallet(mod...
[ "abiodun.toluwanii@gmail.com" ]
abiodun.toluwanii@gmail.com
b5c1a3b7dfc429c0cd838f7d31749da0b3f67896
98d2ebd7e6a4731dd0c74e74cea25a18086b04ec
/instance_segmentation/configs/activations/iif/iif_r50_4x4_2x_lvis_v05.py
fe655b3d621cf35ccb918515defc6ff2e7b5d5b0
[ "Apache-2.0" ]
permissive
kostas1515/iif
feaf216e25e3ba36f4fd8b387e7013d4b8ad1920
cea5da4539ce918fde1e30946743816821e68634
refs/heads/master
2023-05-23T06:04:54.617730
2022-09-11T14:26:03
2022-09-11T14:26:03
385,597,246
11
1
null
null
null
null
UTF-8
Python
false
false
480
py
_base_ = [ '../../lvis/mask_rcnn_r50_fpn_sample1e-3_mstrain_2x_lvis_v0.5.py' ] data = dict(train=dict(oversample_thr=0.0)) model = dict(roi_head=dict(bbox_head=dict(loss_cls=dict(type="IIFLoss",variant='raw',num_classes=1230,path='./lvis_files/idf_1231.csv'), init_cfg = di...
[ "konsa15@liverpool.ac.uk" ]
konsa15@liverpool.ac.uk
943848aa5cc3ba8143ef3363e8c8b27b68cf3e7a
edbb7fc7241d4cf98700c0c273021f262a1f6feb
/led/writer/dotstar.py
ff4430770ebab7fdde9a208be362c8e0ed9ec661
[]
no_license
rdeits/Bemis-100
a4867df5551658ad23e5a12b19b9d2e667f23f95
0d2ffaaf7e841b2983dfb12853947a29dbf62449
refs/heads/master
2021-12-27T06:30:32.122940
2020-12-19T23:01:08
2020-12-19T23:01:08
12,530,069
0
0
null
null
null
null
UTF-8
Python
false
false
1,385
py
from __future__ import division import led.ledctl as ledctl import sys import json import board # provided by adafruit-circuitpython-dotstar import busio import numpy as np class DotstarWriter(ledctl.WriterNode): def __init__(self, **kwargs): ledctl.WriterNode.__init__(self, **kwargs) # Constr...
[ "robin.deits@gmail.com" ]
robin.deits@gmail.com
e138aee93da7f18dc31c5360faf50f1b02ab5953
f744d8e646ea67d59df66cb3050e3890ed68b4a0
/plans_src/plans/urls.py
e24b05520d3e73dbfbe889598c0bffe85c47d53b
[]
no_license
Aisuluu1405/python_group_3_homework_45_Aisulu_Dzhusupova
c6b75a717d37555553b30ba32b23cc43d3696b3e
e6666847e6e3390751fbb80dfff89f29543172e1
refs/heads/master
2023-05-04T20:40:35.403541
2019-09-16T12:15:38
2019-09-16T12:15:38
208,769,293
0
0
null
2023-04-21T20:37:19
2019-09-16T10:09:50
Python
UTF-8
Python
false
false
576
py
from django.contrib import admin from django.urls import path from webapp.views import index_view, plan_view, plan_create_view, plan_edit, delete_view, item_delete urlpatterns = [ path('admin/', admin.site.urls), path('', index_view, name='index'), path('plan/<int:pk>/', plan_view, name='view_plan'), ...
[ "aisuluueco2009@yandex.ru" ]
aisuluueco2009@yandex.ru
5b56fe26f6f041c0b99c2c4e60dd55d8aed31acd
8aa0d1d407bb1c66d01261f7e2c4e9832e856a2d
/experiments/experiments_ccle_ic/cross_validation/nmf_icm/nmf_icm_nested_xval.py
3827322970efaf0486a7e69ca6ba04dc461a4408
[]
no_license
garedaba/BNMTF_ARD
59e3ec1dbfd2a9ab9f4ec61368ec06e3783c3ee4
0a89e4b4971ff66c25010bd53ee2622aeaf69ae9
refs/heads/master
2022-01-16T06:57:12.581285
2018-06-10T10:22:12
2018-06-10T10:22:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,617
py
""" Run the nested cross-validation for the Gibbs NMF class, on the CCLE IC50 dataset. """ import sys, os project_location = os.path.dirname(__file__)+"/../../../../../" sys.path.append(project_location) from BNMTF_ARD.code.models.nmf_icm import nmf_icm from BNMTF_ARD.code.cross_validation.nested_matrix_cross_validat...
[ "tab43@cam.ac.uk" ]
tab43@cam.ac.uk
4e673b723198493429799e7a20231bae52ea5423
23fddc940a266c2d1d0e0b1687c36cdbcc9d54d9
/app/game/action/node/sdk_tencent.py
93694bd93ccc48c127befb2a1d5f4ea749db42f2
[]
no_license
Cuick/traversing
210fcfb1c780037de59343fffeb4fa4d3f2eae32
c78982580af7f63c8bff4dcb37005b7f7c682b5b
refs/heads/master
2021-01-10T17:38:37.899460
2016-11-18T06:06:55
2016-11-18T06:06:55
55,397,540
0
1
null
null
null
null
UTF-8
Python
false
false
1,424
py
# -*- coding:utf-8 -*- """ created by server on 15-2-11下午3:49. """ from gfirefly.server.globalobject import remoteserviceHandle from gfirefly.server.logobj import logger from app.proto_file.common_pb2 import GetGoldResponse from app.proto_file.game_pb2 import GameLoginRequest from shared.db_opear.configs_data import ga...
[ "zxzxck@163.com" ]
zxzxck@163.com
757ea18b8316ffeb143b80586451ed1e1fcb97f3
c51eef37bb983a9c35635c7ccc96a0cf689a7438
/com/chapter10_grains/07_print_for2.py
7154e42edb4dfea2e327e9e51cc59f3154602ac2
[]
no_license
Kyeongrok/python_crawler
0a717b43be36584af1b0f7c1ad0c79108a5d11e0
5a5da8af7bb080f752a9a066741ac8adab136a3a
refs/heads/master
2022-09-13T03:15:08.053639
2022-08-02T15:45:03
2022-08-02T15:45:03
124,719,435
40
34
null
2019-02-27T08:29:52
2018-03-11T03:20:32
HTML
UTF-8
Python
false
false
296
py
from urllib.request import urlopen import json from_date = "2010-01-01" to_date = "2018-04-28" url = "http://grains.krei.re.kr/chart/main_chart/index/kind/W/sdate/" + from_date + "/edate/" + to_date text = urlopen(url) json_objs = json.load(text) for item in json_objs[0:10]: print(item)
[ "kyeongrok.kim@okiconcession.com" ]
kyeongrok.kim@okiconcession.com
4c044c8f4ae147c0b15ed5048feb0a1464e07e17
ef6e86a3bbbf309c6ac7f4c87254001b6b410d7f
/benchmarks/operator_benchmark/benchmark_pytorch.py
6d13fdb994bbc17280433a60bf07f5df77ea03e8
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "Apache-2.0", "BSD-2-Clause" ]
permissive
MJ10/pytorch
92c2a8440590aac3a21ddd5f10b8ef6666ff13b0
cd4f11f9cc7b7533aa46f9292e67c1f917b34a22
refs/heads/master
2020-07-24T08:06:34.957193
2019-10-16T05:14:32
2019-10-16T05:14:32
207,856,631
1
0
NOASSERTION
2019-09-11T16:23:28
2019-09-11T16:23:21
null
UTF-8
Python
false
false
6,779
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import time import json import benchmark_core import torch import cpp_extension # noqa """PyTorch performance microbenchmarks. This module contains PyTorch-specific fu...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
8a19dfdc61d5453ab52adb07f7cd3ba385e3c5b3
2efa7fa6c3805db49be3e6eda25278a2d50ac9e3
/md-api/nc-create-xr-mpls-ldp-cfg-99-ydk.py
01085589f3fc6534de39521605a30d6a39341221
[ "Apache-2.0" ]
permissive
pushou/cleu2017-ltrspg-2601
37a71a8cd2789586cc8252ed4dc7d8018c09f7c2
11580c4fcdeead16b2f0680141ad98b8d1f4d1a2
refs/heads/master
2020-04-30T04:54:33.375132
2017-06-09T23:15:18
2017-06-09T23:15:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,296
py
#!/usr/bin/env python # # Copyright 2016 Cisco Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "saalvare@cisco.com" ]
saalvare@cisco.com
d78851c6dbb4a350a5ff3aec50fa4186ed646948
fabc9a21767482e4b18021f9acacaf5147a8af8c
/FradulentActivity.py
ff33d46a64a7df071428b899499d9e44cf43d7ce
[]
no_license
PriyankaDwivedi23/CSCI.799.09-Independent_Study
66bcc6db9d4dd7050656df96d04923f39d4822ef
3a09aab4e3de4e1b6ff877bd6a0b0c79ae527dc9
refs/heads/master
2020-09-27T19:25:17.110090
2019-12-15T23:43:15
2019-12-15T23:43:15
226,591,583
0
0
null
null
null
null
UTF-8
Python
false
false
1,369
py
#!/bin/python3 import math import os from collections import deque def getMedian(n): if n % 2 == 0: return int(n / 2) return int(n/2 +1) def median(arr, days, medianPosition): counter , left = 0 , 0 while counter < medianPosition: counter += arr[left] left +=1 right = le...
[ "you@example.com" ]
you@example.com
adb2b80833ab7ae00bc2274e2a9acd025f66deab
e26586e8647bf440d74d11d1dbe4314c78edfdb9
/mediamanagement/migrations/0011_auto_20191125_0017.py
d4243cf03cdbb59973472ca7f27ec91bc0594b98
[]
no_license
kranthi0987/whatsappbusinessdjango
1eebbbfe79a3ccad7208f0166144cfb7e58e4479
2113a1ec851f05df913089e1cfd2fbc76edc77c0
refs/heads/master
2023-01-25T02:13:32.271448
2020-03-12T18:55:46
2020-03-12T18:55:46
223,013,794
1
1
null
2022-12-11T14:12:27
2019-11-20T19:41:40
JavaScript
UTF-8
Python
false
false
613
py
# Generated by Django 2.2.6 on 2019-11-24 18:47 from django.db import migrations, models import uuid class Migration(migrations.Migration): dependencies = [ ('mediamanagement', '0010_auto_20191123_1059'), ] operations = [ migrations.RenameField( model_name='mediamessagemodel...
[ "kranthi0987@gmail.com" ]
kranthi0987@gmail.com
f3e6e62ea270e853951b749d993589a920b2ebc3
544648d1fa2c1e78af931a6f22ae4b83018d4d65
/ue4docker/infrastructure/WindowsUtils.py
3088580d96c9c7085adac91be1f4a4c9637c7b2e
[ "MIT" ]
permissive
damonkim-83/ue4-docker
3b82c9d6893a459a3945adc983aea3a30cede02c
9b1595527b2288653ff7648b4db0b97c1bc41457
refs/heads/master
2020-09-08T13:49:53.795549
2019-11-12T07:03:18
2019-11-12T07:03:18
221,151,385
0
0
MIT
2019-11-12T06:59:24
2019-11-12T06:59:23
null
UTF-8
Python
false
false
5,276
py
from .PackageUtils import PackageUtils import os, platform if platform.system() == 'Windows': import winreg # Import the `semver` package even when the conflicting `node-semver` package is present semver = PackageUtils.importFile('semver', os.path.join(PackageUtils.getPackageLocation('semver'), 'semver.py')) class ...
[ "adam.rehn@my.jcu.edu.au" ]
adam.rehn@my.jcu.edu.au
e364185442025c6160c11ba028b364eb27e3408e
c440ae324c8d5487679b066b62e64176487b4f6a
/mysite/books/views.py
ddcccfe38de61c41ab1db0c6c182bcf78e6aa8b6
[]
no_license
gangyou/python_execrise
d19eef8acf9e6565e56b27204184ca018d0e7712
32afdd9b45a0ecc6c966471bda0d3e03ac632aea
refs/heads/master
2021-01-23T05:35:21.659681
2014-02-20T01:24:26
2014-02-20T01:24:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,010
py
from django.shortcuts import render_to_response from django.http import HttpResponse, HttpResponseRedirect from books.models import Book from django.core.mail import send_mail from django.views.generic.base import TemplateView from books.forms import AuthorForm from django.shortcuts import render def forms(request): ...
[ "gangyou@gmail.com" ]
gangyou@gmail.com
0096a7def808984269e6172d03cccea4fa7e27de
d7663e323e2b48ad094e0ab7454ab0bed73aafd1
/pychzrm course/exercise_kung_fu/exercise_list.py
bd4205e130e96f1bb84324fe64c93a988702bee6
[]
no_license
Jack-HFK/hfklswn
f9b775567d5cdbea099ec81e135a86915ab13a90
f125671a6c07e35f67b49013c492d76c31e3219f
refs/heads/master
2021-06-19T05:58:54.699104
2019-08-09T10:12:22
2019-08-09T10:12:22
201,442,926
7
0
null
2021-04-20T18:26:03
2019-08-09T10:07:20
HTML
UTF-8
Python
false
false
497
py
# zip() = ('a', 1)('b', 2)('c', 3)('d', 4) a0 = dict(zip(("a","b","c","d","e"),(1,2,3,4))) # {'a': 1, 'b': 2, 'c': 3, 'd': 4} a1 = range(10) # range(0, 10) a2 = [i for i in a1 if i in a0] print(a2) a3 = [a0[s]for s in a0] #[1, 2, 3, 4] a4 = [i for i in a1 if i in a3 ] #[1, 2, 3, 4] a5 = {i:i*i for i in a1} #{0: 0...
[ "88888888@qq.com" ]
88888888@qq.com
26e1717e11d4defec7a4917ab8fc86d6796fbfff
a29310948867f5f07109fcd225a84282ad7eea16
/list_test/list_index.py
278e1ea833828490eb0a4d65a5fc9fb23537921f
[]
no_license
likeweilikewei/Python-study-demo
09b266c0756b6e340e8b8e3153a7e497be8ee1a9
7dd4bc851273a5815d8980f9857828abfa5364a7
refs/heads/master
2020-06-26T21:17:27.095532
2019-07-31T02:17:43
2019-07-31T02:17:43
199,760,324
2
2
null
null
null
null
UTF-8
Python
false
false
864
py
#! /user/bin/env python # -*- coding=utf-8 -*- def list_index(): lists = ['pe', 'ps', 'amount', 'ps'] old_lists = ["stkRealTimeState:*->shrCd", "stkRealTimeState:*->shrNm", "stkRealTimeState:*->nMatch", "stkRealTimeState:*->riseAndFallRate"] print(lists.index('ps')) print(lists.index(...
[ "1293120583@qq,com" ]
1293120583@qq,com
9fdbc0899e1103ecf0749e56543710b231edf282
4a81e33fe6d214f2efaeb97b03b5b05fae12b0d8
/demos/great-expectations/venv/lib/python3.8/site-packages/great_expectations/expectations/core/expect_column_values_to_match_like_pattern_list.py
b0f4f5794fc2592b46c09bbfd60ff192022603e1
[]
no_license
franciscojavierarceo/Python
29aaea28642dde151255c5b4a813158e975a073d
02715ca6f19fd3c76cefa12de92deeae4ddf9684
refs/heads/main
2023-08-27T14:23:04.376095
2023-08-27T10:30:37
2023-08-27T10:30:37
33,146,755
7
9
null
2023-02-16T06:40:35
2015-03-30T20:38:00
Jupyter Notebook
UTF-8
Python
false
false
3,266
py
from typing import Optional from great_expectations.core.expectation_configuration import ExpectationConfiguration from great_expectations.expectations.expectation import ( ColumnMapExpectation, InvalidExpectationConfigurationError, ) from great_expectations.expectations.util import render_evaluation_parameter...
[ "arceofrancisco@gmail.com" ]
arceofrancisco@gmail.com
d379bafba9d862aae0d0a71478bab94d24eaa9aa
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/kfwTnnJjo3SKG2pYx_22.py
0e8e59edcc555702d0185b93c05fcb39d9aa3aec
[]
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
647
py
""" Replace the numbers in a string with their binary form. ### Examples replace_nums("I have 2 sheep.") ➞ "I have 10 sheep." replace_nums("My father was born in 1974.10.25.") ➞ "My father was born in 11110110110.1010.11001." replace_nums("10hell76o4 boi") ➞ "1010hell1001100o100 boi" ### Not...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
2b0c58a5719f34a99cd1c6f90d8f44675a5bcb69
a857d1911a118b8aa62ffeaa8f154c8325cdc939
/toontown/effects/PolyTrail.py
2e158ed9095e0e758b55d8d7283674b285d757d9
[ "MIT" ]
permissive
DioExtreme/TT-CL-Edition
761d3463c829ec51f6bd2818a28b667c670c44b6
6b85ca8352a57e11f89337e1c381754d45af02ea
refs/heads/main
2023-06-01T16:37:49.924935
2021-06-24T02:25:22
2021-06-24T02:25:22
379,310,849
0
0
MIT
2021-06-22T15:07:31
2021-06-22T15:07:30
null
UTF-8
Python
false
false
6,858
py
from panda3d.core import * from direct.motiontrail.MotionTrail import * import random class PolyTrail(NodePath): def __init__(self, root_node_path = None, vertex_list = None, color_list = None, time_window = 0.25): NodePath.__init__(self, 'PolyTrail') self.time_window = time_window self.ro...
[ "devinhall4@gmail.com" ]
devinhall4@gmail.com
3cc3ef89523e9e91a6bb9b19d97440fd11c2a266
5fefb67463f77b13a318f3c6b08de52e24ce800e
/examples/voc/train_fcn8s.py
a1939d7099c7328eabadb5971dfdd29bdb77a57f
[ "MIT" ]
permissive
USTC2016/fcn
46ac97a347b0562aacea772bb17c748d9e037e58
f6bc35a88bc43e624965d7c21cf095980bbc0f0f
refs/heads/master
2021-01-02T08:28:40.964689
2017-07-26T16:59:40
2017-07-26T16:59:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,440
py
#!/usr/bin/env python import datetime import os import os.path as osp import subprocess import chainer from chainer import cuda import click import fcn from fcn import datasets here = osp.dirname(osp.abspath(__file__)) @click.command(context_settings={'help_option_names': ['-h', '--help']}) @click.option('-g', '...
[ "www.kentaro.wada@gmail.com" ]
www.kentaro.wada@gmail.com
7925eade3ed42e141cd766a1837acb7551a278ae
64bf39b96a014b5d3f69b3311430185c64a7ff0e
/intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/community/kubernetes/plugins/modules/helm_info.py
03ebdde3de7df9c21d42077edfb174e20927323b
[ "GPL-3.0-only", "LicenseRef-scancode-unknown-license-reference", "GPL-3.0-or-later", "MIT" ]
permissive
SimonFangCisco/dne-dna-code
7072eba7da0389e37507b7a2aa5f7d0c0735a220
2ea7d4f00212f502bc684ac257371ada73da1ca9
refs/heads/master
2023-03-10T23:10:31.392558
2021-02-25T15:04:36
2021-02-25T15:04:36
342,274,373
0
0
MIT
2021-02-25T14:39:22
2021-02-25T14:39:22
null
UTF-8
Python
false
false
5,511
py
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2020, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r''' --- module: helm_info short_descrip...
[ "sifang@cisco.com" ]
sifang@cisco.com
21d0656924af9d3e39483c419212f620472bfa49
0add7953d3e3ce2df9e8265102be39b758579753
/built-in/TensorFlow/Research/cv/image_classification/Darts_for_TensorFlow/automl/vega/datasets/transforms/Sharpness.py
913794fd8e0eff47f08e23e7e26621844c2a57e7
[ "MIT", "Apache-2.0" ]
permissive
Huawei-Ascend/modelzoo
ae161c0b4e581f8b62c77251e9204d958c4cf6c4
df51ed9c1d6dbde1deef63f2a037a369f8554406
refs/heads/master
2023-04-08T08:17:40.058206
2020-12-07T08:04:57
2020-12-07T08:04:57
319,219,518
1
1
Apache-2.0
2023-03-24T22:22:00
2020-12-07T06:01:32
Python
UTF-8
Python
false
false
1,410
py
# -*- coding: utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the...
[ "1571856591@qq.com" ]
1571856591@qq.com
9bd602bf2864f909317bd842cffe539219c6b9cc
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2346/60631/279139.py
a11def74b332a6a1d5de330772cb722684dfdac7
[]
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
1,372
py
def spiralOrder(matrix): if not matrix: return [] cds = [1, 0, -1, 0] # 列坐标步进方向 rds = [0, 1, 0, -1] # 行坐标步进方向 # 行列当前元素数量(步进数) rs, cs = len(matrix), len(matrix[0]) turns = 0 # 拐弯次数 r, c = 0, -1 # 当前元素坐标 elem_num = rs * cs result = [0] * elem_num # 结果 index = 0 # 当前结果下标 ...
[ "1069583789@qq.com" ]
1069583789@qq.com
ed0a5bb8240fb95246760d41d5f8f96a91673b62
663c108dca9c4a30b7dfdc825a8f147ba873da52
/venv/multithreading/31SynchronizationNoReleaseIsAlive.py
36ee73d0324d2045527d1e588edb31acfddb6874
[]
no_license
ksrntheja/08-Python-Core
54c5a1e6e42548c10914f747ef64e61335e5f428
b5fe25eead8a0fcbab0757b118d15eba09b891ba
refs/heads/master
2022-10-02T04:11:07.845269
2020-06-02T15:23:18
2020-06-02T15:23:18
261,644,116
0
0
null
null
null
null
UTF-8
Python
false
false
771
py
from threading import * import time l = Lock() def wish(name): l.acquire() for i in range(4): print('Good Evening from {}:'.format(current_thread().getName()), end='') time.sleep(2) print(name) # l.release() t1 = Thread(target=wish, args=('ksrn',)) t2 = Thread(target=wish, args=...
[ "srntkolla@gmail.com" ]
srntkolla@gmail.com
e16e742ef3259498e2bc17bdd10473d0c3347942
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03852/s950264008.py
863f5d031eb11b63502081aec84ab19ec42f9879
[]
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
171
py
I = input() import re # if re.match("^(a|i|u|e|o){1}$", I): if I in 'aiueo': # if 'aiueo'.find(I): print('vowel', flush=True) else: print('consonant', flush=True)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
7be48f5e7226db9035106249ba047e832261d2ab
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-1/862c439223ce5d24bd6dd65c5497f5bb96b8dae7-<main>-bug.py
06a8e6d5e0a7c4865d8adaa441e57af1cba2631a
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,199
py
def main(): args = parse_args() for config_file in CONFIG_FILES: if os.path.exists(config_file): break else: sys.stdout.write('unable to locate config file at /etc/ansible/infoblox.yaml\n') sys.exit((- 1)) try: loader = DataLoader() config = loader.l...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
775d270f9736118238fe20c59f3b2766037bf760
09f0505f3ac1dccaf301c1e363423f38768cc3cc
/r_DailyProgrammer/Easy/C272/unittests/unittest.py
e323259c8ddb1dd713e7c436c8c2f19c15100021
[]
no_license
Awesome-Austin/PythonPractice
02212292b92814016d062f0fec1c990ebde21fe7
9a717f91d41122be6393f9fcd1a648c5e62314b3
refs/heads/master
2023-06-21T11:43:59.366064
2021-07-29T23:33:00
2021-07-29T23:33:00
270,854,302
0
0
null
2020-08-11T20:47:10
2020-06-08T23:24:09
Python
UTF-8
Python
false
false
259
py
#! python3 import unittest from r_DailyProgrammer.Easy.C272.unittests.test_values import TEST_VALUES class MyTestCase(unittest.TestCase): def test_something(self): self.assertEqual(True, False) if __name__ == '__main__': unittest.main()
[ "{ID}+{username}@users.noreply.github.com" ]
{ID}+{username}@users.noreply.github.com
500adfc8c274491c217c309fbdad02587530f12c
e0b6f5bd451aa8af3273fbc948799637681342e1
/scripts/wm_representation/functions/IEM_conditions/target_close_delay.py
cc5d1c0a3e975a1006fdc6df7791b0cf91be0c0a
[]
no_license
davidbestue/encoding
6b304f6e7429f94f97bd562c7544d1fdccf7bdc1
c27319aa3bb652b3bfc6b7340044c0fda057bc62
refs/heads/master
2022-05-05T23:41:42.419252
2022-04-27T08:34:52
2022-04-27T08:34:52
144,248,690
0
0
null
null
null
null
UTF-8
Python
false
false
7,039
py
# -*- coding: utf-8 -*- """ Created on Mon Jul 1 18:24:32 2019 @author: David Bestue """ ## Import functions prom the previous path import sys import os previous_path = os.path.abspath(os.path.join(os.getcwd(), os.pardir)) sys.path.insert(1, previous_path) from model_functions import * from fake_data_generator imp...
[ "davidsanchezbestue@hotmail.com" ]
davidsanchezbestue@hotmail.com
98f02c9bd166a7eaf6232c602e0f80ca3dcd9258
ab7304eebe72c905b5d3454e7f0a29a88c9f63cf
/Tkinter01/tk07.py
714011f638d0298612810458400a253057f04cc8
[]
no_license
1024Person/LearnPy
9ea0bb771c3853ea54ae51adf9ce74cca0168e0f
992dda33af956e768e711f75259344b297e1c324
refs/heads/master
2022-12-14T10:36:06.900699
2020-09-13T08:03:56
2020-09-13T08:03:56
274,310,042
0
0
null
null
null
null
UTF-8
Python
false
false
244
py
from tkinter import * root = Tk() root.title('成神之路') v =IntVar() b = Checkbutton(root,text="测试一下下", variable = v) b.pack() l = Label(root,text='选择状态',textvariable=v) l.pack(side = "bottom") mainloop()
[ "239903524@qq.com" ]
239903524@qq.com
cfdece435003a212f0bf1d1039419c6bc1beea33
67055c66ae4bca82ee61dab1757b73cc21559cfd
/regex_solutions/22_find_positions.py
f2330491b178814264d3986e18d147f4b4415fad
[]
no_license
kevinelong/network_python
0482f694c9c050f4226bdfb7cc4fe31df26dd17b
41158808bac5d127c3f3f3cfaea202cb60d7167c
refs/heads/master
2023-07-14T12:20:14.550017
2021-08-26T00:13:45
2021-08-26T00:13:45
359,521,517
1
20
null
2021-04-28T18:08:15
2021-04-19T16:12:03
Python
UTF-8
Python
false
false
324
py
import re # 22) Write a Python program to find the occurrence and position of the substrings within a string. text = 'Python exercises, PHP exercises, C# exercises' pattern = 'exercises' for match in re.finditer(pattern, text): s = match.start() e = match.end() print('Found "%s" at %d:%d' % (text[s:e], s, ...
[ "kevinelong@gmail.com" ]
kevinelong@gmail.com
0a9f7c1914d11b7b724e04fec91738a13d430e3c
d21f82ada44189bfc36ebed7231983a8bc76145e
/service/models.py
b000a6a53d18426687ed05efce4f42c0a951b50b
[]
no_license
Riyam224/cars
febbdfa992a99c34e22eae8955ceb2c2540fc607
7e30bb5d1268c16a18c65592fd5ba66ba0c569da
refs/heads/main
2023-07-22T18:50:56.489188
2021-09-02T17:46:12
2021-09-02T17:46:12
402,503,828
0
0
null
null
null
null
UTF-8
Python
false
false
914
py
from django.db import models # Create your models here. from django.contrib.auth.models import User from django.utils.translation import ugettext_lazy as _ from django.utils.text import slugify COLOR_CHOICES = ( ('W' , 'White'), ('O' , 'Others') ) SERVICES_CHOICES = ( ('CL' , 'Clean'), ('WA' , 'Wa...
[ "riyamtechcampus@gmail.com" ]
riyamtechcampus@gmail.com
028f7e79fd6e51059edc4c1c2b02e26a44579951
2d009ea6b7de0368daccb236b486bee32815a92c
/wedding/comment/migrations/0002_auto_20160321_2136.py
2167b9253299d12d0ee2ae9f0529b953cb4bc553
[]
no_license
jeawy/wedding
aca61d44e55d11b0dc3c518da00b2a9200c7231d
6a5f5602f8ec886fc8df6ff91f62ac27ff975f08
refs/heads/master
2021-01-21T19:13:56.135679
2017-06-29T16:55:56
2017-06-29T16:55:56
92,132,009
0
1
null
2017-05-23T07:20:34
2017-05-23T05:15:17
Python
UTF-8
Python
false
false
704
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('kb', '0001_initial'), ('comment', '0001_initial'), ] operations = [ migrations.AddField( model_name='com...
[ "281475120@163.com" ]
281475120@163.com
a486057021f8fce2013696178b45593067527d89
f666faba5d860ae2568880fbe31c67fd70e22ae5
/Веб-технологии/web/ask/ask/urls.py
98c9a144daac81e933cac68c643431fdc1234e44
[]
no_license
GizzaProgger/stepik
f6f3453cffaa56d71480bc1cd67f00446a515162
191bd85b8a44dca84e91fb3f870d80bfd3a0506a
refs/heads/master
2022-04-27T21:43:59.308194
2020-04-06T11:30:42
2020-04-06T11:30:42
260,657,914
0
0
null
2020-05-02T09:54:29
2020-05-02T09:54:28
null
UTF-8
Python
false
false
1,121
py
"""ask URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based ...
[ "zapzarap@yandex.ru" ]
zapzarap@yandex.ru
286134b5f083af3d5111a8e6a9a2fc430ffb8bab
3cc34d6b36a6d0b2a09991a77b1df2194f843734
/tools/scav_script-remove_raw_data_dirs.py
7f441a195ae70afc8620d0f0ec05e6ef82d03c4a
[ "Apache-2.0" ]
permissive
czero69/lsr
eb08fb5a53e3cae999cac0975d8f6fc433f53be5
a9a6643968a7b6b29cab3b53b73ab80d14fb32b7
refs/heads/master
2023-08-26T05:50:16.583525
2021-10-20T17:46:28
2021-10-20T17:46:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,017
py
# Run command: python tools/scav_script-remove_raw_data_dirs.py --scav --cores 4 --mem 10 --gpu=0 from datetime import datetime import argparse import glob import numpy as np import os import os.path as osp import socket import time # Function to check for validity of QOS # TODO: add time/duration check. def check_q...
[ "=" ]
=
aa224f2466e1634625e99ccb14ebdbaac5ea69c1
4a9995871447a406a7e6307a030503700cd41226
/script/testCase/Y3me项目/数字化建模9/权限管理/用户管理.py
43b9daa7ad9e5a1c2dedbdcc20b8568525adf084
[]
no_license
juntaoh1234/12122003
96a107ce22d930e8d9517810736d8f6ce92dc7ad
4bee39286c3708d7a0df3001e0daa9da51478170
refs/heads/master
2020-10-01T18:20:01.572599
2019-12-12T12:04:08
2019-12-12T12:04:08
227,596,967
3
0
null
null
null
null
UTF-8
Python
false
false
4,143
py
# coding=utf-8 from time import time, sleep import random from SRC.common.decorator import codeException_dec from SRC.unittest.case import TestCase from script.common import utils from selenium import webdriver from selenium.webdriver import ActionChains from SRC.param import context class EasyCase(TestCase): def...
[ "1341890679@qq.com" ]
1341890679@qq.com
bb12fd2c2f506fc1f925bae1127a59f7160e09bd
5ddd21b98cdf310f5da0a7a09e43f2d4d14b0144
/refactoring/solution/02-extract-function/space_game.py
f691796603ba9896d22f0d86c5146b390a061eb2
[ "CC-BY-4.0", "CC-BY-3.0", "MIT" ]
permissive
krother/software-engineering-python
8b253c9143370b5882134ebdc81f387bfe3b0a03
3fd8b29c093d21738a3b0d3e70aebf2a3ec93217
refs/heads/master
2022-10-14T14:21:49.301629
2022-10-12T05:13:33
2022-10-12T05:13:33
23,292,588
97
24
null
2018-11-11T19:53:23
2014-08-24T20:56:00
Python
UTF-8
Python
false
false
3,003
py
""" Space Travel Game A simple text adventure written for a refactoring tutorial. """ from text_en import TEXT def display_inventory(credits, engines, copilot): print("-" * 79) inventory = "\nYou have: " inventory += "plenty of credits, " if credits else "" inventory += "a hyperdrive, " if engines ...
[ "krother@academis.eu" ]
krother@academis.eu
3ab9b81192825190b04f07552fc9698c69195c51
1663094234e3f05dff368798b71261d5af8d6490
/ticket/migrations/0006_scont.py
6bf9c95b1bbbbf04943b1056868c0a6355b8475d
[]
no_license
kolamor/Teplomag
d1619263872a1220aa8f30f2f75658a67a54dc89
5336d16fa85931bb9fc9288ea24cf1c8226cade5
refs/heads/master
2020-04-01T12:37:05.297545
2018-10-22T21:04:49
2018-10-22T21:04:49
153,215,873
0
0
null
null
null
null
UTF-8
Python
false
false
805
py
# Generated by Django 2.1.1 on 2018-09-21 12:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ticket', '0005_delete_scont'), ] operations = [ migrations.CreateModel( name='Scont', fields=[ ('id'...
[ "kolamorev@mail.ru" ]
kolamorev@mail.ru
b3b1a6634343a18986e56d0d5d289771d63b10f8
ae2c2bdf3aba6b5bd0753778be1991f968e689ec
/dotbiz/migrations/0018_auto_20201226_1850.py
35c1805a44159ab36a0fd8a5f0fbb8867f59030b
[]
no_license
bintangx1902/clone_biz
7cd5ce56073ebd7627c93bb1608de10177a33dfd
80ee7b04aaff167001f5cbd9307bd3f487d3919c
refs/heads/main
2023-08-24T10:53:18.590655
2021-10-25T06:32:28
2021-10-25T06:32:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
663
py
# Generated by Django 3.1.4 on 2020-12-26 11:50 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('dotbiz', '0017_auto_20201226_1749'), ] operations = [ migrations.RenameField( model_name='subpage', old_name='page_link', ...
[ "60544749+bintangx1902@users.noreply.github.com" ]
60544749+bintangx1902@users.noreply.github.com
066093f2f2d4cec937932195a4227d614cfae157
bd844f868da174a15a54751609847320919bc4f6
/p053a.py
96ea5558dde59dec65c5195aae21a47d42c89aca
[]
no_license
tkoz0/problems-project-euler
f8fa2c846b3f2c9719742d71acd1e837b3486e07
93e0bc51276acdd7729a45a18c05fd3a6eb1f125
refs/heads/master
2023-06-07T00:12:10.435409
2023-05-28T02:38:33
2023-05-28T02:38:33
157,948,871
0
0
null
null
null
null
UTF-8
Python
false
false
609
py
import libtkoz as lib nmax = 100 combmin = 1000000 # basic method since python supports large integers count = 0 for n in range(nmax+1): for r in range(n+1): if lib.binom_coeff(n, r) > combmin: count += 1 print(count) # faster solution using symmetry of pascal triangle count = 0 for n in ra...
[ "you@example.com" ]
you@example.com
41c8caecf58f7b13f5dd4274468d9666d074d929
61dd3524e904ee055a761815239da55db26f03eb
/PYTHON-SALA DE AULA/CURSO OLINE PY/exercicio_aula 15.2.py
4f8a6778dd8443bd8d67a6dc1001c6a152312a22
[ "Apache-2.0" ]
permissive
JaumVitor/HOMEWORK-PYTHON
149e4cb6d10421d1e980dd5b75a92f87355582f8
7be3299f36af3a924fc5c6f4a63aeed0fd8fb38e
refs/heads/master
2022-09-15T11:00:55.019562
2022-08-26T18:46:06
2022-08-26T18:46:06
256,103,198
0
0
null
null
null
null
UTF-8
Python
false
false
335
py
n= str(input('Data de nascimento: ')).split('/') nasc = list() for i in n: nasc.append(int(i)) idade = int (input ('Digite a idade para verificação : ')) new_year = nasc[2] + idade new_date = list() for idc, x in enumerate(nasc): if idc in (0,1): new_date.append(x) if idc == 2: new_date.append(new_year) pri...
[ "joao.vitor.pires.060@gmail.com" ]
joao.vitor.pires.060@gmail.com
aec25adcb0fd8c4ed2621f893578940d255b7e22
9725e53395948f8bdfc57b049611300e1cafe368
/models/user.py
4e379fe41f32fe9f235ffaee36cf95629eb62822
[ "MIT" ]
permissive
dlitvakb/horrible_dad_jokes_bot
7ec29bf1cce6d6f26a84fba48dd45eb2c51c1f95
d42f35d042f8726b0c6c5839e503d2fb458df105
refs/heads/master
2022-12-14T14:28:09.612351
2018-03-22T08:38:59
2018-03-22T08:38:59
125,757,548
3
0
null
2022-12-08T00:55:22
2018-03-18T18:57:39
Python
UTF-8
Python
false
false
357
py
from .base_model import BaseModel class User(BaseModel): __CONTENT_TYPE__ = 'registeredUser' __SEARCH_FIELD__ = 'chatId' def __init__(self, chat_id): self.chat_id = chat_id def _search_field(self): return self.chat_id def _create_fields(self): return { 'chatId...
[ "david.litvakb@gmail.com" ]
david.litvakb@gmail.com
3da10c5f1d90b3122b1f8a7deb418633a39cdadc
b395ae4b1eceedb290b1c27f4665d17c10e17bc5
/app.py
7db9cc4a36da56d909331b036d5fbc55b896ba61
[]
no_license
lefuturiste/python-dualshock
0a42cc74dd4410de198665b68f222b55cb5cb1b6
a790888757b013a026b321034698f948598f8d07
refs/heads/master
2020-05-02T09:15:27.132550
2019-03-29T09:28:15
2019-03-29T09:28:15
177,866,308
1
0
null
null
null
null
UTF-8
Python
false
false
2,213
py
import event_emitter import asyncio import websockets import json import subprocess from random import randint class Controller: websocketHost = "localhost" websocketPort = 8000 events = None ignoredInputType = [ "a", "b", "x", "y" ] websocket = None def __init__(self): se...
[ "spamfree@matthieubessat.fr" ]
spamfree@matthieubessat.fr
aaecd68a94ce48792d1c020dc60fa188aa6dfad3
21238a26742309adb860a04174ea5360f729ad39
/SourceCode/.history/Detector_20181206151719.py
72e8078688a756a90694e81f8e39a3a9f88cb4d5
[]
no_license
Shehabalaa/Viola-Jones-Face-Detection
5b5d0c3835e0de11658d35941fa3d19468452e93
b6522b96394df8d67266b41a803bc30a93fc5c49
refs/heads/master
2020-04-23T03:08:56.976486
2019-06-23T10:39:25
2019-06-23T10:39:25
170,869,564
1
0
null
null
null
null
UTF-8
Python
false
false
8,062
py
from IntegralImage import toIntegralImage as toII import cv2 import numpy as np import random from sklearn.cluster import MeanShift from Cascade import Cascade import itertools import Utils from math import floor from functools import partial base_detector_width = 24. def preProcess(image, gamma=2): ...
[ "shehabalaa97@gmail.com" ]
shehabalaa97@gmail.com
8f7ab1b7f074b1ffbdb7fef7c3156fb8e60747f8
cef09d1e6d5e7cd335387d0829211ffb0da18f48
/common/recipes-core/fscd3/fscd/fsc_sensor.py
74d8acf2d562ea736fefbdbc020cf19da5a82c3b
[]
no_license
theopolis/openbmc
a1ef2e3335efd19bf750117d79c1477d47948ff3
1784748ba29ee89bccacb2019a0bb86bd181c651
refs/heads/master
2020-12-14T07:20:40.273681
2019-04-20T05:25:17
2019-04-20T05:25:17
43,323,632
0
1
null
2015-09-28T19:56:24
2015-09-28T19:56:24
null
UTF-8
Python
false
false
6,831
py
# Copyright 2015-present Facebook. All Rights Reserved. # # This program file 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; version 2 of the License. # # This program is distributed in the hope that it will ...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
4611c9327f34f9e0efde8afd9faf6971ea7d04bd
1f024380e272ce1a427875591c7b16060eedfcc6
/src/others/dcgan/train-dcgan.py
b399d4759aafaaed5e5ce8235278aa1ad867399b
[ "MIT" ]
permissive
weituo12321/GAN4ALL
58fa282104545a20446d2cb1fea8b5555c1fa102
2a3a7c1ccbe626d01ca26896d82d93b41c604604
refs/heads/master
2021-05-04T05:39:56.251840
2018-02-05T17:10:31
2018-02-05T17:10:31
120,342,946
0
0
null
null
null
null
UTF-8
Python
false
false
1,872
py
#!/usr/bin/env python3.4 # Original Version: Taehoon Kim (http://carpedm20.github.io) # + Source: https://github.com/carpedm20/DCGAN-tensorflow/blob/e30539fb5e20d5a0fed40935853da97e9e55eee8/main.py # + License: MIT # [2016-08-05] Modifications for Inpainting: Brandon Amos (http://bamos.github.io) # + License: MI...
[ "weituo.hao@gmail.com" ]
weituo.hao@gmail.com
c6938cf9d2d150433f1ea0e1d8a7694583128f16
61efd764ae4586b6b2ee5e6e2c255079e2b01cfc
/azure-mgmt-network/azure/mgmt/network/v2017_11_01/models/error.py
6da3fd016bcf82992f5095ea4dbaeb786f7f9501
[ "MIT" ]
permissive
AutorestCI/azure-sdk-for-python
a3642f53b5bf79d1dbb77851ec56f4cc0c5b3b61
60b0726619ce9d7baca41f6cd38f741d74c4e54a
refs/heads/master
2021-01-21T02:23:59.207091
2018-01-31T21:31:27
2018-01-31T21:31:27
55,251,306
4
3
null
2017-11-13T17:57:46
2016-04-01T17:48:48
Python
UTF-8
Python
false
false
1,425
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 ...
[ "laurent.mazuel@gmail.com" ]
laurent.mazuel@gmail.com
03b0c6f6ab8eee79f62c78d245fb02c05ac1f21d
78520f19165b33909364299aaaea2283b8aa2367
/strings/string_number.py
06e9d87c647454591a4bc3475116affe25d5547f
[ "BSD-2-Clause" ]
permissive
s3n0/Python-Course
3d3618b97c7d4d9bbe7c3987d2c329203251029b
d48568d096e9a78e397eefd83b2588ddd27aa481
refs/heads/master
2020-09-09T00:51:28.874296
2019-09-29T17:50:48
2019-09-29T17:50:48
221,294,533
0
1
null
2019-11-12T19:23:11
2019-11-12T19:23:10
null
UTF-8
Python
false
false
139
py
#!/usr/bin/python3 # string_number.py print (int("12") + 12) print ("There are " + str(22) + " oranges.") print (float('22.33') + 22.55)
[ "noreply@github.com" ]
s3n0.noreply@github.com
78a500b0ce902d05bffe0d12bc416a09ac070723
d94b6845aeeb412aac6850b70e22628bc84d1d6d
/ravens/test.py
d3a81da78975bebe7eb06a8cf738a395c9b113c0
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
ishine/google-research
541aea114a68ced68736340e037fc0f8257d1ea2
c1ae273841592fce4c993bf35cdd0a6424e73da4
refs/heads/master
2023-06-08T23:02:25.502203
2023-05-31T01:00:56
2023-05-31T01:06:45
242,478,569
0
0
Apache-2.0
2020-06-23T01:55:11
2020-02-23T07:59:42
Jupyter Notebook
UTF-8
Python
false
false
3,335
py
# coding=utf-8 # Copyright 2023 The Google Research 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 applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
0c9a35446b9642e05b5e855aebda224f87885244
2f391b50e121b32988d9d9d9b892ca0b32dec23a
/src/asariri/asariri_utils/audio/recording.py
c830f078ac47759953221dfaca0934b7232903d9
[]
no_license
dhiraa/sarvam
0b86d8fa9266167a569511cc6324174c1d8e656d
76f6e1dbadec1a4ae56af4367128f75619508cce
refs/heads/master
2021-09-10T20:05:42.151238
2018-04-01T08:12:50
2018-04-01T08:12:50
111,003,187
1
2
null
null
null
null
UTF-8
Python
false
false
1,187
py
import pyaudio import wave import os from tqdm import tqdm import shutil WAVE_OUTPUT_FILENAME = "file.wav" def record_audio(out_file_path, record_seconds = 5, format = pyaudio.paInt16, channels = 1, rate = 16000, chunk = 1024): ...
[ "mageswaran1989@gmail.com" ]
mageswaran1989@gmail.com
e5cf43fce4657c5935229a5e02296aa511b2d8b5
0979728ac63aa3671f235591b6945d8f2989a878
/examples/pybullet/examples/heightfield.py
59b7b9922cd8e813865725cb3dd15483a9dccff1
[ "Zlib" ]
permissive
TsukuyomiH2/bullet3
35a2fd01dafb6338d5ed9a52b7d888f018f6fe58
36f3adc03f2740c21c0295a97039ec99c58a6d41
refs/heads/master
2022-02-17T11:08:17.816684
2019-07-25T20:01:26
2019-07-25T20:01:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,665
py
import pybullet as p import time p.connect(p.GUI) p.createCollisionShape(p.GEOM_HEIGHTFIELD) p.createMultiBody(0, 0) sphereRadius = 0.05 colSphereId = p.createCollisionShape(p.GEOM_SPHERE, radius=sphereRadius) colBoxId = p.createCollisionShape(p.GEOM_BOX, halfExtents=[sphereRadius, s...
[ "erwin.coumans@gmail.com" ]
erwin.coumans@gmail.com
59deec81b94e9c0fdb522f735fefdc4ac13b278e
c86cd75be4f5b4eef605fb0f40743406ae19685f
/bin/osh_parse.py
4f72837f31c1569fa3d2142ec28fec9eaf79d743
[ "Apache-2.0" ]
permissive
jyn514/oil
3de53092c81e7f9129c9d12d51a8dfdbcacd397b
42adba6a1668ff30c6312a6ce3c3d1f1acd529ec
refs/heads/master
2022-02-23T08:12:48.381272
2019-03-15T08:54:31
2019-03-15T08:54:31
176,316,917
0
0
Apache-2.0
2019-03-18T15:36:14
2019-03-18T15:36:13
null
UTF-8
Python
false
false
1,226
py
#!/usr/bin/python """ osh_parse.py """ from __future__ import print_function import sys from asdl import format as fmt from core import alloc from core import main_loop from core import ui from core import util from frontend import parse_lib from frontend import reader from typing import List, Dict, Any def main(a...
[ "andy@oilshell.org" ]
andy@oilshell.org
7d41747c7dd708e6f5936d20690c85e1361af7e3
ce083128fa87ca86c65059893aa8882d088461f5
/python/flask-mail-labs/.venv/lib/python2.7/site-packages/setuptools/command/upload_docs.py
1733d052337443c90d48c496b40367d7a632af05
[]
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
6,972
py
# -*- coding: utf-8 -*- """upload_docs Implements a Distutils 'upload_docs' subcommand (upload documentation to PyPI's pythonhosted.org). """ from base64 import standard_b64encode from distutils import log from distutils.errors import DistutilsOptionError from distutils.command.upload import upload import ...
[ "marcosptf@yahoo.com.br" ]
marcosptf@yahoo.com.br
bcee835f970a692eadac31069d235c0e8acae845
8a930760bd3742a0d7b7446c5624c635ac93cd41
/tests/matches/test_matches_get.py
ad6a20c6139cc4090b1545493ad0d5b13ec77598
[]
no_license
battleforcastile/battleforcastile-match-recorder
0fe044f27f47527ebe8291a9483a897df02742d8
d8521c5fb9e11814635afdb2705f7b756351b215
refs/heads/master
2023-02-18T23:21:19.921591
2021-08-21T08:39:36
2021-08-21T08:39:36
203,853,419
0
0
null
2023-02-16T04:14:15
2019-08-22T18:44:43
Python
UTF-8
Python
false
false
1,030
py
import json from battleforcastile_match_recorder import db from battleforcastile_match_recorder.serializers.matches import serialize_match def test_matches_returns_405_if_method_is_not_allowed(init_database, test_client): rv = test_client.put('/api/v1/matches/') assert rv.status_code == 405 rv = test_cl...
[ "javidgon@gmail.com" ]
javidgon@gmail.com
0db5744341e79893f70ad1e47b19621e797dee9f
102880c301700b74e4fa65729a1c46a3017f7847
/clients/python/setup.py
c92e3dd732e3df92502dade3bb92b0cda47e256b
[ "Apache-2.0" ]
permissive
cryos/girder
e7bc1e50333bbbc510866b59c4df687bd4c7ea0f
2f15fad87f35405b990aae32581dd95947c1bf59
refs/heads/master
2021-01-14T12:15:33.890431
2015-04-24T17:58:54
2015-04-24T17:58:54
34,683,421
0
0
null
2015-04-27T18:23:48
2015-04-27T18:23:48
null
UTF-8
Python
false
false
2,058
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Copyright Kitware Inc. # # Licensed under the Apache License, Version 2.0 ( the "License" ); # you may not use this file except in compliance with the License. # You may obtain a copy of ...
[ "zach.mullen@kitware.com" ]
zach.mullen@kitware.com
080fa85aef43c506e30a91b5f5551ea84f31ec94
f8f2536fa873afa43dafe0217faa9134e57c8a1e
/aliyun-python-sdk-hbr/aliyunsdkhbr/request/v20170908/DescribeHanaMetadataRequest.py
d72f07b5153d57606d655a80ddc67e3f6bd869ca
[ "Apache-2.0" ]
permissive
Sunnywillow/aliyun-openapi-python-sdk
40b1b17ca39467e9f8405cb2ca08a85b9befd533
6855864a1d46f818d73f5870da0efec2b820baf5
refs/heads/master
2022-12-04T02:22:27.550198
2020-08-20T04:11:34
2020-08-20T04:11:34
288,944,896
1
0
NOASSERTION
2020-08-20T08:04:01
2020-08-20T08:04:01
null
UTF-8
Python
false
false
2,838
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 ...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
9109e88ad41daa1b0fe3eb42ada659f040dc8a12
1fc9a12c86be4e440f4f0d95c8b871c79df07545
/Python/python_membership_operators.py
180944e9185f6b89356fd3ead9adfb140d75b7f5
[]
no_license
Rohit-Gupta-Web3/Articles
a56e7f1b36d6d5efd846eec2e1a4036716ac16eb
0f584916e065059d4dd1e95e7de874a7830fdff4
refs/heads/master
2023-05-14T02:50:17.817951
2020-07-26T06:44:10
2020-07-26T06:44:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
321
py
a = 5 b = 10 list = [1, 2, 3, 4, 5 ] if ( a in list ): print ("Line 1 - a is available in the given list") else: print ("Line 1 - a is not available in the given list") if ( b not in list ): print ("Line 2 - b is not available in the given list") else: print ("Line 2 - b is available in the given list")...
[ "rohit.gupta@iic.ac.in" ]
rohit.gupta@iic.ac.in
c5f05e65a91ae9b1b5ba965ccef1e6b552adcf33
77b16dcd465b497c22cf3c096fa5c7d887d9b0c2
/Horan_Colby/Assignments/Full_Friends/fullfriends.py
5c188e455f2ce74c9af195299e84a01bc47ab8d8
[ "MIT" ]
permissive
curest0x1021/Python-Django-Web
a7cf8a45e0b924ce23791c18f6a6fb3732c36322
6264bc4c90ef1432ba0902c76b567cf3caaae221
refs/heads/master
2020-04-26T17:14:20.277967
2016-10-18T21:54:39
2016-10-18T21:54:39
173,706,702
6
0
null
null
null
null
UTF-8
Python
false
false
1,719
py
from flask import Flask from flask import render_template from flask import session from flask import request from flask import redirect from flask import flash from mysqlconnection import MySQLConnector app = Flask(__name__) app.secret_key = "Yessir" mysql = MySQLConnector(app, 'frands') @app.route('/') def index(...
[ "43941751+curest0x1021@users.noreply.github.com" ]
43941751+curest0x1021@users.noreply.github.com
3d47dcae5e7401105455536ef0d2793e1359ad8e
3474b315da3cc5cb3f7823f19a18b63a8da6a526
/scratch/KRAMS/src/apps/scratch/alex/test/test_tensordot.py
45156794cc2fe889d1289c597c8edec5e4b9186b
[]
no_license
h4ck3rm1k3/scratch
8df97462f696bc2be00f1e58232e1cd915f0fafd
0a114a41b0d1e9b2d68dbe7af7cf34db11512539
refs/heads/master
2021-01-21T15:31:38.718039
2013-09-19T10:48:24
2013-09-19T10:48:24
29,173,525
0
0
null
2015-01-13T04:58:57
2015-01-13T04:58:56
null
UTF-8
Python
false
false
2,829
py
## using script #--- LS: 1 ---- IT: 0 ----------- #eps_app_eng [ 0. 0. 0.] #sig_eng [ 0. 0. 0.] #--- LS: 2 ---- IT: 5 ----------- #eps_app_eng [ 1.00000000e-04 -2.07504177e-05 0.00000000e+00] #sig_eng [ 2.36326234e+00 -3.86863430e-10 0.00000000e+00] #--- LS: 3 ---- IT: 5 ----------- #eps_app_eng...
[ "Axel@Axel-Pc" ]
Axel@Axel-Pc
d89775babfd34d9087a41acf6a87b2bbf478ddd5
3cbe9a95e5fc37f736fe9cb6a6d9c68569858e7b
/gae/GAE_tutorial.py
75e1258e9011e63217037020e54cbb66d577cdbf
[]
no_license
cipri-tom/davidadlersapp
b548ad8f668a2b9c2ffecd2247dd305b8967e58a
44f0029751c209e1a849f0cedc3a32d50a1f9b2e
refs/heads/master
2021-01-15T19:34:40.967109
2013-05-08T19:47:07
2013-05-08T19:47:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,382
py
import os import datetime import urllib import webapp2 import jinja2 jinja_environment = jinja2.Environment( loader=jinja2.FileSystemLoader(os.path.dirname(__file__))) from google.appengine.ext import db from google.appengine.api import users class Greeting(db.Model): """Models an individual Guestbook entry ...
[ "dalberto.adler@gmail.com" ]
dalberto.adler@gmail.com
b0a65a82ccef890d7960f2aaa1b21a0e5eab3e01
e60d4510528e294983d6f8ada46b406062a63111
/src/labor_exchange/database/conf_db.py
c185b33eccd64a144438396ee4cae1f19a4c629f
[]
no_license
Rybak-a87/practice_fastapi_async-labor_exchange
c245a6bf54924cde7ca82dd8b4193aed7c7fc350
8fd142138d3750a46a06dceed58cd7cb4c6c3072
refs/heads/master
2023-04-21T09:02:10.288535
2021-05-17T21:56:20
2021-05-17T21:56:20
367,836,562
0
0
null
null
null
null
UTF-8
Python
false
false
524
py
# --- # подключение к базе данных # --- from databases import Database from sqlalchemy import create_engine#, MetaData from sqlalchemy.ext.declarative import declarative_base from ..config.settings import DATABASE_URL # подключение database = Database(DATABASE_URL) engine = create_engine( # только для синхронных...
[ "rybak.a87@gmail.com" ]
rybak.a87@gmail.com
8f1a889245fda1f3546eca18709bda3d5709ebe0
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_212/ch52_2020_04_12_19_47_52_756248.py
0ce80b0b707aebeb18c7582f7bb52d0f4f7e5d6d
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
149
py
def calcula_total_da_nota (p,q): total=[] i=0 while i <(len(p)-1): total.append(p[i]*q[i]) i+=1 return total
[ "you@example.com" ]
you@example.com
575e0ab02a98114ebed33871496786c7138fe773
0ba046be4c8274d838ef8b689e50f83e09e44412
/17/17-2.py
56cd4d1961b7f1f8ac1ac5e874309e813c01e79c
[]
no_license
xiaoxiae/Advent-of-Code-2019
5c82b02fa82a80c5769b0a31ef28fbb8d0ac1544
543dafd8b4d4da69398ca799501843b67b888025
refs/heads/master
2020-09-22T09:19:50.279783
2019-12-21T17:24:16
2019-12-21T17:24:16
225,135,420
0
0
null
null
null
null
UTF-8
Python
false
false
6,752
py
from random import * from typing import * class Memory: """A class for working with the computer memory.""" def __init__(self, inst: Dict[int, int]): self.inst = {} for i, instruction in enumerate(inst): self.inst[i] = instruction def __setitem__(self, i, item: int): ...
[ "tomas.slama.131@gmail.com" ]
tomas.slama.131@gmail.com
637ab3cb0f66e4cd46550d743d46ca54dad61900
15948c57063bdbf6dbcf7202ef71a6111eb5d726
/keymgmt/models.py
ec67ea17a38daec3e6fe88314cc53459ea0a8b40
[ "BSD-3-Clause" ]
permissive
juandisay/django-sshlogin
bc2e0422734225ec1b3e8523ad59171792fe1dd4
07463abf9981fece48dd6d203f75fb21bd0a9365
refs/heads/master
2021-01-16T19:16:13.444032
2015-02-24T09:27:43
2015-02-24T09:27:43
52,644,535
0
1
null
2016-02-27T01:48:26
2016-02-27T01:48:26
null
UTF-8
Python
false
false
685
py
from django.conf import settings from django.db import models, transaction from django.utils.crypto import get_random_string from django.utils.timezone import now class Key(models.Model): key = models.CharField(max_length=254, unique=True, db_index=True) created = models.DateTimeField(default=now) user = ...
[ "info@markusholtermann.eu" ]
info@markusholtermann.eu
10be88a88cb23b78da7fde20972e9ec5a93c2851
5ec06dab1409d790496ce082dacb321392b32fe9
/clients/python-flask/generated/openapi_server/models/com_day_cq_wcm_core_impl_page_page_info_aggregator_impl_info.py
cdaa6ad88f480bb4cf717c2526899cbd83c6c598
[ "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
5,077
py
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from openapi_server.models.base_model_ import Model from openapi_server.models.com_day_cq_wcm_core_impl_page_page_info_aggregator_impl_properties import ComDayCqWcmCore...
[ "cliffano@gmail.com" ]
cliffano@gmail.com
f91aab38ff5a43d5d34b11ad31111402934beb46
6508f9dc11388f9eb0f7454d2932f5ff591e9576
/AndroidViewClient/setup.py
f34c9702e6eb5ca2b1c71982267ab20688b1f009
[ "Apache-2.0" ]
permissive
ransomw/AndroidViewClient
6a26da0ae561274fd30857e5b0582c83e1f0bf62
78e0e4b502f6e876b77e681cf739c56a433ac7e2
refs/heads/master
2021-01-21T01:11:58.287575
2013-09-30T04:05:01
2013-09-30T04:05:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
906
py
#!/usr/bin/env python from distutils.core import setup setup(name='AndroidViewClient', version='4.4.2', description='''AndroidViewClient is a 100% pure python tool that simplifies test script creation providing higher level operations and the ability of obtaining the tree of Views present at a...
[ "dtmilano@gmail.com" ]
dtmilano@gmail.com
38988b87de4d1c3d45bbb5dddf43a6a58014fd04
297497957c531d81ba286bc91253fbbb78b4d8be
/third_party/libwebrtc/tools/grit/pak_util.py
3e75c73d3da03c41d6ecc7b7257d915a24abe987
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
marco-c/gecko-dev-comments-removed
7a9dd34045b07e6b22f0c636c0a836b9e639f9d3
61942784fb157763e65608e5a29b3729b0aa66fa
refs/heads/master
2023-08-09T18:55:25.895853
2023-08-01T00:40:39
2023-08-01T00:40:39
211,297,481
0
0
NOASSERTION
2019-09-29T01:27:49
2019-09-27T10:44:24
C++
UTF-8
Python
false
false
7,294
py
"""A tool for interacting with .pak files. For details on the pak file format, see: https://dev.chromium.org/developers/design-documents/linuxresourcesandlocalizedstrings """ from __future__ import print_function import argparse import gzip import hashlib import os import shutil import sys import tempfile imp...
[ "mcastelluccio@mozilla.com" ]
mcastelluccio@mozilla.com