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
2ac05a8ce20667dc6ca62cd5a23ac3d6825a9e76
c1fd96e92379b7a5eda183a0e9522d3bc8a1cd3d
/kaa/filetype/python/pythonmode.py
cc86751f85387bc8ba2e2653a1a6c95f79cbeac4
[ "MIT" ]
permissive
okazu-dm/kaa
3b2c59652f2468ed4a78d764667f7f896e759a33
3326100c64ca6f638db6361ca72bc56a4aef7b8f
refs/heads/master
2020-05-23T10:09:05.153521
2013-10-22T13:05:45
2013-10-22T13:05:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,653
py
import keyword, copy from kaa.filetype.default import defaultmode, theme from kaa.highlight import Tokenizer, Keywords, Span from kaa.theme import Theme, Style from gappedbuf import re as gre from kaa.command import Commands, command, norec, norerun from kaa.keyboard import * PythonThemes = { 'default': Th...
a2f142591850d088c6f62a70894d53b1e1240482
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/coverage-big-2831.py
4512483516b5634c39d0789325e695f5c4f83524
[]
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
13,350
py
count:int = 0 count2:int = 0 count3:int = 0 count4:int = 0 count5:int = 0 def foo(s: str) -> int: return len(s) def foo2(s: str, s2: str) -> int: return len(s) def foo3(s: str, s2: str, s3: str) -> int: return len(s) def foo4(s: str, s2: str, s3: str, s4: str) -> int: return len(s) def foo5(s: str,...
8a9f2f260ce87cc91474a5b8be78abd0ed4c103b
ab50920ebb8d9679230c13b8f91998e47e9f4f82
/samples/server/petstore/python-blueplanet/app/openapi_server/models/order.py
e222f5ee0069dbb383352d37536a24db5e77ec3c
[ "Apache-2.0" ]
permissive
oxidecomputer/openapi-generator
f50ee17579b02a35d30894f16a4d98dc81f8b06b
f8770d7c3388d9f1a5069a7f37378aeadcb81e16
refs/heads/master
2023-08-25T09:24:27.666296
2021-02-25T15:36:35
2021-02-25T15:36:35
334,329,847
6
0
Apache-2.0
2022-10-14T05:05:39
2021-01-30T04:46:13
Java
UTF-8
Python
false
false
4,935
py
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from app.openapi_server.models.base_model_ import Model from openapi_server import util class Order(Model): """NOTE: This class is auto generated by the swagger c...
db53a329ef4705bdbd512dcc044c8a8a69cba074
f6003f9f25dcc182e9fbce7a96d0dabb9341744c
/Exercícios/Lista 6 - Seção 13 - Leitura e escrita em arquivo/Questão 20 - Enunciado no código .py
6605ae8200a5865776d234e52d03e8f1a7195514
[]
no_license
henriquecl/Aprendendo_Python
60a87959714f82894e996c06b0a1b767838c38fc
672029855431795defafd7e20e8da319bf34e502
refs/heads/master
2023-06-08T10:48:13.667893
2021-06-22T00:55:14
2021-06-22T00:55:14
261,029,613
1
0
null
null
null
null
UTF-8
Python
false
false
886
py
""" Questão 20 - Crie um programa que receba como entrada o número de alunos. Receba em uma lista o nome dos alunos e o seg undo contém suas notas finais. Crie um arquivo que armazene a cada linha o nome do aluno e sua nota final. O nome tem que ter no máximo 40 caracteres. Se não tiver 40, preencher com espaço em bra...
b40616b31df98d43d1b6a084948c93946dd914ac
c2dd6b06b56a4db596e196b77a072caeb53042ce
/python_modules/dagster/dagster_tests/cli_tests/test_workspace_config_schema.py
82bc9e9410785d896141188fad8721e511b626fe
[ "Apache-2.0" ]
permissive
shasha79/dagster
ed8beac9a134dc22e3c23b0db3bb60884fe2e1de
b138d2454eb4a7f7e19a9d1763fa6c06bbb239e6
refs/heads/master
2022-11-11T16:59:11.144130
2020-07-03T16:44:19
2020-07-03T16:44:19
276,888,663
0
0
Apache-2.0
2020-07-03T11:55:59
2020-07-03T11:55:58
null
UTF-8
Python
false
false
3,371
py
import yaml from dagster.cli.workspace.config_schema import validate_workspace_config def _validate_yaml_contents(yaml_contents): return validate_workspace_config(yaml.safe_load(yaml_contents)) def test_repository_yaml_parsing(): valid_yaml_contents = ''' repository: module: some_module fn: a_repo ...
689df46f7b895f0325dd2aa9407ac9eaec2f709b
a140fe192fd643ce556fa34bf2f84ddbdb97f091
/.history/다양한 출력포맷_20200705141045.py
b9bbcf137e8d3e41db97353267569be16ddbb422
[]
no_license
sangha0719/py-practice
826f13cb422ef43992a69f822b9f04c2cb6d4815
6d71ce64bf91cc3bccee81378577d84ba9d9c121
refs/heads/master
2023-03-13T04:40:55.883279
2021-02-25T12:02:04
2021-02-25T12:02:04
342,230,484
0
0
null
null
null
null
UTF-8
Python
false
false
720
py
# 빈 자리는 빈공간을 두고, 오른쪽 정렬을 하되, 총 10자리 공간을 확보 print("{0: >10}".format(500)) # 양수일 때는 +로 표시, 음수일 땐 -로 표시 print("{0: >+10}".format(500)) print("{0: >+10}".format(-500)) # 왼쪽 정렬하고, 빈칸을 _로 채움 print("{0:_<+10}".format(500)) # 3자리 마다 콤마 찍어주기 print("{0:,}".format(100000000000)) # 3자리 마다 콤마 찍어주기, +- 부호도 붙이기 print("{0:+,}".format(...
0bed65bcd8fe1c0b2dba68f4c6e191e1c0dd7d79
01d38140093f41e6afbd67445dbca78d9220d7fd
/linear_regression_learner.py
05b5f705f8a1be190a199b6dcdb5c38254cfec16
[]
no_license
boyko11/LinRegTorch
e174eb1452646b52f9c7c9161ee30f45630ef8b6
a8f05fe67b4be3ee9e885194b5b750371b1cb5e1
refs/heads/master
2022-07-04T04:36:04.136287
2020-05-10T21:15:14
2020-05-10T21:15:14
262,623,970
0
0
null
null
null
null
UTF-8
Python
false
false
1,021
py
import numpy as np import torch class LinearRegressionLearner(): def __init__(self, theta_size, learning_rate=0.00001): self.theta_tensor = torch.randn(theta_size, 1, requires_grad=True) self.loss_function = torch.nn.L1Loss() self.learning_rate = learning_rate self.loss_history = ...
f0db017322cd95c267fcbaddaf60360bec86248e
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/405/usersdata/284/75780/submittedfiles/exe11.py
487a2312007a81920fb10875f75153e3da8fe793
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
748
py
# -*- coding: utf-8 -*- a=int(input('digite o numero: ')) if a>100000000 or a<9999999: print('nao sei') else: d1=(a//(10**7)) d2=(a-(d1*(10**7)))//(10**6) d3=(a-(d1*(10**7))-(d2*(10**6)))//(10**5) d4=(a-(d1*(10**7))-(d2*(10**6))-(d3*(10**5)))//(10**4) d5=(a-(d1*(10**7))-(d2*(10**6))-(d3*(10*...
16a211c171b197fac8281ce6fa826d216b8534b8
3af6960c805e9903eb27c09d8bc7ebc77f5928fe
/problems/0173_Binary_Search_Tree_Iterator/solution.py
7f652418a02ce3af736afa21f1de7714c75c320d
[]
no_license
romain-li/leetcode
b3c8d9d4473eebd039af16ad2d4d99abc2768bdd
5e82b69bd041c2c168d75cb9179a8cbd7bf0173e
refs/heads/master
2020-06-04T20:05:03.592558
2015-06-08T18:05:03
2015-06-08T18:05:03
27,431,664
2
1
null
2015-06-08T18:05:04
2014-12-02T12:31:58
Python
UTF-8
Python
false
false
567
py
# Definition for a binary tree node # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class BSTIterator: # @param root, a binary search tree's root node def __init__(self, root): # @return a boolean, whether we have a nex...
0a58cf2911a659203311090431b380b9748431c3
90574ae9759f98f8687cd3e842a6b4301578baea
/batbelt/utils.py
fddd41a996904a6a1cf6a42f8e2d5dc3ff6eefd7
[ "Zlib" ]
permissive
sametmax/Bat-belt
88a52a1d89e5dac8bfd69e26a0f106bc0520fdea
372117e3876328f84804a296ee9636dee1e82206
refs/heads/master
2021-05-16T02:29:13.264688
2015-09-18T16:59:26
2015-09-18T16:59:26
6,219,068
19
3
null
2017-05-18T06:03:15
2012-10-14T22:55:42
Python
UTF-8
Python
false
false
2,792
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: ai ts=4 sts=4 et sw=4 nu """ The infamous utils.py module filled with functions you don't where else to put. """ import sys import os from datetime import datetime CLASSIC_DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S.%f' CLASSIC_DATETIME_PATTERN = r'\d{4}-\d{2}...
df404f3b8ffb691f89f96c0f76927a6c6e7be13b
c85238daac6141efea2895485b9b18fc08cf4cf2
/PathTracking/lqr/unicycle_model.py
6e55e37b422e9be8ec8346a25d0b4cf7a5720654
[ "MIT" ]
permissive
RyoheiTakahashi/PythonRobotics
6543529ff677a68792cfc0a336aa9992d163ec96
bee232e84dedcfe0b1dc494ce86c67130b42a8c8
refs/heads/master
2021-01-02T09:00:24.091192
2017-07-31T06:50:07
2017-07-31T06:50:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,167
py
#! /usr/bin/python # -*- coding: utf-8 -*- """ author Atsushi Sakai """ import math dt = 0.1 # [s] L = 2.9 # [m] class State: def __init__(self, x=0.0, y=0.0, yaw=0.0, v=0.0): self.x = x self.y = y self.yaw = yaw self.v = v def update(state, a, delta): state.x = state.x...
75f0cc9ced2b0b3b7f516afcd8b9a89bfbef64ea
d4a8bedc9c1c9897b3e07a3c9067f7c89c63be5f
/python_builtins/sort_by_size.py
cf8b0e967cb9cab9f931467b0f72881a53f9bdbd
[]
no_license
udoyen/python_refresher
816fe6264dbc21ce7a3697eb0f96aa8f9f402032
8e542d8e6221b041fc945f5770f25d5da03d8f6a
refs/heads/master
2023-05-25T19:51:55.938397
2019-11-19T17:22:30
2019-11-19T17:22:30
222,283,118
0
0
null
null
null
null
UTF-8
Python
false
false
791
py
from .sort_on_length import lensort n = [1, 2, 3, 5, 6, 4, 10, 11, 12, 13, 14] s = ['python', 'perl', 'java', 'c', 'haskell', 'ruby'] def sort_by_size(n): state = False for i in n: if isinstance(i, str): state = True if state: lensort(n) else: for i in range(len(n))...
9538737de1675e3a3124e5e10f51eac9c9db50e4
0a34747e5a9b94fbb12baebfa2452d15abebcc26
/191212/venv/Scripts/pip-script.py
9745a77b688257eee314c2e5d033bb4e9d461c36
[]
no_license
GyuReeKim/PycharmProjects_winter-vacation
51772407f19a6f2a9e308be884d80b787aa006d0
1cc9e66ea5819a1b2ea5fdbda0257a2314e3ec95
refs/heads/master
2020-10-01T08:56:38.413469
2019-12-22T23:58:59
2019-12-22T23:58:59
226,757,712
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
#!C:\Users\student\PycharmProjects\191212\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[...
05297da59c8dfa9824b8284de359353b5ce477a1
d926c87644a2861d3c4edf36c1e1692acec38fb5
/src/api/forms.py
fca77e5fde7cb8423ea759b5d0b4c6fcd89f62d6
[]
no_license
mainhith97/AG-BE
1058aee4bce0888da07a30fa44802115851b5e6e
908b6e542a3219a233417f8f061241985265c777
refs/heads/master
2023-01-09T02:54:12.888094
2019-12-12T04:09:03
2019-12-12T04:09:03
213,387,121
0
0
null
2022-12-27T15:36:51
2019-10-07T13:13:13
Python
UTF-8
Python
false
false
1,265
py
#!/usr/bin/env python from django import forms from django.contrib.auth import get_user_model from django.contrib.auth.forms import ReadOnlyPasswordHashField User = get_user_model() class UserAdminChangeForm(forms.ModelForm): password = ReadOnlyPasswordHashField() class Meta: model = User f...
3549f90d7b101b2118ff612c4fe503a21f99d31b
238702bd275d9a8171c6e479c6ad1bbaa1ee3158
/app/blog/models.py
4dec50a6791965d9f31409b8992f01e302a8a1d8
[]
no_license
maro99/djangogirls_pt_for_test
aebf03672741786ea74686efac21303961bf3987
4400aed75640273d8adbe7b1592607ccb23b42c2
refs/heads/master
2020-03-19T17:46:27.767327
2018-06-10T15:02:17
2018-06-10T15:02:17
136,775,121
0
0
null
null
null
null
UTF-8
Python
false
false
566
py
from django.conf import settings from django.db import models from django.utils import timezone class Post(models.Model): author = models.ForeignKey(settings.AUTH_USER_MODEL,on_delete=models.CASCADE) title = models.CharField(max_length=200) text = models.TextField(blank=True) created_date = models.Da...
78d0879d94181fd01651e04f648a10bce0e425af
7e01c039f2427d434a4ef44a1b9dc0ea21db65ba
/venv/lib/python3.8/site-packages/django/db/models/indexes.py
972bc52b46db22cea0eb15a3e5064bdecbd5302e
[]
no_license
dmfranz/Spike-exercise
09f8051163d2a63dfbc3f75da2de0a1bbbbb122d
83971e95a72d504f629778fece2cdfb953e5d08b
refs/heads/main
2023-08-23T04:18:43.934471
2021-10-11T04:54:28
2021-10-11T04:54:28
413,568,735
0
1
null
2021-10-11T04:36:22
2021-10-04T20:10:01
Python
UTF-8
Python
false
false
11,548
py
from django.db.backends.utils import names_digest, split_identifier from django.db.models.expressions import Col, ExpressionList, F, Func, OrderBy from django.db.models.functions import Collate from django.db.models.query_utils import Q from django.db.models.sql import Query from django.utils.functional import par...
a466328f675d05531ab0713a6dafb6c78b0f3ff7
c6ae1b415c5de367677dceaecd5cd983365609e0
/Atividades/Roteiro 5 - While/Programas/Roteiro 5 Questão 7.py
0e3f5b5b3eb25ddead15c1c27823d585c58d4985
[]
no_license
JardelBrandon/Algoritmos_e_Programacao
8f00548ed9706cfeb3ad2b2ac6db0b9d2eb0f13c
66784a567d85cf340d50400a14ea6915779a1304
refs/heads/master
2021-07-11T14:36:09.260443
2017-10-12T20:55:41
2017-10-12T20:55:41
106,738,616
0
0
null
null
null
null
UTF-8
Python
false
false
831
py
#7. Escreva um programa que leia números inteiros da entrada padrão até que seja informado um #número negativo ou par. while True : num = int (input ("Digite um número inteiro aleatório :")) print (num) if num < 0 : print(num, "Digito negativo, fim !") break if num % 2 == 0 : ...
65a3424eb666d1b95d64e170a548eba3ee06e8ea
1bd3076902117867ec048210905195ba2aaaaa6b
/exercise/leetcode/python_src/by2017_Sep/Leet081.py
031e578b7c55dcfc5b24e1ee98786a96056655d6
[]
no_license
SS4G/AlgorithmTraining
d75987929f1f86cd5735bc146e86b76c7747a1ab
7a1c3aba65f338f6e11afd2864dabd2b26142b6c
refs/heads/master
2021-01-17T20:54:31.120884
2020-06-03T15:04:10
2020-06-03T15:04:10
84,150,587
2
0
null
2017-10-19T11:50:38
2017-03-07T03:33:04
Python
UTF-8
Python
false
false
196
py
class Solution(object): def search(self, nums, target): """ :type nums: List[int] :type target: int :rtype: bool """ return target in set(nums)
4c05e2be63b355c4b1e20763ff2b62cee65c0990
2ef5b78a1a750ee33d86f36bba176796163e3933
/demo5/forms.py
4f222179f56bc614355a243b4e1381dc87a68970
[]
no_license
LIZEJU/flask-demo
08f8419757dc4902239b89b3df9ea71ce918ad26
6ae201e3cc078b7a3fd18fb6d114b0b83f1b4b41
refs/heads/master
2020-09-27T05:58:09.742198
2020-01-30T11:04:41
2020-01-30T11:04:41
226,445,858
0
0
null
null
null
null
UTF-8
Python
false
false
1,203
py
#encoding:utf-8 # 引入form基类 from flask_wtf import Form # 引入form元素父类 from wtforms import StringField , PasswordField ,FileField # 引入form验证父类 from wtforms.validators import DataRequired,Length from wtforms.validators import InputRequired from flask_wtf.file import FileRequired , FileAllowed from flask_wtf.form import ...
2f6d03026c09a7ce173a67c3e1969dc363abb6b6
e6bc1f55371786dad70313eb468a3ccf6000edaf
/Extras/matrix/Correct/s030.py
c58235fbf2b318bd0371e500ca863583fa7ce813
[]
no_license
prateksha/Source-Code-Similarity-Measurement
9da92e3b22c372ed6ea54d8b6ab2c5921e8c41c0
fb371b837917794d260a219a1ca09c46a5b15962
refs/heads/master
2023-01-04T07:49:25.138827
2020-10-25T14:43:57
2020-10-25T14:43:57
285,744,963
3
0
null
null
null
null
UTF-8
Python
false
false
1,303
py
#!/usr/bin/python3 # MatrixError # Your code - begin class MatrixError(Exception): # Your code - end class Matrix: def __init__(self, m): # check if m is empty if (len(m)==0): raise: except : "List Empty" # check if all rows are lists # check if all rows ...
f59576e84f7ea29af8679e9e3cc8f1dd93b936f5
52b5773617a1b972a905de4d692540d26ff74926
/.history/minWindow_20200618160003.py
227eef656edcd857940c47b680c4c4aa56bf8fce
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
614
py
# for this question we have two pointers # left pointer # right pointer # we move the right pointer and maintain the position of the left pointer # when we find the word we move the left pointer # store that word its shortest form # we keep moving the right pointer # sz,azjskfzts def minWindow(str1,str2): le...
a422adb8377e27145052c403040b4814541e9b36
f60b964dc39ba54bb84f1c4949be3b91a92b8346
/order_api/views.py
e3feee2c73e66f7674f853b4df1efd45d9a9edbb
[ "Apache-2.0" ]
permissive
jiejiang/courier
4b0b4fc56c5510228ffcc4de51b074c7aff9502f
6fdeaf041c77dba0f97e206adb7b0cded9674d3d
refs/heads/master
2022-11-30T14:24:53.950502
2019-12-06T16:42:00
2019-12-06T16:42:00
195,387,643
0
0
Apache-2.0
2022-11-22T01:22:33
2019-07-05T10:08:19
Python
UTF-8
Python
false
false
14,754
py
# *- coding: utf-8 -* import urllib, PyPDF2, sys, os, json from cStringIO import StringIO from wsgiref.util import FileWrapper from decimal import Decimal from django.conf import settings from django.db import transaction from django.http.response import StreamingHttpResponse from django.utils import timezone from dja...
b96ac1eb8024992f0b224485416d49af4bfde378
8da91c26d423bacbeee1163ac7e969904c7e4338
/pyvisdk/do/host_virtual_nic_spec.py
c946f61307dcc38838e49156a3cc38c9e730a3f0
[]
no_license
pexip/os-python-infi-pyvisdk
5d8f3a3858cdd61fb76485574e74ae525cdc7e25
1aadea0afbc306d09f6ecb9af0e683dbbf961d20
refs/heads/master
2023-08-28T02:40:28.789786
2020-07-16T04:00:53
2020-07-16T04:00:53
10,032,240
0
1
null
null
null
null
UTF-8
Python
false
false
1,173
py
import logging from pyvisdk.exceptions import InvalidArgumentError ######################################## # Automatically generated, do not edit. ######################################## log = logging.getLogger(__name__) def HostVirtualNicSpec(vim, *args, **kwargs): '''This data object type describes the Virt...
e1b1868d804ba8bd5d7700debafa0a87b49a39ef
caaf1b0754db1e676c37a6f1e58f19183754e654
/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_09_01/operations/_private_endpoint_connections_operations.py
78db6ee6160edab569f105e1ee00ec65560d434c
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
rdomenzain/azure-sdk-for-python
45dfb39121a0abda048c22e7309733a56259f525
58984255aeb904346b6958c5ba742749a2cc7d1b
refs/heads/master
2023-07-07T06:53:12.967120
2023-07-04T16:27:37
2023-07-04T16:27:37
258,050,134
0
0
MIT
2020-04-23T00:12:14
2020-04-23T00:12:13
null
UTF-8
Python
false
false
28,374
py
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
d4b95ac7eb2b29dd8d737aed9ed3f2ef6766e308
67c957b74e22bb191b9941cd753642516f32f27d
/name_uniq.py
bec11f03d47fcfd69317da3b4e58ddeaa4ccd673
[]
no_license
chenchiyuan/jobeasy
a1ddc567901234b96d69658791f280bdfca43215
0a9cb465e1f8b4068069330b58f418890bde407b
refs/heads/master
2016-09-05T20:58:11.679848
2014-04-08T07:18:27
2014-04-08T07:18:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,301
py
# -*- coding: utf-8 -*- # __author__ = chenchiyuan # 通过POI名来判重, 必须内网跑 from __future__ import division, unicode_literals, print_function import requests import json import base64 class ExcelHelper(object): @classmethod def write(cls, path, data, encoding="utf-8"): import xlwt workbook = xlwt.W...
31404902b27fdb152d6280d2618358c91f58c56e
6b791247919f7de90c8402abcca64b32edd7a29b
/lib/coginvasion/gags/Geyser.py
49fb02d48689e8123aa8b4780d597b0a706f7552
[ "Apache-2.0" ]
permissive
theclashingfritz/Cog-Invasion-Online-Dump
a9bce15c9f37b6776cecd80b309f3c9ec5b1ec36
2561abbacb3e2e288e06f3f04b935b5ed589c8f8
refs/heads/master
2021-01-04T06:44:04.295001
2020-02-14T05:23:01
2020-02-14T05:23:01
240,434,213
1
0
null
null
null
null
UTF-8
Python
false
false
5,238
py
# uncompyle6 version 3.2.4 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] # Embedded file name: lib.coginvasion.gags.Geyser from lib.coginvasion.gags.SquirtGag import SquirtGag from lib.coginvasion.gags.ChargeUpGag import ChargeUpGa...
5ab9f533edd3366b5f611708dc5b6eb8004b0626
7bededcada9271d92f34da6dae7088f3faf61c02
/pypureclient/flashblade/FB_2_3/models/bucket_s3_specific_performance.py
eb1e8397e06d6a677cb0d00173e040eaf24a5570
[ "BSD-2-Clause" ]
permissive
PureStorage-OpenConnect/py-pure-client
a5348c6a153f8c809d6e3cf734d95d6946c5f659
7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e
refs/heads/master
2023-09-04T10:59:03.009972
2023-08-25T07:40:41
2023-08-25T07:40:41
160,391,444
18
29
BSD-2-Clause
2023-09-08T09:08:30
2018-12-04T17:02:51
Python
UTF-8
Python
false
false
9,447
py
# coding: utf-8 """ FlashBlade REST API A lightweight client for FlashBlade REST API 2.3, developed by Pure Storage, Inc. (http://www.purestorage.com/). OpenAPI spec version: 2.3 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typ...
0c708aa7731e0845288916df910173d7240ce581
4560d7e3aa3be65ffaf102e780b44d6fab51cfd7
/fastapi_pagination/bases.py
c2726bfa5e3f5b2dd7437896047d9906fa145ce4
[ "MIT" ]
permissive
mathbeal/fastapi-pagination
55235bcfb72feebdd0bad7e6bc7fcd3ba028e0bd
485acf9862316d4ca58657fa6896a9469e419387
refs/heads/main
2023-03-17T22:45:19.649532
2021-03-01T08:07:59
2021-03-01T08:07:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
826
py
from __future__ import annotations from abc import ABC, abstractmethod from typing import TYPE_CHECKING, Generic, Sequence, Type, TypeVar from pydantic.generics import GenericModel from typing_extensions import Protocol if TYPE_CHECKING: from .params import LimitOffsetPaginationParams # pragma no cover T = Typ...
29f89be27029aebc1b5e3b25b5f07fc2d21f16d7
41c605bf3a002a757cb2344cff526d7a7ae56ea9
/plotly/graph_objs/cone/hoverlabel/__init__.py
b9d86aa282e915c730ed36932a930d79960abee1
[ "MIT" ]
permissive
Jonathan-MW/plotly.py
9674b90b5de11fd9089e6afefd04b57bc4587829
7528c00772f44dee24c0df7e15d70a4852f171a8
refs/heads/master
2020-05-30T06:04:13.621478
2019-05-31T10:34:15
2019-05-31T10:34:15
189,571,988
2
0
MIT
2019-05-31T09:59:53
2019-05-31T09:59:53
null
UTF-8
Python
false
false
10,981
py
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): # color # ----- @property def color(self): """ The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff000...
d36bbdba4d86a8634ff9481655aa289e125af4a7
1e013dc5f0de0f61e27f2867557803a01c01f4da
/Language/python/module/shutit/login_server.py
c64484bac2ae2c39af84814e4875ba008058b876
[]
no_license
chengyi818/kata
a2941ce8675c6e7a47169a0eae4c757d3f6f5bf9
a7cb7ad499037bcc168aaa0eaba857b33c04ef14
refs/heads/master
2023-04-10T18:39:09.518433
2023-01-08T15:22:12
2023-01-08T15:22:12
53,040,540
1
0
null
2023-03-25T00:46:51
2016-03-03T10:06:58
C++
UTF-8
Python
false
false
314
py
#!/usr/bin/env python3 # Author: ChengYi # Mail: [email protected] # created time: Fri 30 Jun 2017 09:45:45 AM CST import shutit session = shutit.create_session('bash') session.login('ssh [email protected]', user='you', password="password") session.send('hostname', echo=True) session.logout()
8aac425c473f78bdd1e3a956e3e20aea659288ae
e17e40dbb6ed8caaac5c23de29071b403637f5ae
/transformers_keras/tokenizers/space_tokenizer_test.py
d14ad108c617d1d66aa0f29a709712be005d2ca3
[ "Apache-2.0" ]
permissive
Linessiex/transformers-keras
cb739075c8daab39d52dc6cd6bafe5e45f8259be
0bb576db356f575390815dc64840b78b8ecf6227
refs/heads/master
2020-11-25T05:58:09.448200
2019-09-23T09:13:59
2019-09-23T09:13:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,893
py
import os import unittest import tensorflow as tf from transformers_keras.tokenizers.space_tokenizer import SpaceTokenizer class SpaceTokenizerTest(unittest.TestCase): def buildTokenizer(self): tokenizer = SpaceTokenizer() corpus = ['train.tgt.txt'] corpus = [os.path.join('testdata', f)...
3742ae3ea8651e93bf19112552eca41e07d13d17
211fdc0564d9b003a82bb880d2e422dac85a5752
/correcciones/segunda_parte/examen_2/ExamenII-12-11499/ExamenII-12-11499/conjunto.py
3618d6877e24566f9f12339ab0226e071bff4c12
[]
no_license
dvdalilue/ci2692_ene_mar_2017
45fa1833b4b3b49a1e5be33e58f01cb23bb2d6aa
1690e6429c2c5ec167d505642d3344b249257475
refs/heads/master
2021-01-20T01:32:43.668461
2017-04-24T22:50:01
2017-04-24T22:50:01
89,292,212
0
0
null
null
null
null
UTF-8
Python
false
false
2,329
py
""" Implementacion de el TAD Conjunto, con una estructura conjunto que representa una lista enlazada simple, que va a contener elementos de tipo entero Autor: Orlando Chaparro Carnet: 12-11499 Ultima modificacion: Jueves, 30 de marzo de 2017 - Semana 12 """ class Elemento: def __init__(self, e, n): ""...
4ebb914c4cd0607646f94e6605538d7f8cdd6278
bc233c24523f05708dd1e091dca817f9095e6bb5
/bitmovin_api_sdk/notifications/__init__.py
a892dc177947a1b63dc28a0a33fdf5cc5a9ed245
[ "MIT" ]
permissive
bitmovin/bitmovin-api-sdk-python
e3d6cf8eb8bdad62cb83ec77c0fc4950b06b9cdd
b0860c0b1be7747cf22ad060985504da625255eb
refs/heads/main
2023-09-01T15:41:03.628720
2023-08-30T10:52:13
2023-08-30T10:52:13
175,209,828
13
14
MIT
2021-04-29T12:30:31
2019-03-12T12:47:18
Python
UTF-8
Python
false
false
558
py
from bitmovin_api_sdk.notifications.notifications_api import NotificationsApi from bitmovin_api_sdk.notifications.webhooks.webhooks_api import WebhooksApi from bitmovin_api_sdk.notifications.states.states_api import StatesApi from bitmovin_api_sdk.notifications.emails.emails_api import EmailsApi from bitmovin_api_sdk.n...
6e1d6cd2a8bfea5fab3e963a27b3b7ae78265dc3
a4ea525e226d6c401fdb87a6e9adfdc5d07e6020
/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/server/__cmd_group.py
d961af574f0abaf5e29fdf103bfbd24bcdb8d564
[ "MIT", "BSD-3-Clause", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MPL-2.0", "LGPL-2.1-only", "Apache-2.0", "LGPL-2.1-or-later", "BSD-2-Clause" ]
permissive
Azure/azure-cli
13340eeca2e288e66e84d393fa1c8a93d46c8686
a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca
refs/heads/dev
2023-08-17T06:25:37.431463
2023-08-17T06:00:10
2023-08-17T06:00:10
51,040,886
4,018
3,310
MIT
2023-09-14T11:11:05
2016-02-04T00:21:51
Python
UTF-8
Python
false
false
694
py
# -------------------------------------------------------------------------------------------- # 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 aaz-dev-tools # --------------------------------...
e564ecc4fbbc90fe1f74ddf416902f8e65510058
de265eba4074121d53295550fb901016df9f5556
/django_service/Sample/management/commands/custom_createsuperuser.py
8ff37a94427784c22a3759a0bb6ad61912f559d0
[]
no_license
1shikawa/django-service-ecs
d0ef169746c1baaf5eca3bb10d338b89969a10b8
dca521ebbeb812f6692cb77aedd727029d22e39c
refs/heads/master
2023-05-01T22:01:18.249844
2019-12-20T07:24:12
2019-12-20T07:24:12
183,669,797
0
0
null
2023-04-21T20:38:30
2019-04-26T17:33:30
Python
UTF-8
Python
false
false
1,168
py
from django.contrib.auth.management.commands import createsuperuser from django.core.management import CommandError class Command(createsuperuser.Command): help = 'Create a superuser with a password non-interactively' def add_arguments(self, parser): super(Command, self).add_arguments(parser) ...
4b230710f1856750e68e261ce7c5ace7bc6562c8
027643c9ca72efe7210bac72f62d977b842b1228
/official/vision/beta/configs/video_classification.py
1edbe22a74fcc0a2d75402f76e5e65c23a622758
[ "Apache-2.0" ]
permissive
anshkumar/models
88a60e49f9563447e7a4d3ef9d8c462d4e01d6b3
a2f397a86995a0c6f9c30d956e21c9a63af6d3e6
refs/heads/master
2023-05-01T00:17:37.877511
2021-05-07T16:06:03
2021-05-07T16:06:03
278,812,620
0
0
Apache-2.0
2021-05-04T09:56:57
2020-07-11T07:35:03
null
UTF-8
Python
false
false
11,873
py
# Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
92ac7bd164345c50dbb3b66e3cf7e6b526225049
1ab7b3f2aa63de8488ce7c466a67d367771aa1f2
/Ricardo_OS/Python_backend/venv/lib/python3.8/site-packages/pandas/tests/indexes/ranges/test_range.py
3bd3f6cc09db7b9910b1ed6ecfcbaefee8015372
[ "MIT" ]
permissive
icl-rocketry/Avionics
9d39aeb11aba11115826fd73357b415026a7adad
95b7a061eabd6f2b607fba79e007186030f02720
refs/heads/master
2022-07-30T07:54:10.642930
2022-07-10T12:19:10
2022-07-10T12:19:10
216,184,670
9
1
MIT
2022-06-27T10:17:06
2019-10-19T09:57:07
C++
UTF-8
Python
false
false
16,498
py
import numpy as np import pytest from pandas.core.dtypes.common import ensure_platform_int import pandas as pd from pandas import Float64Index, Index, Int64Index, RangeIndex import pandas._testing as tm from ..test_numeric import Numeric # aliases to make some tests easier to read RI = RangeIndex I64 = Int64Index F...
7e90e0748a097082ae08503e7105547f19da0ae5
7482036919de3e698fb752486f74c78922fb342d
/backend/manage.py
61f319e61ffe0dc371b6d1d9bed8db5a05f36a9a
[]
no_license
crowdbotics-apps/spring-star-27540
6c14339a0f1d6e5e409f809180049ce3085a70ef
267d17dbe4d773f2e83fcef592e92f78c16d4000
refs/heads/master
2023-05-02T22:58:42.678703
2021-05-29T01:56:54
2021-05-29T01:56:54
371,858,417
0
0
null
null
null
null
UTF-8
Python
false
false
637
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'spring_star_27540.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: ra...
d97dcb6e0ca0834d47adde8295161d6df7c1effb
7a88fc18f30d5dd3ac935877d4d9268a56c296be
/di_website/publications/migrations/0007_auto_20190924_1349.py
1907659178d26314ad37e2f4f1ba61a1d7f5b83d
[]
no_license
devinit/DIwebsite-redesign
745a480b7ba0feffa34dc664548ee4c5a7b4d470
9ec46823c67cdd4f35be255896bf30d8f6362666
refs/heads/develop
2023-08-30T04:06:20.951203
2023-08-07T12:06:07
2023-08-07T12:06:07
184,287,370
1
0
null
2023-08-28T14:34:57
2019-04-30T15:29:25
HTML
UTF-8
Python
false
false
1,077
py
# Generated by Django 2.2.2 on 2019-09-24 13:49 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('publications', '0006_auto_20190919_1544'), ] operations = [ migrations.AddField( model_name='shortp...
26a9092923ba18920ccdad2427001c1ad995f102
aee1878ba3e31a36c805025c662ab55a45003898
/model_zoo/preprocess.py
2ab21774d485dedb6137ca9f7b4dea35f9469a68
[ "MIT" ]
permissive
boluoyu/ModelZoo
4a40c1215200ddcf5e96554bf2474593cfe60f1e
e8906d5c5195c1f6ebdc46e69fa8cd0439317c60
refs/heads/master
2020-06-15T17:29:18.108553
2019-02-08T16:20:07
2019-02-08T16:20:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
453
py
from sklearn.preprocessing import StandardScaler def standardize(fit_data, extra_data=None): """ standardize data :param fit_data: data to fit and transform :param extra_data: extra data to transform :return: """ s = StandardScaler() s.fit(fit_data) fit_data = s.transform(fit_data)...
311e80aa2ff395e8c37abb76ae904d71bc65e325
8ef8e6818c977c26d937d09b46be0d748022ea09
/cv/super_resolution/ttsr/pytorch/model/SearchTransfer.py
2b5783ca0517680d2052d57305968c26bdac5edf
[ "Apache-2.0", "MIT" ]
permissive
Deep-Spark/DeepSparkHub
eb5996607e63ccd2c706789f64b3cc0070e7f8ef
9d643e88946fc4a24f2d4d073c08b05ea693f4c5
refs/heads/master
2023-09-01T11:26:49.648759
2023-08-25T01:50:18
2023-08-25T01:50:18
534,133,249
7
6
Apache-2.0
2023-03-28T02:54:59
2022-09-08T09:07:01
Python
UTF-8
Python
false
false
2,276
py
import math import torch import torch.nn as nn import torch.nn.functional as F class SearchTransfer(nn.Module): def __init__(self): super(SearchTransfer, self).__init__() def bis(self, input, dim, index): # batch index select # input: [N, ?, ?, ...] # dim: scalar ...
d0b5c2f160a1d45560730b6f89d15a84bc44bfc6
2bdedcda705f6dcf45a1e9a090377f892bcb58bb
/src/main/output/guy_job_party/work/morning_team/minute/city.py
cd73017ec214a164aca8b7076627ba35a74cba8f
[]
no_license
matkosoric/GenericNameTesting
860a22af1098dda9ea9e24a1fc681bb728aa2d69
03f4a38229c28bc6d83258e5a84fce4b189d5f00
refs/heads/master
2021-01-08T22:35:20.022350
2020-02-21T11:28:21
2020-02-21T11:28:21
242,123,053
1
0
null
null
null
null
UTF-8
Python
false
false
28,594
py
package SDK; import java.io.File; import java.io.FileOutputStream; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.UUID; import java.util.concurrent.Future; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.A...
c91819f9ce17f0642a4a7e15dc0d0cc7c34ed6c1
fccc9acd62447941a49313c01fcf324cd07e832a
/exe115/sistema.py
358cfb5e914db10289609b7d41eb882cee96b3dc
[]
no_license
paulovictor1997/Python
fba884ea19ed996c6f884f3fcd3d49c5a34cfd3d
671d381673796919a19582bed9d0ee70ec5a8bea
refs/heads/master
2023-04-29T18:01:55.451258
2021-05-19T15:12:09
2021-05-19T15:12:09
354,154,332
1
0
null
null
null
null
UTF-8
Python
false
false
717
py
from exe115.lib.interface import * from exe115.lib.arquivo import * from time import sleep arq = 'doc.txt' if not arquivoExiste(arq): criarArquivo(arq) while True: resposta = menu(['Ver pessoas cadastradas','Cadastrar','SAIR']) if resposta == 1: #Aqui vai listar o conteúdo do arquivo le...
a9fa385bdf2356beab9851c83ca610512a6d532c
cb3bce599e657188c30366adb0af3007ff9b8f96
/src/network/ex29-1.py
eeab288fc33fad3fc9b2440e19e26bdfdd2f8b06
[]
no_license
skk4/python_study
534339e6c378d686c29af6d81429c472fca19d6d
4bdd2a50f4bdfd28fdb89a881cb2ebb9eac26987
refs/heads/master
2021-01-01T04:36:52.037184
2017-12-08T01:04:27
2017-12-08T01:04:27
97,207,719
0
0
null
null
null
null
UTF-8
Python
false
false
467
py
''' Created on 2017.7.18 @author: Administrator ''' import socket ''' a_tuple = [('1', ('2', '22', '222'), '3'),('4',('5', '55', '555'), '6'), ('1', ('7', '77', '777'), '3')] print [x[1][1] for x in a_tuple] ''' localip = socket.gethostname() print localip fdqdn = socket.getfqdn(localip) print fdqdn ...
ffa80e415fc11487ad0892a4cbe94af86d8ea98d
32226e72c8cbaa734b2bdee081c2a2d4d0322702
/railrl/pythonplusplus.py
13a5ca3173dd994bc741d65fcb56a3b482ebac76
[ "MIT" ]
permissive
Asap7772/rail-rl-franka-eval
2b1cbad7adae958b3b53930a837df8a31ab885dc
4bf99072376828193d05b53cf83c7e8f4efbd3ba
refs/heads/master
2022-11-15T07:08:33.416025
2020-07-12T22:05:32
2020-07-12T22:05:32
279,155,722
0
0
null
null
null
null
UTF-8
Python
false
false
12,147
py
""" General purpose Python functions. TODO(vitchyr): probably move this to its own module, not under railrl """ import math import sys import collections import itertools def identity(x): return x def clip_magnitude(value, magnitude): """ Clip the magnitude of value to be within some value. :param...
250187df27f88d6af5ce301cfd96f7a72e3f38cd
b48764e6684ffbd73b0043dc889c013860642e8d
/1학기/퍼스널컬러.py
8691df840217d0d309f14ff4a0e152e708a3cc16
[]
no_license
tanghee/Programming-Python-
c6d32a1e49d5c95c8359aeb8775cb52cc665167a
eb402357ad31638d867042e76af507bc6c67a0b4
refs/heads/master
2022-03-27T07:27:18.888660
2019-12-10T02:06:41
2019-12-10T02:06:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,778
py
#2416임태희 #18개의 질문을 통해 자가진단을 진행합니다 #예를 들어, Q1의 답이 0이라면 Q4의 질문으로 답이 1이라면 Q2의 질문으로 넘어가는 방식입니다. #함수 하나씩 질문을 넣어서 해당 질문의 답에 따라서 다음 함수를 호출해주는 방식으로 진행합니다. print("FIND YOUR COLOR!") print("♡쉽고 빠른 자가진단으로 나만의 컬러를 찾아보세요♡\n") #함수 q1() ~ q18()과 spring(), summer(), autumn(), winter()를 생성해 줍니다. #자가진단 결과를 spring(), summer(), autumn(), ...
760e6204b7ba9ca5639eb67bc4f8cc5c7db2f082
9e419006675f6991480f350017798a4b3e0ccbd8
/borrow/borrow/wsgi.py
a341999c24e547fbe6d5387a7a8e21b63835555e
[ "MIT" ]
permissive
chairco/django-tutorial-borrow
263ccb7305f29d4bcc3139bd65605df70ec30498
28f747e115feabdcbd96d15fbc73f1c5d22236cd
refs/heads/master
2021-01-17T19:51:56.967984
2016-07-12T04:41:17
2016-07-12T04:41:17
63,126,576
0
1
null
null
null
null
UTF-8
Python
false
false
461
py
""" WSGI config for borrow 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.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application from dj_static import Cling os.enviro...
57e1c158e17a6f159aaf900eef82d7f9d995f7ef
10b3d1ce02eaa4908dc16ca378ddfb1955b2d625
/MV3D_TF_release/lib/utils/construct_voxel.py
456ee612b2788efdc122a5a6282577d0c3396a2d
[ "MIT", "BSD-3-Clause" ]
permissive
ZiningWang/Sparse_Pooling
7281aa0d974849eac8c48faa5ba08519b091ef6e
f46882832d0e2fed5ab4a0af15cead44fd3c6faa
refs/heads/master
2023-05-26T08:47:16.232822
2023-05-20T08:39:11
2023-05-20T08:39:11
141,640,800
56
21
null
null
null
null
UTF-8
Python
false
false
6,772
py
import numpy as np import matplotlib.pyplot as plt import time import os,sys #add library to the system path lib_path = os.path.abspath(os.path.join('lib')) sys.path.append(lib_path) from utils.transform import calib_to_P,clip3DwithinImage,projectToImage,lidar_to_camera from utils.config_voxels import cfg si...
bbf8704f9a342da4a6242959c75449f67e72b2f1
9450d31f41d59f238d4db6b10ac4819cfce8a32b
/run_game.py
4a5cabddccc61a400caf445609b916ed03c2f6ab
[ "BSD-3-Clause" ]
permissive
Python-Repository-Hub/pyweek24
4ed4959cecd0ac55e2fa68756cbdf15aa1f246af
284dc9c1a152fca8e39cf9d637f089ab772b3afd
refs/heads/master
2022-06-15T02:51:14.652778
2018-02-13T19:23:21
2018-02-13T19:23:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
694
py
import sys if sys.version_info < (3, 6): sys.exit( "This game requires Python 3.6 or later." ) import os from pathlib import Path dist = Path(__file__).parent.resolve() src = str(dist / 'src') sys.path.insert(0, src) os.chdir(src) try: import main except ImportError: import traceback ...
bba69b0ee5109c3789eb94c4c13b6199daacbf77
a138092a4fd0bd46e21fade96fea5dfba7742e20
/scratches/dicts.py
028103db5eaeb53cb84611165d1ed1e15a955fb8
[]
no_license
DuaneNielsen/CartPoleQ
979c00ca15bbac0719ba9197bedffe829f322561
202b82cf2b04aaa63965277c326413c62f188ed2
refs/heads/master
2020-03-25T07:27:22.651681
2018-09-07T01:40:35
2018-09-07T01:40:35
143,562,021
0
0
null
null
null
null
UTF-8
Python
false
false
161
py
dict = {} def increment(): if 'key' not in dict: dict['key'] = 1 else: dict['key'] += 1 print(dict['key']) increment() increment()
044e3599fa084cf436a5af3b58daa4d5d4aafefc
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Flask/FlaskIntroduction/env/lib/python3.6/site-packages/jinja2/idtracking.py
e507483177b9aae92710ac72877a042a2f540cb0
[]
no_license
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
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:d866c34b322f180ac40462e4a2f2e4a847e6631996b047fc737419c0ce2e36cc size 9197
4ff89d0aec60651bf2ed85d48c0862f3c24b27ea
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/7/r86.py
8fe6454077c475b77f020a7b0ffd6d8ea3b6ce9b
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
ee32622758a3d1e38bdf665d2426e7b04d9517db
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/HyLkfdagDGc99ZhbF_2.py
5cbf4778f6f92984c2090e629a1ebc045c4aaa40
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
603
py
""" Create a function that takes a number `n` (integer greater than zero) as an argument, and returns `2` if `n` is odd and `8` if `n` is even. You can only use the following arithmetic operators: addition of numbers `+`, subtraction of numbers `-`, multiplication of number `*`, division of number `/`, and exponent...
1ed343ca0e6cbe3de6a727240f40e690f376f493
cf89f6250926d993df642d1204e82f73529500e9
/app/backend/views.py
2a6d11060a3e88b1cfa6089bf7e89809881ae2e8
[]
no_license
gurnitha/django-login-logout
ce05911608122fa7dc560c5c230f2ed7a8ba95e0
3be89a432e2e9f9299ba670fce319f96e0af0cfa
refs/heads/main
2023-04-15T11:34:28.639319
2021-05-02T04:33:00
2021-05-02T04:33:00
363,554,559
0
0
null
null
null
null
UTF-8
Python
false
false
2,552
py
# app/backend/views.py # from django.shortcuts import render # from django.contrib.auth import authenticate, login, logout # from django.contrib import messages # from django.http import HttpResponseRedirect # from django.urls import reverse # # Create your views here. # def homePageAdmin(request): # return render(r...
0d2b7781d78e09fb307adba23b53e92b6e127e33
e3b9aa9b17ebb55e53dbc4fa9d1f49c3a56c6488
/microsoft_teams/icon_microsoft_teams/triggers/__init__.py
a7ec027c112c3744e743b15fed58e24d229634a5
[ "MIT" ]
permissive
OSSSP/insightconnect-plugins
ab7c77f91c46bd66b10db9da1cd7571dfc048ab7
846758dab745170cf1a8c146211a8bea9592e8ff
refs/heads/master
2023-04-06T23:57:28.449617
2020-03-18T01:24:28
2020-03-18T01:24:28
248,185,529
1
0
MIT
2023-04-04T00:12:18
2020-03-18T09:14:53
null
UTF-8
Python
false
false
101
py
# GENERATED BY KOMAND SDK - DO NOT EDIT from .new_message_received.trigger import NewMessageReceived
641d1c9fb4ce72e07ab9d93104d0a361c98c83e6
d71978ac89d21de391174c4a6f96edc38142b51f
/src/front/form.py
2ca88661ab5304c968d1f95b72f6182ceb74a0ee
[]
no_license
mzakany23/django-calendar-app
4d5fd4f4f5e835f0b81904ea5040f43f2f7e4cb0
1cedb92214e9649bb1c9ebcd64e78a66b1d5232b
refs/heads/master
2016-09-05T23:39:40.026293
2015-03-27T00:21:47
2015-03-27T00:21:47
32,084,980
0
0
null
null
null
null
UTF-8
Python
false
false
368
py
from django import forms class LoginForm(forms.Form): username = forms.CharField(widget=forms.TextInput( attrs={ 'placeholder' : 'Username', 'class' : 'form-control', 'id' : 'inputEmail', })) password = forms.CharField(widget=forms.PasswordInput( attrs={ 'placeholder' : 'Password', 'class' : 'for...
e775477bbdf1b10bfe37482cb0347cb2b9f64e68
776cf3b0f5865c8639692e1256abb5ad493c9f92
/__old_stuff/pga/pga_no_sort/ga.py
44c16031213aaa30fc75f982ad3221ebed52c595
[]
no_license
ralphbean/ms-thesis
90afb1d5729d83f1910d8dec2e6d4c65d0304bc0
3fea08aa069d735fb7048afbab37bb429800fb48
refs/heads/master
2021-01-19T11:28:14.382925
2012-01-25T15:24:54
2012-01-25T15:24:54
3,265,816
0
0
null
null
null
null
UTF-8
Python
false
false
4,793
py
#!/usr/bin/python from time import time from random import random, randint import shelve, sys, gc import crossover as cvr import mutation as mut import metrics as mtr import selection as sel # A constant: first = False num_trials = 3 max_gens = 3000 # Print things to stdout and log things that need logging def...
c2397ffc084b0e11f98d99e0cc1d0f65d8625303
356fb16011048aa62fcdbed574f310ac7ae37fa3
/discograph/library/RelationGrapher.py
2e337d487aaf341d4fef32f183834c847cf855d8
[ "MIT" ]
permissive
inostia/discograph
622470dbc4739ada9ea430a73a473bbe22f5db0a
21f3d842582ff488069233258161202fa3c9cf69
refs/heads/master
2021-01-17T23:17:29.176444
2015-10-02T20:16:10
2015-10-02T20:16:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,294
py
# -*- encoding: utf-8 -*- import collections import re import six from discograph.library.mongo.Artist import Artist from discograph.library.mongo.CreditRole import CreditRole from discograph.library.mongo.Label import Label from discograph.library.sqlite.SqliteArtist import SqliteArtist from discograph.library.sqlite....
3986965c2d0a784332a7d222363a1d17a565161e
9abe914e718155f3a560915c56a55996155159fb
/orders/migrations/0001_initial.py
bc9759f5039dba1b8d785e8084892eb818553505
[]
no_license
Chaoslecion123/Tienda-Django
07c8e2abe8cf659a4fce910c2b8fc858d9276e3b
d06e0c789bab69472d0931b2322e7da4f2eaa3bd
refs/heads/master
2022-03-28T18:07:38.083362
2019-12-11T20:01:59
2019-12-11T20:01:59
227,241,041
0
0
null
null
null
null
UTF-8
Python
false
false
1,431
py
# Generated by Django 3.0 on 2019-12-06 23:55 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import orders.models class Migration(migrations.Migration): initial = True dependencies = [ ('carts', '0002_cart_products'), migrations.sw...
0e62466e00c864e812b457df2fb1c13bd2d2c7fc
c6627895fbfae1ef714f10202eecb6ccce6e9af3
/test/test_v3_stop_response.py
2f7441ff90ce3cb2055bc1f14760e2bc98b1b3ef
[ "MIT" ]
permissive
richardjkendall/ptv-api-client
c34f08f986de903d43ee50e5d2f39a6258c0e1fd
9b1a3882ebee8cef363e688a56b90e2643799a88
refs/heads/master
2020-07-15T03:25:04.571357
2019-09-13T19:38:31
2019-09-13T19:38:31
205,468,365
0
0
null
null
null
null
UTF-8
Python
false
false
2,973
py
# coding: utf-8 """ PTV Timetable API - Version 3 The PTV Timetable API provides direct access to Public Transport Victoria’s public transport timetable data. The API returns scheduled timetable, route and stop data for all metropolitan and regional train, tram and bus services in Victoria, including Night...
2fa1ed31a07f2af23528b5c43403571d54f6cc0a
00c9124de185eead1d28dc190e1e125e5b4ceb26
/Pyto Mac/PyObjC/Quartz/QuartzFilters/_metadata.py
e2ec80683f20af0307984bc22985baf5d9fa4c51
[ "MIT" ]
permissive
cclauss/Pyto
028b9e9c3c2fefa815a4d6831e25f5ebae5b14f1
1c4ccc47e3a91e996bf6ec38c527d244de2cf7ed
refs/heads/master
2020-04-23T22:09:21.151598
2019-03-02T00:44:20
2019-03-02T00:44:20
171,491,840
0
0
MIT
2019-02-19T14:49:25
2019-02-19T14:49:25
null
UTF-8
Python
false
false
1,987
py
# This file is generated by objective.metadata # # Last update: Tue Jun 26 07:59:02 2018 import objc, sys if sys.maxsize > 2 ** 32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a if sys.byteorder == 'little': def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b mis...
0229304f52f6ac1a1a145202bfd50b7ebcab2f13
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03353/s439050403.py
217d9912ac078b47e9ed9f82f7964e6a159318bd
[]
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
471
py
S = input() K = int(input()) Ans = [] while len(Ans) < K: for i in range(26): if chr(97+i) in S and chr(97+i) not in Ans: f = chr(97 + i) Ans.append(f) break for i, s in enumerate(S): if s == f: for j in range(2, 2 + 10): if i + j...
f3279e01111cd6a9a00bf027fab2f05f90273b17
e59f257d5735cae8cf7bb46d52792aa7371c9dae
/venv/lib/python3.7/site-packages/stripe/version.py
fb126cc98a54cad9bfdc5579b360c82f55cdb733
[]
no_license
okumujustine/django-eccomerce-website
95499049dd4e46513c25a0fe6e6b82cf69d2080b
00c1ca600af5faa89829702044cc9f329bbc8b66
refs/heads/master
2022-12-08T23:29:19.453109
2021-05-31T11:23:22
2021-05-31T11:23:22
242,557,196
1
2
null
2022-12-08T03:44:29
2020-02-23T17:08:21
Python
UTF-8
Python
false
false
19
py
VERSION = "2.42.0"
f1a7a3948b8324c5db96b653272eb3ff8269f357
7d93e4f8a9475ada3edd770263ccb8cd98a9e73d
/tonetutor_webapi/settings.py
4578eab178976962e18525b426db619d3143ad69
[]
no_license
JivanAmara/tonetutor-webapi
78a7c03fe69aa392db508358040369ecf0973050
adf23af0dd12e5dd967695621146cd67ac5a416c
refs/heads/master
2021-04-30T04:46:46.336909
2018-02-20T00:17:56
2018-02-20T00:22:32
121,543,991
0
0
null
null
null
null
UTF-8
Python
false
false
5,145
py
""" Django settings for tonetutor_webapi project. Generated by 'django-admin startproject' using Django 1.10.1. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ i...
f08d6c183b27872465286126635966459c3bd299
bc7cd6689a8052d442ded8e876de1e5f22bfad6c
/lsml/core/datasets_handler.py
6d8f39686c4778cbfbe07610f2e691176e6fa08c
[ "BSD-3-Clause" ]
permissive
tor4z/level-set-machine-learning
3a359e0d55137f3c0a9cbcaf25048c61573abd25
38460e514d48f3424bb8d3bd58cb3eb330153e64
refs/heads/master
2022-04-08T08:04:27.200188
2020-01-26T03:09:56
2020-01-26T03:09:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,629
py
from collections import namedtuple import contextlib import logging import os import h5py import numpy import skfmm _logger_name = __name__.rsplit('.', 1)[-1] logger = logging.getLogger(_logger_name) TRAINING_DATASET_KEY = 'training' VALIDATION_DATASET_KEY = 'validation' TESTING_DATASET_KEY = 'testing' DATASET_KEY...
693783e7d62a487f14e10d74a7a450d92bdb14ce
727f1bc2205c88577b419cf0036c029b8c6f7766
/out-bin/py/google/fhir/models/model_test.runfiles/com_google_fhir/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/profiler/internal/__init__.py
2393af118399d8838b4a147efeb326dc2d1ae32d
[ "Apache-2.0" ]
permissive
rasalt/fhir
55cf78feed3596a3101b86f9e9bbf6652c6ed4ad
d49883cc4d4986e11ca66058d5a327691e6e048a
refs/heads/master
2020-04-13T00:16:54.050913
2019-01-15T14:22:15
2019-01-15T14:22:15
160,260,223
0
0
Apache-2.0
2018-12-03T22:07:01
2018-12-03T22:07:01
null
UTF-8
Python
false
false
188
py
/home/rkharwar/.cache/bazel/_bazel_rkharwar/c4bcd65252c8f8250f091ba96375f9a5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/profiler/internal/__init__.py
1e623db6fe6a57f23ac6227363e9c2893aae634c
0fe0ffe29ca6f76c6f15c85c8d82b09beaada246
/tools/perf/page_sets/dual_browser_story.py
debaf60207cbf2997a297a58ebe5cda647c48d1f
[]
no_license
hanpfei/chromium-net
4dc8fd48cf3b05d89b11dc121f9c3abdd3ba962e
9df8ce98c2a14fb60c2f581853011e32eb4bed0f
refs/heads/master
2023-07-08T15:28:01.033104
2023-06-14T13:02:39
2023-06-14T13:02:39
65,541,033
297
73
null
2022-11-02T23:33:48
2016-08-12T09:25:34
C++
UTF-8
Python
false
false
9,668
py
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import collections import logging import re import sys import urllib from telemetry import decorators from telemetry import story as story_module # TODO(per...
6bd19bea2e70c55542a03dfa7a782c7d2dfd879c
2e8db6ce133756ebe9998a48f98072e2133af792
/users/admin.py
c74af4fc5bb95c0218144cc7205abe0d7dd7c842
[]
no_license
KadogoKenya/JWT_TEST
b76f015e65e3950af4b35eebde165700fb8fed03
35aa2f9c5b11fa827fbc8565530be597c1f4c2d5
refs/heads/master
2023-03-26T20:55:19.301952
2021-03-25T07:56:52
2021-03-25T07:56:52
349,028,668
0
0
null
null
null
null
UTF-8
Python
false
false
3,094
py
from django.contrib import admin from django import forms from django.contrib.auth.admin import UserAdmin as BaseUserAdmin # Register your models here. # admin.site.register(UserManager,UserAdmin) from django.contrib.auth.models import Group from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django....
1897bf0e769aee4e932c3b17a1669983468986ba
b501a5eae1018c1c26caa96793c6ee17865ebb2d
/Networking/socket/socket_multicast_receiver.py
0d53559902dd07fb86eb6ef43f80a3e62f3943dd
[]
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
638
py
import socket import struct import sys multicast_group = '224.3.29.71' server_address = ('', 10000) sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.bind(server_address) group = socket.inet_aton(multicast_group) mreq = struct.pack('4sL', group, socket.INADDR_ANY) sock.setsockopt( socket.IPPROTO_IP,...
dd1bb84b3f09f1d5438cfa643cf57a0b86ad6d4d
c658b7eed69edfb1a7610694fe7b8e60a5005b7c
/test/functional/test_framework/blocktools.py
9c2958f076ad5d7002953c87f035d1bf308c0885
[ "MIT" ]
permissive
wolfoxonly/coc
0864a6dce2c36d703d93e9b2fb201f599d6db4bd
ff8584518c6979db412aec82e6528a4e37077da2
refs/heads/master
2021-01-24T16:52:14.665824
2018-04-28T10:00:42
2018-04-28T10:00:42
123,215,964
0
0
MIT
2018-02-28T02:15:20
2018-02-28T02:15:20
null
UTF-8
Python
false
false
3,934
py
#!/usr/bin/env python3 # Copyright (c) 2015-2017 The Crowncoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Utilities for manipulating blocks and transactions.""" from .mininode import * from .script import C...
210f9371a43aa3890b7486dc0f209676644979f8
87bae60470bbe5316d7da8bc4a8709e33b40e2b5
/whatsnew/south_migrations/0004_auto__del_field_whatsnew_released__add_field_whatsnew_enabled__chg_fie.py
b1dc20a303abe6f65e0843cb1077e8a5bf63afa1
[]
no_license
saxix/django-whatsnew
c11f0d5fa87e5e1c5c7648e8162bd39c64e69302
68b33e5e2599a858e00eda53e1c13a503e1b3856
refs/heads/develop
2021-01-19T12:39:41.876635
2015-01-28T16:18:29
2015-01-28T16:18:29
18,416,313
0
2
null
2015-01-28T16:18:30
2014-04-03T20:00:33
Python
UTF-8
Python
false
false
1,524
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'WhatsNew.released' db.delete_column(u'whatsnew_whatsnew', 'released') # Adding fi...
1248dbd0c2b9a530f886af3cabee8148160d28b7
c972024b36470ea42a01075cc3dc5df2ab2defcc
/mysite/radpress/urls.py
e576bc6e9464e86f98204a0e8b8649c90615b75f
[]
no_license
davidrae/abacus-direct
1c55bed4639716080b77c03359d981fdd3363027
dc09e2345a01ec36f6a8e2adf1dba12f11cb55ad
refs/heads/master
2016-08-11T12:49:15.407345
2015-11-03T15:50:16
2015-11-03T15:50:16
44,256,109
0
1
null
null
null
null
UTF-8
Python
false
false
3,579
py
from django.conf.urls import patterns, url from radpress.views import ( ArticleArchiveView, ArticleDetailView, ArticleListView, PreviewView, PageDetailView, SearchView, ZenModeView, ZenModeUpdateView, TagListView, GenericTagListView, index, users, reports, alerts, museums, privacy, solutions, wan, carpa...
a704ca8f1db8d26dc296c050b61bbfdec012c64f
03ff28a6004ba92f3b04c88bebabb503bed0ad0c
/main/migrations/0016_remove_assistantprofile_bio.py
092e6aec88360f9c741c9f29399cd654c36c95ea
[ "MIT" ]
permissive
mzazakeith/Therapy101
ebf8ff945f04dc04c7d05fb5cc9f923bca861c88
be00dd988c6b636f52b57638e70c89da3acbf1a3
refs/heads/master
2023-01-08T09:12:13.882424
2018-10-01T15:26:25
2018-10-01T15:26:25
144,596,894
0
0
MIT
2023-01-04T10:58:09
2018-08-13T15:12:55
Python
UTF-8
Python
false
false
402
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-08-24 06:18 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('main', '0015_assistantprofile_location'), ] operations = [ migrations.RemoveField( ...
eb74a3aaaba45d89b54d606ce9db62d206c45759
6189f34eff2831e3e727cd7c5e43bc5b591adffc
/WebMirror/management/rss_parser_funcs/feed_parse_extractLnnwnwarriorCom.py
d57e00464e808b7880e3602ef2d5057707f95b04
[ "BSD-3-Clause" ]
permissive
fake-name/ReadableWebProxy
24603660b204a9e7965cfdd4a942ff62d7711e27
ca2e086818433abc08c014dd06bfd22d4985ea2a
refs/heads/master
2023-09-04T03:54:50.043051
2023-08-26T16:08:46
2023-08-26T16:08:46
39,611,770
207
20
BSD-3-Clause
2023-09-11T15:48:15
2015-07-24T04:30:43
Python
UTF-8
Python
false
false
545
py
def extractLnnwnwarriorCom(item): ''' Parser for 'lnnwnwarrior.com' ''' vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or "preview" in item['title'].lower(): return None tagmap = [ ('PRC', 'PRC', 'translated'), ('Loiterous', 'Loite...
d8503c77ebac2cd8fe3ea0088bc0ea6508e354d6
b9a1dfcde3851847531b031b99df8bf96edc72be
/0x0F-python-object_relational_mapping/101-relationship_states_cities_list.py
7c723017eb5f8ce8a9f2b5ae496e97a47d0db301
[]
no_license
JackWanaCode/holbertonschool-higher_level_programming
c304eba4039dc188d9f2383ae93791be786360b9
8c2b5a612aad968f7dcb7bbfdb8a1791650dce8f
refs/heads/master
2020-03-28T11:19:50.763159
2019-02-22T07:40:56
2019-02-22T07:40:56
148,202,592
0
0
null
null
null
null
UTF-8
Python
false
false
856
py
#!/usr/bin/python3 """Start link class to table in database """ import sys from relationship_state import Base, State from relationship_city import City from sqlalchemy import (create_engine) from sqlalchemy.orm import sessionmaker, relationship, backref if __name__ == "__main__": engine = create_engine('mysql+mys...
cf9ba6f2882fafb0adabf0b721a0fceacb2e24c3
99b6faa1e31b9b18755e90070e24787632cd4776
/apps/postcrash/models.py
04e994a4e29da3b868fa2f4acc4dd2ea173ff84f
[]
no_license
taliasman/kitsune
d6743ef9e5b26951a87638a963e7429abf1d0327
f8085205eef143011adb4c52d1f183da06c1c58e
refs/heads/master
2021-05-28T19:50:40.670060
2013-03-11T13:55:15
2013-03-11T13:55:15
8,706,741
2
0
null
null
null
null
UTF-8
Python
false
false
498
py
from django.db import models from sumo.models import ModelBase from wiki.models import Document class Signature(ModelBase): signature = models.CharField(max_length=255, db_index=True, unique=True) document = models.ForeignKey(Document) def __unicode__(self): return u'<%s> %s' % (self.signature, ...
bb16decea6b3859bd8afa70e6ca5507d66be55e0
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2844/60891/272575.py
29c0553ab2f29823241003b7ebce0900d08eee6b
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
303
py
n_t = [int(i) for i in input().split()] n = n_t[0] t = n_t[1] a = [int(i) for i in input().split()] max_n = [] for i in range(n): remain = t count = 0 j = i while j < n and remain >= a[j]: remain -= a[j] count += 1 j += 1 max_n.append(count) print(max(max_n))
684061fd2083f4bf639a545dbc9e11253cac2a80
7101b0c62f0a060ace2ce03b2785145cd720180c
/e3d/scene_management/SceneClass.py
d148b5fcd1cad063b87b6edff78351bc144ab92d
[ "MIT" ]
permissive
jr-garcia/Engendro3D
5c5c1e931b390df415b8af2cba86521df82726a1
fcfd81abab7a7b883be74bc28e2f07fdcd039ef5
refs/heads/master
2023-06-09T04:06:52.395785
2023-05-23T12:19:08
2023-05-23T12:19:08
87,677,215
9
3
null
null
null
null
UTF-8
Python
false
false
15,043
py
from ..Base3DObjectClass import DefaultObjectParameters from ..update_management.pickleableMethods import updateLightTransformation, updateModelTransformation from ..update_management.renderingListCreation import getOrderedModelInstances from .LightClass import light, lightTypesEnum from .SkyboxClass import Skybox from...
ec400f0e82a29ba599263f5b9cbb120c712dff95
b4ce39af031a93354ade80d4206c26992159d7c7
/Tutorials/Binary Search/Binary Search Function and whileloop.py
02a4f2dcb91829a7b678557a1157cc2ec7b8f2a9
[]
no_license
Bibin22/pythonpgms
4e19c7c62bc9c892db3fd8298c806f9fdfb86832
e297d5a99db2f1c57e7fc94724af78138057439d
refs/heads/master
2023-06-15T00:51:14.074564
2021-07-12T17:44:47
2021-07-12T17:44:47
315,982,691
0
0
null
null
null
null
UTF-8
Python
false
false
425
py
def search(list, n): l = 0 u = len(list)-1 while l <= u: mid = (l + u) // 2 if list[mid] == n: return True else: if list[mid] < n: l = mid+1 else: u = mid-1 return False list = [1, 2, 4, 5, 6, 7, 8, 9,10] n = int...
90c29bd4121c5b2955daef0224a72300c97b7d67
6c82cb2e9bab9931c973433e2e384061e1405fc5
/app/models/customer.py
50630e0b62fb5881d174d7094ad36b8febeb566b
[]
no_license
M0r13n/bully-backend
7153b27552ff2ef25c9ffdf63c55600f3fddcd7b
e9443e10f39a819012d612cd0cd075fb8d75bee2
refs/heads/master
2023-03-09T13:38:16.198239
2021-02-21T12:39:01
2021-02-21T12:39:01
291,683,343
0
0
null
null
null
null
UTF-8
Python
false
false
975
py
from datetime import datetime from sqlalchemy.orm import relationship from app.extensions import db class Customer(db.Model): __tablename__ = "customer" id = db.Column(db.Integer, primary_key=True, autoincrement=True) first_name = db.Column(db.String(255), nullable=False, unique=False, index...
707bf976b0e8935fd7466d48163a9de42563f8b7
fcc63d65284593a9ad45e28dd8c49445aa4a8d30
/app/atuo/views.py
b5333f8a6549d3d6935c0375da3a0819034a38b0
[]
no_license
Hardworking-tester/API_SAMPLE
0b33a2ee52e4d316775a09c9c897275b26e027c9
867f0b289a01fea72081fd74fbf24b2edcfe1d2d
refs/heads/master
2021-01-23T12:32:36.585842
2017-06-23T02:31:39
2017-06-23T02:31:39
93,167,406
0
0
null
null
null
null
UTF-8
Python
false
false
8,929
py
# encoding:utf-8 # author:wwg from flask import * import time import urllib2,urllib from ..action import post,get from forms import FunctionModelsForm,CaseInformationForm,DataTestForm,ElementLocateForm,CaseInformationEditForm,FunctionModelsEditForm from app.models import FunctionModelsDb,CaseInformationDb,CaseDataDb,El...
e89963810a075e160abc281ff7078690ec605237
eba3e4a3935d6422d1ed85aaf69337f5ba15fc74
/sqlalchemy-migrate/test/versioning/test_template.py
72217ac895daee6f61801609b45e5c2471a8ca45
[]
no_license
arianepaola/tg2jython
2ae74250ca43b021323ef0951a9763712c2eb3d6
971b9c3eb8ca941d1797bb4b458f275bdca5a2cb
refs/heads/master
2021-01-21T12:07:48.815690
2009-03-27T02:38:11
2009-03-27T02:38:11
160,242
1
0
null
null
null
null
UTF-8
Python
false
false
629
py
from test import fixture from migrate.versioning.repository import * import os class TestPathed(fixture.Base): def test_templates(self): """We can find the path to all repository templates""" path = str(template) self.assert_(os.path.exists(path)) def test_repository(self): """W...
[ "ariane@venus.(none)" ]
ariane@venus.(none)
576e4dd9db1bd5772535f8baac36843c7d73ac12
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/_algorithms_challenges/codewar/_codewarsPython-master/[beta]Mysterious function.py
6b327c06bd9d4e69da3fa358319279e7d309c1f3
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
118
py
___ get_num(n r.. s..([2 __ c __ '8' ____ 1 ___ c __ s..(n) __ c __ ('0','6','8','9')]) print(get_num(300
a9ba472f2edf7d86bd6237c5e0a8b230fd58eeb7
704da68062145c0e1d016256bbe86f2286c6d149
/tests/test_models/test_user.py
e14bb600f7e57395687239482e89920eacc3d550
[]
no_license
TMcMac/AirBnB_clone_old
bf39a4cb80fc39390d2af03861938954c24dc742
5130e5b08ca9d301600ea963f126d4e124b305cd
refs/heads/master
2023-01-03T15:09:53.609497
2020-10-29T20:04:41
2020-10-29T20:04:41
274,945,103
0
0
null
null
null
null
UTF-8
Python
false
false
4,533
py
#!/usr/bin/python3 """Unit test for User class""" import unittest from models.base_model import BaseModel from models.user import User class TestBaseModel(unittest.TestCase): """Unit test for User class""" @classmethod def setUp(cls): print('SetupClass') @classmethod def tearDown(cls): ...
bb7191718af6f79dcc797802896409e5072e9902
cd118552db7fdc384e91a6a6c0addc2d70e7055f
/virtual/bin/flask
2a0e7f139cc22cfdf49023d5b60fcc24916a961f
[]
no_license
IreriVIkki/BlogIP
f23098a059a75cb3dba0936b1e850b1aa292bf25
b2dc00e1ec15958efa78a7098cbc2ffdcdebc26e
refs/heads/master
2020-03-28T17:33:24.508120
2018-09-17T07:03:24
2018-09-17T07:03:24
148,800,977
1
1
null
null
null
null
UTF-8
Python
false
false
243
#!/home/vikki/Documents/BlogIP/virtual/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())
a48f5d7a47297a3004b4066f232a6791173b237c
7caa438706a423dd9779a81f8345fcf1ec11e921
/NXT-Python/pyglet-1.2.4/tests/window/WINDOW_SET_ICON.py
bdeac31fc404c7ca4aa58750eff8f810ef925d2f
[ "BSD-3-Clause" ]
permissive
tamarinvs19/python-learning
5dd2582f5dc504e19a53e9176677adc5170778b0
1e514ad7ca8f3d2e2f785b11b0be4d57696dc1e9
refs/heads/master
2021-07-15T13:23:24.238594
2021-07-08T07:07:21
2021-07-08T07:07:21
120,604,826
3
0
null
null
null
null
UTF-8
Python
false
false
990
py
#!/usr/bin/env python '''Test that window icon can be set. Expected behaviour: One window will be opened. It will have an icon depicting a yellow "A". Close the window or press ESC to end the test. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: WINDOW_SET_MOUSE_CURSOR.py 717 2007-03-03 07:...
97743cb1f373612199548c0a7a0999c2a8642e77
c30e2b2e1b7876af01afc11e70b9bde66ebc6d6a
/conftest.py
9c646ac4834f556a9c633eecf8706d0f05ad49ad
[]
no_license
Jumas-Cola/stepik_selenium_test_project
7aad125be2623520c6bfe93b34438ffd12de4303
8bc920a25ff83883dc6dd653f3dec7ea25350f27
refs/heads/master
2020-06-11T10:49:45.344813
2019-06-28T20:04:08
2019-06-28T20:04:08
193,936,673
0
0
null
null
null
null
UTF-8
Python
false
false
588
py
import pytest from selenium import webdriver from selenium.webdriver.chrome.options import Options def pytest_addoption(parser): parser.addoption('--language', action='store', default='en-gb', help='Choose language of browser.\ For example: --language="es"') @pyte...
82f52210db3d2ed623c1aa965475dfac4f433892
a3cc7286d4a319cb76f3a44a593c4a18e5ddc104
/lib/surface/config/configurations/list.py
a9236025e57f42c19c3d5a61550bb922e874e63a
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
jordanistan/Google-Cloud-SDK
f2c6bb7abc2f33b9dfaec5de792aa1be91154099
42b9d7914c36a30d1e4b84ae2925df7edeca9962
refs/heads/master
2023-09-01T01:24:53.495537
2023-08-22T01:12:23
2023-08-22T01:12:23
127,072,491
0
1
NOASSERTION
2023-08-22T01:12:24
2018-03-28T02:31:19
Python
UTF-8
Python
false
false
2,060
py
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
a8ad2ad4050925e02f37ff0841869c81a863dd0c
14d8418ca5990217be67aee89fdaa310db03fbba
/models/collector_pagination_response.py
f8002358f1839b81d410471e69eb2cd75df52a25
[ "Apache-2.0" ]
permissive
sachanta/lm-sdk-python
3a16457bd2d5b880a0d238a88a9d1d5b8d9675f0
e476d415c7279457f79b5d032a73d950af2fe96b
refs/heads/master
2023-08-03T08:39:42.842790
2021-09-13T07:20:56
2021-09-13T07:20:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,155
py
# coding: utf-8 """ LogicMonitor REST API LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account...
4fd18aa08ea26bb71cfe0f3e50af1b3194892ff2
902dea88ec336851f2c325d44a0dd0eaf411fb87
/day1/strings/19.py
0e66b0d530e704999c4e711edd826992dae3e877
[]
no_license
shobhit-nigam/tsip_pydoge
34d8e03d0744c2eff7615ae94bd6998739ce2bfd
bff5b24e1e93b5b41dfcb913cee280d1ee53bbf5
refs/heads/main
2023-07-19T05:21:35.459518
2021-09-06T12:59:22
2021-09-06T12:59:22
399,728,155
0
0
null
null
null
null
UTF-8
Python
false
false
144
py
# double & single quotes # vara = "I'am Manish" varb = 'I\'am Manish' print("vara =", vara) print("varb =", varb) # error #varc = 'pushpa"
7eabf17dbaccbfaf4b782657965ea1bc1aaebdf7
c317f99691f549b393562db200b1e9504ce11f95
/algorithms_learn/what_can_be_computed/src/convertSatTo3Sat.py
4ae664cf883f08c293e4acd4fed2ec99d750493a
[ "CC-BY-4.0" ]
permissive
RRisto/learning
5349f9d3466150dbec0f4b287c13333b02845b11
618648f63a09bf946a50e896de8aed0f68b5144a
refs/heads/master
2023-09-01T00:47:23.664697
2023-08-30T17:56:48
2023-08-30T17:56:48
102,286,332
15
24
null
2023-07-06T21:22:48
2017-09-03T18:42:58
Jupyter Notebook
UTF-8
Python
false
false
6,474
py
# SISO program convertSatTo3Sat.py # Convert an instance of SAT into an # equivalent instance of 3-SAT. # inString: an instance of SAT, formatted as described in the textbook # and sat.py. # returns: an instance of 3SAT in the same string format. # Example: # >>> convertSatTo3Sat('(x1 OR x2 OR NOT x3 OR NOT x4)') #...
a6e0a619fb8ccad6c68753739f72ef7217d9a4a8
95689182691599b2e74ca33b36d2828a01ec5889
/proyectos_de_ley/pdl/migrations/0002_proyecto_legislatura.py
f73ae0753f3b06383b38193a5fcf041fd0a05384
[ "MIT" ]
permissive
proyectosdeley/proyectos_de_ley
2392c6f3fdefc88d355f37e615ddb5ddc70c5321
aed3f09dd2e41711bdcb27aec66a1a0d7896bb35
refs/heads/master
2021-07-14T12:33:33.793325
2020-07-26T19:44:53
2020-07-26T19:44:53
23,754,905
13
10
MIT
2020-07-26T19:44:54
2014-09-07T07:32:53
Python
UTF-8
Python
false
false
492
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-09-02 20:49 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pdl', '0001_initial'), ] operations = [ migrations.AddField( mod...
941083e324bb5e8f93f3c8d1192cd5dacd22c422
75566ef3423c72fe9e73075dfe29df172b65a28c
/src/scraper/database.py
f2d4c88d42deffe9bfa9459831dc37dae9483bca
[]
no_license
bicsi/cpaggregator
7020663305eeff8690e92da64fc796926b12fe31
b6459fe33c19dc2020b29470e457f0666b0ff212
refs/heads/master
2022-12-12T10:24:38.756844
2020-11-11T13:53:30
2020-11-11T13:53:30
153,731,264
2
1
null
2022-12-08T01:15:28
2018-10-19T05:33:06
CSS
UTF-8
Python
false
false
2,178
py
import os from pprint import pprint from pymongo import MongoClient, ReplaceOne from pymongo.errors import BulkWriteError from core.logging import log def __insert_many_silent(coll, iterable, unique_fields): requests = [] for elem in iterable: find_dict = {field: elem[field] for field in unique_fiel...
2f2f37808d18c375de2161f33f361a7206bf124d
29d09c634ffdd8cab13631d62bc6e3ad00df49bf
/Algorithm/swexpert/1249_보급로건설.py
0f9f48542b53f0796bb44539d57d7850a9539998
[]
no_license
kim-taewoo/TIL_PUBLIC
f1d32c3b4f46344c1c99f02e95cc6d2a888a0374
ae86b542f8b1805b5dd103576d6538e3b1f5b9f4
refs/heads/master
2021-09-12T04:22:52.219301
2021-08-28T16:14:11
2021-08-28T16:14:11
237,408,159
2
0
null
null
null
null
UTF-8
Python
false
false
672
py
from collections import deque dr = (-1,0,1,0) dc = (0,1,0,-1) T = int(input()) for t in range(1, T+1): n = int(input()) board = [list(map(int, list(input()))) for _ in range(n)] chk = [[21470000 for _ in range(n)] for __ in range(n)] chk[0][0] = 0 q = deque((0,0)) while q: r, c = q.pople...
51b36a04caec338e1885e9ea1791c5c6c0d3e2af
d8d1a9b2bec5b2679129c246cf58acc836e4355b
/pytest_resource_path/absolute_path_factory.py
117b373b80071080391d19d48136aa6e5f7f39ef
[ "MIT" ]
permissive
yukihiko-shinoda/pytest-resource-path
0ac0d612887f453b793ec114b65eb9613817b5cc
bc56c4b5f2c8f3138baeac7f145717f6a70af7b6
refs/heads/master
2023-04-15T21:05:18.643053
2021-05-01T04:27:12
2021-05-01T04:27:12
261,375,368
10
0
MIT
2021-05-01T02:45:39
2020-05-05T06:08:49
Python
UTF-8
Python
false
false
1,451
py
"""Implements creating process for absolute path to argument of constructor.""" from pathlib import Path from types import FunctionType, MethodType from typing import Union from pytest_resource_path.exceptions import LogicError from pytest_resource_path.path_factory import PathFactory __all__ = ["AbsolutePathFactory"...
b6250476b579a0d0ee5585b0f82e06ea882db68d
de64154c4a968ab8c04390938edc300f2b52f129
/tests/lldb/runtest.py
71ee019c66d0c9c37232d6e655065a37bdde5e49
[ "Apache-2.0" ]
permissive
curliph/NyuziProcessor
7364a83a52b3f1d461c908a9ff88ee222be08c25
2d7cc748a8388a5be4c28d3cb34786bc9f0b801a
refs/heads/master
2020-04-10T15:16:51.874141
2018-12-09T22:40:55
2018-12-09T22:40:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,708
py
#!/usr/bin/env python3 # # Copyright 2011-2015 Jeff Bush # # 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 l...
1f40a950463b7987030dd8e8eb8b668506c8e112
920f0fbb7064f2017ff62da372eaf79ddcc9035b
/lc_ladder/Basic_Algo/data-struture/Kth_Largest_Element.py
263f9c80c8d59cb0954144b77ec4601158323480
[]
no_license
JenZhen/LC
b29a1c45d8c905680c7b4ad0017516b3dca80cc4
85219de95e41551fce5af816b66643495fe51e01
refs/heads/master
2021-06-03T10:03:02.901376
2020-08-05T19:44:48
2020-08-05T19:44:48
104,683,578
3
1
null
2020-08-05T19:44:50
2017-09-24T23:30:35
Python
UTF-8
Python
false
false
3,106
py
#!/usr/bin/python # http://www.lintcode.com/en/problem/kth-largest-element/ # Example # In array [9,3,2,4,8], the 3rd largest element is 4. # In array [1,2,3,4,5], the 1st largest element is 5, 2nd largest element is 4, 3rd largest element is 3 and etc. """ Algo: QuickSelect D.S.: Heap, Array Solution1: Heap Find la...
b4ca34cc14fe2f16d01b462a5870c0073ce4817b
3b2940c38412e5216527e35093396470060cca2f
/top/api/rest/TmcGroupAddRequest.py
0cfb70b6b6c82a626717aa0186205a08ca854def
[]
no_license
akingthink/goods
842eb09daddc2611868b01ebd6e330e5dd7d50be
ffdb5868a8df5c2935fc6142edcdf4c661c84dca
refs/heads/master
2021-01-10T14:22:54.061570
2016-03-04T09:48:24
2016-03-04T09:48:24
45,093,302
0
0
null
null
null
null
UTF-8
Python
false
false
326
py
''' Created by auto_sdk on 2015-01-20 12:44:32 ''' from top.api.base import RestApi class TmcGroupAddRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.group_name = None self.nicks = None def getapiname(self): return 'taobao.tmc.group....
b4e02b0acdf60bf8bfb4af0cb99e11749ca72fa5
1384435f0e0cf706db82d0672d5fe9e3bc0cf5a8
/agilo/scrum/burndown/model.py
00071987a48bf3f3696fb7530402572861bc68c7
[]
no_license
djangsters/agilo
1e85d776ab4ec2fa67a6366e72206bbad2930226
1059b76554363004887b2a60953957f413b80bb0
refs/heads/master
2016-09-05T12:16:51.476308
2013-12-18T21:19:09
2013-12-18T21:19:09
15,294,469
0
0
null
null
null
null
UTF-8
Python
false
false
16,677
py
# -*- encoding: utf-8 -*- # Copyright 2010 Agile42 GmbH, Berlin (Germany) # Copyright 2011 Agilo Software GmbH 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 # ...
023a448e65f13fa1aa110f94679a9a53c6e6c840
3506d8c9a8391be52d24cff54f27537a92a7228c
/HackerRank/Strings/Palindrome_Index.py
e01f253f9a8217c583a0c47373b035d3b04a1d7b
[]
no_license
saumya-singh/CodeLab
04ef2c61c516c417c03c6a510e8b5e6e498fbe5d
9371f0d6bd45e5592dae25b50f0d04ba45ae67cf
refs/heads/master
2021-09-12T05:01:17.491312
2018-04-14T19:48:40
2018-04-14T19:48:40
81,596,628
1
0
null
null
null
null
UTF-8
Python
false
false
742
py
#!/bin/python3 #https://www.hackerrank.com/challenges/palindrome-index/problem import sys def palindromeIndex(s): length = len(s) counter = length//2 i = 0 j = length -1 flag = 0 while i < counter: if s[i] == s[j]: i += 1 j -= 1 else: if s[i...