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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
32efff5a989beba8a65027873b832074988be3d1 | 5125880d0b7af5cc86ab65f839f5db0d5cff9640 | /python/dex/__init__.py | 6850c436d32d6d30002244b9e4128e1f497b1430 | [
"BSD-3-Clause"
] | permissive | stjordanis/dex-lang | 8d9582f96cc02bf631cf325f3dde9a729ed9941e | d8540257c8e00c9d9e86f4b53190052b5a145b68 | refs/heads/main | 2023-02-02T12:12:42.068628 | 2020-12-19T21:57:04 | 2020-12-19T21:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,032 | py | # Copyright 2020 Google LLC
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
import itertools as it
import ctypes
import pathlib
import atexit
from enum import Enum
from typing import List
__all__ = ['... | [
"adam.paszke@gmail.com"
] | adam.paszke@gmail.com |
0a405906f42b2f5c2a7f3d2f861450fc9416b069 | b04183027d7fe10d034092fc5de349dbca4a2851 | /KuegeliFarbe/testServoWithGetCh.py | eb2ef4338e52d994d2b0b9fc766729385b8bc4f8 | [] | no_license | magictimelapse/RaspberryJamSchweiz | b96afb123c9b38de8f8eff8c42e0f28204958762 | 8ad4b30e04dfc081b6af60e8049cb73624e6073d | refs/heads/master | 2021-01-20T21:07:09.302708 | 2018-07-03T17:04:43 | 2018-07-03T17:04:43 | 64,651,932 | 1 | 3 | null | 2017-11-23T20:53:14 | 2016-08-01T08:58:18 | Python | UTF-8 | Python | false | false | 687 | py | from servoControl import auf,zu
from gibPfeilTaste import gibPfeilTaste
import time
servos = {
"rechts": {"number": 0, "state":False},
"links": {"number": 1, "state":False},
"unten": {"number": 2, "state":False},
"oben": {"number": 3, "state":False}
}
def setServos(servos):
for servo in ... | [
"michael.rissi@gmail.com"
] | michael.rissi@gmail.com |
a6bc37dc9ad5bc6951bca4dc1f04117dbd420531 | 7ab35999f8a9fcdbc153176d50f38857eaf169b3 | /exercises/generators.py | 8a6ede0dbac143539a45d075fd1057a2472367b4 | [] | no_license | teknik-eksjo/iterators | 5a5e54f581f5d2e19fc93d67b975d533899bdc41 | b16ef34343ce28e38db1b8291fdce2e52bb8bcd8 | refs/heads/master | 2021-01-10T02:57:58.891394 | 2017-10-27T07:04:02 | 2017-10-27T07:04:02 | 48,051,745 | 1 | 20 | null | 2017-11-27T12:44:52 | 2015-12-15T15:31:18 | Python | UTF-8 | Python | false | false | 1,785 | py | """Övningar på generators."""
def cubes():
"""Implementera en generator som skapar en serie med kuber (i ** 3).
Talserien utgår från de positiva heltalen: 1, 2, 3, 4, 5, 6, ...
Talserien som skapas börjar således: 1, 8, 27, 64, 125, 216, ...
Talserien ska inte ha något slut.
"""
pass
def ... | [
"linus@etnolit.se"
] | linus@etnolit.se |
5e0e8fb64e239e682842f4872ffa5875bf6193ed | d85f3bfcc7efb3313bd77ba43abbde8527c731d9 | /ch03/ex3-4.py | f0c21790e3b61443d823170f444377a3dd28e0b7 | [] | no_license | freebz/Introducing-Python | 8c62767e88b89eb614abd3ea4cf19aae946f5379 | ecf2082946eac83072328a80ed1e06b416ef5170 | refs/heads/master | 2020-04-08T21:14:42.398462 | 2018-11-29T17:03:11 | 2018-11-29T17:03:11 | 159,736,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,297 | py | # 3.5 셋
# 3.5.1 셋 생성하기: set()
empty_set = set()
empty_set
# set()
even_numbers = {0, 2, 4, 6, 8}
even_numbers
# {0, 2, 4, 6, 8}
odd_numbers = {1, 3, 5, 7, 9}
odd_numbers
# {1, 3, 5, 7, 9}
# 3.5.2 데이터 타입 변환하기: set()
set( 'letters' )
# {'t', 'l', 's', 'e', 'r'}
set( ['Dasher', 'Dancer', 'Prancer', 'Mason-Dixon'] )... | [
"freebz@hananet.net"
] | freebz@hananet.net |
b3bc967860631430270fe4a366e8ce79aa492caf | 531caac957596fc623e534bce734ef6b45be0b07 | /tests/operators/dynamic_shape/test_cast.py | 1ebaaf932f5e4f2f4265fd02ac81982bbe3f88da | [
"Apache-2.0",
"Zlib",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-2-Clause"
] | permissive | wxyhv/akg | 02e64d81bbb84472e0bf1c57a691b688ea743d6e | fc9b6f5b6fa024da89bf90466a815359ca54015d | refs/heads/master | 2023-03-11T02:59:18.472826 | 2021-02-23T07:44:16 | 2021-02-23T07:44:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,995 | py | import boot
import pytest
def test_cast():
#boot.run("test_resnet50_cast_000", "cast_run", ((64, 128, 16, 16), "float32", "float16"), "dynamic")
#boot.run("test_resnet50_cast_001", "cast_run", ((32, 64, 16, 16), "float32", "float16"), "dynamic")
#boot.run("test_resnet50_cast_002", "cast_run", ((16, 32, 16... | [
"ckey.chengbin@huawei.com"
] | ckey.chengbin@huawei.com |
e9ebcdf8f07d730698b3da8ca557cdc0dc299750 | 2f63688febd21dc3ae6b19abfa79ad313c820154 | /0939_Minimum_Area_Rectangle/try_2.py | 773cc7d337543910410b251e4b4546fdfb4f8b73 | [] | 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 | 995 | py | class Solution:
def minAreaRect(self, points: List[List[int]]) -> int:
# 以x軸為主,去建立一個graph
def buildGraph():
graph = {}
for element in points:
if element[0] in graph:
graph[element[0]].add(element[1])
else:
... | [
"f14051172@gs.ncku.edu.tw"
] | f14051172@gs.ncku.edu.tw |
cfd8ae9767066953e1ea707ce6f3ec6793552d06 | e1e08ca2df1caadc30b5b62263fa1e769d4904d8 | /stream/models/db_wizard_auth.py | 531b7c4e5d9eaad89effd490b6e181cf48a09428 | [
"LicenseRef-scancode-public-domain"
] | permissive | tiench189/ClassbookStore | 509cedad5cc4109b8fb126ad59e25b922dfae6be | 4fff9bc6119d9ec922861cbecf23a3f676551485 | refs/heads/master | 2020-12-02T07:48:26.575023 | 2017-07-10T02:45:09 | 2017-07-10T02:45:09 | 96,728,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,873 | py | # -*- coding: utf-8 -*-
"""
#-----------------------------------------------------------------------------
# Name: db_wizard_auth
#
# Purpose:
#
# Version: 1.1
#
# Author: manhtd
#
# Created: 1/14/14
# Updated: 1/14/14
#
# Copyright: (c) Tinh Vân Books
#
# Todo:
#------------------------... | [
"caotien189@gmail.com"
] | caotien189@gmail.com |
809de9e29748f706ece9fd93d10433c46825738b | 1a7ccda7c8a5daa7b4b17e0472dd463cc3227e62 | /solve_1/39.combination-sum.py | cef4667dac1d4d8adf2945ef8b1bc38e6676a449 | [] | no_license | yoshikipom/leetcode | c362e5b74cb9e21382bf4c6275cc13f7f51b2497 | 08f93287d0ef4348ebbeb32985d3a544ecfee24c | refs/heads/main | 2023-09-02T18:46:08.346013 | 2023-08-31T23:07:55 | 2023-08-31T23:07:55 | 323,344,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | #
# @lc app=leetcode id=39 lang=python3
#
# [39] Combination Sum
#
# @lc code=start
from typing import List
class Solution:
def combinationSum(self, candidates: List[int], target: int) -> List[List[int]]:
self.result = []
def backtrack(arr: List[int], total: int, last_index: int):
# p... | [
"yoshiki.shino.tech@gmail.com"
] | yoshiki.shino.tech@gmail.com |
36534e69f03c98f3a076c28132044a865683cad9 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_044/ch168_2020_06_22_14_43_26_644897.py | 5e7c3ed0f9f34c784ea44f017c85b13df31733e2 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | def login_disponivel(nome, lista):
i=1
if nome not in lista:
return nome
else:
for name in range(len(lista)):
while nome in lista:
nome = nome +str(i)
#if nome in lista:
# nome= nome[:-1]
i+=1
return n... | [
"you@example.com"
] | you@example.com |
f532912962feb01c6b4b29fddde3864c6f0ff158 | 3169b5a8191f45140eeeea5422db5ebf7b73efd3 | /Projects/BadProjects/ALL/testJoy.py | 45870a36494be3e33eb60d803660cdaf8b8730d7 | [] | no_license | ArtemZaZ/OldAllPython-projects | e56fdae544a26418414e2e8717fe3616f28d73f9 | 01dc77f0342b8f6403b9532a13f3f89cd42d2b06 | refs/heads/master | 2021-09-07T19:17:03.607785 | 2018-02-27T20:34:03 | 2018-02-27T20:34:03 | 105,284,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | import time
import RTCjoystic
J = RTCjoystic.Joystick()
J.connect("/dev/input/js0")
J.info()
time.sleep(2)
J.start()
def hand():
print("IT'S ALIVE")
J.connectButton('trigger', hand)
while(True):
print(J.Axis.get('z'))
#print(J.Buttons.get('trigger'))
time.sleep(0.1)
J.exit()
| [
"temka.911@mail.ru"
] | temka.911@mail.ru |
bb12fdf31aff0eabe212b1d61dca6979087dd933 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02690/s266356249.py | 51ac877f9ea77fc515e2789fa39600f138aeb94e | [] | 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 | 203 | py | import sys
input = sys.stdin.readline
X = int(input())
A = 1
B = 0
while True:
while A**5 - B**5 < X:
B -= 1
if A**5 - B**5 == X:
print(A,B)
exit()
B = A
A += 1 | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7b481e4611b931de492ac27e94a94a9b2433a087 | cca6bcec6528417842ce4cc9aee2b891c37fa421 | /pogo/proto/Networking/Responses/EchoResponse_pb2.py | 1368215e1da1ecd57acf583e22bef01d0adfed59 | [] | no_license | p0psicles/pokemongo-api | 2c1b219dcc6441399a787280e3df9446761d2230 | c1e20ae5892b045ac0b035b0f50254d94a6ac077 | refs/heads/master | 2021-01-16T23:08:42.501756 | 2016-07-20T20:51:54 | 2016-07-20T20:51:54 | 63,850,559 | 2 | 0 | null | 2016-07-21T08:17:44 | 2016-07-21T08:17:44 | null | UTF-8 | Python | false | true | 2,129 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: Networking/Responses/EchoResponse.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf i... | [
"contact@dylanmadisetti.com"
] | contact@dylanmadisetti.com |
87ecc947f22dcc7fbfb81ec478ee7e66c27ae353 | 07b7d6244732a3fd52d431e5d3d1ab7f651b4ab0 | /src/exemplos/05_EstruturasDeDados/06_Arquivo/05-texto.py | e40ece22b49f17df2ca33cb4c3c7fd5b715ffaba | [] | no_license | GTaumaturgo/CIC-APC | 19832050efe94dd29a78bde8b6e121b990ccd6b9 | cc3b7b132218855ad50ddbe63bbdd6f94f273c54 | refs/heads/master | 2020-04-05T22:54:13.414180 | 2017-01-18T17:20:25 | 2017-01-18T17:20:25 | 42,275,384 | 0 | 0 | null | 2016-04-10T14:25:16 | 2015-09-10T23:05:54 | C | UTF-8 | Python | false | false | 546 | py | # -*- coding: utf-8 -*-
# @package: 05-texto.py
# @author: Guilherme N. Ramos (gnramos@unb.br)
# @disciplina: Algoritmos e Programação de Computadores
#
# Exemplo de uso de arquivo texto.
if __name__ == '__main__':
arquivo = 'apc.python.txt'
try:
with open(arquivo, 'w') as f:
f.wr... | [
"ramos@gnramos.com"
] | ramos@gnramos.com |
536f861ee0f71641bd33ae7c7e32c1d559773a41 | 280a9dda130e27869c5ba791e7fbf502d5ca075c | /linskel.py | c7881d32f5f45fffda182ffa1d0b35b098652ad7 | [] | no_license | clbarnes/linear_skeleton | d6a9ad9ef565251143f9e5e419544a820d9cee80 | 96599a89ddd7509029069c93983388c323e27703 | refs/heads/master | 2021-06-02T11:09:53.069883 | 2018-07-11T16:56:06 | 2018-07-11T16:56:06 | 140,604,257 | 0 | 0 | null | 2021-04-28T21:54:58 | 2018-07-11T16:49:27 | Python | UTF-8 | Python | false | false | 3,001 | py | from collections import deque
import networkx as nx
from skimage.morphology import skeletonize
import numpy as np
from scipy.ndimage.filters import convolve
kernel = 2 ** np.array([
[4, 5, 6],
[3, 0, 7],
[2, 1, 0]
])
kernel[1, 1] = 0
int_reprs = np.zeros((256, 8), dtype=np.uint8)
for i in range(255):
... | [
"barnesc@janelia.hhmi.org"
] | barnesc@janelia.hhmi.org |
f3534da8e15a9fda51d59846cc158f9e04c9e5f9 | 38372fcc2ca58798176267360ff07f886400bc7b | /core_scheduled_tasks/functions.py | be85100a4bd8f11b158c46009f7b925f70c2b6a7 | [] | no_license | portman-asset-finance/_GO_PAF | 4eb22c980aae01e0ad45095eb5e55e4cb4eb5189 | ee93c49d55bb5717ff1ce73b5d2df6c8daf7678f | refs/heads/master | 2020-09-21T05:22:10.555710 | 2019-11-28T16:44:17 | 2019-11-28T16:44:17 | 224,691,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,219 | py |
from datetime import datetime, timedelta
#####################
# #
# FUNCTION SKELETON #
# #
#####################
#
# def function_name_as_in_go_scheduler_table(job_qs, job_parameters):
#
# # Step 1: Import any function-specific modules
# # --------------------------------... | [
"portman-asset-finance@outlook.com"
] | portman-asset-finance@outlook.com |
b512093d11373376c94d052c0bfe28753e2b2185 | 9ebeb33e168798d41b54a8ab474b00c160de43a2 | /orders/admin.py | df86378c01955d423140cb8c8bebc5fec8b3fc35 | [] | no_license | danielspring-crypto/tritrade | 0c1f961138b9e4892d53ece98b54094be0e4c4b9 | 6fc7c644c1657a7744703cd144be7fbb5320397c | refs/heads/master | 2022-12-04T13:21:07.761942 | 2020-08-28T00:02:36 | 2020-08-28T00:02:36 | 290,908,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,456 | py | from django.contrib import admin
from .models import Order, OrderItem
import csv
import datetime
from django.http import HttpResponse
from django.urls import reverse
from django.utils.safestring import mark_safe
class OrderItemInline(admin.TabularInline):
model = OrderItem
raw_id_fields = ['product']
def export_to_... | [
"you@example.com"
] | you@example.com |
d20e0e97a7ef4f224d978a799662d41217cf965c | 12b5711e8bafc24216de2fec68e0d0d8875453d6 | /app.py | aef872ec1ee72a88fdd5b2cb1e2acdf99a028989 | [
"MIT"
] | permissive | miguelgrinberg/microflack_ui | 1167888e3fd7de40150c7e48f43e550f0b9430b6 | 2a46f4b3010d80c516b3937273ac4939e03aad67 | refs/heads/master | 2023-09-01T22:28:48.945408 | 2019-10-22T09:02:48 | 2019-10-22T09:02:48 | 89,034,662 | 19 | 12 | MIT | 2022-05-25T01:35:29 | 2017-04-22T00:52:44 | JavaScript | UTF-8 | Python | false | false | 515 | py | import os
from flask import Flask, render_template
from flask_bootstrap import Bootstrap
import config
app = Flask(__name__)
config_name = os.environ.get('FLASK_CONFIG', 'dev')
app.config.from_object(getattr(config, config_name.title() + 'Config'))
Bootstrap(app)
@app.route('/')
def index():
"""Serve client-s... | [
"miguel.grinberg@gmail.com"
] | miguel.grinberg@gmail.com |
32609732a13129cd185a37d0a5726b983c199eb9 | 14675f0c66fb4f4eeaa6ad1e8e691b9edf8f0bdb | /All other combo programs/List_Set_Dict_Generator_Comprehensions.py | 4ba1a3a2f0b5912a27273c61ebc118395b6c377d | [] | no_license | abhishekjoshi1991/Python_Learning | 9a94529643eac7394615289e2ecd96106e70ddb8 | a74293d0776304638b5cf976b3534481e57b17f2 | refs/heads/master | 2023-04-16T02:21:30.588052 | 2021-04-21T13:58:29 | 2021-04-21T13:58:29 | 360,176,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,083 | py | #List, Set, Dict, Generator Comprehensions
#-------------------------------------------------------------
#1. List Comprehension
#-------------------------------------------------------------
'''
uses [] symbol to define
syntax: [expression for each in iterables]
syntax: [expression for each in iterables if condition... | [
"abhijsh61@gmail.com"
] | abhijsh61@gmail.com |
a83a6406c180911bbf530d33d506e5cfbe3c240b | cbfb679bd068a1153ed855f0db1a8b9e0d4bfd98 | /leet/greedy/1383_Maximum_Performance_of_a_Team.py | 2a07bfc817f1708de9c9eecd51851bd7153eec00 | [] | no_license | arsamigullin/problem_solving_python | 47715858a394ba9298e04c11f2fe7f5ec0ee443a | 59f70dc4466e15df591ba285317e4a1fe808ed60 | refs/heads/master | 2023-03-04T01:13:51.280001 | 2023-02-27T18:20:56 | 2023-02-27T18:20:56 | 212,953,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | import heapq
from typing import List
class Solution:
def maxPerformance(self, n: int, speed: List[int], efficiency: List[int], k: int) -> int:
ef_sp = zip(efficiency, speed)
# it is important step. We will have sorted by efficiency in Desc order array
ef_sp = sorted(ef_sp, key=lambda x: x... | [
"ar.smglln@gmail.com"
] | ar.smglln@gmail.com |
6135c68dd55c44f72e47a858216e8c329d8d7419 | 5d28c38dfdd185875ba0edaf77281e684c81da0c | /mlflow/pipelines/__init__.py | 303c3ad04f3f5bd62219cd57ad2a4e454ab9bc32 | [
"Apache-2.0"
] | permissive | imrehg/mlflow | 3a68acc1730b3ee6326c1366760d6ddc7e66099c | 5ddfe9a1b48e065540094d83125040d3273c48fa | refs/heads/master | 2022-09-24T05:39:02.767657 | 2022-09-20T00:14:07 | 2022-09-20T00:14:07 | 244,945,486 | 1 | 0 | Apache-2.0 | 2020-03-04T16:11:54 | 2020-03-04T16:11:53 | null | UTF-8 | Python | false | false | 1,738 | py | # pylint: disable=line-too-long
"""
MLflow Pipelines is an opinionated framework for structuring MLOps workflows that simplifies and
standardizes machine learning application development and productionization. MLflow Pipelines
makes it easy for data scientists to follow best practices for creating production-ready ML
... | [
"noreply@github.com"
] | imrehg.noreply@github.com |
79d103fb39c6bbed9c3fefba0bd1f83375a6608c | 8f24e443e42315a81028b648e753c50967c51c78 | /python/ray/tune/config_parser.py | bae26454b0392acb0dcec18d469fc0de2144e326 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | simon-mo/ray | d07efdada8d05c6e10417f96e8dfc35f9ad33397 | 1e42e6cd15e2fb96c217cba8484e59ed0ef4b0c8 | refs/heads/master | 2023-03-06T00:09:35.758834 | 2022-12-23T18:46:48 | 2022-12-23T18:46:48 | 122,156,396 | 4 | 2 | Apache-2.0 | 2023-03-04T08:56:56 | 2018-02-20T04:47:06 | Python | UTF-8 | Python | false | false | 205 | py | from ray.tune._structure_refactor import warn_structure_refactor
from ray.tune.experiment.config_parser import * # noqa: F401, F403
warn_structure_refactor(__name__, "ray.tune.experiment.config_parser")
| [
"noreply@github.com"
] | simon-mo.noreply@github.com |
c89ad2f2c715d426be96676525cbe2cbbe7e083d | 6622c0cd289ec73078d5cf1cb88d9246160087ef | /src/day12二叉树问题/test.py | bfff24930aaced0e0f2c8f870420955dd998217d | [] | no_license | chifeng111/python_demo | 366540e8b284b4d3f2ac2377a9187a4be45192b5 | af3404935aa7148b7eb41e63b5bb782d5995e01b | refs/heads/master | 2021-01-02T08:53:53.033682 | 2017-10-14T12:34:22 | 2017-10-14T12:34:22 | 98,880,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,580 | py | # coding: utf-8
'''
{0x00, 0x01},
{0x02, 0x03},
{0x03, 0x04},
{0x05, 0x06}
'''
import sys
def AddDependency(m1, m2, _map):
if m1 not in _map:
_map[m1] = [m2]
else:
_map[m1].append(m2)
if m2 not in _map:
_map[m2] = []
def ModulesCycleDependency(m, _map):
d = _map[m]
if not... | [
"liaozhenhua1129@gmail.com"
] | liaozhenhua1129@gmail.com |
7070b76cab38dbd62ff206a9f2c312c8e9a3b96e | 4266e9b1c59ddef83eede23e0fcbd6e09e0fa5cb | /vs/gyp/test/mac/gyptest-app-error.py | 8371bb26870f6403beff80717b411c765231fd6d | [
"BSD-3-Clause"
] | permissive | barrystudy/study | b3ba6ed652d1a0bcf8c2e88a2a693fa5f6bf2115 | 96f6bb98966d3633b47aaf8e533cd36af253989f | refs/heads/master | 2020-12-24T14:53:06.219236 | 2017-10-23T02:22:28 | 2017-10-23T02:22:28 | 41,944,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,215 | py | #!/usr/bin/env python
# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Verifies that invalid strings files cause the build to fail.
"""
import TestCmd
import TestGyp
import sys
if sys.platf... | [
"2935973620@qq.com"
] | 2935973620@qq.com |
aa95213f5dfd8f12244b3ad4c0357b0ec1ab1210 | 90673e9b40a95a4f33b22172339cc67fd7b3cc1d | /boostedhiggs/nanoevents.py | b4050b4b3ea4f9f08587b02c90a36ec6ce6975b4 | [] | no_license | SangeonPark/boostedhiggs | f2b86bb9724e2c188692a9a319cc6ea16f2a78fd | bb2f0f6c111dd67a3aa2af215e8fe412cff71548 | refs/heads/master | 2023-04-11T00:59:23.618041 | 2019-12-11T23:16:37 | 2019-12-11T23:16:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,595 | py | import numpy as np
import awkward as ak
from .methods import (
METVector,
LorentzVector,
Candidate,
Electron,
Muon,
Photon,
Tau,
)
def _mixin(methods, awkwardtype):
'''Like ak.Methods.mixin but also captures methods in dir() and propagate docstr'''
newtype = type(methods.__name__ +... | [
"nick.smith@cern.ch"
] | nick.smith@cern.ch |
8b199a38bfca4e56b6fc689c0255d55c4c2c5db7 | 51fd9e45e48bd1cea58207f6d3d472e83b419194 | /src/scripts/2diff.py | 7f32a67190a46683b63c2c03df8a100caa0bbc3e | [
"Apache-2.0"
] | permissive | helioxgroup/deepspeech-reconstruction | 6076f4405dd1287723436b558c694f5ece415179 | 72f28d1e9064d221b3421c302a8725a8c71859ee | refs/heads/main | 2023-04-04T07:25:20.488237 | 2021-04-15T21:24:33 | 2021-04-15T21:24:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | # Test 2nd derivative computation
import numpy as np
import tensorflow as tf
np.random.seed(0)
# loss = 'ctc'
loss = 'ce'
bs = 32
fdim = 26
ilen = 100
olen = 10
nlabels = 28
x = tf.Variable(np.random.rand(bs, ilen, fdim), dtype=tf.float32)
W = tf.Variable(np.random.rand(fdim, nlabels), dtype=tf.float32)
with tf.Gra... | [
"trungv.dang@outlook.com"
] | trungv.dang@outlook.com |
4fbeac8a60c377c4ab8bb5b1c063ee1960165f4b | ef1458fae5fbd6b7a9281ccd4d9bc8289f3dd38b | /tests/test_samplestats.py | 17c502dcdc229ebcbd94c60f9ab5f831a554c7ce | [
"BSD-3-Clause"
] | permissive | vt100/mystic | a42910537c3de90d1c2a5637bad5d866308e8863 | 7589eee4b9a7cb6056114ee6770579d173d9007b | refs/heads/master | 2021-01-17T22:28:57.743493 | 2015-07-17T15:25:35 | 2015-07-17T15:25:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,392 | py | import numpy as np
from mystic.math.measures import _k
if __name__ == '__main__':
# even-length
w = [3,1,1,1,3,3]
assert _k(w) == w
# even-length clipping
assert (np.array(_k(w,(10,10),clip=True)) > 0).tolist() == [1,1,1,1,1,1]
assert (np.array(_k(w,(25,25),clip=True)) > 0).tolist() == [0,1,1,... | [
"mmckerns@968178ea-60bd-409e-af13-df8a517b6005"
] | mmckerns@968178ea-60bd-409e-af13-df8a517b6005 |
c209285b831f71b03207b5130742b461b5e9cdad | 8e3eb5fa2cf80e2f6d265faaa410cf850ca01242 | /화물 도크.py | 7156bac8cd7dcaf79511872ede0783776c203861 | [] | no_license | first0506/Algorithm-Problem-Solving | 7a35f5fc1ea5dc0c06e3fc4b96abcbaf85fd13b1 | 4ef67297ead3eba0711de0f49b8c099ffaa29bf8 | refs/heads/master | 2022-11-06T17:18:16.360292 | 2020-07-06T11:38:12 | 2020-07-06T11:38:12 | 263,899,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | T = int(input())
for test_case in range(1, T+1):
N = int(input())
times = []
for _ in range(N):
times.append(list(map(int, input().split())))
times = sorted(times, key=lambda x:x[1])
end = times[0][0]
cnt = 1
for i in range(1, N):
if end <= times[i][0]:
end = time... | [
"first0506@naver.com"
] | first0506@naver.com |
25f627eefb8b0a812a8709085b737eedc77257f3 | 65bea3dc57eb4d6bc27fe53418c8c4bbcd8f0ca3 | /profiles/migrations/0001_initial.py | d6fc76c35694baff5230c27308233e5bcdbdfac3 | [
"MIT"
] | permissive | ezekieltech/eduTech-backend | e339e1eae12529ae414a9220b67b428afdaa057f | 33b82f57add98285b73d89bc9d97f499cdb3f1e4 | refs/heads/main | 2023-03-25T22:31:01.704584 | 2021-03-21T04:12:31 | 2021-03-21T04:12:31 | 326,237,291 | 0 | 0 | MIT | 2021-03-17T16:38:54 | 2021-01-02T17:39:46 | Python | UTF-8 | Python | false | false | 2,087 | py | # Generated by Django 3.1.5 on 2021-03-13 15:56
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='EduconsultantProfile',
fields=[
('id', mode... | [
"ezekielobhafuoso@gmail.com"
] | ezekielobhafuoso@gmail.com |
8df77a27d2b747cb1e1fafc772f2d5e5fad088d6 | 5ae615019b126421a9ccd66fd6c9052af9a27923 | /opem/Test/test_Functions.py | b7aae03591b49561955dd7de66798d7a99167193 | [
"MIT"
] | permissive | guoyanyanyun/opem | 62b401f12d990309b19b08f0637782dd408accce | 02e946397f132802b27a9384d7ff7ba4a7fca580 | refs/heads/master | 2020-04-09T11:12:00.413549 | 2018-11-12T09:44:14 | 2018-11-12T09:44:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | # -*- coding: utf-8 -*-
'''
>>> from opem.Functions import *
>>> data=[i for i in range(100)]
>>> integrate(data,1)
4867.666666666666
>>> data[0]=None
>>> integrate(data,1)
>>> linear_plot([1,2,3],[2,4,6])
[[2.0, 4.0, 6.0], 0.0, 2.0]
>>> isfloat("2")
True
>>> isfloat("2.02")
True
>>> isfloat('ss')
False
>>> filter_lamb... | [
"sepand.haghighi@yahoo.com"
] | sepand.haghighi@yahoo.com |
c947f71d2d1777f4abb4dfb167d066818ab7a3ff | 09120532659f7eb134163f92ac2f65423a04dc03 | /zproject/django/survey/teacher/migrations/0001_initial.py | 2b17accc1d2d1a6230850e396f2749e5e35e5155 | [] | no_license | hoboland21/survey | 7b2dafd76db0e9317037a0cec163a97c0ec9a8ec | 93e71f3304b381a6be03c8f813d2ba3a0b6eb218 | refs/heads/master | 2023-01-28T07:38:38.934710 | 2019-05-13T08:55:41 | 2019-05-13T08:55:41 | 182,874,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,853 | py | # Generated by Django 2.2 on 2019-04-30 06:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ImportFile',
fields=[
... | [
"jc@saipantech.com"
] | jc@saipantech.com |
e70928a610cf94f7cb28e1ce8d31ce8d6dd954ef | df42b0d05038a2940606591d548637bc51d6573d | /mounth02/day11/demo02.py | fed207512a913987794058f8243ffb92c9eece52 | [] | no_license | ThreePointFive/aid1907_0814 | 440113f5ae2df28e53a088bd3ea420d5558214b4 | 99eea9aafdf8211278425c33aba2e64d5eb2500b | refs/heads/master | 2022-12-03T19:31:21.085608 | 2019-11-09T06:25:33 | 2019-11-09T06:25:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | '''property
属性来控制输出
'''
class Wife:
def __init__(self,name,age):
self.name = name
self.age=age
def get_age(self):
return self.age
def set_age(self,age):
self.age=age
property=(get_age,set_age)
w01=Wife('caster',25)
w01.set_age(268)
print(w01.age)
| [
"760373741@qq.com"
] | 760373741@qq.com |
3d817ef9508b53859f184549c58777d00d0ecbf7 | 4b7db29ef0eede67efbb55baf0c300a7003b8310 | /Section 3/Designer_code/Video2_First_Design.py | 3133f9c7a8794e9b105a7227870409ddb1e4467b | [
"MIT"
] | permissive | PacktPublishing/-Hands-on-Python-3.x-GUI-Programming | 40ffc8b37180eb9d16e5516668efa9309f9e67b2 | 2506987b026bf30c7f9d53672755b0a22fce3379 | refs/heads/master | 2021-06-20T02:07:36.057694 | 2021-01-18T09:48:49 | 2021-01-18T09:48:49 | 174,128,053 | 11 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,033 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Video2_First_Design.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
... | [
"meghb@packtpub.com"
] | meghb@packtpub.com |
d8b2259a4784af00b7eb6df6d3392ff14912b084 | a34f36f2f08791d353b63e786fa99fe7e7c65d9f | /1271A.py | 257db5f672839f50487f90a6efe3b20aaeba7768 | [] | no_license | vijay9908/code_forces | 5f758c4417d448fb2637dd4b896dfc59409f8b97 | 7d58e52aabea612dfed52dd3534e38563bf78633 | refs/heads/master | 2021-06-25T11:54:55.179108 | 2020-11-19T15:24:08 | 2020-11-19T15:24:08 | 173,603,181 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
f = int(input())
x=min(a,d)
awd=a-x
dwd=d-x
y=min(dwd,b,c)
z=min(d,b,c)
d2=d-z
g=min(d2,a)
first=x*e+y*f
second=z*f+g*e
print(max(first,second))
| [
"vijaytanmay055@gmail.com"
] | vijaytanmay055@gmail.com |
bff1c589f0daa9c4c1748c6ff163db8a770639fe | f7ec01cc0419fa38639a8f4514aeb288bf70e8d5 | /project/object_detection/yolo_v3/utils/IOU.py | 4b0028f66b364588e3126cbaebb70bbe9e3e6dab | [] | no_license | lovejing0306/TensorFlow | dd10e58734603cb0f22c4adf32d849a4cfb08dcd | d4d4aec4d086ab916ffb1db7f992edd1b1a31eb4 | refs/heads/master | 2021-06-18T23:48:43.995706 | 2019-05-08T06:19:48 | 2019-05-08T06:19:48 | 92,510,824 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,340 | py | import numpy as np
import tensorflow as tf
def calculate_min(point, data):
min_point = point - data
return min_point
def calculate_max(point, data):
max_point = point + data
return max_point
def IOU_calculator(x, y, width, height, l_x, l_y, l_width, l_height):
'''
Cculate IOU
:param... | [
"lovejing0306@gmail.com"
] | lovejing0306@gmail.com |
8316dd070bfe50ffe819d3cb3362e71859ec6e89 | dd3bbd4e7aaee7a8a5f26b927ce28ac472c855a5 | /eggs/PIL-1.1.6-py2.7-linux-i686.egg/EGG-INFO/scripts/pilprint.py | 434bed3e44cd2b2c91d8c55fefa724a1bc9c6417 | [] | no_license | nacho22martin/tesis | ea0a822f8bdbdef6f13f41276ecd4d6e85427ca5 | e137eb6225cc5e724bee74a892567796166134ac | refs/heads/master | 2020-12-24T13:20:58.334839 | 2013-11-09T12:42:41 | 2013-11-09T12:42:41 | 14,261,570 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,370 | py | #!/home/ignacio/plone-virtualenv/bin/python
#
# The Python Imaging Library.
# $Id: pilprint.py,v 1.1.1.1 2007/09/26 00:00:36 chrism Exp $
#
# print image files to postscript printer
#
# History:
# 0.1 1996-04-20 fl Created
# 0.2 1996-10-04 fl Use draft mode when converting.
# 0.3 2003-05-06 fl Fixed a typo ... | [
"ignacio@plone.(none)"
] | ignacio@plone.(none) |
37395963f8379853974f5f8696e8b8931e11ce62 | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /travelport/models/profile_create_tags_rsp_2.py | ad47f748c488af1111b4d2fa7afdfb17c4763642 | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 766 | py | from __future__ import annotations
from dataclasses import dataclass, field
from travelport.models.base_rsp_5 import BaseRsp5
from travelport.models.tag_2 import Tag2
__NAMESPACE__ = "http://www.travelport.com/schema/uprofile_v37_0"
@dataclass
class ProfileCreateTagsRsp2(BaseRsp5):
"""
Response with all the ... | [
"chris@komposta.net"
] | chris@komposta.net |
634891dd887f82412cd1b7ec26823a973afb2113 | d4a30b61cf9b4602fe09a056f80f210d7426830f | /clinvoc/loinc.py | aea903aa670a8dd14fd2cf7761d1e074243e1184 | [
"MIT"
] | permissive | dustinrbunch/clinvoc | c3bbe444ad1e39f63a1ed9c8268cd8ee64e02113 | 98b0be94f4c3c5a9ea58a343c5ce5e27b688d1a0 | refs/heads/master | 2021-08-22T18:24:12.819112 | 2017-11-30T23:09:24 | 2017-11-30T23:09:24 | 116,181,004 | 0 | 1 | null | 2018-01-03T20:54:04 | 2018-01-03T20:54:03 | null | UTF-8 | Python | false | false | 1,043 | py | import csv
from .base import RegexVocabulary, LexicographicPatternMatchVocabulary, LexicographicRangeFillVocabulary, \
LexicographicVocabulary, left_pad, ObservationVocabulary
import os
from .resources import resources
from six import next
import io
def _read_text_file(filename):
codes = []
with io.open(fi... | [
"jcrudy@gmail.com"
] | jcrudy@gmail.com |
f7b39286d2b091f1ad630633a4d2b7ec3098387d | 94e7c790d17ba08e8a2a74077dd8b75e7ac120b0 | /chapter02/Exercise26_02.py | 9d8e9d3a031246e8e7c67e7f58065308f71f28bc | [] | no_license | lutfar9427/Exercises_Solution_of_INTRODUCTION_TO_PROGRAMMING_USING_Python | 9632e515428685dcaa7d057cf52f0e191e9f7ae0 | d037475316e6c6b7c6a7a7023318ef4ab4ed3f8d | refs/heads/master | 2020-09-02T09:04:44.990668 | 2018-10-20T00:50:12 | 2018-10-20T00:50:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | ''' **2.26 (Turtle: draw a circle) Write a program that prompts the user to enter the
center and radius of a circle, and then displays the circle and its area.
/**
* @author BASSAM FARAMAWI
* @email tiodaronzi3@yahoo.com
* @since 2018
*/
'''
import turtle # Import turtle module
import math # Import... | [
"tiodaronzi3@yahoo.com"
] | tiodaronzi3@yahoo.com |
b78e01d3e839e6f6c9a74c11e5ff4bc3a6cd0f88 | 70e970ce9ec131449b0888388f65f0bb55f098cd | /SignalMC/python/pythia8/AMSB_gluinoToChargino_M-1600GeV_M-700GeV_CTau-10cm_TuneCP5_13TeV_pythia8_cff.py | 035618a10cec7e4d889596252199520fcdd5d624 | [] | no_license | OSU-CMS/DisappTrks | 53b790cc05cc8fe3a9f7fbd097284c5663e1421d | 1d1c076863a9f8dbd3f0c077d5821a8333fc5196 | refs/heads/master | 2023-09-03T15:10:16.269126 | 2023-05-25T18:37:40 | 2023-05-25T18:37:40 | 13,272,469 | 5 | 12 | null | 2023-09-13T12:15:49 | 2013-10-02T13:58:51 | Python | UTF-8 | Python | false | false | 8,097 | py | COM_ENERGY = 13000.
MGLU = 1600 # GeV
MCHI = 700 # GeV
CTAU = 100 # mm
CROSS_SECTION = 0.00887 # pb
SLHA_TABLE="""
# ISAJET SUSY parameters in SUSY Les Houches Accord 2 format
# Created by ISALHA 2.0 Last revision: C. Balazs 21 Apr 2009
Block SPINFO # Program information
1 ISASUGRA from ISAJET # ... | [
"ahart@cern.ch"
] | ahart@cern.ch |
60a7145e797fe9b9da04053539801eccab969c45 | 5623771414b26c021be54facaaaefbd9314b389d | /pynativesite/ex7-stringcounter.py | 975d996c8e378511a3c7587ff2534e80a53bbd48 | [] | no_license | saxenasamarth/BootCamp_PythonLearning | 36b705b83c7f0e297931bb8d75cb541088690248 | d5b8fe2d6fcfe54c5a7393f218414b1122f3e49e | refs/heads/master | 2023-04-17T15:29:05.402863 | 2019-08-29T08:46:34 | 2019-08-29T08:46:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | a="Emma is a good developer. Emma is also a writer"
l=a.split()
myDict ={}
for i in l:
if i not in myDict:
myDict[i]=1
else:
myDict[i]+=1
print(myDict)
| [
"saxenasamarth@gmail.com"
] | saxenasamarth@gmail.com |
d6e9267928a3c0f506fc52dcf65dd8766979f701 | 63e6dbbca3fd45438300080e6def65896fe0f7ea | /tests/test_runner.py | 4ef52015c20d486a8ac3abf7e373495717d62d34 | [
"MIT"
] | permissive | rubyvirus/ApiTestEngine | ab7084b26ec8d046cb592df87d8a74cfa3cbe830 | be73317f593ecc2d42425f8e51109d45d3752d46 | refs/heads/master | 2021-01-01T19:33:27.153275 | 2017-07-27T13:12:10 | 2017-07-27T13:12:10 | 98,614,939 | 2 | 0 | null | 2017-07-28T06:11:58 | 2017-07-28T06:11:58 | null | UTF-8 | Python | false | false | 4,756 | py | import os
import requests
from ate import runner, exception, utils
from tests.base import ApiServerUnittest
class TestRunner(ApiServerUnittest):
def setUp(self):
self.test_runner = runner.Runner()
self.reset_all()
self.testcase_file_path_list = [
os.path.join(
... | [
"mail@debugtalk.com"
] | mail@debugtalk.com |
680a6c84c39e1de7ff9a01a0299a6d53e240bf45 | 2c74bb301f1ed83b79254944183ac5a18a639fdf | /tests/components/octoprint/test_button.py | 644c1e39437a6d69a666b58933b51f6fe644fd34 | [
"Apache-2.0"
] | permissive | Adminiuga/home-assistant | 5bec93007ddac1a268cc359bf7e48530c5f73b38 | dcf68d768e4f628d038f1fdd6e40bad713fbc222 | refs/heads/dev | 2023-02-22T22:03:31.013931 | 2022-11-09T00:27:20 | 2022-11-09T00:27:20 | 123,929,062 | 5 | 4 | Apache-2.0 | 2023-02-22T06:14:31 | 2018-03-05T14:11:09 | Python | UTF-8 | Python | false | false | 6,445 | py | """Test the OctoPrint buttons."""
from unittest.mock import patch
from pyoctoprintapi import OctoprintPrinterInfo
import pytest
from homeassistant.components.button import DOMAIN as BUTTON_DOMAIN, SERVICE_PRESS
from homeassistant.components.octoprint import OctoprintDataUpdateCoordinator
from homeassistant.components... | [
"noreply@github.com"
] | Adminiuga.noreply@github.com |
5249e7fc960985d57a355934617c01ef033bc8b0 | bc5e3ec2665f795b84671317ce736719ab79dc0f | /unit_tests/source_information/test_delete_source_information.py | e3fc02bbbeac4e5baefc5f7d83a8dc72323e5342 | [
"MIT"
] | permissive | uk-gov-mirror/LandRegistry.maintain-frontend | 9de44a9f42c4c29682276420dcf297d0afb48e5f | d92446a9972ebbcd9a43a7a7444a528aa2f30bf7 | refs/heads/master | 2021-09-26T16:14:55.686790 | 2018-10-29T15:37:03 | 2018-10-31T14:42:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,681 | py | from flask_testing import TestCase
from flask import url_for
from maintain_frontend import main
from unit_tests.utilities import Utilities
from unittest.mock import patch
from maintain_frontend.dependencies.session_api.session import Session
from maintain_frontend.constants.permissions import Permissions
class TestAd... | [
"james.lademann@landregistry.gov.uk"
] | james.lademann@landregistry.gov.uk |
392aa046fe0104e22e235838f4d8355d8a3939fa | 7f44a279773732b183963349d146a8dd9a195b88 | /home/migrations/0029_room_exhibition_page.py | a976be38f8ae51532c2347c6b5fa4bca07ade57c | [] | no_license | pseudobabble/cms-boilerplate | f138060e2f25721191289eb261185136ae9cf6bd | 3923a8ebe1541118c5551b0996557f241943831f | refs/heads/master | 2022-12-28T01:30:49.554898 | 2020-10-15T15:23:10 | 2020-10-15T15:23:10 | 283,308,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | # Generated by Django 3.1.1 on 2020-09-30 21:52
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0052_pagelogentry'),
('home', '0028_auto_20200930_2134'),
]
operations = [
migration... | [
"harryjohnson500@gmail.com"
] | harryjohnson500@gmail.com |
d26eeb5552b0369f084f7a5128394a09e9dc4b0c | e0980f704a573894350e285f66f4cf390837238e | /.history/menus/models_20201030113954.py | 8695d3c226c94c245723c3f81cade7c00b47a490 | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | from django.db import models
from django_extensions.db.fields
from modelcluster.models import ClusterableModel
# Create your models here.
class Menu(ClusterableModel):
title = models.CharField(max_length=100)
slug = AutoSlugField(
populate_from='title',
editable=True,
)
| [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
5c874cba631eba15e0314dd533f3b1f495c59b31 | ec1059f4ccea10deb2cb8fd7f9458700a5e6ca4c | /venv/Lib/site-packages/qiskit/circuit/library/standard_gates/iswap.py | b20ce83c988b144870152947a13771d29c91abc7 | [
"Apache-2.0",
"MIT"
] | permissive | shivam675/Quantum-CERN | b60c697a3a7ad836b3653ee9ce3875a6eafae3ba | ce02d9198d9f5a1aa828482fea9b213a725b56bb | refs/heads/main | 2023-01-06T20:07:15.994294 | 2020-11-13T10:01:38 | 2020-11-13T10:01:38 | 330,435,191 | 1 | 0 | MIT | 2021-01-17T16:29:26 | 2021-01-17T16:29:25 | null | UTF-8 | Python | false | false | 3,414 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivat... | [
"vinfinitysailor@gmail.com"
] | vinfinitysailor@gmail.com |
11fe2fa01c814fae5d0430170f17bba2e1579500 | 9d07335de5a17453bf8ae290d70993d7b20dddcd | /.history/rw_visual_20210223182409.py | 873abd9382e1b2417301033de09af55b5ee79f83 | [] | no_license | wh-debug/Matplotlib | 8d12291cd4135b3b42c185e6700f22c627ddb046 | b4f5bf63d977620f799d953c67b262c75344a1cb | refs/heads/master | 2023-03-14T10:09:33.602492 | 2021-02-23T13:51:21 | 2021-02-23T13:51:21 | 340,374,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | '''
Author: your name
Date: 2021-02-23 18:21:32
LastEditTime: 2021-02-23 18:24:09
LastEditors: Please set LastEditors
Description: In User Settings Edit
FilePath: \Matplotlib\rw_visual.py
'''
import matplotlib.pyplot as plt
from randowwalk import Randomwalk
rw = Randomwalk()
re.fill_walk()
plt.style.use('classic')
fig... | [
"1813763848@qq.com"
] | 1813763848@qq.com |
7e50e95d03e70a3bfb183699c250db14e12f123e | e9539de5b8832e2a09365917fe201a945bf5d99b | /leetcode415.py | e00d00059a0b342b775f908c101966fc440b5988 | [] | no_license | JoshuaW1990/leetcode-session1 | 56d57df30b21ccade3fe54e3fd56a2b3383bd793 | 6fc170c04fadec6966fb7938a07474d4ee107b61 | refs/heads/master | 2021-09-20T16:18:15.640839 | 2018-08-12T09:40:51 | 2018-08-12T09:40:51 | 76,912,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | class Solution(object):
def addStrings(self, num1, num2):
"""
:type num1: str
:type num2: str
:rtype: str
"""
reversed_num1 = list(reversed(num1))
reversed_num2 = list(reversed(num2))
length = max(len(num1), len(num2))
res = [0 for _ in xrange(... | [
"Jun.Wang@tufts.edu"
] | Jun.Wang@tufts.edu |
dc0f6e6e1f31a83777b94b3ca2f56521a5f9a717 | 3ccd609f68016aad24829b8dd3cdbb535fb0ff6d | /python/bpy/types/ArmatureGpencilModifier.py | 2455daa657818cda30d0712d8e5bd83aeba06697 | [] | no_license | katharostech/blender_externs | 79b2eed064fd927e3555aced3e2eb8a45840508e | fdf7f019a460de0fe7e62375c1c94f7ab0e9f68d | refs/heads/master | 2020-04-11T14:00:29.393478 | 2018-10-01T00:40:51 | 2018-10-01T00:40:51 | 161,838,212 | 1 | 1 | null | 2018-12-14T20:41:32 | 2018-12-14T20:41:32 | null | UTF-8 | Python | false | false | 204 | py | class ArmatureGpencilModifier:
invert_vertex_group = None
object = None
use_bone_envelopes = None
use_deform_preserve_volume = None
use_vertex_groups = None
vertex_group = None
| [
"troyedwardsjr@gmail.com"
] | troyedwardsjr@gmail.com |
d46e09613a217555e6e5ed34418ab5ecf17dcf85 | fbe77e9e2a53a4600a1d9b00b5f2c29ee3e8c59a | /externals/binaryen/test/waterfall/src/proc.py | 84bafe0942961b131f95feb6ae137242f3dae47a | [
"Apache-2.0",
"MIT",
"BSD-3-Clause"
] | permissive | AcuteAngleCloud/Acute-Angle-Chain | 8d4a1ad714f6de1493954326e109b6af112561b9 | 5ea50bee042212ccff797ece5018c64f3f50ceff | refs/heads/master | 2021-04-26T21:52:25.560457 | 2020-03-21T07:29:06 | 2020-03-21T07:29:06 | 124,164,376 | 10 | 5 | MIT | 2020-07-16T07:14:45 | 2018-03-07T02:03:53 | C++ | UTF-8 | Python | false | false | 1,838 | py | #! /usr/bin/env python
# Copyright 2016 WebAssembly Community Group participants
#
# 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
... | [
"caokun@acuteangle.cn"
] | caokun@acuteangle.cn |
064838b3c14fb7efa1e5da2a38c2ffa93073fad8 | 44846980df148e1a0621e8a359a7fd357482fd74 | /01-Defining_classes/06-Flower.py | d74019506df0fb22837b693e4de386c3b8f96df6 | [
"MIT"
] | permissive | Beshkov/Python_OOP | 2dbd3383126f226895b652c4feaf8d79d867d4f8 | 297edadb3e7801dfeee5752a20aae6aead8da610 | refs/heads/main | 2023-04-03T14:24:59.218856 | 2021-04-18T15:13:11 | 2021-04-18T15:13:11 | 341,330,079 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | class Flower:
def __init__(self, name, water_requirements):
self.name = name
self.water_requirements = water_requirements
self.is_happy = False
self.quantity = 0
def water(self, quantity):
self.quantity = quantity
if self.quantity >= self.water_requirements:
... | [
"alexander.beshkov@gmail.com"
] | alexander.beshkov@gmail.com |
3fe35b303c4495a32d225afeb818b22ab559ed00 | 709f9dd4c975718df248a22431b99321b8840988 | /solutions/data_structures/avg_rating_nested.py | cac491fdf3fed5d6eaa39e3f6985d7c65d1e3089 | [] | no_license | Lionking2018/intropython | f3dccea8fba4713ac91bafcc99d7a3969e0423de | 4382189d78bcb0f1403300d473244712eb49858e | refs/heads/master | 2020-05-04T01:10:33.074114 | 2019-04-01T03:30:59 | 2019-04-01T03:30:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | netflix_favs = {
'Narcos': {
'premiere_year': 2015,
'total_seasons': 3,
'rating': 5,
'age_limit': '16+'
},
'The Good Place': {
'premiere_year': 2016,
'total_seasons': 3,
'rating': 4,
'age_limit': '13+'
},
'Sense8': {
'premiere_y... | [
"sdelquin@gmail.com"
] | sdelquin@gmail.com |
a6377abe573cb58c29683b449754f581e213f387 | 07d40ece1379dd95b6259b23f9358cafcd1daa36 | /business/my_page_business.py | 0eba7d4e43232d7ad421f9bb4555fbf044f451ba | [] | no_license | z1069867141/zzmx | b4c5881bae275b694a20649014439377cf916e46 | ab0266c935f6f21a158998dc84b5c02443f6d628 | refs/heads/master | 2022-08-24T06:49:24.834403 | 2020-05-24T17:06:40 | 2020-05-24T17:06:40 | 264,108,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py | import os
import sys
sys.path.append(os.getcwd())
from handle.my_page_handle import my_p
from selenium import webdriver
import time
import pymysql
from mysql.mysql_function import mysql_function
class my_page(object):
def __init__(self,driver):
self.mp_b = my_p(driver)
def click_set(self):
sel... | [
"919824370@qq.com"
] | 919824370@qq.com |
4ae106e866373b5dd410478098c0d0aed0281297 | a7f855efff14e0b15cffb3f035d8dc9f7f102afe | /mfb/extraMac/UTpackages/UTvolrend/UTVolumeLibrary.py | 4c446437e786ecadae139e63ffac5efdd7d37e4e | [] | no_license | BlenderCN-Org/FlipbookApp | 76fcd92644c4e18dd90885eeb49e5aecae28f6f0 | 0df2acebf76b40105812d2e3af8f0ef4784ab74c | refs/heads/master | 2020-05-27T14:33:25.330291 | 2014-07-10T17:47:29 | 2014-07-10T17:47:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,606 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.31
#
# Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes.
import _UTVolumeLibrary
import new
new_instancemethod = new.instancemethod
try:
_swig_p... | [
"mike.c.pan@gmail.com"
] | mike.c.pan@gmail.com |
a27dd330b64895b45778896a3420a5b3299c3d2a | 7c8bd2e26fdabf1555e0150272ecf035f6c21bbd | /ps프로젝트/Tr/이진 검색 트리.py | fa0067dd613bfa12638a810af539b50dd098ff45 | [] | no_license | hyeokjinson/algorithm | 44090c2895763a0c53d48ff4084a96bdfc77f953 | 46c04e0f583d4c6ec4f51a24f19a373b173b3d5c | refs/heads/master | 2021-07-21T10:18:43.918149 | 2021-03-27T12:27:56 | 2021-03-27T12:27:56 | 245,392,582 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | import sys
sys.setrecursionlimit(10**6)
def postorder(start,end):
if start>end:
return
div=end+1
for i in range(start+1,end+1):
if post[start]<post[i]:
div=i
break
postorder(start+1,div-1)
postorder(div,end)
print(post[start])
if __name__ == '__main__':... | [
"hjson817@gmail.com"
] | hjson817@gmail.com |
4cd55693bc93d9e19bd3ab13a30a7a91bac1d33b | 161d7836e73fba496838c59ce7ee94bf685fb696 | /_unittests/ut_mokadi/test_speech_system.py | 30263604f1b1059df1b3c977cb98899e92b1e9f4 | [
"MIT"
] | permissive | sdpython/botadi | 80b985f21bdab5f917316348ed5f5cf9aa053c40 | 5e5464824a9c446ac567031245603205848558d3 | refs/heads/master | 2022-06-15T00:06:17.801753 | 2022-06-13T11:44:21 | 2022-06-13T11:44:21 | 163,576,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | # -*- coding: utf-8 -*-
"""
@brief test log(time=10s)
"""
import os
import unittest
import warnings
from pyquickhelper.loghelper import fLOG
from pyquickhelper.pycode import is_travis_or_appveyor, add_missing_development_version, ExtTestCase
class TestSpeechSystem(ExtTestCase):
def setUp(self):
add_... | [
"xavier.dupre@gmail.com"
] | xavier.dupre@gmail.com |
0d02876a6c11f287264f8d73c8660e9984834f4b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_notch.py | dd803a71f31f6a3836bc904e8c2875a9eca60c60 | [
"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 | 304 | py |
#calss header
class _NOTCH():
def __init__(self,):
self.name = "NOTCH"
self.definitions = [u'to cut a notch in something']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'verbs'
def run(self, obj1 = [], obj2 = []):
return self.jsondata
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
447d838e87100cdb48f71811397a7365383257b2 | 5588ea35c23e9d2a1a6ff0d5400d83b5b6c9bead | /optbinning/binning/binning_information.py | 5fea471d46df13df8807fd723d7634f43cf383c8 | [
"Apache-2.0"
] | permissive | mnjenga2/optbinning | 378b97bc0c10a96399ce22d9f11bc21bf8f9533f | 25af0722e1bdf6ebc68cfc6f0ce0156ac9b2bcd8 | refs/heads/master | 2022-11-17T10:24:59.622236 | 2020-07-19T15:55:23 | 2020-07-19T15:55:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,685 | py | """
Optimal binning information.
"""
# Guillermo Navas-Palencia <g.navas.palencia@gmail.com>
# Copyright (C) 2019
import numpy as np
from sklearn.base import BaseEstimator
from .options import continuous_optimal_binning_default_options
from .options import multiclass_optimal_binning_default_options
from .options im... | [
"g.navas.palencia@gmail.com"
] | g.navas.palencia@gmail.com |
331e12f77b1298ca687aa8abf1b06e8b53670ca8 | 40be08bbfed4bd6a951c18cc4bc0bf1f00e7e8a6 | /lib/systems/d-tyrosine.py | b8c0453bbd0d2565282bb8aa5af87923778961db | [
"BSD-3-Clause"
] | permissive | pulsar-chem/Pulsar-Core | 5bf4239c0a0de74d3f12a1c8b9bea2867fd8960c | f8e64e04fdb01947708f098e833600c459c2ff0e | refs/heads/master | 2021-01-18T06:51:05.905464 | 2017-06-04T02:31:44 | 2017-06-04T02:31:44 | 46,251,809 | 0 | 2 | null | 2017-05-25T14:59:51 | 2015-11-16T04:21:59 | C++ | UTF-8 | Python | false | false | 1,324 | py | import pulsar as psr
def load_ref_system():
""" Returns d-tyrosine as found in the IQMol fragment library.
All credit to https://github.com/nutjunkie/IQmol
"""
return psr.make_system("""
C 2.8922 -0.8221 -1.1174
C 1.4285 -0.8328 -0.6961
C 1.0097... | [
"noreply@github.com"
] | pulsar-chem.noreply@github.com |
e44b5cc61b8f1316e7e39504e69b3d259b1fb826 | 61673ab9a42f7151de7337608c442fa6247f13bb | /turtle/hexagone/main.py | 79ce05588cb9650916614442edd18f018a6a02b6 | [
"MIT"
] | permissive | furas/python-examples | 22d101670ecd667a29376d7c7d7d86f8ec71f6cf | 95cb53b664f312e0830f010c0c96be94d4a4db90 | refs/heads/master | 2022-08-23T23:55:08.313936 | 2022-08-01T14:48:33 | 2022-08-01T14:48:33 | 45,575,296 | 176 | 91 | MIT | 2021-02-17T23:33:37 | 2015-11-04T23:54:32 | Python | UTF-8 | Python | false | false | 1,175 | py | import turtle
from math import pi, sin, cos
def hexagone(point, longueur,c):
l = longueur
x, y = point
turtle.up()
turtle.goto(point)
turtle.color(c[0]) #black
turtle.down()
turtle.begin_fill()
turtle.goto(l * cos(4 / 3 * pi )+x, l * sin(4 / 3 * pi)+y)
turtle.goto(l * cos(5 / 3 * pi)+x, l... | [
"furas@tlen.pl"
] | furas@tlen.pl |
1a3e08e306facde599652aa55be243b8556bfc6d | 890d2361bcc185a65af1f1089fe594ce93a771c4 | /answers_100+_programs/tmp.py | bf7fb0dbe7b4d0949b23fbbadd4d9cf290527f9d | [] | no_license | panu2306/Python-programming-exercises | 307b255209233f95ac2b205cb063b56c303fe67d | a4df9c89d2cb07bbfb16d23be081efa55d738814 | refs/heads/master | 2023-01-22T18:12:56.047582 | 2020-12-05T11:21:21 | 2020-12-05T11:21:21 | 255,521,445 | 0 | 0 | null | 2020-04-14T05:48:30 | 2020-04-14T05:48:29 | null | UTF-8 | Python | false | false | 138 | py | import re
txt = "The rain in Spain"
x = re.search("^The.*Spain$", txt)
if x:
print("YES! We have a match!")
else:
print("No match")
| [
"pranavbhendawade@gmail.com"
] | pranavbhendawade@gmail.com |
d2e24dd5b76387fd4620ae86e797d5f2a4eeef1c | d5b48163d236ca770be8e687f92192e2971397e8 | /keysdict.py | 18963f29912462eeee5e2e06c2daef6dc14d3846 | [] | no_license | Kunal352000/python_program | 191f5d9c82980eb706e11457c2b5af54b0d2ae95 | 7a1c645f9eab87cc45a593955dcb61b35e2ce434 | refs/heads/main | 2023-07-12T19:06:19.121741 | 2021-08-21T11:58:41 | 2021-08-21T11:58:41 | 376,606,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | x={'a':39,'b':78,'c':65,'11':23,'12':45,13:40}
print(x)
print(x.keys())
print(type(x.keys()))
for i in x.keys():
print(i,end=" ")
print()
print(type(i))
| [
"noreply@github.com"
] | Kunal352000.noreply@github.com |
16b649016334f76c35494556505fbc781db4a3fb | d8008fdbfab54e36167747e8bb5ed639935a7d28 | /BigProj/Chatissimo/app.py | fe12cb4c6ed6e0b254791d9f56da90f9a6cc914f | [] | no_license | dancb10/ppscu.com | 90cce23496eaf97b0212988b23138d13046dab3b | cf1e28b41dcd6048cf2236f081891360f2741d03 | refs/heads/master | 2022-12-09T05:30:58.328023 | 2021-01-07T12:48:06 | 2021-01-07T12:48:06 | 63,581,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | from flask import Flask, render_template
from flask_socketio import SocketIO
app = Flask(__name__)
app.config['SECRET_KEY'] = 'secret!'
socketio = SocketIO(app)
from flask_socketio import join_room, leave_room
from flask_socketio import send, emit
@socketio.on('my event')
def handle_my_custom_event(data):
emit(... | [
"dapopesc@Dans-MacBook-Pro.local"
] | dapopesc@Dans-MacBook-Pro.local |
d22bb51e93002a52c6bd583ccc04d99e47130c60 | e3d09f5467a29e457048e8caccdce08b01387c8a | /tests/test_catalog.py | dd5e4a2f6cd9c8d3698b3ac541d4f557aa59087f | [
"MIT"
] | permissive | sajabdoli/jschon | 958181d24bbdc440725274067c6038f60ecaea1a | 63a602745c825abce3851207bd37372e0ce4452d | refs/heads/main | 2023-08-03T09:07:55.700537 | 2021-09-20T06:13:15 | 2021-09-20T06:13:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,332 | py | import json
import pathlib
import tempfile
import pytest
from jschon import Catalog, CatalogError, URI, JSONPointer, JSONSchema, JSON, create_catalog
from tests import example_schema, metaschema_uri_2020_12
json_example = {"foo": "bar"}
@pytest.fixture
def new_catalog():
return Catalog(default=False)
def tes... | [
"52427991+marksparkza@users.noreply.github.com"
] | 52427991+marksparkza@users.noreply.github.com |
8562715e27a81c5afaaa0de22707df58099f3ac3 | b5b117371b463ba68be14345549f16098bb311ef | /curso_em_video/mundo_01/desafios/usando_modulos_do_python/ex021.py | d96113d902bbefc8cd4de46c65df64d70bb01bf3 | [] | no_license | thuurzz/Python | f1d0f5038ed97fbf4dc83c352102efcdde25ace8 | 7bd61180fe7594aad7d6cb787772a384f18ced87 | refs/heads/master | 2022-11-05T17:22:02.661665 | 2021-05-17T02:59:37 | 2021-05-17T02:59:37 | 245,733,534 | 0 | 1 | null | 2022-10-23T12:20:43 | 2020-03-08T01:34:31 | Python | UTF-8 | Python | false | false | 142 | py | #tocando MP3 com a lib pygame
import pygame
pygame.init()
pygame.mixer_music.load('ex021.mp3')
pygame.mixer_music.play()
pygame.event.wait()
| [
"arthur.silva@aluno.faculdadeimpacta.com.br"
] | arthur.silva@aluno.faculdadeimpacta.com.br |
0ec455911c1ab290253082808da2e25622d4c158 | c7770d7631f2930cce80462f9c3ee7e2abe118bb | /src/muses/collection/models/period.py | 5bbb6ea5691c3dc24ad1739995e67d4f71ed7624 | [
"Apache-2.0"
] | permissive | Aincient/cleo | 4f277520a22792aa5b505601849a7ff3a4bd4196 | 933ef372fa7847d943206d72bfb03c201dbafbd6 | refs/heads/master | 2021-06-18T11:01:49.137359 | 2021-01-12T16:34:44 | 2021-01-12T16:34:44 | 150,566,366 | 0 | 3 | NOASSERTION | 2021-01-12T16:34:46 | 2018-09-27T10:00:20 | Python | UTF-8 | Python | false | false | 1,416 | py | from __future__ import absolute_import, unicode_literals
from django.db import models
from django.utils.translation import ugettext_lazy as _
from mptt.models import MPTTModel, TreeForeignKey
from six import python_2_unicode_compatible
__all__ = (
'Period',
)
@python_2_unicode_compatible
class Period(MPTTModel... | [
"artur.barseghyan@gmail.com"
] | artur.barseghyan@gmail.com |
8a22f0fb8aa3a956133ff15591c5281360269bd6 | 38da8edb2102ad29eda8784cbb845cac0b96bbca | /176_deco_with_arg.py | da2dd44c77ee84d3fdec4a0a4fd76065eb523c25 | [] | no_license | Prateek2201/Python_codes | 1a655a3e6820e7ecb1fb8a8abd266a8ae0508cb5 | 436a36544edac80cbe420c7b9ddb718df46b68da | refs/heads/main | 2023-08-01T03:10:51.864186 | 2021-09-17T18:08:40 | 2021-09-17T18:08:40 | 407,635,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | from functools import wraps
def only_datatype_allow(data_type):
def decorator(func):
@wraps(func)
def wrapper(*args, **kwargs):
if all([type(arg)==data_type for arg in args]):
return func(*args,**kwargs)
else:
return 'Invalid argsuments... | [
"noreply@github.com"
] | Prateek2201.noreply@github.com |
e88f6ac435a26acbd94c78dc15bacb75b8f7c55d | 2da02bd20ae4d621ef02d557ebb7ce20dd5482ff | /clitooltester/test_runner.py | 49eb485cbdbfadddaba8d177dcbb980222cab75f | [
"Apache-2.0"
] | permissive | dfirlabs/clitooltester | 54544eddbe3ec8d3b86a6a6846faa2fadcfc3e37 | ffe23b7b7458212d150390f476cda74e89fc97e1 | refs/heads/main | 2021-11-23T21:44:03.777813 | 2021-10-31T13:04:31 | 2021-10-31T13:04:31 | 228,607,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | # -*- coding: utf-8 -*-
"""Command line tool test runner."""
from __future__ import unicode_literals
class TestRunner(object):
"""Command line tool test runner."""
def ReadConfiguration(self, path):
"""Reads the configuration from a file.
Args:
path (str): path of the configuration file.
"""
| [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
168cf8df7410467e2ce9e176451a4dd10705ab49 | fb5dd7410679bd28299cfe3841de6fe826d978cb | /src/user/migrations/0002_auto_20201207_1825.py | 9f881775e4d02973c4bc130028dbacda53f05e12 | [] | no_license | IvanYukish/finance-manager | 35202fde63a7f519b52d8e09f3f64dd547cccbc5 | 9147d09cff7543361f5ccefa79ec334a58efc9a1 | refs/heads/master | 2023-07-11T14:39:17.536557 | 2021-08-04T23:05:45 | 2021-08-04T23:05:45 | 317,544,811 | 1 | 0 | null | 2021-08-23T17:18:10 | 2020-12-01T13:09:50 | CSS | UTF-8 | Python | false | false | 546 | py | # Generated by Django 3.1.3 on 2020-12-07 18:25
from django.db import migrations, models
import user.validators
class Migration(migrations.Migration):
dependencies = [
('user', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='customuser',
name... | [
"iwan.jukisch@gmail.com"
] | iwan.jukisch@gmail.com |
06d9b8ff55ed2fbb76bfbdcb87a4babf0d2bacd2 | 0874abd0a592c952a7aad6f4642776168312aee6 | /12-函数/02-注意事项.py | eb39ef7339f010e72b295b58b4eb1f0d5f23fb96 | [] | no_license | EndIFbiu/python-study | 075742d3923adad8061b5f720cabd4a33d3eb0a2 | 62a64a587077ef5f2dcd8a119ba56d3709073bf6 | refs/heads/master | 2023-02-10T08:14:08.144442 | 2020-12-27T12:23:14 | 2020-12-27T12:23:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | # 1.使用一个函数 2.测试注意事项
# 定义函数
def info_print():
print('hello world')
# 调用函数
info_print()
"""
1.先定义后调用
2.没有调用函数,函数代码不会执行
3.函数的执行流程:
当调用函数的时候,解释器会回到定义函数的下方缩进代码执行
执行完后回到调用函数的地方继续向下执行
"""
| [
"270017772@qq.com"
] | 270017772@qq.com |
2777dbd194a8ef3326bbcab1b6100c10510741bb | 43e5441f74359d620be6f7f80c99622769ea9774 | /venv/Lib/site-packages/tb_paddle/file_writer.py | 7140441ed49b89658d66a95feff3501103a1f992 | [] | no_license | 33Da/deeplearn_eassy | 96f1bd09fe3df907c650378215eb686e4ab2801e | 82d60c5ec3aec60822d68d13f11ef1320d0bba2e | refs/heads/master | 2023-02-07T15:02:00.202693 | 2021-01-05T05:03:22 | 2021-01-05T05:03:22 | 326,892,905 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,950 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import time
from .event_file_writer import EventFileWriter
from .proto import event_pb2
class FileWriter(object):
"""Writes protocol buffers to event files to be consumed by TensorBoard.
The `FileWr... | [
"764720843@qq.com"
] | 764720843@qq.com |
aa9d2e9bb8d661e9be2db95c36fc2df05cd76db3 | c1120d1d6352f35dc988b9874b24cd30f83f2f58 | /search_submit/tests.py | 4731168e669f8ab9ac87f22768712156183b9f33 | [] | no_license | andrem122/Invoice-Management | 70032d86cfdfb2ed21479baae3a8057f88b61047 | 7f7a617a39602a656ff54724c344745038f304b4 | refs/heads/master | 2022-12-11T19:19:47.898336 | 2020-10-01T01:39:52 | 2020-10-01T01:39:52 | 120,393,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | from django.test import TestCase
from .views import Search_Submit_View
from django.test import Client
class Test_Search(TestCase):
def setUp(self):
self.c = Client()
def test_values_normalize_query(self):
#test to see if incorrect data types are dealt with
search_submit_view = Search_Su... | [
"andre.mashraghi@gmail.com"
] | andre.mashraghi@gmail.com |
f73c52321076fade49523070a1e3b273c1795d7a | 4a1b61cf551db7843050cc7080cec6fd60c4f8cc | /2020/백준문제/백트래킹/14888_연산자 끼워넣기(godyd2702).py | 9cd8659a763dace3fcc1d348c9bc604318b17254 | [] | no_license | phoenix9373/Algorithm | 4551692027ca60e714437fd3b0c86462f635d8ff | c66fd70e14bb8357318e8b8f386d2e968f0c4d98 | refs/heads/master | 2023-08-24T10:01:20.798430 | 2021-10-15T07:57:36 | 2021-10-15T07:57:36 | 288,092,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | M = -10 ** 9
m = 10 ** 9
N = int(input())
num = list(map(int, input().split()))
a, b, c, d = map(int, input().split())
def inst(n, i, d1, d2, d3, d4):
global M, m
if i == N:
M = max(M, n);m = min(m, n);return
else:
if d1: inst(n + num[i], i + 1, d1 - 1, d2, d3, d4)
if d2: inst(n - ... | [
"phoenix9373@naver.com"
] | phoenix9373@naver.com |
0b7be87224520bb9408cd8049f7d7e65582aa728 | 4aa7a4d0525095725eb99843c83827ba4806ceb1 | /ML/m26_earlyStopping.py | d85e06cd4038a8f0760a03f63d358972ec9dcef2 | [] | no_license | seonukim/Study | 65a70f5bdfad68f643abc3086d5c7484bb2439d4 | a5f2538f9ae8b5fc93b5149dd51704e8881f0a80 | refs/heads/master | 2022-12-04T17:04:31.489771 | 2020-08-21T00:35:15 | 2020-08-21T00:35:15 | 260,144,755 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | # xgboost evaluate
import numpy as np
from sklearn.feature_selection import SelectFromModel
from xgboost import XGBRegressor
from sklearn.model_selection import train_test_split
from sklearn.metrics import r2_score
from sklearn.datasets import load_boston
## 데이터
x, y = load_boston(return_X_y = True)
print(x.shape) ... | [
"92.seoonooo@gmail.com"
] | 92.seoonooo@gmail.com |
3cd0488b6b634aac8022d5257434a461105d2364 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02578/s995045217.py | d1f71aa2eceeb57ffbd4b83ec3aa667c45437a0b | [] | 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 | 241 | py | from sys import stdin
from math import ceil
inp = lambda : stdin.readline().strip()
n = int(inp())
a = [int(x) for x in inp().split()]
curr = 0
ans = 0
for i in a:
curr = max(curr, i)
if i < curr:
ans += curr - i
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c4afa4d8b74bc42805d910469039f3a47e385759 | 59166105545cdd87626d15bf42e60a9ee1ef2413 | /test/test_locality_api.py | 653a1d95e0e5dc251e9a10fcf65664d83719718b | [] | no_license | mosoriob/dbpedia_api_client | 8c594fc115ce75235315e890d55fbf6bd555fa85 | 8d6f0d04a3a30a82ce0e9277e4c9ce00ecd0c0cc | refs/heads/master | 2022-11-20T01:42:33.481024 | 2020-05-12T23:22:54 | 2020-05-12T23:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | # coding: utf-8
"""
DBpedia
This is the API of the DBpedia Ontology # noqa: E501
The version of the OpenAPI document: v0.0.1
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import dbpedia
from dbpedia.api.locality_api import LocalityApi # ... | [
"maxiosorio@gmail.com"
] | maxiosorio@gmail.com |
d248a55669dbb6f95e7048320573eff2922fcd85 | a8d86cad3f3cc6a977012d007d724bbaf02542f7 | /vendors/marvin/marvin/cloudstackAPI/addBaremetalPxePingServer.py | ad3ae5db84fb4c57e1b4ce248bdcc756014ab43e | [] | no_license | bopopescu/bigrobot | f8d971183119a1d59f21eb2fc08bbec9ee1d522b | 24dad9fb0044df5a473ce4244932431b03b75695 | refs/heads/master | 2022-11-20T04:55:58.470402 | 2015-03-31T18:14:39 | 2015-03-31T18:14:39 | 282,015,194 | 0 | 0 | null | 2020-07-23T17:29:53 | 2020-07-23T17:29:52 | null | UTF-8 | Python | false | false | 3,134 | 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... | [
"vui.le@bigswitch.com"
] | vui.le@bigswitch.com |
2c41f55a2753fd378c6b955b81ea0dc108036626 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/924f6b53a63dede6e59f/snippet.py | 19dcb8b5bcbeee647a0675544e42b8c24949c89b | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 7,080 | py | #
# Extract files from Bare git-annex repositories without git-annex
# Supports version v6
#
# See internals: http://git-annex.branchable.com/internals/
#
# Modified: added non-bare repos, added tar file (of symlinks) output for use with archivemount
#
# TODO: improve output
# TODO: use cat-files instead of archive
# T... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
7ba87e118ff1a299de306a3d4f2f509d0f68a0ff | dfb3d0b9e5ed3b061a9dcc0a3605af2daa9c5ef2 | /mobile/urls.py | 4e8184edbf9a14432f32e664681d6d21116d70cd | [] | no_license | aishAMZK/shopping | acd7d3c9ace0df75cd90befcbd38f0b8bb86ff8b | 5f40dbe24854c0e8438005fc896120f6f9d295d5 | refs/heads/master | 2023-04-03T12:42:19.136978 | 2021-04-16T13:29:48 | 2021-04-16T13:29:48 | 358,573,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | """mobileproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | [
"aiswaryakrishna46@gmail.com"
] | aiswaryakrishna46@gmail.com |
c19e08ed04866b1573abf2e8286143f87b1a9b13 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5706278382862336_1/Python/ikostia/solution.py | 34c5e06e1566a0a1531a0ee3e58b53d70f3a967a | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | #! /usr/bin/python
debug = False
def gcd(a, b):
if b == 0:
return a
return gcd(b, a % b)
def solve(input_data):
den, num = input_data
d = gcd(den, num)
den = den / d
num = num / d
bnum = map(lambda d: d == '1', list(bin(num)[3:]))
if any(bnum):
return "impossible"
res = 1
while den < num / 2 and res ... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
b6c72913fc978ae4001e780fa3bed14b6dcf0015 | ca776f549e4103f3ec8bc1d78ea9ddc98eee9cb4 | /siconos/Local/SpheresPyramid/params.py | 5663ef4012af905bc8c36b3ac0beb18c80fdeaba | [] | no_license | FrictionalContactLibrary/fclib-scripts | d4a0f63333bcfa77e1ca5eaed6be587400a82b47 | dbef104353f3d196273ac99ad9ca0b73dc346fcb | refs/heads/master | 2022-05-25T20:12:17.310343 | 2022-05-13T14:15:38 | 2022-05-13T14:15:38 | 77,398,419 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | import Siconos.Numerics as Numerics
t0 = 0
T = 30
h = 0.0005
g = 9.81
theta = 0.50001
mu = 2.0
dump_itermax = 80
dump_probability = .05
itermax = 100000
NewtonMaxIter = 20
tolerance = 1e-8
solver = Numerics.SICONOS_FRICTION_3D_NSGS
multipointIterations = False
import imp
try:
imp.load_source('mkinput', 'mkinput.p... | [
"vincent.acary@inria.fr"
] | vincent.acary@inria.fr |
da2f3447df25e8672a8c89d31eb740322ae1790f | 5be8b0f2ee392abeee6970e7a6364ac9a5b8ceaa | /xiaojian/xiaojian/forth_phase/Django./day08/code/note/mynote/admin.py | c52aded9e2cc4e58c61eeed3be026b54015fcc6a | [] | no_license | Wellsjian/20180826 | 424b65f828f0174e4d568131da01dafc2a36050a | 0156ad4db891a2c4b06711748d2624080578620c | refs/heads/master | 2021-06-18T12:16:08.466177 | 2019-09-01T10:06:44 | 2019-09-01T10:06:44 | 204,462,572 | 0 | 1 | null | 2021-04-20T18:26:03 | 2019-08-26T11:38:09 | JavaScript | UTF-8 | Python | false | false | 188 | py | from django.contrib import admin
from . import models
from user import models as u_models
# Register your models here.
admin.site.register(u_models.User)
admin.site.register(models.Note)
| [
"1149158963@qq.com"
] | 1149158963@qq.com |
b0a622e6c7ab5d8810032327c012c41f075dbbbc | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/348/92907/submittedfiles/principal.py | 8674f107067ffc4d8d05766f3d3d2689e85555f5 | [] | 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 | 235 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
notas = []
for i in range(0,50,1):
notas.append(float(input('digite a nota%d: ' % ( i+1))))
media = 0
for i in range(0,50,1):
media += notas[i]/50.0
print(notas)
print(media)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
ede12433d9359fd4d0bd72ba7be09ba5b9ad0180 | 71e539273a80f943b0e2164228fe9e5288c90e62 | /Python/KidsWithTheGreatestNumberOfCandies.py | 253eb8e1802aacb6926340c9ff5929c5b0c98a8c | [] | no_license | abhi10010/LeetCode-Solutions | f67206052674585b57b93dae4cd9d68282b39bd6 | 01993de9f431dff487787709af8556f476e6b20b | refs/heads/master | 2022-11-09T20:07:27.689429 | 2020-06-25T13:37:19 | 2020-06-25T13:37:19 | 271,465,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | class Solution:
def kidsWithCandies(self, candies: List[int], extraCandies: int) -> List[bool]:
res = list()
m = max(candies)
for i in candies:
if i + extraCandies >= m:
res.append(True)
else:
res.append(F... | [
"noreply@github.com"
] | abhi10010.noreply@github.com |
0c82c12388765452f1cf2aab6bd56e2b66ed9de6 | f9f4a41b8274e64a07eef099d937f60715f35d83 | /4_matrix/vec.py | 5ec3ec510e269b32c21f76b614ecad11c157a927 | [] | no_license | tsh/linear-algebra-coding-the-matrix | ae178f177650e56e623c8a6c7f8dda6c972e276d | d9f33165161009d1417c15eccce8ad1196c3248b | refs/heads/master | 2021-01-21T13:04:41.687831 | 2018-02-25T17:53:50 | 2018-02-25T17:53:50 | 55,892,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,040 | py | # version code 24ea27739109+
coursera = 1
# Please fill out this stencil and submit using the provided submission script.
# Copyright 2013 Philip N. Klein
def getitem(v,k):
"""
Return the value of entry k in v.
Be sure getitem(v,k) returns 0 if k is not represented in v.f.
>>> v = Vec({'a','b','c', '... | [
"dr.tallin@gmail.com"
] | dr.tallin@gmail.com |
2db35a9389103e8fc0a087681249cddef6e0d20b | a893d00bae0c0fa7db1d42cd14c368033e1c3d3f | /9-5/练习9-14/die.py | 1f6c887e08f14484099ec666f0ad6ae9a2a306ba | [] | no_license | taozhenting/python_introductory | 71ac4b5fe4aa45a9008c9510c77e34e31226f849 | f88afa0b4232e7ba79b42c370f2266fde85e7462 | refs/heads/master | 2020-04-27T06:02:20.169314 | 2019-05-22T09:17:40 | 2019-05-22T09:17:40 | 174,096,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | from random import randint
class Die():
def __init__(self,sides=6):
self.sides = sides
self.one = 1
def roll_die(self):
x = randint(self.one,self.sides)
print(x)
def read_die(self,sides2):
self.sides = sides2
self.numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
... | [
"taozt@ichile.com.cn"
] | taozt@ichile.com.cn |
159812a4b18ec101b40c8c31eb36200bb142dfce | 0c66e605e6e4129b09ea14dbb6aa353d18aaa027 | /diventi/landing/migrations/0056_auto_20190413_2004.py | a41e9da7e50da70d6a58ef7449d21c6cbc0ecd64 | [
"Apache-2.0"
] | permissive | flavoi/diventi | 58fbc8c947f387cbcc1ce607878a59a6f2b72313 | c0b1efe2baa3ff816d6ee9a8e86623f297973ded | refs/heads/master | 2023-07-20T09:32:35.897661 | 2023-07-11T19:44:26 | 2023-07-11T19:44:26 | 102,959,477 | 2 | 1 | Apache-2.0 | 2023-02-08T01:03:17 | 2017-09-09T14:10:51 | Python | UTF-8 | Python | false | false | 777 | py | # Generated by Django 2.1.7 on 2019-04-13 18:04
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('landing', '0055_auto_20190413_2003'),
]
operations = [
migrations.AlterField(
model_name='featu... | [
"flavius476@gmail.com"
] | flavius476@gmail.com |
820bec30ea20c4419a39ee8f3192743c7b3f1c6d | 59fbeea017110472a788218db3c6459e9130c7fe | /n-ary-tree-postorder-traversal/n-ary-tree-postorder-traversal.py | 923780e9e3d8cd5c4ae09ec7bf45b6b7b5e60d78 | [] | no_license | niufenjujuexianhua/Leetcode | 82b55d9382bc9f63f4d9da9431194e20a4d299f1 | 542c99e038d21429853515f62af51a77deaa4d9c | refs/heads/master | 2022-04-27T16:55:00.035969 | 2022-03-10T01:10:04 | 2022-03-10T01:10:04 | 79,742,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | class Solution(object):
def postorder(self, root):
"""
:type root: Node
:rtype: List[int]
"""
res = []
self.dfs(root, res)
return res
def dfs(self, node, res):
if not node:
return
for child in node.children:
... | [
"wutuo123@yeah.net"
] | wutuo123@yeah.net |
6051807f71b0884aa6953e4016a2b4be5a0ece68 | 5dde149d7577425387940d22b6df3919a5b73061 | /Realestate3/Tagent3/models.py | 3808e3f2e33693e673056756ecf1e11ea76a3e0f | [] | no_license | Jagadishbommareddy/agent | cbed666381b1c017c679a4b1b30a838abb17739d | 925659ca1fb4d0138d367f2a4c5675b1473193cd | refs/heads/master | 2021-01-22T00:51:31.824816 | 2017-09-02T12:27:38 | 2017-09-02T12:27:38 | 102,194,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,201 | py | from django.db import models
from .validators import*
class ContactInfo(models.Model):
mobile_number = models.CharField(max_length=15,validators=[validate_mobile_no])
phone_number = models.CharField(max_length=15,validators=[validate_phone_no])
email_id = models.EmailField()
class Address(models.Model... | [
"noreply@github.com"
] | Jagadishbommareddy.noreply@github.com |
178278173909f8e03f01544245087820b88c205d | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/util/datastruct/CaseInsensitiveDuplicateStringComparator.pyi | 5394dd55f716c89f9810c9391ef745871fb4bc39 | [
"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 | 2,755 | pyi | import java.lang
import java.util
import java.util.function
class CaseInsensitiveDuplicateStringComparator(object, java.util.Comparator):
"""
Comparator for sorting Strings in a case insensitive way except that case insensitive duplicates
are then sub-sorted by reverse case so that lower case is before u... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
959e579dcc1e44ee49159768722886931a44293a | 67e0e33535229f4e9e520baa9d4ca4db8ce88c10 | /BioClients/ncbo/Client.py | a0abd282522771a9c035503a34ac40c3d8cf6a6e | [
"CC0-1.0"
] | permissive | Huan-Yang/BioClients | 70a89d2067cbc9ab89b241f94c72a90a313927e4 | 7acae54548cf4d14f0a64a8503308934362da1a8 | refs/heads/master | 2023-07-01T18:09:03.993919 | 2021-08-06T00:00:49 | 2021-08-06T00:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,375 | py | #!/usr/bin/env python3
"""
http://data.bioontology.org/documentation
The National Center for Biomedical Ontology was founded as one of the
National Centers for Biomedical Computing, supported by the NHGRI, the
NHLBI, and the NIH Common Fund.
"""
###
import sys,os,argparse,re,yaml,logging,time
#
from .. import ncbo
from... | [
"jeremyjyang@gmail.com"
] | jeremyjyang@gmail.com |
768a70e5d98d7ea01062017fca6b41623f1ddfca | b72f9d9f0769265cdea2b8caff145af9c532ea09 | /practice/abc010_2.py | 941eb576e2cb058f0028912c7e422106356bcf07 | [] | no_license | ritzcr/AtCoder | 3335fefa8fb1989a0f9da80fe6d0902b46aa2d1f | 15097b0c2568ace653e5080d789047531e50edde | refs/heads/master | 2021-02-12T19:16:41.757421 | 2020-07-05T06:30:57 | 2020-07-05T06:30:57 | 244,620,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | n = int(input())
a = map(int, input().split())
count = 0
for x in a:
for y in range(x, 0, -1):
if y % 2 == 0 or y % 3 == 2:
count += 1
else:
break
print(count) | [
"ritz@freex.ltd"
] | ritz@freex.ltd |
b70ea34a3cade2aad1421876bad3c8c94dd4c5b0 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/graphics/JiveXML/share/DataTypes_InDet.py | a52fa76f6acd3aeae378a0d3c2e49aa522527249 | [] | 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 | 220 | py | # This file is provided for backwards compatibility only
# In new jobOptions please use the files included below directly
include ("InDetJiveXML/InDetJiveXML_DataTypes.py")
include ("TrkJiveXML/TrkJiveXML_DataTypes.py")
| [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
b0db655fc20d73b8a745c3ee207872f9fb565c98 | e71b6d14fbdbc57c7234ca45a47329d7d02fc6f7 | /flask_api/venv/lib/python3.7/site-packages/vsts/policy/v4_0/models/policy_evaluation_record.py | 86735338fb6201019813c2f3de4b493e5990f4e2 | [] | no_license | u-blavins/secret_sasquatch_society | c36993c738ab29a6a4879bfbeb78a5803f4f2a57 | 0214eadcdfa9b40254e331a6617c50b422212f4c | refs/heads/master | 2020-08-14T00:39:52.948272 | 2020-01-22T13:54:58 | 2020-01-22T13:54:58 | 215,058,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,367 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------------------... | [
"usama.blavins1@gmail.com"
] | usama.blavins1@gmail.com |
4ae7f729d5904e4bbc7551d4ed5d9c0ed00c7574 | 1362bc36e86f8216d405b547f5f45874ac332b1e | /Uber/flowingWater.py | 301c6cff2eec1ddfeab6791a1667001183bbebac | [] | no_license | zhuolikevin/Algorithm-Practices-Python | ed5ca06758e35d910ffbea011b414b3c57fd6c7a | 1df8d93a8ecb8627899aadddb5dd5c5d0b144cdf | refs/heads/master | 2021-01-22T01:04:31.536327 | 2016-01-15T13:31:07 | 2016-01-15T13:31:07 | 32,602,632 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | class Solution:
def search(self, i, j, visited):
stack = [(i, j)]
while stack:
x, y = stack.pop()
if x < 0 or x >= self.m or y < 0 or y >= self.n or self.mat[x][y] in visited:
continue
visited.add((x, y))
direc = [(1, 0), (-1, 0), (0, 1... | [
"lizhuogo@gmail.com"
] | lizhuogo@gmail.com |
bdd9de3bd55fd46686b5c58557b70e1fc8644139 | 0fb0dba210ff0f63515c464d7acc95ae32d7603c | /Application/Automate the Process of Reporting the Install Date for ESET/automate-the-process-of-reporting-the-install-date-for-eset.py | 50234b12a83b445eea115ed4e289aae23e4e4005 | [] | no_license | slad99/pythonscripts | 7cbe6b8bb27c8c06e140c46e7c8cf286cbc56d8e | 4e0ebb023899a602cb041ef6f153fd3b7ab032e9 | refs/heads/master | 2022-01-04T21:49:10.486758 | 2019-06-28T14:29:28 | 2019-06-28T14:29:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,668 | py | import os,socket,_winreg,getpass
b=[]
print "USER NAME: "+getpass.getuser()
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(("8.8.8.8", 80))
print "IP-ADDRESS : "+(s.getsockname()[0])
from time import gmtime, strftime
time=strftime("%Y-%m-%d %H:%M:%S", gmtime())
port=587
def computername():
... | [
"noreply@github.com"
] | slad99.noreply@github.com |
9bf830b879b67b8bd3cde7fbd237f059e00381a7 | b1d941be5cd577ce34475339b021784aa9af6395 | /libcloudforensics/logging_utils.py | 747470010f535c75cd9b624fe30eda4db675d793 | [
"Apache-2.0"
] | permissive | google/cloud-forensics-utils | ef21ac682e040b5b977aa897aaf75b3b8ec1ed6d | 38926ef5d075696b2b0f6714f3758be1e6ea1658 | refs/heads/main | 2023-09-04T11:05:42.136161 | 2023-08-28T03:25:22 | 2023-08-28T03:25:22 | 238,205,900 | 418 | 95 | Apache-2.0 | 2023-09-14T05:55:03 | 2020-02-04T12:54:51 | Python | UTF-8 | Python | false | false | 4,407 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google Inc.
#
# 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 ... | [
"noreply@github.com"
] | google.noreply@github.com |
6557dcc3b585514a79943390d6b8f3ae2e3c9ff6 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /tests/components/zodiac/test_config_flow.py | 18a512e0b455d0198ea9328ba4555bfa0d4e60d1 | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 2,119 | py | """Tests for the Zodiac config flow."""
from unittest.mock import patch
import pytest
from homeassistant.components.zodiac.const import DOMAIN
from homeassistant.config_entries import SOURCE_IMPORT, SOURCE_USER
from homeassistant.core import HomeAssistant
from homeassistant.data_entry_flow import FlowResultType
from... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
8062d69ba2538832e60059ddae623206f877de02 | 81b3efefa7ec376eacfc5c28e4e0b2b8e8fa8a80 | /net/sftpipe | e0ac8722d2cf03fe0b5d181a4bd033cc7974d499 | [
"MIT"
] | permissive | akhuettel/code | 833be8af9615ce3a5519bb803813b30db1f4a230 | 0cc56df9bcef93d19090e82fa7d12b4212123d8e | refs/heads/master | 2023-08-31T06:00:18.154407 | 2021-10-22T05:07:11 | 2021-10-22T05:07:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,322 | #!/usr/bin/env python3
# Copy data from stdin to a remote file over SFTP. To be used if the target
# server doesn't have a POSIX-like shell interface and cannot reliably use 'cat
# > quoted_path'.
import argparse
import paramiko
import re
import sys
import subprocess
def parse_dest(arg):
if arg.startswith("sftp:/... | [
"grawity@gmail.com"
] | grawity@gmail.com | |
5a8e7108bea6fe1d2aa93e4c7a45b33778200cb6 | 998ced39bbacf743a445ae3f258d9a7215f10794 | /backend/menu/migrations/0001_initial.py | 1846814f922b9a90d09a1e8b8fc3c6674aacd07b | [] | no_license | crowdbotics-apps/test-19340 | d5483e2bbd889e187c3a0b145e40dafedef66af2 | ed7f208217b30631235fcbe61c33b06b189745a2 | refs/heads/master | 2023-07-06T02:51:14.025283 | 2020-08-03T17:19:10 | 2020-08-03T17:19:10 | 284,756,281 | 0 | 0 | null | 2021-08-03T20:03:13 | 2020-08-03T16:54:02 | JavaScript | UTF-8 | Python | false | false | 3,144 | py | # Generated by Django 2.2.15 on 2020-08-03 16:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('delivery_user_profile', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.