blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cfdccc084372dfcf73094b57b03f4b0b2f5be174 | 2a88cc221f13d50dcd88ea959193a4b08b21141a | /jsonpatchext/mutators.py | a5bf8fb465376a723fae58f3541a1b2b705508d9 | [
"BSD-3-Clause"
] | permissive | RangelReale/python-json-patch-ext | b69bd6ae4090e81ce2bb31ae17f0949e4c2f2387 | c4534bf49346a2e05849de490b0b50f2e19dcfaa | refs/heads/master | 2023-05-12T15:17:43.168646 | 2021-06-02T12:24:33 | 2021-06-02T12:24:33 | 307,665,517 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | import re
def UppercaseMutator(current, value):
"""Uppercase the value."""
return current.upper()
def LowercaseMutator(current, value):
"""Lower the value."""
return current.lower()
def CastMutator(current, value):
"""Cast value."""
return value(current)
def RegExMutator(current, value):... | [
"rangelspam@gmail.com"
] | rangelspam@gmail.com |
382b4289c3b1bb000f2690f9c6f2a63fe5e1583c | f33885d6f1e963586f9e7b1e1a46a271d125e2e7 | /ci/nur/fileutils.py | 338149b414047c1411f8783359d43a434d120e33 | [
"MIT"
] | permissive | nix-community/NUR | cad821a31d965ade9869c21f03edf9f7bb4cdf02 | 80012e6c2de5ea9c4101948b0d58c745e7813180 | refs/heads/master | 2023-09-03T05:05:30.497198 | 2023-09-03T04:32:01 | 2023-09-03T04:32:01 | 123,327,588 | 965 | 385 | MIT | 2023-09-12T07:10:52 | 2018-02-28T18:49:50 | Python | UTF-8 | Python | false | false | 921 | py | import json
import os
import shutil
from contextlib import contextmanager
from pathlib import Path
from tempfile import NamedTemporaryFile
from typing import Any, Generator, Union
PathType = Union[str, Path]
def to_path(path: PathType) -> Path:
if isinstance(path, Path):
return path
else:
ret... | [
"joerg@thalheim.io"
] | joerg@thalheim.io |
25ac74774aba97bc67419a78e3604816ebe28186 | fe91afc3e00028852323b63ce49f74244338f614 | /rest_api_ta/wsgi.py | 2a033bbf3c52bcd8e5eef89e94e96b828c430a71 | [] | no_license | nabilapspta/Backend-Duit | 1870fbbc16bcba7a53de51735a9a68844f4a259a | 9f20cbcbfc6bf49c588cbaa0cec2a6a81b7d0947 | refs/heads/master | 2023-03-22T01:40:56.069799 | 2021-03-17T08:29:46 | 2021-03-17T08:29:46 | 348,633,500 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for rest_api_ta project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"nabilapuspita1@gmail.com"
] | nabilapuspita1@gmail.com |
4a59086461f4c14e5aedf3eef1b38135994a18bb | 7f490476dafd6663c2598db20b1c0422940af701 | /day4/Atm/conf/settings.py | fdaa199b99bae582318b0314c235e3848aded20e | [] | no_license | ChacoLv/python-oldboy | 46bc409ef10ecda70c2c6600b38216ab53c4c99c | 1c3e18c9ac3e61376927cfa6ce010001d53cdd93 | refs/heads/master | 2020-04-05T14:10:45.821224 | 2017-10-14T07:10:39 | 2017-10-14T07:10:39 | 94,796,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | # -*- coding:utf-8 -*-
# LC
import os
import sys
import logging
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(BASE_DIR)
DATABASE ={
'engine':'file_storage',
'name':'accounts',
'path':"%s/db" % BASE_DIR
}
LOG_LEVEL = logging.INFO
LOG_TYPES = {
'transaction' : 't... | [
"chenglv@live.com"
] | chenglv@live.com |
a9f17ae78f760cc3ece4257ce9addd1dedda6b14 | bf99c721ec863fc91e67586a9ad9e477d3bf3643 | /test.py | 50e26890629a6fb8cf0da77dce38ebd319bd20d7 | [] | no_license | HamiltonAgwulonu/Python-Crash-Course | ba1c1c2b76688095b39d87c5d89c9e3d5f7ba192 | 5eccc71568af34354eaa87717d0399c58d0bf6b2 | refs/heads/master | 2020-12-12T17:26:28.117237 | 2020-01-15T23:21:11 | 2020-01-15T23:21:11 | 234,184,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | # nums = [1, 2, 3, 4, 5]
# for num in nums:
# if num == 3:
# print("Found!")
# break
# print(num)
# for num in nums:
# if num == 3:
# print("Found!")
# continue
# print(num)
# for num in nums:
# for letter in "abc":
# print(num, letter)
# for i in range(1, 11):
# print(i)
# x = 0
# while x < 10:
#... | [
"hamilton.agwulonu@gmail.com"
] | hamilton.agwulonu@gmail.com |
99d9bcb03ca5a0d8950b41223b64796de4b33c4e | c0a6bf77a648eda8abc828931ee4f19abff2c8e1 | /dependencies.py | a1047bfd3ef59cbbb08931882b439995de9fe3f2 | [] | no_license | elujambio/OpenCV | bb0b766042301d75c56fe806fe41af531bba870f | e2e392833572ca10d24b89d29e5811eb1e203f0d | refs/heads/master | 2020-07-24T01:02:44.435542 | 2017-06-14T18:38:47 | 2017-06-14T18:38:47 | 94,362,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | #
#
# DEPENDENCIES
#
#
#
# This programs need the next dependencies
#
#
# 1.- numpy
# pip install numpy
# brew install numpy
# 2.- cv2
# Easiest install is through miniconda
# 3.- matplotlib
# pip install matplotlib
# 4.- FFmpeg
| [
"eugeniolujambio@gmail.com"
] | eugeniolujambio@gmail.com |
77f5af4c2ac23f8d0dcf8e352325b8f01ef19cd8 | e2f71bcc6a5cad8d8f6ad96852a1f9446d05f891 | /code/leetcode/self_dividing_numbers.py | e81a6f24af8d503670afcadfa5de5b9e0c8ae834 | [] | no_license | GodferyChen/LearnPython | 210d1c150f5f6d5b5f086ec9f77a539f5c1770e1 | d5cb60a73df946c74b92aa6aeb87c04c4d54788c | refs/heads/master | 2021-09-02T15:06:51.207012 | 2018-01-03T10:28:59 | 2018-01-03T10:28:59 | 106,989,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
class Solution:
@staticmethod
def selfDividingNumbers(left, right):
def check(num):
digits = set(map(int, str(num)))
if 0 in digits: return False
return not any(num % d for d in digits)
return filter(check, rang... | [
"chenxh.cz@gmail.com"
] | chenxh.cz@gmail.com |
d49992632d1175f8d29c75a113bd6815759d4d70 | b3638a57ff986c9af7281f057bd4cb5641c11589 | /백준/210720_DFSBFS/7576토마토.py | 91a53d3894732bb598ceb410f98498c2b090c2f5 | [] | no_license | commGom/pythonStudy | 6adc01faddbe3ef88e0cbab9da174caa77857ff7 | a5d52e66dfd0b3b7538454ca2b6fcd9665f83e6c | refs/heads/main | 2023-08-25T12:21:27.670495 | 2021-10-04T08:19:42 | 2021-10-04T08:19:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | import sys
from collections import deque
read=sys.stdin.readline
# 가로칸 M 세로칸 N
M,N=map(int,read().split())
# 익은 토마토 : 1, 익지않은토마토 : 0, 토마토가없을때 : 0
totato_field=[list(map(int,read().split())) for _ in range(N)]
# print(totato_field)
# BFS 정의
queue=deque()
# 상하좌우
dx=[-1,1,0,0]
dy=[0,0,-1,1]
def BFS():
while queue:
... | [
"81788884+WhiteBear2021@users.noreply.github.com"
] | 81788884+WhiteBear2021@users.noreply.github.com |
aa37ac8e2b91292a0ff5a5e7ad68529d95281431 | ce519b52e845708a1d2f7ec76ef5cf319209e136 | /application.py | e2ec741627574634853fd07a95974f244bccde81 | [] | no_license | prsolans/home-search | eca3b3495b2bc2d3e666c9171a85ca5a422e4011 | 04a4e6f6adc80de16c91c64ff754c7ebf37c3f33 | refs/heads/master | 2023-05-26T22:06:50.746913 | 2019-07-01T01:52:48 | 2019-07-01T01:52:48 | 193,388,304 | 0 | 0 | null | 2023-05-01T20:35:26 | 2019-06-23T19:38:17 | Python | UTF-8 | Python | false | false | 548 | py | # application.py
from flask import Flask
import os
import logging
import schedule
import time
from utilities.house_search import get_listing_data
app = Flask(__name__)
def job():
get_listing_data()
return ('we are working here...')
@app.route("/")
def hello():
# listings = get_listing_data()
# retur... | [
"prsolans@gmail.com"
] | prsolans@gmail.com |
670fe8df03baa050e48bad2abf3ef2e7f2e60071 | 384497dfcc4cbd789cd35fa3c4b75ececefcf765 | /nuclear/message/build_outer_python_binding.py | d8f5568cb0777eeb40b1dc149e0958332e4b2bdb | [
"MIT"
] | permissive | Fastcode/NUClearExample | 061947f59f7b8beadbe7a6ab3965ec72927ba03d | 1ce424a935a035df20bbc6d8018bd2bcd4194dd9 | refs/heads/master | 2020-12-08T09:32:46.561577 | 2018-12-16T00:24:48 | 2018-12-16T00:24:48 | 67,031,019 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,993 | py | #!/usr/bin/python
import sys
import os
from generator.textutil import indent, dedent
# Get our file we are outputting too
base_file = sys.argv[1]
# Get our root message directory
message_dir = sys.argv[2]
# Get our list of functions we have to call
functions = []
duplicates = []
for dep_file in sys.argv[3:]:
wit... | [
"trent@houliston.me"
] | trent@houliston.me |
927b63df755b0644229f3e3df8678e837b661a28 | a1abd9c305ca803ea298f3de34e11dbdb03dea03 | /hackerrank/cutTheSticks.py | 7224a79bb98682106f6fe9e110023af56fe14da6 | [] | no_license | bayramtuccar/PythonNote | 96f80315843208eac359d8f082b3e51a435542e7 | 446650ef395e04175f2877607ef8671f4ce53721 | refs/heads/master | 2020-04-08T09:11:58.019490 | 2018-11-26T18:16:28 | 2018-11-26T18:16:28 | 159,211,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | #!/bin/python3
import sys
def cutTheSticks(arr):
' Find the cutted stick number '
ret_list = []
while True:
arr_len = arr.__len__()
if arr_len == 0:
break
ret_list.append(arr_len)
min_mem = min(arr)
for idx in range(arr_len).__reversed__():
... | [
"noreply@github.com"
] | noreply@github.com |
e743150c8f84f40c1a8ed70fe9e7fdb1c26ef371 | 1f2c5ba0a545bf6793d9f2fbaf172e3478320701 | /property/migrations/0003_auto_20200513_2357.py | c2c8f284025db10fd1c93f1b7aa1780847fd4872 | [] | no_license | MusawerAli/DjangoRent | 537afc4555cf21f9c53384704d1d5a3fc4d2f68e | 640110e4f63cd39b556467da63470dbde401cfa0 | refs/heads/master | 2022-07-07T02:29:43.673984 | 2020-05-15T21:28:57 | 2020-05-15T21:28:57 | 261,726,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | # Generated by Django 3.0.6 on 2020-05-13 23:57
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('property', '0002_auto_20200513_2129'),
]
operations = [
migrations.AddField(
model_name='memberdetail',
... | [
"pakjalihouse@gmail.com"
] | pakjalihouse@gmail.com |
00c4b0a22845e040c070e2fe81c9351d6a81b81b | 5e0a15fc3abd3e884e68fcd320f9e59f71358898 | /cogs/mod.py | 022873257297e547860e944cd7c24cab39cb4ea8 | [] | no_license | IslaWoof/PikaBot | c1d69446f3a56a647218735b854e96fa8a8001b7 | e8f926a7caf19d31fa76b641de7d22cb319a09fd | refs/heads/master | 2021-04-15T04:03:48.403668 | 2018-03-23T16:00:11 | 2018-03-23T16:00:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,205 | py | import discord
from discord.ext import commands
import datetime
class mod:
'''Moderation commands!'''
def __init__(self, bot):
self.bot = bot
now = datetime.datetime.utcnow()
@commands.command()
@commands.has_permissions(kick_members=True)
async def kick(self, ctx ,... | [
"noreply@github.com"
] | noreply@github.com |
6009e18ce7b448841305b9ec9dd106d22a075c9a | 5f509aec51f0df62691de51b5aa7ba1c64ec7455 | /redis_map.py | 17fb58ea49d9eae8fccd4310efc1cf3323112635 | [] | no_license | rfyiamcool/redis_map | 233f86c2b9bede4c0e12eea73be232145b75da55 | 87c17dc923af9a29a7c8549d781870fb43579842 | refs/heads/master | 2020-03-18T17:51:47.209557 | 2018-05-27T15:05:14 | 2018-05-27T15:05:14 | 135,055,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,848 | py | # coding:utf-8
from contextlib import contextmanager
from future.utils import python_2_unicode_compatible
from redis import StrictRedis
@python_2_unicode_compatible
class RedisDict(object):
def __init__(self, *args, **kwargs):
self.namespace = ''
if 'namespace' in kwargs:
# Todo vali... | [
"rfyiamcool@163.com"
] | rfyiamcool@163.com |
59778d5cfdb33ed8ffbcd1d7c0f2b05cd15a366d | 5d22d9b2cb5cad7970c1055aeef55d2e2a5acb8e | /py/google/cj2014/round1A/FullBinaryTree.py | df737dafe506eb93570aed7b49ecc60662a2dc43 | [
"MIT"
] | permissive | shhuan/algorithms | 36d70f1ab23dab881bf1a15573fbca7b2a3f4235 | 2830c7e2ada8dfd3dcdda7c06846116d4f944a27 | refs/heads/master | 2021-05-07T14:21:15.362588 | 2017-11-07T08:20:16 | 2017-11-07T08:20:16 | 109,799,698 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,055 | py | # -*- coding: utf-8 -*-
"""
created by huash06 at 2015-04-08 10:48
"""
__author__ = 'huash06'
import sys
import os
import py.lib.Utils as Utils
from datetime import datetime
# sys.stdin = open('input/sample.txt', 'r')
sys.stdin = open('input/B-large-practice.in', 'r')
# sys.stdout = open('output/B-large-practice.ou... | [
"shuangquanhuang@gmail.com"
] | shuangquanhuang@gmail.com |
fe349175bcf2d83467e3ea5f80a2ff52d08a06f6 | d84c107e6da7e03b41382409987ae5d46b59bca2 | /source/game/script/compiledscript/makeversion.py | 57dc5e89bee7c7fbacb9a7fc0fbabe137b756991 | [
"MIT"
] | permissive | JasonHutton/QWTA | b3854cd4873a46a8a9089ee3481a47074b62236b | 7f42dc70eb230cf69a8048fc98d647a486e752f1 | refs/heads/main | 2023-04-13T02:15:14.639793 | 2021-05-01T21:29:18 | 2021-05-01T21:29:18 | 363,500,974 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,293 | py | #!/usr/bin/env python
#
# version management
#
import os
import sys
import re
def GetVersion():
keys = ( 'ENGINE_VERSION_MAJOR', 'ENGINE_VERSION_MINOR', 'ENGINE_SRC_REVISION', 'ENGINE_MEDIA_REVISION' )
version = [ '-1','-1','-1','-1' ]
buildVersion = {}
try:
f = file( 'BuildVer... | [
"azuvector@gmail.com"
] | azuvector@gmail.com |
128977c94ecd89aa750a22dabc12b410e6ef0ebc | 9039294895cc5334d1f42f3c9f5fad11103c4e5e | /mars/learn/neighbors/_faiss.py | eb9d6c065c65c661f9ed5289b3fe1436e3a1ee22 | [
"BSD-3-Clause",
"OFL-1.1",
"LicenseRef-scancode-unknown-license-reference",
"CC0-1.0",
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | permissive | rg070836rg/mars | 27362aa50fa556768b8824a5600aab5f864ad0ab | f7909869bc3c2995e4eeb7c898db9e33b636f9ca | refs/heads/master | 2023-04-29T05:18:04.739725 | 2020-09-29T11:17:31 | 2020-09-29T11:17:31 | 299,794,632 | 0 | 1 | Apache-2.0 | 2020-09-30T02:59:21 | 2020-09-30T02:59:21 | null | UTF-8 | Python | false | false | 28,996 | py | # Copyright 1999-2020 Alibaba Group Holding 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 a... | [
"noreply@github.com"
] | noreply@github.com |
bc89d5b081e0e99dac177fc3c5169ae89ad3b7c1 | 5fbcd2d59b38b5b3d28b0f13c762f0a968a21133 | /application/scroll.py | f19286ad1e181feac83b95a051e3d6395004dfba | [] | no_license | Walia666/Alerter | 1a03e482a2cd05719d601bc22552471eedffc30e | 83267d0d004c11e331eaf7d7a6145fe40a11cc8a | refs/heads/master | 2020-03-19T07:45:59.185918 | 2018-06-05T08:38:54 | 2018-06-05T08:38:54 | 136,146,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,516 | py | def docsnew(request):
client = Elasticsearch()
values=[]
if request.method == 'POST':
log_field=request.POST['log_field']
array=request.POST['data']
kibanaquery=request.POST['kibana_query']
datefrom = request.POST['datetime_from_name']
dateto= request.POST['datetime_to_name']
pattern = ... | [
"anshulwaia128@gmail.com"
] | anshulwaia128@gmail.com |
2641b37d027fbff1ece30b7f2825fb2fcbd20653 | 7950c4faf15ec1dc217391d839ddc21efd174ede | /leetcode-cn/0150.0_Evaluate_Reverse_Polish_Notation.py | 0a7404c8bbd5ea8d7d771e5b14d18c16066b3ef5 | [] | no_license | lixiang2017/leetcode | f462ecd269c7157aa4f5854f8c1da97ca5375e39 | f93380721b8383817fe2b0d728deca1321c9ef45 | refs/heads/master | 2023-08-25T02:56:58.918792 | 2023-08-22T16:43:36 | 2023-08-22T16:43:36 | 153,090,613 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,151 | py | '''
approach: Stack
Time: O(N)
Space: O(N)
执行用时:32 ms, 在所有 Python 提交中击败了60.21%的用户
内存消耗:14.3 MB, 在所有 Python 提交中击败了76.44%的用户
'''
class Solution(object):
def evalRPN(self, tokens):
"""
:type tokens: List[str]
:rtype: int
"""
stack = []
for token in tokens:
... | [
"lixiang@rxthinking.com"
] | lixiang@rxthinking.com |
0d51a3c5f0b0c6421d7aa1d1e00845b6402846f4 | aacb6439137be5b0ad694ebb5ecae1844223d0aa | /ex001.py | 643b0abf024e25f17116526058958999be8c92bb | [] | no_license | raphaelsmuniz/cursoEmVideoPython | 3a47507347a79267b1efd6e4dff9fda4bb424a7a | 08f7baeba3fd9a848adf87b403284da9fba17932 | refs/heads/master | 2021-12-15T10:04:53.576411 | 2021-12-08T18:46:30 | 2021-12-08T18:46:30 | 128,147,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | nome = input('Qual é o seu nome? ')
print('É um grande prazer te conhecer', nome) | [
"raphaelnsx@gmail.com"
] | raphaelnsx@gmail.com |
c63b1fa4e04f7ce429a6950d384a4e64e36fe1b8 | 3017e7f0e8cd99469c7c98ec8a4b9b75d39c0c2f | /pythonkitabi/ingilizce/ch11/mia/splitspace.py | 61f80bf9bd1d710ebaf5c34572bcbad903ed206a | [] | no_license | Rmys/projects | de6cb9d5d3f027d98c812647369d1e487d902c4b | 60ce197bc1fb7ad3fa31f12559b74ee450b69df1 | refs/heads/master | 2020-03-19T15:36:11.603931 | 2011-09-16T00:15:34 | 2011-09-16T00:15:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | """
splitspace.py - splitter view manager for the mdi framework
copyright: (C) 2001, Boudewijn Rempt
email: boud@rempt.xs4all.nl
"""
from qt import *
from resources import TRUE, FALSE
class SplitSpace(QSplitter):
def __init__(self, *args):
apply(QSplitter.__init__,(self, ) + args)
self.view... | [
"ismail@users.noreply.github.com"
] | ismail@users.noreply.github.com |
d34afd28088c387fc104acc632df1276df76726e | b2c070e09bff49241fcff98bcde825cfa96e93ca | /HackerEarth/Recursion/SubsetGeneration.py | 9af011b3289a694f328f9d18d4a03292e2e93f09 | [
"MIT"
] | permissive | Beryl2208/CI-2 | dcb1b923f9c4f1f8b167c36c8b22a80522322c53 | f671292dad2695e37458866442a6b951ba4e1a71 | refs/heads/master | 2022-12-26T19:11:28.559911 | 2020-10-06T06:27:51 | 2020-10-06T06:27:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | # Subset or Subsequence generation
# Input - "abc", Output - "a", "b", "c", "ab", "ac", "abc", "bc"
# Input - "abcd", Output - "a", "b", "c", "d", "ab", "ac", "ad", "abc", "acd", "abd", "abcd", "bc", "bcd", "bd", "cd"
# "abc" "ab" "ac" "a" "bc" "b" "c" ""
# \ / \ / \ / \ /
# "ab" "a" "b"... | [
"AbhiSaphire@github.com"
] | AbhiSaphire@github.com |
a2455184714558aeedd27f30413d548c77e63c4b | 7e260342bb04eba9bff4289da938e859b8d68b82 | /contrib/scripts.py | d6d2ef643382ab83ba2df65618bc02d78d78ab2f | [
"MIT"
] | permissive | christopherjenness/fava | 72c2d0e201f7792ac32a643be0479fa7623efc27 | 71c25d8a0ae08aa84150e33d464000d0161610ea | refs/heads/master | 2020-04-28T15:29:34.446050 | 2019-03-12T17:58:03 | 2019-03-12T17:58:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,374 | py | #!/usr/bin/env python3
"""Various utilities."""
import json
import os
from beancount.query import query_env
from beancount.query import query_parser
import click
import requests
BASE_PATH = os.path.normpath(
os.path.join(os.path.dirname(__file__), "../fava")
)
LANGUAGES = ["de", "es", "fr", "nl", "pt", "ru", "zh... | [
"mail@jakobschnitzer.de"
] | mail@jakobschnitzer.de |
2a06563b85200a8f318510a6b133096d34966f34 | a920ae4837161ba75d82efaec118a73f846bab7b | /eelbrain/vessels/process.py | e5d0644f55af1db1505ee74f7ff4a883853c55f3 | [] | no_license | kriek197/Eelbrain | 316b422e7137d32003d9c787c3aee7c444f2a438 | 03c06ba4517307821ff2c1811a3edd34b7274cf0 | refs/heads/master | 2020-12-25T09:00:40.915929 | 2012-03-07T16:44:31 | 2012-03-07T16:44:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,394 | py | '''
Created on Feb 24, 2012
@author: christian
'''
import mdp as _mdp
import data as _data
def rm_pca(ds, rm=[], source='MEG', target='MEG'):
"""
Perform PCA and remove certain components. Use gui.pca to find components
initially. Algorithm from the gui!
"""
if not rm:
raise ValueE... | [
"christian@Christian-Brodbecks-MacBook-Pro.local"
] | christian@Christian-Brodbecks-MacBook-Pro.local |
0d049d8ba10dab9d75bd9355eb364b3565a2349b | 6a7e9e0e9c08132166f566bd88ae1c46ff8f9c0a | /azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_container.py | f6e8fff7ae9f79d55e3c6619b9dd2ff2044fb9c6 | [
"MIT"
] | permissive | ashirey-msft/azure-sdk-for-python | d92381d11c48f194ec9f989f5f803db614fb73f2 | e04778e13306dad2e8fb044970215bad6296afb6 | refs/heads/master | 2020-03-23T06:05:39.283442 | 2018-09-15T00:18:26 | 2018-09-15T00:18:26 | 141,188,192 | 0 | 1 | MIT | 2018-07-16T20:02:52 | 2018-07-16T20:02:52 | null | UTF-8 | Python | false | false | 2,678 | 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 ... | [
"noreply@github.com"
] | noreply@github.com |
91b770c32ce191e1618b591a09cd70ba96ab08fe | 96449d8ba4addbf1758ea923097aaa8b799c9283 | /chapter 6/in_and_is.py | e5a786aed37096bbae3d40b1a5cc8d1592073ea1 | [] | no_license | Pravin2796/python-practice- | 446905714f9cb592e091c858719ff045005329a3 | d8d631ba1ccd7d1b7863d7b0f58099eae93ec54d | refs/heads/master | 2023-07-18T12:10:44.989715 | 2021-08-30T12:29:24 | 2021-08-30T12:29:24 | 401,336,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | # a = None
# if (a is a None):
# print("yes")
# else:
# print("no")
a = [45,20,654]
print(45 in a)
| [
"praviinjd@gmail.com"
] | praviinjd@gmail.com |
1e65974aa90d149f18d9f0db6df93ae6acdfea77 | 2273e24209e914b106482b1d3950e3e340f57ead | /netmiko_ex1.py | a95c4055c955a7757226a2d337c64aef1b287392 | [
"Apache-2.0"
] | permissive | bashamshaik/pynet_test8 | 3bf416dc93b801ee4ba902a07e8555dae5f5d7ed | e2561b016b9627d9ae31cc8bdcfa005a9c773232 | refs/heads/master | 2020-06-24T04:01:41.211031 | 2017-07-13T19:11:28 | 2017-07-13T19:11:28 | 96,918,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | #!/usr/bin/env python
"""Exercises using Netmiko"""
from __future__ import print_function
from getpass import getpass
from netmiko import ConnectHandler
pynet_rtr1 = {
'device_type': 'cisco_ios',
'ip': '184.105.247.70',
'username': 'pyclass',
'password': getpass,
}
pynet_srx = {
... | [
"jdoe@domain.com"
] | jdoe@domain.com |
09fc27c0d2db4456503b39b6e34088fd5e8e840b | a553c852772514ee392a359cb306128381a85b6c | /mysite/mysite/settings.py | c49fceaff2b3e63c7da2ad4c85e6ad2c32742546 | [] | no_license | YenHengLin/login-bootdjango | 0ba78cc55eff7e75c0063121de01106e504ed71c | 9b0fb9e8a5ef4fc16536edc0867e4c5c678a1e69 | refs/heads/master | 2022-12-19T01:50:32.986362 | 2020-08-28T21:27:39 | 2020-08-28T21:27:39 | 289,205,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,101 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib im... | [
"NE6081098@gs.ncku.edu.tw"
] | NE6081098@gs.ncku.edu.tw |
36e4e2986c5061bf137f8a9132190a868617ee89 | 2205147e87a78f6056188ef20459f193e7601ae6 | /paillierself.py | f314edcf51f4e8039b80935a2e1de186a1e8799b | [] | no_license | chenggang12138/decision | 1f707447d0d6f55f0c38316bfbd7df0a2c7c96f7 | 320dc0667cefa5b537aaac498f2e08eb2966770b | refs/heads/main | 2023-06-02T00:46:26.460597 | 2021-06-22T07:32:25 | 2021-06-22T07:32:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,788 | py | """Paillier encryption library for partially homomorphic encryption."""
import random
try:
from collections.abc import Mapping
except ImportError:
Mapping = dict
from phe import EncodedNumber
from phe.util import invert, powmod, getprimeover, isqrt
DEFAULT_KEYSIZE = 2048
def generate_paillier_keypair... | [
"noreply@github.com"
] | noreply@github.com |
fae49df9e810cfda124a6a5a4f2482b7634a7e3d | 2b95304dd1d5eb74b7fe55929d04d42ad7617cfe | /nursery/migrations/0005_auto_20210109_1707.py | 5ee8a517166acef6190733ed3c34a6c72c579266 | [] | no_license | dicegame363/Plant-and-Nursery | 4e04bb29af74236730e3b75209dac99d1f74d6a0 | 7ad105a37af7f429be6d55fc8160c2ca45e4001c | refs/heads/main | 2023-02-15T21:57:09.375526 | 2021-01-13T05:34:36 | 2021-01-13T05:34:36 | 328,098,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | # Generated by Django 3.1.5 on 2021-01-09 11:37
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('nursery', '0004_auto_20210109_1701'),
]
operations = [
migrations.RemoveField(
model_name='orde... | [
"dicegamemail@gmail.com"
] | dicegamemail@gmail.com |
3efb1c41585980c718232ed289499bfcb00fe969 | 9b852d13a5cb849b42a56959d80af13de9124381 | /predict.py | e26395c9906cfde3f2441f74a58b53d51a8b11a6 | [
"MIT"
] | permissive | HungUnicorn/udacity-flower-image-classifier | 086228f689fe70f34a62c90be50330482288df93 | 9625d3e94f178cd6090168f5a97c8d278cebc5c8 | refs/heads/master | 2022-09-19T03:08:45.251131 | 2020-06-01T13:22:26 | 2020-06-01T13:22:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,682 | py | import argparse
import json
from util import process_image, load_model
import torch
def predict():
args = cli()
device = torch.device("cuda" if args.gpu else "cpu")
print(f'Device: {device}')
image = process_image(args.image_path)
model = load_model()
with open(args.category_names... | [
"hungchang@hungchang.fritz.box"
] | hungchang@hungchang.fritz.box |
e98613e9520a652001c93b17ff4600e2c67e99bf | 0db8032fc10ffee088736dc19f5e766a8d4bc72d | /02-array-seq/list_slice.py | 942778ef6bdd142fba0099be3b61dd1730cc3b73 | [
"MIT"
] | permissive | niyunsheng/fluent-python | 9ddec1ed09b819b3a2d920c3b1bc092094719150 | 26d91e56a58c7423253066f65ffb03b90d822e86 | refs/heads/master | 2022-10-22T22:27:05.787416 | 2020-06-13T15:42:29 | 2020-06-13T15:42:29 | 256,383,732 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | # 建立由列表组成的列表
board = [['_'] * 3 for _ in range(3)]
print(board)
board[1][2] = 'X'
print(board)
# 上面这个代码等同于
board = []
for i in range(3):
row=['_'] * 3
board.append(row)
# 下面这种方法不对,因为外面的列表其实包含 3 个指向同一个列表的引用
board = [['_'] * 3 ]*3
print(board)
board[1][2] = 'X'
print(board)
# 上面这个代码等同于
row=['_'] * 3
board ... | [
"ni-ys13@tsinghua.org.cn"
] | ni-ys13@tsinghua.org.cn |
dc0b8088b98d3de65f6b57c8d2a62cb0d9a6c470 | 913d46cbc5abe5556e05b59ffd1b55009a848e32 | /lanenet-lane-detection/tools/my2train_dense.py | 2c0f51d4ba0b5671c4a937609deedc2e30051218 | [
"Apache-2.0"
] | permissive | yeyang1021/Sparse-to-Dense | 7c3fcd34c1d41e16369788471c0040cdac1dc7fb | 785c1dc5f05ebf4c267d5c3e46b37463f291e14b | refs/heads/master | 2022-11-27T17:48:00.209011 | 2019-06-06T03:10:20 | 2019-06-06T03:10:20 | 190,501,005 | 1 | 1 | null | 2022-11-21T22:27:55 | 2019-06-06T02:32:59 | Python | UTF-8 | Python | false | false | 12,068 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time :
# @Author :
# @Site :
# @File : my2train_dense.py
# @IDE: PyCharm Community Edition
"""
训练lanenet模型
"""
import argparse
import math
import os
import os.path as ops
import time
import cv2
import glog as log
import numpy as np
impor... | [
"noreply@github.com"
] | noreply@github.com |
26689f9b99d8bd56db24a4aeb5febdc30e9b5fc8 | 21f2f5aebdd72b2b12ad7691caf2fc0940ed81c7 | /CSV_WebAPI/Q1.py | 556aa4ea8f1ebc788b30360ac97ceae679103255 | [] | no_license | seelem27/TCP-IP-Network-Application-Development | 4c17e8ab9c19f7ce005d0e47ceec0051d05f3815 | 53fe62ef175160ac87c517bb0460fb2b182d0f60 | refs/heads/master | 2020-08-28T19:59:13.515182 | 2019-10-27T04:59:19 | 2019-10-27T04:59:19 | 217,806,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | import http.client
import json
import csv
HOST = 'localhost'
PORT = 5000
print('### Connecting to {}:{}'.format(HOST, PORT))
conn = http.client.HTTPConnection(HOST, PORT)
with open('Q1.csv') as file:
stations = csv.DictReader(file)
for station in stations:
station = dict(station)
print('### ... | [
"dzyenlem@gmail.com"
] | dzyenlem@gmail.com |
a34d3b1af0338b070bb96765121b7d9ea124b37d | 03fa51b0145bbc68dd17ce5a50374dbb1881ca7c | /fingerTransferTMAEfunctions.py | 4b9bc18a34cfc4210f952c75709b5af1c4a9733e | [] | no_license | SDAMcIntyre/sidewaysOptaconStim | 4f1eb225b9fbbdf4a6e9915c56c9169c3893ab1f | 8c4095efdcfe55a196478c6e21e2f34d40bcfe55 | refs/heads/master | 2020-05-04T21:40:55.415185 | 2015-02-23T07:08:29 | 2015-02-23T07:08:29 | 26,157,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,564 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 12 14:33:59 2014
@author: sarahmcintyre
"""
import optacon
import optaconSideways
from psychopy import data
import numpy
import os
single_presentation = optaconSideways.single_presentation
zeros = numpy.zeros
sign = numpy.sign
def stim_set(presentationTime, stepDurati... | [
"sdamcintyre@gmail.com"
] | sdamcintyre@gmail.com |
89387841556725ab30f6a4260ab7846497b4b594 | 6a72f47a5e49b4e9b74a2e6c4ca2591cdf7b7f03 | /snake.py | 0b33fa36662a2f46898f9bb56452710861de4f3f | [
"MIT"
] | permissive | ritik-gupta/modern-snake-game-opencv | a54f0a3f5ae7179a2bf37b49a971f04fc5f2b7aa | 053fdbe13eee37258e1aeae6fafef0f4e7f21847 | refs/heads/master | 2021-09-22T11:22:57.002569 | 2018-09-09T13:19:24 | 2018-09-09T13:19:24 | 148,025,233 | 8 | 6 | null | null | null | null | UTF-8 | Python | false | false | 5,079 | py | import cv2
import numpy as np
from time import time
import random
import math
import webcolors
font = cv2.FONT_HERSHEY_COMPLEX_SMALL
apple = cv2.imread("apple.png", -1)
apple_mask = apple[:, :, 3]
apple_mask_inv = cv2.bitwise_not(apple_mask)
apple = apple[:, :, 0:3]
apple = cv2.resize(apple, (40, 40), interpolation=... | [
"gritik95@gmail.com"
] | gritik95@gmail.com |
4f729df74aa3cb8e7f8acf86cf08033467732bf3 | 5982a9c9c9cb682ec9732f9eeb438b62c61f2e99 | /Problem_234/my_bad_solution.py | d6896b10334da48b8afeefb2a9c1fcca30a0b44b | [] | no_license | chenshanghao/LeetCode_learning | 6fdf98473be8f2240dd86d5586bbd1bbb95d6b0c | acf2395f3b946054009d4543f2a13e83402323d3 | refs/heads/master | 2021-10-23T05:23:01.970535 | 2019-03-15T05:08:54 | 2019-03-15T05:08:54 | 114,688,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def isPalindrome(self, head):
"""
:type head: ListNode
:rtype: bool
"""
val_list = []
while(head):
val_li... | [
"21551021@zju.edu.cn"
] | 21551021@zju.edu.cn |
434c4bd312a9abd7b4c412e91f46470e4d93787a | 3151fabc3eb907d6cd1bb17739c215a8e95a6370 | /storagetest/pkgs/pts/compilebench/__init__.py | 2b4e431708e278479b68217206765020f8856961 | [
"MIT"
] | permissive | txu2k8/storage-test | a3afe96dc206392603f4aa000a7df428d885454b | 62a16ec57d619f724c46939bf85c4c0df82ef47c | refs/heads/master | 2023-03-25T11:00:54.346476 | 2021-03-15T01:40:53 | 2021-03-15T01:40:53 | 307,604,046 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
"""
@file : __init__.py.py
@Time : 2020/11/12 18:27
@Author: Tao.Xu
@Email : tao.xu2008@outlook.com
"""
from .compile_bench import *
__all__ = ['CompileBench']
"""
compilebench
==============
https://oss.oracle.com/~mason/compilebench/
https://openbenchmarking.org/test/pts/... | [
"tao.xu2008@outlook.com"
] | tao.xu2008@outlook.com |
a01ab751ec102dc7d935fcfbf2e45baffaef1dc6 | ad19cff460a1f28c2b63f7ea66d13695fe8742a5 | /orders/migrations/0001_initial.py | e79b19914736d02e3c1dd92507a6b477bb678b25 | [] | no_license | OsamaAburideh/E-Commerce-website | 172f8ef3a6c7bf71b2ac674e766cf0cefeb103b0 | 87847fcdd19775f4065384ac8f2054bc9a1eae3f | refs/heads/master | 2022-12-26T17:52:33.446521 | 2020-10-06T09:07:39 | 2020-10-06T09:07:39 | 301,666,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,809 | py | # Generated by Django 2.2.5 on 2019-12-04 16:13
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('shop', '0002_auto_20191107_1145'),
]
operations = [
migrations.CreateModel(
... | [
"hamis9474@gmail.com"
] | hamis9474@gmail.com |
07872d994013a1adcc497126aa1cd055dd02639e | 254a6554b297b2a78619714ddc1b9fe36ee0c5dc | /app.py | cef0d6770296b2101cfcc4350e82dd49fa8899d2 | [] | no_license | copperstick6/SeeGreen-GHome | a39d928aca12069eb616bee770b9fc7f27ec32c0 | bce5bacc759489483b9fd1a9f13c21c273fabf28 | refs/heads/master | 2021-01-19T23:52:43.478458 | 2017-04-22T12:10:38 | 2017-04-22T12:10:38 | 89,043,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | import logging
from random import randint
from flask import Flask, render_template, request, redirect
from flask_ask import Ask, statement, question, session
app = Flask(__name__)
ask = Ask(app, "/")
logging.getLogger("flask_ask").setLevel(logging.DEBUG)
@ask.launch
def start():
welcome_msg = render_templ... | [
"copperstick6@gmail.com"
] | copperstick6@gmail.com |
623e4cf25c34849f6d992b333e824ebbbd7a03eb | afcc21cdc0369127f0bb4e543cceee2e6c523354 | /util.py | 11d298bb9f99e64a1626671f0ce86b8c4f0fde61 | [] | no_license | p13i/Segmentally-Boosted-HMMs | 60ea6b46c0228bbf7522ee4a9bdc0237c5ede3a0 | e26a7108886233fc89f43dbbee6aafb785f7201c | refs/heads/master | 2020-05-07T16:22:37.978992 | 2018-01-30T22:38:27 | 2018-01-30T22:38:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,424 | py | # sliding window for 1 second
import sys
import numpy as np
from scipy import stats
import math
import Constants
# data : nd array num_samples * num_features
# function handle : calls this function on all frames and concatenates the result in the output
# sliding_size : number of seconds in sliding window if index_time... | [
"vmurahari3@gatech.edu"
] | vmurahari3@gatech.edu |
b7b7a1616c5953738e9174b20cb9c545135de13f | c38d524359ae6d2683ab306a0e4c6585072c1c17 | /Tree_search_node.py | 65688658a3140ba249d91be37b291482ae139484 | [] | no_license | ohade2014/Hurricane-Evacuation-Problem-A- | 8092492ac67aac3acbe150d38d0e0d23ed1533f8 | c7a4a300e83bbf9fac7b520485d5e5713c626815 | refs/heads/master | 2021-02-12T20:38:03.789288 | 2020-03-03T12:33:25 | 2020-03-03T12:33:25 | 244,628,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py |
class Tree_search_node:
def __init__(self, loc, num_of_people, people_rescued, time, terminated, shelters, peop, ppl_vex, h, info):
self.location = loc
#self.there_is_people
self.people_rescue_now = num_of_people
self.people_rescued = people_rescued
self.time = ti... | [
"noreply@github.com"
] | noreply@github.com |
a040259d98517f83a0d490fdf920c7ed7c432d74 | 95e0e0d7e024db0c359f566ebee6a2a0480b228f | /2_15.py | 96c4ca692c1cb81b891e4812bbb65bed0b75ca26 | [] | no_license | ChaYe001/interface | 0067f85d5e1f208b757ef92a63777e6cb3e4f814 | a5715e209b46ce6fd06b89d3ffbf882075532852 | refs/heads/master | 2023-06-17T23:19:53.457665 | 2021-07-09T10:04:47 | 2021-07-09T10:04:47 | 264,167,089 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,871 | py | #__author__ = 'Bo.Gu'
# -*- coding: utf-8 -*-
#!/usr/bin/python3
import os
import numpy as np
import codecs
def caca(score, num):
for filename in ['Trueface_0604_2_15.txt.txt']:
f = codecs.open(filename,mode='r',encoding='utf-8')
line = f.readlines()
count1 = 0
count = 0.0
fa... | [
"787715780@qq.com"
] | 787715780@qq.com |
909907147f166591898af0551a064a3edf97bb2a | 5630227ae646a79dba45ab0b07b5026c6a53b86d | /code kata/factorialll.py | 870c67328426b832d80bfbc39207f32952bf3778 | [] | no_license | vigneshpriya/GUVI | 79d5b7a06b116529fb709f4e1a1c79ae4c3f714d | 5915fae12f2cad939bfe9501478d211b815cf4aa | refs/heads/master | 2020-06-03T00:07:44.393425 | 2019-06-24T06:06:55 | 2019-06-24T06:06:55 | 191,355,055 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | num1=int(input())
facto=1
for x in range(1,num1+1):
facto=facto*x
print(facto)
| [
"noreply@github.com"
] | noreply@github.com |
52152c8ace1241e6d3feec3091389b8c3c65fe7e | 3ee456a106601cfa0f7b0ad751bf3114207c4afd | /src/homepage/urls.py | 548a905f60b8eb0a08f2cd5c95a25cd21460fe12 | [] | no_license | jamhodor/webtest | f6d5c84ece23c63ee5791ee9f0aa0c8ee06fcae2 | bd6c14bb77e3a0512e8feecaa5b6e51f73372634 | refs/heads/master | 2022-12-14T23:23:17.240239 | 2019-02-17T11:18:47 | 2019-02-17T11:18:47 | 133,946,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name="home"),
path('tiny', views.tinymce, name="tiny")
] | [
"silvani.services@gmail.com"
] | silvani.services@gmail.com |
3c0a2790de6ddfcdd8adb3a0d60a8fc2ac185316 | 9e5c5745c9ffd4ac1b71303559d97b4730047389 | /zaj5/zad1.py | ec785fb3fbc89eb248b6992ba31380791095ce36 | [] | no_license | Wladaaa/python | 6e12c1a313f7531fb1f999eeb70d5cc2a06966c4 | 9b6cdd26cb56740c4ae77c741a1623d8f32f4000 | refs/heads/master | 2018-09-19T13:29:41.601791 | 2018-06-06T09:39:58 | 2018-06-06T09:39:58 | 123,256,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | #!/usr/bin/env python
#encoding: utf-8
width = input()
f = open("text.txt")
res=""
k=1
for line in f:
line = line.strip()
if len(line)>width:
for i in range(len(line)):
if(k<=width):
k+=1
res=res+line[i]
else:
k=2
... | [
"noreply@github.com"
] | noreply@github.com |
f925da5ed13558e612f1387d8b63e570d0355070 | 85d92ec15fa5319fa360435c43e4efbf71275ac6 | /conv_layer.py | 66105fea7b276777a53bc6e91318d1e667ad8b7c | [] | no_license | YvesAugusto/resnet_first_blocks | 2750c493631cf71664df773601160b43bb71969b | 583357a314b4bec7d503046c10fdb34cbd235060 | refs/heads/main | 2023-02-02T21:31:45.846185 | 2020-12-16T13:55:17 | 2020-12-16T13:55:17 | 302,890,892 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 961 | py | import tensorflow.compat.v1 as tf
tf.compat.v1.disable_eager_execution()
import numpy as np
def init_filter(d, maps_input, maps_output, stride):
return (np.random.randn(d, d, maps_input, maps_output) * np.sqrt(2.0 / (d * d * maps_input))).astype(np.float32)
class ConvLayer:
def __init__(self, d, maps_input, maps_... | [
"noreply@github.com"
] | noreply@github.com |
25db6853c20d38eb7685a70d89d5c574e83abf94 | 586a3c12e6ecfb6d9a5292a46e840de57deb1df1 | /li_regress.py | b139fe6443410e7094eb22f01d30a0113064333b | [] | no_license | kount002/Anticlone | b4df3e2587c5c2e59b888a691c655e2b248338ef | 3552240568edd217e311387e2502b636bb956afb | refs/heads/master | 2020-04-16T17:43:41.984928 | 2018-09-18T13:50:52 | 2018-09-18T13:50:52 | 61,560,050 | 0 | 0 | null | 2016-06-30T17:34:46 | 2016-06-20T15:48:43 | Python | UTF-8 | Python | false | false | 3,052 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jul 19 13:34:33 2016
Allows to work with clone counts from different pikles
Need to supply path to two pickled pandas libraries
Usage: lib_combine.py ~/anal/path2 ~/anal/path2
Requires explore_graph.py in the same folder to work
"""
import matplotlib
matplotlib.use(... | [
"kount002@gmail.com"
] | kount002@gmail.com |
48ad1087d1425fbf659db1aec546c48a22425705 | 5491e80f7dc72a8091b16c26a5cfee93381ee30d | /Challenge202E_I_AM_BENDER_Binary_To_Text/challenge202E.py | a35a3a4915220b1f0ced3a8f61896c03fca380db | [] | no_license | tuipopenoe/DailyProgrammer | 87167c2ae275c40c3b1a30ae14497a3289f8797f | 8d42947b576b78456fa72cdf5b886cff9f32b769 | refs/heads/master | 2016-09-05T21:13:30.805504 | 2015-10-16T02:57:20 | 2015-10-16T02:57:20 | 21,139,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | #!/usr/bin/env python
# Tui Popenoe
# challenge202E.py - Binary to String
import sys
import binascii
def i_am_bender(binary):
return binascii.unhexlify('%x' % int(binary, 2))
def main():
if len(sys.argv) > 1:
print(i_am_bender(sys.argv[1]))
else:
print(i_am_bender(sys.stdin.read()))
if _... | [
"tuipopenoe@gmail.com"
] | tuipopenoe@gmail.com |
eed24e362210d27d3b99aa46c67d4679c0bd7265 | d77ca3d15691d209e4d16748f6035efdd6dd094d | /参考答案/Task4.py | 5fc03ab1c41c0ba3021062707ca9ecb162005825 | [] | no_license | 3927o/W2OnlineWinterCampus_Python | 45772f79e79c0ed73a9af041678d9630178244db | 8251c405a3fde8513fe7ae4595e9fa78210fccbe | refs/heads/master | 2023-03-10T01:49:03.960152 | 2021-03-02T07:53:39 | 2021-03-02T07:53:39 | 335,962,358 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,338 | py | import math
# Problem1
print(eval("{'name': 'xiaoming'}"))
# Problem2
def 解一元二次方程(a, b, c):
delta = math.sqrt(b*b - 4*a*c)
x1 = (-1*b + delta) / 2*a
x2 = (-1 * b - delta) / 2 * a
if delta > 0:
print(f"x1={x1}, x2={x2}")
elif delta == 0:
print(f"x={x1}")
else:
print("No... | [
"1624497311@qq.com"
] | 1624497311@qq.com |
9022778a28d5b1a4ebe981f1821582811b688f2e | 5394eb884ad815f68f99d240f015986fc5235a5d | /civic/civic.py | d0825a26f134f23ca1db12637dbd1c3b68f39b24 | [] | no_license | lisabang/civic-annotator | 4938830d63c9830401e12eceaeb24185af8ae8d8 | 4739c367e7fe403c6e4c844d5b4593d8bc53f36d | refs/heads/master | 2020-04-01T11:48:55.688806 | 2018-10-16T06:44:23 | 2018-10-16T06:44:23 | 153,178,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,447 | py | import sys
from cravat import BaseAnnotator
from cravat import constants, InvalidData
from pyliftover import LiftOver
import sqlite3
import requests
import json
import os
class CravatAnnotator(BaseAnnotator):
def setup(self):
r = requests.get('https://civicdb.org/api/variants?count=5000&page=... | [
"kmoad@insilico.us.com"
] | kmoad@insilico.us.com |
2f1945306ffdac1bf6be7627f999c03df7d3cbb9 | 75a3e0432327b3f2bd7cbf68fe59cd9babab5f35 | /AL_USDMaya/0.26.0/package.py | 4437e09099a953eb52a772da065d7d98540aac11 | [
"MIT"
] | permissive | cundesi/open-source-rez-packages | b6ff9100cfd4156c0c43d4760ed6b77a0b641bd5 | 28d272db59b5eaa18c625ce9f35ea47c141f778f | refs/heads/master | 2020-03-23T08:16:54.639021 | 2018-07-06T04:50:31 | 2018-07-06T04:50:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | # -*- coding: utf-8 -*-
name = 'al_usdmaya'
version = '0.26.0'
requires = [
'qt-5.6'
]
build_requires = ['cmake-3.2']
variants = [
['platform-linux', 'arch-x86_64', 'maya-2017', 'usd-0.8.3']
]
def commands():
# env.MAYA_SCRIPT_PATH.append("{this.root}/share/usd/plugins/usdMaya/resour... | [
"daniel.flood-1@uts.edu.au"
] | daniel.flood-1@uts.edu.au |
704bab0f499353c6dd95d262b807b096e058052b | 7cd6b93e953141981d453cd984f9bc7f55803fbd | /tests/entity/first_table_entity.py | bd220d628ab736d894672307d2843ef7e8df0c15 | [
"MIT"
] | permissive | xiaolingzi/lingorm-python | e2db4164c1b32d19defa7528a48d54e81d835e7f | 4b614bac1d6427010d7b355e1f67b0bbff52edbc | refs/heads/master | 2022-12-24T12:01:43.556077 | 2020-09-30T07:25:28 | 2020-09-30T07:25:28 | 86,041,922 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | from lingorm.mapping import *
class FirstTableEntity(ORMEntity):
__table__ = "first_table"
__database__ = ""
id = Field(field_name="id", field_type="int",
is_primary=True, is_generated=True)
first_name = Field(field_name="first_name", field_type="string", length="45")
first_number =... | [
"xlne@foxmail.com"
] | xlne@foxmail.com |
df8e2b17597057dd4520430460658f9392acb0fb | 508f741288cd122b5a668db83ce187a2f6ffb527 | /slope/forms.py | 4268ce50b1ec33e05a80cc5a9b9e010d69b75132 | [] | no_license | uzbhasan/csms4-api | dec3eae61717ee437b3259b5806999efebf56d2a | 6b453379a087235dd275967a4957443b111b13a0 | refs/heads/master | 2022-12-29T18:28:29.597808 | 2020-10-22T16:31:48 | 2020-10-22T16:31:48 | 292,186,924 | 0 | 0 | null | 2020-10-22T16:31:49 | 2020-09-02T05:23:44 | Python | UTF-8 | Python | false | false | 2,669 | py | from django import forms
from django.core.exceptions import ValidationError
from django.utils import timezone
from company.models import Company
from slope.models import Slope, Order
class SlopeCreateUpdateAdminForm(forms.ModelForm):
"""
A form for creating/updating new slope by admin panel.
"""
comp... | [
"uzbhasan@gmail.com"
] | uzbhasan@gmail.com |
acbe56204565b2430875764921acfc9bfbe415f6 | 8e93241d733ee81a47886cd630c1330538fb13c9 | /app/core/models.py | 996643c753830fac246be5f142b07fc80718a438 | [] | no_license | piuart/app-hc | b92f7eb440f32acff8e1809e60cc51164ef54277 | b962dc8e76ead46b8a586d9a19ba99b387df4f32 | refs/heads/main | 2023-04-15T19:35:11.240143 | 2021-04-23T12:36:34 | 2021-04-23T12:36:34 | 359,742,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | from django.db import models
from django.conf import settings
class BaseModel(models.Model):
user_creation = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, related_name='user_creations',
null=True, blank=True, )
date_creation = models.DateTimeField(... | [
"jorge.diazdorta@gmail.com"
] | jorge.diazdorta@gmail.com |
5f91841d99dce028ef4112a7f1b5929f5529de42 | 729aa3af1e6de25c0e46192ef62aaf77cc622979 | /comentarios/models.py | 68e967afb7853be71fb6423710c8f2e8619ff015 | [] | no_license | xuting1108/API-Pontos-Tur-sticos | 8b583869006b8570c44eebfc885bb3db7eff4f1d | 7a01434e806a7b3b1409f7c490071ba682525ad3 | refs/heads/master | 2022-11-19T15:09:48.057402 | 2020-06-15T21:38:00 | 2020-06-15T21:38:00 | 267,150,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | from django.db import models
from django.contrib.auth.models import User
class Comentario(models.Model):
usuario = models.ForeignKey(User, on_delete=models.CASCADE)
comentarios = models.TextField()
data = models.DateTimeField(auto_now_add=True)
aprovado = models.BooleanField(default=True)
def... | [
"xuting1108@hotmail.com"
] | xuting1108@hotmail.com |
7f48901ffb7957bdfddcefdc91daa54ac94994a7 | 10ab15571c44a1c6f115b6145d45e14eba2c82d4 | /judges/generic/tests/OK/solutions/solution.py | 41a54231e987ecfc0d4065ec30664ecd2cd66764 | [
"MIT"
] | permissive | kolejka/kolejka-judge | d669b04b0f011a4a8df75165b5c3da2834356807 | 0614c861c08d3196b4c5e7c0e7bf9aae92a9845f | refs/heads/master | 2022-11-07T17:05:32.094084 | 2022-11-02T14:13:51 | 2022-11-02T14:13:51 | 199,710,634 | 2 | 1 | MIT | 2021-10-08T20:03:14 | 2019-07-30T18:58:58 | Python | UTF-8 | Python | false | false | 126 | py | import sys
count = int(sys.stdin.readline())
for c in range(count):
sys.stdout.write(sys.stdin.readline().strip()+'\n')
| [
"grzegorz.gutowski@uj.edu.pl"
] | grzegorz.gutowski@uj.edu.pl |
67086c4670dfe4cb66c73ee192fb47a5a8183bcf | 4597f9e8c2772f276904b76c334b4d181fa9f839 | /Python/Compare-Version-Numbers.py | 85b753029af257cf562da8fb4d2fb870da2c0e73 | [] | no_license | xxw1122/Leetcode | 258ee541765e6b04a95e225284575e562edc4db9 | 4c991a8cd024b504ceb0ef7abd8f3cceb6be2fb8 | refs/heads/master | 2020-12-25T11:58:00.223146 | 2015-08-11T02:10:25 | 2015-08-11T02:10:25 | 40,542,869 | 2 | 6 | null | 2020-09-30T20:54:57 | 2015-08-11T13:21:17 | C++ | UTF-8 | Python | false | false | 872 | py | class Solution:
# @param a, a string
# @param b, a string
# @return a boolean
def compareVersion(self, version1, version2):
seq1 = []
seq2 = []
if version1.find('.') >= 0:
seq1 = version1.split('.')
else:
seq1.append(version1)
if version2.f... | [
"jiangyi0425@gmail.com"
] | jiangyi0425@gmail.com |
65da41f502db3348a39743f88ed5359debb87fa3 | 6489f80c1bc2c51f41c186c260a3370f899acd20 | /hpm_generator/trans_hpm_dict.py | fd85253aeac1f3c8790ad0c5d78ac4bb781d9dcc | [] | no_license | Este1le/Auto-tuning | 16bc316359d97c3dfff0e41c5aad9a18122b7b25 | 856b6176af770b200897f56b7a46f6699402ef28 | refs/heads/master | 2020-04-13T21:27:57.516254 | 2019-09-16T17:19:07 | 2019-09-16T17:19:07 | 163,456,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | """
Hyperparameter dictionary for Transformer Neural Machine Translation models.
"""
hpm_dict = {}
# Preprocessing
hpm_dict['bpe_symbols'] = [10000, 30000, 50000]
# Model architecture
hpm_dict['num_embed'] = ["\"256:256\"", "\"512:512\"", "\"1024:1024\""]
hpm_dict['num_layers'] = ["\"2:2\"", "\"4:4\""]
# Training ... | [
"xuanzhang@jhu.edu"
] | xuanzhang@jhu.edu |
9fb2b348d1dece719559d459a60ef6d70f2c461d | af0195a1489600d2f6f82aaec5f2026da10b91f8 | /overSpeeding.py | 31192019bb68583a8b3b725f7b2dd7a9076ec97f | [] | no_license | AnupKumarPanwar/Traffic-violation-detection | 7736ee29da57f4f7ba666cfa1365a7d110b53481 | 366bb489a9cbeedb4ac73e66f4491e8d54ae476d | refs/heads/master | 2021-04-15T13:25:04.142666 | 2018-03-30T06:29:26 | 2018-03-30T06:29:26 | 126,157,226 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,005 | py | import numpy as np
import cv2
# cap = cv2.VideoCapture(0)
has_detected=False
tracker = cv2.TrackerKCF_create()
haar_face_cascade = cv2.CascadeClassifier('./cars.xml')
cap = cv2.VideoCapture('http://192.168.5.165:8080/video')
detection_array=[0]*10
image_count=0
enterFrame=False
exitFrame=False
enterFrameY=0
la... | [
"1anuppanwar@gmail.com"
] | 1anuppanwar@gmail.com |
b5dcb853f578c7877f1e458fff4ed77f236bb315 | 5d293f040ae1a86e8da752b3fa5c6823504fc3ca | /RaspberryPi_Therm/plataform-device.py | 345df366aace20865e42925f422b83e30b776673 | [] | no_license | rzarref/konker-devices | 8c99ce829853b9d2cc636a123a5e5d59c4546809 | 109dfcc049fe4c5e79775952fb923d5ceaf5e030 | refs/heads/master | 2020-12-02T16:43:56.666694 | 2017-02-04T17:33:16 | 2017-02-04T17:33:16 | 96,576,301 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,019 | py | #! /usr/bin/python3
import paho.mqtt.client as mqtt
import json
import os
import threading
from threading import Timer
import time
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD)
GPIO.setup(11, GPIO.IN)
os.system('modprobe w1-gpio')
os.system('modprobe w1-therm')
### Temperature Sensor DS18B20
## Nota: mudar ... | [
"noreply@github.com"
] | noreply@github.com |
d5e1d94b0f4269311fc4634072447854264afac3 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /CDqMdrTvfn2Wa8igp_16.py | 12713c2aa2161258166fab90eabe089a4b047990 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | """
Create a function that returns the next element in an **arithmetic sequence**.
In an arithmetic sequence, each element is formed by adding the same constant
to the previous element.
### Examples
next_element([3, 5, 7, 9]) ➞ 11
next_element([-5, -6, -7]) ➞ -8
next_element([2, 2, 2, 2, 2]) ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
bd4bfd2045243258a2936d602e25e747bd5817ce | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_quivered.py | ae5ecb9ccecdd6d0e423ea42fa27b78863065fdc | [
"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 |
from xai.brain.wordbase.nouns._quiver import _QUIVER
#calss header
class _QUIVERED(_QUIVER, ):
def __init__(self,):
_QUIVER.__init__(self)
self.name = "QUIVERED"
self.specie = 'nouns'
self.basic = "quiver"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f7ba672b11d8d99d484ebed80a07211c25e5f2e1 | e0915e453dc9ccab98381b96f476bcfb34f51b8f | /tests/test_transformations/manual_test_affine.py | 5ec086b996293db3653d066f5e3043141fa920e2 | [
"MIT"
] | permissive | AsajuHuishi/hylfm-net | a1f34b451ccb5bc71e056b2f3eb29efa486db603 | baf447a75a30b67cd2929ab2a4427afb3d5e0f78 | refs/heads/master | 2023-01-13T04:22:40.633352 | 2020-11-20T13:45:53 | 2020-11-20T13:45:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,809 | py | import collections
from hylfm.datasets import ZipDataset, get_dataset_from_info, get_tensor_info
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import make_axes_locatable
def compare_slices(sample, title, *names):
fig, axes = plt.subplots(ncols=len(names))
fig.suptitle(title)
for name, ax ... | [
"thefynnbe@gmail.com"
] | thefynnbe@gmail.com |
5a102571e72e68d6537181a5c74ddaaa6cc4da2c | 51a80d87fd9f009d8b97573288d6ebd0b420b995 | /baekjoon/DP/실3-2579.py | d80de7b2ec3eb6eb4b90c942f29c8b74388aa257 | [] | no_license | kim-ellen821/mycoding | 02858509c9bf0892d81d73f01e838c762644c3cf | 20c03c529d07f0a776fd909a60cabaca3a8fcc34 | refs/heads/master | 2023-08-15T08:06:50.872463 | 2021-04-01T09:19:43 | 2021-10-13T13:02:25 | 353,621,725 | 0 | 0 | null | 2021-04-01T09:19:44 | 2021-04-01T08:00:52 | Python | UTF-8 | Python | false | false | 322 | py | n = int(input())
stairs =[int(input()) for _ in range(n)]
dp = [0 for _ in range(n)]
dp[0] = stairs[0]
if n>1:
dp[1] = stairs[0] + stairs[1]
dp[2] = max(stairs[0]+stairs[2], stairs[1]+stairs[2])
for i in range(3, n):
dp[i] = max(dp[i-3]+stairs[i-1]+stairs[i], dp[i-2] + stairs[i])
print(dp[n-1... | [
"ellenkim821@gmail.com"
] | ellenkim821@gmail.com |
4163616ca559754ae87d91b4c6028ae70537bcbb | 52984f7f9241a14313d4ab8b4bce17df8b28cbed | /blog/views.py | 419f5eebf831be063e865b49d2dddddb7e8f9d80 | [] | no_license | aevans1910/happy-me | 703e3c7f0829d7f0c6059af62c57240432d54ae4 | fe4b6012db935c33d4135780b6c846683d7056c2 | refs/heads/master | 2021-09-26T04:42:58.680987 | 2020-03-07T03:03:02 | 2020-03-07T03:03:02 | 244,538,436 | 0 | 0 | null | 2021-09-22T18:42:04 | 2020-03-03T04:06:59 | Python | UTF-8 | Python | false | false | 1,413 | py | from django.shortcuts import render
from django.views.generic.list import ListView
from django.views.generic.detail import DetailView
from django.views.generic import CreateView
from django.http import HttpResponseRedirect
from django.urls import reverse_lazy
from blog.models import Posts
from blog.forms import PostsF... | [
"ariane.evans@student.makeschool.com"
] | ariane.evans@student.makeschool.com |
e93bfd5399e5ab1d1e5fa8e1374a7859d94a0446 | 512b388a53022f561e2375b4621f78572d3b4f04 | /clients/migrations/0010_auto_20200904_1044.py | cb1046a194005d2c79ecd0cc9708388a797fa99b | [] | no_license | Madoka09/Worker15 | 006d5ac44dc55c3ae7f72d3b8300f3567395cdff | 181012d309052b2df3d4ef99a197e8acef73a185 | refs/heads/master | 2023-03-24T05:29:02.060796 | 2021-03-16T21:56:21 | 2021-03-16T21:56:21 | 336,394,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # Generated by Django 3.0.4 on 2020-09-04 15:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('clients', '0009_auto_20200903_2132'),
]
operations = [
migrations.RenameField(
model_name='clientsaddress',
old_name='altern... | [
"personal.galvan.francisco@gmail.com"
] | personal.galvan.francisco@gmail.com |
4591ae12de8f049e5e206fe3071156c3140089ff | e431b0938da36d2a400e7a4b2e8849a27bc83f17 | /test/Python/Test_Gasmix.py | 52533662301f312fc3113601e14e0e4004c5cfd1 | [] | no_license | abhikv/MAGBOLTZ-py | c9541a98114d16c3e8b947a9b4bd36fed65bdf06 | 50ed30dd8ccafddce96a5650d9bdc9bfed6dbc9f | refs/heads/master | 2020-04-19T03:26:17.293723 | 2019-01-23T03:57:35 | 2019-01-23T03:57:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | import sys
import warnings
import time
warnings.filterwarnings("ignore", message="numpy.dtype size changed")
warnings.filterwarnings("ignore", message="numpy.ufunc size changed")
sys.path.append('../../src/Scripts/Python')
from Gasmix import Gasmix
t1 = time.time()
TestObj = Gasmix()
NGS = []
for i in range... | [
"atoumbashar@gmail.com"
] | atoumbashar@gmail.com |
cbd6a1d2b982c797f5f2c66a32486edd99e62acf | b27954c892897fbe0186464eb2460745b7eeaa86 | /API Test App/ConcertAPI/env/bin/easy_install | fca567f124fa8685c1172b52d0aff85bfe7a8b81 | [] | no_license | bounswe/bounswe2017group2 | c7ef702b663460ada41ab0a334273074df9739bd | 5e3bd50228faf8eb327d21588c2854f6215973f9 | refs/heads/master | 2021-01-22T03:57:46.299748 | 2019-08-16T14:15:17 | 2019-08-16T14:15:17 | 81,464,305 | 8 | 6 | null | 2019-08-16T14:15:18 | 2017-02-09T15:26:15 | Python | UTF-8 | Python | false | false | 278 | #!/Users/berkkocabagli/ConcertAPI/ConcertAPI/env/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"kberkkocabagli@gmail.com"
] | kberkkocabagli@gmail.com | |
342fb839f815e73042d5f54cba60d89c396936c7 | 8e9ea4e7300a51ad3251526e5a1dfdcef7e9bff5 | /Tasks/Kostin-Rozhkov/PyTasks/11.py | b86436bbe2740c82fd5a976abab4e01421fcb218 | [] | no_license | BlackenedJustice/testRepo | 2baff560ed2d9d7de38bb1a0f813ac044c2bf217 | 81fa3893bfd4bba61d81928528b48255aaafdd33 | refs/heads/master | 2020-05-19T17:42:58.062510 | 2019-07-15T07:30:26 | 2019-07-15T07:30:26 | 185,140,879 | 6 | 30 | null | 2019-08-03T10:52:56 | 2019-05-06T06:58:20 | Python | UTF-8 | Python | false | false | 204 | py | print("Введите скорость v и время t: ")
v, t = map(int, input().split())
print("Через {} часов Вася окажется на {} километре".format(t, v * t % 109))
| [
"fulstocky@gmail.com"
] | fulstocky@gmail.com |
d1b1f4eb1db480a94e0fb5a36e25b96368b38a44 | efe946e6fab19f948aa81a36b67d56feae322094 | /nn/io.py | bdbc60c8afccadd949b9fbdb9855a044e09b9e90 | [] | no_license | krivacic/BMI203_final | f3a148b51c99cd2dd742d4eeadf0c7c1f6195ec7 | 537c8e79e3865df9588a08009baa7ea5dc6978f8 | refs/heads/master | 2021-01-23T03:53:27.907540 | 2017-03-25T06:30:24 | 2017-03-25T06:30:24 | 86,131,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,494 | py | import numpy as np
"""
A note on data parsing:
Most of this is self-explanatory. Each basepair is a 4-bit byte consisting of a single 1 and three 0s.
What I want to point out is that for the negative test set, I am just taking every 17 basepairs as one
unit of data, rather than every possible 17-basepair stretch. I tr... | [
"krivacic@gmail.com"
] | krivacic@gmail.com |
b58af860125842d181ec3ff20c4bc93e788bb891 | 913653e54fc434b50ac1445be1f8537107e25678 | /MVC/Main.py | 49144281594225b35231db4456ffbcda3afdb4a0 | [] | no_license | Rafael-Marinho/ES3_Cota-es | 90b9baeb1881bacfa4b3e19df7f82e3b9e88d4d5 | ec8d3721c5e5289ded14928e4bb1cecdc07c7ff0 | refs/heads/master | 2021-08-23T03:47:17.703921 | 2017-12-03T01:54:44 | 2017-12-03T01:54:44 | 105,531,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Created on 8 de ago de 2017
@author: Rafael Marinho
'''
from MVC import View
from MVC import Controller
'''
# O "Main" tem a função de iniciar o programa,
# e pra isso ele busca os valores das cotações
# das moedas e da IBOVESPA, e prontamente
... | [
"noreply@github.com"
] | noreply@github.com |
93d6bca660ec3009959a781aec2acb3664d4890f | 17bc840981c87626f4de91017ee1d9d1a650510c | /cnn8.py | 6ef34b7d4c542623a84c39efa8c8c1da928c993d | [] | no_license | mhusseinsh/RaceCarControl | 6e0bb99d96cb9d15b78a2945c0724fdadc2f038d | af58251311b001e6f521826946da57e7f26ccb8f | refs/heads/master | 2021-09-10T13:41:25.034934 | 2018-03-27T01:34:01 | 2018-03-27T01:34:01 | 112,090,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,017 | py | #!/usr/bin/python
# import the necessary packages
from skimage.measure import compare_ssim
import argparse
import imutils
import cv2
##
import os
import sys
import csv
import numpy as np
import tensorflow as tf
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import keras.backend as K
from keras... | [
"mh806@tf.uni-freiburg.de"
] | mh806@tf.uni-freiburg.de |
7741d2640a25fdf9bfc3c4d3a9f38b475e4ced61 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02753/s804894259.py | 636735cbd5323d345ac8e012b55a33a9143478c1 | [] | 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 | 94 | py | line = list(input())
line.sort()
if line[0] == line[2]:
print("No")
else:
print("Yes") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1d34bc71726742a51fd0ca6d27499f22e06c5e75 | 8e1a2833732102e5e421c34f98240de9dfa3172f | /reference_scripts/client_1.py | 4a8305bfd8d4e4932bd711bcdd03f88698ecd407 | [] | no_license | NoPainsNoGains33/Network-Security | 6f9306548d907276502c8e279eb73feafd15507a | 39af41d7bea91e1b6289e2c9d4904c227481aa10 | refs/heads/main | 2021-02-16T07:44:56.987954 | 2019-12-05T06:26:20 | 2019-12-05T06:26:20 | 244,981,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,565 | py | import socket
import sys
import time
import base64
import argparse
import os
import json
# import the message type
from message_head_pb2 import MESS
from threading import Thread
# to handle Ctrl+C
from signal import signal, SIGINT
arg_parser = argparse.ArgumentParser(description="Client-side application script to com... | [
"dsilva.r@husky.neu.edu"
] | dsilva.r@husky.neu.edu |
9a75061cef61e257b2fb8173f4084eba8aaf6596 | 5b1d10b56af48aa2eef4b5735fe74de0b7f22982 | /freelancer/forms.py | 767432c850982fbc2ec984197204747c1eb31750 | [] | no_license | rishabh-1004/econnect | 70fbc7458bba9fa5215c246a7e0e0b1db8ed2584 | ca1976b260c8d1e795773ced5e6ff006d11fba48 | refs/heads/master | 2020-04-27T15:59:47.692991 | 2019-03-08T04:17:49 | 2019-03-08T04:17:49 | 115,212,282 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,413 | py | from django import forms
from freelancer.models import FreelancerProfile,Test
class FreelancerProfileForm(forms.ModelForm):
college1=forms.CharField(required=False,max_length=200,widget=forms.TextInput(
attrs={
'class':'form-control col-md-6',
'placeholder':'Sample text',
}
))
college2=forms.CharFi... | [
"rishabh.sharma@tryscribe.com"
] | rishabh.sharma@tryscribe.com |
c8bf10335c7c1e07b2176c968917ab7c4d5ace34 | 0f3a0be642cd6a2dd792c548cf7212176761e9b1 | /pywps_services/r_mult.py | 9910ee9228a37f667c6a73112163cb45b3e7d2ec | [] | no_license | huhabla/wps-grass-bridge | 63a5d60735d372e295ec6adabe527eec9e72635a | aefdf1516a7517b1b745ec72e2d2481a78e10017 | refs/heads/master | 2021-01-10T10:10:34.246497 | 2014-01-22T23:40:58 | 2014-01-22T23:40:58 | 53,005,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,141 | py | # ################################################ #
# This process was generated using GrassXMLtoPyWPS #
# Author: Soeren Gebbert #
# Mail: soerengebbert <at> googlemail <dot> com #
# ################################################ #
from pywps.Process import WPSProcess
from PyWPSGrassM... | [
"soerengebbert@23da3d23-e2f9-862c-be8f-f61c6c06f202"
] | soerengebbert@23da3d23-e2f9-862c-be8f-f61c6c06f202 |
2d51dc8a47690b543abd5f2196e6d22032e34caf | de3b77cb0927f28cbd85e9142c2dfd7c8be7c27e | /tests/migrations/015_user_demographics_up.py | 9e08957363737d8cf8968f4a19885fea3c67bec4 | [
"MIT"
] | permissive | LoansBot/database | f3dcbccde59fdb80c876d2612f250662946588e6 | eeaed26c2dcfdf0f9637b47ebe15cd1e000d8cc4 | refs/heads/master | 2021-07-02T22:07:18.683278 | 2021-06-02T04:09:38 | 2021-06-02T04:09:38 | 239,400,935 | 0 | 1 | MIT | 2021-06-02T04:14:31 | 2020-02-10T01:06:53 | Python | UTF-8 | Python | false | false | 1,166 | py | import unittest
import helper
class UpTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.connection = helper.setup_connection()
cls.cursor = cls.connection.cursor()
@classmethod
def tearDownClass(cls):
cls.cursor.close()
cls.connection.rollback... | [
"noreply@github.com"
] | noreply@github.com |
8c5ed7790f16d81a0c36ea704e83ed858dde2f9b | 71cb8d9eb437a9faf330931f3713ba5dc688405d | /analyze_data.py | 20d0de521c42d33cccb15314658cdb6ae2767102 | [
"MIT"
] | permissive | mattare2/perceptual-acoustic-similarity | 294d967ab2cd47120d33e650f7488d37cec199ca | eced010ee2d1a36c6052c8afd1b8c4af709dc418 | refs/heads/master | 2021-01-18T11:26:36.763005 | 2015-04-21T07:21:22 | 2015-04-21T07:21:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,408 | py | import csv
import os
from functools import partial
from acousticsim.main import acoustic_similarity_mapping
from acousticsim.helper import get_vowel_points
from acousticsim.praat.wrapper import (to_pitch_praat, to_formants_praat,
to_intensity_praat, to_mfcc_praat)
from acousti... | [
"michael.e.mcauliffe@gmail.com"
] | michael.e.mcauliffe@gmail.com |
8334889f54f837ede8e0bea0e4beb142a561347e | cf2bfe1cba8a8069ea5f7dd19338140dbcb785fd | /bcs/rsa.py | 2004e5058f35cb8e9d50c8432c28373274d53dcc | [] | no_license | mirrorbrain/m2 | 7f67057bbd748e978f18cdbe64fd27cd3b703263 | 166ebcf9be8720fc595771e4fcdfa9af89e46049 | refs/heads/master | 2021-04-09T11:18:00.252505 | 2019-05-14T14:09:29 | 2019-05-14T14:09:29 | 125,514,880 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,650 | py | #!/usr/bin/env python
#Auteurs
#Nogues Mael
#Grandmontagne Mathieu
import random
from random import randrange
#On utilse une fonction de calcul de racine carree pour nombre de longueur indefini car la fonciton fourni par python n'est pas capable de calculer au deca de 256 bits.
def exact_sqrt(x):
"""Calculate the... | [
"mael.nogues@gmail.com"
] | mael.nogues@gmail.com |
98f7d82d2aeffaa9258b3f75f8faf29c0d5ff00a | 41e91e6321cdaa61a2675436de54e8f951f42a57 | /home/admin.py | 50e6847e6fd38fde417d32b23d2dcca676906b5a | [] | no_license | tot-samij88/dkp-django | b33d66aa6e3a4f5d2d282129857f29217e2ce255 | af5690f20a69c517c989326f634723f1dd0606ea | refs/heads/master | 2023-01-02T12:00:00.057399 | 2020-10-16T02:19:39 | 2020-10-16T02:19:39 | 304,496,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | from django.contrib import admin
from .models import FirstSlide
from .models import NextSlide
class FirstSlideAdmin(admin.ModelAdmin):
list_display = (
'id',
'title',
'sub_text',
'is_published'
)
list_display_links = (
'id',
'title',
'sub_text',
... | [
"mizeravladik@gmail.com"
] | mizeravladik@gmail.com |
b280a2a7d4766e6375a02765b3244e920e0b405b | a0eb6744e6f7f509b96d21f0bc8b3f8387f6861c | /notebook/list_2d_sort.py | ed70c8ed858f38ef3ada5a56ba0468b997f515fc | [
"MIT"
] | permissive | nkmk/python-snippets | a6c66bdf999502e52f4795a3074ced63bf440817 | f9dd286a9cf93f474e20371f8fffc4732cb3c4d5 | refs/heads/master | 2023-08-03T04:20:05.606293 | 2023-07-26T13:21:11 | 2023-07-26T13:21:11 | 98,900,570 | 253 | 77 | MIT | 2020-10-25T01:12:53 | 2017-07-31T14:54:47 | Jupyter Notebook | UTF-8 | Python | false | false | 2,885 | py | import pprint
l_2d = [[20, 3, 100], [1, 200, 30], [300, 10, 2]]
pprint.pprint(l_2d, width=20)
# [[20, 3, 100],
# [1, 200, 30],
# [300, 10, 2]]
pprint.pprint(sorted(l_2d), width=20)
# [[1, 200, 30],
# [20, 3, 100],
# [300, 10, 2]]
pprint.pprint([sorted(l) for l in l_2d], width=20)
# [[3, 20, 100],
# [1, 30, 200]... | [
"nkmk.on@gmail.com"
] | nkmk.on@gmail.com |
e8c5090580a34ad557e421bca450abaa32b7813c | 8c1fc7f897b83d0367605836439c7d05673d623b | /part1/get_capabilities.py | 43de71ef5ca06f28fd8fdb46c5ab5ed5df256fe8 | [] | no_license | inwk6312-summer2018/netconf-yang-tutorial-priyankshah95 | 071872c364c9065df8d97c75e97b071313867d31 | cae171de7d73a922667cb8ad9a844c5f7e99a2fd | refs/heads/master | 2020-03-17T11:34:39.921447 | 2018-05-17T17:26:48 | 2018-05-17T17:26:48 | 133,556,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | from ncclient import manager
import sys
HOST = '10.1.98.176'
PORT = 830
USER = 'cisco1'
PASS = 'cisco1'
def main():
with manager.connect(host=HOST,port=PORT,username=USER,password=PASS, hostkey_verify = False, device_params = {'name':'default'},look_for_keys=False,allow_agent=False) as m:
print("***Below listed ar... | [
"priyank.shah@dal.ca"
] | priyank.shah@dal.ca |
d4e081e72a8ec5a06360e56051a15f3f071d84e0 | 9563128aa1ed41b4eeb4f252f5fcfcb732f94fc4 | /2- PYTHON V4/3- Django 2.2v4/1- Django Intro/3- Dojo Survey/dojo_survey_app/views.py | 03fa8bc39de883f21fe95dee83f6c2cea848bf62 | [] | no_license | alexbarg3000/Coding-Dojo | dcaa7e4ad4b17dd6008b2f1035ab746831f23fc4 | aaa44820a26281e7d84f8c4d35d7ea9772230d93 | refs/heads/main | 2023-03-21T08:36:40.837760 | 2021-03-15T02:56:45 | 2021-03-15T02:56:45 | 347,510,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | from django.shortcuts import render, HttpResponse, redirect
def index(request):
return render(request,"index.html")
def create_user(request):
if request.method == 'POST':
semesters= request.POST.getlist('semester')
name_from_form = request.POST['name']
location_from_form = request.POST['loca... | [
"alexbarg3000@yahoo.com"
] | alexbarg3000@yahoo.com |
a4a1fc8eb31f932680b72e4e0a52588a352db967 | 739c75868a776d8e245214a7f0bec77fbd4842cb | /src/main.py | 2db044388ca6996d5bb09898c2adfff7a048ad5a | [] | no_license | herman-d/python-playground | cdc114f74d14cf7ef3b259105f9c14b029994a52 | c87c76dac68aafd3147c2a5b4c7ab963d9a3d70f | refs/heads/main | 2023-02-18T23:01:09.792736 | 2021-01-17T03:32:29 | 2021-01-17T03:32:29 | 330,306,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | import sample_pb2
import sys
output = sample_pb2.Sample()
output.field_one = "test"
output.field_two = 999
print("output to sample.bin")
f = open("sample.bin", "wb")
f.write(output.SerializeToString())
f.close
print("input from sample.bin")
f = open("sample.bin", "rb")
input = sample_pb2.Sample()
input.ParseFromSt... | [
"herman.ng@zendesk.com"
] | herman.ng@zendesk.com |
e8ad7c6fc7df5ae3504281a89fd22b8eadb6cdef | b75918b2ac1dfaf2c1219f40d63004900c9338b1 | /tests/conftest.py | bdc760d2cb724f587868a0e459829b3640bca13f | [] | no_license | solashirai/ExplainableCourseRecommender | e0f036da9814a0187daa5635da0ff2f86386026d | 6a2795cfc4536548ac3679b3d23b953e55a50a37 | refs/heads/main | 2023-04-14T14:27:36.054830 | 2021-04-19T02:29:48 | 2021-04-19T02:29:48 | 302,346,189 | 1 | 0 | null | 2021-04-18T16:13:48 | 2020-10-08T13:17:44 | Python | UTF-8 | Python | false | false | 14,309 | py | import pytest
from escore.models import *
from escore.services.course import GraphCourseQueryService
from frex.stores import LocalGraph, RemoteGraph
from escore.utils.path import DATA_DIR
from escore.pipeline import RecommendCoursesPipeline
from rdflib import URIRef, Namespace
individual_ns = Namespace(
"https://... | [
"solashakashirai@gmail.com"
] | solashakashirai@gmail.com |
9a45f1acb0c54622917608aaf57f4470f9c80e65 | 1a204b3a937af1b600ef44d176aedf006c2cb59c | /venv/bin/pycodestyle | 0d16705078b4dafb3f6334f06d5a3977284bd469 | [] | no_license | stevenkeezer/pythontodo-r | 6c6ba8ba893bc21ed19f0becde4994f4793d74de | fab7783d94526fefb310ca1a246bfe66b1a14e60 | refs/heads/master | 2020-09-07T19:14:16.927777 | 2019-11-11T02:52:22 | 2019-11-11T02:52:22 | 220,887,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | #!/Users/stevenkeezer/Documents/Sierra/pythontodo-p/venv/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from pycodestyle import _main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(_main())
| [
"stevengkeezer@gmail.com"
] | stevengkeezer@gmail.com | |
225fa3db85cd8e94446ef380a7fa4851213b66d9 | 1e7aa28fddc02226757ca7d0b253b8bf83ce1e9c | /princess.py | dc6e013749a161b980c1cf3d8cf0ea8f586b826a | [] | no_license | cherianb59/puzzles | 7c4bb85d98cc66438fb19eef5e3b6bd7ce5b5706 | bbba3a20581807c078e5ca2d55a90fad317d93fd | refs/heads/main | 2023-03-30T19:02:27.386411 | 2021-04-01T07:25:38 | 2021-04-01T07:25:38 | 353,611,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,907 | py | DOOR_LENGTH=7
DEPTH_LENGTH=10
#array represents the states of the doors, whether the princess could be in them based on the sequence of doors the prince has checked
#position is where the prince is cheking this round
#the new array outputs possible princess locations
#the output for an array position is based ... | [
"cherian.b59@gmail.com"
] | cherian.b59@gmail.com |
85a9890e0d57ba8ddc27db43d7b86627e0d843a4 | 179a739d5f4d672b461ecbe88af285e946f898af | /tools/m_map_funcs.py | 5350dbed340d764c5742771b1625debfe92295ec | [] | no_license | farisawan-2000/papermario | 38e2ef57ce9099202e064ab9b3fb582bb6df8218 | 3a918a952b1a7ef326c76b03b0d6af26100ab650 | refs/heads/master | 2023-02-23T07:02:55.730335 | 2021-01-28T08:39:38 | 2021-01-28T08:39:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | #!/usr/bin/python3
import os
import sys
import subprocess
from pathlib import Path
script_dir = os.path.dirname(os.path.realpath(__file__))
root_dir = os.path.abspath(os.path.join(script_dir, ".."))
src_dir = root_dir + "/src/"
asm_dir = root_dir + "/asm/"
common_files = []
for root, dirs, files in os.walk(os.path.... | [
"ethteck@gmail.com"
] | ethteck@gmail.com |
4e7988d4ea8ba41f28f5989c68714cda98909800 | 2eabb719792dd552fb98850a571f2d7742bd8530 | /10.Sorting&BS/MinMaxDivision.py | 24177f567ebeee33c17bf52b89fe63d025233119 | [] | no_license | mjmingd/study_algorithm | 93772b6849ba4afac61d594a2f6e52bbf0439858 | 29cb49a166a1dfd19c39613a0e9895c545a6bfe9 | refs/heads/master | 2022-03-26T11:57:23.383292 | 2020-01-03T15:07:36 | 2020-01-03T15:07:36 | 197,862,178 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,382 | py | '''
Codility - MinMaxDivision
# similar question : leetcod(Split Array Largest Sum)
You are given integers K, M and a non-empty array A consisting of N integers. Every element of the array is not greater than M.
You should divide this array into K blocks of consecutive elements. The size of the block is any integer b... | [
"noreply@github.com"
] | noreply@github.com |
f18aa238412ae3b90eb7279e821825886faaa8c3 | 60ee4380a9a56c8d6e883b47b1c856646095e234 | /lintcode/Easy/109_Triangle.py | 4f67ff01d874c514efbaec5eae8390d1971be15e | [
"MIT"
] | permissive | Rhadow/leetcode | e3d143d619a949a5ae6dc1b107b04d29675bdc31 | 43209626720321113dbfbac67b3841e6efb4fab3 | refs/heads/master | 2020-12-18T22:32:18.523143 | 2018-05-11T05:35:51 | 2018-05-11T05:35:51 | 42,924,724 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | class Solution:
"""
@param triangle: a list of lists of integers.
@return: An integer, minimum path sum.
"""
def minimumTotal(self, triangle):
# write your code here
res = triangle[0]
for i in range(1, len(triangle)):
for j in range(len(triangle[i]) - 1, -1, -1):
... | [
"howard3433@gmail.com"
] | howard3433@gmail.com |
ff8d820c965642aa2c3f657c8f50044852250de7 | 95dd3f021a03d408e93b40f498e58c7b07abb796 | /gans/cgan.py | 4a16c4d40226b0c455b3cbcfd51a9789fdd5e258 | [
"MIT"
] | permissive | er-Bot/gans | 18e1c46352c7b2d7591eb3ca0e7335bb97ea5e69 | fc19446750e10896dd3b1746b0ccb3c4d3b5ed8d | refs/heads/main | 2023-03-15T09:04:20.926340 | 2021-03-09T00:57:57 | 2021-03-09T00:57:57 | 345,826,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,594 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from tqdm.auto import tqdm
from torchvision.utils import make_grid
import matplotlib.pyplot as plt
__all__ = ["Discriminator", "Generator", "CGAN"]
criterion = nn.BCEWithLogitsLoss()
hidden_dim = 128
class Discriminator(nn.Module):
def __init__... | [
"jammalenneiym@gmail.com"
] | jammalenneiym@gmail.com |
d7a8c18dd4736731eb4b2c57480333040f07c6da | ffc18cc92b55ef9867a588a2ea0c6c7cbffc9f8a | /venv/bin/gunicorn_paster | c0c8a22f3ee2dd511293e1bf2b0385802e7c6aad | [] | no_license | dculibrk/pathgameweb | 4e3c1a13e5045e4af602bf6c4339636b8bd32e05 | 40482d325a4e38c73bc26222f0ecf7776a8ceb16 | refs/heads/master | 2023-02-06T07:15:24.821085 | 2020-06-08T16:48:57 | 2020-06-08T16:48:57 | 178,581,137 | 0 | 0 | null | 2023-02-02T03:25:13 | 2019-03-30T16:08:21 | Python | UTF-8 | Python | false | false | 274 | #!/Users/duba/Documents/work/CG/game/deploy_heroku/venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.pasterapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"duba@Dubravkos-MacBook-Pro.local"
] | duba@Dubravkos-MacBook-Pro.local | |
008e4b6abdfc8b439322dd825a7295685d2716fa | ad9bce4809d413b2595b2a7eb85ef6dbc2660016 | /botinterface/nonebotconfig_example.py | f7c2f1bf0db797f9a7d6b15ebf21b7daed14cb83 | [
"MIT"
] | permissive | bothbot/awesome-bothbot | 7fabee78d24ed92685769492596d8b57321aa40a | 764998897f4482614121b0a5a9205312febfb2a9 | refs/heads/master | 2022-12-14T02:20:36.603647 | 2020-09-16T01:24:18 | 2020-09-16T01:24:18 | 294,954,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | # -*- coding: UTF-8 -*-
from nonebot.default_config import *
# 也可以在此处对nonebot进行设置
# 全局管理员
SUPERUSERS = {
#12345,
#...,
}
# 命令起始标识
COMMAND_START = {'!', '!'}
# nonebot的debug开关
DEBUG = False
# 有命令在运行时的显示
SESSION_RUNNING_EXPRESSION = '您有命令正在运行!' | [
"1362941473@qq.com"
] | 1362941473@qq.com |
8735a84fe481b35e5e0bc98c2b53e6a0f1d8876c | cb1c4fbf7ce4addaf5092b4951a34717a09b5584 | /helloworld/hello_world.py | 03f16b8b2e2ed3fca69ab0b536179c29d3c73f60 | [] | no_license | neetfreek/python-brushup | 25c06c2a08929ba34a1422c40ece9470e97541fa | e6d8dc09eeb4fd51f040d23f4afbf3f9690e0466 | refs/heads/master | 2023-06-13T01:58:26.160531 | 2021-07-01T13:07:17 | 2021-07-01T13:07:17 | 374,714,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | from _datetime import datetime
def hello_world():
"""Print hello world with greeting based on current time."""
_print_time_based_hello_world()
# Print good morning/afternoon/evening and hello world.
def _print_time_based_hello_world():
print(f"{_get_message_for_current_time()}, and hello, world!")
# R... | [
"jonathan.widdowson1@gmail.com"
] | jonathan.widdowson1@gmail.com |
c3084d05deb4895e75b4f3656c9386de01067a15 | ee6c5924bca5ad4df64c6922129d600ae3e1ba71 | /info_Instagram.py | 725ff71e88a0df89e7bada35a956061c37bf3195 | [] | no_license | jev0m/information-div0m | f30520f912225ab10f95fd95efe6faaaee314df2 | 447c33588199f610992d7d3421afbf3ccf39e871 | refs/heads/main | 2023-03-21T13:52:24.434171 | 2021-03-19T12:59:45 | 2021-03-19T12:59:45 | 349,423,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,661 | py | import requests
import pyfiglet
## By Xcode & @xcodeon1
## By Twitter : @Matrix0700
R = '\033[31m'
G = '\033[32m'
B = '\033[34m'
print(R+" @xcodeon1")
br = pyfiglet.figlet_format("Info.py")
print(R+br)
user = input(B+"username :")
print(R+"-"*40)
url = "https://i.instagram.com:443/api/v1/u... | [
"noreply@github.com"
] | noreply@github.com |
6bfdd66d686ef7efaf2da0136d5f0114fbfc0a74 | 6af78ebddf5354d0a61612e36e0ae22304be9210 | /venv/Scripts/pip3.8-script.py | b1bc705446e2069def9bdcf9c1bd95c06b274905 | [] | no_license | webclinic017/finance-9 | f87f537c2965836e4025898bffad9beb111f07f4 | d26b35e4186f7d4b1b1fced055950223e4017d25 | refs/heads/master | 2023-01-13T04:31:03.737958 | 2020-11-22T05:08:11 | 2020-11-22T05:08:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | #!C:\Users\pjk14\Desktop\Python\venv\finance\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==20.2.3','console_scripts','pip3.8'
__requires__ = 'pip==20.2.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys... | [
"pjk1413@gmail.com"
] | pjk1413@gmail.com |
107f871602e5d1be87f6b15c3d28bfc62bf8fb3b | 696bfb83e741b0ada656c633038098c5a4dcc78a | /manage.py | 234ce79ac54748a952e4022175d094416f017afd | [] | no_license | Smorta/Planning-Prom | dee5cb4186f27de596ee375bce78afd6243fb695 | 169c62f911ef3d3a6f32c949dad4592ca1072e38 | refs/heads/main | 2023-06-10T01:48:07.473233 | 2021-07-02T08:57:01 | 2021-07-02T08:57:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'GestioPro.settings')
try:
from django.core.management import execute_from_command_line
... | [
"noreply@github.com"
] | noreply@github.com |
d7590593aba400293172eda8319a4f422cb65f7f | 6655650f052a3b140f02de41b7393a24cd23747a | /D_D/getPDF.py | fb3b0e8242ff5eb0b62cc71c0b0243156728f832 | [] | no_license | bivasmaiti26/census2001auto | 5238286934c4bd82405aaf3b2830bfebe6ce2162 | 6c1a2d7e96d80d2b7e75d7a1096611bc4ef9b844 | refs/heads/master | 2020-04-22T18:48:40.621253 | 2018-01-08T15:10:47 | 2018-01-08T15:10:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | import urllib
def downloadPDF(state_code):
#getting the string fpr state code
if (state_code<10):
string_state='0'+str(state_code)
else:
string_state=str(state_code)
i=1
while True:
#getting the string for district code
if (i<10):
string_district='0'+str(i)
else:
string_district=str(i)
try... | [
"preetskhalsa97@gmail.com"
] | preetskhalsa97@gmail.com |
6a244e5d202b43213040fc14188fe4cf309356c2 | a7b78ab632b77d1ed6b7e1fa46c33eda7a523961 | /src/foreign_if/python/UT/src/eigen/test_049.py | 558da13e6a88495e2835d12cb1b59571e2a9938d | [
"BSD-2-Clause"
] | permissive | frovedis/frovedis | 80b830da4f3374891f3646a2298d71a3f42a1b2d | 875ae298dfa84ee9815f53db5bf7a8b76a379a6f | refs/heads/master | 2023-05-12T20:06:44.165117 | 2023-04-29T08:30:36 | 2023-04-29T08:30:36 | 138,103,263 | 68 | 13 | BSD-2-Clause | 2018-12-20T10:46:53 | 2018-06-21T01:17:51 | C++ | UTF-8 | Python | false | false | 926 | py | #!/usr/bin/env python
import sys
from frovedis.exrpc.server import FrovedisServer
from frovedis.linalg import eigsh
from scipy.sparse import csr_matrix
desc = "Testing eigsh() for csr_matrix and which = 'SM': "
# initializing the Frovedis server
argvs = sys.argv
argc = len(argvs)
if argc < 2:
print ('Please give... | [
"takuy_araki@nec.com"
] | takuy_araki@nec.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.