blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | 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 777
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 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
73f2c0dde7fa284795d91a91d76bba4c78ef7a6f | 4b801b5aafac91dd71b9dc3f9a247efe98dc13f0 | /week3/serializer.py | d455db1ad93ca9f2f7b190f82c2ae1c108b7b58f | [
"MIT"
] | permissive | Langat05/Awards | 19f6a627861b7e54ebef705d804e121957185baa | df8f3f9ca1b7cbae1d88f3a3531a02a81b82186d | refs/heads/master | 2023-01-05T20:20:58.369698 | 2020-10-27T14:05:55 | 2020-10-27T14:05:55 | 306,889,072 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | from rest_framework import serializers
from .models import *
class ProjectSerializer(serializers.ModelSerializer):
class Meta:
model = Projects
fields = ['title', 'description', 'image', 'author', 'created_date', 'author_profile', 'link']
class ProfileSerializer(serializers.ModelSerializer):
... | [
"[email protected]"
] | |
a35c23f7c9e71b8fed716df8ac9cb0bd61868c9b | f03d41c0ee4d05a6af5eb154fef4c27a2e638e8d | /ontask/tests/test_create_screen_captures.py | 3123acb4faec6ae4fe523c81a834c2d2a4ca58d1 | [
"LGPL-2.0-or-later",
"BSD-3-Clause",
"MIT",
"Apache-2.0",
"LGPL-2.1-only",
"Python-2.0"
] | permissive | abelardopardo/ontask_b | c461f561b0965735c158199e94366d5bf1a8a676 | c432745dfff932cbe7397100422d49df78f0a882 | refs/heads/master | 2023-08-17T03:27:35.900314 | 2023-08-16T07:29:26 | 2023-08-16T07:29:26 | 110,175,024 | 43 | 32 | MIT | 2023-08-15T23:08:20 | 2017-11-09T22:49:43 | Python | UTF-8 | Python | false | false | 31,280 | py | """Create screen captures to include in the documentation."""
import os
from django.conf import settings
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.select import Select
from... | [
"[email protected]"
] | |
5630628da72e6fabab73558152d9df8fbec0a4f0 | 34b16073c76a4fec0ead2603367fbcfd05013898 | /continentalfuzzy/domain/System.py | 2f1c05373acb04de42962036a95f080da9092347 | [] | no_license | rccmodena/ContinentalFuzzyPython | 00958950090351fea5cd299eac8c53ca09c6abc7 | 8b2688dd16a97d75cdc40b680e5cbbd2e247b517 | refs/heads/master | 2023-07-06T18:34:05.344718 | 2021-01-29T14:06:25 | 2021-01-29T14:06:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,871 | py | """
Developed by Projeto Continentais and Petrobras
author: Rudi César Comiotto Modena
email: [email protected]
date: July, 2020
"""
from typing import Optional, List, Dict
from continentalfuzzy.domain.Rule import Rule
from continentalfuzzy.domain.variable.Input import Input
from continentalfuzzy.domain.variable.Outp... | [
"[email protected]"
] | |
b2b28a96fe3b8e65d34f0ef57de0e797013b889c | b873ea1def0810f67834bf4926901b9a8fead362 | /tuples_and_sets_09_21/students_grades.py | 2d987e90a25cbc6088cc5ead764ea9d1a0c51cd1 | [] | no_license | NikiDimov/SoftUni-Python-Advanced | 20f822614fa0fa7de6ded3956fa8d40d589a4a86 | d6c1fe886a3c27c82f03e5e4a6c670f0905d54e6 | refs/heads/main | 2023-08-23T17:42:32.063057 | 2021-10-25T10:32:03 | 2021-10-25T10:32:03 | 328,750,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | N = int(input())
dict_of_students = {}
for _ in range(N):
student, grade = input().split()
grade = float(grade)
if student not in dict_of_students:
dict_of_students[student] = []
dict_of_students[student].append(grade)
for key, value in dict_of_students.items():
print(f"{key} -> {' '.join([f... | [
"[email protected]"
] | |
899cb53efbf654a627e45de51acc62dbd6fa2f33 | 16109c0fa3a7d0faf86a9c680ee2490170492a79 | /python_training/myemployee/myemployee/wsgi.py | 695fe3f02004df5e7ff6c50b0497e574378dbeb2 | [] | no_license | sandhyakopparla/python | 361ea5f0dedcdd2c08d0d16c25f3dd9b42b6c3f2 | b87a9ecce5005e2e43e5b0a2d8aa17d477d2c7a2 | refs/heads/submit | 2023-07-16T01:55:46.120786 | 2021-08-20T04:21:31 | 2021-08-20T04:21:31 | 397,566,663 | 0 | 0 | null | 2021-08-20T04:21:31 | 2021-08-18T10:51:48 | Python | UTF-8 | Python | false | false | 397 | py | """
WSGI config for myemployee 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.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"[email protected]"
] | |
6735465791531aeeabc1ba1331fb80c55ae2c8f7 | cd4676555fc1066b5a84320ebbb1d4623066380d | /crusoe_observe/flowmon-rest-client/flowmonclient/resources/ads/Filters.py | 3bb92373672eb9ac13be90dde634a9a6f25fedd0 | [
"MIT"
] | permissive | wumingruiye/CRUSOE | 3ca542fa5362caf404593acfc4b01eb8f9b4d5f4 | 73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b | refs/heads/main | 2023-07-01T21:40:09.538245 | 2021-08-05T14:07:03 | 2021-08-05T14:07:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | class Filters:
def __init__(self, client):
self.client = client
def all(self):
resource = "/filters"
return self.client.get(resource)
| [
"[email protected]"
] | |
8f45898f49336b9ca0d3e8ac86db1286a844c6ae | ba3a705ecb3628641793854292aa9a3ff8fc1221 | /10_API/ex1_simple/env/bin/wheel | 56b0575ae06d4be2ebe7e4fa276140b10b77e48c | [] | no_license | mortenhaahr/NGK | d98ada8d63a07ea6447768ab6a23ad1346634b56 | a9e89afb452dd7953cba4403b4e8bc2c0ff2ba1e | refs/heads/master | 2022-07-01T20:39:02.063251 | 2020-05-11T15:40:26 | 2020-05-11T15:40:26 | 242,725,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | #!/home/stud/NGK/10_API/ex1/env/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"[email protected]"
] | ||
d6e677ac1447f8278ddff36b140132e55441832c | 4abd8812b5e13906ef5b93397548e71655e7fde3 | /WebFrame.py | 3c049b2484390aba2807bb3f2fef1e7be2b6f50d | [] | no_license | HMmelody/AID1808 | 6b06f09308c7b3ba7cb80367d4b4a2568bf93691 | c8893e45f5496a5fbcdd1db43f88b0df53290e52 | refs/heads/master | 2020-04-04T18:17:20.444824 | 2018-11-06T03:55:22 | 2018-11-06T03:55:22 | 156,157,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,817 | py | # coding=utf-8
'''
模拟框架程序部分
'''
from socket import *
from views import *
frame_ip = '127.0.0.1'
frame_port = 8080
frame_address = (frame_ip,frame_port)
# 静态网页位置
STATIC_DIR = './static'
# url决定我们能处理什么数据
urls = [('/time',show_time),('/hello',say_hello),('/bye',say_bye)]
# 应用类,将功能封装在类中
class Application(object):
de... | [
"[email protected]"
] | |
3fb2b2cb9ec1a2718bd91fb9ee318afc55f997c6 | 51d46cf862654d30f5fa0ee35a9243c9661fc0eb | /User_/user_custom/user_custom/wsgi.py | c4912256bea59c34b54c8253916ca4ef2ffa19cc | [] | no_license | LikeLionCBNU/HamDongHo | 6762a8db487ae2807d1ce9d4d2df7e18d67eab70 | 082cea62cf4b5136309cbddc8c09e4e84f25de7c | refs/heads/master | 2022-12-06T22:48:17.500207 | 2020-08-19T14:31:32 | 2020-08-19T14:31:32 | 256,194,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for user_custom 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/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"[email protected]"
] | |
f98ec6b74f00596af6fcf03d9e58cc0dd42de5a5 | 296756045df29db632141dda85034fca35213c92 | /D3_4615_재미있는오셸로게임.py | 23a924a8a5dd7ae3b09b95e5d7b3b37e34338aa0 | [] | no_license | dabini/SWEA | 8b1b321a2126a41f0786e7212eb81ea0204716b6 | 4b61d34a4b089699a5594b4c43781a6f1dd2235e | refs/heads/master | 2022-12-24T02:36:01.169672 | 2020-09-27T11:56:13 | 2020-09-27T11:56:13 | 236,012,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | T = int(input())
for t in range(T):
N, M = map(int, input().split()) # 보드의 한 변의 길이 N과 플레이어가 돌을 놓는 횟수 M
field = [[0]*(N+1) for _ in range(N+1)]
for j in range(N//2, N//2+2): #기본 설정
for i in range(N//2, N//2+2):
if i == j: #색이 1이면 흑돌, 2이면 백돌
field[j][i] = 2
el... | [
"[email protected]"
] | |
ec46f3d025b4c8f9a1a28ec7a4e09265e6806c5f | 1b3c73cfd2c183861942d821b5f7b87cfde05687 | /Clustering.py | ebee8512112a8b6ef2bf9157214257ebbb50b688 | [] | no_license | Cheereus/MathModel2020 | d0e77d199701fe752298d3998578be58409c9ce3 | 752811a5550ff3d6ec4dc21f4880986e3fcf08f7 | refs/heads/master | 2023-04-27T15:00:28.332328 | 2021-04-27T02:56:52 | 2021-04-27T02:56:52 | 296,013,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | import numpy as np
from sklearn.cluster import KMeans, AgglomerativeClustering
from sklearn.neighbors import KNeighborsClassifier
from scipy.cluster.hierarchy import dendrogram, linkage, fcluster
import matplotlib.pyplot as plt
def k_means(X, k):
k_m_model = KMeans(n_clusters=k, max_iter=300, n_init=40, init='k-m... | [
"[email protected]"
] | |
cf4b8c87b4ba45dbbd40902f0a861e6e06210961 | cf652cb90f9d6b22b5943e7d025af631214a904d | /plugins/keepkey/clientbase.py | 89ac50ec5a5d20df04dfb2034875d401697369c2 | [
"MIT"
] | permissive | ddude1/TestLite | 02919c68013d2ede9195d618d94260b842a5e292 | 3f3c00e4ef03dd9b23b99b02f9a8895da8d65aef | refs/heads/master | 2022-12-11T12:22:25.029101 | 2018-06-13T14:11:51 | 2018-06-13T14:11:51 | 136,489,568 | 0 | 0 | MIT | 2022-09-23T21:47:03 | 2018-06-07T14:31:31 | Python | UTF-8 | Python | false | false | 9,004 | py | import time
from struct import pack
from electrum_xgox.i18n import _
from electrum_xgox.util import PrintError, UserCancelled
from electrum_xgox.keystore import bip39_normalize_passphrase
from electrum_xgox.bitcoin import serialize_xpub
class GuiMixin(object):
# Requires: self.proto, self.device
messages = ... | [
"[email protected]"
] | |
425fec3232c22560f10257179343fe677eb7810a | 94f304cb4c2ac2ad6ff1ee39725f46254c8838bc | /core/info/Ui_script.py | 39b68de152e2eba395e13f524ec2b484d241ef11 | [] | no_license | kmolLin/python3_solve_dynamic | 105bd70edaa5014e0ad76a9a3c66e43dc0fa5ad7 | 18f56e6958dd1816dfb7c26f4857aa3b41de9312 | refs/heads/master | 2021-06-03T10:19:44.551240 | 2016-09-23T13:22:52 | 2016-09-23T13:22:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,391 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/home/ahshoe/Desktop/Pyslvs/core/info/script.ui'
#
# Created by: PyQt5 UI code generator 5.7
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Info_Dialog(object):
def setupUi(... | [
"[email protected]"
] | |
21c56687f092c048fd987093b694fa1b9cdba953 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /110_concurrency_parallelism/_exercises/templates/Mastering Concurrency in Python/Chapter10/example3.py | 22936bfe66daaa8030fb20b3750380ec1e244ec1 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 698 | py | # # ch9/example1.py
#
# ____ ma__ ______ sqrt
# ____ t_i_ ______ d_t_ __ timer
#
# ___ is_prime x
# print('Processing @...' ?
#
# __ ? < 2
# print('@ is not a prime number.' ?
#
# ____ ? __ 2
# print('@ is a prime number.' ?
#
# ____ ? % 2 __ 0
# print('@ is not a prime number... | [
"[email protected]"
] | |
f2adac6b08cba4a67e4da5fad5abb9ed22b1ebe1 | eed4e25645c7590a986d9b9c8435b8d052cc913a | /parakeet/transforms/stride_specialization.py | 899c1bad4ea379c053391da24e807222ba0846e6 | [
"BSD-3-Clause"
] | permissive | Tillsten/parakeet | 63afd4bb8d83b64529e81e6c13348fd2e4d10a6f | 5045c3f6c4de19f4acbafeaf2fc9e5c7ff9aa63c | refs/heads/master | 2021-01-18T15:36:16.814995 | 2013-10-02T00:36:23 | 2013-10-02T00:36:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,281 | py | from .. analysis.find_constant_strides import FindConstantStrides, Const, Array, Struct, Tuple
from .. analysis.find_constant_strides import from_python_list, from_internal_repr
from .. syntax.helpers import const_int, const
from dead_code_elim import DCE
from phase import Phase
from simplify import Simplify
from tran... | [
"[email protected]"
] | |
cf008304d5ece13b86dbf6527bf76302f2b03546 | 7e72e16f43170749dada023624a88fd622727639 | /jdcloud_sdk/services/monitor/models/SiteMonitorFtpOption.py | 74c06ad00ca3b082dff46c5db43a7d195487c31e | [
"Apache-2.0"
] | permissive | jdcloud-demo/jdcloud-sdk-python | 4dc1e814217df16c5f60f5e4b3f8260b770f9d2b | fddc2af24031c597948b8b8091978ac7e01a2695 | refs/heads/master | 2020-07-11T18:19:59.688112 | 2019-08-23T05:55:18 | 2019-08-23T05:55:18 | 204,613,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# 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 ... | [
"[email protected]"
] | |
335349eab960e401562561524f316f7a8f145d3e | 8ab21f9b2fb6a96f9fd6ef8f06091b68b2ff8611 | /labluz/wsgi.py | 80467c5db8692bb3f7d05278d9ea4b457b4a8014 | [
"MIT"
] | permissive | macndesign/labluz | 8ddcfa71dcaab7083c0ed670d5e007e6e59de0c1 | a6100ae903ab6164d087ef2765c00d81d134a373 | refs/heads/master | 2016-09-09T21:39:55.771160 | 2013-12-16T03:45:02 | 2013-12-16T03:45:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | """
WSGI config for labluz project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "labluz.settings")
from django.core.wsg... | [
"[email protected]"
] | |
60e828ae2e99cb6911492deee536f5ec9007e165 | 7b5d97f8d0d00dfbad7cf52133166b7abdb47f11 | /overthewire/vortex/l0/solve.py | fb2ea6cc6b032fa8012914402d719d33fe3b8969 | [] | no_license | plvhx/any-ctf-writeup | 64b34010ba81b968f52bfb437ff908a4e6821a84 | 286c020a2b7e17d6a3ddc995c9c4f5087f4843df | refs/heads/master | 2021-06-10T22:18:03.294359 | 2016-12-14T14:28:03 | 2016-12-14T14:28:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | #! /usr/bin/python
import sys
import struct
import socket
import telnetlib
if sys.byteorder == 'little':
Q = lambda x: struct.pack("<I", x)
rQ = lambda x: struct.unpack("<I", x)[0]
elif sys.byteorder == 'big':
Q = lambda x: struct.pack(">I", x)
rQ = lambda x: struct.unpack(">I", x)[0]
try:
s = socket.create_con... | [
"vagrant@precise64.(none)"
] | vagrant@precise64.(none) |
9a94262a5308425f8bf9da0226d2fa50d17e48c1 | 4894b77303b4fcd303f6103bc1387c99d87381f9 | /award/settings.py | 4d97140f4232351b4aac496d74956181687b1c98 | [
"MIT"
] | permissive | sngina/Award | ff21422839a32fbf5901e25427a33e6737aa15db | 4cdbe0da49cb69819deb4c00011718b087891919 | refs/heads/master | 2023-06-20T09:05:51.513020 | 2021-07-20T08:33:39 | 2021-07-20T08:33:39 | 386,533,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,200 | py | """
Django settings for award project.
Generated by 'django-admin startproject' using Django 1.11.17.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"[email protected]"
] | |
5df01d2277c77acdae3677cd9511de336ccc60fd | f82e67dd5f496d9e6d42b4fad4fb92b6bfb7bf3e | /scripts/client/gui/scaleform/daapi/view/lobby/fortifications/components/fortdisconnectviewcomponent.py | d3c69c3ecb05a4cd811ba421ff93edfbdcf24cf1 | [] | no_license | webiumsk/WOT0.10.0 | 4e4413ed4e7b00e22fb85d25fdae9400cbb4e76b | a84f536c73f86d9e8fab559e97f88f99f2ad7e95 | refs/heads/master | 2021-01-09T21:55:00.662437 | 2015-10-23T20:46:45 | 2015-10-23T20:46:45 | 44,835,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,539 | py | # Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/fortifications/components/FortDisconnectViewComponent.py
from gui.Scaleform.daapi.view.lobby.fortifications.fort_utils.FortViewHelper import FortViewHelper
from gui.Scaleform.daapi.view.meta.FortDisconnectViewMeta import FortDisconnectViewMeta
from gui... | [
"[email protected]"
] | |
1420dc41a020bc3ae1a7eff801eef50c12fae666 | 6bd71bdfe9234e5e6de90bb40b6cd8d3e25ca6d2 | /Escuelas/TC2011/ejercicios-Parte1/soluciones/editarEsteComando.py | 4e4a68120b03d4f00ed94f98d99ed32d9755ac52 | [] | no_license | andres0sorio/CMSWork | f1f30a12bf43eb688ef9e95c53c94fe32fc7fe66 | 81e60a0a9b70cd2ae01d17b15be386a6cd925416 | refs/heads/master | 2021-01-22T13:12:16.094247 | 2015-10-26T04:47:12 | 2015-10-26T04:47:12 | 9,710,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | #!/usr/bin/python
import sys,os
# Este es un script sencillo en Python
# Para escribir un comentario, uno debe empezar la linea con un simbolo #
# Por favor comente la linea siguiente adicionando un simbolo # al frente de la linea siguiente
# raise RuntimeError
username = os.getenv('USER')
print 'Muy bien: ', us... | [
"[email protected]"
] | |
e18d643bc12f22e630a36c43f290e24481c55114 | b3b68efa404a7034f0d5a1c10b281ef721f8321a | /Scripts/simulation/drama_scheduler/audition_drama_node.py | 948c4f5ec6ecb200f415e37432aa208b420fe8ff | [
"Apache-2.0"
] | permissive | velocist/TS4CheatsInfo | 62195f3333076c148b2a59f926c9fb5202f1c6fb | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | refs/heads/main | 2023-03-08T01:57:39.879485 | 2021-02-13T21:27:38 | 2021-02-13T21:27:38 | 337,543,310 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,307 | py | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\drama_scheduler\audition_drama_node.py
# Compiled at: 2020-09-09 09:42:05
# Size of source mod 2**32... | [
"[email protected]"
] | |
0f462660927792ab2746267aeb12801a663cbc12 | 69246effee7359d81d8e8ac5cab1bc354a7a933f | /account/tests.py | 88fad6f89c098ebd4fd21c8c6a5ee31eea059001 | [] | no_license | joeyac/TeachAssist2 | 0edfa98ab942ef5cd2308a617491e367a0b7bd86 | d99164b7d4fc2772bcda991ec9de0d13a9a894bf | refs/heads/master | 2020-03-19T04:50:45.656778 | 2018-06-22T08:34:49 | 2018-06-22T08:34:49 | 135,873,919 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,209 | py | import json
from django.test import TestCase
from django.test import Client
from rest_framework import status
from account.models import User
from utils.constants import UserType
class AccountTestCase(TestCase):
def setUp(self):
teacher = User.objects.create(username='g123', email='[email protected]', us... | [
"[email protected]"
] | |
dd02ed50120862fa5fea721d1c262eda6b6db504 | 19a32440205b2caeec67c73c10d917b5fb30a86a | /test/test_reports_report_subreports.py | 2474e1ff3056bb33e73940415fc89f13a98f3904 | [
"MIT",
"Apache-2.0"
] | permissive | marrotte/isilon_sdk_python | 480e84312f5924a506aeb09c9c7cae79a2b9b7f4 | 91039da803ae37ed4abf8d2a3f59c333f3ef1866 | refs/heads/master | 2020-03-23T07:31:40.376316 | 2016-06-07T23:44:31 | 2016-06-07T23:44:31 | 141,277,076 | 1 | 0 | MIT | 2018-07-17T11:02:08 | 2018-07-17T11:02:08 | null | UTF-8 | Python | false | false | 1,321 | py | # coding: utf-8
"""
Copyright 2016 SmartBear Software
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 l... | [
"[email protected]"
] | |
6e67b80e239e05eb821cb6eac9b7fb4294adf9e2 | 3ed194eef8f7de82d10b76fb73dabb7abb6f0e46 | /if_char_is_char.py | 892a99d3d4beb0b7a290b6804c9827e1091304d3 | [
"MIT"
] | permissive | CrazyJ36/python | 9c4724e74b276664a9a638dfd09b082e78ec78f1 | 730c384304d51c23a4c36337216ae586f2fe674c | refs/heads/master | 2022-10-11T02:58:04.342322 | 2022-09-30T21:52:49 | 2022-09-30T21:52:49 | 186,742,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | #!/usr/bin/env python3.7
print("type 'x' or something else for comparison:")
mchar = input()
if mchar is 'x':
print("input is x")
else:
print("input is not x")
| [
"[email protected]"
] | |
c0e0c39f8544157a8f50baaaa4e515081f058802 | 6ac0afae7ef0db215e5da2e188016deddf0f7a85 | /cogdl/layers/__init__.py | b7a38115afebf102bd1e96ec2ceb5792e518fc3b | [
"MIT"
] | permissive | tianjiansmile/cogdl | ca77277db411f59fdd2cdd75e666dac3e1bbe7c6 | 4e0bbaf76e0e3bde0c8f57010159a63981278329 | refs/heads/master | 2020-11-25T21:35:20.908782 | 2019-12-18T15:09:07 | 2019-12-18T15:09:07 | 228,856,678 | 0 | 0 | MIT | 2019-12-18T14:25:55 | 2019-12-18T14:25:54 | null | UTF-8 | Python | false | false | 120 | py | from .maggregator import MeanAggregator
from .se_layer import SELayer
__all__ = [
'SELayer',
'MeanAggregator'
] | [
"[email protected]"
] | |
4781d858b7b1f270f3c80d2569997214211a5abc | ae8f61a8c0c4a569f00529c3f07c73dbfc884f71 | /tiled/client/utils.py | 021dc8745848024a80b502d34a110853c79d851b | [
"BSD-3-Clause"
] | permissive | untzag/tiled | 1ba705303193312711d8ac75b977a26d6d9e7571 | 43a8ba82660ce3be077f2b6b060bdd2a23cf956b | refs/heads/main | 2023-04-18T18:34:13.545139 | 2021-04-28T21:27:59 | 2021-04-28T21:27:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,539 | py | import asyncio
from inspect import iscoroutine
import httpx
import msgpack
from ..utils import Sentinel
class UNSET(Sentinel):
pass
def get_content_with_cache(
cache, offline, client, path, accept=None, timeout=UNSET, **kwargs
):
request = client.build_request("GET", path, **kwargs)
if accept:
... | [
"[email protected]"
] | |
deb0f1f1c739784d71150481cdcafcc50e01d078 | 4a8c1f7d9935609b780aff95c886ef7781967be0 | /atcoder/ABC/A/072_a.py | 2bdb2b702f8afe70275c3ff34ad5c1e31423163a | [] | no_license | recuraki/PythonJunkTest | d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a | 2556c973d468a6988d307ce85c5f2f8ab15e759a | refs/heads/master | 2023-08-09T17:42:21.875768 | 2023-07-18T23:06:31 | 2023-07-18T23:06:31 | 13,790,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | import sys
from io import StringIO
import unittest
class TestClass(unittest.TestCase):
def assertIO(self, input, output):
stdout, stdin = sys.stdout, sys.stdin
sys.stdout, sys.stdin = StringIO(), StringIO(input)
resolve()
sys.stdout.seek(0)
out = sys.stdout.read()[:-1]
... | [
"[email protected]"
] | |
5182e2b90713dbb6256c9936fc582e92cabae6f7 | 50afc0db7ccfc6c80e1d3877fc61fb67a2ba6eb7 | /challenge6(hotel)/SnowballSH.py | 023455239f336510c3cbbc9ff2146d798a0ea89a | [
"MIT"
] | permissive | banana-galaxy/challenges | 792caa05e7b8aa10aad8e04369fc06aaf05ff398 | 8655c14828607535a677e2bb18689681ee6312fa | refs/heads/master | 2022-12-26T23:58:12.660152 | 2020-10-06T13:38:04 | 2020-10-06T13:38:04 | 268,851,516 | 11 | 8 | MIT | 2020-09-22T21:21:30 | 2020-06-02T16:24:41 | Python | UTF-8 | Python | false | false | 837 | py | def matrixSum(matrix):
#Returns a list of cols instead of rows
def get_col():
rt = []
for c in range(len(matrix[0])):
ct = []
for i in range(len(matrix)):
ct.append(matrix[i][c])
rt.append(ct)
return rt
#Check if TWT staff isn'... | [
"[email protected]"
] | |
95f95cb7909dc39645281e60db52b9e9201e9b98 | 00da01b831d58f4cbae5c3625823849dde3eff67 | /contests/293_DIV2/b.py | cbd9c868d1e95f83896418f65fa074356a5e2ff4 | [] | no_license | atupal/codeforces | 577b2c084b9cf047c5780f840e9fe49fcb0fd50a | 563c3e27e0450b3dde24661a606c84b1a8d81f17 | refs/heads/master | 2021-01-15T22:10:07.657554 | 2015-10-12T06:58:10 | 2015-10-12T06:58:10 | 10,015,882 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | # -*- coding: utf-8 -*-
s = raw_input()
t = raw_input()
import string
lower = string.lowercase
upper = lower.upper()
class mydict(dict):
def __missing__(self, key):
self[key] = 0
return self[key]
ds = mydict()
dt = mydict()
for i in s:
ds[i] += 1
for i in t:
dt[i] += 1
cnt1 = 0
cnt2 = 0
for key in... | [
"[email protected]"
] | |
c5c31cec5a6fe7c542613055cd5833c5b02e84fd | 84226827016bf833e843ebce91d856e74963e3ed | /tests/unit/payload_test.py | fb32bdfe608f403ef2d986cac36febf6377b224a | [
"Apache-2.0"
] | permissive | jbq/pkg-salt | ad31610bf1868ebd5deae8f4b7cd6e69090f84e0 | b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3 | refs/heads/master | 2021-01-10T08:55:33.946693 | 2015-05-21T13:41:01 | 2015-05-21T13:41:01 | 36,014,487 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,505 | py | # -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Pedro Algarvio ([email protected])`
tests.unit.payload_test
~~~~~~~~~~~~~~~~~~~~~~~
'''
# Import Salt Testing libs
from salttesting import skipIf, TestCase
from salttesting.helpers import ensure_in_syspath, MockWraps
from salttesting.mock import NO_MOCK, N... | [
"[email protected]"
] | |
06293b56fb3f342e664ece1e162150b79ef57c2f | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/str_get_element_oob_1-60.py | e03bfff89349b673831ba7e902bbb691139386ce | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | x:str = "abc"
a:str = ""
def str_get(s:str, i:int) -> str:
return s[i]
a = str_get($ID, -1)
print(a)
| [
"[email protected]"
] | |
ebdebcdd687aa5cf786c51373a673303400f155a | 0478abafc05f1dd55ddf6054d95fef73e9fa03e9 | /quati/__main__.py | 5d239149288d0d96a0286f5e599b8a35e00bbdbc | [
"MIT"
] | permissive | deep-spin/quati | 89bce0868b36b0d7902659507b72acfbd01ada98 | 62a6769475090182fe2990b2864d66f8e2081a32 | refs/heads/master | 2023-03-12T09:22:31.520259 | 2021-03-02T15:13:22 | 2021-03-02T15:13:22 | 330,678,540 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | import argparse
import logging
from quati import config_utils
from quati import opts
from quati import predict
from quati import train
logger = logging.getLogger(__name__)
parser = argparse.ArgumentParser(description='quati')
parser.add_argument('task', type=str, choices=['train', 'predict'])
opts.general_opts(parse... | [
"[email protected]"
] | |
ed7a0afb48637db929c10a6a88ec40e413eed8cc | 92e3a6424326bf0b83e4823c3abc2c9d1190cf5e | /scripts/icehouse/opt/stack/neutron/neutron/agent/linux/interface.py | 89d30a5f79e4a947e3d1bf5e05a8148957b71c0e | [
"Apache-2.0"
] | permissive | AnthonyEzeigbo/OpenStackInAction | d6c21cf972ce2b1f58a93a29973534ded965d1ea | ff28cc4ee3c1a8d3bbe477d9d6104d2c6e71bf2e | refs/heads/master | 2023-07-28T05:38:06.120723 | 2020-07-25T15:19:21 | 2020-07-25T15:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,791 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 OpenStack Foundation
# 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.apach... | [
"[email protected]"
] | |
7351842124bf39729e663fadcacb1fdc825994cb | 95eed88115075f7e1916a14de7497d05a12a9330 | /abc194d.py | d19e27dcc40bbd3da711a3fffa9b61e788b10c10 | [] | no_license | ynagi2/atcoder | bdbbd030f1dd39e937b0872b028ce0f38372521e | e404f4500d837bfd6ca473aa2837f46ae71ad84a | refs/heads/master | 2022-04-29T12:48:44.229462 | 2022-04-22T15:04:50 | 2022-04-22T15:04:50 | 241,098,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py |
# 等差×等比の部分和求めて極限とばすと,
# n / n-k をk=1からn-1まで足し合わせればいいことがわかる
# 別の考え方として,E = p*1 + (1-p)(E+1)
# (確率pで成功し,1-pでEが1回増えるという関係式)
# より,E = 1/p が求まるので,p = 1 - n/Nから,
# N / N-n の総和を求めればよいと考えられる
def main():
n = int(input())
ans = 0
for i in range(n-1):
ans += n / (i+1)
print(ans)
if __name__ == '__main__... | [
"[email protected]"
] | |
293f2076ab950a2caf64b738152b431673aa60d9 | f71aecb0e91fe877af3ec652c7f6753a1e7b5ccd | /DeleteAndEarn_MID_740.py | 9184c6e40bedecac812fa994aac05abff1692a4c | [] | no_license | 953250587/leetcode-python | 036ad83154bf1fce130d41220cf2267856c7770d | 679a2b246b8b6bb7fc55ed1c8096d3047d6d4461 | refs/heads/master | 2020-04-29T12:01:47.084644 | 2019-03-29T15:50:45 | 2019-03-29T15:50:45 | 176,122,880 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,409 | py | """
Given an array nums of integers, you can perform operations on the array.
In each operation, you pick any nums[i] and delete it to earn nums[i] points. After, you must delete every element equal to nums[i] - 1 or nums[i] + 1.
You start with 0 points. Return the maximum number of points you can earn by applying s... | [
"[email protected]"
] | |
e7e1884d2677b6ffa1945bcccd74218252cc3ceb | 3d6f8dc406a18397c354df72ce7dbf5e87712567 | /LeetCode/Num_Count.py | b0d86b7223ec0c7f7887b0cca1ebe54dcde1a1d1 | [] | no_license | HonryZhang/Python-Learning | b7410153eff7cd4e51e6e5d69cf7a9bc739a8243 | e29a75eb42588b2ac31d9b498827cba9c87fc157 | refs/heads/master | 2021-01-16T21:41:45.429416 | 2018-05-16T01:36:31 | 2018-05-16T01:36:31 | 100,246,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,893 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
__author__ = 'Hongrui'
'''
求数字出现的次数?
a.求1~2593中数字 5 出现的次数? 比如555,数字5算出现3次。
b.求 1~N中,数字x (0~9) 出现的次数
'''
'''
Input k: the target number
Input n: the target digit
Output: the total times appeared in the list
'''
def digitCounts(k,n):
t_count = 0 #define the tota... | [
"[email protected]"
] | |
566835bfa21b0ae9ac62103e689e07fca0d0ec84 | dd027c4bbcace97e3dbf566c123b178ceb1a8282 | /sett/bin.py | ec6cfeb5a5845420ceece18c657966787f9d4496 | [] | no_license | cecedille1/Sett | 479bf00ca8df807f431e235c68b892bb90fab9b0 | bf8b9f204caa532a5fb8f110ab4e4a1cea03cb96 | refs/heads/master | 2021-01-10T13:28:11.614022 | 2016-03-31T16:51:14 | 2016-03-31T16:51:14 | 43,488,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,025 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import functools
from paver.easy import path
class NotInstalled(Exception):
pass
class DirectorySearcher(object):
def __init__(self, directory):
self.directory = path(directory)
def search(self, program):
bin_path = self.directory... | [
"[email protected]"
] | |
acaf735fe15e99d7e343e8c31f11012dd1eba187 | f71ee969fa331560b6a30538d66a5de207e03364 | /scripts/client/gui/clubs/states.py | 044f480507dd784df1264197b77e5f09b86db64b | [] | no_license | webiumsk/WOT-0.9.8-CT | 31356ed01cb110e052ba568e18cb2145d4594c34 | aa8426af68d01ee7a66c030172bd12d8ca4d7d96 | refs/heads/master | 2016-08-03T17:54:51.752169 | 2015-05-12T14:26:00 | 2015-05-12T14:26:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,557 | py | # Embedded file name: scripts/client/gui/clubs/states.py
from gui.shared.utils.decorators import ReprInjector
from gui.clubs.settings import CLIENT_CLUB_STATE
from gui.clubs.restrictions import AccountClubLimits, DefaultAccountClubLimits
@ReprInjector.simple(('getStateID', 'state'))
class _AccountClubsState(object):
... | [
"[email protected]"
] | |
0ae864d0a423e68a0efa8509b43d6dea15776b19 | 4e89d371a5f8cca3c5c7e426af1bcb7f1fc4dda3 | /python/python_test_002/04/02.py.backup.new | f2c15f2898e8db20233471a5f599c56036c773d1 | [] | no_license | bodii/test-code | f2a99450dd3230db2633a554fddc5b8ee04afd0b | 4103c80d6efde949a4d707283d692db9ffac4546 | refs/heads/master | 2023-04-27T16:37:36.685521 | 2023-03-02T08:38:43 | 2023-03-02T08:38:43 | 63,114,995 | 4 | 1 | null | 2023-04-17T08:28:35 | 2016-07-12T01:29:24 | Go | UTF-8 | Python | false | false | 442 | new | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
import time
import os
def print_dir_info(dir_path):
for name in os.listdir(dir_path):
full_path = os.path.join(dir_path, name)
file_size = os.path.getsize(full_path)
mod_time = time.ctime(os.path.getmtime(full_path))
print(... | [
"[email protected]"
] | |
9c990b250078cf9c8369a1de24ae04eab71bd38d | ebc00ddf4c8c5f5076471e8b8d56c2b634c51230 | /test/lint/lint-format-strings.py | 16dc41072bf1f3e3a7e014ad34d18c2409ba2e70 | [
"MIT"
] | permissive | BlockMechanic/rain | 584a9e245cfb7ab5fb1add97b699b86833bfbc5b | e8818b75240ff9277b0d14d38769378f05d0b525 | refs/heads/master | 2021-07-03T03:48:53.977665 | 2021-03-04T01:28:20 | 2021-03-04T01:28:20 | 228,412,343 | 0 | 0 | MIT | 2019-12-16T15:03:28 | 2019-12-16T15:03:27 | null | UTF-8 | Python | false | false | 12,727 | py | #!/usr/bin/env python3
#
# Copyright (c) 2018-2019 The Rain Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Lint format strings: This program checks that the number of arguments passed
# to a variadic format str... | [
"[email protected]"
] | |
c8ed762106e501cfc1f293e9ce7a805a2f2f4ccf | a3a6eeb340735664c863952bf3c1e3070e61d987 | /tests/test_bools.py | b32005d2de314894aec53fd4db70bb575825a6c1 | [
"Apache-2.0"
] | permissive | DalavanCloud/tmppy | dab593789d6e1ae6a3b25db6c4b41ce4fcfb378c | cdde676ba9d5011b7d2a46a9852e5986b90edbbc | refs/heads/master | 2020-03-27T19:55:42.295263 | 2018-09-01T18:13:21 | 2018-09-01T18:13:21 | 147,021,787 | 1 | 0 | Apache-2.0 | 2018-09-01T18:14:23 | 2018-09-01T18:14:23 | null | UTF-8 | Python | false | false | 4,058 | py | # Copyright 2017 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 law or... | [
"[email protected]"
] | |
fe2b1cc542f5ae3f9d81ae04c6c874bea64f10d4 | 6f05f7d5a67b6bb87956a22b988067ec772ba966 | /data/train/python/4f956ef173469139d65286c38d6509ea89e8d0c5urls.py | 4f956ef173469139d65286c38d6509ea89e8d0c5 | [
"MIT"
] | permissive | harshp8l/deep-learning-lang-detection | 93b6d24a38081597c610ecf9b1f3b92c7d669be5 | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | refs/heads/master | 2020-04-07T18:07:00.697994 | 2018-11-29T23:21:23 | 2018-11-29T23:21:23 | 158,597,498 | 0 | 0 | MIT | 2018-11-21T19:36:42 | 2018-11-21T19:36:41 | null | UTF-8 | Python | false | false | 4,309 | py | from django.conf import settings
from django.conf.urls import url
from django.views.decorators.cache import cache_page
cache = cache_page(60 * 15) if not settings.DEBUG else lambda x: x
from . import views
FeedbackSubmissionView_view = cache(views.FeedbackSubmissionView.as_view())
ManageCourseListView_view = views.M... | [
"[email protected]"
] | |
4dbd3efc8708bcb4d34ff55293169dcabeba1df4 | 6238dc5b5818f54295547cf4cb1afa5553ddfb94 | /taobao/guagua/views.py | 0f7415da4a50128ac7344cc3b1811ed0dd18a060 | [] | no_license | liaosiwei/guagua | 8208bb82b1df5506dcb86c1a7094c849ea5576a6 | ee6025813e83568dc25beb52279c86f8bd33f1a4 | refs/heads/master | 2016-09-06T16:45:00.798633 | 2013-05-03T04:02:35 | 2013-05-03T04:02:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,383 | py | # coding=UTF-8
import base64
from random import randint
from django.shortcuts import render
from django.utils import simplejson
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib.auth.forms import PasswordChangeForm
from django.contrib.auth.models import User
from django.contrib.auth... | [
"[email protected]"
] | |
83dce67026bbfad8715bd7a55601f55e28930776 | 5b46e6fd5bbd44a7ccd1333184e13fc4703a084b | /tcex/app_feature/__init__.py | be2ba3c48d248ccaaf89b0854fd3b607bb9bf2c1 | [
"Apache-2.0"
] | permissive | TpyoKnig/tcex | 1fc297a5f93a17e4bc4a7786335714eb89b6e21d | 7cf04fec048fadc71ff851970045b8a587269ccf | refs/heads/master | 2022-12-25T19:20:49.675331 | 2020-09-30T10:05:37 | 2020-09-30T10:05:37 | 254,921,370 | 0 | 0 | Apache-2.0 | 2020-08-24T23:21:27 | 2020-04-11T17:38:28 | null | UTF-8 | Python | false | false | 105 | py | """App feature module for TcEx Framework"""
# flake8: noqa
from .advanced_request import AdvancedRequest
| [
"[email protected]"
] | |
8d2d22353601d0e01717d35b5dcc9e799f41999e | 21164ca369ea3a1674c3a03bbebcd9c830d0864c | /rules/php/CVI_1010.py | 52a1c4d2d3ae1e95fdb389413593d1d3962c7073 | [
"MIT"
] | permissive | IMULMUL/Cobra-W | a02d6b512843c96685550a98d74f9d8ebe4bdfaf | de65466e53c8bd8e29a5f3e16ab91146d354c53f | refs/heads/master | 2023-07-08T19:14:35.698641 | 2023-06-27T09:31:15 | 2023-06-27T09:31:15 | 202,911,104 | 0 | 0 | MIT | 2023-06-27T23:39:53 | 2019-08-17T17:17:37 | Python | UTF-8 | Python | false | false | 1,204 | py | # -*- coding: utf-8 -*-
"""
auto rule template
~~~~
:author: LoRexxar <[email protected]>
:homepage: https://github.com/LoRexxar/Kunlun-M
:license: MIT, see LICENSE for more details.
:copyright: Copyright (c) 2017 LoRexxar. All rights reserved
"""
from utils.api import *
class CVI_101... | [
"[email protected]"
] | |
143c3d4725a20e10ab6179d77ba2c658c4f44e7e | e484393a06ff65b9432116a5a08077c4431fc17f | /pipelines.py | b684ded6aa835201d1e7d97df670eb9c4df53974 | [] | no_license | knighton/seq_clf | e9adf4301844377b090601b26389ea1e4c17100f | 553aa4f990fb072d08c62667cdb179a4aa5b31a2 | refs/heads/master | 2016-09-06T15:58:22.834655 | 2015-07-26T03:59:52 | 2015-07-26T03:59:52 | 39,712,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | from camacho.base import Transformer
from camacho.preprocess.sequence.coders import IntCoder
from camacho.preprocess.binarize.embeddings import Word2Vec
from camacho.preprocess.binarize.onehot import AtomBinarizer
from camacho.preprocess.sequence.max_length import MaxLength
from camacho.preprocess.sequence.min_length i... | [
"[email protected]"
] | |
284778b2959e8c3cb457a8b8c097bde8b17187ca | a290f2a3dbe72b87b0018a61a67df17b0c5e71fe | /web_test/assist/selene/__init__.py | 6b94f45e3b6c61a01c07359459058afad757ff24 | [
"MIT"
] | permissive | yashaka/python-web-test | 4d10028c28e6239842318872ca6e36d0823e23a1 | 0630a61ba338195028753954e73218f5219e2c02 | refs/heads/master | 2022-09-19T23:42:15.848396 | 2022-09-05T19:25:53 | 2022-09-05T19:25:53 | 243,817,484 | 59 | 16 | MIT | 2021-06-15T19:16:47 | 2020-02-28T17:24:20 | Python | UTF-8 | Python | false | false | 29 | py | from . import report, shared
| [
"[email protected]"
] | |
316836557b9fa1f0953b5a1ffcc5a776f4ef8968 | e0731ac7bd6a9fcb386d9c5d4181c9d549ab1d02 | /desafio23.py | 3014731320bdb0ff34ffd742354f1f5a90a9b917 | [] | no_license | lportinari/Desafios-Python-Curso-em-Video | 3ab98b87a2178448b3e53031b86522558c31c099 | cd7662ddfe371e48e5aabc6e86e23dc6337405fb | refs/heads/master | 2020-04-29T11:09:25.689901 | 2019-06-23T23:58:06 | 2019-06-23T23:58:06 | 176,087,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | """
Exercício Python 023: Faça um programa que leia um número de 0 a 9999 e mostre na tela cada um dos dígitos separados.
"""
print('.:DESCUBRA A UNIDADE, DEZENA, CENTENA E MILHAR DE UM NÚMERO:.')
n = int(input('Digite um número de 0 a 9999: '))
u = n // 1 % 10
d = n // 10 % 10
c = n // 100 % 10
m = n // 1000... | [
"[email protected]"
] | |
765a43a4671b375f00fee86a67821c3abe3fe0af | a79d7f5d0ff7f4ad2c5755f74a8685123eb79157 | /week3/sigma.py | f411312b7d7dc6645756ecb7c536a902bd38f241 | [] | no_license | ArtamoshinN/python | 54c4adf5359fd18c55ce8268c4dde89d1e8b203c | 3c9c69f06e6d1ab890ed7ae057bf331d2d007539 | refs/heads/master | 2021-01-24T03:03:49.064277 | 2018-07-03T18:47:56 | 2018-07-03T18:47:56 | 122,875,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | import math
x = int(input())
i = 0
kv = 0
sum = 0
while x != 0:
kv = kv + x ** 2
sum = sum + x
x = int(input())
i += 1
s = float(sum / i)
sigma = float(math.sqrt((kv - 2 * s * sum + i * s ** 2) / (i - 1)))
print('{0:.11f}'.format(sigma))
| [
"[email protected]"
] | |
567f7dbea1bbe7373fa2366bb54bdc714defee20 | fc4aaf15ef2b10c89728651316300ada27f14ae3 | /Loginapp/views.py | c9b90dbe4cb42e79dd883f1bc474e925c892da44 | [] | no_license | ethicalrushi/seller | 7f6231e710b32e8d7700e32e321879728de65546 | 9473fcb6595c27c7adbcea24990b6e8f006d3e8a | refs/heads/master | 2020-03-08T04:00:59.089892 | 2018-04-04T17:48:19 | 2018-04-04T17:48:19 | 126,335,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,542 | py | from django.shortcuts import render
from django.contrib.auth.models import User
from .forms import UserForm
from django.contrib.auth.decorators import login_required
from django.contrib.auth import login,logout,authenticate
from django.http import HttpResponseRedirect, HttpResponse
from django.urls import reverse... | [
"[email protected]"
] | |
feba07fb944a5622f047e5052f424b91535a4577 | dd6a3615d54ca825051f1c9f81bcd206eb9cfd10 | /mps/utils/general_utils.py | 1aca50e963278deef17bd3364f1b805354b72975 | [
"MIT"
] | permissive | cherakhan/mps | 82e06aea229b2047bf1be68c4430fad621189abf | 2ba818c361e467841f6bbe0ef47a1e833ef315d3 | refs/heads/master | 2022-02-01T20:40:07.327357 | 2019-06-10T03:43:49 | 2019-06-10T03:43:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,986 | py | """
A collection of very generic python utilities.
-- [email protected]
"""
# pylint: disable=import-error
# pylint: disable=no-member
# pylint: disable=no-name-in-module
# pylint: disable=invalid-name
# pylint: disable=relative-import
import numpy as np
from scipy.sparse import dok_matrix
from scipy.linalg im... | [
"[email protected]"
] | |
e8e8dbb1faee07802f147df09b256cc61a91d28a | 9676cae4726eda7308502b0b5753544cef20921c | /image_to_features.py | edc88e1540a9f3223206e03a9c3f8c57184160fe | [] | no_license | amnh-sciviz/image-collection | f8f4b88e1c5c3b8feb975225a4cac97402098410 | 497c7bf21b1b7c392a3219b69acb6981e9c3cebc | refs/heads/master | 2020-05-02T07:34:20.706841 | 2019-06-13T18:57:12 | 2019-06-13T18:57:12 | 177,821,513 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,152 | py | # -*- coding: utf-8 -*-
# Adapted from:
# https://github.com/ml4a/ml4a-guides/blob/master/notebooks/image-search.ipynb
import argparse
import bz2
import glob
import numpy as np
import os
import pickle
from sklearn.decomposition import PCA
import sys
from lib.utils import *
# input
parser = argparse.ArgumentParser()... | [
"[email protected]"
] | |
8647ea711a5c6d6c875b5c47c301901ed1ec3b8f | dffd7156da8b71f4a743ec77d05c8ba031988508 | /ac/nikkei2019-2-qual/nikkei2019_2_qual_b/8360228.py | b7005d58d66843ad71530b0a48a1340716f7b16f | [] | no_license | e1810/kyopro | a3a9a2ee63bc178dfa110788745a208dead37da6 | 15cf27d9ecc70cf6d82212ca0c788e327371b2dd | refs/heads/master | 2021-11-10T16:53:23.246374 | 2021-02-06T16:29:09 | 2021-10-31T06:20:50 | 252,388,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py |
n, *a = map(int, open(0).read().split())
if a[0]!=0:
print(0)
exit()
b = [0]*n
for i in a: b[i]+=1
if b[0]!=1:
print(0)
exit()
ans = 1
i = 0
while i<n-1:
if b[i]==0:
if sum(b[i:])>0:
print(0)
exit()
else:
break
ans *= b[i]**b[i+1]
i += ... | [
"[email protected]"
] | |
70f9502dd64dd7794bbebc3848a84c585299fe52 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03944/s429630442.py | 448282dd05c588cb880bfe4c06969e1a1107c06b | [] | 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 | 640 | py | W,H,N = map(int,input().split())
lst = [list(map(int,input().split())) for i in range(N)]
#print(W,H,N)
#print(lst)
#lst = sorted(lst, key=lambda x: x[2])
#print(lst)
Wst = [1]*W
Hst = [1]*H
for i in range(N):
if lst[i][2] == 1:
for j in range(lst[i][0]):
Wst[j] = 0
if lst[i][2] == 2:
... | [
"[email protected]"
] | |
411bd049e67d923c60ea0feb3624ea38d0df9624 | 63ce91bae5eeadf885262b8fe0e769a64454d257 | /models/se_resnet.py | c72e3972b948675e500da05f177dd64992d0e48e | [
"Apache-2.0"
] | permissive | Data-drone/cv_experiments | c7349e7808f7f9c1315ce1efe33be1f86f4a9f80 | d6e1d9716c03a9165e3d8a08f4cc1287323a56ca | refs/heads/master | 2021-06-26T04:33:10.079771 | 2021-01-19T11:40:30 | 2021-01-19T11:40:30 | 196,596,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,701 | py | ### SE Layer from: https://arxiv.org/abs/1709.01507
# based on: https://github.com/moskomule/senet.pytorch/blob/master/senet/se_resnet.py
import torch.nn as nn
from torch.hub import load_state_dict_from_url
from torchvision.models import ResNet
from .se_module import SELayer
# need adapt to Torchvision style calls t... | [
"[email protected]"
] | |
58d298ec0522399c2673710a99ea5800b973b8b4 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03328/s169266542.py | f38d282a01fae28bcf1d5c8f04c9ec5cb6991a81 | [] | 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 | 239 | py | a, b = list(map(int, input().split()))
a_height = 0
b_height = 0
sa = abs(a - b)
for i in range(1, sa):
a_height += i
# for i in range(1, sa + 1):
# b_height += i
# print(a_height)
# print(b_height)
print(a_height - a) | [
"[email protected]"
] | |
d6c18edef9ba8d5cfaf660eac3864401b7c94e93 | 41ca95879e0f0908ba824074abd43e76177a0d54 | /google-datacatalog-rdbms-connector/tests/google/datacatalog_connectors/rdbms/prepare/sql_objects/sql_objects_assembled_entry_factory_test.py | c235001590ab3040f6f42cc1ba8bcdd5b71bbde1 | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/datacatalog-connectors-rdbms | b3765cd0789cc803abe554d00a266fcab1388f88 | 3b1a2729896542f36487e84a13e80dcb6c2aa3d9 | refs/heads/master | 2023-05-15T16:43:21.811232 | 2021-12-06T22:25:54 | 2021-12-06T22:25:54 | 259,464,905 | 73 | 63 | Apache-2.0 | 2021-12-06T22:25:55 | 2020-04-27T21:51:36 | Python | UTF-8 | Python | false | false | 3,725 | py | #!/usr/bin/python
#
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"[email protected]"
] | |
9dc682d35cab375572088c33f58ee8f39c4985f7 | 6930a434c0506d44bf8a8e81cb86e95c219c3a77 | /python/学生信息管理系统/更改全部信息的管理.py | 7949250894e7e403136252e8746a824fcf286b81 | [] | no_license | Conquerk/test | ed15d5603538340559556c9e0f20cc61ad3e4486 | 7ff42c99b8a2132c6dd1c73315ff95cfef63a8f6 | refs/heads/master | 2020-04-19T01:47:28.322929 | 2019-01-28T01:52:00 | 2019-01-28T01:52:00 | 167,882,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,118 | py | l=[]
def guanli():
while True:
print("+"+"-"*20+"+")
print("|"+str("1.添加学生信息").center(14)+"|")
print("|"+str("2.显示学生信息").center(14)+"|")
print("|"+str("3.删除学生信息").center(14)+"|")
print("|"+str("4.修改学生成绩").center(14)+"|")
print("|"+str("q.退出").center(18)+"|")
p... | [
"[email protected]"
] | |
dad36a3496dbc38de44bdbea546b2ae30e6a8a21 | 092b753aa30b5a050ad6e502a8e46cf5d88ac3db | /easy_7.py | ed00499027f5c7f9482f42e8e7c7740108a31118 | [] | no_license | BrettMcGregor/dailyprogrammer | 2ba33e7501c1198c69ae391ec85d36de1511d9cc | f954ffcbb6430be0a96115246bed2fbe20ef0132 | refs/heads/master | 2020-03-21T06:41:53.490354 | 2018-07-17T04:45:31 | 2018-07-17T04:45:31 | 138,235,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,852 | py | # Write a program that can translate Morse code in the format of
# ...---...
#
# A space and a slash will be placed between words. ..- / --.-
#
# For bonus, add the capability of going from a string to Morse code.
#
# Super-bonus if your program can flash or beep the Morse.
#
# This is your Morse to translate:
code =... | [
"[email protected]"
] | |
5c63e3a2f515983d52df167049fb851ea942caad | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=2.0_rd=1_rw=0.06_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=0/sched.py | c5eaad177d1026b0984b6b39b4a8cf663c74b219 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | -X FMLP -Q 0 -L 2 81 400
-X FMLP -Q 0 -L 2 55 400
-X FMLP -Q 0 -L 2 46 175
-X FMLP -Q 1 -L 1 33 175
-X FMLP -Q 1 -L 1 29 100
-X FMLP -Q 1 -L 1 26 125
-X FMLP -Q 2 -L 1 23 300
-X FMLP -Q 2 -L 1 20 100
-X FMLP -Q 2 -L 1 15 175
-X FMLP -Q 3 -L 1 14 100
-X FMLP -Q 3 -L 1 14 150
-X FMLP -Q ... | [
"[email protected]"
] | |
8b8b3facdeca2ad375851d0e4af14adaf96a11b5 | f547959acabd13b3a6419fc149573fbf961b4cad | /examples/make_rkoc_python.py | dac1bfa7a52c0b2b4662dd33727b3a462a5e21de | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | ketch/nodepy | b69fc85c52993f8872ae9fcad52a5082c0edc0eb | a78dd5c5021a0dbf7952c3614996315dbed5a642 | refs/heads/master | 2023-07-11T18:47:35.839942 | 2023-06-22T18:02:21 | 2023-06-26T14:03:44 | 4,030,392 | 57 | 18 | NOASSERTION | 2023-06-26T14:03:46 | 2012-04-15T06:59:24 | Python | UTF-8 | Python | false | false | 939 | py | #Make python script to evaluate order conditions
#for RK methods
from nodepy import rooted_trees as rt
from nodepy import runge_kutta_method as rk
p_max=15
f=open('oc_butcher.py','w')
f.write("def order(rk,tol=1.e-13):\n")
f.write(" from numpy import dot,zeros,all,sum,abs\n")
f.write(" coneq = zeros((1000))\n... | [
"[email protected]"
] | |
771785779f80f186cbf23c1566cbaec80ec62e62 | 87c77108855bef9e34b9d8dc1ce4eae1e135a3ee | /myfirstkedro/src/myfirstkedro/__init__.py | 3d1336402d80c9a4809a72cdfe7bdcbfbeb04c03 | [] | no_license | YaCpotato/my-kedro-sample | 6715bcb6fe1fd41d5253298b441be8b03094df8d | 9cf12ba36c6fc47b93e8f0abedb31c4f1f186f2d | refs/heads/master | 2023-01-03T02:50:26.567971 | 2020-10-29T14:50:04 | 2020-10-29T14:50:04 | 308,355,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,469 | py | # Copyright 2020 QuantumBlack Visual Analytics Limited
#
# 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
#
# THE SOFTWARE IS PROVIDED "AS IS",... | [
"[email protected]"
] | |
4a3b71538eb6ce0c3b4facba849a1492ed9f347d | bbd3e0c5de108ae790c4ec3cb541c31fec61cca8 | /devil/devil/android/device_utils.py | 271f411a03fe80c7e9d5c0d9ac502839e59bf887 | [
"BSD-3-Clause"
] | permissive | oneumyvakin/catapult | a8e39dd1d63da3f018a05b03ae5e4c8e899ff225 | 69d05ea70e77998c86149ac78044470e3ca364ad | refs/heads/master | 2021-01-25T14:22:00.123474 | 2018-03-02T19:42:21 | 2018-03-02T20:16:09 | 123,683,443 | 0 | 0 | BSD-3-Clause | 2018-03-03T10:52:58 | 2018-03-03T10:52:58 | null | UTF-8 | Python | false | false | 105,450 | py | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Provides a variety of device interactions based on adb.
Eventually, this will be based on adb_wrapper.
"""
# pylint: disable=unused-argument
import cale... | [
"[email protected]"
] | |
c9a49f1bc21897f0928af4cf213aeb52abd7faa1 | 694d57c3e512ce916269411b51adef23532420cd | /leetcode/325maximum_size_subarray_sum_equals_k.py | 9fa88d782d3c6059f19e3c7ea9b11bb698fabf6f | [] | no_license | clovery410/mycode | 5541c3a99962d7949832a0859f18819f118edfba | e12025e754547d18d5bb50a9dbe5e725fd03fd9c | refs/heads/master | 2021-05-16T02:46:47.996748 | 2017-05-10T23:43:50 | 2017-05-10T23:43:50 | 39,235,141 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | class Solution(object):
# brute-force solution, TLE
def maxSubArrayLen(self, nums, k):
max_len = 0
l = len(nums)
for start in xrange(l):
cur_total = 0
for end in xrange(start, l):
cur_total += nums[end]
if cur_total == k:
... | [
"[email protected]"
] | |
bae4523c4207c1bbe212d24575d269a923c31e3d | 96b0473aedcbcd2c656d3c86819a93c5c90c2c9f | /PySideTutorials/modules/QCompleter/QCompleter_custom completer rules.py | 72b79e179e2b970cc1f1ca14892a9a8db44c2683 | [] | no_license | mikebourbeauart/Tutorials | e2e1c48f4268b75bf6add1c4aee286b83886175b | 8a70f0563198bee96fedacfc94d283647f6ccbc7 | refs/heads/master | 2020-04-06T09:03:55.563189 | 2018-02-23T17:02:23 | 2018-02-23T17:02:23 | 64,701,663 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,403 | py | ########################################################################################################################
#
# mb_pandora
# By Mike Bourbeau
# mikebourbeau.com
# 2015
#
# Big thanks to Chris Zurbrigg (especially for taking the time to answer all my questions and steer me in the right direction),
# Jeremy ... | [
"[email protected]"
] | |
e8a1cb972b55943c03fdd95bef0099a28dbfafdd | 79bbc2bf3a12c463bf497a68163d4a15a9290a3f | /src/HackerRank/Sherlock and Anagram.py | d2f7bb8ce1d2302d06336657e995d68b1a676635 | [] | no_license | melodist/CodingPractice | f5cf614f3be07211d0afe02141b7f6848abeaa12 | 96f56c8b4779a8616e6c9b7ad570010e85c89b68 | refs/heads/master | 2023-09-01T08:02:43.090395 | 2023-08-27T13:33:53 | 2023-08-27T13:33:53 | 238,710,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | """
https://www.hackerrank.com/challenges/sherlock-and-anagrams/problem
Using Hashmap
Brute Force Problem
"""
from collections import Counter
def sherlockAndAnagrams(s):
answer = 0
for i in range(1, len(s)):
maps = Counter()
for j in range(0, len(s)-i+1):
maps[''.join(sorted(s[j:i+... | [
"[email protected]"
] | |
9d4fa83496af7ba7a0863416391737f608a652e4 | 8bbeb7b5721a9dbf40caa47a96e6961ceabb0128 | /python3/423.Reconstruct Original Digits from English(从英文中重建数字).py | a00db04715d3f9ea835ea9eaf4b101bbb57ff1fc | [
"MIT"
] | permissive | lishulongVI/leetcode | bb5b75642f69dfaec0c2ee3e06369c715125b1ba | 6731e128be0fd3c0bdfe885c1a409ac54b929597 | refs/heads/master | 2020-03-23T22:17:40.335970 | 2018-07-23T14:46:06 | 2018-07-23T14:46:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,118 | py | """
<p>Given a <b>non-empty</b> string containing an out-of-order English representation of digits <code>0-9</code>, output the digits in ascending order.</p>
<p><b>Note:</b><br />
<ol>
<li>Input contains only lowercase English letters.</li>
<li>Input is guaranteed to be valid and can be transformed to its original di... | [
"[email protected]"
] | |
439d9d3f2ddb0c86de1e761c7094748324c59a5f | 41e2d689522c6929332e36056f651158db59837e | /roman_dictionary.py | dde7d220964b381ed2ffc6d9ec9bd4c7b88842af | [] | no_license | RichardAfolabi/Scientific-Python | 14d39bffe8726dcee83e1a23d35cdb48e0076c3a | efebf6dd40af192b82931b1181299408dd8fde36 | refs/heads/master | 2016-09-02T04:07:45.486906 | 2015-07-10T18:51:14 | 2015-07-10T18:51:14 | 28,725,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,818 | py | """
Roman Dictionary
----------------
Mark Antony keeps a list of the people he knows in several dictionaries
based on their relationship to him::
friends = {'julius': '100 via apian', 'cleopatra': '000 pyramid parkway'}
romans = dict(brutus='234 via tratorium', cassius='111 aqueduct lane')
countryme... | [
"[email protected]"
] | |
c67ded67faf5fa7a4bf3cfe4d6682b5b23e2af51 | b3e3284f3d7b66f237e60fdfb1a37db706363139 | /RST/app/traslado/urls.py | 4a8a4b104ca3de309c7847f59ccd00a33601af8e | [] | no_license | corporacionrst/administracion | 4caf1545c313eb36408850bb4506bbd0bf43d6e6 | 7405442b4f14a589d75a5e04250be123403180ec | refs/heads/master | 2020-04-11T00:04:06.017147 | 2018-12-11T21:46:49 | 2018-12-11T21:46:49 | 161,374,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | from django.urls import path
from .views import solicitar,tienda,stock,agregar,quitar,autorizar,pdf,listar
urlpatterns = [
path('solicitar/',solicitar.as_view(),name="solicitar"),
path('tienda/',tienda.as_view(),name="tienda"),
path('stock/',stock.as_view(),name="stock"),
path('agregar/',agregar.as_vi... | [
"[email protected]"
] | |
bfd72a4ff02cd2ec6f5484ca7cd5efbbc5d52771 | 857fc21a40aa32d2a57637de1c723e4ab51062ff | /CodingInterviews/python/38_tree_depth.py | 2941974551915121365ad463d71545d484d5ffee | [
"MIT"
] | permissive | YorkFish/git_study | efa0149f94623d685e005d58dbaef405ab91d541 | 6e023244daaa22e12b24e632e76a13e5066f2947 | refs/heads/master | 2021-06-21T18:46:50.906441 | 2020-12-25T14:04:04 | 2020-12-25T14:04:04 | 171,432,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | #!/usr/bin/env python3
# coding:utf-8
from helper import TreeNode
class Solution:
def TreeDepth(self, pRoot):
if pRoot is None:
return 0
return max(self.TreeDepth(pRoot.left), self.TreeDepth(pRoot.right)) + 1
if __name__ == "__main__":
"""
1
/ \
2 3
... | [
"[email protected]"
] | |
18de57b350df43f697375c5b245e6dc014626709 | ca954595dd8c89d722b1da49f3bd7e56a1ad9dd2 | /ppo/ppo.py | f3cbde986bb28106969acf335d7d5682abd25567 | [] | no_license | HKU-ICRA/DM_ReinforcementLearning | 1184a16f83919ee00fb72f4797c8d4801ee62866 | dffe5aabd1e26d7ecc7b17452106015962551ebf | refs/heads/master | 2020-08-06T12:01:17.704384 | 2019-11-04T13:17:09 | 2019-11-04T13:17:09 | 212,969,083 | 3 | 1 | null | 2019-10-30T06:06:53 | 2019-10-05T08:42:15 | Python | UTF-8 | Python | false | false | 10,970 | py | import os, sys
import time
import numpy as np
import os.path as osp
from baselines import logger
from collections import deque
from baselines.common import explained_variance, set_global_seeds
try:
from mpi4py import MPI
except ImportError:
MPI = None
from runner import Runner
from model import Model
def con... | [
"[email protected]"
] | |
d5fc5b6db085b46395f79022f2078f51827c0bfa | 63e2bed7329c79bf67279f9071194c9cba88a82c | /SevOneApi/python-client/swagger_client/models/flow_falcon_setting_v1.py | 1f3cc2c1d10cccb4d001fd3fc36c37a697f41177 | [] | no_license | jsthomason/LearningPython | 12422b969dbef89578ed326852dd65f65ab77496 | 2f71223250b6a198f2736bcb1b8681c51aa12c03 | refs/heads/master | 2021-01-21T01:05:46.208994 | 2019-06-27T13:40:37 | 2019-06-27T13:40:37 | 63,447,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,911 | py | # coding: utf-8
"""
SevOne API Documentation
Supported endpoints by the new RESTful API # noqa: E501
OpenAPI spec version: 2.1.18, Hash: db562e6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class FlowFalconSettingV1(o... | [
"[email protected]"
] | |
8d19db4102d07e5fdfcc362289c71ffbb2079ae9 | dd116fe1e94191749ab7a9b00be25bfd88641d82 | /cairis/cairis/AttackerNodeDialog.py | 66e5c66dbc7112d2c73da0dba0fce3eb93a371ba | [
"Apache-2.0"
] | permissive | RobinQuetin/CAIRIS-web | fbad99327707ea3b995bdfb4841a83695989e011 | 4a6822db654fecb05a09689c8ba59a4b1255c0fc | HEAD | 2018-12-28T10:53:00.595152 | 2015-06-20T16:53:39 | 2015-06-20T16:53:39 | 33,935,403 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,058 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | [
"[email protected]"
] | |
43a4377094245e2463adc28cc427afa15821c112 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/apimanagement/azure-mgmt-apimanagement/generated_samples/api_management_head_product_group.py | f10b2ce0ada4d6b08c1a732b56a318068888bafd | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 1,663 | 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 may ... | [
"[email protected]"
] | |
654403a4269a49135c306d5d732655e2a3609d87 | bc9cb3f0f104778026ca6f3a07595dd5d6ce840f | /PROJETO_FINAL/codigo/core/loadout/oticos/optic.py | e4b5d6bb5479c2c27a5b7d5fbae3b46ac9465325 | [] | no_license | JohnRhaenys/escola_de_ferias | ff7a5d7f399459725f3852ca6ee200486f29e7d4 | 193364a05a5c7ccb2e5252c150745d6743738728 | refs/heads/master | 2023-01-12T11:30:46.278703 | 2020-11-19T14:59:10 | 2020-11-19T14:59:10 | 314,278,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | from pydub import AudioSegment
from pydub.playback import play
class Optic:
def __init__(self, name, color):
self.name = name
self.color = color
def make_sound(self, audio_file_path):
audio = AudioSegment.from_mp3(audio_file_path)
play(audio)
def __str__(self):
re... | [
"[email protected]"
] | |
6574753bed014a63ce252017aa322bdde279e822 | 37c243e2f0aab70cbf38013d1d91bfc3a83f7972 | /pp7TeV/HeavyIonsAnalysis/JetAnalysis/python/jets/akPu5CaloJetSequence_pPb_data_bTag_cff.py | 7a84c061532b4aafa349e43e7a825c503c57021d | [] | no_license | maoyx/CMSWork | 82f37256833cbe4c60cb8df0b4eb68ceb12b65e7 | 501456f3f3e0f11e2f628b40e4d91e29668766d5 | refs/heads/master | 2021-01-01T18:47:55.157534 | 2015-03-12T03:47:15 | 2015-03-12T03:47:15 | 10,951,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,051 | py |
import FWCore.ParameterSet.Config as cms
from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import *
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
from HeavyIonsAnalysis.JetAnalysis.bTaggers_cff import *
from RecoJets.JetProducers.JetIDParams_cfi import *
akPu5Calomatch = patJetGenJetMatch.cl... | [
"[email protected]"
] | |
1fde89f76c9bb7e830b737c97a05c2db20bdc605 | fcb0480812b806b2383b5ddba781bdb157e5d580 | /backend/inByulGram/models.py | 93b5815910b2283490c7b6772ee90e6c54c649cb | [] | no_license | bunnycast/inByulGram | f576126a7028f340244f60cbe58bfbc46d114412 | 54af7629f60ef87a6a0238466b34720536616b19 | refs/heads/master | 2023-03-14T09:52:26.984478 | 2021-03-05T14:12:43 | 2021-03-05T14:12:43 | 341,405,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,741 | py | import re
from django.conf import settings
from django.db import models
from django.urls import reverse
class TimeStampedModel(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
class Meta:
abstract = True
class Post(TimeStamped... | [
"[email protected]"
] | |
6b1f4ed165609e436d377590f34a8a963e68547f | 5ceea4106e0df754ae581c1f5e2d16082d7b6386 | /hackerRank/data-structures/arrays/arrays-ds.py | 06ca1a9cd3c7a7ac82b9c0bd94010dbf94d9361b | [] | no_license | vikramlance/Python-Programming | b0d4bd70145bfaa7a66434656c5970fbc57e8bd3 | 4094961e3c613e33f2d8a6d30281c60ed09d8c80 | refs/heads/master | 2022-06-17T00:58:50.646615 | 2022-06-03T03:39:35 | 2022-06-03T03:39:35 | 53,989,511 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | '''
https://www.hackerrank.com/challenges/arrays-ds
'''
#!/bin/python
import sys
n = int(raw_input().strip())
arr = map(int,raw_input().strip().split(' '))
print ' '.join(map(str, arr[::-1]))
| [
"[email protected]"
] | |
85147248b7b7d4b6ec887b871bff81793d2dc7bd | c2ec70be9ffbf29e779bcda8b491f96973cb1a39 | /chapter_06/chapter_6_6_5.py | d67b624e1e184320e5a97db0e4c695bcf8440400 | [] | no_license | panlourenco/exercises-coronapython | 8ef4f805fcdcc77686b5f325da6c8629106bac3c | 9ccb80a33f9ec1a23123d20147225338c7e476bc | refs/heads/master | 2022-12-09T22:56:59.676366 | 2020-09-06T17:35:56 | 2020-09-06T17:35:56 | 257,653,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | # 6-5. Rivers:
rivers = {
'nile': 'egypt',
'mississippi': 'united states',
'seine': 'france',
'vistula': 'poland',
'Amazonas': 'brasil',
}
for river, country in rivers.items():
print("The " + river.title() + " flows through " + country.title() + ".")
print("\nThe following rivers are incl... | [
"[email protected]"
] | |
fe7a4edce117c23fb54632a7523492a7efe36909 | 9777ae10e1ec0a5e55e66ae71e2430eaa16ff891 | /tests/q01b.py | 9cdef7d217fd3e733970e1d5bc04197378d40979 | [] | no_license | jkuruzovich/final-starter-2019 | 175f5c65a295112c27c9240c3b14660a2669a875 | 8eed585ce4d4739548c5b3d0dfc82dd63ac3a2ec | refs/heads/master | 2022-03-14T18:43:47.639034 | 2019-12-09T20:15:52 | 2019-12-09T20:15:52 | 184,331,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | test = {
'name': '1b',
'points': 1,
'suites': [
{
'cases': [
{
'code': r"""
>>> "{0:.4f}".format(round( cost_ny,4))
'15.1882'
""",
'hidden': False,
'locked': False
}
],
'scored': True,
'setup': '',
'teard... | [
"[email protected]"
] | |
46592bd7353b194e91fdbd40140bbbd8ff92a6ab | cc7474d52cfcd124f2ddd4ad4a2cad1d2868bd80 | /unispider/spiders/ppai_scrapy.py | 93b603d685865a4fd45b5ee6a87122cd850af6aa | [] | no_license | yidun55/unispider | 212e81ed49a5bb9ed219cdab8215256bf16694f1 | aa8d826707baedf56028e6307f590458ed683e8d | refs/heads/master | 2020-05-18T16:31:58.346600 | 2015-10-28T13:37:09 | 2015-10-28T13:37:09 | 39,058,048 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,986 | py | #coding:utf-8
"""
从拍拍贷上爬取网贷黑名单
author: 邓友辉
email:[email protected]
date:2015/06/10
"""
from scrapy.utils.request import request_fingerprint
from scrapy.spider import Spider
from scrapy.http import Request
from scrapy import log
from scrapy import signals
import time
from unispider.items import *
import sy... | [
"[email protected]"
] | |
394ca5aa490425423f8b5baa05b50dee4488b340 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_052/ch80_2020_06_20_18_56_40_883079.py | 2b0e0c4b3e47da4c259cad01dc2cf476c5c8eca5 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | def interseccao_chaves (dicionario, dic):
lista = []
a = dicionario.keys()
b = dic.keys()
if a in dic:
lista.append(a)
if b in dicionario:
lista.append(b)
return lista
| [
"[email protected]"
] | |
723544710160d738e96bc643094c89f86919f4c0 | 69dc65bc9e0c9d30a5b3c1cf72d6e51fa07fa44b | /optimization/train_op.py | 4168b9ed8002e0a5337f6a9d754f048e252dd109 | [] | no_license | xljhtq/SeqGAN | 68e2ef3bee7ae4c581cd0392a3a187b05626f18c | 30882edf4eaefc25754d09d35e430c9a7c04f5cb | refs/heads/master | 2020-03-26T05:59:58.545614 | 2018-09-04T12:41:40 | 2018-09-04T12:41:40 | 144,584,798 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,473 | py | ## encoding=utf8
import sys
import numpy as np
import tensorflow as tf
import random
from dataloader import Gen_Data_loader, Dis_dataloader
from generator_op import Generator
from discriminator import Discriminator
from rollout_op import ROLLOUT
import vocab_utils
import os
###########################################... | [
"[email protected]"
] | |
009137a3b61958b2ef9248924a5c5b51fbd40a96 | 0822d36728e9ed1d4e91d8ee8b5ea39010ac9371 | /robo/pages/goias/oanapolis.py | b5cc50ea54d8600f47c59fd1327281db8bd8b173 | [] | no_license | diegothuran/blog | 11161e6f425d08bf7689190eac0ca5bd7cb65dd7 | 233135a1db24541de98a7aeffd840cf51e5e462e | refs/heads/master | 2022-12-08T14:03:02.876353 | 2019-06-05T17:57:55 | 2019-06-05T17:57:55 | 176,329,704 | 0 | 0 | null | 2022-12-08T04:53:02 | 2019-03-18T16:46:43 | Python | UTF-8 | Python | false | false | 637 | py | # coding: utf-8
import sys
sys.path.insert(0, '../../../blog')
from bs4 import BeautifulSoup
import requests
GLOBAL_RANK = 2969356
RANK_BRAZIL = 62956
NAME = 'oanapolis.com.br'
def get_urls():
try:
urls = []
link = 'http://oanapolis.com.br/'
req = requests.get(link)
noticias = Be... | [
"[email protected]"
] | |
9772a0e3675f402d54ce680f87aaf70c21ed6d41 | 239dc36bc1042b5b99bdd1a72aaedeef22327083 | /EionetLDAP/__init__.py | 3f357b41cf398c1bcf42b3cacaaa10d4f88d9d96 | [] | no_license | eaudeweb/EionetProducts | d67c8627317548d17e9662da8d00d4b71a894774 | da85b0001b994cdc6d94d481fd020de69fc10f63 | refs/heads/master | 2021-01-10T20:04:12.867465 | 2011-05-09T13:45:17 | 2011-05-23T13:24:11 | 2,135,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,128 | py | # The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, W... | [
"[email protected]"
] | |
2e45ed946ff60dd2b0f5abeae6e510dd73e3d67f | 16734d189c2bafa9c66fdc989126b7d9aa95c478 | /Python/small-projects/make_dictionary.py | 6c17de909dd3b4d6068513f34ef23f19786613ed | [] | no_license | Ericksmith/CD-projects | 3dddd3a3819341be7202f11603cf793a2067c140 | 3b06b6e289d241c2f1115178c693d304280c2502 | refs/heads/master | 2021-08-15T17:41:32.329647 | 2017-11-18T01:18:04 | 2017-11-18T01:18:04 | 104,279,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | name = ["Anna", "Eli", "Pariece", "Brendan", "Amy", "Shane", "Oscar"]
favorite_animal = ["horse", "cat", "spider", "giraffe", "ticks", "dolphins", "llamas", 'corgi']
def make_dict(arr1, arr2):
new_dict = {}
if len(arr1) < len(arr2):
big = arr2
small = arr1
else:
big = arr1
s... | [
"[email protected]"
] | |
723addda30f29f8f7f246fcf493c78b96472cb12 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/eventhub/v20140901/outputs.py | 0ebdc673b5e80e5109e83bebd9559fc888bd6218 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 1,725 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"[email protected]"
] | |
5dc00e8bf125c32f5ce8a34eea869cdd95a2d6a6 | 0d392fa6e594279ef193597a36fde65c341cf7c5 | /test.py | f80d7b9718267ea298ad2ec5ce51717e1af7a19e | [] | no_license | chimtrangbu/DoorToDoor | a0d542f99f04ec3e5774e8cd49b478e731f4568f | 88891be30ef6aac8714b0fa41d575db47ed7de7d | refs/heads/master | 2020-04-15T04:11:22.943176 | 2019-01-07T03:52:42 | 2019-01-07T03:52:42 | 164,374,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,854 | py | from math import sqrt
from sys import argv
class Node():
'''
each Node object holding each city's coordinates
cal_distance: calculating distance between this Node and another Node
'''
def __init__(self, name, x, y):
self.name = name
self.x = x
self.y = y
def cal_dista... | [
"[email protected]"
] | |
ae2e1039ec5d63e87258338ed7b25d82ab0a6aad | 30fe7671b60825a909428a30e3793bdf16eaaf29 | /.metadata/.plugins/org.eclipse.core.resources/.history/33/b0033d0a4ffa00161174a93fd5908e78 | e27685ffa45504a46e820c64ac565614f01f195a | [] | no_license | abigdream84/PythonStudy | 0fc7a3b6b4a03a293b850d0ed12d5472483c4fb1 | 059274d3ba6f34b62ff111cda3fb263bd6ca8bcb | refs/heads/master | 2021-01-13T04:42:04.306730 | 2017-03-03T14:54:16 | 2017-03-03T14:54:16 | 79,123,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | #!/usr/bin/env python
#coding:UTF-8
from audit_demo.utility.MySqlHelper import MySqlHelper
class s_table(object):
def __init__(self):
self.__helper = MySqlHelper()
def add_ser(self,sername):
sql = 'insert into s_table(s_name,s_ip) values(%s)'
params = (username,)
try:
... | [
"[email protected]"
] | ||
8920f9bea0a12cc6d1d38a9f94aab9488afa66c8 | 0d5be86072e92da0b5c086ec42bbfeeb6c1cf367 | /tiny_tokenizer/word_tokenizers/mecab_tokenizer.py | c71164572d6df24cc3025c58ac1e64e53f7a0a04 | [
"MIT"
] | permissive | chie8842/tiny_tokenizer | d04eab4115daba443f83647a332177dcce5c9b19 | 6599873c050f4e064c88381688d8476346b57099 | refs/heads/master | 2020-07-25T18:57:15.545717 | 2019-09-12T15:39:42 | 2019-09-12T15:39:42 | 208,393,571 | 0 | 0 | MIT | 2019-09-14T05:26:24 | 2019-09-14T05:26:23 | null | UTF-8 | Python | false | false | 1,655 | py | from typing import Optional
from tiny_tokenizer.tiny_tokenizer_token import Token
from tiny_tokenizer.word_tokenizers.tokenizer import BaseTokenizer
class MeCabTokenizer(BaseTokenizer):
"""Wrapper class forexternal text analyzers"""
def __init__(
self, dictionary_path: Optional[str] = None, with_pos... | [
"[email protected]"
] | |
11607fcc0a5e114881fa435009ca3febe204f661 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/uzv.py | 6468252550a7167a4125e9595ad33c5dccc3d2aa | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"[email protected]"
] | |
0d591e3d250f5c8491dadeedc5a9c343ffd4224f | 23acc991e4b6e96aa9ac0898ef59831009442a7e | /pygazebo/msg/plugin_pb2.py | 7d2abf0447c68650685d40f2e751334f023e302f | [
"Apache-2.0"
] | permissive | kunaltyagi/pygazebo | f07ee8c3a790095b66e074b0afa698c15a823d6a | 4cd163f4efec5a6f672445de939385bf8a9156e1 | refs/heads/master | 2021-01-16T20:28:55.059663 | 2014-06-04T10:06:56 | 2014-06-04T10:06:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 2,176 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
from google.protobuf import descriptor
from google.protobuf import message
from google.protobuf import reflection
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)
DESCRIPTOR = descriptor.FileDescriptor(
name='plugin.proto',
... | [
"[email protected]"
] | |
717d112a2b418a4f6c234f761f9bbf96d26b3535 | 753a70bc416e8dced2853f278b08ef60cdb3c768 | /models/official/r1/mnist/mnist_test.py | 87e0571234ac91fa0192c8ca65353a890ce0a363 | [
"MIT",
"Apache-2.0"
] | permissive | finnickniu/tensorflow_object_detection_tflite | ef94158e5350613590641880cb3c1062f7dd0efb | a115d918f6894a69586174653172be0b5d1de952 | refs/heads/master | 2023-04-06T04:59:24.985923 | 2022-09-20T16:29:08 | 2022-09-20T16:29:08 | 230,891,552 | 60 | 19 | MIT | 2023-03-25T00:31:18 | 2019-12-30T09:58:41 | C++ | UTF-8 | Python | false | false | 4,740 | py | # Copyright 2017 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 applica... | [
"[email protected]"
] | |
5a9a226de42291f1f90430012f72aa1d128fea00 | aaa4eb09ebb66b51f471ebceb39c2a8e7a22e50a | /Lista 08/exercício 05.py | d60d2357f70d2d5edfb22beaaf828ffda4ce7614 | [
"MIT"
] | permissive | Brenda-Werneck/Listas-CCF110 | c0a079df9c26ec8bfe194072847b86b294a19d4a | 271b0930e6cce1aaa279f81378205c5b2d3fa0b6 | refs/heads/main | 2023-09-03T09:59:05.351611 | 2021-10-17T00:49:03 | 2021-10-17T00:49:03 | 411,115,920 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | #Crie um algoritmo que leia os elementos de uma matriz inteira 10 x 10 e escreva somente os elementos acima da diagonal principal.
matriz = [[0 for i in range(10)] for j in range(10)]
for i in range(10):
for j in range(10):
matriz[i][j] = int(input(f"Digite o valor para o índice ({i},{j}): "))
for i in ra... | [
"[email protected]"
] | |
9df870310f7741f1840bdb5a4722de6f5e914631 | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /P.O.R.-master/pirates/leveleditor/worldData/tortuga_area_cave_b_1.py | cd44a96180dfdd7bb87decb582ce21f2652bccc6 | [] | no_license | BrandonAlex/Pirates-Online-Retribution | 7f881a64ec74e595aaf62e78a39375d2d51f4d2e | 980b7448f798e255eecfb6bd2ebb67b299b27dd7 | refs/heads/master | 2020-04-02T14:22:28.626453 | 2018-10-24T15:33:17 | 2018-10-24T15:33:17 | 154,521,816 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 142,242 | py | from pandac.PandaModules import Point3, VBase3, Vec4
objectStruct = {
'Interact Links': [
[
'1165198380.77Shochet',
'1165198398.22Shochet',
'Bi-directional'],
[
'1165198750.63Shochet',
'1174696064.0dxschafe',
'Bi-directional'],
... | [
"[email protected]"
] | |
327809a84718295084f6dd6659765fe2618759b4 | 2c4648efe8c7e408b8c3a649b2eed8bb846446ec | /codewars/Python/8 kyu/RegexCountLowercaseLetters/lowercase_count_test.py | 9963e8b814750d42a58eaf4ce0dbc591bce0db78 | [] | no_license | Adasumizox/ProgrammingChallenges | 9d79bd1b0ce4794b576124f9874aabb86d5c0713 | 3630fcde088d7991e344eb1b84805e9e756aa1a2 | refs/heads/master | 2021-07-16T08:16:57.538577 | 2020-07-19T19:58:28 | 2020-07-19T19:58:28 | 190,159,085 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | from lowercase_count import lowercase_count
import unittest
class TestRegexCountLowercaseLetters(unittest.TestCase):
def test(self):
self.assertEqual(lowercase_count("abc"), 3)
self.assertEqual(lowercase_count("abcABC123"), 3)
self.assertEqual(lowercase_count("abcABC123!@#$%^&*()_-+=}{[... | [
"[email protected]"
] | |
5b7258bca0fe5638af4081a60d47911f67d42a7e | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.2/tests/regressiontests/forms/localflavor/pl.py | 96703fa07504708d232ea59784853cb85214537f | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.2/tests/regressiontests/forms/localflavor/pl.py | [
"[email protected]"
] | |
74d581b1542990d6c95912aba7444715cb02de7c | a350e6471598e8518f639fcff50511c35a94bceb | /docker/FlaskFileSystem/file_system.py | 7b25c3b28c8fc371e8106f681690523fa29af01a | [
"MIT"
] | permissive | WooodHead/bearing_project | 2e26602c326f703869e13bf84cecba95edff59fa | ca64b04dad7010620414e37b2c7923fd904a0f11 | refs/heads/master | 2022-04-20T16:03:35.179584 | 2020-04-15T18:23:24 | 2020-04-15T18:23:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,332 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: zhanghe
@software: PyCharm
@file: file_system.py
@time: 2020-04-14 15:03
"""
# source .venv/bin/activate
# export FLASK_APP=file_system.py
# flask run -h 0.0.0.0
# * Running on http://127.0.0.1:5000/
from __future__ import unicode_literals
import os
from flask ... | [
"[email protected]"
] | |
fcee90732903a5d69df706143389337770cdb896 | c498cefc16ba5d75b54d65297b88357d669c8f48 | /static/datapack/data/scripts/quests/357_WarehouseKeepersAmbition/__init__.py | aaf1920475142e8f04ed667ebd0cdf21258eec6d | [] | no_license | ManWithShotgun/l2i-JesusXD-3 | e17f7307d9c5762b60a2039655d51ab36ec76fad | 8e13b4dda28905792621088714ebb6a31f223c90 | refs/heads/master | 2021-01-17T16:10:42.561720 | 2016-07-22T18:41:22 | 2016-07-22T18:41:22 | 63,967,514 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,467 | py | # Made by disKret
# Rate fix by Gnat
import sys
from ru.catssoftware import Config
from ru.catssoftware.gameserver.model.quest import State
from ru.catssoftware.gameserver.model.quest import QuestState
from ru.catssoftware.gameserver.model.quest.jython import QuestJython as JQuest
qn = "357_WarehouseKeepersAmbition"
... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.