blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6b65d35046b48be71a3df21e7ab47327a6e56a42 | 49c2492d91789b3c2def7d654a7396e8c6ce6d9f | /ROS/ros_archive/dyros_backup/original/catkin_ws_right/build/gps_test/catkin_generated/pkg.installspace.context.pc.py | 562b7a65ea657b1e00388349bb7282ec2cc8d76f | [] | no_license | DavidHan008/lockdpwn | edd571165f9188e0ee93da7222c0155abb427927 | 5078a1b08916b84c5c3723fc61a1964d7fb9ae20 | refs/heads/master | 2021-01-23T14:10:53.209406 | 2017-09-02T18:02:50 | 2017-09-02T18:02:50 | 102,670,531 | 0 | 2 | null | 2017-09-07T00:11:33 | 2017-09-07T00:11:33 | null | UTF-8 | Python | false | false | 414 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;std_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-lgps_test".split(';') if "-lgps_test" != "" else []
PROJECT_NAME = "gp... | [
"gyurse@gmail.com"
] | gyurse@gmail.com |
b5e7c3e35e02e537e325be2564d2639f88a3b296 | 98fe2f95d7fba400c592996681099014279bff70 | /voomza/apps/books_common/tests/yearbook_signs.py | f38d5cbb32ad58c562791185ed125b22280af276 | [] | no_license | bcattle/monkeybook | 51435a3c0416314597adcbb5f958c2761d92bfea | e01f2c371d124449f053ee37eb71ce9a64732e56 | refs/heads/master | 2016-09-06T13:28:23.332786 | 2013-03-22T02:04:15 | 2013-03-22T02:04:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | import random
from django.test import TestCase
class YearbookSignPaginationTestCase(TestCase):
short_sign = "Remember when we snuck into the pastry shop on 23rd street??? " \
"I wont' forget the epic nights out in 2012."
long_sign = "Remember when we snuck into the pastry shop on 23rd street?... | [
"bryan.cattle@gmail.com"
] | bryan.cattle@gmail.com |
a17d73746b0631f4641d030ccdf9928550f5a492 | ea262de505a1dd5ae1c7b546b85184309c3fdd35 | /src/losses/lovasz_losses.py | a09413d3a11bef1f69614032be1062e97d76acec | [
"MIT"
] | permissive | Runki2018/CvPytorch | 306ff578c5f8d3d196d0834e5cad5adba7a89676 | 1e1c468e5971c1c2b037334f7911ae0a5087050f | refs/heads/master | 2023-08-25T09:48:48.764117 | 2021-10-15T05:11:21 | 2021-10-15T05:11:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,504 | py | """
Lovasz-Softmax and Jaccard hinge loss in PyTorch
Maxim Berman 2018 ESAT-PSI KU Leuven (MIT License)
https://github.com/bermanmaxim/LovaszSoftmax/blob/master/pytorch/lovasz_losses.py
"""
from __future__ import print_function, division
import torch
from torch.autograd import Variable
import torch.nn.functional as F... | [
"569793357@qq.com"
] | 569793357@qq.com |
9f0f9a18fd94e3ee3b6e016fcc1957d57a35bd41 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03805/s294798234.py | 6299c897ff1f6ded8b87e4e179c3be4d195d7f46 | [] | 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 | 355 | py | from itertools import permutations
N, M, *ab = map(int, open(0).read().split())
g = [[0] * N for _ in range(N)]
for a, b in zip(*[iter(ab)] * 2):
g[a - 1][b - 1] = 1
g[b - 1][a - 1] = 1
ans = 0
for path in permutations(range(1, N)):
path = [0] + list(path)
if all(g[v][nv] for v, nv in zip(path, path[... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ea31f37141bfa7d31525e6ecb85ea0031e0c6fa7 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.ILO/Sans_16/pdf_to_json_test_Latn.ILO_Sans_16.py | 7498107868f61c7e89533ff42e20ed1ada2c1374 | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.ILO/Sans_16/udhr_Latn.ILO_Sans_16.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
d94f312791ea3d44722cbec54149613205bd4fb5 | 1a2bf34d7fc1d227ceebf05edf00287de74259c5 | /Django/Day08/Day08Django/Day08Django/wsgi.py | 0968ce766de35b9635af8d718732d6bee6fea12b | [] | no_license | lzn9423362/Django- | de69fee75160236e397b3bbc165281eadbe898f0 | 8c1656d20dcc4dfc29fb942b2db54ec07077e3ae | refs/heads/master | 2020-03-29T18:03:47.323734 | 2018-11-28T12:07:12 | 2018-11-28T12:07:12 | 150,192,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | """
WSGI config for Day08Django project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | [
"411121080@qq.com"
] | 411121080@qq.com |
56751f665d6f39f031d7ee6f74bd53bd870f34a5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02779/s937101909.py | b02559befcddd5c22429364f9ffb7192ce49ce64 | [] | 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 | 103 | py | N = int(input())
number = set(map(int,input().split()))
if len(number)==N:print("YES")
else:print("NO") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
133c880358e31259569b80e438475e23bc74d029 | 172e2da04fc84d2fe366e79539c6ab06d50a580f | /backend/chocolate_23135/settings.py | 804ba5930fcf2868173176c571c1fa7eafd441d5 | [] | no_license | crowdbotics-apps/chocolate-23135 | ff3c3a0e0e9ae0eefb7811868cb9e1281af2981b | 64060aef4a3a3bd1fb61c2fc457fdbd46b072ca6 | refs/heads/master | 2023-03-05T07:34:50.965348 | 2021-02-18T16:13:56 | 2021-02-18T16:13:56 | 317,985,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,018 | py | """
Django settings for chocolate_23135 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
impo... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
2786bd4521b775c949294da93fc52e7ff191eced | 7ce2b2000cfefe8fbefc2271ebc7df2061c88194 | /CAIL2020/sfzyzb/main.py | 81c4fd79e0ccba4eebf1f25f8dfbbd916da8e606 | [
"Apache-2.0"
] | permissive | generalzgd/CAIL | f06d79acf42ac2188938c02087f7d07b9b43095c | 57529e64ee2f602324a500ff9bed660ddcde10bb | refs/heads/master | 2023-01-24T01:14:05.382525 | 2020-11-20T03:40:47 | 2020-11-20T03:40:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,135 | py | """Test model for SMP-CAIL2020-Argmine.
Author: Yixu GAO yxgao19@fudan.edu.cn
Usage:
python main.py --model_config 'config/bert_config.json' \
--in_file 'data/SMP-CAIL2020-test1.csv' \
--out_file 'bert-submission-test-1.csv'
python main.py --model_config 'config/rnn_confi... | [
"bangtech@sina.com"
] | bangtech@sina.com |
4f14f1f037cb2454bf6a63efb237c3c8c970e2ab | 26c4426d2c9cd10fd7d4a73609512e69e31b64ba | /html2ex/h2e_openpyxl.py | 9dae85c7684b7fa2b0f2370c7e75e7a9298de7c7 | [] | no_license | KirillUdod/html2exc | 550761213eb6edd7d3ea4787938cce65584606c3 | 60569f01822a15b2e5b6884a42774cd428953700 | refs/heads/master | 2021-01-15T17:07:05.906492 | 2016-01-06T11:51:38 | 2016-01-06T11:51:38 | 34,809,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,578 | py | from openpyxl.cell import get_column_letter
from openpyxl.styles import Alignment, Font, Border, Side, PatternFill
from openpyxl.workbook import Workbook
from openpyxl import load_workbook, drawing
from lxml.html import document_fromstring, HTMLParser
# Value must be one of set(['hair', 'medium', 'dashDot', 'dotted', ... | [
"kirilludod@gmail.com"
] | kirilludod@gmail.com |
86ed9f46f1c2d2d11c6802437d45c5809fb30eeb | 56befbe23e56995f9772010f47dcbf38c8c150bc | /0x04-python-more_data_structures/3-common_elements.py | eea467f21330bd685f084a863c29e797149a3f26 | [] | no_license | lemejiamo/holbertonschool-higher_level_programming | a48175156816a856dba0ddc6888b76f6e04b7223 | 3f756ed3a907044bfc811f108d5ae98bb0e9802c | refs/heads/main | 2023-08-14T13:22:13.481356 | 2021-09-28T04:09:50 | 2021-09-28T04:09:50 | 361,910,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | #!/usr/bin/python3
def common_elements(set_1, set_2):
equals = []
for i in set_1:
for j in set_2:
if j == i:
equals.append(j)
return equals
| [
"luismejia69@gmail.com"
] | luismejia69@gmail.com |
d08111070c3529eb1b9536a6fd1e806deb33d6b9 | ed3025b8b0831e91cf589b8c0aa8f7c9087042c0 | /ComputerSecurity/SecurityScripts/venv/lib/python2.7/encodings/johab.py | 8bc3565a0128ac71e3d1a2f7726065e023806f3a | [] | no_license | zacharygolla/OtherSchoolProjects | dd8c58beac94c46516ea67f49afc2f41b35cfb6a | 554588d4968db7b70b9ee3b30612f1b8b4402f84 | refs/heads/master | 2021-11-03T23:10:31.652887 | 2019-04-26T21:37:26 | 2019-04-26T21:37:26 | 171,918,593 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/johab.py | [
"ztg5@txstate.edu"
] | ztg5@txstate.edu |
507cd795dbf7e45744f5e18ad7e1ef3c718b70a3 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/s_m.py | 476a366de2d7e31ba0206c1757d5c30e6587f466 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
92d266e20d45decea2259482e7dbe7c41e05d9d5 | 1feae7286c5d61981b40520e2c1e1028b86bb8cc | /blog_newsapi/urls.py | 46e7c93bc0e248b4e634b884b7678d8d184d306a | [] | no_license | mukeshrakesh123/newsapp-blog | b97adb486f2d463e11fc054243833a2db6944865 | 596eac8981792fc368d2abfc4e19650332347f08 | refs/heads/main | 2023-06-16T11:44:10.665862 | 2021-07-10T16:34:50 | 2021-07-10T16:34:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | """blog_newsapi URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"jayagupta752@gmail.com"
] | jayagupta752@gmail.com |
d3f4ba1961c78164f76c03bb013ed36231123fa8 | be471cdee10e2273ce41631c4a58f16227f18b5b | /server/walt/server/threads/blocking/images/publish.py | c0d87e832bd7edbf59ba092d26d354f78180beb8 | [
"BSD-3-Clause"
] | permissive | dia38/walt-python-packages | d91d477c90dbc4bd134fdcc31d7cb404ef9885b8 | e6fa1f166f45e73173195d57840d22bef87b88f5 | refs/heads/master | 2020-04-29T17:41:19.936575 | 2019-11-26T10:11:58 | 2019-11-26T10:11:58 | 176,303,546 | 0 | 0 | BSD-3-Clause | 2019-03-18T14:27:56 | 2019-03-18T14:27:56 | null | UTF-8 | Python | false | false | 516 | py | from walt.server.threads.blocking.images.metadata import \
update_user_metadata_for_image
# this implements walt image publish
def publish(requester, server, dh_peer, auth_conf, image_fullname):
# push image
server.docker.hub.push(image_fullname, dh_peer, auth_conf, requester)
# upd... | [
"etienne.duble@imag.fr"
] | etienne.duble@imag.fr |
484e6d6524860d2e105423312211ef8bece01452 | e13542cc246837c0f91f87506fc75a2d946f115c | /aula1/beta/bin/wheel | 0dc4c3b65acc995f2e7f7bec7b3abab2907ee749 | [] | no_license | Gamboua/python-520 | a042d265cd1d1b9d6c0839d1d4dbdde3e7d401a6 | 52aa4f7c9688be88855e81c473e10cd88788dd64 | refs/heads/master | 2021-09-18T10:23:21.900421 | 2018-07-12T21:44:40 | 2018-07-12T21:44:40 | 109,701,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | #!/var/www/html/python/beta/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"gabriel.bonfim@4linux.com.br"
] | gabriel.bonfim@4linux.com.br | |
f501eef3959ee7b7694575e29d87512d48a2abc3 | 3a9f2b3d79cf214704829427ee280f4b49dca70a | /saigon/rat/RuckusAutoTest/tests/zd/CB_ZD_Get_Mgmt_IPV6_ACLs.py | eab30af67937b2aaea57f45e04f394791f085722 | [] | no_license | jichunwei/MyGitHub-1 | ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791 | f826fc89a030c6c4e08052d2d43af0b1b4b410e3 | refs/heads/master | 2021-01-21T10:19:22.900905 | 2016-08-20T03:34:52 | 2016-08-20T03:34:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,440 | py | # Copyright (C) 2011 Ruckus Wireless, Inc. All rights reserved.
# Please make sure the following module docstring is accurate since it will be used in report generation.
"""
Description:
@author: Cherry Cheng
@contact: cherry.cheng@ruckuswireless.com
@since: Oct 2011
Prerequisite (Assumptions about th... | [
"tan@xx.com"
] | tan@xx.com |
df48824f457902ed3e11b5e29e8b28c3cabb0ba9 | 2067c90b12a5b10fbb97bb2fe52a30f79d502b7b | /booking/migrations/0006_auto_20200216_1826.py | 3c6f8b2d33482cc143f75329a8b5d7acec770d3f | [] | no_license | info3g/payapal_integration | bc632841abd0284a6757f31cf13d9ee1946bba33 | a8e745df3497f553d437988c799cd9882602d3b8 | refs/heads/master | 2022-12-10T01:15:46.167005 | 2020-03-03T16:36:48 | 2020-03-03T16:36:48 | 243,932,807 | 0 | 1 | null | 2022-12-08T03:43:42 | 2020-02-29T08:34:31 | Python | UTF-8 | Python | false | false | 528 | py | # Generated by Django 3.0.3 on 2020-02-16 17:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('booking', '0005_customer_price'),
]
operations = [
migrations.AlterField(
model_name='customer',
name='address',
... | [
"infothreeg@gmail.com"
] | infothreeg@gmail.com |
d3fc4e749b5623648d7755c22b43adbca799339d | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/keras/datasets/cifar10.py | 863c9df822d0ee351f438d2d076f8030cbbc3a5f | [] | no_license | Akira331/flask-cifar10 | 6c49db8485038731ce67d23f0972b9574746c7a7 | 283e7a2867c77d4b6aba7aea9013bf241d35d76c | refs/heads/master | 2023-06-14T16:35:06.384755 | 2021-07-05T14:09:15 | 2021-07-05T14:09:15 | 382,864,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:63d66a0e745552af02799b65d4289ea59046aeae4e0e92fffe1446ff879f32e4
size 3548
| [
"business030301@gmail.com"
] | business030301@gmail.com |
4a038d6d8e29aa9d971a322946e73c4ec8ca1a05 | 72b00923d4aa11891f4a3038324c8952572cc4b2 | /python/introducing_python/chp5/sources/daily.py | 55a0f21679917f7a6c05056be45b146dddf69271 | [] | no_license | taowuwen/codec | 3698110a09a770407e8fb631e21d86ba5a885cd5 | d92933b07f21dae950160a91bb361fa187e26cd2 | refs/heads/master | 2022-03-17T07:43:55.574505 | 2022-03-10T05:20:44 | 2022-03-10T05:20:44 | 87,379,261 | 0 | 0 | null | 2019-03-25T15:40:27 | 2017-04-06T02:50:54 | C | UTF-8 | Python | false | false | 45 | py |
def forecast():
return 'like yesterday'
| [
"taowuwen@126.com"
] | taowuwen@126.com |
99152c525e224ec0a365e21d77b3ebc4c22869d4 | b15d2787a1eeb56dfa700480364337216d2b1eb9 | /samples/cli/accelbyte_py_sdk_cli/platform/_anonymize_subscription.py | 556651d3616d6ab2c798987dcb97a5bca11c71d0 | [
"MIT"
] | permissive | AccelByte/accelbyte-python-sdk | dedf3b8a592beef5fcf86b4245678ee3277f953d | 539c617c7e6938892fa49f95585b2a45c97a59e0 | refs/heads/main | 2023-08-24T14:38:04.370340 | 2023-08-22T01:08:03 | 2023-08-22T01:08:03 | 410,735,805 | 2 | 1 | MIT | 2022-08-02T03:54:11 | 2021-09-27T04:00:10 | Python | UTF-8 | Python | false | false | 2,178 | py | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template_file: python-cli-command.j2
# AGS Platform Service (4.32.1)
# pylint: disable=duplicate-code
#... | [
"elmernocon@gmail.com"
] | elmernocon@gmail.com |
aed3c3dee24a3b469803135f19b9e7d540ed0040 | c4b8e1e09dedbccd37ca008ecaaca4438610bbaf | /cpmpy/send_more_money_any_base.py | 0a301f379ecfc9bc8758bc64492faf87ba6b7502 | [
"MIT"
] | permissive | hakank/hakank | 4806598b98cb36dd51b24b0ab688f52dadfe9626 | c337aaf8187f15dcdc4d5b09cd2ed0dbdb2e72c2 | refs/heads/master | 2023-08-15T00:21:52.750270 | 2023-07-27T16:21:40 | 2023-07-27T16:21:40 | 11,933,517 | 336 | 97 | MIT | 2023-07-27T11:19:42 | 2013-08-06T20:12:10 | JavaScript | UTF-8 | Python | false | false | 2,291 | py | """
Send more money in any base problem in cpmpy.
Send More Money
SEND
+ MORE
------
MONEY
using any base.
Examples:
Base 10 has one solution:
{9, 5, 6, 7, 1, 0, 8, 2}
Base 11 has three soltutions:
{10, 5, 6, 8, 1, 0, 9, 2}
{10, 6, 7, 8, 1, 0, 9, 3}
{10, 7, 8, 6, 1, 0, 9, 2}
Model cre... | [
"hakank@gmail.com"
] | hakank@gmail.com |
05d6b26ebd7a5f04611f8d54877b900714b3c030 | cd073757b17465635da3fd30f770bbd8df0dff99 | /tests/pytests/unit/beacons/test_swapusage.py | 35b5ce28cdcad2d140bfeea54240048ddca33b61 | [
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | marmarek/salt | cadc939ecbda915e2f4246f198d72f507c9c1960 | 974497174252ab46ee7dc31332ffb5b2f8395813 | refs/heads/master | 2022-11-19T14:05:28.778983 | 2021-03-12T00:30:45 | 2021-05-06T16:45:38 | 160,296,073 | 0 | 1 | Apache-2.0 | 2018-12-04T04:19:43 | 2018-12-04T04:19:41 | null | UTF-8 | Python | false | false | 1,571 | py | """
tests.pytests.unit.beacons.test_swapusage
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Swap usage beacon test cases
"""
from collections import namedtuple
import pytest
import salt.beacons.swapusage as swapusage
from tests.support.mock import MagicMock, patch
@pytest.fixture
def configure_loader_module... | [
"megan.wilhite@gmail.com"
] | megan.wilhite@gmail.com |
7aa94aeceb0e3cabb97bd080fad37fcef5af03d7 | 9f59a910a6512fe7dc2d97c1ea4866c0def18ff4 | /utils/cfgs_bdb/pydb/cfg_pandaboard.py | 958348202147941b5c6ab55c18ad36eae0c69229 | [
"MIT"
] | permissive | YuanYuLin/PackMan_IOPC | ec3b0c97499275744ae50ef5c6315042a2167fd8 | 51333e1635c55478477c7ad5536e94ebd6976525 | refs/heads/master | 2021-01-19T04:38:51.408655 | 2020-03-31T09:11:04 | 2020-03-31T09:11:04 | 87,382,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,294 | py | #!/usr/bin/python -Wall
#coding:utf-8
import btdb
platform_name = "pandaboard"
def gen_cfg_platform(db):
btdb.set_uint32 (db,"platform.cfg.size", 1)
btdb.set_boolean (db,"platform.cfg[0].is_host", 1)
btdb.set_boolean (db,"platform.cfg[0].is_init_console", 0)
btdb.set_string (db,"platfor... | [
"yuanyu.lin@gmail.com"
] | yuanyu.lin@gmail.com |
69dc9b2fe646f35c01edb5ff5eb318b3291f0fa9 | f125a883dbcc1912dacb3bf13e0f9263a42e57fe | /tsis5/part1/21.py | 1fc47ed9b0a9a65ab42e5e8b5dd618f9a234fcfe | [] | no_license | AruzhanBazarbai/pp2 | 1f28b9439d1b55499dec4158e8906954b507f04a | 9d7f1203b6735b27bb54dfda73b3d2c6b90524c3 | refs/heads/master | 2023-07-13T05:26:02.154105 | 2021-08-27T10:20:34 | 2021-08-27T10:20:34 | 335,332,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | #Write a Python program to create a file where all letters of English alphabet are listed by specified number of letters on each line
import string
def letters_file_line(n):
with open("words1.txt", "w") as f:
alphabet = string.ascii_uppercase
letters = [alphabet[i:i + n] + "\n" for i in range(0, len(al... | [
"aruzhanart2003@mail.ru"
] | aruzhanart2003@mail.ru |
04c4f07bd5698c3866128a445148f52291cad0de | eef9afdc9ab5ee6ebbfa23c3162b978f137951a8 | /oops_concept/encapsulation/encapsul3.py | 0804609b0c00d8bb1f7947f4a6266df30c65c544 | [] | no_license | krishnadhara/programs-venky | 2b679dca2a6158ecd6a5c28e86c8ed0c3bab43d4 | 0f4fd0972dec47e273b6677bbd32e2d0742789ae | refs/heads/master | 2020-06-05T04:48:45.792427 | 2019-06-17T09:59:45 | 2019-06-17T09:59:45 | 192,318,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | class SeeMee:
def youcanseemee(self):
return "you can see mee"
def __youcantseemee(self):
return "you cant see mee"
p = SeeMee()
print(p.youcanseemee())
print(p._SeeMee__youcantseemee()) | [
"49470138+krishnadhara@users.noreply.github.com"
] | 49470138+krishnadhara@users.noreply.github.com |
3ff2138e33c5184658a9ea4eb2200b7f23f05ad5 | df01d62513cd03c0b794dcebcd5d3de28084e909 | /djbShop/djbShop/urls.py | 8005492bfc9e6511dbaa843d4b98e9dc8374289a | [] | no_license | codingEzio/code_py_bookreview_django2_by_example | 32206fc30b7aab6f0a613d481089bf8bffd1380c | 9c2d022364e1b69063bd7a0b741ebeeb5b7d4e13 | refs/heads/master | 2022-12-23T20:32:42.899128 | 2022-12-20T07:40:11 | 2022-12-20T07:40:11 | 207,786,302 | 1 | 0 | null | 2019-12-28T04:59:41 | 2019-09-11T10:35:44 | Python | UTF-8 | Python | false | false | 644 | py | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('cart/', include('cart.urls', namespace='cart')),
path('orders/', include('orders.urls', namespace='orders... | [
"assassinste@gmail.com"
] | assassinste@gmail.com |
69370efa4a456f47d0ca107e5eee7219d752893c | b641e56db0f49dee6d27bea933255bff5caa6058 | /app/__init__.py | 2e99a6f67bb73c23a1950f7a7efd484e4990a7b7 | [
"BSD-2-Clause"
] | permissive | uniphil/kibera-school-project | ed2bffdc938878f2370ff458aef0582b48c1ba1f | 4e77538af66065ea00d7a7559129026a72aa4353 | refs/heads/master | 2016-09-03T01:44:43.809992 | 2014-05-20T21:23:15 | 2014-05-20T21:23:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | # -*- coding: utf-8 -*-
"""
app
~~~
Static site generator for the Kibera School Project by Feedback Labs
This file initializes the app and manages configuration before importing
the other modules to do all the work.
"""
# from flask import Flask
# app = Flask('app')
# app.config['FREEZER_DESTI... | [
"uniphil@gmail.com"
] | uniphil@gmail.com |
8145d3a3343b5e652288a7d273365a1643b1d1da | 9906dfd3d059afdf3841a883cd1c75018f0f3b67 | /Midterm programs/redo of Midterm program 1.py | 0aa0b6db058b8d883cba5200e85fa3742a7ba558 | [] | no_license | ThomasMGilman/ETGG1801_GameProgrammingFoundations | 73ebc4ef6833b0a7ed4cdab8416bee3da91f0018 | 4d7e412507b9c812b026717514bd5c5f121a8f31 | refs/heads/master | 2020-03-29T23:11:08.620415 | 2018-09-26T16:56:33 | 2018-09-26T16:56:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | i=1
while i<=41:
print(i)
i+=2
print("all done")
| [
"Thomas.Gilman@ymail.com"
] | Thomas.Gilman@ymail.com |
30ce2874708c452ce8a921d0df7df203cd619871 | 34d88082307281333ef4aeeec012a3ff5f8ec06e | /w3resource/List_/Q058.py | 02e569e86ae9c120564deb6898a1645490b175de | [] | no_license | JKChang2015/Python | a6f8b56fa3f9943682470ae57e5ad3266feb47a7 | adf3173263418aee5d32f96b9ea3bf416c43cc7b | refs/heads/master | 2022-12-12T12:24:48.682712 | 2021-07-30T22:27:41 | 2021-07-30T22:27:41 | 80,747,432 | 1 | 8 | null | 2022-12-08T04:32:06 | 2017-02-02T17:05:19 | HTML | UTF-8 | Python | false | false | 285 | py | # -*- coding: UTF-8 -*-
# Q058
# Created by JKChang
# Thu, 31/08/2017, 16:35
# Tag:
# Description: 58. Write a Python program to replace the last element in a list with another list.
# Sample data : [1, 3, 5, 7, 9, 10], [2, 4, 6, 8]
# Expected Output: [1, 3, 5, 7, 9, 2, 4, 6, 8]
| [
"jkchang2015@gmail.com"
] | jkchang2015@gmail.com |
e1f81e46b0c455bb596d317beacc49baf9d411d6 | e4066b34668bbf7fccd2ff20deb0d53392350982 | /project_scrapy/spiders/dshop.py | be32858a472c5b199e95d1d6197ee401499faebd | [] | no_license | sushma535/WebSites | 24a688b86e1c6571110f20421533f0e7fdf6e1a8 | 16a3bfa44e6c7e22ae230f5b336a059817871a97 | refs/heads/master | 2023-08-18T09:09:16.052555 | 2021-10-11T00:41:50 | 2021-10-11T00:41:50 | 415,621,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,539 | py | import scrapy
from scrapy.crawler import CrawlerProcess
import os
import csv
from csv import reader
import re
total_data = {}
class SimilarWeb(scrapy.Spider):
name = 'SW'
user_agent = 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36'
start_url... | [
"sushmakusumareddy@gmail.com"
] | sushmakusumareddy@gmail.com |
98aac32f8002f1242c4200d8fc88f6918443821c | 3560a70fefb3f32a85206b66704e473e1dec8761 | /docs/conf.py | 42236bc483f2519db436abdd4f9966ec17483ca0 | [
"MIT"
] | permissive | francispoulin/hankel | 626c0e7e38934217ff274ea5a012023bb3b983d8 | 0dc05b37df16ac3ff1df5ebdd87b9107bf0197b0 | refs/heads/master | 2021-01-11T14:37:12.944019 | 2017-02-13T08:07:42 | 2017-02-13T08:07:42 | 80,174,672 | 0 | 0 | null | 2017-01-27T02:13:41 | 2017-01-27T02:13:41 | null | UTF-8 | Python | false | false | 5,915 | py | # -*- coding: utf-8 -*-
#
# hankel documentation build configuration file, created by
# sphinx-quickstart on Mon Feb 13 10:17:24 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# Al... | [
"steven.murray@curtin.edu.au"
] | steven.murray@curtin.edu.au |
ae01ef1517dbf0dea633d118236da9dfb2265530 | 69a327a2af65d7252b624fe7cadd537eb51ca6d6 | /String/BOJ_1259.py | d717f4cfec4f6568eee7fb4837c2ffb29c2ca38d | [] | no_license | enriver/algorithm_python | 45b742bd17c6a2991ac8095d13272ec4f88d9bf5 | 77897f2bf0241756ba6fd07c052424a6f4991090 | refs/heads/master | 2023-09-03T23:28:23.975609 | 2021-10-29T09:25:32 | 2021-10-29T09:25:32 | 278,907,031 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | # 팰린드롬수
import sys
for _ in range(100):
n=sys.stdin.readline()
isP=True
if int(n)==0:
break
else:
val=list()
re_val=list()
for i in n:
val.append(i)
re_val.append(i)
re_val.reverse()
val.pop(-1)
re_val.pop(0)
... | [
"riverkeh@naver.com"
] | riverkeh@naver.com |
018beb2cab77071fe797d905f21a3473c8bffbd0 | 4e07727db834a45b2d77f0d9e54ed57796dc986d | /demo/picoalu.py | fc9ba7c3281dbd67618b12758831aa03c88c67b5 | [] | no_license | phanrahan/pico40 | 278447961d9d115f94b02e5322ba452442808e30 | 26cf9f6130666cc981ca27324bc4c1137eaf3252 | refs/heads/master | 2021-01-22T08:05:56.855776 | 2017-10-20T20:03:52 | 2017-10-20T20:03:52 | 81,874,575 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,897 | py | import sys
from magma import *
from mantle import *
from parts.lattice.ice40.primitives.RAMB import ROMB
from pico.asm import *
from pico.cpu.seq import Sequencer
from pico.cpu.alu import Arith, Logic
from pico.cpu.ram import DualRAM
from boards.icestick import IceStick
icestick = IceStick()
icestick.Clock.on()
for... | [
"hanrahan@cs.stanford.edu"
] | hanrahan@cs.stanford.edu |
f7b6b12562a778214d8a22df2c85123c9eb66bad | 53edf6b0f4262ee76bb4e3b943394cfeafe54865 | /simulation_codes/_archived/PREDCORR_1D_TSC/py2/save_routines.py | 266faaaf7eebc39daea92fce756fa412c992f8b1 | [] | no_license | Yoshi2112/hybrid | f86265a2d35cb0a402ba6ab5f718717d8eeb740c | 85f3051be9368bced41af7d73b4ede9c3e15ff16 | refs/heads/master | 2023-07-07T21:47:59.791167 | 2023-06-27T23:09:23 | 2023-06-27T23:09:23 | 82,878,960 | 0 | 1 | null | 2020-04-16T18:03:59 | 2017-02-23T03:14:49 | Python | UTF-8 | Python | false | false | 4,135 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 22 10:44:46 2017
@author: iarey
"""
import numpy as np
import pickle
import os
import sys
from shutil import rmtree
import simulation_parameters_1D as const
from simulation_parameters_1D import generate_data, generate_plots, drive, save_path, NX, ne, density
from sim... | [
"joshua.s.williams@uon.edu.au"
] | joshua.s.williams@uon.edu.au |
1ea83f90ea8db170062f45f51f1716794d7d0fc5 | f0a5ad7b8aa39f51f233391fead0da3eabecc4ee | /.history/toolbox/sheets_20191128120456.py | 54667dc8f469a984db42e907ae4f73a38cf6d539 | [] | no_license | OseiasBeu/webScrapping | e0a524847e55b24dbbd3d57bbe7fa43b4e101f48 | 1e72c7551aea355a891043baecfcbab8a89e719a | refs/heads/master | 2022-10-25T18:12:50.858653 | 2020-06-18T01:29:24 | 2020-06-18T01:29:24 | 224,681,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,501 | py | from __future__ import print_function
import pickle
import os.path
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
import numpy as np
# import gspread
def insertPlanMiddleware(rows):
# If modifying these scopes... | [
"oseiasbeu@outlook.com"
] | oseiasbeu@outlook.com |
b7525b3c4b2ee07bfaef0438826a3266ea1bfd5c | b2c6833c5b2317ea81236c15ab730b8609b60043 | /gyp/public_headers.gypi | adef01260d88ef675d6f400829a1fb2bbbc9c106 | [
"BSD-3-Clause"
] | permissive | Axure/skia | 340531c240bb30677e75da52bbb859db81ebe3d1 | c4f30b1074e1068d6fc0f368428f410ed6d4b2b5 | refs/heads/master | 2021-01-17T22:06:37.416598 | 2014-07-13T17:09:42 | 2014-07-13T17:09:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,782 | gypi | # Include this gypi to include all public header files that exist in the
# include directory.
#
# The list is computed by running 'find include -name *.h' in the root dir of
# the project.
#
{
'variables': {
'header_filenames': [
'pdf/SkPDFDevice.h',
'pdf/SkPDFDocument.h',
'svg/SkSVGTypes.h',
... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
9b1b03442cc1fc5f738453149dd093c7e29e3127 | 3f5c0e166f8d88ce9aa9170dc4a80a5b64c64c6a | /melange-testing/tests/app/soc/modules/gsoc/views/test_accepted_orgs.py | aad371c70d5f7d5208def2a91af8f8303e948b7e | [] | no_license | praveen97uma/GSoC-Docs | a006538b1d05ecab1a105139e4eb2f2cff36b07f | 40c97239887a5c430be28a76cc2cd7a968511ce0 | refs/heads/master | 2021-01-23T16:26:56.949299 | 2012-06-14T19:31:30 | 2012-06-14T19:31:30 | 1,505,012 | 1 | 1 | null | 2020-02-08T05:17:26 | 2011-03-21T01:39:34 | Python | UTF-8 | Python | false | false | 3,478 | py | #!/usr/bin/env python2.5
#
# Copyright 2011 the Melange 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 applic... | [
"praveen97uma@gmail.com"
] | praveen97uma@gmail.com |
89fda3fd3aa06a78e69f6ff23728534a1850dea0 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /nb836onw9bek4FPDt_4.py | 00c57b5b188d38dbf5b5076fa134b394a85da9e9 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | """
Given a sentence, return the number of words which have the **same first and
last letter**.
### Examples
count_same_ends("Pop! goes the balloon") ➞ 1
count_same_ends("And the crowd goes wild!") ➞ 0
count_same_ends("No I am not in a gang.") ➞ 1
### Notes
* Don't count single character ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
5003a32bcda2bbd12438f4b9346f880068dfb407 | bc108434d5f485a5ca593942b0fbe2f4d044ebda | /pp/grpc/helloworld_protobuf.py | f7a1dedccb7a472def9fed97b93e26e7b8db1fb7 | [] | no_license | js-ts/AI | 746a34493a772fb88aee296f463122b68f3b299d | 353e7abfa7b02b45d2b7fec096b58e07651eb71d | refs/heads/master | 2023-05-29T16:19:03.463999 | 2021-06-22T05:49:44 | 2021-06-22T05:49:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | import numpy as np
import base64
import json
import helloworld_pb2
data = np.random.rand(2, 2)
tmp = helloworld_pb2.ModelRequest()
tmp.a = 1
tmp.b = 2
tmp.data = base64.b64encode(data)
print(str(tmp))
tmp1 = helloworld_pb2.ModelRequest()
tmp1.ParseFromString(tmp.SerializeToString())
print('tmp1... | [
"wenyu.lyu@gmail.com"
] | wenyu.lyu@gmail.com |
bdb2f40d0e4ed3f865fd7791907e585cf87f8f5a | 7d096568677660790479d87c22b47aae838ef96b | /stubs-legacy/System/Windows/Controls/Primitives_parts/StatusBarItem.py | b752a6eb9a82136cb4262f6c7ca0784f7645d7de | [
"MIT"
] | permissive | NISystemsEngineering/rfmx-pythonnet | 30adbdd5660b0d755957f35b68a4c2f60065800c | cd4f90a88a37ed043df880972cb55dfe18883bb7 | refs/heads/master | 2023-02-04T00:39:41.107043 | 2023-02-01T21:58:50 | 2023-02-01T21:58:50 | 191,603,578 | 7 | 5 | MIT | 2023-02-01T21:58:52 | 2019-06-12T16:02:32 | Python | UTF-8 | Python | false | false | 60,382 | py | class StatusBarItem(ContentControl,IResource,IAnimatable,IInputElement,IFrameworkInputElement,ISupportInitialize,IHaveResources,IQueryAmbient,IAddChild):
"""
Represents an item of a System.Windows.Controls.Primitives.StatusBar control.
StatusBarItem()
"""
def AddChild(self,*args):
"""
AddChild(se... | [
"sean.moore@ni.com"
] | sean.moore@ni.com |
1dfe400c08503f5360301196fafbd7c95bf1a7d4 | d5e94042ac2b248b7701117a6ea941bcc862067a | /upvote/gae/modules/bit9_api/api/api.py | ae03d52d4f13cf2e52982357e0e217325cd19a3f | [
"Apache-2.0"
] | permissive | codegrande/upvote | f373105203a0595f76c29e138a18a95dc24a63df | e05d477bb13e470127b109eb8905a66a06eed5ac | refs/heads/master | 2020-03-07T19:40:47.185833 | 2019-06-20T14:35:20 | 2019-06-20T14:35:20 | 127,677,753 | 0 | 0 | null | 2018-04-01T22:49:28 | 2018-04-01T22:49:27 | null | UTF-8 | Python | false | false | 19,026 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"msuozzo@google.com"
] | msuozzo@google.com |
8017fb462a269f73fa8c9ffa3fee73675aa70275 | d37a19ab3bcaba6e808a18df411c653c644d27db | /Year1/ca117/Lab11.1/triathlon_v3_111.py | 448776ad2f5a0f4641f48466df4f272a8bdccb60 | [] | no_license | Andrew-Finn/DCU | 9e7009dac9a543aaade17e9e94116259dcc1de20 | 013789e8150d80d3b3ce2c0c7ba968b2c69a7ce0 | refs/heads/master | 2023-02-21T05:13:42.731828 | 2022-02-14T12:39:20 | 2022-02-14T12:39:20 | 157,438,470 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | class Triathlete:
def __init__(self, name, tid):
self.name = name
self.tid = tid
self.times = {}
def __str__(self):
return "Name: {}\nID: {}\nRace time: {}".format(
self.name, self.tid, self.race_time())
def add_time(self, sport, time):
self.times[sport]... | [
"git@afinn.me"
] | git@afinn.me |
194840074149cc1c77f461d43ac7f0f971bea662 | 7698a74a06e10dd5e1f27e6bd9f9b2a5cda1c5fb | /pdb_search/quire_pdb_2014_mw70to250_tversky/postprocess_uniprot_pdb_lig_links_lists_max_num.py | e4cdbb9594d067e9ee24a33569e8d5f303c8e0d5 | [] | no_license | kingbo2008/teb_scripts_programs | ef20b24fe8982046397d3659b68f0ad70e9b6b8b | 5fd9d60c28ceb5c7827f1bd94b1b8fdecf74944e | refs/heads/master | 2023-02-11T00:57:59.347144 | 2021-01-07T17:42:11 | 2021-01-07T17:42:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,580 | py | ## Trent Balius, Shoichet group, UCSF, 2014.08.08
import urllib, urllib2, math
import scrape_pdb_for_uniprot as spfu
import scrape_pdb_for_lig_mod as spfl
import scrape_zinc_zincid as szzi
import tanimoto_cal_axon as tancal
def find_linked_list_count(lines):
list = []
sublist = []
#sublist.appen... | [
"tbalius@gimel.cluster.ucsf.bkslab.org"
] | tbalius@gimel.cluster.ucsf.bkslab.org |
18b0e53eac6e5967a1b4c546a35303373af7f399 | 65329299fca8dcf2e204132624d9b0f8f8f39af7 | /napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/bgp/neighbors/neighbor/state/messages/__init__.py | 2d44d9f348472cccab1a16ac19e4b20bb30b57ee | [
"Apache-2.0"
] | permissive | darylturner/napalm-yang | bf30420e22d8926efdc0705165ed0441545cdacf | b14946b884ad2019b896ee151285900c89653f44 | refs/heads/master | 2021-05-14T12:17:37.424659 | 2017-11-17T07:32:49 | 2017-11-17T07:32:49 | 116,404,171 | 0 | 0 | null | 2018-01-05T16:21:37 | 2018-01-05T16:21:36 | null | UTF-8 | Python | false | false | 14,654 | py |
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from decimal import Decimal
from bitarray import bitar... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
8daa3a2822a6f1ca6fea3e85851a2bdb5803592e | c053101986b0c9884c2003ec1c86bdf69c41d225 | /normal-tips/WordCloud/CN_cloud.py | 9bb43bd4f2992c1810594970824ab5e29931011d | [] | no_license | JZDBB/Python-ZeroToAll | 4c32a43044a581941943f822e81fa37df6ef8dd4 | 67a1e9db0775d897dcc5c0d90f663de9788221a3 | refs/heads/master | 2021-05-09T18:36:45.358508 | 2019-11-01T08:15:54 | 2019-11-01T08:15:54 | 119,166,874 | 0 | 0 | null | 2019-10-29T20:59:04 | 2018-01-27T13:29:59 | HTML | UTF-8 | Python | false | false | 4,430 | py | # # -*- coding: utf-8 -*-
# import jieba
# import os
# import codecs
# from scipy.misc import imread
# import matplotlib as mpl
# import matplotlib.pyplot as plt
# from wordcloud import WordCloud, STOPWORDS, ImageColorGenerator
#
#
# class GetWords(object):
# def __init__(self, dict_name, file_list, dic_list):
# ... | [
"oxuyining@gmail.com"
] | oxuyining@gmail.com |
6e56f5fe3ef0c5ddaeeabc6fa8213b24e7c6e253 | 6b7ff6d09f1da2793f4cc2d3f319256580fbae0c | /astroquery/vo_conesearch/async.py | 571c6d6d91008c9db5a4f15c4ef5f22b917ec926 | [] | no_license | AyushYadav/astroquery | 39e4e696441fdfe84e9e66cf905f6febde3080a3 | 4645d11f56f96404870d284603c024a3de0d8198 | refs/heads/master | 2020-05-18T13:02:06.068072 | 2017-05-21T17:16:15 | 2017-05-21T17:16:15 | 86,921,243 | 1 | 0 | null | 2017-04-01T15:05:25 | 2017-04-01T15:05:25 | null | UTF-8 | Python | false | false | 2,323 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Asynchronous VO service requests."""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
# ASTROPY
from astropy.utils.compat.futures import ThreadPoolExecutor
__all__ = ['AsyncBase']
class Asy... | [
"lim@stsci.edu"
] | lim@stsci.edu |
72e68a94ce144b60b07b3ec9392dddb8e4c927c4 | 3a02ec695af95e5d5f5c4f14ab393cd2ad709be3 | /kochat/model/fallback/__init__.py | 748d571c72c6d0720a72f9bead1e08855a573784 | [
"Apache-2.0"
] | permissive | seunghyunmoon2/kochat | 50f0db168ca5163e6926331d8d81ebf3a26e4f7e | f5a5df38c7c24080855f9279450195bc0a8eae74 | refs/heads/master | 2022-12-23T17:07:49.856243 | 2020-10-02T06:01:06 | 2020-10-02T06:01:06 | 278,004,648 | 0 | 0 | Apache-2.0 | 2020-07-08T06:08:38 | 2020-07-08T06:08:38 | null | UTF-8 | Python | false | false | 183 | py | """
@auther Hyunwoong
@since 6/28/2020
@see https://github.com/gusdnd852
"""
from kochat.model.intent.cnn import CNN
from kochat.model.intent.lstm import LSTM
__ALL__ = [CNN, LSTM]
| [
"gusdnd852@naver.com"
] | gusdnd852@naver.com |
33ea27c8dee8244bf11dc728aa76c3f6757fe576 | b1aa3c599c5d831444e0ae4e434f35f57b4c6c45 | /month1/week4/python_class11/main_operate.py | 984d84fa3373dc4dd1f9d5a380f1fe28a39feca9 | [] | no_license | yunyusha/xunxibiji | 2346d7f2406312363216c5bddbf97f35c1e2c238 | f6c3ffb4df2387b8359b67d5e15e5e33e81e3f7d | refs/heads/master | 2020-03-28T12:31:17.429159 | 2018-09-11T11:35:19 | 2018-09-11T11:35:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,620 | py | """Main Operate
Usage:
main_operate.py [-gkdtz] <from> <to> <time>
main_operate.py [-GDKTZ] <from> <to> <time>
Options:
"""
from docopt import docopt
from tickets import Ticket
import time
if __name__ == "__main__":
arguments = docopt(__doc__)
# 根据用户输入的选择项完成对应类别列车的信息查询
kinds = []
if arguments.... | [
"576462286@qq.com"
] | 576462286@qq.com |
a8266a0805a71be951a9468186ac375deefcf2a6 | ce6f8510f6a2fd48b7037c1c8448f719fd54f8b4 | /piecrust/admin/scm/git.py | b5ae5a0695d49f6903c42acf33f94be881e9eef4 | [
"Apache-2.0"
] | permissive | ludovicchabant/PieCrust2 | bd014f8aa880ec2b2360a298263d2de279d4252f | ebb567b577cbd2efb018183b73eff05c7a12c318 | refs/heads/master | 2023-01-09T17:09:56.991209 | 2022-12-31T00:48:04 | 2022-12-31T00:48:04 | 23,298,052 | 46 | 9 | NOASSERTION | 2022-12-31T01:05:07 | 2014-08-25T01:29:18 | Python | UTF-8 | Python | false | false | 1,872 | py | import os
import logging
import tempfile
import subprocess
from .base import SourceControl, RepoStatus, _s
logger = logging.getLogger(__name__)
class GitSourceControl(SourceControl):
def __init__(self, root_dir, cfg):
super(GitSourceControl, self).__init__(root_dir, cfg)
self.git = cfg.get('exe'... | [
"ludovic@chabant.com"
] | ludovic@chabant.com |
07a22260c73200a52b1acc7292c2c3f9ba7a1175 | 11cd362cdd78c2fc48042ed203614b201ac94aa6 | /desktop/core/ext-py3/boto-2.49.0/boto/auth.py | df6dbf27be6de47416a5d03616db0dc190bbedf5 | [
"CC-BY-3.0",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0",
"Unlicense",
"LGPL-3.0-only",
"CC0-1.0",
"LicenseRef-scancode-other-permissive",
"CNRI-Python",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-2.0-or-later",
"Python-2.0",
"GPL-3.0... | permissive | cloudera/hue | b42343d0e03d2936b5a9a32f8ddb3e9c5c80c908 | dccb9467675c67b9c3399fc76c5de6d31bfb8255 | refs/heads/master | 2023-08-31T06:49:25.724501 | 2023-08-28T20:45:00 | 2023-08-28T20:45:00 | 732,593 | 5,655 | 2,244 | Apache-2.0 | 2023-09-14T03:05:41 | 2010-06-21T19:46:51 | JavaScript | UTF-8 | Python | false | false | 41,839 | py | # Copyright 2010 Google Inc.
# Copyright (c) 2011 Mitch Garnaat http://garnaat.org/
# Copyright (c) 2011, Eucalyptus Systems, Inc.
#
# 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 re... | [
"noreply@github.com"
] | cloudera.noreply@github.com |
e5ec008185718edf0ec86d4b41829b57366e0471 | e75751f44e1f38eede027143fd43b83606e4cb13 | /proyecto_final/apps/tasks/models.py | 51a4cd65c5845e55b67bf2ac51b036137c6e9f52 | [] | no_license | stephfz/exam_prep_cd-django | 8fef23c4ae1639c213b2d4a143fe1f5996d3b315 | 4633d65b4d86e29fff3f1c9fd09d690d9416f2f2 | refs/heads/master | 2023-05-10T14:55:15.249503 | 2021-05-25T16:11:38 | 2021-05-25T16:11:38 | 369,047,889 | 0 | 1 | null | 2021-06-15T00:31:31 | 2021-05-20T01:42:26 | Python | UTF-8 | Python | false | false | 2,168 | py | from django.db import models
import re
from django.core import validators
from django.core.exceptions import ValidationError
from django.contrib.auth.hashers import check_password, make_password
MIN_FIELD_LENGHT = 4
def ValidarLongitudMinima(cadena):
if len(cadena) < MIN_FIELD_LENGHT:
raise ValidationE... | [
"stephfz@gmail.com"
] | stephfz@gmail.com |
4ad5a935680d32c5f47db945400a93b5d7813a54 | 7235051c8def972f3403bf10155e246c9c291c58 | /angola_erp/oficinas/doctype/ordem_de_reparacao/test_ordem_de_reparacao.py | 961f28830c5549ca52ea27afe99aed3a83b82258 | [
"MIT"
] | permissive | proenterprise/angola_erp | 8e79500ce7bcf499fc344948958ae8e8ab12f897 | 1c171362b132e567390cf702e6ebd72577297cdf | refs/heads/master | 2020-06-03T08:51:34.467041 | 2019-06-07T01:35:54 | 2019-06-07T01:35:54 | 191,514,859 | 1 | 0 | NOASSERTION | 2019-06-12T06:53:41 | 2019-06-12T06:53:41 | null | UTF-8 | Python | false | false | 221 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2019, Helio de Jesus and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
class TestOrdemdeReparacao(unittest.TestCase):
pass
| [
"hcesar@gmail.com"
] | hcesar@gmail.com |
73cd4fca469dc03c689a650f1c982b7519d64d32 | 7f8af0d2ffba9e8def7647afb5b070e9bfe20cf3 | /python/recoverVMjob/pyhesity.py | b3b62181e4b4dd6fa9cd78a1f94f59ccebd5d83e | [] | no_license | slasse/scripts | c47c4f86d347db35227c1869a85f01cf6b5af3f9 | 3de8ed983a4e7fbf9c9cea0bd3e05edf6fadc8b0 | refs/heads/master | 2023-03-19T15:15:27.751330 | 2021-03-15T12:48:36 | 2021-03-15T12:48:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,419 | py | #!/usr/bin/env python
"""Cohesity Python REST API Wrapper Module - v2.0.3 - Brian Seltzer - Jun 2019"""
##########################################################################################
# Change Log
# ==========
#
# 1.1 - added encrypted password storage - August 2017
# 1.2 - added date functions and private ... | [
"bseltzer@cohesity.com"
] | bseltzer@cohesity.com |
6bf991a763e479c7e1cf1405735bd5a5b5bd5e30 | 14f455693213cae4506a01b7d0591e542c38de79 | /vendor/python-munin/plugins/aws_elb_requests | b846f9ba72903b7127b9edce58997a3bb6785c5e | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"X11-distribute-modifications-variant"
] | permissive | Cvalladares/Newsblur_Instrumented | f0b14d063759973330f202108a7eed3a29bcc033 | 4d6ee6aa9713879b1e2550ea5f2dbd819c73af12 | refs/heads/master | 2022-12-29T15:19:29.726455 | 2019-09-03T17:09:04 | 2019-09-03T17:09:04 | 206,130,022 | 0 | 0 | MIT | 2022-12-10T06:00:26 | 2019-09-03T17:07:04 | Python | UTF-8 | Python | false | false | 1,411 | #!/usr/bin/env python
import datetime
import os
import sys
import boto
from boto.ec2.cloudwatch import CloudWatchConnection
from vendor.munin import MuninPlugin
class AWSCloudWatchELBRequestsPlugin(MuninPlugin):
category = "AWS"
args = "-l 0 --base 1000"
vlabel = "Requests/sec"
info =... | [
"Cvalladares4837@gmail.com"
] | Cvalladares4837@gmail.com | |
56912e1ee6caa7808dea0ddd13b2516f89961713 | 1c751c001357d23fe10e7a42490e3b76434dfa18 | /tools/py/ss.py | 06e26a8a47b602d63c9c69c1a72b29e584944444 | [] | no_license | pie-crust/etl | 995925199a71b299544bfac1ed8f504f16fbadc2 | 14b19b542eaa69b8679ce7df4d9a5d2720b3c5c7 | refs/heads/master | 2022-12-12T18:40:31.866907 | 2019-10-14T15:46:16 | 2019-10-14T15:46:16 | 215,082,544 | 0 | 0 | null | 2022-12-08T05:22:54 | 2019-10-14T15:43:04 | Python | UTF-8 | Python | false | false | 5,942 | py | import os, sys, io, csv, time, boto, gzip, math
import pyodbc
e=sys.exit
from pprint import pprint as pp
try:
from io import BytesIO as cStringIO
except:
try:
import cStringIO
except ImportError:
import io as cStringIO
def setKeytabCache(keyTabFile, keyTabPrincipal='',isVertica=True):
DEFAULT_DO... | [
"olek.buzu@gmail.com"
] | olek.buzu@gmail.com |
de2c57db3df051e2c71ce0c65bb11785838de827 | 51f6443116ef09aa91cca0ac91387c1ce9cb445a | /Curso_de_Python_ Curso_em_Video/PythonTeste/tuplasEx006.py | 7390994256a02018fcb186b5a803af55fff0bb07 | [
"MIT"
] | permissive | DanilooSilva/Cursos_de_Python | f449f75bc586f7cb5a7e43000583a83fff942e53 | 8f167a4c6e16f01601e23b6f107578aa1454472d | refs/heads/main | 2023-07-30T02:11:27.002831 | 2021-10-01T21:52:15 | 2021-10-01T21:52:15 | 331,683,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | nomes = ('Danilo', 'Maria', 'Scarlett', 'Ohara', 'Allanys', 'Mel', 'Ze Russo')
for nome in nomes:
print(f'No nome {nome.upper()} temos as vogais', end=' ')
for vogais in nome:
if vogais in 'aAeEiIoOuU':
print(vogais, end=' ')
print() | [
"dno.gomesps@gmail.com"
] | dno.gomesps@gmail.com |
16a554411b6c2550251a1231746f75bf6f984b71 | 7e806feae66ff77601a9f19dad4d4a4a8d774c88 | /server/api/migrations/0018_auto_20191110_1617.py | 4f9ad449149555622bb9070600a9cfa16d1eae8f | [] | no_license | admiralbolt/lorebook | bfc71fa39285a51bce70e0544aceca55db1132f4 | 6e5614796d4eccc696908053c5bc22950a8e6a8c | refs/heads/master | 2022-12-28T20:12:31.229136 | 2021-01-24T22:02:13 | 2021-01-24T22:02:13 | 215,921,497 | 1 | 0 | null | 2022-12-11T09:51:53 | 2019-10-18T02:03:34 | JavaScript | UTF-8 | Python | false | false | 588 | py | # Generated by Django 2.2.7 on 2019-11-10 16:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0017_auto_20191110_1610'),
]
operations = [
migrations.AlterField(
model_name='lore',
name='date_received',
... | [
"aviknecht@gmail.com"
] | aviknecht@gmail.com |
ca8506bd95dca5bde283c3376e5c95788a982b55 | b7fab13642988c0e6535fb75ef6cb3548671d338 | /tools/ydk-py-master/openconfig/ydk/models/openconfig/ietf_diffserv_action.py | 293a2b138c9c7712e56f8bfd4726376e73af48fb | [
"Apache-2.0"
] | permissive | juancsosap/yangtraining | 6ad1b8cf89ecdebeef094e4238d1ee95f8eb0824 | 09d8bcc3827575a45cb8d5d27186042bf13ea451 | refs/heads/master | 2022-08-05T01:59:22.007845 | 2019-08-01T15:53:08 | 2019-08-01T15:53:08 | 200,079,665 | 0 | 1 | null | 2021-12-13T20:06:17 | 2019-08-01T15:54:15 | Python | UTF-8 | Python | false | false | 5,114 | py | """ ietf_diffserv_action
This module contains a collection of YANG definitions for configuring
diffserv specification implementations. Copyright (c) 2014 IETF
Trust and the persons identified as authors of the code. All rights
reserved. Redistribution and use in source and binary forms, with
or without modification, ... | [
"juan.c.sosa.p@gmail.com"
] | juan.c.sosa.p@gmail.com |
bbb370b912be9dd1d301c91a2df51194eab247b0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02647/s288463755.py | 23233f7ddad32a580359992f962a8751dd84649d | [] | 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 | 458 | py | n, k = map(int, input().split())
alst = list(map(int, input().split()))
for _ in range(k):
tmp = [0 for _ in range(n + 1)]
for i, num in enumerate(alst):
min_ind = max(i - num, 0)
max_ind = min(i + num + 1, n)
tmp[min_ind] += 1
tmp[max_ind] -= 1
next_num = 0
for i, num i... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
80423bb24b65dcb3c53ed7198486ab73d0f22546 | dce4a52986ddccea91fbf937bd89e0ae00b9d046 | /jni-build/jni/include/tensorflow/contrib/learn/python/learn/estimators/dnn.py | 91eb3a57ac422be745273f7600e4e975db03d00b | [
"MIT"
] | permissive | Lab603/PicEncyclopedias | 54a641b106b7bb2d2f71b2dacef1e5dbeaf773a6 | 6d39eeb66c63a6f0f7895befc588c9eb1dd105f9 | refs/heads/master | 2022-11-11T13:35:32.781340 | 2018-03-15T05:53:07 | 2018-03-15T05:53:07 | 103,941,664 | 6 | 3 | MIT | 2022-10-28T05:31:37 | 2017-09-18T13:20:47 | C++ | UTF-8 | Python | false | false | 14,572 | 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... | [
"super_mr.z@hotmail.comm"
] | super_mr.z@hotmail.comm |
93c1cfcec3bc7b70190f5138f4b8fa6e97a0ff16 | 2c989707a10e65c115eff8bbab0f51e510ccf096 | /PythonAdvance/1004pyad.py | 549187a006765355fd624a4fc305df2d8a6dfbba | [] | no_license | qiwsir/LearningWithLaoqi | 42041eccb40788f573485209c82aa5e00549408a | 4c5df8d6f7638ba2ef5ea68b3b169aa4065b43c2 | refs/heads/master | 2021-05-01T19:13:28.686452 | 2018-04-03T11:45:21 | 2018-04-03T11:45:21 | 121,016,704 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | #coding:utf-8
class CountWord(dict):
def add(self, item, increment=1):
self[item] = increment + self.get(item, 0)
def sorts(self, reverse=False):
lst = [ (self[k], k) for k in self ]
lst.sort()
if reverse:
lst.reverse()
return [(v, k) for k, v in lst]
if __n... | [
"qiwsir@gmail.com"
] | qiwsir@gmail.com |
11815ae3e42c0042d8086fa2b5a0924fcb8f1998 | c29de305e7923acfa6a49a852d730ac607198446 | /ng_opcserver/ng_opcserver.py | 92a6b315f3ab0d29c4a9d2d8c3db8fd92811e7c7 | [
"MIT"
] | permissive | jmosbacher/ng-opcua | 712009cf50e2292abacbe4da269b934c5cfb3bcf | 3a3030a4230a4807b603262f19f66c99a27f75cc | refs/heads/master | 2022-12-16T21:18:02.518113 | 2020-09-24T14:18:31 | 2020-09-24T14:18:31 | 298,301,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,098 | py | # -*- coding: utf-8 -*-
from asyncua import ua, Server
from asyncua.common import node
from asyncua.common.methods import uamethod
from enum import IntEnum
import asyncio
import random
import logging
import time
# Not required just for convenience
# Because this example is based on EnumStrings, the values should start... | [
"joe.mosbacher@gmail.com"
] | joe.mosbacher@gmail.com |
1825d7f8f1f9e66ba3b9c2f500fc015db148d39c | d60e74dae2c4bcef6bc7c8faea51dc6b245de42f | /package/inference/gauss/__init__.py | 06c798718238f04663af5ea96ccdbc202152a445 | [] | no_license | tloredo/inference | 37664ef62317f32ad5ab25c56ead1c49bfc91045 | 215de4e93b5cf79a1e9f380047b4db92bfeaf45c | refs/heads/master | 2021-09-09T06:24:16.690338 | 2021-09-01T21:03:52 | 2021-09-01T21:03:52 | 142,254,094 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | """
gauss: Modules for inference tasks using the Gaussian (normal) distribution.
"""
from . import vecba
__all__ = ['vecba']
| [
"loredo@astro.cornell.edu"
] | loredo@astro.cornell.edu |
99188776dea6e29905ef526b4d4799dabf999df0 | 3db75d71bbe018f92be0b1ae006f09f9045baa80 | /Gex.py | d07cde034f0d28fbc65eb120339123e5443c5f02 | [] | no_license | eo1989/SPXg | b5cc5eb702ee3e5eb174c0e2d2e6f080fa991976 | cee290d0de3483f4f52c1f01413129fafab364eb | refs/heads/master | 2022-12-15T23:07:00.379586 | 2020-09-18T22:21:56 | 2020-09-18T22:21:56 | 286,111,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,107 | py | # coding: utf-8
"""
Ernest Orlowski
EOrlowski6@gmail.com
"""
import datetime
import holidays
import numpy as np
import pandas as pd
import requests
import matplotlib.pyplot as plt
from .PyVol import (
blackDelta,
blackGamma,
blackIV,
blackScholesDelta,
blackScholesGamma,
blackScholesIV,
bl... | [
"eorlowski6@gmail.com"
] | eorlowski6@gmail.com |
9fbf579ea2337d37e373d71d47d4ef7a48cbef9a | c385cc6c6d69cadfe23664368e592f62e1e2d390 | /Tree/剑指 Offer 26. 树的子结构.py | 69ec6412c750ce3ed8248740308e3370c5da163a | [] | no_license | baketbek/AlgorithmPractice | c5801a374491a2d813fb7504a84aff6a50fc11ab | 5a412bef8602097af43a9134389d334e6f5fa671 | refs/heads/master | 2023-05-23T23:50:25.798825 | 2021-06-19T13:58:45 | 2021-06-19T13:58:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,026 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
这么写有问题,因为recur函数里,如果AB值相等就继续对比,进入下一层后如果不相等,就跳过这层,
在下层对比A.left.left和B.left,是不对的,应该有一个不等了就从头开始,我这个写法跳了一层依然在对比当前的点而非回到头部
class Solution:
def isSubStructure(s... | [
"noreply@github.com"
] | baketbek.noreply@github.com |
eeba4aace767cd3308d15373a9beb81f35f19740 | 40195e6f86bf8620850f0c56e98eae5693e88277 | /coremltools/converters/mil/frontend/tensorflow/dialect_ops.py | 010408b706010866823ce1f7b6e8f10534350d69 | [
"MIT",
"BSD-3-Clause"
] | permissive | apple/coremltools | 009dfa7154d34cab8edcafa618e689e407521f50 | feed174188f7773631a3d574e1ff9889a135c986 | refs/heads/main | 2023-09-01T23:26:13.491955 | 2023-08-31T18:44:31 | 2023-08-31T18:44:31 | 95,862,535 | 3,742 | 705 | BSD-3-Clause | 2023-09-14T17:33:58 | 2017-06-30T07:39:02 | Python | UTF-8 | Python | false | false | 6,346 | py | # Copyright (c) 2020, Apple Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-3-clause license that can be
# found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
from coremltools.converters.mil.mil import Operation, types
from coremltools.converters.mil.mil.input... | [
"noreply@github.com"
] | apple.noreply@github.com |
e5dc0ac3c5d8a27863f7618f82a43abfc0a2d5f0 | 673f9b85708affe260b892a4eb3b1f6a0bd39d44 | /Botnets/App/App Web/PDG-env/lib/python3.6/site-packages/pandas/tests/series/methods/test_sort_index.py | 6fa4eeaee34c0360b902671615b82294e3eea970 | [
"MIT"
] | permissive | i2tResearch/Ciberseguridad_web | feee3fe299029bef96b158d173ce2d28ef1418e4 | e6cccba69335816442c515d65d9aedea9e7dc58b | refs/heads/master | 2023-07-06T00:43:51.126684 | 2023-06-26T00:53:53 | 2023-06-26T00:53:53 | 94,152,032 | 14 | 0 | MIT | 2023-09-04T02:53:29 | 2017-06-13T00:21:00 | Jupyter Notebook | UTF-8 | Python | false | false | 6,013 | py | import random
import numpy as np
import pytest
from pandas import IntervalIndex, MultiIndex, Series
import pandas._testing as tm
class TestSeriesSortIndex:
def test_sort_index(self, datetime_series):
rindex = list(datetime_series.index)
random.shuffle(rindex)
random_order = datetime_ser... | [
"ulcamilo@gmail.com"
] | ulcamilo@gmail.com |
e25b321b40b2d26cad85048d4c5e8ef0c54588b3 | 34652a47355a8dbe9200db229a1bbc62619de364 | /Maths/Polynomials_Functions/Fast Fourier Transform.py | 3667f91c4d5ebbe4681f2f971d13bc638492912a | [] | no_license | btrif/Python_dev_repo | df34ab7066eab662a5c11467d390e067ab5bf0f8 | b4c81010a1476721cabc2621b17d92fead9314b4 | refs/heads/master | 2020-04-02T13:34:11.655162 | 2019-11-10T11:08:23 | 2019-11-10T11:08:23 | 154,487,015 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | # Created by Bogdan Trif on 12-02-2018 , 11:31 AM.
import numpy as np
import matplotlib.pyplot as plt
import scipy.fftpack
N = 100
x = np.linspace(0,2*np.pi,100)
y = np.sin(x) + np.random.random(100) * 0.8
def smooth(y, box_pts):
box = np.ones(box_pts)/box_pts
y_smooth = np.convolve(y, box, mode='same')
... | [
"bogdan.evanzo@gmail.com"
] | bogdan.evanzo@gmail.com |
f2816e0ff2de1b5a3f38f5624c01e9a11ee49dbe | edbb7a53633cba3b17aad4501d532d92159a1041 | /DirtyBits/wsgi.py | 455df86e3f0091903fefcae922e2e33c885fa158 | [] | no_license | himdhiman/DirtyBitsFinal | b5be2b87f85d15a7dce490692df9b6086aadbb74 | f3bd541426af7633a51ab36579cf61fe28a289dc | refs/heads/master | 2023-06-19T13:05:53.755343 | 2021-07-19T14:46:29 | 2021-07-19T14:46:29 | 385,284,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'DirtyBits.settings')
application = get_wsgi_application()
| [
"himanshudhiman9313@gmail.com"
] | himanshudhiman9313@gmail.com |
b9837e4481aada40e2b6e49cb7aa361f626d1e68 | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20180811/example_wsgiref/00hello.py | 5f59790ba629fefc3066cf9fc505d9309baaa971 | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 421 | py | import json
from wsgiref.simple_server import make_server
def app(environ, start_response):
status = '200 OK'
headers = [('Content-type', 'application/json')]
start_response(status, headers)
data = {
"msg": "hello world",
}
return [json.dumps(data).encode("utf-8")]
if __name__ == "__... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
7fce08c60328e65c1c9c8a5d15b2b979c59657a4 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_103/ch34_2020_03_30_12_51_14_514066.py | b02ea9ff387824b0e5bcc10b0ac45bf455ddf9a1 | [] | 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 | 367 | py | def eh_primo(x):
if x%2==0:
return False
elif x%2!=0:
y=3
if x%y==0:
y+=2
return False
elif x==1 or x==0:
return False
elif x==2:
return True
else:
return True
def maior_primo_menor_que(n):
while x<=n:
if n%x==0:
re... | [
"you@example.com"
] | you@example.com |
1884af8f4634d7ebb0c4640f69361692cd0c7867 | 2ba46d8b7ac3538619b074b50bad126867a2c27c | /src/zojax/messaging/browser/breadcrumb.py | df1c4095fb87a19689e3695a70458dccbadea7d9 | [
"ZPL-2.1"
] | permissive | Zojax/zojax.messaging | 2baca5eb4d2d8b3bd23462f6d216925b9ff4cc23 | 7d6c4216763a93ae41251d7d4224c83654806339 | refs/heads/master | 2016-09-06T11:41:41.037505 | 2011-12-16T07:18:52 | 2011-12-16T07:18:52 | 2,026,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | ##############################################################################
#
# Copyright (c) 2009 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | [
"andrey.fedoseev@gmail.com"
] | andrey.fedoseev@gmail.com |
455590a886a1e5acccb85548fbd3af500d74f358 | 73abb3e522c93f1d0d0b93035b034a9f5b8e9867 | /kevlar/cli/localize.py | e451ae7003db0e55ac891f9dba10c131e49506aa | [
"MIT"
] | permissive | jchow32/kevlar | 4caa3fae43857e30a527871b33bce4b30941e265 | 59bb409407b08011e86fd0a1198584cb4d3d5998 | refs/heads/master | 2021-05-05T15:14:23.071710 | 2018-01-11T20:52:54 | 2018-01-11T20:52:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,828 | py | #!/usr/bin/env python
#
# -----------------------------------------------------------------------------
# Copyright (c) 2017 The Regents of the University of California
#
# This file is part of kevlar (http://github.com/dib-lab/kevlar) and is
# licensed under the MIT license: see LICENSE.
# ----------------------------... | [
"daniel.standage@gmail.com"
] | daniel.standage@gmail.com |
cb91a4068110a5c6fd0628653fcaba5ac636754d | 6147d3da9c7f31a658f13892de457ed5a9314b22 | /linked_list/python/nth_from_last.py | 314466ee9a99cf03f7eff6af1b33c26300b7d3ec | [] | no_license | ashish-bisht/must_do_geeks_for_geeks | 17ba77608eb2d24cf4adb217c8e5a65980e85609 | 7ee5711c4438660db78916cf876c831259109ecc | refs/heads/master | 2023-02-11T22:37:03.302401 | 2021-01-03T05:53:03 | 2021-01-03T05:53:03 | 320,353,079 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | class Node:
def __init__(self, val):
self.val = val
self.next = None
def nth_from_last(head, n):
slow = fast = head
while n > 0 and fast:
fast = fast.next
n -= 1
if n > 0 and not fast:
return "List ni hai bhai"
if not fast:
return head.val
whi... | [
"ashishbisht723@gmail.com"
] | ashishbisht723@gmail.com |
2e786f5af1ea5a3664be4e996d7a6b8e922d57c1 | 6c6f439b6777ba08f50de3a84cb236b9506a3216 | /Chapitre_5/tkinter_3.py | 74465851f2c1d2fff4858135861b6ba802f5f1dc | [] | no_license | badiskasmi/py-rasp-2e-edition | 2b87fcd4c3df4ae7ddbb3012c961d7c4fec1450c | c83fe620b6c61e7697af1b4e67a0fc71c5b99a9d | refs/heads/master | 2023-04-09T09:05:22.054570 | 2018-12-27T19:40:46 | 2018-12-27T19:40:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | #!/usr/bin/env python3
from tkinter import Tk
LARGEUR = 400
HAUTEUR = 300
def main():
fenetre = Tk()
largeur_div = (fenetre.winfo_screenwidth() - LARGEUR) // 2
hauteur_div = (fenetre.winfo_screenheight() - HAUTEUR) // 2
dimensions = '{f_x}x{f_y}+{p_x}+{p_y}'.format(
f_x=LARGEUR,
f_y=... | [
"monsieurp@gentoo.org"
] | monsieurp@gentoo.org |
16a912b2fce7051d68803fddfac2d2466e9eec03 | 2a4cdd62600c95b9a52e198801a042ad77163077 | /forward/common/validate/validate_code.py | 7e52b250ca0530fd242be2afc6be7bcbdec1406b | [] | no_license | thm-tech/forward | 2c0bb004d14ea6ab807e526a1fa88c61e80c80e4 | 01ca49387754d38717f8cc07fd27127edb035b87 | refs/heads/master | 2021-01-10T02:34:35.098761 | 2015-12-08T03:29:47 | 2015-12-08T03:29:47 | 46,783,502 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,259 | py | # -*- encoding: utf-8 -*-
import random
import tempfile
import os
pp = os.path.dirname(os.path.realpath(__file__))
from PIL import Image, ImageDraw, ImageFont, ImageFilter
from forward.common.tools import pathin
_letter_cases = "abcdefghjkmnpqrstuvwxy" # 小写字母,去除可能干扰的i,l,o,z
_upper_cases = _letter_cases.upper() ... | [
"mohanson@163.com"
] | mohanson@163.com |
15cfa42a3931153de4deb6f5d0e9b2313703dec8 | b2c24abff86b28ca8a495b3a3c3227f070737aa2 | /parlai/agents/memnn/memnn.py | 86dac774503cb843f3ae14ef9e0a596e9deace4b | [
"MIT"
] | permissive | hengyicai/AdaND | d5dda1b2fcd2abd17be6603de632f0515382b37b | 5e3fefb1cf40c42215a37246efc64958ae6db005 | refs/heads/master | 2023-09-01T07:38:49.076947 | 2020-10-19T04:58:00 | 2020-10-19T04:58:00 | 204,633,631 | 10 | 2 | MIT | 2023-08-11T19:52:23 | 2019-08-27T06:20:39 | Python | UTF-8 | Python | false | false | 8,249 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from functools import lru_cache
import torch
from parlai.core.torch_ranker_agent import TorchRankerAgent
from .module... | [
"caihengyi@ict.ac.cn"
] | caihengyi@ict.ac.cn |
90e1cd44b44697565e0e3671ecef51463c51e0e1 | 93d43b915b3853eac80975b6692ffed3b146c89f | /network/udp_client.py | d8c1ea926d68997d6e835ad861a700f808eecdb2 | [] | no_license | Killsan/python | 32ca8b4f1fa4a8a5d70ce6949d764938c37ff14d | 0c79a482ade3396309cbd055e996438b82dcd3b1 | refs/heads/master | 2023-06-14T21:44:29.933776 | 2021-07-13T18:28:39 | 2021-07-13T18:28:39 | 220,499,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.sendto(b'connected', ('127.0.0.1', 8888))
#(<ip>, <port>); (unix.sock)
| [
"reversflash47@gmail.com"
] | reversflash47@gmail.com |
e3f392121a9ec6d09d8a3f65d4276958197c78ce | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-2/6717daf4a6e92aa49da486c4ffc06201b9fa4611-<test_realm_filter_events>-bug.py | 9fab8c660152c9383eb365c715984d751f7b4342 | [] | 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 | 570 | py |
def test_realm_filter_events(self) -> None:
schema_checker = self.check_events_dict([('type', equals('realm_filters')), ('realm_filters', check_list(None))])
events = self.do_test((lambda : do_add_realm_filter(self.user_profile.realm, '#(?P<id>[123])', 'https://realm.com/my_realm_filter/%(id)s')))
error =... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
06ae6fcfbeaf3ef19671198d81850f9474d6b46b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_248/ch76_2020_04_12_20_54_45_523952.py | 3764fea605aa8ea89077073aeb44632ac15ffc01 | [] | 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 | 200 | py | def aniversariantes_de_setembro(dicionario):
dicionario={}
for k,v in dicionario.items():
if v[3]=="0" and v[4]=="9":
dicionario[k]=v
i+=1
return dicionario | [
"you@example.com"
] | you@example.com |
66c9f34aaa92f1e8904248550a68645732122510 | 52194c0bcd56d35a883139349a5ad8637633d725 | /manage.py | 3bb0472906c174a519ffa3ecee58c951b2ffc17b | [] | no_license | cgpalmer/ms4 | d9a9207a03870672a3f72b3e990bceb59a1fa36b | 5a116270c44e8edcbd41128a2416687cd398e529 | refs/heads/master | 2023-02-23T05:45:11.354116 | 2021-01-30T11:56:38 | 2021-01-30T11:56:38 | 299,755,148 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'hiddenGems.settings')
try:
from django.core.management import execute_from_command_line
except I... | [
"cgpalmer91@gmail.com"
] | cgpalmer91@gmail.com |
f0137ab6e63d6c82e9a78ca38a0288de3400eee5 | 3b7c8c718588f1ad34dbd6fb38f6566f3e1ad857 | /src/binwalk/modules/extractor.py | c86fc1a83dc50dd92a77304a0f01b0901147753e | [
"MIT"
] | permissive | westnorth/binwalk | c74e42a618cb6c38b01f20ea905a8171fc03d8df | 0726deb5240a5cc2b3a1d509e6d80b2505948670 | refs/heads/master | 2020-12-25T22:28:53.077083 | 2014-02-14T04:19:03 | 2014-02-14T04:19:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,532 | py | import os
import re
import sys
import shlex
import tempfile
import subprocess
from binwalk.core.compat import *
from binwalk.core.module import Module, Option, Kwarg
from binwalk.core.common import file_size, unique_file_name, BlockFile
class Extractor(Module):
'''
Extractor class, responsible for extracting f... | [
"heffnercj@gmail.com"
] | heffnercj@gmail.com |
4e436d01a7d9d68d3c34894ae9851687f1de4c6f | 700577285824a21df647aba584d51420db59c598 | /OpenColibri/allauth/account/app_settings.py | c7f23b95cd0a2fdd70cdb71e42de82fc305f924b | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | epu-ntua/opencolibri | 2c05acc43ef1b1c86608f6e729a4f83773b01b73 | 78e2411f78a0213b3961145cfe67cd52398cea70 | refs/heads/master | 2016-09-11T02:39:43.798777 | 2014-04-06T11:30:39 | 2014-04-06T11:30:39 | 15,764,540 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,397 | py | class AppSettings(object):
class AuthenticationMethod:
USERNAME = 'username'
EMAIL = 'email'
USERNAME_EMAIL = 'username_email'
class EmailVerificationMethod:
# After signing up, keep the user account inactive until the email
# address is verified
MANDATORY = 'man... | [
"smouzakitis@epu.ntua.gr"
] | smouzakitis@epu.ntua.gr |
800456aaf4121ed1d3ea0a210dcc7ad4ab8f7e70 | 039f2c747a9524daa1e45501ada5fb19bd5dd28f | /ABC082/ABC082f.py | 98df19f25eced701e03563a9edc2b78d2d3d02ec | [
"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 | 76 | py | #ABC082f
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)
| [
"kurvan1112@gmail.com"
] | kurvan1112@gmail.com |
a7d91e08aac4a3cbc8c9e57421d6606d8a90881f | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/waterfall/_name.py | 608e0ac1ba031e5709a5828581f3e4766451e155 | [
"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 | 390 | py | import _plotly_utils.basevalidators
class NameValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(self, plotly_name="name", parent_name="waterfall", **kwargs):
super(NameValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
0377cbc8e9ba2d59e28b08a5a1ce0f5fa8ca1010 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /fact/next_government/own_group/call_case_up_problem/large_point/little_life.py | b2b99d6c9740a5162e0e6a7470cbb95876144f50 | [] | 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 | 240 | py |
#! /usr/bin/env python
def early_eye(str_arg):
last_company_or_right_company(str_arg)
print('work_world')
def last_company_or_right_company(str_arg):
print(str_arg)
if __name__ == '__main__':
early_eye('place_or_woman')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
35eabc71c967a9a494077668c6ff2c0e79563ec9 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/image_classification/SmartSketch_ID1046_for_PyTorch/backend/options/test_options.py | 5350b45b998b8b7c19b0614a90c9ad638c32ab3f | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later",
"LicenseRef-scancode-proprietary-license",
"CC-BY-NC-SA-4.0",
"CC-BY-NC-4.0",
"LicenseRef-scancode-other-copyleft",
"CC-BY-4.0",
"GPL-3... | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 2,673 | py | """
Copyright (C) 2019 NVIDIA Corporation. All rights reserved.
Licensed under the CC BY-NC-SA 4.0 license (https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode).
#
# BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Redistribution and use ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
9e25c636f9da9596f495b991c9608fe75b4649d3 | e3d447a81c5462d2d14201f2bc6b82cdcbbca51a | /chapter11/c11_2_city_functions.py | e4ca3478294a70d075558e1ec889a6b75ce34d05 | [] | no_license | barcern/python-crash-course | f6026f13f75ecddc7806711d65bc53cb88e24496 | 8b55775c9f0ed49444becb35b8d529620537fa54 | refs/heads/master | 2023-04-19T17:28:44.342022 | 2021-02-07T23:51:06 | 2021-02-07T23:51:06 | 257,201,280 | 2 | 3 | null | 2021-05-12T17:35:56 | 2020-04-20T07:14:28 | Python | UTF-8 | Python | false | false | 540 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Dec 31 21:29:14 2020
@author: barbora
Store functions for 11-1.
"""
def return_formatted_city_country(city, country, population=''):
"""Return a string formatted as City, Country - population xxx
when population data available. Otherwise return as City, Country.
... | [
"bcernakova01@gmail.com"
] | bcernakova01@gmail.com |
16edaa237e253f240e580d3cce27529f3a7004c9 | 5ae01ab82fcdedbdd70707b825313c40fb373fa3 | /scripts/charonInterpreter/parsers/MaterialBlock/TrapSRH/TrapSRHParserLib.py | 4c71b1d4270cf5a60be099655815429e5c8b8c61 | [] | no_license | worthenmanufacturing/tcad-charon | efc19f770252656ecf0850e7bc4e78fa4d62cf9e | 37f103306952a08d0e769767fe9391716246a83d | refs/heads/main | 2023-08-23T02:39:38.472864 | 2021-10-29T20:15:15 | 2021-10-29T20:15:15 | 488,068,897 | 0 | 0 | null | 2022-05-03T03:44:45 | 2022-05-03T03:44:45 | null | UTF-8 | Python | false | false | 3,700 | py |
try:
import coloramaDISABLED as colors
except ImportError:
class stubColors:
"subs for colors when colors doesn't exist on system"
def __init__(self):
self.Fore = colorClass()
self.Back = colorClass()
self.Style = styleClass()
class colorClass()... | [
"juan@tcad.com"
] | juan@tcad.com |
c5cdf70a00c21b9e801db37dcf16fc563db36592 | 6e4702fa7ff89c59871148e8007b769506fffe5b | /SmartClass/teacher/migrations/0010_cauhoi_dinh_kem.py | 012736603018a2929917ba9730924c58cc1dd535 | [] | no_license | vuvandang1995/hvan | 3a7bd8892bed30c6c6f4062bcf7a2c2804f34b0d | 003d9362739944cb3bcd8d1b11dd5b7481d7bd81 | refs/heads/master | 2020-05-02T02:31:51.121181 | 2019-03-27T02:32:29 | 2019-03-27T02:32:29 | 177,706,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # Generated by Django 2.1 on 2018-09-24 08:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('teacher', '0009_auto_20180919_1601'),
]
operations = [
migrations.AddField(
model_name='cauhoi',
name='dinh_kem',
... | [
"dangdiendao@gmail.com"
] | dangdiendao@gmail.com |
b58921544b80556ce223763f385799d172a1203f | 9d6218ca6c75a0e1ec1674fe410100d93d6852cb | /app/supervisor/venvs/supervisor/bin/pidproxy | 067992ca6ce7b31e95969cd766069a5c66c5e897 | [] | no_license | bopopescu/uceo-2015 | 164694268969dd884904f51b00bd3dc034695be8 | 5abcbfc4ff32bca6ca237d71cbb68fab4b9f9f91 | refs/heads/master | 2021-05-28T21:12:05.120484 | 2015-08-05T06:46:36 | 2015-08-05T06:46:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | #!/edx/app/supervisor/venvs/supervisor/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'supervisor==3.1.3','console_scripts','pidproxy'
__requires__ = 'supervisor==3.1.3'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('supervisor==3.1.3', 'console_script... | [
"root@uceociputra.com"
] | root@uceociputra.com | |
f65d0c089bb934d96b17d265180c2bb68a9ef792 | 251f5c83584666c58fe6d7e28175cf33129eb3e2 | /net/model/decoder/__init__.py | eda63e60cb70e627e96422e4ec0d03f0c200810e | [
"MIT"
] | permissive | haoxizhong/law_pre | 42feefa028560e79f35a4ab214bc7046eb49b733 | 8ca173eba2985583c409c44771ecc0e0afee001e | refs/heads/master | 2018-11-13T05:30:43.591713 | 2018-05-31T14:47:16 | 2018-05-31T14:47:16 | 114,606,216 | 17 | 2 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | from .fc_decoder import FCDecoder
from .lstm_article_decoder import LSTMArticleDecoder
from .lstm_decoder import LSTMDecoder
| [
"zhonghaoxi@yeah.net"
] | zhonghaoxi@yeah.net |
1fcab6195234c0ee9d1fc17fd7ef16750b34d793 | ede0935c59217973665bc7bef2337f413e5a8c92 | /my_configs/_base_/models/cascade_mask_rcnn_r50_fpn.py | 163f7584fa7ed4e72444fa5786d0073890ffdf7b | [
"Apache-2.0"
] | permissive | Daniel-xsy/MMDet_VisDrone2021 | 6da6d23c324afb7be9056bb6628b25f5d688af2a | 668d10b61a4b99dda0163b67b093cad2e699ee3b | refs/heads/master | 2023-07-10T02:42:06.474341 | 2021-08-14T09:36:12 | 2021-08-14T09:36:12 | 376,227,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,410 | py | # model settings
model = dict(
type='CascadeRCNN',
pretrained='torchvision://resnet50',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=True),
norm_eval=True,
... | [
"1491387884@qq.com"
] | 1491387884@qq.com |
4b5f0ee21f4bc0a33955b2e07b728a7a7675a944 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/stdlib-big-2229.py | 5bced3c0a0d97de740437f48ef60853a7415c806 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,992 | py | # ChocoPy library functions
def int_to_str(x: int) -> str:
digits:[str] = None
result:str = ""
# Set-up digit mapping
digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
# Write sign if necessary
if x < 0:
result = "-"
x = -x
# Write digits using a recursive call
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
8b99bee6c2a0fa65a0e918224fb7fad1370fa83c | 9b80999a1bdd3595022c9abf8743a029fde3a207 | /26-Cluster Analysis in Python /K-Means Clustering /Uniform clustering patterns.py | f00c65cb93f72b60f9ab38a41377633cb2f30563 | [] | no_license | vaibhavkrishna-bhosle/DataCamp-Data_Scientist_with_python | 26fc3a89605f26ac3b77c15dbe45af965080115a | 47d9d2c8c93e1db53154a1642b6281c9149af769 | refs/heads/master | 2022-12-22T14:01:18.140426 | 2020-09-23T11:30:53 | 2020-09-23T11:30:53 | 256,755,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | '''Now that you are familiar with the impact of seeds, let us look at the bias in k-means clustering towards the formation of uniform clusters.
Let us use a mouse-like dataset for our next exercise. A mouse-like dataset is a group of points that resemble the head of a mouse: it has three clusters of points arranged in... | [
"vaibhavkrishna.bhosle@gmail.com"
] | vaibhavkrishna.bhosle@gmail.com |
286d6d8c03a680b5b4551b125a0cded889f6916f | f3e51466d00510f1dae58f1cb87dd53244ce4e70 | /LeetCodes/Trees/SubtreeofAnotherTree.py | c6b61d426d4a645e799a145aaf8d9876fe7dbaec | [] | no_license | chutianwen/LeetCodes | 40d18e7aa270f8235342f0485bfda2bd1ed960e1 | 11d6bf2ba7b50c07e048df37c4e05c8f46b92241 | refs/heads/master | 2022-08-27T10:28:16.594258 | 2022-07-24T21:23:56 | 2022-07-24T21:23:56 | 96,836,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,342 | py | """
iven two non-empty binary trees s and t, check whether tree t has exactly the same structure and node values with
a subtree of s. A subtree of s is a tree consists of a node in s and all of this node's descendants.
The tree s could also be considered as a subtree of itself.
Example 1:
Given tree s:
3
/ \... | [
"tianwen.chu@fedcentric.com"
] | tianwen.chu@fedcentric.com |
52d2e27019d411f0f69b718798e8d4dee6332a77 | 1099d3cc150238b6e764fea8855a9579278bdd1f | /nodes/stop | d842c24c6150242b9cc08d935fb4782724e41b3c | [] | no_license | chili-epfl/ranger_ros | 2b12f3ce3cf2ce70fcfe6a2ebbd659a91ce35e35 | d6cafa055c2c8d706601bdc7793ab1f7a2d08df7 | refs/heads/master | 2016-09-09T21:50:12.181708 | 2015-06-22T09:22:00 | 2015-06-30T07:37:52 | 9,346,098 | 0 | 1 | null | 2015-06-22T09:03:21 | 2013-04-10T12:55:40 | C++ | UTF-8 | Python | false | false | 87 | #!/usr/bin/env python
import ranger
with ranger.Ranger() as robot:
robot.stop()
| [
"severin.lemaignan@epfl.ch"
] | severin.lemaignan@epfl.ch | |
283836fff8c95f37f06a4335b71842bfc59315df | 385f0577d98fbf81dd6310b6d826e54f76ae39e7 | /tests/test_param_vasicek.py | 8728a4530f5f14be3f505d5f1c9d7407b5a82ce4 | [
"MIT"
] | permissive | afcarl/diffusions | 4cd5bf32332e64a2352b398eeb69167e98ea35f9 | 87a85b636cc5b78b9a89a8fd1c0c7e7426385952 | refs/heads/master | 2021-05-17T16:02:43.873818 | 2017-09-05T10:14:07 | 2017-09-05T10:14:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,046 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Test suite for Vasicek parameter class.
"""
from __future__ import print_function, division
import unittest as ut
import numpy as np
import numpy.testing as npt
from diffusions import VasicekParam
class SDEParameterTestCase(ut.TestCase):
"""Test parameter class... | [
"khrapovs@gmail.com"
] | khrapovs@gmail.com |
937354f7eaee10d293189248aea1dcf827bd1511 | 3c1639bccf3fc0abc9c82c00ab92ac3f25cf105e | /Python3网络爬虫/section3-基本库使用/06-正则/01-match/04-贪婪与非贪婪.py | 52ca63fa3326f58611c3db3505765dcc9288a9be | [
"Apache-2.0"
] | permissive | LiuJunb/PythonStudy | 783318a64496c2db41442ad66e0cc9253b392734 | 3386b9e3ccb398bfcfcd1a3402182811f9bb37ca | refs/heads/master | 2022-12-11T05:22:53.725166 | 2018-11-15T01:34:37 | 2018-11-15T01:34:37 | 143,956,065 | 1 | 0 | Apache-2.0 | 2022-11-22T01:58:23 | 2018-08-08T03:26:26 | JavaScript | UTF-8 | Python | false | false | 978 | py | import re
# .*? (点星) 可以匹配任意字符(除换行符,例如节点会有换行)
# .? (点) 可以匹配任意字符(除换行符)
# * (星) 又代表匹配前面的字符无限次
content = 'Hello 1234567 World_This is a Regex Demo'
# 1.贪婪匹配(.*)尽量匹配最多的字符: ^He .* (\d+) .* Demo$
result = re.match('^He.*(\d+).*Demo$', content)
print(result) # <re.Match object; span=(0, 40), 01-match='Hello 1234567 ... | [
"liujun@520it.com"
] | liujun@520it.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.