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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
676a8d4121ad27fd5bfa82844f08c833b388178c | ffab02cf7e1213f91923cb1343cef4616a7de5a7 | /venv/bin/isort | 6d23f4819e78f95b81f0dc605acf081309c42fe5 | [] | no_license | mornville/flask_blog | 4e50d6c3f835274589b278ce14f2f445b691b087 | bf66060f3f519170e3d4865e6d85b6543359e9b0 | refs/heads/master | 2021-12-28T08:27:04.556959 | 2019-10-01T14:57:09 | 2019-10-01T14:57:09 | 203,522,537 | 0 | 0 | null | 2021-12-13T20:16:58 | 2019-08-21T06:37:56 | Python | UTF-8 | Python | false | false | 251 | #!/Users/ashutoshjha/Desktop/flask_blog/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from isort.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"aj97389@gmail.com"
] | aj97389@gmail.com | |
1dffe5f62462692c17b0917a0d9f33174704c851 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/1215.py | 2727d86b5e032b798fe4ae7360d004c88b3cc807 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | def tidy(n):
a = list(str(n))
if len(a)>=2:
for i in range(len(a)-1):
if a[i]>a[i+1]:
a[i] = str(int(a[i])-1)
for j in range(i+1, len(a)):
a[j] = '9'
a = ''.join(a)
out = int(a)
return out
def check_tidy(n):
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
8f58e730976b0a677b30bf61b7b99c9ee4cc60a3 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnaiddecamp.py | 19e17d66f304241ad72952f45ad26016da559867 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 139 | py | ii = [('MarrFDI3.py', 1), ('ClarGE2.py', 19), ('ClarGE.py', 2), ('WadeJEB.py', 1), ('SoutRD.py', 1), ('ThomGLG.py', 1), ('MackCNH2.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
93149bb3a6b9892081504d75a719a82d1a7fa2e1 | f0a44b63a385e1c0f1f5a15160b446c2a2ddd6fc | /examples/transform_cube.py | f9f45274bed9265c28b79a03dfd4e3ccccfa5ad1 | [
"MIT"
] | permissive | triroakenshield/ezdxf | 5652326710f2a24652605cdeae9dd6fc58e4f2eb | 82e964a574bcb86febc677bd63f1626318f51caf | refs/heads/master | 2023-08-17T12:17:02.583094 | 2021-10-09T08:23:36 | 2021-10-09T08:23:36 | 415,426,069 | 1 | 0 | MIT | 2021-10-09T21:31:25 | 2021-10-09T21:31:25 | null | UTF-8 | Python | false | false | 1,407 | py | # Copyright (c) 2020-2021 Manfred Moitzi
# License: MIT License
from pathlib import Path
import math
import ezdxf
from ezdxf import zoom
from ezdxf.math import UCS
DIR = Path("~/Desktop/Outbox").expanduser()
p = [
(0, 0, 0),
(1, 0, 0),
(1, 1, 0),
(0, 1, 0),
(0, 0, 1),
(1, 0, 1),
(1, 1, 1)... | [
"me@mozman.at"
] | me@mozman.at |
40c80298125d22d148038ffefb051f1a267a1a50 | 6e3b8a04a074c30cf4fc43abe7a208f772df795b | /Mid-Exam/2-task.py | 58c67fe8bae90b41f94cde4ab24bb1499bf056e6 | [] | no_license | majurski/Softuni_Fundamentals | dc0808fdaab942896eebfb208fb6b291df797752 | bf53a9efdcb45eb911624ab86d762a6281391fb8 | refs/heads/master | 2022-11-29T06:06:06.287984 | 2020-08-10T19:36:18 | 2020-08-10T19:36:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | arr = input().split()
new_arr = list(map(int, arr))
result = []
line = input()
while line != "end":
value = line.split()
command = value[0]
if command == "swap":
index_1 = int(value[1])
index_2 = int(value[2])
new_arr[index_1], new_arr[index_2] = new_arr[index_2], new_arr[index_1]
... | [
"noreply@github.com"
] | majurski.noreply@github.com |
72791e17e71456aade20cc9cc4e32de6523e144b | 34f5146e25144d4ceced8af38b5de2f8fff53fdd | /ui/mainwindow.py | 158a3002e7c464033c18697b89cd33491f8128a1 | [] | no_license | fadiga/mstock | 3271eeb0b8339b27347bbb70b96bc1f161ed6901 | a5f621ed58bd881d9a232498ef23762a5f9c186f | refs/heads/master | 2021-05-25T11:56:28.430965 | 2017-09-25T19:08:27 | 2017-09-25T19:08:27 | 39,653,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | #!/usr/bin/env python
# -*- coding: utf8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
# maintainer: Fad
from __future__ import (
unicode_literals, absolute_import, division, print_function)
from PyQt4.QtGui import QIcon
from PyQt4.QtCore import Qt
from Common.ui.common import FMainWindow, QToolBadgeButton
from ui.menut... | [
"ibfadiga@gmail.com"
] | ibfadiga@gmail.com |
1e97caa9740ddd276af8721952d53c64e6237066 | de8b832a3c804837300b9974dc0151d9294fa573 | /code/experiment/GenderSoundNet/ex18_1_1_1_1_1_1_1_1_1_1_1_1_1_1/genderSoundNet.py | d318188bf1b8d63c08f77854ab0b089a4eff19a9 | [] | no_license | YuanGongND/Deep_Speech_Visualization | fcff2ac93e5adffd707b98eb7591f50fe77c1274 | 73a79e3596d9a5ee338eafb9a87b227696de25d1 | refs/heads/master | 2021-07-19T23:00:36.294817 | 2017-10-28T01:04:59 | 2017-10-28T01:04:59 | 105,332,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,377 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Aug 26 21:03:04 2017
Conduct erxperiment on IEMOCAP, three labels:
96001: emotion(0-4, 5 = other emotions)
96002: speaker(0-9)
96003: gender(male=0, female=1)
@author: Kyle
"""
import os
from sys import argv
_, newFolderName, gpuI = argv
os.environ["... | [
"ygong1@nd.edu"
] | ygong1@nd.edu |
3eb21352e9d9a3dcc23572a98430da9b90e4f9aa | db818127b373da9d88583e717f184f483a1f844d | /instruction_env/Lib/site-packages/numpydoc/tests/test_validate.py | b7127ce2012e8419e79f0df9f71e724b944e2723 | [
"MIT"
] | permissive | lfunderburk/Effective-Instructions | 4af5a763b5021668abd6d37f1d860eeff07bfee8 | ce40f890fb8623ff1ec9c3e9e1190505cbd1e6db | refs/heads/main | 2023-04-14T22:43:48.363281 | 2021-04-26T05:40:19 | 2021-04-26T05:40:19 | 331,163,652 | 0 | 0 | MIT | 2021-04-26T05:40:22 | 2021-01-20T01:58:52 | null | UTF-8 | Python | false | false | 32,871 | py | import pytest
import numpydoc.validate
import numpydoc.tests
validate_one = numpydoc.validate.validate
class GoodDocStrings:
"""
Collection of good doc strings.
This class contains a lot of docstrings that should pass the validation
script without any errors.
See Also
--------
AnotherC... | [
"hanh.tong@tap.work"
] | hanh.tong@tap.work |
4e98cba026ffbfa488d602586ed1fb56b70a4b3e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/117/usersdata/168/26292/submittedfiles/al2.py | 2636de789a2d58357263296f2d1affdab045e0ff | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | from __future__ import division
#INICIE SEU CDIGO AQUI
n=float(input('Digite n'))
n1=int(n)
n2=n-int
print('%.2f'%n1)
print('%.2f'%n2)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
1872c2b02787510ea089a882647d262201237e43 | e7f708af4b599ec6763e0d3b311e2cb47cc155d8 | /payments/admin.py | f69953885eba02d24436b82c8477468a8e0d0cfd | [] | no_license | dmontoya1/tu-licencia | d48bc8779d8cda50c7a382cb1c14e2ae3668ebc8 | d436d665ba797d7b90fcdcc58bcef3e79b917682 | refs/heads/master | 2023-05-14T16:38:52.408066 | 2020-06-08T20:24:39 | 2020-06-08T20:24:39 | 371,433,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
# from .models import Invoice
# class InvoiceAdmin(admin.ModelAdmin):
# list_display = ('__unicode__', 'user', 'release_date', 'is_discharged', 'payment_status')
# readonly_fields = ('release_date', )
# sea... | [
"dmontoya@apptitud.com.co"
] | dmontoya@apptitud.com.co |
015f94220909b436deb31345160eebc80132c586 | 3ab1f37b4372d0796c85ef24343dd8c03accb6ef | /OddEvenLinkedList.py | 5004fdb3d7cf1ccbd577d641dc11c9e1fe6a488c | [] | no_license | Blossomyyh/leetcode | 2be6a99534801fc59fe9551317ca49c3704b1c3d | 38615779eb43d147587467e11dc22761ac0726cb | refs/heads/master | 2023-01-22T16:56:26.624677 | 2020-11-20T13:47:43 | 2020-11-20T13:47:43 | 266,845,278 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
class Solution:
def oddEvenList(self, head: ListNode) -> ListNode:
if not head or head.next == None: return head
odd, even, second = head, head.next, head.... | [
"blossomyyh@163.com"
] | blossomyyh@163.com |
b4aec3c94de4ef1c9d0804e58f30aa47e9eeb51c | 22c6303398fe9d3a01ea2e2dee56a7c51ffb8106 | /src/StyleVarPane.py | caec6f9ba7540e07c20e8041d2bf85d34f9bbcfc | [] | no_license | prrg/BEE2.4 | 07c3d96b58bda8d7b4383d46778d01bcf970a5e4 | ffd30eb140e04db781229b27992aaed4385b438b | refs/heads/master | 2020-04-01T18:45:12.625402 | 2018-10-04T05:28:13 | 2018-10-04T05:28:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,859 | py | from tkinter import *
from tk_tools import TK_ROOT
from tkinter import ttk
from collections import namedtuple
import functools
import operator
import img as png
from BEE2_config import GEN_OPTS
from SubPane import SubPane
import packageLoader
import tooltip
import utils
import itemconfig
from typing import Union
s... | [
"spencerb21@live.com"
] | spencerb21@live.com |
4e69526e2f22b9e6ead9e0673d893c9460e3b570 | fc1cc515a65e844705cc6262a70cd0a12ce1d1df | /math/0x00-linear_algebra/2-size_me_please.py | f9800d2c3bc375d8df09bd35e4d0cfd25402da82 | [] | no_license | yulyzulu/holbertonschool-machine_learning | 4f379a4d58da201e8125bd8d74e3c9a4dfcf8a57 | d078d9c1c5bd96730a08d52e4520eb380467fb48 | refs/heads/master | 2022-12-26T12:01:25.345332 | 2020-10-03T03:19:05 | 2020-10-03T03:19:05 | 279,392,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | #!/usr/bin/env python3
""" Module to execute function """
def matrix_shape(matrix):
"""Function that calculates the shape of a matrix"""
shape = []
shape.append(len(matrix))
while type(matrix[0]) == list:
matrix = matrix[0]
shape.append(len(matrix))
return shape
| [
"yulyzulu05@gmail.com"
] | yulyzulu05@gmail.com |
9ca06377d8cd9fbe39082bfb3d7983c1eb7ddd2c | 6b27c39edc10b1353104043b7a523f4981c99ef2 | /pytype/tools/merge_pyi/test_data/stars.pep484.py | 56d6529efedb9cc54e761bdb5952bafc66cde7b3 | [
"Apache-2.0",
"MIT"
] | permissive | google/pytype | ad0ff0b6c1083b4f0a1af1747869d422f2b5f4d8 | bda0b9547af9a084bb2bd1427f58dcde968e48b5 | refs/heads/main | 2023-08-26T17:52:23.546035 | 2023-08-24T22:48:00 | 2023-08-24T22:48:00 | 32,483,713 | 4,595 | 367 | NOASSERTION | 2023-09-13T04:40:45 | 2015-03-18T20:52:08 | Python | UTF-8 | Python | false | false | 288 | py | def f1(*a):
pass
def f2(**a):
pass
def f3(a, *b):
pass
def f4(a, **b):
pass
## arg with default after *args is valid python3, not python2
def f5(*a, b=1):
pass
def f6(*a, b=1, **c):
pass
def f7(x=1, *a, b=1, **c):
pass
def f8(#asd
*a):
pass
| [
"rechen@google.com"
] | rechen@google.com |
eacef7a09f8311f33624a9f5acb965d5ec877336 | 7d8022661a756f77f715ee4d099fb17cb9da671a | /engine/data_loader.py | 6e92e9d69aff6df248ddbe721e11db9904459073 | [] | no_license | lxj0276/Quant-Util | a7d70d88fc47eb16a08149faefa7b128c01c670e | 2706ecba72a293ee01105ad22508a8d6b20e1394 | refs/heads/master | 2020-04-25T13:40:36.700892 | 2018-10-15T04:35:54 | 2018-10-15T04:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,979 | py | import os
from collections import OrderedDict
import pandas as pd
from engine.cons import *
from engine.utils import get_calendar
from feature.time import TimeRange
from mongoapi.get_data import get_day_trade_data
from redis_cache.rediscache import cache_it_pickle
class pricing_data_loader:
def __init__(self, lo... | [
"zhangzc@pku.edu.cn"
] | zhangzc@pku.edu.cn |
7c38dda3f18562b3df7eecb78e86f2712b212369 | b5d72e68c3976766a7adfd1fa33f778a5268c84a | /Regex/ex1.py | 35628e29ded201a4fa05a049420dc39525ee29d4 | [] | no_license | LizinczykKarolina/Python | 4a2fb0e7fb130c86239b2666fb346bf35a8e655b | 7f4a3a9cba15fd2b4c7a104667461b3c49f8b757 | refs/heads/master | 2021-06-18T21:43:52.983557 | 2017-06-17T21:24:01 | 2017-06-17T21:24:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | #1. Write a Python program to check that a string contains only a certain set of characters (in this case a-z, A-Z and 0-9).
import re
email_address = 'wieczorek.karolina1@o2.pl'
searchObj = re.search(r'[a-zA-Z0-9.]', email_address, re.M | re.I)
if searchObj:
print True
else:
print False
"sxdupa1" -match ... | [
"wieczorek.karolina1@o2.pl"
] | wieczorek.karolina1@o2.pl |
f3ae22f885b78d753d9dbc851fea38a065e80d88 | 9fc768c541145c1996f2bdb8a5d62d523f24215f | /code/HomeWork/ch5/H_5_4.py | a92df699ef2667ea9bcb8c973b7297b29db61309 | [] | no_license | jumbokh/pyclass | 3b624101a8e43361458130047b87865852f72734 | bf2d5bcca4fff87cb695c8cec17fa2b1bbdf2ce5 | refs/heads/master | 2022-12-25T12:15:38.262468 | 2020-09-26T09:08:46 | 2020-09-26T09:08:46 | 283,708,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | # H_5_4.py 功能:輸入數字後判斷是否為11的倍數
num_even = 0 # 儲存偶數位數字暫存
num_odd = 0 # 儲存奇數位數字暫存
number = str(input('請輸入數字 : '))
l = len(number) # 判斷輸入數字之長度
x = int(number) # 轉換成數值型態
for n in range(l,0,-1):
y = x//(10**(n-1)) # 計算奇偶位數字
x = x - (y*(10**(n-1)))
if n%2 == 0: # 判斷若是偶數位數字則儲存在偶數位暫存,反之存奇數位暫存
num_even = nu... | [
"jumbokh@gmail.com"
] | jumbokh@gmail.com |
6eeb30afedb9faf5956630200d67199cef30815d | 2a4a17a67b9069c19396c0f8eabc8b7c4b6ff703 | /BGP3D/Chapter11/WorldClass_00.py | 2cd366287c64b1790280d87dd425c04951cc0271 | [] | no_license | kaz101/panda-book | 0fa273cc2df5849507ecc949b4dde626241ffa5e | 859a759c769d9c2db0d11140b0d04506611c2b7b | refs/heads/master | 2022-12-19T09:36:05.794731 | 2020-09-16T19:04:10 | 2020-09-16T19:04:10 | 295,784,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,569 | py | ''' World Class
This class is the launching point for the game.
This is the file that needs to run to start the game,
and this class creates all the pieces of the game.
'''
import direct.directbase.DirectStart
from direct.filter.CommonFilters import CommonFilters
from HUDClass_00 import HUD
from RaceClass_0... | [
"kaz101130@gmail.com"
] | kaz101130@gmail.com |
93770b04b06cc4bee60b772d822f418ad8a272c9 | faca8866b3c8aca30a915d8cb2748766557ed808 | /object_detection_updata/metrics/tf_example_parser.py | 510e6917fa9838e9282ec6f561e50cb77a7b5ff9 | [] | no_license | yongqis/proposal_joint_retireval | 6899d80f8fb94569c7b60764f6e7de74bcfa9cc8 | 97b086c62473ab1a5baf45743535fce70c3f8c20 | refs/heads/master | 2020-05-25T19:07:22.946008 | 2019-06-03T07:09:04 | 2019-06-03T07:09:09 | 187,943,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,294 | 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... | [
"syq132@live.com"
] | syq132@live.com |
d83ff9d35756aa203096778316d1f1840a266b4c | d9f6f439300d298246c37ccfb881e8e8af4fda22 | /cfp/migrations/0021_profile_name.py | 814cb2ed2021c677ece96c65e1671b44cb2a0824 | [
"MIT"
] | permissive | ajlozier/speakers | e62b8d346a58a034998860d1b42a38b00cbdbd23 | d7d87c99b1cfa5f9df5455f737385115d9d5279c | refs/heads/master | 2021-09-08T19:33:08.894305 | 2018-03-12T00:54:10 | 2018-03-12T00:54:10 | 122,101,157 | 0 | 0 | null | 2018-02-19T18:08:18 | 2018-02-19T18:08:18 | null | UTF-8 | Python | false | false | 444 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('cfp', '0020_auto_20150218_0802'),
]
operations = [
migrations.AddField(
model_name='profile',
name='... | [
"kyle@kyleconroy.com"
] | kyle@kyleconroy.com |
e5d51b840f9d3e61bbf612efe4cb4e6c26e84ce6 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_actor.py | 04e32c50a329bba627e107500de9e8bd1c6b493f | [
"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 | 386 | py |
#calss header
class _ACTOR():
def __init__(self,):
self.name = "ACTOR"
self.definitions = [u'someone who pretends to be someone else while performing in a film, play, or television or radio programme: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'noun... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1a89d48503fba5a5f596dc365fc645417e63c887 | 77311ad9622a7d8b88707d7cee3f44de7c8860cb | /res/scripts/client/gui/scaleform/battle.py | cb3cb78844254b812459a7a4b3f4ed98dac52a20 | [] | no_license | webiumsk/WOT-0.9.14-CT | 9b193191505a4560df4e872e022eebf59308057e | cfe0b03e511d02c36ce185f308eb48f13ecc05ca | refs/heads/master | 2021-01-10T02:14:10.830715 | 2016-02-14T11:59:59 | 2016-02-14T11:59:59 | 51,606,676 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 39,654 | py | # 2016.02.14 12:38:27 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/Battle.py
import weakref
import BigWorld
import GUI
import Math
import SoundGroups
import VOIP
import constants
import BattleReplay
import CommandMapping
from ConnectionManager import connectionManager
from account_helpe... | [
"info@webium.sk"
] | info@webium.sk |
6497fdc892b607d8e24d743723cfcec4d261b1f9 | 259cc507d97bfeff84d21de3a0ab56640676a9eb | /venv1/Lib/site-packages/tensorflow/contrib/gan/python/eval/python/sliced_wasserstein_impl.py | 7b2c9927975fe036db777a8f6ded43cb2aa7ca72 | [
"MIT",
"Apache-2.0"
] | permissive | Soum-Soum/Tensorflow_Face_Finder | c3ef71b6f718f6720b80f8760d28b6ca6e11e6d2 | fec6c15d2df7012608511ad87f4b55731bf99478 | refs/heads/master | 2020-03-22T20:31:39.606644 | 2018-07-12T13:47:56 | 2018-07-12T13:47:56 | 140,607,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,341 | 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... | [
"pes.carceller@gmail.com"
] | pes.carceller@gmail.com |
75af3c206ddd4f8e25574cabd71067f19214176c | 4170ed62059b6898cc8914e7f23744234fc2f637 | /CD zum Buch "Einstieg in Python"/Programmbeispiele/GUI/gui_check.py | 5f2ffb98025c0f74ac7ab1c38d5a0295e3aeec43 | [] | no_license | Kirchenprogrammierer/Cheats | 9633debd31ab1df78dc639d1aef90d3ac4c1f069 | 0b71c150f48ad1f16d7b47a8532b1f94d26e148e | refs/heads/master | 2021-05-08T10:42:39.927811 | 2018-02-01T17:29:11 | 2018-02-01T17:29:11 | 119,858,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | import tkinter
def ende():
main.destroy()
def anzeigen():
lb["text"] = "Zimmer " + du.get() + " " + mb.get()
main = tkinter.Tk()
# Anzeigelabel
lb = tkinter.Label(main, text = "Zimmer ", width=40)
lb.pack()
# Widget-Variablen
du = tkinter.StringVar()
du.set("ohne Dusche")
mb = tkinter.Stri... | [
"noreply@github.com"
] | Kirchenprogrammierer.noreply@github.com |
8f95dcb9c22025b63932cb30e24ae18203a9dc38 | ce48d74eb28ec153573cd42fe58d39adc784c85c | /jdcloud_sdk/services/xdata/models/DwDatabaseInfo.py | bedf36eee3a80637f1aaf4c87b6493744b5f6c2c | [
"Apache-2.0"
] | permissive | oulinbao/jdcloud-sdk-python | 4c886cb5b851707d98232ca9d76a85d54c8ff8a8 | 660e48ec3bc8125da1dbd576f7868ea61ea21c1d | refs/heads/master | 2020-03-16T22:22:15.922184 | 2018-05-11T10:45:34 | 2018-05-11T10:45:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | # coding=utf8
# Copyright 2018-2025 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 agr... | [
"oulinbao@jd.com"
] | oulinbao@jd.com |
9bbf035b5e759603277ab311b08da9172cf22559 | cd40fd66338bab16c3cac360ec68d0410daf85dc | /asyncio_study/event_loop/utils.py | 039087d9261d78679ca8a895731fe964988d7754 | [] | no_license | suhjohn/Asyncio-Study | c74a95c37d6ce1d0983b5626a4f68d2b80d7ec79 | d9c5a092924a32f18849787fd30cb322a0ff8b15 | refs/heads/master | 2021-05-12T12:28:15.749447 | 2018-01-14T17:25:22 | 2018-01-14T17:25:22 | 117,414,697 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | from functools import wraps
from time import time
def log_execution_time(func):
"""
Decorator function that prints how long it took to execute the function
:param func:
:return:
"""
@wraps(func)
def wrapper(*args, **kwargs):
start = time()
return_value = func(*args, **kwarg... | [
"johnsuh94@gmail.com"
] | johnsuh94@gmail.com |
0ba626c1cb0e67582804291760036684180e9aac | 3faeae950e361eb818830ad210f30a6232e5d7f1 | /wepppy/_scripts/lt_runs_low.py | efdeb5b5aecc5bf4b8561c6458f160bf05309335 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | rogerlew/wepppy | 401e6cee524073209a4445c680b43ea0c6102dfc | 1af4548d725b918b73ee022f2572a63b5194cce0 | refs/heads/master | 2023-07-21T12:56:26.979112 | 2023-07-13T23:26:22 | 2023-07-13T23:26:22 | 125,935,882 | 10 | 6 | NOASSERTION | 2023-03-07T20:42:52 | 2018-03-20T00:01:27 | HTML | UTF-8 | Python | false | false | 46,439 | py |
import os
import shutil
from os.path import exists as _exists
from pprint import pprint
from time import time
from time import sleep
import wepppy
from wepppy.nodb import *
from os.path import join as _join
from wepppy.wepp.out import TotalWatSed
from wepppy.export import arc_export
from osgeo import gdal, osr
gdal.... | [
"rogerlew@gmail.com"
] | rogerlew@gmail.com |
a414e93bf6a93d7ea9d9d9fafad47934f70567b8 | 271c7959a39f3d7ff63dddf285004fd5badee4d9 | /venv/Lib/site-packages/ncclient/devices/h3c.py | 17e98b5a38712d3469fac56fcd86aaac22fcbffa | [
"MIT"
] | permissive | natemellendorf/configpy | b6b01ea4db1f2b9109fd4ddb860e9977316ed964 | 750da5eaef33cede9f3ef532453d63e507f34a2c | refs/heads/master | 2022-12-11T05:22:54.289720 | 2019-07-22T05:26:09 | 2019-07-22T05:26:09 | 176,197,442 | 4 | 1 | MIT | 2022-12-08T02:48:51 | 2019-03-18T03:24:12 | Python | UTF-8 | Python | false | false | 1,936 | py | """
Handler for Huawei device specific information.
Note that for proper import, the classname has to be:
"<Devicename>DeviceHandler"
...where <Devicename> is something like "Default", "Huawei", etc.
All device-specific handlers derive from the DefaultDeviceHandler, which implements the
generic information need... | [
"nate.mellendorf@gmail.com"
] | nate.mellendorf@gmail.com |
07573412e81359a8769586309efc67f4597edaa7 | be4fc3aac9d41e52e799cc366376e611fe726f90 | /reading_comprehension/model/base_model.py | a99aeb0dc25f2c9e397569854c5077ed1086596b | [
"Apache-2.0"
] | permissive | Hope247code/reading_comprehension_tf | 235fac5eee98183e021d8c315b8193f4a1a33ba3 | 6cd4ac78c6c93900458ac75c774766b56125891d | refs/heads/master | 2023-06-28T14:50:26.802641 | 2019-07-14T06:30:30 | 2019-07-14T06:30:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,095 | py | import collections
import os.path
import numpy as np
import tensorflow as tf
from util.default_util import *
from util.reading_comprehension_util import *
from util.layer_util import *
__all__ = ["TrainResult", "InferResult", "BaseModel"]
class TrainResult(collections.namedtuple("TrainResult",
("loss", "learnin... | [
"mizheng@microsoft.com"
] | mizheng@microsoft.com |
33280c23ce326b75e21f7c1e6b655ba9c1896cde | 9680ba23fd13b4bc0fc3ce0c9f02bb88c6da73e4 | /Bernd Klein (520) ile Python/p_20404a.py | bc54c21d16cad7c304cceedabad9a88e4a32d34d | [] | no_license | mnihatyavas/Python-uygulamalar | 694091545a24f50a40a2ef63a3d96354a57c8859 | 688e0dbde24b5605e045c8ec2a9c772ab5f0f244 | refs/heads/master | 2020-08-23T19:12:42.897039 | 2020-04-24T22:45:22 | 2020-04-24T22:45:22 | 216,670,169 | 0 | 0 | null | null | null | null | ISO-8859-9 | Python | false | false | 683 | py | # coding:iso-8859-9 Türkçe
# p_20404a.py: İnternet ip adresleriyle iletişim kontrolü örneği.
import os, re # threading/ipsiz kontrol...
alınanPaketler = re.compile (r"(\d) alındı")
durum = ("cevapsız", "canlı fakat kayıp", "canlı")
for sonek in range (20,30):
ip = "192.168.178." + str (sonek)
kontrol... | [
"noreply@github.com"
] | mnihatyavas.noreply@github.com |
f0d53247787de483a8157978732687647973de62 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/cirq_new/cirq_program/startCirq_Class651.py | dd0dd8db9096c5bbae3a183ddb1975f869ce8a2d | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,289 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=24
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
def make_circuit(n: int, input_qubit):
c = cirq.Ci... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
d26b48204806352ba4722be9cf5fc9324a9c0d14 | 54a0b86d4c3f731487ad4470fb365907970472e6 | /P1/studentparameters/Project1_Parameters_ad.py | abd32ecc8b79a7a3387eba925bcaeff4e5091637 | [] | no_license | samiurrahman98/ece458-computer-security | 26aa46e174b0bf77f748e6451dd2e0e4183feebd | cf79430b98e3679ffcd687a0c96b5e979187e1e3 | refs/heads/master | 2022-11-25T01:26:36.874094 | 2020-07-31T21:24:53 | 2020-07-31T21:24:53 | 280,979,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,771 | py | # Select the file name that matches your first two letters of your last name on Learn
# Read those parameters as your ECE458 project 1 parameters
# p,q,g are DSA domain parameters, sk_i (secret keys) are used in each signature and verification
p=16158504202402426253991131950366800551482053399193655122805051657629706040... | [
"S72RAHMA@uwaterloo.ca"
] | S72RAHMA@uwaterloo.ca |
5db01072a7b1cfb52cc6a3b3c2a3401cc35537e6 | a5103b7d5066138ac1a9aabc273361491a5031cd | /course5/week1/rnn_utils.py | eafeffe54a31969af6913bbe0cbfc4a64948fa29 | [] | no_license | mckjzhangxk/deepAI | 0fa2f261c7899b850a4ec432b5a387e8c5f13e83 | 24e60f24b6e442db22507adddd6bf3e2c343c013 | refs/heads/master | 2022-12-13T18:00:12.839041 | 2021-06-18T03:01:10 | 2021-06-18T03:01:10 | 144,862,423 | 1 | 1 | null | 2022-12-07T23:31:01 | 2018-08-15T14:19:10 | Jupyter Notebook | UTF-8 | Python | false | false | 3,663 | py | import numpy as np
def _initial_parameters(n_x,n_a,n_y):
params={}
params['Waa'] = np.random.randn(n_a,n_a)
params['Wax'] = np.random.randn(n_a,n_x)
params['ba'] = np.random.randn(n_a,1)
params['Wya'] = np.random.randn(n_y,n_a)
params['by'] = np.random.randn(n_y,1)
return params
def _initia... | [
"mckj_zhangxk@163.com"
] | mckj_zhangxk@163.com |
e2690fdaa4d677a52afa36499234099fce9dcb9f | e3ac7c428aa5b60e021a9440262320ff80f5be88 | /Ui/welcomescreen.py | 12640c6e51d951c0941192071407924a8f52cfc2 | [] | no_license | turamant/PyQt5-PhoneBook | b3423f978d2a368e6a997889095d13c5cb47a875 | 522490439889d91a40a651574339e80af6b6db1d | refs/heads/main | 2023-07-11T00:50:10.109781 | 2021-08-10T14:24:54 | 2021-08-10T14:24:54 | 391,993,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,599 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'welcomescreen.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore... | [
"tur1amant@gmail.com"
] | tur1amant@gmail.com |
b6e77796d885e1ff2b153035ca5ccf756ae11b66 | c506e2707708f6b1d1c8b6a4761b3952cdf33c12 | /backend/www/test/upload_contacts_test.py | 1abc56c42b13ef091d47cfb8ba1b890375b3c5f1 | [
"Apache-2.0"
] | permissive | xuantan/viewfinder | 69e17d50228dd34fa34d79eea1c841cc80a869ff | 992209086d01be0ef6506f325cf89b84d374f969 | refs/heads/master | 2021-08-26T00:58:18.180445 | 2021-08-10T03:06:48 | 2021-08-10T03:06:48 | 19,481,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,824 | py | # Copyright 2013 Viewfinder Inc. All Rights Reserved.
"""Test upload_contacts service method.
"""
__authors__ = ['mike@emailscrubbed.com (Mike Purtell)']
import json
import mock
from copy import deepcopy
from viewfinder.backend.base import util
from viewfinder.backend.www.test import service_base_test
from viewfind... | [
"bdarnell@squareup.com"
] | bdarnell@squareup.com |
6127db8c4201697208fcbd427c8f2ff605b318ec | ea9aa0e93a7f264511ef10b5ccb90f65d958900f | /3rd_practice/blog/models.py | c0eca233fb31aebd733abc8ef197a867e51945e6 | [] | no_license | wayhome25/django_travel_blog_2 | 01cf4591e0aa69fb5a3144e0739bd43ce4bebc9c | 13e5d7ad2851febafb9a57e1fc93bb29c916c4c7 | refs/heads/master | 2020-06-01T08:58:24.492163 | 2017-08-26T13:19:45 | 2017-08-26T15:04:18 | 94,069,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | from django.core.urlresolvers import reverse
from django.conf import settings
from django.db import models
class Post(models.Model):
title = models.CharField(max_length=100)
content = models.TextField()
photo = models.ImageField()
is_public = models.BooleanField(default=False)
created_at = models.D... | [
"siwabada@gmail.com"
] | siwabada@gmail.com |
3996a1c41e99afd8b6eabfd0864dad2c2f4c7187 | 13e1fb78955c03a75cf483725f4811abd1b51ac4 | /compiler/tests/03_wire_test.py | 61e21985e7422f475fa91e656c3f095e1c483963 | [
"BSD-3-Clause"
] | permissive | ucb-cs250/OpenRAM | d7a88695ac6820d03b4b365245a1c4962cdc546d | 3c5e13f95c925a204cabf052525c3de07638168f | refs/heads/master | 2023-01-23T15:09:35.183103 | 2020-10-12T16:05:07 | 2020-10-12T16:05:07 | 318,904,763 | 0 | 0 | BSD-3-Clause | 2020-12-05T22:47:14 | 2020-12-05T22:47:13 | null | UTF-8 | Python | false | false | 2,212 | py | #!/usr/bin/env python3
# See LICENSE for licensing information.
#
# Copyright (c) 2016-2019 Regents of the University of California and The Board
# of Regents for the Oklahoma Agricultural and Mechanical College
# (acting for and on behalf of Oklahoma State University)
# All rights reserved.
#
import unittest
from test... | [
"mrg@ucsc.edu"
] | mrg@ucsc.edu |
4df58b827efdb8b9e33d0f96ef24b7287e582d7b | 55668bc4e19fd9aa3caa4395add2fe73741eb844 | /206/main.py | 29930f8e53ae428345565b5f0a0b9b54dc5cbd5c | [
"MIT"
] | permissive | pauvrepetit/leetcode | cb8674e10b0dc6beb29e9b64a49bede857b889fd | 2fda37371f1c5afcab80214580e8e5fd72b48a3b | refs/heads/master | 2023-08-30T07:39:08.982036 | 2023-08-25T08:52:57 | 2023-08-25T08:52:57 | 151,678,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | #
# @lc app=leetcode.cn id=206 lang=python3
#
# [206] 反转链表
#
from typing import Optional
# @lc code=start
# Definition for singly-linked list.
class ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
class Solution:
def rev(self, head: Optional[ListNode], prev: Opt... | [
"hu__ao@outlook.com"
] | hu__ao@outlook.com |
6b482961ceb846d151075be3e5574ce30b958fbb | 9c3c83007c5bf0f36635b0045b2aad7f8a11ac11 | /novice/03-02/variablerules.py | 04efe613839917730bde3cf315a1c00a8a16bb91 | [
"MIT"
] | permissive | septiannurtrir/praxis-academy | bc58f9484db36b36c202bf90fdfd359482b72770 | 1ef7f959c372ae991d74ccd373123142c2fbc542 | refs/heads/master | 2021-06-21T17:04:58.379408 | 2019-09-13T16:46:08 | 2019-09-13T16:46:08 | 203,007,994 | 1 | 0 | MIT | 2021-03-20T01:43:24 | 2019-08-18T13:38:23 | Python | UTF-8 | Python | false | false | 481 | py | from flask import Flask
app = Flask(__name__)
@app.route('/user/<username>')
def show_user_profile(username):
# show the user profile for that user
return 'User %s' % escape(username)
@app.route('/post/<int:post_id>')
def show_post(post_id):
#show the post with the given id, the id is an integer
retur... | [
"septiannurtrir@gmail.com"
] | septiannurtrir@gmail.com |
b1bb1dfa462be18d9be81098971bfbdf1023cb30 | 7ce761781e7f5b57b2469adce459a71b4758694d | /env/lib/python2.7/site-packages/graphlab/toolkits/_internal/search/_search.py | 0870866d1721ce31a94ab4442179cea4425399d7 | [] | no_license | hophamtenquang/RecSys | c4fa18d1ba262670a284b2fba2ca97b882ef0f4c | 535472844a046cadd9230302da647a54afff95e8 | refs/heads/master | 2021-01-19T17:00:32.924064 | 2017-08-30T10:31:32 | 2017-08-30T10:31:32 | 101,031,687 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,660 | py | import sys as _sys
import graphlab as _gl
import graphlab.connect.main as glconnect
from graphlab.toolkits._internal_utils import _raise_error_if_not_sframe
from graphlab.toolkits._model import SDKModel as _SDKModel
from graphlab.toolkits._main import ToolkitError as _ToolkitError
from graphlab.toolkits._internal_util... | [
"hophamtenquang@gmail.com"
] | hophamtenquang@gmail.com |
01a4792e02f8e7a6911af7ab76554e70e0471d8b | 694d57c3e512ce916269411b51adef23532420cd | /leetcode/215kth_largest_element.py | 58f31f67f601ead30791f3de73429cab51b47b5f | [] | 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,139 | py | from random import randint
class Solution(object):
def partition(self, start, end, p, nums):
pivot = nums[p]
nums[p], nums[start] = nums[start], nums[p]
i = j = k = start
while j <= end:
if nums[j] == pivot:
nums[i], nums[j] = nums[j], nums[i]
... | [
"seasoul410@gmail.com"
] | seasoul410@gmail.com |
29acead529edc72fe4dc197e2a785872c12c51e0 | 3cedc2e0867a53ed2f36e01624f369693d1a050d | /rnn/rnn88_females_original.py | f4f2cc56c161654c5daaec73a43be8329ccc3589 | [] | no_license | lkpiel/mastersthesis | a471d8c6a5881e13599b22965dd3f437c83fc967 | 71c723b435b347d2805e159b6e10828f89541e98 | refs/heads/master | 2023-02-20T11:57:45.266361 | 2018-05-06T11:17:43 | 2018-05-06T11:17:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,742 | py | #! /usr/bin/python3
import sys
print(sys.version)
import sys
import pandas
import numpy as np
from keras.preprocessing.sequence import pad_sequences
from keras.models import Sequential, load_model
from keras.layers import Dense, Input, Dropout, Average, Merge, Layer, Conv2D, MaxPooling2D, GlobalAveragePooling2D, Glob... | [
"leo.piel@pipedrive.com"
] | leo.piel@pipedrive.com |
d2441a8e7cd1131ccb87e1debc5c49e33fc62f90 | 2031771d8c226806a0b35c3579af990dd0747e64 | /pyobjc-framework-SearchKit/setup.py | cfce0b4f572de3e7d3cb839fb83d76b5f34634ee | [
"MIT"
] | permissive | GreatFruitOmsk/pyobjc-mirror | a146b5363a5e39181f09761087fd854127c07c86 | 4f4cf0e4416ea67240633077e5665f5ed9724140 | refs/heads/master | 2018-12-22T12:38:52.382389 | 2018-11-12T09:54:18 | 2018-11-12T09:54:18 | 109,211,701 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | '''
Deprecated wrappers for the "SearchKit" framework on macOS.
Use the CoreServices package instead.
'''
from pyobjc_setup import setup
VERSION="5.1.1"
setup(
name='pyobjc-framework-SearchKit',
description = "Wrappers for the framework SearchKit on macOS",
min_os_level='10.5',
packages = [ "SearchKi... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
98e494f9969bfbe0e38927f5f5a9e9da3f675862 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /tjMNAEgkNvM5eyEqJ_9.py | 009b0a6620c65bbe7a418ed56973cde1d60c4685 | [] | 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 | 901 | py | """
You are given two inputs:
1. An array of abbreviations.
2. An array of words.
Write a function that returns `True` if each abbreviation **uniquely
identifies** a word, and `False` otherwise.
### Examples
unique_abbrev(["ho", "h", "ha"], ["house", "hope", "happy"]) ➞ False
// "ho" and "h" are ambi... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
78bb3e33b198664933fcf0bc38618fc403aed04b | 2393a8fabee3d39bf1623e26c0313e3351caf814 | /python/study/IO/示例代码/nonblocking/nonblocking-client.py | bb4e00884ca6c2f8d4878a852bc366caf746f668 | [] | no_license | shidg/note | 5d3aaff9d1c6cf87b89513b7712638c9b808653c | d46aceaed64e3e2f854149f71f18fa92d650dc37 | refs/heads/master | 2023-05-26T16:14:51.715966 | 2023-05-19T02:08:36 | 2023-05-19T02:08:36 | 27,533,612 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | #!/usr/local/bin/python3
# -*- coding: utf-8 -*-#
'''
author: -- shidegang --
Created Time: 2019-08-28 10:43:17
'''
import socket
sk = socket.socket()
server_addr = ('127.0.0.1',9000)
sk.connect(server_addr)
while True:
sk.sendall('hello'.encode(encoding='utf8'))
data = sk.recv(1024)
print(data.decode(en... | [
"shidg@feezu.cn"
] | shidg@feezu.cn |
bdd26c536928ecc4169204488d28c7ea79fac6d1 | 6e0d8d91dd22e2275cd713822679d5cabbc9331a | /thespian/system/__init__.py | 2c69b0574347c752e0c9daedb76632e6daa45a22 | [
"MIT"
] | permissive | kquick/Thespian | 711712eb0a9ad3370f1013c8393cc461b9541dfe | dfc6d3e865c05f929328b85e98671a5c8fc3a54a | refs/heads/master | 2023-05-26T15:51:57.959690 | 2023-05-22T15:08:00 | 2023-05-22T15:08:00 | 78,292,621 | 203 | 32 | MIT | 2021-06-22T14:42:09 | 2017-01-07T17:18:27 | Python | UTF-8 | Python | false | false | 636 | py | # This module contains the various ActorSystemBase implementations
# upon which the ActorSystem operates.
from thespian.actors import ActorAddress, ActorSystemMessage, PoisonMessage
from thespian.system.addressManager import *
from thespian.system.messages.status import *
from thespian.system.messages.convention impor... | [
"kquick@godaddy.com"
] | kquick@godaddy.com |
3e9fbcc82ac9735647bbbf58624023d9b3049086 | 7f368b275cd18a5b7b2eb22b822223252914c8ef | /tensorflow_gan/python/tpu/cross_replica_ops.py | 7ab35260b93b8be210c6cb4f9caf314cc746b313 | [
"Apache-2.0"
] | permissive | nivedwho/gan | 176c624800378d9dfa9f74211c362b62953cc7f1 | 723ce1e3627778b979f048d817f834f253611ff4 | refs/heads/master | 2023-08-01T08:07:34.299917 | 2021-09-14T04:10:38 | 2021-09-14T04:11:37 | 396,680,181 | 0 | 0 | Apache-2.0 | 2021-08-16T07:44:33 | 2021-08-16T07:44:33 | null | UTF-8 | Python | false | false | 3,128 | py | # coding=utf-8
# Copyright 2021 The TensorFlow GAN Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
c4ae49b5ef3dff9cda6859483ab61b793df6c6e4 | 90e6860b5370b742f01c0664ac84f14dc1272155 | /src/ziggurat/config/StandardConfigurator.py | fdce59892f864b753760a8508b5a30a278cc7f28 | [] | no_license | sernst/Ziggurat | e63f876b8f2cb3f78c7a7a4dcf79af810a540722 | 4ae09bbd9c467b2ad740e117ed00354c04951e22 | refs/heads/master | 2021-01-17T07:20:17.138440 | 2016-05-27T14:27:43 | 2016-05-27T14:27:43 | 9,278,283 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,944 | py | # StandardConfigurator.py
# (C)2013
# Scott Ernst
from __future__ import print_function, absolute_import, unicode_literals, division
import re
from pyaid.string.StringUtils import StringUtils
from pyramid.config import Configurator
from pyaid.file.FileUtils import FileUtils
#________________________________________... | [
"swernst@gmail.com"
] | swernst@gmail.com |
ddf8e310ace1ebb6773c14c882d812f973ffa1af | 4b4828d3c98d76d7bf38f90a015945acc408ddc5 | /PythonAI/Source/W2D3/src/bmi_web.py | 441f43d452b0cdebf5e3e9a87e8c79e84ae2551b | [] | no_license | Huh-jae-won/Study | cb5d32728e8dcded492e7edb054b500c91ec607c | e4dbc3fef69bb273b62b866fb5ef2a7250222f10 | refs/heads/main | 2023-06-20T13:06:26.691899 | 2021-07-11T07:43:41 | 2021-07-11T07:43:41 | 362,759,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,199 | py | """
# URL : http://localhost:8080/cgi-bin/bmi_web.py
"""
# 모듈 로딩 ---------------------------------------------------
import cgi, sys, codecs, os
import joblib
# WEB 인코딩 설정 ---------------------------------------------
sys.stdout=codecs.getwriter('utf-8')(sys.stdout.detach())
# 함수 선언 ----------------------------------... | [
"dfr9034@naver.com"
] | dfr9034@naver.com |
43bd61d034275b4e72d5fd73ddf6e07f646548ed | 85f68b427bf9c4b8b5c3f8a70dccc217226e9706 | /gam_app/old_migrations/0012_auto_20180619_1641.py | 7de987d6f30f3cd7be49de7d4ff093f9f154c292 | [] | no_license | benrogboe/GAM | ffb87e76a87aa7eaf0d0d33d4df7ddc571399e49 | fbec7cb967252578d4669c5ff91a9b0b9cdfd9d5 | refs/heads/master | 2020-03-30T05:08:38.811097 | 2018-09-28T18:55:24 | 2018-09-28T18:55:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | # Generated by Django 2.0.1 on 2018-06-19 16:41
import ckeditor.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('gam_app', '0011_auto_20180619_1527'),
]
operations = [
migrations.AlterField(
... | [
"apjanco@gmail.com"
] | apjanco@gmail.com |
c4b0fa6a10dd0233f06a512fb6746c6c4f0b86d7 | b17fda8e3a9f360cbab8e8ed0ecd66b03787250a | /.venv/lib/python2.7/site-packages/planemo/templates.py | caa25724a0252f54837ada1ffbff3f78b82341b4 | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | maumauleon/galaxy-irri-dev | 7a4b824c90474da0a2f3a3b858777c5089b9d5cb | 063bf0dca5d465466aefa77edaf47df12c4ff932 | refs/heads/master | 2022-11-16T03:10:18.067196 | 2017-08-23T03:31:01 | 2017-08-23T03:31:01 | 98,497,124 | 1 | 2 | NOASSERTION | 2022-11-01T17:00:32 | 2017-07-27T05:25:40 | Python | UTF-8 | Python | false | false | 478 | py | try:
from jinja2 import Template
except ImportError:
Template = None
NO_JINJA2_MESSAGE = ("This functionality requires Jinja2 but this library is "
"unavailable. Install with `pip install jinja2`.")
def render(template_str, **kwds):
""" Use jinja2 to render a template
"""
if ... | [
"v.juanillas@irri.org"
] | v.juanillas@irri.org |
dd722e77341a10ff56977e18b26a3b12366106a6 | 7729ddbb2e4eb03469cd19f2ac6b5670b831923b | /src/seraing/urban/dataimport/__init__.py | 626639e80ca9ee026c47dbf2d06065f7a7893534 | [] | no_license | IMIO/seraing.urban.dataimport_22 | 5cd7bb6e09debeb72145af107b99997ba54f96a3 | db2f3c596572159692fa6cb11050111d1cb0fca5 | refs/heads/master | 2021-05-05T17:01:27.788747 | 2017-09-12T13:45:01 | 2017-09-12T13:45:01 | 103,239,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | # -*- coding: utf-8 -*-
"""Init and utils."""
from zope.i18nmessageid import MessageFactory
_ = MessageFactory('seraing.urban.dataimport')
def initialize(context):
"""Initializer called when used as a Zope 2 product."""
| [
"julien.jaumotte@imio.be"
] | julien.jaumotte@imio.be |
a697246864c5f020df2a2b5b60c9e4a429c0d160 | 7f53c41182a6d9c5da0c58a15716f01725ac0316 | /2019_2_19_public_test/test.py | e79247064e8a5dfa2e00c40dbbe822ef17f75f3b | [] | no_license | 1286211699/2019_1_23_pub_test | f6b7ee089e78ad673c56b3cd4ccee9b2154581f6 | 3aed7f4941353d48bf3407e9d30ac85c83b0ed7b | refs/heads/master | 2022-12-19T14:41:15.264627 | 2019-03-21T09:46:08 | 2019-03-21T09:46:08 | 167,125,649 | 1 | 0 | null | 2022-12-08T01:33:30 | 2019-01-23T05:54:52 | HTML | UTF-8 | Python | false | false | 666 | py | import _thread
import time
# 为线程定义一个函数
def print_time( threadName, delay):
count = 0
while count < 5:
time.sleep(delay)
count += 1
print ("%s: %s" % ( threadName, time.ctime(time.time()) ))
# 创建两个线程
#但是这个模块我们不推荐,因为底层封装的时候它的主线程不会等待子线程的结束!
#官方以及我们推荐再封装Threading,所以在这里大家了解下
try:
... | [
"1286211699@qq.com"
] | 1286211699@qq.com |
efeee94769b83f842bac96bd9d32030c907b7472 | 14be69d424c8f30cab70231d5509df50ccaa2f04 | /tensorflow/python/training/basic_session_run_hooks.py | 99f057e8371aa6d1d5420e5622a79426783ded4b | [
"Apache-2.0"
] | permissive | siemanko/tensorflow | 739847a1b7d44e6d9291da63be0daf3ae8f2d17c | 66e0faf5f2391d8e1b3acf69afbfa0adf609596d | refs/heads/master | 2021-07-08T09:00:56.875610 | 2017-10-05T18:16:17 | 2017-10-05T18:16:17 | 105,937,165 | 0 | 1 | null | 2017-10-05T20:29:58 | 2017-10-05T20:29:58 | null | UTF-8 | Python | false | false | 28,652 | py | # Copyright 2016 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... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
00f569ae77237d2d80518fa93f5d1e27c4d3b867 | f9632d4a822f6525a007598a1f67757ac9891749 | /rakuten/playground/extract_category.py | 7b023d96f6665916c58bdc27b25ebb3531856c12 | [] | no_license | rpryzant/marketing | ab055a5ae02ed287cb5a763d3e937efa72d057df | 9f463da0a2e7c9c48951e793d95534963cd19721 | refs/heads/master | 2021-09-07T01:20:31.720381 | 2018-02-14T22:13:40 | 2018-02-14T22:13:40 | 116,716,301 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,074 | py | """
extracts a category from the data
"""
import map_reduce
from collections import defaultdict
# make parent dicts
genre_tsv = '/Volumes/datasets/rakuten_dump/merchandize_data/genres/genres_with_english.tsv'
id_to_pid = {}
for l in open(genre_tsv):
l = l.strip()
try:
[id, ja_name, pid, en_name] = l... | [
"rapigan@gmail.com"
] | rapigan@gmail.com |
21a03c5b4c4fdf5f65f8f33de569e2d41869d67b | 325fde42058b2b82f8a4020048ff910cfdf737d7 | /src/account/azext_account/vendored_sdks/subscription/operations/_subscription_operation_operations.py | ff4eaf571ec7c44d355033680ae253d44a157678 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | ebencarek/azure-cli-extensions | 46b0d18fe536fe5884b00d7ffa30f54c7d6887d1 | 42491b284e38f8853712a5af01836f83b04a1aa8 | refs/heads/master | 2023-04-12T00:28:44.828652 | 2021-03-30T22:34:13 | 2021-03-30T22:34:13 | 261,621,934 | 2 | 5 | MIT | 2020-10-09T18:21:52 | 2020-05-06T01:25:58 | Python | UTF-8 | Python | false | false | 4,364 | 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"
] | ebencarek.noreply@github.com |
47d15cbb5b377278a0596f903530d487f4f3cc6c | 1b512092052c8fe7f6919ee870431ac7b3a65f66 | /pal/examples/MixedHalidesBE2/run_simple_misokg.py | 77cd6d71fbb4de358efaf37a34fd2962c948ae5b | [] | no_license | ClancyLab/PAL | d7b9dd1caeb62d363041b8e4c7f402d6edbf741e | cb0ef048de37014922b943ae6b5eaffd3d43da63 | refs/heads/master | 2022-02-25T05:31:20.590421 | 2019-10-14T19:47:10 | 2019-10-14T19:47:10 | 210,862,362 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,151 | py | from pal.opt import Optimizer
import pal.utils.strings as pal_strings
from pal.constants.solvents import solvents
from pal.kernels.matern import maternKernel52 as mk52
# from pal.objectives.binding_energy import get_binding_energy as BE
from pal.acquisition.misokg import getNextSample_misokg
from pal.stats.MLE import M... | [
"hherbol@gmail.com"
] | hherbol@gmail.com |
9d9c54c167c1d1608999cca9cd3f8deb88c08f87 | f7a718425de1447836b547f831a120937f1fcf40 | /plumbum/util/datefmt.py | 86b8b0bd0033ccb5a4c68ba1d8edc9352eb63e63 | [
"BSD-3-Clause"
] | permissive | coyotevz/plumbum-old-1 | ad8ce697ffb4cbd0a6f238f66a1c546800e47024 | c0f769ca525298ab190592d0997575d917a4bed4 | refs/heads/master | 2021-01-20T10:50:32.516766 | 2016-11-18T04:20:32 | 2016-11-18T04:20:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | # -*- coding: utf-8 -*-
import os
import time
from datetime import datetime
# date/time utilities
if os.name == 'nt':
raise NotImplementedError("Not yet implemented for this platform")
else:
time_now, datetime_now = time.time, datetime.now
| [
"augusto@rioplomo.com.ar"
] | augusto@rioplomo.com.ar |
908203b5cd69481a591c3a236d23ab58bfe761cd | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_321/ch130_2020_04_01_16_55_20_162558.py | b1a491a59ae05eb3b4d84e3ac5803ce5f576c87e | [] | 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 | 199 | py | def monta_mala(l):
i = 0
mala = []
while sum(mala) <= 23:
if sum(mala) + l[0] > 23:
break
else:
mala.append(l[i])
i +=1
return mala | [
"you@example.com"
] | you@example.com |
4302c2a92d3fd0e16720b5d0bb2c81e469aa422d | 71e8bdddd84338bbb2d77934351d76251c2fd77d | /unique-paths.py | 39eeaaf353b483ccb782eeba05930f71fcbd9851 | [] | no_license | onestarshang/leetcode | 3da20fbec1b42d3565eb95a64ea3f30c29f1e1eb | 0a7aa09a2b95e4caca5b5123fb735ceb5c01e992 | refs/heads/master | 2021-01-09T06:00:06.018037 | 2016-12-17T16:17:49 | 2016-12-17T16:17:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | #coding: utf-8
'''
http://oj.leetcode.com/problems/unique-paths/
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
The robot can only move either down or right at any point in time. The robot is trying to reach the bottom-right corner of the grid (marked 'Finish' in the ... | [
"irachex@gmail.com"
] | irachex@gmail.com |
1b5cfbe1f3042ab381911ffa943576eb5a6a5208 | 32904d4841d104143ba0f41cc3aeb749e470f546 | /backend/django/apps/memos/migrations/0008_auto_20191025_2003.py | 3fdde9fa6cac56f3d36a37dc33c06ac8382c74cb | [] | no_license | aurthurm/dispatrace-api-vuejs | 20ec5deee015e69bce7a64dc2d89ccae8941b800 | 56d122318af27ff64755fc515345974631d3026f | refs/heads/master | 2023-01-23T23:03:15.438339 | 2020-10-20T22:09:29 | 2020-10-20T22:09:29 | 219,028,985 | 0 | 1 | null | 2022-12-22T18:31:38 | 2019-11-01T17:08:35 | Vue | UTF-8 | Python | false | false | 540 | py | # Generated by Django 2.2.6 on 2019-10-25 18:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('memos', '0007_memoattachment_memocomment'),
]
operations = [
migrations.AlterField(
... | [
"aurthurmusendame@gmail.com"
] | aurthurmusendame@gmail.com |
33e6fb56b398cd6635d41be61972d9290f4fa7f1 | cdd79cef15bdf6a0b9098e27028bbe38607bc288 | /数論/Combination/mcomb.py | 0f7e575c0fe0a8647ae6beff5f8fa66747094a11 | [] | no_license | nord2sudjp/atcoder | ee35a3eb35717485dc62627172de24c9dac102fb | 6b1cc5102a615492cc7ff8a33813bbb954641782 | refs/heads/master | 2023-08-25T11:27:14.205593 | 2021-09-27T05:43:04 | 2021-09-27T05:43:04 | 302,855,505 | 0 | 0 | null | null | null | null | SHIFT_JIS | Python | false | false | 654 | py | # https://atcoder.jp/contests/abc145/submissions/10775904
def comb(n,r,mod):
# nからr通りを選択する
# modは素数であること
if n<r:return 0
k=min(r,n-r)
C=1
for i in range(1,k+1):
C=(C*(n+1-i)*pow(i,mod-2,mod))%mod
return C
print(com(n+m,n,mod))
#
def comb_cal(n):
s=1
m=0
for i in rang... | [
"nord2sudjp@gmail.com"
] | nord2sudjp@gmail.com |
4625b7562e6935395144e1da64a15c0b078f999e | 52b5773617a1b972a905de4d692540d26ff74926 | /triangle.py | aabaa8b43b28d0f6063839f8844acbb0a8568919 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | # this function is meant to print a triangle
def triangle():
# outer loop is for the rows --> 4
for i in range(0,4):
# inner loop is for colums --> 4
for j in range(0, i+1):
print("*",end= " ")
print("\r")
triangle()
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
234fe0703bcd32e0a8e3cea1e43969c845b3ac6e | ba0cbdae81c171bd4be7b12c0594de72bd6d625a | /MyToontown/Toontown2016/toontown/toonbase/ToontownStartDist.py | 6718c47b2d8ad07f5cb8e4b83442d6bf516c3334 | [] | no_license | sweep41/Toontown-2016 | 65985f198fa32a832e762fa9c59e59606d6a40a3 | 7732fb2c27001264e6dd652c057b3dc41f9c8a7d | refs/heads/master | 2021-01-23T16:04:45.264205 | 2017-06-04T02:47:34 | 2017-06-04T02:47:34 | 93,279,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,538 | py | # This is the "main" module that will start a distribution copy of
# Toontown 2016
# Replace some modules that do exec:
import collections
collections.namedtuple = lambda *x: tuple
# This is included in the package by the prepare_client script. It contains the
# PRC file data, (stripped) DC file, and time zo... | [
"sweep14@gmail.com"
] | sweep14@gmail.com |
a822fbeeb592b742c4ddbe11b82b3ead6703f4e6 | 26e2c68f929ecc8bb5c20c6b8cd200b66d99def5 | /DjangoDopLEsson/products/migrations/0001_initial.py | 0ce5c7a66193f21ead1baaf75f96d6d86c10e249 | [] | no_license | kirigaikabuto/DjangoLessonsPart | ad19c1da0d1da27830c6fdf1b07353632bbc097d | 4442518ae1f0a8641e066c9a63ff4e55e04d5fe5 | refs/heads/master | 2022-11-28T10:29:54.428001 | 2020-08-03T09:26:42 | 2020-08-03T09:26:42 | 273,497,052 | 0 | 0 | null | 2020-08-03T09:26:43 | 2020-06-19T13:11:15 | Python | UTF-8 | Python | false | false | 590 | py | # Generated by Django 3.0.7 on 2020-06-24 05:41
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
('id', models.AutoField(... | [
"ytleugazy@dar.kz"
] | ytleugazy@dar.kz |
910aba7d092e6fe88237d6d7c73f25a5638d20a8 | c70dfc0d74b34e41f7d2dbdbd6bfaca2f79af55b | /cyp/models/convnet.py | 7e74e171c0c26477317c14467986b5411a787c77 | [
"MIT"
] | permissive | jeangolay/pycrop-yield-prediction | a2c65fa3bd704d1d3251318a9afe39bfcd05cf10 | 1b36b673cc58b506ad4d3c8bd6b6917ac5a72d28 | refs/heads/master | 2021-02-18T06:58:31.844163 | 2019-11-25T13:45:55 | 2019-11-25T13:45:55 | 245,172,915 | 0 | 1 | MIT | 2020-03-05T13:39:21 | 2020-03-05T13:39:20 | null | UTF-8 | Python | false | false | 7,994 | py | import torch
from torch import nn
import torch.nn.functional as F
from pathlib import Path
from .base import ModelBase
class ConvModel(ModelBase):
"""
A PyTorch replica of the CNN structured model from the original paper. Note that
this class assumes feature_engineering was run with channels_first=True
... | [
"gabriel.tseng@mail.mcgill.ca"
] | gabriel.tseng@mail.mcgill.ca |
d857d210c85ab7e5b44aa427f2403019ebe176a1 | f08d137b7821d79672c91e5f06967ffa1f90e278 | /.history/Python/Main_py_20211021101357.py | 24180ebf2cf62ee0838fe71a2cd46e81d5e858e6 | [] | no_license | anhviet-key/hello-cac-ban | a39ffb1731a77dd171523ea145f5d8b62fccde7c | 18411b51add7e3277d42869f8a50c67111337983 | refs/heads/main | 2023-08-23T09:02:01.074958 | 2021-10-27T07:48:47 | 2021-10-27T07:48:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | from Sub_py import emailProcess, print_Mess
def main():
emails = ["hello.vi@gmail.com", "Package@yahoo.com", "Test@gmail.dev"]
for email in emails:
usemailProcess(email)
if __name__ == "__main__":
main()
| [
"92666546+anhviet-key@users.noreply.github.com"
] | 92666546+anhviet-key@users.noreply.github.com |
9dcddbcc8d5d3f81e9b43c1b674bb99bf74081e6 | 495943f075f6a641d456d66deebb208847cb6c50 | /bases/bases.py | 4b971bac31d64037ece100affafdb194b8cec092 | [] | no_license | LukazDane/CS-1.3 | 377a6ef77c3db4a497f492ed73a3ba2487531b93 | 9cee1f71b9374a54a1fe336cd1f8db1a51275ef8 | refs/heads/master | 2022-07-04T00:26:48.498036 | 2020-05-11T02:37:00 | 2020-05-11T02:37:00 | 255,189,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,209 | py | import string
import math
# ##### https://en.wikipedia.org/wiki/List_of_Unicode_characters
# Hint: Use these string constants to encode/decode hexadecimal digits and more
# string.digits is '0123456789'
# string.hexdigits is '0123456789abcdefABCDEF'
# string.ascii_lowercase is 'abcdefghijklmnopqrstuvwxyz'
# string.asc... | [
"deandrevidal@aol.com"
] | deandrevidal@aol.com |
4faf1c90487d459da70158af665f0ebc2c9cf364 | d75fc0ae459066bfb15187d1c902e22000153dc4 | /TestScript/tenderverificationONSupplierStatus.py | 44e27edee4b8c97a036372329b6aa5c7f6dc4e37 | [] | no_license | sureshkumarkadi/Project | 875a05a752164ff9620286ab8261c7774acc4f27 | 4652edfa6ac47d6f44bd41e03314d96753e09d92 | refs/heads/master | 2020-03-25T19:52:23.124215 | 2018-08-09T05:28:08 | 2018-08-09T05:28:08 | 144,104,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,308 | py | #-------------------------------------------------------------------------------
# Name: module2
# Purpose:
#
# Author: mathew.jacob
#
# Created: 25/08/2016
# Copyright: (c) mathew.jacob 2016
# Licence: <your licence>
#-------------------------------------------------------------------------------... | [
"Suresh.Kumar@causeway.com"
] | Suresh.Kumar@causeway.com |
d00a26baca490f31f439effc72c908cdb5f1a988 | f8bdc46409c9f5eaf3d85ef157260589462d941a | /demos/instance_occlsegm/instance_occlsegm_lib/contrib/instance_occlsegm/models/mask_rcnn/mask_rcnn_train_chain.py | dcac6d9a34651571c6619b60979f08467e428520 | [
"MIT",
"BSD-3-Clause"
] | permissive | start-jsk/jsk_apc | 2e268f8b65e9d7f4f9cc4416dc8383fd0a7b9750 | c4e349f45ef38457dc774e33f6902acf1a1540a6 | refs/heads/master | 2023-09-05T09:06:24.855510 | 2023-09-01T17:10:12 | 2023-09-01T17:10:12 | 25,620,908 | 36 | 25 | NOASSERTION | 2023-09-01T17:10:14 | 2014-10-23T05:28:31 | Common Lisp | UTF-8 | Python | false | false | 9,218 | py | # Modified works:
# --------------------------------------------------------
# Copyright (c) 2017 - 2018 Kentaro Wada.
# Licensed under The MIT License [see LICENSE for details]
# --------------------------------------------------------
# This is modified work of FasterRCNNTrainChain:
# -------------------------------... | [
"www.kentaro.wada@gmail.com"
] | www.kentaro.wada@gmail.com |
fe1157f372e8999831140b5c8835adac1ce983b2 | bc572eca7a03aec83ee55300887a21cad3dbd160 | /tools/Polygraphy/tests/comparator/test_postprocess.py | 0cbba453125e5baa918d358612e41d35c9cb243d | [
"Apache-2.0",
"BSD-3-Clause",
"ISC",
"BSD-2-Clause",
"MIT"
] | permissive | wuqiangch/TensorRT | fba0029dc5c0b3b9ffa091e45f26d8d10d702393 | d04182cd0086c70db4a8ad30e0d7675c4eb33782 | refs/heads/master | 2023-05-31T21:04:01.079351 | 2021-06-23T20:37:20 | 2021-06-25T19:39:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | py | #
# Copyright (c) 2021, NVIDIA CORPORATION. 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 appl... | [
"rajeevsrao@users.noreply.github.com"
] | rajeevsrao@users.noreply.github.com |
a6d0047071d0b232286f98b5287c49a605e6a21e | 320a98d428bf06eff6f3f209b1eadeb366a65482 | /common/version.py | c4dd9de7ffd4c1b577a51386ff7b1cc74c444cd3 | [] | no_license | Ryan--Yang/share | 6fe8b21918206fed903bd7a315216b47e58f697e | 4acc658f7c0a8f1b50f7b5c0b8884b96fe1e137d | refs/heads/master | 2020-12-31T02:42:22.125477 | 2013-12-04T07:27:53 | 2013-12-24T01:54:38 | 14,791,494 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,644 | py | from util import *
default_java_file = '/usr/lib/jvm/default-java'
gcc_file = '/usr/bin/gcc'
def handle_option():
global args
parser = argparse.ArgumentParser(description = 'Set up the version of Java',
formatter_class = argparse.RawTextHelpFormatter,
... | [
"yang.gu@intel.com"
] | yang.gu@intel.com |
4de8e6f3f997c044235468a34eb39dc9ca07df91 | df458ae26f8e1b59e4fc4273701f77cc2e340a3c | /tests/test_viewgroups.py | a7c869008bd24a94bbc80a387a23758393244f2e | [
"BSD-3-Clause"
] | permissive | radiac/django-fastview | 64bcf3f07ed62a1863b5a402d1fedc998ed433f3 | daf898f416c3f89efc3ef290f8158232d055af36 | refs/heads/develop | 2023-03-20T22:49:14.789026 | 2022-10-02T19:43:22 | 2022-10-02T19:43:22 | 230,815,383 | 13 | 1 | NOASSERTION | 2023-03-04T05:44:10 | 2019-12-29T23:26:56 | Python | UTF-8 | Python | false | false | 1,637 | py | """
Test viewgroup
"""
from fastview import permissions
from fastview.viewgroups import ModelViewGroup
from .app.models import Entry
def test_modelviewgroup_permissions__permissions_set_on_subclass():
class TestPermission(permissions.Permission):
pass
test_permission = TestPermission()
class En... | [
"git@radiac.net"
] | git@radiac.net |
10e8fdc24e2631260da50fd20f4deaaab12510ab | c1e0874f55d05ee990ed2d637c2910701b32d246 | /soft_uni_fundamentals/Data Types and Variables/exercises/03_elevator.py | 6b18bc3621dfad99d97435503cea446731f70608 | [] | no_license | borislavstoychev/Soft_Uni | 5d047bef402c50215e0abc825476326889ffd0be | ccc0b2fb18f8ad6809b475eb20e82a9e4eb4b0b0 | refs/heads/master | 2023-05-11T12:27:08.672058 | 2021-05-28T18:00:10 | 2021-05-28T18:00:10 | 277,556,731 | 3 | 2 | null | 2021-02-11T19:57:37 | 2020-07-06T13:58:23 | Python | UTF-8 | Python | false | false | 119 | py | n = int(input())
p = int(input())
if n % p == 0:
courses = n//p
else:
courses = n // p + 1
print(courses) | [
"noreply@github.com"
] | borislavstoychev.noreply@github.com |
5415aabb59728ebc4a5c6162aa5db91bddd6490d | a9e3f3ad54ade49c19973707d2beb49f64490efd | /Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/cms/envs/devstack_docker.py | 2eece814deae2c31cf5456b34af9e0f386c38c4e | [
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"MIT"
] | permissive | luque/better-ways-of-thinking-about-software | 8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d | 5809eaca7079a15ee56b0b7fcfea425337046c97 | refs/heads/master | 2021-11-24T15:10:09.785252 | 2021-11-22T12:14:34 | 2021-11-22T12:14:34 | 163,850,454 | 3 | 1 | MIT | 2021-11-22T12:12:31 | 2019-01-02T14:21:30 | JavaScript | UTF-8 | Python | false | false | 129 | py | """ Overrides for Docker-based devstack. """
from .devstack import * # pylint: disable=wildcard-import, unused-wildcard-import
| [
"rafael.luque@osoco.es"
] | rafael.luque@osoco.es |
6653c822271f595c1ee6011406a88613852cd291 | 3325f16c04ca8e641cbd58e396f983542b793091 | /Seção 13 - Leitura e Escrita em Arquivos/Exercícios da Seção/Exercício_04.py | 3140f4c4229bb75d6849a37c399fbae14f608b1f | [] | no_license | romulovieira777/Programacao_em_Python_Essencial | ac929fbbd6a002bcc689b8d6e54d46177632c169 | e81d219db773d562841203ea370bf4f098c4bd21 | refs/heads/master | 2023-06-11T16:06:36.971113 | 2021-07-06T20:57:25 | 2021-07-06T20:57:25 | 269,442,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,434 | py | """
4) Faça um programa que receba do usuário um arquivo texto e mostre na tela
quantas letras são vogais e quantas são consoantes
"""
from Exercício_03 import conta_vogais
def conta_consoantes(txt):
"""Retorna a quantidade de consoantes que existe no texto recebido por parâmetro.
Caso o que for recebido por... | [
"romulo.vieira777@gmail.com"
] | romulo.vieira777@gmail.com |
85459e0cbd82140fa14886b0e5285bd8b8a76a28 | b1303152c3977a22ff9a0192c0c32310e65a6d77 | /python/567.permutation-in-string.py | c5487e09f925108dce4b4931b43c66fadd915fda | [
"Apache-2.0"
] | permissive | stavanmehta/leetcode | 1b8da1c2bfacaa76ddfb96b8dbce03bf08c54c27 | 1224e43ce29430c840e65daae3b343182e24709c | refs/heads/master | 2021-07-15T16:02:16.107962 | 2021-06-24T05:39:14 | 2021-06-24T05:39:14 | 201,658,706 | 0 | 0 | Apache-2.0 | 2021-06-24T05:39:15 | 2019-08-10T16:59:32 | Java | UTF-8 | Python | false | false | 81 | py | class Solution:
def checkInclusion(self, s1: str, s2: str) -> bool:
| [
"noreply@github.com"
] | stavanmehta.noreply@github.com |
6d7552c80362211c8655afa1523750f82b5f34b9 | cbdbb05b91a4463639deefd44169d564773cd1fb | /djangoproj/forms_lab/lab/models.py | a49bb957d8bc48b023dce230a3be6f848e11e28a | [] | no_license | blazprog/py3 | e26ef36a485809334b1d5a1688777b12730ebf39 | e15659e5d5a8ced617283f096e82135dc32a8df1 | refs/heads/master | 2020-03-19T20:55:22.304074 | 2018-06-11T12:25:18 | 2018-06-11T12:25:18 | 136,922,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | from django.db import models
class Nakup(models.Model):
datum_nakupa = models.DateField()
trgovina = models.CharField(max_length=30)
class NakupIzdelki(models.Model):
nakup = models.ForeignKey(Nakup)
izdelek = models.CharField(max_length=30)
kolicina = models.IntegerField(default=1)
cena = mo... | [
"blaz.korosec@mentis.si"
] | blaz.korosec@mentis.si |
a3e8f85b15362854f00e8158fedd47775ff9a1fb | 9b5597492e57313712c0a842ef887940f92636cd | /judge/sessions/2018Individual/sgessow@gmail.com/PB_02.py | f67c2bfbbc1ddd96d57cfd996db5fcf43c0930bf | [] | no_license | onionhoney/codesprint | ae02be9e3c2354bb921dc0721ad3819539a580fa | fcece4daf908aec41de7bba94c07b44c2aa98c67 | refs/heads/master | 2020-03-11T11:29:57.052236 | 2019-05-02T22:04:53 | 2019-05-02T22:04:53 | 129,971,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | Cases=input()
Cases=int(Cases)
for i in range(Cases):
Num1= [int(x) for x in input().split()]
Num2= [int(x) for x in input().split()]
Num3= [int(x) for x in input().split()]
count=0
ans=[]
for i in Num1:
if i==1:
ans.append(count)
count=count+1
count=0
for i i... | [
"root@codesprintla.com"
] | root@codesprintla.com |
618d26a1de085c3b232b50f8a719c096a1a4c389 | b5ca0a2ce47fdb4306bbdffcb995eb7e6eac1b23 | /Python/Regex and Parsing/Validating phone numbers/attempt2.py | 2b2d832379b0eb3a6171a2ff4bfd378358e9b641 | [] | no_license | rsoemardja/HackerRank | ac257a66c3649534197b223b8ab55011d84fb9e1 | 97d28d648a85a16fbe6a5d6ae72ff6503a063ffc | refs/heads/master | 2022-04-14T22:46:03.412359 | 2020-04-03T07:44:04 | 2020-04-03T07:44:04 | 217,687,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | import re
n = int(input())
for _ in range(n):
if re.fullmatch('[789]\d{9}', input()) != None:
print('YES')
else:
print('NO') | [
"rsoemardja@gmail.com"
] | rsoemardja@gmail.com |
6698de943e743d11300f391dd839dad9369a9914 | c2f4afee3ec4faef7231da2e48c8fef3d309b3e3 | /AppendFile.py | 7fcd0d08932bb7aacd4bdcc2a8461d8776ca7cac | [] | no_license | tanu312000/pyChapter | a723f99754ff2b21e694a9da3cb2c6ca0cd10fce | 2fd28aefcbfaf0f6c34db90fdf0d77f9aea142ce | refs/heads/master | 2020-05-03T15:51:34.334806 | 2019-03-31T16:17:45 | 2019-03-31T16:17:45 | 178,712,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | '''#WAP to read line by line from keyboard & append to a list until n times. Break the loop under break condition.
#Step:1
# 1)ReadLine from keyboard
Line=input("Enter a Line"+"\n")
# 2)Append in the list
li=[]
li.append(Line)
# 3)Until n times
while True:
Status=input("Do you want to continue")
# 4)Break th... | [
"tanurocks90@gmail.com"
] | tanurocks90@gmail.com |
011d3b37d7cb2a349a9f335003c370504e1fc868 | 26fb93b2df4b6226e708027beccb2f0d442a4522 | /MWTracker/GUI_Qt4/SWTrackerViewer/SWTrackerViewer_GUI.py | fbf28e5f0a9297acd767443f273c16285271614c | [] | no_license | KezhiLi/Multiworm_Tracking | bb4fd1d1beeab26f4402f5aa5a3f159700fa0009 | cd91e968a557957e920d61db8bc10957666b6bc2 | refs/heads/master | 2021-01-22T16:10:23.591064 | 2016-04-13T15:51:18 | 2016-04-13T15:51:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,201 | py | import sys
from PyQt4.QtGui import QApplication, QMainWindow, QFileDialog, QMessageBox, QFrame
from PyQt4.QtCore import QDir, QTimer, Qt, QPointF
from PyQt4.QtGui import QPixmap, QImage, QPainter, QColor, QFont, QPolygonF, QPen
from MWTracker.GUI_Qt4.SWTrackerViewer.SWTrackerViewer_ui import Ui_ImageViewer
from MWTrac... | [
"ver228@gmail.com"
] | ver228@gmail.com |
25e72161c8d4276d21d755c960750c74d408ce34 | 8f75dae40363144b7ea0eccb1b2fab804ee60711 | /tests/integration/goldens/credentials/samples/generated_samples/iamcredentials_v1_generated_iam_credentials_sign_blob_async.py | fffa6de4bc73a43e8c4de2347fdbc936e2ed972e | [
"Apache-2.0"
] | permissive | software-dov/gapic-generator-python | a2298c13b02bff87888c2949f4909880c3fa2408 | 304b30d3b4ec9ccb730251154b10896146a52900 | refs/heads/master | 2022-06-04T00:14:28.559534 | 2022-02-28T18:13:26 | 2022-02-28T18:13:26 | 191,990,527 | 0 | 1 | Apache-2.0 | 2022-01-27T19:35:04 | 2019-06-14T18:41:06 | Python | UTF-8 | Python | false | false | 1,491 | py | # -*- coding: utf-8 -*-
# Copyright 2022 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... | [
"noreply@github.com"
] | software-dov.noreply@github.com |
4ce90ed6b7934f21c3463432f8284e1baa696b8f | cc1b87f9368e96e9b3ecfd5e0822d0037e60ac69 | /dashboard/dashboard/deprecate_tests_test.py | 63b49de8e073633803e4351d0465573bfede7986 | [
"BSD-3-Clause"
] | permissive | CTJyeh/catapult | bd710fb413b9058a7eae6073fe97a502546bbefe | c98b1ee7e410b2fb2f7dc9e2eb01804cf7c94fcb | refs/heads/master | 2020-08-19T21:57:40.981513 | 2019-10-17T09:51:09 | 2019-10-17T18:30:16 | 215,957,813 | 1 | 0 | BSD-3-Clause | 2019-10-18T06:41:19 | 2019-10-18T06:41:17 | null | UTF-8 | Python | false | false | 9,522 | py | # Copyright 2017 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.
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
import datetime
import mock
import unittest
im... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
33f06e48105dd16509b58527c0eed07ca7ed05a6 | bc441bb06b8948288f110af63feda4e798f30225 | /cmdb_sdk/model/notify/subscriber_pb2.pyi | f37ead231f841e671f9d1f218fbe6e05d86a7244 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,884 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from cmdb_sdk.model.notify.subscribe_info_pb2 import (
SubscribeInfo as cmdb_sdk___model___notify___subscribe_info_pb2___SubscribeInfo,
)
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
... | [
"service@easyops.cn"
] | service@easyops.cn |
9090363a9ae18d37db75ef5f9cfa91a9746969d5 | 054b2c78cf70a81823da522f1bb5889f42787365 | /mudao/ui/__init__.py | 78dc516a1d30d973d1d13ab0207c9f1ca480fe43 | [] | no_license | musum/mudao | 9537ca1f6262b1271f9c4f6a247e00549762d254 | fbf8c507aa6e1755ac4126d7e4d75ace99b97fd4 | refs/heads/master | 2020-03-26T16:27:59.967129 | 2018-11-11T10:40:46 | 2018-11-11T10:40:46 | 145,103,715 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | from mudao.ui.uiFile import FilePannel
from mudao.ui.uiCmd import CmdPannel
from mudao.ui.uiMain import MainWindow
| [
"test@test.com"
] | test@test.com |
dbf025d7bcfc7df0a48718eccc0b0cb14810a02c | c2f35e5d3cfbbb73188a0cd6c43d161738e63bd1 | /12-Django框架学习/bj18/test2/booktest/admin.py | e10072641c8350576c99bd572fcb82581b21d2f6 | [] | no_license | yangh-zzf-itcast/Python_heima_Study | 2a7cd0d801d9d6f49548905d373bb409efc4b559 | 7d753c1cdd5c46a0e78032e12b1d2f5d9be0bf68 | refs/heads/master | 2020-04-30T06:59:04.000451 | 2019-04-19T12:15:30 | 2019-04-19T12:15:30 | 176,670,172 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | from django.contrib import admin
from booktest.models import BookInfo, HeroInfo
# Register your models here.
# 注册模型类
admin.site.register(BookInfo)
admin.site.register(HeroInfo)
| [
"2459846416@qq.com"
] | 2459846416@qq.com |
8eb3b583ba00c21e0e51f30d62670c1da9f518e3 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/87/usersdata/171/57992/submittedfiles/contido.py | 9b0e89a4443abb2d93f0a13c24567c49b26e2254 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | # -*- coding: utf-8 -*-
def quantidade(lista,lista2):
cont=0
for i in range(0,len(lista),1):
if lista[i]==lista2[i]:
cont=cont+1
return(cont)
n=int(input('digite o numero de elemento:'))
lista1=[]
for i in range(1,n+1,1):
cont=0
valor1=int(input('digite o numero á ser colocado na... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
2f83c5cac7624e5304cf2aa0459939e100999280 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_085/ch2_2020_07_09_22_36_13_402167.py | c82e823dcb2277b1070d6ac039df23e7849b4131 | [] | 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 | 49 | py | def calcula_velocidade_media(d,t):
return d/t | [
"you@example.com"
] | you@example.com |
744d50f28a2c94ad5282605b6d3bb4517f7916ea | 0466559817d3a1be9409da2c83db99c4db3bacfe | /hubcheck/conf/config.py | b68b5bd69b995419b02cbc759340b2a456a15ce1 | [
"MIT"
] | permissive | ken2190/hubcheck | 955cf9b75a1ee77e28256dfd3a780cfbc17de961 | 2ff506eb56ba00f035300862f8848e4168452a17 | refs/heads/master | 2023-03-20T15:17:12.949715 | 2015-09-29T16:11:18 | 2015-09-29T16:11:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | import os
from pkg_resources import resource_filename
class Config(object):
data_dir = resource_filename('hubcheck','data')
profiles_dir = resource_filename('hubcheck','profiles')
# user configuration variables
screenshot_dir = None
video_dir = None
config_filename = None
tdfname = ''
... | [
"telldsk@gmail.com"
] | telldsk@gmail.com |
8bcc7d5dab776217c266b88d9884fc3a7e5a583d | 1bcb966740f47c0edc23e9b05afec55f2bcae36a | /app/game/appinterface/packageInfo.py | 92697a828967b4ecf9a95dbc7d38fdf70e8c3d66 | [] | no_license | East196/diabloworld | 0d2e9dbf650aa86fcc7b9fc1ef49912e79adb954 | d7a83a21287ed66aea690ecb6b73588569478be6 | refs/heads/master | 2021-05-09T12:15:31.640065 | 2018-02-04T15:16:54 | 2018-02-04T15:16:54 | 119,007,609 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,226 | py | #coding:utf8
'''
Created on 2011-4-13
@author: sean_lan
'''
from app.game.core.PlayersManager import PlayersManager
def getItemsInEquipSlotNew(dynamicId,characterId):
'''获取角色的装备栏信息
@param dynamicId: int 客户端的id
@param characterId: int 角色的id
'''
player = PlayersManager().getPlayerByID(characterI... | [
"2901180515@qq.com"
] | 2901180515@qq.com |
bb6a13c53d923939882c90a3722dcb0ee6f65008 | ecee6e84ba18100b621c7e06f493ae48e44a34fe | /build/navigation/nav_core/catkin_generated/pkg.installspace.context.pc.py | 7154b8261ec9e1dfe4b7533a24c5c418fed5f7a6 | [] | no_license | theleastinterestingcoder/Thesis | 6d59e06b16cbe1588a6454689248c88867de2094 | 3f6945f03a58f0eff105fe879401a7f1df6f0166 | refs/heads/master | 2016-09-05T15:30:26.501946 | 2015-05-11T14:34:15 | 2015-05-11T14:34:15 | 31,631,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/alfred/quan_ws/install/include".split(';') if "/home/alfred/quan_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "std_msgs;geometry_msgs;tf;costmap_2d".replace(';', ' ')
PKG_CONFIG_LIB... | [
"quanzhou64@gmail.com"
] | quanzhou64@gmail.com |
aa893d19b93fa4e46eae5303e87793c9a2afed4f | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_118/1093.py | fa244fab36bc58d7529d2c7242771c1da73f5714 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | def isPalindrome(num):
if num - int(num) != 0:
return False
num = str(int(num))
l = len(num)
for i in xrange(l):
if num[i] != num[l-i-1]:
return False
return True
def allFairAndSquare(a, b):
rtn = []
for i in xrange(a, b+1):
if isPalindrome(i... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
9a9e8b7d9284574442ab7b8a10207055a4e065fd | fa07f9ff0c833746a4195a9092f5831e1126b684 | /03逻辑回归/tool/Read_Minist_Tool.py | 20e00b911aaddbd62cbe3738177e435b941c794e | [] | no_license | shiqiuwang/ML_basic_model | 76c3b755dda772031bfba22860ee61bb2ea286fc | b6d7350332f3ef32ccc5dc69f81b629c5bcdd349 | refs/heads/master | 2023-03-23T10:23:08.130357 | 2021-03-20T16:43:30 | 2021-03-20T16:43:30 | 348,405,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,341 | py | # coding=utf-8
import numpy as np
import struct
import matplotlib.pyplot as plt
# 训练集文件
train_images_idx3_ubyte_file = 'data/minist/train-images.idx3-ubyte'
# 训练集标签文件
train_labels_idx1_ubyte_file = 'data/minist/train-labels.idx1-ubyte'
# 测试集文件
test_images_idx3_ubyte_file = 'data/minist/t10k-images.idx3-ubyte'
# 测试集标签... | [
"2714049089@qq.com"
] | 2714049089@qq.com |
06b102050b963026c4e5184c89d73ea7e22da896 | 4cc16cdcee820f258fcdb7550b853949fc59de46 | /mobject/vectorized_mobject.py | 615e24502c0de9496acb4dcc415c9e2f3a81e407 | [] | no_license | eitanas/manim | c710802ef301b11d0ac6549bb58e04fcc59cc16d | 825ff127a517f35041b2def6efe29a8d6358cd4c | refs/heads/master | 2021-01-22T16:26:09.805304 | 2016-08-15T22:07:28 | 2016-08-15T22:07:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,000 | py | import re
from .mobject import Mobject
from helpers import *
class VMobject(Mobject):
CONFIG = {
"fill_color" : None,
"fill_opacity" : 0.0,
"stroke_color" : None,
#Indicates that it will not be displayed, but
#that it should count in parent mobject's path
... | [
"grantsanderson7@gmail.com"
] | grantsanderson7@gmail.com |
c12227791c9532c511adc49b611291c60354dc51 | 948d84d2e3fc04e353a11384d8570308174242f5 | /5-Pythonda Koşul İfadeleri/if-else-demo-2.py | ee6cf34554eeaa7723e51f9eedd857630f2067ee | [] | no_license | omerfarukcelenk/PythonMaster | a0084a800b8a41cd2ad538a7ca3687c26dc679ec | 0db8f8b0ea2e1c2d810c542068cfcf1a3615f581 | refs/heads/main | 2023-04-16T17:42:05.501904 | 2021-04-26T21:19:27 | 2021-04-26T21:19:27 | 361,896,109 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,485 | py | '''
1- Girilen bir sayının 0-100 arasında olup olmadığını kontrol ediniz.
sayi = float(input('sayı: '))
if (sayi > 0) and (sayi<=100):
print('sayı 0-100 arasında.')
else:
print('sayı 0-100 arasında değildir.')
'''
'''
2- Girilen bir sayının pozitif çift sayı olup olmadığını kontrol ediniz.
sayi = int(input... | [
"omerfar0133@gmail.com"
] | omerfar0133@gmail.com |
51d2268bc441dc7e0809af59b51d58def2641769 | 5f10ca2439551040b0af336fd7e07dcc935fc77d | /Binary tree/二叉树性质相关题目/求每层的宽度.py | dcef6bda78001250e1f9f1a433d3a54382bd13b5 | [] | no_license | catdog001/leetcode2.0 | 2715797a303907188943bf735320e976d574f11f | d7c96cd9a1baa543f9dab28750be96c3ac4dc731 | refs/heads/master | 2021-06-02T10:33:41.552786 | 2020-04-08T04:18:04 | 2020-04-08T04:18:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,494 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# @Time : 2020/2/13 13:06
# @Author : LI Dongdong
# @FileName: 求每层的宽度.py
''''''
'''
题目分析
1.要求:求每层中,左边第一个到右边第一个的宽度
2.理解:
3.类型:
4.确认输入输出及边界条件:
4.方法及方法分析:
time complexity order:
space complexity order:
'''
'''
思路:bfs + [node, index]
方法:
deque record node and index (2* i... | [
"lidongdongbuaa@gmail.com"
] | lidongdongbuaa@gmail.com |
f1df3479147b367dfc6cc0d007b4386d3a0e7fa8 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_authorization_py3.py | b4bb3df4dd52a8366e8cb7b9b1d60fa77e023bf0 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 2,559 | 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"
] | xiafu-msft.noreply@github.com |
20c78b60b815c01583da61d8d071a7b4e1735589 | dbf8768bb3818b4003f2e34ff561afb235a3734a | /Python/Templates/Django/ProjectTemplates/Python/Web/PollsDjango/app-admin.py | 898eb59ef40b51c7c1a179375f53430f2d5f5b8c | [
"Apache-2.0"
] | permissive | wjk/PTVS | bf3880198ba35ae34b12872a86fe2b03d2a82180 | 184b6711a8700a7f9d78f6d6ac3b225f81a8b8b8 | refs/heads/master | 2020-12-14T16:11:40.486645 | 2020-01-17T20:45:15 | 2020-01-17T20:45:15 | 234,801,602 | 1 | 0 | Apache-2.0 | 2020-01-18T21:41:27 | 2020-01-18T21:41:26 | null | UTF-8 | Python | false | false | 669 | py | """
Customizations for the Django administration interface.
"""
from django.contrib import admin
from app.models import Choice, Poll
class ChoiceInline(admin.TabularInline):
"""Choice objects can be edited inline in the Poll editor."""
model = Choice
extra = 3
class PollAdmin(admin.ModelAdmin):
"""De... | [
"steve.dower@microsoft.com"
] | steve.dower@microsoft.com |
b7f93333d8f7f87274baefcfac762f864f7617c2 | f385e93fb799629318b6f5bbae1a3b29d62d8359 | /database/citations/asuncion2012a.py | ea381f3189a4abf25a7944dc6845c8cf0f359501 | [] | no_license | JoaoFelipe/ipaw-index | bf113649de497d2008922eb80f8ea3bf2cd6aba5 | f8fe329f0c35b11c84bd76e7b7da7a465d380a02 | refs/heads/master | 2020-03-17T19:51:13.892958 | 2018-05-18T00:54:08 | 2018-05-18T00:54:08 | 133,880,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | # coding: utf-8
from snowballing.models import *
from snowballing import dbindex
dbindex.last_citation_file = dbindex.this_file(__file__)
from ..work.y2012 import asuncion2012a
from ..work.y2016 import reddish2016a
DB(Citation(
reddish2016a, asuncion2012a, ref="",
contexts=[
],
))
| [
"joaofelipenp@gmail.com"
] | joaofelipenp@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.