blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
⌀
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
bc4945dfc9449f9200792d20ade606d3e70ba51f
ff6248be9573caec94bea0fa2b1e4b6bf0aa682b
/raw_scripts/132.230.102.123-10.21.9.51/1569574929.py
2cc38f1a935573395413080fd2ab5a287a456527
[]
no_license
LennartElbe/codeEvo
0e41b1a7705204e934ef71a5a28c047366c10f71
e89b329bc9edd37d5d9986f07ca8a63d50686882
refs/heads/master
2020-12-21T17:28:25.150352
2020-03-26T10:22:35
2020-03-26T10:22:35
236,498,032
0
0
null
null
null
null
UTF-8
Python
false
false
4,530
py
import functools import typing import string import random import pytest ## Lösung Teil 1. def is_palindromic(n: int): if not n > 0: return n else: x = str(n) y = x.split() return y ###################################################################### ## hidden code d...
[ "lenni.elbe@gmail.com" ]
lenni.elbe@gmail.com
4f5e8a2816b2dced7b301d06100a4da0bb893f3b
6f05f7d5a67b6bb87956a22b988067ec772ba966
/data/test/python/d87739d10c45d50149438ee846cb3b9a21f790c8testKafka.py
d87739d10c45d50149438ee846cb3b9a21f790c8
[ "MIT" ]
permissive
harshp8l/deep-learning-lang-detection
93b6d24a38081597c610ecf9b1f3b92c7d669be5
2a54293181c1c2b1a2b840ddee4d4d80177efb33
refs/heads/master
2020-04-07T18:07:00.697994
2018-11-29T23:21:23
2018-11-29T23:21:23
158,597,498
0
0
MIT
2018-11-21T19:36:42
2018-11-21T19:36:41
null
UTF-8
Python
false
false
648
py
#!/usr/bin/python #requirement: need to install kafka python client (https://github.com/quixey/kafka-python) from kafka.client import KafkaClient from kafka.consumer import SimpleConsumer from kafka.producer import SimpleProducer from time import gmtime, strftime, localtime import sys if __name__ == "__main__": ...
[ "aliostad+github@gmail.com" ]
aliostad+github@gmail.com
62e5182a751d7ca10330e8d47ba53e9f7ccdb191
4cb8c8f11c2a19a75495771b1d6b53881cd67b58
/Production/python/Run2016D-03Feb2017-v1/SinglePhoton_cff.py
2ee305f2ecd413cc87bcdeb11c340a2dbffbe179
[]
no_license
kpedro88/TreeMaker
d7498274106067e56aebbed7f086fbee8bf46f7e
0260dc10392e4828452e559beb3b6dc8fa765df5
refs/heads/upgrade2017
2023-07-06T13:24:04.465706
2018-04-03T17:56:48
2018-04-03T17:56:48
38,841,239
0
1
null
2021-11-11T17:20:57
2015-07-09T19:35:41
Python
UTF-8
Python
false
false
28,481
py
import FWCore.ParameterSet.Config as cms maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) readFiles = cms.untracked.vstring() secFiles = cms.untracked.vstring() source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles) readFiles.extend( [ '/store/data/Run2016D/Sing...
[ "kpedro88@gmail.com" ]
kpedro88@gmail.com
fa4559ef9f6afef7bc6f43079501cface0e5e92c
e0527bce5c53a196752d3a16adf50cb60754de5f
/11-How to Build an IT System Demos/Step1a_first_gui.py
2d92cd93afaf6461cf632c8d18a8f339b48e517e
[]
no_license
ARWA-ALraddadi/python-tutorial-for-beginners
ddeb657f419fbc176bea273bc9fb6b88d1894191
21cedfc47871ca4d25c2382464c60ab0a2121205
refs/heads/master
2023-06-30T20:24:30.688800
2021-08-08T08:22:29
2021-08-08T08:22:29
193,094,651
0
0
null
null
null
null
UTF-8
Python
false
false
3,829
py
#---------------------------------------------------------------- # # GUI Prototype # # This program provides a basic version of the GUI front-end # but # # a) no attempt has been made to make the interface attractive # or intuitive, and # # b) there are no back-end functions, so they have been # simulated via st...
[ "noreply@github.com" ]
ARWA-ALraddadi.noreply@github.com
5722b13eaf543a3b4f823221f41bed297787b6bc
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/pa2/sample/stmt_list_assign-46.py
8cab7601f2bb3d9bde2b80d80889d4b479860b0e
[]
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
84
py
x:[int] = None y:[object] = None x = [1, 2] y = [None] $Target = 3 x[1] = y[0] = 4
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
4927502ba502532254947f73f371bdee9804494c
24598411be27cb90a108397fe6f4e1fb7042bd2f
/setup.py
191eecd6031a0bbac0a5b59ff18800867056dd29
[ "MIT" ]
permissive
shubhampachori12110095/mondrianforest-1
961d840666e6dbf9be587a7e9c0593322fb00a63
ae03bef179fffc7ea7d17b73b2ed75aa71312243
refs/heads/master
2020-03-18T16:00:48.984873
2016-07-03T04:30:37
2016-07-03T04:30:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
625
py
#!/usr/bin/env python # coding: utf-8 from setuptools import setup, find_packages setup( name='mondrianforest', version='0.0.2', author='nel215', author_email='otomo.yuhei@gmail.com', url='https://github.com/nel215/mondrianforest', py_modules=['mondrianforest'], classifiers=[ 'Deve...
[ "otomo.yuhei@gmail.com" ]
otomo.yuhei@gmail.com
4f909b6ce14ebe6ec254280976a97f18680022d9
40cdc6b171a4d170c7bb52e87ff6da631f21de74
/ethereum_helpers/hashes.py
73567154d5d4092f3278b94ed9ec593a44c8981e
[ "MIT" ]
permissive
lycantropos/ethereum_helpers
5e1d7973c47b4540216dfffc2b246be0b2ddabbc
8b7375d18398c94f97628903f562d7d6c354c418
refs/heads/master
2021-01-02T22:28:14.770238
2017-08-16T06:56:59
2017-08-16T06:56:59
99,325,020
0
0
null
null
null
null
UTF-8
Python
false
false
698
py
from functools import partial import scrypt from Cryptodome.Hash import keccak def keccak_hash(target_bytes: bytes, *, digest_bits: int) -> keccak.Keccak_Hash: return keccak.new(digest_bits=digest_bits, data=target_bytes) keccak_256_hash = partial(keccak_ha...
[ "azatibrakov@gmail.com" ]
azatibrakov@gmail.com
a71d11677a235338e7428316dcb429002f0a1a23
cb32fe0287633c8250864a2babfdbaa3ab9e092e
/TransferSystem/Agent/helper/TransferFactory/TransferByDIRACFTS.py
5840784d7761af5275621ff518a3d33e88a93b30
[ "MIT" ]
permissive
besdiracgrid/IHEPDIRAC
e483fb8e405c48770f6f592af4da0b5148c81307
0d26ef698dfb0f5eb92915c424e309eca3927cc0
refs/heads/master
2022-05-30T22:00:50.673315
2022-05-25T00:37:53
2022-05-25T00:37:53
188,807,483
0
4
MIT
2022-05-25T00:37:54
2019-05-27T08:53:44
Python
UTF-8
Python
false
false
1,143
py
# -*- coding: utf-8 -*- from IHEPDIRAC.TransferSystem.Agent.helper.TransferFactory.ITransferWorker import * class DIRACFTSTransferWorker(ITransferWorker): def build_cmd(self, info): LFN = info["LFN"] srcSE = info["srcSE"] dstSE = info["dstSE"] cmd_list = ["dirac-dms-fts-submit", ...
[ "zhaoxh@ihep.ac.cn" ]
zhaoxh@ihep.ac.cn
6dee4862fb8402a486abd85d7cb5c003a0e614bb
ac53ed07a534db727e57714f5fdd07950d22c170
/Django/makeplan/app/admin.py
f244f1cb385e6dede0dc65aafefc3d6fe4b58c3f
[ "MIT" ]
permissive
taoyan/python
b8847911068083481e34567716710abaf5bbe4be
3fbb1e534ec91b33cd2ac690966d7253c2f5d757
refs/heads/master
2022-12-11T17:15:59.411554
2019-10-28T03:50:31
2019-10-28T03:50:31
147,048,609
1
0
MIT
2022-12-10T14:53:29
2018-09-02T02:39:40
Python
UTF-8
Python
false
false
119
py
from django.contrib import admin from .models import Version # Register your models here. admin.site.register(Version)
[ "allen.t.yan@cn.pwc.com" ]
allen.t.yan@cn.pwc.com
9d657876cbf10154db94c35dd57b050132b36382
ad02621156c2fee8f1bcfb2b948fe478c637b08e
/eval.py
d0ea8b7b47655034a66f64fd7b2e39c7cd143560
[]
no_license
bohaohuang/agep
7947e753310c166145e7fa8e741e6fbf1468fecc
a0770b90f50521b718d97b7988ea1fea59da4093
refs/heads/master
2020-09-20T13:57:11.855666
2019-12-07T14:55:56
2019-12-07T14:55:56
224,502,523
0
1
null
null
null
null
UTF-8
Python
false
false
2,535
py
""" """ # Built-in # Libs import numpy as np import matplotlib.pyplot as plt from sklearn.metrics import roc_curve, auc from tqdm import tqdm # Pytorch import torch import torchvision.transforms as transforms from torch import nn from torch.utils.data import DataLoader # Own modules import rea...
[ "bohao.huang@duke.edu" ]
bohao.huang@duke.edu
666b133509db9a6d2aaeda36f398a878f5087dcf
a8769709aeb7299fa3757f0e7bba5c617eb8cfe3
/lesson-3/k8s/lib/python2.7/site-packages/kubernetes/client/models/v1beta2_rolling_update_stateful_set_strategy.py
6f0706350561cde33cde08c577e47dd0d136ccd5
[ "Apache-2.0" ]
permissive
simox-83/workshop-k8s
2ac5e8b282bb7c3337acc726a7d972717bf649cc
04cb18e8b5925a3cfd84ca316952a6cb64960b31
refs/heads/master
2020-03-31T20:52:21.421995
2018-10-11T14:43:08
2018-10-11T14:43:08
152,558,678
0
0
Apache-2.0
2018-10-11T08:37:20
2018-10-11T08:37:20
null
UTF-8
Python
false
false
3,449
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.11.3 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re...
[ "simone.dandreta@concur.com" ]
simone.dandreta@concur.com
28ba32c11d13f2fcaac6bcdb4164e88abbf4461a
71e18daf9e567792a6ce1ae243ba793d1c3527f0
/InflearnPythonAlgorithm/Section5(BP,DFS)/5-9.py
74e779db56e454d3efdb24b1a968a41fa5ba4831
[]
no_license
ohjooyeong/python_algorithm
67b18d92deba3abd94f9e239227acd40788140aa
d63d7087988e61bc72900014b0e72603d0150600
refs/heads/master
2020-06-22T18:10:41.613155
2020-05-27T13:12:03
2020-05-27T13:12:03
197,767,146
0
0
null
null
null
null
UTF-8
Python
false
false
574
py
# 수열 추측하기 import sys def DFS(L, sum): if sum > f: return if L == n and sum == f: for x in p: print(x, end=' ') sys.exit(0) else: for i in range(1, n + 1): if ch[i] == 0: ch[i] = 1 p[L] = i DFS(L + 1, sum...
[ "brb1111@naver.com" ]
brb1111@naver.com
478d51baa0858b3cbbddfcafd0b55405ef2b6130
f47e6aab3e58a1cc12e390492fe982ab1da9aa28
/modoboa/extensions/admin/tests/account.py
6881056a4d3c523f87816084ebd9efbb2c7a58fc
[ "ISC" ]
permissive
kaxdev/modoboa
7e80b5496f362adf5c503588cc5680a894e365eb
d5f2652a5f957a0d68043f063b8c530dbf76ebf6
refs/heads/master
2021-01-12T21:45:59.003052
2015-04-10T07:16:58
2015-04-10T07:16:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,056
py
from django.core.urlresolvers import reverse from modoboa.core.models import User from modoboa.extensions.admin import factories from modoboa.extensions.admin.models import ( Domain, Mailbox ) from modoboa.lib.tests import ModoTestCase class AccountTestCase(ModoTestCase): fixtures = ["initial_users.json"] ...
[ "tonio@ngyn.org" ]
tonio@ngyn.org
f38a73289cac7d3d7cec9d272d16787b487ee75d
5f4ebba8340065c6bc5e60ad8b501d4c5f416be9
/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/models/server_properties_for_restore_py3.py
f4f4660b4c514f6b98393d0b1610b3ab3cf2ed20
[ "MIT" ]
permissive
chenyingkof/azure-sdk-for-python
406d300a67aca0a3529050c101e68cf2798c7d7d
18e0972ae16c62d5859d36875e53e6b998a85a57
refs/heads/master
2020-03-06T21:34:16.190684
2018-03-27T21:17:15
2018-03-27T21:17:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,728
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 ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
5e564c2e18c60956ad4aaedf09d3783146d009c1
555fefe878fed93507a83a58fdf2bb4da1e0d4f9
/news/urls.py
5d08f5551a423191412a724e509707b337353b10
[]
no_license
ArtusU/ecf_news
554be97d737d9b4db307b3a3827ee1e0f895579a
8cc04e42d42866f8e1049093f41f8858ebd61d75
refs/heads/master
2023-03-18T23:12:38.186932
2021-03-15T16:24:44
2021-03-15T16:24:44
346,786,883
0
0
null
null
null
null
UTF-8
Python
false
false
1,069
py
from django.urls import path from .views import CategoryListView, home, SignupView, CategoryCreateView, CategoryDetailView, PostDetailView, PostCreateView, PostDeleteView, ManagerPostListView, ManagerMarkAsPublic, CategoryFeedView app_name = 'news' urlpatterns = [ path('', home, name='home'), path('signup/', ...
[ "artusrock@hotmail.com" ]
artusrock@hotmail.com
8fb1febbd931c8177d3be43acf0e3bc3181bbad0
c2be395eac600d0d853de03cd67070bd8391038f
/ofm_franchise/models/__init__.py
5e61743d4deb6859a7c579413e554669b77b88ab
[]
no_license
amendoncabh/salary_emp
960cfdb4df48df70ab361886039c790840a5e8d2
2ac2dd9461271153cb2ee406bf70a29f614c25f1
refs/heads/master
2022-03-30T22:35:10.704092
2020-01-05T16:23:20
2020-01-05T16:23:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
290
py
# -*- coding: utf-8 -*- from . import res_company from . import branch from . import daily_summary_franchise from . import bank_transfer_status from . import monthly_summary_franchise from . import res_bank from . import point_or_sale from . import sale_order from . import account_invoice
[ "loveprakon@gmail.com" ]
loveprakon@gmail.com
245d58d7e1a3688381462dbca0fb318c13f7f086
71ef2ddc4a10c9f6be7b938dadbd25bb5accbe89
/hlt/entity.py
aeac338f643b7572d7a8c0a25d74366243f0cf01
[]
no_license
NicoKNL/halite3
e06b72e68c102d5cf863b6efd7c2ef5b0c161ea2
60ccd9a36e13b447a481e242762379d38e71c1b1
refs/heads/master
2020-04-07T22:01:18.804779
2018-12-20T00:47:17
2018-12-20T00:47:17
158,751,122
0
0
null
null
null
null
UTF-8
Python
false
false
4,253
py
import abc import logging from . import commands, constants from .positionals import Direction, Position from .common import read_input from .task import Task class Entity(abc.ABC): """ Base Entity Class from whence Ships, Dropoffs and Shipyards inherit """ def __init__(self, owner, id, position): ...
[ "klaassen.nico@gmail.com" ]
klaassen.nico@gmail.com
c1c207c07cd578d5fabad81eb82176d43fb116a5
2475acb15e1dcd4a42ed8849a6ae7c6f383d5b59
/calendar_api/migrations/0001_initial.py
689336d000ee618e5b1e3dd85fece5da014079ae
[]
no_license
amigo2/Goker
2e66cabb32253bfe43a188241b58df962a9a1583
0509446382eacabdb7c006a60362891f217bcc3a
refs/heads/master
2022-12-13T09:50:47.720250
2019-08-13T20:54:43
2019-08-13T20:54:43
169,242,538
0
0
null
2022-12-08T12:23:28
2019-02-05T13:06:35
Python
UTF-8
Python
false
false
4,167
py
# Generated by Django 2.1.4 on 2019-05-28 15:13 import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('listings', '0006_auto_20190422_2049'), ('brokers', '0002_auto_20181206_2303'), ...
[ "amigo2@hotmail.com" ]
amigo2@hotmail.com
8974e67ed2fa5a180b469da207787c8276d2acc8
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/pg_1635+533/sdB_pg_1635+533_coadd.py
a7465b94c8a271d205c2d6784a5c889c0dd5b4e8
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
from gPhoton.gMap import gMap def main(): gMap(band="NUV", skypos=[249.059292,53.216306], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_pg_1635+533/sdB_pg_1635+533_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdB/sdB...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
b3a673226936e5f083226c53794ad8d4d79a514c
dbac7fe090f0a6520802415ac11bc111b1ed1df3
/versioneer.py
cce201c784607ad22fc7096256d9d1f0ea81bfd1
[ "MIT" ]
permissive
vanheeringen-lab/gimmemotifs
4d5a790d007c303f9552c7e5fbab7fdf9207fccd
74512747f54102500a248d56db5b469fc75961bc
refs/heads/master
2023-08-05T18:04:52.029973
2023-01-11T12:47:29
2023-01-11T12:47:29
676,678
71
31
MIT
2023-03-22T11:18:54
2010-05-20T08:34:07
Python
UTF-8
Python
false
false
68,712
py
# Version: 0.18 """The Versioneer - like a rocketeer, but for versions. The Versioneer ============== * like a rocketeer, but for versions! * https://github.com/warner/python-versioneer * Brian Warner * License: Public Domain * Compatible With: python2.6, 2.7, 3.2, 3.3, 3.4, 3.5, 3.6, and pypy * [![Latest Version] (...
[ "simon.vanheeringen@gmail.com" ]
simon.vanheeringen@gmail.com
29b38ca58d58c80dc2a5051001de41266bbf5edd
920b9cb23d3883dcc93b1682adfee83099fee826
/itsm/auth_iam/urls.py
f3d10cbf2a9d64faa8d5677af9c8ab002547328e
[ "MIT", "LGPL-2.1-or-later", "LGPL-3.0-only" ]
permissive
TencentBlueKing/bk-itsm
f817fb166248d3059857b57d03e8b5ec1b78ff5b
2d708bd0d869d391456e0fb8d644af3b9f031acf
refs/heads/master
2023-08-31T23:42:32.275836
2023-08-22T08:17:54
2023-08-22T08:17:54
391,839,825
100
86
MIT
2023-09-14T08:24:54
2021-08-02T06:35:16
Python
UTF-8
Python
false
false
4,114
py
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-ITSM 蓝鲸流程服务 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-ITSM 蓝鲸流程服务 is licensed under the MIT License. License for BK-ITSM 蓝鲸流程服务: ------------------------------------------...
[ "1758504262@qq.com" ]
1758504262@qq.com
8c7038f6dc62d1106d11dbc7c8839f4978dc9b5d
e7b6a1acb7923b9db0ed25eccf18b469d487300d
/Formats/__init__.py
b1c09f56c1da1cc19fcc765c72c927f789cabadd
[ "Apache-2.0" ]
permissive
debrief/python-import-library
b32df294a7caba6604ed9aeeb996f844d9527d49
30888960013886a62646770727319f2f2cf2b8e5
refs/heads/develop
2020-05-24T02:17:43.156646
2020-03-12T10:03:38
2020-03-12T10:03:38
187,051,223
0
5
Apache-2.0
2019-11-06T09:35:18
2019-05-16T15:09:05
Python
UTF-8
Python
false
false
170
py
from .UnitConversion import UnitConversion # Initializing Pint's Unit Registry conversion = UnitConversion() ureg = conversion.getUnitRegistry() Quantity = ureg.Quantity
[ "tahirs95@hotmail.com" ]
tahirs95@hotmail.com
b967c302a7ab933f5d1a6983448284579ff60761
0a6309d2aa2dd577fe5a1aed8e6ebf2b01c670a2
/0x08-python-more_classes/8-rectangle.py
b66bbc8369472ea5eeb0807d479bda8e49243646
[]
no_license
arleybri18/holbertonschool-higher_level_programming
74675ce64801c72fc96318fc568b040b9f4b761e
2f0b9a7f462595f67de12d4c3880375e87552357
refs/heads/master
2020-05-18T02:22:10.969677
2019-09-26T20:32:27
2019-09-26T20:32:27
184,113,244
1
1
null
null
null
null
UTF-8
Python
false
false
3,119
py
#!/usr/bin/python3 class Rectangle: """Class with a instance private attributes, with optional value 0 validate type and value > to 0, send a message Error using raised and define a method to asign values """ number_of_instances = 0 print_symbol = "#" def __init__(self, width=0, hei...
[ "arleybri18@gmail.com" ]
arleybri18@gmail.com
f755057b10430b06fc6a7a72d1f41f0fc0e1e126
1bb42bac177fb4e979faa441363c27cb636a43aa
/distributed_dp/distributed_skellam_query_test.py
2ad2b1410eae895994322e100a6b0696fd1df2c5
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
google-research/federated
a6040e80fa0fbf533e0d665c66a9bc549d208b3d
329e60fa56b87f691303638ceb9dfa1fc5083953
refs/heads/master
2023-08-28T13:10:10.885505
2023-08-22T23:06:08
2023-08-22T23:06:40
295,559,343
595
187
Apache-2.0
2022-05-12T08:42:53
2020-09-14T23:09:07
Python
UTF-8
Python
false
false
6,038
py
# Copyright 2018, The TensorFlow Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
bd1f531ef9ae914e086255f760df349526881ca3
cf4f3c181dc04c4e698b53c3bb5dd5373b0cc1f4
/meridian/tst/acupoints/test_xialiao42.py
b43750adf1d340fb571ee150af446bd1f7ed3f8a
[ "Apache-2.0" ]
permissive
sinotradition/meridian
da3bba6fe42d3f91397bdf54520b3085f7c3bf1d
8c6c1762b204b72346be4bbfb74dedd792ae3024
refs/heads/master
2021-01-10T03:20:18.367965
2015-12-14T14:58:35
2015-12-14T14:58:35
46,456,260
5
3
null
2015-11-29T15:00:20
2015-11-19T00:21:00
Python
UTF-8
Python
false
false
299
py
#!/usr/bin/python #coding=utf-8 ''' @author: sheng @license: ''' import unittest from meridian.acupoints import xialiao42 class TestXialiao42Functions(unittest.TestCase): def setUp(self): pass def test_xxx(self): pass if __name__ == '__main__': unittest.main()
[ "sinotradition@gmail.com" ]
sinotradition@gmail.com
5de65d5799a511b6cc76790626bc6bf876786ea0
93ac5d21bf02e3448a60d163bdf08541045de6ea
/bid/migrations/0003_auto_20210809_1225.py
53439b497ec562afbad47e79fdddc238244fc6ba
[]
no_license
samsmusa/find_bid
cd97a601524fbfc419499d71b80566b3092c1264
fe2399df1c74aef2f70b7956af6734c26413013a
refs/heads/master
2023-08-13T05:51:15.781183
2021-09-07T07:10:15
2021-09-07T07:10:15
403,878,371
0
0
null
null
null
null
UTF-8
Python
false
false
817
py
# Generated by Django 3.2.5 on 2021-08-09 06:25 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('user_login', '0001_initial'), ('bid', '0002_alter_userbid_bid'), ] operations = [ migrations.AlterF...
[ "samsmusa@outlook.com" ]
samsmusa@outlook.com
016b4f9718751725b5ad92d2289925efaef37932
9923e30eb99716bfc179ba2bb789dcddc28f45e6
/swagger-codegen/python/samsara/models/fleet_vehicle_location.py
2dee5dd84f6efb5804407a9cabb9381b346fe4f2
[]
no_license
silverspace/samsara-sdks
cefcd61458ed3c3753ac5e6bf767229dd8df9485
c054b91e488ab4266f3b3874e9b8e1c9e2d4d5fa
refs/heads/master
2020-04-25T13:16:59.137551
2019-03-01T05:49:05
2019-03-01T05:49:05
172,804,041
2
0
null
null
null
null
UTF-8
Python
false
false
12,537
py
# coding: utf-8 """ Samsara API # Introduction Samsara provides API endpoints for interacting with Samsara Cloud, so that you can build powerful applications and custom solutions with sensor data. Samsara has endpoints available to track and analyze sensors, vehicles, and entire fleets. The Samsara Cloud AP...
[ "greg@samsara.com" ]
greg@samsara.com
414aded81ea517cfa11057b17da9448ca348d1e3
97ee4b2e87d96a661b6f1c0e29d07ed9f7f4ef28
/accounts/migrations/0017_auto_20171002_1540.py
cf0f8af2c723d75971f113dfc53cdb3165be4e4b
[]
no_license
GHostEater/Portal
0aac67bf74b3476b26959dd3c80484e1390f1399
502dff5cbe0ad13f490e2e0b2600d895fc631068
refs/heads/master
2020-09-07T04:55:20.199427
2019-11-30T15:50:04
2019-11-30T15:50:04
94,420,941
0
1
null
null
null
null
UTF-8
Python
false
false
431
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-10-02 14:40 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('accounts', '0016_auto_20171002_1433'), ] operations = [ migrations.RenameField( ...
[ "lasisi28@gmail.com" ]
lasisi28@gmail.com
03db4691f1cbbb571cc25245e3cd46b91e05e54e
fd229cdbf5210ef7d1cee578b646c37db02a6489
/profiles/admin.py
63cd39eb6407f5507e24171239011bc8920a98fe
[ "Apache-2.0" ]
permissive
theprogrammingking/Zooming-cls
77cd3e372aaebc6165d2df5ebec036d6d7656ec1
a9022ec62af6073863dab6711f2a7c4e524eccc9
refs/heads/main
2023-06-25T07:47:21.600141
2021-07-23T15:14:50
2021-07-23T15:14:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
189
py
from django.contrib import admin from .models import User, Teacher, Student # Register your models here. admin.site.register(User) admin.site.register(Teacher) admin.site.register(Student)
[ "farsin310yeariha9701@gmail.com" ]
farsin310yeariha9701@gmail.com
5d995821aa2c55993a855ef342a661025e15cef4
1f39c4c049d696e891b6659fe7d62248a8f58937
/modules/rpc/user_pb2_grpc.py
7a6aacbe4633fd9beb3113c03ddb56f64def53f6
[]
no_license
vousmeevoyez/raspberrypi-audio-assisted-vote
cb5086bd738fc659fe6197c7dd591251681f4e6b
c75a171e2c842902857b7772febedf31bfd3b91f
refs/heads/master
2022-12-15T22:00:30.042590
2021-07-06T08:25:55
2021-07-06T08:25:55
173,443,255
1
0
null
2022-12-08T04:51:23
2019-03-02T12:07:57
Python
UTF-8
Python
false
false
5,750
py
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc import rpc.user_pb2 as user__pb2 class UserStub(object): """user service definition """ def __init__(self, channel): """Constructor. Args: channel: A grpc.Channel. """ self.CreateUser = channel.unary_unary...
[ "kelvindsmn@gmail.com" ]
kelvindsmn@gmail.com
ed5f67b19cebac256d79478b179721690388ca51
30f204095627c57d1d353a8f66ab4cf996e7680c
/src/teeb/cueparser.py
1df375beb8e32cbe8f552b7619f48879d7444c04
[ "BSD-3-Clause" ]
permissive
kowalcj0/teeb
6d8b8988567b96a41955af7f90a6a4d44e0ac601
15b87d9857510890fbe417e4de473b8b685b3319
refs/heads/main
2023-03-27T10:11:13.036462
2021-03-30T09:02:47
2021-03-30T09:02:47
343,241,700
0
0
null
null
null
null
UTF-8
Python
false
false
6,150
py
# -*- coding: utf-8 -*- """ Modified version of a Cue Sheet parser from idlesign. https://github.com/idlesign/deflacue/blob/master/deflacue/deflacue.py Improvements: * turned get_global_context & context_tracks into .meta & .tracks properties * auto text encoding detection with chardet * support Cue Sheets...
[ "kowalczykjanusz@gmail.com" ]
kowalczykjanusz@gmail.com
9fef1bbe401b2f496d35fac0516a2bf195d2abda
4e2065e9b82fbef7752c8312ce61ac98835bd6f7
/aggregator.py
7eff95a83110bdb294149ad713bdaac0da90e3ef
[]
no_license
rafeyhusain/traderepulic
ca4fa1ec0765753a9b6c58fb0e617b21b77dd496
4208853a6226590d2c3000621b5fcb204076ca64
refs/heads/master
2023-07-15T10:11:43.946306
2021-08-26T18:45:17
2021-08-26T18:45:17
398,842,975
0
0
null
null
null
null
UTF-8
Python
false
false
1,761
py
from datetime import datetime from threading import Thread from db import Db from candlestick import CandleStick from instrument_stream import InstrumentStream from candlestick import CandleStick from popular_instrument_list import PopularInstrumentList class Aggregator(): def __init__(self): self.db = Db() self...
[ "=" ]
=
168c77c1add6d19aa490869bcfec9cbaa46cc0f3
a752d5acba461d6741ba1c3818befc53e3f76aab
/chaospy/distributions/operators/addition.py
55fe4db393f9a874b1fd3ae0ddbb9a004c6c8588
[ "MIT" ]
permissive
zhucer2003/chaospy
4b17ef027dadfea7bbabb0c3b00e647295e0da63
0754648fffa0fe811b70acb4ee5281c522df3366
refs/heads/master
2020-04-27T15:50:45.809285
2019-02-20T18:10:16
2019-02-20T18:10:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,251
py
""" Addition operator. Example usage ------------- Distribution and a constant:: >>> distribution = chaospy.Normal(0, 1) + 10 >>> print(distribution) Add(Normal(mu=0, sigma=1), 10) >>> print(numpy.around(distribution.sample(5), 4)) [10.395 8.7997 11.6476 9.9553 11.1382] >>> print(numpy.aro...
[ "jonathf@gmail.com" ]
jonathf@gmail.com
f3948e39105d86dd94ab53625feca7a49ea40f30
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startQiskit_noisy1051.py
6ab5b23bf35673ca9055ead3f9e2084b0b628c97
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
4,094
py
# qubit number=5 # total number=47 import cirq import qiskit from qiskit.providers.aer import QasmSimulator from qiskit.test.mock import FakeVigo from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import ...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
6299ff563b18713bde80abe20d81c929bcc551c2
f2be5c366e927b540dd574f690eb6c93eecb29ee
/68.py
fd65e631695ff813b58cc1f5024b0b7eee3dd344
[]
no_license
AishwaryaKaminiRajendran/aishu1
1a474e4017f943078b96d5179fa90adb4f918b3e
5d61c39a5b108872a3f578d36ed87c388f66762c
refs/heads/master
2020-04-15T17:17:31.272385
2019-05-20T09:08:49
2019-05-20T09:08:49
164,868,794
0
0
null
null
null
null
UTF-8
Python
false
false
59
py
k=int(input()) if k%7==0: print("yes") else: print("no")
[ "noreply@github.com" ]
AishwaryaKaminiRajendran.noreply@github.com
969d095860d88711b9a5b7511d5b5c3d0646e075
6dcf472443e9a97a15c0f22b5ad1d643f2fa7010
/softwarecollections/scls/management/commands/sclprovides.py
76d7bfeaed84ae8154a0d466b96c6e23b9d35054
[ "BSD-3-Clause" ]
permissive
cwt137/softwarecollections
37fba0e6c2379082c617c39b2011bf98f0bb7c91
4d42b032850cc00d184fb4f844c391fcb7b640c8
refs/heads/master
2020-12-03T00:02:08.847904
2015-10-02T10:53:14
2015-10-02T10:53:14
45,796,976
0
0
null
2015-11-08T20:12:26
2015-11-08T20:12:24
null
UTF-8
Python
false
false
2,203
py
import logging import os from optparse import make_option from django.core.management.base import CommandError from multiprocessing import Pool, cpu_count from softwarecollections.management.commands import LoggingBaseCommand from softwarecollections.scls.models import SoftwareCollection logger = logging.getLogge...
[ "jdornak@redhat.com" ]
jdornak@redhat.com
eaddc4162ffd060aff1e949c3b6ad09bce5d7ba2
bc1940006a2badde9ee9cdbf572994d51288e177
/horizon_contrib/templatetags/mathfilters.py
dfcc5e679bc23f37d2249f43bec7dfcc3e0d9383
[ "BSD-2-Clause", "Apache-2.0" ]
permissive
michaelkuty/horizon-contrib
765bdf0bd3456d6fc74985190951b8343c4ebd3a
0179d2372c21e2ef37d5ffefc3cc65421c8294e0
refs/heads/master
2020-04-03T23:31:41.761151
2017-10-02T20:16:37
2017-10-02T20:16:37
31,061,642
15
7
null
2016-08-17T19:14:10
2015-02-20T11:14:59
Python
UTF-8
Python
false
false
2,748
py
# -*- coding: utf-8 -*- """ source code https://github.com/dbrgn/django-mathfilters """ import logging try: from cdecimal import Decimal except ImportError: from decimal import Decimal from django.template import Library register = Library() logger = logging.getLogger(__name__) def valid_numeric(arg): ...
[ "6du1ro.n@gmail.com" ]
6du1ro.n@gmail.com
e25a0915de203fe5b1a2d09bd204eb43b0735f0f
7995342e04c00fdcd6a1a833c99562cbc5e2051c
/python3_tutorials_莫凡/33tkinter.py
4b03d7408df9c995334ac63c01be49130181f47b
[]
no_license
HuangCongQing/Python
59b6b212054a73555f19eb9bcec02781fe4d4d2f
d02fcf422f0a080fc62e0f5ff8ce33c31051e614
refs/heads/master
2023-05-25T00:12:19.687669
2023-05-22T10:30:15
2023-05-22T10:30:15
92,121,796
17
7
null
2017-08-14T18:53:47
2017-05-23T02:49:43
Python
UTF-8
Python
false
false
32
py
# GUI 界面 # 见其他课程
[ "1756260160@qq.com" ]
1756260160@qq.com
a207ecca7d4d3ccd0906e8a95450c0d222346404
9a21a792c26eacf1132319f849e6a45e11c05f88
/emmre_main/migrations/0001_initial.py
be495d24ce70213e1750c6c39b1b3e86589d4190
[]
no_license
HarmsA/emmre-site
bd1b6efd1aff34f2c7da1c470eb411ecfbe20049
6f7dfbe76fe056b3607308ea14a24cd208eb0bdd
refs/heads/main
2023-06-25T05:37:48.551795
2021-07-25T20:45:07
2021-07-25T20:45:07
380,585,095
0
0
null
null
null
null
UTF-8
Python
false
false
6,483
py
# Generated by Django 3.1.7 on 2021-06-03 11:17 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('media', '0001_initial'), ] operations = [ migrations.CreateModel( name='Blo...
[ "harms2a@gmail.com" ]
harms2a@gmail.com
d0aca6a6e541b786da98ce8519a613aded807392
bc441bb06b8948288f110af63feda4e798f30225
/tool_sdk/model/collector_service/alias_metric_with_one_original_metric_pb2.pyi
1b56fdf9969f98236c3c3593fc10f4b5a59e20d5
[ "Apache-2.0" ]
permissive
easyopsapis/easyops-api-python
23204f8846a332c30f5f3ff627bf220940137b6b
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
refs/heads/master
2020-06-26T23:38:27.308803
2020-06-16T07:25:41
2020-06-16T07:25:41
199,773,131
5
0
null
null
null
null
UTF-8
Python
false
false
4,724
pyi
# @generated by generate_proto_mypy_stubs.py. Do not edit! import sys from google.protobuf.descriptor import ( Descriptor as google___protobuf___descriptor___Descriptor, ) from google.protobuf.internal.containers import ( RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC...
[ "service@easyops.cn" ]
service@easyops.cn
f284e6ea268f4a8be66bf63cb39f2aeb0514e5fa
ee38134ee33fd6be833d3f8175102533fb81ebce
/python/GafferArnoldTest/IECoreArnoldPreviewTest/RendererTest.py
bf378bffe4870e0d2959b077b7740aabaa1e9ee2
[ "BSD-3-Clause" ]
permissive
sonictk/gaffer
99b779499f8c5d96e505f1c2dbc923b51d8b93d1
66b0eff781bfb3a0fe5014b00b4dd4fe88523fb9
refs/heads/master
2020-12-31T06:08:56.382808
2016-07-12T16:01:52
2016-07-12T16:01:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
21,392
py
########################################################################## # # Copyright (c) 2016, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistrib...
[ "thehaddonyoof@gmail.com" ]
thehaddonyoof@gmail.com
0ec99b7e25f1aea82170637065c8cb7e0e883258
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/ml/azure-ai-ml/azure/ai/ml/entities/_deployment/job_definition.py
9fad53ce97b0ae19ff537546c9bd42f4f6f2e060
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later", "LicenseRef-scancode-python-cwi", "PSF-2.0", "LGPL-2.0-or-later", "GPL-3.0-or-later", "GPL-1.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "Python-2.0", "MPL-2.0", "LicenseRef-scancode-other-copyleft", ...
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
1,892
py
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- from typing import Any, Dict, Optional, Union from azure.ai.ml._schema._deployment.batch.job_definition_schema import JobDefinitionSchema ...
[ "noreply@github.com" ]
Azure.noreply@github.com
652255bc06741c1dde6fc435c1144e21b0eb62ee
d494ce66944409676678badb0a27573ff1cb3260
/seaborn/timeseries.py
fc0c2bac3281fe86c2e020a55249a095339ba9c2
[ "BSD-3-Clause" ]
permissive
roderikk/seaborn
25db1526bfaa6d5ef7d6887ce84fefa3be3cccc1
207d15e429a04785e65dcdc357a8a9445a62643a
refs/heads/master
2021-01-21T02:56:50.137632
2014-02-02T03:13:22
2014-02-02T03:13:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,105
py
"""Timeseries plotting functions.""" from __future__ import division import numpy as np import pandas as pd from scipy import stats, interpolate import matplotlib as mpl import matplotlib.pyplot as plt from six import string_types import moss from seaborn.utils import color_palette def tsplot(data, time=None, unit=N...
[ "mwaskom@stanford.edu" ]
mwaskom@stanford.edu
b32d706e853d710e66ee90266ffdaeebefb5401c
3c5657492c401994eaaebcf16c2b13a5ebc0efd8
/python2/lib/python2.7/site-packages/lmoments/_lmrxxx.py
d3062f3b2d7dec84db08185fe984580259e3a40d
[ "MIT" ]
permissive
peggypan0411/CREST-iMAP
0b01d1123f7be7806971ead4835ea2e7f61f81a9
b2d80e2c3eb3fb575c678915fd89a96bdb30dbde
refs/heads/master
2023-07-16T08:11:26.736833
2021-04-14T21:44:02
2021-04-14T21:44:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
19,615
py
import scipy as _sp import scipy.special as _spsp import scipy.stats as _spst import math as _math import sys as _sys from _otherfunct import is_numeric as _is_numeric ############################################################# #LMR FUNCTIONS ############################################################# ...
[ "chrimerss@gmail.com" ]
chrimerss@gmail.com
988643f8117618100b3a58f096ab3df45fba6f9e
853d7901c4bdc7db8e655092c9939741b4f86161
/221.py
926611e631a1b3ce6bec44b88f984c5b4c51e1f9
[ "MIT" ]
permissive
wilbertgeng/LeetCode_exercise
904d6a3f91d94f451b40f3760131aefaa8584b3b
f00c08e0d28ffa88d61d4262c6d1f49f1fa91ebc
refs/heads/main
2023-03-16T01:25:00.514922
2021-03-15T06:12:59
2021-03-15T06:12:59
347,856,240
0
0
null
null
null
null
UTF-8
Python
false
false
1,481
py
"""Maximal Square Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area. Example: Input: 1 0 1 0 0 1 0 1 1 1 1 1 1 1 1 1 0 0 1 0 Output: 4 """ class Solution(object): def maximalSquare(self, matrix): """ :type matrix: List[List[str]] ...
[ "wilbertgeng@gmail.com" ]
wilbertgeng@gmail.com
1034460fda18a943db616336a42098fd88a8bf04
013499ff51d58ef30ef731ee25863e87b632501a
/QIAO/多线程/19.py
cbcff78d06f6d7da887857d40cd2fdeec1471b8c
[]
no_license
joevers/python
f1aed08d6a23fe8f87cc93447576244739ef1a96
bdba4d5678b91e12896110782cb99fcfbe0dfe68
refs/heads/master
2020-03-23T16:16:26.674091
2018-08-25T08:48:57
2018-08-25T08:48:57
141,801,657
0
0
null
null
null
null
UTF-8
Python
false
false
320
py
import multiprocessing from time import ctime, sleep def clock(interval): while True: print("The time is %s"%ctime()) sleep(interval) if __name__ == "__main__": p = multiprocessing.Process(target=clock, args=(5, )) p.start() while True: print("sleeping....") sleep(1)
[ "15632681735@163.com" ]
15632681735@163.com
a3e1cfae6612602e14d1e098421135b38d30ff7f
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/138/usersdata/189/52804/submittedfiles/volumeTV.py
43622b396db631687db4bcb77e55953d9e6df0a1
[]
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
187
py
n=int(input('Volume inicial:')) m=int(input('Mudança de volume:')) for i in range(1,m+1,1): int(input('Alteração do volume:')) t=t while t%=t: t=t+t v=n+t print(v)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
f09ed7f092ae881a6fc3d9c014dc1388a6bdca82
079c07c5d97eb60d36269e27309e84b25ea0aaeb
/guidehero-backend/tests/api/ask/test_api_error_handling.py
481c0985e4963e6fa66921c201616b662ec41e02
[]
no_license
itdream-dev/python
3aa44329673f05e2a86e1cba56cb88101c777233
eda81b802b99f45933bdf0d22b508837cfa538f0
refs/heads/master
2023-03-05T12:27:42.776870
2020-05-11T15:54:45
2020-05-11T15:54:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,212
py
import json import mock from ..base import ApiBaseTestCase class ErrorHandlingTestCase(ApiBaseTestCase): def __init__(self, *args, **kwargs): super(ErrorHandlingTestCase, self).__init__(*args, **kwargs) self.url = '/api/v1/deck/test_error_handling' def setUp(self): super(ErrorHandling...
[ "skyclean906@gmail.com" ]
skyclean906@gmail.com
49d09fe70702d94870b5e1a7e29b26b4ce8b4f13
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2920/60593/241691.py
68f00329d097e8366061437b79cec23672db4671
[]
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
313
py
n,k=map(int,input().split()) a=list(map(int,input().split())) be=-1 ans=0 for i in range(n): if(be==-1): be=a[i] a[i]=0 else: a[i]-=be be+=a[i] ans+=a[i] a.sort() for i in range(n-1,-1,-1): if(k==1): break else: k-=1 ans-=a[i] print(ans)
[ "1069583789@qq.com" ]
1069583789@qq.com
d181b8dd47a4733de7d296ab726b0b0f0418047f
5ace97f6bf2aeb661b4c544e1cc183684afe8413
/euler/102.py
80ff2e4e3e5528b1d6073544f6323e99033d40ac
[]
no_license
crazymerlyn/code
1aada845b70486ef45408ff67bd722d910c58dd6
3deed9c8a1393c160866f33d5efc6dd3d1a4c469
refs/heads/master
2022-07-26T21:13:23.588366
2022-06-11T15:35:13
2022-06-11T15:35:13
97,077,698
0
0
null
null
null
null
UTF-8
Python
false
false
580
py
def sign(p1, p2, p3): return (p1[0] - p3[0]) * (p2[1] - p3[1]) - (p2[0] - p3[0]) * (p1[1] - p3[1]) def origin_in_triangle(p1, p2, p3): origin = (0, 0) b1 = sign(origin, p1, p2) < 0.0 b2 = sign(origin, p2, p3) < 0.0 b3 = sign(origin, p3, p1) < 0.0 return b1 == b2 and b2 == b3 res = 0 with open...
[ "crazy.d.merlyn@gmail.com" ]
crazy.d.merlyn@gmail.com
3f4255d72ef254d63175051009249d7082949c26
a7f16c95f973905e880ad4dc277fbba890486654
/wildlifecompliance/migrations/0352_legalcaserunningsheetartifacts.py
ac0b07651922083d33c540b133048da3fba6ad00
[ "Apache-2.0" ]
permissive
dbca-wa/wildlifecompliance
9e98e9c093aeb25dbb7ff8d107be47e29bcd05e1
cb12ad9ea1171f10b5297cdb7e1eb6ea484e633d
refs/heads/master
2023-08-08T14:37:05.824428
2023-07-31T02:57:23
2023-07-31T02:57:23
232,276,030
1
17
NOASSERTION
2023-07-31T02:57:24
2020-01-07T08:12:53
Python
UTF-8
Python
false
false
1,078
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2019-12-19 09:50 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('wildlifecompliance', '0351_remove_artifact_custodian'), ...
[ "brendan.blackford@dbca.wa.gov.au" ]
brendan.blackford@dbca.wa.gov.au
94fc0c35aa647649f04e4fe85962f152c050f60d
747f759311d404af31c0f80029e88098193f6269
/extra-addons/stock_transport/__init__.py
2d896feb56956062a9ac770ff0e915fcbb5644a5
[]
no_license
sgeerish/sirr_production
9b0d0f7804a928c0c582ddb4ccb7fcc084469a18
1081f3a5ff8864a31b2dcd89406fac076a908e78
refs/heads/master
2020-05-19T07:21:37.047958
2013-09-15T13:03:36
2013-09-15T13:03:36
9,648,444
0
1
null
null
null
null
UTF-8
Python
false
false
22
py
import stock_transport
[ "geerish@omerp.net" ]
geerish@omerp.net
b60f225a41d1d09735a9777f5c3b256046bf35ce
d304c27c095a7e897bb9c02e78d34bed4398c8fc
/alex/components/dm/gp_sarsa/kernel_functions.py
15291ce725200762d77fe2510294db39fdf28a9f
[ "Apache-2.0" ]
permissive
thanhlct/alex
876630e7cb2a6b1affce5bb646e6bd0489305393
9fabefb62572e96d14654d3ec0c8861daf51ffa7
refs/heads/master
2020-04-05T18:29:37.300215
2016-05-19T08:51:21
2016-05-19T08:51:21
45,947,050
0
0
null
2015-11-10T23:23:27
2015-11-10T23:23:27
null
UTF-8
Python
false
false
730
py
''' Kernel Functions ''' import numpy as np from distance_measures import squared_euclidean_distance def polyminal_kernel_fun(a, b, sigma=1, p=1): '''Poliminal Kernel, default sigma=1, p=1 is linear kernel''' return float(np.power(np.dot(a, b) + pow(sigma,2), p)) def gaussian_kernel_fun(a, b, p=4,...
[ "thanhlct@gmail.com" ]
thanhlct@gmail.com
93103be59e0f6951af85b91cab1942adc206b1b1
343413e76c09d2bd3d009f382d9dcd19c984d58f
/.history/main_20201229171312.py
cdf89019dc8f95d1e6f70930de869f8caca9802d
[]
no_license
rozbeh1212/cipher
7b81e640501639cefb0fe6bf100647dd2602291e
abdebdd7d1e155ffab78ce38be8bf28074366c42
refs/heads/master
2023-02-04T13:44:36.892470
2020-12-29T14:44:10
2020-12-29T14:44:10
325,314,022
0
0
null
null
null
null
UTF-8
Python
false
false
1,338
py
alphabet = [ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' ] direction = input("Type 'encod...
[ "eb.mehrdad@gmail.com" ]
eb.mehrdad@gmail.com
fcb2baf0cfdff391ed9198bd3a1e7d55e15d865b
8f6f27917c1d16856656c62aeed3909f17711144
/2020/05/puzzle2.py
472c1e59c6c2676d71519b8036c2391c898fec24
[]
no_license
naydichev/advent-of-code-solutions
1f2050e6d237bf664dd79925af8656f821080fda
d9f1bc6e95e077d48bd0b1b50e8f5b0ae137ca6a
refs/heads/master
2022-12-26T15:00:09.429622
2022-12-21T08:51:42
2022-12-21T08:51:42
159,928,226
0
0
null
null
null
null
UTF-8
Python
false
false
809
py
#!/usr/bin/env python3 from collections import namedtuple RowAndColumn = namedtuple("RowAndColumn", ["row", "column"]) def main(): with open("seats.pi") as f: seats = parse(f.readlines()) sid = lambda seat: seat.row * 8 + seat.column sids = sorted([sid(seat) for seat in seats]) prev = sids...
[ "git@julian.appwarden.com" ]
git@julian.appwarden.com
0b884c0e6c0368363798fd9defe2281b67c14b07
665a90f568b911706ff3c633e5dd9ec2233aee7e
/OOP/inheritance/need_for_speed/sport_car.py
e34804a2588ca892be29c6e92447da3a014758c9
[]
no_license
branchev/SoftUni
5e33546f659e41619c6ae5c1899ae7b62332edf3
f0f67e929ce9091232f899817b7ac10e649de7ed
refs/heads/main
2023-04-05T13:56:29.438986
2021-04-21T06:04:19
2021-04-21T06:04:19
324,530,244
0
0
null
2021-01-06T20:40:04
2020-12-26T10:22:25
Python
UTF-8
Python
false
false
104
py
from inheritance.need_for_speed.car import Car class SportCar(Car): DEFAULT_FUEL_CONSUMPTION = 10
[ "ranchev.boris@abv.bg" ]
ranchev.boris@abv.bg
acf9bb5919358446d4799248b8f7ab248a001e90
b72e0db2df66a75f4fd830e54f1eea9ec4903539
/machine learning/reinforcement learning/3/algorithm.py
267725e27b5524c55f90734a833104c931beb73e
[]
no_license
im-iron-man/computational-advertising
dd5a07eff376fb1f30441a72bc73ba4a28953664
ddfb00bc8d8622048fd2e08fa0efd694952ff96c
refs/heads/master
2021-01-23T16:19:45.372022
2017-11-26T13:15:17
2017-11-26T13:15:17
93,293,208
0
0
null
null
null
null
UTF-8
Python
false
false
1,401
py
# -*- coding: utf-8 -*- import numpy as np import pandas as pd class QLearn(object): def __init__(self, actions, learning_rate=0.01, reward_decay=0.9, e_greedy=0.9): self.actions = actions self.lr = learning_rate self.gamma = reward_decay self.epsilon = e_greedy self.q_tabl...
[ "xg.gao@tianrang-inc.com" ]
xg.gao@tianrang-inc.com
268444194aac2a7ca46bef4062e630c98cdd8d25
c068de5167edc8d1d9f0239d89939a6b3579426d
/mysite/settings.py
741e1d6b30e705738f1ce143f42bfb980c8f3cea
[]
no_license
NikolayBorovenskiy/djangoGirls
0d78b50a5070978ff670c9ed3d515028bade6eea
426564fbc6d87ecaa239617222b428ccddab39af
refs/heads/master
2016-08-12T16:01:53.098130
2015-10-15T22:47:05
2015-10-15T22:47:05
44,018,033
0
0
null
null
null
null
UTF-8
Python
false
false
2,703
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.8. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build paths i...
[ "nikolay.borovenskiy@gmail.com" ]
nikolay.borovenskiy@gmail.com
640441a63e51cd1994848b9676fae497ebf14c15
53784d3746eccb6d8fca540be9087a12f3713d1c
/res/packages/scripts/scripts/client/WWISE.py
10c40d1b8fcf3c762d139665fe2c81dff33bca73
[]
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
471
py
# 2017.02.03 21:46:48 Střední Evropa (běžný čas) # Embedded file name: scripts/client/WWISE.py enabled = True try: from _WWISE import * import _WWISE except ImportError: print 'WARNING: WWISE support is not enabled.' enabled = False # okay decompyling c:\Users\PC\wotsources\files\originals\res\packages\...
[ "info@webium.sk" ]
info@webium.sk
e0b0f922f35c9408e3f78d972c7dbf62e401e3f0
a71319f9a9c02dab39f1f9297c868877801ad11a
/digoie/core/ml/dataset/feature.py
30096997386223daa6429ee9482cbc405c1d23c4
[ "MIT" ]
permissive
ZwEin27/digoie-annotation
8918e6f798a0ea3dfb2c2102c518226b4d16b33f
edf01770e26a78267045bba33a54aef3376fa63f
refs/heads/master
2021-01-10T14:41:39.359545
2016-02-18T23:21:20
2016-02-18T23:21:20
52,044,181
2
0
null
null
null
null
UTF-8
Python
false
false
5,895
py
import os import re import math from digoie.conf.storage import __elastic_search_dir__, __reverb_input_dir__, REVERB_INPUT_EXT from digoie.core.files.names import load_names from digoie.conf.global_settings import TARGET_PERSON_NAME, TARGET_PHONE_NUMBER def extract(raw, target=TARGET_PERSON_NAME): print 'extr...
[ "zwein27@gmail.com" ]
zwein27@gmail.com
51f49f3f7fd888b89deb92d460a57dac7c1f5353
accdde552cda99d0fa328441bebdc7ce78b74f36
/venv/Session7.py
e6c15077cd29083232c1ae6ea93e4a5fb9f25196
[]
no_license
navnoorsingh13/GW2019PA2
056f0b3d293d8a6f3ec149c8de01c96f0d46f826
b94b2a5e1c6a760a5ada87e3f7a3117da552387d
refs/heads/master
2022-01-17T13:20:57.446539
2019-07-19T10:53:37
2019-07-19T10:53:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
136
py
number = 10 def show(): global number number = 20 print(">>1. number is:",number) show() print(">>2. number is:",number)
[ "er.ishant@gmail.com" ]
er.ishant@gmail.com
59de28ad2daa78508f5e67b35a45afcb54f07d74
59fe83bda7189225a57c4298cebd5469b29da181
/tests/test_mailgun_backend.py
47bb03adaf3212810052073cc7339e872b1a8aa5
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
SparkPost/django-anymail
a08b67675d81fa991b9aac3c0987cd10abcdb415
a26d284772a5b9808567dfce5b800a9d62fc6831
refs/heads/master
2021-01-14T08:56:00.714438
2016-04-30T01:14:26
2016-04-30T01:16:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
24,849
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from datetime import date, datetime from email.mime.base import MIMEBase from email.mime.image import MIMEImage from django.core import mail from django.core.exceptions import ImproperlyConfigured from django.test import SimpleTestCase from django.test....
[ "medmunds@gmail.com" ]
medmunds@gmail.com
f3bacacda163a46aabb49c8abb765d5168491574
2432996ac1615cd36d61f0feeff8a359d2b438d8
/env/lib/python3.8/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-reportlab.pdfbase._fontdata.py
d9e79426b217aab0478f120f5449e54b4088d082
[ "Apache-2.0", "GPL-1.0-or-later", "GPL-2.0-or-later", "GPL-2.0-only" ]
permissive
Parveshdhull/AutoTyper
dd65d53ece7c13fbc1ead7ce372947483e05e2e3
7fabb30e15b770d790b69c2e4eaf9bbf5a4d180c
refs/heads/main
2023-05-08T14:10:35.404160
2023-05-07T20:43:15
2023-05-07T20:43:15
315,415,751
26
18
Apache-2.0
2023-05-07T20:43:16
2020-11-23T19:13:05
Python
UTF-8
Python
false
false
745
py
# ------------------------------------------------------------------ # Copyright (c) 2020 PyInstaller Development Team. # # This file is distributed under the terms of the GNU General Public # License (version 2.0 or later). # # The full license is available in LICENSE.GPL.txt, distributed with # this software. # # SPD...
[ "parvesh.dhullmonu@gmail.com" ]
parvesh.dhullmonu@gmail.com
f1e880fc63ac066de93e49054e4d7f08359dbb06
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_toughening.py
c983d2ee47fc77b312f39ae2977c09f096e8aeda
[ "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
249
py
from xai.brain.wordbase.verbs._toughen import _TOUGHEN #calss header class _TOUGHENING(_TOUGHEN, ): def __init__(self,): _TOUGHEN.__init__(self) self.name = "TOUGHENING" self.specie = 'verbs' self.basic = "toughen" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
2bceec8cbb255eb84c3849944ae0c30b9010992b
c54f5a7cf6de3ed02d2e02cf867470ea48bd9258
/pyobjc/PyOpenGL-2.0.2.01/src/shadow/GL.ATI.vertex_streams.0001.py
58dc1a5bad643de6d0c8fef9f6c7157075214dfa
[]
no_license
orestis/pyobjc
01ad0e731fbbe0413c2f5ac2f3e91016749146c6
c30bf50ba29cb562d530e71a9d6c3d8ad75aa230
refs/heads/master
2021-01-22T06:54:35.401551
2009-09-01T09:24:47
2009-09-01T09:24:47
16,895
8
5
null
null
null
null
UTF-8
Python
false
false
4,867
py
# This file was created automatically by SWIG. # Don't modify this file, modify the SWIG interface instead. # This file is compatible with both classic and new-style classes. import _vertex_streams def _swig_setattr_nondynamic(self,class_type,name,value,static=1): if (name == "this"): if isinstance(value,...
[ "ronaldoussoren@f55f28a5-9edb-0310-a011-a803cfcd5d25" ]
ronaldoussoren@f55f28a5-9edb-0310-a011-a803cfcd5d25
18574b69a2044328c9505311ec2bda6dfcf45960
9789aaa94e4a321fed2a1f624ef180d938f1fe56
/src/django/contrib/contenttypes/models.py
11bc3572bd50e7d73af3b04603cb820006ecb7ee
[]
no_license
fantascy/snsanalytics
61ff6b8f384f0bd4be8f89a2a19101ad2cf1bc77
927f186c7f5a1d534e0ff7ce7aff46a0c1a36c51
refs/heads/master
2021-01-13T14:18:05.684839
2016-11-06T07:43:35
2016-11-06T07:43:35
72,827,547
0
0
null
null
null
null
UTF-8
Python
false
false
3,426
py
from django.db import models from django.utils.translation import ugettext_lazy as _ from django.utils.encoding import smart_unicode from google.appengine.ext import db from ragendja.dbutils import get_object, FakeModel class ContentTypeManager(models.Manager): # Cache to avoid re-looking up ContentType objects a...
[ "cong@snsanalytics.com" ]
cong@snsanalytics.com
a71febabc94c8d726a5c74a29a621dbce090ef33
467a537ab5e2605e61c3b9ac1d1804f614403776
/hooks/pre_gen_project.py
f8c1e0a06aabb12eddebdac6d2facb20e1104c05
[ "MIT" ]
permissive
patdaburu/cookiecutter-task
8ef3590d9b2ca1dca317ad48e198029aa49c1ad2
374e5b15f0c2b841c1ed1b37cdd3146b932a7db1
refs/heads/master
2020-03-18T16:58:19.722293
2018-06-02T13:05:30
2018-06-02T13:05:30
134,997,061
0
0
null
null
null
null
UTF-8
Python
false
false
531
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ .. currentmodule:: pre_gen_project .. moduleauthor:: Pat Daburu <pat@daburu.net> This is the script that runs before template generation. """ import re import sys from cookiecutter.main import cookiecutter MODULE_REGEX = r'^[_a-zA-Z][_a-zA-Z0-9]+$' module_name = '{{...
[ "pat@daburu.net" ]
pat@daburu.net
f02b29ef6b2ca44dc6fdd02f69f310d9f0e9597d
96f8d1f282f5d9a526af3a4c50c97b758f7e1357
/pe_fit
81e49b5b74d475aa220f064b8f93ce36e81a8e4a
[]
no_license
ccme-tmc/tmckit
4b80bcc4991d1448b02cfdef5dbd077c653624d0
54054434a6da59160860478ee50f3118e20e2d16
refs/heads/master
2021-07-02T01:11:44.162474
2019-10-29T01:04:33
2019-10-29T01:04:33
182,224,486
12
3
null
null
null
null
UTF-8
Python
false
false
10,691
#!/usr/bin/env python import scipy from optparse import OptionParser import sys,subprocess,copy,os import math import time import multiprocessing #Warning : any process called by multiprocessing used pickle to transfer paramters, so we must avoid ( at least be cautious ) to use functions that accept class instance as ...
[ "stevezhang@pku.edu.cn" ]
stevezhang@pku.edu.cn
2ba1b582cb7beabe41381e1065b655c7d0abb156
34dabcb6915f00a065ca94ec863c985407fbf4d5
/adv_attacks.py
49d66ea128e6b06a48ddbdf0a2acab8c63a2a55d
[]
no_license
gmum/adversarial_examples_ae_layers
4f61b2208173d5447568ca7076736200df8bc399
cfa67f54d39d4364a6506ff3de1f27c0b37230dd
refs/heads/master
2022-11-05T08:44:53.188891
2020-06-21T21:26:57
2020-06-21T21:29:37
237,484,162
2
0
null
null
null
null
UTF-8
Python
false
false
402
py
import torch import torch.nn.functional as F def pgd_linf(model, X, y, epsilon, alpha, num_iter): delta = torch.zeros_like(X, requires_grad=True) for t in range(num_iter): loss = F.cross_entropy(model(X + delta), y) loss.backward() delta.data = (delta + alpha * delta.grad.detach().sign...
[ "bartwojc@gmail.com" ]
bartwojc@gmail.com
6b5ac8a4f0639335b5825bdad41923fb7792c435
2f6c9683c2687f7b50733785a629202842a7d4d1
/cristianoronaldoyopmailcom_339/wsgi.py
7542a707b61c3822986fcf712a2af64f2bf19d61
[]
no_license
payush/cristianoronaldoyopmailcom-339
22769d4715dc4c7218234fa4408edf09e73adca2
264b6ed5fd6bcabff49531da178f06a67506b5a2
refs/heads/master
2020-03-23T19:46:51.388573
2018-07-23T10:56:29
2018-07-23T10:56:29
142,001,914
0
0
null
null
null
null
UTF-8
Python
false
false
438
py
""" WSGI config for cristianoronaldoyopmailcom_339 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ....
[ "ayushpuroheet@gmail.com" ]
ayushpuroheet@gmail.com
7999892101e00dd195bfdc642630a7b5864d3da6
cea1350c2920a6bc17a635f638616aaec15c08f2
/tests/unit/migrations.py
640735e2f2493ffa6a6400ca3d63137900fe56c8
[ "Apache-2.0" ]
permissive
gsilvis/haas
178e0912c6c0d6077c932263cdc9cd834155fdf1
9d8e3b9b1919e7bcc53076f4473d227d3a39efc4
refs/heads/master
2021-01-20T23:37:03.306689
2016-09-27T19:33:30
2016-09-27T19:33:30
21,050,422
0
0
null
null
null
null
UTF-8
Python
false
false
6,488
py
"""Testing for migration scripts. Only postgres is supported; if any other database backend is configured, these tests will be skipped. The general approach is as follows: 1. Load a database from saved output of the `pg_dump` command. 2. Run the migration scripts to bring it up to date. 3. Get a dump of ...
[ "ian@zenhack.net" ]
ian@zenhack.net
bf11a536a5b29157812454a1cb9753ecee446803
d8d0de926ac1a1de1abfca06aaed843d59f3674a
/python/algorithm/sort/binary_search.py
e93aa8f734460f3f5416f310b63985a03a95a8c1
[]
no_license
nickest14/Leetcode-python
75b4919d1ac45c6a7b008e6336db38a06e337bc7
435deadfe2b3936dd7848a384d2d9a364352268c
refs/heads/master
2023-08-31T07:23:14.595745
2023-08-30T13:52:10
2023-08-30T13:52:10
188,695,066
0
0
null
2019-07-20T12:29:09
2019-05-26T14:43:12
Python
UTF-8
Python
false
false
383
py
def binary_search(nums: list, target: int): start, end = 0, len(nums) - 1 while start <= end: mid = int((start + end) / 2) if target == nums[mid]: return mid elif target > nums[mid]: start = mid + 1 else: end = mid - 1 return None nums =...
[ "nickest14@gmail.com" ]
nickest14@gmail.com
d46307f83fbdf0142d10965ed58ceb53281df501
d3b829dc03641fba2a57c816891a021ab7d5b505
/fluent_contents/plugins/code/backend.py
3f59f41f0289c8e6d05442de76579a0cdb0a590a
[ "Apache-2.0" ]
permissive
django-fluent/django-fluent-contents
7af8c0782f1e99832cae6c4f1ed3d99e72097199
5577567303d29b56fd48128c22c7dc5d8b2c7476
refs/heads/master
2023-02-21T01:44:34.935089
2021-11-17T08:55:16
2021-11-17T08:58:26
3,145,163
84
18
Apache-2.0
2023-02-15T20:50:09
2012-01-10T12:54:57
Python
UTF-8
Python
false
false
2,113
py
""" Using pygments to render the code. """ from django.utils.translation import gettext as _ from pygments import highlight, styles from pygments.formatters.html import HtmlFormatter from pygments.lexers import get_all_lexers, get_lexer_by_name from pygments.styles import get_all_styles from fluent_contents.plugins.co...
[ "vdboor@edoburu.nl" ]
vdboor@edoburu.nl
b95c484693dca272c9a239a7643c804e42e07851
144f8f6f6d26189e04d53450ac13e82b6438b21f
/edk2basetools/Workspace/MetaFileTable.py
126049237ee4b20f001f0f00e6b7efcd499cb322
[ "BSD-2-Clause-Patent" ]
permissive
matthewfcarlson/edk2-pytool-base
82fe9d0971cf63b3ffb6ce39b4740d23c9a21ed2
ddf78ca6e2110f03e020a5bd0ca32b2a463fecff
refs/heads/master
2021-02-04T07:56:29.543912
2020-07-27T20:59:38
2020-07-27T20:59:38
243,640,413
0
0
NOASSERTION
2020-07-24T01:19:27
2020-02-27T23:50:20
Python
UTF-8
Python
false
false
16,042
py
## @file # This file is used to create/update/query/erase a meta file table # # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import absolute_import import uuid import edk2basetools.Common.EdkLogger as EdkL...
[ "macarl@microsoft.com" ]
macarl@microsoft.com
d9fbea707a2eac746c2d49020b6f235fc81fc40e
5aacb966991b27a579fb72ea90c90dbf352d7e1e
/setup_helper.py
2bc619d72f119cb4074be07593a09a7f0ec26938
[]
no_license
idtus/Contest-HighSchool-2016-TJHSST-Team1
91d3f2cf35415bdc96d6526f43f1cfeddcdb2423
d3eff249887fdc7afc31f45fee85895939f2dbc1
refs/heads/master
2021-01-17T22:49:04.764379
2016-02-13T04:37:41
2016-02-13T04:37:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,417
py
#!/usr/bin/env python import psycopg2 import json import sys import random import string import json import getpass from werkzeug.security import generate_password_hash, check_password_hash def load_config(): with open('config.json') as data: config = json.load(data) return config def save_config(...
[ "ezwang1@gmail.com" ]
ezwang1@gmail.com
2c17a270be52a149a03ea32a2f91fa19ae93ac9f
4a4f1eb77d0247d3f68f41f48bd42485787c61a7
/100q/question_045/solution045.py
d166e366422bbeea2928cc959ab03f5c6524c236
[]
no_license
crawsome/Python-programming-exercises
1a14e35749dfe3049d88535638d88d3a4c06ecaa
11f45ad7f5beb79382903ad568b96c168793fb6c
refs/heads/master
2020-05-23T10:49:59.987977
2019-08-18T21:24:21
2019-08-18T21:24:21
186,725,479
0
0
null
2019-05-15T01:16:30
2019-05-15T01:16:30
null
UTF-8
Python
false
false
110
py
"""Solution 045 li = [1,2,3,4,5,6,7,8,9,10] evenNumbers = filter(lambda x: x%2==0, li) print evenNumbers """
[ "c3g6b2@gmail.com" ]
c3g6b2@gmail.com
bab100228cb64b31ba0c3abf5f2949552ad91de0
7ae0efc9798b7c9fa720022ed5d763d6ab27cd13
/python/paddle/fluid/tests/unittests/test_lerp_op.py
0f740444123cbef87af0d2714d96d283123fa5b5
[ "Apache-2.0" ]
permissive
ceci3/Paddle
e1d0b56a1bb1de9a0d26977868795f86e2c0580b
e4d475eabd83e7a6fa1e88c64c28747450f87d66
refs/heads/develop
2023-08-03T03:43:35.139011
2022-02-08T11:36:07
2022-02-08T11:36:07
171,274,803
0
3
Apache-2.0
2021-08-24T07:14:24
2019-02-18T11:49:16
C++
UTF-8
Python
false
false
5,373
py
# Copyright (c) 2021 PaddlePaddle 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 appli...
[ "noreply@github.com" ]
ceci3.noreply@github.com
f3070d7389027a8e8b7e423abe4c3b62e1235c00
d68b4de666c7d63bf6bca9aa86bcc8f1121e7926
/config/settings/base.py
6f46efef7c5261d8f814c8fa8092dcad0964be58
[]
no_license
Pysuper/W_INFO
20038904cca04c6fdff5f63de8479d4c58df2e9a
307128c1bb49e155b576cd8060ca50d156dde04d
refs/heads/main
2023-03-15T13:42:03.211172
2021-03-10T14:06:35
2021-03-10T14:06:35
345,668,834
0
0
null
null
null
null
UTF-8
Python
false
false
8,288
py
import environ from utils.log_theme import * ROOT_DIR = environ.Path(__file__) - 3 APPS_DIR = ROOT_DIR.path("wow") env = environ.Env() READ_DOT_ENV_FILE = env.bool("DJANGO_READ_DOT_ENV_FILE", default=True) if READ_DOT_ENV_FILE: env.read_env(str(ROOT_DIR.path(".env"))) DEBUG = env.bool("DJANGO_DEBUG", False) TIM...
[ "1821764535@qq.com" ]
1821764535@qq.com
cff6b697af39a2f0de48778afe34ec2053736753
222d4f2dfb63a66b5de274b785cb92393a2e0fe9
/191113/02.py
614e6d58b44911f9f9f8af7d0ec26cf6f8f7d9f9
[]
no_license
GyuReeKim/PycharmProjects
fd2584c3ff1369510a7f246f2089cefb77035d9d
dd4f0e15b4e72c68b054489c54f24fa0ba5b9ed3
refs/heads/master
2020-07-03T11:44:54.951147
2019-11-21T00:07:43
2019-11-21T00:07:43
201,894,857
0
0
null
null
null
null
UTF-8
Python
false
false
1,364
py
# [모의 SW 역량테스트] 숫자 만들기 # 재귀함수 이용 import sys sys.stdin = open('01.txt', 'r') def f(n, k, s, c): # n: 사용할 숫자 idx, k: 사용할 숫자의 최대 idx, s: 계산 결과, c: 연산자 사용 global maxV, minV if n == k: if s > maxV: maxV = s if s < minV: minV = s else: # +를 사용할 수 있는 경우 if...
[ "starkim96@naver.com" ]
starkim96@naver.com
0dc866976651c7f5b47d6317f4ec891feaf3b838
2078127cd97ea910165cff007e0087c07d642426
/coach_tenure/utils.py
a0bb1006a6327c0ba56fe0b4e20b4aeb81fc23db
[]
no_license
coffenbacher/cfb-wiki
03ad655fa63c35b651cead60049b20e4db20a09f
7d203eb82d950f146fcd94146f26ccc4c5b9b995
refs/heads/master
2021-01-22T02:04:02.490642
2015-11-17T00:29:45
2015-11-17T00:29:45
29,825,893
0
0
null
null
null
null
UTF-8
Python
false
false
6,067
py
import mwparserfromhell import wikipedia from pywikibot import Page, Site, NoPage, IsRedirectPage import re import datetime import logging; def extract_coach_tenures(name): """ Extract a coaches tenures from Wikipedia. Arguments: - name (name of coach) Returns: - list(dict) """ ...
[ "charles.offenbacher@gmail.com" ]
charles.offenbacher@gmail.com
881f586ab7a75e9679e6a0d9daddf5be09a20733
788c68e9c4b6e2159b0e48a589e3e80c763c752f
/greenmanager/vegetation/models.py
80fa72667c4dbcf9e808e3203ee496ff3c2679d4
[]
no_license
inmagik/greenmanager
66aeb71f9130d12c827653931c0cab0cdfe26cd7
a3b15b22551a4ca3d90f5e37e94e69b748c9f4d5
refs/heads/master
2020-05-19T03:17:59.469566
2015-11-24T17:43:31
2015-11-24T17:43:31
21,866,469
0
0
null
null
null
null
UTF-8
Python
false
false
2,223
py
from django.contrib.gis.db import models from django.db.models import Max from django.db.models.signals import post_save from django.dispatch import receiver from coremodels.models import * class TerritoryData(models.Model): territory = models.OneToOneField(Territory) #todo: add other fields here class Veg...
[ "bianchimro@gmail.com" ]
bianchimro@gmail.com
b1fc6adf652093c1101ed94f1d7f9b4901cddc2b
1a9ec1308a2ade079e95782906e5f8af4ecb403e
/MyPractice/listcomprehension.py
8bc8e2f22c7ca5fc3fd5456b0066f6587e402318
[]
no_license
HeywoodKing/mytest
f0174f40bb60a7557ac361f566be36ac1b642366
ac19822dd28e3db60c56b57ba3dd50cb52736c6b
refs/heads/master
2022-12-12T15:47:28.141969
2020-07-24T00:46:01
2020-07-24T00:46:01
228,036,752
0
0
null
2022-12-08T06:18:26
2019-12-14T14:30:54
Python
WINDOWS-1252
Python
false
false
199
py
# Filename:listcomprehension.py #±íÍÆµ¼ L = [] for x in range(10): L.append(x**2) print L x1 = [1,3,5] y1 = [9,12,13] LP = [x**2 for (x,y) in zip(x1,y1) if y > 10] print LP
[ "opencoding@hotmail.com" ]
opencoding@hotmail.com
360cad9082aa5356f4b47072398adbdd4a300dee
f74d4f525b4efa601592064fc65f3ed1c24bae95
/ex13-12.py
67e6a509e67f2698cb2180c79c54337de9ba2bc9
[]
no_license
paulcwlin/raspi3-opencv-python-test
f764051b553bbafe02c2c7b41469560b8f08d832
85266eb51bb82224b5c67269899f8c9e34d60686
refs/heads/master
2023-04-05T03:31:56.851825
2021-04-13T08:06:24
2021-04-13T08:06:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
261
py
import cv2 import matplotlib.pyplot as plt o = cv2.imread('natalia.jpg', cv2.IMREAD_GRAYSCALE) img = o equ = cv2.equalizeHist(img) plt.figure('subplot example') plt.subplot(121), plt.hist(img.ravel(),256) plt.subplot(122), plt.hist(equ.ravel(),256) plt.show()
[ "bauroad@gmail.com" ]
bauroad@gmail.com
8b1eb28a40004cbb8a7ee126b325b6949d208638
c0fad90611a6e943277c3d79eeb48ccd5f0d0a88
/76minWindow.py
95924170033b283a31e652b3c523a6068b95f723
[]
no_license
lmb633/leetcode
e2da31984af07b9e16787f4d57f82dab2dcb551a
d91568d245dd8fb66f46ff73737cbad974f490a6
refs/heads/master
2021-07-19T16:07:40.864854
2021-02-24T10:57:40
2021-02-24T10:57:40
243,146,182
0
0
null
null
null
null
UTF-8
Python
false
false
1,421
py
import sys class Solution(object): def minWindow(self, s, t): strlist = self.get_set(t) i = 0 j = 0 lens = len(s) lent = len(t) minlength = sys.maxsize result = (0, sys.maxsize) while i < lens and s[i] not in t: i += 1 ...
[ "limingbo@focusmedia.cn" ]
limingbo@focusmedia.cn
222dfede30fc649d1121155e9d0cb2e2f4801878
3e3741d9ea06f1dcd560e27145256bd3177bed14
/02_py服务器,mysql/第6周/day03正则/01_复习TCP.py
60744ddb9130e475e8b6091e99f22fd7b2fbcfeb
[]
no_license
Lousm/Python
778bc730db09ab135bf53c7b62af29df2407199a
d3f19600012b3576cd5d58df510c17590fcaec14
refs/heads/master
2020-03-26T16:40:01.188306
2018-11-06T03:56:20
2018-11-06T03:56:20
145,116,187
0
0
null
null
null
null
UTF-8
Python
false
false
236
py
import socket s=socket.socket() dress=('10.10.91.184',6666) s.bind(dress) s.listen(5) while True: conn,ip_dre=s.accept() conn.send('你好, 我是服务器'.encode('gbk')) data=conn.recv(1024) print(data.decode('gbk'))
[ "mr_lousm@163.com" ]
mr_lousm@163.com
1a9a4463a94ffb2c92dab71fda1398cd93b84988
d0eb582894eff3c44e3de4bd50f571f9d9ab3a02
/venv/lib/python3.7/site-packages/docutils/utils/math/tex2mathml_extern.py
8545890175c4ea3bf80c3058b7c058b70164c405
[ "MIT" ]
permissive
tdle94/app-store-scrapper
159187ef3825213d40425215dd9c9806b415769e
ed75880bac0c9ef685b2c1bf57a6997901abface
refs/heads/master
2022-12-20T21:10:59.621305
2020-10-28T00:32:21
2020-10-28T00:32:21
247,291,364
1
2
MIT
2022-12-08T03:53:08
2020-03-14T14:25:44
Python
UTF-8
Python
false
false
5,656
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # :Id: $Id: tex2mathml_extern.py 8376 2019-08-27 19:49:29Z milde $ # :Copyright: © 2015 Günter Milde. # :License: Released under the terms of the `2-Clause BSD license`_, in short: # # Copying and distribution of this file, with or without modification, # are permitt...
[ "tuyenle@Admins-MacBook-Pro.local" ]
tuyenle@Admins-MacBook-Pro.local
536efa2fc75506b904f1284e2ada7b236db4bf0b
5e8633c64d53c233dec190182980e0ae0c82c50c
/codechef/manage.py
922be881e362f6160b6824ed501744c20db29d19
[ "MIT" ]
permissive
jhabarsingh/CODECHEF-APP
e14e4b2c74f272269cab23e256a16b743a768ef0
2d907710b8acde0ed51d4b4b2f486fffa4147ab9
refs/heads/main
2023-05-31T11:08:33.528927
2021-06-29T07:14:04
2021-06-29T07:14:04
357,284,455
2
0
null
null
null
null
UTF-8
Python
false
false
664
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'codechef.settings') try: from django.core.management import execute_from_command_line except Imp...
[ "jhabarsinghbhati23@gmail.com" ]
jhabarsinghbhati23@gmail.com
128081e0b2ceb0d45bffb337564a968451aff891
d318bc612eeb05406f50987b06ff6d1a84f0b864
/Step16-그리디 알고리즘/04-잃어버린 괄호.py
6a358abba748bf63617761cf7bfd13bb418ea466
[]
no_license
JeongHwan-dev/python-algorithm
505a9b725c4c205f159f57b2f1bb7d57eda28cea
e2d01f067dfc6ede20f2f288f1e41dc62c3193d1
refs/heads/master
2023-06-19T16:21:49.617508
2021-07-08T14:33:53
2021-07-08T14:33:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
311
py
""" 예제 입력 1 55-50+40 예제 출력 1 -35 """ array = input().split('-') num_list = [] for a in array: n_list = a.split('+') s = 0 for n in n_list: s += int(n) num_list.append(s) result = num_list[0] for i in range(1, len(num_list)): result -= num_list[i] print(result)
[ "jeonghwan.dev@gmail.com" ]
jeonghwan.dev@gmail.com
64e4dff926dae007e5acaa5077de731afa52bb1f
587dbdf730b6cc3e693efc5dca5d83d1dd35ee1a
/leetcode/1501-1800/1583.py
dcc3cc40de9a7cd45ed8da7c274f305a86cf2a4c
[]
no_license
Rivarrl/leetcode_python
8db2a15646d68e4d84ab263d8c3b6e38d8e3ea99
dbe8eb449e5b112a71bc1cd4eabfd138304de4a3
refs/heads/master
2021-06-17T15:21:28.321280
2021-03-11T07:28:19
2021-03-11T07:28:19
179,452,345
3
1
null
null
null
null
UTF-8
Python
false
false
682
py
# -*- coding: utf-8 -*- # ====================================== # @File : 1583.py # @Time : 2020/9/14 21:03 # @Author : Rivarrl # ====================================== from algorithm_utils import * class Solution: @timeit def unhappyFriends(self, n: int, preferences: List[List[int]], pairs: List[List[...
[ "1049793871@qq.com" ]
1049793871@qq.com
48ffd1366c436d0ff09ec2c95ab0a830c8f8c1ee
a382716034b91d86ac7c8a548a63d236d6da8032
/hat/vector_control/migrations/0029_apiimport_has_problem.py
eac6f965cacbd2eb26a8166abbb90c3cbf5c1f2a
[ "MIT" ]
permissive
lpontis/iaso
336221335fe33ca9e07e40feb676f57bbdc749ca
4d3a9d3faa6b3ed3a2e08c728cc4f03e5a0bbcb6
refs/heads/main
2023-08-12T20:34:10.823260
2021-10-04T07:34:50
2021-10-04T07:34:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
# Generated by Django 2.2.4 on 2019-08-14 14:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("vector_control", "0028_auto_20190628_1342")] operations = [ migrations.AddField( model_name="apiimport", name="has_problem", ...
[ "tech@bluesquarehub.com" ]
tech@bluesquarehub.com
e421fec495b8819651cf45ef678eb5d99946416a
dd80a584130ef1a0333429ba76c1cee0eb40df73
/external/llvm/utils/lit/lit/__init__.py
b9f573d9319150d8fbd7db0cf570cfc56c757883
[ "MIT", "NCSA", "BSD-3-Clause", "NTP", "LicenseRef-scancode-unknown-license-reference" ]
permissive
karunmatharu/Android-4.4-Pay-by-Data
466f4e169ede13c5835424c78e8c30ce58f885c1
fcb778e92d4aad525ef7a995660580f948d40bc9
refs/heads/master
2021-03-24T13:33:01.721868
2017-02-18T17:48:49
2017-02-18T17:48:49
81,847,777
0
2
MIT
2020-03-09T00:02:12
2017-02-13T16:47:00
null
UTF-8
Python
false
false
250
py
"""'lit' Testing Tool""" from __future__ import absolute_import from .main import main __author__ = 'Daniel Dunbar' __email__ = 'daniel@zuster.org' __versioninfo__ = (0, 3, 0) __version__ = '.'.join(map(str, __versioninfo__)) + 'dev' __all__ = []
[ "karun.matharu@gmail.com" ]
karun.matharu@gmail.com
18bf8e3d30e736ae25535ba6c5aeba41eccd820f
4c6a1caf275f122f216c5db51d895b2efb5573b6
/spider/spider/IpProxyPool/proxyPool/getter.py
303c4e724532bc6f43b9d75189003e0821f9a086
[]
no_license
paulRoux/Paper
5358a3ca31425f416b48fcde9a390eec2f5b5cc0
d15ee23ae310e9044cb26098fe8fde3ed0ec51e2
refs/heads/master
2023-02-09T00:48:44.469254
2019-06-12T03:13:51
2019-06-12T03:13:51
186,258,835
2
1
null
2023-02-02T06:25:44
2019-05-12T13:31:17
CSS
UTF-8
Python
false
false
852
py
from proxyPool.dataBase import RedisClient from proxyPool.crawler import Crawler from proxyPool.setting import POOL_UPPER class Getter(object): def __init__(self): self.redis = RedisClient() self.crawler = Crawler() def isOverPool(self): """ 判断是否达到了代理池的上限 """ i...
[ "xing77585211314@gmail.com" ]
xing77585211314@gmail.com
9feaeb7423c3d348fdfda79836d98ea0ee6830bd
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_wind.py
ae55c1809592cfc4cdfd2bc7f47df04b11a80541
[ "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
704
py
#calss header class _WIND(): def __init__(self,): self.name = "WIND" self.definitions = [u'a current of air moving approximately horizontally, especially one strong enough to be felt: ', u'breath or the ability to breathe: ', u'words that do not mean anything and false statements: ', u"gas in the bowels or in a...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
0d5b575655cdd6e374ea8b913d56eb66847f52b1
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/inspections/spelling/typosInDoctestsReportedOnce.py
9041a40a92dfd2220307d3e2456f4d9d0efc1026
[ "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
104
py
""" >>> 'There are also always two inspection <TYPO descr="Typo: In word 'messags'">messags</TYPO>.' """
[ "intellij-monorepo-bot-no-reply@jetbrains.com" ]
intellij-monorepo-bot-no-reply@jetbrains.com
0961fd4f2f2ba23918033cb74700f78b826c6a31
9c0197e5957625022afd930fff28171ead8dfaa3
/piwheels/terminal.py
515e8a9ce0c5ce491877e59ab7f8e9c055d95e80
[ "BSD-3-Clause" ]
permissive
jamiejackherer/piwheels
078757440541080b48adbd9a22aa63d7dd356045
e62af78a52d7436a68815d47faee334c7b42c436
refs/heads/master
2020-04-09T08:54:25.483130
2018-12-01T23:56:28
2018-12-01T23:56:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,787
py
# The piwheels project # Copyright (c) 2017 Ben Nuttall <https://github.com/bennuttall> # Copyright (c) 2017 Dave Jones <dave@waveform.org.uk> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistribution...
[ "dave@waveform.org.uk" ]
dave@waveform.org.uk
dd21cde9a6a692b73374d614ea676c9c8453de2b
92bfcfaedb69b0d5c032f6a9b3ad70c0e06f7c53
/purefn.py
ea86bf1ccb58fe2227d6ffb97de44c1462b05c4d
[]
no_license
hellstrikes13/sudipython
cf529ed60cca09afa185f3b56fe7ce17059212b0
a789fc33cdab12d64ab674cb1c2ad7849617251f
refs/heads/master
2022-01-03T09:12:14.192724
2021-12-23T05:38:31
2021-12-23T05:38:31
184,371,582
2
1
null
2021-12-23T05:38:31
2019-05-01T05:07:18
Python
UTF-8
Python
false
false
542
py
''' A pure function does not produce side effects. It communicates with the calling program only through parameters, which it does not modify, and a return value. Here is double_stuff written as a pure function: ''' def double_stuff(a_list): """ Return a new list which contains doubles of the elements in a...
[ "hellstrikes13@gmail.com" ]
hellstrikes13@gmail.com
cefcd19c4d878c70e2922d7a9c1e4c0b89948575
1a9d80983dfddc51baaccaf6d5f2c725ad242267
/scripts/update-github-repos
f63f020cf663cfc61aabdf98182c571a2cb2f156
[ "CC-BY-4.0", "CC-BY-3.0" ]
permissive
dfm/cv
8bfafb7a1c42526faf68b232d40088a73bc59193
5ee1a63982494c3fabe3dbbefc09dd878fc43584
refs/heads/main
2023-08-31T04:59:53.776115
2023-08-31T00:13:12
2023-08-31T00:13:12
26,838,555
33
10
NOASSERTION
2023-09-11T04:25:43
2014-11-19T01:25:48
TeX
UTF-8
Python
false
false
817
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import json import requests headers = {"Authorization": "Bearer {0}".format(os.environ["GITHUB_API_KEY"])} query = """ { user(login: "dfm") { pinnedItems(first: 6, types: [REPOSITORY]) { totalCount edges { node { ... on Repos...
[ "foreman.mackey@gmail.com" ]
foreman.mackey@gmail.com
74674dbeebe9e1b85382b6b7b688e2614c06d371
c9caced96ec27ad9708d44d22f63684c987d3340
/party/models.py
45675439b8401b96c0352daa0eb2ada5e50a8d97
[ "BSD-2-Clause" ]
permissive
hasadna/open-shot
df65a47c14b29e3e0ccbfe72e7a5629d61c510fd
53c60109b0051fa10b74ce5d246259517592e1cb
refs/heads/dev
2020-04-05T22:28:46.860659
2014-06-25T21:54:48
2014-06-25T21:54:48
6,258,358
1
3
null
2016-12-05T20:54:42
2012-10-17T08:41:57
Python
UTF-8
Python
false
false
914
py
from datetime import date from django.db import models from django.utils.translation import ugettext as _ from django.db.models.signals import post_save from django.contrib.auth.models import User # Create your models here. class Party(models.Model): logo = models.ImageField(upload_to='logos') name = models.Ch...
[ "bennydaon@gmail.com" ]
bennydaon@gmail.com
95c8a3377fd29cdcd8f0820876b11178fbd239e5
d13ee6238418d047f9fe6ddbd5525fd0487d4233
/hc/api/tests/test_notify_victorops.py
ce6c5b127258cb15224ac8c2b8633e699cb266e6
[ "BSD-3-Clause" ]
permissive
iphoting/healthchecks
b4ffb7cd2a254c1a8daa490608ff4d5a96c560da
924fc7df60dbf97b82a1f82989507459802f7028
refs/heads/heroku
2022-03-06T08:32:11.626016
2019-10-07T14:37:20
2022-02-19T09:37:57
82,822,882
11
7
BSD-3-Clause
2021-09-28T07:59:39
2017-02-22T15:51:02
Python
UTF-8
Python
false
false
1,842
py
# coding: utf-8 from datetime import timedelta as td from unittest.mock import patch from django.utils.timezone import now from hc.api.models import Channel, Check, Notification from hc.test import BaseTestCase from django.test.utils import override_settings class NotifyVictorOpsTestCase(BaseTestCase): def setU...
[ "cuu508@gmail.com" ]
cuu508@gmail.com
c367973ce924074ef6923bea1c84441afadefb88
747febe786dd6b7fd6c63cfe73dbe3023354daa8
/src/tt_bank/tt_bank/migrations/0001_initial.py
395305302f39241690604903753f9c4246081a80
[ "BSD-3-Clause" ]
permissive
the-tale/the-tale
4e4b8d91dc873a5fb935fe58e9721a877baa6d3f
e8450bd2332344da805b1851e728da5a3e5bf0ef
refs/heads/develop
2023-08-01T13:53:46.835667
2022-12-25T18:04:56
2022-12-25T18:04:56
1,949,167
98
52
BSD-3-Clause
2023-02-15T18:57:33
2011-06-24T18:49:48
Python
UTF-8
Python
false
false
1,874
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2017-12-10 18:03 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Accoun...
[ "a.eletsky@gmail.com" ]
a.eletsky@gmail.com