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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
09d31f3cfb420681b24d39ce5b6d98b82b443b5b | c3082eb2adc43b311dd3c9ff16fd3ed9df85f266 | /python/examples/advanced/slow.py | f2e6b6f91e806518083d6f82e06462b77c31f239 | [] | no_license | szabgab/slides | 78818c7138331b3ba9e221c81da3678a46efe9b3 | 63bba06678554db737602f2fbcd6510c36037e8a | refs/heads/main | 2023-08-31T07:13:51.536711 | 2023-08-29T13:17:59 | 2023-08-29T13:17:59 | 122,212,527 | 87 | 69 | null | 2023-05-19T06:55:11 | 2018-02-20T14:57:03 | Python | UTF-8 | Python | false | false | 734 | py | import random
def f():
n = 0
for i in range(30):
n += random.random()
return n
def g():
return random.random() * 30
def main(n):
text = get_str(n)
#print(str)
text_sorted = sort(text)
return text_sorted
def sort(s):
chars = list(s)
for i in reversed(range(len(chars)... | [
"gabor@szabgab.com"
] | gabor@szabgab.com |
d4fc9bc42d28a4ae8358c51ca58861c999d614ed | c42672aeac984ab3f57d840710e145f4e918ba01 | /nasws/cnn/policy/darts_policy/train.py | f9bbbe1987129dcdc49a1d3205830cfc4856a047 | [
"MIT"
] | permissive | kcyu2014/nas-landmarkreg | 00212b6015d1fef3e7198bfa596fa69a898167c2 | a00c3619bf4042e446e1919087f0b09fe9fa3a65 | refs/heads/main | 2023-07-21T19:52:19.392719 | 2021-08-24T09:37:24 | 2021-08-24T09:37:24 | 350,368,390 | 10 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,295 | py | import os
import sys
import time
import glob
import numpy as np
import torch
# import nasws.cnn.utils
import utils
import logging
import argparse
import torch.nn as nn
import genotypes
import torch.utils
import torchvision.datasets as dset
import torch.backends.cudnn as cudnn
from torch.autograd import Variable
from ... | [
"16794548+kcyu2014@users.noreply.github.com"
] | 16794548+kcyu2014@users.noreply.github.com |
1ce1feb6bf75a790c18144cc6885d7f674924843 | 2c3da6e0bddf55d64d650040bbf286c47b31811a | /c语言中文网python教程/Python itertools模块:生成迭代器(实例分析).py | 24c70c2923eb597f7aa59b8fc68122a78a8ba190 | [
"MIT"
] | permissive | Bngzifei/PythonNotes | 76bd53db3033a9c51ab4bdd727842cd89607b584 | 01590e1b6c1bc0f04aa2d355fa2553c04cce27f2 | refs/heads/master | 2023-02-04T06:49:00.725463 | 2020-12-15T09:26:40 | 2020-12-15T09:26:40 | 155,154,662 | 1 | 2 | MIT | 2020-09-08T01:30:19 | 2018-10-29T05:02:48 | Python | UTF-8 | Python | false | false | 7,147 | py | # Python itertools模块:生成迭代器(实例分析)
"""
itertools模块主要包含了一些用于生成迭代器的函数.在在 Python 的交互式解释器中先导入
itertools 模块,然后输入 [e for e in dir(itertools) if not e.startswith('_')] 命令,
即可看到该模块所包含的全部属性和函数:
>>> [e for e in dir(itertools) if not e.startswith('_')]
['accumulate', 'chain', 'combinations', 'combinations_with_replacement',
'comp... | [
"bngzifei@gmail.com"
] | bngzifei@gmail.com |
52920abfc6f261e127be3ca99e74ed82138ce10e | 5761eca23af5ad071a9b15e2052958f2c9de60c0 | /generated-stubs/allauth/socialaccount/providers/bitbucket_oauth2/provider.pyi | 100feb2b8afd2da0c647bb49cce0b3e58fab5d68 | [] | no_license | d-kimuson/drf-iframe-token-example | 3ed68aa4463531f0bc416fa66d22ee2aaf72b199 | dd4a1ce8e38de9e2bf90455e3d0842a6760ce05b | refs/heads/master | 2023-03-16T13:52:45.596818 | 2021-03-09T22:09:49 | 2021-03-09T22:09:49 | 346,156,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | pyi | from allauth.socialaccount.providers.base import ProviderAccount as ProviderAccount
from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider as OAuth2Provider
from typing import Any
class BitbucketOAuth2Account(ProviderAccount):
def get_profile_url(self): ...
def get_avatar_url(self): ...
... | [
"d-kimuson@gmail.com"
] | d-kimuson@gmail.com |
3cd8b6972a27fcb26f2dea995651f24fa971773a | e2d23d749779ed79472a961d2ab529eeffa0b5b0 | /gcloud/contrib/function/permissions.py | 7c2a108a18154b28e3751cac04a29072152ab26b | [
"MIT",
"BSD-3-Clause",
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | manlucas/atom | 9fa026b3f914e53cd2d34aecdae580bda09adda7 | 94963fc6fdfd0568473ee68e9d1631f421265359 | refs/heads/master | 2022-09-30T06:19:53.828308 | 2020-01-21T14:08:36 | 2020-01-21T14:08:36 | 235,356,376 | 0 | 0 | NOASSERTION | 2022-09-16T18:17:08 | 2020-01-21T14:04:51 | Python | UTF-8 | Python | false | false | 1,234 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | [
"lucaswang@canway.net"
] | lucaswang@canway.net |
3fd1171ad91a14ad977ace1eb611c02b31a71019 | ddb185b0cf581d85a1dd733a6d1e5d027ba3e0ca | /phase2/387.py | 4ab3425dbedcd713562ef34c92f76e379fea962a | [] | no_license | GavinPHR/code | 8a319e1223a307e755211b7e9b34c5abb00b556b | b1d8d49633db362bbab246c0cd4bd28305964b57 | refs/heads/master | 2020-05-16T04:09:19.026207 | 2020-04-30T10:00:06 | 2020-04-30T10:00:06 | 182,766,600 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | # First Unique Character in a String
import collections
class Solution:
def firstUniqChar(self, s: str) -> int:
if not s: return -1
d = collections.Counter(s)
i = 0
for c in s:
if d[c] == 1:
return i
else:
i += 1
return... | [
"gavinsweden@gmail.com"
] | gavinsweden@gmail.com |
2f10e9f21d71eb1536fb53c92e38822aa53b0480 | a8750439f200e4efc11715df797489f30e9828c6 | /csAcademy/binary_array.py | 40c9693298764e851e76be4a163f8a7a254efb4e | [] | no_license | rajlath/rkl_codes | f657174305dc85c3fa07a6fff1c7c31cfe6e2f89 | d4bcee3df2f501349feed7a26ef9828573aff873 | refs/heads/master | 2023-02-21T10:16:35.800612 | 2021-01-27T11:43:34 | 2021-01-27T11:43:34 | 110,989,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | '''
Find Binary Array
Time limit: 1000 ms
Memory limit: 256 MB
You have a binary array of length NN. For each index i (1 \leq i \leq N)i(1≤i≤N) you know the number of zeroes among the positions on the left side of ii and on the right side of ii, respectively. Find the array!
Standard input
The first line contains an ... | [
"raj.lath@gmail.com"
] | raj.lath@gmail.com |
a561f92c4f4333b5258bc33ef7c64c6f1d3acb28 | 4cdd5813d20f40d525b4d418df2788fa72a394bf | /Leetcode/easy/invert-a-binary-tree.py | a00b8eb4764600bf5c8bc9a376fe2119c0737828 | [
"MIT"
] | permissive | das-jishu/data-structures-basics-leetcode | 9baa78b49cfc1b0f5c48ef961b85b4fa9ffaf0dd | 9f877ba8ed1968c21c39ebeae611ba3c448a083a | refs/heads/master | 2023-08-21T06:54:57.380306 | 2021-10-01T02:59:51 | 2021-10-01T02:59:51 | 298,940,500 | 23 | 21 | MIT | 2021-10-01T02:59:52 | 2020-09-27T02:52:50 | Python | UTF-8 | Python | false | false | 916 | py | """
# INVERT A BINARY TREE
Invert a binary tree.
Example:
Input:
4
- -
2 7
- - - -
1 3 6 9
Output:
4
- -
7 2
- - - -
9 6 3 1
Trivia:
This problem was inspired by this original tweet by Max Howell:
Google: 90% of our engineers use the software you wrote (Homebrew), b... | [
"das.jishu25@gmail.com"
] | das.jishu25@gmail.com |
ae36ea6b3ea5163238fb1b53cb7a789fac529f36 | ebd24e400986c57b4bb1b9578ebd8807a6db62e8 | /InstaGrade-FormBuilder/xlsxwriter/test/sharedstrings/test_initialisation.py | 053c1388226206274fb0df70e2a7a9877a33525b | [] | no_license | nate-parrott/ig | 6abed952bf32119a536a524422037ede9b431926 | 6e0b6ac0fb4b59846680567150ce69a620e7f15d | refs/heads/master | 2021-01-12T10:15:15.825004 | 2016-12-13T21:23:17 | 2016-12-13T21:23:17 | 76,399,529 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2014, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ...sharedstrings import SharedStrings
class TestInitialisation(unittest.TestCase):
... | [
"nateparro2t@gmail.com"
] | nateparro2t@gmail.com |
e0b11893d0de06d4b3be2aaa5725db913e41379e | 6ddcb131e5f2806acde46a525ff8d46bfbe0990e | /enaml/backends/qt/noncomponents/toolkit_items.py | a72749e2ac1d15a5b2158138eef276a442329617 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agrawalprash/enaml | 5ce1823188eb51e5b83117ebee6c3655f53e5157 | 96828b254ac9fdfa2e5b6b31eff93a4933cbc0aa | refs/heads/master | 2021-01-15T23:35:21.351626 | 2012-09-05T03:40:07 | 2012-09-05T03:40:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | #------------------------------------------------------------------------------
# Copyright (c) 2012, Enthought, Inc.
# All rights reserved.
#------------------------------------------------------------------------------
from .qt_dock_manager import QtDockManager
from .qt_icon import QtIcon
from .qt_image import QtIm... | [
"sccolbert@gmail.com"
] | sccolbert@gmail.com |
a02cdca9c3a54d2bfa72eade971c66436b2737b7 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_068/ch40_2020_04_06_13_40_18_164592.py | adb63cc4378dfd175fa19617df94442df378c4ad | [] | 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 | 93 | py | def soma_valores(a):
b = 0
for i in range(a[0], a[-1]+1):
b += i
return b | [
"you@example.com"
] | you@example.com |
8be1d1310a0658b39cd9f615911d05de1415385e | 0444c96c6c428f75c72696159fb89633ec3ea34f | /backend/driver/migrations/0001_initial.py | c44b338ce03abd20124f390fc8f16f011c02b766 | [] | no_license | crowdbotics-apps/juice-and-eatery-21638 | 03a690239baf56065ee44986dc845f8768f1d999 | 136357629b22a48ad06731a5a5f14f648052a93f | refs/heads/master | 2022-12-27T14:03:23.949577 | 2020-10-17T21:57:34 | 2020-10-17T21:57:34 | 304,975,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,540 | py | # Generated by Django 2.2.16 on 2020-10-17 21:55
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("del... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
cf96272e956bd4c7ef7b7af41cb4f6eb727a951a | d83fde3c891f44014f5339572dc72ebf62c38663 | /_bin/google-cloud-sdk/.install/.backup/lib/surface/kms/keys/update.py | c6c8ee94d6505b0f672450ba629b25382af2f005 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | gyaresu/dotfiles | 047cc3ca70f4b405ba272856c69ee491a79d2ebe | e5e533b3a081b42e9492b228f308f6833b670cfe | refs/heads/master | 2022-11-24T01:12:49.435037 | 2022-11-01T16:58:13 | 2022-11-01T16:58:13 | 17,139,657 | 1 | 1 | null | 2020-07-25T14:11:43 | 2014-02-24T14:59:59 | Python | UTF-8 | Python | false | false | 8,498 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"me@gareth.codes"
] | me@gareth.codes |
c05cee85368f5bec48ac6aa5ced76d9bf8558474 | d18d7f86a1e701caada063d09ee00fe08a95e353 | /test/kapp/func/ch/data_stmt/kapp_func_ch_data_stmt_test.py | 55eda51adeca269c0d1de4830ea59af09f6cc3ab | [
"BSD-3-Clause"
] | permissive | E3SM-Project/KGen | 2e097b2ef979b42b094089f337d49240838aa13b | c0035c93d21286da6519a74ff527b6a009781de4 | refs/heads/master | 2021-02-14T00:01:10.939108 | 2020-06-15T18:49:58 | 2020-06-15T18:49:58 | 244,747,822 | 3 | 0 | NOASSERTION | 2020-03-03T21:43:57 | 2020-03-03T21:43:56 | null | UTF-8 | Python | false | false | 97 | py |
from kapp_func_ch_test import KAppFuncCHTest
class KAppFuncCHDSTTest(KAppFuncCHTest):
pass
| [
"youngsun@ucar.edu"
] | youngsun@ucar.edu |
73ac9438958d2800fff63c4333e4bceb2498904c | afe04cd22c2a839668dd0f29c314cc4b35bc7345 | /mayidaili_tool.py | 9aecca25ec13ff9c9429250376ae07b45bfdebb6 | [
"Apache-2.0"
] | permissive | 343829084/base_function | 1bded81816dcc9e18cbd36d1484be782931bec55 | 296aaf84bbfc084f9d27d84d4b300823a356e484 | refs/heads/master | 2020-03-23T16:00:48.610252 | 2018-07-21T03:06:15 | 2018-07-21T03:06:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | # coding: utf-8
import hashlib
import time
import urllib2
# 请替换appkey和secret
import requests
def useproxy(url,headers,postdata=None,post=False):
appkey = ""
secret = "c978952ede1661bd5342b34ca0bf561e"
paramMap = {
"app_key": appkey,
"timestamp": time.strftime("%Y-%m-%d %H:%M:%S") # 如果你的程序在... | [
"jinweizsu@gmail.com"
] | jinweizsu@gmail.com |
8b11a20af2cab0011ea4d1e067cbf96c6d2c6c41 | 71e70eb343584d249b6f7d0e366ad5ac91f90723 | /common/utils.py | 20f12cc78e03a9bc3f6881ff306966a4b146e17e | [] | no_license | ljarufe/giant | bf1d081aec8afbddfc0162f79d38f53da1624255 | 8f3db1365a8b862b07fae8920a249bf1a532980f | refs/heads/master | 2021-01-23T16:30:37.654917 | 2013-10-21T15:58:12 | 2013-10-21T15:58:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,299 | py | # -*- coding: utf-8 -*-
import codecs
from django.conf import settings
from django.core.mail import EmailMessage, BadHeaderError
from django.http import HttpResponse
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.utils import simplejson
# models
from proyectos.mo... | [
"luisjarufe@gmail.com"
] | luisjarufe@gmail.com |
18c382fddeb7fa8c62d83f435d9993cefc3c8fb6 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_looniest.py | 7e8f7a11b5de3a81edeb8fc566e9cba6c7fc74ea | [
"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 | 235 | py |
from xai.brain.wordbase.nouns._loony import _LOONY
#calss header
class _LOONIEST(_LOONY, ):
def __init__(self,):
_LOONY.__init__(self)
self.name = "LOONIEST"
self.specie = 'nouns'
self.basic = "loony"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
7849b3485cdb443da03ffcc1456b6ced0e6ac0a0 | 01a9e501d60ee5a5d660886a622618bf95eb46d8 | /user/forms/__init__.py | 52859f22d79b30285d8f8c07c9a2b372ff875791 | [] | no_license | tuantran37/UniRanking | 1938252a034b3ce3b8ee7f1a797b3d42c2eb9ecb | be8778fa004207bb0fea6e83e8e108347a3693c6 | refs/heads/master | 2023-08-05T06:31:52.868483 | 2018-08-27T18:26:04 | 2018-08-27T18:26:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | from .sector_form import AddSectorForm, UpdateSectorForm, RemoveSectorForm
from .favoutite_university_form import AddFavouriteUniversityForm, RemoveFavouriteUniversityForm | [
"vantrong291@gmail.com"
] | vantrong291@gmail.com |
38d4d461845d0243da88843ecba563340d11b19b | 75c1ac9405911ff3490d0de854650ade12b95e63 | /random_exercises/prework_2-5_consecutive.py | 817d7f583ceaa15f75391025c592d7edc2f96701 | [] | no_license | PropeReferio/practice-exercises | df6063b859da7f5966fc972ad44e74288054bc16 | 571856e452ef60d5bac7adebb49f6a6654e96733 | refs/heads/master | 2020-09-23T13:28:55.020969 | 2020-04-28T16:51:16 | 2020-04-28T16:51:16 | 225,511,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | #Write a function to check to see if all numbers in list are consecutive
#numbers. For example, [2,3,4,5,6,7] are consecutive numbers, but [1,2,4,5]
#are not consecutive numbers. The return should be boolean Type.
check = [1,2,4,6]
check2 =[2,3,4,5,6,7]
def is_consecutive(a_list):
"""Checks to see if the numbers ... | [
"lemuel.b.stevens@gmail.com"
] | lemuel.b.stevens@gmail.com |
82488481c998675c7f0e1ce4c13fbfc98fb02f5e | 90ae1f7729920be498f04faef7efb2195cfc5ab7 | /engine/_gevent.py | 5cbcd6b17a1f7664ede7170045eae2067053d843 | [] | no_license | jrecuero/pyengine | 297a65dab16bf2a24d8b9f8a3385db21e5725502 | e5de88a0053b2690230c04d7c9183d619ece32cf | refs/heads/master | 2022-12-27T01:15:09.302018 | 2020-10-16T02:53:03 | 2020-10-16T02:53:03 | 304,499,208 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,749 | py | import pygame
from ._loggar import Log
class GEvent:
"""GEvent implements all codes related with user events used in the
application via pygame events.
"""
NONE = 0
# GEvent type. Used by pygame events.
# pygame.USEREVENT = 24
USER = pygame.USEREVENT
ENGINE = pygame.USEREVENT + 1
... | [
"jose.recuero@gmail.com"
] | jose.recuero@gmail.com |
4f8c9e11ffc1a73a137a6a5c0323df0ecc30e1b6 | e7451193592aaee2536924ef03846eee920bcf94 | /ucscentralsdk/mometa/compute/ComputeBoardController.py | 4bb83485c59beb7794d79694940732d6a8920efd | [
"Apache-2.0"
] | permissive | vinayravish/ucscentralsdk | eb33191f3c7675561298af8cef9b30f6e220b7b2 | 809a3782d26c69f50cf7237700e107f1a9857870 | refs/heads/master | 2021-01-18T01:51:57.275207 | 2016-07-20T05:37:26 | 2016-07-20T05:37:26 | 62,137,219 | 0 | 0 | null | 2016-06-28T12:00:34 | 2016-06-28T12:00:34 | null | UTF-8 | Python | false | false | 12,098 | py | """This module contains the general information for ComputeBoardController ManagedObject."""
from ...ucscentralmo import ManagedObject
from ...ucscentralcoremeta import UcsCentralVersion, MoPropertyMeta, MoMeta
from ...ucscentralmeta import VersionMeta
class ComputeBoardControllerConsts():
OPER_STATE_ACCESSIBILI... | [
"vinay.ravish@gmail.com"
] | vinay.ravish@gmail.com |
6dd36fb253ed73f381095bd750e21c9931ab3833 | 5fdcf15f818eb2d0c7b5dd39443064d5bc42aff9 | /lc_valid_parantheses.py | 18bb3778b9edc3c6721301f71f978ca4a87a32cb | [] | no_license | vincentt117/coding_challenge | acf3664034a71ffd70c5f1ac0f6a66768e097a6e | 5deff070bb9f6b19a1cfc0a6086ac155496fbb78 | refs/heads/master | 2021-07-02T05:43:08.007851 | 2020-08-27T02:16:19 | 2020-08-27T02:16:19 | 146,027,883 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | # https://leetcode.com/problems/valid-parentheses/description/
def isValid(self, s):
"""
:type s: str
:rtype: bool
"""
if not s:
return True
checkStack = []
for i in s:
if i == "(":
checkStack.append(")")
elif i == "[":
checkStack.append("]")
... | [
"vincentt117@gmail.com"
] | vincentt117@gmail.com |
861a4a235ebe5bbe9d3f3015fffc82b10f920ddd | c1ea75db1da4eaa485d39e9d8de480b6ed0ef40f | /helper/conf/__init__.py | 0f8d87b95106d30140f7ae12f00266728f66965c | [
"Apache-2.0"
] | permissive | gasbarroni8/VideoCrawlerEngine | a4f092b0a851dc0487e4dcf4c98b62d6282a6180 | 994933d91d85bb87ae8dfba1295f7a69f6d50097 | refs/heads/master | 2023-04-06T07:59:29.269894 | 2021-02-10T16:09:15 | 2021-02-10T16:09:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py |
from .base import get_conf as __get_conf, ConfMeta, iter_conf
from typing import ClassVar
import importlib
import sys
DEBUG = True
def get_conf(__name: str, **kwargs) -> ClassVar[ConfMeta]:
package = f'{get_conf.__module__}.{__name}'
if not sys.modules.get(package, None):
importlib.import_module(pac... | [
"zzsaim@163.com"
] | zzsaim@163.com |
bf18c68b958da2b5499bf7ff92df74368e1f21ef | db552a9fa9d1a3f45ff3a8fb668ad47998084aa1 | /ROS_projects_study/service_use/devel/lib/python2.7/dist-packages/my_service/srv/_AddInts.py | 73e64b34dc3500768888b91c9ba4926e7d1f796a | [] | no_license | gdamion/ROS_projects | 026529e99898152de0facfa854b01e1b2af55319 | a3e9c8d199fd7577ce183689428f159bf29acd41 | refs/heads/master | 2020-05-01T15:20:46.689036 | 2019-08-18T09:52:58 | 2019-08-18T09:52:58 | 177,544,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,402 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from my_service/AddIntsRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class AddIntsRequest(genpy.Message):
_md5sum = "05577f62131ad26921bff0de6b2cb722"
_type... | [
"you@example.com"
] | you@example.com |
20a8c083a677609f674239ea399cf51c63cce0ba | 1dae87abcaf49f1d995d03c0ce49fbb3b983d74a | /programs/subroutines/Picture NaK-180ms levit.sub.py | 485cfa3099cbdc48d849f03c32e4ce7d57956fb9 | [] | no_license | BEC-Trento/BEC1-data | 651cd8e5f15a7d9848f9921b352e0830c08f27dd | f849086891bc68ecf7447f62962f791496d01858 | refs/heads/master | 2023-03-10T19:19:54.833567 | 2023-03-03T22:59:01 | 2023-03-03T22:59:01 | 132,161,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,842 | py | prg_comment = ""
prg_version = "0.5.1"
def program(prg, cmd):
prg.add(-2599000, "Na Repumper1 (+) Amp", 1.000000)
prg.add(-2589000, "K probe Repumper (+) Amp", 1.000000)
prg.add(-2579000, "K Repumper 1p (+) Amp", 1.000000)
prg.add(-2569000, "K probe Cooler (-) Amp", 1.000000)
prg.add(-2559000, "Na D... | [
"carmelo.mordini@unitn.it"
] | carmelo.mordini@unitn.it |
221cec3f4089608568eafe559900dd873f9954db | ce7cd2b2f9709dbadf613583d9816c862003b38b | /oof3dtest | 8aa978a57bd7edb034f399937ceef705b49f9323 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | usnistgov/OOF3D | 32b01a25154443d29d0c44d5892387e8ef6146fa | 7614f8ea98a095e78c62c59e8952c0eb494aacfc | refs/heads/master | 2023-05-25T13:01:20.604025 | 2022-02-18T20:24:54 | 2022-02-18T20:24:54 | 29,606,158 | 34 | 7 | null | 2015-02-06T19:56:26 | 2015-01-21T19:04:14 | Python | UTF-8 | Python | false | false | 1,089 | #!python
# -*- python -*-
# This software was produced by NIST, an agency of the U.S. government,
# and by statute is not subject to copyright in the United States.
# Recipients of this software assume all responsibilities associated
# with its operation, modification and maintenance. However, to
# facilitate maintena... | [
"stephen.langer@nist.gov"
] | stephen.langer@nist.gov | |
792392790e9fed19536acbe1906d318837c248c1 | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/video_extend_settings.py | 3ac0cb8875d30324610815939b561555434a26ff | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,866 | py | # coding: utf-8
import re
import six
class VideoExtendSettings:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key i... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
84ea987a1929e5afa62a6584aa35866c79086874 | 12e78946542250f64792bc6c1d8c8ff1ffecdaf7 | /Python/Django/ninja_gold/apps/dojo_ninjas/views.py | 10a05c9d6389bbd63f012c7f6704b9a636a3e904 | [] | no_license | mkrabacher/CodingDojoAssignments | 0fde5adf7223a9eac07a4867499a243e230a300e | 4afef4aaf4f129fb56376e57d8be437d1f124521 | refs/heads/master | 2021-05-14T13:38:03.570533 | 2018-02-23T00:09:24 | 2018-02-23T00:09:24 | 113,722,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render, HttpResponse
def index(request):
return HttpResponse('hello')
| [
"matt.krabacher@gmail.com"
] | matt.krabacher@gmail.com |
8f4884fe12de96cea161db86521397a440b8eef1 | 732536468e61932e7c0829934262b645effbd6d4 | /python_stack/django/django_intro/for_test/form_app/urls.py | d4277500dd0fc48dfbaa91957221c89bff1c4ca0 | [] | no_license | jignacioa/Coding-Dojo | 7a83919d09fb6ad714379dc58b1ce8e706ccc7b6 | 0e1f0d4fc528439bf34d866f4c409994741e870b | refs/heads/master | 2023-01-21T06:48:15.880635 | 2021-02-08T01:36:17 | 2021-02-08T01:36:17 | 251,421,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index),
path('users', views.create_user),
path('success', views.success)
] | [
"jignacio.aglr@gmail.com"
] | jignacio.aglr@gmail.com |
d98b243efb145b61bf43a079eb3c779f1d21840e | 4b72cfb730e9d967ecc9ece7a5dcdff03242ce7a | /7 კლასი/7_1/ბეგიაშვილი სანდრო/რიცხვის კვადრატები-.py | 6216a18d50bc1c6d313d3539b3c0b3b1d88a0031 | [] | no_license | sc-199/2018-2019 | 20945a0aaf7a998e6038e3fd3310c8be2296e54f | 578d7aad254dc566cf5f8502f1a82c1eb267cbc2 | refs/heads/master | 2020-04-26T02:59:26.560166 | 2019-05-03T13:32:30 | 2019-05-03T13:32:30 | 168,499,541 | 4 | 0 | null | 2019-02-14T17:17:25 | 2019-01-31T09:36:13 | Python | UTF-8 | Python | false | false | 128 | py | for i in range(1,10):
print(i**2)
print( 'kenti ricxvebi:')
for i in range(1,10):
if i % 2 != 0:
print(i**2)
| [
"pm72github@yahoo.com"
] | pm72github@yahoo.com |
72edaccc4f12c2a7a357dd545d3b19e07e1e876b | ac1bbabc7c1b3149711c416dd8b5f5969a0dbd04 | /Python OOP/exams/shop/deliveries/drink.py | e8ab76ba18a1bb5a6342eb4daaa653a29d11c4be | [] | no_license | AssiaHristova/SoftUni-Software-Engineering | 9e904221e50cad5b6c7953c81bc8b3b23c1e8d24 | d4910098ed5aa19770d30a7d9cdf49f9aeaea165 | refs/heads/main | 2023-07-04T04:47:00.524677 | 2021-08-08T23:31:51 | 2021-08-08T23:31:51 | 324,847,727 | 1 | 0 | null | 2021-08-08T23:31:52 | 2020-12-27T20:58:01 | Python | UTF-8 | Python | false | false | 163 | py | from shop.deliveries.product import Product
class Drink(Product):
quantity = 10
def __init__(self, name):
super().__init__(name, Drink.quantity) | [
"assiaphristova@gmail.com"
] | assiaphristova@gmail.com |
853de356187a49bd486d2e2290adba638ee294a9 | 8f6cc0e8bd15067f1d9161a4b178383e62377bc7 | /__OLD_CODE_STORAGE/openGL_NAME/textbook/5-12.py | f132d16dda9bf39c1a4c61c443e44627b68fb309 | [] | no_license | humorbeing/python_github | 9c4dfc61a3cefbb266fefff335f6b28d05797e5e | e4b4b49bee7e7e3843c6874717779ce8d619bd02 | refs/heads/master | 2023-01-22T21:51:20.193131 | 2020-01-26T21:47:23 | 2020-01-26T21:47:23 | 163,707,778 | 0 | 0 | null | 2022-12-27T15:37:48 | 2019-01-01T01:58:18 | Python | UTF-8 | Python | false | false | 1,751 | py | from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
PALETTE = ((255, 255, 255),
(0, 255, 255),
(255, 0, 255),
(0, 0, 255),
(192, 192, 192),
(128, 128, 128),
(0, 128, 128),
(128, 0, 128),
(0, 0... | [
"geemguang@gmail.com"
] | geemguang@gmail.com |
2fed7108c460e6c23e9fe55b399f1701ac0aeeeb | d9a633b01da49ed38ca7c9c736b271ba671d9c4f | /pygameTest/pygame_test_01.py | 83fc17e7c9fa2f2a2183dcbddc176324564775b4 | [] | no_license | chmberl/sys | 4b90263f86d070f3bb15de4bd788c32f56ee17d0 | 7b7258796157d1b4417715ababc1d1cc5b7dbc1b | refs/heads/master | 2021-01-22T02:58:53.055702 | 2018-01-08T06:41:47 | 2018-01-08T06:41:47 | 22,147,604 | 0 | 0 | null | 2018-01-08T06:41:48 | 2014-07-23T12:54:34 | Python | UTF-8 | Python | false | false | 658 | py | import pygame
from pygame.locals import *
from sys import exit
pygame.init()
SCREEN_SIZE = (640, 480)
screen = pygame.display.set_mode(SCREEN_SIZE, 0, 32)
font = pygame.font.SysFont("arial", 16)
font_height = font.get_linesize()
event_text = []
while True:
event = pygame.event.wait()
event_text.append(str(e... | [
"chmberl@gmail.com"
] | chmberl@gmail.com |
cc2bb833560bf80beae9e1a7cf4d46f75bf7a75b | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/arc053/C/1254642.py | b4ebd66ee9b1032de9f913be200469beb2744bab | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools
sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return ... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
79e3985a32a36c053f62393485d4a2dbc3ca86c3 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/ADTRAN-FRPerform-MIB.py | 4ee4d3d812057d1a18c0ba29eadf92d333cd83c3 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"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 | 74,864 | py | #
# PySNMP MIB module ADTRAN-FRPerform-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ADTRAN-FRPerform-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:14:52 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
2c6bda9fcebbde930a42e1a56b79a973d79d0de3 | faf9b450a2c13486ba6e720385716ac5b696ccae | /mysite2/urls.py | 8a9ed321cf2f1a38bd5bdb4c0ceb88deeaf33a74 | [] | no_license | NIRVANALAN/Django-showpart | 2b21618f151ede70d27be5395c2fce7494998869 | d0f3cd862d5c04f6e803bad83fae5b2e7c7c272a | refs/heads/master | 2020-03-27T23:15:25.672962 | 2019-09-21T16:10:05 | 2019-09-21T16:10:05 | 147,305,173 | 0 | 1 | null | 2019-05-08T16:43:10 | 2018-09-04T07:23:50 | CSS | UTF-8 | Python | false | false | 955 | py | """mysite2 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"maverickers@outlook.com"
] | maverickers@outlook.com |
c7add1aab765b5b612d8ba38cb651a1359bd3b53 | 24c5c46f1d281fc15de7f6b72a5148ae85f89fb4 | /script/runTest.py | 3256953f3be202d7068f5dbf6030c76716de72c7 | [] | no_license | enterpriseih/easyTest | 22d87c7ffe40fb10a07f7c5cdd505f63dd45adc0 | 43b8d294e898f25055c78313cfece2753352c250 | refs/heads/master | 2023-08-23T22:55:14.798341 | 2020-02-11T09:13:43 | 2020-02-11T09:13:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | # coding:utf-8
import os
import sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from script import addPathToPython, initSettings, selectModel
addPathToPython()
initSettings()
selectModel()
from SRC.main import Main
Main('login.xml').run() | [
"yaolihui0506"
] | yaolihui0506 |
29d0252de36655292ca9eb8a181601dcd56492fb | 545306d8368bbe6a369e462127ba5a9389f3f0e1 | /page/migrations/0003_postcategory_link.py | 4e121a8e4cbc0adbc6329f148a2ea7fbc3d7d7c3 | [
"MIT"
] | permissive | euskate/django-page | d86c45644508af635b828cbde764cdd7fd721d66 | f7d12f16a56545ace0e09e03727aa56416b538a2 | refs/heads/master | 2020-12-07T19:37:45.250776 | 2020-01-01T15:52:18 | 2020-01-01T15:52:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | # Generated by Django 2.0.5 on 2018-11-14 16:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('page', '0002_auto_20181114_0429'),
]
operations = [
migrations.AddField(
model_name='postcategory',
name='link',
... | [
"bluedisk@gmail.com"
] | bluedisk@gmail.com |
1b5b6be1567e3fe383b9568a3a0e8ea969def7c4 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/anagram/d8df0609726548d9a6083d84700d3f3e.py | 708559896080d2883ad2f51a3acf1faf0d9d44f1 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 409 | py | from collections import Counter
def detect_anagrams(word, options):
word = word.lower() #ignore case
word_char_count = Counter(char for char in word)
res = []
for option in options:
if option.lower() != word:
option_char_count = Counter(c for c in option.lower())
if... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
766ac4a820d253af991aaa21e7355e7d3a386660 | 8940f1b88ae54f6b6cbedb8cb856b048c50c310e | /work/models.py | e20a40536a4b5c2c765b44bd1310c8f5512a4b90 | [] | no_license | ronscoder/pmu | daf49f5d2faa29467ce4cda1fa7f603cf87af369 | 1c652134e2a3f9235fc20a0183b02379cb7ad63f | refs/heads/master | 2022-12-11T06:19:39.378101 | 2020-01-24T16:25:00 | 2020-01-24T16:25:00 | 236,026,914 | 0 | 0 | null | 2022-11-22T01:59:47 | 2020-01-24T15:20:54 | Python | UTF-8 | Python | false | false | 11,517 | py | from django.db import models
import re
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from simple_history.models import HistoricalRecords
# from work.functions import getHabID, getSiteProgress, formatString
def getHabID(**kwargs):
return ... | [
"rons.ubm@gmail.com"
] | rons.ubm@gmail.com |
c1e12dad4fdd03f0ad5fadb0a2918fe560bb2501 | c237dfae82e07e606ba9385b336af8173d01b251 | /lib/python/Products/ZGadflyDA/db.py | 409dcc6774b9ca8d71c9382f168eeff4d9eb2e18 | [
"ZPL-2.0"
] | permissive | OS2World/APP-SERVER-Zope | 242e0eec294bfb1ac4e6fa715ed423dd2b3ea6ff | dedc799bd7eda913ffc45da43507abe2fa5113be | refs/heads/master | 2020-05-09T18:29:47.818789 | 2014-11-07T01:48:29 | 2014-11-07T01:48:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,563 | py | ##############################################################################
#
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFT... | [
"martin@os2world.com"
] | martin@os2world.com |
7aa5681a1475a9d4efeaf93110d2d95cf57166aa | 528f910908885c3ded4ecc6380b9603c8dcacbd6 | /tbapi/top/api/rest/WlbTmsorderQueryRequest.py | bcac48c2b08a01a46b9956084883246e889adc8d | [] | no_license | Monica-ckd/data007 | 15fe9c4c898a51a58100138b6b064211199d2ed1 | 0e54ae57eb719b86ec14ce9f77b027882a3398a8 | refs/heads/master | 2023-03-16T05:26:14.257318 | 2016-05-25T06:57:05 | 2016-05-25T06:57:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | '''
Created by auto_sdk on 2013-04-01 16:44:41
'''
from top.api.base import RestApi
class WlbTmsorderQueryRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.order_code = None
self.page_no = None
self.page_size = None
def getapiname(sel... | [
"root@u16392468.onlinehome-server.com"
] | root@u16392468.onlinehome-server.com |
1330a1d78ccbfcb3b204dddbc5a7a1770d985167 | 9e3d8cca75de767f948736c7cde601221c4ef8ab | /core/migrations/0006_pontoturistico_enderecos.py | 7918f3e394208fee0d5e855cc4eed65f5a8b96d4 | [] | no_license | miradouro/pontosturisticos | b6d744c0b33f9ecdc8dca405615c7cc8a3ba202f | 4ea382281b8999eceab8add13ab2bd511319d58c | refs/heads/master | 2023-03-30T16:11:14.359286 | 2021-04-07T11:47:18 | 2021-04-07T11:47:18 | 354,115,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | # Generated by Django 3.1.7 on 2021-04-03 11:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('enderecos', '0001_initial'),
('core', '0005_pontoturistico_avaliacoes'),
]
operations = [
migrations.AddField(
model_nam... | [
"rafaelmiradouro@gmail.com"
] | rafaelmiradouro@gmail.com |
718c8ce1a5105ec6d7e129d1115b09c10add018e | eb61e15895b7f76ff093b972fc369336880b97cb | /project/hn-sinc-nsf-9/model.py | 011cdb5ed1e754cfb6e5f05a6e33121422c72a1d | [
"BSD-3-Clause"
] | permissive | xhtian/project-NN-Pytorch-scripts | f85221e234979c5caa7078cde7cd32444616220f | 8c8318612e467c61c9d7d9315714e522bce3f2fe | refs/heads/master | 2022-10-11T16:13:39.630670 | 2020-06-05T04:45:53 | 2020-06-05T04:45:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,478 | py | #!/usr/bin/env python
"""
model.py for harmonic-plus-noise NSF with trainable sinc filter
version: 9
"""
from __future__ import absolute_import
from __future__ import print_function
import sys
import numpy as np
import torch
import torch.nn as torch_nn
import torch.nn.functional as torch_nn_func
import core_scripts.... | [
"wangxin@nii.ac.jp"
] | wangxin@nii.ac.jp |
28b89f558948ad6bda3670a0422fe88aae42ce52 | c3113792bfe44d160b7cc9d79203d7f6da02aec5 | /news/migrations/0023_remove_post_thumbnail.py | e249ea056b565076d9b4e11801fb1189d4dae220 | [] | no_license | eyobofficial/sport-news-app | 9eb07afeeeae2bf7143405fbc0d1964292e5a11d | 2da74b1c458b34a7a8f9a306234f067436eda9da | refs/heads/master | 2020-03-18T20:08:18.213627 | 2018-06-04T19:07:16 | 2018-06-04T19:07:16 | 135,197,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | # Generated by Django 2.0.5 on 2018-06-02 18:45
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('news', '0022_auto_20180602_1834'),
]
operations = [
migrations.RemoveField(
model_name='post',
name='thumbnail',
),
... | [
"eyobtariku@gmail.com"
] | eyobtariku@gmail.com |
952ed8e0e406b3182690925434ed4df9d05e24fc | dabaa419581f4905833c495c2801be49429b272d | /apps/bloodhound/bloodhound_multiproduct/multiproduct/config.py | 3d47abf9683e7c3ebf781f4cd4a38aedc4166449 | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Stackato-Apps/stackato-apps | 222ea90b280d7f80e53a259e86662839c8db4a71 | e95077a8255f7042f9414d4570b03ab984fd9587 | refs/heads/master | 2021-01-19T06:25:29.565845 | 2015-05-29T21:01:54 | 2015-05-29T21:01:54 | 30,000,576 | 1 | 3 | null | 2015-04-21T18:05:10 | 2015-01-29T02:53:02 | PHP | UTF-8 | Python | false | false | 12,356 | py |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | [
"ingy@ingy.net"
] | ingy@ingy.net |
a74223ae54fe94a82e612222bbbeff4f6a24e933 | 8ef5a09d76a11c56963f18e6a08474a1a8bafe3c | /leet_code/331. Verify Preorder Serialization of a Binary Tree.py | 58f4b9c19280f69a0cbf987f798fba83c5888e2b | [] | no_license | roiei/algo | 32c4677649c7666db148f6183fbfbf66c8b1969f | ae8bb8bf4ae4026ccaf1dce323b4098547dd35ec | refs/heads/master | 2022-04-01T19:21:27.768675 | 2022-02-19T06:15:29 | 2022-02-19T06:15:29 | 169,021,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | import time
from util_list import *
from util_tree import *
import copy
import collections
class Solution:
def isValidSerialization(self, preorder: str) -> bool:
stk = []
for val in preorder.split(','):
stk += val,
while len(stk) >= 2 and stk[-2] == '#' and stk[... | [
"hyoukjea.son@hyundai.com"
] | hyoukjea.son@hyundai.com |
b2450cfef5fe4b41d70cd89869059ea22707ec59 | 437b1f6c3450a53e6e51eda62c85e3b4e098c8d2 | /operadores/Idades.py | ed6f27b28bdc85390c51fcbcd39dc168e5c6fbc8 | [] | no_license | pocceschi/aprendendo_git | 16d5194b2372970b469ff8db42290f7f152b538b | 704e4e40cd0e36b02e09bf411f42f23ab931d5fc | refs/heads/main | 2023-04-07T05:25:03.549470 | 2021-04-01T23:29:04 | 2021-04-01T23:29:04 | 353,849,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | print("Dados da primeira pessoa: ")
nome1 = str(input("Nome: "))
idade1 = int(input("Idade: "))
print("Dados da segunda pessoa: ")
nome2 = str(input("Nome: "))
idade2 = int(input("Idade: "))
media = (idade1 + idade2) / 2
print(f"A idade média de {nome1} e {nome2} é de {media:.2f}")
| [
"pedrobh94@hotmail.com"
] | pedrobh94@hotmail.com |
1d83c4355f9a26123159aa9e8e48d5b0fe6a3a75 | 37194bcee20e66e84360010d98a45adcced57963 | /Algorithem_my/IM_Motherboard/6190/6190.py | fc9d929b23a4e98d9078e6f893607835ebc2a934 | [] | no_license | dmdekf/algo | edcd1bbd067102a622ff1d55b2c3f6274126414a | 544a531799295f0f9879778a2d092f23a5afc4ce | refs/heads/master | 2022-09-13T14:53:31.593307 | 2020-06-05T07:06:03 | 2020-06-05T07:06:03 | 237,857,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | import sys
sys.stdin = open('input.txt')
def p(num):
while num:
r = num % 10
num = num // 10
if r < num%10:
return False
return True
T = int(input())
for tc in range(1, T+1):
N = int(input())
d = list(map(int, input().split()))
d = sorted(d)
for i in range(N... | [
"dmdekf@gmail.com"
] | dmdekf@gmail.com |
bc7c8910ea133c2a685757bc62f84d72cabcac8b | ffe4c155e228f1d3bcb3ff35265bb727c684ec1a | /UCL/Algorithms/Sorting & Searching/heap_sort.py | 9e3cb91645279c9eff8750c1ff7939fbd07e1d04 | [] | no_license | yuuee-www/Python-Learning | 848407aba39970e7e0058a4adb09dd35818c1d54 | 2964c9144844aed576ea527acedf1a465e9a8664 | refs/heads/master | 2023-03-12T00:55:06.034328 | 2021-02-28T13:43:14 | 2021-02-28T13:43:14 | 339,406,816 | 0 | 0 | null | 2021-02-28T11:27:40 | 2021-02-16T13:26:46 | Jupyter Notebook | UTF-8 | Python | false | false | 231 | py | from binary_heap import*
def heapSort(alist):
bh = BinHeap()
bh.buildHeap(alist)
lst = []
while not bh.isEmpty():
lst.append(bh.delMin())
return lst
alist = [1,2,3,4,5,8,7,6,6]
print(heapSort(alist))
| [
"50982416+cyndereN@users.noreply.github.com"
] | 50982416+cyndereN@users.noreply.github.com |
feeb494e05682a099d4143630355ca8874f95592 | dd80a584130ef1a0333429ba76c1cee0eb40df73 | /external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/system/zipfileset_mock.py | 24ac8cba05f8d3289e404b3fb87d9f92fe1e400c | [
"MIT",
"BSD-3-Clause",
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"Apache-2.0"
] | permissive | karunmatharu/Android-4.4-Pay-by-Data | 466f4e169ede13c5835424c78e8c30ce58f885c1 | fcb778e92d4aad525ef7a995660580f948d40bc9 | refs/heads/master | 2021-03-24T13:33:01.721868 | 2017-02-18T17:48:49 | 2017-02-18T17:48:49 | 81,847,777 | 0 | 2 | MIT | 2020-03-09T00:02:12 | 2017-02-13T16:47:00 | null | UTF-8 | Python | false | false | 2,166 | py | # Copyright (C) 2011 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | [
"karun.matharu@gmail.com"
] | karun.matharu@gmail.com |
a3bb51288c892782c7b8c94d0503d2598d5cec18 | 05297c66b8881b734bd3d8cb01b69eb927157f53 | /src/ava/job/errors.py | 3fa89547c8404e6f5dfdf84142bd377e2814214a | [
"Apache-2.0"
] | permissive | nickchen-mitac/fork | 4b75c2204cede08e4c71d85261da2e826330ff9f | 64dab56012da47465b4923f30f26925476c87afc | refs/heads/master | 2021-01-10T06:27:57.701844 | 2015-11-03T09:01:31 | 2015-11-03T09:01:31 | 45,453,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
from ava.core import AvaError
class JobCancelledError(AvaError):
pass
class ScriptSyntaxError(AvaError):
def __init__(self, *args, **kwargs):
super(ScriptSyntaxError, self).__init__(*args, **k... | [
"sam@eavatar.com"
] | sam@eavatar.com |
2dba634705e99a2bad5fca280fc4c0d56088c2d8 | 78456214246b3fca7636d9f91d15f1c25ae00f77 | /flowmeter/config/core/log.py | 9e79c6f0bb73290c74854b5ce5ec16488b7f6851 | [] | no_license | Zhuuhn/flowmeter | 4404bbead2c7e7804364623b612a89ec80a69fb9 | 9ea4f497fb2a4de64f7b2d8c453066df7ec8a483 | refs/heads/master | 2022-08-22T01:01:45.687526 | 2020-05-27T10:02:21 | 2020-05-27T10:02:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | # coding=utf-8
from flowmeter.config.db.log_table import AlarmLog, OprLog, SystemLog
def add_alarm_log(log):
return AlarmLog.objects.create(alarm_type=log['alarm_type'], meter_id=log['meter_id'], opr_time=log['opr_time'])
def add_opr_log(log):
opr = OprLog.objects.create(**log)
return op... | [
"1347704262@qq.com"
] | 1347704262@qq.com |
8ffc68f6def3a710f9c3285915e486060990e051 | b0f2c47881f39ceb5a989b9638483f7439bfb5cf | /Problem77.py | 2d72d0b64c35bd5631ecaf1a7efff986981eaefb | [] | no_license | chrisvail/Project_Euler | 9ba264c8ec9d158b33ec677811e59d1e0e52fef2 | 41623c27b3e1344f9d8ebdfac4df297d0666cc07 | refs/heads/main | 2023-02-13T20:26:42.752780 | 2021-01-15T16:38:27 | 2021-01-15T16:38:27 | 329,964,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | from StandardFunctions import genprimes
from itertools import count
primes = genprimes(1000)
for target in count():
ways = [0 for _ in range(target + 1)]
ways[0] = 1
for i in primes:
for j in range(i, target + 1):
ways[j] += ways[j - i]
print(ways[-1]... | [
"noreply@github.com"
] | chrisvail.noreply@github.com |
cd211fae8a73579ec113ee9bc0d541ad3e3dd4b7 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /kjJWvK9XtdbEJ2EKe_22.py | 279d9872a60ea239f541d40214d2a846a569506d | [] | 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 | 1,014 | py | """
Python has a beautiful built-in function `sorted` that sorts an iterable,
usually an array of numbers, sorting them in ascending order, but using `key=`
you can sort the iterable in different ways.
Create a function that takes an array of integers as an argument and returns
the same array in ascending order. Us... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
c1d7b781f24649f27e2a1e76543ce918281badf7 | 1113c8d5689685106fd77363e5561006d8ecef0d | /confbusterplusplus/aligner.py | 2ec09dc3fe54ecf09bc33b94b1e27766826602c5 | [
"MIT"
] | permissive | dsvatunek/ConfBusterPlusPlus | 238f73ab48e6d1d1491cbf4406acf828d76a56f9 | 2de751f409ffdb791d8b04fd4b3d08645beebaa6 | refs/heads/master | 2022-11-09T18:28:26.880541 | 2020-06-24T05:50:35 | 2020-06-24T05:50:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py |
from rdkit.Chem import AllChem
class MolAligner:
def __init__(self, max_iters):
self.max_iters = max_iters
def align_global(self, mol):
rmsd = []
AllChem.AlignMolConformers(mol, maxIters=self.max_iters, RMSlist=rmsd)
return rmsd
def align_atoms(self, mol, atoms):
... | [
"edang830@gmail.com"
] | edang830@gmail.com |
b4e86b17979bb6357a4ba72329709913ee08d6b1 | 05e2277cf1af409123f43fc0a3226014dd170556 | /11286.py | bda540ef1205168f0af5aa383953c4a6c163a4e4 | [] | no_license | 2021-01-06/baekjoon | 4dec386574ce9f51f589a944b71436ce1eb2521e | ca8f02ecbed11fe98adfd1c18ce265b10f1298bc | refs/heads/main | 2023-05-06T08:19:53.943479 | 2021-05-14T03:25:55 | 2021-05-14T03:25:55 | 327,730,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | import heapq
import sys
h=[]
n=int(sys.stdin.readline())
for _ in range(n):
o=int(sys.stdin.readline())
if o==0:
if len(h)==0:
print(0)
else:
print(heapq.heappop(h)[1])
else:
heapq.heappush(h,(abs(o),o)) | [
"noreply@github.com"
] | 2021-01-06.noreply@github.com |
07b1e3108279514ee49174b1f35c9e3067165c51 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2/cherry.su/b.py | 41f0dc05a41ed75223d02f95d2bd1c67fc0af7a0 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,190 | py | def flip(S, n):
for i in range((n+1)//2):
tmp = S[n-1-i]
S[n-1-i] = not S[i]
S[i] = not tmp
def num_upright_bottom(S):
c = 0
for p in reversed(S):
if p:
c += 1
else:
break
return c
def num_down_top(S):
c = 0
for p in S:
if... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
4d1ec5bf8d2d82b6cf5987de69f24df3b6806f4f | 1c2ed80f77782ebee5b90480dbfc74a2d145d53f | /python-base/src/learn/function/func_param.py | d44d060af6242c40aa3893ff506a424f0c5fc7fd | [] | no_license | icesx/IPython | 970dfe7260906d85706b7117044510b5929e9098 | 452c63e17c6f05cb0540974f7c01c1e73f9836fe | refs/heads/master | 2021-07-05T02:30:29.956369 | 2021-02-02T07:09:58 | 2021-02-02T07:09:58 | 220,771,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | #!/usr/bin/python
# Filename: func_param.py
def printMax(a,b):
if a > b:
print(a,'is maximum')
else:
print(b,'is maximum')
printMax(3,4) # directly give literal values
x = 5
y = 7
printMax(x,y) # give variables as arguments
| [
"icesxrun@gmail.com"
] | icesxrun@gmail.com |
15f896154eed2c30dc1b256275a7d295e611e2d9 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-7820.py | 32d4c4451b3612b1447cac9aa0671ee79b4518de | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,744 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
b4cc2afa134e8d011f1cf4f1848b20a0d3abc505 | 5c9b70a21636cd64a3d9ccfd224740d4ca049e19 | /rest/app.py | fb43feb693bc0233c6893c8bd082e3a9cc4b1e94 | [
"MIT"
] | permissive | shaneramey/wq.db | 14d8c711796ab29b6d84cca6c2d52db8e3ebb2b6 | bc14412e5a7be7964d6d0fcddca931c348120b82 | refs/heads/master | 2021-01-15T19:13:14.601893 | 2015-08-11T19:53:44 | 2015-08-11T19:53:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | import warnings
warnings.warn(
"The wq.db.rest.app API has been moved to wq.db.rest. "
"The actual Router implementation has moved to wq.db.rest.routers",
DeprecationWarning
)
from . import ModelRouter as Router, router, autodiscover # NOQA
| [
"andrew@wq.io"
] | andrew@wq.io |
c36022c620246c3970cc742c543e4e7be05fb805 | 92b9a9253c63ba56ff4bd58af268c1e304634841 | /backend/chat/chat/settings.py | fdd9a88f6827828de5a2564632bedf1457f7533d | [] | no_license | alisamadzadeh46/ChatApplication | 264a48a3747235d5f30c254f6fcd7cd145b595ac | 77bb86ccc26685a6e4dbf9a84d9d950bd1574549 | refs/heads/main | 2023-05-10T23:07:00.337906 | 2021-05-28T16:23:28 | 2021-05-28T16:23:28 | 364,041,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,226 | py | """
Django settings for chat project.
Generated by 'django-admin startproject' using Django 3.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib impo... | [
"alisamadzadeh46@gmail.com"
] | alisamadzadeh46@gmail.com |
66234f05a7f6f820e92d03a4479a6148be56e6a3 | 1fe56144905244643dbbab69819720bc16031657 | /.history/books/models_20210422134752.py | 92cb170912298100d4da3d6feccd653ccf98d187 | [] | no_license | RaghdaMadiane/django | 2052fcdd532f9678fefb034bd60e44f466bd9759 | 6ca3f87f0b72880f071d90968f0a63ea5badcca8 | refs/heads/master | 2023-04-15T17:28:25.939823 | 2021-04-24T22:33:21 | 2021-04-24T22:33:21 | 361,279,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | from django.db import models
from django.contrib.auth.models import User
import uuid
class Category(models.Model):
class Meta:
verbose_name_plural="categories"
name = models.CharField(max_length=50)
created_at = models.DateTimeField(auto_now_add=True)
def __str__(self):
return self.name... | [
"raghdamadiane@gmail.com"
] | raghdamadiane@gmail.com |
7bb45521fbdcb09cb1e5d4ca17431145a3fc3ac0 | 2e74c7339c63385172629eaa84680a85a4731ee9 | /codem/central_production_code/codem/query.py | 59b5bfcfdfe180dab0391a1244e4470dc902aeaf | [] | no_license | zhusui/ihme-modeling | 04545182d0359adacd22984cb11c584c86e889c2 | dfd2fe2a23bd4a0799b49881cb9785f5c0512db3 | refs/heads/master | 2021-01-20T12:30:52.254363 | 2016-10-11T00:33:36 | 2016-10-11T00:33:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,859 | py | '''
This File Contains all the helper functions for performing an SQL query of the
COD database. The goal of this script is to create wrapper functions around
sql syntax so that individuals can retrieve data from the databased without a
deep understanding of the complex database. In addition these functions will be
use... | [
"nsidles@uw.edu"
] | nsidles@uw.edu |
2cb94f2886fd17bfec48f28e55cc1d7bdcaa1b10 | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/apimanagement/v20200601preview/get_api_operation_policy.py | 8bd64155864e351bfc26b33f84d54382ac902c40 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,468 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
e807a9fb612e9c8b3680313ec76bcc3edd87e3e7 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/zsdonghao_tensorlayer/tensorlayer-master/example/tutorial_generate_text.py | bf1921c1e6582cb14548e163888dce3762549139 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 21,447 | py | #! /usr/bin/python
# -*- coding: utf8 -*-
# Copyright 2016 TensorLayer. 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-... | [
"659338505@qq.com"
] | 659338505@qq.com |
46fbfb2944c9774a7d1991d1a1b0dc3d4e26a4fd | 01733042e84a768b77f64ec24118d0242b2f13b8 | /uhd_restpy/testplatform/sessions/ixnetwork/topology/isisdcepseudonode_6416adf40a9c10f6ed462f220e3c16ff.py | b86e582922a40968d95ae27c74430a4bffca970b | [
"MIT"
] | permissive | slieberth/ixnetwork_restpy | e95673905854bc57e56177911cb3853c7e4c5e26 | 23eeb24b21568a23d3f31bbd72814ff55eb1af44 | refs/heads/master | 2023-01-04T06:57:17.513612 | 2020-10-16T22:30:55 | 2020-10-16T22:30:55 | 311,959,027 | 0 | 0 | NOASSERTION | 2020-11-11T12:15:34 | 2020-11-11T12:06:00 | null | UTF-8 | Python | false | false | 9,978 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# 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, ... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
ad4ec0230be02dee98e2add102f733659a731918 | e71b6d14fbdbc57c7234ca45a47329d7d02fc6f7 | /flask_api/venv/lib/python3.7/site-packages/vsts/git/v4_1/models/git_commit_changes.py | 5986784ad2ae58eca95cc064936a557c15a18a50 | [] | no_license | u-blavins/secret_sasquatch_society | c36993c738ab29a6a4879bfbeb78a5803f4f2a57 | 0214eadcdfa9b40254e331a6617c50b422212f4c | refs/heads/master | 2020-08-14T00:39:52.948272 | 2020-01-22T13:54:58 | 2020-01-22T13:54:58 | 215,058,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------------------... | [
"usama.blavins1@gmail.com"
] | usama.blavins1@gmail.com |
2362371a28d13cb9cafaadbc182329e9fbd924c5 | 679fc3c015f31859899543c6844c76da44941a28 | /main/migrations/0003_auto_20151024_1811.py | d9fd8c07a24c7e40590184cead52757839f2608c | [] | no_license | swheatley/twitter | 2323a2c0270b4cd13795e8f0bf342aa428fd5274 | ce118d22368d958696710baf44dcd07115e1ce66 | refs/heads/master | 2021-01-10T03:12:42.113952 | 2015-11-18T05:18:13 | 2015-11-18T05:18:13 | 46,396,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,576 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0002_auto_20151023_1738'),
]
operations = [
migrations.DeleteModel(
name='Place',
),
mig... | [
"shaylee1@me.com"
] | shaylee1@me.com |
afea4008f8c4c5c9538d98a64af56f9314244cb0 | 2e8f0de7a1526ef511927783235edc93f7c90036 | /communicare/core/migrations/0033_expense.py | bfde8cbaa2f90f3e72d5fa3cfcba4cecd9ac021e | [] | no_license | ConTTudOweb/CommunicareProject | 3d663578dfdeb455bc49419b3d103daec69c8fab | 211a1124c8c4549c609832ad71069a55c714a430 | refs/heads/master | 2022-12-21T12:59:35.424560 | 2021-05-10T22:16:15 | 2021-05-10T22:16:15 | 163,891,380 | 0 | 1 | null | 2022-12-08T07:43:22 | 2019-01-02T21:27:42 | HTML | UTF-8 | Python | false | false | 922 | py | # Generated by Django 2.1.8 on 2019-09-23 16:58
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0032_registration_net_value'),
]
operations = [
migrations.CreateModel(
name='Expense',... | [
"sandrofolk@hotmail.com"
] | sandrofolk@hotmail.com |
70221007808c9d0fe7c30493eff55d871b67547e | 46279163a543cd8820bdc38133404d79e787c5d2 | /torch/distributed/rpc/rref_proxy.py | f087514d92a8deea48d50c6d77e6e353ff2fe889 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | erwincoumans/pytorch | 31738b65e7b998bfdc28d0e8afa7dadeeda81a08 | ae9f39eb580c4d92157236d64548b055f71cf14b | refs/heads/master | 2023-01-23T10:27:33.628897 | 2020-12-06T01:22:00 | 2020-12-06T01:23:40 | 318,930,000 | 5 | 1 | NOASSERTION | 2020-12-06T01:58:57 | 2020-12-06T01:58:56 | null | UTF-8 | Python | false | false | 1,197 | py | from functools import partial
from . import functions
import torch
def _local_invoke(rref, func_name, args, kwargs):
return getattr(rref.local_value(), func_name)(*args, **kwargs)
@functions.async_execution
def _local_invoke_async_execution(rref, func_name, args, kwargs):
return getattr(rref.local_value(), ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
a462a36edc996a0c6c8e2ae42759f8a01a7cb609 | 66b1748a1238eda820345f914f60da434c668cf0 | /CodeUp/CodeUp1050.py | aafd819b919e0592b26cd76f597c92f3e9bb81f6 | [] | no_license | kwangminini/Algorhitm | 5d3140021584239e30468d3dcb353b119b935e76 | 4d9a3b9284c90d141c1a73e14329152455373c53 | refs/heads/master | 2023-09-03T07:33:51.228150 | 2023-08-28T13:39:52 | 2023-08-28T13:39:52 | 225,879,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py |
a,b=input().split()
if a==b:
print(1)
else:
print(0) | [
"rhkdals7362@gmail.com"
] | rhkdals7362@gmail.com |
596324358e29714d198611478dfc5c42b15d24f5 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_136/185.py | 9299bc6923e7f47d089372fb9fc20d6aba78a70c | [] | 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 | 434 | py | file = open('input', 'r')
problems = int(file.readline())
for i in range(1, problems+1):
values = file.readline().split()
C = float(values[0])
F = float(values[1])
X = float(values[2])
F_t = 2 # total cookie production
T_t = 0.0 # total Time
while True:
if (X-C) / F_t < X / (F_t + F):
T_t = T_t + X / F_t
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
a969fda4550ba3a2812a6c95c059b51c7a6b534a | 77311ad9622a7d8b88707d7cee3f44de7c8860cb | /res/scripts/client/gui/scaleform/daapi/view/lobby/fortifications/components/sorties_dps.py | b8a5d2e3ac266597a634520df829f0586537324c | [] | 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 | 18,600 | py | # 2016.02.14 12:39:36 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/fortifications/components/sorties_dps.py
import random
import BigWorld
from UnitBase import UNIT_FLAGS, SORTIE_DIVISION
from debug_utils import LOG_ERROR
from gui.Scaleform.daapi.view.lobby.fortification... | [
"info@webium.sk"
] | info@webium.sk |
06a17dd5afb93cb7d5552f15f447eb8cc99404d0 | 0125bbe0ce453e94604ff5834fbc280fe44f3220 | /examples/word_level/wmt_2018/de_en/microtransquest.py | 8303eb872b8574349a419fb78ec7a163952b894a | [
"Apache-2.0"
] | permissive | mfomicheva/TransQuest | fc51bcb90e386534845841fd75a3860054e76dd7 | 4225f7195a703414ed13ce597854cc1a59703229 | refs/heads/master | 2023-06-12T14:52:49.066705 | 2021-05-07T10:35:21 | 2021-05-07T10:35:21 | 263,876,762 | 6 | 1 | Apache-2.0 | 2020-05-14T09:52:07 | 2020-05-14T09:52:06 | null | UTF-8 | Python | false | false | 8,955 | py | import os
import shutil
from sklearn.model_selection import train_test_split
from examples.word_level.common.util import reader, prepare_testdata
from examples.word_level.wmt_2018.de_en.microtransquest_config import TRAIN_PATH, TRAIN_SOURCE_FILE, \
TRAIN_SOURCE_TAGS_FILE, \
TRAIN_TARGET_FILE, \
TRAIN_TARG... | [
"rhtdranasinghe@gmail.com"
] | rhtdranasinghe@gmail.com |
2ddbc6fa0cef023e1fcc6a98054552d1885b1d99 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/exercises/_algorithms_challenges/pybites/beginner/143_v2/test_merge.py | fea2b47c842e7412cac0de3aad7246451f21676d | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 438 | py | # ____ ? _______ ? ?
#
#
# ___ test_regular_name
# ... ? 'tim' __ 30
# ... ? 'helen' __ 26
# ... ? 'otto' __ 44
#
#
# ___ test_case_insensitive_lookup
# ... ? 'Tim' __ 30
# ... ? 'BOB' __ 17
# ... ? 'BrEnDa' __ 17
#
#
# ___ test_name_not_found
# ... ? 'timothy' __ ?
# ... ? N.. __ ?
# ... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
47958a14553a0915ab6b56f000a447ea7dd84437 | 35bad5d9982b5d4f107fc39c41f16e99a5eae1f3 | /leaflet/views/admin/sitetext.py | 8b98796f1183721c1c59d37f075bbd3ea4447018 | [] | no_license | umeboshi2/leaflet | 17c502ce87076633e3b98c6c85efcb07cda2db6b | 63a60d43b93bd07d7d04165ebbe63cb97a44d537 | refs/heads/master | 2020-04-25T12:19:17.824626 | 2014-01-31T19:28:15 | 2014-01-31T19:28:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,338 | py | from cStringIO import StringIO
from datetime import datetime
import transaction
from pyramid.httpexceptions import HTTPFound, HTTPNotFound
from pyramid.security import authenticated_userid
from pyramid.renderers import render
from pyramid.response import Response
from trumpet.models.sitecontent import SiteText
fro... | [
"joseph.rawson.works@littledebian.org"
] | joseph.rawson.works@littledebian.org |
dcba76ba54dce28cee2bc6891fc957ec5889ac55 | 1bed2f766620acf085ed2d7fd3e354a3482b8960 | /homeassistant/components/hassio/websocket_api.py | eb0d6c5407700eb07de2f6ea5f08199c18eccb70 | [
"Apache-2.0"
] | permissive | elupus/home-assistant | 5cbb79a2f25a2938a69f3988534486c269b77643 | 564150169bfc69efdfeda25a99d803441f3a4b10 | refs/heads/dev | 2023-08-28T16:36:04.304864 | 2022-09-16T06:35:12 | 2022-09-16T06:35:12 | 114,460,522 | 2 | 2 | Apache-2.0 | 2023-02-22T06:14:54 | 2017-12-16T12:50:55 | Python | UTF-8 | Python | false | false | 4,002 | py | """Websocekt API handlers for the hassio integration."""
import logging
from numbers import Number
import re
import voluptuous as vol
from homeassistant.components import websocket_api
from homeassistant.components.websocket_api.connection import ActiveConnection
from homeassistant.core import HomeAssistant, callback... | [
"noreply@github.com"
] | elupus.noreply@github.com |
843ac0689c6874df72452c43da5315fc594fa5c1 | 03fa87e03f752d22908e6d4b9eadcd6543ea8584 | /setup.py | 6f096efc88129420c5443a2f5ff5aa368241570d | [
"MIT"
] | permissive | chrisberkhout/piecash | 59cfbafda2ac5a1d3b7235a7f2d4a4efbaaeae8b | 956f9af61e28e80a80d03aa138c579f43a77e661 | refs/heads/master | 2021-07-11T13:32:20.365289 | 2021-01-29T05:14:36 | 2021-01-29T05:14:36 | 37,768,805 | 0 | 0 | null | 2015-06-20T12:16:22 | 2015-06-20T12:16:21 | null | UTF-8 | Python | false | false | 8,324 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import imp
import os
import subprocess
import sys
# # Python 2.6 subprocess.check_output compatibility. Thanks Greg Hewgill!
if "check_output" not in dir(subprocess):
def check_output(cmd_args, *args, **kwargs):
proc = subprocess.Popen(cmd_ar... | [
"sdementen@gmail.com"
] | sdementen@gmail.com |
6cfb72ed1c7f118da4e8fdb27bbc290e666deaa6 | a560269290749e10466b1a29584f06a2b8385a47 | /Notebooks/py/manvindra/titanic-predict-survival-first-kernel/titanic-predict-survival-first-kernel.py | 7ac300ed6cf1a1d0ad59edfeafea0ade56325486 | [] | 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 | 16,093 | py | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
#This cell contains basic code from Kaggle and following cells follows outlines and code from Manav Sehgal notebook(Titanic Data Science Solutions)
# Also took learning with code from from https://www.kaggle.com/arthurtok/introduction-to-ensembling-stacking-in-python
# ... | [
"bitsorific@gmail.com"
] | bitsorific@gmail.com |
a57c77dce103123e048352084a78464c0e3ba38a | 72ea5f014282c4d1a4a0c70f9553bde7882962b4 | /mufins-project/mufins/experiments/lang_ent_max_tag/training_process.py | e95cbea01fb8a3198d535016a206add2927f8f83 | [
"MIT"
] | permissive | werywjw/mBERT-FineTuning | 6eb2b93a0f328f4af3cbd1ba5e042baadcb67428 | 7b64d0a91e9aa23eb3ace8c5c19262e2574f24d7 | refs/heads/master | 2023-08-08T01:41:06.716441 | 2021-09-14T20:21:25 | 2021-09-14T20:21:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,118 | py | '''
Training process for the model.
'''
import os
from typing import Iterator, Optional, Mapping, Sequence
import numpy as np
from mufins.common.log.log import Log
from mufins.common.file.csv_file import CsvFile
from mufins.common.dataset.dataset import Dataset
from mufins.common.random.random_number_generator import ... | [
"marctanti@gmail.com"
] | marctanti@gmail.com |
58d550ac0a1237bb4221e2f0f80bac28fda11a38 | 8d9318a33afc2c3b5ca8ac99fce0d8544478c94a | /Books/Casandra DB/opscenter-5.1.0/lib/py-unpure/twisted/cred/portal.py | 753b403a49430029b67597bf02961652837e848a | [] | no_license | tushar239/git-large-repo | e30aa7b1894454bf00546312a3fb595f6dad0ed6 | 9ee51112596e5fc3a7ab2ea97a86ec6adc677162 | refs/heads/master | 2021-01-12T13:48:43.280111 | 2016-11-01T22:14:51 | 2016-11-01T22:14:51 | 69,609,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:d41d59435554fcf0301c2274fa426aa4626a815369ad9324a386bc1b55e624a4
size 5349
| [
"tushar239@gmail.com"
] | tushar239@gmail.com |
2f28dde2b92df647ed1092a4ab1882c6ecc08c6a | 08c066c8eecf553ff3beb5b7687e36cd8b4c8812 | /tests/test_psf.py | 96c5b89be6f8234447a7a87a173409d1dff54cbd | [
"BSD-2-Clause"
] | permissive | tobias-liaudat/batoid | 668dc0eec627da7cecaabae961a68e3b3b76db41 | e3c8833763597cd3ec73b83a74e8bae1a5cc7cf9 | refs/heads/master | 2022-12-30T07:17:21.964219 | 2020-08-18T22:09:55 | 2020-08-18T22:09:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,380 | py | import numpy as np
import batoid
from test_helpers import timer
@timer
def test_huygens_psf():
try:
import galsim
except ImportError:
print("Huygens PSF test requires GalSim")
# Could do the integral directly without GalSim?
return
if __name__ == '__main__':
obscur... | [
"jmeyers314@gmail.com"
] | jmeyers314@gmail.com |
760d089693d1a60a72a09c0a91b878dd7725787c | 409cec0b3346bbb88fdaf1df9adbd38de842f6b6 | /UploadDataToES/test/testCovertStrToDatatime.py | 06098c1dc36750a7f7fe48522406cb6fdaaa567f | [] | no_license | parahaoer/pythoncode | 3276815d9cffbff768128ad83db1e344702f7bd8 | 7cbf7c4e0df7678335e6fbbb48115373c6a8a0df | refs/heads/master | 2020-11-26T06:55:07.685666 | 2020-05-05T02:20:33 | 2020-05-05T02:20:33 | 228,995,890 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | '''
需要用大的时间减去小的时间,才能得到以秒为单位的时间差
如果用小的时间减去大的时间,结果为86399
'''
import datetime
str_p = "2019-05-14T23:16:11.010Z"
str_q = "2019-05-14T23:16:11.011Z"
str_r = "2019-05-14T23:16:09.819Z"
dateTime_p = datetime.datetime.strptime(str_r,'%Y-%m-%dT%H:%M:%S.%fZ')
dateTime_q = datetime.datetime.strptime(str_q,'%Y-%m-%dT%H:%M:... | [
"884101054@qq.com"
] | 884101054@qq.com |
9d5335f025da0b78549226cfe60197b70b82deec | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_81/295.py | 320b05162c6c66e77f1bf427cf3bcdffd862d6cf | [] | 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,758 | py | #
# Google Code Jam 2011
# Roaund 1B: A. RPI
# submission by EnTerr
#
'''
Input
2
3
.10
0.1
10.
4
.11.
0.00
01.1
.10.
Output
Case #1:
0.5
0.5
0.5
Case #2:
0.645833333333
0.368055555556
0.604166666667
0.395833333333
'''
import sys
import psyco
psyco.full()
inf = open(sys.a... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
448549db9aca16d831fdea6643397e4b1a98a416 | 0facb323be8a76bb4c168641309972fa77cbecf2 | /Configurations/HWWSemiLepHighMass/nanoAODv5/v6_production/2016/SKIM10/HMVAR10_Full_SBI/FilterMelaReweights.py | 43c5460e94e2d470c6b9a5fb095fd1194f74e2d1 | [] | no_license | bhoh/SNuAnalytics | ef0a1ba9fa0d682834672a831739dfcfa1e7486b | 34d1fc062e212da152faa83be50561600819df0e | refs/heads/master | 2023-07-06T03:23:45.343449 | 2023-06-26T12:18:28 | 2023-06-26T12:18:28 | 242,880,298 | 0 | 1 | null | 2020-02-25T01:17:50 | 2020-02-25T01:17:49 | null | UTF-8 | Python | false | false | 5,858 | py | import ROOT
from math import sqrt
from LatinoAnalysis.Tools.commonTools import *
def GetMinMaxCut(filelist,model,mode,nsigma=2):
#Root.gROOT.SetBatch(True)
Sum=0
Sum2=0
Nentry=0
print "===="+model+mode+"====="
print filelist[0]
for f in filelist:
if '###' in f:
f=f... | [
"soarnsoar@gmail.com"
] | soarnsoar@gmail.com |
0d4b7775ac08f9045cc81bf06fee576d22c7ee4d | 3fc4cac282465350d9b2983527140fc735a0d273 | /venv/bin/list_instances | e632e65514a792427c742a744945098751afb9b4 | [] | no_license | Orderlee/SBA_STUDY | 2cfeea54d4a9cbfd0c425e1de56324afcc547b81 | 4642546e7546f896fc8b06e9daba25d27c29e154 | refs/heads/master | 2022-12-25T01:08:05.168970 | 2020-09-27T14:57:23 | 2020-09-27T14:57:23 | 299,050,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,140 | #!/Users/YoungWoo/PycharmProjects/ClassProject/venv/bin/python
import sys
from operator import attrgetter
from optparse import OptionParser
import boto
from boto.ec2 import regions
HEADERS = {
'ID': {'get': attrgetter('id'), 'length':15},
'Zone': {'get': attrgetter('placement'), 'length':15},
'Groups': ... | [
"61268230+Orderlee@users.noreply.github.com"
] | 61268230+Orderlee@users.noreply.github.com | |
97c3b121be36f09c69f51581c20a82d254464bc0 | 751d837b8a4445877bb2f0d1e97ce41cd39ce1bd | /codegolf/szekeress-sequence.py | 9da4b302795111ca6d2dc7d80a80fcc565d91a39 | [
"MIT"
] | permissive | qeedquan/challenges | d55146f784a3619caa4541ac6f2b670b0a3dd8ba | 56823e77cf502bdea68cce0e1221f5add3d64d6a | refs/heads/master | 2023-08-11T20:35:09.726571 | 2023-08-11T13:02:43 | 2023-08-11T13:02:43 | 115,886,967 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,751 | py | #!/usr/bin/env python
"""
Definition
a(1)=1
a(2)=2
a(n) is smallest number k>a(n−1) which avoids any 3-term arithmetic progression in a(1),a(2),...,a(n−1),k.
In other words, a(n) is the smallest number k>a(n−1) such that there does not exist x,y where 0<x<y<n and a(y)−a(x)=k−a(y).
Worked out example
For n=5:
We hav... | [
"qeed.quan@gmail.com"
] | qeed.quan@gmail.com |
422351a1ca13fdc6b9b94e29d06c8ce38f33fc91 | 202bfd3bc23b4aa4e7477c9ba3685517dbad592b | /geo/geo_map.py | 5b621b60069c22a66140d968fe2dca1a2c72fb1a | [] | no_license | yan7509/python_get_cityDistance | 3b493cd9c53ba3543c6febe5d95096b5175ef6f4 | ee51faa2f091352e41511749893bd6c4a74d5596 | refs/heads/master | 2022-03-27T06:59:37.566494 | 2019-12-24T14:42:15 | 2019-12-24T14:42:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,916 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#__author__: stray_camel
import urllib.request #发送请求
from urllib import parse #URL编码
import json,logging,jsonpath,sys,os
absPath = os.path.abspath(__file__) #返回代码段所在的位置,肯定是在某个.py文件中
temPath = os.path.dirname(absPath) #往上返回一级目录,得到文件所在的路径
temPath = os.path.dirname(temPath) ... | [
"aboyinsky@outlook.com"
] | aboyinsky@outlook.com |
8d4383b237d5d13addbf71367b1be45c842b7824 | 41c824ce983c2a400ca6484b365d6f7ee077c8a3 | /tools/dlrobot/robot/adhoc/__init__.py | 3c6b21535cd0135398559ace340e20caf1bf521f | [] | no_license | TI-Russia/smart_parser | 2c84c12906e308229037c2bc75299a4b227e795e | 7428904975b2cf88cb329b8da11017cdebe8fa03 | refs/heads/master | 2022-12-10T06:40:43.852974 | 2022-08-05T11:06:18 | 2022-08-05T11:06:18 | 129,266,366 | 16 | 4 | null | 2022-12-08T11:18:29 | 2018-04-12T14:44:23 | HTML | UTF-8 | Python | false | false | 558 | py | from .tomsk import tomsk_gov_ru
from .gossov_tatarstan_ru import gossov_tatarstan_ru
from .tgl_ru import tgl_ru
def process_adhoc(project):
domain_name = project.web_site_snapshots[0].get_site_url()
if domain_name == "tomsk.gov.ru":
tomsk_gov_ru(project.web_site_snapshots[0])
return True
e... | [
"sokirko@yandex.ru"
] | sokirko@yandex.ru |
58cc6821d162a7e585a143940bbcfeae923b3ce5 | 8d35b8aa63f3cae4e885e3c081f41235d2a8f61f | /discord/ext/dl/extractor/outsidetv.py | a51556678bbcace6900d5b695026f00117f88f0c | [
"MIT"
] | permissive | alexyy802/Texus | 1255f4e54c8d3cc067f0d30daff1cf24932ea0c9 | c282a836f43dfd588d89d5c13f432896aebb540f | refs/heads/master | 2023-09-05T06:14:36.217601 | 2021-11-21T03:39:55 | 2021-11-21T03:39:55 | 429,390,575 | 0 | 0 | MIT | 2021-11-19T09:22:22 | 2021-11-18T10:43:11 | Python | UTF-8 | Python | false | false | 1,062 | py | # coding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
class OutsideTVIE(InfoExtractor):
_VALID_URL = r"https?://(?:www\.)?outsidetv\.com/(?:[^/]+/)*?play/[a-zA-Z0-9]{8}/\d+/\d+/(?P<id>[a-zA-Z0-9]{8})"
_TESTS = [
{
"url": "http://www.outsidetv.com/catego... | [
"noreply@github.com"
] | alexyy802.noreply@github.com |
89597cd37a0ca9703e1d6b442608c30d8f3ba662 | 6c95a0cebf78c27b93d15c17631d208d3d4715b1 | /plotApCorr1runMany.py | e4706f6b5032da6193f965dc1c4365fc7b832ef7 | [] | no_license | standardgalactic/hipe-code | 3a7f9d4a7c4877564de1f6468a9783d1de3e90c5 | 600bb3fce7cdf2bc1e6120b3cfe4ffc1bb154d55 | refs/heads/master | 2022-02-11T02:16:35.558135 | 2014-02-26T10:26:13 | 2014-02-26T10:26:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,468 | py | import sys
from herschel.ia.gui.plot.renderer.PComponentEngine import HAlign
from herschel.ia.gui.plot.renderer.PComponentEngine import VAlign
from herschel.ia.numeric.toolbox.basic import Histogram
from herschel.ia.numeric.toolbox.basic import BinCentres
## Plot aperture photometry stuff
pc=False
pf=False
#radiusA... | [
"chris.north@astro.cf.ac.uk"
] | chris.north@astro.cf.ac.uk |
98427273cabbe338ee47cfa39fde2c69ec153cca | 47bd686ab04d8f6daba2097875dfefdba967d598 | /04_30days_codechallenge/23_bst_level_order_traversal.py | 37aa0c48d678a98f9e83a481962778e43456ddd1 | [] | no_license | EmjayAhn/DailyAlgorithm | 9633638c7cb7064baf26126cbabafd658fec3ca8 | acda1917fa1a290fe740e1bccb237d83b00d1ea4 | refs/heads/master | 2023-02-16T17:04:35.245512 | 2023-02-08T16:29:51 | 2023-02-08T16:29:51 | 165,942,743 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | # https://www.hackerrank.com/challenges/30-binary-trees/tutorial
import sys
class Node:
def __init__(self,data):
self.right=self.left=None
self.data = data
class Solution:
def insert(self,root,data):
if root==None:
return Node(data)
else:
if data <= roo... | [
"emjay.data@gmail.com"
] | emjay.data@gmail.com |
5e5c6c67ed787564c6fcddba3284c101b5e1b8b2 | 2b255d07420114c40f6c8aeb0fb25228588282ed | /sitecomber/apps/config/management/commands/init_site_config.py | dcea81441583eabd41af10a706aab0aa348125a0 | [] | no_license | ninapavlich/sitecomber | b48b3ee055dac1f419c98f08fffe5e9dc44bd6e3 | 6f34e5bb96ca4c119f98ee90c88881e8ca3f6f06 | refs/heads/master | 2022-12-11T20:55:07.215804 | 2020-03-13T07:58:28 | 2020-03-13T07:58:28 | 197,045,165 | 1 | 0 | null | 2022-12-08T01:47:52 | 2019-07-15T17:42:31 | JavaScript | UTF-8 | Python | false | false | 1,900 | py | import logging
from django.core.management.base import BaseCommand
from django.conf import settings
from django.contrib.auth import get_user_model
from django.core.validators import URLValidator
from django.core.exceptions import ValidationError
from sitecomber.apps.config.models import Site, SiteDomain, SiteTestSett... | [
"nina@ninalp.com"
] | nina@ninalp.com |
eaff999078aae74c52b25f7fa8882f8922f8eacf | 1cc59b6493c7579a81ddec76ea96621b934f510a | /venv/bin/jupyter-serverextension | d1da24e349738bd3a6f0e676f039527d9fb937a1 | [] | no_license | miraclemaster11/Corona_Cases | 4097c3f317c66ca6c9f31ed3bfd18af678859b6a | 804c8165dbd8f631e1b30281fb03ae133976de1c | refs/heads/master | 2022-12-10T17:40:03.304722 | 2020-09-05T05:53:51 | 2020-09-05T05:53:51 | 293,014,030 | 0 | 0 | null | 2020-09-05T06:03:48 | 2020-09-05T06:03:47 | null | UTF-8 | Python | false | false | 263 | #!/home/aman/PycharmProjects/Corona_Cases/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from notebook.serverextensions import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"KAN007BCT@student.kec.edu.np"
] | KAN007BCT@student.kec.edu.np | |
0bbbdfcd49815d6b3e6e70f9b0dea685968749ae | c130a094e04eb448201ca2ab8ed4fe56cd1d80bc | /samples/server/petstore/python-fastapi/src/openapi_server/models/tag.py | 3e0b45cd787b066a6baa3cf8dd7fe960eb9dfa00 | [
"Apache-2.0"
] | permissive | janweinschenker/openapi-generator | 83fb57f9a5a94e548e9353cbf289f4b4172a724e | 2d927a738b1758c2213464e10985ee5124a091c6 | refs/heads/master | 2022-02-01T17:22:05.604745 | 2022-01-19T10:43:39 | 2022-01-19T10:43:39 | 221,860,152 | 1 | 0 | Apache-2.0 | 2019-11-15T06:36:25 | 2019-11-15T06:36:24 | null | UTF-8 | Python | false | false | 644 | py | # coding: utf-8
from __future__ import annotations
from datetime import date, datetime # noqa: F401
import re # noqa: F401
from typing import Any, Dict, List, Optional # noqa: F401
from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401
class Tag(BaseModel):
"""NOTE: This class is auto gen... | [
"noreply@github.com"
] | janweinschenker.noreply@github.com |
60603cff2e3bd2aa1e8487a109e236043c5e2594 | 6be072ac0c8180d4ddf0b2ba5a71b5c0ca47d66c | /Week9/Login_Example/manage.py | ee8155a6cbfed11bc92ea34aa58c903e2fb779f5 | [] | no_license | ZachLevein/Di_Bootcamp | af7be115cddc5b2910d9ac69111b34a5de4a9d18 | 25d7e160bdfc294714d4f1069f66b50173abf873 | refs/heads/main | 2023-07-17T01:25:31.243129 | 2021-08-31T16:07:48 | 2021-08-31T16:14:43 | 401,768,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'login_example.settings')
try:
from django.core.management import execute_from_command_line
excep... | [
"zachariahlevein@gmail.com"
] | zachariahlevein@gmail.com |
f4f2545d2a5100feb14734611ceb4e35981e5375 | a8a1bc1c2223c4931aa451b7930cc838dae44b80 | /eagle_theme_ecomm/models/ks_mega_menu.py | 1e9e8c1a6965c6f2f244a275a01a651418d85fc0 | [] | no_license | ShaheenHossain/eagle_theme_ecomm | 195db37d37896e1c8f9151cfd0b47402d55aa19f | 32a290d5386782b74cf670cef13802ac7c8e4318 | refs/heads/master | 2022-09-18T22:05:03.741941 | 2020-06-01T21:05:33 | 2020-06-01T21:05:33 | 268,632,294 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 5,119 | py | # # -*- coding: utf-8 -*-
from eagle import models, fields, api
class Ks_WebsiteMegaMenu(models.Model):
_inherit = "website.menu"
_description = "This model will add mega menu option to the website menu"
ks_is_mega_menu = fields.Boolean("Is Dynamic Mega Menu")
ks_display_img = fields.Boolean("Display... | [
"rapidgrps@princegroup-bd.com"
] | rapidgrps@princegroup-bd.com |
c3d5cf62488778f4d8d76cb907368279058fb85c | 15788d9ce41189864b228494a66c7409afe3b90c | /ice_addresses/importers/csv.py | 8a66fb306f1a349acf791c64a451bf7dd6c266ac | [] | no_license | StefanKjartansson/django-icelandic-addresses | 99133e378acce66825ad8a63f1dfd9c3640a4bd3 | d602f288c031d60e8404e0b97a96602accc1024d | refs/heads/master | 2020-05-30T13:20:55.583308 | 2014-12-23T14:14:06 | 2014-12-23T14:14:06 | 12,543,305 | 0 | 1 | null | 2015-03-28T22:25:38 | 2013-09-02T15:33:55 | Python | UTF-8 | Python | false | false | 2,545 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
"""
from __future__ import unicode_literals, print_function, absolute_import
import codecs
import csv
import os
import sys
from ..models import PostCode, Street, Address
DATA_ROOT = os.path.join(
os.path.abspath(os.path.dirname(__file__)), os.pardir, 'data')
PY3... | [
"esteban.supreme@gmail.com"
] | esteban.supreme@gmail.com |
458aec1ce5b13d09ab2c61afc987cbc21b0ee1ef | fcc88521f63a3c22c81a9242ae3b203f2ea888fd | /Python3/0347-Top-K-Frequent-Elements/soln-1.py | 58ddccc226cee1a0915ab31e3cfff1c5815c70b1 | [
"MIT"
] | permissive | wyaadarsh/LeetCode-Solutions | b5963e3427aa547d485d3a2cb24e6cedc72804fd | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | refs/heads/master | 2022-12-06T15:50:37.930987 | 2020-08-30T15:49:27 | 2020-08-30T15:49:27 | 291,811,790 | 0 | 1 | MIT | 2020-08-31T19:57:35 | 2020-08-31T19:57:34 | null | UTF-8 | Python | false | false | 253 | py | class Solution:
def topKFrequent(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: List[int]
"""
counts = collections.Counter(nums)
return heapq.nlargest(k, counts, key=counts.get) | [
"zhang623@wisc.edu"
] | zhang623@wisc.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.