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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3df0a1ceeeace730a593525fe10af770673e4a9f | 57522f0bdc09c57e32f8a8e34e4c5da64aedbc86 | /ERROR_UNUSUAL/ERROE_FROM_PYTHON.py | 6ce889b0debfc93ea890cfb822d651f105813efb | [] | no_license | Alexanderklau/Start_again-python- | 97b30345e2ef13d4552d7efd82498e7e615c262e | 7ffbc2a6d53e1cff1c57258169c66bbab87210bc | refs/heads/master | 2021-01-19T03:27:53.865013 | 2017-05-01T13:47:31 | 2017-05-01T13:47:31 | 87,314,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | # -*-coding:utf-8 -*-
__author__ = 'Yemilice_lau'
# NameError
# ZeroDivisionError
# SyntaxError
# KeyError
# IOError
# AttributeError
# ImportError
# 检测异常
try:
try_site()#检测这里的异常
except IOError,e:
print 'Error is:',e
# if __name__ == '__main__': | [
"429095816@qq.com"
] | 429095816@qq.com |
e54187180a4b3c1c7bb03c5ea33d3a7e525b28f0 | 7327ec847993aee7d19f647499a99aaa335894f0 | /ExceptionsClasses.py | 5f39dbc10b34c380ebfc8c145d7c28bb7d60478b | [] | no_license | chetat/chingu-journal | ae56749fd62076ab31398afbcd78acef22519033 | 1a6ef77075e866d08613a884d474303e96cb7aa8 | refs/heads/master | 2023-02-05T08:13:38.987587 | 2019-08-29T22:33:36 | 2019-08-29T22:33:36 | 200,136,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,728 | py | from flask import jsonify
class BadRequest(Exception):
status_code = 400
def __init__(self, message, status_code=None, payload=None):
Exception.__init__(self)
self.message = message
if status_code is not None:
self.status_code = status_code
self.payload = payload
... | [
"yekuwilfred@gmail.com"
] | yekuwilfred@gmail.com |
4d080f5004c60a7a65725ed543f71140381ea82a | 665455c521cc7cf76c5436337ed545de90976af4 | /cohesity_management_sdk/models/protection_runs_stats.py | 07e3d61720f3193a37daf1c0aaeaedb77522bcca | [
"Apache-2.0"
] | permissive | hsantoyo2/management-sdk-python | d226273bc8eedcf9220ea4999a6f0b9a1a30d99c | 0093194d125fc6746f55b8499da1270c64f473fc | refs/heads/master | 2023-03-01T06:09:39.644085 | 2021-01-15T08:23:16 | 2021-01-15T08:23:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,044 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Cohesity Inc.
class ProtectionRunsStats(object):
"""Implementation of the 'ProtectionRunsStats' model.
Specifies the Protection Runs statistics response.
Attributes:
num_archival_runs (long|int): Specifies the count of archival Runs.
num_backup_r... | [
"ashish@cohesity.com"
] | ashish@cohesity.com |
0c27d20fdc87eca7ffd5e3dd23dc7183700d8b76 | 503d2f8f5f5f547acb82f7299d86886691966ca5 | /atcoder/abc152_a.py | 9ff50dea04ec97c69fb7147455ba99f12c361aed | [] | no_license | Hironobu-Kawaguchi/atcoder | 3fcb649cb920dd837a1ced6713bbb939ecc090a9 | df4b55cc7d557bf61607ffde8bda8655cf129017 | refs/heads/master | 2023-08-21T14:13:13.856604 | 2023-08-12T14:53:03 | 2023-08-12T14:53:03 | 197,216,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | # https://atcoder.jp/contests/abc152/tasks/abc152_a
N, M = map(int, input().split())
if N == M:
print('Yes')
else:
print('No')
| [
"hironobukawaguchi3@gmail.com"
] | hironobukawaguchi3@gmail.com |
0fd81e0c525d6d7d7955212ffee3b926f8fce3b1 | d039da1c0b99e2642d3c354de9faa6f427141ee3 | /problems/leetcode/AddBinary.py | 808381e8e1d6c8ea369dad3c843f8d22c2e756a4 | [
"MIT"
] | permissive | qicst23/pyshua | 5a3e317823d0620d2034adfe345eddd6a722c7ff | 4ae7bb8b626f233ebc2267024ba67dcfe49051ed | refs/heads/master | 2016-09-15T20:26:16.694738 | 2013-12-15T04:50:04 | 2013-12-15T04:50:04 | 15,198,867 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,325 | py | from problems.leetcode.LeetcodeProblem import LeetcodeProblem
class AddBinary(LeetcodeProblem):
def solve(self, a, b):
array = []
i = len(a) - 1
j = len(b) - 1
plusOne = 0
while i >= 0 and j >= 0:
d1 = 1 if a[i] == '1' else 0
d2 = 1 if b[j] == '1' ... | [
"baidingding7@gmail.com"
] | baidingding7@gmail.com |
92d380a45dfc641f0c4dd4893b526402f12b7a81 | 8e4e612bd50302fce4c9b2496bd7fa58b7151f92 | /docs/examples/metaflow/src/deploy.py | 06b83b50c0ba1757b7c065fd062ee2a633d81915 | [
"Apache-2.0"
] | permissive | yaliqin/tempo | 1b30db685adcb37d2d46c356fc3b347579654d89 | 0878ae32ed6163a1c5115f20167d991a28535364 | refs/heads/master | 2023-09-02T10:51:22.167955 | 2021-11-10T07:53:26 | 2021-11-10T07:53:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,441 | py | import tempfile
from typing import Tuple
import numpy as np
from metaflow import FlowSpec, IncludeFile
from tempo.metaflow.utils import create_s3_folder, save_pipeline_with_conda, upload_s3_folder
from tempo.serve.model import Model
from tempo.serve.pipeline import Pipeline, PipelineModels
from tempo.serve.utils impo... | [
"cc@seldon.io"
] | cc@seldon.io |
6e061aed0334c5aabbf9c797a0301cfaf8794128 | 0e806bd0081741b64e499cc5aa5160e3441faf05 | /setup.py | e7bd2684c8cbd49b5e06af2799c78c537af52f41 | [
"BSD-3-Clause"
] | permissive | AngeloKandah/py4web | 8e36f749707c807d462daca690d4284223688434 | 8fc8349f7f3d87dd3d98bd256980a9f83af40361 | refs/heads/master | 2023-05-28T12:35:50.647129 | 2021-06-07T23:53:18 | 2021-06-07T23:53:18 | 370,612,357 | 0 | 0 | BSD-3-Clause | 2021-05-25T08:01:09 | 2021-05-25T08:01:09 | null | UTF-8 | Python | false | false | 1,573 | py | """
The future of web2py
"""
import subprocess
import re
from setuptools import setup
def get_version():
regex = re.compile("__version__\s*\=\s*['\"](?P<version>.+?)['\"]")
return regex.findall(open("py4web/__init__.py").read())[0]
setup(
name="py4web",
version=get_version(),
url="https://github... | [
"massimo.dipierro@gmail.com"
] | massimo.dipierro@gmail.com |
af81e0db25a608e71b0508000dc02e02530b7234 | 75db8f938e8f766ad6977b813c4170490ea570c0 | /images/img.py | 84bd12f6906bac9e98b587f98385a64d9154a869 | [] | no_license | Nzparra/Chatbot_Haana | da0df1c012a969c023e13e9a495263ca68a083ed | 7965876b68b579c0cbc248e31fe91dc35aaa0fed | refs/heads/main | 2023-04-17T11:58:44.057523 | 2021-05-05T21:38:11 | 2021-05-05T21:38:11 | 364,453,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | from tkinter import *
imagelist = {
'banner': ['banner.jpg', None],
'Haanna': ['Haana.png', None],
}
def get(name):
if name in imagelist:
if imagelist[name][1] is None:
print('loading image:', name)
imagelist[name][1] = PhotoImage(file=imagelist[name][0])
return imagelist[name][1]
return N... | [
"nzparra@gmail.com"
] | nzparra@gmail.com |
8c4a0a056672ebe9c3ab02af2964b3c37ab112a1 | 402cb8ac32c5ca7a53f5875688d1ebba1e96474b | /set103.py | 20f04fb7293b6b0248c32679c6948d0789c03aa5 | [] | no_license | Srija-U/codekataplayer | c073a13d8621f641a8aba8f23ebee4e1b673d58f | 392f24f35f178b034cfb76d2acc31bbc4b3a5814 | refs/heads/master | 2020-05-02T10:59:45.052802 | 2019-07-22T00:27:46 | 2019-07-22T00:27:46 | 177,914,184 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | n=int(input())
t=0
if(n%2==1):
n=n-1
t=1
l=[int(i) for i in input().split()]
r=[]
for i in range(n):
if(i%2==0):
r.append(l[i+1])
else:
r.append(l[i-1])
if(t==1):
r.append(l[n])
print(sep=" ",*r)
| [
"noreply@github.com"
] | Srija-U.noreply@github.com |
018cb05750fc80d8c67df193536f4cdb378257ce | 4d327de5447519d3c00e6572f74362380783006f | /source/res/scripts/client/gui/impl/windows/__init__.py | 62086e5e820d17c53b13514fc18efc2662b63020 | [] | no_license | XFreyaX/WorldOfTanks-Decompiled | 706ac55d919b766aa89f90c97a75672bf2142611 | 5025466edd0dd3e5e50a6c60feb02ae793f6adac | refs/heads/master | 2021-09-21T15:10:32.655452 | 2018-08-28T07:34:00 | 2018-08-28T07:34:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/impl/windows/__init__.py
from frameworks.wulf import WindowFlags
from gui.impl.windows.content_menu_id import ContextMenuID
from gui.impl.windows.context_menu_window import ContextMenuContent, ContextMenuWindow
from gui.impl.win... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
3cea620947c202587408de931f65151901e7d471 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/106/usersdata/191/51970/submittedfiles/questao2.py | dc6a45115c8ab2373b6df6e309d2ac7593d76b60 | [] | 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 | 861 | py | # -*- coding: utf-8 -*-
ap1=int(input('digite o primeiro numero apostado:'))
ap2=int(input('digite o segundo numero apostado:'))
ap3=int(input('digite o terceiro numero apostado:'))
ap4=int(input('digite o quarto numero apostado:'))
ap5=int(input('digite o quinto numero apostado:'))
ap6=int(input('digite o sexto numero... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
4ccdd823740fe9f5733cbda40c7455622cb8a1b9 | 4908b1d34d69c1cb652f25049552562574e1075f | /2020/Day-21/Allergen_Assessment/solve_1.py | bc99cdd01a13e1505ee0f04c259e5b8bf69fda85 | [
"MIT"
] | permissive | sreekesari-vangeepuram/adventofcode | 3d4ad98a25a30640182d928538b421e00ad8259d | 645531be0208affe042ac0328105b9ef3cfc9dbf | refs/heads/main | 2023-07-26T13:36:03.036721 | 2021-08-11T08:27:25 | 2021-08-11T08:27:25 | 317,850,039 | 1 | 0 | MIT | 2021-08-11T08:27:26 | 2020-12-02T12:08:13 | Go | UTF-8 | Python | false | false | 1,369 | py | #!/usr/bin/env python
def pair_up(ingredients_list):
buff_dict = dict()
all_ingredients = list()
for row in ingredients_list:
ingredients, allergens = row.replace(")", "").split(" (contains ")
ingredients, allergens = set(ingredients.split()), set(allergen.strip() for allergen in allergens... | [
"kesari.vangeepuram@gmail.com"
] | kesari.vangeepuram@gmail.com |
d0f36bff5a8e9441f03620fa0d8be3b18a40d2c2 | 79f42fd0de70f0fea931af610faeca3205fd54d4 | /base_lib/ChartDirector/pythondemo/shadowpie.py | c14b2d3667d78add97f394492cf2a5f7860ad9dc | [
"IJG"
] | permissive | fanwen390922198/ceph_pressure_test | a900a6dc20473ae3ff1241188ed012d22de2eace | b6a5b6d324e935915090e791d9722d921f659b26 | refs/heads/main | 2021-08-27T16:26:57.500359 | 2021-06-02T05:18:39 | 2021-06-02T05:18:39 | 115,672,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | #!/usr/bin/python
from pychartdir import *
def createChart(chartIndex) :
# the tilt angle of the pie
angle = chartIndex * 90 + 45
# The data for the pie chart
data = [25, 18, 15, 12, 8, 30, 35]
# Create a PieChart object of size 110 x 110 pixels
c = PieChart(110, 110)
# Set the center o... | [
"fanwen@sscc.com"
] | fanwen@sscc.com |
0b581dfd0400c5c54324568a3983a2c3fb21fe1e | 6d8d05e6fce7ff4a6b58c4ab021ea605e8d00878 | /PDF/urls.py | 2a48ebda94a510517922c077bbd612edf326d994 | [] | no_license | joy1954islam/How-to-create-PDF-files-in-a-Django-project | 727cfd758123392b37d4f7e625c58901d0b7ef9b | 442a438536ce290009d3bf2559c7bcdfef4cefbf | refs/heads/main | 2022-12-29T17:18:52.812433 | 2020-10-14T18:07:59 | 2020-10-14T18:07:59 | 304,097,011 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | """PDF URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vie... | [
"joyislam1954@gmail.com"
] | joyislam1954@gmail.com |
3969ff07af1dcbc0f0f9d92c21c339379ec8c241 | fbb141c9b99c4c08ce2c0acfe13630d694d98744 | /Week_02-Hash&stack&queue/08_nTreeLevelorder.py | 885576cab7b3f2b497b3db36a89c5a61006c158a | [] | no_license | huixian3/algorithm017 | 1534bc8a0364595b056e0f346cfe9fa8b8fee3bd | f43c99dc7810de863f8cd79115e272ac65ce9257 | refs/heads/master | 2023-04-02T07:10:03.670003 | 2021-04-13T14:38:36 | 2021-04-13T14:38:36 | 297,989,771 | 0 | 0 | null | 2020-09-23T14:05:41 | 2020-09-23T14:05:40 | null | UTF-8 | Python | false | false | 1,504 | py | #!/usr/bin/python3
# coding=utf-8
# TODO
# BFS 使用队列实现 queue deque
# 栈 用于深度优先搜索
import collections
class Node(object):
def __init__(self, val=None, children=None):
self.val = val
self.children = children
class Solution(object):
def levelOrder(self, root):
"""
:type root: Node
... | [
"zhanhuixian@meituan.com"
] | zhanhuixian@meituan.com |
352d33ea6c330f082f7b8af1d5d5a548eca76fd4 | 9b2bb0c822a2d637354c92eea8dddbdbbfea89d2 | /Generic/common/registration/api/signup_completion/apidocumentation_signup_completion.py | c16f8bf0315cf8af42f9934bb40848107e28edbb | [] | no_license | archiemb303/common_backend_django | 69d299c9bc564ef520b9c9130e7f5abd7ff68306 | 36eb9931f330e64902354c6fc471be2adf4b7049 | refs/heads/master | 2023-06-26T19:25:27.355021 | 2021-07-24T06:23:49 | 2021-07-24T06:23:49 | 389,017,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,123 | py | # Sample Input:
# {
# "APIDetails":{
# "token_type":1,
# "token_vendor_id":1,
# "token_string":"sdxfcgvbhjnmklasdfghjk",
# "dev_key":"sjdkljagagerukjdgjncjdsnjkfhkjasdghreuiuie@#$%$dgd#$@d234"
# },
# "APIParams": {
# "first_name":"raj",
# "last_name":"raj",
#... | [
"archiemb303@gmail.com"
] | archiemb303@gmail.com |
8078afef56368c393a9ce27d6c53b841545144d9 | cad9c13ad5864317d7687b44f39db42a402f36f0 | /lec05_module/module04.py | 96b6933788465ef6d16690f7b9e549ba9a7b5e99 | [] | no_license | handaeho/lab_python | 12b686eb0d57358509f2d0cd607064deced5b25d | da068ea62682ffa70c7d23dde4ef132c49a81364 | refs/heads/master | 2020-11-26T08:22:27.656109 | 2020-04-13T02:28:47 | 2020-04-13T02:28:47 | 229,013,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | """
module04.py
utils 패키지 안의 mymath01, mymath02 모듈을 사용하고자 한다.
"""
# from 패키지 import 모듈
from utils import mymath01
from utils import mymath02
print(mymath01.pi)
print(mymath02.div(10, 20))
| [
"mrdh94@naver.com"
] | mrdh94@naver.com |
0370295f0a04bef959d0c9e07c0a941f55f712d2 | 0c6dd99ecc2c3228ed9d47f30b26b4ef6b207b67 | /integration_tests/conftest.py | 01fbb282c4bb6499015e574d83d96c6d67f630bf | [
"BSD-3-Clause"
] | permissive | yaelmi3/backslash | 68d14bbca63d2fe7c160418768d5573f92dcdfb5 | 3d3a10c07a01a8a3a1214a85ace70566b10697a2 | refs/heads/master | 2020-12-28T22:47:13.782026 | 2019-08-06T10:35:37 | 2019-08-06T10:35:37 | 245,207,397 | 0 | 0 | NOASSERTION | 2020-03-05T16:02:12 | 2020-03-05T16:02:11 | null | UTF-8 | Python | false | false | 2,482 | py | import json
import time
import subprocess
import requests
import pytest
from urlobject import URLObject
_docker_running = False
def pytest_addoption(parser):
parser.addoption(
"--app-url", action="store", default=None, help="Integration App URL"
)
parser.addoption("--admin-username", action="sto... | [
"vmalloc@gmail.com"
] | vmalloc@gmail.com |
ba1d47b84928ddee170164408faa078f1f1dd689 | 3d7a3cb5044ad1334353fd06e6c4d8aa0990de89 | /tests/test_templatetags.py | f88ecbfa12a27294518006f9316519055bbfb499 | [
"MIT"
] | permissive | Convious/django-concurrency | ed46faf91e54be58d7ed8e030b764d9537bed240 | 815230336aa173bd73df1f411a77434944958c39 | refs/heads/develop | 2023-05-11T07:10:46.448831 | 2019-08-27T17:29:39 | 2019-08-27T17:29:39 | 225,925,608 | 0 | 0 | MIT | 2023-05-02T05:10:32 | 2019-12-04T17:53:48 | null | UTF-8 | Python | false | false | 679 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import logging
import pytest
from demo.models import SimpleConcurrentModel
from concurrency.templatetags.concurrency import identity, is_version, version
logger = logging.getLogger(__name__)
@pytest.fixture
def obj():... | [
"s.apostolico@gmail.com"
] | s.apostolico@gmail.com |
9d1001b8abd5c5a9bd0ccdf3d5411d67d97ac9cc | 61a21ed2dcdfe9a43588c5582eea38ce8fdfcbf2 | /akshare/bond/bond_futures.py | 404381fb3be49c7c36c462965ae3ccc93718a333 | [
"MIT"
] | permissive | huanghyw/akshare | 44187c6c56872d499651bb62c178ee837c776388 | ed84e937773c0420cc003793d74b73e64223e08b | refs/heads/master | 2023-04-22T07:06:08.929307 | 2021-05-02T16:05:59 | 2021-05-02T16:05:59 | 319,346,216 | 13 | 5 | MIT | 2021-05-02T16:05:59 | 2020-12-07T14:32:08 | null | UTF-8 | Python | false | false | 1,089 | py | # -*- coding:utf-8 -*-
# /usr/bin/env python
"""
Date: 2020/10/10 13:42
Desc: 国债期货可交割券相关指标
http://www.csindex.com.cn/zh-CN/bond-valuation/bond-futures-deliverable-coupons-related-indicators?date=2020-09-22
"""
import pandas as pd
import requests
def bond_futures_deliverable_coupons(trade_date: str = "2020-09-23") -> ... | [
"jindaxiang@163.com"
] | jindaxiang@163.com |
99f34fa74eaf2e0f18522bb675fe078774e0b38b | ebfcae1c5ba2997b2ac4471d5bedc3f5daffcb31 | /repos/simpleapi-master/example_project/client/python/flask/testclient.py | 467379407d15db6ef518a0bf3549f60eed722cb8 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | babiato/flaskapp1 | 84de2d0b26a54f5820d3bbe97926782ad41e005c | 530beb9e3b8516e0e93960b99521c23a523ef546 | refs/heads/master | 2023-02-26T16:36:49.760632 | 2021-02-04T09:08:40 | 2021-02-04T09:08:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | # -*- coding: utf-8 -*-
import sys
sys.path.append("../../../../")
from simpleapi.client import Client, RemoteException
calculator = Client(ns='http://localhost:5000/api/',
transport_type='xml', timeout=60)
print "5 + 5 =", calculator.add(a=5, b=16) | [
"jinxufang@tencent.com"
] | jinxufang@tencent.com |
74db1bd87aa3d7a2b8f7237fe22f7e0d6381601d | f1d9df04036fc43c9e5cc7998b83261f4daa94b8 | /tests/base_test_case.py | 618b5e7cad75c6d2d82d4d926a30004158dacbc8 | [] | no_license | Eaterator/web | 019eb6547995be30b3468e5c44ecc52f05858fb4 | 9c598607f76ad770c66d85c47ffcec05f92f4d66 | refs/heads/master | 2021-01-09T20:30:13.417308 | 2017-04-25T02:44:35 | 2017-04-25T02:44:35 | 81,286,177 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,825 | py | from datetime import datetime
import json
import random
from application.app import create_app
from application.auth.models import Role, User
from application.auth.auth_utilities import PasswordUtilities, ACCESS_TOKEN_HEADER
from application.recipe.models import Ingredient, IngredientRecipe, Recipe
from application.aut... | [
"currahl@yahoo.ca"
] | currahl@yahoo.ca |
c40a4d51b0c5e6ad6b99005c2341a3eccd0a3b90 | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/leetcode/LeetCode/111 Minimum Depth of Binary Tree.py | f77921ed53bd989cfd4ee577d98dec3b06404713 | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 875 | py | """
Given a binary tree, find its minimum depth.
The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node.
"""
__author__ = 'Danyang'
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
c... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
efd5603bda7dcc385b754567a05f493a43bc8d0b | ed48e992ad5fbb579afae6d0f7e6df775f8d306e | /lib/util.py | d5df4f598dd4accf11d107af1830400849d1696e | [] | no_license | sterlingbaldwin/e3sm_to_cmip | 6a23b92145c042af16979ff67b17555c3a9222e8 | bc5bcfaad5901eb6f07ab450eeab20144f4029cb | refs/heads/master | 2020-03-12T12:08:30.743456 | 2018-04-25T23:27:47 | 2018-04-25T23:27:47 | 130,611,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | import sys
import traceback
def format_debug(e):
"""
Return a string of an exceptions relavent information
"""
_, _, tb = sys.exc_info()
return """
1: {doc}
2: {exec_info}
3: {exec_0}
4: {exec_1}
5: {lineno}
6: {stack}
""".format(
doc=e.__doc__,
exec_info=sys.exc_info(),
exec_0=sys.exc_... | [
"baldwin32@llnl.gov"
] | baldwin32@llnl.gov |
f8108f1761c2e56a4f7449a8e629de145543dded | e3f5f41b242650b4bef68aa191a5779aedd3e02e | /Chapter03/config.py | d12aeca3649c2d96b68e8b32d23a06c74a03f285 | [
"MIT"
] | permissive | PacktPublishing/Mastering-Flask-Web-Development-Second-Edition | d4675c047bb51b0154958205f53c962ab4d32e4c | c3174127b40f8af1e2ab5e614994ffed7acbc11b | refs/heads/master | 2023-05-11T00:23:30.213655 | 2023-01-18T09:14:14 | 2023-01-18T09:14:14 | 154,667,293 | 168 | 131 | MIT | 2023-05-01T20:52:13 | 2018-10-25T12:30:58 | Python | UTF-8 | Python | false | false | 483 | py | class Config(object):
POSTS_PER_PAGE = 10
class ProdConfig(Config):
SECRET_KEY = '\xcb\xd7\x8a.\x82\x9c1Lu\xf1&2\xf6i\xfa\x8e\xb1\xc9t^\xccW\xdbw'
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_DATABASE_URI = 'sqlite:///database.db'
class DevConfig(Config):
DEBUG = True
SECRET_KEY = '\xa8... | [
"noreply@github.com"
] | PacktPublishing.noreply@github.com |
ccf8ee337ea275a691e6d35ae32738e200fead01 | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/ZH3l/STXS_nanoAOD/v5/Full2018nano_STXS_1p1/aliases.py | 303e9601b0371fd3ca5cf4bb282c6e5665853816 | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 2,914 | py | #Aliases (mostly btag)
mc = [skey for skey in samples if skey not in ('Fake', 'DATA')]
#2017
#bWP = '0.1522' #Loose
bWP = '0.4941'
aliases['bVeto'] = {
'expr': '(Sum$( CleanJet_pt > 20.0 && Jet_btagDeepB[CleanJet_jetIdx] > '+bWP+' ) == 0)'
}
aliases['dphilmet_mme'] = {
'expr': '( (abs(PuppiMET_phi-Lepton_phi[... | [
"Susan.Dittmer@cern.ch"
] | Susan.Dittmer@cern.ch |
0f549c7b98395f5a504787ed41be7b2cb7f15398 | 3d5bcd57b893c95bbcbfafe77bbc33c65432c9ed | /Algorithms/LeetCode/L1268suggestedProducts.py | 6022d3b1d95efdd64998c9ee172cc452f33506fb | [] | no_license | arunachalamev/PythonProgramming | c160f34c7cb90e82cd0d4762ff9dcb4abadf9c1c | ea188aaa1b72511aeb769a2829055d0aae55e73e | refs/heads/master | 2021-06-04T03:50:37.976293 | 2020-11-12T19:52:28 | 2020-11-12T19:52:28 | 97,364,002 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | # Given an array of strings products and a string searchWord. We want to design a system that suggests
# at most three product names from products after each character of searchWord is typed.
# Suggested products should have common prefix with the searchWord. If there are more than three products
# with a common pre... | [
"arunachalamev@gmail.com"
] | arunachalamev@gmail.com |
a3a3f127f0d5d5d6cd29ffc6073cb8100e216345 | 976f270299c39d9c1c20a3ac3022ac1a32fc2f68 | /project/helper.py | d4455cd0799708cf80401e7ac4100741675059e2 | [
"Apache-2.0"
] | permissive | yazici/starthinker | 958bfe35e4a8a422c7f4146c8eb36de05c2e6761 | bdbac52ee57add39f71c37e599fbf5eb03782e20 | refs/heads/master | 2020-04-29T21:23:36.852893 | 2019-03-11T07:31:24 | 2019-03-11T07:31:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,488 | py | ###########################################################################
#
# Copyright 2018 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
#
# https://www.apache.org... | [
"kenjora@kenjora-macbookair.roam.corp.google.com"
] | kenjora@kenjora-macbookair.roam.corp.google.com |
79bf0be94707c72897e7b2b72d58a43560d61f7d | 5708bbb9da243bec789a3ddff394e12cf89c956e | /tests/write_separate_files.py | 58e04e16985c97f39e36590ecec220a4b00e12f5 | [] | no_license | webclinic017/CacheFS | 39d9f2898ab3f9cf3dc0d1dd64a4a323be8fe09d | 8a50cfe0301e1938753817138411dcc4b0a68bcd | refs/heads/master | 2023-03-14T20:14:00.018678 | 2020-08-04T12:48:47 | 2020-08-04T12:48:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | import sys
import os
import shutil
num = int(sys.argv[1])
assert 0<num<20
port = 1234 + num
path = '/data/cache%d/yxr' % num
if not os.path.isdir(path):
os.makedirs(path)
def app(env, start_response):
name = path + env['PATH_INFO']
with open(name, 'w') as f:
shutil.copyfileobj(env['wsgi.input'], f... | [
"617080352@qq.com"
] | 617080352@qq.com |
75efac61085d8599a4694b34ba6e566b551e5886 | 6773e281d2000faf724713571a326fe5440acce2 | /phone/migrations/0002_auto_20210320_2137.py | fff685720e89d0996234dbaf8a556e1cac735d1a | [] | no_license | abhisheksahu92/Phone-Directory | 4a16f69504e5153c29fbeceaad0c4a7e19f72c1c | 87ed73c015caf3c05364e02b6364756d2e1f87a4 | refs/heads/main | 2023-04-20T09:56:56.697106 | 2021-05-10T12:35:10 | 2021-05-10T12:35:10 | 349,765,236 | 0 | 0 | null | 2021-05-10T12:33:51 | 2021-03-20T15:37:39 | HTML | UTF-8 | Python | false | false | 405 | py | # Generated by Django 3.1.7 on 2021-03-20 16:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('phone', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='phonemodel',
name='middle_name',
... | [
"70888785+abhisheksahu92@users.noreply.github.com"
] | 70888785+abhisheksahu92@users.noreply.github.com |
dd68c7efbbedecd20d7e2eff84b6e32ac1718b24 | 1065a2782e4947b5bf14ec4536e4ad7addc7aec3 | /strategy/crystalball/cbparameters.py | 8c14b84a9ff8bc41f5a523fbe7de690157eb87d1 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Johannesduvenage/siis | 0bf6875d4a5f3638cadb01ed5541aab29ba1d77a | 57e537cf9b6a71c8ad0b3bb0759772d126496a17 | refs/heads/master | 2020-09-10T21:51:56.814014 | 2019-11-13T23:57:34 | 2019-11-13T23:57:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,831 | py | # @date 2019-01-19
# @author Frederic SCHERMA
# @license Copyright (c) 2019 Dream Overflow
# Crystal ball strategy indicator default parameters.
DEFAULT_PARAMS = {
"reversal": True,
"pyramided": 0,
"hedging": False,
"max-trades": 3, # max number of simultaned trades for a same market
"trade-dela... | [
"frederic.scherma@gmail.com"
] | frederic.scherma@gmail.com |
09402cd9cb8b46c4bea215f5fb80144e37a7266b | 045025f41201dba54c005dd0601d97ccdedf3062 | /ScrapePlugins/MangaPark/FeedLoader.py | fd8b09f1220b87bdd841d7a1030882891c7728a3 | [] | no_license | Gazzilow/MangaCMS | 6720c45c63c0429cc0e0a37d99738bfb553ca98b | e620bfef62c9b3d4678b635a2ea6463ffb26fc34 | refs/heads/master | 2021-01-22T09:40:17.277953 | 2015-12-19T21:33:25 | 2015-12-19T21:33:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,396 | py |
import webFunctions
import bs4
import re
import urllib.parse
import time
import calendar
import dateutil.parser
import runStatus
import settings
import datetime
import ScrapePlugins.RetreivalDbBase
class FeedLoader(ScrapePlugins.RetreivalDbBase.ScraperDbBase):
loggerPath = "Main.Manga.Mp.Fl"
pluginName = "Ma... | [
"something@fake-url.com"
] | something@fake-url.com |
6605bcf24b243c6cbe8ac5a6bd439b0d5204fe19 | dd05adda58c40b3a6593d89c53be1ce64df2be0a | /partd/encode.py | 3e3a15f7966f18e7ac388517e92437fc832a5ecd | [] | permissive | dask/partd | 4fb98971d4f9b891ca944584517be3157e06de81 | 4183caf149b686538752608bac6acbaa052dba23 | refs/heads/main | 2023-07-20T04:38:51.234966 | 2023-07-17T21:12:35 | 2023-07-17T21:12:35 | 35,185,364 | 94 | 35 | BSD-3-Clause | 2023-07-17T21:12:37 | 2015-05-06T22:08:45 | Python | UTF-8 | Python | false | false | 1,287 | py | from .core import Interface
from .file import File
from toolz import valmap
from .utils import frame, framesplit
class Encode(Interface):
def __init__(self, encode, decode, join, partd=None):
if not partd or isinstance(partd, str):
partd = File(partd)
self.partd = partd
self.en... | [
"mrocklin@gmail.com"
] | mrocklin@gmail.com |
6028ec0837d82763699b394753bc8459206e12af | 8b2ff2f65b8bc55d1a4643e29cc6f30d6cba5688 | /live/django_form/articles/views.py | 425af1be08ecd3ce793270e9b42caa24c3d60822 | [] | no_license | chloe-codes1/Django | a177161a89b3f3592b04c5711246847d4f0dd32f | 496d7219d7f9aa7269d160f46f2efa4b9bf07431 | refs/heads/master | 2023-08-07T21:27:34.523326 | 2023-05-27T13:10:22 | 2023-05-27T13:10:22 | 250,606,673 | 0 | 1 | null | 2023-09-04T08:49:57 | 2020-03-27T17:57:34 | Python | UTF-8 | Python | false | false | 1,759 | py | from django.shortcuts import render, redirect, get_object_or_404
from django.views.decorators.http import require_POST
from .models import Article
from .forms import ArticleForm
# Create your views here.
def index(request):
articles = Article.objects.order_by('-pk')
context = {
'articles': articles
... | [
"juhyun.kim@lindsey.edu"
] | juhyun.kim@lindsey.edu |
b8f094584d71326d60fc7d0ae1dc6345b4a8c508 | db12b990924703cd74748d8585cd9c11fafa6746 | /h2o-k8s/tests/clustering/assisted-clustering.py | 7a76ab10eaba664de63a610c5d9aaabf790e4cb0 | [
"Apache-2.0"
] | permissive | h2oai/h2o-3 | 919019a8f297eec676011a9cfd2cc2d97891ce14 | d817ab90c8c47f6787604a0b9639b66234158228 | refs/heads/master | 2023-08-17T18:50:17.732191 | 2023-08-17T16:44:42 | 2023-08-17T16:44:42 | 17,371,412 | 6,872 | 2,345 | Apache-2.0 | 2023-09-14T18:05:40 | 2014-03-03T16:08:07 | Jupyter Notebook | UTF-8 | Python | false | false | 7,324 | py | import requests
import argparse
import sys
import os
import time
from kubernetes import client, config, watch
def wait_deployment_ready(deployment_name: str, namespace: str) -> client.V1Deployment:
"""
Waits until a deployment of given name is reported to be in status `Ready` by Kubernetes.
A deployment ... | [
"noreply@github.com"
] | h2oai.noreply@github.com |
30fd9db05df431710018b687699b91fdd66bbcdb | 850d778687e3692ab2a38d4d2227391d92c21e6b | /atcoder.jp/abc051/abc051_c/Main.py | 98d9a7d6607c0487dc39d1ee50d494f2896dd483 | [] | no_license | Valkyrja3607/AtCoder | 77e2e5e66c0e8e12bb902c35f679119c6576fad7 | 9218a50b1eb83e4498845d15d9dda41fab90ed73 | refs/heads/master | 2023-07-15T20:38:52.911301 | 2018-05-30T17:56:22 | 2018-05-30T17:56:22 | 294,980,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | sx,sy,tx,ty=map(int,input().split())
x=tx-sx
y=ty-sy
print("U"*y+"R"*x+"D"*y+"L"*(x+1)+"U"*(y+1)+"R"*(x+1)+"DR"+"D"*(y+1)+"L"*(x+1)+"U")
| [
"purinjolly@gmail.com"
] | purinjolly@gmail.com |
d5de6683f124bae4468b8e2827a58b7b9fde5378 | 0b514feea82eaa2e341130d9e23d13d72271d644 | /3.Python_Coding_Basic/Step_01/Unit_11-1.py | 79a6192f84771f6e99d0e62b4531770a79637d29 | [] | no_license | Jerrykim91/FromZero | f8478012130948a11978a46ab6ec7922cb354a8f | fdd5a0716b29c77019cfcd1e1eab7ed4afd1aed4 | refs/heads/master | 2022-12-25T15:04:22.656462 | 2020-10-10T14:35:06 | 2020-10-10T14:35:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,919 | py | # 사용자 함수
from fun_pkg.random_num import random_num # 랜덤 숫자 생성
# Unit_11-1.py
# 인덱스 사용하기
txt_index = """
# 인덱스 사용하기
=> 시퀸스 객체에 [](대괄호)를 붙이고 []안에 각 요소의 인텍스를 지정하면 해당 요소에 접근가능
- 시퀸즈 객체에 들어있는 요소에 접근하는 방법을 확인
- 시퀸즈 객체의 각 요소는 순서는 정해져 있으며 이 순서를 인덱스라고 함
시퀸스 객체[인덱스]
## 인덱스( index, 색인 )
- 위칫값을 뜻하는데 국어사전 옆면에 ㄱ, ㄴ... | [
"sun4131@gmail.com"
] | sun4131@gmail.com |
06297336808d521782cd2cb87a60fbda8e1592f6 | b253bec2667e0cff7cc2306761ff01d6522606d1 | /setup.py | 48e34c07fad71e830862c2ed272485d56c152d32 | [
"MIT"
] | permissive | pmp-p/fstrings_helper | dc50b9cc2a8c61faa16c911fe9fc70f3ccfc4ba1 | 49cc9e17aca04b73fc2b9717742af9d2053f366b | refs/heads/master | 2020-03-31T14:59:20.785649 | 2019-07-01T15:22:27 | 2019-07-01T15:22:27 | 152,318,729 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,268 | py | import distutils
import os.path
from setuptools import setup
from setuptools.command.install import install as _install
PTH = (
'try:\n'
' import future_fstrings\n'
'except ImportError:\n'
' pass\n'
'else:\n'
' future_fstrings.register()\n'
)
class install(_install):
def initia... | [
"asottile@umich.edu"
] | asottile@umich.edu |
2d6d228c3a12cc76f0283c0d637c76d28e52964f | 7e36343736b542e4cdf660bea3e25aa2e88036f2 | /dp/509.fibonacci-number.py | 63ddcf119cb447455e6cb27e1069f83dcea0bcef | [] | no_license | soaringk/Leetcode-Log | 2d1b52b5fa189951e6c2b1d8b67000bb99c43f06 | a820f55bd05f43f3b923b0fbe9dc059fe9fdb7e8 | refs/heads/master | 2023-03-23T12:22:25.352632 | 2021-03-15T13:38:56 | 2021-03-15T13:38:56 | 332,972,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | #
# @lc app=leetcode id=509 lang=python3
#
# [509] Fibonacci Number
#
# @lc code=start
class Solution:
def fib(self, n: int) -> int:
if n < 1: return 0
if n == 1 or n == 2: return 1
prev = 1
curr = 1
for i in range(3, n + 1):
nex = prev + curr
prev = ... | [
"k3vin.zhang@gmail.com"
] | k3vin.zhang@gmail.com |
8eddb740d27e5bceed86e8295591b36306f6bfe3 | 531caac957596fc623e534bce734ef6b45be0b07 | /tests/operators/vector/test_smooth_l1_loss_grad_001.py | 694c06266318023b1ea9df25b4479d5e79b82912 | [
"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 | 2,837 | py | # Copyright 2019 Huawei Technologies Co., Ltd
#
# 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... | [
"ckey.chengbin@huawei.com"
] | ckey.chengbin@huawei.com |
f456cae0b212c1aafc8d42125def987bb22a525a | 91cac04472c4f9a874f9c4c3393d239c2a364bb3 | /Scripts/heft/dynamic_hetero_resources_exp2.py | a23c566f840113592dbce19df5966e41618d3ed7 | [
"MIT"
] | permissive | radical-experiments/campaign_manager | a1ab2fd9e8510919bf6d4b5fb1241aa0e5730208 | 337660cf07a97933b9b516d6612353bd3f6592a8 | refs/heads/master | 2023-01-13T19:28:37.590334 | 2020-11-11T15:37:57 | 2020-11-11T15:37:57 | 257,754,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,916 | py | from radical.cm.planner import HeftPlanner
from random import gauss
import pandas as pd
import numpy as np
import sys
from time import time
def campaign_creator(num_workflows):
tmp_campaign = list()
tmp_num_oper = list()
for i in range(num_workflows):
workflow = {'description':None}
workf... | [
"i.paraskev@rutgers.edu"
] | i.paraskev@rutgers.edu |
9012c87a2aee27b2fd02601681c078389d4b09e1 | 9b30c078a08cb7168529fbe0954fd5f1ad8867c1 | /bitonic_tour/bitonic_tour.py | fe88fa5a19ebc8f4cc00f11ee9a6f83019be6720 | [
"BSD-3-Clause"
] | permissive | PythonicNinja/BitonicTour | 8beaac4e0994b2d2a89b52c550abf23a148cdbb2 | 7936d186e49f3543dded3296e3f00280eb231c6f | refs/heads/master | 2021-01-19T22:33:09.657804 | 2015-04-28T12:58:23 | 2015-04-28T12:58:23 | 34,730,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,201 | py | # -*- coding: utf-8 -*-
from collections import namedtuple
import matplotlib.pyplot as plt
import sys
import math
class Point(object):
def __init__(self, x, y):
self.x = x
self.y = y
def __str__(self):
return '({},{})'.format(self.x, self.y)
def distance(self, p2):
ret... | [
"vojtek.nowak@gmail.com"
] | vojtek.nowak@gmail.com |
f5b25c538987fd6ce5b14f35adb94b5f6c313ba9 | 40aa8243e28eaecc895e0187e1e12e3b66195003 | /Practice/Learn Python the Hard Way/ex44d.py | 1dc4d868c58bdd6125687a0af81238ae30f54a2d | [] | no_license | Toruitas/Python | 94c5dc82736914203e8b712055b824796816c145 | 2d1ea9cdad9501ae9d934c90d516a5a846d2a631 | refs/heads/master | 2016-09-05T20:10:41.584677 | 2015-06-01T03:14:51 | 2015-06-01T03:14:51 | 17,966,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | __author__ = 'Stuart'
class Parent(object):
def override(self):
print("PARENT override()")
def implicit(self):
print("PARENT implicit()")
def altered(self):
print('PARENT altered()')
class Child(Parent):
def override(self):
print("CHILD override()")
def altered... | [
"Toruitas@gmail.com"
] | Toruitas@gmail.com |
2d1a46124b1bcd05edae440c40989402e8038634 | 258b656d1b6864726864f89d4c8dc38fc633a48f | /odoo_addons_others/opyme_banks_cards_payments/tests/__init__.py | 537843db122d3786e710767444e8f3bffed770b5 | [] | no_license | test-odoorosario/opt | c17e1c1767710ca8e13a799644fb85b07e83639b | 77921b4d965f2e4c081d523b373eb306a450a873 | refs/heads/master | 2022-12-02T04:36:04.685119 | 2019-07-11T17:17:20 | 2019-07-11T17:17:20 | 196,436,293 | 0 | 1 | null | 2022-11-22T00:30:40 | 2019-07-11T17:13:21 | Python | UTF-8 | Python | false | false | 1,013 | py | # coding: utf-8
##############################################################################
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# Licens... | [
"root@ip-172-31-8-107.sa-east-1.compute.internal"
] | root@ip-172-31-8-107.sa-east-1.compute.internal |
f92c7ef64554501dda97c9d6219ae15b22fe6c96 | 49f61714a6f78d984fd2194d6064d84e891bc5b7 | /2019-1/221/users/3746/codes/1818_2570.py | 99c933c1cdb0a6149f2fcf9608a84330f969d007 | [] | no_license | psbarros/Variaveis3 | b5c4e1517e7d94a846ee03791d25d5821a1c651c | 3dcf6f810709ce03c78335acf9533e008a2ae125 | refs/heads/master | 2023-06-13T07:05:00.878430 | 2021-07-06T17:51:37 | 2021-07-06T17:51:37 | 383,549,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | from numpy import *
x = array(eval(input("Digite uma sequencia: ")))
m = sum(x)/size(x)
desvio = 1
for i in arange(size(x)):
desvio *= abs(x[i] - m)
p = ( desvio ) ** (1/len(x))
print(round(p,3)) | [
"psb@icomp.ufam.edu.br"
] | psb@icomp.ufam.edu.br |
f6e27ff9b7c2954f1e1efd0374cea3fab623326c | 0174ee349709eb578b25741998b8e32c5f64647e | /ENV_estimation/Matlab_env_training/steps_torch_env_BEGAN/NET/Net_full_cnn_deep_64filters.py | a08e8c9b2255821a7ec05186ba04328bf0fa5f7f | [] | no_license | iiscleap/Joint_FDLP_envelope_dereverberation_E2E_ASR | 8cbe2e97a86cd2abc4a33daccf98eed136e330ab | 4ab007d4b946f848f8f6fe1a1576d4053c295116 | refs/heads/master | 2023-08-16T17:42:26.626435 | 2021-10-04T06:28:02 | 2021-10-04T06:28:02 | 413,298,107 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py | import torch
import torch.nn as nn
class Net (nn.Module):
def __init__(self):
super(Net,self).__init__()
#self.B4 = nn.BatchNorm2d(8,track_running_stats=False)
self.conv1 = nn.Conv2d(1,64,kernel_size=(41,3), padding=(20,1))
self.drop1 = nn.Dropout(0.2)
self.conv2 = nn.Con... | [
"anirudhsreeram@gmail.com"
] | anirudhsreeram@gmail.com |
85ba744861e35db375cefd578b8d05b380b43753 | 988176bcdae841e08106b0fe5cf07aabbc210c83 | /task is to tell all the numbers ranging from 1-n with the fact that absolute diff between consecutive digits is 1.py | 29235440a84cbcc7ec6fc56e6544024acddf10d3 | [] | no_license | gopiprasad008/GUVI_CODEKATA_PYTHON_CODE | ce1a63c7eea2a099c01748162c1deb47172dcd0a | 78f374e344df25aab181408d8f41b3ebe03b34ef | refs/heads/master | 2023-03-16T00:27:31.539524 | 2020-05-16T11:46:08 | 2020-05-16T11:46:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | n = int(input())
l = []
if n >= 10:
for i in range(1, n+1):
i = str(i)
flag = True
if len(i) == 1:
flag = False
else:
for j in range(len(i)-1):
if abs(int(i[j]) - int(i[j+1])) != 1:
flag = False
break
... | [
"noreply@github.com"
] | gopiprasad008.noreply@github.com |
9d9d8148a72ea925742ef997d1ff6ecf05914f8c | ef32b87973a8dc08ba46bf03c5601548675de649 | /pytglib/api/types/passport_required_element.py | 3961e39bab983a8c1c4d49907f8eb8b77f522af3 | [
"MIT"
] | permissive | iTeam-co/pytglib | 1a7580f0e0c9e317fbb0de1d3259c8c4cb90e721 | d3b52d7c74ee5d82f4c3e15e4aa8c9caa007b4b5 | refs/heads/master | 2022-07-26T09:17:08.622398 | 2022-07-14T11:24:22 | 2022-07-14T11:24:22 | 178,060,880 | 10 | 9 | null | null | null | null | UTF-8 | Python | false | false | 935 | py |
from ..utils import Object
class PassportRequiredElement(Object):
"""
Contains a description of the required Telegram Passport element that was requested by a service
Attributes:
ID (:obj:`str`): ``PassportRequiredElement``
Args:
suitable_elements (List of :class:`telegram.api.typ... | [
"me@amirh.co"
] | me@amirh.co |
d7fcea89d8f0962d52b1409db8a2a0f4cdcfd64a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02601/s340228332.py | 23c95eace5ee6c08286bda4d45d58f8a21a5abd7 | [] | 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 | 379 | py | import sys
sys.setrecursionlimit(10 ** 8)
input = sys.stdin.readline
def main():
A, B, C = [int(x) for x in input().split()]
K = int(input())
cnt = 0
while A >= B:
cnt += 1
B *= 2
while B >= C:
cnt += 1
C *= 2
if cnt <= K:
print("Yes")
else:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1d7b78b317883196e980830a250cee69aa6b6255 | b461ea3843d2772545886faaa041250c9b8d9634 | /backend/test_mobile_app_4_28824/settings.py | 4a1fa7cdeab6acca5a17d509a16ae0f01e96a9d2 | [] | no_license | crowdbotics-apps/test-mobile-app-4-28824 | 66f92e3dbe0008ad32b43d468f66c254c0904d1c | 05ef5ad9d4b3d54106fda9f874277abd25f83dcf | refs/heads/master | 2023-06-22T06:20:36.513365 | 2021-07-23T16:01:48 | 2021-07-23T16:01:48 | 385,782,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,206 | py | """
Django settings for test_mobile_app_4_28824 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
bc1f1845e476f67df90a1de79d7693592e018721 | b1c99061474c4e2f2653f6f3d83931c949c58b13 | /Basic/chapter4/duplicate/DictMethod2.py | 208133bf693ddfa70ca63628644e696dff14c016 | [] | no_license | hyperaeon/python | df75346040a5ccc588e21b0d761493c59e1a4fe3 | 21d10ef7af3227d29092a6720666c0db8e418ec4 | refs/heads/master | 2016-09-14T08:58:53.794960 | 2016-04-26T05:34:56 | 2016-04-26T05:34:56 | 57,100,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | __author__ = 'hzliyong'
people = {
'Alice': {
'phone' : '2323',
'addr' : 'Foo drive 23'
},
'Beth' : {
'phone' : '9102',
'addr' : 'Bar street 32'
},
'Cecil' : {
'phone' : '3158',
'addr' : 'Baz avenue 90'
}
}
labels = {
'phone': 'phone number',... | [
"hzliyong@corp.netease.com"
] | hzliyong@corp.netease.com |
d6c5877baea26781df716bd69865cb4b57600719 | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /cv/ocr/satrn/pytorch/base/models/recognizer/satrn.py | be984093faaef6b6e108e026315a40335620cde5 | [
"Apache-2.0"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 238 | py | from models.builder import DETECTORS
from .encode_decode_recognizer import EncodeDecodeRecognizer
@DETECTORS.register_module()
class SATRN(EncodeDecodeRecognizer):
"""Implementation of `SATRN <https://arxiv.org/abs/1910.04396>`_"""
| [
"jia.guo@iluvatar.ai"
] | jia.guo@iluvatar.ai |
32041dd783fe53575a0f49eadcca2ce9733f4d6f | 4a48593a04284ef997f377abee8db61d6332c322 | /python/gradio/authentication_single_user.py | e018fe42e2780394ae124de3611a6f3d0acac8dc | [
"MIT"
] | permissive | jeremiedecock/snippets | 8feaed5a8d873d67932ef798e16cb6d2c47609f0 | b90a444041c42d176d096fed14852d20d19adaa7 | refs/heads/master | 2023-08-31T04:28:09.302968 | 2023-08-21T07:22:38 | 2023-08-21T07:22:38 | 36,926,494 | 26 | 9 | MIT | 2023-06-06T02:17:44 | 2015-06-05T10:19:09 | Python | UTF-8 | Python | false | false | 346 | py | #!/usr/bin/env python3
# To run this demo, type in a terminal: gradio authentication_single_user.py
# See: https://www.gradio.app/guides/sharing-your-app#authentication
import gradio as gr
def greet(name):
return "Hello " + name + "!"
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
demo.launch(au... | [
"jd.jdhp@gmail.com"
] | jd.jdhp@gmail.com |
d4185600be3f5118a23c40c7bfea74284068f38d | 2b0eab74af8d23244ff11699830f9bb10fbd717a | /experiences/serializers/experience_serializer.py | 5cc50421a259b063d5d0b16570a1bd2d818eddc3 | [] | no_license | alexandrenorman/mixeur | c7e25cd20b03c78b361cb40e3e359a6dc5d9b06b | 95d21cd6036a99c5f399b700a5426e9e2e17e878 | refs/heads/main | 2023-03-13T23:50:11.800627 | 2021-03-07T15:49:15 | 2021-03-07T15:49:15 | 345,384,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,548 | py | # -*- coding: utf-8 -*-
from helpers.serializers import AutoModelSerializer
from experiences.models import Experience
# from experiences.serializers.tag_select_serializer import TagSelectSerializer
from .assignment_tag_serializer import AssignmentTagSerializer
from .experience_sponsor_serializer import ExperienceSpon... | [
"norman@xael.org"
] | norman@xael.org |
9064a6404cbbf0636c8390857c56ffc3aafddc45 | 42a812ac785752921dcdddd4ae56064b51452b39 | /bulletin/post/service.py | 63027a0b640318fac71d029488fe033e2db32ed7 | [] | no_license | Pre-Onboarding-Listerine/aimmo-assignment-team-1 | e4a15d3e71f1985febf911360691389f5996f0fb | d94dd7482f065ac1b020bb500984740c13af14e6 | refs/heads/main | 2023-09-02T12:23:49.693075 | 2021-11-03T00:25:18 | 2021-11-03T00:25:18 | 423,444,898 | 1 | 3 | null | 2021-11-02T16:35:38 | 2021-11-01T11:46:19 | Python | UTF-8 | Python | false | false | 2,259 | py | from datetime import datetime
from typing import Optional
from .dto.deleted_post_id import DeletedPostId
from .dto.list_params import ListParams
from .dto.post_changes import PostChanges
from .dto.post_content import PostContents
from member.models import Member
from .dto.post_list import PostList
from .exceptions im... | [
"rlawndhks217@gmail.com"
] | rlawndhks217@gmail.com |
0a518aaafd69d81b11d9bc75f1a6d5ceb74437be | a57e66be33512a7e2e99adb6f597151b56c4c373 | /psextractzip.py | 7ca1385fe50f200807f7ee27cb2f74eb2b6a7aa5 | [] | no_license | ravijaya/sep28 | 17025ea0997a371f54a6374f90d4bf56e0206840 | 8907f4b03ac2c4b2f1806d0d7cf3fd6aa680680c | refs/heads/master | 2022-12-18T23:58:12.989144 | 2020-09-30T12:13:15 | 2020-09-30T12:13:15 | 299,901,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from zipfile import ZipFile
from os.path import isdir
from os import mkdir
extract_path = '/tmp/catch32'
if not isdir(extract_path):
mkdir(extract_path)
zf = ZipFile('source.zip', mode='r')
zf.extractall(extract_path)
zf.close() | [
"ravi.goglobium@gmail.com"
] | ravi.goglobium@gmail.com |
f3cdc3c4ed9fb20772082063893b5fe2e7011323 | c8a7ccfb42628d1100562a053c4334488e1bf239 | /bf_transpiler.py | c9b0b6600a3268218f8306c93743175946997ef0 | [
"CC0-1.0"
] | permissive | LyricLy/python-snippets | 8487619a916e33e02b5772aba577d9dafdfd803b | 9d868b7bbccd793ea1dc513f51290963584a1dee | refs/heads/master | 2020-04-08T01:57:22.511167 | 2018-11-24T08:12:20 | 2018-11-24T08:12:20 | 158,916,096 | 1 | 0 | CC0-1.0 | 2018-11-24T08:16:59 | 2018-11-24T08:16:59 | null | UTF-8 | Python | false | false | 475 | py | #!/usr/bin/env python3
# encoding: utf-8
import sys
print('#include <stdio.h>')
# https://en.wikipedia.org/wiki/Brainfuck#Commands
print('char array[30000] = {0};')
print('char *ptr=array;')
print('int main(void) {')
toke1s = {
'>': '++ptr;',
'<': '--ptr;',
'+': '++*ptr;',
'-': '--*ptr;',
'.': 'putchar(*ptr);',... | [
"bmintz@protonmail.com"
] | bmintz@protonmail.com |
871a7bf6dcd9ae919c3619cdc9d1c3a241dab433 | f6cb3563a412f148a8a9f47204ac1e2226ae7b2e | /models/encoders/core/multitask_lstm.py | 7710216ba0ae581443b27d07387a2b26dbe0f6d4 | [
"MIT"
] | permissive | sundogrd/tensorflow_end2end_speech_recognition | 424789888a54d7149aa9a35a68e781df553abfd9 | 61e4a65fb5c9f3d9f690d713dcd77a48b1de0a14 | refs/heads/master | 2020-05-17T19:21:34.206076 | 2019-04-28T14:03:12 | 2019-04-28T14:03:12 | 183,913,207 | 0 | 0 | MIT | 2019-04-28T13:40:36 | 2019-04-28T13:40:36 | null | UTF-8 | Python | false | false | 5,376 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""Multi-task unidirectional LSTM encoder."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
from models.encoders.core.lstm import basiclstmcell, lstmcell, lstmblockcell, lstmblockfuse... | [
"hiro.mhbc@gmail.com"
] | hiro.mhbc@gmail.com |
6229624933460871ef10628976ea5a6527362b59 | 4d5a312ddd0d158fd76652a582cfc18c291a7a71 | /tests/test_faust_poly_wavetable.py | 6a24d4d662d2df1932f8bbf8f5d98e4a1b1f61a7 | [
"MIT"
] | permissive | startreker-shzy/DawDreamer | 6ba12e1f25e949c38851d1c31edc2307ea8d34f4 | d503fedc67db57630ccce14d71ea64512ab0728b | refs/heads/main | 2023-06-15T02:32:18.301901 | 2021-07-11T21:24:36 | 2021-07-11T21:24:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,275 | py | import pytest
import numpy as np
from scipy.io import wavfile
from os.path import abspath
from utils import *
import dawdreamer as daw
BUFFER_SIZE = 1
def _test_faust_poly_wavetable(wavecycle, output_path, lagrange_order=4):
engine = daw.RenderEngine(SAMPLE_RATE, BUFFER_SIZE)
dsp_path = abspath("faust_dsp/polyph... | [
"email@example.com"
] | email@example.com |
4164c98dac604edeb930b9597057603d7aa4b6c8 | 2f638d47a9681cbb2caab865702ddca39a0456d3 | /djangocms_misc/tests/test_app/migrations/0003_auto_20171014_0359.py | 22686a37b2f487eb82f492007080c823b3032a0b | [
"MIT"
] | permissive | bnzk/djangocms-misc | b0d1a1950b3d8c7752ea661c74bc08bfbd0360a6 | 8869384305ef7ff8538af986f4854bcfde7257de | refs/heads/develop | 2023-06-08T10:12:11.275012 | 2023-05-30T13:00:34 | 2023-05-30T13:00:34 | 66,085,267 | 1 | 1 | MIT | 2023-02-04T07:49:28 | 2016-08-19T13:43:34 | Python | UTF-8 | Python | false | false | 631 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2017-10-14 03:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('test_app', '0002_auto_20170805_0136'),
]
operations = [
migrations.AddField(
model_name='testpluginmode... | [
"bnzk@bnzk.ch"
] | bnzk@bnzk.ch |
466ee9b5ce41e5e937ad981d0f953b9efbc02ad1 | 9f3991f4e7b405c04f2ef03ac7747b5a69d26b4b | /basic_grammar/higher-order function/higher-order function.py | c7024ce852e83bc73b790378586dcc8aa44b349a | [] | no_license | zcxyun/pythonDemo | f66eb5e6e4274db2137480786eae4d6ca7e73163 | adf18cf6b58282a7f2f9203aa09d5cb60ced2e35 | refs/heads/master | 2021-07-29T19:06:52.481792 | 2021-07-27T16:10:38 | 2021-07-27T16:10:38 | 101,542,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,379 | py | # 测试 map list #################################################
##numList = [1,2,3,4,5,6,7]
##def f(x):
## return x*x
##L = []
##for n in [1,2,3,4,5,6,7]:
## L.append(f(n))
##print(L)
##
##n = map(f, [1,2,3,4,5,6,7])
##print(list(n))
##from functools import reduce
##def add(x, y):
## return x * 10 + y
##pri... | [
"zcxyun@126.com"
] | zcxyun@126.com |
0ab5b9a6dbcb10aaa152146be20bec7498d73b63 | e50cacdd30e7050a3f5db46003ff531b57c939e8 | /regressao_valorGlobal.py | a12ff05224d6b5365a245c890b48cec48a665c46 | [] | no_license | C4st3ll4n/rn_videogame | bd9972d54efcf9fd4d695b14c468db82cc17d77c | 2175cb2146069671451d8f277df64ccc325683ac | refs/heads/master | 2020-05-02T09:02:37.103831 | 2019-03-26T19:53:42 | 2019-03-26T19:53:42 | 177,859,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,358 | py | import pandas as pd
from keras.layers import Dense, Dropout, Activation, Input
from keras.models import Model
from sklearn.preprocessing import LabelEncoder, OneHotEncoder
base = pd.read_csv('games.csv')
base = base.dropna(axis=0)
base = base.drop('Other_Sales', axis=1)
base = base.drop('Developer', axis = 1)
base = ... | [
"p13dr0h@gmail.com"
] | p13dr0h@gmail.com |
13f5f3247507241ab44d566d44aa6d25d184cb5d | 2eeeefe48c56d0dfae4fd568dbaee3c8d2cf3463 | /0Demo/BottleDemo/BottleDemo.py | e35c154d100e30eada7d29ec775a34fc90da646c | [] | no_license | lijianmingCN/pybase | f6377f7944c043f7241452fcffccc3f49ef0cef9 | 7286a022ff7f40a7289cf69d73e8418a1ecf7b88 | refs/heads/master | 2021-01-02T08:10:42.215672 | 2017-08-01T03:16:29 | 2017-08-01T03:16:29 | 98,953,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | # -*- coding: utf-8 -*-
from bottle import route,run,template,get,post,request,response,static_file,error,abort,redirect
@route('/index')
def index():
return "Hi 码农!!!"
@route('/hello/<name>')
def hello(name):
return template('<b>Hello {{name}}</b>!', name=name)
@get('/login') # or @route(’/login’)
def logi... | [
"lijianming@baidu.com"
] | lijianming@baidu.com |
be7c25b3c60424dd6ae4afe74366a35ed9503d7d | 0c10d5c3dedd8e17275146e596edc6104b6ca325 | /flask_benchmark/client.py | 7e48a30f6cd58893d35350763555c95e7beeada8 | [
"MIT"
] | permissive | mpetyx/python-rpc-frameworks-comparison | f5cf01dfd1bb61fca4e8bbcd4bf08b471ef6a02a | 5b69a5aef1f8ead2fb88e744b6b1787b27165898 | refs/heads/master | 2020-03-27T13:15:32.841893 | 2018-08-30T17:08:40 | 2018-08-30T17:08:40 | 146,599,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | __author__ = 'mpetyx (Michael Petychakis)'
__version__ = "1.0.0"
__maintainer__ = "Michael Petychakis"
__email__ = "hello@apilama.com"
__status__ = "Production"
import grpc
# import the generated classes
import requests
# import the original calculator.py
class Client:
def __init__(self, channel=None):
... | [
"mpetyx@gmail.com"
] | mpetyx@gmail.com |
7bd668d47a2122f2507dd518f36921016a1c4664 | fe1768a66ce67f9ee7f42aeeff46d8d7773a14e2 | /flod_sak/alembic/versions/20150929-0733-23adc825714b_add_column_avskrevet_rapportkrav_.py | 5c1f0169e9fc832120381f60072894e43d01bb9e | [
"BSD-2-Clause-Views"
] | permissive | Trondheim-kommune/Tilskuddsbasen | eb7f6ee026aba86165b4d6d6c3f73b16d7d3a9f8 | 4f8ce270ef7296069f8e43bfb4bf6a570a7a35d4 | refs/heads/master | 2022-09-20T10:51:50.247573 | 2017-05-29T19:09:16 | 2017-05-29T19:09:16 | 49,863,325 | 0 | 0 | NOASSERTION | 2022-09-16T17:45:47 | 2016-01-18T08:39:22 | JavaScript | UTF-8 | Python | false | false | 695 | py | """add column avskrevet_rapportkrav_kommentar
Revision ID: 23adc825714b
Revises: 4bb0faf5d52
Create Date: 2015-09-29 07:33:26.377207
"""
# revision identifiers, used by Alembic.
revision = '23adc825714b'
down_revision = '4bb0faf5d52'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands a... | [
"teeejay@gmail.com"
] | teeejay@gmail.com |
4f1802317263e6acc86168a31df2eaccc57b3b4a | 537345f90de44dac4e2a20037d21f858f82e3120 | /deMultiGene_afterGb2fasta.py | 3edebf3809218662f2a12160c63ae7ae475ea1de | [] | no_license | kaiyaprovost/misc_scripts | f8fc8ca646c5c97ad3495e612bc9656e2b8d238c | 5c460ea608c13ff271fa6772fe548b89aa68c225 | refs/heads/master | 2021-11-11T15:33:34.211463 | 2021-11-10T23:11:56 | 2021-11-10T23:11:56 | 237,049,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,895 | py | # -*- coding: utf-8 -*-
"""
Program to remove multiple genes from a FASTA file
Requires that the first term of the FASTA file is the gene identity
Edited on 10 dec 2016 - NOT TESTED
@author: kprovost
"""
def main():
import sys
import glob
import os
cwd = os.getcwd()
try:
path... | [
"17089935+kaiyaprovost@users.noreply.github.com"
] | 17089935+kaiyaprovost@users.noreply.github.com |
6c060566f70b199370d957617bc8d3b868155b0d | 121a41645d86109d35d9bfffd0a499a0815cec04 | /scripts/list.py | 02eea217866ebb6395c056d98a7c235ffefae52f | [
"MIT"
] | permissive | shrut1996/docker-lambda | f1bd30a8f81ca57dc138a7f84862567b265a9694 | b93b60c774bac9d2a59644adc850ad4fcad99b71 | refs/heads/master | 2023-02-02T13:06:07.637913 | 2020-12-23T20:57:15 | 2020-12-23T20:57:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py |
import json
from boto3.session import Session as boto3_session
AWS_REGIONS = [
"ap-northeast-1",
"ap-northeast-2",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
"ca-central-1",
"eu-central-1",
"eu-north-1",
"eu-west-1",
"eu-west-2",
"eu-west-3",
"sa-east-1",
"us... | [
"vincent.sarago@gmail.com"
] | vincent.sarago@gmail.com |
58b2b7a50bc30bf790f06105fb090b6e5bf93764 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_wildernesses.py | f8915af5d463f35dae83accf49c99e5c9c60a17f | [
"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 | 240 | py |
#calss header
class _WILDERNESSES():
def __init__(self,):
self.name = "WILDERNESSES"
self.definitions = wilderness
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['wilderness']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
d0be8abb5d97d27ebae00c6ee20aff4ae9dfa35c | be5ea20226c37d81f1ccb2f704d8825d36e88765 | /04. Encapsulation/LAB/demo.py | 482f5ae858cdc0745c96c0db38ed2daa2978bfc7 | [] | no_license | dimDamyanov/PythonOOP | 3845e450e5a48fef4f70a186664e07c0cd60e09b | 723204f5b7e953874fac9314e48eb1d1628d6ff5 | refs/heads/main | 2023-04-07T18:00:36.735248 | 2021-04-19T20:57:14 | 2021-04-19T20:57:14 | 341,329,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,602 | py | class Person:
MIN_AGE = 0
MAX_AGE = 150
def __init__(self, first_name, last_name, age, city=None):
self.first_name = first_name
self.last_name = last_name
self.set_age(age)
@property
def full_name(self):
return f'{self.first_name} {self.last_name}'
@property
... | [
"dim.damianov@gmail.com"
] | dim.damianov@gmail.com |
f629d3d3a29b863c872af3c01286eb1e11683ac8 | cbda89443b351bb2047180dad4e300c13dc3df7f | /Crystals/Morpurgo_all_sp_Reorgs_qsplit_Molscreen_largepiatoms_sq/Jobs/Pc/Pc_neut_neut_inner3_outer0/Pc_neut_neut_inner3_outer0.py | a687794c0396bfb9bcc5416ff9532b00704451b0 | [] | no_license | sheridanfew/pythonpolarisation | 080f52979f98d26360a46412a10c8e3f51ee4549 | 178e2684e9a239a8e60af5f7b1eb414ac5f31e92 | refs/heads/master | 2021-07-10T01:07:40.978790 | 2021-03-11T16:56:37 | 2021-03-11T16:56:37 | 96,101,351 | 0 | 0 | null | 2017-07-03T13:37:06 | 2017-07-03T10:54:52 | null | UTF-8 | Python | false | false | 5,755 | py | import sys
sys.path.append('../../../../../')
from BasicElements import *
from BasicElements.Register import GetRegister
from BasicElements.MoleculeFactory import ReadMoleculeType
from BasicElements.MoleculeFactory import GetMolecule
from BasicElements.Crystal import *
from Polarizability.GetDipoles import get_dipoles,... | [
"sheridan.few@gmail.com"
] | sheridan.few@gmail.com |
959cb13f99cd46f5fe46d460b2415eabb7781041 | 2dd5e62eddf7679d195efcad62d3b61c8617c5b7 | /practice/Practice_6/Practice_6_solutions (2)/sum_of_digits.py | fa6eec35300ed0d8242ab0eec86e3c44381b9fcc | [] | no_license | unswit/COMP9021_2 | 03b38314a4723a4eafbb758954bc9f78f1556b0e | 713f2c3b31a2e5081e0602a19660056eb71b1144 | refs/heads/master | 2021-04-24T11:53:07.760756 | 2020-03-25T23:47:03 | 2020-03-25T23:47:03 | 250,114,841 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,450 | py | # COMP9021 Practice 6 - Solutions
'''
Prompts the user for two numbers, say available_digits and desired_sum, and outputs
the number of ways of selecting digits from available_digits that sum up to desired_sum.
'''
import sys
def solve(available_digits, desired_sum):
if desired_sum < 0:
return 0
i... | [
"55487375+ahcjdxzd@users.noreply.github.com"
] | 55487375+ahcjdxzd@users.noreply.github.com |
395b9d03b55ce1b219ff5076d2f1a45722b308ec | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-network/azure/mgmt/network/v2018_06_01/models/frontend_ip_configuration_py3.py | 54bdb1af858c0479b850d858e454f80f14f3222f | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 4,850 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
017cf440806ff69d7a9e676592b6f089ffd064d5 | 9b1446b26e81a79c303f9799fb6a91785c7adb03 | /.history/Code/sample_20200121111638.py | ffbcc7d22240798053cb4ec12fdcdd1fb8d207b8 | [] | no_license | SamirIngley/CS1.2-Tweet-Gen | 017ea15b1113881a156ff24682828bc654eb6c81 | bcd95fa63e05849cbf8e36230d8e31032b99daaa | refs/heads/master | 2020-12-14T20:19:57.733290 | 2020-08-04T23:19:23 | 2020-08-04T23:19:23 | 234,856,234 | 0 | 0 | null | 2020-06-05T21:13:04 | 2020-01-19T07:05:55 | Python | UTF-8 | Python | false | false | 700 | py | from stochastic import stoch
from histogram import list_hist
import random
def prob_sample(histo):
''' Input a histogram. Output a randomly chosen word from the histogram
relative to its frequency in the body of text.
'''
words = stoch(histo)
# print(words)
dart = random.randint(0, 100)
... | [
"samir.ingle7@gmail.com"
] | samir.ingle7@gmail.com |
5f5cd720a6ca6b6a01cdd4604aebc12afb3faa52 | c21f50c5090ca09386d868c0820873b4c9e0a7aa | /setup.py | 354963e580052371621028baec4bd762a02f9d34 | [] | no_license | sujanshresthanet/api-wrappers-python | 38d192a7033ec40f591db1dede1661787b5cf025 | bbe56940f83ca426aac25843b3410a3d164be2e3 | refs/heads/master | 2023-04-10T02:34:19.039252 | 2017-10-03T14:36:34 | 2017-10-03T14:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | # coding: utf-8
"""
Moosend API
TODO: Add a description
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import sys
from setuptools import setup, find_packages
NAME = "moosend-api-wrapper"
VERSION = "1.0.0"
# To install the library, run the follow... | [
"theo@moosend.com"
] | theo@moosend.com |
0a9d68e7bafd2655f96aa01861d275921ad3c066 | ee8c4c954b7c1711899b6d2527bdb12b5c79c9be | /assessment2/amazon/run/core/controllers/cautious.py | 1fae757d76605f6891ed5e82fbdebe496de34115 | [] | no_license | sqlconsult/byte | 02ac9899aebea4475614969b594bfe2992ffe29a | 548f6cb5038e927b54adca29caf02c981fdcecfc | refs/heads/master | 2021-01-25T14:45:42.120220 | 2018-08-11T23:45:31 | 2018-08-11T23:45:31 | 117,135,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | #!/usr/bin/env python3
from flask import Blueprint, Flask, render_template, request, url_for
controller = Blueprint('cautious', __name__, url_prefix='/cautious')
# @controller.route('/<string:title>', methods=['GET'])
# def lookup(title):
# if title == 'Republic': # TODO 2
# return render_template('rep... | [
"sqlconsult@hotmail.com"
] | sqlconsult@hotmail.com |
5820d7928b355d65f1bfbf6b21ee461d09f9afca | d6dda992a02fc351810e75856ffb00eb391607d7 | /saleor/saleor/product/migrations/0084_auto_20181227_1246.py | 452f7bbc928496828099163ed0636c6f98d9b228 | [
"BSD-3-Clause"
] | permissive | rds0751/harshnew | f99f26a49c58810c27855ef5b0809a6b9d5b1df8 | 5b49102afdb26587223ff7549ce6c5c8820b272e | refs/heads/master | 2022-12-15T09:40:38.749726 | 2018-12-28T06:31:05 | 2018-12-28T06:31:05 | 162,980,274 | 0 | 0 | null | 2022-12-08T01:30:01 | 2018-12-24T10:42:48 | Python | UTF-8 | Python | false | false | 1,112 | py | # Generated by Django 2.1.4 on 2018-12-27 07:16
from django.db import migrations, models
import django_prices.models
class Migration(migrations.Migration):
dependencies = [
('product', '0083_auto_20181226_1158'),
]
operations = [
migrations.AddField(
model_name='product',
... | [
"rsingh_bemba16@thapar.edu"
] | rsingh_bemba16@thapar.edu |
9555328ed60bf5236e6a59ad31192c7dd7c909b8 | e40111dda0ad509d474adfe4c52ae9b5525f388e | /show_weather/models.py | f686f6d78d17794aa0d1b756e6587e61883f1c30 | [] | no_license | XeyyamSherif/Weather-App | 2fb997fcfb5a6885ffffbf05e6ebe2127fd2bccf | 6de019cf289ff60d299b9f1e58c1f8c04fa3517f | refs/heads/master | 2023-01-23T06:57:55.655632 | 2020-12-04T20:10:42 | 2020-12-04T20:10:42 | 318,623,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | <<<<<<< HEAD
from django.db import models
class added_cities(models.Model):
city_name = models.CharField(max_length=100)
added_time = models.DateField()
=======
from django.db import models
class added_cities(models.Model):
city_name = models.CharField(max_length=100)
added_time = models.DateField()... | [
"you@example.com"
] | you@example.com |
fb81fc3745a2e0bb6e0650163a7b729c67d49b21 | 8e221c0f0528a2c26029508ae4f618021bb81788 | /infra_macros/fbcode_macros/tests/ocaml_library_test.py | 34067e01873c5f218fe7f1f727a28225e1a9e26a | [
"BSD-3-Clause"
] | permissive | nataliejameson/buckit | 4f7127c941e6ad621fd50424b6d171dd715f8bc5 | 83b4ba7fc7a7a9d28b7a66117de6d6beccfdf7f8 | refs/heads/master | 2021-10-09T12:12:31.062734 | 2018-12-21T04:38:35 | 2018-12-21T04:40:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | # Copyright 2016-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ import absol... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
72a4ca7de3bc83da307ab4b894c973fd5fde295d | b326dac9d39e3004b6bc5ff6cb95adbd0766811c | /aleph/logic/datasets.py | caaf9eeec4e1794c762c9c0391a29f8fe382098e | [
"MIT"
] | permissive | singingwolfboy/aleph | 9c73d93f73cb6a7f4df9c648e347ec605cf00964 | 5f30d22062815eb91d22705420c0815743a27478 | refs/heads/master | 2021-01-19T11:22:03.889408 | 2017-04-07T14:32:01 | 2017-04-10T09:06:23 | 87,958,403 | 0 | 0 | null | 2017-04-11T16:53:33 | 2017-04-11T16:53:33 | null | UTF-8 | Python | false | false | 1,988 | py | import time
import logging
from random import randrange
from elasticsearch import ElasticsearchException
from elasticsearch.helpers import BulkIndexError
from aleph.core import celery, datasets
from aleph.index import index_items
log = logging.getLogger(__name__)
QUEUE_PAGE = 1000
@celery.task()
def load_rows(datas... | [
"friedrich@pudo.org"
] | friedrich@pudo.org |
4f679263e2a338a3037aebf258f4d69fe4fd38b1 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/tensorflow/python/feature_column/feature_column.py | 4aacbcbb511263ab68f2ebae137b68e0ba1b7c28 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | version https://git-lfs.github.com/spec/v1
oid sha256:e9f74559da9c8672bb5a313b705ca9f480e002b13b23285d68619b4547aeeacf
size 126015
| [
"github@cuba12345"
] | github@cuba12345 |
448193cf4f842da161a46960e4711499950d8a94 | 9ca9cad46f2358717394f39e2cfac2af4a2f5aca | /Week05/02_manual_gradient/02_manual_gradient_YYH.py | 6273ab431684da732c6fefec84adb301c33e7bac | [] | no_license | Artinto/Python_and_AI_Study | ddfd165d1598914e99a125c3019a740a7791f6f6 | 953ff3780287825afe9ed5f9b45017359707d07a | refs/heads/main | 2023-05-05T15:42:25.963855 | 2021-05-24T12:24:31 | 2021-05-24T12:24:31 | 325,218,591 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,416 | py | plt.show()
# Training Data #x,y 데이터값 입력
x_data = [1.0, 2.0, 3.0]
y_data = [2.0, 4.0, 6.0]
w = 1.0 # a random guess: random value
# our model forward pass #선형함수 설정
def forward(x):
return x * w
# Loss function #loss 구하기
def loss(x, y):
y_pred = forward(x)
return (y_pred - y) * (y_pred - y)
# comp... | [
"noreply@github.com"
] | Artinto.noreply@github.com |
c3b4c58d5324c2b1d589cf777773eb97388e1235 | 7b3711d4c6d7284255ba0270d49d120f984bf7c6 | /problems/099_recovery_binary_search_tree.py | 14246631d7cb839d132d8494b5e492975510c78c | [] | no_license | loganyu/leetcode | 2d336f30feb55379aaf8bf0273d00e11414e31df | 77c206305dd5cde0a249365ce7591a644effabfc | refs/heads/master | 2023-08-18T09:43:10.124687 | 2023-08-18T00:44:51 | 2023-08-18T00:44:51 | 177,875,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,443 | py | '''
You are given the root of a binary search tree (BST), where exactly two nodes of the tree were swapped by mistake. Recover the tree without changing its structure.
Follow up: A solution using O(n) space is pretty straight forward. Could you devise a constant space solution?
Example 1:
Input: root = [1,3,null... | [
"logan.yu@cadre.com"
] | logan.yu@cadre.com |
d878db88ea2851312cf55dc51d7c157b4ade92fb | 7c1b599c5b5be0ec5ad142e52e5c15a7c9c8ea12 | /venv/Lib/site-packages/tensorflow/contrib/autograph/converters/directives.py | 66fd7519478c8046de11a5e758049de8851325a4 | [] | no_license | namtran98/NSTAR---MuddHacks | 88d602a0847bb923088c7f0be6d5c2980b11a36d | cbc04873e1f02cb6b62a7b77c5c44eb4e9422ab8 | refs/heads/master | 2020-04-21T19:41:49.889253 | 2019-02-09T01:02:37 | 2019-02-09T01:02:37 | 169,816,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,136 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"ntranmn@gmail.com"
] | ntranmn@gmail.com |
f1ce015e673a7f4d1b931c5fdc1c510b8411d01e | 79bb7105223895235263fd391906144f9f9645fd | /python/client/graph_util_test.py | 4102b27588d68b3537a230b099e8874e5a466156 | [] | no_license | ml-lab/imcl-tensorflow | f863a81bfebe91af7919fb45036aa05304fd7cda | 54ab3ec2e32087ce70ecae2f36b56a8a92f2ba89 | refs/heads/master | 2021-01-22T06:37:18.129405 | 2016-06-08T15:53:28 | 2016-06-08T15:53:28 | 63,518,098 | 1 | 2 | null | 2016-07-17T06:29:14 | 2016-07-17T06:29:13 | null | UTF-8 | Python | false | false | 8,123 | py | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"mrlittlezhu@gmail.com"
] | mrlittlezhu@gmail.com |
aa7fa5e63735dc329ad367ab2a01e383f1fbe5b4 | 5883449aa14eb5e8b3fa6ad4d03d1dfacc40ccee | /Amazon_Framework/DentOsTestbedLib/src/dent_os_testbed/lib/bridge/linux/linux_bridge_fdb.py | c6d5ff30762ba7407ed6f5b67e51f6d9d3121cfe | [
"Apache-2.0"
] | permissive | tld3daniel/testing | 826183f30d65f696e8476d4a584c4668355e0cb3 | e4c8221e18cd94e7424c30e12eb0fb82f7767267 | refs/heads/master | 2023-09-01T12:39:26.845648 | 2021-08-11T15:53:16 | 2021-08-11T15:53:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,467 | py | # Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# generated using file ./gen/model/linux/network/bridge/bridge.yaml
#
# DONOT EDIT - generated by diligent bots
from dent_os_testbed.lib.test_lib_object import TestLibObject
class LinuxBridgeFdb(TestLibObject):
"""
The corresponding ... | [
"muchetan@amazon.com"
] | muchetan@amazon.com |
793f2059789077f913c11bee3d42d0eaf8f85304 | 920f0fbb7064f2017ff62da372eaf79ddcc9035b | /lc_ladder/company/sq/Pancake_Sort.py | c805df046a36a6f61d1095423c2e4997897d9117 | [] | no_license | JenZhen/LC | b29a1c45d8c905680c7b4ad0017516b3dca80cc4 | 85219de95e41551fce5af816b66643495fe51e01 | refs/heads/master | 2021-06-03T10:03:02.901376 | 2020-08-05T19:44:48 | 2020-08-05T19:44:48 | 104,683,578 | 3 | 1 | null | 2020-08-05T19:44:50 | 2017-09-24T23:30:35 | Python | UTF-8 | Python | false | false | 1,558 | py | #! /usr/local/bin/python3
# Requirement
# Example
# 一堆 pancakes, 根据大小排序,但是要先 implement swap(List<Pancake> pancakes, int end),
# 把从 index 0 ~ end 的pancakes的顺序全部倒过来,然后用这个方法正常排序pancakes, 最后size 从小到大。
# 比如 {3, 2, 5, 4, 6} swap(pancakes, 3) 之后是 {4, 5, 2, 3, 6} implement 一个方法 不停地 swap 得到 {2, 3, 4, 5, 6}, 数字表示对应 pancake si... | [
"jenzhen.nyc89@yahoo.com"
] | jenzhen.nyc89@yahoo.com |
de30fb950229b9c7d7b72c825c41a5a03d2d1876 | 7e471dd6d2b4d6a429941ec43c6048397a0b5456 | /Arrays/Array Manipulation.py | 1c529a6a8811d87b745e728674c5eea4e52d5ec8 | [] | no_license | Benson1198/Practice-Problems | ab0c4629e456a990310b2c365401b6b46cd66982 | 505a2d0f4941e564516c9e521178270cdc5c0744 | refs/heads/master | 2022-11-28T18:00:16.714068 | 2020-08-11T17:59:13 | 2020-08-11T17:59:13 | 270,238,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | def arrayManipulation(n, queries):
arr = [0]*n
max_sum = 0
for q in queries:
arr[q[0] - 1] += q[2]
if arr[q[1]] <= n:
arr[q[1]] -= q[2]
for i in arr:
temp = max_sum + i
if temp >= max_sum:
max_sum = temp
return max_sum
| [
"34964177+Benson1198@users.noreply.github.com"
] | 34964177+Benson1198@users.noreply.github.com |
440e11f75f0b47160e56760518042862b3d06cbd | 331fca39c99354bb96f9f07a2309c59c34a9fb15 | /lib/python2.6/site-packages/tg/test_stack/rendering/templates/mako_noop.mak.py | 49e125649ea0213411dc208654116ae26a254256 | [] | no_license | rudyvallejos/GestionItems | d368a940a63cae9a2e5845cdf50db6b232aa9871 | 1eb56b582f0539c883a4914ad48291941b3c6c38 | refs/heads/master | 2016-09-06T08:37:46.582041 | 2011-07-09T18:39:02 | 2011-07-09T18:39:02 | 1,662,813 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 5
_modified_time = 1254065369.406944
_template_filename='tg/test_stack/rendering/templates/mako_noop.mak'
_template_uri='mako_noop.mak'
_template_cache=cache.Cache(__name__, _modifi... | [
"rudy.vallejos@gmail.com"
] | rudy.vallejos@gmail.com |
41f369934b8f755ab549927bdfe7383246b9ca49 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/jinja2/compiler.py | b1f370e1ab080128788c5a1572565d1ae353aa48 | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:4daf56d4b8ade78db022d0075e50dc834b043ac143322ac276514f1c0bab838a
size 66284
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
56261f33345742b0b0cdbd398c61208e19eac3cf | 50d3c1e9f524e5d9ee2684222ec872d1514c661f | /pygitversion/__init__.py | 25e746ad3c6e4afc686b7aaa8712ad4a2d88aeed | [
"MIT"
] | permissive | RadioAstronomySoftwareGroup/pygitversion | ceca85a6a0df835039918ffea30ea04646080822 | 36c78c87bb15f8d23418698ad4acb14391a77795 | refs/heads/master | 2021-07-12T23:51:30.834527 | 2019-12-16T13:27:49 | 2019-12-16T13:27:49 | 207,653,583 | 1 | 2 | NOASSERTION | 2020-10-02T15:54:07 | 2019-09-10T20:09:36 | Python | UTF-8 | Python | false | false | 602 | py | # -*- mode: python; coding: utf-8 -*
# Copyright (c) 2019 Radio Astronomy Software Group
# Licensed under the 2-clause BSD License
def branch_scheme(version):
"""Local version scheme that adds the branch name for absolute reproducibility."""
if version.exact or version.node is None:
return version.for... | [
"steven.murray@curtin.edu.au"
] | steven.murray@curtin.edu.au |
47b62311375e0cec75989ac45dbfcd2d5c15e413 | c074fb834cb4a8ac75d107146df10f9496590792 | /subscriptions/migrations/0007_auto_20201008_0023.py | 30d39f427afe15cb651a5be18c08001ded97e71f | [
"Unlicense"
] | permissive | jmhubbard/quote_of_the_day_custom_user | 4d5ffd4183d7e6290161b84cae2aa1f7ad621a99 | 27024b2953c1c94fd2970563c3ab31ad444912b6 | refs/heads/master | 2023-02-19T00:59:27.372671 | 2021-01-10T02:45:56 | 2021-01-10T02:45:56 | 293,443,918 | 1 | 0 | Unlicense | 2020-12-03T17:59:59 | 2020-09-07T06:41:25 | Python | UTF-8 | Python | false | false | 463 | py | # Generated by Django 3.1.2 on 2020-10-08 00:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('subscriptions', '0006_auto_20200915_0434'),
]
operations = [
migrations.AlterField(
model_name='subscription',
name=... | [
"jasonhubb@gmail.com"
] | jasonhubb@gmail.com |
8b649adf9ab63a818ffabb3813e55d2ac9b06e8a | 3246503531497b8287b834038fcb0c5212d7db23 | /awx/main/migrations/0156_capture_mesh_topology.py | 90f5a5e0a26c00e35828acb499a24e15b010c10d | [
"Apache-2.0"
] | permissive | AlexSCorey/awx | ba19ff243e6e831e45fd43154477d0c180b728b9 | 268a4ad32d8f48a40e9837f6eb3504caa736e243 | refs/heads/devel | 2023-08-08T23:29:13.932495 | 2022-08-11T12:03:35 | 2022-08-11T12:03:35 | 171,529,429 | 1 | 1 | NOASSERTION | 2023-03-01T04:05:10 | 2019-02-19T18:43:37 | Python | UTF-8 | Python | false | false | 1,574 | py | # Generated by Django 2.2.20 on 2021-12-17 19:26
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('main', '0155_improved_health_check'),
]
operations = [
migrations.AlterField(
model_name='inst... | [
"jeff.bradberry@gmail.com"
] | jeff.bradberry@gmail.com |
6b464c01d7971b6cccec176a98a2c279bd71b542 | f11600b9a256bf6a2b584d127faddc27a0f0b474 | /normal/880.py | 1836e72c5ff4d8f702b6338f04d808f0d45ac0c5 | [] | no_license | longhao54/leetcode | 9c1f0ce4ca505ec33640dd9b334bae906acd2db5 | d156c6a13c89727f80ed6244cae40574395ecf34 | refs/heads/master | 2022-10-24T07:40:47.242861 | 2022-10-20T08:50:52 | 2022-10-20T08:50:52 | 196,952,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | class Solution:
def decodeAtIndex(self, S: str, K: int) -> str:
size = 0
# Find size = length of decoded string
for c in S:
if c.isdigit():
size *= int(c)
else:
size += 1
for c in reversed(S):
K %= size
... | [
"jinlha@jiedaibao.com"
] | jinlha@jiedaibao.com |
e0e993f713a245f48dddc49afc3028d72bc1d18e | e1b1163fcf4c6fea7dcb3d4e403ef05578426412 | /erpnext_mfg/erpnext_mfg/doctype/replenishment/replenishment.py | ef337439b2864fdc7fded014a15ddf6337a20ba7 | [
"MIT"
] | permissive | amutaher/erpnext_mfg | e5e5eb822ed2f0b012c5fb6d202e4ae9e20843a9 | 0a4be3dea07802a37d947ed3e838719f10dc16e3 | refs/heads/main | 2023-07-11T14:46:14.707841 | 2021-08-09T12:13:38 | 2021-08-09T12:13:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,197 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2021, Bai Web and Mobile Lab and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.model.document import Document
from erpnext_mfg.api.replenishment import with_qty_details
clas... | [
"irayspacii@gmail.com"
] | irayspacii@gmail.com |
a309bbc972daaa409266e621f066fe03d4044950 | 453d0bd78a145a323785a8f86efffbbed36e2aff | /estimagic/tests/parameters/test_kernel_transformations.py | 6eec2853685a1bc4f6573b8d8ad5aa3fed5fc602 | [
"BSD-3-Clause"
] | permissive | vishalbelsare/estimagic | 2da897ac8f11cccf764a775c6aea23097082e862 | afae1be3a1566056d11962c495b67e64bc4a0822 | refs/heads/master | 2023-08-17T04:41:04.179038 | 2021-09-27T09:50:22 | 2021-09-27T09:50:22 | 286,576,997 | 0 | 0 | BSD-3-Clause | 2021-09-27T10:40:04 | 2020-08-10T20:55:11 | Python | UTF-8 | Python | false | false | 3,940 | py | from functools import partial
from itertools import product
import numpy as np
import pytest
from numpy.testing import assert_array_almost_equal as aaae
import estimagic.parameters.kernel_transformations as kt
from estimagic.differentiation.derivatives import first_derivative
from estimagic.parameters.kernel_transfor... | [
"noreply@github.com"
] | vishalbelsare.noreply@github.com |
45a8ad2f96978babc0f6b9c6b8ee581c042201d2 | 01b281b97b733a8b537bd997110412763a9188d9 | /timetracker/timetracker/tests.py | 3b61d410fb193503b134f4d296a9933a8d09a083 | [] | no_license | simonecastellazzi/lesson-two | 1e81dd25c9ae8fb967fb91b9185f7770e6cd20f0 | 30221d469ba9b9690af05d426d273b40e4e1fb95 | refs/heads/master | 2020-12-11T02:13:56.379185 | 2015-07-23T08:50:01 | 2015-07-23T08:50:22 | 39,557,689 | 2 | 0 | null | 2015-07-23T09:16:43 | 2015-07-23T09:16:43 | null | UTF-8 | Python | false | false | 242 | py | from django.test import TestCase, Client
class LessonOneTests(TestCase):
def test_hello_melbdjango(self):
c = Client()
response = c.get('/?name=melbdjango')
self.assertTrue('melbdjango' in str(response.content))
| [
"curtis@tinbrain.net"
] | curtis@tinbrain.net |
94d549582831c32cc8be6b022bd0d3b28e113706 | c96dba0f44c7996748ebcbf5c0c2489766ea65b4 | /scripts/NetworkStats.py | e530ca1b48216edd1419d450b48e248ea31902fa | [] | no_license | JKOK005/3dcnn-clone | 7189b0c3fa9c5e648931c887360639101ac27131 | 0c91ed60c164c9e683d6932b6dbd3f2accae9e8e | refs/heads/master | 2021-01-01T19:13:17.085176 | 2017-07-27T13:51:28 | 2017-07-27T13:51:28 | 98,540,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,224 | py | import os
import numpy as np
from UtilitiesScript import *
from settings import params
class NetworkStats(object):
@staticmethod
def __consoleLog(true_pos_count, false_pos_count, false_neg_count, true_neg_count, precision, recall, f1):
print("True positive count: {0}".format(true_pos_count))
print("False positiv... | [
"JKOK005@e.ntu.edu.sg"
] | JKOK005@e.ntu.edu.sg |
eb7d120c25c64f029b2468e43a512848be088d9a | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2466/60799/234954.py | cf99f1d1117b7d983a73f03f3f7cafce84cebb35 | [] | 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 | 341 | py | T = int(input())
for hhh in range(0, T):
input()
list = [int(i) for i in sorted(input().split())]
num = 0
for i in range(0, len(list) - 2):
for j in range(i + 1, len(list) - 1):
for k in range(j + 1, len(list)):
if (list[i] + list[j]) > list[k]:
nu... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
286854fe25353d24896d5afa386aafa689d2098d | 37468a4d833cb26fbf1e3989166a54b77600c8fe | /hw03/Etch-A-Sketch.py | 984f39bc1346d92e8de9e49b0436838d1c66cecf | [] | no_license | AugustofMay/ECE434-Embedded-Linux | c5b9338ade80f5a5cdab31c6624c32b7ff2c5bc2 | 7b628f7f5ec740460a067f44a0fb9a24c1614246 | refs/heads/master | 2020-03-27T18:33:21.219335 | 2018-10-10T13:54:44 | 2018-10-10T13:54:44 | 146,929,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,179 | py | #!/usr/bin/env python3
# From: https://adafruit-beaglebone-io-python.readthedocs.io/en/latest/Encoder.html
from Adafruit_BBIO.Encoder import RotaryEncoder, eQEP2, eQEP1
import smbus
import time
bus = smbus.SMBus(2)
matrix = 0x70
tmp101_1 = 0x4a
tmp101_0 = 0x48
# Instantiate the class to access channel eQEP2, and ini... | [
"debian@beaglebone.localdomain"
] | debian@beaglebone.localdomain |
8339a891b2162c3bce0e2559e5008b1466ff62a9 | f3d38d0e1d50234ce5f17948361a50090ea8cddf | /백준/Bronze/Bronze 2/10040번 ; 투표.py | 86be452918990773f6ae4dc27000d405347a7588 | [] | no_license | bright-night-sky/algorithm_study | 967c512040c183d56c5cd923912a5e8f1c584546 | 8fd46644129e92137a62db657187b9b707d06985 | refs/heads/main | 2023-08-01T10:27:33.857897 | 2021-10-04T14:36:21 | 2021-10-04T14:36:21 | 323,322,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | # https://www.acmicpc.net/problem/10040
# 첫째 줄에 경기의 수 N, 위원의 수 M을 입력합니다.
# 1 <= N, M <= 1000
N, M = map(int, input().split(' '))
A = []
for i in range(N):
A.push(int(input()))
| [
"bright_night_sky@naver.com"
] | bright_night_sky@naver.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.