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
2161826ebef3f20b9d68d34c1a16efae943d8107
a4c602f78fe9f48bf776db2e4887725e9f5b89a9
/ElectronicStation/vigenere-cipher/script.py
10a848c7dd52d8380cf42fc03928019e46718d43
[]
no_license
alexbaltman/c-h-e-c-k-i-o
6c79f848c265ef111dfc21df9024c011d4c8cb2c
af198d1e46c926c92d0bffbb79dc13928abb4444
refs/heads/master
2020-12-21T20:15:56.148316
2016-08-22T16:30:27
2016-08-22T16:30:27
59,263,964
0
0
null
null
null
null
UTF-8
Python
false
false
1,844
py
import string def decode_vigenere(old_decrypted, old_encrypted, new_encrypted): au = string.ascii_uppercase # Make all alphabets starting each alphabet at each old_encrypted letter myalphabs = [au[au.index(old_encrypted[e]):] + au[:au.index(old_encrypted[e])] for e, x in enumerate(old_encrypted)] # cra...
[ "aaltman@cisco.com" ]
aaltman@cisco.com
a54e9182a9806d16eea96847bb009e652bd0175f
0fc55f28bf0ce73b85c9d78ea9dc7c26a497fa69
/semana_09/exemplo5.py
db3ca7506d3d2c38eec4a847dda505a312173eb7
[]
no_license
valeriacavalcanti/IP-2020.2---R
6083f84b33242217e51e0a9a7440362179f3fcc3
d376b4c4b55f7042cc5ae1520296eae570154e75
refs/heads/main
2023-05-08T01:08:45.757978
2021-06-08T03:09:56
2021-06-08T03:09:56
341,371,219
0
2
null
null
null
null
UTF-8
Python
false
false
205
py
lista1 = [1,2,3,4] lista2 = [5,6,7,8] lista3 = lista1 + lista2 lista4 = lista3[4:len(lista3)] print(lista1, len(lista1)) print(lista2, len(lista2)) print(lista3, len(lista3)) print(lista4, len(lista4))
[ "valeria.cavalcanti@ifpb.edu.br" ]
valeria.cavalcanti@ifpb.edu.br
89a54f0409a8c1fb6796a0db13bf1ddb079da108
4eea6c0940439d4e78cd125c311d0e1a12a826ed
/messiah_ast_optimizer/core/modules/engine/_MType.py
0ad94f2b13afc7ef493feb14117a5ba9a7e9fc20
[]
no_license
chenyfsysu/PythonNote
5c77578423f95399b1eda7651dc73f1642ee3cb7
9b49eced10bab794ddf5452f18bba55d8ba24c18
refs/heads/master
2021-05-07T06:14:56.825737
2018-10-18T06:49:41
2018-10-18T06:49:41
111,645,501
1
0
null
null
null
null
UTF-8
Python
false
false
188
py
# -*- coding:utf-8 -*- import ast SRC = """ """ def setup(loader): module = ast.parse(SRC) module.__preinit__('MType', '', None, internal=True) loader.setupEngine('MType', module)
[ "chenyfsysu@gmail.com" ]
chenyfsysu@gmail.com
0df34d353192d5fef1e803c4882dc034b0486506
c6ae5d4c9b2a3acef09ee8254e1c1b67bc255b56
/okex/v3/lever_api.py
e9dc06f2472242193aa9fd0e8fe4933c69ce49a7
[ "MIT" ]
permissive
PattonChen/okex-py
ce36a4ded7cb051a7167e3ba9aeb88bc4e0417f3
cced7f1419da0940a2200ce66d62b4f9539949f2
refs/heads/main
2023-05-04T06:00:38.540463
2021-05-16T08:30:42
2021-05-16T08:30:42
367,833,565
1
0
MIT
2021-05-16T09:14:59
2021-05-16T09:14:59
null
UTF-8
Python
false
false
5,716
py
from .client import Client from .consts import * class LeverAPI(Client): def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, test=False): Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, test) # query lever account info def get_account_info(s...
[ "1103870790@qq.com" ]
1103870790@qq.com
669413994dd729e21c815dc41d86f03bc5e61349
39feffd3e6011bdcfd6865098f998125533e074e
/examples/clean_snippet.py
933a760faddd266d2ea17fe5e8874d1cdc63fc40
[ "MIT" ]
permissive
daemon/pywikiclean
7c09d27c4a085bb80aea1f037a09bd6bde168937
b680833ff0692a73cd0906cd4d3b052e5c0d8aa1
refs/heads/master
2020-04-26T07:41:47.112488
2019-09-10T14:34:35
2019-09-10T14:34:35
173,401,031
1
0
null
null
null
null
UTF-8
Python
false
false
642
py
import wikiclean def main(): with open("snippet.txt") as f: content = f.read() print("Original:") print(content) print("=" * 100) print("WikiClean output:") print(wikiclean.clean(content)) try: import unwiki print("=" * 100) print("UnWiki output:") p...
[ "r33tang@uwaterloo.ca" ]
r33tang@uwaterloo.ca
35738ddfbf7028a3f551cb434636d62fa07d2dfc
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03463/s085326622.py
ebd487cec6430cb74c146080f7c7e83915ddb0d0
[]
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
151
py
N, A, B = map(int, input().split()) while True: if abs(B-A)%2 == 1: print("Borys") break elif abs(B-A)%2 == 0: print("Alice") break
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
a800eb62a041d28359785ba4758ffa83d1819747
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02772/s427190657.py
9584e77bc0207c38e9e0e08be0a7c966fb9ce881
[]
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
204
py
from sys import exit N = int(input()) for i in input().split(): if int(i) % 2 == 0: if int(i) % 3 != 0 and int(i) % 5 != 0: print('DENIED') exit() print('APPROVED')
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
3c7d0e89279a7912892f4fbf0f8d9f53a0de47b7
42f7487ebb78d2ef870b39a32816a0e9e718aa72
/ordermanager/migrations/0008_auto_20201222_1713.py
d59fc23bae7dca53a324b05b0530cf9ba72cdae6
[]
no_license
w3kernel/sokalbikal
83112457f2f974a693ac98c31ed2acd958646c5d
72d2856e76998653e73c6aff17833446a019d1d8
refs/heads/master
2023-02-04T05:52:34.934714
2020-12-24T10:59:11
2020-12-24T10:59:11
295,072,789
0
0
null
2020-09-22T11:28:52
2020-09-13T03:47:05
JavaScript
UTF-8
Python
false
false
929
py
# Generated by Django 3.1.1 on 2020-12-22 11:13 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ('ordermanager', '0007_auto_20201222_1451'), ] operations = [ migrations.Re...
[ "bmshamsulhaq65@gmail.com" ]
bmshamsulhaq65@gmail.com
5f070aca367298b792b51d0e2c847d08b431d386
38daa22e319240c649d9955fa44f2777bc21c91c
/const.py
fac5b923d3aedea3a5a48a09b566a4c094d7fa6f
[]
no_license
duk1edev/weatherbot
c9a32db995b3de8f144cf841cadc4c721210800b
a1510372bf3a317daadefced7bd330ab1237a734
refs/heads/main
2022-12-31T12:09:44.026726
2020-10-25T23:52:53
2020-10-25T23:52:53
307,117,753
0
0
null
null
null
null
UTF-8
Python
false
false
457
py
import settings TOKEN = settings.TOKEN URL = 'https://api.telegram.org/bot{TOKEN}/{method}' UPDATE_METH = 'getUpdates' SEND_METH = 'sendMessage' MY_ID = 1113088870 UPDATE_IO_FILE_PATH = 'update_id' with open(UPDATE_IO_FILE_PATH) as file: data = file.readline() if data: data = int(data) UPDATE_...
[ "duk1e.ptc.ua@yandex.ru" ]
duk1e.ptc.ua@yandex.ru
f75653a205e233aecbc6c79ada0687c0891725ae
f674e18d5041459e3f8e55b5f059fb6d29b0c7fe
/src/spaceone/inventory/connector/aws_s3_connector/schema/data.py
3bed0ab626182032af47a9813d3ee4b8707b7487
[ "Apache-2.0" ]
permissive
choonho/plugin-aws-cloudservices
b1d43a5748f4d4641f9d294c2747a461bc40fabf
9739e5eebd63bab0a3e2007d166a77a6d03c6c2c
refs/heads/master
2022-11-25T13:03:01.941453
2020-08-04T07:48:15
2020-08-04T07:48:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,883
py
import logging from schematics import Model from schematics.types import ModelType, StringType, IntType, DateTimeType, serializable, ListType, BooleanType _LOGGER = logging.getLogger(__name__) TOPIC_EVENTS = ("s3:ReducedRedundancyLostObject", "s3:ObjectCreated:*", "s3:ObjectCreated:Put", "s3:ObjectCreated:Post", ...
[ "bluese@megazone.com" ]
bluese@megazone.com
cf5205a5e303701db034f9a75d4c8aa025c1c1ec
16b7bd707f14ffc4ee9b414b16a399d1b43cbc6e
/094.py
7789e915c102d3a489d08bfb0a2fd84136458067
[]
no_license
edson-onishi/cursoemvideo
15c5881a33e9e838b10a11903bbe17f4fc14b8de
b3a46fa34c14ffc829d367ca97f5e376d901ad9c
refs/heads/master
2023-01-29T00:14:19.505656
2020-12-09T14:49:59
2020-12-09T14:49:59
162,749,735
0
0
null
null
null
null
UTF-8
Python
false
false
1,314
py
''' Crie um programa que leia nome, sexo e idade de várias pessoas, guardando os dados de cada pessoa em um dicionário e todos os dicionários em uma lista. No final, mostre: A) Quantas pessoas foram cadastradas B) A média de idade C) Uma lista com as mulheres D) Uma lista de pessoas com idade acima da média''' mul...
[ "edson@hotmail.com" ]
edson@hotmail.com
2247d8c76e8eaa9278e7c38f73860a04692b4b03
c815d86042fb55d6c7501206dd040eda0837a777
/commonAST/astMatcher.py
ae7245a2cea0657ca730bb5ab8c968621c3cc3a1
[ "BSD-3-Clause" ]
permissive
paawan57/AnalysisTools
76ae48d99e6244faf464ef0a835e03b7956fd9c6
d4c96dee2c2805e398a08b0d65616c54f65d228e
refs/heads/master
2021-04-18T18:41:23.059987
2018-02-19T23:52:29
2018-02-19T23:52:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,142
py
import ast import sys file = sys.argv[1] buffer = open(file).read() f = open('out.txt', 'w') tree = ast.parse(buffer) #exec(compile(tree, "<ast>", "exec")) class Visitor(ast.NodeVisitor): def chainedCalls(self, node, output, strlevel, strPrevLevel): if(isinstance(node, ast.Call)): if(hasattr(node.func, "valu...
[ "bmcutler@users.noreply.github.com" ]
bmcutler@users.noreply.github.com
d0d5758f640c7a0ee2b29d005dc2d2050aac3701
9a73c54526082c27e5c5d88bd54950a589233658
/GUI/qt/MineCode/Demo3py.py
9c95338ebb3d672153925e27617935fa2099c489
[ "Apache-2.0" ]
permissive
archu2020/python-2
af78b65ed7f3ad17f71d4f8a97c002df86908298
19c626ca9fd37168db8a7ac075fd80c8e2971313
refs/heads/master
2022-12-27T12:08:44.316760
2020-10-02T15:46:27
2020-10-02T15:46:27
300,660,839
0
0
Apache-2.0
2020-10-02T15:46:28
2020-10-02T15:37:58
Python
UTF-8
Python
false
false
1,956
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'Demo3.ui' # # Created by: PyQt5 UI code generator 5.9 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): M...
[ "767786685@qq.com" ]
767786685@qq.com
fd6c51d7fa871a56f1505935a79a08dc9d8ad069
7f5532af452d7f3dbb6b015f67a0cd72d0d57f0d
/app/snippets/urls/drf_mixin.py
87c1014ddeeb53d4905eff286f7036d4e1a2f717
[]
no_license
Fastcampus-WPS-9th/DRF-Tutorial
b80dc6b1bb0a87701176a1da89a69e81dea8f7f0
1b94c00aff3fdcc5b5af594fb3b68e755e15914a
refs/heads/master
2020-04-05T19:34:46.810464
2018-11-14T03:40:18
2018-11-14T03:40:18
157,141,207
0
2
null
null
null
null
UTF-8
Python
false
false
203
py
from django.urls import path from ..views import drf_mixin as views urlpatterns = [ path('snippets/', views.SnippetList.as_view()), path('snippets/<int:pk>/', views.SnippetDetail.as_view()), ]
[ "dev@lhy.kr" ]
dev@lhy.kr
92b148f74468e10e4defdaf6597394b9003e6f01
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4079/codes/1643_2447.py
530e287e77a5b5cad135e6465b85a373f604deba
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
184
py
preco=float(input("preco:")) pagamento=float(input("pagamento:")) if(preco > pagamento): print("Falta",round(preco-pagamento,1)) else: print("Troco de ", round(pagamento - preco,1))
[ "jvlo@icomp.ufam.edu.br" ]
jvlo@icomp.ufam.edu.br
4dff126e7a2b8ba03f4b6bec67a0a6979a008810
fd3c67a0eb7b525c82176298c17f612b3d690934
/logs/signals.py
468cdfd9a531b8c299e5328e5a51da018bba33f3
[ "MIT" ]
permissive
betagouv/e-controle
1dc1af01437c9b8d31535b4f589c58f52c1bb353
f35012aa266459b708f7a88032041d45c251a04a
refs/heads/develop
2023-01-13T01:10:52.153777
2021-11-04T10:37:45
2021-11-04T10:37:45
157,193,082
9
10
MIT
2023-01-03T19:33:28
2018-11-12T10:03:43
CSS
UTF-8
Python
false
false
629
py
from django.db.models.signals import post_save from django.dispatch import receiver from django.contrib.admin.models import LogEntry from .actions import add_log_entry @receiver(post_save, sender=LogEntry) def log_admin_action(sender, instance, **kwargs): """ Add a log entry after for admin actions """ ...
[ "sylvain@lazybird.co" ]
sylvain@lazybird.co
fb5c86a699c83df3fa255e7ae3c2d0a6f15b4c9d
b7431915edd842a4f2fc5bd8299dd8e59e14ddf3
/source/accounts/migrations/0005_auto_20200328_1534.py
bce023649c00310a030ce8b6dae3904cf356f3d5
[]
no_license
aydarbekov/poputka
1ea2f946ecf5ae473996ea9718fffe77dc76447a
0e7c2a58c1c0e7ccc28fd51d0ce3b8b5cf2c9ba3
refs/heads/master
2022-12-15T12:08:50.082751
2020-04-29T16:17:01
2020-04-29T16:17:01
249,477,180
0
3
null
2022-11-22T05:25:24
2020-03-23T15:59:36
Python
UTF-8
Python
false
false
445
py
# Generated by Django 2.2 on 2020-03-28 15:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0004_auto_20200328_0537'), ] operations = [ migrations.AlterField( model_name='profiles', name='photo', ...
[ "akyl.aydarbekov@gmail.com" ]
akyl.aydarbekov@gmail.com
dcf5b9a2f9c16d3403cfbef294a4f15920f339d1
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/work/child/do_last_life_at_year.py
30ea8dbf85a4afa00467b1655507a67067a7292b
[]
no_license
JingkaiTang/github-play
9bdca4115eee94a7b5e4ae9d3d6052514729ff21
51b550425a91a97480714fe9bc63cb5112f6f729
refs/heads/master
2021-01-20T20:18:21.249162
2016-08-19T07:20:12
2016-08-19T07:20:12
60,834,519
0
0
null
null
null
null
UTF-8
Python
false
false
212
py
#! /usr/bin/env python def give_hand(str_arg): year_or_last_man(str_arg) print('problem') def year_or_last_man(str_arg): print(str_arg) if __name__ == '__main__': give_hand('few_day_or_fact')
[ "jingkaitang@gmail.com" ]
jingkaitang@gmail.com
5d07a9682bef085c07b0bbaf47cfbfc7f6042305
8f5ce9cb41649cfcfe4026200c3ec48630cec7fa
/Interview/TechieDelight/Trees/tree_double_ll.py
03e5a64afae6da098af534c6454614393d988b16
[]
no_license
karbekk/Python_Data_Structures
2d44ca0e12355b9b587eefa8a6beeba0ffcf3407
87e0ece2893d19ee92f6e72194cab6dcb4a3c4e7
refs/heads/master
2020-03-28T07:32:41.649465
2019-08-08T03:37:09
2019-08-08T03:37:09
147,908,721
0
0
null
2018-09-08T06:40:50
2018-09-08T06:40:50
null
UTF-8
Python
false
false
1,033
py
from Linked_Lists.Doubly_LL.LinkedList import LinkedList class NewNode(object): def __init__(self,value): self.data = value self.left = None self.right = None def insert(self,data): if self.data is None: self.data = data else: if data < self.data...
[ "kartikshrikanthegde@gmail.com" ]
kartikshrikanthegde@gmail.com
82ffdf62a729f612c405075ab59b434bc652b394
3c000380cbb7e8deb6abf9c6f3e29e8e89784830
/venv/Lib/site-packages/cobra/modelimpl/trig/rtpolcatalogscheduler.py
f0dcb952f006d1b0fcaf0039d86bb861866dd1ae
[]
no_license
bkhoward/aciDOM
91b0406f00da7aac413a81c8db2129b4bfc5497b
f2674456ecb19cf7299ef0c5a0887560b8b315d0
refs/heads/master
2023-03-27T23:37:02.836904
2021-03-26T22:07:54
2021-03-26T22:07:54
351,855,399
0
0
null
null
null
null
UTF-8
Python
false
false
4,574
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "bkhoward@live.com" ]
bkhoward@live.com
183ad9d8b69d7f489a40d48a5ea2f0ddbd339665
ab2e945f65353e12a9d2e8207545d4122508a4c5
/env/bin/rstpep2html.py
1ecf0bf3238d5c72eadaa7085540c8eb5a587a61
[]
no_license
ietuday/UberEat-Demo-python
5bddf390372462792f14a54908cf40c4db6d699d
bc0bfde2720c6358081c9b1771efddd7098c1ed8
refs/heads/master
2023-03-21T10:44:50.153579
2021-03-03T07:43:09
2021-03-03T07:43:09
344,042,827
0
0
null
null
null
null
UTF-8
Python
false
false
706
py
#!/home/uday1/projects/UberEats-demo/env/bin/python3.8 # $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing HTML from PEP (Python Enhancement Pr...
[ "udayaditya.singh@gmail.com" ]
udayaditya.singh@gmail.com
a0bb0727068e8b1365fae5f08c62b010b83d440d
35817ecb87911979b0eb4ecda2e1857eb2e67c3a
/mystore/mystore/asgi.py
892877da922b80c43c7117aee75b808b3f66109d
[]
no_license
Vadym-Hub/Python_Django_examples
902e7e1ac5531409dca2dd3a427ee35ef59f2810
00b9b4902c3f0af36ea141b6474aecb1f3168b4e
refs/heads/master
2023-04-19T12:42:49.819553
2021-05-09T15:08:31
2021-05-09T15:08:31
313,320,998
0
0
null
null
null
null
UTF-8
Python
false
false
391
py
""" ASGI config for mystore project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTI...
[ "webratel@gmail.com" ]
webratel@gmail.com
c36f45e140de9ee9cdc1b7eba7201678deaf55b2
b49893d7a458ed4d0d9881cbe6ec669dfabd4e54
/workspace/exercise_02_sentiment.py
e88c786454bbb7055eba4a575570c7c5bd5e5531
[]
no_license
SuiOni/TextMiningWithSklearn
7241e9b895d38c3af29b190369915b74834b6883
2d63491df869b755e526fd13fae852a626595d17
refs/heads/master
2020-03-17T03:08:32.703790
2014-03-30T23:56:31
2014-03-30T23:56:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,954
py
"""Build a sentiment analysis / polarity model Sentiment analysis can be casted as a binary text classification problem, that is fitting a linear classifier on features extracted from the text of the user messages so as to guess wether the opinion of the author is positive or negative. In this examples we will use a ...
[ "songfan.yang@gmail.com" ]
songfan.yang@gmail.com
46001fe2141ac2d27dcb5343103a80e8ad68a73a
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/sdssj9-10_153831.32+295731.1/sdB_sdssj9-10_153831.32+295731.1_lc.py
914d7c817fe18689219cee150594016b5cd1585d
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
UTF-8
Python
false
false
377
py
from gPhoton.gAperture import gAperture def main(): gAperture(band="NUV", skypos=[234.6305,29.958639], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_sdssj9-10_153831.32+295731.1/sdB_sdssj9-10_153831.32+295731.1_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.01...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
4cd7b87c1b1420d95f043cbd7c39dec332a8cb4a
b7d13929749d1f09383b27ab76bdafcc4c9c540c
/python/app/thirdparty/oneforall/common/request.py
2d40306710adc7e50fdecdaa9a601e947d8369d3
[ "MIT", "GPL-3.0-only", "Python-2.0" ]
permissive
taomujian/linbing
664244dd31b241c01b532031dc52bb2cee6c4b77
b6edb06fc4e53a90c756459d7c03f8b33692b42b
refs/heads/master
2023-06-21T22:01:43.604719
2023-06-18T09:05:42
2023-06-18T09:05:42
243,150,459
545
127
MIT
2022-12-08T09:16:15
2020-02-26T02:32:06
Python
UTF-8
Python
false
false
7,318
py
import json from threading import Thread from queue import Queue import tqdm import requests from bs4 import BeautifulSoup from app.thirdparty.oneforall.common import utils from app.thirdparty.oneforall.config.log import logger from app.thirdparty.oneforall.common.database import Database from app.thirdparty.oneforal...
[ "taomujian@protonmail.com" ]
taomujian@protonmail.com
dbcefa2a9575e418deb22a9a26ffe3eadea88a83
0fc4f615115fe2da514f17530cc46555dd0f14c3
/tests/loading/definition/test_parameters_validation.py
239964cf34aba92b04e2e644da55b0f49194b581
[ "MIT" ]
permissive
ossdev07/flex
c63469e00412a070bea2acaa6b652792bf891280
7486c2295dee87ae0663a35820c749ce4cf42989
refs/heads/master
2020-11-27T01:51:16.238689
2019-12-05T05:40:53
2019-12-05T05:40:53
229,262,607
0
0
MIT
2019-12-20T12:39:54
2019-12-20T12:39:53
null
UTF-8
Python
false
false
2,398
py
import pytest from flex.error_messages import MESSAGES from flex.exceptions import ValidationError from flex.loading.definitions import ( definitions_validator, ) from tests.factories import ( ParameterFactory, ) from tests.utils import ( assert_path_not_in_errors, assert_message_in_errors, ) def te...
[ "piper@simpleenergy.com" ]
piper@simpleenergy.com
dfa1a01cf1690756fed028522093656ebee66739
57191d51710949d3c7422cdf3a37eb4306641fd2
/week9-SQLAlchemy/1-Money-In-The-Bank/sql_manager.py
a253ad49e8469a2f9cac057bc09e0dffeeaae096
[]
no_license
HackBulgaria/Programming101-3
44ac92420fe830a65297a803a8dc4221719d7aaf
df32f9f6e726c00877b9dc2893455aaa166b1563
refs/heads/master
2020-06-03T07:53:49.642142
2015-08-05T12:36:53
2015-08-05T12:36:53
29,923,608
26
47
null
2015-05-16T10:42:54
2015-01-27T16:43:25
Python
UTF-8
Python
false
false
1,379
py
import sqlite3 from Client import Client conn = sqlite3.connect("bank.db") cursor = conn.cursor() def create_clients_table(): create_query = '''create table if not exists clients(id INTEGER PRIMARY KEY AUTOINCREMENT, username TEXT, password TEXT, balance RE...
[ "radorado@hackbulgaria.com" ]
radorado@hackbulgaria.com
7f4a411128d2438ec2f365f3425867de081f9928
ad69b52951c2f80d152b9ce2225b9a588f110deb
/test----.py
01b372aca6dccd784c6b0d7f994409df6269ce59
[]
no_license
hailangzz/fan_health_program
47c70fe884ec8e28b20be63f99d5c3004bb2a261
137d8a1a2271a44c68fe5a5b2b4e367023c0efad
refs/heads/master
2020-03-19T16:03:13.442179
2018-06-09T07:47:34
2018-06-09T07:47:34
136,698,139
0
1
null
null
null
null
GB18030
Python
false
false
1,853
py
''' #cording=utf-8 from matplotlib import pyplot as plt #调节图形大小,宽,高 plt.figure(figsize=(6,9)) #定义饼状图的标签,标签是列表 labels = [u'第一部分',u'第二部分',u'第三部分'] #每个标签占多大,会自动去算百分比 sizes = [60,30,10] colors = ['red','yellowgreen','lightskyblue'] #将某部分爆炸出来, 使用括号,将第一块分割出来,数值的大小是分割出来的与其他两块的间隙 explode = (0.05,0,0) patches,l_text,p_text = pl...
[ "344267342@qq.com" ]
344267342@qq.com
719dafacd796577dc34e556be16deaed85225185
f7adda6c5ad3f8ab2ed05e1b0cb44ad36ba1e7a5
/Django-攻击案例/sqlinjecttion/front/views.py
fe8b8dbf963052ead56b176efc1342177d4415f4
[]
no_license
wmm98/python333
20e864107ed3c6b9c2e0dedf82412c238f1d6059
57ecec2e349e4cf028cb208902c8c63bab323557
refs/heads/master
2020-04-28T16:13:09.791550
2019-10-09T03:51:58
2019-10-09T03:51:58
175,402,940
0
0
null
null
null
null
UTF-8
Python
false
false
2,241
py
from django.shortcuts import render from django.db import connection # 场景一 # 实现一个根据用户id获取用户详情的视图。示例代码如下: def index(request): # http://127.0.0.1:8000/?user_id=1 user_id = request.GET.get("user_id") # 如果是传入 http://127.0.0.1:8000/?user_id=1 or 1=1就会打印所有的信息,因为1=1永远满足条件,返回数据库中全部的信息 context = {} if use...
[ "792545884@qq.com" ]
792545884@qq.com
2a1d2bfad982121139927b7a982b7bc99f8f60db
41c9da480875c2eb396afc39c72fe0ce0e85a00e
/__openerp__.py
e946e238a92c9294a652269aa30fb813dec02c5d
[]
no_license
yustas147/aol_tender
9b15311652b338f89b40be571ec66fec77f31712
3ba6064ee167fbe29f270db7695338148fde66ff
refs/heads/master
2020-07-22T11:56:28.179534
2016-12-06T15:22:24
2016-12-06T15:22:24
73,830,174
0
0
null
null
null
null
UTF-8
Python
false
false
1,427
py
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2011-Today Serpent Consulting Services Pvt. Ltd. # (<http://www.serpentcs.com>) # # This program is free software: you can redistribute it and/o...
[ "yustas@simbioz.com.ua" ]
yustas@simbioz.com.ua
895206035ebffde21895f6b313d4ee62bf028b96
f48f9798819b12669a8428f1dc0639e589fb1113
/multimedia/misc/libpgf/actions.py
a7520bd08e97cfc4a892ff9a101bbb93c7ba4bc6
[]
no_license
vdemir/PiSiPackages-pardus-2011-devel
781aac6caea2af4f9255770e5d9301e499299e28
7e1867a7f00ee9033c70cc92dc6700a50025430f
refs/heads/master
2020-12-30T18:58:18.590419
2012-03-12T03:16:34
2012-03-12T03:16:34
51,609,831
1
0
null
2016-02-12T19:05:41
2016-02-12T19:05:40
null
UTF-8
Python
false
false
570
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2009,2010 TUBITAK/UEKAE # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/copyleft/gpl.txt. from pisi.actionsapi import autotools from pisi.actionsapi import pisitools def setup(): pisitools.dosed("doc/Makefile.in"...
[ "kaptan@pisipackages.org" ]
kaptan@pisipackages.org
cd1e91e1d2454a665c3d15c9e5f13f8d39bf838b
785a4da8fa1ab76ccad5d32f71d72404803f4424
/linuxrouter.py
8f26676836672aaa4408883b6a4b26e633e00c40
[]
no_license
hanmingz/ese407
101e0a84c4e4cbb37d67ae9119dfa1ed680ce8f9
135223059e3ad04b6b0cd739bee2fb216e05fb83
refs/heads/master
2020-04-11T04:29:11.435399
2018-12-18T15:50:16
2018-12-18T15:50:16
161,513,360
0
0
null
2018-12-18T15:50:17
2018-12-12T16:13:47
Python
UTF-8
Python
false
false
1,878
py
from mininet.topo import Topo from mininet.net import Mininet from mininet.node import Node from mininet.log import setLogLevel, info from mininet.cli import CLI from mininet.link import TCLink class LinuxRouter( Node ): "A Node with IP forwarding enabled." def config(self, **params): super(LinuxRouter, self).con...
[ "None" ]
None
399c9ee243841d390c181284766763d05b4850f9
7cd6a7bc72f0026056a7238c0feea081bfff13a7
/bioprocs/scripts/sambam/pBamRecal.py
28d80418fdae574d4ee1d91b057f62f9253ea942
[ "MIT" ]
permissive
shijianasdf/biopipen
8d963ccca38e2a9d7a46582a5eec45c38924655c
d53b78aa192fd56a5da457463b099b2aa833b284
refs/heads/master
2023-08-18T18:28:03.306877
2019-12-31T16:17:35
2019-12-31T16:17:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,563
py
from sys import stderr from diot import Diot from os import path from bioprocs.utils import shell, mem2 from bioprocs.utils.poll import Poll from bioprocs.utils.shell import Shell from bioprocs.utils.reference import bamIndex infile = {{ i.infile | quote}} bamIndex(infile, samtools = None) outfile = {{ o.outfil...
[ "pwwang@pwwang.com" ]
pwwang@pwwang.com
4cdc4085931bbfbda21e368bdfcbdd588f9fd438
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_135/4036.py
f0567b6e24dfa524b3e974784be311c92fb476eb
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
748
py
__author__ = 'remi' filename = "A-small-attempt0.in.txt" amount = 0 row1 = set() row2 = set() f = open(filename, 'r') amount = int(f.readline()) for i in range(1, amount+1): n = int(f.readline()) for j in range(1, 5): if j == n: row1 = set(map(int, f.readline().split())) else: ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
97a04d528b41751ce0ed6992a5c1f3c3b92e54cb
5d302c38acd02d5af4ad7c8cfe244200f8e8f877
/Tree/114. Flatten Binary Tree to Linked List(Med).py
386e7b8aaeade693b3321643a30f27abee7d1899
[]
no_license
nerohuang/LeetCode
2d5214a2938dc06600eb1afd21686044fe5b6db0
f273c655f37da643a605cc5bebcda6660e702445
refs/heads/master
2023-06-05T00:08:41.312534
2021-06-21T01:03:40
2021-06-21T01:03:40
230,164,258
0
0
null
null
null
null
UTF-8
Python
false
false
759
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def flatten(self, root: TreeNode) -> None: """ Do not return anything, modify root in-place ...
[ "huangxingyu00@gmail.com" ]
huangxingyu00@gmail.com
8f4f6c1ad741b7552d055f3ffd3783ab8f1d4129
ad64ed744d8094e19cfe6ff1073f3849566c57fa
/Python_High_Level_Syntax/多线程threading/28_12.py
96b40a68b60e151d72a9a5bbecc639be5e0f527a
[]
no_license
FelixZFB/TLXY_study_note
91d1e59b7741b494af41f0ad394ed2a17861c683
4f31b031f46e62570ca1767ceac2c75d559ca75e
refs/heads/master
2020-04-14T21:05:13.003003
2019-04-18T08:54:26
2019-04-18T08:54:26
164,117,025
1
0
null
null
null
null
UTF-8
Python
false
false
1,203
py
# 生产者消费者实例 import time import threading import queue class Producer(threading.Thread): def run(self): global queue count = 0 while True: # 返回qsize的内容长度和1000比较 if queue.qsize() < 1000: for i in range(100): count = count + 1 ...
[ "18200116656@qq.com" ]
18200116656@qq.com
0ddfe0fafd47e894ef14d5d91e17f95709cd5d31
08180193c3e131c5b6d2cb0b13a74bc69ae46c67
/smooth_data
b0ae2ff3146187d6397b7db122c11f231d5c3fea
[]
no_license
LSaldyt/alarm-visualization
657bc9ff5060bc30739fe0c7b34c6d6a31f69b0e
b636a2d32d6fde8ec879703661e1b798b200ece0
refs/heads/master
2020-04-13T06:23:48.589817
2019-10-20T23:33:41
2019-10-20T23:33:41
163,019,510
0
0
null
null
null
null
UTF-8
Python
false
false
453
#!/usr/bin/env python3 import pandas from pprint import pprint alarmData = pandas.read_csv('raw_alarm_colony_45.csv') rows = list(alarmData.iterrows()) width = 10 side_width = width // 2 for i, row in rows: window = rows[max(0, i - side_width):i + side_width + 1] window = [series for index, series in window...
[ "lucassaldyt@gmail.com" ]
lucassaldyt@gmail.com
68722486a46af559c39214844e15a195a2ef3605
61c1def50e0b8886acee945c3bd1142ae388aefb
/proxy_ips/items.py
3f166ae77b4d1e5db3256705c19d5d9ecaa7f30f
[]
no_license
minhanghuang/scrapy_proxy
52218e3c7f0275e8e980f58fc9146882bce84c48
44b6e5bdb09a8a141b448a7361ad9f77d013c5ce
refs/heads/master
2022-05-13T20:45:19.814129
2019-05-02T02:25:47
2019-05-02T02:25:47
184,255,540
2
0
null
null
null
null
UTF-8
Python
false
false
341
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html import scrapy class ProxyIpsItem(scrapy.Item): http = scrapy.Field() ip = scrapy.Field() port = scrapy.Field() is_active = scrapy.Field() check_...
[ "mhesat@outlook.com" ]
mhesat@outlook.com
f57e4f9f067fb517237f2cad4091abff527d6905
074dcf2274f2864710264db115b840c838b64ffd
/leet_0367_valid_perfect_square.py
a39741f9f6cc45a4a3fd47af0033c9045f4b8fb6
[]
no_license
kkaixiao/pythonalgo2
212da2dac8d3a38fd06b0d1f5895cb9a768da43e
92b4b7c6b69d39bf79a9e20a9fc947304c2a1de5
refs/heads/master
2021-06-23T07:20:13.659422
2021-05-10T05:16:30
2021-05-10T05:16:30
224,455,645
2
1
null
null
null
null
UTF-8
Python
false
false
1,056
py
""" Given a positive integer num, write a function which returns True if num is a perfect square else False. Note: Do not use any built-in library function such as sqrt. Example 1: Input: 16 Output: true Example 2: Input: 14 Output: false """ class Solution: def isPerfectSquare(self, num: int) -> bool: ...
[ "show-key@qq.com" ]
show-key@qq.com
034668448b7d64153a1c68449257a40ec0a6d3ea
e23a4f57ce5474d468258e5e63b9e23fb6011188
/333_nuke/example/NUK236_NUKE_Tips_&_Tricks_for_TDs/class1/timelog.py
f38715cba45a1e05ecad9787934309828f8be602
[]
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
2,592
py
import os import threading import getpass import datetime import json import re import nuke import time CURRENT_USER = getpass.getuser() LOG_DIR = "/Users/hugoleveille/Desktop/logs" TIMER = 5 IDLE_TIME = 30 class Timelog(): def start_thread(self): Timelog.thread = threading.Timer( TIMER, self.write_jso...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
c8399bd67ff88a310ab5f5990b6f1e4dd1088b29
f098c361ee79bb8b7a8402fcf20b37f17fb36983
/Back-End/Python/External Libraries/Flask/Flask Main/Patter for Flask/dispatch_subdomain.py
28bf2056b4811d30eae4a45fc33b511a78cea4ad
[ "Apache-2.0", "LicenseRef-scancode-public-domain", "MIT" ]
permissive
rnsdoodi/Programming-CookBook
4d619537a6875ffbcb42cbdaf01d80db1feba9b4
9bd9c105fdd823aea1c3f391f5018fd1f8f37182
refs/heads/master
2023-09-05T22:09:08.282385
2021-10-31T11:57:40
2021-10-31T11:57:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,481
py
from threading import Lock from myapplication import create_app, get_user_for_subdomain from werkzeug.exceptions import NotFound class SubdomainDispatcher(object): def __init__(self, domain, create_app): self.domain = domain self.create_app = create_app self.lock = Lock() self.ins...
[ "58447627+Koubae@users.noreply.github.com" ]
58447627+Koubae@users.noreply.github.com
1fe16fc3fd0b2d38d7f3fa243e41482e9e146a23
4ec709b16e366c60a9c7f2f7696608b036825140
/san_joaquin/_parameters/node_SD_San_Joaquin_1A_PH_Requirement.py
82164379543fe13a654cd915b50c11b2550a16c5
[]
no_license
alanccai/sierra-pywr
19c7efc4485879a4ca35677fdb14b3c795829e02
4447c6247af5159030b3025f14c2397283c4fcd0
refs/heads/master
2020-08-19T10:17:30.590861
2019-10-15T20:33:45
2019-10-15T20:33:45
215,909,820
0
0
null
2019-11-15T17:54:23
2019-10-18T00:31:58
null
UTF-8
Python
false
false
721
py
from parameters import WaterLPParameter from utilities.converter import convert class node_SD_San_Joaquin_1A_PH_Requirement(WaterLPParameter): """""" def _value(self, timestep, scenario_index): return self.model.parameters['node/San Joaquin 1A PH/Turbine Capacity'].value(timestep, scenario_i...
[ "herr.rhein@gmail.com" ]
herr.rhein@gmail.com
4a08475ec034095dad1318ed759e0ede5a902058
9b1e97850f55d839c1c6f7d93187af90bf9120a5
/0x08-python-more_classes/3-rectangle.py
eacce391493cfe0b706060af32f59490e9bc01ac
[]
no_license
PilarPinto/holbertonschool-higher_level_programming
543271fb7f85a23745f54ac44e2fd1ef0ff452ce
8be531a14a280235c2a9cee7f072d88cea8b9921
refs/heads/master
2020-09-29T00:19:01.460334
2020-05-15T01:58:51
2020-05-15T01:58:51
226,900,539
0
0
null
null
null
null
UTF-8
Python
false
false
1,391
py
#!/usr/bin/python3 ''' Empty class Rectangle that defines a rectangle ''' class Rectangle: ''' class that will contain a description of rectangle ''' side = 0 def __init__(self, width=0, height=0): self.width = width self.height = height @property def width(self): ...
[ "piapintoch@unal.edu.co" ]
piapintoch@unal.edu.co
4b95fb39fdda2f3d7369775858614a6d4aea67f1
8d6ec0275afe856834bf10643e3b4b2cbcb318f4
/04-e-learning/educa/courses/admin.py
c7021400a8b22550dd10cfa20a0883d9b2a30ec7
[]
no_license
markronquillo/django-by-example
be35fbbc483440a11c440733931c146d56816c97
fa749e5077f64ac68f11c7b529e13ac097cb5bd0
refs/heads/master
2021-01-11T14:38:40.854636
2017-02-24T03:09:58
2017-02-24T03:09:58
80,184,667
0
0
null
null
null
null
UTF-8
Python
false
false
543
py
from django.contrib import admin from .models import Subject, Course, Module @admin.register(Subject) class SubjectAdmin(admin.ModelAdmin): list_display = ['title', 'slug'] prepopulated_fields = {'slug': ('title', )} class ModuleInline(admin.StackedInline): model = Module @admin.register(Course) class CourseAd...
[ "markronquillo23@gmail.com" ]
markronquillo23@gmail.com
62f63e4381e6ccbc54a2e3270c03b86c7e139fb5
e19f799b72092bb95d93890353982e6c8b38dece
/psf_to_font.py
2441eeea87ad90e96f6cfc514decf66df68c049a
[ "LicenseRef-scancode-public-domain", "MIT" ]
permissive
MurphyMc/lilt
fcf9f5666ff341c4199093c6b0a65d090affc162
6b91c90e521315e427c243cfb689138c3cd7c376
refs/heads/master
2023-06-07T19:30:29.184409
2023-05-24T15:42:00
2023-05-24T15:42:00
207,051,323
21
3
MIT
2020-03-08T01:54:26
2019-09-08T02:33:02
C
UTF-8
Python
false
false
6,834
py
#!/usr/bin/env python3 import gzip def fopen (fn): if fn.endswith(".gz"): return gzip.open(fn, 'rb') return open(fn, 'rb') def readmagic (f): m1,m2 = f.read(2) if m1 == 0x36 and m2 == 0x04: return 1 if m1 == 0x72 and m2 == 0xb5: m1,m2 = f.read(2) if m1 == 0x4a and m2 == 0x86: return 2 ...
[ "murphy.mccauley@gmail.com" ]
murphy.mccauley@gmail.com
66c1aaee9e1fd0bc0eed984bde8a9c54436e7df8
b592a93c13ad7bbd286c3c079546e2512edcb104
/Hack/bugsBunnyCTF2017/ex100_2.py
fffe6a9644d218886b65b9a7c1545c80dfe7f497
[]
no_license
SteveJohn99/PwnBasic
a36299a4e9e44d2c19b89fd8403128bcbd36d395
e896af960e3428958ec083a7ab0c232931049b6b
refs/heads/master
2021-01-23T10:58:14.837960
2017-10-25T00:55:39
2017-10-25T00:55:39
93,114,977
0
0
null
null
null
null
UTF-8
Python
false
false
688
py
from pwn import * import time HOST = '54.153.19.139' PORT = 5252 local = True #local = False if local: conn = process("./pwn100") else: conn = remote(HOST, PORT) context.log_level = 'debug' context.terminal = ['tmux', 'splitw', '-h'] #if local: # gdb.attach(conn) """ libc : 0xf7f56a0f ("/bin/sh") gdb-...
[ "you@example.com" ]
you@example.com
ca69c19161925d22a053fd210efeef1156aaa24a
9483053c3e44bf3dd39be91461f54ae88cf50ae2
/Nov 02/ScriptUncludingFunctions.py
4d188d1e5da0f13781e1483b2011db232bfd93c3
[ "MIT" ]
permissive
maricafalz/Python4ScientificComputing_Fundamentals
748b69ab8ef15dfd8cab4bb665fb9c985d841e55
27a293a918476f7b7327b9e5daf3046e73bcac60
refs/heads/master
2021-07-14T03:32:45.743738
2017-10-19T07:20:41
2017-10-19T07:20:41
106,660,695
1
0
null
2017-10-12T07:40:32
2017-10-12T07:40:31
null
UTF-8
Python
false
false
480
py
def myPowerCalc(x=2,a=4): """This is a useless function we made to practice defining functions in python""" y=x**a zz = y+2 myResult = {"y":y,"zz":zz} return myResult SomeNumber=50 x=2 Result = myPowerCalc(2,3)["y"] inputs = {"input1":3,"input2":2} def myPowerCalc2(carlos): x = carlos["i...
[ "behzad najafi" ]
behzad najafi
add45444dfd686e6a9b7e8cf6294a20c15a29749
31bc3fdc7c2b62880f84e50893c8e3d0dfb66fa6
/language/python_27/operators_/arithmetic.py
e68f08cebe0df90e9d6f73b09663154e55661ae0
[]
no_license
tpt5cu/python-tutorial
6e25cf0b346b8182ebc8a921efb25db65f16c144
5998e86165a52889faf14133b5b0d7588d637be1
refs/heads/master
2022-11-28T16:58:51.648259
2020-07-23T02:20:37
2020-07-23T02:20:37
269,521,394
0
0
null
2020-06-05T03:23:51
2020-06-05T03:23:50
null
UTF-8
Python
false
false
2,806
py
# http://python-history.blogspot.com/2010/08/why-pythons-integer-division-floors.html # https://stackoverflow.com/questions/3950372/round-with-integer-division def division(): ''' - Regular division with at least one float will result in a float - Regular division with only ints will result in an int that...
[ "uif93194@gmail.com" ]
uif93194@gmail.com
c5f58433cc5b87a082538023d93fdb93b24fd847
8dc501ad4dc4614d31723eeb38eee1840767c294
/assets/door.py
4282cdee651535a31a82abd9436f788a4416e483
[ "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
PlumpMath/fps_game
5fe021fcbbf7f29d8afef46f9c99057436222cc5
eee98e26cf8a9499b5edd46005b3b5a06adb4c93
refs/heads/master
2021-01-25T06:55:51.880959
2012-07-02T23:14:50
2012-07-02T23:14:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,449
py
from system.odeWorldManager import * from direct.interval.IntervalGlobal import * class doorKey(object): def __init__(self, map, keyCodes): self.map = map self.keyCodes = keyCodes def pickUp(self, character, dir): for key in self.keyCodes: character.doorKeysSet.add(key) self.destroy() def update(se...
[ "nano13@gmx.net" ]
nano13@gmx.net
b9fb64893348ccdf31cd2665cbf48c6b8ac64dce
ffff723a6c8527b45299a7e6aec3044c9b00e923
/PS/BOJ/1759/1759.py
d509243a8af1c6524ec3c937ff3907188ddd656e
[]
no_license
JSYoo5B/TIL
8e3395a106656e090eeb0260fa0b0dba985d3beb
3f9ce4c65451512cfa2279625e44a844d476b68f
refs/heads/master
2022-03-14T09:15:59.828223
2022-02-26T01:30:41
2022-02-26T01:30:41
231,383,838
0
0
null
null
null
null
UTF-8
Python
false
false
615
py
#!/usr/bin/env python3 from itertools import combinations if __name__ == '__main__': pwd_len, letter_cnt = map(int, input().split()) letters = list(input().split()) letters.sort() combs = combinations(letters, pwd_len) for passwd in combs: vowel_cnt = 0 vowel_cnt += passwd.count('...
[ "jsyoo5b@gmail.com" ]
jsyoo5b@gmail.com
ab56447448c4ca125aa72b69f6369085efb3a80c
1a80c38ea020a8b18bb2c61b55caff8a38f553b9
/SWEA/sol/4865.py
a37a6d9a8b9e7e61e65449796e6dc509c909fc21
[]
no_license
jiwookseo/problem-solving
775a47825dc73f8a29616ef7011e8ee7be346f80
eefbefb21608ae0a2b3c75c010ae14995b7fc646
refs/heads/master
2020-04-19T03:11:02.659816
2019-08-14T08:59:06
2019-08-14T08:59:06
167,926,883
1
0
null
null
null
null
UTF-8
Python
false
false
527
py
# 4865. [파이썬 S/W 문제해결 기본] 3일차 - 글자수 D2 for tc in range(1,int(input())+1): a=input() b=input() la=len(a) lb=len(b) strList=[0]*la count=[0]*la for i in range(la): check=True for j in range(la): if a[i]==strList[j]: check=False if check: ...
[ "spjo21@naver.com" ]
spjo21@naver.com
d5a3e3ee2aa442f465a183432a14c23cc8ff11fd
d318bc612eeb05406f50987b06ff6d1a84f0b864
/Step16-그리디 알고리즘/14241-슬라임 합치기.py
b438492d46be46b9bad7ba2c9d3a72677aeccc25
[]
no_license
JeongHwan-dev/python-algorithm
505a9b725c4c205f159f57b2f1bb7d57eda28cea
e2d01f067dfc6ede20f2f288f1e41dc62c3193d1
refs/heads/master
2023-06-19T16:21:49.617508
2021-07-08T14:33:53
2021-07-08T14:33:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
353
py
""" 예제 입력 1 2 3 4 예제 출력 1 12 예제 입력 2 3 2 2 2 예제 출력 2 12 """ n = int(input()) slime_arr = list(map(int, input().split())) slime_arr.sort(reverse=True) score = 0 total = 0 for i in range(n-1): score = slime_arr[i] * slime_arr[i+1] slime_arr[i+1] = slime_arr[i] + slime_arr[i+1] total += score print(total)...
[ "jeonghwan.dev@gmail.com" ]
jeonghwan.dev@gmail.com
b179500487dd5ce4bcbd2212c89b8db2257b6449
22e9f383a50c66c48349ce7102fdc67f06ff7da4
/vlaue.py
3a3aadfac749f97961db1cc8189e49e09b530ab8
[]
no_license
jikka/pythong
2873c4a5ef99fd85fd04c122a90a108cb67b2755
d5357bf672e98b51378a7534223f86e59fa768fc
refs/heads/master
2020-04-24T07:37:32.670541
2018-08-15T01:17:23
2018-08-15T01:17:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
n=input("enter the n values") k=input("enter the k value") a=list(str(n)) if(k in a): print("\nyes") else: print("\nno")
[ "noreply@github.com" ]
jikka.noreply@github.com
ddb629569ddef0bca3ff5f2623a601acff7ab73c
2345561ef9dcf5df3baea2028715796ca1f690fb
/resolution/common/data/reader/bert_word_span_pretrain_reader.py
a1416924867b66e2ba1f70beae8e928d6957c017
[]
no_license
Zessay/SPDR
70445e437fb005d7f36373a5422a084b5a24d60c
bad8e2f8dce803ac463b6bbfd804c06107d10165
refs/heads/master
2023-02-02T22:07:27.839024
2020-12-24T07:55:56
2020-12-24T07:55:56
321,325,463
0
0
null
null
null
null
UTF-8
Python
false
false
3,469
py
# coding=utf-8 # @Author: 莫冉 # @Date: 2020-08-25 import logging import itertools from typing import Dict, List, Optional from allennlp.data.dataset_readers.dataset_reader import DatasetReader from allennlp.data.instance import Instance from allennlp.data.fields import Field, TextField, LabelField, SequenceLabelField, ...
[ "zhushuai0403@163.com" ]
zhushuai0403@163.com
bd0ec2a87d4ec7814d625201f5317cf3790ede84
f13acd0d707ea9ab0d2f2f010717b35adcee142f
/ABC/abc151-abc200/abc179/c/main.py
0471519bc5308e031b294f78f1d47aa8e629b04a
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
KATO-Hiro/AtCoder
126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7
bf43320bc1af606bfbd23c610b3432cddd1806b9
refs/heads/master
2023-08-18T20:06:42.876863
2023-08-17T23:45:21
2023-08-17T23:45:21
121,067,516
4
0
CC0-1.0
2023-09-14T21:59:38
2018-02-11T00:32:45
Python
UTF-8
Python
false
false
358
py
# -*- coding: utf-8 -*- def main(): import sys input = sys.stdin.readline n = int(input()) ans = 0 # KeyInsight: # 変数を一つ固定 # 式を性質を保持しながら、単純化する for a in range(1, n): # a * b <= n - 1 ans += (n - 1) // a print(ans) if __name__ == '__main__': main()
[ "k.hiro1818@gmail.com" ]
k.hiro1818@gmail.com
ee4be98b0e638087d0ba542ed84293be095cb783
ab79f8297105a7d412303a8b33eaa25038f38c0b
/mutif_all_vit_addons/vit_sale_order_statistics_report/__openerp__.py
9bffb254f3cd850ac2a2fb3afa7f288be2ec894c
[]
no_license
adahra/addons
41a23cbea1e35079f7a9864ade3c32851ee2fb09
c5a5678379649ccdf57a9d55b09b30436428b430
refs/heads/master
2022-06-17T21:22:22.306787
2020-05-15T10:51:14
2020-05-15T10:51:14
264,167,002
1
0
null
2020-05-15T10:39:26
2020-05-15T10:39:26
null
UTF-8
Python
false
false
1,620
py
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
[ "prog1@381544ba-743e-41a5-bf0d-221725b9d5af" ]
prog1@381544ba-743e-41a5-bf0d-221725b9d5af
0ca7076f01b42586c5f9ffdab0e919c651fc7882
ca17bd80ac1d02c711423ac4093330172002a513
/utf8_validation/Validate.py
073ab6327df9cb404c830f937f686e40eb3c1038
[]
no_license
Omega094/lc_practice
64046dea8bbdaee99d767b70002a2b5b56313112
e61776bcfd5d93c663b247d71e00f1b298683714
refs/heads/master
2020-03-12T13:45:13.988645
2018-04-23T06:28:32
2018-04-23T06:28:32
130,649,699
0
0
null
null
null
null
UTF-8
Python
false
false
639
py
class Solution(object): def validUtf8(self, data): """ :type data: List[int] :rtype: bool """ masks = [0x0, 0b10000000, 0b11100000, 0b11110000, 0b11111000] bits = [0x0, 0b00000000, 0b11000000, 0b11100000, 0b11110000] while data: for x in (4,3,2,1,...
[ "zhao_j1@denison.edu" ]
zhao_j1@denison.edu
388c42f1b043b9462261670fd8bd7c8773e9d34e
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_020/ch24_2020_03_09_20_38_32_185391.py
5d03e321d5ae9c87de9b1002ae18a339ca23619b
[]
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
136
py
salario = int(input("Qual o seu salário?") if salario > 1250: return salario*(1.1) elif salario <= 1250: return salario*(1.15)
[ "you@example.com" ]
you@example.com
be8710c5b37403fd7d43a7d3695be6e7031d69d6
5789f30bc942dde4235668c56408575b0bd25599
/scripts/compare_acrometrix_archer.py
dedf3638a3236509082833915f00fee60fc7cba4
[]
no_license
bioinfo-chu-bdx/ngs-somatic
bc9dfa60872a644f18650593d144726d0ab22767
8cc6411e16784f2891b92241a97c71788408ffb5
refs/heads/master
2023-04-25T19:48:52.073672
2021-03-19T14:21:49
2021-03-19T14:21:49
374,675,975
2
0
null
null
null
null
UTF-8
Python
false
false
2,333
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import openpyxl workbook = openpyxl.load_workbook('/media/stuff/Archer_Acrometrix_compare.xlsx') # acro_sheet = workbook['variants_acrometrix'] # archer_sheet = workbook['hotspots_archer'] # compare_sheet = workbook['compare'] acro_sheet = workbook['va...
[ "thomas.bandres@chu-bordeaux.fr" ]
thomas.bandres@chu-bordeaux.fr
5dbb1e61d0ededcce346eae403bdcb7128044d42
df19577b1ab61df16e4a7569625ed6333c592b48
/sudoku-checker/node_modules/fsevents/build/config.gypi
f3f880eaf4efe385a1b8bd9baae9cdea0006c96e
[ "MIT" ]
permissive
kwicz/sudoku-checker
6f3bed666422e6f61c16aaa0197d3e6ab236e182
fd3215d2d110d065574015bf97bc38a6e2b5029c
refs/heads/master
2023-01-12T00:31:15.186151
2020-02-05T00:34:31
2020-02-05T00:34:31
238,327,944
0
0
null
2023-01-01T16:09:33
2020-02-04T23:26:39
JavaScript
UTF-8
Python
false
false
5,610
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [] }, "variables": { "asan": 0, "build_v8_with_gn": "false", "coverage": "false", "debug_ngh...
[ "example@example.com" ]
example@example.com
f77189f81e4f498fbca7e6baa749753d923ce7f2
d0b59e57fad41ca6ffab65fd5731507028f17321
/_CNDB/_OMP/__init__.py
ba24e69335d0ac1a4445abdd0b47f8e89163143a
[ "BSD-3-Clause" ]
permissive
FunkFeuer/common-node-db
c3b3c15baffce355715110e888838f9350c97754
788090da1991fdb37ae80c0d3395888951e5be03
refs/heads/master
2021-01-17T14:03:21.682449
2020-04-01T11:38:45
2020-04-02T12:25:33
31,951,710
4
2
null
null
null
null
UTF-8
Python
false
false
949
py
# -*- coding: utf-8 -*- # Copyright (C) 2012-2014 Mag. Christian Tanzer All rights reserved # Glasauergasse 32, A--1130 Wien, Austria. tanzer@swing.co.at # #*** <License> ************************************************************# # This module is licensed under the terms of the BSD 3-Clause License # <http://www.c-t...
[ "tanzer@swing.co.at" ]
tanzer@swing.co.at
9fd4f0098d5a8a9c470c6425035a65c0ce5020c3
d31cd04c825b259969f4c3e34a58f3d54daa88e9
/sklearn/one-hot-lr.py
30dacfd37332dd27c4b97d4f6c4ea6678d16ea1a
[]
no_license
rogeroyer/dataCastle
db1870f98e4fbf868aecdb40c256736d66ba649d
0aa7bb97c5555fb0635d218c3ece2cef79753cd5
refs/heads/master
2021-06-05T04:52:10.304610
2019-12-01T06:18:30
2019-12-01T06:18:30
105,973,617
3
1
null
null
null
null
UTF-8
Python
false
false
1,878
py
# -*-: coding=utf-8 :-*- import pandas as pd from sklearn.preprocessing import OneHotEncoder from sklearn.linear_model import LogisticRegression '''如果数据划分方式改变那要重新跑一遍''' user_register = pd.read_csv(r'../../dataset/user_register.csv', encoding='utf-8') train_feature = pd.read_csv(r'train_feature.csv', encoding='utf-8'...
[ "noreply@github.com" ]
rogeroyer.noreply@github.com
85661e0494e922499bdeb3aa33a2060857f19d43
643f62c5e0b1b7ee00cefd05e5092e38c26e07d9
/core/views.py
3e6da38aec76a66673bfe9fa4fa92cc613c9359d
[]
no_license
dungnguyen1991/django_pdf
8a5bd462d0eafd7d3d926df96bdc1f2d3c0fac5c
c472e8ede82c65534eb64f965551ba851b0aaddb
refs/heads/master
2023-03-22T14:09:55.740406
2021-03-20T08:56:00
2021-03-20T08:56:00
349,678,873
0
0
null
null
null
null
UTF-8
Python
false
false
5,307
py
from django.shortcuts import render import io from django.http import FileResponse # reportlab from reportlab.pdfgen import canvas from reportlab.pdfbase.ttfonts import TTFont from reportlab.pdfbase import pdfmetrics from reportlab.lib import colors from reportlab.lib.pagesizes import A4 from reportlab.platypus impor...
[ "dungnguyendeveloper1991@gmail.com" ]
dungnguyendeveloper1991@gmail.com
1a38e2a1d99f1025b535d9db43cd78d757ad8795
0d0afd1dce972b4748ce8faccd992c019794ad9e
/integra/clinica_simone_personalizacao/models/turma_aula.py
e2bae61e654d900acde263d0bee029e933a90913
[]
no_license
danimaribeiro/odoo-erp
e2ca2cfe3629fbedf413e85f7c3c0453fd16941e
d12577bf7f5266b571cbedeb930720d653320e96
refs/heads/master
2020-01-23T21:32:16.149716
2016-11-05T15:35:40
2016-11-05T15:35:40
67,892,809
0
1
null
null
null
null
UTF-8
Python
false
false
2,969
py
# -*- coding: utf-8 -*- # from __future__ import division, print_function, unicode_literals from osv import osv, fields import os import base64 from datetime import date, datetime, timedelta from dateutil.relativedelta import relativedelta from finan.wizard.finan_relatorio import Report from decimal import Decimal a...
[ "danimaribeiro@gmail.com" ]
danimaribeiro@gmail.com
898a5950336a63768c35a8dea72264b1b953d0ce
7d1100d44207ac14df50e3f49a99acf1fa996528
/chainsim/scenario.py
38c431e33ef1b5ef5a93e1b345ac52dfacd48cc9
[]
no_license
Tribler/trustchain-simulator-pysim
09b07cc21c5495212024a9a1f6b131a7cc7f7356
bf7a72545a7353d2d03a4d9129c291c8a5204088
refs/heads/master
2023-03-28T07:07:39.802436
2021-03-22T14:23:06
2021-03-22T14:23:06
288,008,573
1
0
null
null
null
null
UTF-8
Python
false
false
1,412
py
import os class Scenario: """ This class represents a scenario, which is optionally provided when starting the simulation. """ def __init__(self, scenario_file_path): self.scenario_file_path = scenario_file_path self.actions = {} self.num_peers = -1 self.max_timestamp ...
[ "mdmartijndevos@gmail.com" ]
mdmartijndevos@gmail.com
f3c0215375ec743618ff7cc4cf09a03479966bbf
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_280/ch51_2020_04_22_11_40_43_648233.py
aa975c6ffdd9deab5c92beee9e4426b23ded7769
[]
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
431
py
def eh_primo (x): if x==2: return True elif x==0 or x==1: return False elif x%2==0: return False else: n = 3 while n < x: if x%n==0: return False n += 2 return True def primos_entre(a,b): lista = [] ...
[ "you@example.com" ]
you@example.com
fdbb896795ffda513109e501737e0172a8a19c4a
029aa4fa6217dbb239037dec8f2e64f5b94795d0
/Python算法指南/251_丢失的间隔问题_列表转化为字符串问题.py
92c47d4a91be0bf20f8924baec6aee2e1213f94a
[]
no_license
tonyyo/algorithm
5a3f0bd4395a75703f9ee84b01e42a74283a5de9
60dd5281e7ce4dfb603b795aa194a67ff867caf6
refs/heads/master
2022-12-14T16:04:46.723771
2020-09-23T06:59:33
2020-09-23T06:59:33
270,216,530
0
0
null
null
null
null
UTF-8
Python
false
false
1,441
py
class Solution: def findMissingRanges2(self, nums, lower, upper): result = [] nums = [lower-1] + nums + [upper+1] for i in range(1, len(nums)): l = nums[i-1] h = nums[i] if h - l >= 2: if h - l == 2: result.append(str(l+...
[ "1325338208@qq.com" ]
1325338208@qq.com
f04d7e5916617d6563b07fd177f928dbe9411358
06db5c4515dab480a3a94a3b21110bfaa9434610
/Week 8/SampleCode/PythonFlaskServer/server.py
1b13738b6d5002ff77edd2461d33bc95a32f31e0
[ "MIT" ]
permissive
jzhu24/Materials
52bd1e2967c3c805784956ea0cff90bfc48149ae
e83535d7b68daa2e91eaf24bea0cacdd03e72bfe
refs/heads/master
2021-04-18T21:35:57.233852
2015-03-19T18:45:36
2015-03-19T18:45:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
670
py
#!/usr/bin/python # Let's import the libraries we're going to use from flask import Flask, request import json from numpy import * from scipy import * app = Flask("My Great App") @app.route("/") def index(): return "Hello there!" @app.route("/blah", methods=['POST']) def blah(): return "You asked for blah, and y...
[ "staticfloat@gmail.com" ]
staticfloat@gmail.com
e86e9dffb7def27fd47d9f845e37e88dd816f1d8
03fef621b7f904bcbb717c6eef942a5e1e077b75
/scrapers/HIL/councillors.py
a51d2a6e3eabbf5848e60c77f4fcc90576b381f2
[ "MIT" ]
permissive
chris48s/LGSF
e2b387f0e8d694d13fc8c777bac3aaec1fdea114
f5b8a5037b0237f811405c5df0aa20fa1c1624e6
refs/heads/master
2020-04-01T10:28:31.370990
2018-10-15T13:18:54
2018-10-15T13:20:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
153
py
from lgsf.scrapers.councillors import ModGovCouncillorScraper class Scraper(ModGovCouncillorScraper): base_url = "http://modgov.hillingdon.gov.uk"
[ "sym.roe@talusdesign.co.uk" ]
sym.roe@talusdesign.co.uk
2a933d42f9b89ac4ddcb6fcfb3165dbbc489aa54
bc183f7357cda3ad064f8c2ff34a176c406446d3
/pastepwn/analyzers/basicanalyzer.py
b6c3d53f1dab8d244a19504005044deb73592954
[ "MIT" ]
permissive
luton1507/pastepwn
b8a790168ce08f10c62574eeb0a68f0dedd5425d
9b2fee22857e54a5312fdb3d388b472a7d271c50
refs/heads/master
2022-11-10T20:18:40.102277
2020-06-19T23:34:14
2020-06-19T23:34:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,107
py
# -*- coding: utf-8 -*- import logging from pastepwn.actions import BasicAction from pastepwn.errors import InvalidActionError from pastepwn.util import listify class BasicAnalyzer(object): """Basic analyzer class""" name = "BasicAnalyzer" def __init__(self, actions, identifier=None): """ ...
[ "d-Rickyy-b@users.noreply.github.com" ]
d-Rickyy-b@users.noreply.github.com
f11eea0e51e5c3855b41c0f8fe887697a49acc49
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02382/s949945877.py
105f180940c67669103d5395546239dd5df12a61
[]
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
305
py
import sys n = int(sys.stdin.readline()) x = [float(i) for i in sys.stdin.readline().split()] y = [float(i) for i in sys.stdin.readline().split()] d = [abs(x_i - y_i) for (x_i, y_i) in zip(x, y)] # p = 1 ~ 3 for p in range(1, 4): print(sum([a ** p for a in d]) ** (1/p)) # p = INFINITE print(max(d))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
a573ccc15196c9c3ed60d25bef224fdc70f2d495
8ab752226d498dc81b7d5298ef1f7cd3146ba943
/a5_public/model_embeddings.py
977b4f35447f688614d7a8ca152b5fd5751f6941
[]
no_license
lwaekfjlk/CS224n-2019-Assignments
4bf899eb632647005a002ec38eba9bcde5b20d8b
687c25749d6b249369808c2295bcebe7d011791b
refs/heads/master
2022-04-11T04:18:44.361392
2019-11-03T07:57:32
2019-11-03T07:57:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,010
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ CS224N 2018-19: Homework 5 model_embeddings.py: Embeddings for the NMT model Pencheng Yin <pcyin@cs.cmu.edu> Sahil Chopra <schopra8@stanford.edu> Anand Dhoot <anandd@stanford.edu> Michael Hahn <mhahn2@stanford.edu> """ import torch.nn as nn # Do not change these imp...
[ "1042178105@qq.com" ]
1042178105@qq.com
fe5e1fef8d7da90cf50e5c488869eb673c11dd48
5c729eb7b7d294482f5c614e99205f12047006bb
/Modulo_4_Ciencia da Computacao/Bloco 36: Algoritmos e Estrutura de Dados/dia_1: Complexidade de Algoritmos/exercicios/exercicio_3.py
10cfd5e4d3137c5c3bca838cc0d5d4fd2d6f1ef7
[]
no_license
marcelosoliveira/trybe-exercises
132c42304cdaf9a82d3d1b030fdf12a456a096da
025d81eba6e14dc2abf1600f4a271dde06d593d9
refs/heads/master
2023-07-17T20:35:30.013110
2021-08-24T21:38:22
2021-08-24T21:38:22
288,297,968
1
0
null
2020-08-18T22:23:49
2020-08-17T22:19:09
Shell
UTF-8
Python
false
false
264
py
""" Exercício 3 O código abaixo está em JavaScript. Calcule sua ordem de complexidade para um array de tamanho n. Resposta A função map itera sobre todo o array. O código, portanto, é O(n). """ numbers = [0,1,2,3,4,5,6,7,8,9] numbers.map(lambda n: n*n);
[ "msbobsk8@gmail.com" ]
msbobsk8@gmail.com
34d3031aefc10a972483cc61851b3f8f2bce9edd
56ba14e240574dd123cad8e831273db5b7bcbc6b
/LeetCode/roman-to-integer.py
83572eb3d7beae3803200231df671797d39ed4e2
[ "MIT" ]
permissive
araschermer/python-code
4b7971b3e6c6cbddf908e3423f5382f80b2f370d
e4f30601779f423476659d5b0b5f5c9df71718f7
refs/heads/main
2023-04-23T17:16:19.578997
2021-05-18T15:41:31
2021-05-18T15:41:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,732
py
def roman_to_int(s): """ Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. roman_integer_value = {"I":1, "V":5, "X":10, "L":50, "C":100, "D":500, "M":1000} For example, 2 is written as II in Roman numeral, just two one's added together. 12 is written as XII, whic...
[ "44481677+abdelkha@users.noreply.github.com" ]
44481677+abdelkha@users.noreply.github.com
8292eab696718295aa153a8a76810aca64a589c1
6f1dea5df8255a1711b1116efed95f20f598dc48
/openerp-republica-dominicana/npg_account_make_deposit/wizard/add_deposit_items.py
17e3ddc270c6fec60b4487c229fe8c6f0c52ba00
[]
no_license
joseernestomendez/odoo-karyna
62dd470f753f2b81f92329c1f725d7e1385146c2
8228ca49d8613afad2ad22f8ab288c5a7a216c48
refs/heads/master
2021-01-12T02:50:34.673120
2017-01-05T13:49:25
2017-01-05T13:49:25
78,115,304
0
0
null
null
null
null
UTF-8
Python
false
false
7,790
py
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2011 NovaPoint Group LLC (<http://www.novapointgroup.com>) # Copyright (C) 2004-2010 OpenERP SA (<http://www.openerp.com>) # # This program is f...
[ "tecnologia@obsdr.com" ]
tecnologia@obsdr.com
6513f16894639c8d29910c526212b3decea9df23
5c74f8526f185d90093aba3fb213a11de5ea18ba
/rx/concurrency/timeoutscheduler.py
7c52d32a4a5ef2c93209163ebb29e7bf07a94aa5
[ "Apache-2.0" ]
permissive
yutiansut/RxPY
df02c64cb791bf2a7a97413a75f4d2903e1682b5
c3bbba77f9ebd7706c949141725e220096deabd4
refs/heads/master
2020-03-10T11:07:27.642494
2018-12-29T07:02:02
2018-12-29T07:02:02
129,349,161
0
0
NOASSERTION
2018-12-29T07:02:03
2018-04-13T04:50:02
Python
UTF-8
Python
false
false
2,028
py
import logging from threading import Timer from datetime import timedelta from rx.core import Scheduler, Disposable from rx.disposables import SingleAssignmentDisposable, CompositeDisposable from .schedulerbase import SchedulerBase log = logging.getLogger("Rx") class TimeoutScheduler(SchedulerBase): """A sched...
[ "dag@brattli.net" ]
dag@brattli.net
0c64729f91cabc87859dadb44fd5da249be1b31f
7ce5260f92af81063d8fc8d38605eeda335e5660
/DjangoProjects/data_science_projects/face_recognition_project/face_detector/views_test.py
059df7791054d740bfaea373313ad8d11527c388
[]
no_license
MHNorth/Coding-Dojo-Projects
15ce009f4dcc24a912d224ffa15f1ea07221d482
e82ef45a91667ab580dc4dd4cbf13195e1e67e9e
refs/heads/master
2020-03-21T03:45:44.790723
2018-10-04T00:15:25
2018-10-04T00:15:25
138,072,873
3
0
null
null
null
null
UTF-8
Python
false
false
2,510
py
# import the necessary packages from django.views.decorators.csrf import csrf_exempt from django.http import JsonResponse import numpy as np import urllib import json import cv2 import os # define the path to the face detector FACE_DETECTOR_PATH = "C:/Users/MNorthrop/codingDojo/Coding-Dojo-Projects/DjangoProjects/fac...
[ "maikanorthrop@gmail.com" ]
maikanorthrop@gmail.com
ae02cbd412efceaabd5a4dcb0de61f80c80e04e1
795df757ef84073c3adaf552d5f4b79fcb111bad
/subset/vec_gray_rank.py
9be046bed6965a45a7bd1dd3c808df88877cd266
[]
no_license
tnakaicode/jburkardt-python
02cb2f9ba817abf158fc93203eb17bf1cb3a5008
1a63f7664e47d6b81c07f2261b44f472adc4274d
refs/heads/master
2022-05-21T04:41:37.611658
2022-04-09T03:31:00
2022-04-09T03:31:00
243,854,197
3
0
null
null
null
null
UTF-8
Python
false
false
2,982
py
#! /usr/bin/env python # def vec_gray_rank(n, base, a): # *****************************************************************************80 # # VEC_GRAY_RANK computes the rank of a product space element. # # Discussion: # # The rank applies only to the elements as produced by the routine ...
[ "tnakaicode@gmail.com" ]
tnakaicode@gmail.com
f71691af2657fa715a12297186e866a7721a1936
a46d135ba8fd7bd40f0b7d7a96c72be446025719
/packages/python/plotly/plotly/validators/layout/scene/zaxis/_hoverformat.py
f20a7c32d88ee65dcc05bc55f1382fad5854863b
[ "MIT" ]
permissive
hugovk/plotly.py
5e763fe96f225d964c4fcd1dea79dbefa50b4692
cfad7862594b35965c0e000813bd7805e8494a5b
refs/heads/master
2022-05-10T12:17:38.797994
2021-12-21T03:49:19
2021-12-21T03:49:19
234,146,634
0
0
MIT
2020-01-15T18:33:43
2020-01-15T18:33:41
null
UTF-8
Python
false
false
433
py
import _plotly_utils.basevalidators class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name="hoverformat", parent_name="layout.scene.zaxis", **kwargs ): super(HoverformatValidator, self).__init__( plotly_name=plotly_name, ...
[ "noreply@github.com" ]
hugovk.noreply@github.com
9eb7e8913ea0ffb8b7d93d07ff9f2889e0306a91
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2019_07_01/operations/_jobs_operations.py
d7cb90ad1eea2da03837c45b90edb7fed0a1857a
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
6,456
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" ]
Azure.noreply@github.com
68b6cc76926d365cff6aac0343d52b019714d80b
7254b7df76b9b4708467b4c1e6dba1d00eaa2bdb
/flloat/semantics/pl.py
42d4385a62144825cdacf38b6ff76d354fb380fb
[ "MIT" ]
permissive
aadeshnpn/flloat
6117a80213373ee2c3c857e0a14188ef2f36ca01
5a84608400d401799421f872e561689e3159a513
refs/heads/master
2021-07-03T16:08:41.551160
2019-07-13T17:51:55
2019-07-13T17:51:55
205,434,774
0
0
MIT
2019-08-30T18:15:02
2019-08-30T18:15:02
null
UTF-8
Python
false
false
1,242
py
from typing import FrozenSet, Set, Union from flloat.base.symbols import Symbol from flloat.helpers import Hashable class PLInterpretation(Hashable): def __init__(self, true_propositions: Union[Set[Symbol], FrozenSet[Symbol]]): super().__init__() self.true_propositions = frozenset(true_propositi...
[ "marco.favorito@gmail.com" ]
marco.favorito@gmail.com
9e0f05b62a411d6f91e1fef4517508a8f4e9e7f1
09d44d959a474c55feea0d5560f505db4daa059b
/cfripper/tests/model/test_result.py
1e464b09f515fe86175cace6d55dc85c4814d9a7
[ "Apache-2.0" ]
permissive
chuckbnorris/Canivete
c0b50809d09c5cf9b01ea969799ab90503593d9d
b8acef26765816c0bf33ed195a8bd74df03c7b70
refs/heads/main
2023-03-22T21:39:41.459158
2021-03-14T17:00:37
2021-03-14T17:00:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,567
py
from cfripper.model.enums import RuleGranularity, RuleMode, RuleRisk from cfripper.model.result import Failure, Result def test_result_valid_after_removing_failures(): result = Result() result.add_failure( rule="mock_rule", reason="mock_reason", rule_mode=RuleMode.BLOCKING, ris...
[ "gustcol@gmail.com" ]
gustcol@gmail.com
8715ba78ba072c7835dd1dabb030e83b8a20a519
c3a98a4082a354c77bf00ad2828ca348ae25c28c
/pycamv/compare.py
6fc4fac138a5a837213748abc15a39d3597a37ac
[ "BSD-2-Clause" ]
permissive
antdit/pycamverter
a4c7f3e3e8abc9cf06742ba74ae34f5b641956b3
0092ccb986831eaa1cdea59422f7cad10c7da212
refs/heads/master
2021-01-22T21:17:48.254912
2017-03-17T23:36:45
2017-03-17T23:36:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,312
py
""" This module provides functionality for comparing spectra with a list of fragments. """ from __future__ import absolute_import, division CID_TOL = 1000 HCD_TOL = 10 COLLISION_TOLS = { "CID": CID_TOL, "HCD": HCD_TOL, } class PeptideHit: """ Attributes ---------- mz : float intensity ...
[ "morshed.nader@gmail.com" ]
morshed.nader@gmail.com
7a5ce8cd90e2694b6c658563f6c57ee588ca44c1
27331020ff20d00f4e875f6a20ce0ca1c906da43
/Portpolio/Dog_Cat/Model_ensemble/main2.py
f2e170b505acbb5e1f6af493f24bace058a542b4
[]
no_license
MOOSUNGPARK/source
2ac7f24766c953cfafc632eb2812f713aa708944
50b2d169d5c64778d818decd564045d7f8e6c304
refs/heads/master
2021-01-20T14:29:02.015764
2019-01-09T06:37:35
2019-01-09T06:37:35
90,616,630
1
7
null
null
null
null
UTF-8
Python
false
false
7,032
py
import time import matplotlib.pyplot as plt import numpy as np import tensorflow as tf from PIL import ImageGrab from drawnow import drawnow from Portpolio.Dog_Cat.Model_ensemble.ensemble4 import Model, ensemble_accuracy epochs = 50 batch_size = 100 num_models = 5 label_cnt = 2 value_num = 3 mon_epoch_list = [] mon_...
[ "0911godqhr!" ]
0911godqhr!
a0532c3b8f82a91da83a961ef98de3d60b6139cd
ae376963049fdff111d0f844b25d7a907acb27f5
/Python/Fundamentals/0.9-RegEx/Exercises/capture_the_numbers.py
a2017756d53121e3871b809e680f57a1df89dda4
[]
no_license
Pittor052/SoftUni-Courses
bdc5968244de497f1aaaff7c6c6879c624791ad8
43216ee69e7eec59c9f14377f57ae1ef8d9cce8d
refs/heads/main
2023-08-14T05:12:11.966927
2021-09-28T13:33:30
2021-09-28T13:33:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
132
py
import re line, numbers = input(), [] while line: numbers.extend(re.findall(r"\d+", line)) line = input() print(*numbers)
[ "rum3ngr0zdan0v98@gmail.com" ]
rum3ngr0zdan0v98@gmail.com
5fc490fd5e5a654e2aa8c2f1cf427f2e555954e9
c68d238ac786a42c4dd47d4ab5820709aa4dcdb3
/ExFin/content/migrations/0064_auto_20180325_1541.py
5f4cdb551b895235ad89633457e91ce7b63fa5f0
[]
no_license
tenebranum/ExFin
b78d2a9651d5b9e8fb0fae3adccc48f7897221d2
7ac7b7a0be00537a6a600721009f4a28eb90c3ab
refs/heads/master
2022-12-14T21:17:02.334600
2022-09-21T10:33:27
2022-09-21T10:33:27
139,338,729
0
0
null
2022-12-08T00:59:15
2018-07-01T15:07:52
Python
UTF-8
Python
false
false
1,691
py
# Generated by Django 2.0.2 on 2018-03-25 12:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('content', '0063_jobstaticpage_success_form'), ] operations = [ migrations.AddField( model_name='mainpagetopblockstatic', ...
[ "vetal969696@gmail.com" ]
vetal969696@gmail.com
8e647deb4517a73465a7ba631fa77ddd259ec68c
19d9696931dfbbefc4d1fd330ef6e6676eb8edf2
/tombitrip.co/tombitrip.co/home/migrations/0023_auto_20210411_2246.py
cc96f3a8671e3fe623a499db07af920e4c46066b
[]
no_license
AbdurRahman111/ajax_with_signup_button_part_2
ed884a7716f808229a0a90db236d4158fbe601ab
b5f39cc549e7824dd9adbc2844d75fe1dbfbde4d
refs/heads/master
2023-05-29T02:14:24.491966
2021-06-13T15:29:59
2021-06-13T15:29:59
376,577,371
0
0
null
null
null
null
UTF-8
Python
false
false
1,486
py
# Generated by Django 3.1.6 on 2021-04-11 16:46 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('home', '0022_productattr...
[ "mdabdurrahmanchowdhury1122@gmail.com" ]
mdabdurrahmanchowdhury1122@gmail.com
a42c34365ea215acb96329f0fe89a4a202f75c01
aef6929578f7c67d372159f4e94af1ea0f129a6b
/wx_server_tornado/handlers/menu.py
437c3d152f5921d4c00a4bfcf20cbd805f602c7a
[]
no_license
rolllyroman/projects
8af482907e19f952b8d2fe6bf21c5c2e666b00b9
25909451e035b54e133f8c36954fee929d38873f
refs/heads/master
2020-03-27T04:16:59.425262
2018-08-24T07:40:55
2018-08-24T07:40:55
145,927,416
0
0
null
null
null
null
UTF-8
Python
false
false
3,387
py
#coding:utf-8 import json import tornado.gen import sys sys.path.append('../') from base import BaseHandler from constants import * from utils.common import AccessToken from tornado.httpclient import AsyncHTTPClient,HTTPRequest class DMHandler(BaseHandler): @tornado.gen.coroutine def get(self): try: ...
[ "1983654762@qq.com" ]
1983654762@qq.com
f382df579f6357c591b0ec6baafdd480a4f396a0
987008047c6e8a93e5515cda0d390ba395097ade
/base/te_open_server_obj.py
d338b3a3768001cbf0a3af498199157f27ab80e0
[ "MIT" ]
permissive
tosher/TSQLEasy
8881ecbcf17b53e5b4d86a73561af4151a5d4988
f4a6db37ee57f48e21fa271b0aa08f3e9796d00c
refs/heads/master
2021-01-17T11:29:31.071134
2019-04-06T11:01:45
2019-04-06T11:01:45
19,424,953
54
12
NOASSERTION
2018-10-20T13:50:07
2014-05-04T11:19:01
Python
UTF-8
Python
false
false
2,334
py
#!/usr/bin/env python\n # -*- coding: utf-8 -*- import os.path import tempfile import sublime import sublime_plugin from . import te_utils as utils class TsqlEasyOpenServerObjectCommand(sublime_plugin.TextCommand): def run(self, edit): position = self.view.sel()[0].begin() word_region = self.vie...
[ "to.tosher@gmail.com" ]
to.tosher@gmail.com
9a12c70b6de5cc12d1366fb384a6160bd1599917
05e3c6d28bbaf56f058d95ea0aab0006843b2420
/test/test_publisher.py
1370271f79743f706904b25ea3de5fe9d90647da
[]
no_license
TheAdsOnTop/dynamix-python-client
4ac5bf8bc975e3b1230bdf8ed0900e6b1382e318
ace7ff34502cbbbb11b0c65bb3385b8c48247082
refs/heads/master
2020-03-08T00:10:05.566157
2018-04-02T19:02:47
2018-04-02T19:02:47
127,799,685
0
0
null
null
null
null
UTF-8
Python
false
false
855
py
# coding: utf-8 """ Dynamix Sign up for Dynamix & grab your token. # noqa: E501 OpenAPI spec version: v0.1.0 Contact: david@theadsontop.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import swagger_client from s...
[ "akhanna@princeton.edu" ]
akhanna@princeton.edu
3fb1e0e8136c96fa1cc8d115723cc6caf57a4bc1
373035950bdc8956cc0b74675aea2d1857263129
/spar_python/report_generation/ta2/ta2_section_performance_ingestion.py
3ee19ffeaa958ec35d47807ca827f9d4d2719886
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
limkokholefork/SPARTA
5d122cd2e920775d61a5404688aabbafa164f22e
6eeb28b2dd147088b6e851876b36eeba3e700f16
refs/heads/master
2021-11-11T21:09:38.366985
2017-06-02T16:21:48
2017-06-02T16:21:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,706
py
# ***************************************************************** # Copyright 2013 MIT Lincoln Laboratory # Project: SPAR # Authors: SY # Description: Section class # # # Modifications: # Date Name Modification # ---- ---- ...
[ "mitchelljd@ll.mit.edu" ]
mitchelljd@ll.mit.edu
e6f143c25e795968f0c831fd0edc047633133b63
d46cad930fc1174eded859ca9cb51ce17f17fbf6
/Basics/05-While-Loop/03-vacation.py
ddccd8d48c684ceaba4ea773b3194fc1b6877a3b
[]
no_license
AntoniyaV/SoftUni-Exercises
66f79fee065f510748350d629838db9291c71f91
d7bd9ae6aa511b705a3b2e86018f6f79d4f7ab2b
refs/heads/main
2023-07-09T10:49:29.456647
2021-08-13T18:59:12
2021-08-13T18:59:12
317,540,415
0
0
null
null
null
null
UTF-8
Python
false
false
664
py
money_needed = float(input()) money_owned = float(input()) days_count = 0 days_spend_count = 0 saved = True while money_owned < money_needed: action = input() money_action = float(input()) days_count += 1 if action == "spend": money_owned -= money_action if money_owned < 0: ...
[ "antoniya.vladimirova@gmail.com" ]
antoniya.vladimirova@gmail.com
ffbf037928c9e47177aefe1f439f05b31d06c3f9
6eb56f2e3f14f2373be07fe95b1c6fedf1e2d49f
/month02/day03 data/bytes_demo.py
0317f1034cb89fe3d9ee61fdd2cb6e74c49a3abd
[ "Apache-2.0" ]
permissive
chaofan-zheng/python_leanring_code
fe22b0370cadebf7456477269aff4a35cef0eb41
0af44ff39b9ded2c1d2cc96c6d356d21170ac04d
refs/heads/main
2023-02-28T07:56:46.457552
2021-02-10T15:08:33
2021-02-10T15:08:33
323,584,115
4
0
null
null
null
null
UTF-8
Python
false
false
495
py
""" 字节串使用示例 所有字符串都能转化为字节串,但不是所有字节串都能转化为字符串。 """ # 定义一个字节串变量 b = b"hello world" # 用于ASCii print(type(b)) # 定义一个非ASCII字节串变量 b1 = "你好".encode() print(b1) x1 = b'\xe4\xbd\xa0\xe5\xa5\xbd'.decode() # 等同于 x1 = b1.decode() print(x1) file = open("file.txt") file_object = file.read() file_list = file_object.split("\n...
[ "417355570@qq.com" ]
417355570@qq.com
9cffe4d0d21b898962f16291a709de9ec4ab961c
47437489c7776b81903352403b58103ac8e71efc
/lpinns/poisson_dirichlet_1d.py
92ca10bbbb5844741c11b4f32530e9d9b44d909d
[]
no_license
MiroK/lpinns
0aa46b6888f0685567997666c8a8d861025501f5
e038960d4d79ca18550d9af3789aa66aa46b44c9
refs/heads/master
2023-03-10T22:41:22.046046
2021-02-25T14:51:33
2021-02-25T14:51:33
339,170,601
0
0
null
null
null
null
UTF-8
Python
false
false
2,492
py
# Based on Lagrangian # # inner(grad(u), grad(u))*dx + inner(u, p)*ds # from lpinns.mms import poisson_1d as poisson from lpinns.fenics_legendre import LegendreBasis, legendre import matplotlib.pyplot as plt from dolfin import * import numpy as np mesh = IntervalMesh(64, -1, 1) facet_subdomains = MeshFunction('s...
[ "miroslav.kuchta@gmail.com" ]
miroslav.kuchta@gmail.com
f4eb8bbbbd2d82a1184ff6a9f6acd64e0fc61a73
d147827242724bdb42737fed5a8373f03abad3e6
/demo_pandas.py
5dc3a8591ec0a27eecc41562aa8a7ee3b7f0c7bc
[]
no_license
cyrilvincent/python
71c2472e626afb89e8d47f4b24463c1b87fc1921
b32561e4cde7e0f1607f5f1ad49315fb77f0466e
refs/heads/master
2023-07-21T04:01:36.967783
2023-07-07T14:03:23
2023-07-07T14:03:23
210,285,672
0
1
null
null
null
null
UTF-8
Python
false
false
466
py
import pandas as pd import matplotlib.pyplot as plt import scipy.stats as stats import numpy as np dataframe = pd.read_csv("data/house/house.csv") dataframe = dataframe[dataframe.surface < 200] plt.scatter(dataframe.surface, dataframe.loyer) slope, intercept, rvalue, pvalue, loss = stats.linregress(dataframe.surface, ...
[ "contact@cyrilvincent.com" ]
contact@cyrilvincent.com
065b1fc71ec5126016b5059bb9b14ca642cf8087
1284e892c7d2e35da007b4f7ff2f91f4476ce213
/setup.py
5384fa91eec91f3186ff73d09c75bf849edb1a19
[ "MIT" ]
permissive
xuanhan863/zsplitjoin
12cb254c50ac12969b02240c6427f44ccbcb794d
9fccd7394f808dee8fd289d6c1c1d64e09bb71e2
refs/heads/master
2021-01-21T04:03:30.512695
2014-09-17T14:42:33
2014-09-17T14:42:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,278
py
#!/usr/bin/env python # coding: utf-8 from distutils.core import setup from zsplitjoin import __version__ setup( name='zsplitjoin', version=__version__, description='Simple split and join files.', long_description=open('README.md').read(), author='Marcelo Fonseca Tambalo', author_email='marcel...
[ "marcelo.zokis@gmail.com" ]
marcelo.zokis@gmail.com
fc7f64a9bf70a0f8154eacaf288144950af669a6
5c1e40f2f0ba0a1598f81ce8c3746540d89d9e4e
/src/main/python/logistic_regression_32.py
095a8ae4e7c60a53549b6dafcb70110997df0037
[ "BSD-2-Clause" ]
permissive
ehsantn/data-analytics-benchmarks
ee7c59dc8a51916207846eaedb8a7b5bd6c05ccb
db6ecf8c3e1d899a146ced47a8cc3e92b52fca69
refs/heads/master
2020-06-24T20:31:14.764983
2017-04-27T18:07:06
2017-08-24T04:45:31
74,623,894
1
0
null
null
null
null
UTF-8
Python
false
false
1,399
py
from __future__ import print_function import sys import time import numpy as np from pyspark import SparkContext D = 10 # Number of dimensions def readPointBatch(iterator): strs = list(iterator) matrix = np.zeros((len(strs), D + 1)) for i, s in enumerate(strs): matrix[i] = np.fromstring(s.replace...
[ "ehsan.totoni@intel.com" ]
ehsan.totoni@intel.com
4f18f338911db8180500d305cd78dc9d95bbb0ad
8afb5afd38548c631f6f9536846039ef6cb297b9
/_PYTHON/DATA_STRUC_PYTHON_NOTES/python-prac/Overflow/_Learning/10-functions-returning-functions.py
8beb8f38f69695d7291309db52b496793aeabc61
[ "MIT" ]
permissive
bgoonz/UsefulResourceRepo2.0
d87588ffd668bb498f7787b896cc7b20d83ce0ad
2cb4b45dd14a230aa0e800042e893f8dfb23beda
refs/heads/master
2023-03-17T01:22:05.254751
2022-08-11T03:18:22
2022-08-11T03:18:22
382,628,698
10
12
MIT
2022-10-10T14:13:54
2021-07-03T13:58:52
null
UTF-8
Python
false
false
359
py
def greeting_maker(salutation): print(salutation) def greeting(name): return f"{salutation} {name}" return greeting # print(salutation) # Error, salutation is not defined at this scope hello = greeting_maker("Hello") hiya = greeting_maker("Hiya") print(hello("Monica")) print(hello("Raja")) pr...
[ "bryan.guner@gmail.com" ]
bryan.guner@gmail.com
8f8091b5935291f51fe182f201a3b74fff3d6b9e
457286f32a360c36da04f47fc4e7456dc07ee1df
/apps/log_databus/handlers/collector_scenario/base.py
5b5f7ca863c5a386eb7ac19c3089a4befefc8157
[ "MIT" ]
permissive
jiazhizhong/bk-log
2fad422022f02569acf6e8668bb548cb76fcd8ca
85107762102ba2c72dcfb30fcf8986e146c03889
refs/heads/master
2023-08-21T02:01:08.911894
2021-10-22T08:52:22
2021-10-22T08:52:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,513
py
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-LOG 蓝鲸日志平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-LOG 蓝鲸日志平台 is licensed under the MIT License. License for BK-LOG 蓝鲸日志平台: ------------------------------------------------...
[ "zxz@zhuxingzhao.com" ]
zxz@zhuxingzhao.com
34cba58eb0a10261c4696b7997a2b2b1ffddfe34
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/adjectives/_risible.py
6ad071535a39dc36e64bb6e792dd3265b1990890
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
385
py
#calss header class _RISIBLE(): def __init__(self,): self.name = "RISIBLE" self.definitions = [u'not effective or useful: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'adjectives' def run(self, obj1, obj2): self.jsondata[obj2] = {} self.jsondat...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com