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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ce7e0ede156a3e7de7e03da065961056d48b7863 | 148d623f5c85e8bb4cb736c1f20dfa6c15108ee0 | /notebooks/cross_validation_ex_01.py | 170688985da17b8a32c3299bb15f65b29d117fe5 | [
"CC-BY-4.0"
] | permissive | castorfou/scikit-learn-mooc | 996cec1a8c681c4fb87c568b2fa62d9ce57518f9 | 235748eff57409eb17d8355024579c6df44c0563 | refs/heads/master | 2023-06-02T16:31:26.987200 | 2021-06-24T09:54:56 | 2021-06-24T09:54:56 | 369,466,156 | 1 | 0 | CC-BY-4.0 | 2021-05-21T08:24:07 | 2021-05-21T08:24:06 | null | UTF-8 | Python | false | false | 6,263 | py | #!/usr/bin/env python
# coding: utf-8
# # 📝 Exercise M2.01
#
# The aim of this exercise is to make the following experiments:
#
# * train and test a support vector machine classifier through
# cross-validation;
# * study the effect of the parameter gamma of this classifier using a
# validation curve;
# * study ... | [
"guillaume.ramelet@gmail.com"
] | guillaume.ramelet@gmail.com |
068373acc18149e0bd38c83af1aff1cc0290a92b | 519ffdab70c5cddc81da66af4c3ddd4007e637bc | /src/midterm/exam.py | 0dae271ee20bc47d14f446ea449af8dc42852649 | [
"MIT"
] | permissive | acc-cosc-1336/cosc-1336-spring-2018-Aronpond | 6b55ce38943117015a108b8a4544a22346eef670 | b37a6be8c0b909859ccf5ac2ce5eaf82c4ba741b | refs/heads/master | 2021-05-11T09:14:22.013454 | 2018-05-09T22:27:24 | 2018-05-09T22:27:24 | 118,071,080 | 0 | 0 | MIT | 2018-05-07T06:09:48 | 2018-01-19T03:22:41 | Python | UTF-8 | Python | false | false | 3,079 | py | '''
5 points
Create a function named get_miles_per_hour with parameters kilometers and minutes that returns
the miles per hour.
Use .621371 as conversion ratio.
Return the string error 'Invalid arguments' if negative kilometers or minutes are given.
RUN THE PROVIDED TEST CASES TO VALIDATE YOUR CODE
'''
def get_miles_pe... | [
"noreply@github.com"
] | acc-cosc-1336.noreply@github.com |
23f9757ad8e9bebd6108e84a02155e77f6b93f00 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /secretsmanager_write_1/secret_create.py | 7e5010bb0e9275c9dd9b04a37ca96724ca1518c4 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,892 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_one_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/secretsmanager/create-secret.html
if __name__ ==... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
5a164ae6608208666333aadb44adb89d47eb77e1 | e97e727972149063b3a1e56b38961d0f2f30ed95 | /test/test_activity_occurrence_resource.py | 95329d1bb8176f1da196bd830cac7f467f098361 | [] | no_license | knetikmedia/knetikcloud-python-client | f3a485f21c6f3e733a864194c9acf048943dece7 | 834a24415385c906732437970db105e1bc71bde4 | refs/heads/master | 2021-01-12T10:23:35.307479 | 2018-03-14T16:04:24 | 2018-03-14T16:04:24 | 76,418,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | # coding: utf-8
"""
Knetik Platform API Documentation latest
This is the spec for the Knetik API. Use this in conjunction with the documentation found at https://knetikcloud.com.
OpenAPI spec version: latest
Contact: support@knetik.com
Generated by: https://github.com/swagger-api/swagger-codeg... | [
"shawn.stout@knetik.com"
] | shawn.stout@knetik.com |
6fc0c48ca6a5e0811c61ffb490b39d781ac8d4f5 | eb7c49c58cab51248b249a9985cb58cfefc1cd90 | /distillation/distillation.py | 1a1c4732cc7e8e884caedf26d93070b2aa130ba0 | [] | no_license | kzky/reproductions | 5b6c43c12ec085586d812edfa8d79ae76750e397 | 28fdb33048ea1f7f1dbd8c94612513d4714a6c95 | refs/heads/master | 2021-01-18T01:59:51.435515 | 2017-09-10T11:58:21 | 2017-09-10T11:58:21 | 68,796,105 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,196 | py | from __future__ import absolute_import
from six.moves import range
import os
import nnabla as nn
import nnabla.logger as logger
import nnabla.functions as F
import nnabla.parametric_functions as PF
import nnabla.solvers as S
import nnabla.utils.save as save
from args import get_args
from mnist_data import data_itera... | [
"rkzfilter@gmail.com"
] | rkzfilter@gmail.com |
3d3247e759523d5a191a42471586868ee3cb0831 | 69f4d47bef0e3b4150891127717d6f4d52193b47 | /sinaSpider/sinaSpider/spiders/sina.py | 356db6054c3f6ed71e0e9e53f2492f805c8423ad | [] | no_license | hyhlinux/stu_scrapy | 27e45ad10eb9b85aada5ced34d29f00923555bf2 | 36afdb88f84a82453bf03070ed049599386a83c0 | refs/heads/master | 2020-06-12T11:55:19.986569 | 2016-12-10T03:18:37 | 2016-12-10T03:18:37 | 75,581,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,378 | py | # -*- coding: utf-8 -*-
import scrapy
import sys
import os
from sinaSpider.items import SinaspiderItem as SinaItem
reload(sys)
sys.setdefaultencoding("utf-8")
class SinaSpider(scrapy.Spider):
name = "sina"
allowed_domains = ["sina.com.cn"]
start_urls = ["http://news.sina.com.cn/guide/"]
def parse(s... | [
"2285020853@qq.com"
] | 2285020853@qq.com |
a80d8b96674191feb176a2faa0f67317a629e280 | e0ae697de14078f97287ad2b917af050805085bc | /swan/utils/plot.py | dc1a1ff5f1ac1d0bf94d888067d3fc84c323d007 | [
"Apache-2.0"
] | permissive | nlesc-nano/swan | 08204936e597017cff517c9a5b8f41262faba9c1 | 4edc9dc363ce901b1fcc19444bec42fc5930c4b9 | refs/heads/main | 2023-05-23T21:50:45.928108 | 2023-05-09T13:35:58 | 2023-05-09T13:35:58 | 191,957,101 | 15 | 1 | Apache-2.0 | 2023-05-09T13:36:29 | 2019-06-14T14:29:57 | Python | UTF-8 | Python | false | false | 2,809 | py | """Miscellaneous plot functions."""
from pathlib import Path
from typing import Any, Iterator, List
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
from scipy import stats
from ..modeller.gp_modeller import GPMultivariate
plt.switch_backend('agg')
def create_confidence_... | [
"tifonzafel@gmail.com"
] | tifonzafel@gmail.com |
aa6b4b76ac5f339ebfaaa0326ce457417d479c95 | fb8cbebdf034b2f478943752d5443afc82c6eef5 | /tuirer/venv/lib/python3.6/site-packages/IPython/testing/tests/test_decorators.py | be8bb30f24658acafa1b8a18bf0f3b6ce66ddae9 | [] | no_license | fariasjr/CitiTuirer | f64e0ec93ef088f8140bb0961d2ad4ed3b59448a | deb3f7a9c2d45b8a7f54639037f097b99abdac11 | refs/heads/master | 2020-03-24T05:10:36.261050 | 2018-08-01T20:24:30 | 2018-08-01T20:24:30 | 142,477,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,903 | py | """Tests for the decorators we've created for IPython.
"""
# Module imports
# Std lib
import inspect
import sys
from IPython.testing import decorators as dec
# Third party
import nose.tools as nt
#-----------------------------------------------------------------------------
# Utilities
# Note: copied from OInspect... | [
"jornadaciti@ug4c08.windows.cin.ufpe.br"
] | jornadaciti@ug4c08.windows.cin.ufpe.br |
c93b63bb6a2ee9bde97722c20735dd3e19260a1f | 2be3ad1c6413c9eb74819773e82c9cfe973f2fbb | /mama_cas/cas.py | 2057a703a19b10904887a217008626fee552bf60 | [
"BSD-3-Clause"
] | permissive | ilCapo77/django-mama-cas | 271d706eae24ea87c9280e46e5ddcfb1fd5c3d7f | 42ec942c207e5c4e7e40d7bb74551682c2803d81 | refs/heads/master | 2020-12-28T04:49:05.463591 | 2016-08-22T16:41:14 | 2016-08-22T16:41:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,549 | py | import logging
from django.contrib import messages
from django.contrib.auth import logout
from django.utils.module_loading import import_string
from django.utils.translation import ugettext_lazy as _
from mama_cas.compat import is_authenticated
from mama_cas.exceptions import InvalidTicketSpec
from mama_cas.exception... | [
"jason.bittel@gmail.com"
] | jason.bittel@gmail.com |
3749352f2804e412ae11dd21cac151c55e754eeb | bda2cafa8a5f0adb702aa618ff18372428ad9f84 | /artie.py | 5565427bac48805feff8e2e480cc82942fb78ed2 | [] | no_license | rogerhoward/artie3000 | eb2d5968d9b2fc19cb8ca75836ea4d0911ba3f87 | ec2afc6341029b0279b58b917a0e473e7462c5c5 | refs/heads/master | 2022-02-12T03:29:36.614009 | 2019-10-23T15:26:50 | 2019-10-23T15:26:50 | 177,835,173 | 1 | 0 | null | 2022-02-04T15:11:34 | 2019-03-26T17:13:53 | HTML | UTF-8 | Python | false | false | 715 | py | #!/usr/bin/env python
import asyncio
import websockets
import random, string
import simplejson as json
def random_id(len=10):
return ''.join(random.choices(string.ascii_lowercase + string.digits, k=len))
class Artie(object):
def __init__():
pass
async def bot():
async with websockets.connect(
... | [
"rogerhoward@mac.com"
] | rogerhoward@mac.com |
2c387465d98034a84512b41c9b90e62a486f5c44 | 05a9e0bb7e33099f94dfc8af53b4837bc5c9d287 | /python/small_impls/particle_energy_minimize/energy.py | 229e8a9b9ee860b91ef46a307ee5c45819fce34d | [] | no_license | HiroIshida/snippets | 999c09efadae80397cb82a424328bb1dbda4915f | f64dcd793184be64682b55bdaee7392fd97a0916 | refs/heads/master | 2023-09-01T08:18:42.523625 | 2023-09-01T04:08:20 | 2023-09-01T04:08:20 | 207,662,767 | 7 | 2 | null | 2022-08-01T23:20:42 | 2019-09-10T21:04:01 | C++ | UTF-8 | Python | false | false | 2,903 | py | import numpy as np
from scipy.optimize import OptimizeResult, minimize, Bounds
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import copy
import time
from typing import Callable, Tuple
def compute_distance_matrix(points: np.ndarray):
assert points.ndim == 2
n_point, n_dim = points.sha... | [
"spitfire.docomo@gmail.com"
] | spitfire.docomo@gmail.com |
168587159267fcc2bcfa812c45b2ad9b99b148ba | 78c3082e9082b5b50435805723ae00a58ca88e30 | /03.AI알고리즘 소스코드/venv/Lib/site-packages/caffe2/python/parallel_workers_test.py | b1822ec259538d2302294aeadf78f99766856b06 | [] | no_license | jinStar-kimmy/algorithm | 26c1bc456d5319578110f3d56f8bd19122356603 | 59ae8afd8d133f59a6b8d8cee76790fd9dfe1ff7 | refs/heads/master | 2023-08-28T13:16:45.690232 | 2021-10-20T08:23:46 | 2021-10-20T08:23:46 | 419,217,105 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,620 | py |
import unittest
from caffe2.python import workspace, core
import caffe2.python.parallel_workers as parallel_workers
def create_queue():
queue = 'queue'
workspace.RunOperatorOnce(
core.CreateOperator(
"CreateBlobsQueue", [], [queue], num_blobs=1, capacity=1000
... | [
"gudwls3126@gmail.com"
] | gudwls3126@gmail.com |
521b2928efcb138c4ef38d26f04b6f9b956f728e | 88863cb16f35cd479d43f2e7852d20064daa0c89 | /HelpingSantasHelpers/download/eval_code/hours.py | 92c418e0a8a4828e94b1d7876b0ac4442d3fda3b | [] | no_license | chrishefele/kaggle-sample-code | 842c3cd766003f3b8257fddc4d61b919e87526c4 | 1c04e859c7376f8757b011ed5a9a1f455bd598b9 | refs/heads/master | 2020-12-29T12:18:09.957285 | 2020-12-22T20:16:35 | 2020-12-22T20:16:35 | 238,604,678 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,379 | py |
import datetime
class Hours:
""" Hours class takes care of time accounting. Note that convention is
9:00-9:05 is work taking place on the 00, 01, 02, 03, 04 minutes, so 5 minutes of work.
Elf is available for next work at 9:05
Class members day_start, day_end are in minutes relative to the day
... | [
"c.hefele@verizon.net"
] | c.hefele@verizon.net |
c037677bd40802d525c9b0cc48e7980d0d9370cd | cb73fe89463892c8c147c6995e220f5b1635fabb | /AtCoder Beginner Contest 157/q4.py | 2f3997be6ae6197dd3f841423ebfccc58d44d5dc | [] | no_license | Haraboo0814/AtCoder | 244f6fd17e8f6beee2d46fbfaea6a8e798878920 | 7ad794fd85e8d22d4e35087ed38f453da3c573ca | refs/heads/master | 2023-06-15T20:08:37.348078 | 2021-07-17T09:31:30 | 2021-07-17T09:31:30 | 254,162,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,430 | py | class UnionFind():
def __init__(self, n):
self.n = n
self.parents = [-1] * n
def find(self, x):
if self.parents[x] < 0:
return x
self.parents[x] = self.find(self.parents[x])
return self.parents[x]
def unite(self, x, y):
x = self.find(x)
y... | [
"harada-kyohei-fj@ynu.jp"
] | harada-kyohei-fj@ynu.jp |
d637b21e1ece6c029c4c29138a0c0a4fab9eb9c0 | e0731ac7bd6a9fcb386d9c5d4181c9d549ab1d02 | /desafio81.py | b0763c623e58fc03a19757c78b94ebd4003ba32e | [] | no_license | lportinari/Desafios-Python-Curso-em-Video | 3ab98b87a2178448b3e53031b86522558c31c099 | cd7662ddfe371e48e5aabc6e86e23dc6337405fb | refs/heads/master | 2020-04-29T11:09:25.689901 | 2019-06-23T23:58:06 | 2019-06-23T23:58:06 | 176,087,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | """Crie um programa que vai ler vários números e colocar em uma lista. Depois disso, mostre:
A) Quantos números foram digitados.
B) A lista de valores, ordenada de forma decrescente.
C) Se o valor 5 foi digitado e está ou não na lista."""
lista = []
while True:
lista.append(int(input('Digite um valor: ')))
... | [
"noreply@github.com"
] | lportinari.noreply@github.com |
b60d9811abfaa3ba27b15660b09b51606387d2df | f907f8ce3b8c3b203e5bb9d3be012bea51efd85f | /cakes_and_donuts.py | 79ab95d0266b3498fe901472d27b5c41b4c5c0eb | [] | no_license | KohsukeKubota/Atcoder-practice | 3b4b986395551443f957d1818d6f9a0bf6132e90 | 52554a2649445c2760fc3982e722854fed5b8ab1 | refs/heads/master | 2020-08-26T15:17:29.344402 | 2019-10-26T11:14:24 | 2019-10-26T11:14:24 | 217,052,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | N = int(input())
cnum = 25
dnum = 14
res = 0
for i in range(cnum):
for j in range(dnum):
amm = 4 * i + 7 * j
if amm == N:
res += 1
if res > 0:
print('Yes')
else:
print('No')
| [
"kohsuke@KohsukeKubotas-MacBook-Air.local"
] | kohsuke@KohsukeKubotas-MacBook-Air.local |
c882d325f55029694257bdc9f8142cef5ca05acf | 0c0168a4676bce7453836a7509e7133044aa8975 | /byceps/services/page/dbmodels.py | c6d87ca51e5d385a04bb0f4730c934f43332f5b6 | [
"BSD-3-Clause"
] | permissive | byceps/byceps | 0aad3c4d974f76c6f8c3674d5539a80c9107b97a | eaee2b7fdc08c76c16ddf7f436110e0b5f1812e5 | refs/heads/main | 2023-09-01T04:03:13.365687 | 2023-09-01T03:28:18 | 2023-09-01T03:28:18 | 40,150,239 | 44 | 23 | BSD-3-Clause | 2023-05-16T18:41:32 | 2015-08-03T22:05:23 | Python | UTF-8 | Python | false | false | 3,850 | py | """
byceps.services.page.dbmodels
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Pages of database-stored content. Can contain HTML and template engine
syntax.
:Copyright: 2014-2023 Jochen Kupperschmidt
:License: Revised BSD (see `LICENSE` file for details)
"""
from __future__ import annotations
from datetime import datetime
from ... | [
"homework@nwsnet.de"
] | homework@nwsnet.de |
12ab1ca8d4888e9bc31dde1f5c9c0d2d9e71550c | ebf5c43e530f450d7057823f62cb66fe7013126a | /homebot/modules/ci/projects/aosp/constants.py | 911a51dc039330a86e4c07c4e38bfdf29859f1db | [] | no_license | dinhsan2000/HomeBot1 | ee58ce35fc20522660d024cb454a478cd25a84a4 | a3729d981b2aadeb05fd1da5ed956079ac3105d1 | refs/heads/master | 2023-06-07T16:38:25.256832 | 2023-05-26T04:53:51 | 2023-05-26T04:53:51 | 343,099,642 | 0 | 0 | null | 2023-05-26T04:55:24 | 2021-02-28T12:27:23 | Python | UTF-8 | Python | false | false | 313 | py | ERROR_CODES = {
0: "Build completed successfully",
4: "Build failed: Missing arguments or wrong building path",
5: "Build failed: Lunching failed",
6: "Build failed: Cleaning failed",
7: "Build failed: Building failed"
}
NEEDS_LOGS_UPLOAD = {
5: "lunch_log.txt",
6: "clean_log.txt",
7: "build_log.txt"
}
| [
"barezzisebastiano@gmail.com"
] | barezzisebastiano@gmail.com |
3980dfc43f8a80ea5205df2679fb75913c1ac86f | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startCirq246.py | b790fec452d5179bbb0820b6e56a6a7ce9cf6fef | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,399 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=3
# total number=46
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
59fae6464fad58ccfcab0782982ac6ed75f7aa20 | e33c95326f6800d435125427a73460a009532a12 | /kotti/tests/test_util.py | 124bd71b4fdf038cd8d2f2aafb5adcc6c6dff055 | [
"BSD-3-Clause-Modification"
] | permissive | stevepiercy/Kotti | 839269f6dc1c45645e5d868b0f17e27bea04b5ac | 45c1627ae9fedbc24d1b817048e153f4d7a2d06d | refs/heads/master | 2021-01-17T21:33:02.795714 | 2012-03-17T22:06:04 | 2012-03-17T22:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,134 | py | from unittest import TestCase
from mock import MagicMock
from pyramid.registry import Registry
from kotti.testing import DummyRequest
from kotti.testing import UnitTestBase
class TestNestedMutationDict(TestCase):
def test_dictwrapper_basics(self):
from kotti.util import NestedMutationDict
data ... | [
"daniel.nouri@gmail.com"
] | daniel.nouri@gmail.com |
0d7d1a2e5a75a423baf17920318f62326ef3922d | e116a28a8e4d07bb4de1812fde957a38155eb6df | /shuidi.py | 9e44887d29f123ec7c6581e5ae7720927105ca78 | [] | no_license | gl-coding/EasyPyEcharts | 5582ddf6be3158f13663778c1038767a87756216 | f9dbe8ad7389a6e2629643c9b7af7b9dc3bfccd5 | refs/heads/master | 2020-09-29T20:48:46.260306 | 2019-12-10T12:52:24 | 2019-12-10T12:52:24 | 227,119,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | #encoding=utf-8
from pyecharts import Liquid
liquid =Liquid("水球图示例")
arg = 1
if arg == 1:
liquid.add("Liquid", [0.6])
liquid.show_config()
liquid.render()
else:
liquid.add("Liquid", [0.6, 0.5, 0.4, 0.3], is_liquid_animation=False, shape='diamond')
liquid.show_config()
liquid.render()
| [
"1451607278@qq.com"
] | 1451607278@qq.com |
023f6ae6a4a24897cfab217ea9ff439c94ea5592 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp-obt/sblp_ut=3.5_rd=1_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=44/params.py | f73081fbfcea69ca72664c1d6db95d6e68538d5e | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.626000',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '1',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'RUN',
'trial': 44,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
e2d024f8f3608a4e08ea97e099b8e312e786e31b | 0860284b9a76ac1921c65ea8694dab8c9b2d6eb1 | /shop/migrations/0003_item_image.py | 6e550bf2d4f303bf92abe55dae13c4465589d7f9 | [] | no_license | alphashooter/tms-z30 | 10dd2f32ab7c9fd150f27883456f5a00f2c2b8fc | 6ce7a93e00b52432dfed22d524e2a377fceed619 | refs/heads/master | 2022-11-21T18:29:37.014735 | 2020-07-29T19:27:12 | 2020-07-29T19:27:12 | 281,730,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | # Generated by Django 3.0.8 on 2020-07-17 17:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0002_order_name'),
]
operations = [
migrations.AddField(
model_name='item',
name='image',
field=... | [
"a.p.strelkov@gmail.com"
] | a.p.strelkov@gmail.com |
1001282a57ffd9fe8fc30ddec023555f6f51e18f | fef8f43025cff430d9aea080885173d9c22b3cb6 | /etalia/nlp/migrations/0007_userfingerprint_state.py | a6ea1a7be2e4ec6595a5e55ede3e01cd5c623ca8 | [] | no_license | GemmaAA1/etalia-open | 30a083141330e227ac1de9855894bfb6e476e3cc | 260ce54d2da53c943d8b82fa9d40bb0c0df918a6 | refs/heads/master | 2023-03-28T03:33:13.771987 | 2017-10-30T00:55:27 | 2017-10-30T00:55:27 | 351,120,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('nlp', '0006_auto_20160608_1959'),
]
operations = [
migrations.AddField(
model_name='userfingerprint',
... | [
"nicolas.pannetier@gmail.com"
] | nicolas.pannetier@gmail.com |
c89d3efc23bc0b5fcc1e8a00c036bb63a7b47892 | 2f63688febd21dc3ae6b19abfa79ad313c820154 | /0654_Maximum_Binary_Tree/try_1.py | 8c0bfb903b3d382b63155f8803749062365dcbb9 | [] | no_license | novayo/LeetCode | cadd03587ee4ed6e35f60294070165afc1539ac8 | 54d0b3c237e0ffed8782915d6b75b7c6a0fe0de7 | refs/heads/master | 2023-08-14T00:35:15.528520 | 2023-07-30T05:56:05 | 2023-07-30T05:56:05 | 200,248,146 | 8 | 1 | null | 2022-11-19T04:37:54 | 2019-08-02T14:24:19 | Python | UTF-8 | Python | false | false | 2,129 | py | class Node:
def __init__(self, val, l_index, r_index, left=None, right=None):
self.val = val
self.l_index = l_index
self.r_index = r_index
self.left = left
self.right = right
class SegmentTree:
def __init__(self, arr):
self.root = self.build(arr)
def bui... | [
"eric_shih@trendmicro.com"
] | eric_shih@trendmicro.com |
6841fc1c51d3d8f1979c9ba3c3f3f3710cdf8a50 | 1819b161df921a0a7c4da89244e1cd4f4da18be4 | /WhatsApp_FarmEasy/env/lib/python3.6/site-packages/tests/integration/api/v2010/account/usage/record/test_monthly.py | 86bba622608f61100272a0416d541f1e3a226cbb | [
"MIT"
] | permissive | sanchaymittal/FarmEasy | 889b290d376d940d9b3ae2fa0620a573b0fd62a0 | 5b931a4287d56d8ac73c170a6349bdaae71bf439 | refs/heads/master | 2023-01-07T21:45:15.532142 | 2020-07-18T14:15:08 | 2020-07-18T14:15:08 | 216,203,351 | 3 | 2 | MIT | 2023-01-04T12:35:40 | 2019-10-19T12:32:15 | JavaScript | UTF-8 | Python | false | false | 5,301 | py | # coding=utf-8
"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from tests import IntegrationTestCase
from tests.holodeck import Request
from twilio.base.exceptions import TwilioException
from twilio.http.response import Response
class MonthlyTestCase(Integratio... | [
"sanchaymittal@gmail.com"
] | sanchaymittal@gmail.com |
be67615eecbd94519a382643f0573620f7f41288 | 5985dde8b1fd6e1f40bf51ccc9a4759cceff4f5a | /MobileNet/handler.py | 2a370fb1f9e8e6d4c98f5e5f8bd9ca067ed4dd04 | [] | no_license | johndpope/Session3-FaceRecognition | 9297811f337c24b3c5c999a8f31b17c5e4d915d6 | 66cc77a42b6e85c7e5d967fe660954ff4e097349 | refs/heads/master | 2022-12-04T09:56:53.323310 | 2020-08-16T18:03:15 | 2020-08-16T18:03:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,957 | py | try:
import unzip_requirements
except ImportError:
pass
import torch
import torchvision
import torchvision.transforms as transforms
from PIL import Image
import boto3
import os
import io
import json
import base64
from requests_toolbelt.multipart import decoder
print("Import End...")
S3_BUCKET = os.enviro... | [
"noreply@github.com"
] | johndpope.noreply@github.com |
1554bdd605c0aae62a8a75aebbd755fc93e965bd | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2444/60763/297365.py | 38960911bc45bebc5c79af9980fd6a246755bedb | [] | 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 | 458 | py | t = (''+input())
s = []
s.append(t[0:t.find('k')-2])
s.append(t[t.find('k'):t.find('t')-2])
s.append(t[t.find('t'):len(t)])
s1 = eval(s[0][s[0].find('['):len(s[0])])
k = int(s[1][s[1].rfind(' '):len(s[1])])
t = int(s[2][s[2].rfind(' '):len(s[2])])
isFit = False
for i in range(len(s1)):
for j in range(i+1,min(i+k,le... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
f4319ed7847d2e481fad2b86448abaaccce5248e | 87e70b50a582c2bed372e2858438493ee1105905 | /Description/extracter.py | 26e7fa1f838684647bdef9800d1013df8d4dc72e | [
"MIT"
] | permissive | adi-797/AIAMI | 868b96545ffa5ef9ddb214960147c312a956d119 | 37ea2bf61e85bf879a0f4a1014f2e93b87301582 | refs/heads/master | 2020-04-10T13:07:43.580065 | 2017-05-18T22:39:38 | 2017-05-18T22:39:38 | 161,041,442 | 1 | 0 | MIT | 2018-12-09T13:19:48 | 2018-12-09T13:19:48 | null | UTF-8 | Python | false | false | 7,042 | py | # -*- coding: utf-8 -*-
import numpy as np
import scipy.stats
from pylab import imshow, show, figure
import essentia.standard
from utils import config
def extractAllDescriptors(signal):
"""
Extracts the descriptors expected for the analysis of a given audio file.
"""
described = {}
described[... | [
"andimarafioti@gmail.com"
] | andimarafioti@gmail.com |
41764b41e79692b1c50cae5f31e2951e9799da89 | aef40813a1b92cec0ea4fc25ec1d4a273f9bfad4 | /Q05__/29_Minesweeper/test.py | e58826b09c60caa3dfe49e81f51a85d1227372c6 | [
"Apache-2.0"
] | permissive | hsclinical/leetcode | e9d0e522e249a24b28ab00ddf8d514ec855110d7 | 48a57f6a5d5745199c5685cd2c8f5c4fa293e54a | refs/heads/main | 2023-06-14T11:28:59.458901 | 2021-07-09T18:57:44 | 2021-07-09T18:57:44 | 319,078,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | #!/usr/bin/python
from Solution import Solution
obj = Solution()
A = [["E","E","E","E","E"],["E","E","M","E","E"],["E","E","E","E","E"],["E","E","E","E","E"]]
B = [3,0]
out = obj.updateBoard(A, B)
print(out)
| [
"luhongisu@gmail.com"
] | luhongisu@gmail.com |
4c7e8d890fdb26a9cb63bf0c0f019cabf548f029 | ae33eba00ff1e0742d74948a38a779cabb825a84 | /tests/spdx/test_main.py | 00e0910044d704a32244bf58fc1231526e67f6f7 | [
"LicenseRef-scancode-proprietary-license",
"LGPL-3.0-or-later",
"LicenseRef-scancode-free-unknown",
"LGPL-3.0-only",
"MIT"
] | permissive | renovate-tests/poetry | a687672448c4baa1027b2b36bf46c1f9af5107e7 | 7c9569cd13c151c7682a7bfda0f1ec9e2ff07100 | refs/heads/master | 2020-12-15T14:13:40.895896 | 2020-06-30T13:34:46 | 2020-06-30T13:34:46 | 233,995,693 | 0 | 0 | MIT | 2020-01-15T11:24:06 | 2020-01-15T04:07:17 | Python | UTF-8 | Python | false | false | 1,111 | py | import pytest
from poetry.spdx import license_by_id
def test_license_by_id():
license = license_by_id("MIT")
assert license.id == "MIT"
assert license.name == "MIT License"
assert license.is_osi_approved
assert not license.is_deprecated
license = license_by_id("LGPL-3.0-or-later")
asse... | [
"sebastien@eustace.io"
] | sebastien@eustace.io |
03f4010173fe4b454467e5826a41e957adbd509e | 27ff56afaeff7cf6f38cf457896b50dee90b1397 | /test_code.py | eec8fe0efeceeec91ee94e8978ef8d89f7e7c3dd | [] | no_license | romulovitor/Dica_Python_Linkedin | 55352bdc7c76c1ce7b88d0e5e36be37bca7dd466 | 9c1e5cf26681188935e0b3a41070960fe5dfd9b8 | refs/heads/master | 2023-03-13T04:14:37.778946 | 2021-03-01T10:43:04 | 2021-03-01T10:43:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | import socket
import sys
from geolite2 import geolite2
host = ' '.join(sys.argv[1:])
ip = socket.gethostbyname(host)
reader = geolite2.reader()
def get_ip_location(ip):
location = reader.get(ip)
try:
country = location["country"]["names"]["en"]
except:
country = "Unknown"
try:
... | [
"ofc.erickson@gmail.com"
] | ofc.erickson@gmail.com |
fc06980868a73d533603e5f088b0902c2a59e497 | 0c4e5d83718644a0698c8a9faf08eab80932403d | /spacy-en_core_web_sm/test_data.py | 3bba0e85c799f67adf1912a8d8da079ddba8123e | [
"Apache-2.0"
] | permissive | danielfrg/conda-recipes | 8a00f931345fce1d8e0f5f07a78314290c4766d8 | 1d4f4ae8eba54d007659b359f0c9e0ea2c52eb0a | refs/heads/master | 2021-01-01T19:49:46.149994 | 2019-05-17T04:42:46 | 2019-05-17T04:42:46 | 98,701,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | import sys
import spacy
from spacy import util
from spacy.deprecated import resolve_model_name
def is_present(name):
data_path = util.get_data_path()
model_name = resolve_model_name(name)
model_path = data_path / model_name
return model_path.exists()
assert is_present('en') is True
# Test for english... | [
"df.rodriguez143@gmail.com"
] | df.rodriguez143@gmail.com |
cb4ebb211a087c41d1a00d5f5749e3a1bf9ef481 | 27c9b374a75550252ddfe5da400fad891c6de590 | /chars/link_scripts/Camera.py | ca10858645dead4a643555b156084f88dd92eff2 | [] | no_license | Dynamique-Zak/Zelda_BlenderGame | 03065416939deb3ce18007909ccc278c736baad0 | 0f5d5d15bfa79e9f8ea15f0ebcb76bce92f77a21 | refs/heads/master | 2016-08-13T00:12:34.746520 | 2016-02-19T23:18:27 | 2016-02-19T23:18:27 | 49,572,402 | 30 | 16 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | from bge import logic
scene = logic.getCurrentScene()
def obstacle(cont):
ray = cont.sensors["RayForward"]
if ray.positive:
hitObj = ray.hitObject
if hitObj.name != "Link":
cam = scene.objects['MainCam']
logic.camObstaclePosition = ray.hitPosition
cam.worldPosition = logic.camObstaclePosition
else:
... | [
"schartier.isaac@gmail.com"
] | schartier.isaac@gmail.com |
dd6f62558664e5e4b170e264cc8c392da2512c42 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/peering/v20210601/get_connection_monitor_test.py | 3a6694d9417c7518103e56ca0869515a10726815 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,852 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
dc07aacdc0cad289a408330ade332418e2a6e981 | ddd466457316662a1455bae429740eb3c8411444 | /intro/3_6_cond_if_bonus_pints.py | 9deed81970a0407735ec582a44c78263e764d6b5 | [] | no_license | fingerman/python_fundamentals | 9ef46e51d6e9b8328e9c949fa0f807f30bd6e482 | 1fb604220922530d1171200a3cf3a927c028a6ed | refs/heads/master | 2023-01-09T12:02:26.712810 | 2020-01-22T16:12:32 | 2020-01-22T16:12:32 | 151,728,846 | 0 | 0 | null | 2022-12-27T15:34:12 | 2018-10-05T13:58:10 | Python | UTF-8 | Python | false | false | 197 | py | a = int(input())
b = 0
if a <= 100:
b = 5
if a > 100:
b = 0.2*a
if a > 1000:
b = 0.1*a
if a % 2 == 0:
b += 1
if a % 10 == 5:
b += 2
print(b)
print(a+b)
| [
"adamov.george@gmail.com"
] | adamov.george@gmail.com |
ab916be697d2f95c148df57c3d60fd791d1f76dd | ca6efbd1754b4d65ef9595c648b9d766c96abcbe | /douyin_spider/handler/video.py | 0a67086353e78e9db4d0f1aa2ac8d7eb91403367 | [] | no_license | JaleeLi/douyin_spider | cc30b7bceb62d1440b97de99406b035c0aff9c06 | aa3df5b0fddc633d4c6ae21c509514ccb664fbb2 | refs/heads/master | 2020-05-25T03:52:51.863799 | 2019-05-16T12:49:00 | 2019-05-16T12:49:00 | 187,615,023 | 1 | 0 | null | 2019-05-20T09:59:25 | 2019-05-20T09:59:25 | null | UTF-8 | Python | false | false | 442 | py | from douyin_spider.handler.media import MediaHandler
from douyin_spider.models.video import Video
class VideoHandler(MediaHandler):
"""
video handler,handle video item
"""
async def handle(self, item, **kwargs):
"""
handle item use VideoHandler
:param item:
:param kwarg... | [
"344616042@qq.com"
] | 344616042@qq.com |
46fb77e37f4b85850d94f91b29ec1d63e33535c5 | 0901a62c11d1ba11df4cee28bb3fa2b32398a7d8 | /django_blog/users/views.py | 3a24e8b5fc8be5121b2b36f0ec416cbd5d68b871 | [] | no_license | mattg317/django_blog | 80df4e46b687edf83ddd67e9cbda1f62c62ec6a0 | bf60759e252f1f169a8ee26e5fba70c73ecc48fa | refs/heads/master | 2022-12-21T21:26:24.401316 | 2019-03-08T16:16:57 | 2019-03-08T16:16:57 | 166,888,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,857 | py | from django.shortcuts import render, redirect
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from .forms import UserRegisterForm, UserUpdateForm, ProfileUpdateForm
def register(request):
if request.method == 'POST':
form = UserRegisterForm(request.POST)
... | [
"mattg317@gmail.com"
] | mattg317@gmail.com |
9f07ff6a092fb565e50403ae26d8059fc6a6a492 | ae81b16cf4242d329dfcb055e85fafe87262cc7f | /leetcode/NoIdea/383. 赎金信.py | 20c36c9cacc2ffd270e4a627f23bd2d4438920e1 | [] | no_license | coquelin77/PyProject | 3d2d3870b085c4b7ff41bd200fe025630969ab8e | 58e84ed8b3748c6e0f78184ab27af7bff3778cb8 | refs/heads/master | 2023-03-18T19:14:36.441967 | 2019-06-19T02:44:22 | 2019-06-19T02:44:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,545 | py | '''给定一个赎金信 (ransom) 字符串和一个杂志(magazine)字符串,判断第一个字符串ransom能不能由第二个字符串magazines里面的字符构成。如果可以构成,返回 true ;否则返回 false。
(题目说明:为了不暴露赎金信字迹,要从杂志上搜索各个需要的字母,组成单词来表达意思。)
注意:
你可以假设两个字符串均只含有小写字母。
canConstruct("a", "b") -> false
canConstruct("aa", "ab") -> false
canConstruct("aa", "aab") -> true'''
# class Solution:
# def canC... | [
"zhangyiming748@users.noreply.github.com"
] | zhangyiming748@users.noreply.github.com |
816535d45c0c52df62f91b8f07462791b8636d11 | 0547d1826e99eedb959a3463520d73985a3b844e | /Data Science for Everyone Track/21-Supervised Learning with scikit-learn/01-Classification/06-The digits recognition dataset.py | fbce23254c4a24f165f8aa42379d00b6e1fd15e8 | [] | no_license | abhaysinh/Data-Camp | 18031f8fd4ee199c2eff54a408c52da7bdd7ec0f | 782c712975e14e88da4f27505adf4e5f4b457cb1 | refs/heads/master | 2022-11-27T10:44:11.743038 | 2020-07-25T16:15:03 | 2020-07-25T16:15:03 | 282,444,344 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,828 | py | '''
The digits recognition dataset
Up until now, you have been performing binary classification, since the target variable had two possible outcomes.
Hugo, however, got to perform multi-class classification in the videos, where the target variable could take on
three possible outcomes. Why does he get to have all the ... | [
"abhaysinh.surve@gmail.com"
] | abhaysinh.surve@gmail.com |
9ee6c69083ccaf093a1dbc5105d1ea6cc399ede3 | 0e91030c47071029d978dbfb9e7a30ae6826afe5 | /web/web_po/web_po_v4/Common/basepage.py | de7e3e53144ca52b72036ecc9720f8e8233391b4 | [] | no_license | liqi629/python_lemon | 095983fadda3639b058043b399180d19f899284b | bc5e6e6c92561ba9cec2798b7735505b377e9cd6 | refs/heads/master | 2023-02-04T00:57:09.447008 | 2020-12-27T14:46:31 | 2020-12-27T14:46:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,440 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
from selenium.webdriver.remote.webdriver import WebDriver
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import logging
import time
import os
from web.web_po.web_po_v4.Common.dir_config import screens... | [
"396167189@qq.com"
] | 396167189@qq.com |
253f5a0085daaac0ec6ef0174ac93391d02e11f3 | 5d0ebc19b778ca0b2e02ac7c5d4a8d5bf07d9b23 | /astropy/cosmology/tests/test_units.py | 130aa03c830c0fba759cb6eddf1ee7ade2ae00a5 | [
"BSD-3-Clause"
] | permissive | adivijaykumar/astropy | 8ea621f20b9c8363b2701c825c526d650c05258c | 0fd7ae818fed3abe4c468170a507d52ef91dc7e8 | refs/heads/main | 2021-12-03T08:12:33.558975 | 2021-09-03T15:07:49 | 2021-09-03T15:07:49 | 402,863,896 | 0 | 1 | BSD-3-Clause | 2021-09-03T18:25:55 | 2021-09-03T18:25:54 | null | UTF-8 | Python | false | false | 8,121 | py | # -*- coding: utf-8 -*-
"""Testing :mod:`astropy.cosmology.units`."""
##############################################################################
# IMPORTS
import contextlib
import pytest
import astropy.cosmology.units as cu
import astropy.units as u
from astropy.cosmology import Planck13, default_cosmology
fro... | [
"nstarkman@protonmail.com"
] | nstarkman@protonmail.com |
1efcba01d6b7890c5dfab687f6d1b9fd2ee7078e | 00453a0be06ecc8760a3c36ea302bc1f047a644f | /convoy/validator.py | 71f599c7cbcf201ed971c30366577c93774384e2 | [
"MIT"
] | permissive | Nepomuceno/batch-shipyard | 40c40e01bb49550eb1090f56cdf3da91b21a1bbb | 2d67411257e0501ac4443f44e4d27e4a8262be8d | refs/heads/master | 2020-03-18T18:53:47.824023 | 2018-05-30T05:55:50 | 2018-05-30T06:04:43 | 135,121,497 | 0 | 0 | null | 2018-05-28T06:54:56 | 2018-05-28T06:54:56 | null | UTF-8 | Python | false | false | 3,388 | py | #!/usr/bin/env python3
# Copyright (c) Microsoft Corporation
#
# All rights reserved.
#
# MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without... | [
"fred.park@microsoft.com"
] | fred.park@microsoft.com |
ad980ce29098e193a27877629a6e43235f3d06e7 | 19768aa46de8fa5a52639826a80959e65f7b8e66 | /authapp/banned.py | 2096d5f8efc79aeb3f85391923d07dd43f713383 | [] | no_license | hongmingu/macawl | 0aff0a0d55acb11f06e979df2dee995941cdd5d0 | 49acead1290dd977263cb4086a621feed083fc40 | refs/heads/master | 2020-04-13T02:09:44.228294 | 2019-02-13T11:24:38 | 2019-02-13T11:24:38 | 162,822,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | BANNED_PASSWORD_LIST = [
'password', 'qwerty', 'superman', '123456', '1234567', '12345678', '123456789', '1234567890', '012345', '0123456',
'01234567', '012345678', '0123456789', 'macawl', '111111', 'aaaaaa'
]
BANNED_USERNAME_LIST = [
'macawl', 'robots.txt',
]
| [
"gmh397@nate.com"
] | gmh397@nate.com |
ae9d90732494a776b87eca0fe505628f0a211f2c | 8a7ef686efdd9add693986be08d9a1b8f561236e | /core/RestAPI/utils.py | 46c1af8a9eb7902cfbec167e5ed9f51ba1307bba | [
"MIT"
] | permissive | thebao/kalliope | 3b0cffdcd746f107e4557e53407196eae1194f5e | a820e85ee56c9e3a34e1130e32ccef52cd58e9f9 | refs/heads/master | 2021-01-13T13:58:46.217018 | 2016-11-04T11:02:34 | 2016-11-04T11:02:34 | 72,927,345 | 0 | 0 | null | 2016-11-05T13:19:11 | 2016-11-05T13:19:11 | null | UTF-8 | Python | false | false | 1,045 | py | from functools import wraps
from flask import request, Response
from core.ConfigurationManager import SettingLoader
def check_auth(username, password):
"""This function is called to check if a username /
password combination is valid.
"""
settings = SettingLoader.get_settings()
return username ==... | [
"nico.marcq@gmail.com"
] | nico.marcq@gmail.com |
d48efa115fb2ec6bccb9a0f884cb915557399918 | e8d42df817835b5fa83829ac6937887de127faa1 | /images6/exif.py | 4e1cb31848eda13e9290f99fb92271bf13c288c8 | [
"BSD-2-Clause",
"MIT"
] | permissive | eblade/images6 | 98f8dda84b1754ee1a306914dd2cf57a56d251bd | d68f79988a2b195a870efcc0bb368a7de474a2bc | refs/heads/master | 2020-04-03T22:04:45.715969 | 2019-07-29T17:25:57 | 2019-07-29T17:25:57 | 59,519,861 | 0 | 0 | null | 2016-11-02T23:23:57 | 2016-05-23T21:33:37 | Python | UTF-8 | Python | false | false | 1,989 | py | """Helper functions to convert exif data into better formats"""
orientation2angle = {
'Horizontal (normal)': (None, 0),
'Mirrored horizontal': ('H', 0),
'Rotated 180': (None, 180),
'Mirrored vertical': ('V', 0),
'Mirrored horizontal then rotated 90 CCW': ('H', -90),
'Rotated 90 CCW': (None, -90),
... | [
"johan@egneblad.se"
] | johan@egneblad.se |
6ef7593eaf4523b81bda588bc7f80fcb2b2b1983 | a680b681210a070ff6ac3eab4ed3ea5a125991d6 | /setup.py | 971ef4d637bfcefe9f5b51d97ad073c92ddc4408 | [
"BSD-2-Clause"
] | permissive | moonbirdxp/PSpider | bb6da1de6a78d86ee8704b6eb8981773a1a31d8c | 4d7238b4ebafd129ecc5dd1095ce1ece313945ec | refs/heads/master | 2020-06-22T03:46:17.320420 | 2019-07-16T03:26:20 | 2019-07-16T04:44:17 | 197,624,496 | 0 | 0 | BSD-2-Clause | 2019-10-15T01:04:19 | 2019-07-18T16:48:09 | Python | UTF-8 | Python | false | false | 502 | py | # _*_ coding: utf-8 _*_
"""
install script: python3 setup.py install
"""
from setuptools import setup, find_packages
setup(
name="spider",
version="2.4.1",
author="xianhu",
keywords=["spider", "crawler", "multi-threads", "multi-processes", "proxies"],
packages=find_packages(exclude=("test.*",)),
... | [
"qixianhu@qq.com"
] | qixianhu@qq.com |
8665cf78ce4dd184cdd2109946d8f8d25e435330 | b26c41926fa3a7c2c061132d80e91a2750f2f468 | /tensorflow_probability/python/experimental/nn/variational_base.py | d6493e1392c98610b0dde840bd906e29b61b0ba5 | [
"Apache-2.0"
] | permissive | tensorflow/probability | 22e679a4a883e408f8ef237cda56e3e3dfa42b17 | 42a64ba0d9e0973b1707fcd9b8bd8d14b2d4e3e5 | refs/heads/main | 2023-09-04T02:06:08.174935 | 2023-08-31T20:30:00 | 2023-08-31T20:31:33 | 108,053,674 | 4,055 | 1,269 | Apache-2.0 | 2023-09-13T21:49:49 | 2017-10-23T23:50:54 | Jupyter Notebook | UTF-8 | Python | false | false | 7,602 | py | # Copyright 2019 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
22e0763bb5fdccc77c69692bfef9870bcca55aca | 3481356e47dcc23d06e54388153fe6ba795014fa | /comprehensive_test/BaseStruct/BaseStruct/BaseStruct.py | b17d76fdf85e1568f29014674e40ae6663232196 | [] | no_license | Chise1/pyhk | c09a4c5a06ce93e7fe50c0cc078429f7f63fcb2f | 44bdb51e1772efad9d0116feab1c991c601aa68a | refs/heads/master | 2021-01-03T08:24:47.255171 | 2020-02-29T04:05:30 | 2020-02-29T04:05:30 | 239,998,705 | 1 | 0 | null | 2020-02-28T07:35:46 | 2020-02-12T11:40:39 | C | UTF-8 | Python | false | false | 7,927 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
def... | [
"chise123@live.com"
] | chise123@live.com |
b95fc2cc946058c79099fb52b43c4dd92c36b741 | 0b86600e0288c0fefc081a0f428277a68b14882e | /tortue/tortue_2.py | c2f8f226561cdee9a094b36f6cc92224f645b31b | [] | no_license | Byliguel/python1-exo7 | 9ede37a8d2b8f384d1ebe3d612e8c25bbe47a350 | fbf6b08f4c1e94dd9f170875eee871a84849399e | refs/heads/master | 2020-09-22T10:16:34.044141 | 2019-12-01T11:52:51 | 2019-12-01T11:52:51 | 225,152,986 | 1 | 0 | null | 2019-12-01T11:51:37 | 2019-12-01T11:51:36 | null | UTF-8 | Python | false | false | 849 | py |
##############################
# Tortue
##############################
##############################
# Activité 2 - Boucle "pour"
##############################
##############################
# Question 1
from turtle import *
# Un pentagone
width(5)
color('blue')
for i in range(5):
forward(100)
left(72)
... | [
"arnaud.bodin@math.univ-lille1.fr"
] | arnaud.bodin@math.univ-lille1.fr |
2220848f9b639102050af94c3eaf9af3d8c8c619 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /oF8T7Apf7jfagC4fD_10.py | 1b90b98f9bbbebbad5d49653d4c2612e67ba78bc | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py |
def antipodes_average(lst):
lst1, lst2 = lst[:len(lst) // 2], lst[len(lst) // 2:][::-1]
return [(x + y) / 2 for x, y in zip(lst1, lst2)]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
15e9b01fef356ff7e0ed0f51586e912e135b0326 | d4a88e52bb2b504208fc8b278400791409c69dbb | /src/pyaC/mtools/sanityOfmtools.py | 090f52e68939621761d3f293755fe1ba6dad9178 | [
"MIT"
] | permissive | pcschneider/PyAstronomy | 23253ca57a35c2c4ed2ae01037f6512581e784bb | 42c2200e4d45832935b7a3d9b3b05aeb30c54b50 | refs/heads/master | 2020-04-05T22:53:02.187609 | 2017-03-02T12:14:56 | 2017-03-02T12:14:56 | 52,076,073 | 0 | 0 | null | 2016-02-19T09:17:26 | 2016-02-19T09:17:25 | null | UTF-8 | Python | false | false | 5,123 | py | from __future__ import print_function
import unittest
import os
class SanityOfmtools(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
if os.path.isfile("test.tmp"):
os.remove("test.tmp")
def sanity_numericalDerivative(self):
"""
mtools: Checking accuracy of numerical... | [
"stefan.czesla@hs.uni-hamburg.de"
] | stefan.czesla@hs.uni-hamburg.de |
5c805124bb7ea1d536d8e28ac2d185d90ef5a508 | d17403d0e6ffb7e32798df921e287ff60c8461f8 | /GuoMei/spiders/shop.py | 4a6f840433f0dd2f6da216f1748df92eb095dc3c | [] | no_license | beautifulmistake/GuoMeiMall | 7d29c67bb153f7f9b5924e9277fc13580b483fad | 9537c926c2891905732972fc061f8a3da2af6439 | refs/heads/master | 2020-05-31T06:43:41.858288 | 2019-06-11T08:45:30 | 2019-06-11T08:45:30 | 190,148,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,851 | py | """
此爬虫是根据关键字采集国美的店铺信息
响应的数据为 json 格式
"""
import json
import os
import scrapy
from scrapy.exceptions import CloseSpider
from scrapy.signals import spider_closed
from scrapy.spidermiddlewares.httperror import HttpError
from scrapy_redis.spiders import RedisSpider
from twisted.internet.error import TCPTimedOutError, DNS... | [
"17319296359@163.com"
] | 17319296359@163.com |
b92f9667ab1f08bc8ef15d2340b5e322bfb3e78d | 522edf49c560a9d8857888d81500ecfd9d106933 | /WayneBlog/WayneBlog/autocomplete.py | e1968bfa4787e65f20e6208c09f6649e4e1b27c5 | [] | no_license | WayneChen1994/WayneBlog | d5590b48151ef6ffef5b6e461069bbd0113aefc6 | 79355c11976fdf84e5dc35bda628a2c4756676d0 | refs/heads/master | 2020-04-29T07:29:01.977198 | 2019-04-19T15:22:56 | 2019-04-19T15:22:56 | 175,945,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | from dal import autocomplete
from blog.models import Category, Tag
class CategoryAutocomplete(autocomplete.Select2QuerySetView):
def get_queryset(self):
if not self.request.user.is_authenticated():
return Category.objects.none()
qs = Category.objects.filter(owner=self.request.user)
... | [
"waynechen1994@163.com"
] | waynechen1994@163.com |
40cfecdd4710615953024f1d17a719922c50da7a | 3365e4d4fc67bbefe4e8c755af289c535437c6f4 | /.history/src/core/app/GUI_20170808112214.py | a41ca5b589222a9d9f1ef86e53b552cdda38bb1b | [] | no_license | kiranhegde/OncoPlotter | f3ab9cdf193e87c7be78b16501ad295ac8f7d2f1 | b79ac6aa9c6c2ca8173bc8992ba3230aa3880636 | refs/heads/master | 2021-05-21T16:23:45.087035 | 2017-09-07T01:13:16 | 2017-09-07T01:13:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,793 | py | #! python3
import ctypes
import os
import sys
from PyQt5 import QtCore, QtGui
from PyQt5.QtWidgets import (QAction, QApplication, QFileDialog, QFrame,
QMainWindow, QPushButton, QSizePolicy, QSplitter,
QTextEdit, QVBoxLayout, QWidget)
#GUI
import core.gui.mai... | [
"ngoyal95@terpmail.umd.edu"
] | ngoyal95@terpmail.umd.edu |
4a6477389290b79cec799eb18a7fb2e6883e2a89 | 42f418a4535c269ea1fbf2a023acf9805ee72c0a | /exploration/executables/December17/parabola_configurations.py | 934f2503cab59c915d941033f4c014dc5cf8b03f | [] | no_license | yumilceh/artificialbabbling | 10e6fe2fe19edbc0263c61b2897514cbae9a1c1f | 680b720e48b787bac1c626c597fd690159edd777 | refs/heads/master | 2022-11-12T22:21:38.606407 | 2018-04-24T14:37:20 | 2018-04-24T14:37:20 | 270,961,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,850 | py | """
Created on May 17, 2017
@author: Juan Manuel Acevedo Valle
"""
from exploration.algorithm.utils.competence_funcs import comp_Moulin2013_expl as comp_func_expl
from exploration.algorithm.utils.competence_funcs import comp_Moulin2013 as comp_func_
# from exploration.models.sensorimotor.ExplautoSM import ExplautoSM... | [
"jmavbpl@gmail.com"
] | jmavbpl@gmail.com |
ded8721ccec0deb754fd31df06a0b48f471fc4e1 | 7312266874e50682cf909f4b77260c9a69f13999 | /python/packages/scipy-0.6.0/scipy/sparse/setup.py | 9d54d45325a529b3cddd812510c4297bb0f15697 | [] | no_license | mbentz80/jzigbeercp | e354695b90a72c7fe3c5c7ec7d197d9cbc18d7d9 | 1a49320df3db13d0a06fddb30cf748b07e5ba5f0 | refs/heads/master | 2021-01-02T22:44:16.088783 | 2008-08-27T23:05:47 | 2008-08-27T23:05:47 | 40,231 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | #!/usr/bin/env python
from os.path import join
import sys
def configuration(parent_package='',top_path=None):
import numpy
from numpy.distutils.misc_util import Configuration
config = Configuration('sparse',parent_package,top_path)
config.add_data_dir('tests')
# Adding a Python file as a "sourc... | [
"mb434@cornell.edu"
] | mb434@cornell.edu |
96f690a53f749d69fdfe0fbb6ef5e7280b753b9e | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/app/util/bin/format/coff/CoffSectionHeader3.pyi | 2d208f75241a47f7c45a55cecba6be313298d43c | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,087 | pyi | from typing import List
import ghidra.app.util.bin
import ghidra.app.util.bin.format.coff
import ghidra.program.model.address
import ghidra.program.model.data
import ghidra.program.model.lang
import java.io
import java.lang
class CoffSectionHeader3(ghidra.app.util.bin.format.coff.CoffSectionHeader):
"""
A 0x2... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
523591afd5c27c3429d387457b5d75979d089531 | 824f831ce0921b3e364060710c9e531f53e52227 | /Leetcode/Dynamic_Programming/LC-053. Maximum Subarray.py | e6b7d456cfe91003151f2a49f92a98deefd53cc7 | [] | no_license | adityakverma/Interview_Prepration | e854ff92c10d05bc2c82566ea797d2ce088de00a | d08a7f728c53943e9a27c33f8e4249633a69d1a6 | refs/heads/master | 2020-04-19T19:36:06.527353 | 2019-06-15T23:02:30 | 2019-06-15T23:02:30 | 168,392,921 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,000 | py | # Tags: Array, Dynamic Programming, Divide & Conquer, Microsoft, LinkedIn
# ========================================================================
# Given an integer array nums, find the contiguous subarray
# (containing at least one number) which has the largest sum and
# return its sum.
# Example:
# Input: ... | [
"noreply@github.com"
] | adityakverma.noreply@github.com |
dd539a1c149d1e02e104ac2f58495f0374684f81 | bdeb707894a4647cf46ab136e2ed5e7752094897 | /hive/server/condenser_api/tags.py | a75c6be3d711cd4314f922d71ff246c9fa559459 | [
"MIT"
] | permissive | Jolly-Pirate/hivemind | e5f636070b1e51bcd047678b758d5617ad4d83ec | 2bd91ece6c32f355bca40a156f2a5dc3d4d882bb | refs/heads/master | 2020-05-30T09:01:22.910947 | 2019-04-11T19:25:48 | 2019-04-11T19:25:48 | 189,629,870 | 0 | 0 | MIT | 2019-05-31T17:05:18 | 2019-05-31T17:01:27 | Python | UTF-8 | Python | false | false | 1,902 | py | """condenser_api trending tag fetching methods"""
from aiocache import cached
from hive.server.condenser_api.common import (return_error_info, valid_tag, valid_limit)
@return_error_info
@cached(ttl=7200, timeout=1200)
async def get_top_trending_tags_summary(context):
"""Get top 50 trending tags among pending post... | [
"roadscape@users.noreply.github.com"
] | roadscape@users.noreply.github.com |
f27caf7428d9cbda9fc1a6c9fffb03dc2afaec0b | 83cf4aedab8f8b54753dfca1122346a88faa3c05 | /prysm/__init__.py | 7028af45080d8151982adc1e43a33f7bf9e984b8 | [
"MIT"
] | permissive | tealtortoise/prysm | 073c2a6bea10c390fb7be1d708ecab666a91bdb1 | 3c17cb7b6049a36a1f8b6a0035c216ca1078aee1 | refs/heads/master | 2022-05-08T05:30:21.819821 | 2019-04-12T11:49:48 | 2019-04-12T11:49:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | """prysm, a python optics module."""
from pkg_resources import get_distribution
from prysm.conf import config
from prysm.convolution import Convolvable
from prysm.detector import Detector, OLPF, PixelAperture
from prysm.pupil import Pupil
from prysm.psf import PSF, AiryDisk
from prysm.otf import MTF
from prysm.interf... | [
"brandondube@gmail.com"
] | brandondube@gmail.com |
c6ddd34116e222c160be95243b8b1df1eb4c67b3 | 411d9c64d2f2142f225582f2b4af1280310426f6 | /sk/logistic.py | b193e93f1811528873b0dbd74620a83c1a463b8f | [] | no_license | 631068264/learn-sktf | 5a0dfafb898acda83a80dc303b6d6d56e30e7cab | 4ba36c89003fca6797025319e81fd9863fbd05b1 | refs/heads/master | 2022-10-15T03:29:38.709720 | 2022-09-24T12:56:41 | 2022-09-24T12:56:41 | 133,602,172 | 0 | 0 | null | 2022-09-24T12:57:23 | 2018-05-16T02:57:01 | Python | UTF-8 | Python | false | false | 1,522 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@author = 'wyx'
@time = 2018/5/13 18:27
@annotation = ''
"""
import numpy as np
from matplotlib import pyplot as plt
from sklearn import datasets
iris = datasets.load_iris()
# petal width
X = iris["data"][:, 3:]
# 1 if Iris-Virginica, else 0
y = (iris["target"] == 2).a... | [
"l631068264@gmail.com"
] | l631068264@gmail.com |
e12e3975e4e78c3b035185b63e0267d080e2e194 | 366c30997f60ed5ec19bee9d61c1c324282fe2bb | /deb/openmediavault/usr/sbin/omv-mkaptidx | b4820779bddb8f05d68daeb91a1c9571cb97b67d | [] | no_license | maniacs-ops/openmediavault | 9a72704b8e30d34853c991cb68fb055b767e7c6e | a1c26bdf269eb996405ce6de72211a051719d9e7 | refs/heads/master | 2021-01-11T17:28:04.571883 | 2017-01-19T22:06:35 | 2017-01-19T22:06:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,989 | #!/usr/bin/env python3
#
# This file is part of OpenMediaVault.
#
# @license http://www.gnu.org/licenses/gpl.html GPL Version 3
# @author Volker Theile <volker.theile@openmediavault.org>
# @copyright Copyright (c) 2009-2017 Volker Theile
#
# OpenMediaVault is free software: you can redistribute it and/or modify
# ... | [
"votdev@gmx.de"
] | votdev@gmx.de | |
fb3357f74e50b16b2e9ff2a5c707a1cd76f60390 | d9c95cd0efad0788bf17672f6a4ec3b29cfd2e86 | /disturbance/migrations/0102_sitetransferapiarysite_customer_selected.py | 244cec5a7829e05fb0fa9710029b020299d7fdb4 | [
"Apache-2.0"
] | permissive | Djandwich/disturbance | cb1d25701b23414cd91e3ac5b0207618cd03a7e5 | b1ba1404b9ca7c941891ea42c00b9ff9bcc41237 | refs/heads/master | 2023-05-05T19:52:36.124923 | 2021-06-03T06:37:53 | 2021-06-03T06:37:53 | 259,816,629 | 1 | 1 | NOASSERTION | 2021-06-03T09:46:46 | 2020-04-29T03:39:33 | Python | UTF-8 | Python | false | false | 483 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2020-07-08 02:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('disturbance', '0101_auto_20200708_1021'),
]
operations = [
migrations.AddFi... | [
"brendan.blackford@dbca.wa.gov.au"
] | brendan.blackford@dbca.wa.gov.au |
bb2be937acf8912948c17324039d31f3142c2686 | 10fbe5526e5f0b8588b65f70f088cd86b6e9afbe | /rqwywo/migrations/0007_mahcgzunnb.py | b7a865d124c035fd8b4fe42e8e9ea49a6e5daaa5 | [] | no_license | MarkusH/django-migrations-benchmark | eb4b2312bb30a5a5d2abf25e95eca8f714162056 | e2bd24755389668b34b87d254ec8ac63725dc56e | refs/heads/master | 2016-09-05T15:36:45.250134 | 2015-03-31T23:44:28 | 2015-03-31T23:44:28 | 31,168,231 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('digmcd', '0014_auto_20150218_1625'),
('rqwywo', '0006_auto_20150218_1623'),
]
operations = [
migrations.CreateModel(... | [
"info@markusholtermann.eu"
] | info@markusholtermann.eu |
05a061fd125b2b45d56a164419cb1734443f7bcd | 21b4585de4a0eacdb0d1e488dfae53684bb6564e | /111. Minimum Depth of Binary Tree.py | 8df278cffa42331ca4af1a0e9c38c21b64172b2d | [] | no_license | gaosq0604/LeetCode-in-Python | de8d0cec3ba349d6a6462f66286fb3ddda970bae | 57ec95779a4109008dbd32e325cb407fcbfe5a52 | refs/heads/master | 2021-09-15T23:14:14.565865 | 2018-06-12T16:30:40 | 2018-06-12T16:30:40 | 113,881,474 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def minDepth(self, root):
"""
:type root: TreeNode
:rtype: int
"""
if not root:
retur... | [
"gaosq0604@gmail.com"
] | gaosq0604@gmail.com |
6476a4bce704d3c37f77b64321d4174453e2cdc5 | 5d069aa71e5cd242b4f1f29541dc85107822cbda | /mc_states/modules/mc_www.py | 319be1cb2d7aa0ca54f2980cd05641837f59532c | [
"BSD-3-Clause"
] | permissive | h4ck3rm1k3/makina-states | f22a5e3a0dde9d545108b4c14279451198682370 | 3f2dbe44867f286b5dea81b9752fc8ee332f3929 | refs/heads/master | 2020-02-26T13:17:09.895814 | 2015-01-12T21:45:02 | 2015-01-12T21:45:02 | 29,172,493 | 0 | 0 | null | 2015-01-13T04:23:09 | 2015-01-13T04:23:07 | null | UTF-8 | Python | false | false | 1,230 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
.. _module_mc_www:
mc_www / www registry
============================================
If you alter this module and want to test it, do not forget
to deploy it on minion using::
salt '*' saltutil.sync_modules
Documentation of this module is available with::
sal... | [
"kiorky@cryptelium.net"
] | kiorky@cryptelium.net |
35df2d756e2076153f711a103a0783d15316232b | ce29884aa23fbb74a779145046d3441c619b6a3c | /all/217.py | 280394e1b4abf3d78e10998357c12d53a005a8c9 | [] | no_license | gebijiaxiaowang/leetcode | 6a4f1e3f5f25cc78a5880af52d62373f39a546e7 | 38eec6f07fdc16658372490cd8c68dcb3d88a77f | refs/heads/master | 2023-04-21T06:16:37.353787 | 2021-05-11T12:41:21 | 2021-05-11T12:41:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | #!/usr/bin/python3.7
# -*- coding: utf-8 -*-
# @Time : 2020/12/1 22:48
# @Author : dly
# @File : 217.py
# @Desc :
class Solution(object):
def containsDuplicate(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
if len(nums) == len(set(nums)):
retur... | [
"1083404373@qq.com"
] | 1083404373@qq.com |
a7e95404a37e153e6cdf62771caf3112de8d8ed3 | 08a3833ec97e33c4a40bf1d1aa403da7836e0df0 | /demo/urls.py | d4a707b0083f84bce11751e79741ea699a02c9cf | [] | no_license | srikanthpragada/PYTHON_02_AUG_2018_WEBDEMO | ae667e154abcc05acaaf0d18d45be4ebc995c6cc | e34019102f5c8159beef35a2e3665028aea509ce | refs/heads/master | 2020-03-28T06:10:43.303938 | 2018-09-27T12:33:35 | 2018-09-27T12:33:35 | 147,818,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | from django.contrib import admin
from django.urls import path
from . import views
from . import dept_views
from . import book_views
from . import ajax_views
from . import rest_views
from . import class_views
urlpatterns = [
path('product/', views.show_product),
path('products/', views.show_products_list),
... | [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
30675a30aad98c9bf2aec0cb940be25c5c0449d1 | 2cde0b63638ac8bad6a2470a4ec1cbbdae8f7d39 | /percentilesandquartiles17.py | 9066c301ed8954ed980881cb9437211cbe66d357 | [] | no_license | PhuongThuong/baitap | cd17b2f02afdbebfe00d0c33c67791ade4fc61ff | 012c609aa99ba587c492b8e6096e15374dc905f2 | refs/heads/master | 2023-08-22T21:39:57.527349 | 2021-10-09T10:54:48 | 2021-10-09T10:54:48 | 415,281,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | import numpy as np
scores = np.array([8, 6, 4, 3, 9, 4, 7, 4, 4, 9, 7, 3, 9, 4, 2, 3, 8, 5, 9, 6])
print("Bách phân vị thứ 70: ", np.percentile(scores, 70, interpolation='lower'))
print("Bách phân vị thứ 70: ", np.percentile(scores, 70, interpolation='higher'))
print("Bách phân vị thứ 70: ", np.percentile(scores, 70,... | [
"you@example.com"
] | you@example.com |
dcaa5f0a9632efd7fbc43f1cdf8d739b0161c222 | 1d2bbeda56f8fede69cd9ebde6f5f2b8a50d4a41 | /hard/python3/c0006_37_sudoku-solver/00_leetcode_0006.py | b12724d00299702d5e3f0bb08ed2233d0c6d66e9 | [] | no_license | drunkwater/leetcode | 38b8e477eade68250d0bc8b2317542aa62431e03 | 8cc4a07763e71efbaedb523015f0c1eff2927f60 | refs/heads/master | 2020-04-06T07:09:43.798498 | 2018-06-20T02:06:40 | 2018-06-20T02:06:40 | 127,843,545 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | # DRUNKWATER TEMPLATE(add description and prototypes)
# Question Title and Description on leetcode.com
# Function Declaration and Function Prototypes on leetcode.com
#37. Sudoku Solver
#Write a program to solve a Sudoku puzzle by filling the empty cells.
#A sudoku solution must satisfy all of the following rules:
#Each... | [
"Church.Zhong@audiocodes.com"
] | Church.Zhong@audiocodes.com |
16a31b69d896402cb06e319c17af7fcaddfc80e1 | fd56bcee0326b529eaf66462827ec0bf790c3335 | /days33/非阻塞模型/服务端.py | 4c09ecd799b80ff203bd598805aa7ed69eadab80 | [] | no_license | 95Li/oldboy-learning-code | d1ff638e7d9db27b03afde1ff99844f3de2d9f46 | dbf97bd5bfb906bce4e92cc378aef277e6ebd443 | refs/heads/master | 2020-03-21T15:59:31.604549 | 2018-06-27T14:32:12 | 2018-06-27T14:32:12 | 138,744,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | from socket import *
import time
s=socket()
s.bind(('172.0.0.1',8080))
s.listen(5)
s.setblocking(False)
r_list=[]
w_list=[]
while True:
try:
conn,addr=s.accept()
r_list.append(conn)
except BlockingIOError:
print('ganhuo')
print('rlist',len(r_list))
... | [
"861083372@qq.com"
] | 861083372@qq.com |
f99afe6266414414ff87f689507fa29216429229 | 8ca6f67883355bd9678a3b8a26ec7fe7b464f5c1 | /project/deluxenation/urls.py | a6b9c3c3b09a2dcc9fba1dedda77b6389c95600e | [] | no_license | mmahnken/deluxenation | 868f971f1d2d73052e5f8a3444a7751141710c02 | 35f94a053db378dc4835868766e69c836f58eb1c | refs/heads/master | 2020-09-21T20:52:56.268009 | 2017-02-06T05:21:42 | 2017-02-06T05:21:42 | 66,738,373 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | py | """project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"mmm25eg@gmail.com"
] | mmm25eg@gmail.com |
f78c278d29399237b8c709646ac66aac72e5c105 | ba54b70f93fe7f9d114623d76b1ad3f88309d66f | /paysto/templatetags/paysto_tags.py | 9b92d8d51facb7986b806436b724bb611b2dd303 | [] | no_license | loobinsk/newprj | 9769b2f26092ce7dd8612fce37adebb307b01b8b | c6aa6a46973fb46375f4b05a86fe76207a8ae16d | refs/heads/master | 2023-05-07T00:28:44.242163 | 2021-05-25T08:22:05 | 2021-05-25T08:22:05 | 370,617,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,329 | py | #-*- coding: utf-8 -*-
from django import template
from paysto import PAYSTO_ONLINE_MERCHANT_NOCART_URL
from paysto.forms import PaymentForm
from django.conf import settings
from paysto.models import BasePayment
from django.utils.safestring import mark_safe
register = template.Library()
@register.inclusion_tag('pay... | [
"root@bazavashdom.ru"
] | root@bazavashdom.ru |
450d68a0e2c390a31c2a557f70788062ceb572ce | 048d13616971fdaf17947bf1f3b1840a30a5f6c8 | /apps/team/migrations/0002_auto_20150904_1835.py | 0b28c5bb3ba3fe9fb3786db434dec753d3076860 | [] | no_license | ImgBotApp/manutd.org.np | 449955a89959d0781f181e71ec8be5c1c8ae3c42 | 18a53f7f4c4d4e0b47a22e5b5cb99069fd257d00 | refs/heads/master | 2021-06-24T06:58:53.269028 | 2017-09-09T15:22:25 | 2017-09-09T15:22:25 | 103,154,757 | 2 | 0 | null | 2017-09-12T04:46:16 | 2017-09-11T15:40:14 | JavaScript | UTF-8 | Python | false | false | 1,586 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('team', '0001_initial'),
]
operat... | [
"xtranophilist@gmail.com"
] | xtranophilist@gmail.com |
b63539f52ac4f3863fe9cef412753b80adfc6b28 | f9a8aecd848bcc79052ca068cc73850a63e6dfcf | /data/datasets/resampling/adaptive/importance_sampler.py | 4112726c0616b4e253a6b9843e212d7b614c2d40 | [
"MIT"
] | permissive | khoehlein/fV-SRN-Ensemble-Compression | 537981a1cd31565bb504b00ca730e8bf87e7e0ef | 2780b83d2594c1b38b57ab58087b46bee4b61e8b | refs/heads/master | 2023-04-17T09:42:48.037397 | 2022-09-07T08:55:01 | 2022-09-07T08:55:01 | 532,983,107 | 4 | 1 | null | 2022-09-06T14:39:26 | 2022-09-05T16:43:24 | Python | UTF-8 | Python | false | false | 7,115 | py | import argparse
from typing import Optional
import torch
from matplotlib import pyplot as plt
from common.mathparser import BigInteger
from inference import IFieldEvaluator
from data.datasets.resampling.coordinate_box import CoordinateBox, UnitCube
from data.datasets.resampling.adaptive.density_tree_sampler import Fa... | [
"kevin.hoehlein@tum.de"
] | kevin.hoehlein@tum.de |
642167e640746fc13d9a13edf17d6d566e7db7ae | bd4270073cbdbafb8471bbdfe9a7fcfc75836384 | /gen_yield_for.py | 29f87e20a29a3bba8bb32624604fd0c06547e069 | [] | no_license | Hemanthtm2/learning.python | 03c5fccb0ca205dba3edd418cbf2fecad34aa532 | c93d30fcb4982f27153a3f649d2bdc4d50c56b1b | refs/heads/master | 2020-04-08T14:19:35.508613 | 2018-10-10T17:17:40 | 2018-10-10T17:17:40 | 159,431,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | #!/usr/bin/python
def print_squares(start,end):
for x in range(start,end):
yield x**2
for n in print_squares(2,5):
print(n)
| [
"hemanthtm2@gmail.com"
] | hemanthtm2@gmail.com |
1c7f5661d1a446f130607f085ddd3c15eec9fba3 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/str_cat-151.py | a0cd8b6099dc04249949a943feb61cd8816d1ab4 | [] | 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 | 279 | py | a:str = "Hello"
b:str = "World"
c:str = "ChocoPy"
def cat2(a:str, b:str) -> str:
return a + b
def cat3(a:str, b:str, c:str) -> str:
return a + b + c
print(cat2(a, b))
print(cat2("", c))
print(cat3(a, " ", c))
$ID(len(a))
print(len(cat2(a,a)))
print(len(cat2("","")))
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
988555a631d55ed2a9abdd2e1a296ccacb0d9a19 | 90f46ef9cd25460a05f10a4fb440c396debdb518 | /address_old/app/config.py | b45dabe418e678e9aaad311863de1cb8db82d09b | [] | no_license | khanh-trieu/folder-erp-lap-tsg | addf543c1ed2b27beb0fe9508a4db835e258dc15 | 151335a5f9364d66a456f174e2b621a2d8a9727e | refs/heads/master | 2023-04-19T13:49:28.134422 | 2021-05-20T02:46:32 | 2021-05-20T02:46:32 | 369,057,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py |
API_GET_PROVINCE = 'https://api.mysupership.vn/v1/partner/areas/province'
API_GET_DISTRICT = 'https://api.mysupership.vn/v1/partner/areas/district?province='
API_GET_WARD = 'https://api.mysupership.vn/v1/partner/areas/commune?district='
MSG_SUCCESS = 'Thành công!' | [
"Tsg@1234"
] | Tsg@1234 |
b6d8f27ccd78ce668ead8011086bf2b955637496 | 67932bfe656c093cc306d4c9bca682140d21a470 | /loopsByRecursion.py | 06f6799b5a153b5acb0049b7e7e2968688365091 | [] | no_license | dases/recursion_examples | bb8769c0f64ef8e612660547c00693ede725f72f | 3733045157d0daf5016e0213eeace8f968203311 | refs/heads/master | 2023-07-16T05:46:51.521638 | 2021-09-01T21:27:34 | 2021-09-01T21:27:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | def theLoop(i):
if i < 4: # Stops when false.
# RECURSIVE CASE
# The main code:
print(i, 'Hello!')
theLoop(i + 1) # Increment i.
return
else:
# BASE CASE
return
theLoop(0) # Start i at 0. | [
"asweigart@gmail.com"
] | asweigart@gmail.com |
83bf67157c94ca91dcfad4370e48441432eeff06 | 3de2a746243ad1cb000994a06a0f9699db9a901f | /abc083b.py | 25f54f5c86bcc9984b5f3c4dbc00bddd018005eb | [] | no_license | takumi152/atcoder | 71d726ffdf2542d8abac0d9817afaff911db7c6c | ebac94f1227974aa2e6bf372e18605518de46441 | refs/heads/master | 2022-10-30T12:14:41.742596 | 2022-09-29T19:49:32 | 2022-09-29T19:49:32 | 181,502,518 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py |
def main():
buf = input()
buflist = buf.split()
N = int(buflist[0])
A = int(buflist[1])
B = int(buflist[2])
sum = 0
for i in range(1, N + 1):
count = 0
for d in [int(d) for d in str(i)]:
count += d
if count >= A and count <= B:
su... | [
"takumi152@hotmail.com"
] | takumi152@hotmail.com |
0442dccb71f8076d97bd44918f3116cd9633224c | 75fe89a5ca7ceb91757199c4dde6fd20a69c94b9 | /pygmsh/circle_arc.py | 527ec58c5c88de3903e536d467a0c54bbda050b0 | [
"MIT"
] | permissive | guifon1000/pygmsh | 39d1c1d3e890f64afa94e35e6da4e0c6967d3373 | ce6bf8f080c359b1ab81c9d1adee6a81d3419d51 | refs/heads/master | 2021-01-22T23:53:42.835887 | 2017-03-20T13:45:53 | 2017-03-20T13:45:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | # -*- coding: utf-8 -*-
#
from .line_base import LineBase
from .point import Point
class CircleArc(LineBase):
def __init__(self, points):
super(CircleArc, self).__init__()
for p in points:
assert isinstance(p, Point)
self.points = points
self.code = '\n'.join([
... | [
"nico.schloemer@gmail.com"
] | nico.schloemer@gmail.com |
229da8f1da7b2924a17df7c56df8eef9f31d5ee1 | bc0d87befa0329c50c2e57ead730050b648e15c6 | /leaning_logs/models.py | 48d76ed238355d3f04b39298a65d73a02204d8a6 | [] | no_license | YGragon/DjangoLearningLogs | 85a0598849600536cdbf45cfb9444f36dfd31c57 | e3228aed7aa181d657b9aa58d93e9d37f09d918d | refs/heads/master | 2021-09-10T19:36:52.924500 | 2018-04-01T00:11:13 | 2018-04-01T00:11:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,676 | py | from django.db import models
from django.contrib.auth.models import User
import json
from datetime import date, datetime
class Topic(models.Model):
"""用户要学习的主题."""
text = models.CharField(max_length=200)
date_added = models.DateTimeField(auto_now_add=True)
# 外键是用户,可以通过这个外键确定这个主题属于哪个用户
owner = model... | [
"1105894953@qq.com"
] | 1105894953@qq.com |
ca87266c74882e0db39d481e2bf5488941ec7f3e | 61e4cb5f60541939e122714aa085f2028a7904c5 | /duckdown/tool/provision/utils.py | 90d0b5cfc9e95d9eee414dbe564ed3dae2034188 | [
"MIT"
] | permissive | blueshed/duckdown | 1a07bf541a5849000d9e8622622cc67a3bec933f | e6d0e62d378bd2d9ed0cd5ce4bc7ab3476b86020 | refs/heads/master | 2023-01-30T12:18:05.713016 | 2020-12-08T20:38:36 | 2020-12-08T20:38:36 | 314,370,191 | 0 | 0 | MIT | 2020-12-08T14:54:11 | 2020-11-19T21:06:47 | Python | UTF-8 | Python | false | false | 711 | py | """ utils """
import boto3
from pkg_resources import resource_filename
def get_bucket_arn(bucket_name, region="", account_id=""):
""" We need the arn of a queue """
bucket_arn = f"arn:aws:s3:{region}:{account_id}:{bucket_name}"
return bucket_arn
def get_aws_region_account():
""" Return the aws regio... | [
"pete@blueshed.co.uk"
] | pete@blueshed.co.uk |
7190f1bfb7ef37d25eff124ec59c652fd6d5cdf5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02947/s893966605.py | 67b744e4b961123394465b52cb99e7a525a91c56 | [] | 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 | 667 | py | from collections import defaultdict
from collections import deque
from collections import Counter
import itertools
import math
def readInt():
return int(input())
def readInts():
return list(map(int, input().split()))
def readChar():
return input()
def readChars():
return input().split()
def comb(n,r):
retur... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6671affb60476364415d4f792368ccdf01def877 | 0a949a1774607543de2dd5edf3a7efbbed3744c5 | /Day 25 power of 2.py | 498bb09544dee2f1fa49029e65f9e1572b050b82 | [] | no_license | AprajitaChhawi/365DaysOfCode.MARCH | ac46631665e508372b3ad6c9d57c89906f657f3d | dc1f70339491eb3ee194c62e1ded28695097d166 | refs/heads/main | 2023-03-28T12:34:56.499942 | 2021-04-01T17:45:22 | 2021-04-01T17:45:22 | 343,509,704 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | #User function Template for python3
class Solution:
##Complete this function
# Function to check if given number n is a power of two.
def isPowerofTwo(self,n):
co=0
while(n>0):
n=n&(n-1)
co=co+1
if(co==1):
return 1
return 0
##Your ... | [
"achhawip@gmail.com"
] | achhawip@gmail.com |
d3fecc8b89dd54cd773450d6b1f0371b7586260a | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/55/usersdata/67/23126/submittedfiles/av2_p3_civil.py | 021be36901210757e4d1cd358ae7703c7b0c0ed6 | [] | 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 | 379 | py | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
n=input("Digite a dimensão da matriz:")
pdp=input("Digite a posição a qual deseja pesar o valor da peça:")
linha=n
coluna=n
a=np.zeros((linha,coluna))
for i in range (0,a.shape[0],1):
for j in range (0,a.shape[1],1):
a[i,j]=input(... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
3edb99208215975625109feab3b281a6d20663b2 | c2fef17ef7644316da7f1f1d3819f67a4cdb21cb | /python/L1TCSCTF_cfi.py | 444847f551d3ae500d20283e9f2b8119607e6a63 | [] | no_license | rjwang/CSCTFDQM | cde5e937c3029a8309c189b20ad8253ff4e16df6 | 3dc419fad4f2cbf1b0cd1d4fb172a175f26d7025 | refs/heads/master | 2016-09-15T13:59:42.321400 | 2014-11-17T12:15:38 | 2014-11-17T12:15:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | import FWCore.ParameterSet.Config as cms
l1tCsctf = cms.EDAnalyzer("L1TCSCTF",
#gmtProducer = cms.InputTag("gtDigis"),
gmtProducer = cms.InputTag("null"),
statusProducer = cms.InputTag("csctfDigis"),
outputFile = cms.untracked.string(''),
lctProducer = cms.InputTag("csctfDigis"),
verbose = cms... | [
"r.jiewang@gmail.com"
] | r.jiewang@gmail.com |
a4479a3d1bc8e0e338b8104a625f384ee5214c0c | 47c39800fa6f928e0d13f26727ba52bda2aa6ff0 | /One/migrations/0013_knowledgemediastore_m_k_ip.py | 3c2b40b750f7a0ed28e290d0e62cc7022e06c04f | [
"MIT"
] | permissive | dddluke/zhihuipingtai | 952ed5f9a4011cb4fb2765a0571c978af784d708 | 4e46e01440f8c270c05259ac0f38bd56dd04016c | refs/heads/master | 2023-03-09T03:32:47.807760 | 2021-02-26T02:36:10 | 2021-02-26T02:36:10 | 341,816,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | # Generated by Django 3.1.2 on 2020-10-13 08:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('One', '0012_solution_s_user_name'),
]
operations = [
migrations.AddField(
model_name='knowledgemediastore',
... | [
"lukeli0306@gmail.com"
] | lukeli0306@gmail.com |
c6c98662e4fa436e5465b70a23c3c113752a5975 | 1b287461e9bb550b96c1e2eff7e6c716ab7d536e | /pytorch/neuralNetwork.py | 5ee68b460804d9842c9aa3027d8dfb849cc9aadf | [] | no_license | TQCAI/python-study-notebook | 64b9c7bfaa6c47ef2d783aa2a36ba914d13b9db2 | e0a9eee556c3da7441e5be6ee4baf16f1ae075a9 | refs/heads/master | 2020-05-18T19:28:27.998087 | 2019-05-04T10:29:10 | 2019-05-04T10:29:10 | 184,609,373 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,820 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
class Net(nn.Module):
def __init__(self):
super(Net, self).__init__()
# 1 input image channel, 6 output channels, 5x5 square convolution
# kernel
self.conv1 = nn.Conv2d(1, 6, 5)
self.conv2 = nn.Conv2d(6, 16... | [
"1468632627@qq.com"
] | 1468632627@qq.com |
4d4d91dbf71adc295e441bc7d03a0ec941967878 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_8965.py | 60985953452cc8e3a19e764e0aa2103646d7d4f7 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | # Use python to run shell script with Popen behaves differently in python command line and actual program
from subprocess import Popen, PIPE
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
a5e60e51f46f0f4c1de4519f9e3ed6e437e72ee2 | 0862943574c7cbf98f7d049a516e8caf204304d1 | /todo_list.py | 3802e8c3b0c13da8abc8fac0eeef687f9a4748c8 | [] | no_license | MsMunda/Fun | 4a29a4d70e8f46e8d94c385831a7a49135566104 | 6d22207b75a59cb53d1d2e85549472571feeb1c5 | refs/heads/master | 2021-01-20T03:23:27.051210 | 2017-04-27T01:08:24 | 2017-04-27T01:08:24 | 89,535,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | """This is a Terminal-based program that allows a user to create and edit a to-do list.
The stub of each function has been provided. Read the docstrings for what each
function should do and complete the body of the functions below.
You can run the script in your Terminal at any time using the command:
>>> pytho... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
a9c3e5697018a920d3e2f4f5430092dd2011706e | ec00584ab288267a7cf46c5cd4f76bbec1c70a6b | /offline/__Digital_Twin/__release2/__release2_sprint4/15619 - Link the asset locations to local weather/dev/dev.py | 585898cda425bdfd488487cf9f2d129e386b1a2e | [] | no_license | rahuldbhadange/Python | b4cc806ff23953389c9507f43d817b3815260e19 | 7e162117f1acc12537c7eeb36d6983d804122ff3 | refs/heads/master | 2021-06-23T05:04:20.053777 | 2020-01-28T10:34:28 | 2020-01-28T10:34:28 | 217,307,612 | 0 | 0 | null | 2021-06-10T22:44:11 | 2019-10-24T13:35:42 | Python | UTF-8 | Python | false | false | 2,116 | py |
# -*- coding: utf-8 -*-
# Copyright (c) 2017 Iotic Labs Ltd. All rights reserved.
from __future__ import unicode_literals, print_function
from json import dumps
import logging
logging.basicConfig(format='%(asctime)s %(levelname)s [%(name)s] {%(threadName)s} %(message)s', level=logging.WARNING)
logger = logging.getL... | [
"46024570+rahuldbhadange@users.noreply.github.com"
] | 46024570+rahuldbhadange@users.noreply.github.com |
9b42299d9d109563fa71c7a5fed85b1ebd999120 | 36907c0840b34687026b3439a06c49e5c0d2ef11 | /tests/test_file.py | 752908478767a7efc177298baf3fad6d612dd537 | [
"BSD-2-Clause"
] | permissive | melscoop/pydeps | f5585adde69dfc2afd82254260a5dd4750cf57f2 | c6078821222b314e2befbc6723a36967a9b5a47b | refs/heads/master | 2023-08-29T00:19:55.845364 | 2021-10-14T06:07:02 | 2021-10-14T06:07:02 | 423,976,408 | 1 | 0 | BSD-2-Clause | 2021-11-02T19:51:10 | 2021-11-02T19:39:42 | null | UTF-8 | Python | false | false | 713 | py | # -*- coding: utf-8 -*-
import os
from tests.filemaker import create_files
from tests.simpledeps import simpledeps
def test_file():
files = """
a.py: |
import collections
"""
with create_files(files) as workdir:
assert simpledeps('a.py') == set()
def test_file_pylib():
f... | [
"bp@datakortet.no"
] | bp@datakortet.no |
105b3a2100dc54523233be6553a7d540acbaf799 | b8fb2620257b6286871211b7bde1cd8a0a5468db | /ts_feature_extractor.py | c86913b859b6d8d349b58a479f536fd14205f9ff | [] | no_license | mehdidc/elnino | f9aac0c586317d261151265cbd0290ae351731b8 | 7b85ad180634f1db4a61654d1475f54c60b694a4 | refs/heads/master | 2021-01-10T07:34:57.507222 | 2015-06-04T07:15:35 | 2015-06-04T07:15:35 | 36,854,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,739 | py | import numpy as np
en_lat_bottom = -5
en_lat_top = 5
en_lon_left = 360-170
en_lon_right = 360-120
def get_enso_mean(tas):
"""The array of mean temperatures in the El Nino 3.4 region at all time points."""
return tas.loc[:, en_lat_bottom:en_lat_top, en_lon_left:en_lon_right].mean(dim=('lat','lon'))
class Feat... | [
"mehdi@cherti.name"
] | mehdi@cherti.name |
d5d85c91e7b3eb67b2067d90181727ba54def11a | 3db7b5409f2f9c57ab3f98bda50f8b548d98063d | /tests/system/test_list_rows.py | 4c08958c37ac71ea16fd4a02c8b4507fedecac2b | [
"Apache-2.0"
] | permissive | googleapis/python-bigquery | 66db156b52e97565f6211b2fab5aac4e519fa798 | 3645e32aeebefe9d5a4bc71a6513942741f0f196 | refs/heads/main | 2023-09-01T07:41:24.893598 | 2023-08-23T19:04:13 | 2023-08-23T19:04:13 | 226,992,475 | 622 | 287 | Apache-2.0 | 2023-09-12T04:31:26 | 2019-12-10T00:09:04 | Python | UTF-8 | Python | false | false | 4,455 | py | # Copyright 2021 Google LLC
#
# 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 agreed to in writing, s... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
61d4759ecc91732720a3b6343a276d796bea8fd6 | 6aa7e203f278b9d1fd01244e740d5c944cc7c3d3 | /airflow/api_connexion/schemas/event_log_schema.py | 0753a8a104a44ec8b1a0d3b8965e9cd0eee383b3 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"Python-2.0"
] | permissive | laserpedro/airflow | 83fc991d91749550b151c81876d9e7864bff3946 | a28afa8172489e41ecf7c381674a0cb91de850ff | refs/heads/master | 2023-01-02T04:55:34.030935 | 2020-10-24T15:55:11 | 2020-10-24T15:55:11 | 285,867,990 | 1 | 0 | Apache-2.0 | 2020-08-07T15:56:49 | 2020-08-07T15:56:49 | null | UTF-8 | Python | false | false | 1,861 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | laserpedro.noreply@github.com |
5c25a940343aea2972f36ee9b25e6e5a5019f0f5 | 9e567b8241ce00e9d53843f5aba11c4a119b079f | /tags/v0_61_0/htdocs/tut/silly_axes.py | acdd1abf85c5ec85aa02e9070be482fceec67f1b | [
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | neilpanchal/matplotlib | 3d2a7133e858c4eefbb6c2939eb3f7a328b18118 | 7565d1f2943e0e7b4a3f11ce692dfb9b548d0b83 | refs/heads/master | 2020-06-11T09:20:43.941323 | 2011-01-21T21:50:16 | 2011-01-21T21:50:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from matplotlib.matlab import *
t = arange(0, 2.1, 0.1)
rc('grid', color=0.75, linewidth=1.5)
rc('tick', color='b', labelsize=14)
a = subplot(111)
plot(t, t**2, '-')
title('Custom axes using rc')
grid(True)
savefig('custom_axes')
show()
| [
"(no author)@f61c4167-ca0d-0410-bb4a-bb21726e55ed"
] | (no author)@f61c4167-ca0d-0410-bb4a-bb21726e55ed |
e3c9eebf31eb84021294e0f466f8819622e71363 | 7b65481a7183f56a8b4ba2bce08cd1131cebe0e6 | /infinitelooper.py | 0365155016e44f11023400bc8ece254156932bd4 | [] | no_license | guadalupeaceves-lpsr/class-samples | 17e261084de2e64ceae6daaaac5a53618eeafb37 | bc5c096453243ef76ca6854d54232ea234ba24b5 | refs/heads/master | 2021-01-21T04:48:01.443832 | 2016-06-13T03:50:15 | 2016-06-13T03:50:15 | 48,007,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | print("What's your favorite number?")
num = int(raw_input())
while num != 14:
print("Nope, I don't like it. Choose another.")
num = int(raw_input())
| [
"lps@lps-1011PX.(none)"
] | lps@lps-1011PX.(none) |
63366e5426c932f5970b06f1ed4796f94c709e38 | 3fd9c7ee49a32eae3013191b63154a9a5d6dafe6 | /12.6驾驶飞船/12.6.3左右移动/ship_3.py | 29b66748188b9598c3cd9ceb7bfaba5932bbc169 | [] | no_license | taozhenting/alien_invasion | e0c03cd9797cb33e40ca47a13eadeda8b1c4cf85 | fd9bd97d6238da702fbb1eb6fcb78e8352875fe2 | refs/heads/master | 2020-04-27T05:31:48.862784 | 2019-01-30T09:43:49 | 2019-01-30T09:43:50 | 174,083,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,737 | py | #增加左边移动
import pygame
class Ship():
#screen参数指定了飞船绘制到什么地方
def __init__(self,screen):
"""初始化飞船并设置其初始位置"""
self.screen = screen
#加载飞船图像并获取其外接矩形
#调用pygame.image.load()这个函数返回一个表示飞船的surface并存储到了self.image
self.image = pygame.image.load('images/ship.bmp')
#rect处理对象是矩形,... | [
"taozt@ichile.com.cn"
] | taozt@ichile.com.cn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.