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
26dcfc08a00b7aeb3c786eddbad0189fcb96d23a
21b0b4c27193898207751c91b8b2ed168a1b1638
/py/py_0637_flexible_digit_sum.py
1f93090be6969f91e0df5a37180db7d4318b6121
[ "MIT" ]
permissive
lcsm29/project-euler
67560a4e66968f1671a3d7ecf2dda6c956893dca
fab794ece5aa7a11fc7c2177f26250f40a5b1447
refs/heads/main
2023-07-04T11:45:24.374841
2021-08-07T08:20:41
2021-08-07T08:20:41
371,808,781
0
0
null
null
null
null
UTF-8
Python
false
false
984
py
# Solution of; # Project Euler Problem 637: Flexible digit sum # https://projecteuler.net/problem=637 # # Given any positive integer $n$, we can construct a new integer by inserting # plus signs between some of the digits of the base $B$ representation of $n$, # and then carrying out the additions. For example, from...
[ "lcsm29@outlook.com" ]
lcsm29@outlook.com
92e3cdf8225d45ea6513de9fe7fb005957dc43f2
dc2682f687a203dcf5f4f4260f857ef5099bbdab
/src/bootstrapping_olympics/interfaces/rep_nuisance_causal.py
fbe394ac400c52c679a98d561a9b9c3e359c92b9
[]
no_license
AndreaCensi/boot_olympics
1bc3d0cd887ca6b47a159929b53032c298979450
dc05e283bde01cafc4843d82f17413b13c6ce1af
refs/heads/master
2020-07-08T10:49:37.368104
2013-07-19T07:00:22
2013-07-19T07:00:22
2,098,134
0
0
null
null
null
null
UTF-8
Python
false
false
800
py
from .boot_spec import BootSpec from abc import abstractmethod from blocks import SimpleBlackBox from contracts import ContractsMeta, contract __all__ = ['RepresentationNuisanceCausal'] class RepresentationNuisanceCausal(object): ''' ''' __metaclass__ = ContractsMeta class NotInvertible(E...
[ "andrea@cds.caltech.edu" ]
andrea@cds.caltech.edu
5afadcff75d577496520b4eb19d8797e2579c837
f68e0b205bd3eb036905c60bd03a8d9c7f3b1d88
/machine_learning/3.3.logistic-regression.py
1d88351ce1bc85e63bb039ea2ead4f43f3e9061a
[]
no_license
SleepyBag/TrivialPractice
c31458d0c28afba158cb4090cb7013267ff54bb2
8e006fbe1425f62b52b2a5fe5b6404ea1883f3ab
refs/heads/master
2020-03-22T00:34:37.415074
2018-06-30T14:02:04
2018-06-30T14:02:04
139,253,389
2
0
null
null
null
null
UTF-8
Python
false
false
1,386
py
import numpy as np from math import log from math import exp input_dim = 2 output_dim = 1 beta = np.random.normal(size=(input_dim + 1, output_dim)) def p1(xhat, beta): e = np.exp(np.dot(beta.T, xhat))[0][0] return e / (1 + e) def iterate(X, Y, beta): import pdb # pdb.set_trace() grad = np.zer...
[ "xueqianming200@gmail.com" ]
xueqianming200@gmail.com
555e47b52b537e75c5f7db4a5e347387352054ae
2de2437bbf480f6518554bcb204106dd37262023
/office365/sharepoint/portal/SPSiteCreationResponse.py
571a183cf080a80520369bacb01a8d04eb63bccb
[ "MIT" ]
permissive
stardust85/Office365-REST-Python-Client
386e5bba16cdee1472b7e23d405a4bf9b6f5e73a
cd369c607c7d137a000734e9c5e8f03ae3e3c603
refs/heads/master
2022-09-29T19:44:02.166438
2020-06-03T23:12:40
2020-06-03T23:12:40
269,356,313
0
0
MIT
2020-06-04T12:41:03
2020-06-04T12:41:02
null
UTF-8
Python
false
false
285
py
from office365.runtime.client_value_object import ClientValueObject class SPSiteCreationResponse(ClientValueObject): def __init__(self): super(SPSiteCreationResponse, self).__init__() self.SiteId = None self.SiteStatus = None self.SiteUrl = None
[ "vvgrem@gmail.com" ]
vvgrem@gmail.com
add2fdf8fbb97db4726458d6089e1bea384ed165
8fc7b22d6ea7444e0b90d5fb8e361ace06b4cb57
/setup.py
fad40934e3e44c29fddd2fe552a04cdead0b85d7
[ "Apache-2.0" ]
permissive
rixx/django-hierarkey
80a9569eca317d997560fc92d3d67e5083ae081e
e61f03bd1a35489905f3b08fdc18755f1ed07973
refs/heads/master
2021-06-07T09:47:59.710988
2020-07-21T14:57:27
2020-07-21T14:57:27
195,140,375
0
0
Apache-2.0
2019-07-03T23:51:33
2019-07-03T23:51:32
null
UTF-8
Python
false
false
1,490
py
from codecs import open from os import path from setuptools import find_packages, setup here = path.abspath(path.dirname(__file__)) # Get the long description from the relevant file try: with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() except: long_descript...
[ "mail@raphaelmichel.de" ]
mail@raphaelmichel.de
eb250e5339657728771d905ffbc0be84a8103fcc
4e353bf7035eec30e5ad861e119b03c5cafc762d
/QtCore/QXmlStreamNamespaceDeclaration.py
50587d69bdc7d2c462e766f31a2c38b6faa6a6d9
[]
no_license
daym/PyQt4-Stubs
fb79f54d5c9a7fdb42e5f2506d11aa1181f3b7d5
57d880c0d453641e31e1e846be4087865fe793a9
refs/heads/master
2022-02-11T16:47:31.128023
2017-10-06T15:32:21
2017-10-06T15:32:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,849
py
# encoding: utf-8 # module PyQt4.QtCore # from C:\Python27\lib\site-packages\PyQt4\QtCore.pyd # by generator 1.145 # no doc # imports import sip as __sip class QXmlStreamNamespaceDeclaration(): # skipped bases: <type 'sip.simplewrapper'> """ QXmlStreamNamespaceDeclaration() QXmlStreamNamespa...
[ "thekewlstore@gmail.com" ]
thekewlstore@gmail.com
7adaffb1cbe579b1d161a731e9ac13a98af57b08
5a27471bc2ae4a815db2c58d047dbbea03cd8f77
/comparisonFiles/codigos/Simulacion/LV/PDmasIcf_comparacion.py
674865b1769c477c33b36cfaf1c0ec73d109887f
[]
no_license
ezalorpro/LaboratorioDeControl
6ef52bb77b6a2283decb8c9fa153d7b43f019609
ac286214f9a4b32298aa1caec808717f4b2d9a29
refs/heads/master
2023-01-20T19:27:56.233542
2020-03-15T20:24:10
2020-03-15T20:24:10
190,772,544
0
0
null
null
null
null
UTF-8
Python
false
false
4,102
py
import numpy as np from scipy.interpolate import interp1d from scipy.signal import correlate from scipy.stats import energy_distance from scipy.integrate import cumtrapz from scipy import io from matplotlib import pyplot as plt import pickle MatFileMATLAB = io.loadmat('comparisonFiles/Data MATLAB/Simulacion/PDcfmasI10...
[ "kleiver615@gmail.com" ]
kleiver615@gmail.com
bea4ba346ee7ce82719f9664f3447a91400044e8
16f36b0fc607cb9c0d7b4eb7d5123a1b7ed40c62
/untitled1/.idea/sda.py
aa69dcd7d98aab5175474796216259bf79104703
[]
no_license
IanChen6/python-learning
64c5137f536d10ffc10a9664da43ec02722c95de
fea998620ba0a354a741cdbc9d8455bca4080bae
refs/heads/master
2021-01-23T18:45:18.595877
2017-10-31T10:34:51
2017-10-31T10:34:51
102,805,586
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
#!/usr/bin/env python3 #_*_ coding:utf-8 _*_ import sys print(len("中文")) print(sys.getdefaultencoding()) print(len("中文".encode("utf-8"))) print(sys.getdefaultencoding()) import scrapy
[ "626614767@qq.com" ]
626614767@qq.com
f4ae8716a1913caf616981c80109ad0bd68f39a5
e2bf489830e55a57945b8e696f8e2d6acefeb560
/05-系统编程-2/06-列表传递给线程.py
f6412c260a9060ce455498ed6ed3712e669c1585
[]
no_license
taizilinger123/pythonjichu
e713de06fb050943a8a1e0256ccba8dea40a411d
5ee896e92edbac55d02aa63965d896200b8c2623
refs/heads/master
2023-04-01T02:00:37.557667
2023-03-31T05:08:40
2023-03-31T05:08:40
148,663,792
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
from threading import Thread import time def work1(nums): nums.append(44) print("----in work1---",nums) def work2(nums): #延时一会,保证t1线程中的事情做完 time.sleep(1) print("----in work2---",nums) g_nums = [11,22,33] t1 = Thread(target=work1, args=(g_nums,)) t1.start() t2 = Thread(target=...
[ "837337164@qq.com" ]
837337164@qq.com
6b318fa6df2f38457877794dba277c5ba5cc3a84
f26af24795d913a4dd17f467052255d256c95032
/apps/price/models.py
168110b8818fd660a191212deac9e181f91eaf29
[]
no_license
minimedj/3dhero.ru
ccbd8d5d37fe149e6194457e66cfc338afe21bd6
5790f448fe03eecf79760c2e73154f0831abaf54
refs/heads/master
2021-01-22T21:08:00.632873
2016-03-28T13:11:26
2016-03-28T13:11:26
85,397,391
1
0
null
2017-03-18T11:49:44
2017-03-18T11:49:44
null
UTF-8
Python
false
false
618
py
# -*- coding: utf-8 -*- from apps.file.models import File from google.appengine.ext import ndb from model import Base from werkzeug.wrappers import cached_property class PriceFile(Base): order_id = ndb.IntegerProperty( default=0, verbose_name=u'Порядок сортиовки' ) file = ndb.KeyProperty(F...
[ "serg.baburin@gmail.com" ]
serg.baburin@gmail.com
529d1708aadd414f217458769cc1134d4712d1e0
67e317d203ba478f0dda6d9014b1daa03acee080
/nidm/workflows/ProcessExecution.py
6be6844f43ea864b6b151d88ff96358edf493717
[ "Apache-2.0" ]
permissive
tvanerp/PyNIDM
ec074dee9550dee91b21339c78105e8bf661cb6b
6a94875969c6bc5247b09d7d2793ed979b18ab3f
refs/heads/master
2020-07-25T16:54:03.905301
2019-09-13T23:56:18
2019-09-13T23:56:18
208,361,857
0
0
NOASSERTION
2019-09-13T23:23:06
2019-09-13T23:23:05
null
UTF-8
Python
false
false
1,235
py
import prov.model as pm from ..core import Constants from ..experiment.Core import Core from ..experiment.Core import getUUID class ProcessExecution(pm.ProvActivity, Core): """Class for NIDM-Workflow ProcessExecution Objects. Default constructor uses empty graph with namespaces added from NIDM/Scripts/...
[ "satra@mit.edu" ]
satra@mit.edu
8aa4f99dfc142943b8b42bf343e240017caf68eb
40c6f8449f25d30b16510d6b6da3893e5eae3641
/shorts/urls.py
60cdd103cf7055a38d253710c377d68d0a5a68c5
[]
no_license
fergalmoran/shortio
b2188df44ebf08455ffd150fb6234dbff582f3c8
575dfd8438b37f383e1fc865baf5b7ad65e788ee
refs/heads/master
2020-03-29T13:03:02.682420
2014-04-17T22:10:41
2014-04-17T22:10:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
870
py
from django.conf.urls import patterns, url, include from shorts import views from .api import UserList, UserDetail from .api import UrlList, UrlDetail, UserUrlList user_urls = patterns( '', url(r'^/(?P<username>[0-9a-zA-Z_-]+)/urlss$', UserUrlList.as_view(), name='userurl-list'), url(r'^/(?P<usern...
[ "fergal.moran@gmail.com" ]
fergal.moran@gmail.com
628022e1b0203108c42330f824295c40095a5238
0b312224bd5a9e6b1dd92b78ccf58049b5d69b1b
/compounds/migrations/0022_auto_20180724_2343.py
f8ceb737b47e0233ffe92b7a56a38ba85a895549
[]
no_license
paulosjd/frags
e573cc9bc373a7e0847985478b5bf0bfca9b7153
4af65c7415dbbfa0a92f308bf93d5734c3583c5e
refs/heads/master
2020-03-17T00:58:15.530581
2018-12-12T23:48:15
2018-12-12T23:48:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
763
py
# Generated by Django 2.0.4 on 2018-07-24 21:43 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('compounds', '0021_userbioactive'), ] operations = [ migrations.AddField( model_name='compoundso...
[ "pjdavis@gmx.com" ]
pjdavis@gmx.com
3cf3ebd056bcb46c29d75f30833eea9c8d1dddc6
33110fa5ad8c47e31401769086a985eea1a991c7
/mmsegmentation/tests/test_data/test_dataset.py
3ebd20e28ed6168d7746eb9e04e12c532d11f73c
[ "Apache-2.0" ]
permissive
UESTC-Liuxin/SKMT
32bc2781063de1da2a778659e6501762531b15a8
377bbe3e5d2777d6c3ccaae7a6c364bd9c85d651
refs/heads/master
2023-01-12T19:28:49.340298
2020-11-16T03:35:09
2020-11-16T03:35:09
283,365,017
1
0
null
null
null
null
UTF-8
Python
false
false
7,658
py
import os.path as osp from unittest.mock import MagicMock, patch import numpy as np import pytest from mmseg.core.evaluation import get_classes, get_palette from mmseg.datasets import (ADE20KDataset, CityscapesDataset, ConcatDataset, CustomDataset, PascalVOCDataset, RepeatDataset,USDataset...
[ "625092890@qq.com" ]
625092890@qq.com
3d513b4d49ec184a8c212f0e9e39bded5560e491
a9e60d0e5b3b5062a81da96be2d9c748a96ffca7
/configurations/i21-config/scripts/scannable/waveform_channel/BinpointWaveformChannelController.py
306459920ad78dce613a3566b8f00496e66b5507
[]
no_license
openGDA/gda-diamond
3736718596f47607335ada470d06148d7b57526e
bbb64dcfd581c30eddb210c647db5b5864b59166
refs/heads/master
2023-08-16T08:01:11.075927
2023-08-15T16:01:52
2023-08-15T16:01:52
121,757,699
4
1
null
null
null
null
UTF-8
Python
false
false
3,892
py
""" define a Binpoint class to control data collection during continuous move. Note that the Binpoint device is slaved from the ADC_ACQ_GRP, therefore there is no concept of exposure time. However collection time is required for data pulling stream timing in order to retrieve collected data in a more or less synchron...
[ "fajin.yuan@diamond.ac.uk" ]
fajin.yuan@diamond.ac.uk
6c8c3176d6fab6f847718ff9bf0b86f79b2e7b9f
1fe8d4133981e53e88abf633046060b56fae883e
/venv/lib/python3.8/site-packages/tensorflow/python/tpu/tpu_strategy_util.py
7c6396205ab5e127f88ed702d0b0bdcaa2a13c21
[]
no_license
Akira331/flask-cifar10
6c49db8485038731ce67d23f0972b9574746c7a7
283e7a2867c77d4b6aba7aea9013bf241d35d76c
refs/heads/master
2023-06-14T16:35:06.384755
2021-07-05T14:09:15
2021-07-05T14:09:15
382,864,970
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:3ea6cc5b52461659dafea8bd5247a3e94f163ecadc1e3f2e4dc1b668a5ca730e size 8774
[ "business030301@gmail.com" ]
business030301@gmail.com
2b0895d4db4313398af8c77ebcb6a061bcb4237a
73e07f0dc3d8b8625105c1528746c91e382567ed
/tests/__init__.py
79c17586ae066ff7d284c0c88d19930680dae095
[ "MIT" ]
permissive
econchick/attrs
d10114f0e838ef0b63aadf5055f3e4a482cd0850
6a1a740c46e3071296eaa7b64d0120913ddadade
refs/heads/master
2021-01-21T00:22:29.237367
2015-02-07T09:06:08
2015-02-07T09:06:08
30,468,084
0
0
null
2015-02-07T19:54:49
2015-02-07T19:54:49
null
UTF-8
Python
false
false
1,181
py
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from attr import Attribute from attr._make import NOTHING, make_class def simple_class(no_cmp=True, no_repr=True, no_hash=True): """ Return a new simple class. """ return make_class( "C", ["a", "b"], ...
[ "hs@ox.cx" ]
hs@ox.cx
63abffd0d5f913554789ad7d511d77f209c117cc
6aa36fee3f4fcc9ac8f5509e51ea6bd8fc05b39b
/virtualenv-flask/lib/python2.7/site-packages/cybox/objects/win_task_object.py
6349e56f3ccb9792cf8b1ede28ff5f69ce019358
[]
no_license
syn-ack-zack/msg-stix-parser
8c46c4d897d579162f224360a077ac42f28ffe89
1edb7c3b6d60f76f24b91830a1ae7076d46ede14
refs/heads/master
2021-03-27T15:01:07.344754
2016-09-30T16:43:22
2016-09-30T16:43:22
69,684,161
0
0
null
null
null
null
UTF-8
Python
false
false
4,857
py
# Copyright (c) 2013, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. import cybox import cybox.bindings.win_task_object as win_task_binding from cybox.common import (Base64Binary, DateTime, Duration, HashList, Long, ObjectProperties, String, UnsignedLong) from cybox.objects.e...
[ "nagaich@localhost.localdomain" ]
nagaich@localhost.localdomain
6a89ebca4f0ef920b63c07807d9ea8970a5dca97
7ef2308e51d1d5700fbd092177ee15e2a03ebdd8
/DisasterCrawler/ZHNewsCrawlerPostgreSql/gooseker/gooseeker.py
95f8c3f6537f0b93bfdd207b0375084375a77bfa
[]
no_license
STAWZW/STAWZW1.0
741002eb35c2883e5739fee8d14ff430e9622c01
a835ac27aba17f968116e321bd201b26c9fb3578
refs/heads/master
2020-07-21T20:21:59.753992
2019-09-26T09:21:28
2019-09-26T09:21:28
206,965,347
2
0
null
null
null
null
UTF-8
Python
false
false
1,601
py
#!/usr/bin/python # -*- coding: utf-8 -*- # 模块名: gooseeker # 类名: gsExtractor # Version: 2.0 # 说明: html内容提取器 # 功能: 使用xslt作为模板,快速提取HTML DOM中的内容。 # released by 集搜客(http://www.gooseeker.com) on May 18, 2016 # github: https://github.com/FullerHua/jisou/core/gooseeker.py from urllib import request from urllib.parse import q...
[ "1223868042@qq.com" ]
1223868042@qq.com
901b405f4a2a51fd6ca9bfd5094110f8809a137e
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_1_neat/16_0_1_ankso_problem1.py
abdcde8c10348975b61eb615936ae90fb286edb5
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
736
py
def returnList(n): n = str(n) digits = list(n) return digits def check(all): stat = False for i in range(10): if str(i) in all: stat = True else: stat = False break return stat testCases = int(raw_input()) for i in range(testCases): N =...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
d4529fd488e177eff6820f5688b7d6fd9790eab3
c43fbcb4442428e85616f664964d1e27ca396070
/runs/malte/simple/config.py
5d9a5f0f13ad31b04abdecbc9011127e24d6fd1c
[]
no_license
megalut/megalut
ddac89a0dca70e13979d31b80d52233226233ade
63bd4bec8000ad13f4963d464d7b7b4d470a36ab
refs/heads/master
2020-04-15T00:33:42.815988
2018-09-11T08:45:48
2018-09-11T08:45:48
20,882,727
2
1
null
2018-09-11T08:45:49
2014-06-16T11:39:14
Python
UTF-8
Python
false
false
317
py
import megalut import megalut.learn import os import numpy as np import logging #logging.basicConfig(level=logging.INFO) logging.basicConfig(format='PID %(process)06d | %(asctime)s | %(levelname)s: %(name)s(%(funcName)s): %(message)s',level=logging.INFO) workdir = "/vol/fohlen11/fohlen11_1/mtewes/simplewd/"
[ "malte.tewes@gmail.com" ]
malte.tewes@gmail.com
f677ca474fb5707bca7e6923f812c0f9b03202fe
aa6e1dd07a71a73bc08574b76f9e57a3ce8c8286
/077.Test_BeeWare_windows/beeware-tutorial/beeware-venv/Lib/site-packages/pip/_internal/network/cache.py
a0d55b5e992a5f85890fc06703f33dc53995a17b
[ "MIT" ]
permissive
IvanaXu/PyTools
0aff5982f50bb300bfa950405192c78473b69537
358ae06eef418fde35f424909d4f13049ca9ec7b
refs/heads/master
2023-06-07T21:45:44.242363
2023-06-06T16:00:25
2023-06-06T16:00:25
163,940,845
60
8
MIT
2022-12-23T02:49:05
2019-01-03T07:54:16
Python
UTF-8
Python
false
false
2,329
py
"""HTTP cache implementation. """ import os from contextlib import contextmanager from pip._vendor.cachecontrol.cache import BaseCache from pip._vendor.cachecontrol.caches import FileCache from pip._vendor.requests.models import Response from pip._internal.utils.filesystem import adjacent_tmp_file, replace from pip....
[ "1440420407@qq.com" ]
1440420407@qq.com
b04538155bd3cd73f2f1271087a0b63e9be949e1
b6303baeaa840671f1ea747d47c905779a07ffce
/edital/migrations/0015_auto_20210928_1833.py
9a7475e433d719627343e80ac38fcc3a631bb3c5
[]
no_license
amarantejoacil/sisnae
89954ef9e837799750dc56274ec1207e6d39daef
90e237a41e698cda357b8f555fbb0649f16a78b3
refs/heads/main
2023-08-24T23:06:47.628428
2021-10-27T16:26:12
2021-10-27T16:26:12
401,503,074
1
0
null
null
null
null
UTF-8
Python
false
false
739
py
# Generated by Django 3.2.6 on 2021-09-28 22:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('edital', '0014_auto_20210907_2050'), ] operations = [ migrations.AddField( model_name='edital', name='edital_quantid...
[ "joacil.amarante@gmail.com" ]
joacil.amarante@gmail.com
768fff722cf0d2f12f0a7428a500a54db6db3a92
02952fc67147a2f11a9ed8c4eb29210bec5672ed
/business/service/urls/polardb.py
239025e7fe9457d9d1dfc284c34ba4bc1af18f10
[]
no_license
cuijianzhe/cow
b110a70398b09a401dadc7d3ed24dfe2bae50f5b
3539cab6e73571f84b7f17391d9a363a756f12e1
refs/heads/main
2023-06-04T10:33:33.975885
2021-06-19T10:40:36
2021-06-19T10:40:36
340,634,448
2
0
null
null
null
null
UTF-8
Python
false
false
365
py
from django.urls import path from business.service.apis import polardb as polardb_api urlpatterns = [ path('service/polardb/create/', polardb_api.CreateServicePolarDBApi.as_view()), path('service/polardb/delete/', polardb_api.DeleteServicePolarDBApi.as_view()), path('service/polardb/list/', polar...
[ "598941324@qq.com" ]
598941324@qq.com
bffd945b3e55d605e9bdc96d37c366719e574dc5
32cb0be487895629ad1184ea25e0076a43abba0a
/LifePictorial/top/api/rest/CrmGroupsGetRequest.py
fdf3e997d2a6a1433995e490178adfa406e9a607
[]
no_license
poorevil/LifePictorial
6814e447ec93ee6c4d5b0f1737335601899a6a56
b3cac4aa7bb5166608f4c56e5564b33249f5abef
refs/heads/master
2021-01-25T08:48:21.918663
2014-03-19T08:55:47
2014-03-19T08:55:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
334
py
''' Created by auto_sdk on 2014-02-10 16:59:30 ''' from top.api.base import RestApi class CrmGroupsGetRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.current_page = None self.page_size = None def getapiname(self): return 'taobao.crm...
[ "poorevil@gmail.com" ]
poorevil@gmail.com
d3987022176ead2e9f190e5c0da47c1505c6fba0
dfdecc0f91c6fa0319325561ed0a20f8544f0312
/test.py
4b61a3c63775e29a496c1734d0afc1a30b4e6eeb
[]
no_license
ShichaoMa/MultiThreadClosing
c3807047938329a8655d65dc011173c16375240c
43b556d9ee6a6ae11f1481675b822b2660a7c36b
refs/heads/master
2021-01-20T19:27:04.450710
2017-12-09T08:58:15
2017-12-09T08:58:15
64,533,341
4
0
null
null
null
null
UTF-8
Python
false
false
697
py
import time from threading import Thread from multi_thread_closing import MultiThreadClosing class Test(MultiThreadClosing): name = "test_thread" def start(self): t1 = Thread(target=self.process) t2 = Thread(target=self.process) self.threads.append(t1) self.threads.append(t2)...
[ "308299269@qq.com" ]
308299269@qq.com
878f78437dc5e1bec4b5c66bd1443295fcebfb4e
bcf678908eb3e26f6172265406bfaaa7129f6b18
/Blog/myapp/views.py
64d2228c228fc572bf4ed3eb5100262b4f3071d9
[]
no_license
loganjoon/0713-Blog
935cbd75c8682ff6bc6841bc414ad0db3225a917
71494795515753b6a354e1b93ed57858e852a4a5
refs/heads/master
2022-11-17T00:09:40.770351
2020-07-13T02:31:34
2020-07-13T02:31:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
417
py
from django.shortcuts import render from .models import BlogFrame from django.shortcuts import render, get_object_or_404 def main(request): blogs = BlogFrame.objects return render(request, 'main.html',{'blogs':blogs}) def detail(request, blog_id): blog_detail = get_object_or_404(BlogFrame, pk=blog_id) ...
[ "you@example.com" ]
you@example.com
5649862f39c4121adba3f3cf54160b5251b6ff8e
242da8865e037f9fffb76269c3acddb73ce9fa14
/packages/pyright-internal/src/tests/samples/forLoop1.py
6f5ced2b691c9f7c57d066e0809a9261e765695a
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
khyveasna11111908/pyright
f42eceae044f6fbc27552c1765b03ebd345a451c
493d47807b96137995e4bb6ca341930e4de911f9
refs/heads/main
2023-08-30T00:08:36.191799
2021-09-25T19:17:13
2021-09-25T19:17:13
410,361,483
1
1
NOASSERTION
2021-09-25T19:15:23
2021-09-25T19:15:22
null
UTF-8
Python
false
false
1,185
py
# This sample tests 'for' operations (both simple for loops # and list comprehension for loops). from typing import AsyncIterator, List, Iterator def requires_int(val: int): pass list1 = [1, 2, 3] # type: List[int] for a in list1: requires_int(a) int1 = 1 # This should generate an error because # an i...
[ "erictr@microsoft.com" ]
erictr@microsoft.com
484234961357522c403302d254ccabdc4df0e383
f3f10bb0ec28489d3111c72ce9811b01fa629d64
/setup.py
ada05e6131d7ef1e7ee185a5fae1c8a5dfe88d3b
[ "BSD-2-Clause" ]
permissive
gitter-badger/labscript
db0e6f1a0c49a78f6dc08efea8607bce499a26a4
26f68923c71a56d84e19ae2ab894d2f4d6bdd9b4
refs/heads/master
2022-04-26T02:40:36.586340
2020-05-02T17:33:28
2020-05-02T17:33:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,497
py
# USAGE NOTES # # Make a PyPI release tarball with: # # python setup.py sdist # # Upload to test PyPI with: # # twine upload --repository-url https://test.pypi.org/legacy/ dist/* # # Install from test PyPI with: # # pip install --index-url https://test.pypi.org/simple/ labscript # # Upload to real PyPI with...
[ "chrisjbillington@gmail.com" ]
chrisjbillington@gmail.com
efa84b7b252d3f011527c3e5a96bab39d82863ad
c817d8c3daf2ea79dc02a2e624e49c2fd556007d
/audit/models.py
40eea1974af60239d983e11b9cab78dd9c239773
[]
no_license
DUMBALINYOLO/stats-filtering
7a3d1ccd52527031a66946cdb06286a244be0b1f
64d62f84bcfb465cb8721cdbfbb00fe034ac9893
refs/heads/master
2023-03-17T11:09:17.522663
2021-03-12T12:01:16
2021-03-12T12:01:16
347,049,684
0
0
null
null
null
null
UTF-8
Python
false
false
673
py
from django.db import models class AuditLog(models.Model): timestamp = models.DateTimeField(auto_now=True) user = models.CharField(max_length=50, null=False, blank=False) user_ip = models.CharField(max_length=100, null=False, blank=False) action_name = models.CharField(max_length=20, null=False, blank=...
[ "baridzimaximillem@gmail.com" ]
baridzimaximillem@gmail.com
0bce70d10cc3aaf768ca97f81cc8c150bf7dc968
e5483ab737acd9fb222f0b7d1c770cfdd45d2ba7
/ecommerce/core/migrations/0019_auto_20200617_1118.py
ac79742a44b8082f258a0b47704601705075a955
[]
no_license
mxmaslin/otus_web
6c1e534047444d7a1fc4cd1bf8245c25d9fc4835
b90ad69e1b5c1828fa2ace165710422d113d1d17
refs/heads/master
2022-12-09T19:52:58.626199
2020-07-07T19:15:52
2020-07-07T19:15:52
226,154,128
1
1
null
2022-12-08T03:23:10
2019-12-05T17:25:11
JavaScript
UTF-8
Python
false
false
2,545
py
# Generated by Django 2.2.12 on 2020-06-17 08:18 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0018_coupon_refund_userprofile'), ] operations = [ migrations.Alt...
[ "zapzarap@yandex.ru" ]
zapzarap@yandex.ru
cfa5f4341bf4ff6482ca10400733edefed6df658
f3693916a8b118bf139364604dac3f51235ed613
/functional/Components/Clients/Clients_GET/test_TC_42892_Clients_GET_Invalid_Page_Size.py
8e24a8ec90dc24677d7dd10d3374b3b4a548f8b0
[]
no_license
muktabehera/QE
e7d62284889d8241d22506f6ee20547f1cfe6db1
3fedde591568e35f7b80c5bf6cd6732f8eeab4f8
refs/heads/master
2021-03-31T02:19:15.369562
2018-03-13T02:45:10
2018-03-13T02:45:10
124,984,177
0
0
null
null
null
null
UTF-8
Python
false
false
1,684
py
# -*- coding: UTF-8 -*- """PFE Component Tests - Clients. * TC-42892 - Clients GET: Verify that 20 records is displayed on providing 'page-size' value as 0 for 'page' parameter using request GET /clients. Equivalent test CURL command: curl -H "Host: <client_host>" -H "Authorization: Bearer <valid_token>" ...
[ "mbehera@qumu.com" ]
mbehera@qumu.com
4b1816e64d86e656e29c4d7e8747cabafc9b5f74
4a36b5979b0753b32cff3956fd97fb8ed8b11e84
/1.0/_downloads/a783c0b285deabf61a1ae7035b88256a/cluster_stats_evoked.py
30ed1d1a078ff13647503661206530566df17338
[]
permissive
mne-tools/mne-tools.github.io
8aac7ae10bf2faeeb875b9a351a5530dc0e53154
495e878adc1ef3374e3db88604504d7542b01194
refs/heads/main
2023-09-03T07:06:00.660557
2023-09-03T04:10:18
2023-09-03T04:10:18
35,639,371
12
16
BSD-3-Clause
2023-05-05T19:04:32
2015-05-14T22:04:23
HTML
UTF-8
Python
false
false
2,790
py
# -*- coding: utf-8 -*- """ .. _ex-cluster-evoked: ======================================================= Permutation F-test on sensor data with 1D cluster level ======================================================= One tests if the evoked response is significantly different between conditions. Multiple comparison...
[ "dan@mccloy.info" ]
dan@mccloy.info
b21cc60288a12a525d33281ba13def79fd81b34a
597c4f48332251552a602122bb3d325bc43a9d7f
/etc/chapter09_stack_old/implement/04_empty.py
aacff5442075e0c2020872af886861589bfe5559
[]
no_license
Kyeongrok/python_algorithm
46de1909befc7b17766a57090a7036886361fd06
f0cdc221d7908f26572ae67b5c95b12ade007ccd
refs/heads/master
2023-07-11T03:23:05.782478
2023-06-22T06:32:31
2023-06-22T06:32:31
147,303,654
0
1
null
null
null
null
UTF-8
Python
false
false
407
py
class Stack1(): arr = [] last_index = 0 def __init__(self, size=10000): self.arr = [None] * size def push(self, value): self.arr[self.last_index] = value self.last_index += 1 def pop(self): value = self.arr[self.last_index - 1] self.last_index -= 1 ...
[ "oceanfog1@gmail.com" ]
oceanfog1@gmail.com
b34a8a5649c8d6340f7eb3cfb2c1d166f74f221b
33736b585caa659ac4a5a8a1ac52df50bdf71f1b
/py_solution/5_SMS.py
53e953b2191981118abe61d67c0f78617db28fe7
[]
no_license
oliverhuangchao/epic_interview
3d649fadab0728c629bfe9d8cc14b9045a593385
4cfdbc0b83e13e7552633e566b3ddbb4a250a6a0
refs/heads/master
2021-01-10T22:29:37.663863
2015-07-17T18:55:42
2015-07-17T18:55:42
38,897,661
0
0
null
null
null
null
UTF-8
Python
false
false
1,412
py
# SMS # You are given a telephone keyboard # 0-0, 1-1, 2-ABC2, 3-DEF3, 4-GHI4, 5-JKL5, 6-MNO6,7-PQRS7, 8-TUV8, 9-WXYZ9, *-space, # #-char separater # if you type "2", you will get 'A', that is "2"-'A', "22"-'B' ,"222"-'C', "2222"-'D' # However, the digits can repeated many times # "22222"-you get 'A' again . War...
[ "chaoh@g.clemson.edu" ]
chaoh@g.clemson.edu
5e405561491c9f8ec9865d157896c876e026bf58
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_2/mhmmik002/question2.py
f65b3961a2a06e9df45c62d5bc009ab70df32d71
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
2,274
py
print("Welcome to the 30 Second Rule Expert") print("------------------------------------") print("Answer the following questions by selecting from among the options.") x=input("Did anyone see you? (yes/no)\n") if (x) == "yes": b=input("Was it a boss/lover/parent? (yes/no)\n") if (b) == "no": ...
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
b5b6b93910e5075aaefa207e44ac09ac7a47bada
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_89/41.py
4cb3ead2a2dc396c5a937e620544e8867f8ae5e0
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,082
py
#!/usr/bin/env python primes=[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311,...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
0cbeaf2442721ecc71a0cd8158504cac1b4e4f47
eade1861db1968645e0e17dfaa5250a4b8245b98
/instacart/faron.py
bf8a14a8e3fb487d4321cee3fb9b8eb7eb4a4b08
[]
no_license
piupiuup/competition
5b5da56fed336e07cf99cef8f5bfe89a8f771900
076c30df3d2647cb3580c543e604375e84590ca7
refs/heads/master
2022-09-30T14:47:01.244084
2020-05-30T12:56:02
2020-05-30T12:56:02
268,074,180
1
0
null
null
null
null
UTF-8
Python
false
false
2,764
py
""" @author: Faron """ import numpy as np import pandas as pd from joblib import Parallel, delayed import multiprocessing from datetime import datetime ''' Calculates (user, product) order_streak for the last n orders. - abs(order_streak) is length of streak - sgn(order_streak) encodes type of streak (non-ordered vs ...
[ "278044960@qq.com" ]
278044960@qq.com
aeb73fa853bdfc044c427f1d12e75525607b2690
b7d766db43e1857bc1c886bbffa01817d201fb2e
/Algorithm PS/이것이 취업을 위한 코딩테스트다/Chapter 11 그리디 문제/볼링공 고르기.py
7b772fe7bd59365f6202c61571944cf8694f0793
[]
no_license
Jongminfire/Python
ae4010b23b60b59cddd837344784ef9da33d1b1d
11219310cd13c18647c3220b89878c25fdc98922
refs/heads/main
2023-07-27T20:27:12.612883
2021-09-10T08:05:01
2021-09-10T08:05:01
307,398,237
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
n,m = map(int,input().split()) ball = list(map(int,input().split())) # 중복을 제외한 종류를 얻기 위해 (문제에서는 m이 10이하 이므로 list로 선언해도 됨) s = set(ball) answer = 0 # 중복이 하나도 없는 경우 계산 for i in range(1,n): answer += i # 중복된 만큼 빼주기 for i in s: answer -= ball.count(i)-1 print(answer)
[ "51112542+Jongminfire@users.noreply.github.com" ]
51112542+Jongminfire@users.noreply.github.com
1b1ff1573ecfd049b15a8a82ced9916ca5a8548e
cd127231a354bf7a299667e65cbd83265988be7f
/COMPANIES/ness/ex.py
f54d1ef46bca7fff2e8525f57769802775ccf1a2
[]
no_license
nagireddy96666/Interview_-python
de96c8d2dfd56343351bd0039adad561e79aac1a
6789d200ded60575682f467c880990937e4d4f0f
refs/heads/master
2020-03-10T01:53:17.185819
2018-04-11T16:22:05
2018-04-11T16:22:05
129,121,777
1
0
null
null
null
null
UTF-8
Python
false
false
1,416
py
>>> x=(1,2,(4,5,6,7,8)) >>> x[2][1:4] (5, 6, 7) >>> "".join([str(i) for i in x[2][1:4]]) '567' >>> s="apple banna and apple banna " >>> s.count('apple') 2 >>> s.count('banna')==s.count('apple') True >>> l=['apple',['banna','apple']] >>> l.count('apple') 1 >>> set(l) Traceback (most recent call last): File "<pyshell#...
[ "nagireddy96666@gmail.com" ]
nagireddy96666@gmail.com
e80898bbcbe582829b80d0cba3f32816f4b4f2e6
15102eb2c657a296eb00821dc378225b79fbc17e
/Homework/venv/Lib/site-packages/pip-19.0.3-py3.7.egg/pip/_vendor/html5lib/treebuilders/__init__.py
719f41d61f65e2d4064afc9d24e406f6c2af3e92
[]
no_license
yuju13488/pyworkspace
746446b3573fa6241d979b205e964e7d52af009b
0c77836185237450ee446542e6ff3856c7cd7de1
refs/heads/master
2020-08-02T03:56:55.577735
2019-10-04T05:50:56
2019-10-04T05:50:56
211,226,300
0
0
null
null
null
null
UTF-8
Python
false
false
3,607
py
"""A collection of modules for building different kinds of trees from HTML documents. To create a treebuilder for a new type of tree, you need to do implement several things: 1. A set of classes for various types of elements: Document, Doctype, Comment, Element. These must implement the interface of ``base.treebui...
[ "shiyoo123@hotmail.com" ]
shiyoo123@hotmail.com
6a8fd64fa290a4515022aa9b4be3f29099b8f7b8
537e2be29992f8bfd3fb2797003102f4e79f5f9f
/scripts/seq-composition
617c244546da86e1baf3cf510e368eabb5095e37
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
etal/biofrills
a0cf45700abbda865f71d55030717dee4d769446
36684bb6c7632f96215e8b2b4ebc86640f331bcd
refs/heads/master
2020-06-01T16:29:41.540511
2013-10-21T23:01:19
2013-10-21T23:01:19
5,113,363
5
1
null
null
null
null
UTF-8
Python
false
false
642
#!/usr/bin/env python """Print the frequencies of each letter in a sequence set.""" # TODO - move the calculation to module (take input stream, return freqs) import fileinput from collections import Counter # Count character types counts = Counter() for line in fileinput.input(): if line.startswith('>') or not l...
[ "eric.talevich@gmail.com" ]
eric.talevich@gmail.com
7362e34f612448e62b39d7ee13d6f41730354825
ba27372850fd287f4e268f486103afb797c7f4f4
/setup.py
286ff3234f0365f85c60fc77027909c3e6576437
[ "BSD-3-Clause" ]
permissive
django-blog-zinnia/feed2zinnia
9702a3b177f16009ac49907b2298f98243fab374
ec1a5e44f6175dab248e2f4f9ba3f9ecb2800e6b
HEAD
2016-09-16T05:26:56.676013
2015-01-15T11:19:01
2015-01-15T11:19:01
29,293,499
0
1
null
null
null
null
UTF-8
Python
false
false
1,092
py
"""Setup script of feed2zinnia""" from setuptools import setup from setuptools import find_packages import zinnia_feed setup( name='feed2zinnia', version=zinnia_feed.__version__, description='Import your RSS or Atom feed into Zinnia', long_description=open('README.rst').read(), keywords='django,...
[ "fantomas42@gmail.com" ]
fantomas42@gmail.com
177e721a596ee080d3343228f66a65ecd4fa0724
dc965a62709bbb2c6c9ad01859a83507d7457941
/Assignments/Class Assignments/AutoGenerateClass.py
ee53ba982de479f56ddc5aeb651099442d698a61
[]
no_license
JyotiSathe/Python
ead31a84cde86d734acdf0ad83c27c6bb1c1a331
846371d678ba225c210493605233b262a51bd950
refs/heads/master
2021-05-11T22:38:30.299035
2018-06-24T14:08:37
2018-06-24T14:08:37
117,364,196
0
0
null
null
null
null
UTF-8
Python
false
false
692
py
class AutoGenerate: def __init__(self,start,stop,step=1): self.start=start self.stop=stop self.step=step def Next(self): self.start+=self.step if self.start>=self.stop: raise StopIteration yield self.start def next(self): ret...
[ "noreply@github.com" ]
JyotiSathe.noreply@github.com
a9dfdb93f377c71c1655c5383fe4d557af7f730b
6758974fd7046a3947f1387a788cfebe7ac85b22
/BilibiliUpVideosDownloader/BilibiliUpVideosDownload.py
d5eba781595ae6be622bd83dbf99b1ad88cb45dd
[]
no_license
HkerVit/facebook-api-video-upload-py
d85ec55c3e7adacaf094b8440111ccdb8d065a6f
6bcf0f4c08512c5b3896c6f61a80de66c0a59744
refs/heads/main
2023-03-16T22:42:48.137863
2021-03-11T03:49:23
2021-03-11T03:49:23
346,636,830
1
0
null
2021-03-11T08:51:47
2021-03-11T08:51:46
null
UTF-8
Python
false
false
2,444
py
import sys, getopt import requests import json import os import pymysql def get_history(bvid): find_sql = "SELECT * FROM download_history_bilibili WHERE bvid='{}'".format(bvid) findres = cursor.execute(find_sql) if findres == 0: res = False else: res = True return res ...
[ "root@vultr.guest" ]
root@vultr.guest
256bc94180a64e4adbbbbc23b29e319b6f40ded7
751b094918ae9200afe7824d58804549082caa95
/src/python/WMComponent/DBS3Buffer/Oracle/CreateBlocks.py
cad2bf954ebb5bcb10c781f908e8dbdf8a3500e2
[]
no_license
cinquo/WMCore
7ebd13269f42eb97f416f8f2bdaca05fa93c6afc
122f9332f2e944154dd0df68b6b3f2875427b032
refs/heads/master
2021-01-09T06:28:58.947626
2013-06-05T08:31:53
2013-06-05T08:31:53
2,965,330
1
0
null
null
null
null
UTF-8
Python
false
false
346
py
#!/usr/bin/env python """ _DBSBuffer.SetBlockStatus_ Create new block in dbsbuffer_block Update file to reflect block information """ import threading import exceptions from WMComponent.DBS3Buffer.MySQL.CreateBlocks import CreateBlocks as MySQLCreateBlocks class CreateBlocks(MySQLCreateBlocks): """ Oracl...
[ "sfoulkes@4525493e-7705-40b1-a816-d608a930855b" ]
sfoulkes@4525493e-7705-40b1-a816-d608a930855b
3b126b869bfccc6a9d0b195367775643248e1374
1caf4418f3549567637f5e9893a445f52a38c6a0
/CmsAdmin/user_content/api/resources/account_verify_api.py
69ed7dcf8e0a5f7723260d2e105ebf033f022654
[]
no_license
Final-Game/social_network_backend
c601563e08c0fd7de72a614944f354ef8d2d31d8
8111787d1d20eb87733ae360d8baa745a65e2743
refs/heads/master
2023-03-04T21:12:43.147084
2021-02-23T03:45:22
2021-02-23T03:45:22
290,542,389
0
0
null
null
null
null
UTF-8
Python
false
false
1,577
py
from user_content.api.resources.filters.account_verify_filter import AccountVerifyFilter from user_content.api.serializers.resources.account_verify_serializer import ( AccountVerifySerializer, ) from rest_framework.filters import OrderingFilter, SearchFilter from django_filters.rest_framework import DjangoFilterBac...
[ "kakavip.198.kaka@gmail.com" ]
kakavip.198.kaka@gmail.com
a7a6bbcef0abbc635c7fab15e94f6e05e49edb93
8a5ccfbd09fdc3eb42e8240c0b7ceaf981f27814
/astropy_stark/astropy_stark/myresample.py
3955dbeb0583809c82943f8a3f5932d6b34aed52
[]
no_license
hlabathems/pycecream
97edfd388e32ab12b22765debab31ee8c4929ab4
cd52937c3ff053dede0b02803933ba58789d5ff3
refs/heads/master
2020-06-09T22:46:14.114693
2019-06-19T17:42:24
2019-06-19T17:42:24
193,521,752
0
1
null
2019-06-24T14:30:05
2019-06-24T14:30:04
null
UTF-8
Python
false
false
6,010
py
#### code to randomly resample a set of input light curves #10/9/2017 sampcode 3 update includes sampmin the minum spacing between data points #sampcode 4, dtave indicates the minimum space between data points, data points will be selected (with no interpolation) from the parent sample, skipping points until the minimu...
[ "david.starkey@vortexa.com" ]
david.starkey@vortexa.com
8867897937961a346c8a6e06b802258aec31ed5c
02f42acb280288acba54fc045c4163df2f069d55
/project/migrations/0008_merge_20210312_1000.py
9e0c30331fec84f947450cf9076177129855f675
[]
no_license
banana1019/tumbluv-backend
a05b0faebc63e83248b2e81d026fe26d5a5c085b
8592112284672fefdf9e4e76aeee1d1cedaaee82
refs/heads/main
2023-04-12T20:16:09.992472
2021-04-26T10:59:47
2021-04-26T10:59:47
361,158,437
0
0
null
null
null
null
UTF-8
Python
false
false
273
py
# Generated by Django 3.1.6 on 2021-03-12 10:00 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('project', '0007_auto_20210309_2313'), ('project', '0007_auto_20210309_2055'), ] operations = [ ]
[ "68374847+Kang-kyunghun@users.noreply.github.com" ]
68374847+Kang-kyunghun@users.noreply.github.com
cdcb2620849cb8b9df057128cafd916549c05694
5fcc3fd608a794d260368318c62547f74d4c1416
/checksum_Luhn.py
c0db1474e1bb065768ca070528051853e468d68b
[]
no_license
ds-gurukandhamoorthi/intro-python-exs
241fb9158096479a100ef378f291ba83e1a7d5d4
68c386e51c13d0f31e273016eefc4e29ddecdc04
refs/heads/master
2022-02-25T22:28:41.061722
2019-10-22T18:36:46
2019-10-22T18:36:46
103,829,521
0
0
null
null
null
null
UTF-8
Python
false
false
1,247
py
import argparse def sum_digits(n): res = n % 9 return res if res > 0 else res + 9 def sum_ISBN(num, mul=3): return sum(int(n) if i %2 == 0 else int(n)*mul for i, n in enumerate(str(num))) def is_valid_ISBN(num): if len(str(num)) != 13: return False return sum_ISBN(num) %10 == 0 def is_va...
[ "ds.gurukandhamoorthi@gmail.com" ]
ds.gurukandhamoorthi@gmail.com
117e37cdfea8e8164e6d4d2ce18c49fcaa106dfb
ab9cfa8aa28749ebd18c4fa4c8712c2198e72501
/复杂链表的复制.py
9af36bf98445059ae00b4559e5bdf9326c4271a6
[]
no_license
joseph-mutu/JianZhiOfferCodePics
d71e780483909390b436f81989000a277daac11d
8d41326cb2b9bc1379682fa6364a68c0ce62dbee
refs/heads/master
2020-08-03T14:39:59.666806
2019-09-30T06:17:36
2019-09-30T06:17:36
211,788,783
0
0
null
null
null
null
UTF-8
Python
false
false
1,278
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2019-08-26 09:10:31 # @Author : mutudeh (josephmathone@gmail.com) # @Link : ${link} # @Version : $Id$ import os class RandomListNode: def __init__(self, x): self.label = x self.next = None self.random = None class Solution: # 返回 RandomListNode d...
[ "josephmathone@gmail.com" ]
josephmathone@gmail.com
2363d85ed35aec90334d9ce83011ed94d674768c
fd7720dfc136eb92dbff8cc31e0f83bb8bbced16
/simulation/predictor.py
6a3c114a0e8e87f5a466f0c9e3d90c5c6f75dd2b
[]
no_license
Villux/golden_goal
d134a1660dd32f0b4d05f720993dd23f8a064faf
f36f4dd0297e2e52c0f990cb3ac134f70fc16780
refs/heads/master
2020-03-27T01:53:09.863147
2018-11-15T15:40:04
2018-11-15T15:40:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,484
py
import numpy as np from scipy.stats import poisson class OutcomePredictor(): def __init__(self, model): self.model = model def predict_outcome_probabilities(self, x): return self.model.predict_proba(x)[0] def predict(self, feature_vector): outcome_proba = self.predict_outcome_prob...
[ "villej.toiviainen@gmail.com" ]
villej.toiviainen@gmail.com
3ee0b6c42d9e38196d0f53cc53391ef21c05c5df
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03240/s759213189.py
1d4f6ebd1ea989b7a9e3ce2eca0c51eb2d3ea865
[]
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
710
py
n = int(input()) xyh = [list(map(int, input().split())) for _ in range(n)] for i in range(101): for j in range(101): s = -1 flag = True limit = float('inf') for x, y, h in xyh: if h != 0: H = h + abs(x-i) + abs(y-j) if s != -1: ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
6d417a3569822b41ad57ff5456be22691250b6f6
b66c12a4304c6af00d58a1f83e453dbc739ae60d
/survey/features/page_objects/investigators.py
4e7cb29662126ec40e31708b493fda0f2b1d3c45
[ "BSD-2-Clause" ]
permissive
madhavaramu/uSurvey
060dae008f975a7cdb77ef8b0c5d820842422637
681e1d91fbedf94e840858e1ef09538777ce3e50
refs/heads/uSurvey
2020-04-11T06:28:17.220192
2016-12-06T13:24:45
2016-12-06T13:24:45
68,372,980
0
1
null
2016-09-16T11:03:44
2016-09-16T11:03:43
null
UTF-8
Python
false
false
5,651
py
# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8 from time import sleep from survey.features.page_objects.base import PageObject from survey.investigator_configs import COUNTRY_PHONE_CODE from rapidsms.contrib.locations.models import Location from lettuce.django import django_url from survey.models import EnumerationArea ...
[ "antsmc2@yahoo.com" ]
antsmc2@yahoo.com
bf1ff2870f3e7095975be2860e2c3f653b3482ee
8948aa88edf47ca788ec464a9a6115e2ef46e4cf
/rastervision2/core/data/label_source/object_detection_label_source_config.py
5ff23847d45a255ae547ea060760244f53e3de16
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
etraiger/raster-vision
71687177f44ade3495e2adcbe87bcacb3948c168
dc2f6bc688002375b91acc5df59d60c476022a96
refs/heads/master
2022-11-21T16:24:27.467471
2020-06-17T14:43:25
2020-06-17T14:43:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
688
py
from rastervision2.core.data.label_source import (LabelSourceConfig, ObjectDetectionLabelSource) from rastervision2.core.data.vector_source import (VectorSourceConfig) from rastervision2.pipeline.config import (register_config) @register_config('object_detection_label...
[ "lewfish@gmail.com" ]
lewfish@gmail.com
07907361b2de76395ad32702e0f64cc5fb4c1bd3
71d4381d6e78e1078720380fa5d26f323e8426bf
/python/services/firebase/beta/apple_app.py
18349529600e966e53542dc66b96a41f66c2c809
[ "Apache-2.0" ]
permissive
GoogleCloudPlatform/declarative-resource-client-library
0edb9c3fc4bbc8f2df014ad8b92c13611b45fe26
dd32fc7f3a041b5c73a1ad51f82871221d93b621
refs/heads/main
2023-08-19T00:12:42.859403
2023-08-16T16:46:52
2023-08-16T16:49:19
327,995,099
26
28
Apache-2.0
2023-08-09T22:16:39
2021-01-08T19:34:57
Go
UTF-8
Python
false
false
5,908
py
# Copyright 2023 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
557ec87e81eefffe537c57d04561b95ab3ddc620
426a3f961982db52360a3e66c326b36a1d0a91ae
/object oriented programming/Polymorphism/Methodoverloading.py
cba84c2f6aac3d0ff0a41cbedb6b0535ba633546
[]
no_license
Sibinvarghese/PythonPrograms
c121f8eaf06b2fcbbd15f64b54c13771e82e5d99
c0e0951dab3ff0921ae2e25dfb086bb94d805464
refs/heads/master
2023-02-17T10:27:59.876242
2021-01-13T03:51:51
2021-01-13T03:51:51
329,186,398
0
0
null
null
null
null
UTF-8
Python
false
false
325
py
from smtplib import LMTP class Maths: def add(self): num1,num2=10,20 print(num1+num2) def add(self,num1): num2=50 print(num1+num2) def add(self,num1,num2): # This is Called recently implemented method print(num1+num2) obj=Maths() obj.add(10,20) # obj.add(30) # obj....
[ "sibinmvarghese@gmail.com" ]
sibinmvarghese@gmail.com
04d24f794aa036733d2b00b2aa67933a0d67d36a
37977ac3865502cac5b4d61f5e628d9129c711e2
/2019-RoundG/shifts.py
ba90f6c58ef4541539cd7b38b92b8031a7fca127
[]
no_license
YeahHuang/Kickstart
932c3ee14a4afee3c1cbe7acb58cb65789c1225a
08d141768cf93294be8a9c45fa39a4d14f9aa592
refs/heads/master
2021-07-08T05:52:00.769972
2020-07-19T15:43:13
2020-07-19T15:43:13
130,649,967
0
0
null
null
null
null
UTF-8
Python
false
false
1,169
py
from bisect import bisect_left, bisect_right, insort_left, insort_right from string import ascii_lowercase from heapq import heappush, heappop, heapify from collections import Counter, defaultdict from itertools import product global ans global a,b,suma, sumb, n, h def dfs(i, cur_a, cur_b): global ans,a,b,suma, s...
[ "noreply@github.com" ]
YeahHuang.noreply@github.com
c70990a5217ff8db6ecdb0e8f3057427189a090b
58afefdde86346760bea40690b1675c6639c8b84
/leetcode/next-greater-element-i/282267514.py
ff135633679788c1ecdd8891789789e9ac47b07c
[]
no_license
ausaki/data_structures_and_algorithms
aaa563f713cbab3c34a9465039d52b853f95548e
4f5f5124534bd4423356a5f5572b8a39b7828d80
refs/heads/master
2021-06-21T10:44:44.549601
2021-04-06T11:30:21
2021-04-06T11:30:21
201,942,771
1
0
null
null
null
null
UTF-8
Python
false
false
573
py
# title: next-greater-element-i # detail: https://leetcode.com/submissions/detail/282267514/ # datetime: Thu Nov 28 20:22:56 2019 # runtime: 44 ms # memory: 12.8 MB class Solution: def nextGreaterElement(self, nums1: List[int], nums2: List[int]) -> List[int]: res = [-1] * len(nums1) pos = {n: i for...
[ "ljm51689@gmail.com" ]
ljm51689@gmail.com
addab2413e8bdacb53c294cc23deaaa6c4a83ccd
3a5a9f79e53f30a719cf51dedcc71a7153570103
/apicatslist/models.py
97c24a1b8c4348349a4bfab35b4d03ab1358e76b
[]
no_license
KiaraRaynS/Catslist-23-06-16-
b5ab80d6c363a161806133cfa1a1187728811395
7b8ec46684ca64e185e047d61379248e94390c64
refs/heads/master
2021-01-19T01:23:46.383024
2016-08-17T07:26:26
2016-08-17T07:26:26
61,828,616
0
0
null
null
null
null
UTF-8
Python
false
false
338
py
from rest_framework.authtoken.models import Token from django.dispatch import receiver from django.db.models.signals import post_save @receiver(post_save, sender='auth.User') def usertoken(**kwargs): created = kwargs.get('created') instance = kwargs.get('instance') if created: Token.objects.create...
[ "sherman.rayn@outlook.com" ]
sherman.rayn@outlook.com
d88b07c53a5a5106cb51936f34c9493a3c87903b
a6c7d1b57c7d4804fc651adc13416853ec6c86cd
/test/test_samples/test_samples.py
c8015cb6d081a6b61475b36b22a5d15d3bfdadf4
[ "MIT" ]
permissive
executablebooks/mistletoe-ebp
367c9c031a457f9f3c089bfb7a86b81309f8840b
229812436726fd9b1af85c6e66ff8c81b415758d
refs/heads/master
2022-12-05T03:17:00.975786
2020-08-06T17:53:59
2020-08-06T17:53:59
245,217,804
3
0
null
null
null
null
UTF-8
Python
false
false
412
py
import os from mistletoe import markdown PATH = os.path.dirname(__file__) def test_syntax(file_regression): with open(os.path.join(PATH, "syntax.md")) as handle: file_regression.check(markdown(handle.read()), extension=".html") def test_jquery(file_regression): with open(os.path.join(PATH, "jquery...
[ "chrisj_sewell@hotmail.com" ]
chrisj_sewell@hotmail.com
0a7042dfc022c5fa43ff7bc37a587ad6d7f6f90b
ebbcd3815d00123238cff2ae4ab47d8a0155df55
/apps/xfzauth/forms.py
86f8c7426b0e32abec5dba02d80ae78dd85648c6
[]
no_license
zhaocheng1996/xfz_test
f4e1393e8a416371761b628a72af38bed2e3b5a0
724b17632ac7671db0baa460b988a59e45d5fc0d
refs/heads/master
2020-04-30T16:26:28.833609
2019-04-02T06:51:54
2019-04-02T06:51:54
176,948,181
0
0
null
null
null
null
UTF-8
Python
false
false
1,848
py
from django import forms from apps.forms import FormMixin from django.core.cache import cache from .models import User class LoginForm(forms.Form,FormMixin): telephone = forms.CharField(max_length=11) password = forms.CharField(max_length=20,min_length=6,error_messages={"max_length":"密码最多不能超过20个字符!","min_lengt...
[ "34829837+zhaocheng1996@users.noreply.github.com" ]
34829837+zhaocheng1996@users.noreply.github.com
9373a09c9d4289563607e011d4788444a4b72147
9bbb00c09aaaa19565d3fb8091af568decb5820f
/4_Intermediate_Importing_Python/2_Interacting_With_APIs_To_Import_Data_From_The_Internet/4_Checking_The_Wikipedia_API.py
7bba80f6ccb09003b1c81c42f2c8dd0cf911ea65
[]
no_license
PeterL64/UCDDataAnalytics
4417fdeda9c64c2f350a5ba53b2a01b4bdc36fc7
d6ff568e966caf954323ecf641769b7c79ccb83a
refs/heads/master
2023-06-14T04:10:41.575025
2021-07-07T15:23:50
2021-07-07T15:23:50
349,780,719
0
0
null
null
null
null
UTF-8
Python
false
false
609
py
# Checking out the Wikipedia API # Nested JSONs # Import Packages import requests # Assign the URL to the variable: url url = 'https://en.wikipedia.org/w/api.php?action=query&prop=extracts&format=json&exintro=&titles=pizza' # Package the request, send the request and catch the response: r r = requests.get(url) # De...
[ "peterlyonscbar@gmail.com" ]
peterlyonscbar@gmail.com
4c801b6dbe162b6d05d2b0f9077b249bed8522be
dad12d5cfdae207fd5391eca45c86ef1bd6447bd
/zmq_plugin_bridge/monitor.py
b76e1cbc0f7e6c0935494b55ebcc6f65e0750259
[]
no_license
JozzOfLyfe/Threejs
08f9282bba37d2a15b3d9d585930e0293f3b138f
50f585b3afa0dcaacced7bec7727a75fc40c0f99
refs/heads/master
2021-01-20T19:39:40.302550
2016-07-22T16:39:12
2016-07-22T16:39:12
62,829,783
0
1
null
2016-07-22T16:39:12
2016-07-07T18:33:59
JavaScript
UTF-8
Python
false
false
3,995
py
# coding: utf-8 import json import logging import sys from zmq import green as zmq from zmq_plugin.plugin import Plugin from zmq_plugin.schema import (validate, PandasJsonEncoder, encode_content_data, decode_content_data) import IPython import arrow import ...
[ "christian@fobel.net" ]
christian@fobel.net
48653f7afa85e42005da9783c9c96c4c43582d04
a8c0867109974ff7586597fe2c58521277ab9d4d
/LC88.py
b314c31d431d89596bf96bcee8a1b853a8a3b00a
[]
no_license
Qiao-Liang/LeetCode
1491b01d2ddf11495fbc23a65bb6ecb74ac1cee2
dbdb227e12f329e4ca064b338f1fbdca42f3a848
refs/heads/master
2023-05-06T15:00:58.939626
2021-04-21T06:30:33
2021-04-21T06:30:33
82,885,950
0
0
null
null
null
null
UTF-8
Python
false
false
1,320
py
class Solution(object): def merge(self, nums1, m, nums2, n): """ :type nums1: List[int] :type m: int :type nums2: List[int] :type n: int :rtype: void Do not return anything, modify nums1 in-place instead. """ curr = 0 for num in nums2: ...
[ "qiaoliang@Qiaos-MacBook-Pro.local" ]
qiaoliang@Qiaos-MacBook-Pro.local
94a551407625272ce72f502bb937aa316c9dff30
9abc2f4fbf1b31b5a56507437b4a8d9c3f3db7e6
/movies/urls.py
5b2dfb674ea70f3227f015265650fdd1faabd2f2
[]
no_license
odbalogun/ticketr
e9fe8461d66dabe395f0e1af8fbecc67dbb16e97
94f24c82f407f861f1614a151feb3fdd62b283e5
refs/heads/master
2022-11-30T22:40:30.931160
2019-08-09T14:34:38
2019-08-09T14:34:38
188,833,600
0
0
null
2022-11-22T03:50:30
2019-05-27T11:50:07
Python
UTF-8
Python
false
false
232
py
from django.urls import path from .views import MovieDetailView, MovieListView app_name = 'movies' urlpatterns = [ path('', MovieListView.as_view(), name='list'), path('<pk>/', MovieDetailView.as_view(), name='detail'), ]
[ "oduntan@live.com" ]
oduntan@live.com
ece1320d825400cb0e92383a86db4b36ec2f815f
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03845/s420639446.py
2bb83b6030c44ccd6ef52dd5ec54eab56c4cdf2c
[]
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
254
py
from sys import stdin n = int(input()) t = list(map(int, input().split())) m = int(input()) sum_t = sum(t) ans = [] for _ in range(m): p, x = map(int, stdin.readline().strip().split()) ans.append(sum_t - t[p-1] + x) for i in ans: print(i)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
a85b28586d5142d231dad051aaec6bbade136a1b
b501a5eae1018c1c26caa96793c6ee17865ebb2d
/data_compression_and_archiving/gzip/gzip_seek.py
a927d0dc0cf73da48f9b2242a96373f98fa54184
[]
no_license
jincurry/standard_Library_Learn
12b02f9e86d31ca574bb6863aefc95d63cc558fc
6c7197f12747456e0f1f3efd09667682a2d1a567
refs/heads/master
2022-10-26T07:28:36.545847
2018-05-04T12:54:50
2018-05-04T12:54:50
125,447,397
0
1
null
2022-10-02T17:21:50
2018-03-16T01:32:50
Python
UTF-8
Python
false
false
371
py
import gzip with gzip.open('example.txt.gz', 'rb') as input_file: print('Entire file:') all_data = input_file.read() print(all_data) expected = all_data[5:15] input_file.seek(0) input_file.seek(5) print('Starting at position 5 for 10 bytes:') partial = input_file.read(10) print(pa...
[ "jintao422516@gmail.com" ]
jintao422516@gmail.com
f0aefe5cd151f1d2f53ec1a7689f18e5fbc73561
36957a9ce540846d08f151b6a2c2d582cff1df47
/VR/Python/Python36/Lib/test/test_tcl.py
ba93edb736e64213e90fc8006166fdef79cc82e4
[]
no_license
aqp1234/gitVR
60fc952307ef413e396d31e0d136faffe087ed2b
e70bd82c451943c2966b8ad1bee620a0ee1080d2
refs/heads/master
2022-12-29T15:30:12.540947
2020-10-07T15:26:32
2020-10-07T15:26:32
290,163,043
0
1
null
2020-08-25T09:15:40
2020-08-25T08:47:36
C#
UTF-8
Python
false
false
130
py
version https://git-lfs.github.com/spec/v1 oid sha256:5d2b96fe46f7dcde01e44c07777df5125ffa70a5ff4a41c8f3d9ac5b08420a16 size 30385
[ "aqp1234@naver.com" ]
aqp1234@naver.com
fa8fee3c0516297125b7949177ef554e11e8ddc6
e9524305812608ae488884e5af133655f385a08a
/VueDjangoFrameWorkShop/settings.py
c2a37f3d41801705d17a8950fab2b5b60c610331
[ "MIT" ]
permissive
GryffindorMuggle/python3.6-django2.1-django-rest-framework
66c43ba70477c1d099309c6a80d0b788d2636de3
4e21db7ce9eff77d030deb74de33189352010765
refs/heads/master
2020-03-26T13:48:52.823676
2018-08-16T08:33:24
2018-08-16T08:33:24
144,958,050
2
0
null
null
null
null
UTF-8
Python
false
false
6,848
py
""" Django settings for VueDjangoFrameWorkShop project. Generated by 'django-admin startproject' using Django 2.0.2. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ ""...
[ "1147727180@qq.com" ]
1147727180@qq.com
c1c531d2e16c942466ed4ed651adf50c6a1f6ed3
9d64a438cdfe4f3feb54f2f0dc7431139c4b9fb9
/type_converter/icon_type_converter/actions/string_to_boolean/action.py
fe85b8b0d3c9bb94d56678f388240e518fe856a5
[ "MIT" ]
permissive
PhilippBehmer/insightconnect-plugins
5ad86faaccc86f2f4ed98f7e5d518e74dddb7b91
9195ddffc575bbca758180473d2eb392e7db517c
refs/heads/master
2021-07-25T02:13:08.184301
2021-01-19T22:51:35
2021-01-19T22:51:35
239,746,770
0
0
MIT
2020-02-11T11:34:52
2020-02-11T11:34:51
null
UTF-8
Python
false
false
864
py
import insightconnect_plugin_runtime from .schema import StringToBooleanInput, StringToBooleanOutput, Input, Output, Component # Custom imports below from insightconnect_plugin_runtime.exceptions import PluginException class StringToBoolean(insightconnect_plugin_runtime.Action): def __init__(self): super...
[ "noreply@github.com" ]
PhilippBehmer.noreply@github.com
b5f2f15ab28f76cf471a10e139fe25ecda72997b
489574745e7823d1dc22bda0676d6fa1b42ef547
/src/django_wools/templatetags/wools_for_wt_images.py
77493569dd7609d8a85ed03caa5f1fcbb2ef3fd6
[]
no_license
juliengueperoux/django-wools
9419239b27170fc701708817f1c3e19c57edcf7c
d7a0dd98a873cb2d41a3b26d18ddd243fe6d22b6
refs/heads/master
2023-09-05T07:31:34.831561
2021-05-17T13:45:41
2021-05-17T13:45:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,162
py
import re from enum import Enum from typing import Iterator, NamedTuple, Optional from django import template from wagtail.images.models import AbstractImage from ..settings import wool_settings register = template.Library() class WidthInfo(NamedTuple): """ Computed width from generate_widths() """ ...
[ "remy.sanchez@hyperthese.net" ]
remy.sanchez@hyperthese.net
6edf5f48c2d80e7fa0fef3d643563c3a07612cb8
512b388a53022f561e2375b4621f78572d3b4f04
/catalogues/migrations/0021_identifications_campox.py
dd681d8898ea94145bf51e32bebc8937817497db
[]
no_license
Madoka09/Worker15
006d5ac44dc55c3ae7f72d3b8300f3567395cdff
181012d309052b2df3d4ef99a197e8acef73a185
refs/heads/master
2023-03-24T05:29:02.060796
2021-03-16T21:56:21
2021-03-16T21:56:21
336,394,683
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
# Generated by Django 3.0.4 on 2020-11-23 20:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('catalogues', '0020_auto_20201123_1401'), ] operations = [ migrations.AddField( model_name='identifications', name='c...
[ "personal.galvan.francisco@gmail.com" ]
personal.galvan.francisco@gmail.com
0e87d7a6cea6e6444077e686b495635459e2db8c
33febf8b617ef66d7086765f1c0bf6523667a959
/test/automatic/density.py
a584970a7d4dc681c0c7d31e59502b15bc8a5b87
[]
no_license
JonasRSV/probpy
857201c7f122461463b75d63e5c688e011615292
5203063db612b2b2bc0434a7f2a02c9d2e27ed6a
refs/heads/master
2022-07-07T06:17:44.504570
2020-04-15T14:52:20
2020-04-15T14:52:20
245,820,195
1
0
null
null
null
null
UTF-8
Python
false
false
3,184
py
import unittest import time import numpy as np from probpy.distributions import normal import numba from probpy.density import UCKD, RCKD, URBK from probpy.sampling import fast_metropolis_hastings from probpy.search import search_posterior_estimation from probpy.distributions import normal, exponential, jit from probpy...
[ "jonas@valfridsson.net" ]
jonas@valfridsson.net
162735502472a321677a2df6fbcd5c3543c436a1
868e94b7121b1f4c27fdf1d5ff88cb2fa6786e47
/polling_stations/apps/data_finder/urls.py
189b4d82cd5de12b0d179d75ff039766677fb31d
[]
no_license
JoeMitchell/UK-Polling-Stations
df0ebc2343a9b18928263a60be5718f08588782e
861157b431f14eb24fdd17fb7380ac5e90d03a65
refs/heads/master
2021-01-24T04:35:49.749879
2016-02-29T11:55:46
2016-02-29T11:55:46
52,805,675
1
0
null
2016-02-29T16:27:05
2016-02-29T16:27:05
null
UTF-8
Python
false
false
564
py
from django.conf.urls import patterns, include, url from django.conf import settings from django.views.decorators.cache import cache_page from constituencies.views import ConstituencyList, ConstituencyView urlpatterns = patterns( '', url(r'^/$', cache_page(60*60)(ConstituencyList.as_view()), name='constituen...
[ "sym.roe@talusdesign.co.uk" ]
sym.roe@talusdesign.co.uk
ea4e5b13a18d090736df358341d6202a061d1db4
612325535126eaddebc230d8c27af095c8e5cc2f
/src/build/android/gyp/touch.py
d3a8735504614a4f317a231b2d10a4808cf31e0c
[ "BSD-3-Clause" ]
permissive
TrellixVulnTeam/proto-quic_1V94
1a3a03ac7a08a494b3d4e9857b24bb8f2c2cd673
feee14d96ee95313f236e0f0e3ff7719246c84f7
refs/heads/master
2023-04-01T14:36:53.888576
2019-10-17T02:23:04
2019-10-17T02:23:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
362
py
#!/usr/bin/env python # # Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import sys from util import build_utils def main(argv): for f in argv[1:]: build_utils.Touch(f) if __name__ ==...
[ "2100639007@qq.com" ]
2100639007@qq.com
aefb6400427a8ca905416089a51c9b81d336cb16
7701773efa258510951bc7d45325b4cca26b3a7d
/tkinter_explore/positionAppWindow.py
f479edd5f1b498b414abe22911f53753c94429d3
[]
no_license
Archanciel/explore
c170b2c8b5eed0c1220d5e7c2ac326228f6b2485
0576369ded0e54ce7ff9596ec4df076e69067e0c
refs/heads/master
2022-06-17T19:15:03.647074
2022-06-01T20:07:04
2022-06-01T20:07:04
105,314,051
0
1
null
null
null
null
UTF-8
Python
false
false
911
py
from tkinter import * import tkinter.messagebox as msgb root = Tk() # create a Tk root window w = 600 # width for the Tk root h = 300 # height for the Tk root # get screen width and height ws = root.winfo_screenwidth() # width of the screen hs = root.winfo_screenheight() # height of the screen # calculate x and y ...
[ "jp.schnyder@gmail.com" ]
jp.schnyder@gmail.com
ecd2bf9d8a8924b7839511254ca2f355886cbded
85601d534fbcc6df900af7509c189075a3112422
/src/aulas/03_desafio/datas.py
2c90d82c0273c05fb57f2b3dcbc61d6150d19ba8
[]
no_license
claudimf/python_oo_1
a58229abe5dc8a784e887ca94168bcdbbfc0f6ef
1749456f709b850f5340adecd8b47f860184ca5a
refs/heads/main
2023-03-22T14:17:16.232643
2021-03-09T20:14:23
2021-03-09T20:14:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
304
py
class Data: def __init__(self, dia, mes, ano): print("Construindo objeto...{}".format(self)) self.dia = dia self.mes = mes self.ano = ano def formatada(self): data = "{}/{}/{}".format(self.dia, self.mes, self.ano) print(data) return data
[ "claudi.freitas.prs@synergiaconsultoria.com.br" ]
claudi.freitas.prs@synergiaconsultoria.com.br
540ec371e20da9710f8b7d384d2aebac11bd4566
5d2d214fff5892d381d0328bca3db04b14e358fb
/final_design/tests/led_button/test.py
6de08985003f3434fd31485b02d71f28402fba87
[ "MIT" ]
permissive
DFEC-R2D2/r2d2
9552705188ed6e3d8c144881eb7c9ddfacfd8072
9b64233865ebfe9f0ca3f1b400b55cc8d6494adf
refs/heads/master
2021-01-20T13:27:36.953410
2018-10-30T21:37:50
2018-10-30T21:37:50
90,496,130
4
0
null
null
null
null
UTF-8
Python
false
false
823
py
#!/usr/bin/env python from __future__ import print_function from time import sleep import numpy as np import sys sys.path.append('../../python') from library import ButtonLED if __name__ == "__main__": button = ButtonLED(16,26,20) try: while True: choice = input("Enter LED color:\n0-Off...
[ "walchko@users.noreply.github.com" ]
walchko@users.noreply.github.com
b0a5d2a9d7f6eb5e27604901ec38a320cfa7aed6
fe39d984440b0dbb612b9d3e20b93a5e795ebefa
/part-1/py-10-recursia/r_04.py
7aa71334dc89df0abd03f6784bd5e568ee65376f
[]
no_license
maximkavm/py-algorithmization-and-programming
f7d6b1b13d2557511aaccec6d9b006ac871c5477
c1d8228601c3cea17e11e6a2736659ef395f675d
refs/heads/master
2023-08-14T09:11:02.433801
2021-03-01T19:30:26
2021-03-01T19:30:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
442
py
''' найти минимальный элемент списка ''' def get(lst): if len(lst) == 1: return lst[0] else: # return lst[0] if lst[0] < get(lst[1:]) else get(lst[1:]) # дублирование вызова = это плохо tmp = get(lst[1:]) return lst[0] if lst[0] < tmp else tmp # нет дублирования lst = [8, 4, 6, 5, -7, 9] # lst = [] # нет пр...
[ "ttxiom@gmail.com" ]
ttxiom@gmail.com
838da3ee7f8801a79052070457d4856066a9b52b
ced56909016fb7c2175c3911fc8481bd5fdf0800
/pytext/contrib/pytext_lib/resources/models.py
da9e9a7457bed0a62a52c84eb1994d4f3eb04695
[ "BSD-3-Clause" ]
permissive
coderbyr/pytext
e258a3aae625e6a2fd386b60f25ac44a7b4149fe
72c1ad835a30bef425494b02a6210f2e3232b1a4
refs/heads/master
2022-11-20T09:11:44.991716
2020-07-20T22:05:42
2020-07-20T22:07:15
281,286,078
1
0
NOASSERTION
2020-07-21T03:32:42
2020-07-21T03:32:41
null
UTF-8
Python
false
false
637
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved ROBERTA_BASE_TORCH = "roberta_base_torch" ROBERTA_PUBLIC = "roberta_public" XLMR_BASE = "xlmr_base" XLMR_DUMMY = "xlmr_dummy" URL = { ROBERTA_BASE_TORCH: "https//dl.fbaipublicfiles.com/pytext/models/roberta/roberta_base_...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
f8e579e2133a16d5c607a651e58a7752082a7494
2324dea2cb3003c8ab7e8fd80588d44973eb8c77
/Euler_5_251b.py
e0502f1b9bb84fe6bcae764690f07d67cf20cb16
[]
no_license
MikeOcc/MyProjectEulerFiles
5f51bc516cb6584732dc67bb2f9c7fd9e6d51e56
4d066d52380aade215636953589bf56d6b88f745
refs/heads/master
2021-01-16T18:45:44.133229
2015-05-27T18:28:43
2015-05-27T18:28:43
5,876,116
0
0
null
null
null
null
UTF-8
Python
false
false
1,550
py
# # Euler Problem 251 # # # from math import * from time import time from itertools import combinations from operator import mul def RetFact(n): #from time import time #st = time() ndiv = n factlist=[ ] ctr = 2 while ndiv >1: #temp = ndiv if (ndiv)%(ctr)==0: factlist.append(ctr) ndiv /...
[ "mike.occhipinti@mlsassistant.com" ]
mike.occhipinti@mlsassistant.com
c10f65b33d4bbfd4a45b433b2db3adb4e1b984bb
3d8b4e0415bd4d818c17dcf0b3fc1676caad47b6
/examples/switch/lan_host.py
9d44db8a2e8d2843b1dd1a31f598978dc82fb447
[ "MIT" ]
permissive
ShigemoriHakura/NintendoClients
68c08ab2f54e36fb41eab2b2461bedd5bd1522be
da56e272f8504bcc8e5238128d63ab6ee44fa2c7
refs/heads/master
2022-03-09T19:20:05.647911
2022-03-01T23:35:01
2022-03-01T23:35:01
252,926,498
0
1
MIT
2022-03-01T23:35:02
2020-04-04T06:30:32
null
UTF-8
Python
false
false
1,256
py
from nintendo.games import Splatoon2 from nintendo.pia import lan, settings, types from nintendo.nex import common import secrets import random import anyio import math import logging logging.basicConfig(level=logging.INFO) SESSION_ID = random.randint(1, 0xFFFFFFFF) HOST_ID = random.randint(1, 0xFFFFFFFFFFFFFFFF) H...
[ "ymarchand@me.com" ]
ymarchand@me.com
574ff80f57a6e8ad726a37f117325a4420e6af8d
31945f926e766e2a30ec8cfa720c32a943d84cea
/tests/data/test_split.py
f661482dece4d010326141046042b736a2003ba6
[ "MIT" ]
permissive
mcorniere/rxsci
3854129bbf1af727b40cfbc2cb4dedaa27bc8e5f
7c2bf433a760d4ecab8aee56227803a190458fbe
refs/heads/master
2023-02-10T05:56:03.607556
2021-01-05T14:41:09
2021-01-05T14:41:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,156
py
import rx import rx.operators as ops import rxsci as rs def test_split(): source = ["1a", "2a", "3b", "4b", "5c", "6c", "7c", "8d", "9d"] source = [ rs.OnCreateMux((1 ,None)), rs.OnNextMux((1, None), '1a'), rs.OnNextMux((1, None), '2a'), rs.OnNextMux((1, None), '3b'), r...
[ "romain.picard@oakbits.com" ]
romain.picard@oakbits.com
cc35a48b6c83a8e7b4678d1337571699e26f2e26
8acbd7fcfe1bcf94e4e895e58ac5c81f8ed13741
/fees/migrations/0001_initial.py
4d2a79465920cf7560126359a04d00bea99675fb
[]
no_license
Rajangupta09/School-beta
440af5d5d078a46036cfa3c50865f980c5ff1ace
3ca6ca9992d2b47bcfe1762beb8c88609d519ea5
refs/heads/master
2022-12-07T19:42:19.562804
2020-08-04T09:53:04
2020-08-04T09:53:04
284,509,100
0
0
null
null
null
null
UTF-8
Python
false
false
3,634
py
# Generated by Django 3.0.3 on 2020-05-16 14:24 from django.db import migrations, models import django.db.models.deletion import fees.models class Migration(migrations.Migration): initial = True dependencies = [ ('classform', '0001_initial'), ] operations = [ migrations.CreateModel...
[ "rjnkumar05@gmail.com" ]
rjnkumar05@gmail.com
609d8b4f4188c8ac49f0d80a912a0960915ab279
ab221e6778959a17a40585defdcf17b2ebf34908
/SpellingBeePlay.py
fad7da80b2739504abe8ad2716ca673962296735
[]
no_license
Mystified131/NYTImesGamesSolutions
f1e6a0905120764e9079666e6b59aa4201bf3270
349118cd1784888177b7475bcc7bd3b8ea20ba62
refs/heads/master
2023-03-23T17:02:25.341274
2021-03-07T09:02:13
2021-03-07T09:02:13
287,679,543
0
0
null
null
null
null
UTF-8
Python
false
false
4,519
py
import enchant from itertools import permutations import datetime import random from subprocess import call right_now = datetime.datetime.now().isoformat() tlist = [] for i in right_now: if i.isnumeric(): tlist.append(i) tim = ("".join(tlist)) d = enchant.Dict("en_US") conlst = ["B", "C", "D", "F", "...
[ "mystifiedthomas@gmail.com" ]
mystifiedthomas@gmail.com
779f6b0f802f2a2118bacba5ad0e88316ae714b0
d58bc2475a41e7c36e22947565c099908f84cfd6
/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_inventory/get.py
76bb8cb65578587169f50f0290859796eaadb706
[ "Apache-2.0" ]
permissive
yaronius/openapi-generator
d8390dc2cfd9330d3f05a1f517612d793e332ead
9f3fac53c1689b82bf4c99b664e10e4a5decfb8e
refs/heads/master
2022-11-03T02:27:44.670087
2022-08-17T12:17:30
2022-08-17T12:17:30
175,407,506
0
0
Apache-2.0
2023-09-04T20:41:29
2019-03-13T11:30:05
Java
UTF-8
Python
false
false
5,532
py
# coding: utf-8 """ Generated by: https://openapi-generator.tech """ from dataclasses import dataclass import re # noqa: F401 import sys # noqa: F401 import typing import urllib3 import functools # noqa: F401 from urllib3._collections import HTTPHeaderDict from petstore_api import api_client, exceptions imp...
[ "noreply@github.com" ]
yaronius.noreply@github.com
8b51d93cbec4433a5ff954290538addaaeac3696
4bc2af514877135a222826b2c5ac48632045f2fa
/django/juziom/userauth/form.py
d1f13721d408eb598e6074dd8485a31d79aa2690
[]
no_license
18734865664/python
1853481ac1dcd515f691cfc11557f76fbbb083de
25bc355ddb2abefc5a3736fb99e6345138ebbefc
refs/heads/master
2020-03-17T09:37:57.469741
2018-06-28T08:41:37
2018-06-28T08:41:37
133,482,315
0
0
null
null
null
null
UTF-8
Python
false
false
1,603
py
#coding:utf8 from django import forms from models import * class LoginForm(forms.Form): username = forms.CharField(max_length=255, widget=forms.TextInput(attrs={'class': 'form-control','placeholder':u'用户名'})) password = forms.CharField(widget=forms.PasswordInput(attrs={'class': 'form-control','placeholder':u'密...
[ "you@example.com" ]
you@example.com
cb7986e98a23496bf14138ac78df7fe003dfd9e5
50948d4cb10dcb1cc9bc0355918478fb2841322a
/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_operation_properties_py3.py
5f38d5397daca470b2e2a824ae06d5fcf2d20902
[ "MIT" ]
permissive
xiafu-msft/azure-sdk-for-python
de9cd680b39962702b629a8e94726bb4ab261594
4d9560cfd519ee60667f3cc2f5295a58c18625db
refs/heads/master
2023-08-12T20:36:24.284497
2019-05-22T00:55:16
2019-05-22T00:55:16
187,986,993
1
0
MIT
2020-10-02T01:17:02
2019-05-22T07:33:46
Python
UTF-8
Python
false
false
2,927
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 ...
[ "noreply@github.com" ]
xiafu-msft.noreply@github.com
53a93667c441c6cbc84bc7b42295359c9203f3ab
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/artificial/transf_Logit/trend_PolyTrend/cycle_7/ar_12/test_artificial_1024_Logit_PolyTrend_7_12_20.py
356fc68289ce4b41a07aca9517fc5a4f10b4de0d
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jmabry/pyaf
797acdd585842474ff4ae1d9db5606877252d9b8
afbc15a851a2445a7824bf255af612dc429265af
refs/heads/master
2020-03-20T02:14:12.597970
2018-12-17T22:08:11
2018-12-17T22:08:11
137,104,552
0
0
BSD-3-Clause
2018-12-17T22:08:12
2018-06-12T17:15:43
Python
UTF-8
Python
false
false
267
py
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "PolyTrend", cycle_length = 7, transform = "Logit", sigma = 0.0, exog_count = 20, ar_order = 12);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
c78f25abc910c9fb03d1dc449d75d91bae270bc1
0fb0dba210ff0f63515c464d7acc95ae32d7603c
/File Operations/Hide a File or Folder/hide-a-file-or-folder.py
4bfe8e23f58b91670e5d641e1f6a6d46d39681d6
[]
no_license
slad99/pythonscripts
7cbe6b8bb27c8c06e140c46e7c8cf286cbc56d8e
4e0ebb023899a602cb041ef6f153fd3b7ab032e9
refs/heads/master
2022-01-04T21:49:10.486758
2019-06-28T14:29:28
2019-06-28T14:29:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
993
py
PATH =r'C:\Users\ac\Desktop\AdobeAIRInstaller.exe' # give the path of the file or folder to hidden import ctypes class disable_file_system_redirection: _disable = ctypes.windll.kernel32.Wow64DisableWow64FsRedirection _revert = ctypes.windll.kernel32.Wow64RevertWow64FsRedirection def __enter__(self): ...
[ "noreply@github.com" ]
slad99.noreply@github.com
48db028ef8f7d1a4e3cb06f35a3d87d695fad4f9
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/response/AlipaySecurityProdFacePayResponse.py
1fe1ab1693136b166a60fe8ae2da572173c1432e
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
652
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipaySecurityProdFacePayResponse(AlipayResponse): def __init__(self): super(AlipaySecurityProdFacePayResponse, self).__init__() self._aa = None @property de...
[ "jiandong.jd@antfin.com" ]
jiandong.jd@antfin.com
d15d0cc4b11412348704da95bb09c8c43cc6c08d
2ed86a79d0fcd299ad4a01310954c5eddcf01edf
/tests/components/devolo_home_network/test_init.py
99b6053e1bac778817fc9ab95799930fd4813530
[ "Apache-2.0" ]
permissive
konnected-io/home-assistant
037f12c87bb79e19220192eb918e49db1b1a8b3e
2e65b77b2b5c17919939481f327963abdfdc53f0
refs/heads/dev
2023-05-11T08:57:41.891518
2023-05-07T20:03:37
2023-05-07T20:03:37
109,931,626
24
10
Apache-2.0
2023-02-22T06:24:01
2017-11-08T05:27:21
Python
UTF-8
Python
false
false
4,125
py
"""Test the devolo Home Network integration setup.""" from unittest.mock import patch from devolo_plc_api.exceptions.device import DeviceNotFound import pytest from homeassistant.components.binary_sensor import DOMAIN as BINARY_SENSOR from homeassistant.components.button import DOMAIN as BUTTON from homeassistant.com...
[ "noreply@github.com" ]
konnected-io.noreply@github.com
a0974ac4da7ff77096e13917b61406bc2ef64c90
2dd26e031162e75f37ecb1f7dd7f675eeb634c63
/examples/nlp/text_normalization_as_tagging/dataset_preparation/prepare_corpora_for_alignment.py
9fe64c1105b8b5680b9561071435c59c048f0156
[ "Apache-2.0" ]
permissive
NVIDIA/NeMo
1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1
c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7
refs/heads/main
2023-08-21T15:28:04.447838
2023-08-21T00:49:36
2023-08-21T00:49:36
200,722,670
7,957
1,986
Apache-2.0
2023-09-14T18:49:54
2019-08-05T20:16:42
Python
UTF-8
Python
false
false
6,403
py
# Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
[ "noreply@github.com" ]
NVIDIA.noreply@github.com
caf65928426dfc47a7b74d4a1e41cd9f7f7b4eb7
844bec60f1a769b2a5e68e4beeb6531edc3ce4e3
/my_instagram/member/tests.py
d76a21e9183a029a7c58801d925daa20cceb0141
[]
no_license
shoark7/my-instagram
04796a8c263009ef9128ec788ce8991c417fa918
42d1b43645c142c9d7f8c6df31865877ea1873a8
refs/heads/master
2020-12-24T07:53:07.248369
2016-11-15T06:36:44
2016-11-15T06:36:44
73,359,919
0
0
null
2016-11-13T09:05:29
2016-11-10T08:05:13
Python
UTF-8
Python
false
false
1,004
py
from django.test import TestCase, LiveServerTestCase from .models import MyUser # Create your tests here. class FollowTest(LiveServerTestCase): def create_user(self, username, last_name, first_name): return MyUser.objects.create_user( username=username, last_name=last_name, ...
[ "shoark7@gmail.com" ]
shoark7@gmail.com
8eaf470b58b0830ec791b74d821eb954a7fd1a02
dbfdbe3c1d5e3ad38625d8c971fe8dd45c8c3885
/device_agent/snmp/libs/pysnmp-4.4.5/examples/smi/agent/custom-managed-object.py
0b175193bfa76c391ed6cdfa364259d6af77d5df
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
fyfdoc/IntegrateTest
a58f6d0ea7cff5f67d79d7e042c0bb39c6b8bbbb
0d8374406c10c313d6627699879215841e0ebdb6
refs/heads/master
2022-12-03T02:32:37.388556
2019-01-25T02:36:42
2019-01-25T02:36:42
167,468,256
0
1
null
2022-11-29T20:58:41
2019-01-25T01:59:28
Python
UTF-8
Python
false
false
1,604
py
""" Implementing MIB objects ++++++++++++++++++++++++ This script explains how SNMP Agent application could model real-world data as Managed Objects defined in MIB. """# from pysnmp.smi import builder # MIB Builder is normally pre-created by SNMP engine mibBuilder = builder.MibBuilder() # # This may be done in a st...
[ "fengyanfeng@datangmobile.cn" ]
fengyanfeng@datangmobile.cn
95206566ebb073185d5e386f1509f946bc331050
e953c138d3808d92fcc9848824985be5bc42f034
/python/multiprocessing/lock.py
bb10bc3b3357cb248b6dc23f5ba3a856a0415d2b
[]
no_license
hotoku/samples
1cf3f7006ae8ba9bae3a52113cdce6d1e1d32c5a
ce0d95d87e08386d9eb83d7983bd2eaff0682793
refs/heads/main
2023-08-09T09:05:15.185012
2023-08-04T09:29:06
2023-08-04T09:29:06
222,609,036
0
0
null
2022-03-30T01:44:03
2019-11-19T04:35:27
Jupyter Notebook
UTF-8
Python
false
false
536
py
from concurrent.futures import ProcessPoolExecutor from datetime import datetime import time import multiprocessing def do_f(x, y): print(f"{datetime.now()}: do_f x={x}, y={y}") time.sleep(3) return x + y def f(x, y, lock): print(f"{datetime.now()}: f x={x}, y={y}") with lock: return do_...
[ "hotoku@users.noreply.github.com" ]
hotoku@users.noreply.github.com
5bfb68f5064b121eb578adf71745af4cd3d8ac5e
6c9ed1bbf924591b9044ddcba03dee701ba39b2b
/recordwhat/records/seq.py
c1c9bf568716b234c6400657038caeed66d2edde
[ "BSD-3-Clause" ]
permissive
klauer/recordwhat
986b1a8cd0d57902f25fb09573e96823bffd333e
2921a9852361cc682ec8441bb5f4cc54b6af6e80
refs/heads/master
2022-02-03T15:36:27.648497
2022-01-25T22:56:58
2022-01-25T22:56:58
51,451,764
2
4
BSD-3-Clause
2022-01-25T22:56:59
2016-02-10T15:56:30
Python
UTF-8
Python
false
false
2,605
py
from ophyd import (EpicsSignal, EpicsSignalRO) from .. import (RecordBase, _register_record_type, FieldComponent as Cpt) @_register_record_type('seq') class SeqRecord(RecordBase): alarm_status = Cpt(EpicsSignalRO, '.STAT') constant_input_1 = Cpt(EpicsSignal, '.DO1') constant_input_10 = Cp...
[ "klauer@bnl.gov" ]
klauer@bnl.gov
c9e6afdec8ce261e8a2f43fc4b54c4dbdb5e3542
0547c3ebab814e3fdf2616ae63f8f6c87a0ff6c5
/374.guess-number-higher-or-lower.py
700808b1ba1e1ec628739b2454d3092046d932a9
[]
no_license
livepo/lc
b8792d2b999780af5d5ef3b6050d71170a272ca6
605d19be15ece90aaf09b994098716f3dd84eb6a
refs/heads/master
2020-05-15T03:57:15.367240
2019-07-30T03:11:46
2019-07-30T03:11:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
297
py
# The guess API is already defined for you. # @param num, your guess # @return -1 if my number is lower, 1 if my number is higher, otherwise return 0 # def guess(num): class Solution(object): def guessNumber(self, n): """ :type n: int :rtype: int """
[ "qgmfky@gmail.com" ]
qgmfky@gmail.com
fe57d823e3f211eb951f7d95c44156eae836df34
34ffb243303300ccb233dc8394c78d6cb1212127
/registration/tests.py
a785686bfbf3b73736e23c595b6775a5b2005a25
[]
no_license
Larrygf02/webplayground
139955880e9e1a935cf7fbc89df9f1ebf45009f0
09579f3705e74ddd3380d905f5e0b8df0f93032a
refs/heads/master
2020-04-28T01:01:36.451838
2019-03-10T14:59:48
2019-03-10T14:59:48
174,838,752
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
from django.test import TestCase from .models import Profile from django.contrib.auth.models import User # Create your tests here. class ProfileTestCase(TestCase): def setUp(self): User.objects.create_user('test','test@test.com', 'test1234') def test_profile_exists(self): exists = Profile....
[ "raulgf_02@hotmail.com" ]
raulgf_02@hotmail.com