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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9e599e8b5fd751743f099de05205732cd4bc081c | e77b92df446f0afed18a923846944b5fd3596bf9 | /Programers_algo/Graph/kruskal.py | d1d113114a54256cb73edd9e6cc8c3d493ea7ea5 | [] | no_license | sds1vrk/Algo_Study | e40ca8eb348d1fc6f88d883b26195b9ee6f35b2e | fbbc21bb06bb5dc08927b899ddc20e6cde9f0319 | refs/heads/main | 2023-06-27T05:49:15.351644 | 2021-08-01T12:43:06 | 2021-08-01T12:43:06 | 356,512,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,227 | py | # 크루스칼 알고리즘
# 가장 적은 비용으로 모든 노드를 연결
# UnionFind
import sys
sys.stdin=open("input.txt","r")
# 특정 원소가 속한 부모 집합 찾기
def find_parent(parent,x):
# 루트 노트가 아니라면, 루트 노드를 찾을떄까지 재귀적으로 후촐
if parent[x]!=x:
parent[x]=find_parent(parent,parent[x])
# parent[x]가 갱신됨
return parent[x]
# 두 원소가 속한 집합 합치기
def union... | [
"51287886+sds1vrk@users.noreply.github.com"
] | 51287886+sds1vrk@users.noreply.github.com |
8b1cec12c2e95e9c6e1aa2b3a1dc3890902dccb6 | 6a69d57c782e0b1b993e876ad4ca2927a5f2e863 | /vendor/samsung/common/packages/apps/SBrowser/src/media/cast/test/utility/utility.gyp | 93e2f14842b82bec4a5561b751635ce8a87d4a77 | [
"BSD-3-Clause"
] | permissive | duki994/G900H-Platform-XXU1BOA7 | c8411ef51f5f01defa96b3381f15ea741aa5bce2 | 4f9307e6ef21893c9a791c96a500dfad36e3b202 | refs/heads/master | 2020-05-16T20:57:07.585212 | 2015-05-11T11:03:16 | 2015-05-11T11:03:16 | 35,418,464 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 891 | gyp | # Copyright 2013 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.
{
'targets': [
{
'target_name': 'cast_test_utility',
'type': 'static_library',
'include_dirs': [
'<(DEPTH)/',
],
... | [
"duki994@gmail.com"
] | duki994@gmail.com |
b8ed59691aeefe3e4e9152934a20f1a38dd76ec1 | 135254b8c00935efd0efd33c708ce69470e23741 | /Hard/149. Max Points on a Line.py | b3ccdb55fe8727f1317734272d23f558f8fa762e | [] | no_license | MinecraftDawn/LeetCode | 4974e6f96612f01e4774ecd5c30bc42dfff79467 | 0404bcce27ff363430e6ab71dbc27a69055fd261 | refs/heads/master | 2021-06-19T05:50:08.000396 | 2021-06-14T05:57:09 | 2021-06-14T05:57:09 | 188,446,485 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | class Solution:
def maxPoints(self, points: list) -> int:
length = len(points)
if length < 3: return length
ans = 0
for i in range(length-1):
for j in range(i+1,length):
x1,y1 = points[i]
x2,y2 = points[j]
... | [
"eric4902077@gmail.com"
] | eric4902077@gmail.com |
a714c5b7c7804e9c67533f18dde8b0eedd53ddb4 | ce196aba0adde47ea2767eae1d7983a1ef548bb8 | /turtle_天花乱坠动画2.py | fcf7f1dd160a5abe55f5b10729cabd0a1f397bb2 | [] | no_license | xiang-daode/Python3_codes | 5d2639ffd5d65065b98d029e79b8f3608a37cf0b | 06c64f85ce2c299aef7f9311e9473e0203a05b09 | refs/heads/main | 2023-08-30T14:59:55.123128 | 2021-11-03T05:12:24 | 2021-11-03T05:12:24 | 333,632,892 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | # 在这里写上你的代码 :-)
from turtle import *
import math
x0,y0=0,0
u,v,w=.1,.2,.3
def Trgl(x,y,q):
global x0,y0
rgb="#"+hex(0x100000+(q**3) % 0xEFFFFF)[2:]
clr="#"+hex(0x100000+(q**2) % 0xEFFFFF)[2:]
pu()
goto(x0,y0)
pd()
pensize(6)
pencolor(rgb)
goto(x,y)
lt(.1) #旋转(角度制)
fill... | [
"noreply@github.com"
] | xiang-daode.noreply@github.com |
af9f7a13d84ec8d9dcd93612ecfb7ab3e5a9bcd3 | be0e0488a46b57bf6aff46c687d2a3080053e52d | /python/baekjoon/10991.py | 8b5a24ec3813157fd199bc0c010da37a72249e58 | [] | no_license | syo0e/Algorithm | b3f8a0df0029e4d6c9cbf19dcfcb312ba25ea939 | 1ae754d5bb37d02f28cf1d50463a494896d5026f | refs/heads/master | 2023-06-09T11:31:54.266900 | 2021-06-30T17:04:38 | 2021-06-30T17:04:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | n = int(input())
for i in range(n):
for j in range(i + 1, n):
print(" ", end="")
for j in range(i+1):
print("* ", end="")
print()
| [
"kyun2dot@gmail.com"
] | kyun2dot@gmail.com |
7b218f14178cea2f621b90959936835954be0bd5 | 4a1b61cf551db7843050cc7080cec6fd60c4f8cc | /2020/SWEA_문제/swea_1211_Ladder2_풀이.py | 8caa8091e792d5a7c8190b1981bcb752ee8bf14e | [] | no_license | phoenix9373/Algorithm | 4551692027ca60e714437fd3b0c86462f635d8ff | c66fd70e14bb8357318e8b8f386d2e968f0c4d98 | refs/heads/master | 2023-08-24T10:01:20.798430 | 2021-10-15T07:57:36 | 2021-10-15T07:57:36 | 288,092,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | dc = [-1, 1] # 좌우
def dir_check(r, c): # 방향 체크.
for i in range(2):
nc = c + dc[i]
if 0 <= nc < 100 and ladder[r][nc] == 1:
return i
return 2
def go(st):
col = st_pos[st]
cnt = 0
idx = st
for i in range(100):
d = dir_check(i, col)
if d < 2:
... | [
"phoenix9373@naver.com"
] | phoenix9373@naver.com |
2fd557c72c6c708381632158e55b0b34053df367 | 7e93b1c33045b4c03054f42b6a2b800279b12a9b | /core/cache/backends/dummy.py | dd3b537c31f94fd76440864c0633ceb9028bcdbe | [
"MIT"
] | permissive | anthill-arch/framework | 6f8036980667843f2be1414850255cf6a10e2dcd | a6c238a62ae9c3fb319d12e77f7e9047aab75e8d | refs/heads/master | 2020-05-09T06:01:31.186830 | 2019-08-23T13:52:43 | 2019-08-23T13:52:43 | 180,988,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | """Dummy cache backend"""
from anthill.framework.core.cache.backends.base import DEFAULT_TIMEOUT, BaseCache
class DummyCache(BaseCache):
def __init__(self, host, *args, **kwargs):
super().__init__(*args, **kwargs)
def add(self, key, value, timeout=DEFAULT_TIMEOUT, version=None):
key = self.m... | [
"x55aah@gmail.com"
] | x55aah@gmail.com |
990c86e2db482e655b196f5e1532da5ba6511e28 | 21b201ebf2ffbbc19fa8d74e5657e12ef597b02d | /research/attention_ocr/python/datasets/fsns_test.py | ae4bd198024cacb58466a58ae414192674610642 | [] | no_license | alhsnouf/model | fa619691ad9d0afc7ad849a9471e6bb0643a8d47 | 5fe429b115634e642a7469b3f1d4bc0c5cf98782 | refs/heads/master | 2021-04-12T11:16:02.150045 | 2018-03-27T15:19:18 | 2018-03-27T15:19:18 | 126,702,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:adecb7ba327b3d3e67e0b87d2739a254b0a9b16b81fbffc730ee0c03476db08d
size 3374
| [
"alhanouf987@hotmail.com"
] | alhanouf987@hotmail.com |
a5eb64360406339ff21e0b63e1436f7afdc47e43 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/RIP-IP-PRIVATE-MIB.py | eb15ca1696c7f85b183cd39d2ae9dd12d855a403 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 10,204 | py | #
# PySNMP MIB module RIP-IP-PRIVATE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RIP-IP-PRIVATE-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:48:51 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, ... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
7589cc724a6de9341855ab64e3e966192de85fb8 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-dns/huaweicloudsdkdns/v2/model/associate_router_request_body.py | 1fee2936721baab02638a1cc01ff60243363cc0b | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,088 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class AssociateRouterRequestBody:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is a... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
861702d38884274207c83fc6a9221108052e545b | b3b68efa404a7034f0d5a1c10b281ef721f8321a | /Scripts/simulation/holidays/holiday_commands.py | d5c08c9ea3a12970f2e84cae9f7fa63bd14fa313 | [
"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 | 2,539 | 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\holidays\holiday_commands.py
# Compiled at: 2018-03-22 23:30:43
# Size of source mod 2**32: 2819 byt... | [
"cristina.caballero2406@gmail.com"
] | cristina.caballero2406@gmail.com |
7ea4bf955c72f0899acb5deec87b995d090645a2 | ccbf98db11ce2f7f6d21b846e90b806896be8429 | /Your_first_neural_network.py | e31c96471a17845499caa583158484ad019ea377 | [] | no_license | MartinSnow/first-neural-network | 3b1514b7e90f041a8dca9dd2e73d8b0c05c53f4c | 7123fb5d904bcb713bb3c2b2dc07dada62078ca0 | refs/heads/master | 2020-03-19T00:03:42.608144 | 2018-05-30T14:56:11 | 2018-05-30T14:56:11 | 135,450,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,135 | py |
# coding: utf-8
# # 你的第一个神经网络
#
# 在此项目中,你将构建你的第一个神经网络,并用该网络预测每日自行车租客人数。我们提供了一些代码,但是需要你来实现神经网络(大部分内容)。提交此项目后,欢迎进一步探索该数据和模型。
# In[1]:
get_ipython().run_line_magic('matplotlib', 'inline')
get_ipython().run_line_magic('config', "InlineBackend.figure_format = 'retina'")
import numpy as np
import pandas as pd
import m... | [
"you@example.com"
] | you@example.com |
3eeadc182efdc464262b1666ed9e13d5177d14a7 | 9b1446b26e81a79c303f9799fb6a91785c7adb03 | /Code/.history/listogram_20200211102152.py | dba8833384547273220a2bdcaa8ac891eb054bfd | [] | no_license | SamirIngley/CS1.2-Tweet-Gen | 017ea15b1113881a156ff24682828bc654eb6c81 | bcd95fa63e05849cbf8e36230d8e31032b99daaa | refs/heads/master | 2020-12-14T20:19:57.733290 | 2020-08-04T23:19:23 | 2020-08-04T23:19:23 | 234,856,234 | 0 | 0 | null | 2020-06-05T21:13:04 | 2020-01-19T07:05:55 | Python | UTF-8 | Python | false | false | 5,653 | py | #!python
from __future__ import division, print_function # Python 2 and 3 compatibility
import random
from sample import prob_sample
class Listogram(list):
"""Listogram is a histogram implemented as a subclass of the list type."""
def __init__(self, word_list=None):
"""Initialize this histogram as ... | [
"samir.ingle7@gmail.com"
] | samir.ingle7@gmail.com |
8777583da741851996ff7641ab50d2af2560ea1b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03073/s506049287.py | e7b40d93af0372410ecb41380792639e0b71e517 | [] | 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 | 95 | py | s=input()
print(min(s[::2].count("1")+s[1::2].count("0"),s[::2].count("0")+s[1::2].count("1"))) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
78e865b1517223315d05ca75adde29b5a753601b | acad86f0365aa0b5b613644a896bffb9d4dc533f | /django_session_jwt/test.py | 8e931858e91b4e4cab19fa50500ef1161aa607b8 | [
"MIT"
] | permissive | willstott101/django-session-jwt | f85be9c9d5cefe26f5e6253886018baa256c2a83 | ca5dc90c61190305f902ceab03a30abf0e184865 | refs/heads/master | 2023-08-29T13:42:35.587372 | 2021-09-23T19:18:26 | 2021-09-23T19:18:26 | 421,750,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | from importlib import import_module
from django.conf import settings
from django.test.client import Client as BaseClient
from django.contrib.auth import SESSION_KEY, get_user_model
from django_session_jwt.middleware import convert_cookie, verify_jwt
User = get_user_model()
class Client(BaseClient):
def login(... | [
"btimby@gmail.com"
] | btimby@gmail.com |
9c3072e28bebc804c79f0b1fa0248796a4500f7e | 82e8593a7e91a260a39b150e13f25741da4d6f8f | /pylib/cli.py | a4dbf7efd887a15e93d2dcb068d85565d0cc2891 | [] | no_license | grandi23/winterpy | 5b9074c62d0f3da370705b99ae2a5f9d9f6ada59 | 989fe6595dc53dca9a0f6da3feb8e05d009d7958 | refs/heads/master | 2021-01-17T12:08:10.737815 | 2015-05-03T09:24:48 | 2015-05-03T09:24:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,847 | py | # vim:fileencoding=utf-8
# This file is in the Public Domain
'''
Convenient functions for command-line use.
Python 2 & 3
'''
import os
import re
def repl(local, histfile=None, banner=None):
import readline
import rlcompleter
if 'libedit' in readline.__doc__:
readline.parse_and_bind('bind ^I rl_complete')
... | [
"lilydjwg@gmail.com"
] | lilydjwg@gmail.com |
e8d8d9af59056af753ef58acd36c9b21d2d45cbf | 39354dfc8f61f57f022522a3e3a880c73a540d0d | /shenfun/utilities/__init__.py | ab4cb0c3b03aa606b0854b11a59de03b0f3e750b | [
"BSD-2-Clause"
] | permissive | mstf1985/shenfun | aab9cd416ea7cb549ef191ed9e32f4cd66d522d0 | 83a28b3f7142ef3bf60b20d707ba8c1d2f13a8ff | refs/heads/master | 2022-12-10T20:27:51.825173 | 2020-08-28T13:58:58 | 2020-08-28T13:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,621 | py | """
Module for implementing helper functions.
"""
import types
from numbers import Number
try:
from collections.abc import MutableMapping
except ImportError:
from collections import MutableMapping
from collections import defaultdict
import numpy as np
import sympy as sp
from scipy.fftpack import dct
from shenfu... | [
"mikaem@math.uio.no"
] | mikaem@math.uio.no |
92860749415e2e2d47633bedc17980cca62a426e | 1a57701cb4d1646aafde8697822bbccac75384d2 | /backend/manage.py | c4af1014429b9188efdb9af4081d3e319f46a4d3 | [] | no_license | crowdbotics-apps/msm-sjsjskjsk8765-d-13922 | 79159dc8e38253fba76dfd706b8846be04a46c2a | 70e94d23e2b32e62ced3ef27304a4cef63763e1b | refs/heads/master | 2022-12-31T19:00:03.093402 | 2020-10-23T10:11:57 | 2020-10-23T10:11:57 | 306,597,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'msm_sjsjskjsk8765_d_13922.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
4e5392e6a97b9f2543a239f9adb0cf149741da5a | 3a5ea75a5039207104fd478fb69ac4664c3c3a46 | /vega/modules/operators/cell.py | d03942590a2e4c9f3881d5e842d8bfb35026b39d | [
"MIT"
] | permissive | fmsnew/vega | e3df25efa6af46073c441f41da4f2fdc4929fec5 | 8e0af84a57eca5745fe2db3d13075393838036bb | refs/heads/master | 2023-06-10T04:47:11.661814 | 2021-06-26T07:45:30 | 2021-06-26T07:45:30 | 285,174,199 | 0 | 0 | MIT | 2020-08-11T14:19:09 | 2020-08-05T03:59:49 | Python | UTF-8 | Python | false | false | 11,111 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the... | [
"zhangjiajin@huawei.com"
] | zhangjiajin@huawei.com |
00f9596b9cdd8422623d02cb8b0bb31ff158a62c | 27b4d1b7723845812111a0c6c659ef87c8da2755 | /face_recognition/02.py | 688d0fa1923af488a037fb7b805f09b4f024848a | [] | no_license | NAMEs/Python_Note | 59a6eff7b4287aaef04bd69fbd4af3faf56cccb4 | f560e00af37c4f22546abc4c2756e7037adcc40c | refs/heads/master | 2022-04-11T09:32:17.512962 | 2020-03-17T09:30:58 | 2020-03-17T09:30:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | '''
自动找到图像中的所有面孔
'''
from PIL import Image
import face_recognition
#加载图片
image1 = face_recognition.load_image_file('./unknow/5.jpg')
# 返回一个列表,列表中用元组保存图片中的所有人脸的位置
face_locations = face_recognition.face_locations(image1)
# print(face_locations)
print("There are {} people in the picture.".format(len(face_l... | [
"1558255789@qq.com"
] | 1558255789@qq.com |
2bb3173ee451d64125b9bd935ef9020db64cf605 | 3784495ba55d26e22302a803861c4ba197fd82c7 | /venv/lib/python3.6/site-packages/tensorboard/plugins/core/core_plugin.py | d09c2e5e23649249a4a751fa162d9e0afb36e843 | [
"MIT"
] | permissive | databill86/HyperFoods | cf7c31f5a6eb5c0d0ddb250fd045ca68eb5e0789 | 9267937c8c70fd84017c0f153c241d2686a356dd | refs/heads/master | 2021-01-06T17:08:48.736498 | 2020-02-11T05:02:18 | 2020-02-11T05:02:18 | 241,407,659 | 3 | 0 | MIT | 2020-02-18T16:15:48 | 2020-02-18T16:15:47 | null | UTF-8 | Python | false | false | 21,021 | 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... | [
"luis20dr@gmail.com"
] | luis20dr@gmail.com |
5335d5257663403a517f518fdf9c961756784406 | 3e4c69317323bca865b025503b60bf83d3ae65f8 | /tests/utils/test_acmg.py | 6132c8f86287fe797726022e906f8235c7898b7c | [
"BSD-3-Clause"
] | permissive | tapaswenipathak/scout | f59beaa997a45487ac96c3b3e560b5e5aa9b30ae | c9b3ec14f5105abe6066337110145a263320b4c5 | refs/heads/master | 2020-05-30T11:13:25.662300 | 2019-05-28T09:26:25 | 2019-05-28T09:26:25 | 189,694,812 | 1 | 0 | BSD-3-Clause | 2019-06-01T05:36:35 | 2019-06-01T05:36:34 | null | UTF-8 | Python | false | false | 11,264 | py | from scout.utils.acmg import (is_pathogenic, is_likely_pathogenic, is_benign,
is_likely_benign, get_acmg)
def test_is_pathogenic_1():
"""First criterias for pathogenic:
Pathogenic
(i) 1 Very strong (PVS1) AND
(a) ≥1 Strong (PS1–PS4) OR
(... | [
"robin.andeer@gmail.com"
] | robin.andeer@gmail.com |
a20075e0059049e6698238fbbf02603234423db8 | 4cf3f8845d64ed31737bd7795581753c6e682922 | /.history/main_20200118153017.py | 11784752a3b75cb54167767e62d3d06c83f12c3a | [] | no_license | rtshkmr/hack-roll | 9bc75175eb9746b79ff0dfa9307b32cfd1417029 | 3ea480a8bf6d0067155b279740b4edc1673f406d | refs/heads/master | 2021-12-23T12:26:56.642705 | 2020-01-19T04:26:39 | 2020-01-19T04:26:39 | 234,702,684 | 1 | 0 | null | 2021-12-13T20:30:54 | 2020-01-18T08:12:52 | Python | UTF-8 | Python | false | false | 256,643 | py | from telegram.ext import Updater, CommandHandler
import requests
import re
# API call to source, get json (url is obtained):
contents = requests.get('https://random.dog/woof.json').json()
image_url = contents['url']
def get_url():
contents = requests.get('https://random.dog/woof.json').json()
url = cont... | [
"ritesh@emerald.pink"
] | ritesh@emerald.pink |
4edf1fe1a5e22527573a5583c5b23eb261503734 | 308c6fb81f0023b9d5682731c10402ce6a2ebb49 | /django-coreyschafer/bin/wheel | 22071a9376b83a7a00b89f03cc28124ac54f7bc7 | [] | no_license | frclasso/django-project1 | 221646ddc9a6702ab8ab2b0e475f4eed09411457 | 9527e30f5f6d54be2a77524411f114441c968a92 | refs/heads/master | 2020-07-06T13:42:28.314546 | 2019-08-26T00:55:25 | 2019-08-26T00:55:25 | 203,033,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | #!/home/fabio-gurus/Desktop/repositories/django_projects/django-coreyschafer/bin/python3
# -*- 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())
| [
"frclasso@yahoo.com.br"
] | frclasso@yahoo.com.br | |
f6d9cbd62c65febcdc5836464a6acb874d242b87 | 197420c1f28ccb98059888dff214c9fd7226e743 | /Адаптивный_тренажёр/1.All_including/1.All_including.py | aa7587c23d75e4631ca3603a350790351678c14f | [] | no_license | Vovanuch/python-basics-1 | fc10b6f745defff31364b66c65a704a9cf05d076 | a29affec12e8b80a1d3beda3a50cde4867b1dee2 | refs/heads/master | 2023-07-06T17:10:46.341121 | 2021-08-06T05:38:19 | 2021-08-06T05:38:19 | 267,504,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | '''
Напишите программу, которая находит все позиции вхождения подстроки в строку.
Формат ввода:
На первой строке содержится исходная строка, на второй строке ввода указана подстрока, позиции которой требуется найти. Строки состоят из символов латинского алфавита.
Формат вывода:
Строка, содержащая индексы (индексаци... | [
"vetohin.vladimir@gmail.com"
] | vetohin.vladimir@gmail.com |
50b9a5870c5e0c488973768abc415d1754612da4 | 2324dea2cb3003c8ab7e8fd80588d44973eb8c77 | /Euler_6_273.py | 28a9e0a2585490ed604b3493f38cb928c2fa2009 | [] | no_license | MikeOcc/MyProjectEulerFiles | 5f51bc516cb6584732dc67bb2f9c7fd9e6d51e56 | 4d066d52380aade215636953589bf56d6b88f745 | refs/heads/master | 2021-01-16T18:45:44.133229 | 2015-05-27T18:28:43 | 2015-05-27T18:28:43 | 5,876,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | #
#
# Euler Problem 273
#
#
from Functions import IsPrime,RetFact
from itertools import combinations
def Prod(f):
retval = 1
for vv in f:
retval *= vv
return retval
p=[]
S=set([])
for k in range(1,39):
v = 4*k + 1
if IsPrime(v): p+=[v]
print p
l = len(p)
summ = 0
cnt = 0
for i in range(1,3):
n =... | [
"mike.occhipinti@mlsassistant.com"
] | mike.occhipinti@mlsassistant.com |
a467f80425555a9c632f0c29053bb48fe8de5aa0 | af35f890c0c6a2fa531f47a4c2ed132e8920190d | /python/leetcode/string/1111_nesting_depth.py | bc58f9173f4a28b783a17a8182e19c032ec63a0c | [] | no_license | Levintsky/topcoder | b1b17cd3fddef5a23297bcbe4e165508d09a655d | a5cb862f0c5a3cfd21468141800568c2dedded0a | refs/heads/master | 2021-06-23T10:15:27.839199 | 2021-02-01T07:49:48 | 2021-02-01T07:49:48 | 188,175,357 | 0 | 1 | null | 2020-05-19T09:25:12 | 2019-05-23T06:33:38 | C | UTF-8 | Python | false | false | 3,287 | py | """
1111. Maximum Nesting Depth of Two Valid Parentheses Strings (Medium)
A string is a valid parentheses string (denoted VPS) if and only if it consists of
"(" and ")" characters only, and:
It is the empty string, or
It can be written as AB (A concatenated with B), where A and B are VPS's, or
It can be written as (... | [
"zhuoyuanchen2014@u.northwestern.edu"
] | zhuoyuanchen2014@u.northwestern.edu |
7d9a15a515e928321da6c01ad4a4b0c6c281c704 | e6a5fce33aad4fcba37842e135a51ba441b06f48 | /Algorithms/Strings/BeautifulBinaryString.py | 788b7087da8bc68a467ba09d592dd229b79f83b4 | [
"MIT"
] | permissive | pavstar619/HackerRank | 6710ddd450b06fbb69da5abad9f570e5e26bbbc0 | 697ee46b6e621ad884a064047461d7707b1413cd | refs/heads/master | 2020-06-18T18:53:53.421685 | 2020-02-18T09:35:48 | 2020-02-18T09:35:48 | 196,408,726 | 0 | 0 | MIT | 2019-07-11T14:18:16 | 2019-07-11T14:18:16 | null | UTF-8 | Python | false | false | 233 | py | #!/bin/python3
class Main():
def __init__(self):
self.n = int(input())
self.s = input()
def output(self):
print(self.s.count('010'))
if __name__ == '__main__':
obj = Main()
obj.output()
| [
"mokit.aust@gmail.com"
] | mokit.aust@gmail.com |
1d392f1ad1a591ca3f59ee411b29ba1720d86905 | 770d4df866b9e66a333f3ffeacdd659b8553923a | /results/0175/config.py | 2eb890c054ba7a06a78c2e58b47304712cdacb6d | [] | no_license | leojo/ResultsOverview | b2062244cbd81bc06b99963ae9b1695fa9718f90 | a396abc7a5b4ab257150c0d37c40b646ebb13fcf | refs/heads/master | 2020-03-20T19:52:37.217926 | 2018-08-05T12:50:27 | 2018-08-05T12:50:27 | 137,656,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,597 | py | import os
import numpy as np
import waveUtils
class config(object):
def __init__(self):
self.prepare_data()
# Bsub arguments
bsub_mainfile = "main.py"
bsub_processors = 4
bsub_timeout = "4:00"
bsub_memory = 8000
# Epoch and batch config
batch_size = 128
latent_dim = 100
epochs = 100
epoch_updates = 1... | [
"leojohannsson91@gmail.com"
] | leojohannsson91@gmail.com |
1e0458e35481d98afa1fca38f79c63efacd7cb96 | b24fa24a96036253a0cd168ac8f6dd41c9102b0a | /backend/test1_20020/urls.py | 9496714a7230f5aec24f0c409c3dbda66af31988 | [] | no_license | crowdbotics-apps/test1-20020 | a13c64c66d2028f99723f38e0341873a46d3ae3f | 9d59b62483172e4900990c07afed60f443c211bc | refs/heads/master | 2022-12-07T00:18:07.268473 | 2020-09-04T03:27:46 | 2020-09-04T03:27:46 | 292,737,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,457 | py | """test1_20020 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
04700fd35f4dee4fdb63470cffc81c8f21ac4397 | bc441bb06b8948288f110af63feda4e798f30225 | /capacity_admin_sdk/model/metadata_center/stream_translate_states_pb2.py | 1a9a4ed46dc1768d123cadc769e2544b8b98a8b2 | [
"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 | true | 3,750 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: stream_translate_states.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from goo... | [
"service@easyops.cn"
] | service@easyops.cn |
de97fb29bc50a39e1dba26ab527c2bf6030e1521 | a392cd0963b030c934f2a9e329867a68515f4a5c | /cotoha/ne.py | acae889f794da0baf8c1d02b9350faa61b31d382 | [] | no_license | hatopoppoK3/COTOHA-Python | b89517bc6037c95a692dd85c98007727a712da24 | df333167f775e7a550827d016bf1892e36ac5602 | refs/heads/master | 2021-01-16T02:14:44.716987 | 2020-05-20T15:22:31 | 2020-05-20T15:22:31 | 242,940,170 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,905 | py | from cotoha.api import Cotoha
from cotoha.api import check_dic_class, get_sentence_class
class CotohaNe(Cotoha):
"""固有表現抽出に関するクラス.
"""
def __init__(self, sentence: str, kuzure_flag=False, dic_class=[]):
"""
Args:
sentence (str): 解析対象文.
sentence_class (bool, option... | [
"hatopoppo0320@gmail.com"
] | hatopoppo0320@gmail.com |
10fb9cdb369291fef5073bff8f48c9cf3c5df16d | bc2e77b92ae12e34aec9445f5e8c92fc399e6cc8 | /vautils/resource/inventory.py | 18a0764d7b1c167fd3ebb82dcff7d000fcb08435 | [] | no_license | 18782967131/test | fc8049c10f02f7b49a4dd4a675618ccf388c4f2f | cb02979e233ce772bd5fe88ecdc31caf8764d306 | refs/heads/master | 2020-05-27T08:41:57.535153 | 2017-11-09T08:31:07 | 2017-11-09T08:31:07 | 82,536,387 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,661 | py | """ coding: utf-8
Copyright 2016 vArmour Networks private.
All Rights reserved. Confidential
Inventory implements the class that abstracts the test inventory and the
vms required to run an automated test.
.. moduleauthor:: ppenumarthy@varmour.com
"""
from vautils import logger
from vautils.exceptions im... | [
"515947075@qq.com"
] | 515947075@qq.com |
88a06957d542b33485cfa40edd4ee1565f4d15eb | c3cfd90531b560b9522a10089101dd09ed13233e | /arithmetic.py | c91f0e9764c593d10713fc7d9bd05f1a91842425 | [] | no_license | kateybatey/calculator-1 | 602368782265dd302fc4eee376e0d3568e826f2a | 01b24c34d4d0c369279eea6e8ced9fd17bf35722 | refs/heads/master | 2021-01-22T02:04:27.807606 | 2017-05-24T19:48:10 | 2017-05-24T19:48:10 | 92,330,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | """Math functions for calculator."""
def add(num1, num2):
"""Return the sum of the two input integers."""
total = num1 + num2
return total
def subtract(num1, num2):
"""Return the second number subtracted from the first."""
total = num1 - num2
return total
def multiply(num1, num2):
"""M... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
567fa248d17de4c3fd124cb904e5495ef97e5a25 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_64/27.py | 4c01b978bd8b3ea6271d01fc75a29607b2413799 | [] | 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 | 4,003 | py | import sys
import pdb
class Reader:
def __init__(self, filename):
self.fp = open(filename)
def read(self):
tokens = self.fp.readline().split()
result = []
for token in tokens:
try:
result.append(int(token, 10))
except ValueError:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
1bfa2e3038d4e8f3250045713006589dc9f8952b | 2afb1095de2b03b05c8b96f98f38ddeca889fbff | /Python_Basic/def/decorators_2.py | 33bb013abb5f1e24d9295d6568415f5872fd17b5 | [] | no_license | draganmoo/trypython | 187316f8823296b12e1df60ef92c54b7a04aa3e7 | 90cb0fc8626e333c6ea430e32aa21af7d189d975 | refs/heads/master | 2023-09-03T16:24:33.548172 | 2021-11-04T21:21:12 | 2021-11-04T21:21:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,469 | py | import time
''"""
添加会员,我们要先模拟一个会员库,比如有一个会员名字叫synferlo,密码是harry618
如果不通过装饰器,为了避免大规模修改源代码的函数,我们只能通过修改函数调用方式(即高阶函数)的方法达到效果。
也就是说,我们将一个函数作为参数传入到另一个函数中
"""''
"""
方法:
在log_in_system()函数中嵌套一个inner函数,然后return inner,这样整个log_in_system不会返回US,JP函数的结果,而是把inner函数执行后的内存地址返回
然后我们把它赋值给一个变量,在通过这个变量名+()的方式调用inner函数,通过闭包完成不修改源代... | [
"13701304462@163.com"
] | 13701304462@163.com |
b90aa4b5a4811a0ca87f243f0d565b054e51b68f | e85e846960750dd498431ac8412d9967646ff98d | /users/models.py | 04bb300981e353cba597c91084bfddf5a3fcafba | [] | no_license | onosaburo/clublink_django | 19368b4a59b3aed3632883ceffe3326bfc7a61a6 | d2f6024b6224ea7f47595481b3382b8d0670584f | refs/heads/master | 2022-03-30T05:30:12.288354 | 2020-01-27T18:09:11 | 2020-01-27T18:09:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,774 | py | import calendar
import json
import base64
import math
from datetime import datetime
from Crypto.Cipher import AES
from urllib.parse import urlencode, quote_plus
from urllib.request import quote
from django.conf import settings
from django.contrib.auth.base_user import AbstractBaseUser
from django.contrib.auth.models... | [
"bestwork888@outlook.com"
] | bestwork888@outlook.com |
7a5e196b02ba31337cbddd33024bc481f016989c | c2ed4a7cb50296d11a8d16c2c68165737d2a940f | /qdmr/data/utils.py | c3ae2fee7ec73f5169b18c6b5436e3ad067d04e5 | [] | no_license | nitishgupta/qdmr | 24cb99a5a21b9203e60a5a52f62e58d34f958c46 | 812ad76104a01a9692256ddbbab6435cf425b5a0 | refs/heads/master | 2021-02-03T22:50:18.864016 | 2020-06-01T17:08:39 | 2020-06-01T17:08:39 | 243,564,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,136 | py | import json
from typing import List, Tuple, Set, Dict, Union, Any
from qdmr.domain_languages.qdmr_language import QDMRLanguage
qdmr_langugage = QDMRLanguage()
QDMR_predicates = list(qdmr_langugage._functions.keys())
class Node(object):
def __init__(self, predicate, string_arg=None):
self.predicate = pred... | [
"gnnitish@gmail.com"
] | gnnitish@gmail.com |
ce7ffbdec0eb226aa156c9473f3ba0daa63fab4c | 63191be7f688591af69263972d68423d76fb5f74 | /geekshop/adminapp/controllers/user.py | 05aa0358e05154eb814c7758f5dea946a87f8647 | [] | no_license | IliaNiyazof/Django | 5eee4c226a1f06178fdbb5626444fff406886de7 | 052cb4f3f142c4224454ebac9fb27f63de9cbc47 | refs/heads/master | 2021-07-19T05:52:56.620026 | 2020-06-05T16:17:47 | 2020-06-05T16:17:47 | 166,776,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,765 | py | from django.views.generic.list import ListView
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.utils.decorators import method_decorator
from django.contrib.auth.decorators import user_passes_test
from django.urls import reverse_lazy
from django.shortcuts import HttpResponseRedirect
... | [
"IFHRJCFY@yandex.ru"
] | IFHRJCFY@yandex.ru |
3242ea4001760905374ab93d15598db51c8318dc | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/audio/tdnn/speechbrain/lobes/models/transformer/TransformerASR.py | 631c6e8b82bf406d9a02a9aa6393ec730669b547 | [
"Apache-2.0",
"GPL-1.0-or-later",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 13,392 | py | """Transformer for ASR in the SpeechBrain style.
Authors
* Jianyuan Zhong 2020
"""
import torch # noqa 42
from torch import nn
from typing import Optional
from speechbrain.nnet.linear import Linear
from speechbrain.nnet.containers import ModuleList
from speechbrain.lobes.models.transformer.Transformer import (
T... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
1a6de88e8985f02d7a949c863b4d01cb2ac488a7 | c3322306696a5e60c4de7e845ed68f58df2b6a0a | /Py/TushareTest/venv/Lib/site-packages/asynq/debug.py | 48b45010aa5044c516125100dbb4696558dd7625 | [] | no_license | lifewwy/future | b19ff997efe5a2d721ff0fd338509dee49b01bac | 916fc0d7c502c98bcbc625f7ccd46483e627576c | refs/heads/master | 2020-03-23T15:51:20.810688 | 2019-03-05T02:37:09 | 2019-03-05T02:37:09 | 141,778,894 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,538 | py | # Copyright 2016 Quora, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | [
"lifewwy@163.com"
] | lifewwy@163.com |
452d3cb8763ef5630fe140977e5d2231bfa8a948 | f0316e656767cf505b32c83eef4df13bb9f6b60c | /LeetCode/Python/Medium/113_path_sum_2.py | 06fd48759de839c50e4e5968b112c39a587e6b81 | [] | no_license | AkshdeepSharma/Classroom | 70ec46b35fab5fc4a9d2eac430659d7dafba93da | 4e55799466c101c736de6c7e07d716ff147deb83 | refs/heads/master | 2022-06-13T18:14:03.236503 | 2022-05-17T20:16:28 | 2022-05-17T20:16:28 | 94,828,359 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def pathSum(self, root, wanted_sum):
"""
:type root: TreeNode
:type sum: int
:rtype: Lis... | [
"akshdeep.sharma1@gmail.com"
] | akshdeep.sharma1@gmail.com |
1c9722a8fd2c2a2eba6c6d1e69415f7e5b34d031 | 6e1549257568a0ca81b3fc5864e2e1fa65171b06 | /salarydk/models/inline_response200105_data.py | 849f613e0b7abadbe1d4fa8130f82fe59c080f22 | [] | no_license | tdwizard/salarydk | 19d3453de8fbdd886a0189dbf232f98de971e18a | dcf5040101b3e576f1068ea104148651e5c66511 | refs/heads/master | 2023-08-05T05:40:09.561288 | 2021-09-24T09:41:43 | 2021-09-24T09:41:43 | 409,910,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,038 | py | # coding: utf-8
"""
Salary.dk API
This is the public API for Salary.dk. # General Our API is a JSON-based, REST-like API. Our webapp uses the exact same API, so everything you can do in our webapp, you can do through our API. However, we are slowly opening up the API, so not all endpoints are documented her... | [
"tdrobiszewski@tdwizard.com"
] | tdrobiszewski@tdwizard.com |
7bbaf9dcf2634b177bd8a31f8aab3393fe4990b6 | c086a38a366b0724d7339ae94d6bfb489413d2f4 | /PythonEnv/Lib/site-packages/win32/Demos/win32netdemo.py | eb7e3478f3e4a966e759bd55a82605411e1dd78e | [] | no_license | FlowkoHinti/Dionysos | 2dc06651a4fc9b4c8c90d264b2f820f34d736650 | d9f8fbf3bb0713527dc33383a7f3e135b2041638 | refs/heads/master | 2021-03-02T01:14:18.622703 | 2020-06-09T08:28:44 | 2020-06-09T08:28:44 | 245,826,041 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,640 | py | import sys
import win32api
import win32net
import win32netcon
import win32security
import getopt
import traceback
verbose_level = 0
server = None # Run on local machine.
def verbose(msg):
if verbose_level:
print(msg)
def CreateUser():
"Creates a new test user, then deletes the user"
testName ... | [
"="
] | = |
c0913253a2a5b39283be769ece6b4ad5d083e695 | 2c635d6b558a65e62a9d37c12abf9e4ecbe8938c | /Interleaving String/Interleaving String.py | 078587fe65f8837338f6aae0a16ec2d3583abaf1 | [] | no_license | GreatStephen/MyLeetcodeSolutions | c698e13b7088fc9236250b6ec10331b88fe99ed1 | 73a8f79f2cd5c769b195c503f0346893b102acdc | refs/heads/master | 2023-03-01T04:53:19.698040 | 2021-02-05T22:28:18 | 2021-02-05T22:28:18 | 284,350,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | class Solution:
def isInterleave(self, s1: str, s2: str, s3: str) -> bool:
# 比较简单的dp,dp[i][j]检查s1[:i]和s2[:j]能否组成s3[:i+j]
if len(s1)+len(s2)!=len(s3): return False
R,C = len(s1), len(s2)
dp = [[False]*(C+1) for i in range(R+1)]
dp[0][0] = True
for i in range(R... | [
"litianyou97@gmail.com"
] | litianyou97@gmail.com |
2eda2055c3ab058a4a5366e1564e1d8455fe7dd3 | e8ae11e5017507da59e2e92d423b6a1994490de4 | /env/lib/python2.7/site-packages/azure/mgmt/compute/models/ssh_public_key.py | 0eb39d154705f352f3944718f3a54a63168a0c13 | [] | no_license | teopeurt/ansible-ubuntu-server | 613d00cea28bc6531acf4a39aeeb9cd0baa2a391 | b5b6127d2ee9723c5088443efe2ffb8ae30cfea7 | refs/heads/master | 2021-06-28T12:49:50.935753 | 2017-07-31T17:34:33 | 2017-07-31T17:34:33 | 98,912,808 | 0 | 1 | null | 2020-07-24T00:05:31 | 2017-07-31T17:32:56 | Makefile | UTF-8 | Python | false | false | 1,813 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 co... | [
"me@teopeurt.com"
] | me@teopeurt.com |
31f3a8fd24cca93817cf22a6198a2aeb399d5091 | 099b4f825cf6ccf7a9795154f2d7a7daa64d4691 | /Python_Programming_For_The_Absolute_Begginer_Scripts/HeroInventoryThree.py | a4f02b299117ad2f7f80a9e270f4c94c8a4214da | [] | no_license | espiercy/py_junkyard | 22637f4b1056cd7571d99dfc14e27a0590695733 | 48204ddd00a366e67e98e2d6a01921b659677d57 | refs/heads/master | 2020-03-23T11:27:46.779467 | 2018-09-22T12:55:08 | 2018-09-22T12:55:08 | 141,504,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,895 | py | #Hero's Inventory 3.0
#Demonstrates lists
#Evan Piercy
#3.21.15
#creates a list with some items and displays with a for loop
inventory = ["sword" , "armor" , "shield" , "healing potion"]
print("Your items: ")
for item in inventory:
print(item)
input("\nPress the enter key to continue.")
#get length of list
print... | [
"evanpiercy@gmail.com"
] | evanpiercy@gmail.com |
3b930786060a864888d8a3a196cfb8da1e0515ef | e9881daa8b4b711ae0c07f7420b3a78193e6c590 | /dataManager/mixed_aishell_tfrecord_io.py | 398d1ab71fdc4daa5f334f1d42b5d820e16edec2 | [] | no_license | IMLHF/Maskbased_Speech_Enhancement | bc81b8e929c49a09cb8bf9e5e891efda4fe2bca9 | f95f630499587d308ff316d34a34c04821f9ea12 | refs/heads/master | 2020-04-17T03:37:36.655021 | 2019-03-10T13:21:22 | 2019-03-10T13:21:22 | 166,192,504 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 17,047 | py | import tensorflow as tf
import numpy as np
import librosa
import os
import shutil
import time
import multiprocessing
import copy
import scipy.io
import datetime
import wave
import utils
from utils import audio_tool
from utils import spectrum_tool
from numpy import linalg
from FLAGS import PARAM
FILE_NAME = __file__[ma... | [
"red_wind@foxmail.com"
] | red_wind@foxmail.com |
d253cc3acea300934927e626015ca9d87ed976b8 | 5215ee22217a0bddc6a6eae3b0e49c1216a77bbc | /snippets/genomescan/extractHmmerResults.py | 3b6b53509ce7664ff31e629035a853ba702a58e0 | [
"Artistic-2.0"
] | permissive | PapenfussLab/Mungo | 5cda4d19a5ef4cb51da495f7abf259b4cd4d1697 | 02c5b0e48ecd28596cb9481b282753859f47fed6 | refs/heads/master | 2021-01-17T07:40:08.832760 | 2015-08-20T01:21:19 | 2015-08-20T01:21:19 | 41,067,597 | 1 | 3 | null | 2016-06-12T23:31:20 | 2015-08-20T01:02:28 | Python | UTF-8 | Python | false | false | 2,136 | py | #!/usr/bin/env python
"""
extractHmmerResults.py <ioDir>
Input: Hmmer output 'DEFB.txt'
Outputs:
- the genomic version (DEFB_genomic.txt)
- a summary (DEFB_summary.txt)
- extracted sequence (DEFB_extracted.fa)
- the translation of this (DEFB_extracted_pep.fa)
Author: Tony Papenfuss
Date: Tue Aug 15 ... | [
"papenfuss@mac2576.wehi.edu.au"
] | papenfuss@mac2576.wehi.edu.au |
c0251a93285a9c216b2e657cd6f5ee75e88fd87c | e2f507e0b434120e7f5d4f717540e5df2b1816da | /363-prime.py | eec06779fac42ecf5ef0cc3980108a841e115439 | [] | no_license | ash/amazing_python3 | 70984bd32ae325380382b1fe692c4b359ef23395 | 64c98940f8a8da18a8bf56f65cc8c8e09bd00e0c | refs/heads/master | 2021-06-23T14:59:37.005280 | 2021-01-21T06:56:33 | 2021-01-21T06:56:33 | 182,626,874 | 76 | 25 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | def is_prime(n):
if n < 2: # 1 is not prime
return False
for m in range(2, n):
if n % m == 0:
return False
return True
for x in range(50):
if is_prime(x):
print(x)
| [
"andy@shitov.ru"
] | andy@shitov.ru |
f41d9ea36dbee55843bb4d1ff6dba6377fb63e81 | 9d278285f2bc899ac93ec887b1c31880ed39bf56 | /ondoc/common/migrations/0016_auto_20190206_2246.py | e67cae7f190201b42f384a4f3f519d771ff61775 | [] | no_license | ronit29/docprime | 945c21f8787387b99e4916cb3ba1618bc2a85034 | 60d4caf6c52a8b70174a1f654bc792d825ba1054 | refs/heads/master | 2023-04-01T14:54:10.811765 | 2020-04-07T18:57:34 | 2020-04-07T18:57:34 | 353,953,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | # Generated by Django 2.0.5 on 2019-02-06 17:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('common', '0015_remark_status'),
]
operations = [
migrations.AlterField(
model_name='remark',
name='content',
... | [
"shashanks@policybazaar.com"
] | shashanks@policybazaar.com |
bc4fb90c32c6b9ad7010a25b5c8a0a524ed26ae7 | 277d4ee56616bb5930c57a57c68a202bf5085501 | /stubs/torch/nn/parallel/replicate.pyi | f337d4b8bd699302940ca17613883b9bed788aa2 | [
"MIT"
] | permissive | miskolc/spacy-pytorch-transformers | fc502523644eb25cb293e0796b46535ba581a169 | ab132b674c5a91510eb8cc472cdbdf5877d24145 | refs/heads/master | 2020-07-22T09:47:17.905850 | 2019-09-04T15:12:09 | 2019-09-04T15:12:09 | 207,156,566 | 1 | 0 | MIT | 2019-09-08T18:37:55 | 2019-09-08T18:37:55 | null | UTF-8 | Python | false | false | 221 | pyi | # Stubs for torch.nn.parallel.replicate (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
def replicate(network: Any, devices: Any, detach: bool = ...): ...
| [
"honnibal+gh@gmail.com"
] | honnibal+gh@gmail.com |
653f6d79473f69595094f08d93101160a95787c1 | b4c6200590a093b805036a822b7889c058494b9f | /NAIP/filtering.py | 49c68190426cd82bef3e77a82e6cd004d85c5efc | [
"MIT"
] | permissive | spoddar-JNPR/earthengine-py-notebooks | 2109a52a49357c19f803b76ed635e022ee486ac6 | ff1b5754785d5e25cb11acdbd52b0f31711d061f | refs/heads/master | 2022-12-25T10:34:44.895717 | 2020-10-01T05:38:16 | 2020-10-01T05:38:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,455 | py | # %%
"""
<table class="ee-notebook-buttons" align="left">
<td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/NAIP/filtering.ipynb"><img width=32px src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub</a></td>
<td><a target="_blank" href... | [
"giswqs@gmail.com"
] | giswqs@gmail.com |
9650f1d30391a7d26762cbdb090a2f7a374bd8d4 | b731d1b35a5416cdd73d421ea3b88a3a18e4c6d3 | /ecliptic/support/sequtils.py | 8f51fb3e102d63eb8f64f97e3d6b21a2e5d694ec | [] | no_license | xflicsu/ecliptic | ad772d3563cff1875dddc7d29d156093e03afd07 | e9d2e671bcabc5df30ada0cf42953769099ad5d7 | refs/heads/master | 2020-12-28T21:06:37.212834 | 2013-06-18T14:13:23 | 2013-06-18T14:13:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,702 | py | # Copyright (c) 2011-2012 Hyeshik Chang
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish,... | [
"hyeshik@snu.ac.kr"
] | hyeshik@snu.ac.kr |
2cb7966f9848c20ac6a089497ae7bb6742d0382b | 7d2ee33675a0b0bd3c25ee22766eca3b658efbab | /tests/validate_json_schemas.py | 879f38c7c26e8804615b48b00ca61940d6ebae9e | [
"MIT"
] | permissive | AD-SDL/polybot-schema | 8caef7d6ae01f5723b01e620a6d364b4fcb2ebc9 | 8bc3dbf39e8d71ac6279baa40f08679a3bdbb80a | refs/heads/main | 2023-06-27T03:50:20.856468 | 2021-07-29T17:30:45 | 2021-07-29T17:30:45 | 389,676,088 | 0 | 0 | MIT | 2021-07-26T17:38:07 | 2021-07-26T15:12:15 | Python | UTF-8 | Python | false | false | 663 | py | from jsonschema import Draft7Validator, RefResolver
from pathlib import Path
import json
# Find all the schemas
schema_path = Path(__file__).parent / '..' / 'json'
schemas = schema_path.rglob('*.json')
# Loop through to make sure they are all valid
for schema in schemas:
print(f'Checking {schema.relative_to(schem... | [
"ward.logan.t@gmail.com"
] | ward.logan.t@gmail.com |
c30c48fa7dd725d285fdae6c1a5dd6d450f5beef | ce498e1b0fd9c2ae9ebd04c5834f4052a9a46219 | /tuples/sorting-with-value.py | 01e568039bac15ac185b8e92f489cf4c611c3c0e | [] | no_license | wechuli/python | b32e84bb44646810f3f03f9fcfb67e7d8f54ebb6 | 40cc1782724179567128f6da202f166a0c9a0ea1 | refs/heads/master | 2022-02-20T19:18:03.578752 | 2019-09-24T17:19:27 | 2019-09-24T17:19:27 | 117,241,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | my_nary={'The':'Heart','is':"exceedingly",'deceitful':'and','wicked':'above','all':'things'}
my_nary2={'The':5,'is':85,'deceitful':2,'wicked':-8,'all':22,'things':85}
my_list=list(my_nary2.items())
my_lis2=list()
for key,vals in my_list:
my_lis2.append((vals,key))
my_lis2.sort(reverse=True)
print(my_lis2)
| [
"wechulipaul@yahoo.com"
] | wechulipaul@yahoo.com |
327ff89e94562230518071cd35204a19b43fe8bd | b3aafe94bc88f8a9b4cb14422d179752b717173a | /models/master_v2.py | 40d4ddaa75f328830d812252e7ddb381837f397b | [] | no_license | hongweizeng/paragraph-level-QG | 47a5502a8555749ed5b45d00ded9dcb20578c2d8 | 5061d9464fb6c728fd1a943e364b127249f10077 | refs/heads/main | 2023-04-10T20:20:18.831684 | 2021-04-15T08:24:41 | 2021-04-15T08:24:41 | 307,886,614 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,735 | py | from __future__ import division
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.utils.rnn import pad_packed_sequence, pack_padded_sequence
from torch_scatter import scatter_max
from search.searcher import Hypothesis, sort_hypotheses
from models.modules.stacked_rnn import StackedGRU
f... | [
"zhw1025@gmail.com"
] | zhw1025@gmail.com |
92d598793743eeca4071fbfe7bad4091607dfc23 | a67a987ed078da0a1de2908c8c0e08070dee65b1 | /genice/lattices/Struct45.py | 11dfe1c4b51d9a767557cc9b8e42befaf7c351cf | [] | no_license | Python3pkg/GenIce | ef1ce7ee2997c10e08dde75ac36050a653cd4fc5 | 1e9458b7bf8e0fd2ad5d0c4f8987cea0ae7ca0b0 | refs/heads/master | 2021-01-21T17:31:51.595858 | 2017-05-21T14:09:32 | 2017-05-21T14:09:32 | 91,962,047 | 0 | 0 | null | 2017-05-21T14:09:28 | 2017-05-21T14:09:28 | null | UTF-8 | Python | false | false | 8,385 | py | """
Data source: Dutour Sikirić, Mathieu, Olaf Delgado-Friedrichs, and Michel Deza. “Space Fullerenes: a Computer Search for New Frank-Kasper Structures” Acta Crystallographica Section A Foundations of Crystallography 66.Pt 5 (2010): 602–615.
Cage composition:
(12,14,15,16) = (14,14,8,0,)
"""
pairs="""
31 128
36 90
... | [
"vitroid@gmail.com"
] | vitroid@gmail.com |
eac6d81a7087ff1b93907223fa052c932e2bd838 | b548e7c2940d6e041f15624cd66f2dfe98b64fca | /official/nlp/modeling/layers/transformer_scaffold.py | b0932f7e0b7ead6a213cb3a7a9ca67edf5d86bb4 | [
"Apache-2.0"
] | permissive | ishani-chakraborty/models | 60cfc1ebb7b73b03a95b9ff522bf6289eb81fd24 | a811a3b7e640722318ad868c99feddf3f3063e36 | refs/heads/master | 2022-11-26T18:03:28.501746 | 2020-08-04T03:10:25 | 2020-08-04T03:10:25 | 284,893,619 | 0 | 1 | Apache-2.0 | 2020-08-04T06:14:13 | 2020-08-04T06:14:12 | null | UTF-8 | Python | false | false | 12,636 | py | # Copyright 2019 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 |
9edcfd8e23912adb9f02ffa2158ad3e4a1c337a0 | 6cf0c21f14076979edafb401caf6f0be54377490 | /vedastr_cstr/vedastr/models/bodies/rectificators/sspin.py | 26c593457eb7e1d3db2b610c4456f3b659256f07 | [
"MIT",
"Apache-2.0"
] | permissive | shekarneo/ocr-teamcode | abb23a6cb1df597ee0f8a45d1caf4c6374ce1d46 | 86d5070e8f907571a47967d64facaee246d92a35 | refs/heads/main | 2023-06-02T19:29:20.640271 | 2021-06-23T15:03:31 | 2021-06-23T15:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | # We implement a new module which has same property like spin to some extent.
# We think this manner can replace the GA-SPIN by enlarging output features
# of se layer, but we didn't do further experiments.
import torch.nn as nn
from vedastr.models.bodies.feature_extractors import build_feature_extractor
from vedastr... | [
"coodingpenguin@gmail.com"
] | coodingpenguin@gmail.com |
990b6e7b21dac9e0e08d4c442e1c8ea4175bb38e | ce63cec7c28611bb0c43bd503996718716246538 | /reagent/test/ranking/test_seq2slate_trainer.py | 00ea6e7d9864f353b459580e5b3f0214057dfe08 | [
"BSD-3-Clause"
] | permissive | mcx/ReAgent | 70cbf5484656c8bdf722155e0eacac0385a3e276 | 57b58a8b3a6b74bb87a197b73a6cd108ddad895e | refs/heads/master | 2023-08-10T15:37:02.664394 | 2021-10-14T01:52:49 | 2021-10-14T01:53:55 | 329,295,166 | 0 | 0 | BSD-3-Clause | 2021-10-14T02:16:26 | 2021-01-13T12:04:53 | Python | UTF-8 | Python | false | false | 19,844 | py | import copy
import itertools
import logging
import random
import unittest
from itertools import permutations
import numpy as np
import numpy.testing as npt
import pytorch_lightning as pl
import reagent.core.types as rlt
import torch
from parameterized import parameterized
from reagent.core.parameters import Seq2SlateP... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
0503c67578bed73112c1a1fd91865ab9220e8817 | fd1a3d5f1eb2a85a204b9694f26e2168e1e2fa10 | /msu/fall2013/ece867/project/src/coroutine.py | 63c83844bcb50a519b15c68480dac7474e52f568 | [] | no_license | csboling/studies | 61d3d31ce8ccd4c9370e19fa60fc4ad8fbc26e30 | 1a212d63420ff1602755950124136993bc967849 | refs/heads/master | 2021-01-21T14:08:59.397293 | 2016-03-30T17:49:21 | 2016-03-30T17:49:21 | 25,365,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | def coroutine(f):
def start(*args, **kwargs):
g = f(*args, **kwargs)
g.next()
return g
return start
@coroutine
def consume():
while True:
(yield)
@coroutine
def broadcast(targets):
while True:
msg = (yield)
for target in targets:
target.send(msg)
@coroutine
def accrue(depth, tar... | [
"charles.samuel.boling@gmail.com"
] | charles.samuel.boling@gmail.com |
c7c8dbb3871913fc00fa414dd0a9cd0fb3f622c3 | ef61c5f177ee44ac08325335fc28a12f3fccbb58 | /resource_management/views/add_item/add_item.py | c02a116732e5c57847c249eb40a4f70e1961fbef | [] | no_license | bammidichandini/resource_management-chandini | 3c11c7b2eb5e2f8d3df5b55e4d3ee86a27ed5c3a | aa4ec50f0b36a818bebc2033cb39ee928e5be13c | refs/heads/master | 2022-12-01T19:59:25.366843 | 2020-07-23T09:10:42 | 2020-07-23T09:10:42 | 269,610,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,938 | py | from functools import reduce
def add_item(*args, **kwargs): # pylint: disable=invalid-name
"""
Note: replace below mock implementation with your actual implementation
Request:
kwargs["user"] -> request user
kwargs["user_dto"] -> request user_dto
kwargs["request_o... | [
"chandini.bammidi123@gmail.com"
] | chandini.bammidi123@gmail.com |
b16c44dca67fbbadaa94bfac55dcddd6bcb70005 | dbfeec6da584a41f8f341535728385db4d777ddf | /scripts/analysis/constant_accuracy_overall.py | 60a0851b55bc554e5bc8a13d1d76b9a36a924242 | [
"MIT"
] | permissive | alan-turing-institute/CSV_Wrangling | 7b0abfcfc0d3a7a91252da80064952ede4c71578 | 3e073b8eee906c8fc71a5ce4499b07bbe67e8807 | refs/heads/master | 2022-01-24T13:31:36.381401 | 2022-01-20T22:13:17 | 2022-01-20T22:13:17 | 158,363,564 | 29 | 10 | MIT | 2022-01-20T22:13:48 | 2018-11-20T09:28:05 | TeX | UTF-8 | Python | false | false | 2,014 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Overall accuracy of a method averaged over multiple corpora.
Author: Gertjan van den Burg
Copyright (c) 2018 - The Alan Turing Institute
License: See the LICENSE file.
"""
import argparse
import sys
from common.detector_result import Status
from .core import load_... | [
"gertjanvandenburg@gmail.com"
] | gertjanvandenburg@gmail.com |
bf8e4d7f124848db648351fe9e712bf866b91dd9 | 3f658c0098a66015840bd9d631987e6b937bb300 | /32.Stock_Trading_Alerts/venv/Lib/site-packages/twilio/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.py | 4ec400ab539eed7c9f98bdcc94c76195c1a4a46d | [] | no_license | RohitPr/PythonProjects | 4cf7ec37cfba60afecc88ae542cc4155b72f4098 | 7dd807a45cd86cf0851cb95a1b1433805891f990 | refs/heads/main | 2023-06-01T06:42:40.147968 | 2021-06-13T00:57:05 | 2021-06-13T00:57:05 | 337,298,986 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 17,396 | py | # coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from twilio.base import values
from twilio.base.instance_context import InstanceContext
from twilio.base.instance_resource import InstanceResource
from twilio.base.list_resource import Lis... | [
"bladekiller95@gmail.com"
] | bladekiller95@gmail.com |
fa195a799a4d1a1682803e41510dba4a6bde5c4d | 088314e3bd6ca7ef34d15f2aa45b743b363641d9 | /tasks/R2R/finetune.py | 95d942e9c106d9fcac12e61852807d8ccf8f8283 | [
"MIT"
] | permissive | weituo12321/PREVALENT_R2R | 7a27d580fcbe8f72a209697d053ca3eb2013e3a0 | 868fb53d6b7978bbb10439a59e65044c811ee5c2 | refs/heads/master | 2022-11-24T00:54:32.385940 | 2020-07-24T17:56:42 | 2020-07-24T17:56:42 | 248,832,547 | 8 | 7 | MIT | 2022-11-22T02:10:54 | 2020-03-20T19:07:08 | Python | UTF-8 | Python | false | false | 64,248 | py |
import os, argparse, json
import time, copy, random, pickle
import numpy as np
import pandas as pd
from collections import defaultdict
import torch
import torch.nn as nn
from torch.autograd import Variable
from torch import optim
import torch.nn.functional as F
from utils import read_vocab, write_vocab, build_vocab,... | [
"weituo.hao@gmail.com"
] | weituo.hao@gmail.com |
ee853b1f9ace43cba6d45251c3e5f56064033d04 | a7d497669dc91e6432216145a550755d42f6bb69 | /src/cogent3/util/transform.py | e6859405cf90f5a8c193163b7ae0393da4be8a4f | [
"BSD-3-Clause"
] | permissive | jbw900/cogent3 | 8887ee4b8be02a2086ad8d6fcaa54afe462baee5 | 9168c9b86d851992d008c8f730a5516b89aef835 | refs/heads/master | 2020-09-10T19:19:36.443143 | 2019-11-14T23:48:34 | 2019-11-14T23:48:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,677 | py | #!/usr/bin/env python
"""Provides transformations of functions and other objects.
Includes:
Standard combinatorial higher-order functions adapted from David Mertz (2003),
"Text Processing in Python", Chapter 1.
Functions for performing complex tests on strings, e.g. includes_any or
includes_all.
Functions for gener... | [
"Gavin.Huttley@anu.edu.au"
] | Gavin.Huttley@anu.edu.au |
2ed208d6f7e98069fb6da757364000b2bbd9ed4e | 6b3cccf29a604cf6e433bf411f71c9f2692e1c93 | /openapi_core/schema/schemas/unmarshallers.py | b3d0ece1a8b9e32093802a0be93761dfc1ecadd3 | [
"BSD-3-Clause"
] | permissive | srgkm/openapi-core | d826f942fb4551e4d7193e4cb7c156a48c2feb0b | 4b712cb2b5d045166cecce89ca9e47eb3da5163f | refs/heads/master | 2020-12-13T21:16:23.803664 | 2020-01-13T10:43:32 | 2020-01-13T10:43:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,844 | py | from six import text_type, binary_type, integer_types
from openapi_core.schema.schemas.enums import SchemaFormat, SchemaType
from openapi_core.schema.schemas.exceptions import (
InvalidCustomFormatSchemaValue,
UnmarshallerStrictTypeError,
FormatterNotFoundError,
)
from openapi_core.schema.schemas.util impo... | [
"maciag.artur@gmail.com"
] | maciag.artur@gmail.com |
748aab2283fd79854e093608d29d48ce9b13ead4 | 53c91272444bfab92e7e89e0358047b27eab1125 | /03.代码/豆瓣评论/scrapydouban/scrapydouban/middlewares.py | 61c53041598417f8298ce947bccbc3bfded65d56 | [] | no_license | MrFiona/python_module_summary | 2bbf9f30e0fbfe302e7e6c429754fa7bf4bfc411 | 4e36f6f5f6abed10fc06b16b0ed7c12cde7746d0 | refs/heads/master | 2021-01-20T03:54:38.105298 | 2019-01-07T07:28:36 | 2019-01-07T07:28:36 | 101,373,212 | 2 | 0 | null | 2018-04-15T05:56:45 | 2017-08-25T06:28:52 | Jupyter Notebook | UTF-8 | Python | false | false | 1,886 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class ScrapydoubanSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scr... | [
"1160177283@qq.com"
] | 1160177283@qq.com |
fa6323760616793f168150c475710ec0666cf457 | 8b441f592a6deb9b0a515cbd92bb4663ad79ffe4 | /churn/delivery/old/churn_delivery_log_time.py | 3b110eaa1ce83e7b40343bb350296743681d4009 | [] | no_license | carnaum2/use-cases | 0d391a6a10bb70b60a4025152a278b0e4c595d01 | 24920e3828234da691ab643b6dd9a0aa0a5c0df5 | refs/heads/master | 2022-12-07T03:41:34.299274 | 2020-09-07T10:20:32 | 2020-09-07T10:20:32 | 293,249,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,726 | py | # coding: utf-8
import sys
import datetime as dt
import os
logger = None
from pyspark.sql.functions import size, coalesce, col, lit, collect_list, udf, when, desc
from pyspark.sql.utils import AnalysisException
def set_paths_and_logger():
'''
:return:
'''
import sys, os, re
pathname = os.path.... | [
"carmen.arnau1@vodafone.com"
] | carmen.arnau1@vodafone.com |
d2b1b651ebf6b8b808ed94202ed67b4c9425c296 | e44d00ffcea03f8656c40b3d4d993d51a38af3b0 | /leetcode/July/J15_ReverseWords.py | 7c56ae8d6499aa463fa5c626d3acfd51ddc0ed3f | [] | no_license | Ayushmanglani/competitive_coding | d6beec4f2b24aef34ea44c3a4a72074985b4a766 | 12325b09ae2bc6b169578b6a0a091069e14c9227 | refs/heads/master | 2023-06-12T04:43:41.130774 | 2021-07-03T13:01:37 | 2021-07-03T13:01:37 | 262,079,363 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | class Solution:
def reverseWords(self, s: str) -> str:
s = s.split()
return(" ".join(s[::-1]))
#method 2
class Solution:
def reverseWords(self, s: str) -> str:
s = s.split(" ")
s = s[::-1]
res = ""
for i in s:
if i != "":
res += i + " ... | [
"ayush.manglani@gmail.com"
] | ayush.manglani@gmail.com |
b8d73b63c2697f898dd70e716bd7a8aef651e60c | 6bd71bdfe9234e5e6de90bb40b6cd8d3e25ca6d2 | /Tier3-Data/ViaSRM/copy-files-SRM-2-SRM.py | ff8770089328f651fa01741ca337dc1b036f041c | [] | 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 | 1,757 | py | #!/usr/bin/python
import os,sys
import string
from optparse import OptionParser
# ...
# Andres Osorio - aosorio@uniandes.edu.co
# ...
#-----------------------------------------------------
#-----------------------------------------------------
parser = OptionParser()
parser.add_option("-f", type = "string", dest="inf... | [
"osorio.af@gmail.com"
] | osorio.af@gmail.com |
9bf77a66acd94e715057b64921810fafc903c148 | ce68e6f989ebf72becce3638dc920fc60edec45c | /SWEA/D3/SWEA_2814_최장경로.py | 6082630ee9fd834346af54032643eb3679e71238 | [] | no_license | hyeinkim1305/Algorithm | 103513e502241a619a60e6663ed8346e5c574ebc | 93541b01fab0a6ceb6f9dd06a7c049c8b57d94f9 | refs/heads/master | 2023-05-09T19:07:58.280912 | 2021-06-10T01:51:29 | 2021-06-10T01:51:29 | 330,079,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,221 | py |
# D3
# 두 정점 사이에 여러 개의 간선 존재?
def dfs(idx, cnt):
global max_cnt
vis[idx] = 1
if cnt > max_cnt:
max_cnt = cnt
for j in range(1, N+1):
if idx != j and adj[idx][j] == 1:
if vis[j] == 0:
dfs(j, cnt+1)
# 아래 줄이 없으면 한번 씩만 방문함
# 아래 줄을 쓰게 되면 각 정점들을 시작점으로 돌 수... | [
"haileyyy1305@gmail.com"
] | haileyyy1305@gmail.com |
4727b92f82d006d2db8a575d76f06b2f66888c5a | 09912a852e0e20d6a475ef904724f80072a68359 | /eds/MemsIPE/server/openmtc-server/src/openmtc_server/Event.py | 6a3ca161a5ec34a44d4d93e69312d5e4a98fb703 | [
"Apache-2.0"
] | permissive | elastest/elastest-device-emulator-service | 034aa19438383df0975bf86d49e231342d63002f | f512355c5fde6bf027d23558e256b96e2296e0f2 | refs/heads/master | 2021-03-09T15:13:30.676138 | 2020-01-13T12:02:02 | 2020-01-13T12:02:02 | 91,440,225 | 3 | 9 | Apache-2.0 | 2018-12-03T14:59:27 | 2017-05-16T09:26:10 | Python | UTF-8 | Python | false | false | 2,910 | py | from abc import abstractmethod, ABCMeta
from futile import issubclass as safe_issubclass
from futile.logging import LoggerMixin
from openmtc.model import Resource
class Event(LoggerMixin):
__metaclass__ = ABCMeta
@abstractmethod
def fire(self, *event_data):
raise NotImplementedError()
@abst... | [
"sro"
] | sro |
a4977e1faa3a4d326cda4f0f40893a477d82fba0 | 9613620632d8a60afa1ac66a752f2eb543a8530d | /src/posts/apps.py | 139fec2d7e31d75c47e310e121e5c3e2843e2d5b | [] | no_license | loristron/iSocial | 72dc48b36ff1959d98fdb1d4df66495575f9d48a | 417d7a344a9a078d76380c221d32860d8775f36d | refs/heads/master | 2023-02-24T15:46:17.450470 | 2021-02-03T00:52:26 | 2021-02-03T00:52:26 | 335,385,276 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | from django.apps import AppConfig
class PostsConfig(AppConfig):
name = 'posts'
verbose_name = 'Posts, Comments and Likes'
| [
"loremmiranda@gmail.com"
] | loremmiranda@gmail.com |
a9fd455aafe7b51c2e12403c2de811af29e4df85 | a0947c2778742aec26b1c0600ceca17df42326cd | /Python/Web/72of79DB.py | 9cd00e6e182ec0bd2fd0d3e52465a807cc2c731d | [] | no_license | JohnCDunn/Course-Work-TTA | 5758319d4607114914ba9723328658bed8fb2024 | 8c4f60d51007dac2ac4cceb84b0f9666e143c0d7 | refs/heads/master | 2021-01-10T16:37:02.609879 | 2016-02-01T18:05:38 | 2016-02-01T18:05:38 | 49,983,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | import sqlite3
conn = sqlite3.connect('time_database.db')
c = conn.cursor()
c.execute('''CREATE TABLE time_table (last_update text, last_timestamp)''')
c.execute("INSERT INTO time_table VALUES ('1', '20150101010101')")
conn.commit()
conn.close()
| [
"JohnClydeDunn@Gmail.com"
] | JohnClydeDunn@Gmail.com |
b153591361dcaaf26678eb681c08e9c88a1c0a65 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03250/s138356191.py | 9362dfb78672e63c114a03cd0f13887be37978a4 | [] | 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 | 63 | py | N = list(map(int, input().split()))
print(sum(N) + max(N) * 9) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fdd0a283e25c4e450811834e0eb190b19844370c | d93586a23b50027c766be448072e5c06ebd05ffc | /seq2seq/dependency/tf_models/models/official/recommendation/data_preprocessing.py | d29fcc55b7920c235309592474b6a858f38a20d6 | [
"Apache-2.0"
] | permissive | peixiang6134/tf_bot_examples | 9bd3a63bf5e699e49455d3beb91c4995f47d781a | b4e8eb6a555b3eeeb423ad928a9009c41b4e5950 | refs/heads/master | 2021-07-09T02:29:26.303639 | 2020-02-22T08:58:33 | 2020-02-22T08:58:33 | 238,680,285 | 1 | 1 | null | 2021-03-31T21:54:12 | 2020-02-06T12:08:36 | Python | UTF-8 | Python | false | false | 9,747 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"1316802995@qq.com"
] | 1316802995@qq.com |
5807b840bdeeec376fc32e131f19b981354fc4c6 | 735bc5756b554009c552844616183b2bcf9ac50b | /sauna/reload/interfaces.py | 3b5b4b263f04e0e9abe866d5e57392c026b534f8 | [
"ZPL-2.1"
] | permissive | collective/sauna.reload | 31a2e3be956a9ef2168016e9f199c4b3d1c0b052 | e12a0a9e01204de324ab934aec5754773ac30bd6 | refs/heads/master | 2023-03-22T11:29:17.651087 | 2018-10-18T11:15:02 | 2018-10-18T11:15:02 | 2,267,806 | 10 | 1 | null | 2014-10-19T14:24:33 | 2011-08-25T12:40:05 | Python | UTF-8 | Python | false | false | 1,779 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2011 University of Jyväskylä and Contributors.
#
# All Rights Reserved.
#
# Authors:
# Esa-Matti Suuronen <esa-matti@suuronen.org>
# Asko Soukka <asko.soukka@iki.fi>
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of... | [
"asko.soukka@iki.fi"
] | asko.soukka@iki.fi |
5e6b20b5c16d81d1f4479bc5620f2397b8e7486d | 76b0fad21d63847896e09b0c4792637ae2b1c460 | /src/cookbook_10.py | 912825055e51f3438d430db57449e5901cd71756 | [] | no_license | hezhiqiang-book/python-cookbook | 0718056aff37648246958fc38dffde66bc9df40a | a432835755a9a8703789890018561c4218a42259 | refs/heads/master | 2020-12-09T15:53:43.316368 | 2015-11-29T02:56:38 | 2015-11-29T02:56:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
class Counter(object):
def __init__(self):
self.dict = {}
def add(self, item):
count = self.dict.setdefault(item, 0)
self.dict[item] = count + 1
def counts(self, desc=None):
result = [[val, key] for (key, val) in self.dict.it... | [
"sixu05202004@gmail.com"
] | sixu05202004@gmail.com |
043315ef85ed72f41f1faddc9dab297d8fb220e9 | bc435c8e7e8e418015e4848bb196adeac1343855 | /tools/spider/getItem.py | b53c0b6bc94a57170f41aef5772d7fa577a6dee3 | [] | no_license | xiaoZ-hc/PwnMe | 13a580268273dfaa2957c70fe485475fc8a42bb4 | 2269b9461f6bf8b5a6f600801a03bb60da3adadc | refs/heads/master | 2020-09-05T00:58:28.343371 | 2018-08-01T08:47:15 | 2018-08-01T08:47:15 | 219,939,668 | 0 | 1 | null | 2019-11-06T07:44:20 | 2019-11-06T07:44:19 | null | UTF-8 | Python | false | false | 2,733 | py | #!/usr/bin/env python
# encoding:utf-8
import requests
import bs4
import time
import sys
import os
headers = {
"Host" : "www.exploit-db.com",
"User-Agent" : "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0",
"Accept" : "text/html,application/xhtml+xml,application/x... | [
"wangyihanger@gmail.com"
] | wangyihanger@gmail.com |
a5a3e0a1a6d2bee081cc972ef984f9da33515eb9 | 63768dc92cde5515a96d774a32facb461a3bf6e9 | /jacket/api/compute/openstack/compute/certificates.py | 61aaa716f6f6ade322e2c850f6dd52375a387db5 | [
"Apache-2.0"
] | permissive | ljZM33nd/jacket | 6fe9156f6f5789e5c24425afa7ce9237c302673d | d7ad3147fcb43131098c2a5210847634ff5fb325 | refs/heads/master | 2023-04-16T11:02:01.153751 | 2016-11-15T02:48:12 | 2016-11-15T02:48:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,281 | py | # Copyright (c) 2012 OpenStack Foundation
#
# 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 ... | [
"nkapotoxin@gmail.com"
] | nkapotoxin@gmail.com |
bcb2e8de18e2d1eac6fd24c457f468bfab851648 | 6be845bf70a8efaf390da28c811c52b35bf9e475 | /windows/Resources/Dsz/PyScripts/Lib/dsz/mca_dsz/file/cmd/get/types.py | 869ee75deb26cb39c8dca695a2111e7c46c17f43 | [] | no_license | kyeremalprime/ms | 228194910bf2ed314d0492bc423cc687144bb459 | 47eea098ec735b2173ff0d4e5c493cb8f04e705d | refs/heads/master | 2020-12-30T15:54:17.843982 | 2017-05-14T07:32:01 | 2017-05-14T07:32:01 | 91,180,709 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10)
# [GCC 6.2.0 20161005]
# Embedded file name: types.py
from types import *
MSG_KEY_PARAMS = 65536
MSG_KEY_PARAMS_RAW_INDEX = 65537
MSG_KEY_PARAMS_OFFSET = 65538
MSG_KEY_PARAMS_BYTES_TO_READ = 655... | [
"kyeremalprime@gmail.com"
] | kyeremalprime@gmail.com |
a9fb728e80d05f1c60a425baa7e4130d5f496aa1 | 22b363b0a4d67427d4746414090d6fef701fd3b9 | /src/triage/__init__.py | f148179bcdd93eca35d0d477df9f079e43aba6e1 | [] | no_license | Barbarioli/triage | 12557dd410def01291da355051966b4d2e5885b4 | 5d1ef41f1d89b150b30fae0c300028ef8dc39321 | refs/heads/master | 2020-03-13T10:35:48.469855 | 2018-04-14T02:29:03 | 2018-04-14T02:29:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | # -*- coding: utf-8 -*-
__author__ = """Center for Data Science and Public Policy"""
__email__ = 'datascifellows@gmail.com'
__version__ = '2.2.0'
| [
"tristan.h.crockett@gmail.com"
] | tristan.h.crockett@gmail.com |
b13b2d3ef3319d540e3e1ead4ca55bb548c596ab | 3bb4d1c4060a8d0f30cbfa01328a3b1520ce1bd5 | /apps/system/migrations/0002_auto_20190404_2012.py | 5c220e6021475f5576c584f224796a70d5180679 | [] | no_license | Chen320048/HuoChenGuang_Files | 8750bc7afe871128d7ae526741da83a2ac485ce4 | f4f847572a69ecad1f8ab22c7364cbffe70571fc | refs/heads/master | 2020-05-31T09:05:37.257383 | 2019-06-04T13:18:47 | 2019-06-04T13:18:47 | 190,204,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,407 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.11 on 2019-04-04 20:12
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('system', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
... | [
"123456@qq.com"
] | 123456@qq.com |
f462aa831af9c6ef63296255f49b337746e77814 | a560269290749e10466b1a29584f06a2b8385a47 | /Notebooks/py/yuikitaml/method-examples/method-examples.py | bbf85edccd7069000af9984fb7999be1f545bd7f | [] | no_license | nischalshrestha/automatic_wat_discovery | c71befad1aa358ae876d5494a67b0f4aa1266f23 | 982e700d8e4698a501afffd6c3a2f35346c34f95 | refs/heads/master | 2022-04-07T12:40:24.376871 | 2020-03-15T22:27:39 | 2020-03-15T22:27:39 | 208,379,586 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | #!/usr/bin/env python
# coding: utf-8
# ## Method examples quick look
# Using Titanic dataset
# In[ ]:
import pandas as pd
import numpy as np
import re
import sklearn
import xgboost as xgb
import seaborn as sns
import matplotlib.pyplot as plt
get_ipython().magic(u'matplotlib inline')
import plotly.offline as py
py.... | [
"bitsorific@gmail.com"
] | bitsorific@gmail.com |
a813e9d7480febc65bed94dcd2c611f754601bb5 | d28d47bc1d25161629d2174a465ae3eb38e02802 | /myapp/migrations/0002_auto_20190904_1909.py | 86cd65d9520221dee1b35b5c4957107f4966576a | [] | no_license | Lider-neuromedia/opx-opensource-web | 4df776607d701f0fe89ad1fb178502ec089678be | b44bb24830e52df9a641181f1ab644e9da08ff1d | refs/heads/master | 2022-06-05T01:25:28.312145 | 2020-04-29T22:23:41 | 2020-04-29T22:23:41 | 260,053,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | # Generated by Django 2.2.4 on 2019-09-04 19:09
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('myapp', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='usuario',
old_name='userpa... | [
"="
] | = |
ea8d95bb65ad2ff1b41bf10867f308283fee4d22 | ee86ad4b38f6ba13f195246f14224ba781f933cc | /02_2차원배열/2차원 순회.py | bf7faa2b62022360c75ed078fa6eac2111d6d63e | [] | no_license | yejikk/Algorithm | aed7adf00c1e32d21b735b3b34dc6cb75049f164 | 531f43305b3a23c824c9e153151b7280c1dc2535 | refs/heads/master | 2020-04-17T06:17:28.961656 | 2019-11-16T08:02:49 | 2019-11-16T08:02:49 | 166,318,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | arr = [[0,1,2,3],
[4,5,6,7],
[8,9,10,11]]
# i : 행의 좌표
n = len(arr)
# j : 열의 좌표,
m = len(arr[0])
# 행 우선 순회
for i in range(len(arr)):
for j in range(len(arr[i])):
print(arr[i][j], end=' ')
print()
print()
# 열 우선 순회
for j in range(len(arr[0])):
for i in range(len(arr)):
... | [
"dpwl7484@gmail.com"
] | dpwl7484@gmail.com |
ded0ba095bd9d4078345e5fdce6768005fe044fe | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2453486_0/Python/Zolmeister1/tictac.py | 2879fa0314f0c731fcb36909d595b1a0d320f8b9 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,997 | py | fin = open('tictac.in').read()[2:].strip().split('\n\n')
fout = open('tictac.out','w')
def pp(s):#print end case
print 'Case #%d: ' % (cnt) +s
fout.write('Case #%d: ' % (cnt) +s+'\n')
cnt=0
for game in fin:
cnt+=1
rows = game.split('\n')
cont = False
for r in rows:
os = r.count('O')... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
bece03e4588034620ff88252c2a43363cd91a680 | 04e5b6df2ee3bcfb7005d8ec91aab8e380333ac4 | /Lib/objc/_MaterialKit.py | e6f20a6022f0fd5e3b40448fc97fc45454fa77e7 | [
"MIT"
] | permissive | ColdGrub1384/Pyto | 64e2a593957fd640907f0e4698d430ea7754a73e | 7557485a733dd7e17ba0366b92794931bdb39975 | refs/heads/main | 2023-08-01T03:48:35.694832 | 2022-07-20T14:38:45 | 2022-07-20T14:38:45 | 148,944,721 | 884 | 157 | MIT | 2023-02-26T21:34:04 | 2018-09-15T22:29:07 | C | UTF-8 | Python | false | false | 1,198 | py | """
Classes from the 'MaterialKit' framework.
"""
try:
from rubicon.objc import ObjCClass
except ValueError:
def ObjCClass(name):
return None
def _Class(name):
try:
return ObjCClass(name)
except NameError:
return None
MTVisualStyling = _Class("MTVisualStyling")
MTVisualStyl... | [
"adrilabbelol@gmail.com"
] | adrilabbelol@gmail.com |
08786c00f9edae0282a030938082a24985a78bfb | 3011e024b5f31d6c747a2bd4a143bb6a0eeb1e1d | /django-rest-framework/day132_01/venv/Scripts/pip-script.py | 30ef622f420166e537def6d1a18be62e0beda706 | [] | no_license | yingkun1/python-django | a3084460a83682f3e0848d5b40c881f93961ecc2 | 08c9ed3771eb245ee9ff66f67cf28730d2675bbe | refs/heads/master | 2022-12-11T12:33:20.788524 | 2019-06-12T09:30:59 | 2019-06-12T09:30:59 | 189,977,625 | 1 | 0 | null | 2022-11-22T02:57:01 | 2019-06-03T09:43:30 | Python | UTF-8 | Python | false | false | 421 | py | #!E:\python-django\django-rest-framework\day132_01\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', ... | [
"925712087@qq.com"
] | 925712087@qq.com |
10adf812c3b3204b61a65a1935b9b8ed4ed9a65d | 2d1fdf69b3f00d1840f2e8956b91bd97c4777c24 | /mohet/mohet_app/migrations/0002_auto_20210604_2126.py | 210c1f080297d77c0f3631e679d1324652951377 | [] | no_license | DiyarBarham/project-mohet | d8a4df41ee19365dd9a6e4c756477f3ccaffd60f | 03b92cd28fa315322d76f5e1632b5403f117fa25 | refs/heads/master | 2023-05-25T11:47:05.351526 | 2021-06-06T14:53:31 | 2021-06-06T14:53:31 | 374,387,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,887 | py | # Generated by Django 2.2.4 on 2021-06-04 18:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mohet_app', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='article',
name='id',
fi... | [
"diyarbarham@gmail.com"
] | diyarbarham@gmail.com |
3463202e5e93b0f832989da3363bc365a09d764d | 07917881310fc81d85a2cbdf27c9b3c4fa03c694 | /python1812/python_4/四阶段/day01/code/python3code/job51.py | 959f5d9501613b5eb6c690f4ff91b6599ea99e23 | [] | no_license | zaoyuaner/Learning-materials | 9bc9a127d1c6478fb6cebbb6371b1fd85427c574 | 1f468a6f63158758f7cbfe7b5df17f51e3205f04 | refs/heads/master | 2020-05-18T11:38:45.771271 | 2019-05-20T09:07:44 | 2019-05-20T09:07:44 | 184,384,050 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,706 | py | import re
import urllib.request
headers = {
"User-Agent":"User-Agent, Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_0) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
}
#获取前程无忧的接口
url = "https://search.51job.com/list/040000%252C010000,000000,0000,00,9,99,python,2,1.html?lang=c&stype=&postchann... | [
"13510647877@163.com"
] | 13510647877@163.com |
685728b1b73a4e7b80a069a6247b6266c4e245ae | e16cf4d5dc7a0055892feee2397ac341a4c9b375 | /data-structures/stacks_and_queues/test_stacks_and_queues.py | 6ed1937c2e223db01050abe6469abfaee4309c5a | [
"MIT"
] | permissive | arsummers/python-data-structures-and-algorithms | 47935b75216594566a706083f91c6d71ae01a96c | 30a488bd1100d8edac3b7fda73f7d7d999c61bfc | refs/heads/master | 2021-06-18T08:33:36.210039 | 2020-09-24T23:23:32 | 2020-09-24T23:23:32 | 195,889,918 | 3 | 1 | MIT | 2021-04-20T18:35:42 | 2019-07-08T21:42:19 | Python | UTF-8 | Python | false | false | 2,307 | py | import pytest
from stacks_and_queues import Stack, Queue
# Can successfully push onto a stack
def test_stack_push_one():
s = Stack()
s.push('a')
assert s.peek() == 'a'
# Can successfully push multiple values onto a stack
def test_stack_push_multiple():
s = Stack()
s.push('a')
s.push('b')
... | [
"aliyasummers1@gmail.com"
] | aliyasummers1@gmail.com |
88f49fdc3e4695c32dc863b2acf20931279d3de7 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part000476.py | 79c655e3af493ac7bfbe5077aba07884817c5816 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,690 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
dc957f9141ae0629ab052acf85163d752bb8aff7 | 24d8cf871b092b2d60fc85d5320e1bc761a7cbe2 | /SpamBayes/rev2415-2775/left-trunk-2775/Outlook2000/dialogs/dialog_map.py | f3db3b7b05910836b8662a3830e1e7c851c9e6a5 | [] | no_license | joliebig/featurehouse_fstmerge_examples | af1b963537839d13e834f829cf51f8ad5e6ffe76 | 1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad | refs/heads/master | 2016-09-05T10:24:50.974902 | 2013-03-28T16:28:47 | 2013-03-28T16:28:47 | 9,080,611 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 25,240 | py | from processors import *
from opt_processors import *
import wizard_processors as wiz
from dialogs import ShowDialog, MakePropertyPage, ShowWizard
try:
enumerate
except NameError: # enumerate new in 2.3
def enumerate(seq):
return [(i, seq[i]) for i in xrange(len(seq))]
class StatsProcessor(ControlProc... | [
"joliebig@fim.uni-passau.de"
] | joliebig@fim.uni-passau.de |
861c710c6e89b0ffb3546483f63f4f2e2af85838 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /first_eye/world/old_problem/right_government/eye_or_case.py | e661a8e74622ff9a608787dce1a027c2b2be1f36 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py |
#! /usr/bin/env python
def government(str_arg):
small_company(str_arg)
print('early_fact')
def small_company(str_arg):
print(str_arg)
if __name__ == '__main__':
government('week')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
aa00fe43e3785a75507fb2a0b3aaad991da96511 | 0adb68bbf576340c8ba1d9d3c07320ab3bfdb95e | /regexlib/python_re2_test_file/regexlib_2890.py | bbf1cafd2ceabdcfdc8a3bcc7fb879bc369f6b85 | [
"MIT"
] | permissive | agentjacker/ReDoS-Benchmarks | c7d6633a3b77d9e29e0ee2db98d5dfb60cde91c6 | f5b5094d835649e957bf3fec6b8bd4f6efdb35fc | refs/heads/main | 2023-05-10T13:57:48.491045 | 2021-05-21T11:19:39 | 2021-05-21T11:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | # 2890
# (([\w|\.]*)\s*={1}\s*(.*?))$
# POLYNOMIAL
# nums:5
# POLYNOMIAL AttackString:""+"1"*10000+"!_1!1 _SLQ_1"
import re2 as re
from time import perf_counter
regex = """(([\w|\.]*)\s*={1}\s*(.*?))$"""
REGEX = re.compile(regex)
for i in range(0, 150000):
ATTACK = "" + "1" * i * 10000 + "!_1!1 _SLQ_1"
LEN = ... | [
"liyt@ios.ac.cn"
] | liyt@ios.ac.cn |
e77c02bc990fe5e539985d34b266c7a0618a1fbb | b1ddae0f702f7af4a22ccf8e57eccb6778eaa8a5 | /apps/users/migrations/0006_auto_20180703_0743.py | 5623ef9fa7b291ce5b84c28a1155b44805a9c8f0 | [] | no_license | MoNaiZi/Mxoinline3 | 1cd1effa716bacbe4a7fc83c4687adc1fdbbea03 | 8d8ba1322fbaefcf8767160e1e2d05afc755fe5c | refs/heads/master | 2020-03-17T00:03:41.868735 | 2018-07-11T00:48:09 | 2018-07-11T00:48:09 | 133,101,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2018-07-03 07:43
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0005_auto_20180630_2043'),
]
operations = [
migrations.AlterField(
... | [
"you@example.com"
] | you@example.com |
d6672c1c175bee083914f1102c4307b540023b3e | ef54d37f8a3303013ca7469871a320d303957ed7 | /robo4.2/4.2/lib/python2.7/site-packages/hpe3parclient/http.py | ad5b9816917462ec781103c68601c6260431104e | [] | no_license | richa92/Jenkin_Regression_Testing | d18badfcf16bda682dfe7bcbbd66f54a9a27a58d | 24a74926170cbdfafa47e972644e2fe5b627d8ff | refs/heads/master | 2020-07-12T10:01:59.099137 | 2019-08-27T12:14:53 | 2019-08-27T12:14:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,675 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# (c) Copyright 2012-2015 Hewlett Packard Enterprise Development LP
# 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 ... | [
"akul@SAC0MKUVCQ.asiapacific.hpqcorp.net"
] | akul@SAC0MKUVCQ.asiapacific.hpqcorp.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.