blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
f3fe4b98113e16754c4b0c7b2b93cfb357fd82b7
a81c1492783e7cafcaf7da5f0402d2d283b7ce37
/google/ads/google_ads/v6/proto/enums/user_list_access_status_pb2.py
999fbf182725e945331090f1e1df5a2e072aafa2
[ "Apache-2.0" ]
permissive
VincentFritzsche/google-ads-python
6650cf426b34392d1f58fb912cb3fc25b848e766
969eff5b6c3cec59d21191fa178cffb6270074c3
refs/heads/master
2023-03-19T17:23:26.959021
2021-03-18T18:18:38
2021-03-18T18:18:38
null
0
0
null
null
null
null
UTF-8
Python
false
true
4,246
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads/v6/enums/user_list_access_status.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import...
[ "noreply@github.com" ]
VincentFritzsche.noreply@github.com
41ee974737daa2d51a9dec895eb8e2fe85cf0b39
f139a99d51cfa01a7892f0ac5bbb022c0cee0664
/Pythonlogy/draft/Recuperater/__init__.py
3cc0b1b78f202f197d16e70dd3825fbb0d90509f
[ "MIT" ]
permissive
Ledoux/ShareYourSystem
90bb2e6be3088b458348afa37ace68c93c4b6a7a
3a2ffabf46f1f68b2c4fd80fa6edb07ae85fa3b2
refs/heads/master
2021-01-25T12:14:34.118295
2017-01-12T14:44:31
2017-01-12T14:44:31
29,198,670
0
1
null
null
null
null
UTF-8
Python
false
false
1,025
py
# -*- coding: utf-8 -*- """ <DefineSource> @Date : Fri Nov 14 13:20:38 2014 \n @Author : Erwan Ledoux \n\n </DefineSource> Recuperater instances """ #<DefineAugmentation> import ShareYourSystem as SYS BaseModuleStr="ShareYourSystem.Databasers.Joiner" DecorationModuleStr="ShareYourSystem.Classors.Classer" SYS.setS...
[ "erwan.ledoux@ens.fr" ]
erwan.ledoux@ens.fr
c3ebaf1819edb2e9e8bacf67b5098099a6b1c5f4
c29de7ce2d91f572aeb4da56801de7a1dc034054
/st2/experiments/cifar10/exp060.py
58108ca33e5a653faf5bc12bbfc7ea3ba33138f3
[]
no_license
kzky/works
18b8d754bfc2b1da22022926d882dfe92ea785e6
b8708c305e52f924ea5a7071e0dfe5f2feb7a0a3
refs/heads/master
2021-01-10T08:04:44.831232
2018-03-01T15:09:47
2018-03-01T15:09:47
54,316,791
0
0
null
null
null
null
UTF-8
Python
false
false
8,074
py
import nnabla as nn import nnabla.functions as F import nnabla.parametric_functions as PF import nnabla.solvers as S import nnabla from nnabla.contrib.context import extension_context import numpy as np import os import time import argparse from st2.cifar10.cnn_model_060 import cnn_model_003, ce_loss, sr_loss, er_loss,...
[ "rkzfilter@gmail.com" ]
rkzfilter@gmail.com
ae9c7358a1cb53d39aa35532814d5183a684b880
43548c49219e0528edcdf3d5c558b238f1dfabb1
/examples/no_u_turn_sampler/logistic_regression.py
ae00827bef91f27a7a42938d1d7df47c8b334993
[ "Apache-2.0" ]
permissive
kthakore/edward2
98090794701a9dff3ee775a211aa4ed265741698
6fd50d4b9351616c3cd8b5e9224d118ba48c935f
refs/heads/master
2020-12-15T17:34:40.206460
2020-01-20T21:01:56
2020-01-20T21:01:56
235,197,181
1
0
Apache-2.0
2020-01-20T21:01:57
2020-01-20T20:53:50
null
UTF-8
Python
false
false
6,124
py
# coding=utf-8 # Copyright 2019 The Edward2 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 o...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
ec1bd6027c0241f8f02b0b02d9f2632cfabde083
0d0cf0165ca108e8d94056c2bae5ad07fe9f9377
/5_Statistical_Thinking_in_Python_Part1/2_Quantitative_exploratory_data_analysis/computingTheVariance.py
dd1df593305d3c9c00b7d1e0f6cbf2595246a9ae
[]
no_license
MACHEIKH/Datacamp_Machine_Learning_For_Everyone
550ec4038ebdb69993e16fe22d5136f00101b692
9fe8947f490da221430e6dccce6e2165a42470f3
refs/heads/main
2023-01-22T06:26:15.996504
2020-11-24T11:21:53
2020-11-24T11:21:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,591
py
# Computing the variance # It is important to have some understanding of what commonly-used functions are doing under the hood. Though you may already know how to compute variances, this is a beginner course that does not assume so. In this exercise, we will explicitly compute the variance of the petal length of Iris v...
[ "noreply@github.com" ]
MACHEIKH.noreply@github.com
b1adb029d60e3f9ebb8a9b84b0e29adfe8a077f5
a57e66be33512a7e2e99adb6f597151b56c4c373
/pstestcreatetable.py
ff01e69d43f8dc8de9e092011403179b059500b7
[]
no_license
ravijaya/sep28
17025ea0997a371f54a6374f90d4bf56e0206840
8907f4b03ac2c4b2f1806d0d7cf3fd6aa680680c
refs/heads/master
2022-12-18T23:58:12.989144
2020-09-30T12:13:15
2020-09-30T12:13:15
299,901,698
0
0
null
null
null
null
UTF-8
Python
false
false
259
py
import sqlite3 conn = sqlite3.connect('sep30.sqlite') cur = conn.cursor() query = """ create table tasks ( id integer primary key autoincrement, title text, description text, done boolean ); """ cur.execute(query) cur.close() conn.close()
[ "ravi.goglobium@gmail.com" ]
ravi.goglobium@gmail.com
815c641f587ca9964911fc1cacc42bfd8e07ae45
904b4b7cd6b1709e9aded92737766a3b5a978838
/Tableau_etude_complexite.py
1cda1b58b0e18adb915b4ff7e5901310bb334b4f
[]
no_license
NicolasLagaillardie/Python
3ec7aa6eb21ffa86fad33060bb53e42cb7957dc9
a30037d688d8f11a195d7fa611347528c313d71b
refs/heads/master
2020-03-30T13:48:27.038592
2018-10-02T16:54:42
2018-10-02T16:54:42
151,288,608
0
0
null
null
null
null
UTF-8
Python
false
false
219
py
import os from random import randrange m=input("m=") m=int(m) t=[] for k in range(0,m+1): t.extend([randrange(2)]) for k in range(0,m): i=0 while t[i]==1: t[i]=0 i=i+1 t[i]=1 print (t) os.system("pause")
[ "lagaillardie.nicolas@live.fr" ]
lagaillardie.nicolas@live.fr
040edefae134309d76032a7635110cd20589f57d
a0556d5e8368bf171b9019aba03e65b06e8c12e4
/secao6_estrutura_repeticao/exercicios/questao17.py
9b61ab8732e8929d6469d5348e2804700a83cfd4
[]
no_license
RianMarlon/Python-Geek-University
f1c9db588f23ce8e6699d1352ebfb3428e0ab1ec
3be7ec5c35bf74b1b2152de63db95bee33ee1719
refs/heads/master
2020-06-25T04:41:52.911513
2020-02-01T16:18:35
2020-02-01T16:18:35
199,204,603
23
8
null
null
null
null
UTF-8
Python
false
false
460
py
""" 17) Faça um programa que leia um número inteiro positivo n e calcule a soma dos n primeiros números naturais. """ num = int(input("Digite um número inteiro e positivo: ")) soma = 00 print() if num > 0: print(f"A soma dos {num} primeiros números naturais:") for i in range(1, num*num): if i <= num:...
[ "rianmarlon20@yahoo.com" ]
rianmarlon20@yahoo.com
a85a20f18c6ad1fb22df36ca7b634ad6c6f354b4
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02982/s493478699.py
d2034f5a95666b04a61b7af163ee227281eb250c
[]
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
283
py
n,d=map(int,input().split()) x=[list(map(int, input().split())) for i in range(n)] count=0 ans=0 for i in range(n): for z in range(i+1,n): for c in range(d): ans+=(x[i][c]-x[z][c])**2 if (ans**0.5)%1==0: count+=1 ans=0 print(count)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
81abfa4ec5bddb2d144cb691559754862326b2cd
3c52eda991b4a37e2b807dd1e05f07139637c758
/examples/rps_monitor_server.py
ddc9ee442cb4b9cdf3004f968547dbfdc2feddd8
[ "Apache-2.0" ]
permissive
pgiri/pycos
ebea05b045f15f505eff5cf175798c0cf2b4a1db
6594c311a02490ae0701fa741b508c335f305816
refs/heads/master
2022-12-25T21:53:15.091319
2022-12-18T17:27:05
2022-12-18T17:27:05
91,977,091
52
9
NOASSERTION
2020-02-19T01:47:09
2017-05-21T17:58:23
Python
UTF-8
Python
false
false
2,138
py
#!/usr/bin/env python # server program for client sending requests to execute tasks # run this program and then client (rps_monitor_client.py) either on same node or different node # on local network. Server and client can also be run on two different networks but client must # call 'scheduler.peer' method appropriat...
[ "pgiri@yahoo.com" ]
pgiri@yahoo.com
45ecb34f2d85ed89fc22ea9f245b84e16199c4c1
d7016f69993570a1c55974582cda899ff70907ec
/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/aio/operations/_return_operations_operations.py
8b1ad1c5f397f0b447c381837362c7a1d306e128
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
kurtzeborn/azure-sdk-for-python
51ca636ad26ca51bc0c9e6865332781787e6f882
b23e71b289c71f179b9cf9b8c75b1922833a542a
refs/heads/main
2023-03-21T14:19:50.299852
2023-02-15T13:30:47
2023-02-15T13:30:47
157,927,277
0
0
MIT
2022-07-19T08:05:23
2018-11-16T22:15:30
Python
UTF-8
Python
false
false
7,747
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...
[ "noreply@github.com" ]
kurtzeborn.noreply@github.com
b1297db8ecf7223c22c83d68d63215e67b47927d
861db97defcdadae5f10263b9a6d41e7d0b85131
/ex113.py
f892dbfbe9756f9762fbaaa7505a6ac2a9810e1e
[]
no_license
gguilherme42/CursoEmVideo_Python
0483f092fe6563bc97a260ca07c2d4f1f882ac61
54eec56e98ae71dbb2ba02eb6904cd236a42be70
refs/heads/master
2021-01-06T15:15:25.194038
2020-04-27T22:19:42
2020-04-27T22:19:42
241,374,850
4
0
null
null
null
null
UTF-8
Python
false
false
1,287
py
''' Reescreva a função leiaInt() do ex104 incluindo, agora, a possibilidade de digitação de um número do tipo inválido. Aproveite e crie também um função leaiFloat() com a mesma funcionalidade. ''' def leiaInt (f): """ -> Função que lê número inteiros digitados pela teclado. Caso o valor ...
[ "anoobs@tutamail.com" ]
anoobs@tutamail.com
d8cea41e44478ee27ed96677f0fdfb657c59ed08
5bc369d49b16bc46e23b76621144223dc4226997
/model/allergyintolerance.py
f75c1729904c62be550f61e454a4df99f0da191b
[ "MIT" ]
permissive
beda-software/fhir-py-experements
90d8e802f92f9e691d47d6ea4b33fda47957383a
363cfb894fa6f971b9be19340cae1b0a3a4377d8
refs/heads/master
2022-12-17T05:19:59.294901
2020-02-26T03:54:13
2020-02-26T03:54:13
241,292,789
0
0
MIT
2022-12-08T03:38:55
2020-02-18T06:53:02
Python
UTF-8
Python
false
false
2,746
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.1-9346c8cc45 (http://hl7.org/fhir/StructureDefinition/AllergyIntolerance) on 2020-02-03. # 2020, SMART Health IT. import sys from dataclasses import dataclass, field from typing import ClassVar, Optional, List from .age import Age from .annota...
[ "ir4y.ix@gmail.com" ]
ir4y.ix@gmail.com
283a7164354d3857cfed4e055f135c03dea3c43b
dcab6930a95a3c5530e9b9bfba0e495667c98599
/Data_Analysis/Data_camp_lecture/Abtest/parsingdates_ex.py
5364437dbc1ce4f9ea57d33dbb6547d1c89b624b
[]
no_license
wxlovolxw/GIWON-S-STUDY
7db1fb30dfc16c8bc60592d0696434f1482ecdde
6a622b5d372741b4f9d215f649235353f3e645cd
refs/heads/master
2023-06-23T06:05:03.058692
2021-07-26T05:37:35
2021-07-26T05:37:35
283,812,802
0
0
null
null
null
null
UTF-8
Python
false
false
885
py
import pandas as pd date_data_one = ['Saturday January 27, 2017', 'Saturday December 2, 2017'] date_data_two = ['2017-01-01', '2016-05-03'] date_data_three = ['08/17/1978', '01/07/1976'] date_date_four = ['2016 March 01 01:56', '2016 January 4 02:16'] # Provide the correct format for the date # Provide the correct ...
[ "62921934+wxlovolxw@users.noreply.github.com" ]
62921934+wxlovolxw@users.noreply.github.com
64c62c53556f38d9783de543225b11be87304daf
8d6400c3fef80df21b0182087f9665a9106231dc
/pluralsight/core_python_getting_started/modularity/words.py
4855865ba8defe365ea9cf07c9e21d4a4e12cfcc
[]
no_license
sairamprogramming/learn_python
99606561c648311ca609c2bc79cbdc4af722c3da
597209ead2eb4c203141cb7d87d3106910dbb84c
refs/heads/master
2021-03-25T12:10:52.485934
2020-05-13T02:46:12
2020-05-13T02:46:12
247,616,771
0
0
null
null
null
null
UTF-8
Python
false
false
1,204
py
# Program to read a txt file from internet and put the words in string format # into a list. # Getting the url from the command line. """Retrive and print words from a URL. Usage: python3 words.py <url> """ import sys def fetch_words(url): """Fetch a list of words from a URL. Args: url: The...
[ "sairamprogramming@gmail.com" ]
sairamprogramming@gmail.com
a66a0b315943c840283e04529378cea514e9682c
47b49ee4d14254cea00a839123fe5d68f0938959
/notifierlib/_version.py
2eb810c56338a72920c8aa218730ae351b94d878
[ "MIT" ]
permissive
wefner/notifierlib
35d8b9c754803821462e647239bfd0be564c0a40
0eeec7aef278f66262b1dceab296b5f115e372c3
refs/heads/master
2021-06-30T22:27:06.147554
2017-09-19T13:14:37
2017-09-19T13:14:37
104,245,027
0
0
null
2017-09-20T17:12:26
2017-09-20T17:12:26
null
UTF-8
Python
false
false
538
py
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ Defines __version__ Set the package version here """ import os VERSION_FILE_PATH = os.path.abspath( os.path.join( os.path.dirname(__file__), '..', '.VERSION' ) ) LOCAL_VERSION_FILE_PATH = os.path.abspath( os.path.join( os.p...
[ "costas.tyf@gmail.com" ]
costas.tyf@gmail.com
067908e98b7d3a0bba8ab31d129d620ad5550350
f19d8ca91cdbbd329278f4b2f149112dd03448ba
/scvi/dataset/synthetic.py
554231d74643f9c4b2f0a6ae711e8c7991c53386
[ "MIT" ]
permissive
chenlingantelope/HarmonizationSCANVI
ff402ead106b592d8606b1fbed49dacb887faf81
1b19cf4054e9aa6d0f4fd60dba9727a68e440f79
refs/heads/master
2022-07-23T23:02:31.663891
2020-09-08T04:28:41
2020-09-08T04:28:41
162,613,598
14
2
MIT
2022-07-15T18:41:25
2018-12-20T17:56:36
Jupyter Notebook
UTF-8
Python
false
false
2,055
py
import pickle import numpy as np from . import GeneExpressionDataset class SyntheticDataset(GeneExpressionDataset): def __init__(self, batch_size=200, nb_genes=100, n_batches=2, n_labels=3): # Generating samples according to a ZINB process data = np.random.negative_binomial(5, 0.3, size=(n_batch...
[ "chenlingantelope@gmail.com" ]
chenlingantelope@gmail.com
016608c258249ecf0cb6bc1f34ff5c0795d6abb1
11aac6edab131293027add959b697127bf3042a4
/maxProfit2.py
f993da77a6221649350deb825a62e5b2d44dba8b
[]
no_license
jdanray/leetcode
a76b3436002b31865967b757b73c85992636383b
fd736af3e79899b86dac89d4d925d5bd985944ad
refs/heads/master
2023-08-15T01:20:05.110565
2023-08-14T00:25:58
2023-08-14T00:25:58
148,686,493
0
0
null
null
null
null
UTF-8
Python
false
false
282
py
# https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/ class Solution(object): def maxProfit(self, prices): buy = -prices[0] sell = 0 for i in range(1, len(prices)): buy, sell = max(buy, sell - prices[i]), max(sell, buy + prices[i]) return max(buy, sell)
[ "jdanray@users.noreply.github.com" ]
jdanray@users.noreply.github.com
946c2e422fbb4cd3397fa2481e4e45449b1ada48
b1541395b9089a274b22aeb6dffd70563ed37f8f
/reagent/gym/tests/test_gym.py
1f7c315be6edc9a4c43708d0f64b345209fcd381
[ "BSD-3-Clause" ]
permissive
japsonzbz/ReAgent
efdc5b874092dbaa79fda097c62dc3d4ac605728
7071b816b6e9a71228ded88f8a087b5060aa8ec0
refs/heads/master
2022-11-11T20:33:48.463319
2020-06-30T04:12:53
2020-06-30T04:14:06
276,158,855
1
0
BSD-3-Clause
2020-06-30T16:54:41
2020-06-30T16:54:40
null
UTF-8
Python
false
false
6,078
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import logging import os import pprint import unittest from typing import Optional import numpy as np import torch from parameterized import parameterized from reagent.gym.agents.agent import Agent from reagent.gym.agents.po...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
5c27e9c0fdec577080d390904ea31123b10189a7
3c1639bccf3fc0abc9c82c00ab92ac3f25cf105e
/Python3网络爬虫/section4-解析库使用/02-BeautifulSoups的使用/03-CSS选择器/02-嵌套选择.py
c09dad0deaa444ba78ad1a8554f93b202b3caadb
[ "Apache-2.0" ]
permissive
LiuJunb/PythonStudy
783318a64496c2db41442ad66e0cc9253b392734
3386b9e3ccb398bfcfcd1a3402182811f9bb37ca
refs/heads/master
2022-12-11T05:22:53.725166
2018-11-15T01:34:37
2018-11-15T01:34:37
143,956,065
1
0
Apache-2.0
2022-11-22T01:58:23
2018-08-08T03:26:26
JavaScript
UTF-8
Python
false
false
623
py
html=''' <div class="panel"> <div class="panel-heading"> <h4>Hello</h4> </div> <div class="panel-body"> <ul class="list" id="list-1"> <li class="element">Foo</li> <li class="element">Bar</li> <li class="element">Jay</li> </ul> <ul class="li...
[ "liujun@520it.com" ]
liujun@520it.com
d654eba8795bacc38efe49c5efd47a6e7c89f672
cf8be11a3db71664caf48a5d0d26ce9ee145df16
/genetrack/visual/builder.py
72e67a16db4dbe3f1ff8195b09a08250ec249456
[]
no_license
seandavi/genetrack-central
6318bc57a876ffcf9b8a0046a93af1e40eea09f9
48da9e998f0caf01c5be731e926f4b0481f658f0
refs/heads/master
2016-09-10T04:37:15.442356
2010-02-05T00:58:18
2010-02-05T00:58:18
1,042,267
2
1
null
null
null
null
UTF-8
Python
false
false
5,300
py
""" Builds a multiplot from a track specification file """ import parsing, trackdef from trackutil import * import random from genetrack import logger class LiveData(object): "A data object that returns values when asked for it" pass def test_xy(seed): "Generate real-looking but randomize...
[ "istvan.albert@gmail.com" ]
istvan.albert@gmail.com
3218a1529fd7e31cf6f2d8a041e3bad6d33bf94b
f3bd271bf00325881fb5b2533b9ef7f7448a75ec
/classes/_each156.py
6218e127c400d90eedec2b5b89b441b34f617275
[]
no_license
obaica/xcp2k
7f99fc9d494859e16b9b0ea8e217b0493f4b2f59
6e15c2c95658f545102595dc1783f5e03a9e6916
refs/heads/master
2020-07-15T17:27:43.378835
2019-02-11T16:32:24
2019-02-11T16:32:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,016
py
from xcp2k.inputsection import InputSection class _each156(InputSection): def __init__(self): InputSection.__init__(self) self.Just_energy = None self.Powell_opt = None self.Qs_scf = None self.Xas_scf = None self.Md = None self.Metadynamics = None se...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
87e748f42ed1cf179fd72af41b2109eaff27193b
2711b00d21683c746924ea30cf5d1dedb69c4861
/codes/31-func_arguments.py
62a21f2110c2b544a082c5baf72f0f5e740199a5
[ "MIT" ]
permissive
kaixiang1992/python-learning
9fb4a3f798288400336a1ef764e0e625222c7aee
c74aa4bec0c72e26cf18f138e6faf110ed64d8c0
refs/heads/master
2022-12-16T12:47:13.927764
2019-10-05T13:12:46
2019-10-05T13:12:46
205,184,943
0
0
MIT
2022-12-08T06:40:47
2019-08-29T14:40:56
Python
UTF-8
Python
false
false
2,343
py
''' @description 2019/09/15 15:53 ''' # 形参:定义函数时指定的参数。 # 例:a,b def add(a,b): result = a + b print(result) # 实参:就是在调用函数的时候传递进去的参数。 # 1.位置参数:按照形参中给定的参数的顺序。 add(1,2) # 3 # 2.关键字参数:在传递参数的时候,可以按照形参的名字给定参数。 add(a=2, b=2) # 4 add(b=3, a=2) # 5 # 3.混合参数:在传递参数的时候,即包括位置参数也包括关键字参数 # 混合参数的注意事项:位置参数必须在关键字参数的前面 add(1,...
[ "49449720+kaixiang1992@users.noreply.github.com" ]
49449720+kaixiang1992@users.noreply.github.com
ed6d5d3e4e5382a65d06f12d5c44cfeac2efc7cc
40b1db3dbd327b0979749812a7388958afd0892c
/Django_practice/DjangoAdvance01/middleware/mymiddleware.py
3934d4df270d978752a53994ddb559bece5d675f
[]
no_license
lucool/project
91da0255a739b8464c415347c30d5aea69588dee
f2136f7435e817e057403d968b8eb70ddad889be
refs/heads/master
2023-03-09T01:27:03.633168
2021-02-27T10:37:33
2021-02-27T10:37:33
340,904,376
0
0
null
null
null
null
UTF-8
Python
false
false
2,502
py
import random,redis from django.http import HttpResponse from django.utils.deprecation import MiddlewareMixin class FirstMiddleware(MiddlewareMixin): # 自定义中间件类 def process_request(self,request): # 每次接收到请求时,自动执行该方法 print("process_request(FirstMiddleware)......") number = random.ra...
[ "lu2015594025@163.com" ]
lu2015594025@163.com
08fb2b9cbc8f6a782866b381ce99ee85ea270053
71515a5fe6adb2c970b09d9546fe96c5431c9152
/HUNTER/SET1/repeat.py
e0ecfbb493be9d90b0c24bf17327215dfdb6527c
[]
no_license
PrashantRaghav8920/GUVI_PROGRAM
9ff6e2cfcbf25cc80a6c65383fce1beb4a282c8d
a721e61c58b41879d0fa74ae026a3726586b9550
refs/heads/master
2022-02-04T18:30:44.563536
2019-02-22T19:03:09
2019-02-22T19:03:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
211
py
n1=int(input()) l=list(map(int,input().split())) p1=[] f=0 for i in l: if(i not in p1): p1.append(i) else: f=1 print(i) break if(f==0): print("'unique'")
[ "noreply@github.com" ]
PrashantRaghav8920.noreply@github.com
ad52f7227e2437e880cfa8b04481e286f4179a12
d1742451b25705fc128acc245524659628ab3e7d
/Codeforces with Python/1061B. Views Matter.py
6b50dea540b184ec3383da26cd48468aa68d048c
[]
no_license
Shovon588/Programming
ebab793a3c97aedddfcad5ea06e7e22f5c54a86e
e4922c9138998358eed09a1be7598f9b060c685f
refs/heads/master
2022-12-23T18:29:10.141117
2020-10-04T17:29:32
2020-10-04T17:29:32
256,915,133
1
0
null
null
null
null
UTF-8
Python
false
false
373
py
n,m=map(int,input().split()) a=list(map(int,input().split())) a.sort() temp=1;top=0;side=0;total=sum(a) for i in range(n): if i==0: top+=1;side+=1;total-=1 elif a[i]==temp: top+=1;total-=1 elif a[i]>temp: side+=1;top+=1 temp+=1;total-=1 if side<a[n-1]: total-=(a[n-1]...
[ "mainulislam588@gmail.com" ]
mainulislam588@gmail.com
ca2ca4def03a5dff6e60edff8f4da910098265e1
25f16d9e3416e186f677e425d7c3c19fb1b6b76a
/qt5_exercises/custom-widgets/powerbar_1.py
b7e88f39ccd4c16baf745ac4fdeb69efa27e2034
[]
no_license
amisaka/pyqt5Samples
662b33255f9fd3522a8600e23b1f5e742eef769e
40f295232a726b4d67cc3124dcf6ac46a2efe9c8
refs/heads/master
2023-08-27T18:11:58.162821
2021-11-03T14:06:10
2021-11-03T14:06:10
419,336,692
1
0
null
null
null
null
UTF-8
Python
false
false
1,056
py
import sys from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtCore import Qt class _Bar(QtWidgets.QWidget): # tag::paintEvent[] def paintEvent(self, e): painter = QtGui.QPainter(self) brush = QtGui.QBrush() brush.setColor(QtGui.QColor("black")) brush.setStyl...
[ "amisaka@gmail.com" ]
amisaka@gmail.com
c5a96ca86c9f095f9a3cdcf6120b60cb804e8faa
c5378ac854725eff8e3fcda1f0ce4a36edf660ce
/kindred/datageneration.py
d12d2fe8f7137aa27524ace2b5edefb691038990
[ "MIT" ]
permissive
jakelever/kindred
e9f49a7f272ea3a9f9fdf5f141eaa9b97e4c7b0f
b6eac60fa40086b4c44e98e0baa34b760310d284
refs/heads/master
2023-03-16T21:09:34.777474
2023-03-12T00:12:05
2023-03-12T00:12:05
88,295,711
158
39
MIT
2022-09-28T12:13:39
2017-04-14T19:14:44
Python
UTF-8
Python
false
false
5,671
py
import kindred import hashlib # random module is not consistent across platforms # Based on idea from: # https://stackoverflow.com/questions/9023660/how-to-generate-a-repeatable-random-number-sequence hashVal = b'seed' def customSeed(seed): global hashVal assert isinstance(seed,bytes) hashVal = seed def customRan...
[ "jlever@bcgsc.ca" ]
jlever@bcgsc.ca
3f37be6295efdeb2b5494d969169460f1f485088
d5e94042ac2b248b7701117a6ea941bcc862067a
/upvote/gae/modules/bit9_api/api/constants.py
4c56c6eaa186ee6acb77a526f9921ecbe3a3d380
[ "Apache-2.0" ]
permissive
codegrande/upvote
f373105203a0595f76c29e138a18a95dc24a63df
e05d477bb13e470127b109eb8905a66a06eed5ac
refs/heads/master
2020-03-07T19:40:47.185833
2019-06-20T14:35:20
2019-06-20T14:35:20
127,677,753
0
0
null
2018-04-01T22:49:28
2018-04-01T22:49:27
null
UTF-8
Python
false
false
977
py
# Copyright 2017 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 a...
[ "msuozzo@google.com" ]
msuozzo@google.com
917c5bef27a58fdcd004916624589882e6029a2a
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/netgear/update.py
b0e9a26864b227b05bc1c76b978a087569c3803f
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
2,804
py
"""Update entities for Netgear devices.""" from __future__ import annotations import logging from typing import Any from homeassistant.components.update import ( UpdateDeviceClass, UpdateEntity, UpdateEntityFeature, ) from homeassistant.config_entries import ConfigEntry from homeassistant.core import Home...
[ "noreply@github.com" ]
home-assistant.noreply@github.com
cdbfd9c28af99a4c34a270145b8ed0a13172ad4c
3a9f2b3d79cf214704829427ee280f4b49dca70a
/saigon/rat/u/zdcli/get_user_by_name.py
f36819446c5c1002edbacc7d262a70e31ca6d2f1
[]
no_license
jichunwei/MyGitHub-1
ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791
f826fc89a030c6c4e08052d2d43af0b1b4b410e3
refs/heads/master
2021-01-21T10:19:22.900905
2016-08-20T03:34:52
2016-08-20T03:34:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,486
py
''' Created on 2010-11-4 @author: serena.tan@ruckuswireless.com Description: This tea program is used to get a dictionary of the user information from zd cli. Argument: zd_ip_addr: default value is '192.168.0.2' username: default value is 'admin' password: default value is 'admin' shell_key: defa...
[ "tan@xx.com" ]
tan@xx.com
ba4a71147ee2ce680a9cc6eb2a0fe3763c5d0e3b
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/anova/config_flow.py
d0846fbffc7fcc96cbd585d33ce8f27fa04e85b7
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
2,306
py
"""Config flow for Anova.""" from __future__ import annotations from anova_wifi import AnovaApi, InvalidLogin, NoDevicesFound import voluptuous as vol from homeassistant.config_entries import ConfigFlow from homeassistant.const import CONF_DEVICES, CONF_PASSWORD, CONF_USERNAME from homeassistant.data_entry_flow impor...
[ "noreply@github.com" ]
home-assistant.noreply@github.com
8f815e93e0d66b37dc97923d6ac99b1ee0a8c8d7
2b468b1d22ecc5668529255676a1d43936829074
/codes/personal_backend/tuoen/model/store/model_mobilephone.py
3628d482875fe0a3dfafecdc737d502bcfa3ba02
[]
no_license
MaseraTiGo/4U
5ac31b4cccc1093ab9a07d18218c3d8c0157dc9c
f572830aa996cfe619fc4dd8279972a2f567c94c
refs/heads/master
2023-07-26T09:44:21.014294
2023-07-13T03:43:34
2023-07-13T03:43:34
149,217,706
0
0
null
2020-06-05T20:38:16
2018-09-18T02:34:29
Python
UTF-8
Python
false
false
4,398
py
# coding=UTF-8 ''' Created on 2016年7月22日 @author: Administrator ''' from django.db.models import * from django.utils import timezone from model.base import BaseModel from model.store.model_user import Staff from model.store.model_department import Department class MobileDeviceStatus(object): NORMAL = "normal"...
[ "344627181@qq.com" ]
344627181@qq.com
01b7ca0f44595a5bece027b0e24666fb2b7c361a
22bea740c45a8bca47f97a1f2d69c401084a7fa5
/Payment/migrations/0048_auto_20200515_1506.py
fb5efffa14f9df0b58f01b67537c8cfa2896bc2f
[]
no_license
learnasgo/app
7c60c3556350a6dc00a1c5548b86d1c33d85a920
876c1af2e477b66282f11a7119c0f9c6ea47d70c
refs/heads/main
2023-01-24T06:01:03.300104
2020-11-21T15:00:51
2020-11-21T15:00:51
314,040,000
0
1
null
null
null
null
UTF-8
Python
false
false
1,715
py
# Generated by Django 2.2.6 on 2020-05-15 10:36 import Payment.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('nakhll_market', '0060_auto_20200512_1400'), ('Payment', '0047_auto_20200506_1711'), ] operations = [ ...
[ "admin@example.com" ]
admin@example.com
6d6a5fbd326290bb6805b7466ad024c6bdcd1aa8
1548522e10f181e9ec1f4fe9a69d7dc0795e089f
/TensorflowPic/PreProcess.py
abbed4cdd48635b5e5ef67feab5ff66a853444a6
[]
no_license
nanqianbeiquan/tensorflow
04d523894f7bf1942273cadefd234d181d76507e
a9312431d5fbb0c03241791a1c9ddfff7622ce38
refs/heads/master
2021-08-14T08:08:06.368001
2017-11-15T02:42:57
2017-11-15T02:42:57
110,773,180
0
0
null
null
null
null
UTF-8
Python
false
false
4,224
py
# coding=utf-8 import cv2 import numpy as np import time import random import os class PreProcess(object): """description of class""" def ConvertToGray(self,Image,filename): GrayImage=cv2.cvtColor(Image,cv2.COLOR_BGR2GRAY) return GrayImage def ConvertTo1Bpp(self,GrayImage,filename): ...
[ "18801791073@163.com" ]
18801791073@163.com
193548c0243293b1398551c5a16e775c70e7ba7b
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_102/ch4_2019_09_03_20_26_32_900481.py
fe690711fc30b93d87a26fe8f1406bdbc998e599
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
def classifica_idade (x): if x>=0 and x<12: print(crianca) elif x>=12 and x<17: print (adolescente) elif x>= 18: print(adulto)
[ "you@example.com" ]
you@example.com
3c5615e06e586e0ad1f6405e52a3065b47dce8dc
ef18d99eff01a708dddfc2cbf77f68bb1d8aa889
/python/240.search-a-2d-matrix-ii.py
8420382ca8cecf3b40658ae1364abac1e63471f6
[ "MIT" ]
permissive
fengbaoheng/leetcode
53d5b6f92f7958d551e6297f77c4edfc042a4d58
e37535a06b0b4cb23de9a2cfa357eb689b1c06fb
refs/heads/master
2023-07-23T11:33:42.938862
2023-07-08T08:43:46
2023-07-08T08:43:46
131,551,048
1
0
MIT
2022-11-16T02:53:49
2018-04-30T03:13:55
Java
UTF-8
Python
false
false
1,370
py
# # @lc app=leetcode.cn id=240 lang=python3 # # [240] 搜索二维矩阵 II # from typing import List class Solution: # 剑指offer题目 # 从右上角开始,向左下方搜索 # 每次可以减少一行或一列的搜索范围 # 若从常规的左上角开始搜索,则搜索区域无法排除彻底 def searchMatrix(self, matrix: List[List[int]], target: int) -> bool: try: row_count = len(matrix)...
[ "344092466@qq.com" ]
344092466@qq.com
175285c429d7209a5865c2ad52131804ec6cd9be
255e19ddc1bcde0d3d4fe70e01cec9bb724979c9
/all-gists/4943359/snippet.py
953e56a241c422918b7837ee1999e28e57b864a8
[ "MIT" ]
permissive
gistable/gistable
26c1e909928ec463026811f69b61619b62f14721
665d39a2bd82543d5196555f0801ef8fd4a3ee48
refs/heads/master
2023-02-17T21:33:55.558398
2023-02-11T18:20:10
2023-02-11T18:20:10
119,861,038
76
19
null
2020-07-26T03:14:55
2018-02-01T16:19:24
Python
UTF-8
Python
false
false
1,286
py
#!/usr/bin/env python #-*- coding:utf8 -*- # paramiko の ProxyCommandの Sample # ------------------------------------------------- # # ~/.ssh/config # # Host proxy-server # User hoge # HostName proxy.example.com # IdentityFile ~/.ssh/id_rsa_proxy # # Host dest-server # User fuga # HostName proxy.ex...
[ "gistshub@gmail.com" ]
gistshub@gmail.com
0a23b02f1a8a594b48351667345ca716f3983b52
dfaadf4ad0b13e803513d76d57ba725a6682d655
/deploy/reload_server.py
ac58abbddf99a4ad945e669313ea9db4a4bf2d1d
[]
no_license
guoku/Raspberry
8f9e63a06af051be8758b7bb0696cc4d041ea07f
72f6906f18ab72fd5c2eaf57cac4c6550d31d790
refs/heads/master
2021-05-28T06:12:47.079173
2014-09-13T11:11:59
2014-09-13T11:11:59
12,537,909
0
0
null
null
null
null
UTF-8
Python
false
false
637
py
#!/usr/bin/env python import ConfigParser from fabric.api import * from fabric.context_managers import * Config = ConfigParser.ConfigParser() Config.read('config.ini') env.hosts = ['114.113.154.47', '114.113.154.46' ] env.user = Config.get('global', 'user') env.key = Config.get('global', 'key') env.password = 'je...
[ "edison7500@gmail.com" ]
edison7500@gmail.com
3b033eaf5baf1701b60a03e0a0cd7c6575ad49c7
677002b757c0a1a00b450d9710a8ec6aeb9b9e9a
/tiago_public_ws/build/joy_teleop/catkin_generated/pkg.develspace.context.pc.py
8c9b951e889fb35b44ae8ee16dcc7c7ae63935bb
[]
no_license
mrrocketraccoon/tiago_development
ce686c86459dbfe8623aa54cf4279021342887fb
a0539bdcf21b67ab902a4649b516dcb929c54042
refs/heads/main
2023-06-16T19:39:33.391293
2021-07-08T21:20:03
2021-07-08T21:20:03
384,249,894
0
0
null
null
null
null
UTF-8
Python
false
false
517
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/tiago_public_ws/src/teleop_tools/joy_teleop/include".split(';') if "/tiago_public_ws/src/teleop_tools/joy_teleop/include" != "" else [] PROJECT_CATKIN_DEPENDS = "actionlib;teleop_tools_msgs".replace('...
[ "ricardoxcm@hotmail.com" ]
ricardoxcm@hotmail.com
f1645c96195be4b5df3ac8db6512c191bbbd43c5
fce5eda4745578557f7120104188c2437529b98f
/arquivo/uso_import_json/numero_escrever.py
9c09405ae0f3cb0ff78afe79670835741d57b11a
[]
no_license
weguri/python
70e61584e8072125a4b4c57e73284ee4eb10f33b
d5195f82428104d85b0e6215b75e31ee260e5370
refs/heads/master
2022-12-01T08:26:36.248787
2020-08-23T03:30:46
2020-08-23T03:30:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
292
py
import json """ json.dump(1,2) Aceita dois argumentos: Dados para armazenar Arquivo que pode ser usado para armazenar o dado. """ numeros = [2, 3, 5, 7, 11, 13] filename = '../../arquivo_txt/numero.json' with open(filename, 'w') as f_obj: json.dump(numeros, f_obj)
[ "welguri@gmail.com" ]
welguri@gmail.com
fcf002c32d49b9dbf0f6520b7704e07e9e627fc5
a59d55ecf9054d0750168d3ca9cc62a0f2b28b95
/platform/gsutil/gslib/help_provider.py
c77f6178b49a338316cc028000e03640694b2e9e
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
bopopescu/google-cloud-sdk
bb2746ff020c87271398196f21a646d9d8689348
b34e6a18f1e89673508166acce816111c3421e4b
refs/heads/master
2022-11-26T07:33:32.877033
2014-06-29T20:43:23
2014-06-29T20:43:23
282,306,367
0
0
NOASSERTION
2020-07-24T20:04:47
2020-07-24T20:04:46
null
UTF-8
Python
false
false
3,263
py
# Copyright 2012 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 a...
[ "alfred.wechselberger@technologyhatchery.com" ]
alfred.wechselberger@technologyhatchery.com
bb0521d23de6949601258ef77cc7949d3fb96eba
09f8a3825c5109a6cec94ae34ea17d9ace66f381
/cohesity_management_sdk/models/backup_job_proto_remote_view_params.py
2a0e069c0aba05a3272b4c2d3aab1dd3c1efd8d9
[ "Apache-2.0" ]
permissive
cohesity/management-sdk-python
103ee07b2f047da69d7b1edfae39d218295d1747
e4973dfeb836266904d0369ea845513c7acf261e
refs/heads/master
2023-08-04T06:30:37.551358
2023-07-19T12:02:12
2023-07-19T12:02:12
134,367,879
24
20
Apache-2.0
2023-08-31T04:37:28
2018-05-22T06:04:19
Python
UTF-8
Python
false
false
2,179
py
# -*- coding: utf-8 -*- # Copyright 2023 Cohesity Inc. import cohesity_management_sdk.models.backup_job_proto_remote_view_params_remote_view_map_entry class BackupJobProto_RemoteViewParams(object): """Implementation of the 'BackupJobProto_RemoteViewParams' model. From 6.6 onwards, we always create remote v...
[ "naveena.maplelabs@cohesity.com" ]
naveena.maplelabs@cohesity.com
95c56b6eaab63714e354170fa4f39d3ab5e476d2
6606bb76dc7205605154d3b18f21fb578ed008b3
/opg/unit/loader.py
0e3228fcc94d6ed19ff1dda7721338a998865ab6
[]
no_license
litaojun/unittestExBase
944389c3a94890d00c772d839b4313327c4521be
3975d51efc661f870d373e717b3fea69f26861a9
refs/heads/master
2020-04-02T21:48:28.842576
2019-07-10T02:01:18
2019-07-10T02:01:18
154,812,003
0
0
null
null
null
null
UTF-8
Python
false
false
7,076
py
import os import unittest from ruamel import yaml import collections from opg.util.dynload import Dynload import sys from opg.util.fileOper import walk_absdir_modul_file, walk_dir_test from opg.unit.parametrized import ParametrizedTestCase def initAllTestCase(casePath=None): if casePath is None: casePath ...
[ "li.taojun@opg.cn" ]
li.taojun@opg.cn
88d1262c1db9de85506085e969267b2f292762e8
2f557f60fc609c03fbb42badf2c4f41ef2e60227
/FWCore/GuiBrowsers/python/Vispa/Plugins/ConfigEditor/ConfigEditorBoxView.py
fee5d5125b40383b4dd6ce9b63da1ad75265fadf
[ "Apache-2.0" ]
permissive
CMS-TMTT/cmssw
91d70fc40a7110832a2ceb2dc08c15b5a299bd3b
80cb3a25c0d63594fe6455b837f7c3cbe3cf42d7
refs/heads/TMTT_1060
2020-03-24T07:49:39.440996
2020-03-04T17:21:36
2020-03-04T17:21:36
142,576,342
3
5
Apache-2.0
2019-12-05T21:16:34
2018-07-27T12:48:13
C++
UTF-8
Python
false
false
4,593
py
import logging from PyQt4.QtCore import Qt,QCoreApplication,SIGNAL from Vispa.Main.Application import Application from Vispa.Views.BoxDecayView import BoxDecayView from Vispa.Gui.PortConnection import PortConnection,PointToPointConnection from Vispa.Gui.ConnectableWidget import ConnectableWidget from Vispa.Gui.Widget...
[ "giulio.eulisse@gmail.com" ]
giulio.eulisse@gmail.com
bb5114268f6ae01d6fd53511e11575aed4c97f6f
e74e89592d8a3b1a0b465a7b1595708b224362d2
/pset_pandas_ext/101problems/solutions/p22.py
750d39ecc77be1fbba41672cc278a8d236e96054
[ "MIT" ]
permissive
mottaquikarim/pydev-psets
016f60f1e9d9a534bd9a66ecde8eb412beee37d1
9749e0d216ee0a5c586d0d3013ef481cc21dee27
refs/heads/master
2023-01-10T11:15:57.041287
2021-06-07T23:38:34
2021-06-07T23:38:34
178,547,933
5
2
MIT
2023-01-03T22:28:27
2019-03-30T11:09:08
Jupyter Notebook
UTF-8
Python
false
false
1,044
py
""" 22. How to get the day of month, week number, day of year and day of week from a series of date strings? """ """ Difficiulty Level: L2 """ """ Get the day of month, week number, day of year and day of week from ser. """ """ Input """ """ ser = pd.Series(['01 Jan 2010', '02-02-2011', '20120303', '2013/04/04', '2014-...
[ "taqqui.karim@gmail.com" ]
taqqui.karim@gmail.com
c7bc58bac9d9b8f7312ac171fd5b8785fad8b21e
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_172/ch25_2020_03_11_19_42_20_425643.py
ec9d0f95ec62b15befe948b6125316255be0dcee
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
287
py
import math def distancia (v, o): d = v**2*math.sin(math.radians(2*o))/9.8 return d v = float(input('valor de v: ')) o = float(input('valor de o: ')) if distancia(v,o)< 98: print ('Muito perto') elif distancia(v,o)> 102: print ('Muito longe') else: print ('Acertou!')
[ "you@example.com" ]
you@example.com
222fa278d92d9ff9d97d98724ab35788f8158ac9
3730aba0178952476cb24ad7646a48a77aa25932
/tk.py
3704d455bdb8542462bd1a385591db89398fd50c
[]
no_license
Alexanderlacuna/clash_of_code_algorithms
ccd5b12484c54118da21207ba2f8deb38617c55a
1e8cb52e39fb918e46c475d4cd075d5459519658
refs/heads/master
2023-01-30T03:46:06.328084
2020-12-14T17:24:11
2020-12-14T17:24:11
321,422,334
0
0
null
null
null
null
UTF-8
Python
false
false
3,229
py
class MinHeap: # items=[0] def __init__(self): self.items=[0] def bubble_top(self,parentIndex,childIndex): if parentIndex<=0: return; else: print("running",self.items[parentIndex],self.items[childIndex]) if self.items[parentIndex]>self.items[childIndex]: print("running inside") temp=self.it...
[ "alexanderkabua@gmail.com" ]
alexanderkabua@gmail.com
3c8593ca9fef6055d512be73e0cc3f4f79659ca3
2a3de1d5fed001261102c33aed9367bec29aaff4
/joplin_web/management/commands/editnote.py
06105101fba4845c90199ec8e485073a32472b48
[ "BSD-3-Clause" ]
permissive
kuyper/joplin-web
0b2a9d274910733cd233d28feaa717f9d21fff5a
7a13b75cbb55741ddfb58767af34c7ad164fec11
refs/heads/master
2020-04-04T11:38:58.871560
2018-11-01T14:20:02
2018-11-01T14:20:02
155,899,112
0
1
BSD-3-Clause
2018-11-02T17:21:46
2018-11-02T17:21:45
null
UTF-8
Python
false
false
1,314
py
#!/usr/bin/env python # coding: utf-8 from __future__ import unicode_literals # django from django.core.management.base import BaseCommand from logging import getLogger # joplin_api from joplin_api import JoplinCmdApi # create logger logger = getLogger("joplin_web.jw") class Command(BaseCommand): help = 'Edit...
[ "foxmaskhome@gmail.com" ]
foxmaskhome@gmail.com
faf88f3b5aacdbb3975a2a7210dc5a04d1e2cc1c
1ac2594314c0de24528b171c8f9120566a3cd4be
/tests/test_models/test_tree/conftest.py
78b72e77ad0a127566b96cd32272dd7dfc353201
[ "MIT" ]
permissive
Zheaoli/huskar
a4c7e7b02bef301b5283519b1e1608489d79d95b
395775c59c7da97c46efe9756365cad028b7c95a
refs/heads/master
2022-07-11T06:54:34.810211
2020-01-01T08:00:57
2020-01-01T08:00:57
218,746,862
0
0
MIT
2019-10-31T11:06:11
2019-10-31T11:06:10
null
UTF-8
Python
false
false
636
py
from __future__ import absolute_import from pytest import fixture from huskar_api.models import huskar_client from huskar_api.models.tree import TreeHub @fixture def test_application_name(faker): return faker.uuid4() @fixture def hub(): return TreeHub(huskar_client) @fixture def holder(hub, test_applica...
[ "mozillazg101@gmail.com" ]
mozillazg101@gmail.com
4c9b97d8af5bd9f2dea65ba4152037c597cffb4b
29bd78cca6e9579f2388f3aa39c79dfa92e7a8c4
/ptb_reader.py
6d4d41b03dd6325938918a3b9b8956361a9ad881
[ "Apache-2.0" ]
permissive
vishalbelsare/adaptive-regularization
8f21fea680dd48daee595e646335e9886bb99201
4aef9029b2452911fac4cb40ac951a1168e611b7
refs/heads/master
2020-03-10T17:40:03.766406
2017-07-29T21:32:51
2017-07-29T21:32:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,274
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections import os import sys import tensorflow as tf def _read_words(filename): with open(filename, "r") as f: if sys.version_info[0] >= 3: return f.read().replace("\n", "<eos>").split() e...
[ "noreply@github.com" ]
vishalbelsare.noreply@github.com
41ff8dd0f3f4c6d6d961b1d9ff41e5e2e54db3f6
aa28417be8935d6fa369fcb526174f9e1e30479a
/爬虫实战/Scrapy框架/images360/images360/items.py
3a65e8d37d4ed1e5caea54d6592924c6254911a7
[]
no_license
YYN117/Demo
d6fca95ed8a1a433ef06f1f3fc2e768414e863cb
40690040a7422fd5d8f03a0d68f20f1be5d4a836
refs/heads/master
2020-04-14T12:29:30.129709
2019-01-02T13:31:10
2019-01-02T13:31:10
163,841,708
0
0
null
null
null
null
UTF-8
Python
false
false
316
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html from scrapy import Item,Field class ImageItem(Item): collection = table = 'images' id = Field() url = Field() title = Field() thumb = Field()
[ "41251061+YYN117@users.noreply.github.com" ]
41251061+YYN117@users.noreply.github.com
449364c27c816279e0ef093df7c6f173eb8ba01c
385e18783385645b738a7d0c7860480b9f47e081
/throneloon/game/artifacts/deck.py
b8f248f71463a225cc8ab83c42ea90ff1731fc91
[]
no_license
guldfisk/throneloon
928228730b1cb0de0bdab09ac60d33804d767efc
0bc3d51c9d450fe25602c16a3679cd515e5da547
refs/heads/master
2021-05-09T00:19:41.951713
2018-09-06T17:55:01
2018-09-06T17:55:01
119,740,442
0
0
null
null
null
null
UTF-8
Python
false
false
997
py
import typing as t from eventtree.replaceevent import Event from throneloon.game.artifacts.artifact import IdSession from throneloon.game.artifacts.zones import Zone, ZoneOwner, ZoneFacingMode from throneloon.game.artifacts.cards import Cardboard class Deck(object): def __init__(self, session: IdSession, event: E...
[ "ce.guldfisk@gmail.com" ]
ce.guldfisk@gmail.com
72b276a7599de35de93ff80b038b60ab8841ddcd
ca7f1bd82f4b8710b5baad52061d086442157fbb
/leetcode+牛客/牛牛的闹钟.py
d4a8fbcc3bccf61120eee7ba38b81eaa4f332de9
[]
no_license
MyHiHi/leetcode-niuke
3b97c86ee6b6cddd71c60383a22cc2b88400e944
ab06993b2a12a86ac05230038379f6febfeb44c7
refs/heads/master
2022-06-14T20:43:36.706529
2020-05-04T09:27:31
2020-05-04T09:27:31
261,122,031
1
0
null
null
null
null
UTF-8
Python
false
false
1,515
py
# -*- encoding: utf-8 -*- ''' @File : 牛牛的闹钟.py @Time : 2020/02/08 11:41:52 @Author : Zhang tao @Version : 1.0 @Desc : None ''' ''' 目描述 牛牛总是睡过头,所以他定了很多闹钟,只有在闹钟响的时候他才会醒过来并且决定起不起床。从他起床算起他需要X分钟到达教室,上课时间为当天的A时B分,请问他最晚可以什么时间起床 输入描述: 每个输入包含一个测试用例。 每个测试用例的第一行包含一个正整数,表示闹钟的数量N(N<=100)。 接下来的N行每行包含两个整数,表示这个闹钟...
[ "909535692@qq.com" ]
909535692@qq.com
99595e1f4b7bdc28cc5416a5ea5db8f93ed8c09b
91d1a6968b90d9d461e9a2ece12b465486e3ccc2
/inspector_read_2/exclusions-preview_get.py
f3205f2f0bfb7d9efd2548f3f9114f77902b5cd3
[]
no_license
lxtxl/aws_cli
c31fc994c9a4296d6bac851e680d5adbf7e93481
aaf35df1b7509abf5601d3f09ff1fece482facda
refs/heads/master
2023-02-06T09:00:33.088379
2020-12-27T13:38:45
2020-12-27T13:38:45
318,686,394
0
0
null
null
null
null
UTF-8
Python
false
false
881
py
#!/usr/bin/python # -*- codding: utf-8 -*- import os import sys sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) from common.execute_command import execute_two_parameter # url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/inspector/get-exclusions-preview.html if __na...
[ "hcseo77@gmail.com" ]
hcseo77@gmail.com
c9ca09f2b82460bbf75ec32c7b0339bd392d5ced
62e58c051128baef9452e7e0eb0b5a83367add26
/edifact/D10A/MEDREQD10AUN.py
38f9faf48146ee7022944598786a1efbd70a0852
[]
no_license
dougvanhorn/bots-grammars
2eb6c0a6b5231c14a6faf194b932aa614809076c
09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d
refs/heads/master
2021-05-16T12:55:58.022904
2019-05-17T15:22:23
2019-05-17T15:22:23
105,274,633
0
0
null
2017-09-29T13:21:21
2017-09-29T13:21:21
null
UTF-8
Python
false
false
5,499
py
#Generated by bots open source edi translator from UN-docs. from bots.botsconfig import * from edifact import syntax from recordsD10AUN import recorddefs structure = [ {ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [ {ID: 'BGM', MIN: 1, MAX: 1}, {ID: 'DTM', MIN: 0, MAX: 9}, {ID: 'FTX', MIN: 0, MAX: 9}, {ID: 'PNA'...
[ "jason.capriotti@gmail.com" ]
jason.capriotti@gmail.com
9292de3df1a244c4bb34a060faeb7b86231b2922
0961119a594519ac02107cfac69536be1d901182
/home/models.py
ddc0f44b5411d2c6c522c738bbc59ed098553b8c
[]
no_license
philratcliffe/wagtail-testing1
8f48c98a1f4e17be4763ec762ad1dd25bc46cfe5
41ce3e9cb5ca09203422da1bb82f5d194db76170
refs/heads/master
2020-05-24T16:29:07.011700
2019-05-22T10:39:51
2019-05-22T10:39:51
187,358,893
0
0
null
null
null
null
UTF-8
Python
false
false
320
py
from django.db import models from wagtail.core.models import Page from wagtail.core.fields import RichTextField from wagtail.admin.edit_handlers import FieldPanel class HomePage(Page): body = RichTextField(blank=True) content_panels = Page.content_panels + \ [FieldPanel('body', classname="full"), ]
[ "phil@philratcliffe.co.uk" ]
phil@philratcliffe.co.uk
33d5919c4179111888b4972d7dfd2d649d79893e
2c68f9156087d6d338373f9737fee1a014e4546b
/src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/operations/_database_account_region_operations.py
bdec8d1e0783c865f24d4f50ac809a944fc327c3
[ "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
5,690
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
62b5dc86f8f811971b540a0c0d96bfd9cdc9f622
8ead3a9e5feeeaaf2592a98087689e2cd02e1ace
/tests/transfo/chomsky_normal_form_tests.py
e5c71fad10d6c1695e33e5116009d31224d3a8f7
[]
no_license
gropax/gramz.py
3c8190ebe82d69219883340729fb408ba9189022
fd760493af8860a86e4503248536c66230d49fc0
refs/heads/master
2021-01-13T09:25:41.194683
2015-10-02T16:51:38
2015-10-02T16:51:38
43,496,770
0
0
null
null
null
null
UTF-8
Python
false
false
722
py
from nose.tools import * from gramz import grammar, chomsky_normal_form input = [('S', ('c', 'A', 'c', 'B')), ('A', ('a',)), ('B', ('b', 'A'))] expected = [('S', ('C', 'X')), ('X', ('A', 'X0')), ('X0', ('C0', 'B')), ('A', ('a',)), ('B', ('B0', 'A')), ...
[ "maximedelaudrin@gmail.com" ]
maximedelaudrin@gmail.com
0b8165979d34144e7038956add9c8dc97b1b9c5c
33f385fddfa8d10d441025e9a013d5fb5a0bd905
/autotrading/newscrawler.py
221d7536f92e0587e0f6ea51741b8696137d3bd1
[]
no_license
rapha18th/Auto-Trading
d9ec14e6c232316b453dfe453111dbfda54c74ca
fffca2438ad72f044b4786c583a2458e58467a4a
refs/heads/master
2022-12-18T09:46:38.648830
2020-09-10T14:09:01
2020-09-10T14:09:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,986
py
import sys import data_handler import requests import grequests import warnings import time import random import pandas as pd import numpy as np from multiprocessing import Pool from tqdm import tqdm from bs4 import BeautifulSoup warnings.filterwarnings("ignore") def is_downloadable(url): """ Does the url con...
[ "penguinwang@smail.nchu.edu.tw" ]
penguinwang@smail.nchu.edu.tw
43e71415629760e75d9cf8d101797dc6c9001768
45438d5375815e5ec5befe890436cd892f5100ab
/app/javaab_auth/scripts/initialise_db.py
37393b3895dfec2c6175ea8be778db9b451a405e
[]
no_license
javaab/javaab_auth
3526925d5ccf54f78702a45127965d77f87ae11f
b961c2971c13613edd36635e7d9c540317d2559c
refs/heads/master
2021-06-15T08:04:01.312109
2017-03-19T20:30:00
2017-03-19T20:30:00
84,867,970
0
1
null
2017-03-20T19:58:20
2017-03-13T19:47:24
Python
UTF-8
Python
false
false
1,368
py
#!/usr/bin/env python import os import sys import transaction from pyramid.paster import ( get_appsettings, setup_logging, ) from pyramid.scripts.common import parse_vars from ..models.meta import Base from ..models import ( get_engine, get_session_factory, get_tm_session, ) from ..models...
[ "james.tarball@gmail.com" ]
james.tarball@gmail.com
0fd71ae262a98fd7b0fdf82a798a64b4edea56b7
2bdfbf167efd70fd0256008f67e9e7b5aac44a94
/0x07-python-test_driven_development/4-print_square.py
76812f477a74ef2ed77ccd8075803861c2783b11
[]
no_license
EMOS-BF/holbertonschool-higher_level_programming-1
da20a481ac3d60bf287611a508aa2a7452158c67
d273b6d1206770c9a88b42619d697451e997f32f
refs/heads/master
2023-03-14T18:07:03.261096
2020-05-15T02:29:37
2020-05-15T02:29:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
614
py
#!/usr/bin/python3 """This module print '#' times the square of a number. The module has the function print_square. """ def print_square(size): """Function print_square. This function prints the char '#' as many times as the square of the given number. Args: size (int): To stablish the siz...
[ "mlgomez230@hotmail.com" ]
mlgomez230@hotmail.com
74f634eb7c8164bd22b84b376c0f2065f7185f3f
09d3599c8e53b38104e96d479b2b40ac549d0bef
/Rakesh/Codility and HackerRank/word_problem.py
ea061648564a470c69d905469fd3631bb523b11b
[]
no_license
rakeshsukla53/interview-preparation
54764c83c86a52c566899ec87d74dad84216764d
09355094c85496cc42f8cb3241da43e0ece1e45a
refs/heads/master
2016-09-06T02:08:50.436414
2016-02-01T00:31:52
2016-02-01T00:31:52
40,916,511
9
3
null
2015-12-31T05:00:55
2015-08-17T17:59:55
HTML
UTF-8
Python
false
false
356
py
dictionary = {'i': '', 'like': '', 'mangoes': '', 'mango': ''} def word_split(s, words): d = [False] * len(s) for i in range(len(s)): for w in words: if w == s[i - len(w) + 1:i + 1] and (d[i - len(w)] or i - len(w) == -1): d[i] = True return d[-1] print word_split('ili...
[ "rakesh.sukla53@gmail.com" ]
rakesh.sukla53@gmail.com
c29be4b34f44c3cf762d4b53b87774418dd21c4e
531e9fd8362f142ca777ee24c10c095686ae755e
/tb/DS.py
5c05890a7b29cdf2b5ae7927634f9506d1decce1
[ "Apache-2.0" ]
permissive
mfkiwl/RiftCore
c3c4b010e9c9c3ba741e00ee3ddf3a401f5db29a
34b852712fb6ed3bd8a28d2a0c868ad057503372
refs/heads/master
2023-03-28T09:27:59.036288
2021-03-26T07:51:31
2021-03-26T07:51:31
324,439,420
0
0
Apache-2.0
2021-03-26T07:51:31
2020-12-25T21:59:25
null
UTF-8
Python
false
false
3,243
py
# -*- coding: utf-8 -*- # @Author: Ruige Lee # @Date: 2021-02-02 17:06:19 # @Last Modified by: Ruige Lee # @Last Modified time: 2021-02-07 19:14:14 import sys import os import json import time import matplotlib.pyplot as plt def get_log(str): temp = os.popen(str) log = temp.read() temp.close() return log ...
[ "noreply@github.com" ]
mfkiwl.noreply@github.com
ee9e64d8d176074e152c9cafdc734aaa4786fbe7
62e58c051128baef9452e7e0eb0b5a83367add26
/x12/5040/106005040.py
cc9e48011022fde3261467bd38005703268de5dc
[]
no_license
dougvanhorn/bots-grammars
2eb6c0a6b5231c14a6faf194b932aa614809076c
09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d
refs/heads/master
2021-05-16T12:55:58.022904
2019-05-17T15:22:23
2019-05-17T15:22:23
105,274,633
0
0
null
2017-09-29T13:21:21
2017-09-29T13:21:21
null
UTF-8
Python
false
false
2,084
py
from bots.botsconfig import * from records005040 import recorddefs syntax = { 'version': '00504', 'functionalgroup': 'MH', } structure = [ {ID: 'ST', MIN: 1, MAX: 1, LEVEL: [ {ID: 'BGN', MIN: 1, MAX: 1}, {ID: 'BLR', MIN: 1, MAX: 1}, {ID: 'TFR', MIN: 0, MAX: 1}, {ID: 'CUR', MIN: 0, MAX: 1},...
[ "doug.vanhorn@tagglogistics.com" ]
doug.vanhorn@tagglogistics.com
b43066f3bab62600df5d6194f2c9d5f9244f6dcc
0d2f636592dc12458254d793f342857298c26f12
/22-5.py
47f80f7613cb697217f6f3232b7fb34991c89037
[]
no_license
chenpc1214/test
c6b545dbe13e672f11c58464405e024394fc755b
8610320686c499be2f5fa36ba9f11935aa6d657b
refs/heads/master
2022-12-13T22:44:41.256315
2020-09-08T16:25:49
2020-09-08T16:25:49
255,796,035
0
0
null
null
null
null
UTF-8
Python
false
false
1,353
py
import csv import matplotlib.pyplot as plt from datetime import datetime fn = 'TaipeiWeatherJan.csv' with open(fn) as csvFile: csvReader = csv.reader(csvFile) headerRow = next(csvReader) dates, highTemps, meanTemps, lowTemps = [], [], [], [] for row in csvReader: try: ...
[ "kkbuger1523@gmail.com" ]
kkbuger1523@gmail.com
334f5be4ea62b399f3482d288acc029e4d9a9425
67637d7c681619f7f3e07a6c10be89b7aff73e2a
/src/horner.py
02e08aa2c67dd5c15617f863e1ff3ce9467f1dfd
[ "Apache-2.0" ]
permissive
dhermes/k-compensated-de-casteljau
0b1ff7cb04ba71c127b39aca1cb5d4b1a4aa9883
8511f0c2c525ac24215f6307e80032329f97301d
refs/heads/master
2020-03-13T09:49:22.674892
2019-04-09T15:03:30
2019-04-09T15:03:30
131,072,021
2
0
null
null
null
null
UTF-8
Python
false
false
2,557
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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
[ "daniel.j.hermes@gmail.com" ]
daniel.j.hermes@gmail.com
80081ce10392cfd9800c183230ca7dd6a139d85c
5148d8419f980ba9e5363f40a809768b9dddf7fa
/firelog/asgi.py
1ce5e1691040ef9e4a2b4cb3542e5f3ada57ec96
[]
no_license
mohamed-arshad-ch/FbDjango
0564c7c3d77d2300475f647ae9f8ee79b3048660
852596dad0df87aed78fb84a1ad3eb070e28feb9
refs/heads/master
2022-12-30T04:05:13.119966
2020-10-22T07:31:27
2020-10-22T07:31:27
306,252,189
0
0
null
null
null
null
UTF-8
Python
false
false
391
py
""" ASGI config for firelog project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTI...
[ "you@example.com" ]
you@example.com
9795b6a7f3329137c00d8ed9dd2cefd3bfe50d51
f64e31cb76909a6f7fb592ad623e0a94deec25ae
/leetcode/p0314_binary_tree_vertical_order_traversal.py
cdb2c01ec92670f2682803e46fcc83dc4b248a9c
[]
no_license
weak-head/leetcode
365d635cb985e1d154985188f6728c18cab1f877
9a20e1835652f5e6c33ef5c238f622e81f84ca26
refs/heads/main
2023-05-11T14:19:58.205709
2023-05-05T20:57:13
2023-05-05T20:57:13
172,853,059
0
1
null
2022-12-09T05:22:32
2019-02-27T05:58:54
Python
UTF-8
Python
false
false
891
py
from typing import List from collections import defaultdict, deque class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right def verticalOrder(root: TreeNode) -> List[List[int]]: """ BFS guarantees that we have correct co...
[ "zinchenko@live.com" ]
zinchenko@live.com
5bd801bc7ca1347e3b17036dca9ca94255bcf992
51da71a26628a3c6d1814e6da38f5c48f3101d9b
/uri/1564.py
ccabed82f9e491a343dec35bdb18d4a81feb0312
[]
no_license
da-ferreira/uri-online-judge
279156249a1b0be49a7b29e6dbce85a293a47df1
6ec97122df3cb453ea26e0c9f9206a2e470ba37d
refs/heads/main
2023-03-30T11:47:05.120388
2021-04-02T19:45:25
2021-04-02T19:45:25
309,744,456
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
while True: try: copa = int(input()) if copa == 0: print('vai ter copa!') else: print('vai ter duas!') except: break
[ "noreply@github.com" ]
da-ferreira.noreply@github.com
cb8a24a611f7b30df953285cae3ab328a3c43c41
29055f6da38e148e38e33c6f750e3d4e6609a0fb
/Incinerator/words-finder.py
5aa10d3ab6e2eb2bb6606115fe15f3dcad3ff750
[]
no_license
ckclark/CheckiO
42ed57b64f80a5b9d9781b311d8ce439c8ebabc5
f9e01f57b6a73160a18dec5a255ea4507814b06b
refs/heads/master
2021-01-17T14:30:48.848211
2016-07-16T14:34:06
2016-07-16T14:34:06
47,816,733
5
2
null
null
null
null
UTF-8
Python
false
false
2,183
py
def checkio(text, words): intervals = [] lowertext = text.lower() for word in words.lower().split(): offset = 0 while True: idx = lowertext.find(word, offset) if idx == -1: break intervals.append((idx, idx + len(word))) offset =...
[ "clark.ck@gmail.com" ]
clark.ck@gmail.com
c7583d2d1687de2ce77d6ad03b66131bc10396df
2bcc421ee345b00cf805c543b37d18b5d019dc04
/adafruit-circuitpython-bundle-6.x-mpy-20201126/examples/avrprog_read_signature_simpletest.py
cb5c885ce01c84e08ee80e16a2d6bf14524cb70f
[]
no_license
saewoonam/sc-current-source-titano
5a1ad46889c1b09c168424901fd71cb4eab5c61b
1c136aa8b61268d9ac0b5a682b30ece70ab87663
refs/heads/main
2023-03-02T22:12:26.685537
2021-02-09T03:28:01
2021-02-09T03:28:01
317,299,900
0
2
null
null
null
null
UTF-8
Python
false
false
614
py
""" Read Signature Test - All this does is read the signature from the chip to check connectivity! """ import board import busio import pulseio import adafruit_avrprog spi = busio.SPI(board.SCK, board.MOSI, board.MISO) avrprog = adafruit_avrprog.AVRprog() avrprog.init(spi, board.D5) # pylint: disable-m...
[ "nams@nist.gov" ]
nams@nist.gov
5f8780d428c8a619511bbb558caf9a49c818f946
ad5b72656f0da99443003984c1e646cb6b3e67ea
/tools/mo/openvino/tools/mo/__main__.py
ae788bcb568c0cbe62a46fbd2c6d43b48e918132
[ "Apache-2.0" ]
permissive
novakale/openvino
9dfc89f2bc7ee0c9b4d899b4086d262f9205c4ae
544c1acd2be086c35e9f84a7b4359439515a0892
refs/heads/master
2022-12-31T08:04:48.124183
2022-12-16T09:05:34
2022-12-16T09:05:34
569,671,261
0
0
null
null
null
null
UTF-8
Python
false
false
267
py
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from openvino.tools.mo.subprocess_main import subprocess_main from openvino.tools.mo.utils.telemetry_utils import init_mo_telemetry init_mo_telemetry() subprocess_main(framework=None)
[ "noreply@github.com" ]
novakale.noreply@github.com
7a351240c20905bb8b1aadd0430178f0d6f7d608
f7d343efc7b48818cac4cf9b98423b77345a0067
/training/DataStructures-Algorithm/dynamic_programming/lcs_and_len_long_sub_seq.py
f7a6b20aaa84947fbf0ea9b219340401a553c563
[]
no_license
vijaymaddukuri/python_repo
70e0e24d0554c9fac50c5bdd85da3e15c6f64e65
93dd6d14ae4b0856aa7c6f059904cc1f13800e5f
refs/heads/master
2023-06-06T02:55:10.393125
2021-06-25T16:41:52
2021-06-25T16:41:52
151,547,280
0
1
null
null
null
null
UTF-8
Python
false
false
1,758
py
# Find length of Longest Common Subsequence and sub array string # Find length of longest subsequence of one string which is substring of another string #Algorithm: # If the last character matches # LCS[i][j] = L[i-1][j-1] + 1 # If the last character not matches # LCS[i][j] = max(L[i-1][j], L[j-1][j]) def lcs(a...
[ "Vijay.Maddukuri@virtustream.com" ]
Vijay.Maddukuri@virtustream.com
1986375f7b2ea11fcf3ff7abe918bb0a232c37ca
f34af5b279490233c57981495de94dc3866aba01
/setup.py
7acafd672eec9484ca2c136b7896411f97c9df38
[ "MIT" ]
permissive
macfire/mongoengine-goodjson
8eaaff18446d9823c3a60db9c0a91275db540d03
a36e9acc3d53769884b91b275e132d6e577c139c
refs/heads/master
2021-01-13T09:12:57.060496
2016-09-30T09:31:29
2016-09-30T09:31:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,212
py
#!/usr/bin/env python # coding=utf-8 """Setup script.""" import sys from setuptools import setup, find_packages dependencies = ["mongoengine", "dateutils"] desc = "More human readable JSON serializer/de-serializer for MongoEngine" version = "0.11.2" if sys.version_info < (2, 7): raise RuntimeError("Not supported ...
[ "hiroaki@hysoftware.net" ]
hiroaki@hysoftware.net
449646590ef07945b3698f0383c51ce1b8924dba
ff182eeaf59b16f79b7d306eef72ddaadf0f4e71
/Vaffle_interface/testcase/GroupModule/Group_test5_group_memberlist.py
4f3bf4be0c4cf628a02bc103c4b051dc2934d444
[]
no_license
heyu1229/vaffle
04d6f8b0d3bd0882ff1cdea54d18d5fdde7933b9
2c1c040f78094cf3cfc68f08627a958c4aa5e1d5
refs/heads/master
2023-06-05T09:55:21.894344
2021-03-12T07:26:45
2021-03-12T07:26:45
381,248,658
0
0
null
null
null
null
UTF-8
Python
false
false
818
py
# -*- coding:UTF-8 -*- import unittest,time,json from Vaffle_interface.public_1.func_requests import FuncRequests #---------------群组信息主页---------------------- class Group(unittest.TestCase): def setUp(self): self.r=FuncRequests() #-----------------查看群成员成员管理--------------------------- def testcase_...
[ "921467314@qq.com" ]
921467314@qq.com
502ce475e7061a898760d4c7f422bb72d2577677
21f38f1a9f6d4edfa3b233697e17d86f30b168ce
/parties/migrations/0005_party_share_image.py
96cff4ac9b3991d46460d80988d35757195b6656
[]
no_license
m100bit/demozoo
3734d0126a6f0bd9ff98128a4350e40b22cdd8a3
93918da57e7cb96a0d2f724e5a876406d3477891
refs/heads/master
2023-03-14T05:34:20.323613
2023-01-27T23:10:32
2023-01-27T23:23:52
232,933,218
0
0
null
2020-01-10T00:32:53
2020-01-10T00:32:53
null
UTF-8
Python
false
false
1,555
py
# Generated by Django 1.11.8 on 2018-07-12 18:59 import django.db.models.deletion from django.db import migrations, models import parties.models class Migration(migrations.Migration): dependencies = [ ('productions', '0006_remove_production_default_screenshot'), ('parties', '0004_set_on_delete')...
[ "matthew@torchbox.com" ]
matthew@torchbox.com
e8cea9acda065d1fcea55a4d7e4ee7aad79b23d1
7e35844020415c5fe939f1f6e9cb95b77807207f
/scripts/data_downloader.py
f89bbaadaf7c8ecbaa40f69670fc53a814f4926b
[]
no_license
mgmohsen/cs273a-final-project
58851de0be9fd0b75827303e6e8e7693d8e0c191
63b2da71ed1cf988ed4bf539d108f86baa2eec45
refs/heads/master
2021-04-26T23:13:13.465599
2018-03-05T04:08:48
2018-03-05T04:08:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
658
py
#!/usr/bin/python ''' Script name: data_downloader.py Usage: python data_downloader.py (python2) ''' import os DATA_DIR = os.path.join("..", "data") OUTPUT_FILE = os.path.join(DATA_DIR, "sequences") URL = '"https://enhancer.lbl.gov/cgi-bin/imagedb3.pl?page_size=100;show=1;search.result=yes;search.form=no;form=searc...
[ "jesikmin@stanford.edu" ]
jesikmin@stanford.edu
21aef77080f22aacd54a52044dcf885d2e434609
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/MbbX7qJJeEnQu9bKr_18.py
4cf3767e88b19550185d631b5c9c8b83d15e139d
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
171
py
def max_occur(text): a=text.count(max(text,key=lambda x:text.count(x))) if a>1: return list(set([i for i in text if text.count(i)==a])) return "No Repetition"
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
d422948d28301c4ec30c8323326a64d1257fbcf5
851433ca0689cdcddd1650c41989a35791052732
/firstone/migrations/0020_auto_20170403_0643.py
3c95e723c08f78902dbf1d3bb722c017829ceb1f
[]
no_license
prashantspandey/plantshomeweb
96f1f61ad488d77515058464bbb236e1bf2e1ea0
6829165d9af821641574f8d3d2f37b94daddde29
refs/heads/master
2021-01-19T01:16:42.750315
2017-04-04T21:31:44
2017-04-04T21:31:44
87,236,724
0
0
null
null
null
null
UTF-8
Python
false
false
472
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-04-03 01:13 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('firstone', '0019_auto_20170403_0640'), ] operations = [ migrations.AlterFie...
[ "prashants_pandey@outlook.com" ]
prashants_pandey@outlook.com
96d973ce50ed4a1005d6071c02f09f5311adf441
a059f799d6f665b8a0df186765ee30907b716d67
/WebContent/algorithm/CCIM/gorithm/Degree_1.py
0f8cf2d8c3d6daebf3e8b6b3d9c740a0d923bf34
[]
no_license
dugzzuli/SpringNMF
409221e115a0a78fee181b9a342c104075261f4b
be956a2f7a16ba6e491eafaa08b00ffe46e474b1
refs/heads/master
2023-03-12T10:41:54.102589
2019-08-11T14:10:42
2019-08-11T14:10:42
166,543,023
0
0
null
2023-02-22T05:09:12
2019-01-19T12:13:42
JavaScript
UTF-8
Python
false
false
2,555
py
#!/usr/bin/env python # coding=utf-8 import networkx as nx import matplotlib.pyplot as plt #import graphviz #from Queue import PriorityQueue import random import Evaluation class Degree_Heuristic(): def __init__(self, graph_path): self.graph, self.num_node, self.num_edge = self.load_graph(graph_path) ...
[ "bingwei2642@qq.com" ]
bingwei2642@qq.com
3aa0dcdf26dae00f930adfa64cf22511d44d109d
6c9ab764b8eb9a4f714505927f3818ee9b4c5bf8
/zephyr/zmake/tests/test_project.py
03c9d3a91740e73a6d3ffcc32a535d91693cee5d
[ "BSD-3-Clause" ]
permissive
dp-glitch/chrome-ec
5042258465417c72f644715bf30b4fcbbb4b7321
3dacf9b4b084bb65c242e64f1b40626ef226f733
refs/heads/main
2023-03-01T20:07:46.419933
2021-02-12T18:23:22
2021-02-12T19:58:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,993
py
# Copyright 2021 The Chromium OS 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 hypothesis import hypothesis.strategies as st import pathlib import string import tempfile import zmake.project board_names = st.text(alphabet=s...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
90688f7ada8f635503671b87fa3250377cfb8c24
8bc4e3f82a1bfd1587630b9405e7b883626ef2e1
/zcatalogquery.py
66b6cb46aedc46aac40305a1abbb23857f6db30d
[]
no_license
nuxeo-cps/products--CPSLuceneCatalog
a7bec49b730bb871ab5ba2ba49589eb53c14f2ac
e57772c36eca51b4c9d08565cc9238866552500d
refs/heads/main
2023-01-23T11:03:25.833385
2010-01-01T16:44:32
2010-01-01T16:44:32
317,961,739
0
0
null
null
null
null
UTF-8
Python
false
false
4,022
py
# (C) Copyright 2006 Nuxeo SAS <http://nuxeo.com> # Author: Julien Anguenot <ja@nuxeo.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as published # by the Free Software Foundation. # # This program is distributed in the hope...
[ "devnull@localhost" ]
devnull@localhost
cda4266a472acb89dc4d1f1b7f03b19cc4550592
a99a44aee5cfc5e080f6d83d2bcc1c3d273a3426
/scripts/outgoing/wxc_iarwis_traffic.py
a94ec5111322feb0e699d69514849dd4ccdefe78
[ "MIT" ]
permissive
ragesah/iem
1513929c8bc7f254048271d61b4c4cf27a5731d7
8ed970d426bddeaa3e7ded593665d22f0f9f6e87
refs/heads/main
2023-08-20T20:01:15.480833
2021-10-12T15:44:52
2021-10-12T15:44:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,095
py
""" Dump out a file of the current RWIS traffic data for Iowa, please """ import os import subprocess import datetime from psycopg2.extras import DictCursor from pyiem.util import get_dbconn def main(): """Go Main Go""" pgconn = get_dbconn("iem", user="nobody") icursor = pgconn.cursor(cursor_factory=Dict...
[ "akrherz@iastate.edu" ]
akrherz@iastate.edu
ba85d79f54e0beee8cedacb79e12ad40014bf3d5
facb8b9155a569b09ba66aefc22564a5bf9cd319
/wp2/merra_scripts/03_model_fitting/merraRF882/247-tideGauge.py
f72644fccb82951900eb5fc18f6f697dcedb2275
[]
no_license
moinabyssinia/modeling-global-storm-surges
13e69faa8f45a1244a964c5de4e2a5a6c95b2128
6e385b2a5f0867df8ceabd155e17ba876779c1bd
refs/heads/master
2023-06-09T00:40:39.319465
2021-06-25T21:00:44
2021-06-25T21:00:44
229,080,191
0
0
null
null
null
null
UTF-8
Python
false
false
7,456
py
# -*- coding: utf-8 -*- """ Created on Mon May 4 15:51:30 2020 This program is designed to validate a Random Forest model by using the KFOLD method @author: Michael Tadesse """ #import packages import os import glob import numpy as np import pandas as pd from sklearn import metrics from scipy import stats import se...
[ "michaelg.tadesse@gmail.com" ]
michaelg.tadesse@gmail.com
f59f48ec418dc3e0409dc4c9c6bf0e24c544163c
72b00923d4aa11891f4a3038324c8952572cc4b2
/python/test/gui/t_text.py
fe849e6136050e40877c3d4b70b1a20e79601b0f
[]
no_license
taowuwen/codec
3698110a09a770407e8fb631e21d86ba5a885cd5
d92933b07f21dae950160a91bb361fa187e26cd2
refs/heads/master
2022-03-17T07:43:55.574505
2022-03-10T05:20:44
2022-03-10T05:20:44
87,379,261
0
0
null
2019-03-25T15:40:27
2017-04-06T02:50:54
C
UTF-8
Python
false
false
476
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import tkinter class App(): def __init__(self): self.root = tkinter.Tk() self.root.geometry('1024x768') text = tkinter.Text(self.root) text.insert(tkinter.END, 'hello....\n') text.insert(tkinter.END, 'world....\n') ...
[ "taowuwen@gmail.com" ]
taowuwen@gmail.com
c55e1298befddf76a60bad550b091c051751ec70
553b34a101c54090e68f540d96369ac7d5774d95
/interview/leetcode/test_zig_zag_conversion.py
4de0011a827675550af9e69f5ba7ee204f603047
[ "MIT" ]
permissive
topliceanu/learn
fd124e1885b5c0bfea8587510b5eab79da629099
1c5b1433c3d6bfd834df35dee08607fcbdd9f4e3
refs/heads/master
2022-07-16T19:50:40.939933
2022-06-12T15:40:20
2022-06-12T15:40:20
21,684,180
26
12
MIT
2020-03-26T20:51:35
2014-07-10T07:22:17
JavaScript
UTF-8
Python
false
false
773
py
# -*- coding: utf-8 -*- import unittest from zig_zag_conversion import convert2 class TestZigZagConversion(unittest.TestCase): def test_convert(self): tests = [ ("PAY", -1, "PAY"), ("PAY", 1, "PAY"), ("PAY", 2, "PYA"), ("PAYPAL", 2, "PYAAPL"), (...
[ "alexandru.topliceanu@gmail.com" ]
alexandru.topliceanu@gmail.com
6c92eca327b12ba8b49516dca61fc5f8cfd3d8a1
1fea8e85acb371c7c26d8cda77b1e7e193b0dc84
/function_scheduling_distributed_framework/function_result_web/functions.py
9725f370177fe28bfe179cb4e412ad0958391b3a
[ "Apache-2.0" ]
permissive
alex-testlab/distributed_framework
05c15805ff962f7eec4d990c63f0d1e0f53903bd
7ea456195de11256b221085e14961209aa6016ee
refs/heads/master
2023-06-17T13:27:50.834311
2021-07-13T07:56:07
2021-07-13T07:56:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,699
py
# -*- coding: utf-8 -*- # @Author : ydf # @Time : 2019/9/19 0019 9:48 import datetime import json from pprint import pprint import time from flask import jsonify from function_scheduling_distributed_framework import nb_print from function_scheduling_distributed_framework.utils import time_util, decorators, LoggerM...
[ "909686719@qq.com" ]
909686719@qq.com
50c88147e42a515a0884a98f86fd536457cdec87
04eccfdfe5b34ca508fc202538dc5a8c800765c9
/test_wework/testcase/test_addmember.py
8197392122d7b1014726ee5e484960e49875e0d7
[]
no_license
cyg2695249540/WeWorkRequest
1403e356333553cbb32c6d56b211bb043df629e4
f9d0f7c9ecf4fbcb8e81b54db3ff8c85f66ec80a
refs/heads/master
2023-01-09T19:37:33.306404
2020-10-22T10:18:53
2020-10-22T10:18:53
305,624,947
0
0
null
null
null
null
UTF-8
Python
false
false
1,964
py
# !/usr/bin/env Python3 # -*- coding: utf-8 -*- # @FILE : test_addmember.py # @Author : Pluto. # @Time : 2020/10/21 10:26 import allure import pytest import yaml from test_wework.page.main_page import MainPage def get_datas(): with open("../datas/addcontact.yml", encoding="utf-8") as f: contact...
[ "2695249540@qq.com" ]
2695249540@qq.com
385742bc03edfe8c29dd479c9b5c5ff592ebd5fe
de64b143a346585f51590bd674e8d13bbc672386
/algorithm/2023/0419_846_Hand_of_Straights/Junghyeon.py
359d971528380d3410be9e6ecd59674a83e98a8a
[]
no_license
ai-kmu/etc
304ec20f59e4026025abdcbcae21863c80630dcb
9c29941e19b7dd2a2037b110dd6e16690e9a0cc2
refs/heads/master
2023-08-21T16:30:31.149956
2023-08-21T16:26:19
2023-08-21T16:26:19
199,843,899
3
24
null
2023-05-31T09:56:59
2019-07-31T11:36:16
Jupyter Notebook
UTF-8
Python
false
false
1,036
py
''' 시간초과 코드 -> 딕셔너리를 순회할때 시간초과가 발생하는듯 함 ''' from collections import defaultdict class Solution: def isNStraightHand(self, hand, groupSize): # 총 길이가 size에 나누어 떨어지지 않으면 무조건 False if len(hand) % groupSize != 0: return False freq = defaultdict(int) # 리스트...
[ "noreply@github.com" ]
ai-kmu.noreply@github.com
9a18bfe40fcb4b107b424ec5103a73de5ada2cef
ad13583673551857615498b9605d9dcab63bb2c3
/output/instances/nistData/atomic/nonNegativeInteger/Schema+Instance/NISTXML-SV-IV-atomic-nonNegativeInteger-minInclusive-3-3.py
6661da54e46b8bdcecdf6661e665c8987eface1b
[ "MIT" ]
permissive
tefra/xsdata-w3c-tests
397180205a735b06170aa188f1f39451d2089815
081d0908382a0e0b29c8ee9caca6f1c0e36dd6db
refs/heads/main
2023-08-03T04:25:37.841917
2023-07-29T17:10:13
2023-07-30T12:11:13
239,622,251
2
0
MIT
2023-07-25T14:19:04
2020-02-10T21:59:47
Python
UTF-8
Python
false
false
350
py
from output.models.nist_data.atomic.non_negative_integer.schema_instance.nistschema_sv_iv_atomic_non_negative_integer_min_inclusive_3_xsd.nistschema_sv_iv_atomic_non_negative_integer_min_inclusive_3 import NistschemaSvIvAtomicNonNegativeIntegerMinInclusive3 obj = NistschemaSvIvAtomicNonNegativeIntegerMinInclusive3( ...
[ "tsoulloftas@gmail.com" ]
tsoulloftas@gmail.com
e837f5c62e42d29374db899967c75ada9c8d4d3d
7c15f211adc9e9eb9f66ccdd570c9f38dff7ea8d
/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ErrorWithSecrets/errorwithsecrets/aio/_configuration.py
e5658ad8898b68ef933029086fde070b114b6898
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
Azure/autorest.python
cc4bfbf91ae11535731cad37cedd6b733edf1ebd
a00d7aaa3753ef05cb5a0d38c664a90869478d44
refs/heads/main
2023-09-03T06:58:44.246200
2023-08-31T20:11:51
2023-08-31T20:11:51
100,315,955
47
40
MIT
2023-09-14T21:00:21
2017-08-14T22:58:33
Python
UTF-8
Python
false
false
2,042
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
fc5fa068359788d24a2ceb74829177680590e96f
1b9397c7ce1bda27310365010cb82f79836de35d
/bohubrihi/wsgi.py
6ece31655327d194cf03c5179ec9419564337f26
[]
no_license
bridgecrew-perf7/django_practice_deploy
842a97a1397b9febc33ffd4124c928db34eb4c33
70227a5ece6196bd00e5e266124b749738fe59d5
refs/heads/main
2023-06-03T08:20:38.319582
2021-06-29T12:27:37
2021-06-29T12:27:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
""" WSGI config for bohubrihi 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/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SET...
[ "mostasimmahmudtasim@gmail.com" ]
mostasimmahmudtasim@gmail.com
bb011c81cc3433cecaba09fdc54e24f12b3a79c3
cb6166192835e0580895f743975d2ae866effa00
/DjangoTest/venv/Scripts/pip-script.py
1d6a8c5a1babc43aee8250a8244dbcbec6fb4b1e
[]
no_license
luanshiyinyang/PythonWeb
d25ccf35a3eec6990295b276d721126bcdffc648
ba10163e8d71d23d123dee4946fb672fc6367337
refs/heads/master
2020-04-23T09:39:15.631088
2019-03-09T13:01:59
2019-03-09T13:01:59
171,075,985
1
0
null
null
null
null
UTF-8
Python
false
false
436
py
#!"D:\Work\Python workspace\PycharmProjects\PythonWeb\DjangoTest\venv\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.2','console_scripts','pip' __requires__ = 'pip==19.0.2' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|...
[ "1695735420@qq.com" ]
1695735420@qq.com
be159c4fdf08a9bf4bbbc61cff09f3bb4b246f02
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/323/usersdata/288/89117/submittedfiles/mdc.py
1556bec828721fca086695d9cc75889a41ad53c5
[]
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
188
py
# -*- coding: utf-8 -*- import math x=int(input('Digite um numero x: ')) y=int(input('Digite um numero y: ')) resto=(x%y) while (x%y)!=0: x=y y=resto resto=x%y print (x//y)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
1b5c73848b6e5a048caf3ac2827c71e1dc37ed1e
dd29c0fcf0675513a49934a6d7b407ba5747cb25
/myapp.py
c17321377599fea0e7a30ee8fb5ffdabbf75e87d
[]
no_license
TakashiSasaki/HelloWsgiref
7ea8c9b3b88a05d059aadd802f3bb24bdcfc0984
53fc839b453831565dd20538ac2636304befd901
refs/heads/master
2016-09-05T21:00:11.870943
2012-05-22T11:45:06
2012-05-22T11:45:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
975
py
from webapp2 import RequestHandler, WSGIApplication class MyHandler(RequestHandler): def get(self): print("abc") self.response.out.write("I'm a WSGI application built on webapp2 framework.") class MyApp(WSGIApplication): def __init__(self): WSGIApplication.__init__(self, [("/"...
[ "takashi316@gmail.com" ]
takashi316@gmail.com
437e88cf05fba57a8394186036e096f70554c195
8718f35bbd2e996fadbf0b9acc21ac100b98870d
/rbac/common/protobuf/role_state_pb2.py
5c4a827c5cbfe78739982df5a409ca98f6582698
[ "Apache-2.0" ]
permissive
cliveb/sawtooth-next-directory
fa10ef60845c3493d09d5ad9d5b8bbf83f736637
9dd288895c7d477efdd0ef77e6875f3d4f5ea439
refs/heads/master
2020-04-05T07:19:07.669528
2018-11-07T18:59:14
2018-11-07T22:17:21
null
0
0
null
null
null
null
UTF-8
Python
false
true
6,888
py
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: role_state.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _re...
[ "nadia.bahrami@gmail.com" ]
nadia.bahrami@gmail.com
2c973582f4a2bdd2f7e200d29172a778bbf268e2
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_233/ch52_2020_03_09_13_53_41_450335.py
d1b4c975f095a2b6f7f1d8b439d416d9b327b35c
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
158
py
def calcula_total_da_nota(preco, quantidade): total = 0 for i in len(preco): total += preco[i] * quantidade[i] return total
[ "you@example.com" ]
you@example.com
4b0aed87c232c0481baef3025ea4a10edd0e992f
f89d70fc8bf370ef4e2aa54c7ee0de3b4a053624
/troposphere/inspectorv2.py
0f2525538705de480ac8546b386c1902eb9ecb64
[ "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
yks0000/troposphere
a7622bff01c31f10dcb296d2ca353144e1d7f793
9a94a8fafd8b4da1cd1f4239be0e7aa0681fd8d4
refs/heads/main
2022-04-28T03:51:42.770881
2022-04-15T15:15:01
2022-04-15T15:15:01
482,753,190
1
0
BSD-2-Clause
2022-04-18T07:20:42
2022-04-18T07:20:42
null
UTF-8
Python
false
false
4,481
py
# Copyright (c) 2012-2022, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. # # *** Do not modify - this file is autogenerated *** from . import AWSObject, AWSProperty, PropsDictType from .validators import double, integer class DateFilter(AWSProperty): """ `DateFilter...
[ "mark@peek.org" ]
mark@peek.org
418884fab31de20648b4411a11b643850e46b96d
a35aa63643d3e9b6fc0c15204698062dfe679f09
/configs/constants/pay.py
71ad840317075836bd32d6a60f28f9df91cb3511
[]
no_license
caowenbin/dabai-cms-server
414ee5de901d19c076b7967996fce1f99d63a421
83d052798ea1d09ac2d663d0059a52a8fc585c43
refs/heads/master
2023-02-10T21:14:00.473629
2020-04-08T15:29:01
2020-04-08T15:29:01
247,930,455
2
0
null
2023-02-02T07:27:56
2020-03-17T09:36:44
JavaScript
UTF-8
Python
false
false
564
py
# coding: utf-8 from baseenum import Enum, constant_doc __author__ = 'bin wen' @constant_doc class PayModel(Enum): """ 支付方式 """ PlaneYeePay = u"易宝支付(离线)" OnlineYeePay = u"易宝支付(在线)" UnionPOSPay = u"刷卡支付(银联)" YMInPay = u"现金支付" WebWxPay = u"微信支付(WEB)" AppWxPay = u"微信支付(APP)" WebA...
[ "caowenbin@xuetangx.com" ]
caowenbin@xuetangx.com