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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fccd134ed2431e7cce33642e9fc7705ec4904734 | 9092e62932da86fb2af69e0529e4cbb082cfea22 | /wifiName32Pwd63.py | 9c30ac8432ecedb77930c68c8c6746ec52684028 | [] | no_license | FengZiQ/flushbonding | d09915ce4285530e3d082c0aaea029790ffbdd9d | 5ce631c9d09790846a31332eb8e76460e5f3f08e | refs/heads/master | 2020-04-01T22:29:13.256997 | 2019-06-05T02:25:14 | 2019-06-05T02:25:14 | 153,711,075 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,614 | py | # coding=utf-8
import time
from to_log import to_log
from QRCodeOfNetworkConfig import wifi_mode
from dmSupport import get_device_attribute
from configFile import data_for_networkTest, open_picture
from honorRouter import Configuration
rc = Configuration()
to_log('SSID长度32/密码长度63网络配置测试\n')
if rc.wc(name='123a'*8, pw... | [
"feng1025352529@qq.com"
] | feng1025352529@qq.com |
16840e785de669798985dd9040d55e3037b2f01a | 66a82c2eb7f9facff4cb0aa72f21a713dbb1cf61 | /devices/SIP04_FZJ/01_Test/test_sip04_01.py | 8f9e8dfee1412bdb8d75db1ffa146684f3c7300e | [
"MIT"
] | permissive | geophysics-ubonn/reda_testing | 894eefa8f5cddf288c639c00404c6bd12339dad7 | c32f3faa685b77974b88ba1126a02afabfe5fd2d | refs/heads/master | 2023-06-04T00:16:43.503287 | 2020-12-21T13:23:48 | 2020-12-21T13:23:48 | 110,421,246 | 0 | 1 | NOASSERTION | 2019-06-25T09:50:57 | 2017-11-12T09:50:26 | Python | UTF-8 | Python | false | false | 314 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import reda
basepath = os.path.dirname(__file__) + os.sep
def test_load_mat():
sip = reda.SIP()
sip.import_sip04(basepath + 'Data/sip_dataA.mat')
def test_load_csv():
sip2 = reda.SIP()
sip2.import_sip04(basepath + 'Data/sip_dataA.csv')
| [
"mweigand@geo.uni-bonn.de"
] | mweigand@geo.uni-bonn.de |
d94ad0d4184ebc4fb4df9f9e567f480fa0b69e93 | 5a7375bdcd7fba344d9d8e424c42e4ff6e58e5cd | /00_algo_prob/2529_ineuality.py | f007230e9a61a1f36461d2b4bf68aa212163e80e | [] | no_license | jhee514/Algorithms | 1d9d9f8bf11b957393ad1a169fa1a61f86d77da5 | 0ebed8f99a63eae2f9122033ab4e13b2b499fb52 | refs/heads/master | 2021-07-21T01:33:22.838431 | 2020-10-28T15:21:19 | 2020-10-28T15:21:19 | 226,996,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | import sys
sys.stdin = open("2529_input.txt", "r")
"""
10개의 숫자 중에서 k 개를 순열로 가져와
부등호를 사이사이 넣어봐
중간에 가지치기 해주면서 쭉 돌아야
"""
import itertools
def sol(k, data):
nums = list(range(10))
min_num, max_num = 10 ** (k + 1), 0
perms = itertools.permutations(nums, k + 1)
for p in perms:
if p == (1, 0, 2, ... | [
"514kim@gmail.com"
] | 514kim@gmail.com |
c8ae48a6f79a42bf74407f3d6801a041d64be011 | 6a63e40b1d30b6a810c89d910ac3f8f5954002ee | /src/pretalx/submission/migrations/0039_submission_created.py | c73cbfb2440b187adbb54d325d4ffb85e8724bf3 | [
"Apache-2.0"
] | permissive | orlando/pretalx | 47b7ab3e3258d667183066b84227b785199711b2 | 15f90dc2545f210eaf870ffbdfe0a27c70bfa0ec | refs/heads/master | 2020-09-10T20:26:49.867462 | 2019-11-15T01:19:07 | 2019-11-15T01:19:07 | 221,826,314 | 2 | 0 | NOASSERTION | 2019-11-15T02:21:05 | 2019-11-15T02:21:04 | null | UTF-8 | Python | false | false | 411 | py | # Generated by Django 2.2.1 on 2019-05-01 20:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('submission', '0038_auto_20190429_0750'),
]
operations = [
migrations.AddField(
model_name='submission',
name='create... | [
"r@rixx.de"
] | r@rixx.de |
f2613ac43e286ee6c63cc7b579b00d0c613e1729 | d532b85841b459c61d88d380e88dd08d29836d43 | /solutions/1488_avoid_flood_in_the_city.py | 1789aba0bebf606b5ccb155577af2e6cf7b5dc09 | [
"MIT"
] | permissive | YiqunPeng/leetcode_pro | ad942468df5506de9dc48a4019933f658e2a3121 | 4a508a982b125a3a90ea893ae70863df7c99cc70 | refs/heads/master | 2022-05-15T09:32:02.699180 | 2022-05-14T16:32:17 | 2022-05-14T16:32:17 | 182,453,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | class Solution:
def avoidFlood(self, rains: List[int]) -> List[int]:
"""Hash table.
"""
n = len(rains)
res = [1] * n
f = {}
s = []
for i, r in enumerate(rains):
if r > 0:
if r in f:
idx = bisect.bisect_left(s, f[... | [
"ypeng1@andrew.cmu.edu"
] | ypeng1@andrew.cmu.edu |
ffbdf922a169191795e21b24f226334344e6b2b8 | 8a08d39142c7b5c7dc9300717f0db6dad295ec92 | /antelope_core/providers/parse_math.py | 8fb0f24a50ac68f93528c7d0a658cd62da7d7e04 | [
"BSD-3-Clause"
] | permissive | msm-sardar/core | 3eac85248914ada808882b9dedefd889756be504 | bc88a1ed3e4c1defcbc83fa86356451ac34c178c | refs/heads/master | 2023-08-24T03:56:31.892812 | 2021-10-14T01:12:02 | 2021-10-14T01:12:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | import ast
def parse_math(expression):
"""
A function I got off stackoverflow that enables python to parse user input as a mathematical expression.
probably a huge security risk. but it enables the user to enter missing characterization values during runtime.
:param expression:
:return:
"""
... | [
"brandon.kuczenski@301south.net"
] | brandon.kuczenski@301south.net |
19231243102cae313e9ffe1fb4aa503ac094635f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_permutation.py | 995d0cfcfbff595c0f8b2d0a59d0d980653557db | [
"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 | 392 | py |
#calss header
class _PERMUTATION():
def __init__(self,):
self.name = "PERMUTATION"
self.definitions = [u'any of the various ways in which a set of things can be ordered: ', u'one of several different forms: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie =... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
a2676e558ee7b10567e7d3604eccdaaab446eb0f | c1b7655fbbf5e647c9de01d55bf31f044e26b7bf | /HE_cell_classification/predict/predict_Local.py | 58a36cc8ee6751d13abcac3b49b2f6dc8a825d63 | [] | no_license | sara-kassani/UNMaSk | ef170ddcfd7b8b5599e7d412d547084848308eb1 | c03f56a6e926fe14b1923470d22a112892116e38 | refs/heads/master | 2023-07-17T12:38:46.086746 | 2021-04-29T19:59:48 | 2021-04-29T19:59:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,115 | py | import os
from parse_arguments import get_parsed_arguments
from classifier.sccnn_classifier import SccnnClassifier
from classifier.subpackages import NetworkOptions
#########comment the below two lines if its running on a cpu environment###############
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.envir... | [
"noreply@github.com"
] | sara-kassani.noreply@github.com |
84d3852ea9e37451d2df07cf5855edabe663ba12 | 754f71f70dfd6a22944d8d872c6d2f1d6983ac14 | /tests/serial_frame_builder/test_miso_frame_builder.py | a78831ae697787e71eac1215a585a220bf59fbf5 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | Sensirion/python-shdlc-driver | 052685da8db5629fa5929da65000210db82358e7 | 31e9683c27004ee05edf89996d656bc50f5bdb3a | refs/heads/master | 2021-06-10T10:35:47.299481 | 2021-03-19T08:47:12 | 2021-03-19T08:47:12 | 144,961,065 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,667 | py | # -*- coding: utf-8 -*-
# (c) Copyright 2019 Sensirion AG, Switzerland
from __future__ import absolute_import, division, print_function
from sensirion_shdlc_driver.serial_frame_builder import \
ShdlcSerialMisoFrameBuilder
from sensirion_shdlc_driver.errors import ShdlcResponseError
import pytest
def te... | [
"urban.bruhin@sensirion.com"
] | urban.bruhin@sensirion.com |
123b1cbb1b81c70709c950c532951eaeed017c86 | 1523e2fff267279bbf99a44a71b7482081dd1141 | /The_Watch/The_Watch/wsgi.py | 2cbac8cc2093ca421a722294adc2ee44bfc89a4c | [
"MIT"
] | permissive | Kipngetich33/The-Watch | 4c77f5e365553ab5af9b7a9c4a5bea71139d47c0 | 96e39937c0015eae749836f6215d60ae5cb86e51 | refs/heads/master | 2021-05-02T07:20:46.854250 | 2018-02-12T08:37:36 | 2018-02-12T08:37:36 | 120,872,467 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | """
WSGI config for The_Watch 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_SE... | [
"khalifngeno@gmail.com"
] | khalifngeno@gmail.com |
6fc833e1360cd1461a185e6418da611f9ec80004 | f10db3b11131ddf2bf5026e42cdd72c275e49693 | /ToolsX/leetcode/0069/0069_4.py | fc86c98645998a5d503330fc7b69982f3ce3ac41 | [] | no_license | JunLei-MI/PythonX | 36def40e33c9ebb64ce28af2b5da010393b08356 | efea806d49f07d78e3db0390696778d4a7fc6c28 | refs/heads/master | 2023-04-07T10:58:45.647430 | 2021-01-25T16:54:37 | 2021-04-15T13:41:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | class Solution:
def mySqrt(self, x: int) -> int:
"""
从 0 到 n 肯定不行,可以优化为到 n/2
1
只计算一次,依然超时,只好用二分的了
2
一定要注意验算 0 和 1
注意 while 和条件的变化
如果是 low <= high,那么后面 low=mid 要 +1,high=mid 要 -1
最后退出循环时,high 比 low 小 1,返回 high
3
二分
4
... | [
"pingfangx@pingfangx.com"
] | pingfangx@pingfangx.com |
3fbef31ab44f7f7928253701aacca5637318f44b | e267d1dbb7eb7cad239b18cffe6ddc53ae45aa9a | /tests/test_validators.py | f4ff4da249c4db81979e8286293a8a41471d1559 | [] | no_license | papercapp/DisposableEmailChecker | 038fa91f60f2798d687ca846d5836200af30f624 | 60f055f9102a4f9e967d740e4446e5c7ac76c351 | refs/heads/master | 2020-05-29T08:52:05.319215 | 2015-11-04T02:00:38 | 2015-11-04T02:00:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import random
from django.test import TestCase
from django.core.exceptions import ValidationError
from disposable_email_checker import validators
from disposable_email_checker.emails import email_domain_loader
class TestDisposableEmailValidator(TestCase):
def setUp(s... | [
"me@aaronbassett.com"
] | me@aaronbassett.com |
02aea388baeecdf450749332637825ef25ee1e47 | dce2e3b11804fdb141feaa48299fa8cd751f0e5d | /1154.一年中的第几天.py | a811e8c92ef10d247014b84f42c7884b8caf4f93 | [] | permissive | Cosmos-Break/leetcode | bf056efb6f3eb6448df7fb3fc4869992a3e7eb48 | 9f5f3d24e35b0a482ed40594ea665e9068324dcc | refs/heads/main | 2023-06-26T04:29:25.135826 | 2021-07-19T12:29:29 | 2021-07-19T12:29:29 | 293,397,157 | 0 | 0 | MIT | 2020-09-07T01:55:39 | 2020-09-07T01:55:38 | null | UTF-8 | Python | false | false | 427 | py | #
# @lc app=leetcode.cn id=1154 lang=python3
#
# [1154] 一年中的第几天
#
# @lc code=start
class Solution:
def dayOfYear(self, data: str) -> int:
year = int(data[0:4])
month = int(data[5:7])
day = int(data[8:])
dic = [31,28,31,30,31,30,31,31,30,31,30,31]
if year%400==0 or year%4==0 ... | [
"438854233@qq.com"
] | 438854233@qq.com |
15c60558a5d48ed336761321bdefd509bf9ccd07 | 3185dc605853fdaf942fd06e206225793b198638 | /剑指offer/No20_表示数值的字符串.py | a60b824774b72020c1d40e4aef19394be63143f8 | [] | no_license | fank-cd/books_exercise_code | cb81ee8ec8167a5f5e3bfc58d3c1d6d931ca9286 | 1e8109adb82f741df1203658d4bf272f09a651b8 | refs/heads/master | 2021-07-11T01:15:11.980179 | 2020-06-29T04:01:53 | 2020-06-29T04:01:53 | 156,671,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py | # 面试题20:表示数值的字符串
# 题目:请实现一个函数用来判断字符串是否表示数值(包括整数和小数)。
# 例如,字符串"+100"、"5e2"、"-123"、"3.1416"、及"-1E-16"都表示
# 数值,但"12E"、"1a3.14"、"1.2.3"、"+-5"及"12e+5.4"都不是。
# # 读不懂题意,留下代码,暂时空着
def is_numeric(string):
if not isinstance(string, str):
return False
index = 0
result, index = scan_integer(string, index)
... | [
"2464512446@qq.com"
] | 2464512446@qq.com |
35c16b5dd609e24fbc243144ddcb65eef3a54569 | 71aea3429ecb5b4ccf415078809654b6e97c2cb6 | /server/config.py | f91344f2181cace25b677f057fdaf6951c423276 | [
"MIT"
] | permissive | Nukesor/spacesurvival | dcbb8f0441c23367cd4c32beb260e336d8de06a7 | 1b02f2027f172ebbbf4f944641b7f0b5d0b5bb92 | refs/heads/master | 2021-01-19T09:27:03.809556 | 2017-12-04T13:03:17 | 2017-12-04T13:03:17 | 82,110,806 | 2 | 0 | null | 2017-11-20T13:16:30 | 2017-02-15T21:54:37 | Rust | UTF-8 | Python | false | false | 1,274 | py | """Various configs for different environments."""
from datetime import timedelta
class BaseConfig:
"""Base config."""
DEBUG = False
SECRET_KEY = 'lolololol'
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_DATABASE_URI = 'postgres://localhost/browsergame'
AUTH_TOKEN_TIMEOUT = timedelta(days=... | [
"arne@twobeer.de"
] | arne@twobeer.de |
94f7bb0c107ba916893a8ac8be11f4eaab3b3588 | f1738cd603e0b2e31143f4ebf7eba403402aecd6 | /ucs/base/univention-updater/conffiles/15_ucs-online-version.py | 69852d3acc488fb8ccf3b4f613225d51383ef948 | [] | no_license | m-narayan/smart | 92f42bf90d7d2b24f61915fac8abab70dd8282bc | 1a6765deafd8679079b64dcc35f91933d37cf2dd | refs/heads/master | 2016-08-05T17:29:30.847382 | 2013-01-04T04:50:26 | 2013-01-04T04:50:26 | 7,079,786 | 8 | 6 | null | 2015-04-29T08:54:12 | 2012-12-09T14:56:27 | Python | UTF-8 | Python | false | false | 1,777 | py | # Copyright (C) 2011-2012 Univention GmbH
#
# http://www.univention.de/
#
# All rights reserved.
#
# The source code of this program is made available
# under the terms of the GNU Affero General Public License version 3
# (GNU AGPL V3) as published by the Free Software Foundation.
#
# Binary versions of this program pr... | [
"kartik@debian.org"
] | kartik@debian.org |
ac1f4677532bd69943d43bfac731b473a9f32705 | 41e2cf24f0ff3a11a98bb00e03c598dde35452c4 | /project/migrations/0009_googleapisetup.py | f2a0baa279dd151205113e1a9a0a64bb2a0691f5 | [] | no_license | anushamokashi/mob | f5dbedc729073092f94323feca6d95dee24087a2 | 37bc0eb033bc23d37e9d4fb9bb8b2b456553ff7f | refs/heads/master | 2020-04-24T08:36:56.008212 | 2019-02-21T09:09:04 | 2019-02-21T09:09:04 | 171,810,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-08-31 10:27
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django_extensions.db.fields
class Migration(migrations.Migration):
dependencies = [
('project', '... | [
"anusha.mokashi@gmail.com"
] | anusha.mokashi@gmail.com |
ad02f8785f62b23517182467691e772ea5ff368c | 981fbe20320ce16e5746c3d492545fbd30bcef02 | /screen_cap/http_screen_cap.py | 1e3c46dd41dba62f9d329daa7ebf9789613794af | [] | no_license | jinjin123/zabbix-api | f73e32c3433356c19df623066d457f5d7e0709e6 | 471116d0dcd5074b1047d4065c87e7f32c9aa9ff | refs/heads/master | 2021-01-25T06:45:16.371094 | 2017-07-26T12:23:39 | 2017-07-26T12:23:39 | 93,605,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,641 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# task argument to get the mapping grapth
#hostid and graphid its need , 每个host的id都不一样 ,从hostid 往下级拿graphid hostid=xx&graphid=xx&
import json, traceback
import datetime
import cookielib, urllib2,urllib
import time
class ZabbixGraph():
def __init__(self,url="htt... | [
"1293813551@qq.com"
] | 1293813551@qq.com |
bf42f669890aa2afb5de8d642415984eadf63771 | 60a6ba6e5f3faca2b1e17c1e90917efc3cfc561a | /aoc2018/day7/day7_part2.py | 675c2a0599f50e1f486089a078f71bc1a088a2c2 | [
"MIT"
] | permissive | GetPastTheMonkey/advent-of-code | f462f5e2b72d913e39484446ce92a043d455091c | 7a5ee30dbafaf8ef6f9bf9936e484efd024aa308 | refs/heads/master | 2023-01-14T09:45:00.553575 | 2022-12-25T10:59:19 | 2022-12-25T13:00:44 | 160,684,715 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,782 | py | from os.path import join, dirname, realpath
from re import match
# Specify number of workers
worker_count = 5
workers = [{
"task": None,
"remaining": 0
} for _ in range(worker_count)]
# Load file
tasks = dict()
for i in range(ord("A"), ord("Z")+1):
tasks[chr(i)] = dict()
tasks[chr(i)]["requirements"] ... | [
"sven.gruebel@gmx.ch"
] | sven.gruebel@gmx.ch |
f5d4cf6f485d762c5643ead19f6f44edcc5d2d96 | 0485a490f466bd1d02eaae96d277888781208c0e | /tests/single_instruction_translation_validation/mcsema/register-variants/movb_r8_rh/Output/test-z3.py | e85a3ad441dea371dd1ab92ebdf22d518b6ae522 | [
"LicenseRef-scancode-unknown-license-reference",
"NCSA"
] | permissive | Mthandazo42/validating-binary-decompilation | c0e2d54cd79e609bfa35802975bddfa52e646fad | c0fcd6f099e38195dcbbac9e8c13a825865c5cb5 | refs/heads/master | 2022-11-11T13:18:13.033044 | 2020-06-25T05:49:01 | 2020-06-25T05:49:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,269 | py | #############################################
######## Auto Generated Proof Scripts #######
#############################################
import z3
import sys
status=True
test_name="UnK"
if(len(sys.argv) > 1):
test_name = sys.argv[1]
def solve(msg, lvar, xvar, s):
global status
s.set("timeout", 60000)
res =... | [
"sdasgup3@illinois.edu"
] | sdasgup3@illinois.edu |
0ccb62474a0317f86dfe9138ec3b8c5878be2948 | fb00b570251ba52df467e4cc030a30e778f8a970 | /Atividade 02 - semana 04/questão4_semana4_atividade02_runcodes.py | a3048ea0063d9e885ce77e9effdf8b688eb5e1ef | [] | no_license | SirLeonardoFerreira/Atividades-ifpi | 7379f9df4640fd1ee3623d80e4341f495e855895 | e366ee3f801dc9a1876c7399a2eefd37a03d0a55 | refs/heads/master | 2023-01-05T04:03:30.774277 | 2020-11-02T00:56:10 | 2020-11-02T00:56:10 | 287,967,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,426 | py | def signo(dia, mes):
if (21 <= dia <= 31 and mes == 3) or (1 <= dia <= 19 and mes == 4):
return 'Áries'
elif (20 <= dia <= 30 and mes == 4) or (1 <= dia <= 20 and mes == 5):
return 'Touro'
elif (21 <= dia <= 31 and mes == 5) or (1 <= dia <= 21 and mes == 6):
return 'Gêmeos'
elif ... | [
"lleoalves02@gmail.com"
] | lleoalves02@gmail.com |
6adaf26c83041f163d6f9002d77e24deeb133c0f | 30ea9abff7438755bfc8a483ae843152d3e49b9b | /力扣习题/118杨辉三角/pascalstriangle.py | 28285769718b8d071b795a07cd59ee1e588a6057 | [
"MIT"
] | permissive | houcy/AlgorithmLearning | 2dee945a4f9fefc981020c365664bcd65e5994c4 | 92e3dd6ae8d27cd8fb1a3a7035b2f7e0eb86a7dc | refs/heads/master | 2022-12-25T19:55:51.323740 | 2020-10-09T04:24:11 | 2020-10-09T04:24:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,049 | py | class Solution:
'''
非递归算法
'''
def generate(self, numRows: int) -> [[]]:
res = []
if numRows == 1:
res.append([1])
elif numRows > 1:
# res.append([1])
for k in range(0, numRows):
item = []
for i in range(0, k + 1)... | [
"ab2defg145@gmail.com"
] | ab2defg145@gmail.com |
825accd3872929d9287bb3b4c66b0585d16507fe | 350db570521d3fc43f07df645addb9d6e648c17e | /1299_Replace_Elements_with_Greatest_Element_on_Right_Side/solution.py | c1d77900854ca9a59cc3073bb3f87162f7eb586d | [] | no_license | benjaminhuanghuang/ben-leetcode | 2efcc9185459a1dd881c6e2ded96c42c5715560a | a2cd0dc5e098080df87c4fb57d16877d21ca47a3 | refs/heads/master | 2022-12-10T02:30:06.744566 | 2022-11-27T04:06:52 | 2022-11-27T04:06:52 | 236,252,145 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | '''
1299. Replace Elements with Greatest Element on Right Side
Level: Easy
https://leetcode.com/problems/replace-elements-with-greatest-element-on-right-side
'''
'''
Solution:
'''
class Solution:
def replaceElements(self, arr: List[int]) -> List[int]:
| [
"bhuang@rms.com"
] | bhuang@rms.com |
ca5d2f735aaee931762726e44f8ffc69d56dab76 | ddd35c693194aefb9c009fe6b88c52de7fa7c444 | /Live 10.1.18/ATOM/channel_strip.py | fbd60c5b943b861e81fa7cbe0be8417f4de3f5ce | [] | no_license | notelba/midi-remote-scripts | 819372d9c22573877c7912091bd8359fdd42585d | e3ec6846470eed7da8a4d4f78562ed49dc00727b | refs/heads/main | 2022-07-30T00:18:33.296376 | 2020-10-04T00:00:12 | 2020-10-04T00:00:12 | 301,003,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | # uncompyle6 version 3.7.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.8.5 (default, Aug 12 2020, 00:00:00)
# [GCC 10.2.1 20200723 (Red Hat 10.2.1-1)]
# Embedded file name: c:\Jenkins\live\output\Live\win_64_static\Release\python-bundle\MIDI Remote Scripts\ATOM\channel_strip.py
# Compiled at: 2020-05-05 ... | [
"notelba@example.com"
] | notelba@example.com |
13b235a66727792736ec940ae4bc3cc630a0c1fb | d44215864e30ad8039a1a294875e4222e3d23ebd | /build/geometry-hydro-devel/tf/catkin_generated/pkg.installspace.context.pc.py | dbd62ce2cd49cece7fca3f4fcc8794848494ff9a | [] | no_license | prathyusha-shine/abhiyan1.0 | 5c3eebfbbacb8b364180b9c2bd377c73cf29e693 | bf9be6462c132465ddbf8c20b1e9a4e1eabd596e | refs/heads/master | 2020-12-31T01:23:32.911145 | 2015-05-31T06:19:16 | 2015-05-31T06:19:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/sudha/catkin_ws/install/include".split(';') if "/home/sudha/catkin_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "geometry_msgs;message_filters;message_runtime;roscpp;sensor_msgs;std... | [
"sudha@sudha.(none)"
] | sudha@sudha.(none) |
6d1ebf41ab4811a8adc2865d675e4b20db67c5ee | bc547e7d9e4b2c1e49edc2daaa735c9afb87f5ae | /test/test_all_fault_handlers.py | 49068eb0020cb52f7c87f865ccede508daaabba8 | [
"MIT"
] | permissive | farisachugthai/dynamic_ipython | f7ed092ff23b785fc8c545390c581338a64b9bda | 7572a01f09998812830379644c45af4df67a3e45 | refs/heads/master | 2022-11-05T11:48:48.344585 | 2021-08-28T04:25:05 | 2021-08-28T04:25:05 | 178,786,145 | 7 | 0 | MIT | 2022-10-25T10:16:39 | 2019-04-01T04:35:37 | Python | UTF-8 | Python | false | false | 1,785 | py | #!/usr/bin/env python3
import os
import shutil
import tempfile
import unittest
from os.path import abspath, realpath, isfile, exists
import pytest
from IPython.testing.globalipapp import get_ipython
from default_profile.startup.all_fault_handlers import tempdir, in_tempdir, in_dir
def remove_tmpdir(dir):
try:... | [
"farischugthai@gmail.com"
] | farischugthai@gmail.com |
aba1fe1222e36f72353fd0c6c5a21047cc2cedee | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03212/s618244450.py | 185edf86b67bdc8518f2d9341edb2c2cdcd3ecfc | [] | 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 | 310 | py | N = input()
L=len(N)
from itertools import product
check_num=[3,5,7]
check=[]
for l in range(1,L+1):
for p in product(range(3),repeat=l):
c=''
for p_ in p:
c+=str(check_num[p_])
if len(set(c))==3 and int(c)<=int(N):
check.append(int(c))
print(len(check)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
71687720ff526965a20c77c9db597830ce3187b5 | 714058081fe435ed89b94cfa94587338e64672cb | /marqeta/response_models/digital_wallet_token_hash.py | 44fe321135afec4b24ddcf5ac0ed83bccebdd7f4 | [
"MIT"
] | permissive | andyw8/marqeta-python | bc194944c08e8c8327a8a20bac3dc615b2e2a95f | 23e0a66a5d7b20f3f992e44ae22b33a0eebdbce2 | refs/heads/master | 2020-05-20T14:25:39.398668 | 2019-04-01T23:53:55 | 2019-04-01T23:53:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | from datetime import datetime, date
import json
class DigitalWalletTokenHash(object):
def __init__(self, json_response):
self.json_response = json_response
def __str__(self):
return json.dumps(self.json_response, default=self.json_serial)
@staticmethod
def json_serial(o):
if... | [
"amaratkere@marqeta.com"
] | amaratkere@marqeta.com |
c167c5819bfa452fa8fdba057ff142fbdbde00fe | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /090_logging/examples/nuke/34-python_in_production-logging_to_a_qt_widget/logger.py | c0e05b78da6905f18952e733200c169b31a72bf1 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 2,774 | py | import logging
import sys
class Logger(object):
LOGGER_NAME = "Zurbrigg"
FORMAT_DEFAULT = "[%(name)s][%(levelname)s] %(message)s"
LEVEL_DEFAULT = logging.DEBUG
PROPAGATE_DEFAULT = True
_logger_obj = None
@classmethod
def logger_obj(cls):
if not cls._logger_obj:
if... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
907e51e3e9abb9e4b37491c1122a2c555afe1fcc | 42674d7355d852e6ec7071830bb87d781ab63ad3 | /bitmovin/resources/models/manifests/dash/audio_adaptation_set.py | 71e54986b06f54a233eb3ec0495f83cff6d90a84 | [
"Unlicense"
] | permissive | bitmovin/bitmovin-python | 57b1eb5deb7e38f3079e0ded546ec762753c3132 | d183718d640117dd75141da261901dc2f60433b0 | refs/heads/master | 2023-07-11T02:40:59.277881 | 2020-01-28T14:49:15 | 2020-01-28T14:49:15 | 72,857,798 | 46 | 27 | Unlicense | 2019-12-17T13:59:51 | 2016-11-04T15:01:56 | Python | UTF-8 | Python | false | false | 663 | py | from .abstract_adaptation_set import AbstractAdaptationSet
class AudioAdaptationSet(AbstractAdaptationSet):
def __init__(self, lang, id_=None, custom_data=None):
super().__init__(id_=id_, custom_data=custom_data)
self.lang = lang
@classmethod
def parse_from_json_object(cls, json_object):... | [
"dominic.miglar@netunix.at"
] | dominic.miglar@netunix.at |
3712937801b4655d2f06e615f42f6119be1d0be2 | d9e5f868392cc846a14577e2578332dd389766a5 | /ex13.py | 2a4652a2c2319f92b92f4fdfda224686a6f5811d | [] | no_license | quanlidavid/Learn_Python_the_Hard_Way | 8d8d9c9906d1e6b0de1a1dae78fbf4fd150c466c | bc591552efbeb2db588c831bf5280cbe21e11246 | refs/heads/master | 2021-05-16T11:18:13.171264 | 2017-09-27T05:56:20 | 2017-09-27T05:56:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | from sys import argv
script, frist, second, third = argv
print("The script is called:", script)
print("Your first variable is:", frist)
print("Your second variable is:", second)
print("Your third variable is:", third)
list1=['aa','bb']
a,b=list1
print(a,b)
| [
"quanlidavid@gmail.com"
] | quanlidavid@gmail.com |
e27cf93f24bc53f6f16fd551ed429b1aca98d4d2 | 480bee2fee71fa5f91fcece256918795adfb3eda | /detector/model.py | 7ebca4a47e922b335504cca41e45677a4865c1e2 | [] | no_license | favyen/skyquery | f71d0095681660e4bce5324ae866371fe51e9e3a | dce2639314aaa06cba0d56aab1f7794744c22090 | refs/heads/master | 2023-08-22T17:48:08.697538 | 2021-09-27T02:14:52 | 2021-09-27T02:14:52 | 412,963,924 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,272 | py | import numpy
import tensorflow as tf
import os
import os.path
import random
import math
import time
from PIL import Image
BATCH_SIZE = 4
KERNEL_SIZE = 3
class Model:
def _conv_layer(self, name, input_var, stride, in_channels, out_channels, options = {}):
activation = options.get('activation', 'relu')
dropout = o... | [
"fbastani@perennate.com"
] | fbastani@perennate.com |
fe6aa27d544a7bc06532e7cb5bfad0801c9b1eba | 8174d11add088a2413d5a7fdf8233059c3876f52 | /docs/examples/pool.py | 9265af58ef12bca9806eb7e1896aa4e7797bc85c | [
"MIT"
] | permissive | AraHaan/aioredis | 903eaaefb243c8bc8d70c9178baf721446c9cc7f | 19be499015a8cf32580e937cbfd711fd48489eca | refs/heads/master | 2023-03-17T03:16:46.281210 | 2022-02-22T14:33:33 | 2022-02-22T14:33:33 | 82,424,636 | 1 | 0 | MIT | 2023-03-07T15:57:29 | 2017-02-19T00:20:56 | Python | UTF-8 | Python | false | false | 648 | py | import asyncio
import aioredis
async def main():
redis = aioredis.from_url("redis://localhost", max_connections=10)
await redis.execute_command("set", "my-key", "value")
val = await redis.execute_command("get", "my-key")
print("raw value:", val)
async def main_pool():
pool = aioredis.Connection... | [
"sean_stewart@me.com"
] | sean_stewart@me.com |
4943e2a33bb554208d68eb6a684117fda0462433 | 44c372cd25a2496979fa29a1dc9131c54487d945 | /data/zh50w/zh50w_process.py | 0c551f731118ff55f6d1cef12a2e33090afd341d | [
"MIT"
] | permissive | zhongerqiandan/OpenDialog | 4ff4e65d0ade1efdd3029475634ae1cf38c7bdd3 | f478b2a912c8c742da5ced510ac40da59217ddb3 | refs/heads/master | 2023-01-22T09:07:54.385604 | 2020-12-04T02:00:17 | 2020-12-04T02:00:17 | 318,419,052 | 0 | 1 | MIT | 2020-12-04T05:58:37 | 2020-12-04T05:58:37 | null | UTF-8 | Python | false | false | 5,482 | py | import csv
import random
from tqdm import tqdm
import ipdb
import sys
import pickle
sys.path.append('..')
from utils import read_stop_words
from collections import Counter
from gensim.summarization import bm25
from elasticsearch import Elasticsearch
'''
TODO
1. adding the reesponses into elasticsearch for q-r match
''... | [
"18811371908@163.com"
] | 18811371908@163.com |
fe8763de336ee65092b7aaec84eea8912eb81c8c | df75b4d24416bb764db61931457f367872d8a66c | /django_states/main/migrations/0006_auto__add_field_statecapital_state__chg_field_statecapital_latitude__c.py | fa52b64db591b04f547b608edbe24fd3731be7db | [] | no_license | Bofahda/states | bb1f7caf8409e363ba2cb67974464854f14570d8 | 11016ac07040177e81e53b1ea88739b4de0ea936 | refs/heads/master | 2020-12-24T16:58:56.789855 | 2015-08-12T09:20:53 | 2015-08-12T09:20:53 | 40,591,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,729 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as 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 'StateCapital.state'
db.add_column(u'main_statecapital', '... | [
"user@Users-MacBook-Air.local"
] | user@Users-MacBook-Air.local |
3748a9e8a475776c784dacc5951e89171f92e72b | cb2a4180ffc0df4296737134230397069de8da21 | /accounts/signals.py | d6f2b8bc1882f084fe375b450158fdf3249fc531 | [
"MIT"
] | permissive | fagrimacs/fagrimacs_production | 8a9cef4e1d73360301fd66f4f0b70ea4868ef610 | ea1a8f92c41c416309cc1fdd8deb02f41a9c95a0 | refs/heads/master | 2022-12-23T22:08:27.768479 | 2020-09-24T10:10:35 | 2020-09-24T10:10:35 | 295,315,768 | 0 | 0 | MIT | 2020-09-24T10:10:36 | 2020-09-14T05:44:21 | JavaScript | UTF-8 | Python | false | false | 646 | py | from django.db.models.signals import pre_save
from django.dispatch import receiver
from .models import UserProfile
@receiver(pre_save, sender=UserProfile)
def delete_prev_profile_pic(sender, instance, **kwargs):
if instance.pk:
try:
prev_profile = UserProfile.objects.get(
pk=i... | [
"zendainnocent@gmail.com"
] | zendainnocent@gmail.com |
2265604085f0b363acfc4bbfcfd9c1294885eb23 | 626b14ce13986b6d5e03143e151004247659625a | /Day01-15/code/Day07/dict2.py | 1f89c849d510ca7c3702747ec28763684b8c1a4f | [] | no_license | Focavn/Python-100-Days | c7586ecf7ae3f1fd42f024558bb998be23ee9df8 | d8de6307aeff9fe31fd752bd7725b9cc3fbc084b | refs/heads/master | 2021-08-08T17:57:02.025178 | 2020-09-17T11:58:04 | 2020-09-17T11:58:04 | 220,427,144 | 0 | 0 | null | 2019-11-08T08:59:43 | 2019-11-08T08:59:41 | null | UTF-8 | Python | false | false | 575 | py | """
字典的常用操作
Version: 0.1
Author: 骆昊
Date: 2018-03-06
"""
def main():
stu = {'name': '骆昊', 'age': 38, 'gender': True}
print(stu)
print(stu.keys())
print(stu.values())
print(stu.items())
for elem in stu.items():
print(elem)
print(elem[0], elem[1])
if 'age' ... | [
"Focavn@users.github.com"
] | Focavn@users.github.com |
216d0e5c1001e89b218aef24c8cabfa7ee8027a8 | 5a310398592ddb75d27dc67c9b45198e31cb0d55 | /rfid-v1.py | d941851aa03ed4b0f8dbaef378689460a5bf2f2a | [] | no_license | ch-tseng/rfidDoor2 | 97871be9d431515425180b8e0893400a9b147831 | ed04b794d6c70dc223bb2f75e5d7367bea8353b4 | refs/heads/master | 2021-01-20T04:21:23.102422 | 2017-05-04T05:03:02 | 2017-05-04T05:03:02 | 89,674,676 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,950 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import socket
import urllib.request
import logging
import json
#import base64
import binascii
import sys
import time
# A UDP server
# Set up a UDP server
UDPSock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
# Listen on port 21567
# (to all IP addresses on this sys... | [
"ch.tseng@sunplusit.com"
] | ch.tseng@sunplusit.com |
64541b443d026560b213cf649fddf14d9174859e | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/894c37be40744bf289920a1bd2eb6ba4.py | 8a84f39bc980357d36a643c97a4bffbd58c75679 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 233 | py | def hey(phrase):
phrase = phrase.strip()
if len(phrase) == 0:
return 'Fine. Be that way!'
elif phrase.isupper():
return 'Whoa, chill out!'
elif phrase.endswith('?') :
return 'Sure.'
else:
return 'Whatever.'
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
62c90294b18a2c3fd268af603a53b8a22b86605c | 30754a148b79903d6e49399f1f270c79934ce389 | /fuzzinator/ui/tui/tui_listener.py | 9427825e28a0e23a7c0a9b1feb0cd1a50d817e82 | [
"BSD-3-Clause"
] | permissive | syedkhalid/fuzzinator | 720ffc552c595b50de46e4e4e51f3a01cdc9aa77 | f90b58605de563e77b85ed0d54d2beb29efc7d14 | refs/heads/master | 2021-04-09T17:31:06.625840 | 2018-03-12T14:37:18 | 2018-03-12T15:21:27 | 125,814,277 | 1 | 0 | BSD-3-Clause | 2018-03-19T06:53:29 | 2018-03-19T06:53:29 | null | UTF-8 | Python | false | false | 1,054 | py | # Copyright (c) 2016-2017 Renata Hodovan, Akos Kiss.
#
# Licensed under the BSD 3-Clause License
# <LICENSE.rst or https://opensource.org/licenses/BSD-3-Clause>.
# This file may not be copied, modified, or distributed except
# according to those terms.
import inspect
import os
from fuzzinator.listener import EventLis... | [
"reni@inf.u-szeged.hu"
] | reni@inf.u-szeged.hu |
06d1a676a79e4717ef3a8f9091ba8612972c4f88 | af829a7bb04f515b01dc78aaeb318991ead50d24 | /cart/forms.py | 05c7b1e1972cd2dd46c070cb532696742bea4a12 | [] | no_license | marcinpelszyk/Djnago-ecom | 75ffffb1d6fcd5457d9db8bf166610b15994203f | 8ae049087c952b52f287dd58f6a91a2e83113921 | refs/heads/main | 2023-06-08T20:14:22.007418 | 2021-06-14T20:56:26 | 2021-06-14T20:56:26 | 376,601,973 | 0 | 0 | null | 2021-06-14T20:56:27 | 2021-06-13T17:26:48 | HTML | UTF-8 | Python | false | false | 192 | py | from django import forms
from django import forms
from .models import OrderItem
class AddCartForm(forms.ModelForm):
class Meta:
model = OrderItem
fields = ['quantity']
| [
"marcin.pelszyk90@gmail.com"
] | marcin.pelszyk90@gmail.com |
d264e28ed2341e4155dedc2bdc2156861c78747e | e7ce273f404f82fd8672c97e50b386509c8f9870 | /Advanced/File_Handling/Directory_Traversal.py | 5aa0fbcbb285a6c22e60ca7405b8dd188b7a9b8b | [] | no_license | rzlatkov/Softuni | 3edca300f8ecdcfd86e332557712e17552bc91c3 | a494e35bff965b2b9dccc90e1381d5a1a23737a1 | refs/heads/main | 2023-07-02T12:49:59.737043 | 2021-08-13T20:47:07 | 2021-08-13T20:47:07 | 319,088,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,352 | py | # Directory Traversal
import os
USER = os.getlogin()
USED_PATH = '/home/rzlatkov/Softuni/Advanced/File_Handling/' # first level traverse only
ROOT_PATH = './' # traverse everything
REPORT_PATH_WINDOWS = f'C:\\Users\\{USER}\\Desktop\\report.txt' # for Win users
REPORT_PATH_LINUX = f'/home/{USER}/Desktop/report.t... | [
"nozzller@gmail.com"
] | nozzller@gmail.com |
704361a75a15b4ff7147ee4334cde26f9da2f4dd | 180beda50f31031bd3ba1668067bdb73fc1a7686 | /website/members/management/commands/generate_member_invoices.py | e73095aaebe1d829fb36e519f1585796e73b12cd | [
"MIT"
] | permissive | eamanu/asoc_members | 053a05563a20ff4cafd09020367f3d60f149392e | bf2e99e9c63c60a59bdfd10ca1812d78851cbde6 | refs/heads/master | 2020-11-26T14:20:46.857545 | 2020-01-06T12:57:30 | 2020-01-06T12:57:30 | 229,101,268 | 0 | 0 | MIT | 2019-12-19T17:01:15 | 2019-12-19T17:01:14 | null | UTF-8 | Python | false | false | 7,788 | py | import datetime
import os
from django.conf import settings
from django.core.mail import EmailMessage
from django.core.management.base import BaseCommand
from django.db.models import Max
from members import logic
from members.models import Quota, Person, Payment, Member, PaymentStrategy
from . import _afip, _gdrive
... | [
"facundo@taniquetil.com.ar"
] | facundo@taniquetil.com.ar |
3cf43fa8092e181dca265178db23f042cb43c200 | 8e304f1291480db18b9727efa61647b369531172 | /csvkit/convert/js.py | 8757c65a2bfbc280bab8fc78a153f0f7dcf57e4c | [
"MIT"
] | permissive | zviri/csvkit | 4439fff0e376d089f89420fabca245c25eb12dc5 | 39f5d3b6c7d6eaaf145e7e01fa247292763da16d | refs/heads/master | 2021-01-12T20:54:42.673449 | 2014-09-04T14:11:06 | 2014-09-04T14:11:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,879 | py | #!/usr/bin/env python
import json
import six
from csvkit import CSVKitWriter
def parse_object(obj, path=''):
"""
Recursively parse JSON objects and a dictionary of paths/keys and values.
Inspired by JSONPipe (https://github.com/dvxhouse/jsonpipe).
"""
if isinstance(obj, dict):
iterator ... | [
"staringmonkey@gmail.com"
] | staringmonkey@gmail.com |
6389cd069b984d4e989a8c114236bd598cef97a2 | a89dfda3732eb73863b3e2fb1ebb46f1cb40973a | /txweb/tests/test_util_basic_sanitize_render_output.py | 3ea1634b5077da8b2f699e5319c384c2d49cc0f1 | [
"MIT"
] | permissive | devdave/txWeb | 543ccb7be0671a5e83959bb7cfc8e7804f04a74a | e447fbefd16134cb2f83323c04c20c41638d7da3 | refs/heads/master | 2022-12-15T18:11:50.880675 | 2021-03-24T18:48:16 | 2021-03-24T18:48:16 | 2,116,693 | 1 | 0 | MIT | 2022-12-08T04:28:41 | 2011-07-28T03:55:43 | Python | UTF-8 | Python | false | false | 568 | py |
import pytest
from txweb.util.basic import sanitize_render_output
from twisted.web.server import NOT_DONE_YET
from twisted.internet.defer import Deferred
def test_full_suite_coverage():
assert sanitize_render_output("Foo") == b"Foo"
assert sanitize_render_output(b"Foo") == b"Foo"
with pytest.raises(Run... | [
"devdave@ominian.net"
] | devdave@ominian.net |
c7a84219541a207b77a6abe222131259e8320dcf | 18a79067223932c2f7aa6ff6b81d0b3f36169db2 | /atcoder/abc178/A.py | fbe81ed981719c0a616b1b4817d553d4699e8bb1 | [] | no_license | aadiupadhyay/CodeForces | 894b0e5faef73bfd55a28c2058fb0ca6f43c69f9 | 76dac4aa29a2ea50a89b3492387febf6515cf43e | refs/heads/master | 2023-04-12T17:58:52.733861 | 2021-05-07T20:08:00 | 2021-05-11T20:07:11 | 330,149,645 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | from sys import stdin,stdout
st=lambda:list(stdin.readline().strip())
li=lambda:list(map(int,stdin.readline().split()))
mp=lambda:map(int,stdin.readline().split())
inp=lambda:int(stdin.readline())
pr=lambda n: stdout.write(str(n)+"\n")
mod=1000000007
def solve():
n=inp()
print((n+1)%2)
for _ in range... | [
"upadhyay.aaditya2001@gmail.com"
] | upadhyay.aaditya2001@gmail.com |
3f912421cf12848e776f7f30387961e82a570848 | ef32b87973a8dc08ba46bf03c5601548675de649 | /pytglib/api/functions/get_web_app_url.py | fd431d0848611e166908d7d79bd1b425fdebbbee | [
"MIT"
] | permissive | iTeam-co/pytglib | 1a7580f0e0c9e317fbb0de1d3259c8c4cb90e721 | d3b52d7c74ee5d82f4c3e15e4aa8c9caa007b4b5 | refs/heads/master | 2022-07-26T09:17:08.622398 | 2022-07-14T11:24:22 | 2022-07-14T11:24:22 | 178,060,880 | 10 | 9 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py |
from ..utils import Object
class GetWebAppUrl(Object):
"""
Returns an HTTPS URL of a Web App to open after keyboardButtonTypeWebApp button is pressed
Attributes:
ID (:obj:`str`): ``GetWebAppUrl``
Args:
bot_user_id (:obj:`int`):
Identifier of the target bot
url (... | [
"arshshia@gmail.com"
] | arshshia@gmail.com |
ec8e7dafe20595ebc94fed5089fa5fc70c148552 | 6147d3d059a048be57aaabe3519551ed4bc305ec | /config/management/commands/fs2import.py | ed4cb19b50f25028e6c1954d36d1fe16bcc534f1 | [
"MIT"
] | permissive | a-mere-peasant/MangAdventure | a8f7fdfddf5ae65e645b0e0e0d197f2b0033bc8d | afbcdb5ab68bfc801550c8383568f7265e70b5ab | refs/heads/master | 2020-08-06T13:38:59.062119 | 2019-10-05T12:22:53 | 2019-10-05T12:22:53 | 212,808,131 | 0 | 0 | MIT | 2019-10-04T13:07:47 | 2019-10-04T12:18:27 | null | UTF-8 | Python | false | false | 4,613 | py | from os.path import abspath, join
from xml.etree import cElementTree as et
from django.core.files import File
from django.core.management import BaseCommand
from groups.models import Group
from reader.models import Chapter, Page, Series
def _get_element(tables, name):
return list(filter(
lambda t: t.att... | [
"chronobserver@disroot.org"
] | chronobserver@disroot.org |
7bdb3032d0b87e6e58936035f17049cb25437466 | 6f05f7d5a67b6bb87956a22b988067ec772ba966 | /data/train/python/4fde7f3e48576985304dbb54c7ab85f5d1c4d4e9observer.py | 4fde7f3e48576985304dbb54c7ab85f5d1c4d4e9 | [
"MIT"
] | permissive | harshp8l/deep-learning-lang-detection | 93b6d24a38081597c610ecf9b1f3b92c7d669be5 | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | refs/heads/master | 2020-04-07T18:07:00.697994 | 2018-11-29T23:21:23 | 2018-11-29T23:21:23 | 158,597,498 | 0 | 0 | MIT | 2018-11-21T19:36:42 | 2018-11-21T19:36:41 | null | UTF-8 | Python | false | false | 988 | py | from flask import Flask
from flask.ext.restful import reqparse, abort, Api, Resource
from utils import get_controllers
app = Flask(__name__)
api = Api(app)
def get_controller_by_id(controller_id):
try:
return controllers[controller_id]
except IndexError:
abort(404, message="Controller {} ... | [
"aliostad+github@gmail.com"
] | aliostad+github@gmail.com |
a93ea63288eff967bb4d9195f3c82744bd638f54 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_fasting.py | 2a2b2ee81235039958aac103ee2d9541cc58f881 | [
"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 | 228 | py |
from xai.brain.wordbase.verbs._fast import _FAST
#calss header
class _FASTING(_FAST, ):
def __init__(self,):
_FAST.__init__(self)
self.name = "FASTING"
self.specie = 'verbs'
self.basic = "fast"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
90a9f66b973d50155b27452cee64bbbfb1800a9b | 4dd1d8fa59e20061e2c12e540fc52b1b305e575b | /source/sims-2/boltz-bgk/s5/plot-sol.py | ff8f54a4239c7054fea5d9ce39a198fdbe5120d1 | [
"MIT"
] | permissive | ammarhakim/ammar-simjournal | f63521906a97d55ab290a5960d94758139944c89 | 5019f4723e20db80a20db6f2bd454c2fd3241412 | refs/heads/master | 2023-06-08T08:18:11.722779 | 2023-06-02T15:06:43 | 2023-06-02T15:06:43 | 204,050,516 | 3 | 3 | null | 2022-02-01T16:53:13 | 2019-08-23T18:28:44 | Lua | UTF-8 | Python | false | false | 3,194 | py | import gkedata
import gkedgbasis
from pylab import *
import pylab
import tables
import math
import numpy
import pylab
import numpy
from matplotlib import rcParams
import matplotlib.pyplot as plt
# customization for figure
rcParams['lines.linewidth'] = 2
rcParams['font.size'] = 18
rcParams[... | [
"11265732+ammarhakim@users.noreply.github.com"
] | 11265732+ammarhakim@users.noreply.github.com |
78568ca4885a42d8f3f9605cd773cdac043a3fda | 27317b3adb1ccd99afa86cb931d2d14e23b9b175 | /bcs-app/backend/apps/cluster/migrations/0011_auto_20180514_1805.py | 7246c2cb4817e9db1fb1c09afade48a95c1a0502 | [
"BSD-3-Clause",
"LicenseRef-scancode-unicode",
"ICU",
"LicenseRef-scancode-unknown-license-reference",
"Artistic-2.0",
"Zlib",
"LicenseRef-scancode-openssl",
"NAIST-2003",
"ISC",
"NTP",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"MIT"
] | permissive | freyzheng/bk-bcs-saas | cf5a6c4ab1c20959bda1362bc31de7884451acd7 | 96373cda9d87038aceb0b4858ce89e7873c8e149 | refs/heads/master | 2021-07-05T04:11:08.555930 | 2020-09-22T12:26:37 | 2020-09-22T12:26:37 | 201,279,048 | 0 | 1 | NOASSERTION | 2020-09-16T03:07:16 | 2019-08-08T14:48:27 | Python | UTF-8 | Python | false | false | 1,794 | py | # -*- coding: utf-8 -*-
#
# Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
# Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
# Licensed under the MIT License (the "License"); you may not use this file except i... | [
"gejun.coolfriend@gmail.com"
] | gejun.coolfriend@gmail.com |
96e1b7d4ba508da9f2c0883b2ba7a362efde32d5 | b9878c92b857f73ff0452fc51c822cfc9fa4dc1c | /watson_machine_learning_client/libs/repo/util/base_singleton.py | 4a9943aa7d08aaa332d2f94d4ddaafc4ea0a0726 | [] | no_license | DavidCastilloAlvarado/WMLC_mod | 35f5d84990c59b623bfdd27369fe7461c500e0a5 | f2673b9c77bd93c0e017831ee4994f6d9789d9a1 | refs/heads/master | 2022-12-08T02:54:31.000267 | 2020-09-02T15:49:21 | 2020-09-02T15:49:21 | 292,322,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | class _Singleton(type):
""" A metaclass that creates a Singleton base class when called. """
_instances = {}
def __call__(cls, *args, **kwargs):
if cls not in cls._instances:
cls._instances[cls] = super(_Singleton, cls).__call__(*args, **kwargs)
return cls._instances[cls]
clas... | [
"dcastilloa@uni.pe"
] | dcastilloa@uni.pe |
355a8a6a7493e09e033a44bc139d2aa4314b07e5 | f27c49458bde84048e6008da8c52ca0f1ae711ce | /code/05-interactive-code/m-n-m/guessinggame.py | f919ba7aeb09373c7ec432efe4f22638bff7f3d2 | [
"MIT"
] | permissive | talkpython/python-for-absolute-beginners-course | 54b0f48b5edbf7755de6ca688a8e737ba16dc2fc | 1930dab0a91526863dc92c3e05fe3c7ec63480e1 | refs/heads/master | 2022-11-24T03:02:32.759177 | 2022-11-08T14:30:08 | 2022-11-08T14:30:08 | 225,979,578 | 2,287 | 1,059 | MIT | 2022-11-07T19:45:15 | 2019-12-05T00:02:31 | Python | UTF-8 | Python | false | false | 656 | py | import random
print("------------------------------")
print(" M&M guessing game!")
print("------------------------------")
print("Guess the number of M&Ms and you get lunch on the house!")
print()
mm_count = random.randint(1, 100)
attempt_limit = 5
attempts = 0
while attempts < attempt_limit:
guess_text = i... | [
"mikeckennedy@gmail.com"
] | mikeckennedy@gmail.com |
dce66acaecaeb92ead8da8165aa063f5144d1414 | 0c005f75771101fdea1f647f124343077af19c36 | /test_word_break.py | 3a437518d9123157cc2a7afd251265b23f0ac32f | [
"MIT"
] | permissive | brigitteunger/katas | 19ff80a43d1c8fe0e6a49a6790495e716f09f10d | 3f9af88fe5d98753360457084741f573c863dc25 | refs/heads/master | 2023-01-01T00:57:45.294204 | 2020-10-13T21:01:18 | 2020-10-13T21:01:18 | 265,810,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | import unittest
from typing import List, Set
from data_word_break import s_2, wordDict_2
class Solution:
def wordBreak(self, s: str, wordDict: List[str]) -> bool:
if not wordDict:
return []
set_words = set(wordDict)
dp = [False]*(len(s)+1)
dp[0] = True
for i in... | [
"brigitteunger@users.noreply.github.com"
] | brigitteunger@users.noreply.github.com |
dbc05861ff1d574b59cf13ace3a9c4f734503c16 | 2f330fc050de11676ab46b963b7878882e9b6614 | /memsource_cli/models/linguist_v2.py | 3fded445994ae511b98da76e5f74617d09e0bc7b | [
"Apache-2.0"
] | permissive | zerodayz/memsource-cli-client | 609f48c18a2b6daaa639d4cb8a61da43763b5143 | c2574f1467539a49e6637c874e88d75c7ef789b3 | refs/heads/master | 2020-08-01T12:43:06.497982 | 2019-09-30T11:14:13 | 2019-09-30T11:14:13 | 210,999,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,216 | py | # coding: utf-8
"""
Memsource REST API
Welcome to Memsource's API documentation. To view our legacy APIs please [visit our documentation](https://wiki.memsource.com/wiki/Memsource_API) and for more information about our new APIs, [visit our blog](https://www.memsource.com/blog/2017/10/24/introducing-rest-apis... | [
"cerninr@gmail.com"
] | cerninr@gmail.com |
cc283b9b4b09f6bf5595826d7c51710a2bbd1948 | b72dbc51279d3e59cb6410367b671f8a956314c1 | /프로그래머스/그외/1844_게임맵 최단거리.py | 0aa107ad05fc1b98b72ecda8ab28d2ebc0eba2d7 | [] | no_license | ddobokki/coding-test-practice | 7b16d20403bb1714d97adfd1f47aa7d3ccd7ea4b | c88d981a1d43b986169f7884ff3ef1498e768fc8 | refs/heads/main | 2023-07-08T15:09:32.269059 | 2021-08-08T12:19:44 | 2021-08-08T12:19:44 | 344,116,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,399 | py | #https://programmers.co.kr/learn/courses/30/lessons/1844
from collections import deque
def solution(maps):
answer = 0
dx = [1, -1, 0, 0] # 순서대로 동, 서, 남, 북
dy = [0, 0, 1, -1]
visit = [[-1] * len(maps[0]) for _ in range(len(maps))] # 거리 측정 및, 방문을 확인하는 visit 배열
visit[0][0] = 1 # visit이 -1이면 아직 방... | [
"44228269+ddobokki@users.noreply.github.com"
] | 44228269+ddobokki@users.noreply.github.com |
9558078b495c9f41b5bcc8fde64f93bfb7668f33 | ec87c361be4a2f9f842695b6a6e8601ebd735e83 | /GuessNum.py | ee225ea9d692c0e4fc54bd50da1e7441a632581c | [] | no_license | heheddff/python2018 | 357d51bee7ea39f6a1df82101fb49c1568250e24 | 77a240dd155f679fffe33b62df57f689a8c85082 | refs/heads/master | 2020-03-27T23:13:38.789249 | 2018-12-08T14:55:21 | 2018-12-08T14:55:21 | 147,302,979 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | #GuessNum
import random as rd
target = rd.randint(1,1000)
count = 0
while True:
try:
guess = eval(input("请输入一个猜测的整数(1至1000):"))
except:
print('输入有误,请重试,此次不计入猜测次数!')
continue
count +=1
if guess > target:
print("猜大了")
elif guess < target:
print("猜小了")
else:
... | [
"qq2003qq@126.com"
] | qq2003qq@126.com |
811c54e32c59559195243cf283c1baeaf6bea67e | 41ede4fd3bfba1bff0166bca7aee80dcf21434c6 | /ayhanyalcinsoy/Desktop/xfce/addon/thunar-archive-plugin/actions.py | 105c7d47862ca22da89c73e94b0087b806747df5 | [] | no_license | pisilinux/playground | a7db4b42559a21cc72fd4c8649e0231ab6a3eb3c | e4e12fff8a847ba210befc8db7e2af8556c3adf7 | refs/heads/master | 2022-08-12T23:03:27.609506 | 2022-08-11T18:28:19 | 2022-08-11T18:28:19 | 8,429,459 | 16 | 22 | null | 2022-08-11T18:28:20 | 2013-02-26T09:37:11 | Python | UTF-8 | Python | false | false | 683 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import get
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
def setup():
... | [
"ayhanyalcinsoy@gmail.com"
] | ayhanyalcinsoy@gmail.com |
e98d8dcea92717dc00bba19ef5d887b8d521e12e | ba949e02c0f4a7ea0395a80bdc31ed3e5f5fcd54 | /problems/dp/Solution115.py | aec8a435c4f15acf75a0391afcaed2b0f9481f66 | [
"MIT"
] | permissive | akaliutau/cs-problems-python | 6bc0a74064f6e9687fe58b13763da1fdf2e1f626 | 9b1bd8e3932be62135a38a77f955ded9a766b654 | refs/heads/master | 2023-05-11T22:19:06.711001 | 2021-06-04T11:14:42 | 2021-06-04T11:14:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | """ Given two strings s and t, return the number of distinct subsequences of s
which equals t. A string's subsequence is a new string formed from the
original string by deleting some (can be none) of the characters without
disturbing the relative positions of the remaining characters. (i.e., "ACE"
is a su... | [
"aliaksei.kaliutau@gmail.com"
] | aliaksei.kaliutau@gmail.com |
a92309f4c06a45e9fc8a12855d0fbe22d95c8feb | a0c53168a4bdcfb0aa917d6d2c602f0999443a10 | /projexui/widgets/xurlwidget.py | 40516a9749b83fb4e82b2ccb12a331191a731d1e | [] | no_license | kanooshka/DPS_PIPELINE | 8067154c59ca5c8c9c09740969bb6e8537021903 | df2fcdecda5bce98e4235ffddde1e99f334562cc | refs/heads/master | 2021-05-24T04:32:03.457648 | 2018-09-07T13:25:11 | 2018-09-07T13:25:11 | 29,938,064 | 3 | 2 | null | 2020-07-23T23:06:37 | 2015-01-27T22:26:01 | Python | UTF-8 | Python | false | false | 3,438 | py | """ Defines the XUrlWidget class """
# define authorship information
__authors__ = ['Eric Hulser']
__author__ = ','.join(__authors__)
__credits__ = []
__copyright__ = 'Copyright (c) 2011, Projex Software, LLC'
__license__ = 'LGPL'
__maintainer__ = 'Projex Software, LLC'
__e... | [
"kanooshka@gmail.com"
] | kanooshka@gmail.com |
1401a17efdbfb7b2ff484178a6944d5e373dd1f7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03488/s626861342.py | 65eae1c60abd7285830f846f3f83e1f7681f124f | [] | 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 | 1,207 | py | s=input()
X,Y=map(int,input().split())
from collections import defaultdict
def solve(da,dp,G):
for i in range(len(da)):
tmp=set()
for j in dp:
tmp.add(j-da[i])
tmp.add(j+da[i])
dp=tmp
if G in dp:
return True
else:
return False
"""amax=0
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e87293f0dbca65cf9e8eb987d30bb7c5e8ed590e | 29b1b15e4fef90717ff7bf8b13ab9a23cdc17c51 | /finalproduct/testapp/migrations/0003_comments.py | 24bc341b3f011285e4bdec6c57d8b347120c9b42 | [] | no_license | deepawalekedar319/DjangoProjects | 93fe59812593a1e1b8f542c8c5b1642bc95f6da4 | 1780b703a3022ea17dc188ad98b0f17bb14fa12f | refs/heads/main | 2023-09-03T04:48:21.201822 | 2021-11-08T05:28:00 | 2021-11-08T05:28:00 | 425,706,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2020-10-31 13:23
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('testapp', '0002_auto_20201027_1439'),
]
operation... | [
"deepawalekedar319@gmail.com"
] | deepawalekedar319@gmail.com |
5631077333222d3476b68d4a173ce9d25f7396be | caf8cbcafd448a301997770165b323438d119f5e | /.history/mercari/mercari_search_20201124184144.py | 21031f8d0dc5f3408e41cd1680d9f13d31082892 | [
"MIT"
] | permissive | KustomApe/nerdape | 03e0691f675f13ce2aefa46ee230111247e90c72 | aef6fb2d1f8c364b26d91bf8570b4487a24de69a | refs/heads/main | 2023-01-23T10:13:26.584386 | 2020-11-28T22:29:49 | 2020-11-28T22:29:49 | 309,897,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,776 | py | from selenium import webdriver
from selenium.webdriver.support.ui import Select
import pandas as pd
import re
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import PyQt5
import time
"""[Initial Settings]
初期設定
"""
options = webdriver.ChromeOptions()
options.add_argument('--headeless')
options.a... | [
"kustomape@gmail.com"
] | kustomape@gmail.com |
64cfaf128c32f6121b1d5cd6194329ba27f2532b | c0792645c156cb9e20a1aa2b28c565150358bc6e | /apps/inmueble/migrations/0007_auto_20180413_2159.py | 67c3d2b9cf04f9cc969b9db636a4659a8eea6221 | [] | no_license | clioo/Praver | b22fd92886e0399845adb4366663cae6a7d7853b | 523f0d78e0a2039a5bae3e539c93e2c2415a0840 | refs/heads/master | 2020-03-11T12:38:54.272392 | 2018-06-28T18:24:21 | 2018-06-28T18:24:21 | 130,003,043 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2018-04-14 03:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('inmueble', '0006_imagenesinmbueble'),
]
operations = [
migrations.AlterField... | [
"jesus_acosta1996@hotmail.com"
] | jesus_acosta1996@hotmail.com |
9df488729a33c40b7f0a79805a0e490939c392cc | de06c4a1fb02fd23eadfc58c770d87edfd0a6d38 | /group_buying/payment/migrations/0002_auto_20200829_0923.py | da6c064bd2bf89bfec813229cb49073801216a4d | [] | no_license | saisantoshchirag/group_buying | c12dc0bf1882cf03d20e6865dd98105a28907f80 | 1d9fb28f99dfb9b085e43bb5429bde476680ffa7 | refs/heads/master | 2023-08-15T01:27:56.203321 | 2020-11-13T11:16:36 | 2020-11-13T11:16:36 | 267,057,651 | 0 | 1 | null | 2021-09-22T19:21:23 | 2020-05-26T13:58:14 | HTML | UTF-8 | Python | false | false | 1,038 | py | # Generated by Django 2.1.5 on 2020-08-29 03:53
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('payment', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='orders',
name='address',
),
... | [
"saisantosh.c17@iiits.in"
] | saisantosh.c17@iiits.in |
538215aa0cc6b8084fff013b4fd1dac21131423c | 523f8f5febbbfeb6d42183f2bbeebc36f98eadb5 | /80_best.py | c500e3032fd796de2b2a3073cdc4baa3dbdbb67f | [] | no_license | saleed/LeetCode | 655f82fdfcc3000400f49388e97fc0560f356af0 | 48b43999fb7e2ed82d922e1f64ac76f8fabe4baa | refs/heads/master | 2022-06-15T21:54:56.223204 | 2022-05-09T14:05:50 | 2022-05-09T14:05:50 | 209,430,056 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | class Solution(object):
def removeDuplicates(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
n=0
p=0
pre=float("inf")
for i in range(len(nums)):
if nums[i]==pre:
if n==2:
continue
e... | [
"noelsun@mowennaierdeMacBook-Pro.local"
] | noelsun@mowennaierdeMacBook-Pro.local |
ce9a504baf33919b24dc53bdf46a87dc45cd164e | fa45fe7eaba7ef7c27ecf95db7c460ca189ce0d4 | /everydays/day002/flask_test/hm_07_helloflask.py | c5e844f1d49376ac75384f887e29197ae23fd8cb | [] | no_license | jake20001/Hello | be1a2bb5331f2ad4c1d8f30c6a9a530aff79e605 | 08217871bb17152eb09e68cd154937ebe5d59d2c | refs/heads/master | 2021-07-10T09:48:15.883716 | 2021-04-23T14:49:03 | 2021-04-23T14:49:03 | 56,282,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | from datetime import timedelta
from flask import Flask, session,jsonify
app = Flask(__name__)
# 设置应用秘钥会被用于session签名
app.secret_key = 'test'
# 设置session过期时间 默认31天
print(f'默认过期时间: {app.permanent_session_lifetime}')
# 通过赋值一个 timedelta 对象来修改 session 的过期时间
app.permanent_session_lifetime = timedelta(days=0,seconds=20)
print... | [
"jianke.zhang@beantechs.com"
] | jianke.zhang@beantechs.com |
c9979f423a456cb880b77c2b8a584ec0c5691070 | b007d88e6726452ffa8fe80300614f311ae5b318 | /educative.io/coding_patterns/hash_maps/isomorphic_string.py | 3f2177702a7f146a99345b2c40f7a05c9cd83761 | [] | no_license | jinurajan/Datastructures | ec332b12b8395f42cb769e771da3642f25ba7e7f | 647fea5d2c8122468a1c018c6829b1c08717d86a | refs/heads/master | 2023-07-06T14:42:55.168795 | 2023-07-04T13:23:22 | 2023-07-04T13:23:22 | 76,943,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,731 | py | """
Given two strings, check whether two strings are isomorphic to each other or not. Two strings are isomorphic if a fixed mapping exists from the characters of one string to the characters of the other string. For example, if there are two instances of the character "a" in the first string, both these instances sho... | [
"jinu.p.r@gmail.com"
] | jinu.p.r@gmail.com |
dc4ba9522892d2b29251cd8eab33b73c5fffbcf8 | 2d2c10ffa7aa5ee35393371e7f8c13b4fab94446 | /projects/ai/mrc/haihua/mrc_guwen/loss.py | b36544f5e4359d2393243aba18e0a179e657b745 | [] | no_license | faker2081/pikachu2 | bec83750a5ff3c7b5a26662000517df0f608c1c1 | 4f06d47c7bf79eb4e5a22648e088b3296dad3b2d | refs/heads/main | 2023-09-02T00:28:41.723277 | 2021-11-17T11:15:44 | 2021-11-17T11:15:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ==============================================================================
# \file loss.py
# \author chenghuige
# \date 2021-01-09 17:51:33.472128
# \Description
# ==================================================================... | [
"chenghuige@gmail.com"
] | chenghuige@gmail.com |
b95feeca262a9036432d30423ce62dd23cffdd32 | 415fcefe59c8d33bc3f8b0784d48a7509ea7d5da | /addanother_example/models.py | f005bc5f0ebd821cc308a8ef2e021933eecd6f68 | [] | no_license | asifpy/django-quickstart | 6f517699375015584a7d17f112b70b8eeff89762 | 0ff625915cf169d3fb2f9646d9838260629c1576 | refs/heads/master | 2021-01-11T11:19:22.446634 | 2017-05-04T05:28:55 | 2017-05-04T05:28:55 | 72,719,312 | 2 | 1 | null | 2017-05-04T05:28:56 | 2016-11-03T07:24:32 | Python | UTF-8 | Python | false | false | 795 | py | from django.db import models
class Team(models.Model):
name = models.CharField(max_length=20)
def __str__(self):
return self.name
class Player(models.Model):
name = models.CharField(max_length=20)
current_team = models.ForeignKey(
"Team", related_name="current_players",
he... | [
"saluasif@gmail.com"
] | saluasif@gmail.com |
a511646d6604a9c524b484c4ff7546e7ca14116e | bc167f434158921bcf2c678155c5cdfec1c9b0c9 | /PI_code/simulator/behaviourGeneration/firstGenScripts_preyHunter/behav457.py | 245f22a2fc444ac2254832c1c88ff8828465938b | [] | no_license | s0217391/DifferentProjects | 6450efc89c64ecd21b86c705737e89e5c69433a6 | 7f4da153660817b6cbf72d2e823aa29c0c2f95a9 | refs/heads/master | 2021-01-17T02:58:46.219240 | 2015-05-26T22:45:46 | 2015-05-26T22:45:46 | 34,995,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | #!/usr/bin/python
import sys
def compute(prey):
temp0 = -1 * prey[1]
if temp0 != 0:
temp1 = temp0 / temp0
else:
temp1 = temp0
temp0 = -1 * prey[1]
temp1 = temp0 * prey[0]
if temp0 != 0:
temp2 = temp1 % temp0
else:
temp2 = temp0
temp3 = temp1 + prey[1]
if temp2 > temp0:
if temp3 != 0:
temp3 = temp... | [
"i7674211@bournemouth.ac.uk"
] | i7674211@bournemouth.ac.uk |
a5c866848db0a2d103e4eccf93def3588d598874 | f20da8440bae10fe73900f787fc7781f23196325 | /downsample/downsample_dense.py | ad5654289ac0181edcac53448c9e825628577396 | [] | no_license | ramesh720/recipe_zs2017_track2_phoneme | 9c5cdb3066a84e5059153b1390802e700c66978e | f8bbd9b8e6ae4f542e52c2582eab1cf166923226 | refs/heads/master | 2020-04-29T11:07:47.406768 | 2018-01-13T13:03:46 | 2018-01-13T13:03:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,364 | py | #!/usr/bin/env python
"""
Perform dense downsampling over indicated segmentation intervals.
Author: Herman Kamper
Contact: kamperh@gmail.com
Date: 2015-2017
"""
from datetime import datetime
from os import path
import argparse
import cPickle as pickle
import numpy as np
import scipy.signal as signal
import sys
OUTP... | [
"kamperh@gmail.com"
] | kamperh@gmail.com |
8425cd0230586cba7d321dc4706f57f721a3c5d4 | b246bdb4ae3d845bbf8dee704b8936c32211c0f5 | /Figure_1/initial_subtyping/do_tsne.py | fe059a8bd9f38cb0c2f026356b59d034111066fc | [] | no_license | KnottLab/bladder-snSeq | abfd3d77a04250622e6a28d84878e5adcd335d00 | 2e087dc745046e30c2814ab3e4c295bfa34e6820 | refs/heads/master | 2023-04-07T13:36:44.794889 | 2021-12-08T15:37:45 | 2021-12-08T15:37:45 | 323,445,511 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,966 | py | #!/usr/bin/env python
import numpy as np
import argparse
from load_data import load_data
from MulticoreTSNE import MulticoreTSNE as TSNE
try:
import cuml
CUML_FLAG=True
except:
print('[DO_TSNE] WARNING failed to import cuML. GPU accelerated TSNE will not be available.')
CUML_FLAG=False
"""
Modules have two ... | [
"ing.nathany@gmail.com"
] | ing.nathany@gmail.com |
14e1a228d0680642f41d17ebeaa1552a75c5e0c5 | 1aa0ddb70fb893a6f958841b0a606cdcac954e18 | /settings/forms/batches.py | a1931328efe9b17262c46d238776331d3278fa66 | [] | no_license | shitalluitel/LibraryManagementSystem | 3042860a70096bf3821299fb10ca35958e680f62 | eecd909b272ad7e524a031c9142d22a356141fda | refs/heads/master | 2023-02-17T06:42:19.044516 | 2021-01-10T14:52:18 | 2021-01-10T14:52:18 | 166,533,846 | 2 | 1 | null | 2023-02-07T22:14:35 | 2019-01-19T10:22:41 | HTML | UTF-8 | Python | false | false | 1,003 | py | from django import forms
from django.forms import ModelMultipleChoiceField
from settings.models import Batch, CourseBatch, Course
class BatchForm(forms.ModelForm):
class Meta:
model = Batch
fields = ['name', 'code']
widgets = {
'name': forms.TextInput(attrs={'class': 'form-c... | [
"ctalluitel@gmail.com"
] | ctalluitel@gmail.com |
5f01b00fb146fec0d23c878194633081590499e0 | 59de7788673ade984b9c9fbc33664a7cbdba67d3 | /res/scripts/client/gui/scaleform/framework/entities/abstract/tooltipmgrmeta.py | a6dfedb52bce9035a795727e60fc365f096a4dbc | [] | no_license | webiumsk/WOT-0.9.15-CT | 3fa24ab37a6c91b7073034afb2f355efa5b7fe36 | fbd194fbaa6bdece51c7a68fc35bbb5257948341 | refs/heads/master | 2020-12-24T21:27:23.175774 | 2016-05-01T13:47:44 | 2016-05-01T13:47:44 | 57,600,180 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,329 | py | # 2016.05.01 15:22:59 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/framework/entities/abstract/ToolTipMgrMeta.py
from gui.Scaleform.framework.entities.BaseDAAPIModule import BaseDAAPIModule
class ToolTipMgrMeta(BaseDAAPIModule):
"""
DO NOT MODIFY!
Generated with yaml.
_... | [
"info@webium.sk"
] | info@webium.sk |
85d95bdfbd59a153f246c62bca01d14bff2342be | 8382f4ec907950a8cfc618d3cceb97b0d00ab478 | /6kyu/encryptThis.py | 98249bc9ece7063bffc8fcf98db0cc716a54aaba | [] | no_license | naistangz/codewars_challenges | 80788f3869a4283c89ee2a05f19142b18ba4820c | 372bbb6f1668b378183a169206526b52315107a8 | refs/heads/master | 2023-04-14T11:52:31.412554 | 2021-04-25T09:39:03 | 2021-04-25T09:39:03 | 299,615,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | def encrypt_this(text):
words = text.split(" ")
res = []
for i in words:
new = ""
temp = ""
for j in range(len(i)):
if j == 0:
new += str(ord(i[j]))
elif j == 1:
temp = i[j]
new += i[-1]
elif j == len(i) - 1:
... | [
"a6anaistang@hotmail.co.uk"
] | a6anaistang@hotmail.co.uk |
7c8e4675d0711026385f5328533e7c8eeb8fad4d | 56db1ccba3f8976b2df6d97c99e5aae7108149a1 | /spending/main/admin.py | 2c410651c1a51abbb5f05621793ae519229eae80 | [] | no_license | peterbe/django-spending | 4d60b7a77250fc58eb7a397e388fd22fe73576de | ab2ab1730fbdd999e5ef8d75575795fa3a48d2b9 | refs/heads/master | 2021-01-10T05:32:00.005607 | 2013-07-06T05:41:41 | 2013-07-06T05:41:41 | 8,384,613 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | from django.contrib import admin
from spending.main.models import Household, Expense, Category
class HouseholdAdmin(admin.ModelAdmin):
list_display = ('name', 'no_users')
def no_users(self, obj):
return obj.users.all().count()
no_users.short_description = '# users'
class ExpenseAdmin(admin.Mode... | [
"mail@peterbe.com"
] | mail@peterbe.com |
11ef2cc4fb52774a2fb7d480df6720fc9c79afd9 | 9b20743ec6cd28d749a4323dcbadb1a0cffb281b | /02_Statistical_Methods_for_Machine_Learning/14/01_tolerance.py | 4a81741857f5d7f81dd597a2d99ba09c2f2bae3b | [] | no_license | jggrimesdc-zz/MachineLearningExercises | 6e1c7e1f95399e69bba95cdfe17c4f8d8c90d178 | ee265f1c6029c91daff172b3e7c1a96177646bc5 | refs/heads/master | 2023-03-07T19:30:26.691659 | 2021-02-19T08:00:49 | 2021-02-19T08:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | # parametric tolerance interval
from numpy import mean
from numpy import sqrt
from numpy.random import randn
from numpy.random import seed
from scipy.stats import chi2
from scipy.stats import norm
# seed the random number generator
seed(1)
# generate dataset
data = 5 * randn(100) + 50
# specify degrees of freedom
n = ... | [
"jgrimes@jgrimes.tech"
] | jgrimes@jgrimes.tech |
4fdc6b0d3c0d6e664d22960a9926a3b2127f2f29 | 753a70bc416e8dced2853f278b08ef60cdb3c768 | /models/research/deeplab/datasets/build_cityscapes_data.py | ce81baef20a460abaa634d3f1dcb6760a0858dec | [
"MIT",
"Apache-2.0"
] | permissive | finnickniu/tensorflow_object_detection_tflite | ef94158e5350613590641880cb3c1062f7dd0efb | a115d918f6894a69586174653172be0b5d1de952 | refs/heads/master | 2023-04-06T04:59:24.985923 | 2022-09-20T16:29:08 | 2022-09-20T16:29:08 | 230,891,552 | 60 | 19 | MIT | 2023-03-25T00:31:18 | 2019-12-30T09:58:41 | C++ | UTF-8 | Python | false | false | 6,244 | py | # Lint as: python2, python3
# Copyright 2018 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
#
#... | [
"finn.niu@apptech.com.hk"
] | finn.niu@apptech.com.hk |
36427016924bc734286ed9ff39b3812b2d38b21a | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2367/60699/251530.py | e61d0d3cb0da03640cd9f10d895c7a604b12880b | [] | 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 | 167 | py | res1=1
list1=[1]
for i in range(0,30):
res1=res1*10+1
list1.append(res1)
n=int(input())
for i in list1:
if i%n==0:
print(i)
break
print(-1) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
47e5b33bf2c46dffa3df76a2bf4134619041815a | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Reconstruction/RecExample/RecExCommon/share/ContainerRemapping.py | 00f5c31d568f606d42fba403b8779c3df62a656f | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,782 | py | include.block ("RecExCommon/ContainerRemapping.py")
from AthenaCommon.AppMgr import ServiceMgr
# Instantiate the address remapping service:
if not hasattr( ServiceMgr, "AddressRemappingSvc" ):
ServiceMgr += CfgMgr.AddressRemappingSvc()
pass
if not hasattr( ServiceMgr, "ProxyProviderSvc" ):
ServiceMgr += C... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
70b13e09918671ec8f42febe6f91674c2a84f798 | d4f2e2e3552ab4b111f78cfbad0d30c144201093 | /2016-12-20/semaphore.py | 2c1f4492110d89b3a3f1daa84001456b57596e8d | [
"Apache-2.0"
] | permissive | dongweiming/mp | c1e9f6f2c1fd8adbd4d7b8ffc45c5cc288cdcd80 | 129c31c818e1f0c39c983aad1f2f1ad9fa7efb1c | refs/heads/master | 2023-04-29T07:56:27.198574 | 2022-10-30T04:20:09 | 2022-10-30T04:21:27 | 75,051,758 | 96 | 35 | Apache-2.0 | 2023-04-17T17:34:17 | 2016-11-29T06:44:53 | Python | UTF-8 | Python | false | false | 509 | py | import aiohttp
import asyncio
NUMBERS = range(12)
URL = 'http://httpbin.org/get?a={}'
sema = asyncio.Semaphore(3)
async def fetch_async(a):
async with aiohttp.request('GET', URL.format(a)) as r:
data = await r.json()
return data['args']['a']
async def print_result(a):
with (await sema):
... | [
"ciici1234@hotmail.com"
] | ciici1234@hotmail.com |
b097b7a2e91b91ea67969ca245e6a9c69ad4bc7f | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Selenium_Chromium/source/selenium/webdriver/edge/service.py | 9eac51171035f1d2bd648ca409aeee7b8c69b782 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 2,161 | py | # Licensed to the Software Freedom Conservancy (SFC) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The SFC licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
fe0e6cff95e5d8a330eff9257815093428fb3c63 | 43ab33b2f50e47f5dbe322daa03c86a99e5ee77c | /test/test_od_mcomplex_type_definition_range_check.py | 1654fc81fa59cb3e96dcfdc2ece04a4d325049a1 | [] | no_license | Sage-Bionetworks/rcc-client | c770432de2d2950e00f7c7bd2bac22f3a81c2061 | 57c4a621aecd3a2f3f9faaa94f53b2727992a01a | refs/heads/main | 2023-02-23T05:55:39.279352 | 2021-01-21T02:06:08 | 2021-01-21T02:06:08 | 331,486,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,610 | py | # coding: utf-8
"""
nPhase REST Resource
REDCap REST API v.2 # noqa: E501
The version of the OpenAPI document: 2.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import rcc
from rcc.models.od_mcomplex_type_definition_range_... | [
"thomas.yu@sagebase.org"
] | thomas.yu@sagebase.org |
9057b02d2ebad2cfc59b5649da5d1eeb5780b432 | 8d5f49fa1fda8ffc473e7f5a62786c77838a5820 | /website/drawquest/dbrouters.py | 23bbfb4be240253be8526040cf768de593b23d88 | [
"BSD-3-Clause"
] | permissive | MichaelBechHansen/drawquest-web | dfc6f5d9541860a5df23db678e82564a230bd42e | 8d8f9149b6efeb65202809a5f8916386f58a1b3b | refs/heads/master | 2021-01-14T10:30:10.861222 | 2015-11-10T03:13:42 | 2015-11-10T03:13:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | from django.conf import settings
class DatabaseAppRouter(object):
"""
A router to control all database operations on models for different
databases.
In case an app is not set in settings.DATABASE_APPS_MAPPING, the router
will fallback to the `default` database.
Settings example:
DAT... | [
"alex.ehlke@gmail.com"
] | alex.ehlke@gmail.com |
444afd65d83f521bbd49a2443f13fc3fbfceb654 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03078/s480863669.py | ac933d8bc820956754a8b02303270586b6a2aaa3 | [] | 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 | 495 | py | # solution
x,y,z,k = map(int, input().split())
a = sorted(list(map(int, input().split())), reverse = True)
b = sorted(list(map(int, input().split())), reverse = True)
c = sorted(list(map(int, input().split())), reverse = True)
ans = []
for p in range(min(k,len(a))):
for q in range(min(k,len(b))):
for r in range(... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3a074572647edca905c1104c2e82709c859ebddb | 4050f786f3cc505760e25608d66805e3543835f8 | /the_flyer_15147/urls.py | 141a25667c75334ebfabf7887b5c99cfe55f3ff9 | [] | no_license | crowdbotics-apps/the-flyer-15147 | 6fb0a403286d06c5393d9f58b39f76ad5c538312 | e2f62327110f1200c8d4ebf46f127ce4fe903189 | refs/heads/master | 2022-12-11T02:03:31.153849 | 2020-03-28T02:01:50 | 2020-03-28T02:01:50 | 250,693,069 | 0 | 0 | null | 2022-12-08T05:09:49 | 2020-03-28T01:59:48 | Python | UTF-8 | Python | false | false | 2,055 | py | """the_flyer_15147 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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')
Cla... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
1e445cc5bd290315f961eb98d248e02c72584909 | f4653b4bd7528150a53c8f454658c00d7ea0b836 | /cbm/ipycbm/ipy_view/view_main.py | e19d0de98e84ac96843c63b82e5adf468f855f50 | [
"BSD-3-Clause"
] | permissive | mokasini/cbm | ccb09cb8ab96e6b06b0e13d86ff51124538706f6 | 33bd9c8a0d107f6cdc3343953ae9f7c9bd9272cd | refs/heads/main | 2023-02-24T04:44:07.744715 | 2021-02-01T12:29:38 | 2021-02-01T12:29:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# This file is part of CbM (https://github.com/ec-jrc/cbm).
# Author : Konstantinos Anastasakis
# Credits : GTCAP Team
# Copyright : 2021 European Commission, Joint Research Centre
# License : 3-Clause BSD
from ipywidgets import Tab
from cbm.ipycbm.utils import h... | [
"Konstantinos.ANASTASAKIS@ext.ec.europa.eu"
] | Konstantinos.ANASTASAKIS@ext.ec.europa.eu |
27c35318c6b5f8212dd449e282c2b081d6dc4c61 | 046c1141399890afa13fd243e55da3dbf31085c5 | /test/test22.py | 05c20e2d7892acce138d4df0ab6d184be9b7d49e | [] | no_license | carusyte/tflab | 1d0edf87282352aeb5a38b83c58ab9c0189bbb1a | 2324c3b0ad22d28c50a4fd8db56e36a2836735c3 | refs/heads/master | 2021-05-12T06:58:26.270868 | 2019-03-24T14:57:44 | 2019-03-24T14:57:44 | 117,232,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,165 | py | from __future__ import print_function
# Path hack.
import sys
import os
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/..")
import tensorflow as tf
from pstk.model import model11
from time import strftime
from pstk.data import data as data0
from pstk.data import data12
from test import collect_summary
... | [
"carusyte@163.com"
] | carusyte@163.com |
4ecf47ca7e7b37620817c44064a35600aa63affa | dfc2c18053b8e7576f88e7b2524d7ca3a8f47282 | /ch03/session3/63.py | a3458fac0a02818719ccecbeba2d2a88982ce7e0 | [] | no_license | Xoozi/tchomework | a6eed3bbf697ff12af8d42249ec58a139aed0c4c | 627c98b0b652ef20fd93025a17341bba76fbfce6 | refs/heads/master | 2021-01-23T21:18:15.793703 | 2018-10-21T11:05:55 | 2018-10-21T11:05:55 | 57,583,655 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | #一族三次曲线
#(a)对k = 0, 及其邻近的k的正和负值, 把f(x) = x**3 + k*x的图形画在一个公共屏幕上.
#k的值是怎么影响到图形的形状的
#k小于0时, 函数递减, 只有一个根
#k向0移动, 函数图像开始逆时针旋转, 并且开始弯曲, 靠近0时开始有多个根
#k大于0时, 又开始伸展,
#(b)求f'(x). 正如你知道的, f'(x)是一个二次函数, 求该二次函数的判别式. 对什么样的k值, 该判别式
#为正, 为零, 为负? 对什么k值f'有两个零点, 一个或,没有零点?
#说明k的值对f图形的形状有什么影响?
#f'(x) = 3*x**2 + k
#Δ = -4*3*k = -12k
#k>0时Δ... | [
"wwfxtt@gmail.com"
] | wwfxtt@gmail.com |
d954433fc734887cf2bed62499ea0205cefd66a3 | 30b97efb2f36f81aa684d16d19e0e2db17f2967d | /기타/2468.py | 05d75b8ff59e165f6298ad243ba4d49c20202b24 | [] | no_license | jmseb3/bakjoon | 0a784a74c6476ef51864e2ada9d2551c7c7979eb | a38db54e851372059b0e45add92e43e556835e62 | refs/heads/main | 2023-08-25T08:43:04.579785 | 2021-10-01T08:40:37 | 2021-10-01T08:40:37 | 362,287,450 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | from collections import deque
N = int(input())
maps = []
max_len = 0
for _ in range(N):
temp = list(map(int, input().split()))
max_len = max(max_len, max(temp))
maps.append(temp)
moves = [(-1, 0), (1, 0), (0, 1), (0, -1)]
ans = 0
def bfs(y, x, ck, visited):
q = deque()
q.append((y, x))
visite... | [
"jmseb3@naver.com"
] | jmseb3@naver.com |
84f29f68b65af4c479188bad5fe13eb540caa362 | 7fac5e7216c8f4328f21a14f9e222005890a57f8 | /11_Actor_Critic_Advantage/refactor/CartPole/network.py | a91406a51ae6f89da620c63ac4298837c272d612 | [] | no_license | ZhangRui111/MorvanRL | bee77d644df50ce9900be6ec7d702c395238fae4 | ad443d56314427aa9ebe4af552dde0f5470da967 | refs/heads/master | 2021-04-14T12:05:14.657272 | 2019-03-26T02:28:31 | 2019-03-26T02:28:31 | 126,663,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | py | import numpy as np
import tensorflow as tf
def build_actor_network(n_features, n_actions, lr):
s = tf.placeholder(tf.float32, [1, n_features], "state")
a = tf.placeholder(tf.int32, None, "act")
td_error = tf.placeholder(tf.float32, None, "td_error") # TD_error
with tf.variable_scope('Actor'):
... | [
"zhangruisg111@163.com"
] | zhangruisg111@163.com |
5db9f1bb82aaada88a79243dab0be796299f41e9 | a1d8fefb84ce2f69ebce5fedcdf5262ba0005a5f | /zvt/recorders/eastmoney/meta/china_stock_category_recorder.py | a0a6b9c47e284491ad80a9fade92202ba428d1f4 | [
"MIT"
] | permissive | vinhphu3000/FinanceCenter | f2c827ffe268421011682ed45375f55ac6ddc54a | 1511751fe6d7d1f1fb940ae66d29b45eb0782fea | refs/heads/master | 2023-03-30T19:55:17.124679 | 2021-03-27T11:40:18 | 2021-03-27T11:40:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,630 | py | # -*- coding: utf-8 -*-
import pandas as pd
from numba import njit
from zvt import zvt_config
from zvt.api.data_type import Region, Provider, EntityType
from zvt.api.quote import china_stock_code_to_id
from zvt.domain import BlockStock, BlockCategory, Block
from zvt.contract.api import df_to_db
from zvt.contract.recor... | [
"doncat99@gmail.com"
] | doncat99@gmail.com |
a25196a8f29cc48a0abcab0af5d74810790319c3 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/470/usersdata/281/112524/submittedfiles/Av2_Parte3.py | a4b0c34470239c11ef1a33686d04422e6413ad37 | [] | 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 | 477 | py | # -*- coding: utf-8 -*-
m=int(input('Digite a quantidade de listas desejada: '))
for i in range(0,m,1):
lista=[]
n=int(input('Digite a quantidade de elementos da %d lista: ' %(i+1)))
for i in range(0,n,1):
lista.append(int(input('Digite o %d elemento dessa lista: ' %(i+1))))
media=sum(lista)/len... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
aca102ba379f86d774530313c359be0ea25547c8 | 747f759311d404af31c0f80029e88098193f6269 | /extra-addons/hr_attendance_analysis/interface.py | 01271421ed420fa708a35f11eb536752ed1a9217 | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,712 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# Clock Reader for OpenERP
# Copyright (C) 2004-2009 Moldeo Interactive CT
# (<http://www.moldeointeractive.com.ar>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribu... | [
"geerish@omerp.net"
] | geerish@omerp.net |
1648baed214078a8926589e49711518dd6f5a517 | 49f61714a6f78d984fd2194d6064d84e891bc5b7 | /2019-1/220/users/4258/codes/1647_2445.py | e74ad3e0112c554a5f274784d793ec04694fb134 | [] | no_license | psbarros/Variaveis3 | b5c4e1517e7d94a846ee03791d25d5821a1c651c | 3dcf6f810709ce03c78335acf9533e008a2ae125 | refs/heads/master | 2023-06-13T07:05:00.878430 | 2021-07-06T17:51:37 | 2021-07-06T17:51:37 | 383,549,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | escala = input("Escolha C para Celsius, ou F para Fahrenheit: ")
temp = float(input("Temperatura: "))
c = (5/9)*(temp - 32)
f = ((9/5)*temp) + 32
if(escala == "C"):
print(f)
if(escala == "F"):
print(c) | [
"psb@icomp.ufam.edu.br"
] | psb@icomp.ufam.edu.br |
21b8c9f44927459be125440bea1eff530f530da0 | 040236bf3bb45826c0bbc39e7432512ff420a0d1 | /geomk/api/serializers.py | 6c022a859e6e149bbc1d0f638e27c128eb57e92b | [] | no_license | ThiagoDiasV/parking-lot-api | 2768baf8921b9dc087616def8c93ccc4f2fe8cf5 | 5cb3f687099bea59740b0034aeebf9a65b791358 | refs/heads/master | 2022-12-13T02:25:50.754524 | 2020-02-12T12:08:32 | 2020-02-12T12:08:32 | 232,959,041 | 4 | 3 | null | 2022-03-08T21:10:08 | 2020-01-10T03:36:52 | Python | UTF-8 | Python | false | false | 991 | py | from .models import Car
from rest_framework import serializers
class CarSerializer(serializers.ModelSerializer):
class Meta:
model = Car
fields = "__all__"
read_only_fields = ["entry_time", "left_time", "time", "paid", "left"]
def create(self, validated_data: dict) -> Car:
"""... | [
"thiago76ers@gmail.com"
] | thiago76ers@gmail.com |
27da08cfa78217f9a5c0fc73b6cccf72ff2e25ac | 69a2f0c4419d0bf39d2fe46e8ff2ee117eaf237a | /mutilprocess/test.py | 5b992fe9cd521106dc327da20aafd0555f827fc5 | [] | no_license | lxy5513/python | 7da339e8ef6e2fa827e2da723c0f4e3595e11e04 | 228c3e631e642228de659e68f98ea938bcb2509f | refs/heads/master | 2020-03-27T03:21:03.582842 | 2020-01-17T00:39:57 | 2020-01-17T00:39:57 | 145,855,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | import multiprocessing
import time
import collections
Queue = collections.deque(maxlen=10)
def consume(interval):
while True:
print("Queue: ", Queue)
if len(Queue) == 0:
print("no data")
time.sleep(0.5)
else:
num = Queue.pop()
print("Num: ", ... | [
"lxy5513@gmail.com"
] | lxy5513@gmail.com |
883182e36ae3c57c73a7b281ee795b79299603a9 | 191fbcc96b9f0c74b88b001003f024064c973753 | /gateware/rtl/platform/syzygy/boson.py | 8ca2d666a8022c603a68c64631c4c2278825ce82 | [
"BSD-2-Clause"
] | permissive | gregdavill/boson-eth-firmware | f0b5895469260e414b90cd7e7e0fad37a5728159 | 056843c43fac6486114bfb916fb78a4f7d38e87c | refs/heads/main | 2023-08-24T12:55:10.648741 | 2021-10-15T00:28:16 | 2021-10-15T00:28:16 | 374,504,758 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,166 | py | # This file is Copyright (c) 2020 Gregory Davill <greg.davill@gmail.com>
# License: BSD
from litex.build.generic_platform import *
def boson_syzygy_r0d1(syzygy_id=0):
_id = f'SYZYGY{syzygy_id}'
return [
("Boson", 0,
Subsignal("data", Pins(f'{_id}:S27 {_id}:P2C_CLKN {_id}:D5P {_id}:S26 \
... | [
"greg.davill@gmail.com"
] | greg.davill@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.