blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
3c3d8847ece82de5f4ddb2fa122ea976e7da211e
2ee3a2b8971118b1a1e8c101382702d698021ad5
/weather/models.py
8372f28956277f086c9e5f53ff17faa6a968168c
[]
no_license
manikshahkataria/weather
29a34264fd281cf26758be06d19dd19bbd226cfc
1bb5160caab2dc287118ab7ed4a25cf575453ee4
refs/heads/master
2022-12-11T07:50:28.988645
2019-01-19T10:22:10
2019-01-19T10:22:10
163,946,933
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
from django.db import models class City(models.Model): name= models.CharField(max_length=25) def __str__(self): return self.name class Meta: verbose_name_plural='cities' # Create your models here.
[ "manikshah1998@gmail.com" ]
manikshah1998@gmail.com
96f4d811c08062451b1b929e346ee171461170de
18aee5d93a63eab684fe69e3aa0abd1372dd5d08
/test/legacy_test/test_poisson_op.py
ee66d578014c70395ec3525f8118d2780886458c
[ "Apache-2.0" ]
permissive
Shixiaowei02/Paddle
8d049f4f29e281de2fb1ffcd143997c88078eadb
3d4d995f26c48f7792b325806ec3d110fc59f6fc
refs/heads/develop
2023-06-26T06:25:48.074273
2023-06-14T06:40:21
2023-06-14T06:40:21
174,320,213
2
1
Apache-2.0
2022-12-28T05:14:30
2019-03-07T10:09:34
C++
UTF-8
Python
false
false
8,481
py
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
[ "noreply@github.com" ]
Shixiaowei02.noreply@github.com
5fc93f5180bbbf9d6e8482073bcb89bf2d923892
2c68f9156087d6d338373f9737fee1a014e4546b
/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/authentication_details_value.py
982b4554803e85c978165d7b651f09cd77ff0c69
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
anpaz/azure-cli-extensions
8b0d4071c49840da9883f13cb0fd1f4515246ee0
847fd487fe61e83f2a4163a9393edc9555267bc2
refs/heads/master
2023-04-23T17:22:53.427404
2021-01-29T17:48:28
2021-01-29T18:01:33
257,394,204
2
0
MIT
2021-01-28T10:31:07
2020-04-20T20:19:43
Python
UTF-8
Python
false
false
890
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" ]
anpaz.noreply@github.com
ab881c94078041feb7fe0fefd3fb0913233feb4b
e715be7aef31a307d2cf09d8a4ecf46ea662826f
/device_simulator/src/orchestator.py
e88831369f171c3e6acd4859ce8da628125314b0
[]
no_license
GabrielMartinMoran/TFI_UNTREF
0dcfd0d5b4d69c282ce732a21039c4a69a6530af
e4abc9bc93b840627a008e3af5f4d86b7cd30732
refs/heads/main
2023-06-23T11:06:35.138785
2021-07-14T13:21:14
2021-07-14T13:21:14
358,573,316
0
0
null
null
null
null
UTF-8
Python
false
false
1,489
py
import time from datetime import datetime from src.models.energy_sensor import EnergySensor from src.models.console_display import ConsoleDisplay from src.models.measure import Measure from src.repositories.user_repository import UserRepository from src.repositories.device_repository import DeviceRepository import conf...
[ "moran.gabriel.95@gmail.com" ]
moran.gabriel.95@gmail.com
5b6ae4546dda852369334665c79612273e580227
0eaf0d3f0e96a839f2ef37b92d4db5eddf4b5e02
/past3/e.py
6a5af7eb3744903d23f04c0de4ad30e373c33a27
[]
no_license
silphire/atcoder
b7b02798a87048757745d99e8564397d1ca20169
f214ef92f13bc5d6b290746d5a94e2faad20d8b0
refs/heads/master
2023-09-03T17:56:30.885166
2023-09-02T14:16:24
2023-09-02T14:16:24
245,110,029
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
n, m, q = map(int, input().split()) e = [set() for _ in range(n)] for i in range(m): u, v = map(int, input().split()) u -= 1 v -= 1 e[u].add(v) e[v].add(u) c = list(map(int, input().split())) for i in range(q): s = tuple(map(int, input().split())) vv = s[1] - 1 print(c[...
[ "silphire@gmail.com" ]
silphire@gmail.com
1ee56e00fc1f6518207dde8d7e2c4ad70939ccb7
62b90959763f40954a7c6270bfb0529b536b2888
/user/forms.py
e3f2e1e1a1c2c677d176cbff33084fa0620bcb3a
[ "MIT" ]
permissive
thiagosouzalink/blogphoto_Django
68698c4fc684f0ba1d9dde795a07f72df32ead38
7d09f44b196897c4d31fff2eff8d2a164e44db27
refs/heads/master
2023-02-20T20:32:00.527084
2021-01-25T15:16:07
2021-01-25T15:16:07
332,782,817
3
0
null
null
null
null
UTF-8
Python
false
false
4,226
py
from django import forms from django.contrib.auth.forms import UserCreationForm, UserChangeForm from .models import CustomUser class UserForm(forms.ModelForm): """ Formulário para cadastrar usuário""" username = forms.CharField( label='Usuário', error_messages= { 'invalid': 'Nome...
[ "thiagolsmail@gmail.com" ]
thiagolsmail@gmail.com
9378b601770bd4c71b6a616ad9a7a895ad48a7b2
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5658571765186560_1/Python/StefanPochmann/D.py
feca86f2ed13ba681c7c3230c60ce03f3e2c21f7
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
500
py
#f = open('D.in') #def input(): # return next(f) T = int(input()) for x in range(1, T + 1): X, R, C = map(int, input().split()) A = R * C s, S = sorted((R, C)) gabriel = A % X == 0 and \ (X == 1 or X == 2 or X == 3 and s >= 2 or ...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
37dafa17ed9dc319a258358248dd28b2bbf33390
ee8c4c954b7c1711899b6d2527bdb12b5c79c9be
/assessment2/amazon/run/core/controllers/old.py
b834b8f7e61106d74a5d8d14bccffde5155b3848
[]
no_license
sqlconsult/byte
02ac9899aebea4475614969b594bfe2992ffe29a
548f6cb5038e927b54adca29caf02c981fdcecfc
refs/heads/master
2021-01-25T14:45:42.120220
2018-08-11T23:45:31
2018-08-11T23:45:31
117,135,069
0
0
null
null
null
null
UTF-8
Python
false
false
360
py
#!/usr/bin/env python3 from flask import Blueprint, Flask, render_template, request, url_for controller = Blueprint('old', __name__, url_prefix='/old') # @controller.route('/<string:title>', methods=['GET']) # def lookup(title): # if title == 'Republic': # TODO 2 # return render_template('republic.html...
[ "sqlconsult@hotmail.com" ]
sqlconsult@hotmail.com
21d962029b74b4eafe0c5b512082596bdf3800f2
95e7cf518b8d71270a7de6e7c7254861010f5035
/garage/tf/algos/batch_polopt.py
4245380d53581a9a7d6e72637049760557283eaf
[ "MIT" ]
permissive
reslthrowaway/garage
aaeadf7e918d80d467b2fcce61c50e8404480f83
e921119434d205b6f644f139f6075516fb9ece74
refs/heads/master
2020-03-28T08:32:58.835060
2018-09-08T21:55:41
2018-09-08T21:55:41
147,972,769
2
2
null
null
null
null
UTF-8
Python
false
false
6,354
py
import time import tensorflow as tf from garage.algos import RLAlgorithm import garage.misc.logger as logger from garage.tf.plotter import Plotter from garage.tf.samplers import BatchSampler from garage.tf.samplers import VectorizedSampler class BatchPolopt(RLAlgorithm): """ Base class for batch sampling-ba...
[ "reslthrowaway@yandex.com" ]
reslthrowaway@yandex.com
64f1c7bd8f0f8bab932d8e95efb828f317b84145
50008b3b7fb7e14f793e92f5b27bf302112a3cb4
/recipes/Python/438806_catenateFilesFactory/recipe-438806.py
59a8c77281e6b148e80c4e006fc5987455451ecf
[ "Python-2.0", "MIT" ]
permissive
betty29/code-1
db56807e19ac9cfe711b41d475a322c168cfdca6
d097ca0ad6a6aee2180d32dce6a3322621f655fd
refs/heads/master
2023-03-14T08:15:47.492844
2021-02-24T15:39:59
2021-02-24T15:39:59
341,878,663
0
0
MIT
2021-02-24T15:40:00
2021-02-24T11:31:15
Python
UTF-8
Python
false
false
2,449
py
import os def catenateFilesFactory(isTextFiles=True, isClearTgt=True, isCreateTgt=True): """return a catenateFiles function parameterized by the factory arguments. isTextFiles: Catenate text files. If the last line of a non-empty file is not terminated by an EOL, append an EOL to it. ...
[ "betty@qburst.com" ]
betty@qburst.com
8402be75cce1ddbd62ff54e6ca1af746d547ba7e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p04044/s043863854.py
77675a21e84977960d992326c6742602cc68d034
[]
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
172
py
N, L = map(int,input().split()) word = [] count = 0 while N > count: S = input() word.append(S) count += 1 word = sorted(word) ans = ''.join(word) print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
5f2b378d006e7aa2e46251661e0d4e03d3b9810f
d452e34253561a47b974e260dabd8dcda6e750a2
/supervised_learning/0x0B-face_verification/5-main.py
0859b3e7ecf4dc518afbab30ba555f77a521f265
[]
no_license
JohnCook17/holbertonschool-machine_learning
57fcb5b9d351826c3e3d5478b3b4fbe16cdfac9f
4200798bdbbe828db94e5585b62a595e3a96c3e6
refs/heads/master
2021-07-07T10:16:21.583107
2021-04-11T20:38:33
2021-04-11T20:38:33
255,424,823
3
2
null
null
null
null
UTF-8
Python
false
false
554
py
#!/usr/bin/env python3 from align import FaceAlign import matplotlib.image as mpimg import matplotlib.pyplot as plt from matplotlib.patches import Circle import numpy as np fa = FaceAlign('models/landmarks.dat') test_img = mpimg.imread('HBTN/KirenSrinivasan.jpg') anchors = np.array([[0.194157, 0.16926692], [0.7888591...
[ "jcook0017@gmail.com" ]
jcook0017@gmail.com
7508ed13cb989f8e06150d4a366684e8cb626f4c
890c8b8e90e516a5a3880eca9b2d217662fe7d84
/armulator/armv6/opcodes/abstract_opcodes/usad8.py
6568222b03d6464463dd16b171bf86a89484d155
[ "MIT" ]
permissive
doronz88/armulator
b864135996f876c7857b79a314d4aa06cc19c549
0294feac2785c8947e5943ac0c34f941ee4b5fff
refs/heads/master
2022-11-05T08:14:42.405335
2020-06-18T23:53:17
2020-06-18T23:53:17
273,363,061
2
0
null
2020-06-18T23:51:03
2020-06-18T23:51:02
null
UTF-8
Python
false
false
1,008
py
from armulator.armv6.opcodes.abstract_opcode import AbstractOpcode from bitstring import BitArray class Usad8(AbstractOpcode): def __init__(self, m, d, n): super(Usad8, self).__init__() self.m = m self.d = d self.n = n def execute(self, processor): if processor.conditi...
[ "matan1008@gmail.com" ]
matan1008@gmail.com
1a27b7cb18413d5522bf3d1a3fb9298b4be330c4
6810a482759afd585db7bb0b85fd0416f0450e6d
/Open Kattis/sibice.py
f2d6c7c2fb3679fd80f435ba5541e145a8be4611
[]
no_license
BenRStutzman/kattis
01b000ac2353c8b8000c6bddec3698f66b0198ef
005720f853e7f531a264227d0d9aaa19d4d7cf1b
refs/heads/master
2020-07-15T23:52:45.785021
2019-11-09T03:28:06
2019-11-09T03:28:06
205,675,532
0
0
null
null
null
null
UTF-8
Python
false
false
292
py
import sys import math [num, box_length, box_width] = [int(num) for num in sys.stdin.readline().split()] diag = box_length**2 + box_width**2 for i in range(num): match_length = int(sys.stdin.readline()) if match_length**2 <= diag: print("DA") else: print("NE")
[ "tysorx89@gmail.com" ]
tysorx89@gmail.com
458af30fcbf8a51195ccfe3366dbf2663797500d
993ef8924418866f932396a58e3ad0c2a940ddd3
/Production/python/PrivateSamples/EMJ_UL16APV_mMed-2500_mDark-20_ctau-5_unflavored-down_cff.py
a1176e87cc87095c340aa9cf5cc79a9acb526034
[]
no_license
TreeMaker/TreeMaker
48d81f6c95a17828dbb599d29c15137cd6ef009a
15dd7fe9e9e6f97d9e52614c900c27d200a6c45f
refs/heads/Run2_UL
2023-07-07T15:04:56.672709
2023-07-03T16:43:17
2023-07-03T16:43:17
29,192,343
16
92
null
2023-07-03T16:43:28
2015-01-13T13:59:30
Python
UTF-8
Python
false
false
1,991
py
import FWCore.ParameterSet.Config as cms maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) readFiles = cms.untracked.vstring() secFiles = cms.untracked.vstring() source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles) readFiles.extend( [ 'root://cmseos.fnal.gov///store/gr...
[ "enochnotsocool@gmail.com" ]
enochnotsocool@gmail.com
a27806e252e67dc407b440d4781e0d23bf86fc34
f3827ae39e077daf5507959a13d1ac4a782fe084
/src/accounts/urls.py
c29e329060e8daed823e775738b48945589f62da
[]
no_license
achiengcindy/ExtendingDjangoAuth
c6bc2c5360d90378d7d96efb3132506ad10349d9
19214ef7ef9ccdcc66e4ec15fa9e22e5fd5e24f3
refs/heads/master
2020-03-26T20:09:34.687774
2018-08-28T19:32:46
2018-08-28T19:32:46
145,308,095
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
from django.urls import path from .views import register, home, edit, activate, account_activation_sent urlpatterns = [ path('', home, name='home'), path('register/', register, name='register'), path('edit/', edit, name='edit'), path('activate/<slug:uidb64>/<slug:token>)/', activate, name='activate'), ...
[ "achiengcindy36@gmail.com" ]
achiengcindy36@gmail.com
702fb4c5e14061b0357f79b59aab9e34ee74c5ae
e708ae6207ca775fe6f5106ea971c994b29ffac0
/examples/shrec17/dataset.py
a5c07eee3fcfc1e87c9f3610656ea664095326d1
[ "MIT" ]
permissive
arewellborn/s2cnn
6f4304cd22456bfaefe7623e53ac7b8afda22471
fd734b845f1d313ce13a6f1161c8fa383b28a9e5
refs/heads/master
2021-05-23T14:24:31.276613
2021-01-20T04:37:53
2021-01-20T04:37:53
253,338,038
0
0
MIT
2020-04-05T21:43:51
2020-04-05T21:43:51
null
UTF-8
Python
false
false
11,432
py
# pylint: disable=E1101,R,C import csv import glob import os import re import numpy as np import torch import torch.utils.data import trimesh import logging logging.getLogger('pyembree').disabled = True def rotmat(a, b, c, hom_coord=False): # apply to mesh using mesh.apply_transform(rotmat(a,b,c, True)) """ ...
[ "geiger.mario@gmail.com" ]
geiger.mario@gmail.com
9d1544e03e6517060106ba3d8555c94351c4e3c9
b5fb45288ed2a204692051ab78e72d8aa6e5accd
/argo_data_scripts/util/count_concurrent.py
d13a0c91034e0cdcecb1c9531b3779cf08de3da0
[ "Apache-2.0" ]
permissive
nithinksath96/MMdetection_TensorRT_FP16
d4987f003798f5d6d4fe5bde2f30dd5ee2e8596d
c8379b209d4deeff9350baf5bbedfc95fb8941f4
refs/heads/master
2023-02-13T20:00:21.834541
2021-01-06T09:24:20
2021-01-06T09:24:20
327,260,988
0
0
null
null
null
null
UTF-8
Python
false
false
2,792
py
# given rt_ series input, count the max number of concurrent jobs # current implementation only applies to inf results, where processing starts immediately import argparse, json, pickle from os.path import join, isfile from tqdm import tqdm import numpy as np from pycocotools.coco import COCO import sys;...
[ "nsathish@compute-0-32.local" ]
nsathish@compute-0-32.local
4d36a1fe52245f8e1c029f1e0d036ca2a1b932c1
b3a2ac9eb02a6eef9e6f3504afabc6400f894f56
/clld/lib/latex.py
325cb2c7397bf818455945818ba172a534d29a06
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
Anaphory/clld
9f67c477e228eff05fdc7b7fa4310c703af02108
bed1a6d08275a41fd7b5d13a0af19e4e538d186c
refs/heads/master
2021-01-17T04:50:05.382411
2017-02-16T11:20:11
2017-02-16T11:20:11
66,831,136
0
0
null
2016-08-29T09:43:06
2016-08-29T09:43:05
null
UTF-8
Python
false
false
15,747
py
""" Character translation utilities for LaTeX-formatted text. Usage: - unicode(string,'latex') - ustring.decode('latex') are both available just by letting "import latex" find this file. - unicode(string,'latex+latin1') - ustring.decode('latex+latin1') where latin1 can be replaced by any other known encoding, also...
[ "xrotwang@googlemail.com" ]
xrotwang@googlemail.com
76ec0bfa00c7191eecde64d7a553a7998771bae9
4b1a3db3249a51bcd2b9699edcb60c2716b2889e
/discharge.py
e851bc189eee5ad877ce01278d2da3087be6cfb8
[]
no_license
shohei/tank-simulation
799e7c8db543f639984dbadb1b41b83fc818b831
d74b8d09eb1d5e1fa1fa61327f4fff35754ac5eb
refs/heads/master
2021-01-02T09:14:46.709964
2015-07-29T13:48:52
2015-07-29T13:48:52
39,488,510
0
0
null
null
null
null
UTF-8
Python
false
false
949
py
#!/usr/bin/env python #-*- coding:utf-8 -*- #*** TANK PRESSURE SIMULATION *** #*** AUTHOR: SHOHEI AOKI ******** #*** PROGRAMMED: 22 JUL 2015 **** from pylab import * ##### PARAMETER AREA ############ gamma = 1.4 de = 2 #[mm] Ae = pi*(de*0.001/2)*(de*0.001/2)#[m2] T0i = (24 + 273.15) # Room temperature R = 289 # J/(k...
[ "shoaok@gmail.com" ]
shoaok@gmail.com
67cf38dc2257b719682391c2d54996982c9b8db1
c7faef6d4c0a965032a37953f34373816ce092c1
/Products/MetaPublisher2/library/compatibility/historical.py
f458599fd708f8b30dc7109289df426da19247b0
[ "ZPL-2.1" ]
permissive
sfluehnsdorf/MetaPublisher2
2d52a6baf1822a94ba12f66c86760953dd1cead4
4688baa9182919a8f8da8a0afbd68997e4453708
refs/heads/master
2019-01-01T23:22:04.677296
2013-06-23T12:03:46
2013-06-23T12:03:46
null
0
0
null
null
null
null
ISO-8859-3
Python
false
false
37,321
py
# -*- coding: iso-8859-15 -*- # ============================================================================ # # M e t a P u b l i s h e r 2 # # ---------------------------------------------------------------------------- # Copyright (c) 2002-2013, Sebastian Lühnsdorf - Web-Solutions and...
[ "sfl@luehnsdorf.com" ]
sfl@luehnsdorf.com
a5bdaa8e9a727c27b7d64b956d252fd66588dfe7
b516a1d0791bba8010ad0a8616c4be259589ce5c
/anidb/model.py
5bc42d2d56d81688209b35883f85b3d6baba68c2
[]
no_license
p0psicles/pyanihttp
769cd585a9351deea6ca5c7ad8af5aa32fcaee37
6a67899e4491afd6b020edb7781e37b2781ad1df
refs/heads/master
2021-01-17T19:59:33.580955
2012-02-26T20:09:55
2012-02-26T20:09:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,563
py
__all__ = ["Anime", "Category", "Title", "Episode", "Tag"] class Entity(object): def __init__(self, id): self._id = int(id) @property def id(self): """The id of this entity""" return self._id @id.setter def id(self, value): self._id = value class Titled(object): ...
[ "themineo@gmail.com" ]
themineo@gmail.com
3fb764293b9870d147abe9b85e9cd11943995550
9849e98406768caba0cb9c9ac9300688fd012179
/doc_gen/apps.py
380b518525739e9a7d8a348feca6275b06dc5f92
[]
no_license
Trevahok/Extractinator-9000
3cb4e1c6d20d355cef156c8e7f2ca57137b38188
131122fb25a6513dc765495fbe0622ad67ca29cc
refs/heads/master
2020-04-29T10:29:21.700611
2019-05-18T11:17:56
2019-05-18T11:17:56
176,063,513
1
0
null
null
null
null
UTF-8
Python
false
false
88
py
from django.apps import AppConfig class DocGenConfig(AppConfig): name = 'doc_gen'
[ "vighneshss@gmail.com" ]
vighneshss@gmail.com
3d8932d7ae7a374fb4a9079e524d480316a6f5d4
817ff801938d25776b2564b3087c8a3c674da1a7
/NUP153_AnalyseComplex/WT_Minimization/chainBCP/WT_chainBCP_Minimization_6.py
93b4c101aa994d29251e3c4bc96938fd94e7bad9
[]
no_license
yanghaobojordan/HIV1-Capsid
b22e21a9ad530ae11f128f409e298c5ab68871ee
f44f04dc9886e660c1fe870936c48e0e5bb5adc6
refs/heads/main
2023-04-09T01:27:26.626676
2021-04-23T18:17:07
2021-04-23T18:17:07
360,968,418
0
0
null
null
null
null
UTF-8
Python
false
false
2,838
py
from pyrosetta import * from pyrosetta import PyMOLMover from pyrosetta.toolbox import cleanATOM from pyrosetta.toolbox import get_secstruct from pyrosetta.teaching import * from pyrosetta.toolbox import get_hbonds from pyrosetta.toolbox import mutate_residue from pyrosetta.rosetta.protocols.relax import * from...
[ "yanghaobojordan@gmail.com" ]
yanghaobojordan@gmail.com
9f4a4daa608a920aafce684a30429bf510d9d867
b381b5ce79ec03e281cba7e6ea253b286205fba1
/openstack/map_reduce/v1/job.py
2ab8baab2c33c86bccb1719887437cb769f0ca27
[ "Apache-2.0" ]
permissive
sun363587351/python-openstacksdk
972eedc24199c3b8a15bd21accd29a6ec70febdb
f9e055300b1c79637d7b6a791168427f27322d73
refs/heads/master
2020-12-02T19:23:01.771376
2017-07-05T13:24:47
2017-07-05T13:24:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,901
py
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
[ "iampurse@vip.qq.com" ]
iampurse@vip.qq.com
2d25dc2c818efe033ad59ee1eb11f2c8ccfde452
1ea966542e28e24b2f3f7d5e0352cbdc110a979a
/Algorithm/Programmers/Programmers_2개이하로다른비트.py
9a1ef5bccf76215078cf0ce46a5b4b707c54eb9b
[]
no_license
yunhacho/SelfStudy
9ff7002362f6e9d8fe7d1ca3ccf94ee96726f635
99912af3df014a6864893c9274dbf83ff9ed05a8
refs/heads/main
2023-08-25T06:56:21.116419
2021-10-28T07:35:09
2021-10-28T07:35:09
360,470,454
0
0
null
null
null
null
UTF-8
Python
false
false
242
py
def solution(numbers): binarys=[] for n in numbers: b='0'+ bin(n)[2:]; i=len(b)-b[::-1].find('0')-1 binarys.append('{}{}{}'.format(b[:i],'1' if len(b)-1==i else '10',b[i+2:])) return [int(b, 2) for b in binarys]
[ "jyh_5530@naver.com" ]
jyh_5530@naver.com
dbbb78de7586a3fd69f564f7384cb29ca7f56999
5793b470eea39ba99ff4d16325d462440647b77d
/System/Threads/thread-count.py
e0c36329cec628396bc4ee866d2c6f9daca41c6c
[]
no_license
zhongjiezheng/python
01a99438fc4681817d4d0e623673afa1e488864c
5c5725ad0e75d07e016b64d79eddf3d88a524fa0
refs/heads/master
2021-01-17T11:57:12.373343
2015-07-08T09:04:48
2015-07-08T09:04:48
35,549,549
0
0
null
null
null
null
UTF-8
Python
false
false
501
py
""" thread basics: start 5 copies of a function running in parallel; uses time.sleep so that the main thread doesn't die too earlly-- this kills all other threads on some platforms; stdout is shared: thread output may be intermixd in this version arbitrarily. """ import _thread as thread, time def counter(myId, count)...
[ "zzjie1991@gmail.com" ]
zzjie1991@gmail.com
48b6b7cb9368a9db6760084e0982e05ee92758d6
04142fdda9b3fb29fb7456d5bc3e504985f24cbe
/mmcv/ops/masked_conv.py
919702e9cbd04b9e1f5c93147bcced8a1be38c61
[ "Apache-2.0" ]
permissive
open-mmlab/mmcv
419e301bbc1d7d45331d67eccfd673f290a796d5
6e9ee26718b22961d5c34caca4108413b1b7b3af
refs/heads/main
2023-08-31T07:08:27.223321
2023-08-28T09:02:10
2023-08-28T09:02:10
145,670,155
5,319
1,900
Apache-2.0
2023-09-14T02:37:16
2018-08-22T07:05:26
Python
UTF-8
Python
false
false
4,851
py
# Copyright (c) OpenMMLab. All rights reserved. import math from typing import Optional, Tuple, Union import torch import torch.nn as nn from torch.autograd import Function from torch.autograd.function import once_differentiable from torch.nn.modules.utils import _pair from ..utils import ext_loader ext_module = ext...
[ "noreply@github.com" ]
open-mmlab.noreply@github.com
745b47f4b9653e1adb5938a611487ad9e3201e35
303bac96502e5b1666c05afd6c2e85cf33f19d8c
/solutions/python3/944.py
bd687a861c6ef672174fcc914271cffea1314b06
[ "MIT" ]
permissive
jxhangithub/leetcode
5e82f4aeee1bf201e93e889e5c4ded2fcda90437
0de1af607557d95856f0e4c2a12a56c8c57d731d
refs/heads/master
2022-05-22T12:57:54.251281
2022-03-09T22:36:20
2022-03-09T22:36:20
370,508,127
1
0
MIT
2022-03-09T22:36:20
2021-05-24T23:16:10
null
UTF-8
Python
false
false
138
py
class Solution: def minDeletionSize(self, A): return sum(any(a[j] > b[j] for a, b in zip(A, A[1:])) for j in range(len(A[0])))
[ "cenkay.arapsagolu@gmail.com" ]
cenkay.arapsagolu@gmail.com
4da391e6845015007b01093614347747e5b52720
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p4VQE/R4/benchmark/startPyquil309.py
b9a32c54bbe98a26e0fe98284c0b30b521a3eef5
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
1,195
py
# qubit number=4 # total number=12 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += H(1) # number=2 pr...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
9c2e5b9526c6eadce1fc38a03bb4c1f15495d7bc
551b75f52d28c0b5c8944d808a361470e2602654
/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/model/neutron_create_security_group_option.py
0f2264525c7e8c7ce51ffcb365afd1fd1693468f
[ "Apache-2.0" ]
permissive
wuchen-huawei/huaweicloud-sdk-python-v3
9d6597ce8ab666a9a297b3d936aeb85c55cf5877
3683d703f4320edb2b8516f36f16d485cff08fc2
refs/heads/master
2023-05-08T21:32:31.920300
2021-05-26T08:54:18
2021-05-26T08:54:18
370,898,764
0
0
NOASSERTION
2021-05-26T03:50:07
2021-05-26T03:50:07
null
UTF-8
Python
false
false
3,837
py
# coding: utf-8 import pprint import re import six class NeutronCreateSecurityGroupOption: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name ...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
23857be0068cb1b58270601d7ea42d5393abbad8
2dfbb97b47fd467f29ffb26faf9a9f6f117abeee
/leetcode/84.py
a8c43f1a9b98fb79e9c45be4a3ddfa8e973b06fe
[]
no_license
liuweilin17/algorithm
0e04b2d36dfb6b7b1b0e0425daf69b62273c54b5
d3e8669f932fc2e22711e8b7590d3365d020e189
refs/heads/master
2020-12-30T11:03:40.085105
2020-04-10T03:46:01
2020-04-10T03:46:01
98,844,919
3
1
null
2018-10-05T03:01:02
2017-07-31T03:35:14
C++
UTF-8
Python
false
false
4,644
py
########################################### # Let's Have Some Fun # File Name: 84.py # Author: Weilin Liu # Mail: liuweilin17@qq.com # Created Time: Fri Sep 27 11:00:23 2019 ########################################### #coding=utf-8 #!/usr/bin/python # 84. Largest Rectangle in Histogram class SegmentNode: def __in...
[ "liuweilin17@qq.com" ]
liuweilin17@qq.com
658a507fcf159ac4b48d14cc5cca2cfada4e319d
3c2a197bf32e72444c5f36559ad0cb9b64035516
/codeskeleton/value_generators/random_int.py
d9aac5df824e8d25278a8ef6f114953e6b7a0a9f
[]
no_license
appressoas/codeskeleton
c538bbfccf19735464dc42996b754cf9199a14a3
604011cb27c47b02d325379895bc23b543797216
refs/heads/master
2021-01-19T19:24:21.100020
2017-06-26T09:34:45
2017-06-26T09:34:45
88,417,371
0
0
null
null
null
null
UTF-8
Python
false
false
228
py
import random from .registry import GENERATOR_REGISTRY def random_int(from_int=0, to_int=999999999): return random.randint(from_int, to_int) GENERATOR_REGISTRY.register(generator_name='random_int', function=random_int)
[ "post@espenak.net" ]
post@espenak.net
161c6671e458fed554bf825c179cc4b7abb336c1
96aab9f77de8170ae93004d699bd0b11e820b2d4
/rest/app/user/urls.py
c0b6dccc152b56208b129bc04563ca5b6a09e9fd
[]
no_license
JasoSalgado/rest-app
8dbc842d6de0ec705fd04bc94e79ee75ad80f2e2
3d1662800bd1e98142a0edca244c82498cc4832b
refs/heads/master
2022-11-15T15:25:44.135084
2020-07-16T14:58:59
2020-07-16T14:58:59
280,182,647
0
0
null
null
null
null
UTF-8
Python
false
false
218
py
from django.conf.urls import url from rest.app.user.views import UserRegistrationView, UserLoginView urlpatterns = [ url(r'^signup', UserRegistrationView.as_view()), url(r'^signin', UserLoginView.as_view()), ]
[ "jaso_98@hotmail.com" ]
jaso_98@hotmail.com
a69b7932bdbaf598e483e8e989db6149b82fd61c
b650ecac89df96d01b3371806b931858eaa202cc
/io_scene_gltf2/blender/imp/gltf2_blender_skin.py
b2b39a2b94764e627b2e5bd93979c919ba73d9a1
[]
no_license
yazici/blender-addons
a92a87e6f96d130cf32c94227cbd5623fe129ad9
85bda1d3f7d20766561ef73c864a4a6872d93a23
refs/heads/master
2020-04-25T18:26:34.571420
2019-02-25T15:48:03
2019-02-25T15:48:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,427
py
# Copyright 2018 The glTF-Blender-IO authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
[ "julien.duroure@gmail.com" ]
julien.duroure@gmail.com
7a021ccaf3c670c98dfc5155d1cbd84b76bfd436
2caf6885511af24443e22aaa43cd679d694f6f80
/note/my_note/first_month/day06/do_it.py
ec11f1b1af222ae157ca35960d3fb73a0a203e08
[]
no_license
nandadao/Python_note
7f9ba54a73af05c935b4f7e24cacb728859a6c69
abddfc2e9a1704c88867cff1898c9251f59d4fb5
refs/heads/master
2020-11-25T18:29:50.607670
2019-12-19T01:28:02
2019-12-19T01:28:02
228,793,207
0
0
null
null
null
null
UTF-8
Python
false
false
751
py
# dict_like = { # "qtx":["编码","看书","跑步"], # "lzmly":["看电影","编码","美食","唱歌"] # } # # # for i in dict_like["qtx"]: # # print("qtx",i) # # # 所有人的爱好 # for item in dict_like: # for i in dict_like[item]: # print(item, i) dict_city = { "北京":{ "景区":["天安门","天坛","故宫"], "美食":["驴打滚","豆汁"...
[ "1361335953@qq.com" ]
1361335953@qq.com
17ff71f9320ed1b5a19d7b730f0302b2113591eb
196f7e3238f961fb5eba7a794f0b0c75d7c30ba1
/Python自动化运维技术与最佳实践/2业务服务监控/213对比nginx配置文件test.py
9cc58a6e05df6dd2f918590e93150457966d7b24
[]
no_license
Liaoyingjie/Pythonlearn
d0b1b95110017af7e063813660e52c61a6333575
8bca069f38a60719acac5aa39bd347f90ab0bfb1
refs/heads/master
2020-04-08T07:35:07.357487
2018-04-12T16:44:43
2018-04-12T16:44:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
815
py
#!/usr/bin/python import difflib import sys textfile1='nginx.conf.v1' textfile2='nginx.conf.v2' def readfile(filename): try: fileHandle = open (filename, 'a+' ) text=fileHandle.read().splitlines() fileHandle.close() return text except IOError as error: print('Read file E...
[ "godzoco@qq.com" ]
godzoco@qq.com
df1b483b12a18f285047ae7d1f7b07f90b38e4ab
a43504f11666edffa9497630d9fcad31566b4349
/app/bot_engine/request_makers.py
7c475e770f2ee3cf8dc298e5fc7d6fa180ffd930
[]
no_license
korid24/shop_list_webhook_bot
4896d0e731679815b043ba4c997651fe4f3682a9
efe359b42a8b625ea78b855664358937419a1785
refs/heads/master
2022-12-29T09:51:16.212730
2020-10-22T10:16:20
2020-10-22T10:16:20
306,046,971
0
0
null
null
null
null
UTF-8
Python
false
false
3,933
py
import json import requests from typing import List, NamedTuple, Optional, Union from config import AUTH_TOKEN, BASE_URL # from local_utils import write_json from bot_engine.utils import path_to HEADERS = { 'Content-type': 'application/json', 'Authorization': 'token {}'.format(AUTH_TOKEN), 'Accept-Language...
[ "korid24.dev@gmail.com" ]
korid24.dev@gmail.com
2d9da259fdc14b8cb5bf137e5ab76ab8e8182a96
c019093a2474b92bda1b9fcab0ae750937aedc1c
/jaxlie/manifold/_manifold_helpers.py
9bfeaae7af619693187e8bbe93f513efab7291ad
[ "MIT" ]
permissive
mfkiwl/jaxlie
6c8a83d367299592a68bb80c7dc9816e9e006f09
4dbe16f3c1d1cfda30e0418ef5d1e1772cf9f537
refs/heads/master
2023-07-13T17:11:16.693321
2021-08-31T18:51:33
2021-08-31T18:51:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,652
py
from typing import TypeVar, cast import jax from jax import numpy as jnp from .. import hints from .._base import MatrixLieGroup from .._se2 import SE2 from .._se3 import SE3 from .._so2 import SO2 from .._so3 import SO3 T = TypeVar("T", bound=MatrixLieGroup) @jax.jit def rplus(transform: T, delta: hints.TangentVe...
[ "yibrenth@gmail.com" ]
yibrenth@gmail.com
0628d28942b07798a3581b0c726246718d0103bf
6ed233ec80984cd8d6eb5b8f2efde1ac5feadc4b
/ebc/nbr2018/tests/base.py
d8f1b8dc478a579559e54fd5ce377970766ca953
[ "Unlicense" ]
permissive
lflrocha/ebc.nbr2018
ce03abd238dca532d8adedaae0778b519b334852
0259390fecda065bf040b08e5ae3050ba96b1c4e
refs/heads/master
2020-04-08T12:44:17.247750
2019-08-08T18:13:57
2019-08-08T18:13:57
159,359,454
0
0
null
null
null
null
UTF-8
Python
false
false
2,962
py
"""Test setup for integration and functional tests. When we import PloneTestCase and then call setupPloneSite(), all of Plone's products are loaded, and a Plone site will be created. This happens at module level, which makes it faster to run each test, but slows down test runner startup. """ from Products.Five import...
[ "lflrocha@gmail.com" ]
lflrocha@gmail.com
635734801373905925dc4741bdc7e1cb867d19fa
85790a5af1f58b81e6b94b3a2b53035a17b0edf3
/10-day/2-列表初识.py
ad20ef41614f731643bae4d8605902c0325f6005
[]
no_license
liuruitao/Python-liuruitao
681734577484f803e2be14260ae4d0fc1505a762
1c028c4bfeb4e89cb5120af1eadfa3f7ad34b569
refs/heads/master
2021-04-18T22:34:26.479834
2018-04-18T06:45:35
2018-04-18T06:45:35
126,920,688
0
0
null
null
null
null
UTF-8
Python
false
false
128
py
aa='人生苦短,我用python,life is short' print(aa.count('p')) print(aa.count('l')) print(aa.rfind('s')) print(aa.upper())
[ "2590011467@qq.com" ]
2590011467@qq.com
0bccda679a470479ed2e699aaf932957507e734f
5c0c0176db0ccf2c24b6b5ed459a8dc144518b13
/nni/nas/benchmarks/nasbench101/graph_util.py
10805685fec3ff7359ec39dc0ae1c019e67950ae
[ "MIT" ]
permissive
petuum/nni
ac4f4a1c4d6df71684eeffa127b7c4858fd29e97
8134be6269902939232482d63649c06f9864be6d
refs/heads/master
2023-02-18T11:21:41.078889
2021-01-20T03:21:50
2021-01-20T03:21:50
302,736,456
4
3
MIT
2020-11-20T20:21:15
2020-10-09T19:34:11
Python
UTF-8
Python
false
false
3,790
py
import hashlib import numpy as np from .constants import INPUT, LABEL2ID, OUTPUT def _labeling_from_architecture(architecture, vertices): return [INPUT] + [architecture['op{}'.format(i)] for i in range(1, vertices - 1)] + [OUTPUT] def _adjancency_matrix_from_architecture(architecture, vertices): matrix = ...
[ "noreply@github.com" ]
petuum.noreply@github.com
2ec5a1156d06c902673f739affb49f1533f4092d
24bc4990e9d0bef6a42a6f86dc783785b10dbd42
/build/fuchsia/PRESUBMIT.py
f8c7df28fc5fd1397f1569b6b65e371324b3fa65
[ "BSD-3-Clause" ]
permissive
nwjs/chromium.src
7736ce86a9a0b810449a3b80a4af15de9ef9115d
454f26d09b2f6204c096b47f778705eab1e3ba46
refs/heads/nw75
2023-08-31T08:01:39.796085
2023-04-19T17:25:53
2023-04-19T17:25:53
50,512,158
161
201
BSD-3-Clause
2023-05-08T03:19:09
2016-01-27T14:17:03
null
UTF-8
Python
false
false
1,591
py
# Copyright 2021 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Presubmit script for Fuchsia. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for details on the presubmit API built into depot_tools. """ USE_PYTH...
[ "roger@nwjs.io" ]
roger@nwjs.io
a7bbc60feece73e88f0a57f6209db2d14d87241c
bc441bb06b8948288f110af63feda4e798f30225
/user_service_sdk/model/cmdb_extend/subsystem_dependency_pb2.pyi
56c626d516302fae9e256521a00d0df10a2ecd97
[ "Apache-2.0" ]
permissive
easyopsapis/easyops-api-python
23204f8846a332c30f5f3ff627bf220940137b6b
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
refs/heads/master
2020-06-26T23:38:27.308803
2020-06-16T07:25:41
2020-06-16T07:25:41
199,773,131
5
0
null
null
null
null
UTF-8
Python
false
false
4,344
pyi
# @generated by generate_proto_mypy_stubs.py. Do not edit! import sys from google.protobuf.descriptor import ( Descriptor as google___protobuf___descriptor___Descriptor, ) from google.protobuf.internal.containers import ( RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC...
[ "service@easyops.cn" ]
service@easyops.cn
c534d7c22c8c9cfe1da125036b9b6e7f079298dc
6cfa6d84722cf560b9dc144ba826d857e884d8fb
/redis/ticker/config/role.sample.py
793f9031371e1b17ce60702bbe524190ca842034
[]
no_license
chaeplin/dash-ticker
b5e3702c87bc351ae40863de8cd8a55dddc74330
99e1fdc4e105601bdcfa55e80c524ca48294bee8
refs/heads/master
2021-01-18T23:07:24.246729
2017-11-23T09:39:40
2017-11-23T09:39:40
72,606,879
2
1
null
null
null
null
UTF-8
Python
false
false
223
py
HOST_ROLE = 'MASTER' #HOST_ROLE = 'SLAVE' # SENTINEL CHECK # MASTER MASTER_SETINEL_HOST = '192.168.10.3' MASTER_REDIS_MASTER = '192.168.10.2' #SLAVE SLAVE_SETINEL_HOST = '192.168.10.4' SLAVE_REDIS_MASTER = '192.168.10.1'
[ "chaeplin@gmail.com" ]
chaeplin@gmail.com
a2aad80e1bd8dcac5b76b43c7c1b79f9d346ecb5
b501a5eae1018c1c26caa96793c6ee17865ebb2d
/data_persistence_and_exchange/sqlite3/sqlite3_iterdump.py
b3e3cb6c5fd4e677c2df637f142fcfd822cb06dd
[]
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
866
py
import sqlite3 schema_filename = 'todo_schema.sql' with sqlite3.connect(':memory:') as conn: conn.row_factory = sqlite3.Row print('Creating schema') with open(schema_filename, 'rt') as f: schema = f.read() conn.executescript(schema) print('Inserting initial data') conn.execute(""...
[ "jintao422516@gmail.com" ]
jintao422516@gmail.com
bd32ba3fd62a9486d5b5dbaac375ebf63d3f6370
b4871c8dd8ef257d604ac221ecff0c71e14f06cb
/pilot_curriculum/django_apps/generic_nasa/nasa/migrations/0001_initial.py
99716aced67f5162e56b39feda4fbd930ab74f6c
[]
no_license
manzur1990/tracecamp_curriculum
b55605b0bbe4b5e3b333ae3fb105141e53f42e39
e9c8ee9a3c151a5cd57137f6575d1342a7de83fb
refs/heads/master
2022-04-13T15:24:54.305552
2019-08-12T13:58:40
2019-08-12T13:58:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
628
py
# Generated by Django 2.1.4 on 2018-12-21 15:00 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='NasaComments', fields=[ ('id', models.AutoF...
[ "bekkblando@gmail.com" ]
bekkblando@gmail.com
496afa8406a6ad5f9584ceddba65ba6374ac3cfb
cc44edfa1edbedea3ad044805be7548e0ccba70d
/0x0C-python-almost_a_circle/models/square.py
dc5e2428176dcbb01162c0529f50870f361569e2
[]
no_license
set808/holbertonschool-higher_level_programming
421f0da1f91cd56eb2daa4e07a51b4a505d53edc
eb276a4e68e5cc43498459eec78fc05f72e2cd48
refs/heads/master
2020-03-09T13:07:43.824914
2018-09-08T00:26:46
2018-09-08T00:26:46
128,802,718
0
0
null
null
null
null
UTF-8
Python
false
false
1,833
py
#!/usr/bin/python3 ''' Defines the class Square ''' from models.rectangle import Rectangle class Square(Rectangle): '''Square class that inherits from Rectangle ''' def __init__(self, size, x=0, y=0, id=None): '''Initializes the Square object Args: size (int): size of the sq...
[ "spencertaylor808@gmail.com" ]
spencertaylor808@gmail.com
698e29f11047d2ec058edc49d83078842a204ea8
f98ca6e020f21b303f8cc2a8474f71ce436f2d75
/tests/test_jsonlib.py
a67045757d2f9a40191ad7b77c8194728c2eb43e
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
garnerargoed/clldutils
df8afd714ab0ae1004aeb47dc24e1e96bb33323b
0d85c0bf46184bb99c6800ecbfa7f5db87cb2e7e
refs/heads/master
2021-09-07T22:36:17.564100
2018-03-02T09:54:44
2018-03-02T09:54:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
855
py
# coding: utf8 from __future__ import unicode_literals from datetime import date import pytest from clldutils.jsonlib import dump, load, parse, update, format def test_parse_json_with_datetime(): assert parse(dict(d='2012-12-12T20:12:12.12'))['d'].year def test_update(tmppath): p = tmppath / 'test' wi...
[ "xrotwang@googlemail.com" ]
xrotwang@googlemail.com
f8eccfe1aedbc9b1aa4f0a96d6d6e702357e2324
9c69e2fc689194237ef294071a9c14c6dfabe545
/src/ultimate/user/urls.py
f8a18af2ec2ba1e3f063efd7648d2a5fa4b8f419
[]
permissive
a2ultimate/ultimate-league-app
69f0331f5efeb2883c00990eb7a59ac346a34c69
1b40e8a01950fc526db9b649b78ada71ec567624
refs/heads/main
2023-04-03T06:43:24.471566
2023-03-16T00:55:22
2023-03-16T00:55:22
8,152,035
4
2
BSD-3-Clause
2023-03-16T00:55:24
2013-02-12T03:15:25
Python
UTF-8
Python
false
false
1,599
py
from django.conf.urls import url, include from django.contrib.auth.views import login, logout, password_reset, password_reset_done, password_reset_confirm, password_reset_complete from . import views urlpatterns = [ url(r'^$', views.index, {}, 'user'), url(r'^log-in/$', login, {'template_name': 'user/login.h...
[ "ryanjdonnelly@gmail.com" ]
ryanjdonnelly@gmail.com
4ee1c835bfb47e715ce2c96c65cf218f187bab31
282d0a84b45b12359b96bbf0b1d7ca9ee0cb5d19
/Malware1/venv/Lib/site-packages/numpy/lib/npyio.py
6eb9cbd18235dbb0bd65ee520e9f94852156d02a
[]
no_license
sameerakhtar/CyberSecurity
9cfe58df98495eac6e4e2708e34e70b7e4c055d3
594973df27b4e1a43f8faba0140ce7d6c6618f93
refs/heads/master
2022-12-11T11:53:40.875462
2020-09-07T23:13:22
2020-09-07T23:13:22
293,598,094
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
version https://git-lfs.github.com/spec/v1 oid sha256:40ba76b8ee10e92857396797dd69934bd5b9c1c413138a9ccef88a8b534917a6 size 84853
[ "46763165+sameerakhtar@users.noreply.github.com" ]
46763165+sameerakhtar@users.noreply.github.com
8710c34e56994907a5c2a8375d3db551668509d1
5e5b3776acc441b77a970db29d99e850b79be65e
/gist/define.py
3f301f552c4ea79b674caf06a826dd54b686c3f2
[ "Apache-2.0" ]
permissive
eightnoteight/x-gist
f153ae7c5ae5d9335af23ba54c0c668b71a5c157
ec65e5193f989238a026a8b239eabf61c5ec7a8d
refs/heads/master
2020-12-24T16:23:40.157360
2014-08-15T04:54:14
2014-08-15T04:54:14
22,781,473
0
0
null
null
null
null
UTF-8
Python
false
false
244
py
#!/usr/bin/env python # -*- coding: utf-8 -*- class struct(dict): def __init__(self, **kwargs): super(struct, self).__init__(**kwargs) self.__dict__ = self client = struct(name="x-gist", url ="https://github.com/eightnoteight/x-gist")
[ "mr.eightnoteight@gmail.com" ]
mr.eightnoteight@gmail.com
ac2dea16ccd2b71756d09ad35c1724375eada021
5c2f520dde0cf8077facc0fcd9a92bc1a96d168b
/microbenchmarks/exceptions_ubench.py
8260f1764de23db08de7146823a2733eba4417dc
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "Python-2.0" ]
permissive
nagyist/pyston
b613337a030ef21a3f03708febebe76cedf34c61
14ba2e6e6fb5c7316f66ccca86e6c6a836d96cab
refs/heads/master
2022-12-24T03:56:12.885732
2015-02-25T11:11:08
2015-02-25T11:28:13
31,314,596
0
0
NOASSERTION
2022-12-17T08:15:11
2015-02-25T13:24:41
Python
UTF-8
Python
false
false
241
py
def f(): # Try to eliminate as much non-exception stuff as possible: from __builtin__ import Exception e = Exception() for i in xrange(100000): try: raise e except Exception: pass f()
[ "kmod@dropbox.com" ]
kmod@dropbox.com
67f7daaefaae8d776a203ce1eb65de7d4fc4810a
cb57a9ea4622b94207d12ea90eab9dd5b13e9e29
/lc/python/0339_nested_list_weight_sum.py
4db7961460d959975511fefeea17b42164eec24f
[]
no_license
boknowswiki/mytraning
b59585e1e255a7a47c2b28bf2e591aef4af2f09a
5e2f6ceacf5dec8260ce87e9a5f4e28e86ceba7a
refs/heads/master
2023-08-16T03:28:51.881848
2023-08-10T04:28:54
2023-08-10T04:28:54
124,834,433
1
0
null
null
null
null
UTF-8
Python
false
false
1,821
py
# dfs # time O(n) # space O(1) # """ # This is the interface that allows for creating nested lists. # You should not implement it, or speculate about its implementation # """ #class NestedInteger: # def __init__(self, value=None): # """ # If value is not specified, initializes an empty list. # ...
[ "noreply@github.com" ]
boknowswiki.noreply@github.com
3215f4395ddfe3f66ca86b29a70209aa7b2a2b1b
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/databox/azure-mgmt-databox/azure/mgmt/databox/__init__.py
01935d3cb4901323838878ded3e2783723747739
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
726
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 may ...
[ "noreply@github.com" ]
Azure.noreply@github.com
91d66a042dd155e0b4c535b6fd0d0b0c5f21e6bc
5c8139f1e57e06c7eaf603bd8fe74d9f22620513
/PartB/Py括号的配对问题.py
07341985e258c672ef6b2f14eda73e2fd3628ce7
[]
no_license
madeibao/PythonAlgorithm
c8a11d298617d1abb12a72461665583c6a44f9d2
b4c8a75e724a674812b8a38c0202485776445d89
refs/heads/master
2023-04-03T07:18:49.842063
2021-04-11T12:02:40
2021-04-11T12:02:40
325,269,130
0
0
null
null
null
null
UTF-8
Python
false
false
507
py
lst = raw_input().strip() stack = [] flag = True for i in lst: if i == '(': stack.append('(') elif i == '[': stack.append('[') elif i == ')': if len(stack) > 0 and stack[-1] == '(': stack.pop(-1) else: flag = False break elif i == ']': ...
[ "2901429479@qq.com" ]
2901429479@qq.com
6518580d8c0f42beea9b03ecc5cf5026c5eb4b0b
a2f6e449e6ec6bf54dda5e4bef82ba75e7af262c
/venv/Lib/site-packages/pandas/tests/io/pytables/__init__.py
04573ec7273cbbee29a9587f2fd75e67ef512d86
[]
no_license
mylonabusiness28/Final-Year-Project-
e4b79ccce6c19a371cac63c7a4ff431d6e26e38f
68455795be7902b4032ee1f145258232212cc639
refs/heads/main
2023-07-08T21:43:49.300370
2021-06-05T12:34:16
2021-06-05T12:34:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
128
py
version https://git-lfs.github.com/spec/v1 oid sha256:7899383beb479b67e688296a1f549aed94a571607226a1afea25dce1a3dc152c size 411
[ "chuksajeh1@gmail.com" ]
chuksajeh1@gmail.com
a0501f5fe8d7b2dbd0b347bf845646f7cd23628d
34599a66861f7d95a5740eeb5329ea77014e18d4
/problems_solving/algospot/firetrucks.py
0006d6df8ed42a042757bbebd9b4c40fa0a3cf8c
[]
no_license
laolee010126/algorithm-with-python
f0f5f1bc3cbe374ccbb59e10ac639674c44ae743
89ff0c47a6d8b0cd5b31a25bb3981b8e90971f19
refs/heads/master
2022-04-01T17:38:36.199309
2020-01-14T01:54:22
2020-01-14T01:54:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,108
py
"""Get least sum of distances to dispatch firetrucks to houses on fire :input: 1 8 12 3 2 1 2 3 1 6 9 2 3 6 3 4 4 3 5 2 4 5 7 6 5 5 8 6 5 6 7 3 8 7 3 7 5 1 2 8 3 2 3 5 4 6 :return: 16 """ from heapq import heappush, heappop from math import inf from sys import stdin get_input = stdin.readline def min_dist(g, dest, ...
[ "shoark7@gmail.com" ]
shoark7@gmail.com
d1772e7e5ce09349017f1c2dd30cdfbab93383ed
977396938e6a077423276eda152d4541578eb527
/migrations/versions/f9155326f52d_.py
6b91c18d0de33f955ebc4eeda030c79a1e03e91c
[]
no_license
Areum0921/web_pybo
688c741a5a8b5fa3d8df51f058c7ec0a8288ae91
0c830eda270dbbe3257e3458af4576b38d5dbaa8
refs/heads/master
2023-06-19T06:40:41.327188
2021-07-16T02:29:34
2021-07-16T02:29:34
355,765,108
0
0
null
null
null
null
UTF-8
Python
false
false
2,375
py
"""empty message Revision ID: f9155326f52d Revises: 5496eea3137d Create Date: 2021-03-29 14:31:37.557367 """ from alembic import op import sqlalchemy as sa import sqlalchemy_utils # revision identifiers, used by Alembic. revision = 'f9155326f52d' down_revision = '5496eea3137d' branch_labels = None depends_on = None...
[ "a90907@gmail.com" ]
a90907@gmail.com
3720c2cfb59920028d138cfe49a9a780696b3a31
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03804/s226430328.py
40ea2fbbe5322fb1e9b734e857d574fcafee112b
[]
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
532
py
N, M = map(int, input().split()) A = [input() for _ in range(N)] B = [input() for _ in range(M)] for i in range(N - M + 1): for j in range(N - M + 1): check = True count = 0 for k in range(M): if (A[i + k][j: j + M] == B[k]): # print(A[i + k][j:j + M], B[k]) ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
a3c15c175c51765051f69df3b52980e1fd7a3f0a
e3ec7260806c1e2b045a0de93a150a5c3fc1b9df
/test_sin.py
cfd93e45de3207cebfeb5d1bfd66b21c78b149ef
[ "Apache-2.0" ]
permissive
FearFactor1/SPA
58a21c9ec7a72a78f5ff50214e58faac43a3059d
a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7
refs/heads/master
2021-07-07T04:25:12.525595
2020-11-16T14:35:33
2020-11-16T14:35:33
204,684,720
1
0
null
null
null
null
UTF-8
Python
false
false
801
py
from selenium import webdriver import time from selenium.webdriver.support.ui import Select link = "http://suninjuly.github.io/selects2.html" #nav__item-auto > a try: browser = webdriver.Chrome() browser.get(link) num1 = browser.find_element_by_css_selector("#num1").text num2 = browser.find_elem...
[ "zelezodoroznik@yandex.ru" ]
zelezodoroznik@yandex.ru
e514273c815a754c9cc94115339b8f0ab6c3c284
58e8117c418a8931d56fe57ba0edd38214c79642
/ate/context.py
ed59e79081a32350eef9099c194c3270b9fc91da
[ "MIT" ]
permissive
229051923/ApiTestEngine
90b495ee7be037a35f63ffa3b2c95f6ba24f43ce
4a529068f451c8880681286518ff6a643ecf9067
refs/heads/master
2021-01-01T16:09:10.737245
2017-07-19T15:29:29
2017-07-19T15:29:29
97,780,015
2
0
null
2017-07-20T02:09:36
2017-07-20T02:09:36
null
UTF-8
Python
false
false
7,621
py
import copy import importlib import re import types from collections import OrderedDict from ate import exception, testcase, utils def is_function(tup): """ Takes (name, object) tuple, returns True if it is a function. """ name, item = tup return isinstance(item, types.FunctionType) class Context(ob...
[ "mail@debugtalk.com" ]
mail@debugtalk.com
a6db9d0ebe8e9a8f0ab0a1cacff578441a2234ba
4fcfc6834f598954e069e9481e4f69d6f7205f3b
/Week1/day_3/Flask_Intro/first_flask_app/server.py
a7693151c6981a66648352d4cf8857f87de47de7
[]
no_license
sadieBoBadie/jan_2020_python_stack
dadc77a8a76fd4b900bc31ad83ed4680a0802aa1
b91da3da23ea57a27c086075f4b86c5bfec413d0
refs/heads/main
2023-03-02T22:27:46.877290
2021-01-26T19:04:57
2021-01-26T19:04:57
326,852,429
0
3
null
null
null
null
UTF-8
Python
false
false
543
py
from flask import Flask, render_template app = Flask(__name__) @app.route('/') def puppies(): return "<h1 style='color: red'>Puppies are cute!</h1>" @app.route('/<animal>/<color>') @app.route('/<animal>') @app.route('/<animal>/<color>/<int:num>') def display_animal(animal, color="blue", num=5): print(f"Ani...
[ "sflick@codingdojo.com" ]
sflick@codingdojo.com
3a7c1d7adfb59f00b11ae77e1d37b1885d33f881
d1ad7bfeb3f9e3724f91458277284f7d0fbe4b2d
/react/003-react-django-justdjango/backend/env/bin/sqlformat
b08eaac3345a9fc3b0a7dbb48e6607276b57395a
[]
no_license
qu4ku/tutorials
01d2d5a3e8740477d896476d02497d729a833a2b
ced479c5f81c8aff0c4c89d2a572227824445a38
refs/heads/master
2023-03-10T20:21:50.590017
2023-03-04T21:57:08
2023-03-04T21:57:08
94,262,493
0
0
null
2023-01-04T21:37:16
2017-06-13T22:07:54
PHP
UTF-8
Python
false
false
307
#!/Users/kamilwroniewicz/_code/_github/_tutorials/react/003-react-django-justdjango/backend/env/bin/python # -*- coding: utf-8 -*- import re import sys from sqlparse.__main__ import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "qu4ku@hotmail.com" ]
qu4ku@hotmail.com
a1df8914c35f5e949416165a0782c85926e4e9f7
2cf9f165cb4d6e8e9009d74b43020fe2d5c1964f
/chat/migrations/0001_initial.py
a2db3bb2cfb40b358f72ef4113b611bc648018b0
[]
no_license
jimy1824/chat
29f5039c6284083b8328502932795bee586dec14
627ad4678c6215d37322737b38b3e5eb6d69696f
refs/heads/master
2023-04-27T15:10:51.316824
2019-11-08T05:00:12
2019-11-08T05:00:12
220,081,959
1
0
null
2023-04-21T20:40:47
2019-11-06T20:17:20
HTML
UTF-8
Python
false
false
1,194
py
# Generated by Django 2.2.6 on 2019-11-06 19:01 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
[ "jamshaid1824@gmail.com" ]
jamshaid1824@gmail.com
3b930951163c7e85c90c1df23c7a762af58fc623
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Projects/pyinstaller/tests/unit/test_modulegraph/testpkg-relimport/pkg/relimport.py
0e76e39fedf777016e011f2daa0a233827236b57
[ "LicenseRef-scancode-other-permissive" ]
permissive
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
127
py
version https://git-lfs.github.com/spec/v1 oid sha256:b1c982ab98ef0425093ad8bafe4c9deb7aad009260b384b762696e8fc4c0e375 size 22
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
f64c6ffb584cd043d80268c613a23fadf9f3d960
d0e268862f359bbeec426b00a0c45788f6fb0b4e
/lesson22-优化小实例/main.py
10fefdf9bbed196814d0bc20e94497752dbfa13d
[]
no_license
jpegbert/PyTorch
f87c2e38572c51842785de5ed1b39bb641402ac6
482421c76a093312ffeff7e5af4ecd3ab0cdcf30
refs/heads/master
2023-08-27T03:56:26.883297
2021-11-08T06:03:30
2021-11-08T06:03:30
326,677,679
2
1
null
null
null
null
UTF-8
Python
false
false
853
py
import numpy as np from matplotlib import pyplot as plt import torch def himmelblau(x): return (x[0] ** 2 + x[1] - 11) ** 2 + (x[0] + x[1] ** 2 - 7) ** 2 x = np.arange(-6, 6, 0.1) y = np.arange(-6, 6, 0.1) print('x,y range:', x.shape, y.shape) X, Y = np.meshgrid(x, y) print('X,Y maps:', X.shape, Y.shape) Z = hi...
[ "jiangpeng.jiang@zhaopin.com.cn" ]
jiangpeng.jiang@zhaopin.com.cn
035504981c5c4ce873430a3439ea302e21244885
53c3462ff265b6273f4a4fa17f6d59688f69def0
/剑指offer/65_hasPath.py
fc4f3bf5633e263578be82adeacb409feea73759
[]
no_license
17764591637/jianzhi_offer
b76e69a3ecb2174676da2c8d8d3372a3fc27b5c4
27e420ee302d5ab6512ecfdb8d469b043fb7102d
refs/heads/master
2023-08-03T01:32:51.588472
2019-10-13T07:56:21
2019-10-13T07:56:21
197,692,548
2
0
null
null
null
null
UTF-8
Python
false
false
3,300
py
''' 请设计一个函数,用来判断在一个矩阵中是否存在一条包含某字符串所有字符的路径。 路径可以从矩阵中的任意一个格子开始,每一步可以在矩阵中向左,向右,向上,向下移动一个格子。 如果一条路径经过了矩阵中的某一个格子,则之后不能再次进入这个格子。 例如 a b c e s f c s a d e e 这样的3 X 4 矩阵中包含一条字符串"bcced"的路径,但是矩阵中不包含"abcb"路径, 因为字符串的第一个字符b占据了矩阵中的第一行第二个格子之后,路径不能再次进入该格子。 分析:回溯算法 这是一个可以用回朔法解决的典型题。首先,在矩阵中任选一个格子作为路径的起点。如果路径上的第i个字符不是ch, 那么这个格子不可能处在...
[ "17764591637@163.com" ]
17764591637@163.com
eb66983747fd37d5bad2b03c62aa2cb5b9820300
6923f79f1eaaba0ab28b25337ba6cb56be97d32d
/A_Primer_on_Scientific_Programming_with_Python/input/c2f_cml_v3.py
9d13a354db2390ff9b57049d4ab8c67135d83538
[]
no_license
burakbayramli/books
9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0
5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95
refs/heads/master
2023-08-17T05:31:08.885134
2023-08-14T10:05:37
2023-08-14T10:05:37
72,460,321
223
174
null
2022-10-24T12:15:06
2016-10-31T17:24:00
Jupyter Notebook
UTF-8
Python
false
false
217
py
import sys try: C = float(sys.argv[1]) except: print 'You failed to provide Celsius degrees as input '\ 'on the command line!' sys.exit(1) # abort F = 9.0*C/5 + 32 print '%gC is %.1fF' % (C, F)
[ "bb@b.om" ]
bb@b.om
e06e1100601a1bacb795bb1f1efe4a2e96a3d781
221d5405763d1a6ab3c6755583e557c14b9f3742
/gusregon/gus.py
ca34d58334fd1bd2383ff69dfbb77899f224cc07
[ "BSD-2-Clause" ]
permissive
tpro/django-gusregon
4bd7253be9d43345376e36312d763d4653d0bbcd
75d4f291ae805bd986e1b4cb03b3b94e52a48076
refs/heads/master
2021-01-18T18:11:50.746453
2015-04-19T11:00:49
2015-04-19T11:00:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,656
py
import requests import json GUS_API_URL = 'https://wyszukiwarkaregon.stat.gov.pl/wsBIR/UslugaBIRzewnPubl.svc/ajaxEndpoint/' LOGIN_ENDPOINT = 'Zaloguj' CAPTCHA_ENDPOINT = 'PobierzCaptcha' CHECK_CAPTCHA_ENDPOINT = 'SprawdzCaptcha' SEARCH_ENDPOINT = 'daneSzukaj' COMPANY_DETAILS_ENDPOINT = 'DanePobierzPelnyRaport' cla...
[ "adam@bogdal.pl" ]
adam@bogdal.pl
2d46fb8bfbd693468cd059acdc41ca93221da9c6
c90b3ac3e5ad11cb93d4e6b76b9b9c4a19d0f512
/.history/copytest_20200502124009.py
413d6f42f34cf44c8b5ee71050cdd80e9dccb60d
[]
no_license
rbafna6507/passwordstorageproject
6465585e36c81075856af8d565fe83e358b4a40a
480c30e358f7902ac0ef5c4e8d9556cb1d6d33f4
refs/heads/master
2022-11-25T12:05:02.625968
2020-07-27T21:33:38
2020-07-27T21:33:38
283,021,426
0
0
null
null
null
null
UTF-8
Python
false
false
954
py
import pickle import cryptography from cryptography.fernet import Fernet def encrypt(message: bytes, key: bytes) -> bytes: return Fernet(key).encrypt(message) def decrypt(token: bytes, key: bytes) -> bytes: return Fernet(key).decrypt(token) infile = open('jeff.pkl','rb') z = pickle.load(infile) key = Fernet...
[ "35872545+rbafna6507@users.noreply.github.com" ]
35872545+rbafna6507@users.noreply.github.com
9436483bd9dce7f9bd3c1c1c7e5b4682ce2f8b80
e357f337ef80487aa6fafacb3e61cd5b56c78b60
/src/verification/__init__.py
9c7d02b050afd632c953e658bd2ee2c42fdd8642
[]
no_license
kaleissin/django-verification
1537b7e78a8ca07a091bcad5fd014a4544809ba5
33f7d0b7d9cc1494269f16b6f07f6077ca974fff
refs/heads/master
2021-07-15T20:12:43.628199
2021-07-05T11:43:39
2021-07-05T13:08:50
18,205,426
12
2
null
2021-07-05T13:13:16
2014-03-28T08:19:41
Python
UTF-8
Python
false
false
60
py
default_app_config = 'verification.apps.VerificationConfig'
[ "kaleissin@gmail.com" ]
kaleissin@gmail.com
a19137e2bc295d4d4e9c77c15d61e3a9e4d708f9
ff20661ef00b2db927c78f95a08cd6c40f950ee0
/inputmorethanone.py
81994128fa875ec38b52ef7cf8ec19866fc7810f
[]
no_license
Techsrijan/mppython2021
57ca26e1acdf5adad2afa692dd5ae23336273603
583a991f85e2414c6b8ffe0405f727f3f5d38eee
refs/heads/main
2023-06-18T22:05:44.602220
2021-07-16T00:42:26
2021-07-16T00:42:26
374,290,977
0
9
null
null
null
null
UTF-8
Python
false
false
231
py
'''f=int(input("Enter the first number")) s=int(input("Enter the Second number")) ''' f,s=input("Enter two number").split(',') print("F=",f,"S=",s) j,k=input("Enter two number").split(' ') print("j=",j,"k=",k) print("add=",j+k)
[ "aswanibtech@gmail.com" ]
aswanibtech@gmail.com
ba3177e820dd8a4793158eb218326d48229866ef
bb372428bb90fa80f2e87820b3c8c5ba305dcd4c
/python/bot/eups.py
0e4812155219126d211b7dcd779287ab6d1ce9ec
[]
no_license
TallJimbo/lsst-bot
7eb9b7a71a87a1ed416397c193931c80639bd746
0843afb2fdd5cc9ba62cf424a7dd73672b10e28f
refs/heads/master
2021-01-19T05:43:55.451321
2016-06-04T00:07:25
2016-06-04T00:07:25
60,484,354
0
0
null
null
null
null
UTF-8
Python
false
false
1,534
py
#!/usr/bin/env python from __future__ import absolute_import import eups.table import os import logging __all__ = "get_dependencies" def get_dependencies(config, path, pkg, recursive=False): """Return immediate dependencies from inspecting a table file. NOTE: recursive=True has not been tested. """ e...
[ "jbosch@astro.princeton.edu" ]
jbosch@astro.princeton.edu
68870acb9c8c92e4ebbaf015abbd0b6109358e24
97aa1181a8305fab0cfc635954c92880460ba189
/torch/__init__.py
4442d7e952cc12a7e75937c35b091330e7c69570
[ "BSD-2-Clause" ]
permissive
zhujiang73/pytorch_mingw
64973a4ef29cc10b96e5d3f8d294ad2a721ccacb
b0134a0acc937f875b7c4b5f3cef6529711ad336
refs/heads/master
2022-11-05T12:10:59.045925
2020-08-22T12:10:32
2020-08-22T12:10:32
123,688,924
8
4
NOASSERTION
2022-10-17T12:30:52
2018-03-03T12:15:16
C++
UTF-8
Python
false
false
14,830
py
r""" The torch package contains data structures for multi-dimensional tensors and mathematical operations over these are defined. Additionally, it provides many utilities for efficient serializing of Tensors and arbitrary types, and other useful utilities. It has a CUDA counterpart, that enables you to run your tenso...
[ "zhujiangmail@hotmail.com" ]
zhujiangmail@hotmail.com
31a96cf391d906b0d3d59fcd37437e16f21f474b
fd326562890d4f1987c384fc7c60374938231222
/OOP/ExamPrep/Exam10April21/project/decoration/ornament.py
90d7980c034613da08f4ee857bf726562ac89427
[]
no_license
miro-lp/SoftUni
cc3b0ff742218c9ceaf93f05c319ccfeed5bc8a4
283d9328537919de49f7f6a301e58593bae9ca2a
refs/heads/main
2023-08-23T21:22:07.856226
2021-08-25T15:10:18
2021-08-25T15:10:18
318,134,101
2
1
null
2021-08-10T12:51:54
2020-12-03T09:03:08
Python
UTF-8
Python
false
false
151
py
from project.decoration.base_decoration import BaseDecoration class Ornament(BaseDecoration): def __init__(self): super().__init__(1, 5)
[ "miro_lp@abv.bg" ]
miro_lp@abv.bg
588948095f2db1f4d431c649e77a76b72ecf54b8
68f57fd1dd274be72af6d85762b67bbf8d2ef6d6
/tests/test_cosine.py
3ac719652f889a7529befb8bcbf87a328c003cfa
[]
no_license
afcarl/simplecosine
287cbf40ef8aa2251ea538b7b3c2d28c5b6f2488
1ba869198ab3211dd4b0412e80e670308007f687
refs/heads/master
2020-03-17T23:56:28.854494
2017-06-15T21:33:36
2017-06-15T21:33:36
134,069,251
1
0
null
2018-05-19T14:29:05
2018-05-19T14:29:05
null
UTF-8
Python
false
false
2,909
py
import unittest from simplecosine.cosine import CosineSetSimilarity, CosineTextSimilarity import numpy import pickle class TestSetCosineClass(unittest.TestCase): def setUp(self): self.ilist = [('a', 'b', 'c'), ['b', 'c', 'd k'], ('d k', 'e', 'f') ...
[ "fgregg@uchicago.edu" ]
fgregg@uchicago.edu
9e8faea111d72f8b2e5ec2a6e79cd03f082cad11
8f24e443e42315a81028b648e753c50967c51c78
/python/ray/train/examples/horovod/horovod_pytorch_example.py
f4d15ae0515b7fad3547711c35c685f4407f2ced
[ "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
simon-mo/ray
d07efdada8d05c6e10417f96e8dfc35f9ad33397
1e42e6cd15e2fb96c217cba8484e59ed0ef4b0c8
refs/heads/master
2023-03-06T00:09:35.758834
2022-12-23T18:46:48
2022-12-23T18:46:48
122,156,396
4
2
Apache-2.0
2023-03-04T08:56:56
2018-02-20T04:47:06
Python
UTF-8
Python
false
false
8,402
py
import argparse from filelock import FileLock import horovod.torch as hvd import os import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import torch.utils.data.distributed from torchvision import datasets, transforms from ray.air import session from ray.air.config import ScalingConfig fro...
[ "noreply@github.com" ]
simon-mo.noreply@github.com
93e2cb9162dfaedfe3a58c9892ccb9936f9405c9
9e7d7b4d029554eed0f760a027cd94558b919ae2
/CHAPTER15/overlaying.py
e320bf396d4410f1a0cc189810fc886ac93deca0
[]
no_license
pooja1506/AutomateTheBoringStuff_2e
8247b68a195d5e1976c6474f0e97d947906ffd35
5bab9ccdcdb22ee10fe1272c91042be40fd67c17
refs/heads/master
2022-04-10T19:21:44.402829
2020-04-05T12:10:32
2020-04-05T12:10:32
249,620,282
1
0
null
null
null
null
UTF-8
Python
false
false
589
py
import PyPDF2 minutesFile = open('meetingminutes.pdf', 'rb') pdfReader = PyPDF2.PdfFileReader(minutesFile) minutesFirstPage = pdfReader.getPage(0) pdfWatermarkReader = PyPDF2.PdfFileReader(open('watermark.pdf', 'rb')) minutesFirstPage.mergePage(pdfWatermarkReader.getPage(0)) pdfWriter = PyPDF2.PdfFileWriter() pdfWriter...
[ "pooja.dmehta15@gmail.com" ]
pooja.dmehta15@gmail.com
da4d9970097abb9879bdaf10f8d859c5287053b0
5b8fcb1bf82a7c1ef5b6c2a939b1d1597bc7a24b
/create_json_for_airtable_operator.py
e00238b2f39eae43c6d55eae4974dcf2d194d262
[]
no_license
katerinekhh/airflow_custom_stuff
2420c3ee95dab01e5eeeb8248500e253126e5b48
43ba78d96770a575ba7ab11a691b101e6d6604af
refs/heads/master
2022-10-12T13:55:01.916266
2020-06-12T13:17:06
2020-06-12T13:17:06
271,645,308
0
0
null
null
null
null
UTF-8
Python
false
false
2,245
py
from datetime import datetime import json from airflow.utils.decorators import apply_defaults from airflow.models.baseoperator import BaseOperator from airflow.hooks.http_hook import HttpHook class CreateJsonForAirtableOperator(BaseOperator): @apply_defaults def __init__( self, endpoi...
[ "you@example.com" ]
you@example.com
ef2911b4133217bc48dbf92e02a62bd1d9b5d171
e168a16fdd43d3023d16d8a643ccca318a44c327
/evm/logic/call.py
42acedd0f1791f1cebd63438077524bdee541b46
[]
no_license
DavidKnott/py-evm
c589c88af55c121ea375bfdb0a53ecc6a4836119
66c47f58a62e995b5ce89e47007c8b03796c80b9
refs/heads/master
2021-01-01T04:08:39.921768
2017-07-18T13:03:45
2017-07-18T13:03:45
97,128,228
1
0
null
2017-07-13T13:54:57
2017-07-13T13:54:56
null
UTF-8
Python
false
false
7,349
py
from evm import constants from evm.opcode import ( Opcode, ) from evm.utils.address import ( force_bytes_to_address, ) class BaseCall(Opcode): def compute_msg_gas(self, computation, gas, to, value): raise NotImplementedError("Must be implemented by subclasses") def get_call_params(self, com...
[ "pipermerriam@gmail.com" ]
pipermerriam@gmail.com
2bff7ce472c638cc2952ee313e844673778ab37c
5faecec9b20d262150e48ac9f31c396f840b1f2f
/migrations/0010_auto_20200804_0913.py
f175b678b5857527caa863cd6db136e7bc3d803b
[]
no_license
binkesi/blogsgn
fb767b0d22e3eb1c32ea7ee8fd0796766e3a8600
579b374f802a5651d20c3b3f85d8ff6a22476bdd
refs/heads/master
2022-11-27T23:24:45.574601
2020-08-04T10:06:28
2020-08-04T10:06:28
283,161,699
0
0
null
null
null
null
UTF-8
Python
false
false
515
py
# Generated by Django 3.0.6 on 2020-08-04 01:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blogsgn', '0009_auto_20200804_0653'), ] operations = [ migrations.AlterField( model_name='author', name='nation', ...
[ "sjtusgn@163.com" ]
sjtusgn@163.com
0b583e86f97c1a537be2b27d6980f3a3dd93df1a
528c811306faa4a34bf51fca7955b7a24ac2e30c
/Python/Valid Anagram.py
263508830b33b30fd769bcad02fa5dbf91901f61
[]
no_license
ganjingcatherine/LeetCode-1
1addbd7e4d9254a146601f9d5e28b8becb8235a6
488782d3f1e759da2d32b4e82dbf55b96c431244
refs/heads/master
2021-05-11T03:15:16.810035
2016-02-06T06:19:18
2016-02-06T06:19:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
806
py
""" Given two strings s and t, write a function to determine if t is an anagram of s. For example, s = "anagram", t = "nagaram", return true. s = "rat", t = "car", return false. Note: You may assume the string contains only lowercase alphabets. """ class Solution(object): def isAnagram(self, s, t): """ ...
[ "anthonyjin0619@gmail.com" ]
anthonyjin0619@gmail.com
7713fd10c64850e9770370122883e5b6ea01086f
e2ae96b74289a04a2386294bf51bacad92e2a830
/city_scrapers_core/spiders/legistar.py
29c3176db02b4b0851fd939f9f79845a629163c5
[ "MIT" ]
permissive
will-snavely/city-scrapers-core
6afa9d78fb1c325420baaae030633b01111f11bb
cb865069e49d09ab251b7f99247df5e13c5d0241
refs/heads/main
2022-12-11T21:39:03.307347
2020-09-09T13:29:53
2020-09-09T13:29:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,265
py
from datetime import datetime from typing import Iterable, List, Mapping, Optional, Tuple from urllib.parse import urlparse import scrapy from legistar.events import LegistarEventsScraper from ..items import Meeting from .spider import CityScrapersSpider LINK_TYPES = ["Agenda", "Minutes", "Video", "Summary", "Captio...
[ "pjsier@gmail.com" ]
pjsier@gmail.com
848257d62f49ecdcc747c38384d79aa0afb7700b
8db1ab4f9a2e47f7e8d69a685837d7e747bf9442
/cocos2d-x-tool/py_tool/syncResToProject.py
0773ceebfd0313dd7ab2c0df0f04cec7b688b661
[]
no_license
tanzuoliang/python
051d6e46cebd7fdb74a0173aca0ca7a2b3ef5986
70f782cf3c72d2b7043727910509eb2d2f2fe065
refs/heads/master
2021-10-20T05:36:03.732738
2019-02-26T02:37:18
2019-02-26T02:37:18
111,288,598
0
0
null
null
null
null
UTF-8
Python
false
false
2,595
py
#!/usr/bin/python #encoding=utf-8 from myutil.utils import syncDir,checkSVNStatus import os fromRoot = '/Users/tanzuoliang/art_resource' toRoot = "../res/new_ui" toLanguage = "../res" ll = [ ('天天坦克/UI\ 效果图+输出\ 20170214\ 优化版/00\ icon','天天坦克/UI 效果图+输出 20170214 优化版/00 icon','icon'), ('天天坦克/UI\ 效果图+输出\ 20170214\ 优化版/0...
[ "ysjwdaypm@163.com" ]
ysjwdaypm@163.com
87a0d04e73c54c1e0daef6dcf0e338c6af43be21
ef187d259d33e97c7b9ed07dfbf065cec3e41f59
/work/atcoder/abc/abc024/B/answers/111654_Gale.py
b31d17de7f8e5d4c0d019d4cbf95c0c6f7e11513
[]
no_license
kjnh10/pcw
847f7295ea3174490485ffe14ce4cdea0931c032
8f677701bce15517fb9362cc5b596644da62dca8
refs/heads/master
2020-03-18T09:54:23.442772
2018-07-19T00:26:09
2018-07-19T00:26:09
134,586,379
0
0
null
null
null
null
UTF-8
Python
false
false
197
py
n, t = map(int, input().split()) a = [int(input()) for i in range(n)] ans = t for i in range(1, n): ans += t if a[i] <= a[i - 1] + t: ans = ans - (a[i - 1] + t - a[i]) print(ans)
[ "kojinho10@gmail.com" ]
kojinho10@gmail.com
da60ebdb0c9f8856df41a22fbe7a5925c0a77927
a4d250ce393012dc251cb955096cb8f284c57439
/gunion/data/battle.py
2e86c5bc5fb1e0344791a01e941d7330c554ed7e
[]
no_license
daxingyou/test-2
b02af312784d06a46e29acd42e756e92afee6ed9
a16c872ba781855a8c891eff41e8e651cd565ebf
refs/heads/master
2023-03-16T04:21:23.704482
2018-09-28T00:51:23
2018-09-28T00:51:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,188
py
#coding:utf8 """ Created on 2016-07-28 @Author: jiangtaoran(jiangtaoran@ice-time.cn) @Brief : 联盟战争 """ import base64 from utils import logger from utils import utils from datalib.data_loader import data_loader class UnionBattleInfo(object): """一场联盟战争 """ BATTLE_STAGE_INVALID = 0 #非法 BATTLE_STAGE_...
[ "luhongwei1@ice-time.cn" ]
luhongwei1@ice-time.cn
626be54fe2c402a3a685abc6d8479c10ea8a75aa
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/CalibMuon/RPCCalibration/python/l1MuonOutputModule_cfi.py
6dbdc357f06e53ed7641a5fc49576123b5f1a25e
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
419
py
import FWCore.ParameterSet.Config as cms from CalibMuon.RPCCalibration.l1Muon_EventContent_cff import * L1MuonEventContent = cms.OutputModule("PoolOutputModule", l1Muon_EventContent, l1MuonEventSelection, datasets = cms.untracked.PSet( filterName = cms.untracked.string('l1Muon_Filter'), dat...
[ "giulio.eulisse@gmail.com" ]
giulio.eulisse@gmail.com
3230d5448ef48ac2a50e98f9791b15a0ed770f9f
0147677b611e40ac695ba07f914264b3470a7401
/src/mac_address_info.py
4ad9f15c04cbbf5909df457315f089a8c5f1a0cb
[]
no_license
mblomdahl/sniffer
a2aed3ee37bb9a39d3c13ad8455ce7c7a2fc58c7
9101c59f958bb94fe1443fd90e95d333a02b785f
refs/heads/master
2021-01-24T00:23:30.318623
2015-08-14T12:56:33
2015-08-14T12:56:33
41,627,533
0
0
null
2015-08-30T12:11:01
2015-08-30T12:11:01
null
UTF-8
Python
false
false
5,190
py
import json import urllib2 import os class MacAddressInfo: def __init__(self): self.mac_address = "" self.company = "" self.address1 = "" self.address2 = "" self.address3 = "" self.country = "" class MacAddressStorage: def __init__(self): self.data = [] ...
[ "=" ]
=
b54fd0bc290b3f5a82c4cad6ff829f7b399573f4
ded81a7568fe04f3227562cc5f67ffc675617cc0
/cheer_app/migrations/0002_comment.py
a7803e53c60185ed5d941b24bfcce9f91293cac8
[]
no_license
shin04/cheer
3e220afc1fb0a4329ff7c16bd4823da1c09ee0a9
da39bbc584350c0ac89c23dbbfaf1c96ab9148fd
refs/heads/master
2020-07-02T16:07:44.280390
2020-05-20T11:13:03
2020-05-20T11:13:03
183,242,194
0
0
null
null
null
null
UTF-8
Python
false
false
915
py
# Generated by Django 2.2 on 2019-08-05 04:29 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('cheer_app', '0001_initial'), ] operations = [ migrations.CreateModel( ...
[ "daikon0413@gmail.com" ]
daikon0413@gmail.com
4d6647ad50459cf616a4eaaa782651b3b18edf2d
1af1f89eb9a178b95d1ba023b209b7538fb151f0
/Algorithms/146. LRU Cache.py
09989dad11e2256fc8b9ce1d4d8a754a15563be9
[]
no_license
0xtinyuk/LeetCode
77d690161cc52738e63a4c4b6595a6012fa5c21e
08bc96a0fc2b672282cda348c833c02218c356f1
refs/heads/master
2023-02-21T16:58:39.881908
2021-01-25T08:00:13
2021-01-25T08:00:13
292,037,842
0
0
null
null
null
null
UTF-8
Python
false
false
826
py
from collections import OrderedDict class LRUCache(): def __init__(self, capacity): self.memory = OrderedDict() self.capacity = capacity def get(self, key): if key not in self.memory: return - 1 self.memory.move_to_end(key) return self.memory[key] def pu...
[ "xliu301@uottawa.ca" ]
xliu301@uottawa.ca
9f0d1351e1fd94cb4f0674d16df5403e9b562544
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/sieve-big-7279.py
7b346f67e4f794d398658cee0c9138683fa18c0b
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
31,612
py
# A resizable list of integers class Vector(object): items: [int] = None size: int = 0 def __init__(self:"Vector"): self.items = [0] # Returns current capacity def capacity(self:"Vector") -> int: return len(self.items) # Increases capacity of vector by one element def incr...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
40c87a8686a9baae4fa8aeedbe59625b342a5fff
485384a2e1faa338d3372a8c000ccab6f6891cfa
/CGAT/Mali.py
6337aeb47d18672ec25b144ac94a69699dfb9d3a
[ "BSD-2-Clause" ]
permissive
wangzhennan14/cgat
30c8ec4f8d1e14413c5d8193352348137d60a611
38ff24edc2a1f8b0da5716aea4fbf6a9328342b0
refs/heads/master
2021-01-18T15:43:02.544097
2017-03-16T15:27:11
2017-03-16T15:27:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
44,924
py
''' Mali.py - Tools for multiple alignments ======================================= :Author: Andreas Heger :Release: $Id$ :Date: |today| :Tags: Python Code ---- ''' import re import string import math import copy import random class AlignedString: mGapChars = ("-", ".") mGapChar = "-" def __init__(...
[ "andreas.heger@gmail.com" ]
andreas.heger@gmail.com
215d0564daeceb18cdbfe7df3305df4cf9aaddc4
ddea930392ac5360b21e9043b620e703a9ccb31c
/tfx/components/example_gen/csv_example_gen/component.py
e98fab352364bc59a5a175075c9b90dce53af5c7
[ "Apache-2.0" ]
permissive
Ark-kun/tfx
9c82b688776c80b2435bbb6154476526e8525ec8
f685f0387bd145316f43ceb484e64f893e749dcb
refs/heads/master
2021-07-25T05:58:15.168607
2020-05-22T01:07:44
2020-05-22T01:08:18
180,868,735
0
0
Apache-2.0
2019-04-11T20:01:57
2019-04-11T20:01:57
null
UTF-8
Python
false
false
3,690
py
# Lint as: python2, python3 # Copyright 2019 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 req...
[ "tensorflow-extended-team@google.com" ]
tensorflow-extended-team@google.com
5e8efd9eb59f40d86c42c63a6d9310545e0a1134
51f2492a5c207e3664de8f6b2d54bb93e313ca63
/atcoder/abc102/b.py
4be8dec8f9d480d7b0af81ef662a21f1f1ef5c4f
[ "WTFPL", "LicenseRef-scancode-unknown-license-reference" ]
permissive
abeaumont/competitive-programming
23c5aabd587d7bb15a61efd3428838cb934233dd
a24c9b89941a59d344b51dc1010de66522b1a0dd
refs/heads/master
2023-09-01T09:50:58.267361
2023-07-31T18:00:10
2023-07-31T18:00:10
117,589,708
618
262
WTFPL
2023-07-12T17:36:20
2018-01-15T20:00:56
C++
UTF-8
Python
false
false
158
py
#!/usr/bin/env python3 # https://abc102.contest.atcoder.jp/tasks/abc102_b n = int(input()) a = [int(x) for x in input().split()] a.sort() print(a[-1] - a[0])
[ "alfredo.beaumont@gmail.com" ]
alfredo.beaumont@gmail.com
d22f9e180410bcb47f4308eb442280a1d6958408
b3197b795911a2ebdd3308f39d0e7be4b4626a44
/homework.4/4.task1.py
a81fcfb717c8ca4018adb4ef5c82f3125501d029
[]
no_license
VPetrashchu/python-course
9e2af9582f1600201c6f28681ead7426501a82b6
d188c3f42f7fd70aad1535e0141e7ff5fddd1d8f
refs/heads/master
2023-02-23T09:41:56.079047
2021-01-31T20:12:08
2021-01-31T20:12:08
317,589,130
0
0
null
null
null
null
UTF-8
Python
false
false
256
py
number = int(input('Enter number: ')) fact = 1 for i in range(1, number + 1): fact = fact * i print('Factorial is: {}'.format(fact)) # while ( number > 0): # fact = fact * number # number = number - 1 # print('Factorial is: {}'.format(fact))
[ "=" ]
=
97d915750244d1397fea6975d202218d1ad853f4
29f4de72b9aadaba277b4adb5e5cee5d8dd71f1e
/projection_data/make_ai.py
49ce8d7363987cb88c00c23533048229bdb00207
[]
no_license
fgassert/aqueduct_atlas
87be4e1fbe9686cf06ff9c65257deabc617344e9
d00cd78ef3122aeda6eb563d0913baf73a9bb80e
refs/heads/master
2021-01-21T21:48:26.821562
2016-04-21T22:02:58
2016-04-21T22:02:58
15,684,645
0
0
null
null
null
null
UTF-8
Python
false
false
1,658
py
import arcpy as ap AI_RES = 600 def render_fields(prefix, polygons, mxd_template, layer_template, map_fields, map_layer_labels, map_values, ai_res=AI_RES): mxd = ap.mapping.MapDocument(mxd_template) df = ap.mapping.ListDataFrames(mxd)[0] if map_layer_labels is None: map_layer_labels = m...
[ "cowbox314@gmail.com" ]
cowbox314@gmail.com
a7c2ff64776197033f6935ebd084216784ca1b4f
1521d32e3a2747054eea03df3195ca0fd52cfe71
/src/python/zensols/garmdown/__init__.py
1ed5dd6e2c05b14c7469f2b9a750d47327855ca1
[ "MIT" ]
permissive
garmin-data/garmdown
533c525512914b97cbf42a919d670feb59c3269a
42509ddcc11bd7469e3a80d648fabd155657a074
refs/heads/master
2023-07-05T09:07:36.476348
2022-02-28T19:36:01
2022-02-28T19:36:01
191,933,069
15
6
MIT
2023-02-15T23:23:44
2019-06-14T11:37:45
Python
UTF-8
Python
false
false
212
py
from .domain import * from .fetcher import * from .persist import Persister from .sheets import SheetUpdater from .backup import * from .reporter import * from .mng import * from .cli import * from .app import *
[ "landes@mailc.net" ]
landes@mailc.net
4442d3be186c0780c78d903f7110f0e29096dfb6
8cbf335c5a39f2bbf1912b937ea4c3a31ab76f53
/kakuro.py
3869cab2399a04e10f9778aee78dd0fa41a9b26b
[]
no_license
louisabraham/kakuro.py
e72e5a0dd4d1fc8b43bb8b1004ce7b46e5bf88bf
28ab8e5b066773a0f27f9eff6629391d21b167fc
refs/heads/master
2023-08-13T12:28:18.538669
2021-10-14T21:28:19
2021-10-14T21:28:19
417,281,425
0
0
null
null
null
null
UTF-8
Python
false
false
2,969
py
from functools import lru_cache, partial from collections import defaultdict from set_cover import solve as solve_set_cover def encode(pattern, cols, lines): grid = [[c == "0" for c in line] for line in pattern.split()] n = len(grid) constraints = [] # build constraints on lines vars = [] c...
[ "louis.abraham@yahoo.fr" ]
louis.abraham@yahoo.fr
7788d6d2554c64b729e9701d0fe4596e17cccfe8
5f22ddbd3eeb99709e43e7b9a7958c9987c7efa4
/__competitions/2014/11_03_w12/01.py
d50b3c914cc79f47bca1e6cd9529281c8b5f817c
[]
no_license
salvador-dali/algorithms_general
04950bd823fc354adc58a4f23b7d2f3d39664798
aeee3356e2488c6fab08741b1ac26e8bd5e4ac0d
refs/heads/master
2020-12-14T06:24:10.466601
2016-07-17T06:00:17
2016-07-17T06:00:17
47,397,457
0
0
null
null
null
null
UTF-8
Python
false
false
360
py
# https://www.hackerrank.com/contests/w12/challenges/priyanka-and-toys # sort numbers and use greedy solution to find which one overlap def toBuy(arr): arr.sort() num, maxPrice = 0, -1 for i in arr: if i > maxPrice: num += 1 maxPrice = i + 4 return num input() print toBu...
[ "dmytro@knowlabs.com" ]
dmytro@knowlabs.com