blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
9f9a2cb5b744a7310455602ae1d5d7ab6d24938c
52573a86f29adea75166cc2203618f2139abf5db
/RouterOS API/Set Item/Mengganti IP Address.py
14f05f1bd32c2932f3f5395500e8d6e8d6499ec6
[ "Apache-2.0" ]
permissive
HudaFiqri/Mikrotik_RouterOS_API_Learning_Indonesia
4b1354ee09ec029b2a1461bdff7ba7f9c886f83a
cb9d32a42d19d5026ce620af7cd2d72b0b515f42
refs/heads/main
2023-03-07T23:07:02.299813
2021-02-23T05:20:40
2021-02-23T05:20:40
341,436,886
0
0
null
null
null
null
UTF-8
Python
false
false
879
py
''' Mengganti IP Address menggunakan API. sumber referensi: - https://pypi.org/project/RouterOS-api/ - https://wiki.mikrotik.com/wiki/API_command_notes#Scripting_and_API - https://github.com/socialwifi/RouterOS-api ditulis pada: 23-02-2021 ''' # import module yang akan digunakan im...
[ "mhudafiqri06@gmail.com" ]
mhudafiqri06@gmail.com
a5c76605cdf1daa2e1d5d4e2cc7027083214022c
a687a386d54a36840caa2c4e46e741ca5fd223f8
/homework1/homework1_16.py
c8819e34b9d263d9c28db98f5fdf089dde9dc211
[ "MIT" ]
permissive
whx1994hans/ml_foundation
0b7931aad1b0972be9188448279f1eabbbd0a364
f5e618f1e0dedc9fc8095be38b628b97e7a2fd45
refs/heads/master
2020-03-15T09:28:43.945888
2018-05-04T02:49:14
2018-05-04T02:49:14
132,075,719
0
0
null
null
null
null
UTF-8
Python
false
false
1,475
py
import numpy as np def load_train_data(file_name): training_set = np.loadtxt(file_name) x0 = np.ones(training_set.shape[0]) training_set = np.insert(training_set, 0, x0, axis=1) return training_set def split_features_and_labels(dataset): features = dataset[:, :-1] labels = dataset[:, dataset...
[ "whx1994hans@gmail.com" ]
whx1994hans@gmail.com
af61ef01dae3b390af546bf09648723e26652b26
5a1b6b8ed4c06e7743c8e943b2c6f854decfd90b
/pyretrace/reader.py
c72a5c0341c021dc408a50c655f4eeda0b9de975
[ "BSD-2-Clause-Views" ]
permissive
MaTriXy/pyretrace
369ca9b9c14441c4f170930bd667fbd72e6ba430
fe8afd2296f01fa949d744727cc3b9dc7e69aa6c
refs/heads/master
2020-04-06T06:41:16.526008
2015-12-06T22:25:57
2015-12-06T22:25:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,226
py
import sys class MappingReader(): def __init__(self, mapping_file): self.mapping_file = mapping_file def pump(self, mapping_processor): reader = open(self.mapping_file, 'r') try: class_name = None # Read the subsequent class mappings and class member mapping...
[ "rotem@everything.me" ]
rotem@everything.me
3ab80af6244436a1a7f2ad642c811678bd3e02b8
bd0b760dfe03420bed3882c7c734e1553e923352
/mysite/local_settings.py
17dab683b2e6f6b488be3b0efd40abfaef8015b7
[ "Apache-2.0" ]
permissive
bhagvank/slacknlp
c2bed55b28010b808f36131ec9a12e220f75b2dc
9aabc8884cce657c0e6c2cec07fab6b609d1b0e9
refs/heads/master
2020-03-24T03:22:52.724487
2018-12-23T14:25:51
2018-12-23T14:25:51
142,416,967
3
1
null
2018-07-26T10:04:46
2018-07-26T09:09:30
null
UTF-8
Python
false
false
926
py
""" local Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.1. For more information on this file, see https://docs.djangoproject.com/en/dev/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/dev/ref/settings/ """ from setti...
[ "bhagvan@crystaldelta.com" ]
bhagvan@crystaldelta.com
e57b454023b98bca370d58ed307d4323516892c2
27caa29053c9b6c7734c46f27ee3bc86d40bd9bd
/quspin/basis/_reshape_subsys.py
3e24aeec44096863c013dd06e83fa890f4615729
[]
no_license
wenya-r/ED
c121006418db6cff8c43aade957c3915865ecdb6
50f2c37465fdd6b4a0be5ce909a65edb94b9902b
refs/heads/master
2020-04-08T13:21:30.034824
2019-03-14T21:20:24
2019-03-14T21:20:24
159,097,043
0
0
null
null
null
null
UTF-8
Python
false
false
7,543
py
import numpy as _np import scipy.sparse as _sp #################################################### # set of helper functions to implement the partial # # trace of lattice density matrices. They do not # # have any checks and states are assumed to be # # in the non-symmetry reduced basis. # ####...
[ "wwrowe@gmail.com" ]
wwrowe@gmail.com
d917343c58d4c5987adedca27f89df889a8c8f6a
57513acbee10889f6803499cd4c20cfdcdbd2576
/calificacion.py
e435ed8c0a97b7da2ce2b9406a6c493795f5fffe
[]
no_license
alanespinozaz/UNEMI-ESTRUCTURA-DE-DATOS
c0c1a5420033deaf0f54079befbbc6776cb2c3ce
694633924c56370bf2a142b167cef54152000f7e
refs/heads/main
2023-06-16T02:05:02.902495
2021-07-18T04:39:49
2021-07-18T04:39:49
375,894,882
0
0
null
null
null
null
UTF-8
Python
false
false
585
py
"" "Dado como dato la calificación de un alumno en un examen escriba “aprobado” si su calificación es mayor o igual que 7 y “Reprobado” en caso contrario. "" " clase Ejemplo4 : def __init__ ( yo ): aprobar def aporepro ( yo ): cal = float ( input ( "Ingrese su Nota final:" )) ...
[ "noreply@github.com" ]
noreply@github.com
baf7bb5505b041499763a04a9301d9ceb25d6184
04642962ef1d6ab7c3a3c8b65f1de2566fe366da
/venv/bin/flask
7a8608814aee5dfb5c39d4115dd0017d068a1c28
[]
no_license
chrismulc/cse5ipr
3e2c6166d42481233ed415216b279f9769bcc132
287ef8bd43bc042f7ee05ea9cf2e5eae31d4dfb3
refs/heads/main
2023-01-01T02:37:22.905213
2020-10-19T04:00:52
2020-10-19T04:00:52
305,257,114
0
0
null
null
null
null
UTF-8
Python
false
false
232
#!/home/chris/Desktop/shit/venv/bin/python # -*- coding: utf-8 -*- import re import sys from flask.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "chrismulcair@gmail.com" ]
chrismulcair@gmail.com
289a348b02b1dcd1fbc6f33b305c4fa1d8313271
f253f06b816503837744620befad8aed554ec72f
/bin/models/adaboost.py
976ab2ce1c6476294602669e7153e061cc9f5221
[]
no_license
julienbrosseau/IFT712-Projet
edc67ad4cd2437b57f9bdcb6b2fd1cc391e4c3d5
911090fc4a81e2a4f8c38d41543001cb1cc2da33
refs/heads/master
2020-09-11T04:11:27.170890
2019-12-11T22:13:06
2019-12-11T22:13:06
221,934,906
0
0
null
null
null
null
UTF-8
Python
false
false
1,282
py
# Classification par Adaboost # Source du module "AdaBoostClassifier" # https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.AdaBoostClassifier.html # Source du module "GridSearchCV" # https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.GridSearchCV.html from sklearn.ensemble impo...
[ "jbrosseau85@gmail.com" ]
jbrosseau85@gmail.com
50bd5fb3ecb34a150b5e00992b4dbb77b833d894
b476148624d6a92b2be59adb856decf1b64e8f2b
/dmitri_melnik/wsgi.py
167ecc8ac506557efc14bb89da4acea0e3fbf873
[]
no_license
Anthlon/dmitri
1e79e2aaf57c6ed06bf4526dd501da312d897f51
a613f4fb2534e32bb52112557187c4b88aaaed57
refs/heads/dev
2022-12-13T07:16:12.168442
2019-01-23T18:40:04
2019-01-23T18:40:04
166,687,721
0
1
null
2022-11-22T02:55:20
2019-01-20T17:15:07
Python
UTF-8
Python
false
false
404
py
""" WSGI config for dmitri_melnik 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.setdefault("DJANG...
[ "taran2jl@gmail.com" ]
taran2jl@gmail.com
0e8bb6dc3894b148e34ded7def1b41d06923923c
9bce12bce7a08307d0894455f428bde13c49b0ad
/Lists.py
9f0dc1bac4a0f1c1c747f9daf976cc41813feaa2
[]
no_license
RAAD07/Lists-Python-Hackerrank
30bbb74a88ca2d36bade053762143dd7fb47a828
6758f33631d1fdb1931a9b819a748a1e9b9b7bdd
refs/heads/master
2022-11-19T09:51:58.840647
2020-07-06T17:47:35
2020-07-06T17:47:35
277,609,643
0
0
null
null
null
null
UTF-8
Python
false
false
542
py
if __name__ == '__main__': N = int(input()) arr=[] for i in range(N): s=input() s=s.split() if s[0]=="insert": arr.insert(int(s[1]),int(s[2])) elif s[0]=="print": print(arr) elif s[0]=="remove": arr.remove(int(s[1])) ...
[ "noreply@github.com" ]
noreply@github.com
3d37da637d2574b7f62ac05306ea06e985dab24c
ae10b60cb92a69146bfb05ef5dde735a0aa45d4b
/examples/Extended Application/sklearn/examples/manifold/plot_swissroll.py
7c79aa7f21f247e89add004d85ca228061582301
[ "MIT" ]
permissive
kantel/nodebox-pyobjc
471cea4c5d7f1c239c490323186458a74edcc214
068ba64c87d607522a240ab60c3ba14f869f6222
refs/heads/master
2021-08-14T18:32:57.995445
2017-11-16T13:42:23
2017-11-16T13:42:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,103
py
""" =================================== Swiss Roll reduction with LLE =================================== An illustration of Swiss Roll reduction with locally linear embedding """ # Author: Fabian Pedregosa -- <fabian.pedregosa@inria.fr> # License: BSD 3 clause (C) INRIA 2011 print(__doc__) import matplotlib.pyplot...
[ "karstenwo@web.de" ]
karstenwo@web.de
6d183a2f763ca7810329b07ebda8c350fcdc4a62
a5ba7f324febb0fa2938ad2ee7b7b4c9941f4894
/4.py
4090a3800817c632917fb33c97da7f3c4c0418a4
[]
no_license
AlenaGB/hw4
12f7789b54d3afc25165c2df221e84a0a1b15f93
b922c2db36361eaddcf86807aab4f65676b641d4
refs/heads/add_first_file
2023-02-13T17:05:07.274647
2021-01-13T21:09:14
2021-01-13T21:09:14
329,387,395
0
0
null
2021-01-13T21:09:15
2021-01-13T17:47:20
Python
UTF-8
Python
false
false
134
py
myList = input('Enter numbers by a space: ').split() newList = [el for el in myList if myList.count(el) == 1] print(' '.join(newList))
[ "olyonapopova@gmail.com" ]
olyonapopova@gmail.com
7a7ff52519684c15858e9d701cbe94a12417569d
66ba4c3af5746fcb4dc0f0b73249c54ee68c92aa
/insta_post/migrations/0002_auto_20201016_1836.py
5b827e4fb0dd3de03fc94d341678192648d679fe
[]
no_license
pokeyjess/Insta-Car
9aaef1dbdf91c35e0f81522785b559ab51d23c51
31604d534d08204f16ed67965e32aeffb792a92f
refs/heads/master
2022-12-20T03:08:49.184552
2020-10-20T03:28:04
2020-10-20T03:28:04
301,603,196
0
4
null
2020-10-20T03:28:05
2020-10-06T03:26:19
JavaScript
UTF-8
Python
false
false
405
py
# Generated by Django 3.1.2 on 2020-10-16 18:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('insta_post', '0001_initial'), ] operations = [ migrations.AlterField( model_name='comment', name='content', ...
[ "pokeyjess72@gmail.com" ]
pokeyjess72@gmail.com
bdc4fe683809a077cf124332f5f64f688336229e
72b37e71fe10893bbd469a09bcbd20aa495c713b
/media1.py
dc9517e4d20de6b47cd337062ca51b62ad0bfb53
[]
no_license
AndreLucasrs/UriJudge-Python
b177b008c9fea76aff75684e05ba810c13aae141
f4fed41511281725bf07b2d95d51d44acdc3425f
refs/heads/master
2021-01-11T21:32:41.886823
2019-08-11T18:14:51
2019-08-11T18:14:51
78,802,289
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
# -*- coding: utf-8 -*- a = float(input()) b = float(input()) media = float(((a*3.5)+(b*7.5))/11) print "MEDIA = %0.5f" % media
[ "andrelrs.v@outlook.com" ]
andrelrs.v@outlook.com
d393dfab85f711e3577849ec7cf8e6c50b16d399
bfdab27f224d9cac02e319fe55b53172fbf8d1a2
/motion_editor_core/data/atlas_old/positions/arm/calib_12.py
0953601e8df0af370b4565871e3c978535f8a6ca
[]
no_license
tu-darmstadt-ros-pkg/motion_editor
c18294b4f035f737ff33d1dcbdfa87d4bb4e6f71
178a7564b18420748e1ca4413849a44965823655
refs/heads/master
2020-04-06T12:37:30.763325
2016-09-15T14:11:48
2016-09-15T14:11:48
35,028,245
2
3
null
2015-05-05T13:20:27
2015-05-04T10:18:22
Python
UTF-8
Python
false
false
67
py
{ 'calib_12': [-1.0046, 1.2497, 1.8048, -0.9239, 3.1416, -1.1781]}
[ "martin.sven.oehler@gmail.com" ]
martin.sven.oehler@gmail.com
fcb46ec4ee5b14754866da2d979be4e0e85d1724
db2f1a5c498338093c7df2082f7517a5e00b756a
/1.문제 해결 패러다임/동적 계획/200924_baekjoon_1003/byounggoun/main.py
b954435c3a86bb8a8a4f8d34fe05515073146f2a
[]
no_license
kimByoungGoun/codetest
95b0fbf36a9ffbd630ffffc2605a2c8b04de9679
d491b7db0e4c82445fe4f530f8139144d06982a5
refs/heads/master
2022-06-17T15:05:44.162961
2022-05-31T07:36:50
2022-05-31T07:36:50
231,875,897
1
0
null
2020-01-19T06:28:46
2020-01-05T06:12:27
null
UTF-8
Python
false
false
637
py
import sys zero = 0 one = 0 def fibonacci(n): tmp = 0 result = 1 if(n == 0): return 0 elif(n == 1): return 1 else: for i in range(n-1): result = result + tmp tmp = result - tmp return result if __name__ == "__main__": rl =...
[ "kgun610@naver.com" ]
kgun610@naver.com
3479e119a928a44bfb4b30588b082226216cfa06
97bf09cf62ddd060ec436bc0abdda8a1a78e57f9
/scripts/test/run_tests.py
4392a92d799968c527d36b1bb61228cda313639e
[ "BSD-3-Clause" ]
permissive
Hiwatts/facebook360_dep
1911848900d6be6eabe72a088bab9cf7eae6ef02
3ecbe7f64f88b8a7b50bfa3deef6daad61a30443
refs/heads/master
2023-07-24T05:48:44.705469
2021-05-05T15:57:32
2021-05-05T16:04:43
396,123,779
0
0
NOASSERTION
2021-08-18T11:48:09
2021-08-14T20:35:58
null
UTF-8
Python
false
false
5,371
py
#!/usr/bin/env python3 # Copyright 2004-present Facebook. All Rights Reserved. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. """Runs all the unit tests defined in res/test/translator.json. This is the main entrypoint for running the ...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
e96fdcdd6acf50f222c5a01b5789d2decb76fea0
97171b6ddc7f3ba93d6abf6df375a9e87c223f78
/config.py
68db0675dcdc96215df2cd547fb41e7af33fe6a4
[ "MIT" ]
permissive
tuanthng/MemTrack
be3520f12b0f121f2673b7678ab7a694faaeca4d
20cb359d4e90b7beac15eeaeebd8ef8b7b0e9609
refs/heads/master
2022-03-26T05:57:49.719585
2020-01-02T07:22:17
2020-01-02T07:22:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,719
py
# ------------------------------------------------------------------ # Tensorflow implementation of # "Learning Dynamic Memory Networks for Object Tracking", ECCV,2018 # Licensed under The MIT License [see LICENSE for details] # Written by Tianyu Yang (tianyu-yang.com) # -----------------------------------------------...
[ "baiyangtianyu_i@didichuxing.com" ]
baiyangtianyu_i@didichuxing.com
88c67709c5279531a3ad7800795ea2de506f1926
74749c296c8bff8a05ae7b2f70814055735403fd
/c117.py
8896150b0180da607b1e6e1f01991836e231813c
[]
no_license
jzhang14/python_data_structures
8c44d3ed96b7c07ab4974e2593bde1b6791506da
08bb2668aff714855244ec40e96af31030de1365
refs/heads/master
2021-01-17T14:31:58.375567
2015-05-12T06:42:38
2015-05-12T06:42:38
35,389,986
0
0
null
null
null
null
UTF-8
Python
false
false
55
py
l = [] for x in range(1,11): l.append((x-1)*x) print l
[ "jzhang14@nd.edu" ]
jzhang14@nd.edu
a7e8bdea7fc8b9862ce19d43506ea55a39cd5fca
8ba4e3e9f9fdcfdb9a62cd578bd9f0757234068a
/App/migrations/0005_cart_stores_substores.py
23585af32df5ec0f52b63ee8d72d0d8ff6ac8bc6
[]
no_license
Oriya-Berlin/I-Frayer
8ba30f546064ffbe42816884f7c1f27ce2e1bc6d
dc5595fefecc3973b36f3e540d43fc9a94f6125b
refs/heads/master
2022-11-20T09:51:06.690378
2020-07-26T22:41:59
2020-07-26T22:41:59
282,739,517
0
0
null
null
null
null
UTF-8
Python
false
false
1,610
py
# Generated by Django 3.0.4 on 2020-04-03 09:30 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('App', '0004_auto_20200402_0922'), ] operations = [ migrations.CreateModel( name='SubStores', ...
[ "oriya2699@gmail.com" ]
oriya2699@gmail.com
5e649b53f7f3cdd1d2c9cdcc93b245cade480147
cf98e26c4da607df3b4ac3a64e3bc3267506691d
/q2_neural.py
fa5f67a6febf17fdad05c14d1fee91bc06592cb6
[]
no_license
DeepNLP/pset1-matthieu-r
6f0f322415d41c4f608bc03a2817416cfb633e23
beb1ac504330f8b6377737a00e7d798ff782ce89
refs/heads/master
2021-01-12T09:32:20.294190
2016-12-30T17:34:41
2016-12-30T17:34:41
76,189,176
0
0
null
null
null
null
UTF-8
Python
false
false
3,000
py
import numpy as np import random from q1_softmax import softmax from q2_sigmoid import sigmoid, sigmoid_grad from q2_gradcheck import gradcheck_naive def forward_backward_prop(data, labels, params, dimensions): """ Forward and backward propagation for a two-layer sigmoidal network Compute the forwa...
[ "matthieu@stupeflix.com" ]
matthieu@stupeflix.com
06838957e3b93d87cffa17bbe9417780a957f49a
1e60b1b311e4e1ced836f43ef055c65f5e78f7ef
/test/functional/test_framework/bignum.py
841d5adf660e80f4959836b088423f3d556936c8
[ "MIT" ]
permissive
liufile/BlackHatWallet
529bd4b492dbf672aa3d7b1f7dd456e53508fdc4
0e6b310fb6cb9bdb3b51a81ab55e606efed891f2
refs/heads/master
2023-04-24T13:49:07.117712
2021-05-01T12:34:50
2021-05-01T12:34:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,915
py
#!/usr/bin/env python3 # # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Big number routines. This file is copied from python-bitcoinlib. """ import struct # generic big endian MPI format def bn_bytes(v, have_ext=False): ...
[ "contact@blackhatco.in" ]
contact@blackhatco.in
8647727004a3d439ecb6faca531cbf64967346c9
f7c72d9994b59c4023aaa811533e59f117384256
/polls/models.py
f37a8e136945f5bfe52c56ef83fd08083911a01d
[]
no_license
Aparth27newtonix/poll
f3005e9d13e2a7aa34cda425b4f56872f41cdc85
ba852f7af24c170f3b247d3ce24bb76a7c07e9a4
refs/heads/master
2021-05-12T07:01:44.237552
2018-01-12T12:13:11
2018-01-12T12:13:11
117,235,082
0
0
null
null
null
null
UTF-8
Python
false
false
510
py
from django.db import models # Create your models here. from datetime import date # Create your models here. class Question(models.Model): question_text=models.CharField(max_length=200) pub_date=models.DateTimeField('date published') def __str__(self): return self.question_text class Choice(models.Model): ques...
[ "27newtonix@gmail.com" ]
27newtonix@gmail.com
7c13814393f17f7fedc5cf35d8f27da995845f2a
02445d052bbd8e84dbdf1f14897d60adb8815491
/exercicios-python/curso-python/ex054.py
76f04261d6086ff7e308999ab37c981520fb8a6d
[ "MIT" ]
permissive
PabloLanza/curso-python3
68b1e5b46eb2be7eebe273f6514174ff24433a1e
34cf44a2467fa239ba4019e085833002ad9b76a1
refs/heads/main
2023-08-31T21:09:52.170695
2021-10-19T11:47:20
2021-10-19T11:47:20
403,309,687
0
0
null
null
null
null
UTF-8
Python
false
false
276
py
n= int(input('Digite quantos termos você quer mostrar: ')) t1 = 0 t2 = 1 print('=====' * 15) print('{} - {}'.format(t1, t2), end='') cont = 3 while cont <= n: t3 = t1 + t2 print(' - {} '.format(t3), end='') t1 = t2 t2 = t3 cont = cont + 1 print(' - FIM')
[ "pablolanza75@gmail.com" ]
pablolanza75@gmail.com
cdb32f20cec92bbc765111f2f965ebc0bc9da52f
35962c88d15874825d8dd025e3ea62cb90d666f9
/blog/migrations/0006_remove_comment_email.py
73d81c35678baf001caa6e945e64c07ff86a8c4c
[]
no_license
rajatyadav8540/dscweb
4a05bd3900125fa38064a893e28f8e42c405803d
20dec5fa2d28cce5e31e7dedd003ed58cce17f37
refs/heads/master
2023-05-06T20:29:19.302869
2020-10-13T15:15:12
2020-10-13T15:15:12
254,567,699
1
0
null
2020-04-10T07:06:36
2020-04-10T07:06:36
null
UTF-8
Python
false
false
314
py
# Generated by Django 3.0.3 on 2020-08-19 18:22 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('blog', '0005_comment'), ] operations = [ migrations.RemoveField( model_name='comment', name='email', ), ]
[ "kumar@mx" ]
kumar@mx
e902ead2af28166e202cd5752aec78116afeb097
5fe79656bb0319944f5088366edbe9a364724778
/blog/models.py
172de166397dde5478e74e8dcccbc96b6fd6c37d
[]
no_license
isheikh8492/FakeBlog
716c7199c9e80b9b96212efbfd82fb14e59d9c98
6017cdfefaa53f49ea9ee63d507d6c6c948348af
refs/heads/master
2023-08-22T21:21:58.595666
2021-10-10T06:35:07
2021-10-10T06:35:07
380,857,015
1
0
null
2021-07-01T18:27:45
2021-06-27T23:28:17
Python
UTF-8
Python
false
false
599
py
from datetime import time from django.db import models from django.conf import settings from django.utils import timezone # Create your models here. class Post(models.Model): author = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) title = models.CharField(max_length=200) text = model...
[ "isheikh8492@gmail.com" ]
isheikh8492@gmail.com
c2e877332cdc877c229478f76b49e11504e3a4e0
e7fb42dd080504609719a84e7f0c82d8b428d9dc
/setup.py
c9f0522702ecbfb91d2a986fbd62de91c5720af6
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
aleksas/frappe_ftp_backup_integration
be50dfbaf6e040f7a1196bf6028b43bc2d62ed88
9f977dd127629a278d9ce46bfa98152f59ea6f06
refs/heads/version-11
2020-06-18T17:53:51.428134
2019-11-11T08:37:21
2019-11-11T08:37:21
196,389,775
1
0
NOASSERTION
2019-11-11T08:37:23
2019-07-11T12:26:00
Python
UTF-8
Python
false
false
719
py
# -*- coding: utf-8 -*- from setuptools import setup, find_packages import re, ast with open('requirements.txt') as f: install_requires = f.read().strip().split('\n') # get version from __version__ variable in intergation_ftp_backup/__init__.py _version_re = re.compile(r'__version__\s+=\s+(.*)') with open('intergat...
[ "ant.kampo@gmail.com" ]
ant.kampo@gmail.com
a2c3f4916e3e50a309e4c9cfd13d000d7ea065ae
19951b217e22ed6510350ecf4e5dbc1cfe7abdd4
/formatting_datasets/digitalise_timetable.py
c5f57ddc26dc0ba76e78631c0374ebd2ea7b9dcc
[]
no_license
fedix/MSA_Project
e36645e4e5b7f8e518e95ccb20ad4cafb0939d66
bdbf4e44268cfeeb2d4e079e48738860ebbf19d9
refs/heads/master
2021-05-18T05:50:49.427633
2020-09-01T15:07:51
2020-09-01T15:07:51
251,143,992
1
1
null
2020-06-09T12:41:17
2020-03-29T22:03:49
Jupyter Notebook
UTF-8
Python
false
false
4,860
py
""" Transforms 'timetable' in KudaGo dataset (str): 'timetable': 'вт, чт 10:30–18:00, ср 10:30–21:00' to the format of FIFA (ITMO) dataset: dict of lists[int_1(opening time), int_2(closing time)] 'open_hours': {"1":[1030,1800],"4":[1030,1800], ...} """ import json from json import JSONDecodeError import re # 1 - fu...
[ "bestulive@gmail.com" ]
bestulive@gmail.com
f1c7d551c9cad864ccf277d23e1d472625b48095
cbc86dbda2d9c3f3286bee1139884e18bb51f210
/patienttracker/patients/migrations/0004_auto_20190316_0904.py
cb19cfc417a9ad92cf5601d88080da535bb282f8
[ "MIT" ]
permissive
Raywire/patientTracker
94bc7e5635098d51b8eab1b1e22911441781ec2c
ced60d57eaa373a5bd87b44b9a95c0d38a0db838
refs/heads/develop
2022-12-10T15:08:16.171806
2019-03-21T18:25:07
2019-03-21T18:25:07
174,653,720
2
2
MIT
2022-12-08T04:54:23
2019-03-09T05:43:56
Python
UTF-8
Python
false
false
392
py
# Generated by Django 2.1.7 on 2019-03-16 09:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('patients', '0003_auto_20190316_0721'), ] operations = [ migrations.AlterField( model_name='appointment', name='date'...
[ "ryanwire@Ryans-MacBook-Pro.local" ]
ryanwire@Ryans-MacBook-Pro.local
97abd96db2f49c4bb203461ed7b742f7c56aeb3f
54a3024bd27756d2e658cc06ca3b2cd851884b22
/parking/chargerule/migrations/0022_card_car_number.py
76154ea403097de30161a6a43ce61f0bcac287b9
[]
no_license
codefish-yu/parking
0f9568be8650f859d629a1107a035123f1330ed7
7752b9fb2ff58958d21b39f8ac2aa4402646574c
refs/heads/master
2021-06-28T02:37:10.787609
2020-01-08T08:42:05
2020-01-08T08:42:05
232,518,396
0
0
null
2021-06-10T22:28:22
2020-01-08T08:44:00
HTML
UTF-8
Python
false
false
426
py
# Generated by Django 2.2.3 on 2019-12-04 12:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('chargerule', '0021_auto_20191204_1133'), ] operations = [ migrations.AddField( model_name='card', name='car_number',...
[ "cherryxie@xiaodeMacBook-Pro.local" ]
cherryxie@xiaodeMacBook-Pro.local
5255c172d866d6bd3cb6425bb59854eea12e7b6a
aeb69456c4e6f2238c947ae426d346aad033d598
/剑指/面试题21. 调整数组顺序使奇数位于偶数前面.py
bcda68b2b8d8d1f5c3b58e16b701995610a9f8d4
[]
no_license
ElonXie/LeetCode-Practice
f2c345cadce8d60515343ee94f52de5f34477d81
7a54fc8f85e3e7f937bb504a8f4c6de6dd7da3e2
refs/heads/master
2021-05-16T21:09:11.231951
2020-06-21T03:39:12
2020-06-21T03:39:12
250,470,089
0
0
null
null
null
null
UTF-8
Python
false
false
756
py
''' 输入一个整数数组,实现一个函数来调整该数组中数字的顺序,使得所有奇数位于数组的前半部分,所有偶数位于数组的后半部分。   示例: 输入:nums = [1,2,3,4] 输出:[1,3,2,4] 注:[3,1,2,4] 也是正确的答案之一。   提示: 1 <= nums.length <= 50000 1 <= nums[i] <= 10000 ''' from typing import List class Solution: def exchange(self, nums: List[int]) -> List[int]: L,R = 0,len(nums) whi...
[ "sdaxdh@163.com" ]
sdaxdh@163.com
9bad6a345a6bdffa026f01429de7892977c34495
fd64e364368bcb2cdcf77ab1e0fc234a6b698f69
/Python/Easy/CHEFSETC.py
48d298e8c44654557290eaf4fd4a08a2753e58f3
[]
no_license
Parizval/CodeChefCodes
57712069f3d56cc42282f9e35c6ddd9398e4a5bf
cfd2876816be806882650b6ea51431b1f8d6bec5
refs/heads/master
2021-07-16T13:10:15.668713
2020-07-06T21:40:09
2020-07-06T21:40:09
188,693,667
5
1
null
null
null
null
UTF-8
Python
false
false
506
py
import itertools def findsubsets(s, n): return [set(i) for i in itertools.combinations(s, n)] for a in range(int(input())): elements = set(map(int,input().split())) check = False for i in range(1,5,1): array = findsubsets(elements,i) for i in array: if sum(i) == 0 : ...
[ "anmolgoyal@gmail.com" ]
anmolgoyal@gmail.com
d12a97b3a0c6ab6156cb469bab5fef501e6be3ac
f9fb37ad45159a33b5adcc54ce29e8f9b0200402
/bin/mnservice.py
0663b74f01652f5078ec66f7c8b6850c68f62ad0
[]
no_license
bojos/mnservice
e16f3d89753d73b2e7db425cb99049e9845235e6
7c827212831a2a0892363b5358f4d777d530b404
refs/heads/master
2021-01-21T01:02:31.472308
2016-03-02T23:58:07
2016-03-02T23:58:07
52,519,495
0
0
null
null
null
null
UTF-8
Python
false
false
2,561
py
import os import sys import time from subprocess import check_output import daemon def get_dashd_pid(): try: # with open(dashd_pidfile, 'r') as f: # return int(f.read().strip()) ll = check_output(["pidof", "dashd"]).split() return int(ll[0]) except Exception: return ...
[ "m.prik@email.cz" ]
m.prik@email.cz
d9bee4ad7b23f641753a2fe3e8fa91e75064ef95
4f41601218f7c270a9b1bb0b02a45522dfb586df
/miform/structure.py
74b867359fe58dc888aa44f38c23b1ce2fe4bec6
[]
no_license
cr1901/miform
3e7372cf5f5d2ece04b5df17f8582ed2795ada1f
23abfbe16a5064cbd267719ebbb66e08f594b689
refs/heads/master
2021-07-13T08:58:18.657665
2017-10-15T18:01:03
2017-10-15T18:01:03
106,760,269
4
1
null
null
null
null
UTF-8
Python
false
false
5,706
py
from migen.fhdl.structure import _Statement, wrap, _check_statement from migen.fhdl.specials import Special from migen.fhdl.verilog import _AT_BLOCKING, _printexpr as verilog_printexpr from migen.fhdl.module import _flat_list, _cd_append import miform.verilog class _FormalStatement: pass class _FormalTask: ...
[ "thor0505@comcast.net" ]
thor0505@comcast.net
a8b53a582053bf011063b816014242b9cc4b3276
a34dc024004dded61c9a5612e047fc4537534ddb
/scripts/utils.py
ca1dc8ab17fc6a2132b90e53bb34b9903dcce3b4
[]
no_license
tehZevo/aegis-scripts
29ca28998f3fb2c6c8f7960ef56df8bff5e9970d
280435890fc7661e73aff65ef28bd9b2a5b24055
refs/heads/master
2020-07-21T12:23:55.913579
2020-03-06T01:26:40
2020-03-06T01:26:40
206,863,972
1
0
null
null
null
null
UTF-8
Python
false
false
2,183
py
from tensorflow.keras import optimizers as O import retro import gym from aegis_core.callbacks import TensorboardFieldCallback, TensorboardCallback from aegis_core.callbacks import TensorboardActions, TensorboardPGETReward from aegis_core.callbacks import TensorboardPGETWeights, TensorboardPGETTraces class DummyEnv(g...
[ "tehzevo@users.noreply.github.com" ]
tehzevo@users.noreply.github.com
2932bd24c28cc788ce61d53644013d602e8afd7b
d67df8d1c5a4bced3989301566ff2ab5bcd0010d
/practices/practice2/higher_order_func.py
d85bc41a6fb50a93de5f32d579849b77bd4e928c
[]
no_license
Jindae/seoultech-PL-2020
dbdf912c3f1860a643f673cb95a03ab8cc62a87e
f16a41045b33f128c8137706d2aba8a4101575a5
refs/heads/master
2023-01-04T21:02:20.558391
2020-11-04T01:30:34
2020-11-04T01:30:34
288,345,682
19
0
null
null
null
null
UTF-8
Python
false
false
251
py
x = 1 def f(y): return x+y def g(h): x = 2 return h(3)+x def s(): return x+1 def calling_s(): return s def main(): x = 4 z = g(f) print("z = g(f):", z) k = calling_s() print("k = calling_s():", k()) main()
[ "jindae.kim@seoultech.ac.kr" ]
jindae.kim@seoultech.ac.kr
5d0a8f3a60c16444192fed17496184eb9d3ed0f5
9d364887316a654cda4eff7a774239d1d26b50e6
/code_archive/video_server_1.py
9c370791ec1ffbebeb2bac499650037b044bf1f1
[]
no_license
cobit-git/conshell
a34995b9e93ee613ef99750567065f0f017f04b7
08d00b39fa764727139260dbce05846ad4c38a24
refs/heads/master
2023-04-10T14:05:05.155637
2021-04-30T12:48:49
2021-04-30T12:48:49
349,293,131
0
0
null
null
null
null
UTF-8
Python
false
false
950
py
import socket, cv2, pickle, struct # Socket Create server_socket = socket.socket(socket.AF_INET,socket.SOCK_STREAM) #host_name = socket.gethostname() #host_ip = socket.gethostbyname(host_name) #print('HOST IP:',host_ip) port = 9999 socket_address = ('192.168.254.51',port) # Socket Bind server_socket.bind(socket_addr...
[ "connercobit@gmail.com" ]
connercobit@gmail.com
42b03dcc9562188ff8a81630422edb51674a221c
2c54320b0bebb4351d6056d117796c11b6fb1441
/test_endpoints.py
5511b26bb32d7594a6d5ed3116bbdfc142a99fdb
[]
no_license
Amertz08/flask-ci
f728ca59c67d24b5d437de8acd469d2460151f01
a67c0417345b6b67f86d7f18d509f1f192cf862a
refs/heads/master
2020-03-23T08:53:14.389682
2018-07-18T02:18:29
2018-07-18T02:18:29
141,353,864
0
0
null
null
null
null
UTF-8
Python
false
false
582
py
import unittest from flask import url_for from flask_testing import TestCase from app import create_app class TestApp(TestCase): def create_app(self): return create_app() def test_index(self): resp = self.client.get(url_for('main.index')) try: with open('version.txt', '...
[ "adammertz@gmail.com" ]
adammertz@gmail.com
c792d006de065de7e771b46020fb5e748967d975
3f97f4cea120dffbdad54ce03ee1a5e80abf9464
/Course4/quiz1.py
a3461bf30136bee1a7d9b121d59dd984a84f0c52
[]
no_license
aishwaryasarath/Coursera
9b5297289e34d180d914c870806df968be3b26bf
80604ea0117a35fa985269c80583fcdb636b227e
refs/heads/master
2022-09-11T05:21:25.392320
2020-04-01T16:01:51
2020-04-01T16:01:51
252,346,098
1
0
null
null
null
null
UTF-8
Python
false
false
715
py
import re def compare_strings(string1, string2): string1 = string1.lower().strip() string2 = string2.lower().strip() print(string2) print(string1) # Ignore punctuation punctuation = r"[.?!,;:'-]" string1 = re.sub(punctuation, r"", string1) string2 = re.sub(punctuation, r"", string2) ...
[ "aishwaryasarath@gmail.com" ]
aishwaryasarath@gmail.com
68be4a145f5591cd39cece0984dc6931714f5716
44c65c93549aa06b01ef9114817cd45e645da6f7
/tests/test_observable/test_concat.py
7b28c6f1c9fd20302717129da1983eaa60fd0f1c
[ "Apache-2.0" ]
permissive
Affirm/RxPY
692b6a0089f4e79b92c0c683f11427c558eefd06
7c23939ea497761c85b382257f9f0954998ab91e
refs/heads/master
2023-07-06T11:34:28.229747
2017-10-22T16:25:56
2017-10-22T16:25:56
108,198,347
0
2
Apache-2.0
2023-03-20T20:28:56
2017-10-25T00:18:37
Python
UTF-8
Python
false
false
7,099
py
import unittest from rx import Observable from rx.testing import TestScheduler, ReactiveTest on_next = ReactiveTest.on_next on_completed = ReactiveTest.on_completed on_error = ReactiveTest.on_error subscribe = ReactiveTest.subscribe subscribed = ReactiveTest.subscribed disposed = ReactiveTest.disposed created = React...
[ "dag@brattli.net" ]
dag@brattli.net
b7cd1f9a1aea1fcef7d9de69a39850cb6d63dafc
ff6248be9573caec94bea0fa2b1e4b6bf0aa682b
/log-20190927/132.230.102.123-10.21.12.20/1569574219.py
4a95238224a8297f24bd861789148dd266556edb
[]
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
2,653
py
import functools import typing import string import random import pytest ## Lösung Teil 1. def divisors(n)->list: teiler = [] if n < 0: return "Ungültige Eingabe" else: for i in range(1, n+1): if n%i == 0: teiler = teiler + [i] return [teiler] #...
[ "lenni.elbe@gmail.com" ]
lenni.elbe@gmail.com
ef7c8bd937b31ddb510f10cb61ad543cd824fbcd
c8e2f350b54acb24b599e37d012696d8a97f7d08
/env/env/lib/python3.8/site-packages/dimagi/utils/decorators/profile.py
8084b3d295422d49be9339c14eb5bd280746bdac
[]
no_license
nargo0o/geekshop
9c2dc00e2d91dd3671975a61ea21b9246015f311
c30837ea4d2ff699a633bff8f5f2f55f03bdde6f
refs/heads/master
2023-06-22T10:44:53.514629
2021-07-18T14:38:14
2021-07-18T14:38:14
379,321,818
1
0
null
2021-07-13T14:56:22
2021-06-22T15:43:50
Python
UTF-8
Python
false
false
4,098
py
import hotshot import os from datetime import datetime from django.conf import settings try: PROFILE_LOG_BASE = settings.PROFILE_LOG_BASE except Exception: PROFILE_LOG_BASE = "/tmp" # Source: http://code.djangoproject.com/wiki/ProfilingDjango def profile(log_file): """Profile some callable. This dec...
[ "nargo4535@gmail.com" ]
nargo4535@gmail.com
cdeeb508ec19d1afec9224b988cd226e64e9ffe0
df6e5c950216855df180c97e764406a3fb27adc2
/ams/urls.py
0faa29bf102b3585abec4ea57cec5655a8bc30a9
[]
no_license
shameem21/gitf
3155d098f5b114fb77dd9a1da043b34560767861
a21e6e18f01c7c605fd50a0c2cd7b9e3911408d9
refs/heads/master
2022-12-09T03:02:40.229971
2020-09-02T15:48:00
2020-09-02T15:48:00
292,328,878
0
0
null
null
null
null
UTF-8
Python
false
false
319
py
from django.urls import path,include from . import views from django.conf.urls import url from django.conf import settings urlpatterns = [ url(r'^admin_panel/', include('admin_panel.urls')), url(r'^teacher_panel/', include('teacher_panel.urls')), url(r'^$', views.login), path('logout',views.logout) ]
[ "pshameem@icloud.com" ]
pshameem@icloud.com
8d0cb408640954bbf211313a2d61f528012d489b
8533aeeaeb12248f3f4d8e7bf3ab092bee8eb881
/tests/console/test_master.py
a7782c01dff1809595d144bd7f0c69294efd38db
[]
no_license
Jiakun/all_autotests
6f5d977590b4a0cc5cef7c3df21758f4f660c987
cde85988fa008c083afbeb980fa66960dbe3cb23
refs/heads/master
2021-01-18T16:47:40.916399
2017-04-05T04:14:26
2017-04-05T04:14:26
86,769,295
0
0
null
null
null
null
UTF-8
Python
false
false
3,637
py
from unittest2 import TestCase import sys import os from sedna.common import NodeResult from sedna.common import Result from sedna.common import Service from sedna.console.master import FormatedResult from sedna.console.master import main from sedna.master import Master from tests.console.test_sampler import get_packa...
[ "fjkmail@163.com" ]
fjkmail@163.com
57113a9c90aa74a3498f093d1107ddbae4fee161
6bfc12951180f207bb5d86ce1ddff4323dd9f223
/mysql_scripts/user.py
ee6b27c3198ed93f852a78ff3637be91e130e649
[]
no_license
easyfun/trade
966afedab4753c5d93a38e8678e38abf3eb113ac
b9ee016c8d6783ae8948877d36d1e10880457808
refs/heads/master
2021-01-12T08:18:24.688834
2018-03-17T11:47:30
2018-03-17T11:47:30
76,536,004
0
0
null
null
null
null
UTF-8
Python
false
false
4,769
py
#!/usr/bin/env python #-*- coding:utf-8 -*- import mysql.connector def create_user_table(): conn=mysql.connector.connect( host='127.0.0.1', user='root', password='easyfun', pool_size=2) cursor=conn.cursor() sql='drop database if exists user' cursor.execute(sql) sq...
[ "easyfun" ]
easyfun
0b3bad287052752c8ab7a55ebf45a3caa0462c08
8e754b630a78148b3ee0bc851f56d8860e88abaf
/cnn_generic.py
df7655b1d1694a38f7591bf1551cc836d06bec4c
[ "MIT" ]
permissive
agenthimzz/Classification-between-3-students
9a33c9ec677e67d0335aa25d88762311b7631d38
649d1e7a81ae1cf40df85beb13a7d7bd94a55d91
refs/heads/master
2020-04-26T20:29:30.023652
2019-03-05T05:23:55
2019-03-05T05:23:55
173,811,926
0
0
null
null
null
null
UTF-8
Python
false
false
3,160
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Feb 8 13:14:15 2019 @author: himanshu.ghadigaonkar """ # Importing the Keras libraries and packages from keras.models import Sequential from keras.layers import Convolution2D from keras.layers import MaxPooling2D from keras.layers import Flatten from ...
[ "himanshu.ghadigaonkar@gmail.com" ]
himanshu.ghadigaonkar@gmail.com
2dc3d5860b8a87315f0aa0f33b13cdaec15d63a4
3670f67e055d376e5c229540f39c335cb632f7c0
/project/model/navigation.py
957b99941d7568c9e49cf575e7284c16de616922
[ "MIT" ]
permissive
pengjinfu/kispower
e5e243aae9418ae2bdfaf27d9be22f0d5b5d85b7
38d88c4c5a983a90009cb8c7012cb4295b1aec06
refs/heads/master
2022-04-10T04:43:48.308017
2020-04-02T02:08:55
2020-04-02T02:08:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
577
py
# -*- coding: utf-8 -*- # @Time : 2019-12-23 # @Author : mizxc # @Email : xiangxianjiao@163.com from mongoengine import * class Web(EmbeddedDocument): webName = StringField(max_length=60, required=True) url = StringField(max_length=1000, required=True) icon = StringField(max_length=1000) introdu...
[ "xiangxianjiao@163.com" ]
xiangxianjiao@163.com
fea954915f25e108ef1837d4bda6ee52dc8c7314
2550c41d04289410d73118dd2d8008c63e23f021
/mathcalm/mathcalm/settings/defaults.py
733bca3d6f29e11cb22e74ddf50382beafea7d3a
[ "MIT" ]
permissive
dspetrenko/mathcalm
de7bbd95b613f2c5def9fef2e7ba28b733917977
40553f2a34464479538154f5d3f5d993fc4e6b42
refs/heads/master
2020-03-13T14:47:33.733281
2018-06-14T06:41:53
2018-06-14T06:41:53
131,165,434
0
0
null
null
null
null
UTF-8
Python
false
false
3,199
py
""" Django settings for mathcalm project. Generated by 'django-admin startproject' using Django 2.0.4. 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/ """ import os ...
[ "denis.petrenko.dp@gmail.com" ]
denis.petrenko.dp@gmail.com
1a7f5760894f9c6ff001c18e56bc124a53c55fa9
a3a0f22305ef052ed6e0b275261b2a14dbf56899
/listbox.py
a698c7e2edc45687f5319aaf821dd43a0173ff0e
[]
no_license
VictorAlexandre1986/Tkinter
6add2d8793368cd3dc71e5739ea2c0b453fbf574
28d747be13c9a28a0622c36a13e90cda0ad3a54f
refs/heads/main
2023-07-12T12:19:28.537791
2021-08-16T18:06:29
2021-08-16T18:06:29
394,052,482
1
0
null
null
null
null
UTF-8
Python
false
false
1,249
py
from tkinter import * #from tkinter import ttk import os def imprimir(): esp=str(lb.get(ACTIVE)) print(esp) def adicionar(): esp=str(entrada.get()) lb.insert(END,esp) app = Tk() app.title('') app.geometry('300x500') app.configure(background='#404040') #Dimensoes da janela ...
[ "noreply@github.com" ]
noreply@github.com
867d3e987905c99db30fe4889288df35f8111057
ee060ff94272b8f424030b9543a17e2343db915d
/Devices/IDS_ueye_3250CP2.py
30d72a047a0da8abd83782496aaac16c75e2540b
[]
no_license
jhardin4/APE
73d686849b853f0afdc23025e3bdd2ca7b1aecb1
88560e46f9e90bdae4ab175d589de36e8dc9d464
refs/heads/master
2022-05-09T03:08:58.373601
2022-01-31T15:11:39
2022-01-31T15:11:39
194,868,007
4
3
null
2020-06-19T14:00:59
2019-07-02T13:25:01
OpenSCAD
UTF-8
Python
false
false
3,579
py
# blank # Only import 'basic' python packages up here. All others should be imported # within the methods. # Handle the different relative locations for independently running and # from Devices import Sensor class IDS_ueye_3250CP2(Sensor): def __init__(self, name): Sensor.__init__(self, name) s...
[ "johardiniv@gmail.com" ]
johardiniv@gmail.com
653b96c34a53f5ef76223016d07dc363f51d9a46
11236c9b6513ee06ec3f7095d3f0c935bf6b4369
/cookie_stands/apps.py
0f1ef90a3a52cfdbf8a85edb1633a75fbe11a88e
[]
no_license
RoaaMustafa/cookie-stand-api
a11848f6ab37518fcab2f1aa471a552fd2ca7748
12b72581fbd4308b3602e8363873c16c603aeebf
refs/heads/main
2023-08-03T01:36:16.507519
2021-09-08T14:05:50
2021-09-08T14:05:50
404,302,828
1
0
null
null
null
null
UTF-8
Python
false
false
99
py
from django.apps import AppConfig class CookieStandConfig(AppConfig): name = 'cookie_stands'
[ "labushanab14@gmail.com" ]
labushanab14@gmail.com
8ac2409f5cb6f10f638f4a529a2f5abd608a6613
aacec9c81c1f015ac3f76d6e37d798e08b59d150
/sample/sample/settings.py
00ed6e4b6be213ff1107b7f54da769cb0c0096b0
[]
no_license
meghalrag/djangoprgm
25ae32b04789dc9cdeda5ac64833e6e138234349
6a802a6b7a0c2044af24f4e0e90e034c0ba0d9ec
refs/heads/master
2020-05-19T22:20:51.979077
2019-05-06T18:05:42
2019-05-06T18:05:42
185,244,469
0
0
null
null
null
null
UTF-8
Python
false
false
3,230
py
""" Django settings for sample project. Generated by 'django-admin startproject' using Django 1.11.6. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ ...
[ "noreply@github.com" ]
noreply@github.com
b8afa808079a06eabab4fd45a09362784a68602d
529722cec22259e788b3ad64e377c127c01d93b3
/circle.py
dd28eaf577e4aeec006bf2fa177c50e599009b3f
[]
no_license
kushajha/graph-Plotter
03320b39f3000410eb8bd1671115e9269bb6c546
3b5d30253cfc198a56b68318079dd6e315dd9cc4
refs/heads/master
2021-03-13T02:08:42.413286
2017-06-11T17:28:30
2017-06-11T17:28:30
91,478,705
0
0
null
null
null
null
UTF-8
Python
false
false
575
py
import matplotlib.pyplot as plt import numpy as np import math def axes(): plt.axhline(0,alpha=1) plt.axvline(0,alpha=1) print("\nEquation is of the form (x-a)^2+(y-b)^2=r^2") a1,a2 = raw_input('Enter Center of the Circle: ').split() a=float(a1) b=float(a2) r=float(raw_input('Enter Radius of the Circle: ')) pl...
[ "noreply@github.com" ]
noreply@github.com
e78ae30bf9795fa2ed715629f4873ab1b7cebfcf
35e28f5c6d3df8c3478f883795a3643881ad71ba
/USG/settings.py
e2fec5923345595b3048e0215b01814e8ea41c72
[]
no_license
ajayvjn/USG-WebScrapper
628cc30e8b6dbac33b9ab36228c1bd72629e98e0
093b3e4a1ca8f04f4ce0ca5f574e1275fe2d8a05
refs/heads/master
2020-05-20T12:26:08.521352
2017-01-30T21:09:25
2017-01-30T21:09:25
80,463,386
0
0
null
null
null
null
UTF-8
Python
false
false
3,126
py
# -*- coding: utf-8 -*- # Scrapy settings for USG project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # http://doc.scrapy.org/en/latest/topics/settings.html # http://scrapy.readthedocs.org/en/latest/top...
[ "ajay.vjn17@gmail.com" ]
ajay.vjn17@gmail.com
3a0f2b78a917ebbb93b31b448eff17706496fcb4
55d6de252e61c4b60688ebd8b1f637807acc1e7c
/custom_customer_payment_approval/models/models.py
83b0d97f1108f7bbd53d5c29fe68c31b90a5209d
[]
no_license
mosadiqit/eerna_erp_uslbd
b707a1d49a4fce7c1543b63e0120e8f9b77b26ce
73e3994a9e32df7809d244eb6592513162ab7853
refs/heads/main
2023-06-30T14:53:04.837197
2021-08-04T11:30:46
2021-08-04T11:30:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
590
py
# -*- coding: utf-8 -*- # from odoo import models, fields, api # class custom_customer_payment_approval(models.Model): # _name = 'custom_customer_payment_approval.custom_customer_payment_approval' # _description = 'custom_customer_payment_approval.custom_customer_payment_approval' # name = fields.Char()...
[ "ibrahimalazhar264@gmail.com" ]
ibrahimalazhar264@gmail.com
c568ede767628da5fc788549f85640d9c731bb84
682e9f278b3c044785fa3f28e7b4294fe4e78fb5
/Firstproject/urls.py
35ccf93f48600eb749112671c52d1dd61be96cd8
[]
no_license
suyeonshin/firstproject
705cd2c35fe63a02b11425e7ef16ea60295b5433
e4b16a2d8521f9368ca1e5fc5004db99273f77bd
refs/heads/master
2022-05-30T20:20:04.530085
2019-04-07T15:39:29
2019-04-07T15:39:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
978
py
"""Firstproject URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
[ "tlstndus2560@naver.com" ]
tlstndus2560@naver.com
40e0d876ae67bf5605c51f19798985a857354031
bda51111c9b9176e037e386466c6ff90cdd7a423
/python-flask/app.py
4c89fce73cf35ea8e0805f932b07d90ea3e06c61
[ "Apache-2.0" ]
permissive
alekhyapopuri/Parkinsons-disease-prediction
781d0772b22b4c660dd40971cfffebbc7e7e2209
7f23c70539031606769790b90bdeb6d11ce9d865
refs/heads/master
2023-03-14T13:34:50.710781
2021-03-06T10:09:39
2021-03-06T10:09:39
345,058,294
0
0
null
null
null
null
UTF-8
Python
false
false
1,235
py
# -*- coding: utf-8 -*- """ Created on Sat Mar 14 11:32:24 2020 @author: ALEKHYA """ import numpy as np import pandas as pd from flask import Flask, request, jsonify, render_template import pickle app = Flask(__name__) model = pickle.load(open('model.pkl', 'rb')) @app.route('/') def home(): return render_templa...
[ "alekhyapopuri44@gmail.com" ]
alekhyapopuri44@gmail.com
9ae4655febb6b0686d8bf6a9c63e007579bba638
245a1b017c29c1ebf5a1cb76a378609adb21e238
/pcap2http/pcapparsermod/printer.py
b010c1e7ba1bb92cfe5e7555150cac9b7e89955b
[]
no_license
wsniper/pcap2http
32f62e1e7fbbb5fbc88c7fe6638f483a7fbbff0c
3a2f8df97c9b4bb6265b9163533f5ae977e087fc
refs/heads/master
2021-01-13T07:20:05.284505
2016-05-29T18:06:37
2016-05-29T18:06:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,799
py
from __future__ import unicode_literals, print_function, division from io import StringIO import sys from pcapparsermod.config import OutputLevel # print http req/resp from pcapparsermod import utils, six from pcapparsermod import config import threading from pcapparsermod.constant import Compress printer_lock = thr...
[ "diman@example.com" ]
diman@example.com
3eea2bcd2377a53c6ec3a0fac375d30816303266
ede10f744f89dcc7c81a73e922cfd41c8c415b3f
/setoperation.py
2dc31b509a25cf4a50900a49bc5f21b382e8ff7e
[]
no_license
Techsrijan/Python11
6d76ac9aaa1fe30a1a31f7dbe898927b439ac64b
c1080fcc027044137859e4e55ef6a8d3cb740c2a
refs/heads/master
2020-06-16T07:02:38.150544
2019-08-04T03:29:15
2019-08-04T03:29:15
195,508,033
0
35
null
2019-07-28T07:48:25
2019-07-06T06:52:21
Python
UTF-8
Python
false
false
618
py
marks={11,12,15,66,12} print(marks) marks.add(555) print(marks) marks.remove(12) print(marks) fruit=frozenset(['apple','mango']) print(fruit) #fruit.add('ss') # this will create dictionary but not set a={} print(a) print(type(a)) # set function creates an empty set b=set() print(b) print(type(b)) b= set(marks) #c...
[ "aswanibtech@gmail.com" ]
aswanibtech@gmail.com
8e4ac45e01675c7b4f520a4a23d18060dc8c7369
cab678a44ecef2fcb9102588006e3080d4529481
/microsoft/store/partnercenterservices/models/microsoft_partner_sdk_contracts_v1_support_topic.py
df2acd2a2202668d37743f77e8790c7ac41b5299
[]
no_license
eduardomourar/partner-center-python
410f61f1ff0dfa8fe34414b1012edba983c289dc
85e9617d58347fb6c3b8d50b728f9a10201e2f10
refs/heads/master
2020-04-19T19:21:16.543501
2020-01-28T12:10:33
2020-01-28T12:10:33
168,386,194
2
0
null
2020-01-28T12:10:35
2019-01-30T17:38:16
Python
UTF-8
Python
false
false
1,722
py
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
[ "eduardo.rodrigues@sentia.com" ]
eduardo.rodrigues@sentia.com
915e671d8227fadd82aff81cd3cfa49c70ed068d
fb435fcd279a4a7c7014e0dbd65965c2f36a38bf
/scripts/task.py
caf2a1e19e00532138b373f13e35af78e20c99ee
[]
no_license
himanshu219/pypro
ab825f24592701f9f97286552ed1c96a924c2abe
fb241bfdaac8eb517add2211a251f470141b1e33
refs/heads/master
2020-04-06T07:02:16.855609
2016-08-14T10:24:21
2016-08-14T10:24:21
59,350,747
1
0
null
null
null
null
UTF-8
Python
false
false
1,039
py
TASK_DIR = '~/.tasks/' if __name__ == '__main__': parser = OptionParser() parser.add_option("-a", dest="add", help="adding task", action="store_true", default=False) parser.add_option("-e", dest="edit", help="editing task", action="store", default=0) parser.add_option("-l", dest="list", help="list all ...
[ "hp.iiita@gmail.com" ]
hp.iiita@gmail.com
137ba7136d89e5ece45a8d4271fd13561c4b608f
13f25be5c1f9d4023fdc188af20699370bbc896d
/billy/commands/update_external_ids.py
3e37a7f86791dc9da57d8eb46cbb0c11f1901cb7
[]
no_license
JT5D/billy
d303ca408527e122faebdd1c1047233cf0231d8c
de1586fddd30d354d80d6b6b2c7932e16bc02991
refs/heads/master
2020-12-25T15:51:22.750561
2012-09-14T16:23:18
2012-09-14T16:23:18
5,826,718
1
0
null
null
null
null
UTF-8
Python
false
false
2,540
py
import json import urllib import urllib2 import time import sys from billy import db from billy.conf import settings from billy.commands import BaseCommand class UpdateMissingIds(BaseCommand): name = 'update-ext-ids' help = 'update TransparencyData ids' def add_args(self): self.add_argument('ab...
[ "james.p.turk@gmail.com" ]
james.p.turk@gmail.com
4c7ba819b5140bd2232359cb05c21ef6b7cf4108
8c6cf9a96f53894c2aa14bbbe21b898bc5dd7541
/Lesson7-ensemble_methods/ensemnle-methods/venv/bin/easy_install
f49b71ecf15e9967b542cc234f929317ce18676a
[ "MIT" ]
permissive
raafatzahran/Udacity-DataScience
f351a4d37816eb3695419e729d772087475ae3c9
a27eb164d840fb72fb9ab5f021e43856e60cf243
refs/heads/master
2020-03-21T14:05:06.343572
2018-07-29T12:34:25
2018-07-29T12:34:25
138,640,552
0
0
null
null
null
null
UTF-8
Python
false
false
476
#!/Users/raafatzahran/Udacity-ND/Lesson7-ensemble_methods/ensemnle-methods/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = ...
[ "raafat@telemagic.no" ]
raafat@telemagic.no
2e393d7356fa2a2021a3160b981dba37058040fc
eabf86b6e381ab13d08c60003437946857fefcad
/FormattedStrings.py
dc475152173587b657f9e83636192f59c6b9b6fd
[ "MIT" ]
permissive
ejrach/exercises-mosh
4a1d471e513a1c0f7ff78b25c0bff5b0ba699f23
baaa02dff58652a9910d654be9bdd3e76dece9b7
refs/heads/master
2023-03-20T12:10:13.836764
2019-10-01T14:39:35
2019-10-01T14:39:35
198,443,046
0
0
MIT
2023-03-03T07:12:07
2019-07-23T14:04:41
JavaScript
UTF-8
Python
false
false
283
py
first_name = 'John' last_name = 'Smith' #the output can be written like this, a concatenated string message = first_name + ' [' + last_name + '] is a coder' print(message) #or like this formatted string - prefixed with an f msg = f'{first_name} [{last_name}] is a coder' print(msg)
[ "eric.rach@gmail.com" ]
eric.rach@gmail.com
49fdee19a2749ce313384605cac5604eb9846fa3
ef3f05684f83a1a2ff8fc1e405858dc21bb037ce
/play_midi.py
1a04092540be9a482a740e55e4e26a2954e87c5f
[]
no_license
scott929/musical-neural-net-new
517581ff6728597d5ec37a98ba7fe65da369281b
a98eac24985374c574d14880dbc4143c90e48b61
refs/heads/main
2023-04-03T17:26:33.830780
2021-04-15T16:10:56
2021-04-15T16:10:56
358,308,322
5
0
null
null
null
null
UTF-8
Python
false
false
813
py
import pygame as pg def play_music(music_file): clock = pg.time.Clock() pg.mixer.music.load(music_file) print("Music file {} loaded!".format(music_file)) pg.mixer.music.play() # check if playback has finished while pg.mixer.music.get_busy(): clock.tick(30) music_file = "sample-outpu...
[ "scottcao929@gmail.com" ]
scottcao929@gmail.com
808312317df6d0dfeca66bc7bba065770d48e142
eb8d605fb98e32facdfef9c2b1ee154d72a9d944
/venv/Lib/site-packages/icalendar/tests/test_recurrence.py
fc8b1be0554f5607062da3a0386c2132fa00df43
[ "MIT" ]
permissive
Dhhoyt/Physballs
d07472864a6c342eef7cf210d45e51007647bd88
2225f5d88c7e16ac2b9aa59eb6e312eb62750955
refs/heads/master
2022-11-26T21:30:41.023974
2020-07-22T01:35:42
2020-07-22T01:35:42
281,017,914
0
1
MIT
2020-07-22T01:35:44
2020-07-20T05:01:05
Python
UTF-8
Python
false
false
2,066
py
# -*- coding: utf-8 -*- from icalendar.caselessdict import CaselessDict import unittest import datetime import icalendar import os import pytz class TestRecurrence(unittest.TestCase): def setUp(self): directory = os.path.dirname(__file__) with open(os.path.join(directory, 'recurrence.ics'), 'rb'...
[ "mewsiof@gmail.com" ]
mewsiof@gmail.com
d51070832466bbae325f25e103f2e00e81030c3e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02717/s273928982.py
4e8c5d3b6646e3a0f9abc51aba12f955647e3323
[]
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
64
py
A,B,C=[i for i in input().split(" ")] print(" ".join([C,A,B]))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
a9239f4187b6f66c91675499cc7ba3940726ddc5
9367ff3cc1ad4128e8c7e3559185b5ad86ab562e
/scripts/figures/plot_pg_dist.py
3d31a1c637133fecf22cfefb975be7bc3796231d
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
mitdbg/treeline
b829b2e4dd5b114c03e59235391fd048a5244047
6a7c35fb38f5de93026d451a0ed2d3199de8ad7a
refs/heads/master
2023-07-23T17:12:13.313496
2023-07-18T15:08:05
2023-07-18T15:08:05
373,646,092
94
8
MIT
2023-07-18T15:08:07
2021-06-03T21:30:18
C++
UTF-8
Python
false
false
2,041
py
import conductor.lib as cond import matplotlib.pyplot as plt import pandas as pd from plot_common import DATASET_COLORS, DATASET_MAP plt.rcParams["font.size"] = 14 def normalize_data(data): norm = data.copy() norm["num_pages"] = norm["num_segments"] * norm["segment_page_count"] norm["norm"] = norm["num_...
[ "geoffxy@mit.edu" ]
geoffxy@mit.edu
6a7f38fa9a2ac069c47ae663559c52d12a956478
1a3732420facd1644cb61fc662b7646901e2f358
/Django_Rest_Tutorial/env/bin/django-admin.py
91cb77acbf62b80fa57541f3c5621d2ba8488dc9
[]
no_license
Amanda-Wakefield/Projects
a46d911b431beedbbda987b86e2177dfe970ee1a
7d267391520c5ea5fef1ba6e4a1da52f65866e56
refs/heads/master
2016-09-05T10:13:51.084236
2015-07-22T22:58:47
2015-07-22T22:58:47
39,464,467
0
0
null
null
null
null
UTF-8
Python
false
false
157
py
#!/home/amanda/Django_Rest_Tutorial/env/bin/python from django.core import management if __name__ == "__main__": management.execute_from_command_line()
[ "tud16919@temple.edu" ]
tud16919@temple.edu
586e8552ba0e6b911410a52c8989eb48b31506c7
9eb7dd8ef7fbe22c435ce2856906fe45736e8cef
/Day03/ digit_letter_counter.py
9ee12de0853b5a2d39d4231d779ddf0a7e3c1a15
[]
no_license
iabdullahism/python-programming
a0bc3fe590790d2d389a747481069bd18f645ce4
4129d3f9e997e0f3c0d56e552dc49e8241e29182
refs/heads/master
2020-08-11T17:07:24.577278
2019-07-26T14:34:00
2019-07-26T14:34:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,484
py
""" Code Challenge Name: Digit Letter Counter Filename: digit_letter_counter.py Problem Statement: Write a Python program that accepts a string from User and calculate the number of digits and letters. Hint: Store the letters and Digits as keys in the dictionary Input: Python 3.2 Ou...
[ "rahulpandit151197@gmail.com" ]
rahulpandit151197@gmail.com
a6daad4330bb0a531e150f6cbc030decbbccf430
fae09433ae0985fd13940cb4efb105b9782197f3
/Working Demonstration/RetinalModeling-Starburst-Growth/RetinalModeling-Mike-Starburst-Growth/StarburstMorphology.py
f885beda9fa590edba6be96bb621aefbe369d8c4
[]
no_license
mikewesthad/RetinalModeling
6b55504044587bfa886203041746ce9dedf632cc
a5c2d854d5716cba6d1a6232c66401e45943b8b3
refs/heads/master
2020-04-08T08:43:15.012285
2013-05-10T19:35:06
2013-05-10T19:35:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,287
py
from random import uniform, randint, shuffle, choice from igraph import Graph, ADJ_UNDIRECTED import matplotlib.pyplot as plt import numpy as np import pygame from pygame.locals import * from Vector2D import Vector2D from StarburstDendrite import DendriteSegment from Compartment import Compartment from Constants import...
[ "mikewesthad@gmail.com" ]
mikewesthad@gmail.com
e20d78120e7e8e868e2796fbd0ad91445e24f16a
eea1c66c80784d4aefeb0d5fd2e186f9a3b1ac6e
/atcoder/abc/abc101-200/abc170/d.py
6f7baffcc4792acd400908f7b89a52f59bfb752e
[]
no_license
reo11/AtCoder
4e99d6f40d8befe264761e3b8c33d3a6b7ba0fe9
69c6d67f05cb9190d8fb07204488cd7ce4d0bed2
refs/heads/master
2023-08-28T10:54:50.859288
2023-08-22T18:52:47
2023-08-22T18:52:47
162,085,118
4
0
null
2023-07-01T14:17:28
2018-12-17T06:31:10
Python
UTF-8
Python
false
false
357
py
import sys from collections import Counter input = sys.stdin.readline MAX = 1000001 dp = [True for _ in range(MAX)] n = int(input()) a = list(map(int, input().split())) cnt = Counter(a) a = sorted(list(set(a))) ans = 0 for v in a: if cnt[v] <= 1 and dp[v]: ans += 1 m = v while m < MAX: dp[...
[ "reohirao116@gmail.com" ]
reohirao116@gmail.com
5c1825d0e3f94426431d89cffacf3ceb9ed7a923
3fca0f24fe91abfaeea1992453fae917e84d460d
/airflow/providers/presto/hooks/presto.py
709a378a8d89f49fc5ae4494cb97628e9cc272bf
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
john-bodley/incubator-airflow
eba853453b59e7902737f73bb6c9a56fdec050a4
d7777bb910d9d5eac40849cc27993676ed0da7f6
refs/heads/main
2022-08-09T19:38:25.069559
2022-07-22T22:43:27
2022-07-22T22:43:27
59,783,957
0
0
null
null
null
null
UTF-8
Python
false
false
11,882
py
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
[ "noreply@github.com" ]
noreply@github.com
de713e5c295ae8c0bb8e2d6b4f55ac6239d2cecc
d980ba52910c9ccf77a97026f4b9af4078c6b822
/mysql.py
57519d680bef3bd2bc37f3f224dc91a875399544
[ "MIT" ]
permissive
KirieHaruna/web_scanner
bee0f18e17da3be6ca6b10771d5e7836beb570a3
4ff69f74c79c2a97b30f58b5879654f6db1aaa42
refs/heads/master
2022-05-27T08:18:57.317237
2020-04-28T08:34:27
2020-04-28T08:34:27
255,586,272
0
1
null
null
null
null
UTF-8
Python
false
false
998
py
import pymysql def creat(): db = pymysql.connect("localhost", "root", "123456", "sakila") cursor = db.cursor() cursor.execute("DROP TABLE IF EXISTS BUGINFO") sql = """CREATE TABLE BUGINFO ( URL CHAR(100) NOT NULL, PAYLOAD CHAR(50), INJECTABLE CHAR(5), ...
[ "noreply@github.com" ]
noreply@github.com
b35168230eab80e6c3898fbb27a2e8ba27fcc281
c3a46ea8c3b726c136ce3032686b010c711276a9
/proto_parse.py
26d32a9d865ba2e618c941b56ad82f5b21767385
[]
no_license
silicontrip/bpmdj-tools
b7623a97165337718c2c0cd9e2c64ea1db51bda6
6a890b7d0e4f07ada0f51cce3b0fa89580d26cff
refs/heads/master
2020-04-08T17:37:25.343215
2018-11-29T02:02:06
2018-11-29T02:02:06
159,574,839
0
0
null
null
null
null
UTF-8
Python
false
false
8,920
py
#!/usr/bin/python import sys import struct # Helper functions ------------------------------------------------------------ # this comes largely straight out of the google protocol-buffers code for DecodeVarint(internal\decoder.py) # with a few tweaks to make it work for me def readVarInt(buffer, pos): mask = (1 << 6...
[ "mjpeg0@silicontrip.org" ]
mjpeg0@silicontrip.org
bbee8a3bfa82f347f64cd2ead29a20eb61dd68ba
5df2ab174c9ffa966376e04d04648bdff2b564cb
/Python_Book/part2_data/scatter_squares.py
d9346fe2b318b9d2e8f2b9db3803f85022c87880
[]
no_license
ingoglia/python_work
6c518c795030ec05ce6124547d6eb6dca5c31973
c99963c701d50d6cf0d52b9affb11092dec97a0e
refs/heads/master
2021-01-01T15:34:06.689019
2017-09-02T18:27:26
2017-09-02T18:27:26
97,644,929
0
0
null
null
null
null
UTF-8
Python
false
false
550
py
import matplotlib.pyplot as plt x_values = list(range(1, 1001)) y_values = [x**2 for x in x_values] plt.scatter(x_values, y_values, c=y_values, cmap=plt.cm.Blues, edgecolor='none', s=40) # Set chart title and label axes. plt.title("Square Numbers", fontsize=24) plt.xlabel("Value", fontsize=14) plt.ylabel("Square...
[ "mrnobody@nowhere.special" ]
mrnobody@nowhere.special
3002d3ecdd09c0ed835fd4a309d107f444c02bda
29a00bb16146dde9c8512cc6479d2eabae8d6357
/treehacks/lib/python3.6/stat.py
bb198db2c5dd9d4d3ce6192c0665f0669e089eb4
[]
no_license
KatieMishra/Treehacks
0ffe2ca82fbca792f7010831763d148e93701e43
e49996109b09bfbaf9ef0caeea9c39e0beb37952
refs/heads/master
2020-04-23T06:08:13.212775
2019-02-17T12:25:51
2019-02-17T12:25:51
170,963,196
0
1
null
null
null
null
UTF-8
Python
false
false
48
py
/Users/JenniferHe/anaconda/lib/python3.6/stat.py
[ "jenhe2000@yahoo.com" ]
jenhe2000@yahoo.com
8daa0d6edb6393d5d6418711516b72ba4cda6421
cea0e1d9e39b0be9ad699bc8e6b537226616c6a3
/day7/day7.py
d236b41df2d397ce0c45e6ad83bb33e1fd965c5f
[]
no_license
leonmbauer/Advent-Of-Code-2020
c51cffffe06ea627c5e798aaaa6c5623c474d85b
77595563da71177a9814f5dd31e68b7a6ced10ba
refs/heads/main
2023-01-30T13:37:12.743900
2020-12-15T16:47:43
2020-12-15T16:47:43
317,654,635
1
0
null
null
null
null
UTF-8
Python
false
false
716
py
# Puzzle link: https://adventofcode.com/2020/day/7 inputfile = open("D:\coding\Advent of Code 2020\day7\day7input.txt", "r") lines = inputfile.readlines() rules = [] totalbags = [] for value in lines: rules.append(value.strip("\n")) def day7(rules, color): acceptsbag = [] splitrule = "" for rule in r...
[ "lbauer822@gmail.com" ]
lbauer822@gmail.com
e6e308bdd1e7dd283f4399a15d8fb8554aaab6dd
8d97abead3d1e7fb1a77cf77da2c237c507e1599
/pureFreshProj/pureFreshProj/asgi.py
668ad6ea6a347828e0a8f8785e87894b6845b505
[]
no_license
techiesoul8/pureFreshRepo
f8b5d5828149835593408cf3c9c6d904cabcc96e
9b41710c8ed22c9ab87617dc0e6e0df2bd731aa7
refs/heads/master
2021-09-24T22:14:33.675072
2020-02-01T20:51:08
2020-02-01T20:51:08
236,665,625
0
0
null
2021-09-22T18:28:47
2020-01-28T05:32:06
HTML
UTF-8
Python
false
false
403
py
""" ASGI config for pureFreshProj project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO...
[ "techiesoul8@gmail.com" ]
techiesoul8@gmail.com
8e2c0be6c7d23cf0d22524fbf1a53d0d962939ac
72d4cf6ef8b4d0b1ca50b969e673bb494055deb4
/LinearSystem.py
480ea85c3caf1c34bf9154ba9cc275ff8588a90b
[]
no_license
tourist1029/notebook_python
3bfc2b8abc078391433fc2087d7947fe636786da
68f73dd4079f48923a76487f3a10901a3c938635
refs/heads/master
2020-06-21T00:31:26.143647
2019-07-17T10:47:15
2019-07-17T10:47:15
197,299,631
2
0
null
null
null
null
UTF-8
Python
false
false
2,199
py
from Matrix import Matrix from Vector import Vector class LinearSystem: def __init__(self, A, b): assert A.row_num() == len(b), "row number of A must be equal to the length of b" self._m = A.row_num() self._n = A.col_num() assert self._m == self._n # 后面可以省略这个限制 #定义增广矩阵, 添加...
[ "enricyx@outlook.com" ]
enricyx@outlook.com
61800924239c8fb6f1f53e3f2ac06aeed078d177
350c96dc9322722f146e618f6fda8b53012e8cfa
/python3/thinkcs-python3/13.11.1.py
6a0bae6ef2cda9feb9d13cb40be60d0f65efea67
[]
no_license
jhn--/sample-python-scripts
a5f896b0ad78eee6fe6ea51b4d5f695275a7cc5f
980724da60372a31e23aff902dcead3a03efcc6f
refs/heads/master
2021-01-25T06:06:12.717869
2020-01-03T19:55:40
2020-01-03T19:55:40
22,878,856
0
0
null
null
null
null
UTF-8
Python
false
false
700
py
''' 13.11.1 Write a program that reads a file and writes out a new file with the lines in reversed order (i.e. the first line in the old file becomes the last one in the new file.) ''' oldfile = "text.txt" newfile = "rev_text.txt" def reverse_file(old, new): f = open(old, "r") xs = f.readlines() f.close()...
[ "john.hoe@gmail.com" ]
john.hoe@gmail.com
da1424b954c6ea7946bf5c4b741adee5647928ce
2e69d2f140bb653938dc1b7238b85a4af4754123
/metanic/settings/development.py
24903ea9e622fd8f43c25fe974be2913277bb0c6
[ "BSD-3-Clause" ]
permissive
metanic/services
f866d78e7207624cf4b420929d987b6005394d1d
a00b99f9b697864a078e2cb886be4d75c10458a9
refs/heads/master
2021-06-06T22:33:56.823827
2018-08-14T08:05:00
2018-08-14T08:05:00
115,375,318
0
0
NOASSERTION
2020-02-11T21:34:25
2017-12-26T01:57:09
Python
UTF-8
Python
false
false
2,287
py
from metanic.settings.defaults import INSTALLED_APPS from metanic.settings.defaults import MIDDLEWARE from metanic.settings.defaults import REST_FRAMEWORK from metanic.settings.defaults import cache_url from metanic.settings.defaults import env_value from metanic.settings.defaults import project_path # We specificall...
[ "monokrome@monokro.me" ]
monokrome@monokro.me
6ac9b4b2e0a9cabb8fefd64438d1e78820449696
cefb51a0833609caae3c721b39a43754137fad4a
/PaperSubmission/ActiveLearner/InteractiveLabeling.py
89162ff30b323423b7072ecdf8914deab6a40222
[]
no_license
emmableu/CuratingExamples
b116fbdf9f56d955a777b51acdd77df3ab57bdd6
6c1f0aa0a91153f46657aa03e0cb06f30f28faec
refs/heads/master
2021-02-13T17:15:43.712643
2020-07-09T23:49:53
2020-07-09T23:49:53
244,715,719
0
0
null
null
null
null
UTF-8
Python
false
false
2,789
py
import sys sys.path.append('/Users/wwang33/Documents/IJAIED20/CuratingExamples/PaperSubmission/PassiveLearner') from PatternMining import * sys.setrecursionlimit(10**8) from ActiveLearnActionData import * import warnings warnings.filterwarnings('ignore') # from pattern_mining_util import * def interactive_label(label_...
[ "wwang33@ncsu.edu" ]
wwang33@ncsu.edu
24a0eef4f1af79a957cf9029213903e7a4999b2b
3899dd3debab668ef0c4b91c12127e714bdf3d6d
/venv/Lib/site-packages/tensorflow/python/estimator/canned/linear.py
f20177bc113e7d69e4c24f89d653ca26be594025
[]
no_license
SphericalPotatoInVacuum/CNNDDDD
b2f79521581a15d522d8bb52f81b731a3c6a4db4
03c5c0e7cb922f53f31025b7dd78287a19392824
refs/heads/master
2020-04-21T16:10:25.909319
2019-02-08T06:04:42
2019-02-08T06:04:42
169,691,960
3
2
null
null
null
null
UTF-8
Python
false
false
22,582
py
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
[ "a@bogdanov.co" ]
a@bogdanov.co
afe9008e6a9e13d645434deab28633691d4014b5
4be6e0e23505165a4fa42e50bd2b62b005d6fb2b
/main.py
1b51b83dd5f36e0b9e332151751ef0aa91edd650
[]
no_license
curiousboey/Salesman-Problem
e1d6e4c858bf95e0a6e77e94e746571daffb100a
53e3c4e42b78e7a95be8dc74d63eea8f29e83e8e
refs/heads/master
2023-07-29T09:06:31.274486
2021-09-11T12:05:02
2021-09-11T12:05:02
405,368,420
1
0
null
null
null
null
UTF-8
Python
false
false
1,101
py
import numpy as np import matplotlib.pyplot as plt import math from itertools import permutations no_of_points = 8 x_value = np.random.randint(1, 100, no_of_points) y_value = np.random.randint(1, 100, no_of_points) x_per = list(permutations(x_value)) y_per = list(permutations(y_value)) distance_sum= [] for x in ran...
[ "bhupendrabc71@gmail.com" ]
bhupendrabc71@gmail.com
6c3db8b53bd8c75510c300d3ababa12ae4c34617
b65177afe65a16bb51bfd5e25e5f753b09ecaed6
/scripts/build_model.py
de8bd5c88a104849e97759fa58285977a7536cdd
[]
no_license
maxguillaume20/Structure-Prediction-Assignment
1813f25af0fd1db9b9307c777050531b8a6eca2b
10e3e6d5fcdab05a29373647e24cbcff1024e7cd
refs/heads/master
2021-01-17T21:49:00.683738
2016-02-29T16:38:02
2016-02-29T16:38:02
52,432,367
0
0
null
null
null
null
UTF-8
Python
false
false
1,286
py
import argparse import os from modeller import * from modeller.automodel import * def parse_arguments(): """Parse arguments""" def _is_valid_file_(x): """ Checks if argument if an existing file, else returns an error""" if not os.path.isfile(x): raise argparse.ArgumentTypeError(x ...
[ "olivmrtn@gmail.com" ]
olivmrtn@gmail.com
c2128ecbf70539ca24c18357cbb9cc5599012840
f0bd81fa7ac9a58e358b685dede3e1316eac882d
/ebsTagginInheritance.py
24ef9a2a1206905c1ef04f5a76f1c3b02d79d49c
[]
no_license
justwes2/aws_cloud_mgmt_scripts
64fb7dac58cdf936e0ea929097812cd838644de3
f6981bc71607d5448ef50e1dfe87cde2c25ac7cb
refs/heads/master
2021-04-30T08:46:49.960406
2018-06-25T15:36:33
2018-06-25T15:36:33
121,383,653
0
0
null
null
null
null
UTF-8
Python
false
false
1,733
py
import boto3 ec2Client = boto3.client('ec2') ec2Resource = boto3.resource('ec2') def get_instance_id(event): # Passing in test inst for dev # instance_id = event["detail"]["instance-id"] instance_id = 'i-0e9d4b20432516e9f' # instance = ec2Client.describe_instances( # Filters = [ # ...
[ "wes.coffay@gmail.com" ]
wes.coffay@gmail.com
e66b011408adab3c02dfcec3760cc9db05c95c59
54a759a213e65ddb3a64eb5ec7892f3b34ce7e09
/venv/bin/easy_install-3.6
e0809e2d2ec532f78dfd3d1d09dc5f6643d62da0
[]
no_license
nishantpa/graphql-python
a30b50a13b9c07f5256901e9aa6d23c98c4d860a
c9e018079a0a8895d3169f6b9180f18f67a5c9df
refs/heads/master
2021-09-04T12:56:22.958181
2018-01-18T22:22:41
2018-01-18T22:22:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
276
6
#!/Users/nishantpatel/Development/graphql/venv/bin/python3.6 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "nishantpatel@Nishants-MBP.home" ]
nishantpatel@Nishants-MBP.home
ceea7101bd7a8fbb6a69d2bd09009feb8a85da09
fdf6b431dbb8f6a5af7af586eae16fce758026e7
/accounts/urls.py
6b56120905a0a874a29a0aeb503fe9a68b5f3d85
[]
no_license
ghaywatc/cghaywat
4fa9c81c319e9d8a909ab13160fc5ae9fd349b1a
67f404f74b197c4a913c6f51819aef990ac11991
refs/heads/master
2023-03-13T23:57:45.886682
2021-02-23T20:48:21
2021-02-23T20:48:21
341,685,106
0
0
null
null
null
null
UTF-8
Python
false
false
364
py
from django.urls import path from django.contrib.auth import views as auth_views from . import views app_name= 'accounts' urlpatterns = [ path('login/',auth_views.LoginView.as_view(template_name='accounts/login.html'),name='login'), path('logout/',auth_views.LogoutView.as_view(),name='logout'), path('Sign...
[ "ghaywatc@gmail.com" ]
ghaywatc@gmail.com
26192e0ebc0d1cd4c5f4c4daacc29ba82a8324dc
5fc4767f01833e7dd3d20a133f597123191c1431
/Maxima and minima of functions/Minima.py
2bfec9739085163b8c7c7c548f57562fd96f5a94
[]
no_license
PayalS1999/Genetic-Algorithm
a6ea63e2a3a4501b3945f957b56fe175419b59e8
9a85ba891cf8994c643fe64c244999b797ac99e2
refs/heads/main
2023-04-20T11:48:34.269907
2021-05-01T18:17:37
2021-05-01T18:17:37
363,345,177
0
0
null
null
null
null
UTF-8
Python
false
false
4,206
py
import numpy as np import math import random import matplotlib.pyplot as plt def func(x): return x**2 + 48*x -385 def plotting(n,x,y): fig= plt.figure() plt.plot(n,x,'-',color='red',alpha=0.6,label='Population average') plt.plot(n,y,'--',color='green',label='Population maximum') pl...
[ "noreply@github.com" ]
noreply@github.com
eb399de506fea74d5ed8b71968924f9c1bec5da9
5ef2fc5fa0c2605d17353a77d2279bd7bbc22034
/utilities/Customlogger.py
66c74e2644e7cbecd214b48662e668b9a4350151
[]
no_license
makpowerful/DSNAP
2fd40ff3c8cc34974cde98e2931a4b3d7ea187f5
8cc26ec1210693087161b305abc7e7922587a78b
refs/heads/master
2023-01-24T13:13:39.220663
2020-12-10T09:12:02
2020-12-10T09:12:02
316,496,814
0
0
null
null
null
null
UTF-8
Python
false
false
1,268
py
import logging #class LogGen(): #@staticmethod #def loggen(): # for handler in logging.root.handlers[:]: # logging.root.removeHandler(handler) # logging.basicConfig(filename="C://Users//mkalamshabaz//PycharmProjects//DSNAP//Logs//automation.log",format='%(asctime)s: %(levelname)s:...
[ "mak_powerful@yahoo.co.in" ]
mak_powerful@yahoo.co.in
84b75d96249ce2d145a4267e417b242d359e1cae
41e3e64f1487e6061729a6ef9aaab1062ca33f67
/DiscreteCosineTransform.py
fc723b24379549a41d671e6b94a391d548708f33
[]
no_license
Wilmir/DiscreteCosineTransform
b0ec8aee282c38b8b9544df233f50bcebc2480bc
222cc9799d99983cd7f9ca3d87a8f91b38fbb806
refs/heads/master
2023-01-30T22:09:03.781538
2020-12-08T12:20:19
2020-12-08T12:20:19
319,414,447
0
0
null
null
null
null
UTF-8
Python
false
false
815
py
import numpy as np import math N = 8 n = 8.0 T = np.zeros((N,N),dtype="float_") Tt = np.zeros((N,N),dtype="float_") def printMatrix(npArray): for r in range(N): for c in range(N): print("{0:0.3f}".format(npArray[r][c]), end = "\t") print() def Generate_T(): for r in range(N): ...
[ "a00278899@student.ait.ie" ]
a00278899@student.ait.ie
d40061d5b471c876bfd9807d919cd5353053d42a
2fad06f78a76c4fc15bf0c7a9736dcf7244240d0
/node_modules/fsevents/build/config.gypi
d4b7b3d2cd4fc96079828ea6bc1c41ac22268ffd
[ "MIT" ]
permissive
Pstarsss/ts_snake
f028883bfddc15a8467ec597623af5dd59adaedf
14559254e989848afbf384ee6e97b6f508bf3808
refs/heads/master
2023-04-04T06:35:10.433253
2021-04-14T11:27:59
2021-04-14T11:27:59
357,879,489
0
0
null
null
null
null
UTF-8
Python
false
false
5,743
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [] }, "variables": { "asan": 0, "build_v8_with_gn": "false", "coverage": "false", "debug_ngh...
[ "xingpan@yangqianguan.com" ]
xingpan@yangqianguan.com
f1ca9eed522212d6934ddb637b30f8665ffb3113
b1a2cd489ed0baafc44f1d406952c2792bbb9661
/code/pwc/rho_vis.py
8b1bb69b85e513f152b6c22806f0bc181993454a
[]
no_license
fsoest/ba
df5f26726f4db761853efd2e8d5c4252e49577a9
40f08044848fa805776eccb16f3237ee234f8840
refs/heads/master
2023-03-03T09:31:06.066888
2021-02-10T11:31:42
2021-02-10T11:31:42
297,967,729
1
0
null
null
null
null
UTF-8
Python
false
false
2,116
py
from multiproc.pwc_helpers import rho_path import numpy as np import matplotlib.pyplot as plt import qutip as qt def data_wrapper(data, dt, steps): N = int(len(data[0]) / 2) theta_d = data[0][:N] phi_d = data[0][N:] theta_t = data[1][:N] phi_t = data[1][N:] rho_0 = data[3] return rho_path(...
[ "felix@soest-net.de" ]
felix@soest-net.de
1c1031d5eadebb75a4a6bd7db5d0f83a4e500726
e66dc121195ce4464d8958cb65baf909c3b8bb19
/survey.py
2c761ffbef662f476843c041cfe86e039459d3d1
[]
no_license
youurt/Python
a524c126ac30836be013600931232173e1ce793b
41ff30c0d2b316d16fb51b8290176dffad4f92a1
refs/heads/master
2020-09-10T07:27:46.792183
2019-11-14T11:43:17
2019-11-14T11:43:17
221,684,825
0
0
null
null
null
null
UTF-8
Python
false
false
709
py
class AnonymousSurvey(): """Collect anonymous answers to a survey question.""" def __init__(self, question): """Store a question, and prepare to store responses.""" self.question = question self.responses = [] def show_question(self): """Show the survey questio...
[ "ugurtigu@gmail.com" ]
ugurtigu@gmail.com
197ada5990972489d11e42d1f750c1109aa8419a
93e4d67c01e31ec74cf9e4cd210fa4a018317b6e
/src/DATest/LotteryDA/WelfareLottery/3D/DataDownload.py
b7e553e75cc25fd1dbb182a5edd5bee39e927afd
[]
no_license
Sammion/DAStudy
d0c1d485d1dc01555d69da59098e5170d3ec3c0a
23852b3ccb830a5baf9a990a609a5c2586f80f8e
refs/heads/master
2021-09-26T10:30:38.585465
2018-10-29T09:57:50
2018-10-29T09:57:50
115,117,332
0
0
null
null
null
null
UTF-8
Python
false
false
2,655
py
# -*- coding: utf-8 -*- """ Created on 8/10/2018 @author: Samuel @Desc: @dependence: Noting """ import requests from bs4 import BeautifulSoup import xlwt import time # 获取第一页的内容 def get_one_page(url): headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Geck...
[ "33392372+Sammion@users.noreply.github.com" ]
33392372+Sammion@users.noreply.github.com
cc5944b4c83a4775a2bb0eb3623f8812a6f2e3ac
c4a2c5d2ee3bb946333bec267c337858c2eaa87c
/tests/bhive/test_asciichart.py
33f157a84494dea26f1582b0203b3aa21810eb53
[ "MIT" ]
permissive
TheCrazyGM/bhive
93b237140def25a8cb4de0160678db116b45d4e0
1494e90a99123ecfc5efbd927258f9ba59443e2e
refs/heads/master
2021-04-10T20:15:59.966431
2020-03-22T23:50:52
2020-03-22T23:50:52
248,962,200
3
1
NOASSERTION
2020-10-27T22:24:53
2020-03-21T11:29:02
Python
UTF-8
Python
false
false
1,211
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from builtins import bytes from builtins import range from builtins import super import string import random import unittest import base64 from pprint import pprint from b...
[ "thecrazygm@gmail.com" ]
thecrazygm@gmail.com
94f9719ea3bafb52fb5ea71541380aa245912c33
afdeedfb743fbb149d36c14cfad65feaf03acd21
/code/1253-reconstruct-a-2-row-binary-matrix.py
bd9cbd79b960e9959b96f36d73f49227eb0ec9fe
[]
no_license
linhx13/leetcode-code
f16cd4a0d35be34c41b86715fc9f3e8ec4b0a577
c71574acfc68174a091c1751f10985b8f5737a1f
refs/heads/master
2021-07-04T03:45:20.030275
2021-06-09T13:55:18
2021-06-09T13:55:18
70,423,464
0
1
null
2019-08-01T09:37:49
2016-10-09T18:48:33
null
UTF-8
Python
false
false
870
py
from typing import List class Solution: def reconstructMatrix( self, upper: int, lower: int, colsum: List[int] ) -> List[List[int]]: n = len(colsum) res = [[0] * n for _ in range(2)] for i, s in enumerate(colsum): if s == 2 or (s == 1 and lower < upper): ...
[ "mylhx288@gmail.com" ]
mylhx288@gmail.com
b023e3022a68f36d0c3aac3e56334c0f705e2383
010840eb9317b3e4f10d499c96d01a2427e83c31
/DiaryPlanet/DiaryPlanet/settings.py
7586dfd65060294fab54c915be90a60303b5b0b2
[]
no_license
ASTARCHEN/PlanetDiary
7c5241770fe5139bf97f67c6f78263038f60da67
29f793ac683baa998cbf3b0505e4be6fbc1f94de
refs/heads/master
2020-07-30T05:34:28.936973
2019-04-03T01:33:08
2019-04-03T01:33:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,308
py
""" Django settings for DiaryPlanet project. Generated by 'django-admin startproject' using Django 1.11.20. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ impo...
[ "m1582422856@163.com" ]
m1582422856@163.com
b8b6b730b3d1e9345cd8228e34aab0f42a31aa8c
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/19_数学/数论/BSGS/G - 222.py
6cdc9f5606b73ac8778ecd183c8606680b877f35
[]
no_license
981377660LMT/algorithm-study
f2ada3e6959338ae1bc21934a84f7314a8ecff82
7e79e26bb8f641868561b186e34c1127ed63c9e0
refs/heads/master
2023-09-01T18:26:16.525579
2023-09-01T12:21:58
2023-09-01T12:21:58
385,861,235
225
24
null
null
null
null
UTF-8
Python
false
false
630
py
# 形如2,22,222,...的数列 # !这个数列第一个k的倍数的项是否存在, 若存在是第几项 # k<=1e8 # !等价于 2*(10^x-1)/9 ≡ 0 (mod k) # !即 10^x ≡ 1 (mod k*9/gcd(k,2)) from math import gcd from bsgs import exbsgs # 即为扩展exbsgs # TODO 有问题 import sys sys.setrecursionlimit(int(1e9)) input = lambda: sys.stdin.readline().rstrip("\r\n") MOD = 9982...
[ "lmt2818088@gmail.com" ]
lmt2818088@gmail.com