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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1e21179f0570aa693579e6491ffaf4b3e2c88bff | b844c72c394b13d9ed4f73222a934f962d6ff187 | /src/structures/program.py | f7b7a6f7418d7d3bc1faf0ca35d1146a66d15fcf | [] | no_license | curtisbright/sagesat | b9b4c9180c75ce8574217058ffa4e121163ccf36 | 8fe52609ab6479d9b98a1e6cf2199a4f12c27777 | refs/heads/master | 2021-01-01T17:52:01.288449 | 2015-08-19T18:14:26 | 2015-08-19T18:14:26 | 41,425,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | '''
Created on Oct 17, 2014
@author: ezulkosk
'''
class Program(object):
'''
classdocs
'''
def __init__(self, ast):
'''
Constructors
'''
self.ast = ast
self.bools = { }
self.graphs = { }
def toStr(self, indent):
res = "Program\n"
... | [
"ezulkosk@gsd.uwaterloo.ca"
] | ezulkosk@gsd.uwaterloo.ca |
5f1c39b7f1a0f726f7dcc29c7018a74e5f080035 | 609eb72e6f9fefe18ebe806c2aed24bb5b0562c1 | /apps/invoices/models.py | f0acc13e1d3d4a681f55e66650461091b02f2bd6 | [
"MIT"
] | permissive | PocketGM/django-htk | 68b0f780e9f748932e857bf66f3e0ffdf9fb2fa2 | 371ce2c68bc825df174e11d0f6f4c489a8184d9f | refs/heads/master | 2020-12-27T15:26:31.946007 | 2014-12-12T10:45:45 | 2014-12-12T10:45:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,266 | py | from django.conf import settings
from django.core.urlresolvers import reverse
from django.db import models
from htk.apps.invoices.constants import *
from htk.apps.invoices.utils import compute_invoice_code
from htk.fields import CurrencyField
from htk.utils.enums import enum_to_str
class BaseInvoice(models.Model):
... | [
"jontsai@jonathantsai.com"
] | jontsai@jonathantsai.com |
4bd8dd1ae4d0a490aba2aeb6656b3246b7aa3b32 | 9d278285f2bc899ac93ec887b1c31880ed39bf56 | /ondoc/doctor/migrations/0225_merge_20190314_1713.py | b3a7b682746a743fbde3d1c7d89eac3c2c5f43b0 | [] | no_license | ronit29/docprime | 945c21f8787387b99e4916cb3ba1618bc2a85034 | 60d4caf6c52a8b70174a1f654bc792d825ba1054 | refs/heads/master | 2023-04-01T14:54:10.811765 | 2020-04-07T18:57:34 | 2020-04-07T18:57:34 | 353,953,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | # Generated by Django 2.0.5 on 2019-03-14 11:43
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('doctor', '0224_auto_20190314_1709'),
('doctor', '0223_providersignuplead_matrix_lead_id'),
]
operations = [
]
| [
"navneetsingh@docprime.com"
] | navneetsingh@docprime.com |
c35aa7b06fb0de485363edc1da75caeecd3bf974 | 9dba277eeb0d5e9d2ac75e2e17ab5b5eda100612 | /exercises/1901050046/d11/mymodule/main.py | 3607d2c0e686c773d0b1336d3c3af49404d9e679 | [] | no_license | shen-huang/selfteaching-python-camp | e8410bfc06eca24ee2866c5d890fd063e9d4be89 | 459f90c9f09bd3a3df9e776fc64dfd64ac65f976 | refs/heads/master | 2022-05-02T05:39:08.932008 | 2022-03-17T07:56:30 | 2022-03-17T07:56:30 | 201,287,222 | 9 | 6 | null | 2019-08-08T15:34:26 | 2019-08-08T15:34:25 | null | UTF-8 | Python | false | false | 867 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import yagmail
import getpass
import requests
import stats_word
from pyquery import PyQuery
#提取文章正文
r = requests.get('https://mp.weixin.qq.com/s/pLmuGoc4bZrMNl7MSoWgiA')
document = PyQuery(r.text)
content = document('#js_content').text()
#统计词频
result = stats_word.stats_te... | [
"2470962+srvz@users.noreply.github.com"
] | 2470962+srvz@users.noreply.github.com |
47e2512f693b8d7dae3919a19c1129913658adac | 2aace9bb170363e181eb7520e93def25f38dbe5c | /build/idea-sandbox/system/python_stubs/-57053121/scipy/stats/mvn.py | 4839dbc5f44d33ff30f8a051e8b11af29844004e | [] | no_license | qkpqkp/PlagCheck | 13cb66fd2b2caa2451690bb72a2634bdaa07f1e6 | d229904674a5a6e46738179c7494488ca930045e | refs/heads/master | 2023-05-28T15:06:08.723143 | 2021-06-09T05:36:34 | 2021-06-09T05:36:34 | 375,235,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,653 | py | # encoding: utf-8
# module scipy.stats.mvn
# from C:\Users\Doly\Anaconda3\lib\site-packages\scipy\stats\mvn.cp37-win_amd64.pyd
# by generator 1.147
"""
This module 'mvn' is auto-generated with f2py (version:2).
Functions:
value,inform = mvnun(lower,upper,means,covar,maxpts=d*1000,abseps=1e-06,releps=1e-06)
value,in... | [
"qinkunpeng2015@163.com"
] | qinkunpeng2015@163.com |
3df813b7b10c86143253c4d824e3408615ad7b62 | 5141a9446464e03df639093bb75307c3a421084b | /sim/materials/pitch/segment_03/pitch_handlers.py | edc792cea7b2c4d034c339a6744fc4dab648d58e | [] | no_license | GregoryREvans/sim | b32faaa4ec0288dfc03d33e27a46971c30bf6c33 | d9be48232c41365759d551137786627cff140abc | refs/heads/master | 2022-02-26T15:54:15.807251 | 2022-02-10T13:51:19 | 2022-02-10T13:51:19 | 248,852,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,623 | py | import evans
from sim.materials.pitch.segment_03.pitches import (
voice_1_chord_1,
voice_1_chord_2,
voice_1_chord_3,
voice_1_chord_4,
voice_1_chord_5,
voice_1_chord_6,
voice_1_chord_7,
voice_1_chord_8,
voice_2_chord_1,
voice_2_chord_2,
voice_2_chord_3,
voice_2_chord_4,
... | [
"gregoryrowlandevans@gmail.com"
] | gregoryrowlandevans@gmail.com |
03b959614e50f787f0f04938891a9d27ef1ec31b | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/storage-blob-preview/azext_storage_blob_preview/tests/latest/test_storage_sas_scenarios.py | 7fe8ebfd5f1fd7662ee08735a0b96f88a2c80fb6 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 7,018 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
c0aeb537a3746a1fd86d34cb9b84507d15349fce | 527fd39d3a1555800c2c32025fdd15fd86ba6672 | /make_Flexible_Finction/args.py | 0c2e15b007ee07cc6e3d18abdd7e1d7b7d6597f0 | [] | no_license | rohanwarange/Python-Tutorials | cfd39551f7ff62bd032946976ba3820474e42405 | 53d8fb226f94d027ae7999f9678697206d37d83a | refs/heads/master | 2023-06-18T10:45:36.884324 | 2021-07-07T17:44:22 | 2021-07-07T17:44:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | def total(a,b):
return a+b
print(total(5,5))
# *args
def total(*args):
print(args)
total=0
for num in args:
total+=num
return total
print(total(1,2,3,4,5)) | [
"rohanwarange24@gmail.com"
] | rohanwarange24@gmail.com |
4cd3d45d04bbde67e61a64cad5efbb27ea26f331 | 8a41a7f9340cfa784cb36d35dca1ecb1630e4097 | /Programming/Python/dict_practice/Dictionaries_Ordered.py | daef72a4b09a83b3aa461282c1f773d366a4206e | [] | no_license | anishst/Learn | 02e6b6cce43cf21621d328ef0fc25168267a9a3d | a1aed8b78b19acdb23e20be57b67fb242e0aefc5 | refs/heads/master | 2022-05-13T10:17:40.293640 | 2022-03-30T12:44:21 | 2022-03-30T12:44:21 | 173,595,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | from collections import OrderedDict
d = OrderedDict()
d['foo'] = 1
d['bar'] = 2
d['spam'] = 3
d['groom'] = 4
for key in d:
print(key,d[key])
import json
print(json.dumps(d)) | [
"sebastian_anish@bah.com"
] | sebastian_anish@bah.com |
52b7b2f5dcb464cd81400a0fb5ba7962dfdc5ca5 | a03a7935a191d63bee76fd3b85a61ee27f98904a | /src/visitpy/visit_utils/setup.py | 3e5361e0abaa404122a4e29ab1228fc6a4e762b9 | [] | no_license | cchriste/visit | 57091c4a512ab87efd17c64c7494aa4cf01b7e53 | c72c413f571e56b52fb7221955219f11f4ba19e3 | refs/heads/master | 2020-04-12T06:25:27.458132 | 2015-10-12T15:41:49 | 2015-10-12T15:41:49 | 10,111,791 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,130 | py | #*****************************************************************************
#
# Copyright (c) 2000 - 2015, Lawrence Livermore National Security, LLC
# Produced at the Lawrence Livermore National Laboratory
# LLNL-CODE-442911
# All rights reserved.
#
# This file is part of VisIt. For details, see https://visit.llnl... | [
"bonnell@18c085ea-50e0-402c-830e-de6fd14e8384"
] | bonnell@18c085ea-50e0-402c-830e-de6fd14e8384 |
fe14c9a96e8cc5ceb988566f3f44b607c74ee60f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03729/s464510871.py | 1871472a58b9eb44569fe01d1ae8219a23ea2c08 | [] | 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 | 206 | py | def main():
s1,s2,s3 = map(str,input().split())
ans = False
if s1[len(s1)-1] == s2[0]:
if s2[len(s2)-1]==s3[0]:
ans = True
print("YES" if ans else "NO")
if __name__ == '__main__':
main() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
cc0c913331abe5f50e3e501719d521e817e06232 | 915865db25d918a4b2c3296aaa702fedf784b042 | /experiments/amplitude/filters_and_envelope.py | 7fc2b2a7fdaa51ea790575b8d8a11459ab693256 | [] | no_license | nikolaims/pi_nfb | f456484683f31986d12f659ee2a9227a51d5edf4 | 789ad0e20fac7f8d0843b5c3af834e23dcc65e33 | refs/heads/master | 2020-04-05T08:09:23.416703 | 2017-07-25T08:55:32 | 2017-07-25T08:55:32 | 81,811,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,404 | py | import pylab as plt
from scipy.signal import *
from utils.data.loaders import get_ideal_signal, load_feedback, get_signal
from utils.filters import magic_filter_taps, min_phase_magic_filter
from utils.sinbase import get_base
from itertools import combinations
import numpy as np
n = 10000
n_components = 50
fs = 250
ban... | [
"smtnm@ya.ru"
] | smtnm@ya.ru |
df9acff7102ba7093d1df918c8721d0bccd54c52 | 89ad82bfa5bb3aa3312c815f4199c88e12345974 | /test/test_ifc_checker_checkplan.py | 49cf0d81acc925c49a8f75cc27b0302c48ded0e7 | [] | no_license | lucaslmmanoel/python-api-client | 020f55251af5d86a895740d806618ba94f1863b0 | 49dbabfddb576d3b816c84d86f5c1f080f553704 | refs/heads/master | 2021-02-15T22:45:14.735020 | 2020-03-04T14:02:29 | 2020-03-04T14:02:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | # coding: utf-8
"""
BIMData API
BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints. # noqa: E501
The version of the OpenAPI document: v1
Contact: contac... | [
"infra@bimdata.io"
] | infra@bimdata.io |
01c8ccbe9e6889846c28217f8e9266445fb7c747 | 4d0eae8dc3c7dabe2ff79fd8ad035be056423ac7 | /weixincl/weixincl/apps/weixin/urls.py | beb633d21134a141c05983baea470dfeeeaf34ee | [
"MIT"
] | permissive | lionsin/weixincl | 2cdb83e3e596c7fe168b31ed6f747715f7919024 | e02f342b00eaea2704a34ca889903747b0fbb167 | refs/heads/master | 2020-11-30T00:48:33.053979 | 2019-12-26T14:16:04 | 2019-12-26T14:16:04 | 230,254,861 | 1 | 2 | MIT | 2019-12-26T14:54:06 | 2019-12-26T11:45:49 | Python | UTF-8 | Python | false | false | 928 | py | from django.conf.urls import url
from weixin import views
urlpatterns = [
# Articles/search?
url(r"^pcnum/search$", views.PcSearchListView.as_view()),
url(r"^collect_list$", views.AddCollectList.as_view()),
url(r"^collect_list/clear$", views.ClearCollectList.as_view()),
url(r"^collect_list/delete$"... | [
"="
] | = |
f85c12fb2141e0a77279dc13b68fe54489ab674f | a26554d068f564f2811e7774f5df44326dd6978b | /04. FUNCTIONS/04-02-07. Perfect Number.py | e62a4aef3a2b7574dae7bd4f64c0788746f07a0e | [] | no_license | emma-metodieva/SoftUni_Python_Fundamentals_202009 | 300c8323308af8a7be4efe42836dd6a7866a34b0 | 5f58a2d565dc4c3bf28330888aa6a2d3b1f8125f | refs/heads/master | 2023-01-31T15:28:04.360805 | 2020-12-12T20:39:17 | 2020-12-12T20:39:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | # 04-02. FUNCTIONS [Exercise]
# 07. Perfect Number
def perfect_number(number):
perfect = False
sum_divisors = 0
if number > 0:
for i in range(1, number):
if number % i == 0:
sum_divisors += i
if sum_divisors == number:
perfect = True
return perfec... | [
"emma.hristova@gmail.com"
] | emma.hristova@gmail.com |
4d8545ec4c2396a029e4df3f841a6a2014442e80 | 4edbeb3e2d3263897810a358d8c95854a468c3ca | /python3/urllib/urllib1.py | 0a567f305976d5ebce0f80d94faea4c0b095cdf5 | [
"MIT"
] | permissive | jtraver/dev | f505d15d45b67a59d11306cc7252114c265f388b | 2197e3443c7619b856470558b737d85fe1f77a5a | refs/heads/master | 2023-08-06T02:17:58.601861 | 2023-08-01T16:58:44 | 2023-08-01T16:58:44 | 14,509,952 | 0 | 1 | MIT | 2020-10-14T18:32:48 | 2013-11-19T00:51:19 | Python | UTF-8 | Python | false | false | 479 | py | #!/usr/bin/env python3
#!/usr/bin/python
import urllib.request, urllib.parse, urllib.error
def main():
# url = 'https://screener.finance.yahoo.com/stocks.html'
url = 'https://screener.finance.yahoo.com/b?sc=&im=&prmin=0&prmax=&mcmin=&mcmax=&dvymin=0&dvymax=&betamin=&betamax=&remin=&remax=&pmmin=&pmmax=&pemin=... | [
"john@aeropsike.com"
] | john@aeropsike.com |
e1450556c70c9b5607a7ff05bc84adab3fea1d72 | 732b0b3e2ae0e6c498cfd2ed893de60b9fc22a32 | /tests/integration/actions/collections/test_direct_interactive_ee.py | efb5c28f74c6641d5927e5003b6c20613e8003f6 | [
"Apache-2.0"
] | permissive | didib/ansible-navigator | eb7b77c1df30b2e90b663383f0f76b6224e92c02 | 62fdbd05f25fb2d79133b3ab207f53ac2f2d6d36 | refs/heads/main | 2023-08-30T06:43:42.876079 | 2021-10-14T18:42:17 | 2021-10-14T18:42:17 | 425,540,819 | 0 | 0 | Apache-2.0 | 2021-11-07T15:27:54 | 2021-11-07T15:27:53 | null | UTF-8 | Python | false | false | 1,161 | py | """ collections direct from cli interactive with ee
"""
import pytest
from .base import BaseClass
CLI = "ansible-navigator collections --execution-environment true"
testdata = [
(0, CLI, "ansible-navigator collections browse window"),
(1, ":0", "Browse testorg.coll_1 plugins window"),
(2, ":0", "lookup_... | [
"noreply@github.com"
] | didib.noreply@github.com |
ff2b2b75ab60f2bcdf63d75afe4f428eebcd8f6a | 4488e3c26de4291da447d8251c491b43cb810f7c | /orgstruct_partner_zip/__openerp__.py | a3cafaa4ab0bc9f4d686889567eae43e20dccf4d | [] | no_license | smart-solution/odoo-crm-80 | b19592ce6e374c9c7b0a3198498930ffb1283018 | 85dfd0cc37f81bcba24d2a0091094708a262fe2c | refs/heads/master | 2016-09-06T06:04:35.191924 | 2015-07-14T12:48:28 | 2015-07-14T12:48:28 | 33,174,511 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,426 | 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... | [
"fabian.semal@smartsolution.be"
] | fabian.semal@smartsolution.be |
3a53cb314b58082e61aced67aaaa888078c41c10 | 4349c9bea560b094c9c84540b539b612bef40953 | /subliminal/plugins/Subtitulos.py | bcb26d7660b42c8945d9ef49c23251f6c806f8e1 | [] | no_license | fgel/subliminal | 456c263603cbe5143e6b6343930222ece9c465dc | 3cf265f6c978506d02e74c87cadd0a8e6c6419fe | refs/heads/master | 2021-01-18T09:21:04.687551 | 2011-11-11T19:37:19 | 2011-11-11T19:37:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,288 | py | # -*- coding: utf-8 -*-
#
# Subliminal - Subtitles, faster than your thoughts
# Copyright (c) 2008-2011 Patrick Dessalle <patrick@dessalle.be>
# Copyright (c) 2011 Antoine Bertin <diaoulael@gmail.com>
#
# This file is part of Subliminal.
#
# Subliminal is free software; you can redistribute it and/or modify it under
# ... | [
"diaoulael@gmail.com"
] | diaoulael@gmail.com |
6ec582b45c915e09dd744f84899c6718fc1c86f7 | f6c6e0ebc18b7b1a28c23367f62c960e86194c88 | /fileIO/hdf5/backup/plot_h5.py | 0190bfb940e43963a0d6738e3a4fb4c64a2e2b2f | [] | no_license | TheGrim1/python_work | 9316d6fbb71a4be9bd901f104e939949dfd91174 | 5b34277aed4c06b62276644160e0aa97a4260233 | refs/heads/master | 2021-01-11T13:54:54.366575 | 2019-03-12T12:38:39 | 2019-03-12T12:38:39 | 94,876,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,279 | py | from __future__ import print_function
# home: /data/id13/inhouse2/AJ/skript/fileIO/hdf5/open_h5.py
# global imports
import h5py
import sys, os
import matplotlib.pyplot as plt
import time
# local imports
from open_h5 import open_h5
def plot_h5(data,
index=0,
title = "Title"):
dimension =... | [
"opid13@nanofocus.esrf.fr"
] | opid13@nanofocus.esrf.fr |
bca28e38fcd7944d329ae326037eaa937382d563 | 032144d039ead151804d56910a4059d0fc48c374 | /civpy/structures/node_load.py | f1c958aa95696c84c41c95e1f4f0d620e2bcf427 | [
"BSD-3-Clause"
] | permissive | mpewsey/civpy | 038f5bd4a22971864cceb7c4f9568fdcca40a147 | bbf74b1c04ca9f7604831f5280cc80d796240e67 | refs/heads/master | 2022-02-26T06:45:40.087975 | 2019-05-05T04:48:47 | 2019-05-05T04:48:47 | 170,751,326 | 16 | 3 | BSD-3-Clause | 2022-02-11T02:30:16 | 2019-02-14T20:09:32 | Python | UTF-8 | Python | false | false | 5,178 | py | """
Copyright (c) 2019, Matt Pewsey
"""
import weakref
import numpy as np
__all__ = ['NodeLoad']
class NodeLoad(np.ndarray):
"""
A class representing a load applied to a node.
Parameters
----------
node : str
The name of the node to which the load will be applied.
fx, fy, fz : float... | [
"mattpewsey@gmail.com"
] | mattpewsey@gmail.com |
7996b0260e16f6a5f2b53bf673c0e97d691983cd | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/39/usersdata/136/13246/submittedfiles/dec2bin.py | f1bd3e0804d034f78294918ab7ae45017384299e | [] | 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 | 144 | py | n = int(input("Digite um número decimal:"))
i = 0
j = 1
d = n%2
while n>0:
d = n%2
n = n/2
i = i+(d*j)
j = j*10
print("%d"%i) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
e499d64a713706ac756077b6e2c5e825b687d3c7 | ff941fe046a593189050b6fdf77d44ade0925e8a | /lesson_python_basics/default_parameters2.py | 7a862b12f45c6e47912aa620b568a03c7691b53e | [] | no_license | hamk-webdev-intip19x6/petrikuittinen_assignments | c0dd02d3465ebf29f4387ab2805b12858c22110b | 68dc154fbc571d8bc85f8eec0130b49e143c1e51 | refs/heads/master | 2021-11-11T04:08:45.963836 | 2021-10-04T15:47:03 | 2021-10-04T15:47:03 | 233,399,492 | 0 | 9 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | def ask(question, choices, correct, retries=2):
i = 1
print(question)
for c in choices:
print(i, c)
i += 1
while retries>0:
try:
guess = int(input("?"))
except ValueError:
continue
if guess==correct:
print("right")
b... | [
"pkuittinen@ubuntupetrikuittinen.xbp5jv35e4rujjrlarqjj32eqf.fx.internal.cloudapp.net"
] | pkuittinen@ubuntupetrikuittinen.xbp5jv35e4rujjrlarqjj32eqf.fx.internal.cloudapp.net |
1b7ef58ff701c085ead9ee493e21e53abfca2806 | 250b997d715c168315a927e28124cf24c77048c0 | /python3基础/9.Python修炼第九层/day9预习/11 生产者消费者模型.py | c20f15d6206f6793cd0c499148df156b6e894097 | [] | no_license | cuitianfeng/Python | c78077e5dcad01ee5fe44c0aa8b61bbc2fa388cf | 9c9f10f13311116ce0bc60ec128f765ff2ca3078 | refs/heads/master | 2023-01-10T23:25:57.158141 | 2020-11-17T15:39:36 | 2020-11-17T15:39:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,299 | py | # from multiprocessing import Process,Queue
# import time,os
# def producer(q,name):
# for i in range(3):
# time.sleep(1)
# res='%s%s' %(name,i)
# q.put(res)
# print('\033[45m<%s> 生产了 [%s]\033[0m' %(os.getpid(),res))
#
#
# def consumer(q):
# while True:
# res=... | [
"zhang.hongyang@mydreamplus.com"
] | zhang.hongyang@mydreamplus.com |
56e5c49696fd2ab9d295abcdc27255368e6e7461 | ea83d172b211dad5a5d3680a537e4d2d538f42d9 | /week2_priority_queues_and_disjoint_sets/1_make_heap/test_build_heap_cases.py | a7a62dbb8dc4ded4e681d2d59664d2f5a4b798b0 | [] | no_license | FluffyFu/UCSD_Algorithms_Course_2 | 9e17e696be14b70da0d221802e4fb8527aeab0aa | f56aeee174f89cebffe5df6abb3930bda1fd4709 | refs/heads/master | 2022-12-07T00:38:28.499483 | 2020-08-27T15:39:36 | 2020-08-27T15:39:36 | 285,307,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | from build_heap import build_heap
with open('tests/04') as f:
n = int(f.readline())
data = list(map(int, f.readline().split()))
with open('tests/04.a') as f:
n_swaps = int(f.readline())
results = []
for line in f.readlines():
results.append(tuple(map(int, line.split())))
my_results = bui... | [
"fluffyfu400@gmail.com"
] | fluffyfu400@gmail.com |
ebf006c8185185dddd4a84f9ef15bb8c06bb38ac | 07622a0fb38e843ab0eef4f69bb8fb25d107c06d | /pretrained_mol_sim/Theano-master/theano/tests/main.py | 97fea16ecc4d8d8763b25fdd0fb1d970cab187e3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | andreeadeac22/graph_coattention | fa59d77252625e4bee1cb9670e4a0fd0fec98135 | 23781fedaa942ca5614054f965cb7b6543e533fa | refs/heads/master | 2023-08-08T01:51:51.368457 | 2020-02-19T04:56:59 | 2020-02-19T04:56:59 | 207,414,336 | 15 | 4 | MIT | 2023-07-22T15:47:39 | 2019-09-09T22:13:34 | Python | UTF-8 | Python | false | false | 6,222 | py | from __future__ import absolute_import, print_function, division
import os
import unittest
import sys
from numpy.testing.nosetester import NoseTester
# This class contains code adapted from NumPy,
# numpy/testing/nosetester.py,
# Copyright (c) 2005-2011, NumPy Developers
class TheanoNoseTester(NoseTester):
"""
... | [
"andreeadeac22@gmail.com"
] | andreeadeac22@gmail.com |
6372135fc16eea5d5a7e51601a76f80eaa89bac6 | c61b1c1b65034215e85266db918c39946a3bafe7 | /athletes/serializers.py | 474ff1d5651ddb2dd3fc4d48d21a27ada56cb54d | [] | no_license | enias-oliveira/olympicHistory | 06cdc64f0ef06cf6b33472872539a0c57831f52c | e02f648d2bd127c8ae16c976fb8610005ac27604 | refs/heads/master | 2023-08-16T03:36:33.261214 | 2021-10-05T18:11:52 | 2021-10-05T18:11:52 | 411,797,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,494 | py | from rest_framework import serializers
from medals.models import Medal
from medals.serializers import MedalSerializer
from games.models import Event
from games.serializers import EventSerializer
from .models import Athlete, Country
class AthleteMedalSerializer(MedalSerializer):
class Meta:
model = Medal... | [
"eniasoliveira27@gmail.com"
] | eniasoliveira27@gmail.com |
2ba268102fe8f16978356394926d7b179fdf9dc9 | 69819f1d554e48b6d1f280e4d4785b35734e6235 | /py_learning/test3_4.py | 55da6b2b3bb96778e1fca613dd93c9a228e22b41 | [] | no_license | SamKaiYang/python_code | 8b60b4b68ab7cd4261e237972c0f6e45fc2dced5 | fb16471aa96082efc906fd8129cecd3a8b19e8a0 | refs/heads/master | 2020-04-26T03:26:38.041377 | 2019-04-11T06:38:09 | 2019-04-11T06:38:09 | 173,267,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,202 | py | import numpy
###--------------------ch.3-------------------
years_list = [1996 ,1997 ,1998 ,1999 ,2000]
print("----------------ch3----------------------------")
print("3.1:",years_list)
print("-----------------------------------------------")
print("3.2:",years_list[2])
print("------------------------------------------... | [
"tt00621212@gmail.com"
] | tt00621212@gmail.com |
905a119de0d7d34cc786486287e9cd094818c475 | c82cefee68d557b0790483500b58e7e2988bd33b | /lib/web.py | 2b001db7cb369359b02c9788fdcdc55fce7b4de8 | [
"MIT"
] | permissive | amadeobrands/electrum | c5def78731faf6908cf48342ce3d291547d1a52f | 459100eda0f3cdcf6d75e304d08345a627364078 | refs/heads/master | 2021-08-29T11:38:29.221991 | 2017-12-13T11:00:16 | 2017-12-13T21:05:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,964 | py | # Electrum - lightweight Bitcoin client
# Copyright (C) 2011 Thomas Voegtlin
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including without limitation the rights t... | [
"kyuupichan@gmail.com"
] | kyuupichan@gmail.com |
99851ffa805c3ed010783c1fa4bcefd5dc0b55af | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/f05c02c4b8d4e423e57d453c4bd699dc5ff7eaa7-<test_quote_value>-fix.py | b76461e1c58bbd3cbb3da8d06195ffab39dbfdfe | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | def test_quote_value(self):
import MySQLdb
editor = connection.schema_editor()
tested_values = [('string', "'string'"), (42, '42'), (1.754, ('1.754e0' if (MySQLdb.version_info >= (1, 3, 14)) else '1.754')), (False, (b'0' if (MySQLdb.version_info >= (1, 4, 0)) else '0'))]
for (value, expected) in tested_... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
b6a5ed0416da616a2c7f584e7ad77d7f96bb9d7a | 65e73c6c4a9e66715be2cbdd93339ebcab93976e | /windmill/fundo/migrations/0032_vertice_corretora.py | a3eb1329352877a6515e34208cf08afdae56e014 | [] | no_license | AnimaTakeshi/windmill-django | 3577f304d5e7f74750c7d95369e87d37209f1ac6 | 78bde49ace1ed215f6238fe94c142eac16e164dc | refs/heads/master | 2022-12-13T11:13:21.859012 | 2019-02-07T20:50:01 | 2019-02-07T20:50:01 | 150,470,109 | 0 | 0 | null | 2022-12-08T01:29:36 | 2018-09-26T18:13:54 | Python | UTF-8 | Python | false | false | 493 | py | # Generated by Django 2.0 on 2018-11-29 19:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('fundo', '0031_auto_20181129_1104'),
]
operations = [
migrations.AddField(
model_name='vertice',
... | [
"33721822+AnimaTakeshi@users.noreply.github.com"
] | 33721822+AnimaTakeshi@users.noreply.github.com |
a164d0312f3a5559e47223aa73fad366d912287a | ce6739d9e76f16d1cbdfbb3292cdabac62d23ee1 | /mod_2/lesson_8/homework_2/main.py | 388347f374c64f6a6f86d8e8dd8ed5640d330d2c | [] | no_license | adrbed/python_poczatek | 1a863c0dc40c2315ced8985cf0b31d1b84e3f940 | 134626ccbe2255b0a28183e7d5d212db12c7deb4 | refs/heads/master | 2023-02-10T15:06:51.888544 | 2021-01-09T18:23:56 | 2021-01-09T18:23:56 | 328,218,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py |
# Dodaj do programu obsługę polityki rabatowej.
# Zaimplementuj funkcje reprezentujące politykę podatkową i przekaż je do konstruktora zamówienia.
# Jeżeli polityka została przekazana to podczas liczenia łącznej kwoty zamówienia należy naliczyć rabat.
# Jeżeli nie - obliczamy łączną kwotę jak dotychczas.
# Zaimplement... | [
"adrianbednarczyk1@gmail.com"
] | adrianbednarczyk1@gmail.com |
e9e9799b02db2f0a528239390a1408c0943ce0df | c3e776b885ac9552ad4b96b63594ab759f12cc3a | /test/test_shape.py | c641e71e3eca4afe9db6faef214267b55670c856 | [] | no_license | wing328/petstore-python | e9ff3c2a5ff0fdddb1e6b0f12fc7e1d48f65590a | fa65c111bb2a040ebb0ed0db3ff9c52c8821922e | refs/heads/master | 2021-10-20T22:22:33.677235 | 2021-10-17T10:33:24 | 2021-10-17T10:33:24 | 54,948,706 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | """
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
import sys
impor... | [
"wing328hk@gmail.com"
] | wing328hk@gmail.com |
6964898e391447b3d1130c2528211f4e8de6b23d | cdbf40c2de7b22a10e07a1f612cb49059a3fc858 | /main/cache.py | 970f75c7d612d8b1dcad2a10c9422a214c3a4833 | [
"MIT"
] | permissive | riccitensor/gae-init | 2e86a77e5a99a8a0ad4889a275974409945a1940 | d9061cf32a26ebc03873431838ead0b1150374b9 | refs/heads/master | 2020-12-31T03:35:49.650513 | 2014-09-15T23:45:57 | 2014-09-15T23:45:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | # coding: utf-8
from google.appengine.api import memcache
###############################################################################
# Helpers
###############################################################################
def bump_counter(key, time=3600, limit=4):
client = memcache.Client()
for _ in range(... | [
"lipiridis@gmail.com"
] | lipiridis@gmail.com |
32b125c421cc16caea121a8692ce403e096ba7ff | 3f4b535e537666b669b4cfbfca05c7529d2fb631 | /Algorithms/generate_palindromes_recursion.py | 4b79f741f374bae1608a3aa0949e2745f2171c29 | [] | no_license | iliachigogidze/Python | ded0a78a1751a536fcdf1fd864fc296ef52f6164 | 6db759b3ee4f4b866421b2cb3a775b7aec32b0c9 | refs/heads/master | 2020-04-09T08:15:07.107069 | 2019-03-11T10:35:23 | 2019-03-11T10:35:23 | 160,187,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | '''
18. Given a list of distinct letters and a positive number N, generate all possible palindromes
having the length not greater than N. Single word can be used multiple times per palindrome. Example: ['a', 'b'], N=3 a aa aaa b bb bbb aba bab
'''
def main(ls, n):
print('List: ', ls)
word = 'a' * n
retu... | [
"iliachigogidze@gmail.com"
] | iliachigogidze@gmail.com |
85c201f5f5de17ab3e1365558c6188fbb929728d | 1825283527f5a479204708feeaf55f4ab6d1290b | /leetcode/python/841/841.keys-and-rooms.py | 0656b2ebe9f552d97e1b6e8129c65305972f48bf | [] | no_license | frankieliu/problems | b82c61d3328ffcc1da2cbc95712563355f5d44b5 | 911c6622448a4be041834bcab25051dd0f9209b2 | refs/heads/master | 2023-01-06T14:41:58.044871 | 2019-11-24T03:47:22 | 2019-11-24T03:47:22 | 115,065,956 | 1 | 0 | null | 2023-01-04T07:25:52 | 2017-12-22T02:06:57 | HTML | UTF-8 | Python | false | false | 1,525 | py | #
# @lc app=leetcode id=841 lang=python3
#
# [841] Keys and Rooms
#
# https://leetcode.com/problems/keys-and-rooms/description/
#
# algorithms
# Medium (58.74%)
# Total Accepted: 24.4K
# Total Submissions: 41.6K
# Testcase Example: '[[1],[2],[3],[]]'
#
# There are N rooms and you start in room 0. Each room has a d... | [
"frankie.y.liu@gmail.com"
] | frankie.y.liu@gmail.com |
0ba08eb41cfb2e76bd9b6aa1e05cd05ecd2ebf2b | 9047aec2400933376e71fdc24d087d2ad35b4d45 | /flipAndInvertImage_832.py | 0145883c6e9c652019e80f3433fce0bc3df0edd1 | [] | no_license | sasankyadavalli/leetcode | a8c3a4b63970cfa67a8bbec5d1fb7cca818f7ea9 | 555931bc5a74e0031726070be90c945da9cb3251 | refs/heads/master | 2021-02-07T12:12:06.938562 | 2020-07-28T18:25:10 | 2020-07-28T18:25:10 | 244,024,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | class Solution:
def flipAndInvertImage(self, A: List[List[int]]) -> List[List[int]]:
for i in range(len(A)):
A[i] = A[i][::-1]
for j in range(len(A[i])):
A[i][j] ^= 1
return A | [
"yadavallisasank@gmail.com"
] | yadavallisasank@gmail.com |
43c1a91b4e3f8f288ce744bcc1e36236880f0919 | 9268c07cd58f68fd20daf5e38880ef452eeca331 | /10219-.py | 7e62d546d53bceb63e73315a6a81a245e42f14d1 | [] | no_license | rkdr055/BOJ | bbdbdcf8a9df399c3655eea3d9f337275b1ae504 | d90465cfa80d124aba8f9572b9bd5e4bb2a62031 | refs/heads/master | 2021-04-09T14:26:04.811468 | 2018-03-18T10:05:20 | 2018-03-18T10:05:20 | 125,712,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | case=int(input())
list=[]
list2=[]
for z in range(case):
h,w=map(int,input().split())
for i in range(h):
list.append(input())
list2.append(list[i][::-1])
for i in range(len(list2)):
print(list2[i])
| [
"rkdr955@naver.com"
] | rkdr955@naver.com |
b109faeccfded125ae603f0cd2ccb693475c2cdf | 31f9333012fd7dad7b8b12c1568f59f33420b0a5 | /Alessandria/env/lib/python3.8/site-packages/django/template/utils.py | 41921a09a2c9c6ce444863547c4c915b4f03271c | [] | no_license | jcmloiacono/Django | 0c69131fae569ef8cb72b135ab81c8e957d2a640 | 20b9a4a1b655ae4b8ff2a66d50314ed9732b5110 | refs/heads/master | 2022-11-15T22:18:57.610642 | 2020-07-14T14:43:16 | 2020-07-14T14:43:16 | 255,125,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,566 | py | import functools
from collections import Counter
from pathlib import Path
from django.apps import apps
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.utils.functional import cached_property
from django.utils.module_loading import import_string
class InvalidTempla... | [
"jcmloiacono@gmail.com"
] | jcmloiacono@gmail.com |
b408eb1c942cd29c1efe13d3c57a2c4785cf6995 | 95cdf7753fc4022be239666a902df217a93f7125 | /dangdang/test_case/test_login_2.py | 5af74b59fe9373ec7b2a931f7cda17f213c6b17c | [] | no_license | he9mei/python_appium | ffe1b872d3732b9e8510da0dd24f7a791c534be0 | 9fc5dcb67769d2d103756b9fca82d2cfeae40e72 | refs/heads/master | 2022-06-01T03:24:36.821931 | 2022-05-22T07:55:58 | 2022-05-22T07:55:58 | 223,714,095 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,002 | py |
import os
import pytest
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.common.by import By
from dangdang.base.base_try_2py import BasePre #导入包时应该from到py文件
class TestLogin(BasePre):
def test_01(self):
#进入登录页面
driver=self.driver
# driver.find_eleme... | [
"396167189@qq.com"
] | 396167189@qq.com |
0e2e8ebd7cc2d7103bce5e551dfe8fdb46f11f37 | 039f2c747a9524daa1e45501ada5fb19bd5dd28f | /ARC070/ARC070e.py | 180283ee92bad6826c10a5ff60317df1e96f5613 | [
"Unlicense"
] | permissive | yuto-moriizumi/AtCoder | 86dbb4f98fea627c68b5391bf0cc25bcce556b88 | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | refs/heads/master | 2023-03-25T08:10:31.738457 | 2021-03-23T08:48:01 | 2021-03-23T08:48:01 | 242,283,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | #ARC070e
def main():
import sys
input=sys.stdin.readline
sys.setrecursionlimit(10**6)
if __name__ == '__main__':
main() | [
"kurvan1112@gmail.com"
] | kurvan1112@gmail.com |
d3794f2b28a9458808b14c3906f02f49f7c018d0 | 622f779c8ed0bf589b947c5550c11f64f438444a | /src/108-convert-sorted-array-to-binary-search-tree.py | 2b05af9f48d9a0ecb0fa80a84c03597351f4918c | [
"MIT"
] | permissive | sahilrider/LeetCode-Solutions | 9290f69096af53e5c7212fe1e3820131a89257d0 | 9cac844c27b5dbf37a70c2981a09cd92457f7ff1 | refs/heads/master | 2023-01-03T22:35:28.377721 | 2020-10-25T16:15:49 | 2020-10-25T16:15:49 | 232,368,847 | 2 | 0 | MIT | 2020-10-25T16:15:50 | 2020-01-07T16:37:43 | Python | UTF-8 | Python | false | false | 806 | py | '''https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/'''
# 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 sortedArrayToBST(self, nums: List... | [
"sahilriders@gmail.com"
] | sahilriders@gmail.com |
e7d71e403f48b53d8264ec423ce14f51ac3ee2fa | 72f6abca19153ebc58921b148f51c09967e131d7 | /examples/correlated_gaussians/run_test.py | 83e0aa23cd49c234198a0e984df5977af54c1706 | [] | no_license | mboudiaf/Mutual-Information-Variational-Bounds | 3e2693a5b2a06d65988ded931e0a5116456697e6 | 56e8e3f2369ed107cd363d854d9f155fbf242930 | refs/heads/master | 2023-04-08T00:03:46.946564 | 2019-10-31T18:48:17 | 2019-10-31T18:48:17 | 216,642,876 | 38 | 5 | null | 2023-03-24T23:13:25 | 2019-10-21T18:55:11 | Python | UTF-8 | Python | false | false | 851 | py | #!/usr/bin/env python
"""run_tests.py: Script to execute in order to make sure basic features work properly."""
import os
import itertools
regularizers = ["nce", "mine", "nwj"]
critic_types = ["joint", "separate"]
comb_test_params = itertools.product(regularizers, critic_types)
name_test_params = ['regularizer', 'c... | [
"malik.boudiaf@hotmail.fr"
] | malik.boudiaf@hotmail.fr |
34752630bb94a41e0623b3e17a229516d7faaf70 | fc772efe3eccb65e4e4a8da7f2b2897586b6a0e8 | /Controller/glance/tests/functional/v1/test_multiprocessing.py | bfbb88b6aaa9ce22c2afe7d5cd7e4980f891b31c | [] | no_license | iphonestack/Openstack_Kilo | 9ae12505cf201839631a68c9ab4c041f737c1c19 | b0ac29ddcf24ea258ee893daf22879cff4d03c1f | refs/heads/master | 2021-06-10T23:16:48.372132 | 2016-04-18T07:25:40 | 2016-04-18T07:25:40 | 56,471,076 | 0 | 2 | null | 2020-07-24T02:17:46 | 2016-04-18T02:32:43 | Python | UTF-8 | Python | false | false | 2,497 | py | # Copyright 2012 OpenStack Foundation
# 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 requ... | [
"wwang@linx-info.com"
] | wwang@linx-info.com |
582971ce3a9a478be81b73546667dd8843b56322 | 97543ae8e1ad7bf3d17dd87171aaac04f6737b5f | /bibliopixel/util/server_cache.py | 6752a1a164b698f46bdec0887fe6f9a44ffab3a0 | [
"MIT"
] | permissive | dr-aryone/BiblioPixel | a3c630bf1cd5db2b014b86775d283c61565a193e | fd97e6c651a4bbcade64733847f4eec8f7704b7c | refs/heads/master | 2020-05-27T16:19:15.043592 | 2019-03-23T08:52:37 | 2019-03-25T11:10:39 | 188,698,414 | 2 | 1 | MIT | 2019-05-26T15:12:38 | 2019-05-26T15:12:37 | null | UTF-8 | Python | false | false | 3,322 | py | import errno
from . import log
class StaticCache:
SERVER_CLASS = None
SERVER_KWDS = {}
CACHE = None
@classmethod
def cache(cls):
if not cls.CACHE:
cls.CACHE = ServerCache(cls.SERVER_CLASS, **cls.SERVER_KWDS)
return cls.CACHE
@classmethod
def close_all(cls):
... | [
"tom@swirly.com"
] | tom@swirly.com |
131ab62769f61bb7383f1f1debef3512ce034caf | b47c136e077f5100478338280495193a8ab81801 | /Lights/adafruit-circuitpython-bundle-6.x-mpy-20210310/examples/trellism4_neopixel_toggle.py | 96f58e006b9ea62fbbd51578016af63ab64293da | [
"Apache-2.0"
] | permissive | IanSMoyes/SpiderPi | 22cd8747cc389f674cc8d95f32b4d86f9b7b2d8e | cc3469980ae87b92d0dc43c05dbd579f0fa8c4b1 | refs/heads/master | 2023-03-20T22:30:23.362137 | 2021-03-12T17:37:33 | 2021-03-12T17:37:33 | 339,555,949 | 16 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
import adafruit_trellism4
trellis = adafruit_trellism4.TrellisM4Express()
def wheel(pos):
if pos < 0 or pos > 255:
return 0, 0, 0
if pos < 85:
return int(255 - pos * 3), int(pos * 3), 0
... | [
"ians.moyes@gmail.com"
] | ians.moyes@gmail.com |
81c3fe0c21b388da7fe81eb05e8d462f98493ed4 | d081f87beb90e0e3697045b9139bde67253faf4d | /capsule_em/cap_datasets/dataset_utils.py | e51817113705f395f1898dfceabc979141a42d4c | [] | no_license | hannarud/deep_learning | db9ed75c9fedd70dc3cb3935bba3947c818095ee | b5d1c91e8dcb6252e24f3ab35797ca4130381ec0 | refs/heads/master | 2020-03-28T03:21:20.849132 | 2019-05-08T08:43:23 | 2019-05-08T08:43:23 | 147,638,984 | 0 | 0 | null | 2018-09-06T08:02:52 | 2018-09-06T08:02:52 | null | UTF-8 | Python | false | false | 4,679 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"jonathan@jonathanhui.com"
] | jonathan@jonathanhui.com |
9a24299854d18bdf5acbd798a36d3a8c59c91c20 | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /cv/super_resolution/ttvsr/pytorch/mmedit/datasets/pipelines/__init__.py | c13aa348d3e6cc61b5ca58e39f9d48692875f339 | [
"MIT",
"Apache-2.0"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 2,111 | py | from .augmentation import (BinarizeImage, Flip, GenerateFrameIndices,
GenerateFrameIndiceswithPadding,
GenerateSegmentIndices, MirrorSequence, Pad,
RandomAffine, RandomJitter, RandomMaskDilation,
RandomTransposeH... | [
"jia.guo@iluvatar.ai"
] | jia.guo@iluvatar.ai |
26130706f87e5a118dc66d2a02de049ab432949c | 5878d1482e9780a2d4cdcaf6ec5a624fa62b0283 | /cars/urls.py | 330b556f8d24123d0479fba1b76cd0118021ed6e | [] | no_license | solar1um/caarsssss | 2d5c3f466d681739a26d69f8caba0773b9e3bf06 | e7d826f8984fa90832c099ce1b4d5efb74578c5e | refs/heads/main | 2023-07-13T03:44:07.805703 | 2021-08-19T13:15:11 | 2021-08-19T13:15:11 | 398,232,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | from django.conf import settings
from django.conf.urls.static import static
from django.contrib.auth import login
from django.urls import path
from .views import main_page, create_ad, all_cars, car_detail, user_cars, car_update, car_delete, search
urlpatterns = [
path('search/', search, name='search'),
path('c... | [
"mitya.klimenko123@gmail.com"
] | mitya.klimenko123@gmail.com |
2ce0493d54e9a48fe0d474e508f638583259cd3c | fa4e5513fc069f0b7aeed1d86b78081c05253822 | /jophiel/spiders/scrapy/contrib/memdebug.py | d4b1570b0a210936e70355383db0849da8d99b32 | [] | no_license | dreamfrog/jophiel | b0f00c62a8061030cd4a5a075cc8faf9686d44b8 | 1c51a16eca7201c0dec9bb94acd25f5a4038a862 | refs/heads/master | 2021-01-01T05:47:43.157268 | 2013-09-23T12:15:18 | 2013-09-23T12:15:18 | 3,557,963 | 0 | 1 | null | 2023-03-20T11:56:29 | 2012-02-27T06:31:50 | Python | UTF-8 | Python | false | false | 1,568 | py | """
MemoryDebugger extension
See documentation in docs/topics/extensions.rst
"""
import gc
from scrapy.xlib.pydispatch import dispatcher
from scrapy import signals
from scrapy.exceptions import NotConfigured
from scrapy.stats import stats
from scrapy.utils.trackref import live_refs
from scrapy.middleware import Ba... | [
"liuzz1983@gmail.com"
] | liuzz1983@gmail.com |
dcb88fcac088e2f235e2bfafaf887c4e4e052c50 | d420b5780e26071caa34de8bc0cfcaf431ae4dcd | /articles/pd/gencsv.py | 4de6bf7a26c26b4e6f1566f0ad547fe8d673eb83 | [
"MIT"
] | permissive | parrt/stratx | 2a09fdacd6b7a0f9b065feada1ecdfdfa0f0b513 | 97741afcead00c83dbe7fce37a42c4a4d4890a1c | refs/heads/master | 2022-04-30T13:57:50.037114 | 2022-04-24T16:55:58 | 2022-04-24T16:55:58 | 185,261,236 | 61 | 14 | MIT | 2019-10-21T21:14:14 | 2019-05-06T19:46:39 | Jupyter Notebook | UTF-8 | Python | false | false | 630 | py | # Code to gen .csv files for use with R
from articles.pd.support import *
X, y = load_bulldozer(n=10_000)
df = pd.concat([X, y], axis=1)
df.to_csv("bulldozer10k.csv", index=False)
X, y = load_bulldozer(n=20_000)
df = pd.concat([X, y], axis=1)
df.to_csv("bulldozer20k.csv", index=False)
X, y = load_rent(n=10_000)
df ... | [
"parrt@cs.usfca.edu"
] | parrt@cs.usfca.edu |
8ebd725ae76370b7b0bf9bffa31bab21e7446f39 | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/AMWIDealTaker/FPythonCode/FClearingBusinessProcessAdaptation.py | 15a7a2b48961c3ed020da2732bd32996beaf139c | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,905 | py | """------------------------------------------------------------------------
MODULE
FClearingBusinessProcessAdaptation -
DESCRIPTION:
The additionalInfos that need to be set/ trade attributes that need to be set while the business process is associated to a trade can be achieved here.
Please refer to documen... | [
"81222178+nenchoabsa@users.noreply.github.com"
] | 81222178+nenchoabsa@users.noreply.github.com |
5b7fde37c03368ce9cd12fd8b7638884e0891f63 | 987a68b9c196f39ba1810a2261cd4a08c35416a3 | /DynamicProgramming/343-integer-break.py | 5e3e2720b0fc1d758103f49e3a9a3171172eee0d | [] | no_license | xizhang77/LeetCode | c26e4699fbe1f2d2c4706b2e5ee82131be066ee5 | ce68f5af57f772185211f4e81952d0345a6d23cb | refs/heads/master | 2021-06-05T15:33:22.318833 | 2019-11-19T06:53:24 | 2019-11-19T06:53:24 | 135,076,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | # -*- coding: utf-8 -*-
'''
Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum product you can get.
Example 1:
Input: 2
Output: 1
Explanation: 2 = 1 + 1, 1 × 1 = 1.
Example 2:
Input: 10
Output: 36
Explanation: 10 = 3 + 3... | [
"xizhang1@cs.stonybrook.edu"
] | xizhang1@cs.stonybrook.edu |
092024187dc7bb38f56d29f6ee511ec6fdf2b1cc | 69da803ffcba97b079bce6f8e3a73903b0a7e5b5 | /jasmine_zinc/__init__.py | 43c7edec784605cc93d009303383088623dfbd03 | [
"MIT"
] | permissive | aoirint/jasmine_zinc | 612c3efcca199ef3e26af0a84af3fdf8744e6479 | d70fbdbc0273015e73962be4239be0a7cbdd2bd4 | refs/heads/main | 2023-07-17T16:59:15.914680 | 2021-09-03T00:55:56 | 2021-09-03T00:55:56 | 402,569,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | __VERSION__ = '20210903.14'
from .Avatar import (
Avatar,
dict2avatar,
)
from .get_avatars import (
get_avatars,
)
from .Talk import (
Talk,
TalkEffects,
TalkEmotions,
talk2dict,
)
from .talk_on_server import (
talk_on_server,
TalkOnServerResponse,
)
from .record_talk import (
... | [
"aoirint@gmail.com"
] | aoirint@gmail.com |
eff8f8643d4b57a7e031e552085f7c818008c9cb | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_QC1688.py | 76f588bacee542205822753e644a580d1e04d3e7 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,768 | py | # qubit number=5
# total number=59
import cirq
import qiskit
from qiskit import IBMQ
from qiskit.providers.ibmq import least_busy
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from ma... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
9ec9f95899aec565605da89f2d4e864571d320d9 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/3113/codes/1679_1100.py | a55b3972ba6f87e44e9892302818bd9371515644 | [] | 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 | 416 | py | # Teste seu código aos poucos.
# Não teste tudo no final, pois fica mais difícil de identificar erros.
# Ao testar sua solução, não se limite ao caso de exemplo.
X=int(input(""))
print("Entrada:",X)
if(X==2):
Y="Tartaruga"
elif(X==5):
Y="Garca"
elif(X==10):
Y="Arara"
elif(X==20):
Y="Mico-leao-dourado"
elif(X==50... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
b9464a2e0ee57271ea62fdd620998eaf44debd29 | 10d98fecb882d4c84595364f715f4e8b8309a66f | /covid_epidemiology/src/models/shared/output_utils.py | 774adb21cb78d9ee754464ef2a9691cbcce537a1 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | afcarl/google-research | 51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42 | 320a49f768cea27200044c0d12f394aa6c795feb | refs/heads/master | 2021-12-02T18:36:03.760434 | 2021-09-30T20:59:01 | 2021-09-30T21:07:02 | 156,725,548 | 1 | 0 | Apache-2.0 | 2018-11-08T15:13:53 | 2018-11-08T15:13:52 | null | UTF-8 | Python | false | false | 4,592 | py | # coding=utf-8
# Copyright 2021 The Google Research 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
41c598c7131b453e6ff11fbb7c4216da4a3bad8b | 73758dde83d1a1823c103e1a4ba71e7c95168f71 | /nsd2008/py01/day05/login.py | 41b2a5b3856835bdf645d86b39c1113f9812d3e2 | [] | no_license | tonggh220/md_5_nsd_notes | 07ffdee7c23963a7a461f2a2340143b0e97bd9e1 | a58a021ad4c7fbdf7df327424dc518f4044c5116 | refs/heads/master | 2023-07-02T01:34:38.798929 | 2021-05-12T08:48:40 | 2021-05-12T08:48:40 | 393,885,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | import getpass
userdb = {}
def register():
'用于新用户注册'
user = input("username: ").strip()
if user == "":
print("用户名不能为空")
elif user in userdb:
print("用户已存在")
else:
password = input("password: ")
userdb[user] = password
print("注册成功")
def login():
'用于登陆'
... | [
"zhangzg@tedu.cn"
] | zhangzg@tedu.cn |
597e3fae0245c167c66c0802ad2ab108945c5cad | 18d55703fe368ddeb568833cecf4138d2dab2b5c | /faqs/migrations/0002_auto_20190227_1937.py | 90b461793cb76881c19cd2530bedda3409bfd6d1 | [] | no_license | Rood17/CAWebApp | b660f5d0c01cb2c37f274b9d310922058150c2ec | de5f06c571782d68d8ca9afced8d7c70408ada99 | refs/heads/master | 2022-11-24T22:27:14.088809 | 2019-08-07T23:23:25 | 2019-08-07T23:23:25 | 188,956,728 | 0 | 0 | null | 2022-11-22T02:57:00 | 2019-05-28T04:58:37 | HTML | UTF-8 | Python | false | false | 1,078 | py | # Generated by Django 2.0.2 on 2019-02-28 01:37
import ckeditor.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('faqs', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='faqs',
fields=[
... | [
"kochehua@gmail.com"
] | kochehua@gmail.com |
c39130c949648637391d0534dc3556ac91430aaf | 07bf4a6fc924dfc5198ab55c7185bf8f1b36865b | /django_crud/articles/migrations/0007_comment_question_question.py | 2ba202d31838f01f57b7b79874fe93157ef9aa68 | [] | no_license | tesschung/django | c73d29a5cece83f852766ff66c635c82d3337f30 | 231a6131532757a66ac3dd038a2f2f1024faf14f | refs/heads/master | 2020-07-04T14:15:57.246652 | 2020-02-12T09:23:23 | 2020-02-12T09:23:23 | 202,301,189 | 4 | 1 | null | 2019-12-05T00:37:33 | 2019-08-14T07:48:52 | Python | UTF-8 | Python | false | false | 940 | py | # Generated by Django 2.2.5 on 2019-09-25 08:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('articles', '0006_school_student'),
]
operations = [
migrations.CreateModel(
name='Question',
... | [
"geobera0910@naver.com"
] | geobera0910@naver.com |
839d9030156fe6510670b1c7827942fb927c1ebd | c47340ae6bcac6002961cc2c6d2fecb353c1e502 | /controlm_py/models/variables.py | c26b170ca12b2bb0246d5a53137761c803f3be1b | [
"MIT"
] | permissive | rafaeldelrey/controlm_py | 6d9f56b8b6e72750f329d85b932ace6c41002cbd | ed1eb648d1d23e587321227217cbfcc5065535ab | refs/heads/main | 2023-04-23T09:01:32.024725 | 2021-05-19T00:25:53 | 2021-05-19T00:25:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,352 | py | # coding: utf-8
"""
Control-M Services
Provides access to BMC Control-M Services # noqa: E501
OpenAPI spec version: 9.20.115
Contact: customer_support@bmc.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Variables(... | [
"dcompane@gmail.com"
] | dcompane@gmail.com |
666971d8d10dd3a8574ea38e045f5d89f1b53419 | fee12edf8fed01439d1801ce7aad9ac38d4ec079 | /files-working2.py | 9f79888120e60234fbb25c5a9fa5d2c4b4e9826a | [] | no_license | frclasso/python_examples_three | 18fd855f60644a52507fe3cffa3a4a3445435f1a | 05c013aadd6d953283928f525aff051c6f04f5d6 | refs/heads/master | 2020-12-31T06:08:47.156170 | 2017-02-01T16:06:10 | 2017-02-01T16:06:10 | 80,636,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | #!/usr/bin/env python3
def main():
buffersize = 50000
infile = open('bigfile.txt', 'r') #segundo argumento define a ação, r = read, w = write, a = append
outfile = open('new.txt', 'w')
buffer = infile.read(buffersize)
while len(buffer):
outfile.write(buffer)
print ('.', end='')
... | [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
2f8164d7bafe20bd474ad14f2c94e8c354756b2c | 86fcf88a4a4fe94871bc835580059d140e6d4ce5 | /1_Prepare_Data/load_redis_q.py | 294c30bc3dcdba48de6a41da263d5b640e190fc0 | [
"MIT"
] | permissive | BL-Labs/19Cbooks | 576fc8eb40f7df5c8284fdb0ff425b7e5d74dddc | 3166c7adad151d5e5194171cd5b0397bd910b669 | refs/heads/master | 2020-07-02T05:09:05.881257 | 2013-09-17T13:18:25 | 2013-09-17T13:18:25 | 12,895,637 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | import os, time
from redis import Redis
r = Redis()
root = "md"
q = "q"
LIMIT = 3000
PAUSE = 15
cur = 0.0
st = time.time()
for div in os.listdir(root):
for ident in os.listdir(os.path.join(root, div)):
cur += 1
r.lpush(q, ident)
if not cur % 100:
print("{0} added. {1}/s".format(cur, (time.time(... | [
"bosteen@gmail.com"
] | bosteen@gmail.com |
85a9e832946350559a5ea18d4d1eccba4f712d9c | 6f3b1ed2385f484c39fccb47d9f75bc1179859aa | /src/main/resources/terraxld/organizations.py | b2ce7cdb9b1aaa6d6b67a54e97e3211c717b1a10 | [
"MIT"
] | permissive | xebialabs-community/xld-terraform-enterprise-plugin | f3302aa0648d4886147248fac4611497a4b508bd | d0c478c604fcaca483e68fc9d593b82ed7399eaa | refs/heads/master | 2021-06-24T06:06:49.580042 | 2021-04-28T06:37:28 | 2021-04-28T06:37:28 | 222,692,769 | 1 | 1 | null | 2019-11-19T12:37:54 | 2019-11-19T12:37:53 | null | UTF-8 | Python | false | false | 1,960 | py | #
# Copyright 2020 XEBIALABS
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, subli... | [
"bmoussaud@xebialabs.com"
] | bmoussaud@xebialabs.com |
36f370bfc178c0aa306640b63a65da98ab663980 | 3c52eda991b4a37e2b807dd1e05f07139637c758 | /examples/chat_sock_client.py | fa28e7decb30698e7e07a783163e3c8203bfc7ec | [
"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 | 1,798 | py | #!/usr/bin/env python
# run at least two instances of this program on either same node or multiple
# nodes on local network, along with 'chat_sock_server.py'; text typed in a
# client is sent to the all other clients. To use server on another computer,
# give network IP address as argument (and port as additional arg... | [
"pgiri@yahoo.com"
] | pgiri@yahoo.com |
45dffbeb7c7a300afca0e26cb23b61451df816bf | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2474/60832/271152.py | 83c2b7b872d226c351dce414d3b13e6efbb81199 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | All = int(input())
for q in range(0, All):
s=input()
stack=[]
ans=0
for c in s:
if c=='(':
stack.append(c)
elif c==')':
if len(stack)!=0:
ans+=2
stack.pop()
print(ans) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
eac0725aee74355dd77a533cc1a5991aabb1eff4 | 9c90b9b3c831c57b55e0a545bf047d298118e4bb | /test/functional/mempool_limit.py | 044db3a1f783578e02d47d7757b043de70f0ab09 | [
"MIT"
] | permissive | wolfoxonly/dk | c320958d778cb2831ae6b5f28798238c632218f6 | 090c9862a1a14c187eefcb8285e43601db5ed35b | refs/heads/master | 2021-09-14T01:38:54.560917 | 2018-05-07T09:19:49 | 2018-05-07T09:19:49 | 125,704,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,514 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2017 The Dealtoken Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test mempool limiting together/eviction with the wallet."""
from test_framework.test_framework impor... | [
"OFIChain@163.com"
] | OFIChain@163.com |
2b2dce53205515424c5bb11c71552d4553094d37 | 3a298c93b67386392d3dee243671f2c101decf01 | /leetcode/learn-cards/array-101/12_move_zeros.py | b550db407a56d2417d7e7300073945f2bd13d3af | [] | no_license | Zahidsqldba07/coding-problems-2 | ffbc8408e4408fc846c828af2ec50a9d72e799bc | 020bffbd14ca9993f1e678181ee7df761f1533de | refs/heads/master | 2023-06-26T11:05:34.089697 | 2021-07-21T15:16:10 | 2021-07-21T15:16:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | class Solution:
def moveZeroes(self, nums):
"""
Do not return anything, modify nums in-place instead.
"""
z = 0
for i in range(len(nums)):
if nums[i] != 0:
nums[i], nums[z] = nums[z], nums[i]
z += 1 | [
"alvee.akand@outlook.com"
] | alvee.akand@outlook.com |
070f9494314e7d8a7ce8283fe45bb2b13ae5e7d8 | 9f9f4280a02f451776ea08365a3f119448025c25 | /plans/hsppw/lcut_hsp-s_070_pwde_mlpc_hs.py | b7b1a1ccf1a62ce508fefc6b8b40da3238c1b831 | [
"BSD-2-Clause"
] | permissive | dbis-uibk/hit-prediction-code | 6b7effb2313d2499f49b2b14dd95ae7545299291 | c95be2cdedfcd5d5c27d0186f4c801d9be475389 | refs/heads/master | 2023-02-04T16:07:24.118915 | 2022-09-22T12:49:50 | 2022-09-22T12:49:50 | 226,829,436 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,159 | py | """Plan using all features."""
import os.path
from dbispipeline.evaluators import CvEpochEvaluator
from sklearn.neural_network import MLPClassifier
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import MinMaxScaler
import hit_prediction_code.common as common
from hit_prediction_code.dataloaders impo... | [
"mikevo-uibk@famv.net"
] | mikevo-uibk@famv.net |
010044719defff9a149b002bb54cdbca81295588 | 929f00c386b8686e1c802aa622875c62d295e216 | /spikeforest/forestview/recording_views/testplotlyview.py | 61f739cfd85644eeaf32c4bad8d6f58d58d8258e | [
"Apache-2.0"
] | permissive | mhhennig/spikeforest | e0d6cbb47d15131e683545c1978abc6f99c51dc5 | 5b4507ead724af3de0be5d48a3b23aaedb0be170 | refs/heads/master | 2020-05-31T11:03:58.438693 | 2019-06-04T18:06:37 | 2019-06-04T18:06:37 | 190,254,208 | 0 | 0 | Apache-2.0 | 2019-06-04T18:05:28 | 2019-06-04T18:05:28 | null | UTF-8 | Python | false | false | 2,824 | py | import vdomr as vd
import time
import multiprocessing
import sys
from .stdoutsender import StdoutSender
import mtlogging
import numpy as np
class TestPlotlyView(vd.Component):
def __init__(self, context):
vd.Component.__init__(self)
self._context = context
self._size = (100, 100)
s... | [
"jeremy.magland@gmail.com"
] | jeremy.magland@gmail.com |
9a179c09c2ccd31e9d0d55efe8784ca707ccebf0 | 2efa640e2c089a601a3c748d5ec4c80d65cb9695 | /src/ploomber/dag/dagclients.py | 45a7f88f2b788e3e2e5c68606b8dd5f15f4a8368 | [
"Apache-2.0"
] | permissive | BigRLab/ploomber | 19d35345cc8548b79f73f026674186969f1c3d4e | e2732be116507128ec900e4ef6195f529f639358 | refs/heads/master | 2023-05-08T03:37:11.384226 | 2021-05-31T20:57:37 | 2021-05-31T20:57:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,054 | py | from inspect import isclass
from collections.abc import MutableMapping
from ploomber.tasks.abc import Task
from ploomber.products.Product import Product
from ploomber.validators.string import get_suggestion, str_to_class
class DAGClients(MutableMapping):
"""
A dict-like object with validations
1. __setit... | [
"github@blancas.io"
] | github@blancas.io |
0c08520810a73883b54bd1055179f58e7e018a84 | cc873161235502933845cfdaa7b2bfd9006b70c8 | /week7/coffeehouse/menu_api/migrations/0003_special_created_by.py | 5eba7622b1e13064f614216ac101479e0582a734 | [] | no_license | taddeimania/class_notes | d8a7f72ac9abf927768072a253effd35e521fb6d | 1cb321782caf9d823eee69fa43175cf31fd6b34f | refs/heads/master | 2020-04-10T03:55:44.311163 | 2016-11-08T14:22:41 | 2016-11-08T14:22:41 | 68,213,614 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-10-27 14:02
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... | [
"jtaddei@gmail.com"
] | jtaddei@gmail.com |
713c2b5154472452b4241477e6f47c0611a1fe82 | 4d5e6e0a7057123ddd7cb97027e667117e1be143 | /control/type_casting_v2.py | f0aefebd5cad5c7423fdfb73587172c2743d6a1d | [] | no_license | shubhomedia/Learn_Python | cee48990c04521fcbb7dbf5ad120c69170dcd1be | 01e0a8e3dc2de87b09c963e7cb9fc5e246831ddb | refs/heads/master | 2021-07-01T08:53:51.151326 | 2021-01-02T17:31:36 | 2021-01-02T17:31:36 | 204,191,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | x = str("s1") # x will be 's1'
y = str(2) # y will be '2'
z = str(3.0) # z will be '3.0'
print(x,y,z)
# all print type will be string type | [
"shubhomedia@gmail.com"
] | shubhomedia@gmail.com |
e5d01453be61f2b329f66383a47ae1bd9104c98e | 288a00d2ab34cba6c389b8c2444455aee55a8a95 | /tests/data23/recipe-576938.py | 252a8acccd4b737098c0a74b541a95691ad026fb | [
"BSD-2-Clause"
] | permissive | JohannesBuchner/pystrict3 | ffd77b7bbc378bd4d8f21b5c6bd69a0d64a52ddb | 18b0dd369082422f9bf0f89c72e7acb53a49849c | refs/heads/master | 2023-08-14T06:37:37.954880 | 2023-07-13T11:16:38 | 2023-07-13T11:16:38 | 268,571,175 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,153 | py | # -*- coding: iso-8859-1 -*-
# laplace.py with mpmath
# appropriate for high precision
# Talbot suggested that the Bromwich line be deformed into a contour that begins
# and ends in the left half plane, i.e., z \to \infty at both ends.
# Due to the exponential factor the integrand decays rapidly
# on such a contour... | [
"johannes.buchner.acad@gmx.com"
] | johannes.buchner.acad@gmx.com |
5f6f1d4d9488f159cbe77963ab23c55884831ffc | 181af10fcf40b824fe92d3b8f72fd15d6d1490c2 | /Contests/101-200/week 200/1536. Minimum Swaps to Arrange a Binary Grid/Minimum Swaps to Arrange a Binary Grid.py | 3945b9170c8ea867c0294760570f9df5e6239462 | [] | no_license | wangyendt/LeetCode | 402c59a0b7b7f5b3a672231ea5dad8056ade36af | 4a3ba15284c45b2d8bf38306c8c8526ae174615c | refs/heads/master | 2023-08-10T06:27:54.995152 | 2023-08-10T02:22:27 | 2023-08-10T02:22:27 | 176,651,399 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: Wayne
@contact: wangye.hope@gmail.com
@software: PyCharm
@file: Minimum Swaps to Arrange a Binary Grid
@time: 2020/08/03 04:39
"""
class Solution:
def minSwaps(self, A: list(list())) -> int:
m, n = len(A), len(A[0])
res = [0] * m
for i ... | [
"905317742@qq.com"
] | 905317742@qq.com |
aea2948697eef4b3cd89e905116f4a3832e63170 | 38ac429d63369922e12e19cdda042b08b8123027 | /test/test_json_view.py | c5b01994dc9e1d97795a7c689c0a2b5dd2bb5dcb | [] | no_license | aviv-julienjehannet/collibra_apiclient | 0dfebe5df2eb929645b87eba42fab4c06ff0a6be | 10a89e7acaf56ab8c7417698cd12616107706b6b | refs/heads/master | 2021-09-12T16:52:19.803624 | 2018-04-19T01:35:20 | 2018-04-19T01:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | # coding: utf-8
"""
\"Data Governance Center: REST API v2\"
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 2.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import ... | [
"busworld08@gmail.com"
] | busworld08@gmail.com |
3b8d5fa6b4cced71be6df8eb6d0a7e4f9cbb5ac9 | ed1dd7bc3837cf4059a529d71f43b53d7c6a65d8 | /RosieGUI.py | cb83e9b57f6ff93bdfdee5437d9ca7db7b2e8604 | [] | no_license | amininger/rosiethor | dbc290e8684e2b1a73962af0fb84ad6c65956f1e | 789396f08e10d6e46a684622cd95e7d309d9a246 | refs/heads/master | 2021-04-28T14:25:19.807467 | 2019-03-05T16:49:21 | 2019-03-05T16:49:21 | 121,964,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,356 | py | from tkinter import *
import tkinter.font
import sys
from rosiethor import *
class RosieGUI(Frame):
def create_widgets(self):
self.grid(row=0, column=0, sticky=N+S+E+W)
self.columnconfigure(0, weight=3, minsize=600)
self.columnconfigure(1, weight=1, minsize=400)
self.columnconfigu... | [
"mininger@umich.edu"
] | mininger@umich.edu |
4116173f3381c4d0ec24d7a2542a504531fa2eb0 | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/System/__init___parts/EntryPointNotFoundException.py | cd35b92ca551fc01347a5e98978af60cbbbfdd4f | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,221 | py | class EntryPointNotFoundException(TypeLoadException,ISerializable,_Exception):
"""
The exception that is thrown when an attempt to load a class fails due to the absence of an entry method.
EntryPointNotFoundException()
EntryPointNotFoundException(message: str)
EntryPointNotFoundException(message: str,inner: ... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
44b42dfbde5aabbad49f01d0c40eae805b3bd01f | 0d61f90e3a7877e91d72fed71b0895c7070dc046 | /final_project/.history/project/account_app/forms_20210104104511.py | 4936c5cd23264028d4004e9275b0dd27cb819201 | [] | no_license | lienusrob/final_project | 44d7d90dc0b7efc0cf55501549a5af0110d09b3b | 4164769626813f044ec2af3e7842514b5699ef77 | refs/heads/master | 2023-02-10T16:36:33.439215 | 2021-01-05T09:34:01 | 2021-01-05T09:34:01 | 325,002,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py |
from django.forms import ModelForm, widgets
from django.forms import Textarea
from .models import Contact, AnonymousReview
from django import forms
# class ContactForm(forms.Form):
# subject = forms.CharField(max_length=100)
# message = forms.CharField(widget=forms.Textarea)
# sender = forms.EmailFie... | [
"lienus.rob@hotmail.de"
] | lienus.rob@hotmail.de |
386494348a69dc42f26350743415cea70795bbb9 | a03a7935a191d63bee76fd3b85a61ee27f98904a | /test/tests/databases/bov.py | d2400c2618fb6604ee069a960e95c77fb50876f3 | [] | no_license | cchriste/visit | 57091c4a512ab87efd17c64c7494aa4cf01b7e53 | c72c413f571e56b52fb7221955219f11f4ba19e3 | refs/heads/master | 2020-04-12T06:25:27.458132 | 2015-10-12T15:41:49 | 2015-10-12T15:41:49 | 10,111,791 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,436 | py | # ----------------------------------------------------------------------------
# CLASSES: nightly
#
# Test Case: bov.py
#
# Tests: mesh - 3D rectilinear, multiple domain
# plots - Pseudocolor, Subset, Label, Contour
# operators - Slice
#
# Programmer: Brad Whitlock
# Date: ... | [
"bonnell@18c085ea-50e0-402c-830e-de6fd14e8384"
] | bonnell@18c085ea-50e0-402c-830e-de6fd14e8384 |
44a9e486f57f5d09e2a7f03dcd8cab278f223b96 | 8f9f6a5348b832e9f12ef6baf6bcdd8842ff1c83 | /core/migrations/0002_profile.py | 987bf0b7af1dcd2c764ae64e1df702d401441278 | [] | no_license | jbrit/raffle | 20b48d016ac50082733c7c34f3891beb268c4eb9 | 2ee83ffe564f59bc7afd6b12740ea3a98c42986e | refs/heads/main | 2023-06-04T14:22:09.808595 | 2021-03-19T14:13:38 | 2021-03-19T14:13:38 | 343,774,020 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | # Generated by Django 3.1.7 on 2021-03-02 23:09
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"pro.ajibolaojo@gmail.com"
] | pro.ajibolaojo@gmail.com |
f3197d14dbee34f7d0ebfe6c8268d9e4f61c5fde | 00ccdc877771cb0cf493526d1e201e0f625bf5e7 | /dohq_teamcity/api/test_api.py | 1335616d3fe97e39870d49b309ae190556a049db | [
"MIT"
] | permissive | expobrain/teamcity | a52928045166bb5d34f4a0396cb840bfee8f43d5 | 9f04c0692a2c5b277a608c2f11cc1fb48e0c87e2 | refs/heads/master | 2020-04-13T13:11:07.270515 | 2018-10-18T01:40:06 | 2018-10-18T01:40:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,708 | py | # coding: utf-8
"""
TeamCity REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 10.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
from ... | [
"allburov@gmail.com"
] | allburov@gmail.com |
b15b14e0a3c393b327f48b7c2211d0d7ea88c5fa | cd2d3b6be41eb9b96ecc3a22dc730325c21f22e6 | /charalog/log/qaswsq19.cgi | e5245d1c362c4cf17fe5f3a09188c1705fb8ddce | [] | no_license | cappuu/TC | c61f235349e9a68d472fa85bbea1adbef3ea154a | def08d09219e11bee2135f6b796569b769ee21c1 | refs/heads/master | 2021-09-10T19:37:33.847161 | 2018-03-31T22:56:05 | 2018-03-31T22:56:05 | 124,523,296 | 0 | 0 | null | null | null | null | UHC | Python | false | false | 1,944 | cgi | 11월 : 남피의 기술을 <font color=red>+9</font> 개발했습니다.(15일23시38분)
10월 : 남피의 기술을 <font color=red>+7</font> 개발했습니다.(15일22시38분)
9월 : 남피의 기술을 <font color=red>+6</font> 개발했습니다.(15일21시38분)
8월 : 현재 기운이 충만한 상태입니다.(15일20시38분)
7월 : 남피의 기술을 <font color=red>+7</font> 개발했습니다.(15일19시39분)
7월 : 수확으로 <font color=red>2834</font>의 식량을 수확했습니다. [... | [
"lu2447315@gmail.com"
] | lu2447315@gmail.com |
8782c7c8bb56b0118c1f5cd84e030e48d23be1d5 | 6a0abe2f4172f680415d83f1946baaf85e5711b7 | /aliyun-python-sdk-slb/aliyunsdkslb/request/v20140515/DescribeAccessControlListsRequest.py | d63e244ab470b758431d5842a789854ee82f0557 | [
"Apache-2.0"
] | permissive | brw123/aliyun-openapi-python-sdk | 905556b268cbe4398f0f57b48422b713d9e89a51 | 8c77db6fd6503343cffa3c86fcb9d11770a64ca2 | refs/heads/master | 2020-05-01T16:26:49.291948 | 2019-03-21T09:11:55 | 2019-03-21T09:11:55 | 177,572,187 | 1 | 0 | null | 2019-03-25T11:21:59 | 2019-03-25T11:21:59 | null | UTF-8 | Python | false | false | 2,788 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
660fb803c45459f81ec12dded0ca2bcdc1611bde | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_016/ch31_2020_03_30_19_43_47_008102.py | d7542220ac3217770604bf2f6d5102dfb4b58bc3 | [] | 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 | 149 | py | def eh_primo(x):
r = x%2
return r
exercicio = True
while exercicio:
if r == 0:
print('True')
else:
exercicio = False
| [
"you@example.com"
] | you@example.com |
cc14b6eaaffadd74381b2c758e2324c947a2db53 | 3a6cbe6940b657ac6b608ce93d8d41ffeb6b9e65 | /rocon_python_comms/src/rocon_python_comms/subscriber_proxy.py | 307b3a19e2da6b0f0d8015cf88ad17466399e082 | [] | no_license | robotics-in-concert/rocon_tools | cdfc4ccfc04b79262fb151640966a33bd0b5f498 | 1f182537b26e8622eefaf6737d3b3d18b1741ca6 | refs/heads/devel | 2021-01-17T01:58:12.163878 | 2018-02-06T15:20:29 | 2018-02-06T15:20:29 | 15,774,638 | 7 | 22 | null | 2017-08-16T06:39:47 | 2014-01-09T18:02:42 | Python | UTF-8 | Python | false | false | 4,285 | py | #
# License: BSD
# https://raw.github.com/robotics-in-concert/rocon_tools/license/LICENSE
#
##############################################################################
# Description
##############################################################################
"""
.. module:: subscriber_proxy
:platform: Unix
... | [
"d.stonier@gmail.com"
] | d.stonier@gmail.com |
816f7c9573750b418355b515fae6a322cac506a0 | d842a95213e48e30139b9a8227fb7e757f834784 | /gcloud/google-cloud-sdk/lib/surface/spanner/databases/create.py | 85d2e132651f4d9072e81b0f73b363d8ae6a24bf | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/JobSniperRails | f37a15edb89f54916cc272884b36dcd83cdc868a | 39e7f871887176770de0f4fc6789e9ddc7f32b1f | refs/heads/master | 2022-11-22T18:12:37.972441 | 2019-09-20T22:43:14 | 2019-09-20T22:43:14 | 282,293,504 | 0 | 0 | MIT | 2020-07-24T18:47:35 | 2020-07-24T18:47:34 | null | UTF-8 | Python | false | false | 2,348 | py | # -*- coding: utf-8 -*- #
# Copyright 2016 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"luizfper@gmail.com"
] | luizfper@gmail.com |
47d4c7cb7eb9933b0369b1e45e59ea87c9b72b5f | f1d01d9074ace289e7e43530079b0c34ccdde4c4 | /ontology/creation/data/patents/concatenate_features.py | 5d008e8f60662834f64b614c5873f3ab50efcfec | [] | no_license | techknowledgist/techknowledgist | 4889300a92aad8fa940d1246ddd75036d90a6563 | 7d422ac38a9212670d0ce6e26e1446fb46740837 | refs/heads/master | 2021-04-26T22:35:50.390037 | 2015-11-23T19:52:26 | 2015-11-23T19:52:26 | 124,117,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | """
Takes a corpus and concatenates all phr_feats files into a single file
Usage:
$ python concatenate_features.py CORPUS OUTFILE
TODO: this script, and others, should probably live in another directory
"""
import os, sys, codecs, glob, gzip
corpus = sys.argv[1]
outfile = sys.argv[2]
fh_out = codecs.open(... | [
"marc@cs.brandeis.edu"
] | marc@cs.brandeis.edu |
1b82e86c123a177a8f2ea505f676028ecdf4d35f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_caretakers.py | 24865dfee38f564211700a1151c979c6df6fd6e9 | [
"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 | 234 | py |
#calss header
class _CARETAKERS():
def __init__(self,):
self.name = "CARETAKERS"
self.definitions = caretaker
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['caretaker']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
10f3f0ca057e6383b33ac0929fc7f212d2521e61 | b9e4bf5c00ac0d6c1a6e6038e8dc18041819ff99 | /Python3/0224_Basic_Calculator.py | 8dc3ecb6218b2b585509e0dca74cd886059e4f2d | [] | no_license | kiranani/playground | 98fdb70a3ca651436cc1eede0d2ba1b1ea9aba1d | 12f62a218e827e6be2578b206dee9ce256da8d3d | refs/heads/master | 2021-06-03T12:43:29.388589 | 2020-06-12T15:43:45 | 2020-06-12T15:43:45 | 149,614,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | from operator import add, sub
class Solution:
def calculate(self, s: str) -> int:
ops = {"+": add, "-": sub}
i, n = 0, len(s)
def helper(i):
values, opers = [0], []
while i < n:
c = s[i]
if c.isdigit():
j = i
... | [
"noreply@github.com"
] | kiranani.noreply@github.com |
4bd3fea9df0d339760410abcb7bc705831ee1022 | b40e5c6c1787dd222702b3dc817537c059e3abf7 | /interlink/migrations/0004_auto__add_field_incomingmail_owner.py | bca828735df8a4344e1f4d980a41e9d1b5389875 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | tevatia/nadine | 2e1d4908cab37c2f893f68ce59d939b5621c14a0 | e1db914ae70d3f7f3de719c8fb54b0e2198e2b56 | refs/heads/master | 2021-01-18T11:15:48.083446 | 2014-04-18T22:39:42 | 2014-04-18T22:39:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,572 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'IncomingMail.owner'
db.add_column('interlink_incomingmail', 'owner', self.gf('django.db.mo... | [
"trevor@trevor.smith.name"
] | trevor@trevor.smith.name |
b3c615e65519ecbd43687d83e8216c9f86283458 | 4bf7abfb2d02be6cce23828d0554ccb575b91c3a | /step02/bookings.py | bc2ee7c8312d9977f6c5975d40040a7a883b6119 | [] | no_license | OneScreenfulOfPython/booking-system | 5c6471ec1e4c0103bd871d1e7a45a474a30f7e91 | e4daf5d3eb6e8620acb164f35ad09cb9081612aa | refs/heads/master | 2021-06-01T23:14:25.649607 | 2014-09-24T08:01:32 | 2014-09-24T08:01:32 | 24,347,319 | 10 | 14 | null | 2020-10-01T16:53:56 | 2014-09-22T22:04:53 | Python | UTF-8 | Python | false | false | 3,003 | py | #!python3
import os, sys
import sqlite3
#
# Ensure we're using the same database filename throughout.
# It doesn't matter what this is called or where it is:
# sqlite3 will just accept anything.
#
DATABASE_FILEPATH = "bookings.db"
def create_database():
"""Connect to the database, read the CREATE statements and s... | [
"mail@timgolden.me.uk"
] | mail@timgolden.me.uk |
6689bda17969ce7d5c74c76e31523e8c509ba831 | ebd24e400986c57b4bb1b9578ebd8807a6db62e8 | /InstaGrade-FormBuilder/xlsxwriter/test/worksheet/test_extract_filter_tokens.py | f42d6ade4765867a416adf7c334a45d6f2c4965c | [] | no_license | nate-parrott/ig | 6abed952bf32119a536a524422037ede9b431926 | 6e0b6ac0fb4b59846680567150ce69a620e7f15d | refs/heads/master | 2021-01-12T10:15:15.825004 | 2016-12-13T21:23:17 | 2016-12-13T21:23:17 | 76,399,529 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,714 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2014, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ...worksheet import Worksheet
class TestExtractFilterTokens(unittest.TestCase):
""... | [
"nateparro2t@gmail.com"
] | nateparro2t@gmail.com |
186d6c74a11f3723f7afa9fee9fabb8293b12090 | a7122df9b74c12a5ef23af3cd38550e03a23461d | /Elementary/Popular Words.py | b195f9aa52413e4b553b3d220df0730845fc443b | [] | no_license | CompetitiveCode/py.checkIO.org | c41f6901c576c614c4c77ad5c4162448828c3902 | e34648dcec54364a7006e4d78313e9a6ec6c498b | refs/heads/master | 2022-01-09T05:48:02.493606 | 2019-05-27T20:29:24 | 2019-05-27T20:29:24 | 168,180,493 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | #Answer to Popular Words - https://py.checkio.org/en/mission/popular-words/
import re
def popular_words(text: str, words: list) -> dict:
dictionary = {}
for i in words:
count = sum(1 for _ in re.finditer(r'\b%s\b' %re.escape(i), text, re.I))
dictionary[i] = count
return dictionary
if __na... | [
"admin@remedcu.com"
] | admin@remedcu.com |
67bed8ee2cf8654efc0ac980515699f555298c21 | bcb178eabc006d2d3dcff3d35bb3a47dc1573841 | /tools/nicythize | 01143856430ef42cc335ccecd619ec488c98f407 | [
"BSD-3-Clause"
] | permissive | poldrack/nipy | dc34e341ce07ecd6a1240b84582186073a1348a7 | cffbb76c86e648a647327e654f0d33220035c6ec | refs/heads/master | 2022-04-24T00:23:12.054157 | 2020-04-23T15:29:34 | 2020-04-23T15:29:34 | 258,041,266 | 0 | 0 | NOASSERTION | 2020-04-22T23:12:22 | 2020-04-22T23:12:21 | null | UTF-8 | Python | false | false | 5,989 | #!/usr/bin/env python
""" nicythize
Cythonize pyx files into C files as needed.
Usage: nicythize [root_dir]
Default [root_dir] is 'nipy'.
Checks pyx files to see if they have been changed relative to their
corresponding C files. If they have, then runs cython on these files to
recreate the C files.
The script thi... | [
"matthew.brett@gmail.com"
] | matthew.brett@gmail.com | |
4fb63461d25aae70e78349f22ea21fa4ac0d836a | 1b0a729f6e20c542a6370785a49c181c0675e334 | /mint/_versions/20151206231927 router/mint/host.py | 2ead8cb0368f35e377b1077b2efe0c88d58c32b6 | [] | no_license | fans656/mint-dev | 68125c4b41ab64b20d54a2b19e8bf0179dc4636b | 408f6f055670b15a3f3ee9c9ec086b1090cce372 | refs/heads/master | 2021-05-04T11:43:44.740116 | 2016-09-07T13:43:44 | 2016-09-07T13:43:44 | 45,515,119 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,711 | py | import mint
from mint.interface import Interface
from mint.routetable import RouteTable
from mint.core import EntityWithNIC
from mint.libsocket import LibSocket
from mint.pdus import (
Frame, Packet,
IP,
Discomposer,
)
class Host(EntityWithNIC):
def __init__(self, **kwargs):
super(Host, self).... | [
"fans656@yahoo.com"
] | fans656@yahoo.com |
cfa734dc45fd018c8e7f698ec5da162694aa8ce6 | dcce56815dca2b18039e392053376636505ce672 | /dumpscripts/collections_deque_rotate.py | bcc8cb420d285ce582d140a4f19d8855221efbf4 | [] | no_license | robertopauletto/PyMOTW-it_3.0 | 28ff05d8aeccd61ade7d4107a971d9d2576fb579 | c725df4a2aa2e799a969e90c64898f08b7eaad7d | refs/heads/master | 2021-01-20T18:51:30.512327 | 2020-01-09T19:30:14 | 2020-01-09T19:30:14 | 63,536,756 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | # collections_deque_rotate.py
import collections
d = collections.deque(range(10))
print('Normale :', d)
d = collections.deque(range(10))
d.rotate(2)
print('Rotazione destra:', d)
d = collections.deque(range(10))
d.rotate(-2)
print('Rotazione sinistra:', d)
| [
"roberto.pauletto@gmail.com"
] | roberto.pauletto@gmail.com |
244c6f3bb61e659a079e842e9b933fbcbc9b1d94 | 644b13f90d43e9eb2fae0d2dc580c7484b4c931b | /programmers/level1/최소공배수, 최대공약수.py | 9ae0e0c7b50f0b452035698c8c30943f5df4074d | [] | no_license | yeonnseok/ps-algorithm | c79a41f132c8016655719f74e9e224c0870a8f75 | fc9d52b42385916344bdd923a7eb3839a3233f18 | refs/heads/master | 2020-07-09T11:53:55.786001 | 2020-01-26T02:27:09 | 2020-01-26T02:27:09 | 203,962,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | def solution(n, m):
answer = []
a, b = max(n, m), min(n, m)
if a == b:
return a
while a % b != 0:
a, b = b, a % b
answer.append(b)
answer.append(n * m // b)
return answer | [
"smr603@snu.ac.kr"
] | smr603@snu.ac.kr |
f92f1dc064ee15db14477b6d7d43f81fc28eb2ce | 36ac195ecceb868e78372bc8e976066cc9ff0fae | /torch_glow/tests/nodes/bitwise_not_test.py | 638abae4da1c69f85aee374d8a864635a2f08b75 | [
"Apache-2.0"
] | permissive | jeff60907/glow | d283d65bc67e0cc9836854fa7e4e270b77023fff | 34214caa999e4428edbd08783243d29a4454133f | refs/heads/master | 2021-09-23T07:30:29.459957 | 2021-09-14T01:47:06 | 2021-09-14T01:48:00 | 216,199,454 | 0 | 0 | Apache-2.0 | 2019-10-19T12:00:31 | 2019-10-19T12:00:31 | null | UTF-8 | Python | false | false | 1,295 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import unittest
import torch
from parameterized import parameterized
from tests import utils
class SimpleBitwiseNotModule(torch.nn.Module):
def __init__(self):
super(SimpleBitwiseNotModule, self).__init__()
def forwa... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
11ee931e40d0bb015d6763cf38814d5e8f796363 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/85/usersdata/216/58702/submittedfiles/funcoes1.py | e3b878f3470c294280f93e1db209d477acd78ca7 | [] | 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 | 1,314 | py | # -*- coding: utf-8 -*-
def crescente (lista):
for i in range(0,len(lista)-1,1):
if lista[i]<lista[i+1]:
return True
return False
def decrescente(lista):
for i in range(0,len(lista)-1,1):
if lista[i]>lista[i+1]:
return True
return False
def numiguai... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.