blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6976ae2c9bf1b5aab381348924e7be61e3d86826 | aa28417be8935d6fa369fcb526174f9e1e30479a | /playstation/practice/字符串变形.py | 5e62f23e5ed85d838abb9634296be22909aa5c37 | [] | no_license | YYN117/Demo | d6fca95ed8a1a433ef06f1f3fc2e768414e863cb | 40690040a7422fd5d8f03a0d68f20f1be5d4a836 | refs/heads/master | 2020-04-14T12:29:30.129709 | 2019-01-02T13:31:10 | 2019-01-02T13:31:10 | 163,841,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | # -*- coding:utf-8 -*-
def trans(s, n):
# write code here
a = s.split(' ')
a.reverse()
b = []
for i in a:
if len(i)==1:
if 65 <= ord(i) <= 90:
b.append(chr(ord(i) + 32))
elif 97 <= ord(i) <= 122:
b.append(chr(ord(i) - 32))
else:... | [
"41251061+YYN117@users.noreply.github.com"
] | 41251061+YYN117@users.noreply.github.com |
c3e2b659072f60e2a9c3b9710ef26d0bc548581f | 81a069a740a557e7b89ad03a33ec306f5ea5b293 | /cristianoronaldoyopmailcom_223/settings.py | 9d9ce5cab0ee854b478d3b331a3f7610bdfc262f | [] | no_license | payush/cristianoronaldoyopmailcom-223 | 0c1113b5417ab0f51c9796c7f158a7d3c38827be | f6b26672613a880e9638070cf616c7a40fc803ad | refs/heads/master | 2020-03-23T12:27:37.229193 | 2018-07-19T09:57:58 | 2018-07-19T09:57:58 | 141,560,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,157 | py | """
Django settings for cristianoronaldoyopmailcom_223 project.
Generated by 'django-admin startproject' using Django 1.11.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/s... | [
"ayushpuroheet@gmail.com"
] | ayushpuroheet@gmail.com |
5bd988b720a123e3d2023d60f781fc45f6f0bd9e | d5a786c47e171b8e0ce1634d28b4f13be5bedb32 | /blog/views.py | 987eb902f61f82096ae2a964ad9e8e65773a7f55 | [] | no_license | RaphaelfsOliveira/djeven | 9b48728e026572a74273c32b7b6cb09821b3e6fb | 689b3c91617bbbe147122d029ec0906b99da1e66 | refs/heads/master | 2021-01-09T06:17:21.335289 | 2017-04-26T20:09:51 | 2017-04-26T20:09:51 | 80,952,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | from django.shortcuts import render, get_object_or_404
from django.utils import timezone
from .models import Post
# Create your views here.
def post_list(request):
posts = Post.objects.filter(published_date__lte=timezone.now()).order_by('published_date')
return render(request, 'blog/post_list.html', {'posts': ... | [
"raphaelbrf@gmail.com"
] | raphaelbrf@gmail.com |
cf0ab34e186cb551aefd62312852dd5ccd9505fc | 73f7cc0e71bfd38d3bfe97367324f1e7a5d8b451 | /engine_code/gapi/modules/auth/text_xml.py | 1434494619269625c21fba9be8e04088f6e542ee | [] | no_license | cash2one/my-test | ccc0ae860f936262a601c1b579d3c85196b562f9 | 8bd23f5963f4dc7398b7670e28768a3533bd5d14 | refs/heads/master | 2021-01-18T03:20:30.889045 | 2017-01-19T02:52:02 | 2017-01-19T02:52:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,456 | py | #!/usr/bin/python
# -*- coding=utf-8 -*-
# author : wklken@yeah.net
# date: 2012-05-25
# version: 0.1
import sys
import os
from xml.etree.ElementTree import ElementTree,Element
def read_xml(in_path):
'''''读取并解析xml文件
in_path: xml路径
return: ElementTree'''
tree = ElementTree()
... | [
"zhizhi1908@yeahh.net"
] | zhizhi1908@yeahh.net |
1fd3a2b4c611dfa98d2db9ba170171832ca778b9 | 7355c7a5fb5f636b07598d4b4018491b435b553c | /tfx/types/standard_artifacts.py | 3dc2bf6db3dda9323c32b5efe52d9cef9a70bd89 | [
"Apache-2.0"
] | permissive | DevenLu/tfx | 4a3ce025594ad006d37f9c4c69f08d8d49f09e8f | 1b99e7f33017bcd0e49a5a4ae1dc13440da35d3e | refs/heads/master | 2020-07-08T13:23:54.033534 | 2019-08-21T22:07:54 | 2019-08-21T22:08:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | # Copyright 2019 Google LLC. 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 a... | [
"tensorflow-extended-team@google.com"
] | tensorflow-extended-team@google.com |
353bf95f32bbe15d426b90b4624987d5ebe0dcab | fa38f67a6f5296ba64de8d771492f9db230cf5ed | /beatspread.py | 6f758e79570b8c1438f107d9eb05417058cedc2a | [] | no_license | traffaillac/traf-kattis | 5ebc2b0411c9f27da5d9080c269ad0add227a79c | 1b6bfdad48f3fab31902d85ed48b1bd0a8f44d0f | refs/heads/master | 2023-08-16T21:44:56.885553 | 2023-08-12T15:04:43 | 2023-08-12T15:04:43 | 236,475,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | for _ in range(int(input())):
s,d = (int(i) for i in input().split())
a,b = (s+d)//2, (s-d)//2
print(f'{a} {b}' if b>=0 and s&1==d&1 else 'impossible')
| [
"traf@kth.se"
] | traf@kth.se |
6829b76481bf86e1a23ec83e3e05484de249d009 | bb150497a05203a718fb3630941231be9e3b6a32 | /models/PaddleScience/tests/test_api/test_FCNet.py | 76b10aae7b71bcaadf357e383b365d8317bbf919 | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 7,160 | py | """
# Copyright (c) 2022 PaddlePaddle 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 a... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
05d3daed5c13842cea79650ff0c744df26f7e996 | 3adbf4c196ce225f6bbf41d77d17fe312e5d4620 | /flexx/__main__.py | ccff891543f31cf807265ab42e5a2635d70df8cb | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | drorhilman/flexx | 9c818576aec1888092ab9819e2269d18b26f326b | 8de99132d0fa25b0fea81ed8ac7ff8f8f9e95661 | refs/heads/master | 2020-03-24T10:15:44.048180 | 2018-07-05T13:26:31 | 2018-07-05T13:26:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,326 | py | """
Flexx has a command line interface to perform some simple tasks.
Invoke it via ``python -m flexx``. Additional command line arguments
can be provided to configure Flexx, see
:func:`configuring flexx <flexx.config>`.
.. code-block:: none
"""
import sys
ALIASES = {'-h': 'help', '--help': 'help',
'--ve... | [
"almar.klein@gmail.com"
] | almar.klein@gmail.com |
f1c1843044b9c187c5c7ffae3a14625d3b7e6f86 | 796613525c40a241b0f88ceb761838a5bca311e1 | /biasTF/BIAS_V2/src/MoreTransferFunctions.py | a243b13f8131edb9f58a22317611f42685ef40cc | [] | no_license | UAEDF/vbfHbb | 377e956a2d002eacd2090a4abbaa6bffb141454e | ecd5bfefa3db8d2c8283e306d68da42de44f7e39 | refs/heads/master | 2020-04-22T16:54:48.622168 | 2015-12-26T16:07:44 | 2015-12-26T16:07:44 | 12,751,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,460 | py | #!/usr/bin/env python
import ROOT
from ROOT import *
import sys,re,os
from optparse import OptionParser
####################################################################################################
def parser():
mp = OptionParser()
return mp
###################################################################... | [
"sara.alderweireldt@cern.ch"
] | sara.alderweireldt@cern.ch |
7c9e1c0a5c012818be68148a3a2adfb9fe3cdd8f | 43a1e9c15132398433ef1bd941e49eb0372136e6 | /day21/class_test.py | 1ef6ff0a6a57edd645b641af0ca7dd32e4a6df21 | [] | no_license | dlatnrud/pyworks | 3eaf253f7e9cf74e6504770885e4a63fd1c4e293 | 745ae5c6a85015800d049176b7d5aeb0df0f000a | refs/heads/master | 2023-08-12T16:14:50.936403 | 2021-10-15T00:48:04 | 2021-10-15T00:48:04 | 402,286,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py |
from libs.myclass import Car, Student
s1 = Student("콩쥐", 3)
print(s1)
s1.learn()
s2 = Student("팥쥐", 2)
print(s2)
car1 = Car("소나타", "흰색", 2500)
car2 = Car("BMW", "black", 3000)
print("\t 모델명 \t색상 \t배기량")
print("차량1 " + car1.model + '\t' + car1.color + '\t' + str(car1.cc))
print("차량2 " + car2.model + '\t ' + car2... | [
"dlatnrud2268@naver.com"
] | dlatnrud2268@naver.com |
aa2bde45f02c21dde8c35da4febe185068b1d850 | 172189e030da9b1cd55877ba8e76ed3ad7ab8e2a | /venv/Scripts/pip3-script.py | b8d0f92f006d806cd6fd661c6200993d17351521 | [] | no_license | class-yoo/practice02 | 8f3d44de85d2d39d5979840f0a86029bb925c995 | cc6ee1f472de7f0e84e17566ab629e6ea2871b39 | refs/heads/master | 2022-01-31T05:11:18.175308 | 2019-06-13T10:31:12 | 2019-06-13T10:31:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | #!D:\cafe24\dowork\pycharmProjects\practice02\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.... | [
"mynameisyjh@gmail.com"
] | mynameisyjh@gmail.com |
dcc20f5683f3d92aa30cd10bbd9d1b271ee391ce | c380659f6a79eee18c2ea41ec2cff8b55d725243 | /src/pyAHP/where.py | 77a23578a1feab2cb7fb007809940bc0c440ad11 | [] | no_license | ai-se/softgoals | 49b0c7f8fa010697c339831bf0561f54f0e10910 | 41e9b467811c7a491aeedcc88d76910a83fe5c50 | refs/heads/master | 2021-01-17T00:11:04.123534 | 2017-06-04T02:56:11 | 2017-06-04T02:56:11 | 41,162,015 | 1 | 4 | null | 2015-12-01T03:45:40 | 2015-08-21T15:03:25 | Python | UTF-8 | Python | false | false | 5,731 | py | from __future__ import print_function, division
import sys,os
sys.path.append(os.path.abspath("."))
sys.dont_write_bytecode = True
from utilities.lib import *
__author__ = 'panzer'
def default_settings():
return O(
min_size = 8,
max_depth = 10,
prefix = "|.. "
)
class Row(O):
"""
Row Of a Binary... | [
"george.meg91@gmail.com"
] | george.meg91@gmail.com |
7669a41a8804ee7b4055f88380962bbbc771ea49 | 2daa10000d265cd039ee4489d5ade35837e48bb0 | /log/tasks/post_schedule.py | 1061173a98933287b3c1d908047a2a98453d201c | [] | no_license | mohsenamoon1160417237/invites | ef2d23e6e21965b99f0861efa9f2c36a5ead131e | eacef16787f8bfecfe10e5ab9500116419aa4643 | refs/heads/master | 2023-08-22T11:35:09.071118 | 2021-10-24T12:15:03 | 2021-10-24T12:15:03 | 420,020,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | from celery import shared_task
from celery.utils.log import get_task_logger
from log.models.PostLog import PostLog
from django.shortcuts import get_object_or_404
logger = get_task_logger(__name__)
@shared_task
def post_schedule(post_id):
post = get_object_or_404(PostLog , id=post_id)
post.status = PostLog.PU... | [
"dramatic225@gmail.com"
] | dramatic225@gmail.com |
0c14fbbc574d2ff198fe9688adc63b8361eee419 | 908ad8a65600996b263bb53dd3054e742c533dab | /akshare/stock/stock_info.py | 5999c616aa544102b154cd70c65aef64b35bc27c | [
"MIT"
] | permissive | pangyouzhen/akshare | 47c7d9e944ac197d3df5cce81eb33da5feccd518 | 5050cda92624c642d70a196d93a343e53a12fe17 | refs/heads/master | 2023-05-09T00:27:26.011181 | 2021-05-30T07:58:59 | 2021-05-30T07:58:59 | 371,892,903 | 0 | 0 | MIT | 2021-05-29T10:07:23 | 2021-05-29T05:57:53 | null | UTF-8 | Python | false | false | 8,743 | py | # -*- coding:utf-8 -*-
# /usr/bin/env python
"""
Date: 2020/12/28 16:31
Desc: 股票基本信息
"""
import json
from io import BytesIO
import pandas as pd
import requests
def stock_info_sz_name_code(indicator: str = "B股列表") -> pd.DataFrame:
"""
深圳证券交易所-股票列表
http://www.szse.cn/market/product/stock/list/index.html
... | [
"jindaxiang@163.com"
] | jindaxiang@163.com |
b3889823658d4ea8723d6e2206876dad2817f7e7 | 2a1b8a671aceda6bc446f8ce26400aa84fa444a6 | /Packs/CommonScripts/Scripts/DomainReputation/DomainReputation.py | 63cc309711c1842d76d42b7efd6895d62bd3645f | [
"MIT"
] | permissive | demisto/content | 6d4722d46f0ff0beea2748e9f7de585bf91a78b4 | 890def5a0e0ae8d6eaa538148249ddbc851dbb6b | refs/heads/master | 2023-09-04T00:02:25.618032 | 2023-09-03T21:56:22 | 2023-09-03T21:56:22 | 60,525,392 | 1,023 | 1,921 | MIT | 2023-09-14T20:55:24 | 2016-06-06T12:17:02 | Python | UTF-8 | Python | false | false | 975 | py | import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401
def domain_reputation():
results = demisto.executeCommand('domain', {'domain': demisto.get(demisto.args(), 'domain')})
for item in results:
if isError(item):
if is_offset_error(item): # call to is_... | [
"noreply@github.com"
] | demisto.noreply@github.com |
f21bc36aca61bad4889e5e3463d4efea8fa18d04 | 23fb7793e9d94e56714b618faacc4e85db8d74f9 | /explore/transform_angles.py | 7c1065a9ff9c1163f802df1697413f0c57cb4d89 | [
"BSD-3-Clause"
] | permissive | SasView/sasmodels | b4b6432c083deeaf77a96d352afbf10c696f4527 | 00fd0242007be2023cf7b4887b33da6247a6adcc | refs/heads/master | 2023-08-30T23:58:16.030202 | 2023-08-15T13:47:45 | 2023-08-15T13:47:45 | 30,761,174 | 17 | 31 | BSD-3-Clause | 2023-09-12T13:27:39 | 2015-02-13T15:04:20 | Python | UTF-8 | Python | false | false | 2,048 | py | #!/usr/bin/env python
"""
Small application to change theta, phi and psi from SasView 3.x models to the
new angle definition in SasView 4.x and above.
Usage: python explore/transform_angles.py theta phi psi
"""
from __future__ import print_function, division
import sys
import numpy as np
from numpy import pi, cos, s... | [
"pkienzle@nist.gov"
] | pkienzle@nist.gov |
3d44f956b37985fb6c1fff55f9c60a82d9c0bde3 | ed1e81a2325d310de7961274a06bfe6cdb7993d0 | /basic-python/xmlcreation.py | f448a461e86acb8db27c96bd5449e8453674cf27 | [] | no_license | fahimkhan/python | ce573298adf30ca8426b74f3ab275ab7f8047a91 | 1733ad39cf214362c8a76f8996740715888d2101 | refs/heads/master | 2021-01-15T15:50:27.323739 | 2016-08-24T11:02:56 | 2016-08-24T11:02:56 | 20,254,607 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | #!/usr/bin/python
import xml.etree.cElementTree as ET
root = ET.Element("root")
doc = ET.SubElement(root, "doc")
field1 = ET.SubElement(doc, "field1")
field1.set("name", "blah")
field1.text = "some value1"
field2 = ET.SubElement(doc, "field2")
field2.set("name", "asdfasd")
field2.text = "some vlaue2"
tree = ET.E... | [
"fahim.elex@gmail.com"
] | fahim.elex@gmail.com |
ef82b63e0e7dbbd1085825847ec183ac0f11b914 | 9d0195aa83cc594a8c61f334b90375961e62d4fe | /JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano2615.py | b9cfb7d4b3e6f3a41db23aa2782f28b088a22c4b | [] | no_license | rsk146/CMS | 4e49592fc64f6438051544c5de18598db36ed985 | 5f8dab8c59ae556598b9747b52b88205fffc4dbe | refs/heads/master | 2022-12-01T03:57:12.126113 | 2020-08-04T03:29:27 | 2020-08-04T03:29:27 | 284,863,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,293 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: nanoAOD_jetToolbox_cff -s NANO --data --eventcontent NANOAOD --datatier NANOAOD --no_exec --conditions 102X_dataRun2_Sep2018Rereco_v1 --era... | [
"rsk146@scarletmail.rutgers.edu"
] | rsk146@scarletmail.rutgers.edu |
bfae3709907e8c2bfdecf0b16044bc79c317d929 | abad82a1f487c5ff2fb6a84059a665aa178275cb | /Codewars/8kyu/multiply-the-number/Python/test.py | 65310c35d9c4b0fb2c4cc05b73d6733837d2db71 | [
"MIT"
] | permissive | RevansChen/online-judge | 8ae55f136739a54f9c9640a967ec931425379507 | ad1b07fee7bd3c49418becccda904e17505f3018 | refs/heads/master | 2021-01-19T23:02:58.273081 | 2019-07-05T09:42:40 | 2019-07-05T09:42:40 | 88,911,035 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | # Python - 2.7.6
Test.describe('Basic Tests')
Test.assert_equals(multiply(10), 250)
Test.assert_equals(multiply(5), 25)
Test.assert_equals(multiply(200), 25000)
Test.assert_equals(multiply(0), 0)
Test.assert_equals(multiply(-2), -10)
| [
"d79523@hotmail.com"
] | d79523@hotmail.com |
dbc68db512ec1e4767fb5aa260cf368e4c11642e | 29d09c634ffdd8cab13631d62bc6e3ad00df49bf | /Algorithm/swexpert/1216_회문2.py | f7bb26f33e8ca6571a0314bcc3dffae1b790dea9 | [] | no_license | kim-taewoo/TIL_PUBLIC | f1d32c3b4f46344c1c99f02e95cc6d2a888a0374 | ae86b542f8b1805b5dd103576d6538e3b1f5b9f4 | refs/heads/master | 2021-09-12T04:22:52.219301 | 2021-08-28T16:14:11 | 2021-08-28T16:14:11 | 237,408,159 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | T = 10
def chk_palindrome(list_to_chk, length):
for i in range(length//2):
if list_to_chk[i] != list_to_chk[-1-i]:
return False
return True
for _ in range(1, T+1):
t = int(input())
a = [list(input()) for _ in range(100)]
found = False
for l in range(100, 0, -1): # 가장 긴 10... | [
"acoustic0419@gmail.com"
] | acoustic0419@gmail.com |
08506cafbe766926973725265dc18f740b64100d | a9ca402cc2a0757831d355781f388443067bae76 | /swagger_server/controllers/bsdf_material_controller.py | d4c0836bc326159fa12808677a6507173f728866 | [] | no_license | AntoineDao/LadyBugToolsAPIServer | 23a21fbc0a492df35923e33d096be5151adb7f52 | 2c13c96ed3e7c9e44f22875f80c2dd7c10cb2727 | refs/heads/master | 2020-03-26T18:23:51.461620 | 2018-09-10T22:40:47 | 2018-09-10T22:40:47 | 145,210,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | import connexion
import six
from swagger_server.models.bsdf_material_schema import BSDFMaterialSchema # noqa: E501
from swagger_server.models.error_model_schema import ErrorModelSchema # noqa: E501
from swagger_server.models.succesfully_created_schema import SuccesfullyCreatedSchema # noqa: E501
from swagger_server... | [
"antoinedao1@gmail.com"
] | antoinedao1@gmail.com |
351fe2da8b0c829785ddfedfdeb245bb586d9f7b | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/image_classification/invariance-equivariance_ID2466_for_PyTorch/eval_fewshot.py | 9c4cbe8bfed5b4736a93c1af7c925be9f0e067f0 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | 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 | 6,704 | py | #
# BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# 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 ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
309fc39980c3f32d8daa830f99857d0155d49716 | c6b9b9f2fbc6c62e7a86b02718954661af3c564f | /configs/_base_/schedules/schedule_s_short.py | dea71cb530411533af0eec5170b5d1105c0c0d92 | [
"Apache-2.0"
] | permissive | open-mmlab/mmflow | a90ff072805ac79cbc0b277baded1e74d25cccf0 | 9fb1d2f1bb3de641ddcba0dd355064b6ed9419f4 | refs/heads/master | 2023-05-22T05:19:48.986601 | 2023-01-10T16:05:18 | 2023-01-10T16:05:18 | 428,493,460 | 808 | 110 | Apache-2.0 | 2023-09-05T13:19:38 | 2021-11-16T02:42:41 | Python | UTF-8 | Python | false | false | 413 | py | # optimizer
optimizer = dict(
type='Adam', lr=0.0001, weight_decay=0.0004, betas=(0.9, 0.999))
optimizer_config = dict(grad_clip=None)
# learning policy
lr_config = dict(
policy='step', by_epoch=False, gamma=0.5, step=[300000, 400000, 500000])
runner = dict(type='IterBasedRunner', max_iters=600000)
checkpoint_c... | [
"meowzheng@outlook.com"
] | meowzheng@outlook.com |
b9c2eafabcc422185d25520e77910dd66ca153e6 | 425db5a849281d333e68c26a26678e7c8ce11b66 | /LeetCodeSolutions/LeetCode_1249.py | b201911e1129c8f2db7ad7a3446d8cf269ba10af | [
"MIT"
] | permissive | lih627/python-algorithm-templates | e8092b327a02506086414df41bbfb2af5d6b06dc | a61fd583e33a769b44ab758990625d3381793768 | refs/heads/master | 2021-07-23T17:10:43.814639 | 2021-01-21T17:14:55 | 2021-01-21T17:14:55 | 238,456,498 | 29 | 8 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | class Solution:
def minRemoveToMakeValid(self, s: str) -> str:
stack = []
res = [''] * len(s)
for idx, val in enumerate(s):
if val == '(':
stack.append([idx, '('])
res[idx] = '('
elif val == ')':
if stack:
... | [
"lih627@outlook.com"
] | lih627@outlook.com |
bcddc785198dd4dfe6ed7c983ffc98e275103776 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/allergies/76c89c05add142a5bedef7b724ee84dd.py | 230885176ab163f21562dbcc0189ce3e469cd325 | [] | 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 | 887 | py | class Allergies():
def __init__(self, id):
list = []
if id > 255:
self.id = id % 256
else:
self.id = id
# Map to binary list, probably
self.allergies_match = [int(x) for x in bin(self.id)[2:]][::-1]
self.allergies_list = [
... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
5c87d0b227b33ef6578fd3ac68063dd2ed9d815b | d638929e5b699e80c6af8e675b6695e622ddc51b | /alarm/alarm.py | f95c2a463cad2bd9d80da1f1bece6af3aaf009dd | [
"MIT"
] | permissive | hobojoe1848/pybites-alarm | 51636dbd53ef7777953450b9b672dd11cc1384b1 | 40d5ef42846840ef2140f04db2b9b73a259ed12e | refs/heads/main | 2023-08-19T18:14:32.403388 | 2021-10-31T10:07:16 | 2021-10-31T10:07:16 | 423,051,580 | 0 | 0 | MIT | 2021-10-31T04:23:02 | 2021-10-31T04:23:01 | null | UTF-8 | Python | false | false | 1,206 | py | from pathlib import Path
import time
from typing import Optional
from pydub import AudioSegment
from pydub.playback import _play_with_simpleaudio
def countdown_and_play_alarm(
seconds: int,
alarm_file: str,
display_timer: bool = False,
timeout: Optional[int] = None,
) -> None:
"""Countdown N seco... | [
"bobbelderbos@gmail.com"
] | bobbelderbos@gmail.com |
831e19fb1affdcc0a44354a8d57c591877ad3f8c | 53dfe70337a2923ec7872ab911a0b85cf233a708 | /dtree.py | eb2fccab07ffa58c612f5f6abf255930076a8a8a | [] | no_license | rcaseyatbat/CS155Kaggle | 268334214bb3e635133414cc59673da12007f7be | 5d50125995312dc42732edd730ab94012cbb36ce | refs/heads/master | 2021-01-25T08:59:56.228301 | 2015-02-18T21:35:19 | 2015-02-18T21:35:19 | 30,485,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,219 | py | import sys
# I need this because my python installation is weird..
sys.path.append('/usr/local/lib/python2.7/site-packages')
from sklearn import tree
import csv
import numpy as np
import matplotlib.pyplot as plt
# NOTE: Decrease if you want to do some cross validation.
# (just changed to 4000 to train the final mod... | [
"="
] | = |
190ab7fce3bf18f63578fa2eb65d119e36c79aae | 01d46b81fd351f157f896d99451610e0ebf467e7 | /rjgoptionssite/oldflasky/flasky-09SEP/controllers/download_controller.py | 769a20639ea0565207852b6451761d890f20f5dd | [] | no_license | hfwebbed/Stock-Option-Analytics | d30e389d48f92a327af5d04fbb182245b1e3dcde | 1049f2cd543bced34a9a3c50505b5c8e120ffcea | refs/heads/master | 2023-08-03T04:52:48.975821 | 2022-03-15T19:07:25 | 2022-03-15T19:07:25 | 193,752,461 | 29 | 8 | null | 2023-07-22T09:17:04 | 2019-06-25T17:20:25 | Python | UTF-8 | Python | false | false | 1,200 | py |
from flask import send_file
import shutil
import openpyxl
from openpyxl import load_workbook
import time
class DownloadController:
def __init__(self,parameterService,tickerRateService):
self.parameterService = parameterService
self.tickerRateService = tickerRateService
pass
def disp... | [
"30417960+hfwebbed@users.noreply.github.com"
] | 30417960+hfwebbed@users.noreply.github.com |
a9ca55a19c0e1c55bbe0e7079fa7a63ab9e5208c | 5ba2ea4694d9423bc5435badba93b7b8fedfadd0 | /webapp/data_import/faust_stadtarchiv/DataImportFaustStadtarchivWorker.py | ac7737bf40552d794b0a8ca29ce5d458cca12081 | [] | no_license | Digital-Botschafter-und-mehr/mein-stadtarchiv | bdf480d82b366253afd27c697143ad5d727f652f | a9876230edac695710d4ec17b223e065fa61937c | refs/heads/master | 2023-02-05T18:43:13.159174 | 2021-01-01T09:35:46 | 2021-01-01T09:35:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,877 | py | # encoding: utf-8
"""
Copyright (c) 2017, Ernesto Ruge
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions an... | [
"mail@ernestoruge.de"
] | mail@ernestoruge.de |
77c97608f89f50599a28a23bff835d368f149a12 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/eventhub/azure-eventhub/azure/eventhub/aio/_eventprocessor/in_memory_checkpoint_store.py | 22ef721c0ee08b96a6f06b1267650094a1962f37 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 1,664 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
c6b1ec9abb66fcae482e064c75ae93ff5eabb333 | 10d5ce0b34806bd82715d544703e1cf1add4a146 | /TrafficGenerator/support/SSL_TLS_Support.py | 5ded90f2d52d6922cbd3fd4ad91ea306ba3c97d8 | [] | no_license | szabgab/ScapyTrafficGenerator3 | 17c05e4ca4c9dda0013b90eac328e2ff5d098c2f | 53c81b0796d436a1ec64b0ea46173d98d4bc1fa7 | refs/heads/main | 2023-03-12T02:24:23.410164 | 2020-12-22T08:11:55 | 2020-12-22T08:11:55 | 323,560,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,896 | py | from scapy.all import *
import logging
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
from Scapy_Control import *
class SSL_TSL_Supprt():
def __init__(self):
self.defaultCipher="RSA_WITH_AES_128_CBC_SHA"
self.sshcipher=65664
def simple_clientHello(self,
... | [
"gabor@szabgab.com"
] | gabor@szabgab.com |
d8904f842a18029786a44e9787a3ea3d4e287b8b | c9ad6ad969de505b3c8471c6f46dfd782a0fb498 | /0x11-python-network_1/2-post_email.py | f9456c986de8e9178377c07526c55742ec51eb58 | [] | no_license | enterpreneur369/holbertonschool-higher_level_programming | 002fd5a19b40c8b1db06b34c4344e307f24c17ac | dd7d3f14bf3bacb41e2116d732ced78998a4afcc | refs/heads/master | 2022-06-20T00:57:27.736122 | 2020-05-06T14:26:10 | 2020-05-06T14:26:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | #!/usr/bin/python3
""" Module 2-post_email
Python script that send a POST request
"""
import urllib.request
import sys
if __name__ == "__main__":
try:
url = sys.argv[1]
email = sys.argv[2]
values = {"email": email}
data = urllib.parse.urlencode(values)
data = data.encode("as... | [
"jose.calderon@holbertonschool.com"
] | jose.calderon@holbertonschool.com |
c8ea297268457b9ea391fff1005c0915bf107e5e | 9141823df0c7f40a405c5ed5d3a7ec5596ff5ad6 | /apps/login/urls.py | aacd3592e2a7fd23d16940f74f6dca6eb4d851b7 | [] | no_license | jqchang/dojo_secrets | 9ea70527e396a5205b2e7b19360e99a614e151b1 | e1d84d1cee201cbdde4b065ed50702c9caee7595 | refs/heads/master | 2021-01-21T06:42:41.697539 | 2017-02-23T21:18:44 | 2017-02-23T21:18:44 | 82,870,690 | 0 | 0 | null | 2017-02-23T21:13:19 | 2017-02-23T01:33:26 | Python | UTF-8 | Python | false | false | 397 | py | from django.conf.urls import url, include
from . import views
# from django.contrib import admin
urlpatterns = [
url(r'^$', views.index, name='login_index'),
# url(r'^success$', views.success, name='login_success'),
url(r'^process$', views.process, name='login_process'),
url(r'^login$', views.login, na... | [
"jqchang@gmail.com"
] | jqchang@gmail.com |
c1ebf23dd23f02933f1422f1713e8966feb7c239 | d972579395ced64fea4d40ec946c4aa053ef2c1b | /api/models.py | 9d38f73f74631163abb6bdba76a4baf3babb1b59 | [] | no_license | ziaurjoy/Serializer-and-ajax | 7a0e117e36e87b8889eb270a7c3c78b3f75f670e | 395a7802229badc139f9b4a6d5fbae563e093276 | refs/heads/master | 2022-06-09T09:32:57.054391 | 2020-05-03T15:26:34 | 2020-05-03T15:26:34 | 260,957,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | from django.db import models
# Create your models here.
class Task(models.Model):
title = models.CharField(max_length=50)
complited = models.BooleanField(default=False,blank=True,null=True)
def __str__(self):
return self.title | [
"ziaurjoy802@gmail.com"
] | ziaurjoy802@gmail.com |
c2304a67a1780051792c3fc974a55cd4a567394d | caf6ae544fce3b332b40a03462c0646a32c913e1 | /merchant/python/test/test_new_invoice.py | d5860b0d8d6e26a30956c2c4527a926aa0978c06 | [
"Apache-2.0"
] | permissive | coinsecure/plugins | 827eb0ce03a6a23b4819a618ee47600161bec1c7 | ad6f08881020c268b530d5242d9deed8d2ec84de | refs/heads/master | 2020-05-30T07:17:56.255709 | 2016-11-27T22:22:23 | 2016-11-27T22:22:23 | 63,496,663 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | # coding: utf-8
"""
coinMerchant Api Documentation
To generate an API key, please visit <a href='https://pay.coinsecure.in/payment-tools/api' target='_new' class='homeapi'>https://pay.coinsecure.in/payment-tools/api</a>.<br>Guidelines for use can be accessed at <a href='https://pay.coinsecure.in/api/guideline... | [
"vivek0@users.noreply.github.com"
] | vivek0@users.noreply.github.com |
285827778cb5d7d41286c78da3a8c7d7e1a18d6e | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /tests/terraform/checks/resource/aws/test_APIGatewayMethodSettingsCacheEnabled.py | 949fe13423e8a9120e84913042e47da6a765b876 | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 1,354 | py | import os
import unittest
from checkov.runner_filter import RunnerFilter
from checkov.terraform.checks.resource.aws.APIGatewayMethodSettingsCacheEnabled import check
from checkov.terraform.runner import Runner
class TestAPIGatewayMethodSettingsCacheEnabled(unittest.TestCase):
def test(self):
runner = Run... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
3039965ef509beb90baae8e5c128e86ed06be81f | ca7f34b5a105984ff3f3f4c794a3a4b95ab35abc | /iterm2_tools/shell_integration.py | 9676d0dae14f99722ef3110e7b84f0bbc5ba446c | [
"MIT"
] | permissive | Carreau/iterm2-tools | d6b0fa016759ace1315e6e708b389eb235a7dda8 | 3d42811b1c411f3a11b5550476fae78efa305164 | refs/heads/master | 2020-04-05T19:22:34.873301 | 2016-06-01T21:30:47 | 2016-06-01T21:30:47 | 60,203,359 | 0 | 0 | null | 2016-07-19T17:23:52 | 2016-06-01T19:02:26 | Python | UTF-8 | Python | false | false | 6,279 | py | """
Shell integration
See https://groups.google.com/d/msg/iterm2-discuss/URKCBtS0228/rs5Ive4PCAAJ
for documentation on the sequences,
https://github.com/gnachman/iterm2-website/tree/master/source/misc for example
implementations, and https://iterm2.com/shell_integration.html for a list of
what this lets you do in iTer... | [
"asmeurer@gmail.com"
] | asmeurer@gmail.com |
a077ee542a3cdeb2e8d4aa5dfae685ee2dd37922 | 180dc578d12fff056fce1ef8bd1ba5c227f82afc | /official/legacy/detection/modeling/architecture/nn_ops.py | c8e2f5b534a79a7dba8ff321417f77b8d8a47cf7 | [
"Apache-2.0"
] | permissive | jianzhnie/models | 6cb96c873d7d251db17afac7144c4dbb84d4f1d6 | d3507b550a3ade40cade60a79eb5b8978b56c7ae | refs/heads/master | 2023-07-12T05:08:23.314636 | 2023-06-27T07:54:20 | 2023-06-27T07:54:20 | 281,858,258 | 2 | 0 | Apache-2.0 | 2022-03-27T12:53:44 | 2020-07-23T05:22:33 | Python | UTF-8 | Python | false | false | 3,853 | py | # Copyright 2023 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 |
c29f4258256a0299f7c1ce8d83dab9055e20dd92 | 2b2b5e2a28038b8e2dea5bbec0f833cabfa0c256 | /eland/ml/pytorch/_pytorch_model.py | de1b550656bf9fcbea7b056e77b763c3bdce3cbc | [
"Apache-2.0",
"MIT",
"BSD-3-Clause"
] | permissive | elastic/eland | 09b321d500c31abb04673a17bc9ea32f13d3358e | 95864a9ace67337b863ebeb65ded808cf5ba03b3 | refs/heads/main | 2023-09-01T18:13:38.645147 | 2023-08-31T09:34:36 | 2023-08-31T09:34:36 | 191,316,757 | 524 | 95 | Apache-2.0 | 2023-09-14T19:31:16 | 2019-06-11T07:24:06 | Python | UTF-8 | Python | false | false | 5,662 | py | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use ... | [
"noreply@github.com"
] | elastic.noreply@github.com |
1ba36e754a18fa91d89c43dbe3bf65dfd2bef5d8 | 95b37927e64e2901e664cc958ff01927734081fc | /ethereumetl/mappers/receipt_log_mapper.py | 0712b1469f387b381e854450096902201d0a30c5 | [
"MIT"
] | permissive | farooqarahim/ethereum-etl | 335d5ea74fcd4e62960ee035d31e320445fd8bf2 | ef462ba2c413088931e46638d8b8b1391a469f5d | refs/heads/master | 2020-03-23T22:01:18.156250 | 2018-07-23T16:58:44 | 2018-07-23T16:58:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,337 | py | # MIT License
#
# Copyright (c) 2018 Evgeny Medvedev, evge.medvedev@gmail.com
#
# 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
# ... | [
"medvedev1088@gmail.com"
] | medvedev1088@gmail.com |
3260047056822f3f7f151764bf6c76b00d2c5a54 | 6eb59488a043d78e5758922ee0136103d4fd419f | /tests/test_surround_delete.py | b0e2509fe5fc9e617ade38961f57ba8eba6bf5a1 | [
"MIT"
] | permissive | SublimeSix/plugin-surround | e038e3bf246900f454facc3ad765cc31d1d0732e | eba4fd9af4f4f686f94796a4d6cfe53b94f3e1d2 | refs/heads/master | 2020-03-19T17:30:53.230178 | 2018-07-14T20:36:41 | 2018-07-14T20:38:10 | 136,763,619 | 3 | 0 | MIT | 2018-06-24T20:45:49 | 2018-06-09T22:56:59 | Python | UTF-8 | Python | false | false | 2,025 | py | import os
import unittest
import sublime
from sublime import Region as R
from User.six.tests import ViewTest
from Six.lib.command_state import CommandState
from Six.lib.constants import Mode
from Six.lib.errors import AbortCommandError
from Six.lib.yank_registers import EditOperation
from User.six.surround import ... | [
"guillermo.lopez@outlook.com"
] | guillermo.lopez@outlook.com |
db164c4acb91643dac552db8d6754de1e2163630 | 7df7642c30f0cd09db47c42abe2738a00d8c9562 | /hearthstone/stringsfile.py | d72f60096e67c53bc2058e4ea64427e1caec8165 | [
"MIT"
] | permissive | mshirinyan/python-hearthstone | 601887c49385f041acd0c98c23170269b29ff5f5 | 3855e9565d45f0a5677fffe2f88cbe160cc6c7e1 | refs/heads/master | 2021-09-07T12:33:05.479242 | 2018-02-14T12:33:20 | 2018-02-14T16:05:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | """
Hearthstone Strings file
File format: TSV. Lines starting with `#` are ignored.
Key is always `TAG`
"""
import csv
from pkg_resources import resource_filename
_cache = {}
def load(fp):
reader = csv.DictReader(filter(lambda row: not row.startswith("#"), fp), delimiter="\t")
stripped_rows = [{k: v for k, v in... | [
"jerome@leclan.ch"
] | jerome@leclan.ch |
7517ade199886b75515bbcbb06d3d8a2b2e6f48c | 5e04d2979dd28a78fdd9e17136d7ce85dc247576 | /B/mar10_fileio.py | 984a7efad6220bac645caa03f841774632616813 | [] | no_license | ptyork/ptyork-au-aist2120-20sp | a821c0fe8b52eafbb15205b2f4bdacdae415ccd9 | 1cb928c59b5efe8cde26185bf781293c599e9823 | refs/heads/master | 2020-12-14T00:28:24.766261 | 2020-08-01T20:42:05 | 2020-08-01T20:42:05 | 234,577,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | import sys
print(sys.argv)
# exit()
#f = open('kennedy.txt')
#f = open('emails.txt')
if len(sys.argv) != 2:
print('ERROR: give me a file name, dang it!!')
exit()
filename = sys.argv[1] # [0] is always the name of the script...others are arguments
f = open(filename)
lines = f.readlines()
# print(lines)
# ex... | [
"paul@yorkfamily.com"
] | paul@yorkfamily.com |
4428d1bfb6506986315772492de1c8636cf30025 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2021_01_01/operations/__init__.py | b30d1928382064e02bd6a6a8d0e62c67b220a026 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 2,517 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
4b89aa25d517a40a3ecfeefcfed52951b89750b7 | 36feed24f91d0c9ab07b81208cbc195bdbac2d63 | /algorithms/047.Permutations_II/Permutations_II.py | dc5ba7b5b30b875d0797b2653075b1cdeda82cf6 | [] | no_license | borisnorm/leetcode-1 | da8ef87219d18c674f74721df1a8159bd856e1d7 | 6200c8704614e918c8bfa5357c648dd1b4f7eb74 | refs/heads/master | 2021-01-15T09:18:58.403345 | 2016-02-26T12:31:41 | 2016-02-26T12:31:41 | 63,475,809 | 1 | 0 | null | 2016-07-16T09:31:10 | 2016-07-16T09:31:07 | null | UTF-8 | Python | false | false | 739 | py | # Time: O(n!)
# Space: O(n)
class Solution:
# @param num, a list of integer
# @return a list of lists of integers
def permuteUnique(self, nums):
solutions = [[]]
for num in nums:
next = []
for solution in solutions:
for i in xran... | [
"1012351692@qq.com"
] | 1012351692@qq.com |
4a9657ba76659ff9b7d54328426931dd9ba6a668 | 80c8d4e84f2ea188a375ff920a4adbd9edaed3a1 | /scikit-learn/getstart.py | a1ec7488efb339202a33afeaac8479175ed84d74 | [
"MIT"
] | permissive | Birkid/penter | 3a4b67801d366db15ca887c31f545c8cda2b0766 | 0200f40c9d01a84c758ddcb6a9c84871d6f628c0 | refs/heads/master | 2023-08-22T14:05:43.106499 | 2021-10-20T07:10:10 | 2021-10-20T07:10:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,818 | py | from sklearn import datasets #从sklearn包中加载数据集模块
from sklearn import svm
import pickle
#iris = datasets.load_iris() #加载鸢尾花数据集
from sklearn.model_selection import GridSearchCV,learning_curve
from sklearn.tree import DecisionTreeClassifier
digits = datasets.load_digits() #加载数字图像数据集 ,原始的样例是一张(8 x 8)的图片 digits.images[0]
... | [
"350840291@qq.com"
] | 350840291@qq.com |
0c16543c22bf0a5523d861f24fc2de0d4fb253c8 | f038216be109882668ccd89b71efe0127d845bfb | /LeetCode/min_stack.py | 9dca4b9380e50d1dbf1198cffd736275f183daad | [] | no_license | kunalt4/ProblemSolvingDSandAlgo | 84b29a7eb2f73ea3b0450ed4b0707bc2d031c00d | 6a796dd1a778049418d47bc3b94b82c7a2680d26 | refs/heads/master | 2021-08-16T23:05:39.452968 | 2020-09-16T00:02:06 | 2020-09-16T00:02:06 | 221,677,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | class MinStack:
def __init__(self):
"""
initialize your data structure here.
"""
self.queue = []
def push(self, x: int) -> None:
curMin = self.getMin()
if curMin == None or x < curMin:
curMin = x
self.queue.append((x,curMin))
... | [
"noreply@github.com"
] | kunalt4.noreply@github.com |
ce6243ebd2da16359d4d0e2c1cf4296bce11b1eb | c049d678830eb37879589a866b39f8e72186a742 | /upcfcardsearch/c313.py | 99e6cce0e9eef77b67d3c2b5f3dec098d7f84f7a | [
"MIT"
] | permissive | ProfessorSean/Kasutamaiza | 682bec415397ba90e30ab1c31caa6b2e76f1df68 | 7a69a69258f67bbb88bebbac6da4e6e1434947e6 | refs/heads/main | 2023-07-28T06:54:44.797222 | 2021-09-08T22:22:44 | 2021-09-08T22:22:44 | 357,771,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | import discord
from discord.ext import commands
from discord.utils import get
class c313(commands.Cog, name="c313"):
def __init__(self, bot: commands.Bot):
self.bot = bot
@commands.command(name='Sakeira_Angel_of_Radiance', aliases=['c313'])
async def example_embed(self, ctx):
embed = disco... | [
"professorsean3@gmail.com"
] | professorsean3@gmail.com |
97ee36d34266878ce39e0966a92bc7b4a28296ef | 6ea94d75b6e48952c1df2bda719a886f638ed479 | /build/catkin_generated/order_packages.py | 739b395ae277adbe22aa0c27c87e69448faf3ecb | [] | no_license | lievech/ork_ws | 634e26355503c69b76df7fca41402ea43c228f49 | e828846b962974a038be08a5ce39601b692d4045 | refs/heads/master | 2020-08-02T20:19:43.109158 | 2019-09-28T11:56:56 | 2019-09-28T11:56:56 | 211,493,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = "/home/lhn/ork_ws/src"
whitelisted_packages = "".split(';') if "" != "" else []
blacklisted_packages = "".split(';') if "" != "" else []
underlay_workspaces = "/home/lhn/catkin_ws/devel;/home/lhn/dev/catkin_ws/install;/home/lhn/dev/ca... | [
"2328187416@qq.com"
] | 2328187416@qq.com |
6be89daa6031f02d723df31d1d37085327e40bca | 7aec3f10b07403b542e1c14a30a6e00bb479c3fe | /Codewars/7 kyu/The highest profit wins!.py | 5e228294dea1a2500dbb9f73de763563d9840210 | [] | no_license | VictorMinsky/Algorithmic-Tasks | a5871749b377767176ba82308a6a0962e1b3e400 | 03a35b0541fe413eca68f7b5521eaa35d0e611eb | refs/heads/master | 2020-08-02T23:18:06.876712 | 2020-01-16T19:08:49 | 2020-01-16T19:08:49 | 211,541,179 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | """
Story
Ben has a very simple idea to make some profit: he buys something and sells it again. Of course, this wouldn't give him any profit at all if he was simply to buy and sell it at the same price. Instead, he's going to buy it for the lowest possible price and sell it at the highest.
Task
Write a function that r... | [
"panasyuk.vityu@gmail.com"
] | panasyuk.vityu@gmail.com |
d34712b924f654bbb796cbbac888511c65eded0f | 572ce2b8a9c687f302ea4953dd9bd978470d0c4b | /sqldocker/catalog/migrations/0001_initial.py | 5af04b2cede3bcf06af327b114a5f6c6cfa07f56 | [] | no_license | fainaszar/pythonPrograms | 5f539c8b80deb5d57e6aa984b0325389cf3b6f51 | 03f6c8b540981332e6f940308c7407a5038faac9 | refs/heads/master | 2021-09-07T18:10:43.603405 | 2018-02-27T05:27:37 | 2018-02-27T05:27:37 | 106,532,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,915 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-14 08:56
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
mig... | [
"fainaszar@gmail.com"
] | fainaszar@gmail.com |
b66f6fc5300779c6da72a45041d8f78a306152a0 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /2nx4JCytABfczdYGt_16.py | 65994004d9fdac0a92d175f39874b8cfce3ba52e | [] | 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 | 3,207 | py | """
In this challenge, you must build a function that inflects an infinitive
regular Italian verb of the first conjugation form to the present tense,
including the personal subjective pronoun.
All first conjugation Italian verbs share the same suffix: **ARE**. The first
thing to do is separate the verb root from th... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
b9c29aff989b8cc73cf841b5c389bf6883295914 | f4335e8e7d3010506f570167bbba18156d3a4674 | /stubs/django/conf/locale/ko/formats.pyi | 581d846279c7333b7f12804a4726ab9dc0515996 | [] | no_license | rtpg/typehangar | 133686ea45ad6187b768290aeebda9cbcae25586 | 790d057497c4791a38f9e3e009b07935b4a12f45 | refs/heads/master | 2021-01-19T04:49:17.940793 | 2017-01-16T13:54:14 | 2017-01-16T13:54:14 | 69,260,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | pyi | # Stubs for django.conf.locale.ko.formats (Python 3.5)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
DATE_FORMAT = ... # type: str
TIME_FORMAT = ... # type: str
DATETIME_FORMAT = ... # type: str
YEAR_MONTH_FORMAT = ... # type: str
MONTH_DAY_FORMAT = ... # ty... | [
"raphael@rtpg.co"
] | raphael@rtpg.co |
b2cf969038c12fc06c64cc60d9d81294d425db03 | c68d238ac786a42c4dd47d4ab5820709aa4dcdb3 | /ExFin/users/migrations/0002_auto_20180326_0034.py | e344fcc2077b49f263dd413e0ee55312c480dc74 | [] | no_license | tenebranum/ExFin | b78d2a9651d5b9e8fb0fae3adccc48f7897221d2 | 7ac7b7a0be00537a6a600721009f4a28eb90c3ab | refs/heads/master | 2022-12-14T21:17:02.334600 | 2022-09-21T10:33:27 | 2022-09-21T10:33:27 | 139,338,729 | 0 | 0 | null | 2022-12-08T00:59:15 | 2018-07-01T15:07:52 | Python | UTF-8 | Python | false | false | 456 | py | # Generated by Django 2.0.2 on 2018-03-25 21:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='profile',
options={'verbose_name': 'Дополнител... | [
"vetal969696@gmail.com"
] | vetal969696@gmail.com |
1861d39623e7386994c000de1bf394dddee1eeed | 2745f49a3205c0ae14346cb1d4115f0e50a9b52e | /app/users/adapters.py | c7ce2735de6da811ca245051e27d1667cb0100d1 | [] | no_license | caleffa/lomanegra-cursos-ministerio | 0430777f7f23e422c0a3aa48ad41c71b20c18bec | c92cf6d70c2cf9c2a7cfd39e88f852e222d21528 | refs/heads/master | 2023-07-03T06:04:40.293469 | 2021-08-09T23:55:14 | 2021-08-09T23:55:14 | 394,474,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,851 | py | from typing import Any
from allauth.account.adapter import DefaultAccountAdapter, get_current_site
from allauth.socialaccount.adapter import DefaultSocialAccountAdapter
from django.conf import settings
from django.http import HttpRequest
from django.shortcuts import resolve_url
from encuestas.models import Encuesta
... | [
"lcaleffa@americavirtualsa.com"
] | lcaleffa@americavirtualsa.com |
bdd2d5e5b6e0af6e8bdedaddca15e291e15aa69b | e1dd6d9dccb822d472b7f4f9e8446dd9202eb5a1 | /sdk/test/test_scheduling_v1beta1_api.py | df9ee2f3b9b235097a92ca1fddfda040c1a0286e | [] | no_license | swiftdiaries/argo_client | 8af73e8df6a28f9ea5f938b5894ab8b7825e4cc2 | b93758a22d890cb33cbd81934042cfc3c12169c7 | refs/heads/master | 2020-05-17T12:11:57.556216 | 2019-07-24T23:23:33 | 2019-07-24T23:23:33 | 183,701,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,251 | py | # coding: utf-8
"""
Argo API Client
Generated python client for the Argo Workflows # noqa: E501
OpenAPI spec version: v1.14.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import argo.sdk
from api.scheduling_v1beta... | [
"adhita94@gmail.com"
] | adhita94@gmail.com |
451ec70484000fda302a338852acf332709ecca6 | 1bad7d2b7fc920ecf2789755ed7f44b039d4134d | /ABC/138/D-1.py | 2543595f30ef39026a28d3c80847bb010a317fa7 | [] | no_license | kanekyo1234/AtCoder_solve | ce95caafd31f7c953c0fc699f0f4897dddd7a159 | e5ea7b080b72a2a2fd3fcb826cd10c4ab2e2720e | refs/heads/master | 2023-04-01T04:01:15.885945 | 2021-04-06T04:03:31 | 2021-04-06T04:03:31 | 266,151,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | from collections import deque
n, q = map(int, input().split())
ab = [list(map(int, input().split())) for i in range(n-1)]
px = [list(map(int, input().split())) for i in range(q)]
ans = [0]*n
adlist = [[] for i in range(n)]
for i in range(q):
ans[px[i][0]-1] += px[i][1]
for i in range(n-1):
x, y = ab[i]
adli... | [
"kanekyohunter.0314@softbank.ne.jp"
] | kanekyohunter.0314@softbank.ne.jp |
892c213e53ab6f5e683ffc239c9749f4aedcd193 | e6d08b66d50a93137126f24f8a5bc7118fa32375 | /TM1py/Services/ChoreService.py | b3c461073283ef42f817a4957fb9a773aedd3a8a | [
"MIT"
] | permissive | BigFriendly/tm1py | bfb000f8299c335beca494859ed0ec0d2f54ade1 | 03210d672cc3797025b8de80c42037e1e11f369f | refs/heads/master | 2021-02-26T12:38:03.081027 | 2020-02-05T00:52:35 | 2020-02-05T21:26:53 | 245,526,018 | 0 | 0 | MIT | 2020-03-06T22:13:07 | 2020-03-06T22:13:06 | null | UTF-8 | Python | false | false | 7,472 | py | # -*- coding: utf-8 -*-
import functools
import json
from TM1py.Objects import Chore, ChoreTask
from TM1py.Services.ObjectService import ObjectService
def deactivate_activate(func):
""" Higher Order function to handle activation and deactivation of chores before updating them
:param func:
:return:
... | [
"MariusWirtz2@gmail.com"
] | MariusWirtz2@gmail.com |
bfe22330785926fc4d2c6cf528c9842dbfcbed22 | d21071464bef4f3fd51e554f280418d06975a77e | /leetcode/43. Multiply Strings.py | 747f0a44adaf0dd54d658f7622d6a2399503bed4 | [] | no_license | DeshErBojhaa/sports_programming | ec106dcc24e96231d447cdcac494d76a94868b2d | 96e086d4ee6169c0f83fff3819f38f32b8f17c98 | refs/heads/master | 2021-06-13T19:43:40.782021 | 2021-03-27T14:21:49 | 2021-03-27T14:21:49 | 164,201,394 | 1 | 0 | null | 2019-08-27T22:21:26 | 2019-01-05T09:39:41 | C++ | UTF-8 | Python | false | false | 1,373 | py | # 43. Multiply Strings
class Solution:
def multiply(self, num1: str, num2: str) -> str:
if num1 == '0' or num2 == '0':
return '0'
def str_sum(a, b):
if len(a) < len(b):
a, b = b, a
ans, carry = [], 0
b = '0' * (len(a) - len(b))... | [
"noreply@github.com"
] | DeshErBojhaa.noreply@github.com |
e855c443e9701c74c9c931a05f911ad23be542d4 | 182d36353a6e33dc1f27f2dc7c0ae95577941dca | /python大数据分析基础及实战/pandas_data_clean.py | 319213a7a6809af5f975e40bdc4f0d7f12be8953 | [] | no_license | tp-yan/PythonScript | d0da587162b1f621ed6852be758705690a6c9dce | 497c933217019046aca0d4258b174a13965348a7 | refs/heads/master | 2020-09-02T02:49:20.305732 | 2019-12-01T06:54:19 | 2019-12-01T06:54:19 | 219,115,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,629 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jun 7 13:27:15 2019
pandas数据处理: 1.数据清洗
处理缺失数据以及清除无意义的信息,如删除无关数据、重复数据,平滑噪声数据,处理缺失、异常值等
@author: tangpeng
"""
from pandas import Series,DataFrame, read_excel
data_source_path = r'C:\Users\tangpeng\Documents\my_data_source\big_data_source'
print("================数据清洗========... | [
"tp1084165470@gmail.com"
] | tp1084165470@gmail.com |
3af0aa51c68aff6d586fb8fffd88f501e710c456 | 8e69eee9b474587925e22413717eb82e4b024360 | /v1.0.0.test/toontown/parties/InviteVisual.py | 4634f5f246c01da12300794e50bed844fd0c9bac | [
"MIT"
] | permissive | TTOFFLINE-LEAK/ttoffline | afaef613c36dc3b70514ccee7030ba73c3b5045b | bb0e91704a755d34983e94288d50288e46b68380 | refs/heads/master | 2020-06-12T15:41:59.411795 | 2020-04-17T08:22:55 | 2020-04-17T08:22:55 | 194,348,185 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 6,527 | py | from datetime import datetime
import calendar
from direct.gui.DirectGui import DirectFrame, DirectLabel
from toontown.toonbase import TTLocalizer
from direct.showbase import PythonUtil
from direct.fsm.FSM import FSM
from toontown.parties import PartyGlobals
from toontown.parties import PartyUtils
from toontown.toonbase... | [
"s0mberdemise@protonmail.com"
] | s0mberdemise@protonmail.com |
2ec4319a8b318185cc3a485ae30115f3a6f43c4c | 36add5afc63ec09d63b8a877c29c17391938ee5c | /.history/utils_20201113150643.py | b1ea8873e12bf771558a629a51c7e7e9797d58a3 | [] | no_license | E-STAT/sentiment_api | e84eb04a9f21c7368ca20bdb97436ffea9f65f25 | bd9ee0d78d9eac8b6448b96c2560611a64f7b79d | refs/heads/master | 2023-01-12T13:06:14.654883 | 2020-11-20T11:30:22 | 2020-11-20T11:30:22 | 314,534,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,264 | py | import re
import string
import numpy as np
from nltk.corpus import stopwords
from nltk.stem import PorterStemmer
from nltk.tokenize import TweetTokenizer
def process_tweet(tweet):
"""Process tweet function.
Input:
tweet: a string containing a tweet
Output:
tweets_clean: a list of words co... | [
"owojori.tolulope@gmail.com"
] | owojori.tolulope@gmail.com |
a4899302ed7e52ae6969f56638557bd17b85fe82 | 0c1cf007f9d5d00ceefaf7be57e3f81c1c49fb11 | /lightning_asr/model/convolution.py | a50fc9319b9718886add9479c46efc446f3e0523 | [
"MIT"
] | permissive | sooftware/lightning-asr | f345f34dce132a6ccdb393b74c1f9bf0e1ccaac8 | 3b4d8222fad15c90a8c9b44ecacd67f309b34124 | refs/heads/main | 2023-04-30T17:46:21.737471 | 2021-05-19T11:56:33 | 2021-05-19T11:56:33 | 357,467,261 | 16 | 5 | MIT | 2021-05-12T14:22:05 | 2021-04-13T07:46:44 | Python | UTF-8 | Python | false | false | 7,518 | py | # MIT License
#
# Copyright (c) 2021 Soohwan Kim
#
# 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, ... | [
"sooftware@Soohwanui-MacBookPro.local"
] | sooftware@Soohwanui-MacBookPro.local |
70e6484e664647d51041b07444f98e59bc804062 | 4e44c4bbe274b0a8ccca274f29c4140dfad16d5e | /Push2_MIDI_Scripts/decompiled 10.1.2b5 scripts/Push2/master_track.py | 6945fed63946ff4e9f53dc50c482a386c8650f83 | [] | no_license | intergalacticfm/Push2_MIDI_Scripts | b48841e46b7a322f2673259d1b4131d2216f7db6 | a074e2337b2e5d2e5d2128777dd1424f35580ae1 | refs/heads/master | 2021-06-24T15:54:28.660376 | 2020-10-27T11:53:57 | 2020-10-27T11:53:57 | 137,673,221 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,809 | py | # uncompyle6 version 3.0.1
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.13 (default, Jan 19 2017, 14:48:08)
# [GCC 6.3.0 20170118]
# Embedded file name: c:\Jenkins\live\output\win_64_static\Release\python-bundle\MIDI Remote Scripts\Push2\master_track.py
# Compiled at: 2018-11-27 11:59:27
from __future__... | [
"ratsnake.cbs@gmail.com"
] | ratsnake.cbs@gmail.com |
7cfef3ad9a45a8220295e0ff7f9630081978c9af | a8d8d9343b9cccd03245946cce2b07d247177e63 | /Jupyter/work/bitbank/modules/scheduler/scheduler.py | e98d5ef7b44c584145c84a724211d9fed23c294e | [] | no_license | yamaguchi-milkcocholate/milkcocholate | 27dad24c6636e98948199dbfac0d5b39d6807529 | c8b013344472459b386890cacf4a39b39e9bb5a7 | refs/heads/master | 2020-03-28T16:04:45.734261 | 2019-04-06T04:52:15 | 2019-04-06T04:52:15 | 148,657,236 | 0 | 1 | null | 2019-04-06T04:52:16 | 2018-09-13T15:17:46 | Python | UTF-8 | Python | false | false | 1,692 | py | import sched
import datetime
import time
class Scheduler:
def __init__(self, runner, start, end, second):
"""
:param runner: object
:param start: tuple
:param end: tuple
:param second:
"""
self.runner = runner
self.start = datetime.datetime(start[0]... | [
"zuuuubo.tetsu@outlook.jp"
] | zuuuubo.tetsu@outlook.jp |
35ab6be71b35fa4128942fbd689562ea1203dcb3 | dd2147a468dea361d0cc86eef516106771b3f486 | /FlatTreeProducer/test/crabConfig_TT_DYJetsToLL_M-10to50_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8.py | 5355f6e5c5c6d01c7b08f6eb30eeda16385949e9 | [] | no_license | cirkovic/FlatTree | 2fe264d6d91ace3e09e0d9c648e7f2f61ad6150a | 6103cfc07a3fcf9fd3c8720e24b15b55e109af36 | refs/heads/master | 2020-07-30T02:05:29.234034 | 2016-12-07T09:34:52 | 2016-12-07T09:34:52 | 73,637,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = config()
#config.General.requestName = 'FCNC_MC_analysis_TTbar_Hct_1'
config.General.workArea = 'crab_projects'
#config.General.transferOutputs = True
#config.General.transferLogs = True
config.JobType.pluginName = 'Analysis'
config.JobType.p... | [
"predrag.cirkovic@cern.ch"
] | predrag.cirkovic@cern.ch |
579b1c0adfccd115f17b6c8ca30c0a740f1f152c | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/communication/azure-communication-networktraversal/samples/network_traversal_samples.py | e0a658cbd18786cc9af061a881171e1587388e80 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 3,611 | py | # coding: utf-8
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | catchsrinivas.noreply@github.com |
ea82efb595ff46fca54727748c1b999323c90b93 | a07fd8aca2d69ade2e388054dd2c1c9991232185 | /tests/test_tutorial/test_extra_models/test_tutorial005_py39.py | 7278e93c36ae40070c1e1c9c204a6b9fe699ffdc | [
"MIT"
] | permissive | vitalik/fastapi | 76b71bbbade19f12484c73dcbdca426197cc2db6 | 0276f5fd3aafb38dcbb430177a4685aeb58e5c69 | refs/heads/master | 2023-08-01T06:56:06.053824 | 2023-07-25T20:46:02 | 2023-07-25T20:46:02 | 315,668,229 | 1 | 0 | MIT | 2020-11-24T15:07:16 | 2020-11-24T15:07:15 | null | UTF-8 | Python | false | false | 1,668 | py | import pytest
from fastapi.testclient import TestClient
from ...utils import needs_py39
@pytest.fixture(name="client")
def get_client():
from docs_src.extra_models.tutorial005_py39 import app
client = TestClient(app)
return client
@needs_py39
def test_get_items(client: TestClient):
response = clie... | [
"noreply@github.com"
] | vitalik.noreply@github.com |
31a29ed36747fc61bbeb4a01851ced2c621d027f | 0d65e96ce358b7a6827734f6a5598f8a7ecf75e8 | /klokah/補充教材句型篇解析.py | cade41c9545c7c4ac6eb047e4cc7e3d86f0b49cd | [] | no_license | Taiwanese-Corpus/klokah_data_extract | 68f26cb8e851a6ea2e05995d02a7e4e01e4481b3 | 25cd44b68075b7650a8ec10c1c38eb16b3ca113d | refs/heads/master | 2021-01-18T12:45:46.420151 | 2015-11-04T13:03:32 | 2015-11-04T13:03:32 | 34,839,122 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,474 | py | from bs4 import BeautifulSoup
from os.path import dirname, join, abspath
class 補充教材句型篇解析:
專案目錄 = join(dirname(abspath(__file__)), '..')
def 解析全部檔案(self):
with open(join(self.專案目錄, '資料', 'dialectView.xml')) as 檔案:
for 方言 in BeautifulSoup(檔案.read(), 'xml').find_all('item'):
... | [
"ihcaoe@gmail.com"
] | ihcaoe@gmail.com |
960b6662c8bb4ab84cb3afa154fccf1b85150481 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/benanne_kaggle-ndsb/kaggle-ndsb-master/configurations/bagging_20_cp8.py | 076d49cce4675181859ea0dde853b7ff7e22974b | [] | 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 | 5,727 | py | import numpy as np
import theano
import theano.tensor as T
import lasagne as nn
import data
import load
import nn_plankton
import dihedral
import dihedral_fast
import tmp_dnn
import tta
validation_split_path = "splits/bagging_split_20.pkl"
patch_sizes = [(95, 95), (95, 95)]
augmentation_params = {
'zoom_ran... | [
"659338505@qq.com"
] | 659338505@qq.com |
3307b14e93f64351ac32c094b1588ce301c3bf9c | f0b549be6b291d98c20efc8a7b6322ae556f0068 | /data_structures/tree/binary_search_tree/binary_search_tree.py | 195990630439a798f46f1de4c5072e9efba16155 | [] | no_license | ehdgua01/Algorithms | 3607871d35521172e5f94c5dccb3b4e9e008fe61 | 107173ddf91f3588f10adbe294b64d680675a9ee | refs/heads/master | 2022-03-16T10:47:34.986441 | 2022-03-03T14:59:19 | 2022-03-03T15:28:44 | 249,157,085 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,148 | py | """
대용량의 데이터에 적합하지 않은 알고리즘이지만,
이진 탐색 트리 자료 구조를 학습하기 위한 알고리즘입니다.
"""
class Node(object):
def __init__(self, value) -> None:
self.left = None
self.right = None
self.parent = None
self.value = value
class BinarySearchTree(object):
def __init__(self) -> None:
self.root = ... | [
"ehdgua01@naver.com"
] | ehdgua01@naver.com |
bf650208e6b6746d1222cef1a8020c6fc0507a04 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/exclamations/_mans.py | 9abf726d7a0faffa49e8a16610dd007e86804acd | [
"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 | 231 | py |
from xai.brain.wordbase.exclamations._man import _MAN
#calss header
class _MANS(_MAN, ):
def __init__(self,):
_MAN.__init__(self)
self.name = "MANS"
self.specie = 'exclamations'
self.basic = "man"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
dae6a8f58e1e7f55370b2c531273fc77c51f3f32 | a62c437ed0beca4bb32cd085c7ba7bad80ce2022 | /urls.py | 1528960e812fc75085bdf164dade44bdc4fba14c | [
"MIT"
] | permissive | Lvxingpai/viae-gateway | d23303324e533bbe85f6209d3ca0eb67c9f5b07f | 5d88c3f0c7d1edd3e42da6bed6b866374ff7977b | refs/heads/master | 2021-01-10T16:58:05.079719 | 2016-01-15T06:23:01 | 2016-01-15T06:23:01 | 49,177,568 | 1 | 0 | null | 2016-01-10T08:50:08 | 2016-01-07T03:09:39 | Python | UTF-8 | Python | false | false | 254 | py | from django.conf.urls import url
from app.views import tasks, pong
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = [
url(r'ping/?$', pong),
url(r'^tasks/?$', tasks)
]
| [
"haizi.zh@gmail.com"
] | haizi.zh@gmail.com |
d9c5c7a4043db90471483a4129edf0208f509295 | c97a3396b9a574a8b43240a3a9d139be5d8dd204 | /config/setting.py | 2749adf6382f19add77cf0b560943e49549760ff | [] | no_license | cs4224485/ATM | 524f69335b8d0ca3cf910b9af36737370ab23d6c | c6ce9be03b55390f20f2bc763ade3fe8998dec9e | refs/heads/master | 2020-03-27T06:23:08.788653 | 2018-08-26T02:11:14 | 2018-08-26T02:11:14 | 146,101,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | # Author: harry.cai
# DATE: 2018/1/31
import os
import logging
BASEDIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
USER_DB_PATH = os.path.join(BASEDIR, 'account', 'userdb')
ADMIN_DB_PATH = os.path.join(BASEDIR, 'account', 'admindb')
LOGGER_DB_PATH = os.path.join(BASEDIR, 'log', 'logdb')
# 日志类型
LogTy... | [
"414804000@qq.com"
] | 414804000@qq.com |
dae6836cf32d21b82c2ab6ec8088998e119643f4 | 60ec1bf5342eca3d97629dcdf974f7731d7be12b | /streamblocks/migrations/0002_indexedparagraph_height.py | 99cb5c1e1beb6fc4e73c255c435ba02a862c3105 | [
"BSD-2-Clause"
] | permissive | andywar65/rpnew_base | 8eef1b71562a00889d170b1668faa487a753cb05 | 9281cb16783313a1cd23b1394f2bad485ac1b33d | refs/heads/master | 2020-09-07T15:06:23.205802 | 2020-03-09T17:24:13 | 2020-03-09T17:24:13 | 220,818,439 | 1 | 0 | BSD-2-Clause | 2020-02-16T12:30:04 | 2019-11-10T16:38:52 | Python | UTF-8 | Python | false | false | 468 | py | # Generated by Django 3.0.2 on 2020-02-07 15:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('streamblocks', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='indexedparagraph',
name='height',
... | [
"andy.war1965@gmail.com"
] | andy.war1965@gmail.com |
90dcd5b53232078c0c9160884ae5f2822bd1bd20 | 5241641cba4a6cf3b87284b72dcc5b6e70504f32 | /events/views.py | 842acbc90dfabe8acfe9851c847e7b8e158243a9 | [] | no_license | sdnnet3/coocooclub | a11505b2559b199164f2d881fa37a65cf9767aac | 5b1708194386048f62aa8222ef619f854758c556 | refs/heads/master | 2020-06-11T15:37:01.437796 | 2019-08-26T05:37:48 | 2019-08-26T05:37:48 | 194,009,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | from django.http import HttpResponse
from django.shortcuts import render
from . models import event
def eventPage(request):
eventList = event.objects.order_by('-date')
context = {'eventList':eventList}
return render(request, 'events/twocolumn1.html', context) | [
"clayton.hutton@gmail.com"
] | clayton.hutton@gmail.com |
54f5da8cad0ea0623c6b009e440ad3adf8dcbe11 | 1577e1cf4e89584a125cffb855ca50a9654c6d55 | /pyobjc/pyobjc/pyobjc-framework-Cocoa-2.5.1/PyObjCTest/test_nspathutilties.py | 081c53662d09d0758abb0d4e48365801798ec651 | [
"MIT"
] | permissive | apple-open-source/macos | a4188b5c2ef113d90281d03cd1b14e5ee52ebffb | 2d2b15f13487673de33297e49f00ef94af743a9a | refs/heads/master | 2023-08-01T11:03:26.870408 | 2023-03-27T00:00:00 | 2023-03-27T00:00:00 | 180,595,052 | 124 | 24 | null | 2022-12-27T14:54:09 | 2019-04-10T14:06:23 | null | UTF-8 | Python | false | false | 3,966 | py | from PyObjCTools.TestSupport import *
from objc import *
from Foundation import *
try:
unicode
except NameError:
unicode = str
class TestNSPathUtilities(TestCase):
def testSearchPaths(self):
self.assert_(
NSSearchPathForDirectoriesInDomains( NSAllLibrariesDirectory, NSAllDomainsMa... | [
"opensource@apple.com"
] | opensource@apple.com |
85886a94f7c1a38d4d18359f4ddc35d5a4e21590 | 95368a0ed3e5d50ff3b8a435ecab9e8332772ec0 | /fluent_utils/softdeps/comments.py | fda3da49895771ec2e1e48311a8e0c9e3f9f9262 | [
"Apache-2.0"
] | permissive | seroy/django-fluent-utils | 7ed4a850f5651d12f68b55b4588d1d5f631bc67d | dfd4b65a27830876dd71f9d7a20a51c889a0468b | refs/heads/master | 2021-05-10T10:24:45.711558 | 2017-11-21T10:14:27 | 2017-11-21T10:15:47 | 118,381,508 | 0 | 0 | null | 2018-01-21T23:00:58 | 2018-01-21T23:00:58 | null | UTF-8 | Python | false | false | 7,390 | py | """
Optional integration with django-contrib-comments
This avoids loading django_comments or django.contrib.comments unless it's installed.
All functions even work without having the app installed,
and return stub or dummy values so all code works as expected.
"""
import django
from django.conf import settings
from dj... | [
"vdboor@edoburu.nl"
] | vdboor@edoburu.nl |
0a1a20b8bc8d9ad824d050a5ba78fdd7a944c3b1 | 8454441f899c3beb9fcea26cffc2f4c3cf75ff6a | /common/code/snippets/parasites/tweetable-polyglot-png-main/pack.py | cd7f50bd6f7027a29ee8897d091d8db24a8d38ad | [
"MIT"
] | permissive | nevesnunes/env | 4a837e8fcf4a6a597992103e0a0c3d0db93e1c78 | f2cd7d884d46275a2fcb206eeeac5a8e176b12af | refs/heads/master | 2023-08-22T15:49:35.897161 | 2023-08-15T13:51:08 | 2023-08-15T13:51:08 | 199,400,869 | 9 | 6 | MIT | 2023-06-22T10:59:51 | 2019-07-29T07:24:47 | Python | UTF-8 | Python | false | false | 1,941 | py | import zlib
import sys
PNG_MAGIC = b"\x89PNG\r\n\x1a\n"
if len(sys.argv) != 4:
print(f"USAGE: {sys.argv[0]} cover.png content.bin output.png")
# this function is gross
def fixup_zip(data, start_offset):
end_central_dir_offset = data.rindex(b"PK\x05\x06")
cdent_count = int.from_bytes(data[end_central_dir_offset+10... | [
"9061071+nevesnunes@users.noreply.github.com"
] | 9061071+nevesnunes@users.noreply.github.com |
c1fbbf0d68a638d41feb44374be008c294de2af1 | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/kid_part_day/year_air/netflix_number/DNS/man_money_eye/morning.py | 3cfcdaf46151c709896bd057eb2685a9b783a373 | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,535 | py | export async function getWebTranslation(text, sourceLanguage, targetLanguage) {
let https = require ('https');
let host = 'api.cognitive.microsofttranslator.com';
let path = '/translate?api-version=3.0';
let params = '&from=' + sourceLanguage + '&to=' + targetLanguage;
let content = JSON.stringify ([{'Text' :... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
4d81faf8a6f057dae590eb378f38613b1f2d8f3a | 6e17999700d87263f3b2d146fc8b0502b31094cc | /setup.py | 86bed86eabe2291fdf92ca55990832adca2ef179 | [] | no_license | libargutxi/collective.newsticker | 9c85f75de24ad5be578c485b18f48d832b3ba402 | 11e596a5379608b920e20a1f231e6e29722457c4 | refs/heads/master | 2020-12-25T11:52:16.705745 | 2012-12-11T08:07:21 | 2012-12-11T08:07:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,938 | py | # -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
version = '1.0rc2.dev0'
long_description = open("README.txt").read() + "\n" + \
open(os.path.join("docs", "INSTALL.txt")).read() + "\n" + \
open(os.path.join("docs", "CREDITS.txt")).read() + "\n" + \
... | [
"hector.velarde@gmail.com"
] | hector.velarde@gmail.com |
40c3139932cc04676b0b8dc6ab3baa716e931bc9 | 4e8cab639ddfa3e791b5b3a08aa491fb92c1ecaa | /Python_PostgresSQL/Python Refresher/errors_in_python.py | 7db3aaa46306a070397b8a7f319c0b86d4ef62ca | [] | no_license | LesediSekakatlela/SQL_projects | 49b91bebdf6f9b1176c40c3752232ab8d3d091dd | 9c78fc027dd137ef96446ea0946343293f3be007 | refs/heads/main | 2023-07-13T02:41:41.261558 | 2021-08-20T09:03:23 | 2021-08-20T09:03:23 | 386,646,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | def divide(dividend, divisor):
if divisor == 0:
raise ZeroDivisionError("Divisor cannot be 0.")
return dividend / divisor
students = [
{"name": "Bob", "grades": [75,90]},
{"name": "Rolf", "grades": [50]},
{"name": "Jen", "grades": [100,90]},
]
print("Welcom to the average grade program... | [
"leseditumelo32@gmail.com"
] | leseditumelo32@gmail.com |
7010d13dee74c17cf18df227a66134c0f8afed28 | 39f2ff90808f68c2d88778a1d60ccf27c1d18121 | /leetcode/python/258.py | fba101b1fd8d04e081c5832730d8c2acf0ceea0c | [] | no_license | JushuangQiao/MyCodes | f4912d997fce8c14f5357e497fe52280e8bdaddf | 2fd6842784ef8e56e4e5f742ce1313d17130c0d9 | refs/heads/master | 2021-01-10T23:53:13.346573 | 2018-05-12T11:57:03 | 2018-05-12T11:57:03 | 70,792,457 | 0 | 0 | null | 2017-04-19T10:31:55 | 2016-10-13T09:47:30 | Python | UTF-8 | Python | false | false | 330 | py | class Solution(object):
def addDigits(self, num):
"""
:type num: int
:rtype: int
"""
s = str(num)
while len(s) != 1:
s = str(sum([int(i) for i in s]))
return int(s)
'''if num == 0:
return 0
return num % 9 if num % 9 !=0 ... | [
"747848783@qq.com"
] | 747848783@qq.com |
ea712da6c3c5368cbe62fe07cdf80b5d4dfe2388 | 9c894d56f153156b82bc4bbde2db09fb04ec58cf | /17/mc/ExoDiBosonResonances/EDBRTreeMaker/test/c23000.py | ec854653b2df327b7979e936336071e57cb3f4fb | [] | no_license | gqlcms/run2_ntuple | 023bb97238980e3d4e7b8c112bc11e63658f1844 | 196c90facf042a64fddfef1e1c69681ccb9ab71c | refs/heads/master | 2020-08-04T09:01:43.466814 | 2019-10-01T11:40:36 | 2019-10-01T11:40:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,400 | py | from WMCore.Configuration import Configuration
config = Configuration()
config.section_("General")
config.General.requestName = 'c2_3000'
config.General.transferLogs = True
config.section_("JobType")
config.JobType.pluginName='Analysis'
config.JobType.sendExternalFolder=True# = 'Analysis'
config.JobType.inputFiles ... | [
"c.chen@cern.ch"
] | c.chen@cern.ch |
3c30e065e142dc6f48ba905cc61fc78f98dfea69 | 5f4d82c3a6b89b75da63893b77892f9e252b7b06 | /first_year/combinatorial_algorithms/Labs/first/reverse_order/sorter_binary_insertions.py | 22984bc44d908dfb7fa01398d68f5be183655f44 | [] | no_license | jackiejohn/ifmo | 180813cbde45e3e4842452c9a57b5d54bbd207ce | c5ad17de8bfc6baa3c6166220849c564e1071e4b | refs/heads/master | 2021-06-02T06:58:47.726339 | 2017-12-28T16:46:19 | 2017-12-28T16:46:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | import time
f = open('data1024.txt')
j=0
k = []
numberofelements = int(f.readline())
while j<numberofelements:
i = int(f.readline())
k.append(i)
j=j+1
tit1=time.time()
for i in range(1,len(k)):
if k[i-1]>k[i]:
left = 0
right = i - 1
while True:
mid ... | [
"zeionara@gmail.com"
] | zeionara@gmail.com |
0152c1fa815851d72ad325f7a22d2e29930e2d13 | 545bdb267ecc33ead36fadbbb94b0b9584a0d281 | /train_test/model.py | cd9663d35505c065df0fc99bcf241339af590da5 | [] | no_license | Sardhendu/DeepFaceRecognition | 20fb19fccd330505953a7a8796152caff224e8ae | b360a6df8c11f6ddcb5fd58aa55e2b70bb1df23d | refs/heads/master | 2021-09-10T15:08:39.868773 | 2018-03-28T08:28:12 | 2018-03-28T08:28:12 | 112,471,536 | 21 | 7 | null | null | null | null | UTF-8 | Python | false | false | 3,848 | py | from __future__ import division, print_function, absolute_import
from nn.loss import loss
from nn.network import *
from config import myNet, vars
import tensorflow as tf
def trainModel_FT(imgShape, params, init_wght_type='random'):
inpTensor = tf.placeholder(dtype=tf.float32, shape=[None, imgShape[0], imgShape[1]... | [
"sardhendumishra@gmail.com"
] | sardhendumishra@gmail.com |
a00d423fc4ebad8852831d27ef7fe2ef797459ae | cad9c13ad5864317d7687b44f39db42a402f36f0 | /venv/Scripts/soup-script.py | 0e1a7ceadb25db4f357a25515879b4e87932b898 | [] | no_license | handaeho/lab_python | 12b686eb0d57358509f2d0cd607064deced5b25d | da068ea62682ffa70c7d23dde4ef132c49a81364 | refs/heads/master | 2020-11-26T08:22:27.656109 | 2020-04-13T02:28:47 | 2020-04-13T02:28:47 | 229,013,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | #!C:\dev\lab-python\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'soup==0.1.0','console_scripts','soup'
__requires__ = 'soup==0.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"mrdh94@naver.com"
] | mrdh94@naver.com |
16b8749ac5d03d7fa63239a1514a756a3a9d7c18 | 727e50c524c229bc7736a757fbc51cc5939b7e10 | /peering/migrations/0034_auto_20190308_1954.py | 03ed8a1d6237d1de1c86a9282d59370a63321db8 | [
"Apache-2.0"
] | permissive | netravnen/peering-manager | 71fbe1801fe6e063ac1b4375cdb9fe3c8c3feee5 | c2a5149b3cb197291e0c9c10040738ce5fb29f02 | refs/heads/main | 2023-08-17T02:56:43.799975 | 2023-07-04T18:23:15 | 2023-07-04T18:23:15 | 149,284,135 | 0 | 0 | Apache-2.0 | 2023-09-11T08:18:27 | 2018-09-18T12:24:28 | Python | UTF-8 | Python | false | false | 711 | py | # Generated by Django 2.1.7 on 2019-03-08 18:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("peering", "0033_router_encrypt_passwords")]
operations = [
migrations.AlterModelOptions(
name="routingpolicy",
options={
... | [
"guillaume@mazoyer.eu"
] | guillaume@mazoyer.eu |
2f478ff41ee28ca4a2b766dd50ae38fe69fbc4a1 | b9a23d1947f5f6328ca13c7e652499173f64da47 | /s_081/s_081_plotter.pyde | 9d43ff8402374529d9c685ad205a498e69d768ab | [] | no_license | berinhard/sketches | 96414a14ec40ca1281dcd8b2fec2c50db1d76e9a | f0e4be211397f205bcc6bd2c8b053b920a26bb62 | refs/heads/master | 2021-06-09T07:49:59.220785 | 2020-12-08T04:14:55 | 2020-12-08T04:23:43 | 137,092,663 | 41 | 15 | null | 2021-03-20T00:41:39 | 2018-06-12T15:34:49 | JavaScript | UTF-8 | Python | false | false | 2,108 | pyde | # Author: Berin
# Sketches repo: https://github.com/berinhard/sketches
from random import choice
from save_frames import save_video_frames
add_library('svg')
WHITE = color(235, 235, 235)
WHITE_WITH_ALPHA = color(235, 235, 235, 70)
BLACK = color(27, 27, 27)
RED = color(181, 32, 10, 7)
GOLDEN = color(218, 185, 32, 7)
... | [
"bernardoxhc@gmail.com"
] | bernardoxhc@gmail.com |
526c71bd6687a28464391300348158e387bdff04 | 9d91b256f737b90d397d7a9306ba0c5874027de1 | /tests/duration/test_add_sub.py | 92d97c70022b77b875b60c210a8b234536f30aa2 | [
"MIT"
] | permissive | devcode1981/pendulum | bde8e60526048c346fa4d420bf10fa338310efe1 | af128be06f6b42f8127ba906e418961396919ea7 | refs/heads/master | 2023-04-07T08:07:46.284600 | 2018-11-25T03:09:34 | 2018-11-25T03:09:34 | 158,993,326 | 1 | 0 | MIT | 2023-04-04T01:06:21 | 2018-11-25T03:10:25 | Python | UTF-8 | Python | false | false | 1,162 | py | import pendulum
from datetime import timedelta
from ..conftest import assert_duration
def test_add_interval():
p1 = pendulum.duration(days=23, seconds=32)
p2 = pendulum.duration(days=12, seconds=30)
p = p1 + p2
assert_duration(p, 0, 0, 5, 0, 0, 1, 2)
def test_add_timedelta():
p1 = pendulum.du... | [
"sebastien@eustace.io"
] | sebastien@eustace.io |
af34211344ee131cb660ec7830500c7c4adce6fb | fee1f9ec7be6049a27396ca24fb12287d36f66af | /19100101/echojce/d6_exercise_stats_word.py | 5829b67c7d96bc59958eca82d0447526895c4da3 | [] | no_license | zhoujie454650/selfteaching-python-camp | 4a85c7a792157af84c1ecfc3468c1401f946a48a | 5bb6a0c35adb3e26fee0ac68f29e12ac11a13710 | refs/heads/master | 2020-05-01T09:49:06.986010 | 2019-05-14T12:32:50 | 2019-05-14T12:32:50 | 177,408,611 | 0 | 0 | null | 2019-03-24T11:59:04 | 2019-03-24T11:59:04 | null | UTF-8 | Python | false | false | 3,128 | py | # this is d6 excercise for defining functions
# date : 2019.3.23
# author by : qiming
# 示例字符串
string1 = '''
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is bette... | [
"6396023+realcaiying@users.noreply.github.com"
] | 6396023+realcaiying@users.noreply.github.com |
a70f46a6bea169b6595b64c976d186f17c1cc171 | b47abf1a1e7daf4320c2c3a35d963ac6f7663702 | /mvpa/atlases/__init__.py | f09b72cb2af45c503c104bdd62bf243a69891440 | [
"MIT"
] | permissive | gorlins/PyMVPA | d9690399b24ae7d760735b4aa858e08912c9235d | 2a8fcaa57457c8994455144e9e69494d167204c4 | refs/heads/master | 2021-01-16T18:08:43.289333 | 2009-09-05T15:06:35 | 2009-09-05T15:06:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the PyMVPA package for the
# copyright and license terms.
#
### ### ### ### ###... | [
"debian@onerussian.com"
] | debian@onerussian.com |
d545c9d0153fe73fb3024225c493f6309795b2bb | 11c036911cf893325199d9e9a91a11cd1dca7c90 | /bst_iterator/solution.py | b4cc675a147cbbf30c4d9a1c0e14e5e271338b95 | [] | no_license | arpiagar/HackerEarth | 34f817f69e94d88657c1d8991a55aca302cdc890 | 4a94f1b11a353ab6b2837a1ac77bfbd7c91f91d2 | refs/heads/master | 2021-07-18T14:23:05.124943 | 2021-02-09T21:58:12 | 2021-02-09T21:58:12 | 19,204,412 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,192 | py | #https://leetcode.com/problems/binary-search-tree-iterator/submissions/
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
# 7 3
class BSTIterator:
def __init__(self, root: TreeNode):
self.node_li... | [
"arpit.agarwal@booking.com"
] | arpit.agarwal@booking.com |
91f420a5007fb80dea0f2198aa6fae2d6e6c238f | c5b7e98aa295b3bd0596e7fca1028e1e9bbba122 | /ARK.py | c4bf5b8be6a55dd47b4be6078c2115d417f9f47f | [] | no_license | sunomon/100at6low10 | a3439462fd8c2e92eb0b94e634cdf7c2c92f93e3 | d062161e542fe6d6168204f5a45ae6da62b6f589 | refs/heads/main | 2023-06-11T18:31:11.533914 | 2021-07-06T09:07:46 | 2021-07-06T09:07:46 | 382,562,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,377 | py | import time
import pyupbit
import datetime
import schedule
from fbprophet import Prophet
access = "PgXnWWPxxv88s7z2PSnz4aoqaYL0gxkRxReK0WDK"
secret = "wgCfiEmQVH76s9sblwFKQsOKOp91t2ic3XAHuNsK"
def get_target1_price(ticker, k):
df = pyupbit.get_ohlcv(ticker, interval="day", count=2)
target1_price = df.iloc[0][... | [
"noreply@github.com"
] | sunomon.noreply@github.com |
2c43299ecc34ec23afb270c90846c746c8306059 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02761/s462447361.py | 69384e889176bfda05dabb08fc5eb2678077220e | [] | 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 | 674 | py | def resolve():
N, M = list(map(int, input().split()))
SC = [list(map(int, input().split())) for _ in range(M)]
value = [None for _ in range(N)]
for s, c in SC:
if not (value[s-1] is None or value[s-1] == c):
print(-1)
return
value[s-1] = c
for i in range(N):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2aa898f0fc19d777a0f1a0ab64f2ad7965b9298b | bcbc5fbdaf73146c1473f925d8d3303ef9d1256f | /tests/logic_adapter_tests/test_data_cache.py | 007497cde3d393ad5e93ca65c3daac80d9cfd547 | [
"BSD-3-Clause"
] | permissive | korymath/ChatterBot | b1a3b2700d4eefbbc5a3460e174dd9d539131902 | b517e696e016b6c2fae4b5326029b16d45ee6471 | refs/heads/master | 2021-01-15T09:27:41.970135 | 2016-04-08T05:21:35 | 2016-04-08T05:21:35 | 55,752,170 | 1 | 0 | null | 2016-04-08T05:18:31 | 2016-04-08T05:18:31 | null | UTF-8 | Python | false | false | 2,270 | py | from unittest import TestCase
from chatterbot import ChatBot
from chatterbot.adapters.logic import LogicAdapter
from chatterbot.conversation import Statement
import os
class DummyMutatorLogicAdapter(LogicAdapter):
"""
This is a dummy class designed to modify a
the resulting statement before it is returned... | [
"gunthercx@gmail.com"
] | gunthercx@gmail.com |
709e78c2b8bc7044a4039b9309ee131eb6a4c2bf | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/2561.py | 5c5cf379a6e3f42b99e7e7d7cedcccfa7f4e7302 | [] | 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 | 848 | py | def getint ():
return int(raw_input())
def printCase(c, s):
print "Case #" + str(c) + ": " + str(s)
def intersection (list1, list2):
first = set (list1)
second = set (list2)
return list(first.intersection(second))
def getPossibleCards (rows1, choice1, rows2, choice2):
firstpos = rows1[(choice1 - 1) * 4 : (choi... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
0f8f8c2a132dc4b5f32f59e3caeec2ca41fa62fd | 48894ae68f0234e263d325470178d67ab313c73e | /pm/pmwriter/utils.py | 3d645751e738fe862b42f2f2f4e85fd3d1f828ce | [
"BSD-3-Clause"
] | permissive | DreamerDDL/noc | 7f949f55bb2c02c15ac2cc46bc62d957aee43a86 | 2ab0ab7718bb7116da2c3953efd466757e11d9ce | refs/heads/master | 2021-05-10T18:22:53.678588 | 2015-06-29T12:28:20 | 2015-06-29T12:28:20 | 118,628,133 | 0 | 0 | null | 2018-01-23T15:19:51 | 2018-01-23T15:19:51 | null | UTF-8 | Python | false | false | 2,347 | py | ## -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## Various utilities
##----------------------------------------------------------------------
## Copyright (C) 2007-2014 The NOC Project
## See LICENSE for details
##--------------------------------------------------------... | [
"dv@nocproject.org"
] | dv@nocproject.org |
e5981c44bf76ad309ffd21b778e24f0e1ed246a9 | ec00584ab288267a7cf46c5cd4f76bbec1c70a6b | /interview-preparation/main_.py | 278fa19f1768df79f357dc82cd5c91b575a8ce5a | [] | no_license | rahuldbhadange/Python | b4cc806ff23953389c9507f43d817b3815260e19 | 7e162117f1acc12537c7eeb36d6983d804122ff3 | refs/heads/master | 2021-06-23T05:04:20.053777 | 2020-01-28T10:34:28 | 2020-01-28T10:34:28 | 217,307,612 | 0 | 0 | null | 2021-06-10T22:44:11 | 2019-10-24T13:35:42 | Python | UTF-8 | Python | false | false | 7,787 | py | #####################################
# Breadth First Search / Flood fill
# Davis MT
# 28.01.2018
#####################################
import turtle # import turtle library
import time
import sys
from collections import deque
wn = turtle.Screen() # define the turtle screen
wn.bgcolor... | [
"46024570+rahuldbhadange@users.noreply.github.com"
] | 46024570+rahuldbhadange@users.noreply.github.com |
4827d7f523d7fa49654a251a821cafa30ee7bb77 | 820acfd783cc9752c51e2899b87994bb3044a895 | /tests/commands/source/test_xml.py | 930330c424cae5be04b493044dbc4ede77ddc33e | [] | no_license | trimailov/spinta | ea495a9d4ebfbd8c13c644691824edf967c90091 | c242ea8013a048a5cfd2bfc4dd8687d37bfc3ef7 | refs/heads/master | 2020-05-03T21:56:25.040555 | 2019-04-09T11:19:43 | 2019-04-09T11:19:43 | 178,834,328 | 0 | 0 | null | 2019-04-01T09:54:27 | 2019-04-01T09:54:27 | null | UTF-8 | Python | false | false | 1,009 | py | import operator
import pathlib
from responses import GET
from spinta.utils.itertools import consume
def test_xml(store, responses):
responses.add(
GET, 'http://example.com/data.xml',
status=200, content_type='application/xml; charset=utf-8',
body=(pathlib.Path(__file__).parents[2] / 'dat... | [
"sirexas@gmail.com"
] | sirexas@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.