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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11c8958f9396742ac4b16d6c114d81c301a68918 | fbddd92b0eafcc79a24c05cbfe5e688174a5be27 | /day3/test12.py | 39c9d7c2432fe59d7e819419aad614e8a1b25880 | [] | no_license | priyankakumbha/python | 968902b82811c31020b6ad2d853fee8ef64ec1a5 | ae428d56e4afffa2fc16a8e03e99eeb6bf560037 | refs/heads/master | 2022-08-26T13:31:26.874275 | 2020-05-22T12:47:22 | 2020-05-22T12:47:22 | 266,107,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | if False:
print('if1 begin')
elif False:
print('elif begin')
print('end of program')
| [
"priyankakumbhar789@gmail.com"
] | priyankakumbhar789@gmail.com |
1e82bb07d3892933aa9f580b0e62ec13e781beb6 | 22d7d575737eb7d864926993163f73d0bfebd6bc | /programmers/level2/순위검색.py | dad1c07219f4a914dd6624fef568047f9320b7e9 | [] | no_license | taehyungz/Algorithm | 6c624460716424115d3c38587f176eeb0a4e00d9 | 87c02dd047152a5bb4fafcf51be53c329ad563dc | refs/heads/master | 2022-06-26T13:23:50.969544 | 2022-06-23T12:29:04 | 2022-06-23T12:29:04 | 202,279,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | from itertools import combinations
import collections
from bisect import *
def solution(info, query):
answer = []
people = collections.defaultdict(list)
for person in info:
person_info = person.split()
person_strs = person_info[:-1]
wage = int(person_info[-1])
people[''.join... | [
"thkthk97@naver.com"
] | thkthk97@naver.com |
e56d912a217bad287bd62093c917e149efa27d9f | 0eb5c5a8324200affb0ddc076c1115e802415595 | /美团/hotel.py | a1411ae57defe7477c453edb5ef83723534cceb3 | [] | no_license | jiangsy163/pythonProject | 5b7986fb5e89943fc949301c22d03e97bc34b41d | b27f0a5a09ca36063fb45d61ca6ebd06a494ea67 | refs/heads/master | 2023-05-12T03:42:45.885487 | 2021-06-04T09:21:53 | 2021-06-04T09:21:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,619 | py | """
author:张鑫
date:2021/5/12 14:30
"""
import json
import random
import time
import pymongo
import requests
# import pymongo
import schedule
from fake_useragent import UserAgent
headers = {
"User-Agent": UserAgent().random,
}
#
# hotel_list = [
# {
#
# 'poiId': 75548,
# 'X-FOR-WITH': 'x/9q... | [
"1247371788@qq.com"
] | 1247371788@qq.com |
2f6fbbe1821af45566ad757bea8809b394035fa9 | c7a6f8ed434c86b4cdae9c6144b9dd557e594f78 | /ECE364/.PyCharm40/system/python_stubs/348993582/nss/nss/__init__.py | 45c9d3f59626510337f870f1e5999041539a6bb3 | [] | no_license | ArbalestV/Purdue-Coursework | 75d979bbe72106975812b1d46b7d854e16e8e15e | ee7f86145edb41c17aefcd442fa42353a9e1b5d1 | refs/heads/master | 2020-08-29T05:27:52.342264 | 2018-04-03T17:59:01 | 2018-04-03T17:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85,627 | py | # encoding: utf-8
# module nss.nss
# from /usr/lib64/python2.6/site-packages/nss/nss.so
# by generator 1.136
""" This module implements the NSS functions """
# no imports
# Variables with simple values
AsDottedDecimal = 9
AsEnum = 5
AsEnumDescription = 7
AsEnumName = 6
AsIndex = 8
AsLabeledString = 4
AsObject = 0
AsS... | [
"pkalita@princeton.edu"
] | pkalita@princeton.edu |
8a733a8f5dad298b7398c3bfd2c77b3d3aaef9c9 | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/virtual-wan/azext_vwan/vendored_sdks/v2020_05_01/v2020_05_01/aio/operations/_network_watchers_operations.py | be53b3760e1ebc7fc1906132d816e0b86f9aa4f4 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 104,916 | 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"
] | Azure.noreply@github.com |
d6891e0277a475c88b44289a0aa0412e9a07c473 | ce661026009d622db924080d85ab529f1cae6b60 | /projecteuler.net/wip,74.py | 224eff7255f3ca4eefe694ca10860e3677307103 | [] | no_license | predavlad/projecteuler | d54f5d85ab0133b19b54b4168990b90f09a0184c | 58e1637733bb7e01e44bfac707353ecfe84d9b19 | refs/heads/master | 2021-01-23T15:29:26.257019 | 2019-02-09T10:11:23 | 2019-02-09T10:11:23 | 12,952,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,554 | py | import time
# 170 seconds, although it can be improved if we count all permutations of a number at the same time, instead of
# going through everything
start_time = time.time()
fact_cache = {}
dig_fact_cache = {}
loop_cache = {}
def fact(n):
global fact_cache
if n in [0, 1]:
return 1
if n not in ... | [
"preda.vlad@yahoo.com"
] | preda.vlad@yahoo.com |
812662b6d90892d254a75762deed638a32163b4f | ffadf9541d01cf9af20c419759d48b1eb01bfd35 | /pachong/PCdemo1/day16/数据格式转存.py | 346d8cb0bafaacbd1e96a7fe95ccb5ff16e63996 | [] | no_license | 1987617587/lsh_py | b1bb1016eaafcba03bbc4a5310c1db04ae227af4 | 80eb5175cd0e5b3c6c5e2ebb906bb78d9a8f9e0d | refs/heads/master | 2021-01-02T05:14:31.330287 | 2020-06-20T05:18:23 | 2020-06-20T05:18:23 | 239,498,994 | 2 | 1 | null | 2020-06-07T23:09:56 | 2020-02-10T11:46:47 | Python | UTF-8 | Python | false | false | 3,073 | py | # author:lsh
# datetime:2020/4/14 14:39
'''
.::::. _oo0oo_
.::::::::. o8888888o
::::::::::: 8... | [
"1987617587@qq.com"
] | 1987617587@qq.com |
d8e589c781a6a06fefb67ae1e521c503eb350e17 | 9de64f94ffe3b57de373bebdd5344d0d4e725a9c | /lib/models/__init__.py | 2c735037871bae9eb7ff1fda8bc6d6c6e4333962 | [
"MIT"
] | permissive | CoinCheung/BiSeNet | 1196ed0463d067e8b145b716aae39cf1963f4ffb | f2b901599752ce50656d2e50908acecd06f7eb47 | refs/heads/master | 2023-02-17T08:45:51.374875 | 2023-02-05T03:08:32 | 2023-02-05T03:08:32 | 159,607,436 | 1,312 | 322 | MIT | 2023-02-05T03:08:33 | 2018-11-29T04:27:51 | Python | UTF-8 | Python | false | false | 146 | py |
from .bisenetv1 import BiSeNetV1
from .bisenetv2 import BiSeNetV2
model_factory = {
'bisenetv1': BiSeNetV1,
'bisenetv2': BiSeNetV2,
}
| [
"867153576@qq.com"
] | 867153576@qq.com |
97f074169dcb14b39a6e9f309e209e8ebe7d2140 | e1f5cf7055e54f24f4bea5b1232f337fcbcae63c | /regex/solution/regex_html.py | 410dd5e6e7c177e7143be8c9fcf65f1daa3c06ab | [
"MIT"
] | permissive | revirevy/book-python | fcd64d44840b68e528422de785383f9d4a81fb98 | 9da7bfd43117f33530e708e889c26152dc8c7a25 | refs/heads/master | 2020-04-01T05:13:50.394724 | 2018-10-13T14:58:19 | 2018-10-13T14:58:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,459 | py | import re
TEXT = """
<html><body><bgsound assignment="jfktalk.wav" loop="2"><p></p><center><h3>John F. Kennedy Moon Speech - Rice Stadium</h3><img assignment="jfkrice.jpg"><h3>September 12, 1962</h3></center><p></p><hr><p></p><center>Movie clips of JFK speaking at Rice University: <a href="JFKatRice.mov">(.mov)</a> or... | [
"matt@astrotech.io"
] | matt@astrotech.io |
91d121b6b72945f63cdeb6e0e53dff0100fbec44 | 4cc285b0c585241ff4404087e6fbb901195639be | /NeuralNetworkNumbers/venv/Lib/site-packages/sklearn/datasets/tests/test_covtype.py | bd775d75563d31b490373811c09ca4abba681004 | [] | no_license | strazhg/NeuralNetworksPython | 815542f4ddbb86e918e657f783158f8c078de514 | 15038e44a5a6c342336c119cdd2abdeffd84b5b1 | refs/heads/main | 2023-04-16T18:51:29.602644 | 2021-04-27T14:46:55 | 2021-04-27T14:46:55 | 361,944,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:f48c1479cc19ae778036630c6d97033d44099090499f8db51ddd327f13e7f9fd
size 1677
| [
"golubstrazh@gmail.com"
] | golubstrazh@gmail.com |
ece5d3da37a3165a695a7b77b2fc0daaf58c442c | de9b8b7192a0a81e9249823bb2b86f0b7e452863 | /.history/main_20171106230505.py | 0f73c604abb8fcbe3b81c435a1da27dfbf8b824e | [
"MIT"
] | permissive | reecebenson/uwe-dadsa-tennis-a | f5eaeb1b96d4e61f29279514e68eeea8ad6533db | d0763f819b300fcd0ce27041f5bc4ef0519c00bf | refs/heads/master | 2023-07-08T16:13:23.963348 | 2017-11-30T12:07:01 | 2017-11-30T12:07:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | # DADSA - Assignment 1
# Reece Benson
import random
from classes import Menu as Menu
from classes import Handler as Handler
class App():
# Define the variables we will be using
debug = True
handler = None
# Define all of the properties we will need to use
def __init__(self):
# Load our ha... | [
"me@reecebenson.me"
] | me@reecebenson.me |
1327bb0c4a5e509d0c7c62b0352b208928bf34fe | 4ff0ff57e0fee60caf90cf1a2319b7615858b5ff | /cw_hr_holidays_extended/reports/__init__.py | f81bbb1467b1c4b3122cfce1a6ad1b2c93ff037b | [] | no_license | akradore/ACC_12 | 257a590acfb1afc92122e46b6db0ccbfdb3969be | 5ed668bda8177586695f5dc2e68a48806eccf976 | refs/heads/master | 2023-03-17T08:53:58.822549 | 2020-02-24T12:32:05 | 2020-02-24T12:32:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | # -*- coding: utf-8 -*-
from . import holidays_summary_report
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | [
"arun01@mmproject.net"
] | arun01@mmproject.net |
b808d02359c77895488e059565589a1e8d9c1703 | 9734c93c86c982b1ce046340bac9e53645b261b8 | /tests/cli/helpers/codepage.py | 136905dc4ab533842e791e8dbbc543f7b954b2ed | [
"Apache-2.0"
] | permissive | log2timeline/plaso | cd72dd407d6c5627506c14f58cb8f6a6926aa808 | d6022f8cfebfddf2d08ab2d300a41b61f3349933 | refs/heads/main | 2023-09-02T08:43:48.241198 | 2023-08-19T07:28:12 | 2023-08-19T07:28:12 | 23,812,315 | 1,506 | 421 | Apache-2.0 | 2023-09-04T08:24:53 | 2014-09-08T23:29:28 | Python | UTF-8 | Python | false | false | 1,704 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Tests for the codepage CLI arguments helper."""
import argparse
import unittest
from plaso.cli import tools
from plaso.cli.helpers import codepage
from plaso.lib import errors
from tests.cli import test_lib as cli_test_lib
class CodepagergumentsHelperTest(cli_test_... | [
"noreply@github.com"
] | log2timeline.noreply@github.com |
eb98e85b9ab7e02cbf47d85a6b890c00abf277a8 | e3eead40e93fdf5186269536edefab4f08e9a5a2 | /LeetCode/161-one_edit_distance.py | d2fda9fcd5d0e610b12400ba057379ba56eaf180 | [] | no_license | davll/practical-algorithms | bbc930b42363cae00ce39e8a686854c19131d334 | 0e35e4cc87bd41144b8e34302aafe776fec1b356 | refs/heads/master | 2021-08-22T13:12:34.555074 | 2020-03-28T08:56:13 | 2020-03-28T08:56:13 | 147,224,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | def one_edit_distance(s1, s2):
n1, n2 = len(s1), len(s2)
l, r = 0, 0
while l < n1 and l < n2:
if s1[l] == s2[l]:
l += 1
else:
break
n1, n2 = n1-l, n2-l
while r < n1 and r < n2:
if s1[-1-r] == s2[-1-r]:
r += 1
else:
break... | [
"davll.xc@gmail.com"
] | davll.xc@gmail.com |
1ca107d39fcf682c12bd191ef447080ea774f49a | 6b05bddf2e294c8e1b39846aecadfa06b4ff805d | /test/test_v1_generation_status.py | 121f9db48f40ba73016ca068c091830bc77627e5 | [
"Apache-2.0"
] | permissive | kubevirt/client-python | 5ca82fe55d48c07f62796d2bed3605a7c189922c | 235fe17f58d41165010be7e4122cb67bdc866fe7 | refs/heads/master | 2023-09-03T12:25:27.272479 | 2023-08-17T00:33:31 | 2023-08-17T00:33:31 | 105,017,761 | 29 | 25 | Apache-2.0 | 2022-10-20T13:52:10 | 2017-09-27T12:51:32 | Python | UTF-8 | Python | false | false | 925 | py | # coding: utf-8
"""
KubeVirt API
This is KubeVirt API an add-on for Kubernetes.
OpenAPI spec version: 1.0.0
Contact: kubevirt-dev@googlegroups.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
i... | [
"kubevirt-bot"
] | kubevirt-bot |
ca0d61bc85b983481ef9efb4c5f39e48b6622d3b | 2709e527c217a8264b48e2f549b3284e5ccb9551 | /0x09-python-everything_is_object/100-magic_string.py | f70d7350af05a64e469e472edab507ed4a90ae61 | [] | no_license | kwhit2/holbertonschool-higher_level_programming | 489d6b88ed14b9f2efd4637d8a71ae569b5027f6 | 2660516b12fee0f03c4025ba1d8d2762a8880a06 | refs/heads/main | 2023-05-22T17:57:02.035803 | 2021-06-12T18:43:54 | 2021-06-12T18:43:54 | 319,346,696 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | #!/usr/bin/python3
def magic_string(str=[]):
str.append("Holberton") # this also works: str += ["Holberton"]
return (", ".join(str))
| [
"kfw2@outlook.com"
] | kfw2@outlook.com |
b0ed5be72b248dee34ba8ffdeb7e2c8fc09ba3c3 | e14372adf86d3c4f9e73c9f7111db3215c696c3d | /1.入门/二级/LE8.py | c0e3f65646dff938600e801494d64b31300cde86 | [] | no_license | hewei-bit/PYTHON_learning | 71ddd7560a52575528547187f4fb40f39a3cbbdb | 18de8e5bdca165df5a5a4b5e0887846593656f4e | refs/heads/master | 2022-12-02T13:38:05.907135 | 2020-08-13T04:57:41 | 2020-08-13T04:57:41 | 261,647,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,171 | py | import jieba
txt = open("threekingdoms.txt","r",encoding='utf-8').read()
excludes = {"商议","如何","主公","军士","将军","却说","不可","不能","如此","二人","荆州"}
words = jieba.lcut(txt)
print(words)
counts = {}
for word in words:
if len(word) == 1:
continue
elif word == "诸葛亮" or word == "孔明曰":
rword = "孔明"
eli... | [
"1003826976@qq.com"
] | 1003826976@qq.com |
0962cb9637e184ab6273ea26fe316387229a270a | 9c4850697d66c6119e1d0b1f6347c1ea1d5d1ebb | /devilry/devilry_qualifiesforexam/tests/rest/test_status.py | 41a3aad48fdde302c0a24d6cde12c8e8ecd3e0a8 | [] | no_license | evestera/devilry-django | 7952e0d65f23af6c4dc2fd22fb97462e4231deac | 760a4ca1c40a7ac0d60f7675efa6919ffae585da | refs/heads/master | 2020-12-25T20:09:00.756243 | 2015-05-21T16:33:47 | 2015-05-21T16:33:47 | 36,460,383 | 0 | 0 | null | 2015-05-28T19:14:10 | 2015-05-28T19:14:09 | null | UTF-8 | Python | false | false | 17,687 | py | from django.test import TransactionTestCase
from django.core.urlresolvers import reverse
from devilry.apps.core.testhelper import TestHelper
from devilry.apps.core.models import Period
from devilry.devilry_rest.testclient import RestClient
from devilry.devilry_qualifiesforexam.models import Status
from devilry.devilry... | [
"post@espenak.net"
] | post@espenak.net |
1e8b36d3decd0e0499113472c2e39046014353fa | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/CodeJamData/16/51/8.py | 0a0a76035762a98ccb3b14bab09892bf3db8e467 | [] | 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 | 775 | py | #!/usr/bin/python2
# -*- coding: utf-8 -*-
import sys
import os
class Stack(object):
def __init__(self, N):
self.a = ['X'] * N
self.n = 0
def push(self, x):
self.a[self.n] = x
self.n += 1
def top(self):
return self.a[self.n-1]
def pop(self):
self.n -=... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
380a93700651bc938a605253ad4f55098290336a | 2d358ffb51f03cc64cc2da0f684b0928aebe139c | /test2/booktest/migrations/0002_areainfo.py | 5907812c65cd3ab0178138341bec716118c0025e | [] | no_license | 853695319/learningdjango | 195ffabdbd3a5b6bc4386cbb678504c0d2cd0095 | d2aac1117bb2ca31e4f247a9d206adcf3a9f39a2 | refs/heads/master | 2020-05-03T04:59:16.094900 | 2019-04-23T06:25:02 | 2019-04-23T06:25:02 | 178,437,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('booktest', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='AreaInfo',
fields=[
... | [
"853695319@qq.com"
] | 853695319@qq.com |
5beb6ad74c365944a9dacad8a0775794bd47beee | 8dc7bafb4b20f7b556ca733c8a1e46ae8dd8d4cb | /accounting/accounting/doctype/payment_entry/payment_entry.py | 19e889378bebce608bf0293a5597c21df65c02c0 | [
"MIT"
] | permissive | MohamedAbdulsalam96/accounting | 06d50f236ae94cf7741bf2750a098ae18fa02fe0 | e4665df4dce863e0703b8b733255d200aa953c1c | refs/heads/master | 2023-05-30T19:19:14.365102 | 2021-06-08T10:08:36 | 2021-06-08T10:08:36 | 630,869,866 | 1 | 0 | null | 2023-04-21T10:42:57 | 2023-04-21T10:42:57 | null | UTF-8 | Python | false | false | 389 | py | # Copyright (c) 2021, ac and contributors
# For license information, please see license.txt
from accounting.accounting.doctype.gl_entry.utils import create_gl_entry
from frappe.model.document import Document
class PaymentEntry(Document):
def on_submit(self):
create_gl_entry(self, self.account_paid_to, self.amount... | [
"anand21nanda@gmail.com"
] | anand21nanda@gmail.com |
567fc4698f2d54fee0f1380d1be5135399468276 | eef614ad302e1662f51fe6d8a880cfeef10bd3b1 | /tests/functional_tests/accounts/test_signup.py | 75dec47aad56a16052232ca9d3e7a76b518e1b3a | [
"MIT"
] | permissive | gitter-badger/apostello | a334a5a63a833a9e4a84f5872d44da7bdccc5477 | d6eeacf7a726aa33a79676fdd3d05b25a05b0f70 | refs/heads/master | 2021-01-18T18:59:36.111493 | 2016-03-17T20:01:08 | 2016-03-17T20:01:08 | 54,472,652 | 0 | 0 | null | 2016-03-22T12:16:51 | 2016-03-22T12:16:50 | null | UTF-8 | Python | false | false | 3,403 | py | import pytest
from django.contrib.auth.models import User
from django.core import mail
from site_config.models import SiteConfiguration
@pytest.mark.django_db
@pytest.mark.slow
class TestSignup:
def test_sign_up(self, live_server, browser, users):
"""
Tests the sign up form and checks that the ap... | [
"montgomery.dean97@gmail.com"
] | montgomery.dean97@gmail.com |
52bdf9b51ef3cb5ff7e208165146ae83d5eef6a2 | 71bc873c20fbc45bb5e13095d2474496818a23f9 | /code word2vec_experiment_/district_stop_words.py | 397ba3344690383eea7c5304e4c07ce74bdefc1f | [] | no_license | 2877992943/lianyun | f31c44ea2e266bae51cae4fa464d1bae368c8d3f | a872d6cd1b2eff402bcccb326d33d086816d87af | refs/heads/master | 2021-01-20T16:17:20.226401 | 2017-05-10T06:49:31 | 2017-05-10T06:49:31 | 90,830,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | #! -*- coding:utf-8 -*-
import pandas as pd
import sys,os,re
reload(sys)
sys.setdefaultencoding('utf8')
import numpy as np
if __name__=='__main__':
path='../backup/2014_district.csv'
df=pd.read_csv(path,encoding='utf-8')
ll=df['dis'].values.tolist()
ll_clean=[]
ll_clean1=[]# more than 3 words... | [
"2877992943@qq.com"
] | 2877992943@qq.com |
58ac3cb19d3a3277dc1dda822c0f890412c72177 | 2218e1da5cb944e4509f8641ca051de137645c5e | /剑指 Offer/First/14-1.cuttingRope.py | f9cc32be30464432e53c133a87cfd362aabb6fd1 | [] | no_license | Hegemony/Python-Practice | 9e76ebb414433e51c2074602fb0a871891647839 | b68ea41688e9e305635c63fdc43402e2b6fe6524 | refs/heads/main | 2023-05-05T14:00:59.921803 | 2021-06-01T15:38:30 | 2021-06-01T15:38:30 | 301,602,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | class Solution:
def cuttingRope(self, n: int) -> int:
res = 0
for i in range(2, n + 1):
cnt = n // i
yu = n % i
res = max(res, (cnt + 1) ** yu * cnt ** (i - yu))
return res | [
"noreply@github.com"
] | Hegemony.noreply@github.com |
13a71adb0e45fcc83aa599afb5f5d43c08fd678f | ed11f664cbc459c7a4456dd58f2b231edcb22f33 | /ctm_api_client/models/agent_in_hostgroup.py | 25a98d8dbf0878138a0c8238cf908665308d20ce | [
"BSD-3-Clause"
] | permissive | jpmc216/ctm_python_client | c8b8ba60580bf869b3d1e6af9b99737e0a7ea527 | de44e5012214ec42bb99b7f9b4ebc5394cd14328 | refs/heads/main | 2023-08-26T22:06:34.022576 | 2021-10-25T13:41:31 | 2021-10-25T13:41:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,627 | py | # coding: utf-8
"""
Control-M Services
Provides access to BMC Control-M Services # noqa: E501
OpenAPI spec version: 9.20.215
Contact: customer_support@bmc.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from ctm_api_cl... | [
"vtadinad@bmc.com"
] | vtadinad@bmc.com |
e6f27f97491f2a6ecc94d9372b6fdcd1658f6b7e | 4e22e93ecdb105df4e15c63f4503522b3525f70b | /ansible/ovirt-engine-ansible4/ov4_assigned_permissions | f936ffaff44356c2f6620a8a9c2915b06b06ba14 | [
"Apache-2.0"
] | permissive | machacekondra/ovirt-engine-ansible | df7e1d1bb14f154bc411bc628ee483898ecbc712 | ffc5fcb5d36f039e347208ab5f9fc672cfb1f596 | refs/heads/master | 2021-01-19T05:30:28.561742 | 2016-07-20T15:21:03 | 2016-07-20T15:21:03 | 61,116,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,138 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2016 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... | [
"omachace@redhat.com"
] | omachace@redhat.com | |
55fa3f7713e3159c89ae3d4fb4dd6300c16bd5fb | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/59/usersdata/222/61395/submittedfiles/testes.py | 4e2bd5734fb77391b86989a58aa509a2b9e0c261 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py |
def angulosexasimal(L):
soma=0
for i in range(0,len(L),1):
soma=lista[i]+(lista[i+1]/60)+(lista[i+2]/3600)
return soma
L=[23,37,28]
print(soma)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
a6b7bb8cd0e86c6c35ca9e4e9bfd04ab18e13630 | aad164e4efe1d55cc189c35956bfd435b14a0f52 | /eve-8.21.494548/lib/carbonlib/trinity/windowsEvents.py | f2776157a9f13ed4b623582a3622bc8e728b2ef0 | [] | no_license | Pluckyduck/eve | 61cc41fe8fd4dca4fbdcc4761a37bcfeb27ed84f | 9a277707ab1f162c6bd9618faf722c0be3ea93ad | refs/heads/master | 2020-12-28T23:35:29.992875 | 2013-05-06T14:24:33 | 2013-05-06T14:24:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,434 | py | #Embedded file name: c:\depot\games\branches\release\EVE-TRANQUILITY\carbon\common\lib\trinity\windowsEvents.py
WM_NULL = 0
WM_CREATE = 1
WM_DESTROY = 2
WM_MOVE = 3
WM_SIZE = 5
WM_ACTIVATE = 6
WM_SETFOCUS = 7
WM_KILLFOCUS = 8
WM_ENABLE = 10
WM_SETREDRAW = 11
WM_SETTEXT = 12
WM_GETTEXT = 13
WM_GETTEXTLENGTH = 14
WM_PAIN... | [
"ferox2552@gmail.com"
] | ferox2552@gmail.com |
2da592d046f1fde36fb19d493634f5a7e2f922cd | d58542787230deb9efa0499451a7f228570562c1 | /djangoapps/schools/migrations/0006_auto_20170330_0720.py | 322872df2939273964e354697590eec098517d2a | [
"MIT"
] | permissive | serudda/waysily-server | 5d9edfeb14fef208ea7dd10dc06deb44b784bb4c | b2da3f3a97dbd1ef46d65f13ee9b2098124d4fc4 | refs/heads/master | 2023-03-03T05:36:50.689008 | 2017-12-27T15:25:32 | 2017-12-27T15:25:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-03-30 07:20
from __future__ import unicode_literals
from django.db import migrations
import multiselectfield.db.fields
class Migration(migrations.Migration):
dependencies = [
('schools', '0005_auto_20170330_0249'),
]
operations = [
... | [
"sergioruizdavila@gmail.com"
] | sergioruizdavila@gmail.com |
cbc8f4f44e59bc6c67f6e78b2974635907244521 | 005f02cb534bbf91fe634fcf401441e1179365c8 | /8-Python Level 2/8.1-Scope(hierarkia e variablave)/scope.py | ad63f08884169ea6ecf4d5dead0fa576e946220a | [] | no_license | Ruxhino-B/django-deployment-example | 220a39a456871a1bf42a64fd5b945731056fc7b9 | e19713ac1e11af202152ad20d7c3c94891a77e83 | refs/heads/master | 2020-04-18T02:21:10.505691 | 2020-01-06T14:18:18 | 2020-01-06T14:25:25 | 167,159,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | # x = 25
# def my_func():
# x = 50
# return x
# print(x) #Ketu printohet 25 sepse eshte variabel global
# print(my_func()) #Ketu printohet 50 sepse merret x i funksionit
# my_func()
# print(x) #Ketu serisht printohet 25 edhe pse eshte thirrur my_func mesiper
#locals
#lambda x: x**2 #ky eshte nje vari... | [
"ruxhino@gmail.com"
] | ruxhino@gmail.com |
73e53aef9409cf8adde4832c379ef7acbb4ac3d4 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/exercises/_algorithms_challenges/pybites/beginner/91/test_anyall.py | d7c14f07ad586e2dafa7a87f3d42bb10477a5bb5 | [] | 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 | 994 | py | # _______ p__
#
# ____ ? _______ ? ? ?
#
#
# ?p__.m__.p.("arg, expected", [
# ('aioue', T..),
# ('EoUia', T..),
# ('aaAiIee', T..),
# ('AEIOU', T..),
# ('aaeeouu', T..),
# ('abcde', F..),
# ('AE123', F..),
# ('AiOuef', F..),
# ])
# ___ test_contains_only_vowels arg, expected
# ... b.... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
04a74b3c4532d7de6e7e1b194009e0a4ffb452ef | a1798c553d5b0ddbbb323f3789db991e07105867 | /exec/bin/bash/google-cloud-sdk/.install/.backup/lib/surface/compute/networks/subnets/expand_ip_range.py | 5afff149ebc5aa364a22ec7be2b9cbc336c43bda | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/Wingman | d5d44752f4cd361d51b1e4a62076fe95106ec503 | 957143324fc795f034a57f529cd7b61b970f4a53 | refs/heads/master | 2022-11-20T05:43:31.780030 | 2016-09-30T02:07:00 | 2016-09-30T02:07:00 | 282,287,992 | 0 | 0 | null | 2020-07-24T18:15:54 | 2020-07-24T18:15:54 | null | UTF-8 | Python | false | false | 5,646 | py | # Copyright 2016 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... | [
"tobiah.rex@gmail.com"
] | tobiah.rex@gmail.com |
90df0b83ccc840e73645521d83b6cac57016345f | e6945ece453368c03a77626833e38416ac736a66 | /algorithms/basic_algorithms/sort012.py | 4c05fc48dfafe6a468e49c2c9367b4c5e1b6beb7 | [] | no_license | aa-ag/nano | f8949efa0e6c5df9365629ef7e4a7447ea0d8bb7 | 3133662b7095069485a9860bef58f9bc5760ada3 | refs/heads/main | 2023-04-17T05:28:12.621387 | 2021-04-14T00:52:54 | 2021-04-14T00:52:54 | 338,670,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | def sort_012(input_list):
"""
The idea is to put 0 and 2 in their correct positions, which will make sure
all the 1s are automatically placed in their right positions
"""
# initialize pointers for next positions of 0 and 2
next_pos_0 = 0
next_pos_2 = len(input_list) - 1
front_index = 0
... | [
"aaron.aguerrevere@gmail.com"
] | aaron.aguerrevere@gmail.com |
f44b98f23b014660859af3b6c140b53872bde1d8 | f7630fd6c829cb306e72472296e3a513844d99af | /lib/python3.8/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_fsp_vlan_interface_secondaryip.py | 4919d980d2fd35d11d074bd3bca64cebe88f986c | [] | no_license | baltah666/automation | 6eccce20c83dbe0d5aa9a82a27937886e3131d32 | 140eb81fe9bacb9a3ed1f1eafe86edeb8a8d0d52 | refs/heads/master | 2023-03-07T10:53:21.187020 | 2023-02-10T08:39:38 | 2023-02-10T08:39:38 | 272,007,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,415 | py | #!/usr/bin/python
from __future__ import absolute_import, division, print_function
# Copyright 2019-2021 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the ... | [
"baltah666@gmail.com"
] | baltah666@gmail.com |
af5a5803b937541ad6881d91e5345a919f0db0ba | 8c2b682e8bb27a32553cd6012d249df68617d262 | /src/rot13.py | 6b5445bca95bd2be62b28e8b32a33e78f9bfe258 | [] | no_license | Vlad-Shcherbina/Morph-Endo-Legacy | 7ca6de7632bb1fee69e1b6ec614a9ac9181fd297 | e620eeb2e144d0f8cf252770d4b5c38ac99449c7 | refs/heads/master | 2021-01-22T04:36:49.008953 | 2011-02-18T16:22:34 | 2011-02-18T16:22:34 | 1,352,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | import sys
A = ord('A')
a = ord('a')
table = ''.join(map(chr,
range(A)+
range(A+13, A+26)+range(A, A+13)+
range(A+26, a)+
range(a+13, a+26)+range(a, a+13)+
range(a+26, 256)))
for line in sys.stdin:
sys.stdout.write(line.translate(table)) | [
"vlad.shcherbina@gmail.com"
] | vlad.shcherbina@gmail.com |
72189e28891678dea78ecc6262d662e8917521d2 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/firestore/backups/delete.py | db44a094048b32399ee0cdc1780a08bdc70508c3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 1,583 | py | # -*- coding: utf-8 -*- #
# Copyright 2023 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 requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
3b9de62a4fe10f0e2e6b3a426c400aff2b705434 | 45e66980d15a06b264f31f9a7d6dcd6dc271b815 | /test/functional/rpc_getchaintips.py | f64055f5d7e031f912ab20627262990cd936fe7d | [
"MIT"
] | permissive | Lucky1689/ukcoin | e3ff17c66c85f5531d81580e4bc84ff3994924af | 11bcd6ded7b11a7179e32f1bf0d6f75615c0dde1 | refs/heads/master | 2022-09-20T17:25:14.553647 | 2020-06-03T18:08:17 | 2020-06-03T18:08:17 | 262,382,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,422 | py | #!/usr/bin/env python3
# Copyright (c) 2018 The Bitcoin Core developers
# Copyright (c) 2017 The Raven Core developers
# Copyright (c) 2018 The Rito Core developers
# Copyright (c) 2020 The Ukcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.... | [
"Ukcoin168@gmail.com"
] | Ukcoin168@gmail.com |
fb55a6fe4035493d57f4e6701df30f4667531636 | 24cf6d01fc9485c2e5578523bce6313aab47a30e | /DataLoaders/RN_DataLoader.py | 722af7b3989143c336ff0c507fcc1971dabe7058 | [] | no_license | sahahn/GenDiagFramework | 352212b2c540a6db73e810e416a9d3d4fa84f95a | 29498d3667d644d5b3a8fd0f0e277cbdd14027ba | refs/heads/master | 2020-04-14T06:10:10.609366 | 2019-06-18T20:22:31 | 2019-06-18T20:22:31 | 163,678,894 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,762 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Dec 13 11:09:31 2018
@author: sage
"""
from DataLoaders.TwoD_DataLoader import TwoD_DataLoader
from config import config
import nibabel as nib
import numpy as np
import csv
def get_name_slc(chunk):
'''Specific function for loading retina-net style ... | [
"sahahn@uvm.edu"
] | sahahn@uvm.edu |
bd4bbabf5022a10ced1a65609982eeed8984efa0 | 9c0abddc6bff5e65284145110663c88863e647c1 | /scripts/polyphemus | d83d6cadce361a9f2504b0ea985eef86374e08a4 | [
"BSD-2-Clause"
] | permissive | polyphemus-ci/polyphemus | 07ffb912d17e971a13f3e89b282dd13e33f23b82 | 3ae6cb9ff312d90478d8a294681bd898b7f45b1c | refs/heads/master | 2020-04-18T14:06:38.833687 | 2015-03-16T18:28:25 | 2015-03-16T18:28:25 | 13,967,339 | 1 | 0 | null | 2015-03-16T18:28:25 | 2013-10-29T20:12:32 | Python | UTF-8 | Python | false | false | 95 | #!/usr/bin/env python
"""polyphemus entry point."""
from polyphemus.main import main
main()
| [
"scopatz@gmail.com"
] | scopatz@gmail.com | |
4e825dc3c1d3e37064aefc4516a83fc19b3800e0 | cbfb679bd068a1153ed855f0db1a8b9e0d4bfd98 | /leet/greedy/Min_Steps_to_Make_Piles_Equal_Height.py | 5a29476f4a588b2983fa92ec5fc6e3ae81d6e5c0 | [] | no_license | arsamigullin/problem_solving_python | 47715858a394ba9298e04c11f2fe7f5ec0ee443a | 59f70dc4466e15df591ba285317e4a1fe808ed60 | refs/heads/master | 2023-03-04T01:13:51.280001 | 2023-02-27T18:20:56 | 2023-02-27T18:20:56 | 212,953,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | # microsoft
# Alexa is given n piles of equal or unequal heights. In one step, Alexa can remove any number of
# boxes from the pile which has the maximum height and try to make it equal to the one which is just
# lower than the maximum height of the stack.
# Determine the minimum number of steps required to make all of... | [
"ar.smglln@gmail.com"
] | ar.smglln@gmail.com |
f92a2d65cadcf3edcc995607470cff87ffcb5b0f | b525ad01dac1595f1f8e124067e7cf86fe79f5f1 | /car_yaohao/tui/yaohao_prediction.py | ce300b7db846ddd4010841f554da6c085cc1db86 | [] | no_license | oaifaye/tensorflow_demo | cad381700d16b10052525a4c2210cf2243df746b | 660636d7bef8c7f4853c0b3a99ffdb4b6f569180 | refs/heads/master | 2021-09-05T09:44:22.357399 | 2018-01-26T07:02:24 | 2018-01-26T07:02:24 | 119,017,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,400 | py | '''
Created on 2018年1月13日
@author: Administrator
tf多特征非线性回归
https://www.2cto.com/kf/201704/626628.html
'''
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
# 特征数
featurenum = 3
x = tf.placeholder(tf.float32, [None, featurenum])
y = tf.placeholder(tf.float32, [None, ... | [
"slf_work@hotmail.com"
] | slf_work@hotmail.com |
7558eb13c62e6e8701d8c5244984f91e09431bde | 750c78b144a9ff5f03732e0db56af61e4b99de04 | /allProjects/allProjects/asgi.py | 9e2dcc5548b16ec4f516282108a60bba2206402c | [] | no_license | Pradeepsuthar/Covid19_symptomChecker | 30af12bc26dfbcfea1c5f8231016fc5b17bac066 | 5c42464819dbc188d2957b4d5e98f85f90c9e3f0 | refs/heads/master | 2021-05-21T16:58:44.421559 | 2020-09-17T19:18:09 | 2020-09-17T19:18:09 | 252,727,833 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | """
ASGI config for allProjects project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefa... | [
"sutharpradeep081@gmail.com"
] | sutharpradeep081@gmail.com |
1c8a5f2b8ea1d21124aa4c853b16f90ccf7db25c | 636ba2700eaf3a151b73144b510f38c75ab1919d | /keras/keras46_MC_5_diabetes.py | 5b1e1f877d96d175939c96bf9885a18040677c9f | [] | no_license | Taerimmm/ML | 17997f388e18c28dfd9de83af98a6d4bebe7e1f0 | 6147cede81ebcc95f21adebf75731fbbb11edfab | refs/heads/master | 2023-06-10T14:26:45.335219 | 2021-07-05T15:30:47 | 2021-07-05T15:30:47 | 324,874,959 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,790 | py | import numpy as np
from sklearn.datasets import load_diabetes
dataset = load_diabetes()
x = dataset.data
y = dataset.target
print(x.shape, y.shape)
from sklearn.model_selection import train_test_split
x_train, x_test, y_train, y_test = train_test_split(x, y, test_size=.2, random_state=45)
x_train, x_val, y_train, y_... | [
"xofla7560@naver.com"
] | xofla7560@naver.com |
d4b3004e359038387a94c6cd18da5927de369bf1 | b09de58f95a76a5b1304205e44ba6be3965da33a | /chapter_06/06_use_generator_model.py | 6293a47fcd3a3256bffaa319886fa4c8d652695d | [] | no_license | fenago/generative-adversarial-networks | 416c6c84370c87148e00fa714b5d7ac043667cc9 | 9c9c08e25d01d7b69c863d7a9927b15140dca4d3 | refs/heads/master | 2021-01-02T12:02:08.749359 | 2020-02-29T12:35:21 | 2020-02-29T12:35:21 | 239,614,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | # %%
# define and use the generator model
from numpy.random import randn
from keras.models import Sequential
from keras.layers import Dense
%matplotlib notebook
from matplotlib import pyplot
# define the standalone generator model
def define_generator(latent_dim, n_outputs=2):
model = Sequential()
model.add(Dense(15... | [
"31277617+athertahir@users.noreply.github.com"
] | 31277617+athertahir@users.noreply.github.com |
b99a243aa03a9fd7d85f1b818df6bfd48f4d9dab | 4bb30a508977ad6b950b98c8ef4d7dec9d988a6a | /bacs350/demo/week05/Demo14/Demo14/wsgi.py | 6cc8bbaec0e26b099073f17bc6059709b4275f6a | [] | no_license | Mark-Seaman/UNC-BACS350-2020-Fall | cfad05b6b58f15401e120beba9a79a9bbd8a1525 | 8a14ad72f43fdffa9491b9a9b38d65d71a074986 | refs/heads/master | 2023-07-19T03:01:27.298647 | 2020-12-14T19:24:39 | 2020-12-14T19:24:39 | 279,434,877 | 0 | 0 | null | 2021-09-22T19:44:33 | 2020-07-13T23:41:47 | HTML | UTF-8 | Python | false | false | 389 | py | """
WSGI config for Demo14 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"Mark.Seaman@imac.net"
] | Mark.Seaman@imac.net |
ec26144644568fdd3f604ce3d8d4aa765ca16d56 | 3d569375e38cbc2e73f54a9e5dd140b4021edb46 | /爬虫/requests项目/爬取去哪儿景点.py | da06f893e653a0a7f404c190512dd1a2bdc4fadd | [] | no_license | Gscsd8527/python | 2dffb13944346ca1772a4de52a80c644f19bcf72 | c7cb0653355365fc18a235f427315fae8f2b8734 | refs/heads/master | 2020-04-28T21:15:23.514693 | 2019-04-20T12:50:04 | 2019-04-20T12:50:04 | 175,575,773 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | import requests
from bs4 import BeautifulSoup
import re
def parse(url):
html = requests.get(url,headers=headers)
html = html.text
soup = BeautifulSoup(html,'lxml')
city = soup.select('div.e_destin_ct dl.m_nav dd a')
lst =[]
for i in city:
# 有的城市被推荐到热门城市中去了,而在地区中也有该城市,所以要去重
if i.... | [
"tan_gscsd@163.com"
] | tan_gscsd@163.com |
93410943fa474b3e5f7f1f559b3bddf843a3abd9 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4/Gather2_W_fixGood_C_change/ep0_test/pyr_0s/L6/step09_0side_L6.py | 21fc6f084b824966d3500838e49e391b5b9d89c5 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,983 | py | #############################################################################################################################################################################################################
from step08_c_use_G_generate_I_w_M_to_Wx_Wy_Wz_focus_to_Cx_Cy_focus_combine import I_w_M_to_W_to_C
from step08_b_u... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
f6c058527d475a757333395590501ec8765c4950 | c3a6b6f74623b2b26e6d4a259b06367ff6ac7a60 | /tests/test_backbones/test_shufflenet_v2.py | d69ec6c117832e05159a8a12e9d20694a34127ea | [
"Apache-2.0"
] | permissive | jcwon0/BlurHPE_prev | f3785eeac7063799874f5272eacbda0234d0369a | 8cac1de10a60898eaa702e536c4e24a27d469f6d | refs/heads/master | 2023-04-01T03:26:59.371057 | 2021-04-02T07:51:46 | 2021-04-02T07:51:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,495 | py | import pytest
import torch
from torch.nn.modules import GroupNorm
from torch.nn.modules.batchnorm import _BatchNorm
from mmpose.models.backbones import ShuffleNetV2
from mmpose.models.backbones.shufflenet_v2 import InvertedResidual
def is_block(modules):
"""Check if is ResNet building block."""
if... | [
"jcwon@postech.ac.kr"
] | jcwon@postech.ac.kr |
f6ddf8e6bf8dc89101fd648bc2a72a106cebf946 | 85f94cfd370ca7d384977cb091e886d8f80161e8 | /setup.py | ff1a0fe29c8ffa0d284df0108fcff728caaedef3 | [
"MIT"
] | permissive | litwisha/asyncio_monkey | f4df643a953f6282b6a2f1202cef5d2cfc113f98 | 7f845b676bdb4db1f4ccb8377327a09db4391322 | refs/heads/master | 2020-12-30T14:44:29.324840 | 2017-05-12T08:54:53 | 2017-05-12T08:54:53 | 91,078,807 | 0 | 0 | null | 2017-05-12T10:10:30 | 2017-05-12T10:10:30 | null | UTF-8 | Python | false | false | 1,349 | py | import io
import os
import re
from setuptools import setup
def get_version():
regex = r"__version__\s=\s\'(?P<version>[\d\.]+?)\'"
path = ('asyncio_monkey.py',)
return re.search(regex, read(*path)).group('version')
def read(*parts):
filename = os.path.join(os.path.abspath(os.path.dirname(__file__... | [
"hellysmile@gmail.com"
] | hellysmile@gmail.com |
5bdcf9044e8d6f72c9c4ff65ce03136b1cf7aefe | d8498ca05daa83f108a231c024b4efa2f4b71747 | /ex13_8.py | 91f418127e41f7460d0dfa1e63b5135d5cbddbf7 | [
"CC-BY-4.0",
"CC-BY-3.0"
] | permissive | antoalv19/TP_solutions | ca9baf22ca1d16bac1f1bbabdefe473bb1b0ac0a | 7c1d3b35c11cfbd9c66be9878aafa1dbe8802581 | refs/heads/master | 2020-07-03T14:31:44.626360 | 2020-01-04T20:01:27 | 2020-01-04T20:01:27 | 201,936,524 | 0 | 0 | null | 2019-08-12T13:32:04 | 2019-08-12T13:32:03 | null | UTF-8 | Python | false | false | 1,735 | py | import random
import string
from collections import defaultdict
def read_and_analyze(filename, skip_header=True):
'''Read a text file and perform Markov analysis.
structure: dict[prefix] = suffix
Returns a markov dict
'''
d = defaultdict(list)
with open(filename, encoding="utf8") as fin:
if skip_header:
... | [
"dixingxu@gmail.com"
] | dixingxu@gmail.com |
09ac31571e4ff375dc9625c68e94a200764ca389 | 0031efd83a49c4686b23ea629e1fb922b0b9e956 | /ru/views.py | 964e3e5b6f5d932ac8839f642084ff1b684a2cbb | [] | no_license | bomvendador/trans | 05f41e8b39a94178444ddb50436855db8d1c66ec | 9792d13dabe594ecf543218cb841dec69c9d43db | refs/heads/master | 2021-01-11T20:03:47.173580 | 2017-03-13T13:50:36 | 2017-03-13T13:50:36 | 79,447,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,498 | py | # -*- coding: utf-8 -*-
# from __future__ import unicode_literals
import sys
from uuid import uuid4
import unicodedata
from __builtin__ import unicode
from django.utils.encoding import smart_text
from django.shortcuts import render, redirect
from django.views import generic
from django.contrib.auth.models import User
... | [
"bomvendador@yandex.ru"
] | bomvendador@yandex.ru |
0f7d7020576e273030845274280660faaa0eb0d4 | a2b429075098ef615a104845b8434e7fdeff9d14 | /antspynet/architectures/create_transformer_model.py | b6a98b298ce927d7b6731ff412647e2d4bb336d2 | [
"Apache-2.0"
] | permissive | ANTsX/ANTsPyNet | de95ec1ceca6bd146b99127c36273ba4649be40b | 1703acb58ed053ce3348aa061e4087bac953dd07 | refs/heads/master | 2023-08-09T17:26:33.179674 | 2023-08-04T14:22:18 | 2023-08-04T14:22:18 | 189,067,098 | 171 | 36 | Apache-2.0 | 2023-07-13T15:57:34 | 2019-05-28T16:44:24 | Python | UTF-8 | Python | false | false | 16,923 | py | import tensorflow as tf
from tensorflow.keras.models import Model
from tensorflow.keras.layers import (Add, Dense, Dropout, Flatten,
Input, LayerNormalization, MultiHeadAttention)
from antspynet.utilities import (ExtractPatches2D, ExtractPatches3D, EncodePatches,
... | [
"ntustison@gmail.com"
] | ntustison@gmail.com |
7888f9d838d0b3092c11ba496518c7f5bda7104d | 453e53e9074c1657b3d04c3d3c07b8b21601852a | /.history/scraping_vivino_20210205211247.py | 94882c0a467b5cae6a96af69c9894569de42a2ed | [] | no_license | kristiewirth/vivino-data-analysis | 58fd66fb3b8d8a098dab5bc030b0110b287f6e22 | 8c02c14926fdd6dbb493b68b64daa27a7242780f | refs/heads/main | 2023-02-28T02:44:15.130286 | 2021-02-06T05:25:59 | 2021-02-06T05:25:59 | 336,463,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,102 | py | import pprint as pprint
import pandas as pd
import requests
import seaborn as sns
import numpy as np
df = pd.DataFrame(columns=["wine", "rating", "price"])
for page_num in np.arange(1, 10, 1):
r = requests.get(
"https://www.vivino.com/api/explore/explore",
params={
"currency_code": "U... | [
"kristie.ann.wirth@gmail.com"
] | kristie.ann.wirth@gmail.com |
71d52862afb3a6831974332d3e21dc231baa6c9b | 9d30115d59ed821a5c7aecf2318b5e0ed22c9676 | /src/codewars/python/5kyu/to_camel_case.py | 4b2b5f97106701d81ffce74746cf93b6f058d660 | [] | no_license | garigari-kun/til | 02c7bf05274d1077b454e1f7d4a7355849441524 | b71f36a66045ab7da7f4a97f7e18de2aaa05f493 | refs/heads/master | 2020-04-16T02:13:45.727909 | 2018-12-16T01:26:40 | 2018-12-16T01:26:40 | 56,369,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | """
Complete the method/function so that it converts dash/underscore delimited words into camel casing.
The first word within the output should be capitalized only if the original word was capitalized.
Examples:
# returns "theStealthWarrior"
to_camel_case("the-stealth-warrior")
# returns "TheStealthWarrio... | [
"keisuke.cs@gmail.com"
] | keisuke.cs@gmail.com |
8c1bc0ee50750025de12f5b5afc1698f858033f0 | b9865b85f99ece1cb92038a53a6f9f205fe69bc2 | /sddsToolkit/printpage.py | 7e7d5337c0cdbe2352afce9ff19b5f781e932f8a | [] | no_license | Tubbz-alt/SDDSTOOLS | 43aa32dc556c8e1886eb408b09fb600bc6da91a3 | d2a896277d6a516d7138c493a51119ac50c586c6 | refs/heads/master | 2021-05-29T08:49:46.271548 | 2014-10-22T17:58:14 | 2014-10-22T17:58:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | from sdds import sddsdata
def printpage(sddsobj):
numberOfColumns = len(sddsobj.columnName)
a=[[] for i in range(numberOfColumns) ]
print a
# for i in range(numberOfParameters):
# sddsobj.parameterData[i].append(sddsdata.GetParameter(sddsobj.index,i))
for i in range(numberOfColumns):
a[i].append(sddsda... | [
"joelfred@slac.stanford.edu"
] | joelfred@slac.stanford.edu |
4196e6ba86de68c23b2e601d85a6e2f9d3a8ec74 | 24c5b944717b35db74fe33c494ded4194b53aeca | /sephiroth/__init__.py | 6cf205d176b48d14b97c2b3b6f83b8b5d367ecc1 | [
"WTFPL"
] | permissive | zevlag/sephiroth | bd1f42f697fb8dffbc38f5388636ff848de72b0f | 4c77aee5880751962e29b9a439a17c9c5e725a40 | refs/heads/main | 2023-03-12T07:24:53.636547 | 2021-02-26T18:45:10 | 2021-02-26T18:45:10 | 342,656,892 | 0 | 0 | WTFPL | 2021-02-26T17:56:09 | 2021-02-26T17:56:09 | null | UTF-8 | Python | false | false | 128 | py | __author__ = "0xdade"
__maintainer__ = "0xdade"
__email__ = "dade@actualcrimes.org"
__license__ = "WTFPL"
__version__ = "1.0.2"
| [
"0xdade@users.noreply.github.com"
] | 0xdade@users.noreply.github.com |
466e264e0eb65c0ff42c8b1860796f28bd68de10 | 3c24f5e9a513f447d2d9f4c912e020775e15bebe | /dbm.py | d8a5a65cd6fc91862b53ab2526b266a7120d54ad | [
"MIT"
] | permissive | GiggleLiu/QuRBM | 2ef5659640f272dd0bd7500862f78e1770e5376d | 2cb16e534ccbf875b88c164837bb8ffada5a2b03 | refs/heads/master | 2021-01-23T01:45:44.578449 | 2017-05-01T16:40:05 | 2017-05-01T16:40:05 | 85,930,945 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,550 | py | '''
Restricted Boltzmann Machine.
'''
from numpy import *
import numbers,pdb
from scipy.special import expit
from sstate import SparseState
from group import NoGroup
from utils import fh
__all__=['DBM','random_dbm']
class DBM(object):
'''
Restricted Boltzmann Machine class.
Attributes:
:a: 1dar... | [
"cacate0129@gmail.com"
] | cacate0129@gmail.com |
d93af5bb78793b79096c1c32ccf6655fe77bfd53 | 74d0235c4eed1e4bc57dd906d2b3958cb48b9dba | /torch/fx/experimental/fx2trt/example/unittests.py | a8d8d4cb93d08263d3c834e4a91fbda507846076 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | anjali411/pytorch | a31ecf84fe892f19452b1063f2b1de1f88d84bb0 | 51b67f2bca3014aa5e7f675237543b8f82743032 | refs/heads/master | 2022-07-22T16:58:56.800837 | 2021-10-14T17:22:15 | 2021-10-14T17:23:55 | 208,863,312 | 1 | 0 | NOASSERTION | 2020-05-14T06:54:25 | 2019-09-16T17:56:13 | C++ | UTF-8 | Python | false | false | 4,052 | py | import torch
from torch.ao.quantization.quantize_fx import (
prepare_fx,
convert_fx,
get_tensorrt_backend_config_dict
)
import torch.fx.experimental.fx_acc.acc_tracer as acc_tracer
from torch.fx.experimental.fx2trt.fx2trt import TRTInterpreter, InputTensorSpec, TRTModule
from torch.testing._internal.common_... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
f700721c9081d5fcaafc1f6a00bf77aae404a0d3 | 8ad573e455450ce45b8dfd1cb995a8ce43f9a114 | /core/result/failure/bad_request.py | a7b271b3de9e8ba75db86d3542a964b797fee057 | [] | no_license | afsaneh92/dr_autol | 4da458b8a6682603c227e34a1a827a5918d40831 | a1bd6d55ce9b67543ad7387631c48440dd38f68d | refs/heads/master | 2022-12-23T08:32:47.851059 | 2019-12-10T13:51:24 | 2019-12-10T13:51:24 | 227,130,083 | 0 | 0 | null | 2022-12-08T01:05:23 | 2019-12-10T13:38:52 | Python | UTF-8 | Python | false | false | 132 | py | from core.result import Result
class BadRequest(Result):
def dictionary_creator(self):
return {"status": self.status}
| [
"forafsaneh.91@gmail.com"
] | forafsaneh.91@gmail.com |
b67237062e950386e920e3e37c3bf871a80d73e4 | f9f0ddbb211bde92316ca746938688e7c82e2fe0 | /flask-test/flask/app/recipes/routes.py | aa2d6e07e23264d7363001d65eaa43fce1987817 | [] | no_license | Todai88/Python-Refresher | c93475cc08b2ed6905901f0f615bc446820382d8 | a74a7e878906201ed7f09a17d44fc94d1137eb3a | refs/heads/master | 2020-04-06T07:38:13.539997 | 2018-11-19T21:01:46 | 2018-11-19T21:01:46 | 157,279,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | from flask import render_template
from . import recipes_blueprint
@recipes_blueprint.route('/')
def index():
return render_template('recipes/index.html')
| [
"joabaj88@gmail.com"
] | joabaj88@gmail.com |
84e191ba583ee19dc3188ec624ee40a7210a743b | 3468fe20cd1128eb8e18354c30490421e504e4af | /portal/context_processors.py | 0a47dca0d4d1b2ed920de4681821c9ea8c8b7f4c | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | djpeluca/utopia-cms | 7da45422ffc4f1f397f385ea37243f2745a758de | 1e444afea565fdc734abf449b8ebe9b7c2c47d80 | refs/heads/main | 2023-08-19T23:04:44.666527 | 2021-10-27T01:55:11 | 2021-10-27T01:55:11 | 387,323,009 | 0 | 0 | BSD-3-Clause | 2021-07-19T03:03:48 | 2021-07-19T03:03:48 | null | UTF-8 | Python | false | false | 4,157 | py | # -*- coding: utf-8 -*-
import pycountry
from django_mobile import get_flavour
from django.conf import settings
from django.contrib.sites.models import Site
from core.models import Publication, Category
def urls(request):
url_dict = {}
for attr in dir(settings):
if attr.endswith('_URL'):
... | [
"apacheco@ladiaria.com.uy"
] | apacheco@ladiaria.com.uy |
1c54eb1dee6f7a9baa2427d22dd6937e2490becc | cb1d06e91347a23438057d9f40b5a74cad595766 | /autonetkit/anm/base.py | 0322dcc13b36045638ab3a3c17513d8c61a2fca4 | [] | permissive | plucena24/autonetkit | 9f94d3fba6bfad54793a7de58ef17439c2c71f0b | f7e8c03ee685d5b89f9028cb556017e730e0446c | refs/heads/master | 2023-08-16T18:03:54.593010 | 2014-11-07T13:43:39 | 2014-11-07T13:43:39 | 27,204,033 | 0 | 0 | BSD-3-Clause | 2023-08-08T18:36:36 | 2014-11-27T01:36:38 | Python | UTF-8 | Python | false | false | 15,296 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import itertools
import logging
import autonetkit
import autonetkit.log as log
from autonetkit.anm.edge import NmEdge
from autonetkit.anm.graph_data import NmGraphData
from autonetkit.anm.interface import NmPort
from autonetkit.anm.node import NmNode
from autonetkit.exception... | [
"simon.knight@gmail.com"
] | simon.knight@gmail.com |
08ce49dff12d8cd48db82a6193beb842cf53e16a | 11f7499cc543ee0704ddd79728c92ac9e550ccab | /frontend/__init__.py | 2e8d088b48426ee69192d33af989cec91174f8af | [
"MIT"
] | permissive | lampwins/orangengine-ui | daeef1eb7ff062cd74bd2b7304129bd76afd0ba2 | 8c864cd297176aa0ff9ead9682f2085f9fd3f1c0 | refs/heads/develop | 2021-01-11T14:35:02.138278 | 2017-04-25T00:38:01 | 2017-04-25T00:38:01 | 80,165,960 | 1 | 4 | null | 2017-04-20T22:40:19 | 2017-01-26T23:30:20 | CSS | UTF-8 | Python | false | false | 211 | py |
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
if __name__ == '__main__':
# dissable directly running this
pass
| [
"lampwins@gmail.com"
] | lampwins@gmail.com |
0bf3f23db7e2058769e4e2f2eeb45303b302ee3a | 6a7e9e0e9c08132166f566bd88ae1c46ff8f9c0a | /azure-mgmt-monitor/azure/mgmt/monitor/models/metric_alert_status_properties_py3.py | 5990828126e4ce5a1944e301d027d2e3f9f2d076 | [
"MIT"
] | permissive | ashirey-msft/azure-sdk-for-python | d92381d11c48f194ec9f989f5f803db614fb73f2 | e04778e13306dad2e8fb044970215bad6296afb6 | refs/heads/master | 2020-03-23T06:05:39.283442 | 2018-09-15T00:18:26 | 2018-09-15T00:18:26 | 141,188,192 | 0 | 1 | MIT | 2018-07-16T20:02:52 | 2018-07-16T20:02:52 | null | UTF-8 | Python | false | false | 1,278 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
cb59d89b368e5ee2b874cd455bb6ac8c130f4f51 | ce6f72cdc8b72d05fad900d2aaaffdbdf05b1d05 | /0x05-python-exceptions/101-main.py | 187409e6c781b65b8d5bd19da5deaafb8efe771f | [] | no_license | Cu7ious/holbertonschool-higher_level_programming | 4ae7f145f88b333cbd93e3a151c8a1892f942adb | b86439b7c2e4b3d199dbd638888524579aa69de9 | refs/heads/master | 2020-03-09T13:11:00.370612 | 2018-09-09T02:17:26 | 2018-09-09T02:17:26 | 128,804,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | #!/usr/bin/python3
safe_function = __import__('101-safe_function').safe_function
def my_div(a, b):
return a / b
result = safe_function(my_div, 10, 2)
print("result of my_div: {}".format(result))
result = safe_function(my_div, 10, 0)
print("result of my_div: {}".format(result))
def print_list(my_list, len):
... | [
"328@holbertonschool.com"
] | 328@holbertonschool.com |
1b775ed02fe183a9ce73135aef444f8280749b75 | 677b9b1aab74d998fa0dd26b0309ed5bbe8775e9 | /T53/webapp/traders/admin.py | 22a67f4b9eb4c73f951d58e37fc1992fd92d55f9 | [
"MIT"
] | permissive | University-of-Petroleum-Energy-Studies/Hackathon_5.0 | db7291a8d69569322dd3dbd7547e74d6460b9275 | 6a5e6547c4aaf9a1fc2cb8ed49fa5fd54ad7c351 | refs/heads/master | 2023-03-11T20:22:44.770520 | 2021-02-22T17:47:58 | 2021-02-22T17:47:58 | 340,362,356 | 2 | 69 | MIT | 2021-03-03T17:16:38 | 2021-02-19T12:27:01 | HTML | UTF-8 | Python | false | false | 168 | py | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(Cart)
admin.site.register(CartItem)
admin.site.register(Order)
| [
"500077185@stu.upes.ac.in"
] | 500077185@stu.upes.ac.in |
64547fc947b04b977f1f3b6781322b2e9c136185 | 45da9cd96c91be944ecbd0d5b0b1a7dfc975ed8f | /octavia/tests/unit/api/v2/types/test_health_monitors.py | d4a706f7cca992d2bc714d30f654a00078b0a461 | [
"Apache-2.0"
] | permissive | mail2nsrajesh/octavia | 7635be2f69de18c1d10d218c3c2f3122f343490a | 7466016ae982af2a560a94327f9e63a7e7151cc5 | refs/heads/master | 2023-08-28T15:22:00.984583 | 2017-06-29T22:04:35 | 2017-06-29T22:04:35 | 96,141,893 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,946 | py | # Copyright 2014 Rackspace
#
# 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 agree... | [
"flux.adam@gmail.com"
] | flux.adam@gmail.com |
ce730cf624457dbefcf7601c397a5f443a058437 | 5f3c8eddb8c5a14fb3b5931f332d401207666036 | /src/core/prometheus/server/multiserver.py | dd17e6f81fe23066c61aa76845e3af8a1a2d5313 | [
"Apache-2.0"
] | permissive | hwinther/lanot | dec8fe48efb6245af009bedf65b2bc089e92efa0 | f6700cacb3946535081624467b746fdfd38e021d | refs/heads/master | 2021-03-24T12:02:47.530833 | 2019-05-01T11:56:05 | 2019-05-01T11:56:05 | 91,605,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | # coding=utf-8
import gc
gc.collect()
class WrappedServer(object):
def __init__(self, server, kwargs):
self.server = server
self.kwargs = kwargs
class MultiServer(object):
def __init__(self):
self.wrapped_servers = list()
def add(self, server, **kwargs):
self.wrapped_se... | [
"hc@wsh.no"
] | hc@wsh.no |
d3b5341008c433c4c9e272a4682211eb0a7769b7 | b993df6e8d563a75ea6f6ce40a41aa3e59675dbf | /20190826/swea 1959 teacher.py | fda05257747cebbaa7d780eed6d9350a18fa3e62 | [] | no_license | BuankerC/projectswea | 7d6a5f35b73e553037efd01d6a57811a9778834d | ea169d2352f3785ff2ce47475d203c3f751716cb | refs/heads/master | 2020-07-03T11:31:43.283821 | 2020-01-04T03:19:25 | 2020-01-04T03:19:25 | 201,892,552 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | def f(X, Y): # X 긴 리스트, Y 짧은 리스트
maxV = 0
for i in range(0, len(X)-len(Y)+1): # 긴 리스트에서 곱의 합을 구할 구간의 시작
s = 0
for j in range(0, len(Y)): # 짧은 리스트의 인덱스
s += X[i+j]*Y[j]
if maxV < s:
maxV = s
return maxV
T = int(input())
for tc in range(1, T+1):
N, M = map(i... | [
"ergaster91@gmail.com"
] | ergaster91@gmail.com |
8abdea02a3e0be361bce98471f2e44687fb8b1f8 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/costmanagement/azure-mgmt-costmanagement/generated_samples/mca_billing_account_query_grouping.py | 3e3dffe50f130a730bac03849e93ecc7ec43a642 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,873 | 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"
] | Azure.noreply@github.com |
9230dacc7da1f64be7a93e490cfe38d4a197efb9 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_1_1/IvanJobs/A.py | cdbbafacd6ac8a847e937d62c39bffd9717cbf23 | [] | 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 | 530 | py | in_file = 'A-large.in'
out_file = 'A-small-attempt0.out'
def solve(fin, fout):
T = int(fin.readline().strip())
for _t in range(1, T + 1):
S = list(fin.readline().strip())
N = len(S)
C = [S[0],]
for i in range(1, N):
if S[i] >= C[0]:
C.ins... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
53b85586e8e6200bf65b2c761bf26cd0697947c3 | 3e276ce46afcdaf365fd62b45ceba19327535f14 | /src/plugins/github/libs/repo.py | bcb8e7fb11a49342478d116e5e4c779dd2d7f605 | [
"MIT"
] | permissive | 17Y9E81/QQ-GitHub-Bot | 1ca28ccc4b1a2bbbbb24419271389599dcd8ceb4 | 35c20d28aafaedc1813c6213ede9f2f51e56d5a2 | refs/heads/master | 2023-07-13T12:26:33.201661 | 2021-08-25T09:17:20 | 2021-08-25T09:17:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@Author : yanyongyu
@Date : 2021-03-12 15:36:14
@LastEditors : yanyongyu
@LastEditTime : 2021-06-15 22:16:20
@Description : None
@GitHub : https://github.com/yanyongyu
"""
__author__ = "yanyongyu"
from typing import Optional
from src... | [
"yanyongyu_1@126.com"
] | yanyongyu_1@126.com |
c20cc8afb23cffd3e7ae7a58f51025f5392d97e7 | 8a1686aeeefa80afeb0aa9f45ed72a75883458c4 | /dit/other/tests/test_lautum_information.py | 704b2bffab2cb42985e37083b41e312dfa12d31b | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | heleibin/dit | 70afd57f31be346e48b9b28c67fd6e019132ac36 | ebd0c11600e559bf34cf12a6b4e451057838e324 | refs/heads/master | 2020-09-27T07:42:15.991500 | 2019-11-23T06:10:11 | 2019-11-23T06:10:11 | 226,466,522 | 1 | 0 | BSD-3-Clause | 2019-12-07T06:26:50 | 2019-12-07T06:26:50 | null | UTF-8 | Python | false | false | 550 | py | """
Tests for dit.multivariate.lautum_information.
"""
from __future__ import division
import pytest
from dit import Distribution as D
from dit.other import lautum_information as L
def test_lm1():
""" Test L """
outcomes = ['000', '001', '010', '011', '100', '101', '110', '111']
pmf = [3/16, 1/16, 1/16... | [
"ryangregoryjames@gmail.com"
] | ryangregoryjames@gmail.com |
354fd35838836b5e7f00b6bfabc282a025f8a154 | c6e23f02b28604d43ad37cb339738560e8fefdee | /python3/python_open_file.py | b9b0275a6444dabcc5ba7fdefa3314ebc9c11899 | [] | no_license | testdata6/python-test | 5fcf3449c3ed84be3f0d526048bb2a26baf4fa7f | 3539ddfc70416943b28691c2cac9f7f03aad5991 | refs/heads/master | 2020-04-09T07:07:26.503612 | 2019-10-02T10:57:17 | 2019-10-02T10:57:17 | 160,141,238 | 0 | 3 | null | 2019-10-02T10:57:19 | 2018-12-03T06:10:20 | Python | UTF-8 | Python | false | false | 1,587 | py | #!/usr/bin/python
## Reading files
## Use open() function to read your files from the outside of python.
## We can open this file with below modes
## r = read the information
## w = write the information
## a = Append information
## r+ = read and write
## close() Function is use to close your open file.
#--------... | [
"amit.ganvir6@gmail.com"
] | amit.ganvir6@gmail.com |
1c20b1148f8f1df51f01782f03d855c1f2c26a1b | 82aace1431e0af949b1294d979a16f8dc18f48c2 | /Python_OOP_Softuni/Decorators_Exercises/venv/even_params.py | 9ac76d3d246628be691e00ddf5d93d62b584cc0b | [
"MIT"
] | permissive | borisboychev/SoftUni | 6778450417f889f8e89c709897b9e26c7129dbf6 | 22062312f08e29a1d85377a6d41ef74966d37e99 | refs/heads/master | 2023-03-27T13:11:17.378197 | 2021-03-26T09:14:25 | 2021-03-26T09:14:25 | 295,463,442 | 1 | 0 | null | 2020-10-12T12:54:13 | 2020-09-14T15:46:12 | Python | UTF-8 | Python | false | false | 520 | py | def even_parameters(func):
def wrapper(*args):
evens = [x for x in args if isinstance(x, int) and x % 2 == 0]
if len(evens) != len(args):
return f"Please use only even numbers!"
return func(*args)
return wrapper
@even_parameters
def add(a, b):
return a + b
print(add(2, ... | [
"borisboychev007@Gmail.com"
] | borisboychev007@Gmail.com |
a956f55dd99c58bf49160ba1899bf027d6403a56 | 4e006370c50da435941297e940b742d5c5ef124c | /reference-code/puppy/model/query.py | 2afd810ab94bac1c6c14627b11ba119b5a4f29ef | [
"MIT"
] | permissive | Granvanoeli/ifind | 12328bec166483f2c6a0c29d2026bfca0097bb53 | ed72aee466649bd834d5b4459eb6e0173df6e2ec | refs/heads/master | 2021-01-17T23:16:39.122348 | 2015-03-11T11:37:35 | 2015-03-11T11:37:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,659 | py | # -*- coding: utf8 -*-
import urllib
class Query(object):
"""
OpenSearch Query.
Models an OpenSearch Query element.
See: http://www.opensearch.org/Specifications/OpenSearch/1.1#OpenSearch_Query_element
"""
def __init__(self, search_terms):
"""
Constructor for Query.
Paramete... | [
"leifos@acm.org"
] | leifos@acm.org |
34885a081c4a4f125fe7154617bfd4f10dd4e75c | ff294d3e93cba8d03bfc7ac9e3d99e8a7d04acb4 | /wukong.py | 7be67d3e98163eb46ca73e328417b6b836b08235 | [
"MIT"
] | permissive | weixiaopassking/wukong-robot | 65dd1aa2822bee112ec2611af2b20e6e68bcd8c8 | 3a9732472ec64504b2879ba8f47d73e1bac03612 | refs/heads/master | 2020-06-02T11:11:28.663600 | 2019-02-23T13:24:19 | 2019-02-23T13:24:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,641 | py | # -*- coding: utf-8-*-
from snowboy import snowboydecoder
from robot import config, utils, constants, logging, statistic, Player
from robot.Updater import Updater
from robot.ConfigMonitor import ConfigMonitor
from robot.Conversation import Conversation
from server import server
from watchdog.observers import Observer
f... | [
"m@hahack.com"
] | m@hahack.com |
0c16a7a90a73e965be94888d55b81d775af1d692 | c1267fbec95318184e7388cddf9b7085f797d514 | /2022/11 November/db11292022.py | 24d6448cf5f12453bf1a06dd12662031c34363b4 | [
"MIT"
] | permissive | vishrutkmr7/DailyPracticeProblemsDIP | 1aedfd2e173847bf22989a6b0ec550acebb2bd86 | 2c365f633a1e1bee281fbdc314969f03b17ac9ec | refs/heads/master | 2023-05-31T23:49:52.135349 | 2023-05-28T09:32:12 | 2023-05-28T09:32:12 | 199,596,248 | 10 | 4 | MIT | 2022-11-02T21:31:59 | 2019-07-30T07:12:46 | Python | UTF-8 | Python | false | false | 1,371 | py | """
You are Given an image represented as a matrix. Each value in the matrix represents the color of
an individual pixel. Given a new color represented as an integer and a starting row and column,
transform every adjacent pixel to the starting pixel that has the same color to the new color.
Note: This is effectively im... | [
"vishrutkmr7@gmail.com"
] | vishrutkmr7@gmail.com |
7a72814e45a60165eb83e2f468fe15e8a6e6f252 | 02952fc67147a2f11a9ed8c4eb29210bec5672ed | /business/service/controllers/asset.py | f8689535b840944700446821a8c74e7c96365255 | [] | no_license | cuijianzhe/cow | b110a70398b09a401dadc7d3ed24dfe2bae50f5b | 3539cab6e73571f84b7f17391d9a363a756f12e1 | refs/heads/main | 2023-06-04T10:33:33.975885 | 2021-06-19T10:40:36 | 2021-06-19T10:40:36 | 340,634,448 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,738 | py | from django.db import transaction
from django.db.models import Q
from base import errors
from base import controllers as base_ctl
from business.service.models import ServiceAssetModel
from asset.manager.models import AssetModel
def create_service_asset(obj_id, asset_id, operator=None):
'''
创建服务关联资产模... | [
"598941324@qq.com"
] | 598941324@qq.com |
df96f22537c11dc40db74f536f445dbf791445d9 | b1bc75cd16aaf393920c4b49f19696c14e762a4d | /src/Comprehensions_Exercise/08_Heroes_Inventory.py | 71fa4895f59a7ae8aaccaae8b621e4efd45def4b | [] | no_license | ivelinakaraivanova/SoftUniPythonAdvanced | 848ef5bd4332438a8b061ff5fb2d425103a1d4a4 | 0a90f30b724f716303dc33b2a6a6234f78218c5e | refs/heads/main | 2023-01-08T19:03:15.719055 | 2020-11-08T12:25:10 | 2020-11-08T12:25:10 | 311,052,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | names = input().split(", ")
inventory = {name: {} for name in names}
while True:
info = input()
if info == "End":
break
else:
split_info = info.split("-")
name = split_info[0]
item = split_info[1]
cost = int(split_info[2])
if item not in inventory[name]:
... | [
"73067985+ivelinakaraivanova@users.noreply.github.com"
] | 73067985+ivelinakaraivanova@users.noreply.github.com |
9b7f78505b524d6179cf5728fe0c1145ea7b6752 | d8346eaf1c910ff02c7b243692a2766b8b089f06 | /for-post/python-standard-library-inspect/s1-is-what/isfunction.py | 7024a5e72808a4b90f8fa453d4d5dbed0ed797ee | [] | no_license | dustinpfister/examples-python | 55304c99ba3af82cd8784ee98745546632155c68 | a9910ee05d4df524f951f61b6d9778531a58ccbf | refs/heads/master | 2023-03-06T21:10:18.888654 | 2021-02-26T20:32:52 | 2021-02-26T20:32:52 | 318,595,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | import inspect
def foo():
return 'bar'
print(inspect.isfunction(foo)) # True
print( inspect.isfunction('') ) # False
print( inspect.isfunction(42) ) # False
print( inspect.isfunction([]) ) # False
| [
"dustin.pfister@gmail.com"
] | dustin.pfister@gmail.com |
b26d9dd1c406f50cbc795ab1b824165b0d90bd8e | 4c7914bf0eb52f2fe5dab70fa630a322a9449e05 | /flask_web_api/todo-api/flask/Lib/site-packages/pip/_vendor/distlib/version.py | 17db973c32a62a00a6b5d3e8e2b53541535e715d | [] | no_license | xhongc/pythonCrawl | f334d737326a47782d2533c4db23734729f13099 | a38e59496dd78b6e070ea6882043b1744190103e | refs/heads/master | 2022-12-10T01:22:01.608193 | 2020-01-12T09:43:19 | 2020-01-12T09:43:22 | 93,115,695 | 4 | 5 | null | 2022-11-22T02:36:28 | 2017-06-02T01:47:22 | Python | UTF-8 | Python | false | false | 23,715 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2012-2016 The Python Software Foundation.
# See LICENSE.txt and CONTRIBUTORS.txt.
#
"""
Implementation of a flexible versioning scheme providing support for PEP-440,
setuptools-compatible and semantic versioning.
"""
import logging_t
import re
from .compat import string_types... | [
"408737515@qq.com"
] | 408737515@qq.com |
ce0b323cb50ab3b2911cba7b87a7286982cf0a08 | 85f5dff291acf1fe7ab59ca574ea9f4f45c33e3b | /api/tacticalrmm/accounts/migrations/0020_role_can_manage_roles.py | 2768c2e431be1755bae81a13959ab0f191794daa | [
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sadnub/tacticalrmm | a4ecaf994abe39244a6d75ed2166222abb00d4f4 | 0af95aa9b1084973642da80e9b01a18dcacec74a | refs/heads/develop | 2023-08-30T16:48:33.504137 | 2023-04-10T22:57:44 | 2023-04-10T22:57:44 | 243,405,684 | 0 | 2 | MIT | 2020-09-08T13:03:30 | 2020-02-27T01:43:56 | Python | UTF-8 | Python | false | false | 387 | py | # Generated by Django 3.2.1 on 2021-05-11 17:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0019_user_role'),
]
operations = [
migrations.AddField(
model_name='role',
name='can_manage_roles',
... | [
"dcparsi@gmail.com"
] | dcparsi@gmail.com |
70c795892317f9d87e01e06f716470718f0d8793 | 2305ce053d16652d31823bd07faf38553b4f9b63 | /books/AutomateTheBoringStuffWithPython/Chapter15/P06_multithreading.py | 07eaa3a08feacddc40392fc2cca9fa838ed80fa3 | [
"MIT"
] | permissive | leihuagh/python-tutorials | cff3c5e250a152252d4b725bca19f55721483249 | 33831b983d7bd1491e367b6c7654e687d5ba709b | refs/heads/master | 2020-03-29T17:59:31.226400 | 2018-09-24T08:41:26 | 2018-09-24T08:41:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | # This program uses the threading module to manipulate threads
import threading
# Passing Arguments to the Thread's Target Function
threadObj = threading.Thread(target=print, args=['Cats', 'Dogs', 'Frogs'], kwargs={'sep': ' & '})
threadObj.start()
| [
"jose@JoseALerma.com"
] | jose@JoseALerma.com |
fff3485b667977e7f7ca2a6ff3f4a59c0275e427 | fde4ec12ffb460d8c952923571c25ff7e231e274 | /lib/support.py | 86fe69ac2a2e6a77842060b848371d5780cefead | [] | no_license | alexdawn/final-lib-mod-tools | 0b8188c44a053acb90ab5d5ab3156f97beb0d636 | 3ba136fee9db43237e87eb48724f1a2aff02fafb | refs/heads/main | 2023-05-06T11:29:41.450438 | 2021-05-22T16:32:47 | 2021-05-22T16:32:47 | 347,744,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,553 | py | from utilities import check_eof
from flags import nationalities, unit_types, support_flags
def read_support(file):
supports = []
header = file.read(13)
if header != b'SUPPORT\x00\x001.0\x00':
raise RuntimeError("File is not a SUPPORT.DAT")
count = int.from_bytes(file.read(4), 'little')
fo... | [
"al_4242@hotmail.co.uk"
] | al_4242@hotmail.co.uk |
8d07e5610c20f8a30a00db726be0afc5b8e0e99d | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/arc087/C/2448233.py | 0025206cebd9820324b3c8fdd297e25509fe70e7 | [] | 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,016 | py | N, L = map(int, input().split())
make = lambda:[None, None, 0]
root = make()
def construct(s):
n = root
for i in s:
if n[i] is None:
n[i] = n = make()
else:
n = n[i]
n[2] = 1
for i in range(N):
s = map(int, input())
construct(s)
caps = {}
... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
28015851dc7482ba551b07fe5e664bf6037e2d3b | 633ab8880dc367feefdb6ef565ed0e70a4094bc1 | /10001-11000/10998.py | 3131629d360c36ea51689e91ebb58cea9811362e | [] | no_license | winston1214/baekjoon | 2e9740ee2824d7777f6e64d50087b5c040baf2c6 | 20125255cd5b359023a6297f3761b2db1057d67d | refs/heads/master | 2023-03-04T09:07:27.688072 | 2021-02-16T13:51:49 | 2021-02-16T13:51:49 | 284,832,623 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | # @Author YoungMinKim
# baekjoon
a, b = map(int, input().split())
print(a*b) | [
"winston1214@naver.com"
] | winston1214@naver.com |
d1b020ece21f7ce8853640f57ddbd7c5ce371652 | 9aa06834320de94c68a43c6a211dde044c25bee2 | /lessons/python/lesson-4/tic-tac-toe.py | 2897d9f2406a7a784ac8e626e34280f1d6b628cb | [] | no_license | airportyh/begin-to-code | 7624728fa7ae916488383a1bf2e000b734af549b | 3ad315548d84d68186b29b966187b2baafb3336d | refs/heads/master | 2021-01-22T12:39:01.365091 | 2018-05-18T21:15:22 | 2018-05-18T21:15:22 | 102,354,678 | 0 | 1 | null | 2018-10-23T11:33:59 | 2017-09-04T11:34:14 | JavaScript | UTF-8 | Python | false | false | 99 | py | board = [
[' ', ' ', ' '],
[' ', ' ', ' '],
[' ', ' ', ' ']
]
while True:
print()
| [
"airportyh@gmail.com"
] | airportyh@gmail.com |
8d2737a017cfb3ed8e38396bf711a649d34cd224 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/pybites/intermediate/290_v2/test_class_rosters.py | 867ffcc720b31176660563cf54d6c02a576c0193 | [] | 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 | 1,294 | py | # _______ p__
#
# ____ ? _______ ?
#
# full """
# 17409,"Matheson, Rick",,,,,,,,,,
# 36283,"Jones, Tom",SCI09-4 - SU,MATH09-2 - PH,TA09-1 - AB,IS09-4 - LM,SCI09-3 - NdN,MATH09-2 - RB,DE09-3 - KmQ,ENG09-3 - KaR,PE09-3 - PS
# 99415,"Blake, Arnold",,,,,,,,,,
# """ # noqa E501
# p.. """
# 17409,"Jones, Tom",,,,,,,,,,
# 17... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
67079c5188c8255386f1a779167f04afdd8b0222 | a5103b7d5066138ac1a9aabc273361491a5031cd | /daily/8/pytorch_tutoral/nmt/utils.py | 18f8ce03f52f5026e6e9c64dfede2228fae0242d | [] | no_license | mckjzhangxk/deepAI | 0fa2f261c7899b850a4ec432b5a387e8c5f13e83 | 24e60f24b6e442db22507adddd6bf3e2c343c013 | refs/heads/master | 2022-12-13T18:00:12.839041 | 2021-06-18T03:01:10 | 2021-06-18T03:01:10 | 144,862,423 | 1 | 1 | null | 2022-12-07T23:31:01 | 2018-08-15T14:19:10 | Jupyter Notebook | UTF-8 | Python | false | false | 1,250 | py | import torch
def subseqenceMask(x):
'''
x:(N,T)
return:
(1,T,T)
'''
T=x.size(-1)
return torch.tril(torch.ones((T,T))).to(x.device).unsqueeze(0).byte()
def standardMask(x,paddingidx):
'''
x:(N,T)
paddingidx:set coresponding mask=0 when occur
paddingidx
return:(... | [
"mckj_zhangxk@163.com"
] | mckj_zhangxk@163.com |
9b7bcbbd5ad71852ef309eabb6c4791ae139d2ec | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R2/benchmark/startQiskit243.py | fd8225ab38340539504426ed59c0d2a4ae4171d8 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,565 | py | # qubit number=3
# total number=48
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
7e348e9e9eefeca6a65cfeb167a6469c154902b8 | 6f05f7d5a67b6bb87956a22b988067ec772ba966 | /data/train/python/66188be9f74aff684d30eb43f897a3a8f4f5af3aMultipleBrokersVirtualTopic.py | 66188be9f74aff684d30eb43f897a3a8f4f5af3a | [
"MIT"
] | permissive | harshp8l/deep-learning-lang-detection | 93b6d24a38081597c610ecf9b1f3b92c7d669be5 | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | refs/heads/master | 2020-04-07T18:07:00.697994 | 2018-11-29T23:21:23 | 2018-11-29T23:21:23 | 158,597,498 | 0 | 0 | MIT | 2018-11-21T19:36:42 | 2018-11-21T19:36:41 | null | UTF-8 | Python | false | false | 3,763 | py | #!/usr/bin/env python
# Massimo Paladin
# Massimo.Paladin@cern.ch
import os
from MultipleProducerConsumer import MultipleProducerConsumer, TimeoutException
import sys
import time
from utils.Timer import Timer
import logging
logging.basicConfig()
log = logging.getLogger(__file__)
class MultipleBrokersVirtualTopic(Mu... | [
"aliostad+github@gmail.com"
] | aliostad+github@gmail.com |
5e6ec243dd20422d54285f93ee30bdd41b8f52bb | 73e147e1d49656fafba5d4bf84df5ded2c4dca73 | /team_9/cocos/test/test_scene_add_rotated.py | 6147c4160ead9a0f710d5cc59d65fce542588dd8 | [
"LGPL-2.1-only",
"CC-BY-NC-4.0",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-proprietary-license",
"CC-BY-NC-SA-2.0",
"BSD-3-Clause"
] | permissive | Donnyvdm/dojo19 | 2278747366c57bfc80eb9ee28ca617ec0a79bae3 | 3cf043a84e3ad6d3c4d59cd9c50b160e1ff03400 | refs/heads/master | 2020-07-26T12:22:15.882800 | 2019-09-15T20:34:36 | 2019-09-15T20:34:36 | 208,642,183 | 1 | 0 | BSD-3-Clause | 2019-09-15T18:57:53 | 2019-09-15T18:57:52 | null | UTF-8 | Python | false | false | 1,083 | py | from __future__ import division, print_function, unicode_literals
# This code is so you can run the samples without installing the package
import sys
import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
#
testinfo = "t 0.1, s, q"
tags = "Scene, rotation"
import cocos
from cocos.director import... | [
"a.campello@wellcome.ac.uk"
] | a.campello@wellcome.ac.uk |
a03527cfea5f7c60f818ab1ab24315d3cf61bff2 | 7554a16508c7f57afe7e99a0ee1ddec5a7150018 | /test/email_tut.py | 65d4c1db9959fd303f315fb6fd5d25ac514706c0 | [] | no_license | csrgxtu/Hummable | 05414f6c8bc856d10d39af9997029f04293c79a9 | 17444c3f9a98149cf409fa72d3dc710e3957bf9f | refs/heads/master | 2021-01-23T00:14:46.615266 | 2017-04-13T16:36:26 | 2017-04-13T16:36:26 | 85,707,147 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,264 | py | import imaplib, struct, time
import email as Email
class Mail():
def __init__(self):
self.user = '*'
self.password = 'fuck'
# self.ser = serial.Serial('/dev/tty.usbmodem621', 9600)
self.M = imaplib.IMAP4_SSL('imap.gmail.com', '993')
self.M.login(self.user, self.password)
def get_emails(self, email_ids):
... | [
"1246506786@qq.com"
] | 1246506786@qq.com |
5d5b6f3ee3813a35cf978786bddba84d270686ee | 7a3389ad132779916574091e3b909fed0b93ace7 | /pom/asker/asker_home_page.py | 2d9a3b14e47f57b210bdfa24a3a7ed1c9f9eef2e | [] | no_license | bomcon123456/GI_TestAutomationOnboard | 793f594e5209cff365d3089d3103fe83af253114 | dc8b1c0a8a8ac05a23aefc42052251febc8160d5 | refs/heads/master | 2020-09-04T05:34:38.936616 | 2019-11-05T11:14:16 | 2019-11-05T11:14:16 | 219,668,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,314 | py | import time
from .base_asker_page import BaseAskerPage
class AskerHomePage(BaseAskerPage):
query_field = 'textarea[name=\'text\']'
start_query_button = '.gi-Button.gi-Button--accent.gi-Button--lg.u-width-100'
def login_and_query(self):
login_locator = '#test-login-button'
user = 'input[n... | [
"bomcon123456@gmail.com"
] | bomcon123456@gmail.com |
07fe709101a5b5e53ea109ffbf256a9ac0e00b8a | b76d4db5f996a431615af302a087bada90e7e802 | /Matplotlib_Learn/直方图均衡化.py | cab646d486f3d95af897b56a965c9317f805b3b4 | [] | no_license | budaLi/AI_learn | 1571b27810f004b4a00f9fe0f3dfe7472fa6ee65 | c8b1bf0d5dde7b02ff8b3d0121fd7b6b0ab06862 | refs/heads/master | 2020-09-20T05:42:55.405552 | 2019-12-03T04:42:13 | 2019-12-03T04:42:13 | 224,390,786 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,579 | py | # @Time : 2019/12/3 10:43
# @Author : Libuda
# @FileName: 直方图均衡化.py
# @Software: PyCharm
#直方图均衡化是指将一副图像的灰度直方图变平 使变换后的图像中每个灰度值的分布概率都相同
#目的是增强图像的对比度
# 如果一幅图像的灰度直方图几乎覆盖了整个灰度的取值范围,并且除了个别灰度值的个数较为突出,
# 整个灰度值分布近似于均匀分布,那么这幅图像就具有较大的灰度动态范围和较高的对比度,
# 同时图像的细节更为丰富。已经证明,仅仅依靠输入图像的直方图信息,就可以得到一个变换函数,
# 利用该变换函数可以将输入图像达到上述效果,该过程就是直... | [
"1364826576@qq.com"
] | 1364826576@qq.com |
dc2732a1e7b3eaca2dd341a07f466ef1b8af2a2a | f972e22df004b419d23b4b03d3c7e42e604a2e2b | /compute/wps/tests/test_backend_ophidia.py | e3b0b3f1d98a35e239a5cba845155eb7e3ba2d2b | [] | no_license | OphidiaBigData/esgf-compute-wps | 9ec663b1701f2336f08117a6fb0725d71adfe078 | 8dd26dde385fbe861c78e432e0954725d7bf9b18 | refs/heads/master | 2020-04-28T10:20:49.718253 | 2019-02-04T09:46:43 | 2019-02-04T09:46:43 | 175,198,536 | 0 | 0 | null | 2019-03-12T11:39:20 | 2019-03-12T11:39:19 | null | UTF-8 | Python | false | false | 1,713 | py | import unittest
import cwt
import mock
from django import test
from django.conf import settings
from wps import models
from wps import WPSError
from wps.backends import ophidia
#class OphidiaBackendTestCase(test.TestCase):
# fixtures = ['servers.json', 'users.json', 'processes.json']
#
# def setUp(self):
# ... | [
"boutte.jason@gmail.com"
] | boutte.jason@gmail.com |
aaf5614c687126755584a1a474e49dc112cd19ea | 2e6fbadca5364eb3c7271cef68c4745fde59259a | /dmu_utils/sqlachemy/types.py | 34b4f9958bf0fa293f9226789a8dca4379b3b6c9 | [] | no_license | dmugtasimov/dmu-utils | b25369c264f426800d916580af4ebb43c2c9f408 | c4f91fb43675a4bcc54cc7e5ea52a789e46f6439 | refs/heads/master | 2021-01-23T03:37:42.182066 | 2017-11-10T07:44:38 | 2017-11-10T07:44:38 | 86,107,402 | 0 | 0 | null | 2017-04-09T16:06:14 | 2017-03-24T20:21:17 | Python | UTF-8 | Python | false | false | 1,852 | py | from six import iteritems
from schematics import types as sch_types
from schematics.undefined import Undefined
from sqlalchemy import types as sa_types, Column
from dmu_utils.schematics.types import NonUnicodeStringType, JSONType, CustomDecimalType
SCHEMATICS_TO_SQLALCHEMY_TYPE_MAP = {
sch_types.StringType: sa... | [
"dmugtasimov@gmail.com"
] | dmugtasimov@gmail.com |
719073220d1c46074a1cbeaab8a80b7b66eec773 | c53b3e120c59557daaa2fa5b7626413105eb5965 | /tendenci/libs/storage.py | a9fe3d80c705775eb3eb7fb84553790eb2a4c435 | [] | no_license | chendong0444/ams | 8483334d9b687708d533190b62c1fa4fd4690f2c | f2ac4ecc076b223c262f2cde4fa3b35b4a5cd54e | refs/heads/master | 2021-05-01T03:59:18.682836 | 2018-07-23T06:33:41 | 2018-07-23T06:33:41 | 121,194,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | from django.conf import settings
from django.core.files.storage import get_storage_class
def get_default_storage():
"""
Get a default storage class.
"""
return get_storage_class(settings.DEFAULT_FILE_STORAGE)()
def get_static_storage():
"""
Get a static storage class.
"""
return get_st... | [
"chendong@shinezone.com"
] | chendong@shinezone.com |
acb3cf104d10bcfe884c85399d7498730baca759 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part004318.py | 06d607cf05ac691993249723299536d42c25a9a7 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,604 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.