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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
abbab8b1ae242f9577ad9cfd933cb3d9e11a23a7 | 4fcad69a9b2aec97fa29e0010d82f0f085cdc446 | /tsampi/pypy/lib-python/hypothesis/searchstrategy/strategies.py | 8fc6d3b5ec25c95b29d5376c79fb0a07fa0c58d4 | [] | no_license | tsampi/tsampi-0 | b64d4457f58314343630b04232c6ecc74c7bfda1 | 5e0183e80718d5668b4b5b96631853942e344b64 | refs/heads/master | 2021-01-19T04:35:05.640785 | 2016-09-12T18:34:25 | 2016-09-12T18:34:25 | 49,612,767 | 1 | 3 | null | 2016-03-25T10:35:41 | 2016-01-14T01:02:18 | Python | UTF-8 | Python | false | false | 10,227 | py | # coding=utf-8
#
# This file is part of Hypothesis (https://github.com/DRMacIver/hypothesis)
#
# Most of this work is copyright (C) 2013-2015 David R. MacIver
# (david@drmaciver.com), but it contains contributions by others. See
# https://github.com/DRMacIver/hypothesis/blob/master/CONTRIBUTING.rst for a
# full list of... | [
"tim@readevalprint.com"
] | tim@readevalprint.com |
5a14c5dba72623bdcdb313672fbc2daafe67e92c | d2f91b93ad42aaefa5fc315a9b3a5d45d07fa705 | /slbman/venv/Lib/site-packages/aliyunsdkcdn/request/v20141111/DescribeUserCustomerLabelsRequest.py | c8fc8cf6265ebce75fe8f06baa73ec2d8faee042 | [] | no_license | junlongzhou5566/managePlatform | 66cb5bc5b176147ff0038819924f7efa8df1d556 | 3201ba1a11b05c86db5f42aa9ca8eaf1cc20e216 | refs/heads/master | 2021-03-29T00:58:23.337808 | 2020-03-17T09:50:21 | 2020-03-17T09:50:21 | 247,910,365 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,446 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"645647713@qq.com@qq.com"
] | 645647713@qq.com@qq.com |
6f00a953f4fa99d16d0061f0dbc1fd5347fbf9e6 | 8e6005ff82a6b37b8c4e2a2fed5791323837d316 | /RecoBTag/SoftLepton/python/softElectronES_cfi.py | 52068ce86695633b8718d2cac44ad50b5f882ba5 | [] | no_license | CMSRA2Tau/gurrola-sl5-on-sl6 | 633050a5ec5fd1a81a15c2e1dcf6b4952b718a9e | f56a99cd7121bcbdf301c2bea9fe397a6b9ef6a1 | refs/heads/master | 2020-04-15T06:13:09.462508 | 2014-12-17T17:57:01 | 2014-12-17T17:57:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | import FWCore.ParameterSet.Config as cms
softElectron = cms.ESProducer("ElectronTaggerESProducer",
ipSign = cms.string("any")
)
| [
"andrew.m.melo@vanderbilt.edu"
] | andrew.m.melo@vanderbilt.edu |
8fac7d928bc84de65246152f01be74062f5b0855 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/ads/googleads/v6/googleads-py/google/ads/googleads/v6/errors/types/shared_set_error.py | 43a227580d39ce496d5ef5f7db138a54ebe3bf91 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
2abdd38dea5b5bf0ea675c26ada1586f3d849381 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03439/s570157916.py | 2dd9d9548f62cf052083d4afa720b0e4796ac96b | [] | 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 | 288 | py | n = int(input())
print(0)
L = R = input()
if L == "Vacant":
exit()
l = 0
r = n
while True:
m = (l + r) // 2
print(m)
M = input()
if M == "Vacant":
exit()
if (M == L) ^ ((m - l) % 2 == 1):
l = m
L = M
else:
r = m
R = M
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d338b9ceafda5116c1882198fe560b051f6d981b | 0061ed492e5c566c8b4c9bfef7218b79518803f2 | /python/generate-syllables.py | 8e2321abfb9f6341eebf9f438f4197141b7447dc | [
"CC-BY-4.0"
] | permissive | oneoffcoder/rpa | 4c04e811d22ec28fda17410be21100f27cc56aeb | cb0401e0c38652f998ca1b3bfe49d2084a279be7 | refs/heads/master | 2021-08-04T14:30:10.344198 | 2021-07-23T19:11:59 | 2021-07-23T19:11:59 | 225,539,119 | 11 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py |
import itertools
C = """
c, d, f, h, k, l, m, n, p, q, r, s, t, v, x, y, z,
ch, dh, hl, hm, hn, kh, ml, nc, nk, np, nq, nr, nt, ny, ph, pl, qh, rh, th, ts, tx, xy,
hml, hny, nch, nkh, nph, npl, nqh, nrh, nth, nts, ntx, plh, tsh, txh,
nplh, ntsh, ntxh
""".strip()
V = """
a, e, i, o, u, w,
ai, au, aw, ee, ia, oo, ua
"... | [
"vangjee@gmail.com"
] | vangjee@gmail.com |
7d5c1b44ad5a8a64637df9196e677c4996b7dde8 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/pybites/advanced/2_v3/regex.py | 274f3408853cc0593272182183e8fe7bd31963bf | [] | 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,621 | py | # _______ __
# ____ pp__ _______ pp__
#
# COURSE ('Introduction 1 Lecture 01:47'
# 'The Basics 4 Lectures 32:03'
# 'Getting Technical! 4 Lectures 41:51'
# 'Challenge 2 Lectures 27:48'
# 'Afterword 1 Lecture 05:02')
# TWEET ('New PyBites article: Module of the Week - Requests-cac... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
666f8021d9d99254a7a69fb2f55c76a50c261736 | 9d29861e44389e02762e6eb0457c6a415a54e26c | /samples/cloud_monitoring/util.py | 4a83bb03cbb3e7051ea9b5ba34375c07d307ea8c | [
"MIT"
] | permissive | itsmemattchung/pyrax | e787d67f8a79036834575f951f8c9e81d64d8b8f | e8eff127a5c9b6e64a9a42593d5e889c3c03f81d | refs/heads/master | 2021-01-18T10:14:31.752469 | 2015-05-16T16:44:35 | 2015-05-16T16:44:35 | 21,360,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,694 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c)2013 Rackspace US, 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.ap... | [
"ed@leafe.com"
] | ed@leafe.com |
91ffe969a51f4efe6edb0ebab8465bbed5120892 | bb35185816208aaeb73016b7380e01a2d6b86278 | /lists/migrations/0003_list.py | a52176c79813f19f0b541d426d089bd9720f86e7 | [] | no_license | the-fool/goat_driven_development | fa70dee5dc4dd48180ff6b5302e6ef966f2e207a | 0d55ca75e29b4a90c4e54500df88c4b23854ab81 | refs/heads/master | 2021-01-10T02:32:16.947425 | 2016-02-15T17:25:37 | 2016-02-15T17:25:37 | 51,492,427 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-02-12 16:08
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lists', '0002_item_text'),
]
operations = [
migrations.CreateModel(
... | [
"sketchbang@gmail.com"
] | sketchbang@gmail.com |
df3ff938a6aae98b752d7f465f52fbbab2f796c3 | 78d949674cd1e6261ee23372e6ff24897ba6bc9a | /user/migrations/0076_auto_20190310_0610.py | b9c330c739a0bf271a6f0b0cb827de029ff57fad | [] | no_license | Aravindhan-M/first_project | 60377a65dec777ce6a55a57358dccb96ef6c396d | 68f5815aa7a7d7fa695bb753b5312f66bb201fe1 | refs/heads/master | 2022-12-14T11:23:56.782700 | 2019-08-09T09:53:17 | 2019-08-09T09:53:17 | 185,782,547 | 2 | 0 | null | 2022-12-08T01:45:24 | 2019-05-09T11:02:59 | Python | UTF-8 | Python | false | false | 415 | py | # Generated by Django 2.1.5 on 2019-03-10 03:10
from django.db import migrations
import user.managers
class Migration(migrations.Migration):
dependencies = [
('user', '0075_merge_20190310_0257'),
]
operations = [
migrations.AlterModelManagers(
name='user',
manage... | [
"aravindhan@sayonetech.com"
] | aravindhan@sayonetech.com |
cd254179e403b8ca9bffcc103ef4ccd10d84811c | 75452de12ec9eea346e3b9c7789ac0abf3eb1d73 | /scripts/fuzzing/test/factory_fake.py | 629dfd2ea6fcc8d2db3e8661a32834b1072f5f8b | [
"BSD-3-Clause"
] | permissive | oshunter/fuchsia | c9285cc8c14be067b80246e701434bbef4d606d1 | 2196fc8c176d01969466b97bba3f31ec55f7767b | refs/heads/master | 2022-12-22T11:30:15.486382 | 2020-08-16T03:41:23 | 2020-08-16T03:41:23 | 287,920,017 | 2 | 2 | BSD-3-Clause | 2022-12-16T03:30:27 | 2020-08-16T10:18:30 | C++ | UTF-8 | Python | false | false | 3,616 | py | #!/usr/bin/env python2.7
# Copyright 2020 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import sys
import test_env
from lib.factory import Factory
from host_fake import FakeHost
from lib.buildenv import BuildEnv
from lib... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
78a8205c956d52789d3103e985ea37bea67890e7 | 53342cc883c88c50dd3a0dc1794e627f24771cc3 | /pysmi/codegen/jsondoc.py | d32d108d55fd220128f3acb2ae41cc0085dd0915 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | astralblue/pysmi | 567f5cb8de40a70895dce8db957b6aff9acabf51 | 09e74f62d2772a6b4753764b2ab50f8b6e124fb8 | refs/heads/master | 2020-06-11T10:39:31.108017 | 2016-12-04T11:04:41 | 2016-12-04T11:04:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,358 | py | #
# This file is part of pysmi software.
#
# Copyright (c) 2015-2016, Ilya Etingof <ilya@glas.net>
# License: http://pysmi.sf.net/license.html
#
import sys
import re
from time import strptime, strftime
try:
import json
except ImportError:
import simplejson as json
try:
from collections import OrderedDict
ex... | [
"etingof@gmail.com"
] | etingof@gmail.com |
1bbb76b0c9c1c2dacf2770af4281dbfd3e6218a5 | eee0b990f4b09c3418d9fdce6ef733cf6df99fc8 | /ansible_fsm/merge.py | 35069b8bbf7978681723f9d604514aa3a57bb7d4 | [
"Apache-2.0"
] | permissive | benthomasson/ansible-fsm | 6a463339e9ca82fbf3bf36c09b5a978baba1ba5a | fc82655c66040bfee1bb3b9defb1c93fbb0d0f97 | refs/heads/master | 2020-04-08T19:55:59.943230 | 2019-01-30T13:39:36 | 2019-01-30T13:39:36 | 159,676,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,819 | py | from collections import OrderedDict
from pprint import pprint
def _merge_list_of_named_items(merged, a, b, sub_merge_fn):
"""
Merge two lists by merging items with the same name.
"""
a_items = {x['name']: x for x in a}
b_items = OrderedDict()
for item_b in b:
b_items[item_b['name']] =... | [
"bthomass@redhat.com"
] | bthomass@redhat.com |
7f66c61d3053bbfe625c83c90d9fc0a051416dfb | 3947a6283fd42413dcf68aa3133a13208d17c50e | /FinderTemplate.py | 82d5d398b427b344db5ae7652429abc8c2a2a516 | [] | no_license | Mystified131/FindingStrings | 2d60ac114303c7ebdf54b43a1fecc86fb768228c | 8d3a91957d66c4760818279e99c7579565c19cf0 | refs/heads/master | 2020-05-20T15:55:08.417673 | 2019-05-13T14:49:28 | 2019-05-13T14:49:28 | 185,654,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | #This code imports the modules
import re
import requests
#This code retrieves a blob of text from the remote target
page = requests.get("http://www.thomasparksolutions.com").text
#This code makes a list of the substrings sought
#Replace the string Python with your desired regex
results = re.findall('(Thomas)',page)... | [
"mystifiedthomas@gmail.com"
] | mystifiedthomas@gmail.com |
7bceaa84866c21708fd5eef20d623749a08a1709 | 46e57ccd746256fa4e471e53d8c24ce285635f50 | /专题训练/数组/中等/3sum Closest.py | 709fa3231efcccf5eb486141b9cdf79c39ec31f7 | [] | no_license | sandwu/leetcode_problems | 6aea1f1837f5a8cfebc8f9c4cd8863081dfabb87 | b99ef39268c5713fae3dbbf0a5548ec1f5a7e434 | refs/heads/master | 2021-08-16T15:48:05.412320 | 2020-04-26T07:04:10 | 2020-04-26T07:04:10 | 168,446,663 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py |
class Solution(object):
"""
和15题的思路差不多,利用先求得三者的和,然后进行与target最小值的判断,保持当前最小值sum1,然后逐步推进数组,直到l>=r,所以是个O(n^2)
Runtime: 72 ms, faster than 75.37% of Python online submissions for 3Sum Closest.
Memory Usage: 11 MB, less than 100.00% of Python online submissions for 3Sum Closest.
"""
def threeSumClose... | [
"wuxinlingwxl@163.com"
] | wuxinlingwxl@163.com |
e6507917417689eff40a169e51c981fd54ab8bd0 | 63eb05febaac75f781a266d48d1cfff2debe64ea | /the_tale/game/bills/tests/test_building_destroy.py | 3062c4ba21cf15e1d64eaa62978d2dd74b318cee | [
"BSD-2-Clause-Views"
] | permissive | MadRiw/the-tale | 185ca33e410a59de63a594daf15fc8a5701338d2 | 1801beab2ed149556c0b3380e8adaaa976f74e6c | refs/heads/master | 2021-01-15T23:45:34.873857 | 2015-06-17T13:06:12 | 2015-06-17T13:06:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,269 | py | # coding: utf-8
import mock
import datetime
from the_tale.game import names
from the_tale.game.map.places.models import Building
from the_tale.game.map.places.prototypes import BuildingPrototype
from the_tale.game.map.places.storage import buildings_storage
from the_tale.game.map.places.relations import BUILDING_STA... | [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
77f81016ce59e4a6cc2945653f32bd7d8102a644 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02862/s826059466.py | e92f0b2b83b7a167580486ae93c9f6ca0120f581 | [] | 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 | 689 | py | import sys
# N = int(input())
X, Y = [int(i) for i in input().split()]
def cmb(n, r, mod):
if ( r<0 or r>n ):
return 0
r = min(r, n-r)
return g1[n] * g2[r] * g2[n-r] % mod
mod = 10**9+7 #出力の制限
N = 10**6
g1 = [1, 1] # 元テーブル
g2 = [1, 1] #逆元テーブル
inverse = [0, 1] #逆元テーブル計算用テーブル
for i in range( 2, N + ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c50b7650fc3230e08546d4b0bde6a864e55bb463 | e341bc45e2b889ae5f88576e6ef7c3e9c84a9f60 | /dojo/a/Python_OOP_Slack/Python_OOP/Human/server.py | 8c4b6aecd0d364dde3c270cacc0b19c2498b5d87 | [] | no_license | jhflorey/Web_Automation_Framework | 8efb5b91a9b4ef01f2c8bde0856ea8e85467ca1d | 41bc124d3eaf2985667afa399e4789c26de8744a | refs/heads/master | 2021-01-25T07:54:47.907619 | 2017-06-09T00:34:03 | 2017-06-09T00:34:03 | 93,682,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | import random
class Human(object):
def __init__(self, clan=None):
print 'New Human!!!'
self.health = 100
self.clan = clan
self.strength = 3
self.intelligence = 3
self.stealth = 3
def taunt(self):
print "You want a piece of me?"
michael = Human()
michael.taunt()
def attack(self)... | [
"jhflorey@gmail.com"
] | jhflorey@gmail.com |
24d8aaf428c14575bceaaa1eb0d3fc8997296484 | 902facd06f1f37f2a65a8e5c1b1a208a5429fba3 | /buildout-cache/eggs/collective.carousel-1.7-py2.7.egg/collective/carousel/tests/test_portlet.py | fc410d96dddb0797ded993e4d974bf2cf356cea6 | [] | no_license | Vinsurya/Plone | 8366e57383da90b61aea82ab08a90415d753a15b | 55e273528cd5db4bbd1929a23ef74c3d873ec690 | refs/heads/master | 2021-01-19T18:55:48.515216 | 2015-05-12T16:10:08 | 2015-05-12T16:10:08 | 33,325,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,484 | py | # Carousel is rendered through a viewlet in IAboveContent
# using items provided by the carousel provider added to the context
from collective.carousel.portlets import carousel
from collective.carousel.tests.base import TestCase
from plone.app.portlets.storage import PortletAssignmentMapping
from plone.portlets.interfa... | [
"sdnlab@sdnlab.incntre.iu.edu"
] | sdnlab@sdnlab.incntre.iu.edu |
a3f6e118f74a61067ad87c807459fdbef492e5fd | 118704d5cc395019a3afb2aa74e8dc87da7fb8ba | /errorhandles.py | f955ef33c1a989108c2f66122c20a5f7382e1771 | [] | no_license | daniemart5/PythangMan | a2a0eb546b9ce824009da796bccc5b63ca550d15 | 7a957f7218b9053306fd99eef91aa8e2c57ae8b8 | refs/heads/master | 2020-09-02T10:58:08.912103 | 2019-11-15T19:09:20 | 2019-11-15T19:09:20 | 219,206,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | try:
age = int(input('Age: '))
income = 20000
risk = income / age
print(age)
except ZeroDivisionError:
print("Age must be higher than 0")
except ValueError:
print('Invalid value') | [
"github email address"
] | github email address |
f015df5f2e90e880e6be266068df95216321a9fa | 4a42a8b32e2a79d598981141961396a6c2d625d2 | /dialogbot/views.py | 4d330c7a654e98a887491229c0105f322d53c20d | [] | no_license | sgmagar/DialogSlackBot | e851b2c44a11fd56b80c74e15b3dfb8fb8f74d22 | 89fddbacf58e6c8cf45d95d86411fd0668640c77 | refs/heads/master | 2022-12-15T22:46:53.536518 | 2018-07-08T04:03:41 | 2018-07-08T04:03:41 | 138,411,634 | 0 | 2 | null | 2022-12-08T02:13:27 | 2018-06-23T15:19:34 | Python | UTF-8 | Python | false | false | 4,922 | py | import json
import logging
from urllib.parse import urlencode
import os
import requests
from django.http import HttpResponse, JsonResponse
from django.views import View
from django.views.generic import TemplateView
from slackclient import SlackClient
from dialogbot.models import Team, Category
from .mixins import Sl... | [
"sp.gharti@gmail.com"
] | sp.gharti@gmail.com |
f9dcccc861d7d82429d1611cba13efbfed9c30d5 | 309ac0cd757422b77e2bd820205fcafd11216bc9 | /src/feature/BOB.py | 47be42cf04e31d7c9a3a4d911e57ef4b855d3cd2 | [
"Apache-2.0"
] | permissive | jainal09/speaker-recognition | 024722fc16c60833a20529fdd9d651ee607ba9d3 | 53b0b5a3a7d6134e9bf21dfa4c1a7519b8e3389f | refs/heads/master | 2020-09-04T17:28:46.365993 | 2019-11-05T19:16:03 | 2019-11-05T19:16:03 | 219,831,541 | 0 | 0 | Apache-2.0 | 2019-11-05T19:15:33 | 2019-11-05T19:15:32 | null | UTF-8 | Python | false | false | 993 | py | #!/usr/bin/env python2
# -*- coding: UTF-8 -*-
# File: BOB.py
# Date: Wed Oct 29 22:38:35 2014 +0800
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>
from utils import cached_func, diff_feature
import bob
import bob.ap
import numpy
@cached_func
def get_bob_extractor(fs, win_length_ms=32, win_shift_ms=16,
... | [
"ppwwyyxxc@gmail.com"
] | ppwwyyxxc@gmail.com |
e814636b3b0b7fc2d863355d0f65f5daf9722c50 | 482ec3480e8418dda62f85a5359e70c89256f1a8 | /pythonTutorial/drf_tutorial/quickstart/views.py | ca61c5364c666436720a5e36e5a295b7ce045e48 | [] | no_license | rajatgirotra/study | 84d319968f31f78798a56362546f21d22abd7ae7 | acbb6d21a8182feabcb3329e17c76ac3af375255 | refs/heads/master | 2023-09-01T20:48:31.137541 | 2023-08-29T01:41:17 | 2023-08-29T01:41:17 | 85,041,241 | 6 | 1 | null | 2023-05-01T19:25:38 | 2017-03-15T07:17:24 | C++ | UTF-8 | Python | false | false | 602 | py | from django.shortcuts import render
from django.contrib.auth.models import User, Group
from rest_framework import viewsets
from .serializers import UserSerializer, GroupSerializer
# Create your views here.
class UserViewSet(viewsets.ModelViewSet):
""" API Endpoint that allows users to be viewed and edited. """
... | [
"rajatgirotra@yahoo.com"
] | rajatgirotra@yahoo.com |
e0055c8917f50e0204eac439448028eb2c6d46c9 | d05c946e345baa67e7894ee33ca21e24b8d26028 | /web-scraping/pdf-url-extractor/pdf_link_extractor.py | f8ba7423e404f066582b76bc2e587b76fac36a74 | [
"MIT"
] | permissive | x4nth055/pythoncode-tutorials | 327255550812f84149841d56f2d13eaa84efd42e | d6ba5d672f7060ba88384db5910efab1768c7230 | refs/heads/master | 2023-09-01T02:36:58.442748 | 2023-08-19T14:04:34 | 2023-08-19T14:04:34 | 199,449,624 | 1,858 | 2,055 | MIT | 2023-08-25T20:41:56 | 2019-07-29T12:35:40 | Jupyter Notebook | UTF-8 | Python | false | false | 412 | py | import pikepdf # pip3 install pikepdf
file = "1810.04805.pdf"
# file = "1710.05006.pdf"
pdf_file = pikepdf.Pdf.open(file)
urls = []
# iterate over PDF pages
for page in pdf_file.pages:
for annots in page.get("/Annots"):
uri = annots.get("/A").get("/URI")
if uri is not None:
print("[+] U... | [
"fullclip@protonmail.com"
] | fullclip@protonmail.com |
397adeb4b7a56622f5af0d2c042b01dd33be81de | 14d8e090d540a2947ba71038390078d7783ff510 | /update/models.py | dabb8836578ee1835bce4b488ea09814ea5103b0 | [] | no_license | BrutyLi/osupf | 657d61c7e8e8711e50006944bfd675cb39bddedc | 5dc218a05a980755ea218bd5e4b3189096a68c71 | refs/heads/master | 2021-01-25T12:52:59.625225 | 2018-03-02T02:34:13 | 2018-03-02T02:34:13 | 123,520,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | from django.db import models
# Create your models here.
class hostInfo(models.Model):
hname=models.CharField(max_length=32,verbose_name='描述',blank=True)
hip=models.GenericIPAddressField(verbose_name='IPadd')
hcpu=models.CharField(max_length=8,verbose_name='cpu',)
hdisk=models.CharField(max_length=16,... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
f1eb78fa9b327850db28fbb286357a8dd27b0ee2 | 747febe786dd6b7fd6c63cfe73dbe3023354daa8 | /src/the_tale/the_tale/statistics/models.py | d416b459decf2bdf77f76b382d9135e4eca0ee66 | [
"BSD-3-Clause"
] | permissive | the-tale/the-tale | 4e4b8d91dc873a5fb935fe58e9721a877baa6d3f | e8450bd2332344da805b1851e728da5a3e5bf0ef | refs/heads/develop | 2023-08-01T13:53:46.835667 | 2022-12-25T18:04:56 | 2022-12-25T18:04:56 | 1,949,167 | 98 | 52 | BSD-3-Clause | 2023-02-15T18:57:33 | 2011-06-24T18:49:48 | Python | UTF-8 | Python | false | false | 465 | py |
import smart_imports
smart_imports.all()
class Record(django_models.Model):
date = django_models.DateTimeField(null=False)
type = rels_django.RelationIntegerField(relation=relations.RECORD_TYPE, db_index=True)
value_int = django_models.BigIntegerField()
value_float = django_models.FloatField()
c... | [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
c171379a40fd0890faefcc5b51ef17c8afb1c0e0 | 043160352216a7fc21be4c8a44507e00f523bf80 | /test/functional/test_framework/test_framework.py | 63c46950ceec5c0220df49ca42530135eac1aae5 | [
"MIT"
] | permissive | odinyblockchain/odinycoin | 5ef2a1bca374230882c91e8c6717bbb8faf889ad | 183751aac9357455913f1d8a415b1dcb04225ee0 | refs/heads/master | 2022-12-18T14:14:02.535216 | 2020-09-20T22:05:14 | 2020-09-20T22:05:14 | 295,208,711 | 0 | 2 | MIT | 2020-09-18T10:33:17 | 2020-09-13T18:06:52 | C++ | UTF-8 | Python | false | false | 49,828 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Base class for RPC testing."""
from enum import Enum
from io import BytesIO
import logging
import optp... | [
"71228635+odinyblockchain@users.noreply.github.com"
] | 71228635+odinyblockchain@users.noreply.github.com |
96ab3af6980eacbfc7d7b58bf47d470aa1ddfacf | 06add04cbcffada7085043a75a1565d0e01cafff | /notion_scripts/not_goals.py | 67c2cc703a4578364b23b72938d43c6cd2e0da0a | [] | no_license | josancamon19/productivity-apps-wrapper | 0c405726e9dbdc0de3db4f6e59d55f8e2e8f20ab | 7d99836bda716deca90f4592a95b84786a44dc9f | refs/heads/main | 2023-06-15T12:34:39.698296 | 2021-07-07T17:44:22 | 2021-07-07T17:44:22 | 374,472,485 | 22 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,944 | py | import os
import requests
from . import utils, unofficial_api_utils, not_todoist
from integrations.todoist import get_goals_sections,detail_completed_tasks
database_goals = os.getenv('NOTION_GOALS_DB')
def get_db_added_goals():
data = requests.post(f'{utils.base_url}databases/{database_goals}/query', json={}, h... | [
"joan.santiago.cabezas@gmail.com"
] | joan.santiago.cabezas@gmail.com |
d000e6a1545f8e7f4b807ad2095f24f6984d908d | 9b01f7d430f7ee87217618cfa4567f42635e8923 | /22-06-2017/cloudformation/nginx-demo-1/ansible/.env/lib/python2.7/site-packages/ansible/executor/play_iterator.py | 2c3559526d65be021933166f909601d279f584c3 | [] | no_license | awsusergroupsantiago/demos | ccb045545d2a407a39d865cf19800d2b6d284b8f | e7f0dc8d9a4e8f2547c33a5a294fd76bf3ac9c9c | refs/heads/master | 2022-04-30T23:43:30.646556 | 2020-08-08T01:35:40 | 2020-08-08T01:35:40 | 95,129,959 | 2 | 0 | null | 2022-03-29T21:54:09 | 2017-06-22T15:29:25 | Python | UTF-8 | Python | false | false | 27,214 | py | # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible 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 License, or
# (at your option) an... | [
"eduardo.miranda.becerra3@gmail.com"
] | eduardo.miranda.becerra3@gmail.com |
17c0f628eec50d0bb168010b4109176082c7f0e8 | 1ea0e2b4f064ba0de45a73c527ee89a36771e8fc | /src/sentry/south_migrations/0005_auto.py | da6dbb394a1b0bfafb965133f97ea71ddf694688 | [
"BSD-2-Clause"
] | permissive | atlassian/sentry | 6775e59c317f20f96982e91c2b3c88c02ecbb56b | b937615079d7b24dc225a83b99b1b65da932fc66 | refs/heads/master | 2023-08-27T15:45:47.699173 | 2017-09-18T22:14:55 | 2017-09-18T22:14:55 | 103,999,066 | 1 | 5 | BSD-3-Clause | 2023-04-01T07:49:37 | 2017-09-18T22:38:18 | Python | UTF-8 | Python | false | false | 6,423 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding index on 'GroupedMessage', fields ['status']
db.create_index('sentry_groupedmessage', ['status'])
de... | [
"dcramer@gmail.com"
] | dcramer@gmail.com |
441a838a11222598abb6d464a17d3eea057ef15f | aed3fa9b75944995f8441c28e3ef74cfe130a004 | /test/conftest.py | 1481114b302b275160a0f69af8d541512635c1af | [] | no_license | kziolkowska/PyEMMA_IPython | ca95fadc5cfa7c7808592668abd6b2e080498838 | 7105ec66091df3ff9c1a5f0c8babbc0ec1b3f104 | refs/heads/master | 2020-12-24T22:21:03.405851 | 2015-02-26T09:07:18 | 2015-02-26T09:07:18 | 31,358,905 | 0 | 0 | null | 2015-02-26T09:02:18 | 2015-02-26T09:02:18 | null | UTF-8 | Python | false | false | 291 | py | '''
Created on Jun 20, 2014
@author: marscher
'''
def pytest_pycollect_makeitem(collector, name, obj):
"""
this is a hook for pytest to enforce the dynamic generated testcases
of 'TestNotebooks' are initialized.
"""
if name == 'TestNotebooks':
obj.setUpClass()
| [
"m.scherer@fu-berlin.de"
] | m.scherer@fu-berlin.de |
d1947ffbf45071eabaa38c2962280ba3fd7b0196 | ff9fd1bae4ea538fcae66df96b4acc1abdef1556 | /fabnet/mgmt/mgmt_db.py | 84e7c574f548521ba85fe95e832c70da12c3d242 | [] | no_license | fabregas/fabnet | 640b6cf9d96ef477f8db5038881bd448dfcbc2a1 | 6ad7f0791ca0fd08dcbbfc49f785ef634e5fcffa | refs/heads/master | 2021-01-10T20:22:20.107342 | 2014-02-17T16:51:30 | 2014-02-17T16:51:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,142 | py | #!/usr/bin/python
"""
Copyright (C) 2013 Konstantin Andrusenko
See the documentation for further information on copyrights,
or contact the author. All Rights Reserved.
@package fabnet.mgmt.mgmt_db
@author Konstantin Andrusenko
@date July 24, 2013
This module contains the implementation of MgmtDatabaseManager ... | [
"kksstt@gmail.com"
] | kksstt@gmail.com |
4d6735177428f2b7d045beca5a3d4f61592dca17 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_1/gdnzik001/question3.py | 0e872bf0558184090e56ea1fc1a16f0480345517 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | #Zikho Godana GDNZIK001
#4 march 2014
#program to generate a spam message
first_name=input("Enter first name:\n")
last_name=input("Enter last name:\n")
money=eval(input("Enter sum of money in USD:\n"))
country=input("Enter country name:\n")
print("\nDearest ",first_name,"\nIt is with a heavy heart that I inform... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
1408f27ecce4aa24ccc4ea574ef3aeb35d24887f | 4b6046439b3411cbc30276e00ad712a3d4c95768 | /pysaga/commons.py | b09fb685312fab7a85a2babab18b4eda9a5bcd58 | [] | no_license | Aluriak/pysaga | 4c731a5d404d0ca0087997af4315e69ecf14fc37 | 54320e5b65a73e793ad18c306b9c004cf8cb0593 | refs/heads/master | 2020-03-30T00:09:21.380417 | 2018-09-27T13:21:22 | 2018-09-27T13:21:22 | 150,507,760 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | """Various general definitions.
"""
import re
from . import utils
TEMPLATE_PATH = 'sagas-mp3/{saga_name}/Textes/'
REFWORDS = 'REF', 'LOL', 'TRI', 'JDM'
REG_CHAPTER = re.compile(r"^Chapitre ([0-9]+) - (.+)$")
REG_CHARACTER = re.compile(r"^([A-Z0-9ÉÈÊÀÄÂÔÛÏ.,!?' -]+) : ?")
REG_LINE = re.compile(r"^([A-Z0-9ÉÈÊÀÄÂÔÛÏ.... | [
"lucas.bourneuf@laposte.net"
] | lucas.bourneuf@laposte.net |
3a99c35b78a898a0605d35c6f449c950a1532dc9 | 53e8c9feacc101f3bfefe013808a778c81a0aca7 | /my_words/nounce.py | b536f3cbe57a331ec82d779d2f32f15d3e6b3e04 | [] | no_license | chouchouyu/my_words | 0cc98c2b1e66b38c0311f871f390932215faecde | 2227fcb28bd49f2daca8fcf0bfa8645a95d434c9 | refs/heads/master | 2020-11-24T10:42:17.802396 | 2019-12-02T00:35:41 | 2019-12-02T00:35:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,580 | py | 英语词源字典
nounc
announce, 宣布
【发音释义】, [ə'naʊns]vt, 宣布, 述说, 预示, 播报vi, 宣布参加竞选, 当播音员
【结构分析】, announce = an(=ad, 去)nounce(报告)→宣布
词源解析, nounce←拉丁语nuntiare(报告, 叙述)←拉丁语nuntius(信使)
enunciate(宣布), renounce(宣布放弃), denounce(谴责), pronounce(发音, 宣判)
【衍生词】, announcement(宣布), announcer(广播员)
announce, 通知
前缀an同ad, 词根nounce, 通知, 见pron... | [
"iwtfagp@gmail.com"
] | iwtfagp@gmail.com |
b0ae0ec00f64dacd2002923982d4003e65fbdadf | d98fae9cd74992a2f81f8c267a71542475b27300 | /img_core/img_mvp/woot/apps/img/cpmath/setup.py | e5f56b50cfa997c4ee985bf49748913c5f251ce1 | [] | no_license | NicholasPiano/img-desktop | f516c4da8041aabe3cd4a1af24fdbc42eda105fa | 9a2eed6cc0d912b675d02d8b0b20f60a71a5b481 | refs/heads/master | 2021-01-23T13:17:49.601534 | 2015-10-07T11:28:25 | 2015-10-07T11:28:25 | 39,502,099 | 0 | 0 | null | 2015-10-07T11:28:26 | 2015-07-22T11:19:19 | Python | UTF-8 | Python | false | false | 4,197 | py | """setup.py - setup to build C modules for cpmath
CellProfiler is distributed under the GNU General Public License,
but this file is licensed under the more permissive BSD license.
See the accompanying file LICENSE for details.
Copyright (c) 2003-2009 Massachusetts Institute of Technology
Copyright (c) 2009-2015 Broa... | [
"nicholas.d.piano@gmail.com"
] | nicholas.d.piano@gmail.com |
eb229401f8c3da97149edefffe458e527e72e9ef | daee32bcc253773388d7bb9f171dc1f7f670b959 | /qkeras/qtools/config_public.py | b91118303c2a1c2311a0f1ca59040b038d304a76 | [
"Apache-2.0"
] | permissive | isabella232/qkeras | 888b9f2c14d48c5b309a9ba02b9b3b5683ca894f | 6790f78597313eaf51af4f4dd8947700c8611ded | refs/heads/master | 2023-03-09T14:00:48.789275 | 2020-09-25T06:29:37 | 2020-09-25T06:29:55 | 298,776,168 | 0 | 0 | Apache-2.0 | 2021-02-23T10:21:01 | 2020-09-26T09:01:23 | null | UTF-8 | Python | false | false | 1,541 | py | # Lint as: python3
# Copyright 2019 Google LLC
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
2f2fda6bb02e4e85836480bd1c827bc1e2f58350 | 22d68861e89f1090d3d248188e17fcca09bb3001 | /hpcc/2020-07-24--competition-evo-arch/gen-comp-exp-phase1.py | ecb31c956ce5573dd85394d8430de0e2919c03ba | [
"MIT"
] | permissive | amlalejini/Aagos | 87077694689a8b63aff452a60e05b078583dec1a | bb82da3a177fe467a912c9f44f516b445b4eba3b | refs/heads/master | 2021-05-24T14:25:21.107670 | 2021-05-13T22:12:47 | 2021-05-13T22:12:47 | 253,603,662 | 0 | 0 | MIT | 2020-04-06T20:05:15 | 2020-04-06T20:05:15 | null | UTF-8 | Python | false | false | 10,835 | py | '''
Generate slurm job submission script for 2020-05-18 -- environmental change rate experiment.
See 2020-05-18--env-chg-sweep/README.md for more details.
'''
import argparse, os, sys, errno, subprocess, csv
seed_offset = 970000
default_num_replicates = 100
job_time_request = "00:20:00"
job_memory_request = "2G"
job... | [
"amlalejini@gmail.com"
] | amlalejini@gmail.com |
c2773af266019d171d5db388a8485e13acd96789 | d2628b4562ec2f7815ae9a5af546a9fe56492ff3 | /sitch/sitchlib/config_helper.py | c94b725e51c79583c32dc5ae100c90651a40921a | [
"Apache-2.0"
] | permissive | mtigas/feed_builder | 6b5927e48a0d65d4a83830a99eda75decfb30202 | 59c65f50f221e170c229444fd8f3c7b3b1dce6a1 | refs/heads/master | 2021-01-11T14:02:44.662709 | 2017-06-20T23:57:32 | 2017-06-20T23:57:32 | 94,944,694 | 0 | 0 | null | 2017-06-20T23:53:53 | 2017-06-20T23:53:53 | null | UTF-8 | Python | false | false | 806 | py | import os
class ConfigHelper:
def __init__(self):
self.ocid_key = os.getenv("OCID_KEY")
self.base_path = "/var/feed/"
self.iso_country = "US"
self.twilio_sid = ConfigHelper.get_from_env("TWILIO_SID")
self.twilio_token = ConfigHelper.get_from_env("TWILIO_TOKEN")
self... | [
"ash.d.wilson@gmail.com"
] | ash.d.wilson@gmail.com |
b9ce33769d4545ddcaa1e2b7122e021dec4a6681 | 7c9173875ba6e20a9fc705753a5c553891d01a79 | /Python_Bilibili/同济子豪兄/zihaowordcloud/code/example6.py | 1722efd0b58e1763c9a8e46f96ad47fc63ebc500 | [] | no_license | zhy0313/children-python | 1df120930637b8bd320ab090ea784aab7b7cfed2 | 941e29d5f39092b02f8486a435e61c7ec2bdcdb6 | refs/heads/master | 2021-01-07T00:59:31.332746 | 2020-02-10T11:45:52 | 2020-02-10T11:45:52 | 241,533,568 | 0 | 1 | null | 2020-02-19T04:36:38 | 2020-02-19T04:36:37 | null | UTF-8 | Python | false | false | 1,035 | py | # 6号词云:乡村振兴战略中央文件(五角星形状)
# B站专栏:同济子豪兄 2019-5-23
# 导入词云制作库wordcloud和中文分词库jieba
import jieba
import wordcloud
# 导入imageio库中的imread函数,并用这个函数读取本地图片,作为词云形状图片
import imageio
mk = imageio.imread("wujiaoxing.png")
# 构建并配置词云对象w,注意要加scale参数,提高清晰度
w = wordcloud.WordCloud(width=1000,
height=700,
... | [
"baixuelin12hit@outlook.com"
] | baixuelin12hit@outlook.com |
a8639ef72bab2024a9a6515cc547b788964a64da | 788bdd9e443a571bc8262323425317015303cf1d | /p1522.py | 1aed2ee14ece3b5ccb7ddd473dcdf6620cf438ff | [] | no_license | qyx2018/Xiaojiayu | e07dd5480babafb5f1940a2032ef30a92c7331f2 | e7decd439ed95b5a6d3cf195444cabfedf0eff76 | refs/heads/master | 2020-03-11T06:21:27.609708 | 2018-04-17T01:33:40 | 2018-04-17T01:33:40 | 129,827,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | from tkinter import *
root = Tk()
s1 = Scale(root, from_ = 0, to = 42)
s1.pack()
s2 = Scale(root, from_ = 0, to = 200,orient = HORIZONTAL)
s2.pack()
def show():
print(s1.get(), s2.get())
Button(root, text = 'Position', command = show).pack()
mainloop() | [
"noreply@github.com"
] | qyx2018.noreply@github.com |
28c527fbe2a4759a8226f709c73a8b020425f06e | f87c86c4dcb9192717a06ec41caa5c49b1fd0201 | /adv/summer_verica.py | 1dd6707c1ca4334defc697de0b3bec11834d4fce | [
"Apache-2.0"
] | permissive | Caledor/dl | 5377982f31f0c1890aff487d5eefc1ffb6f7115f | fc5e9b6855afb40c4c499a70dfa0e0503e8c8f05 | refs/heads/master | 2023-04-01T19:15:04.372285 | 2021-03-28T23:25:06 | 2021-03-28T23:25:06 | 277,363,765 | 0 | 0 | Apache-2.0 | 2020-07-05T18:49:36 | 2020-07-05T18:49:36 | null | UTF-8 | Python | false | false | 321 | py | from core.advbase import *
class Summer_Verica(Adv):
def prerun(self):
self.s2.autocharge_init(self.s2_autocharge).on()
def s2_autocharge(self, t):
if self.s1.sp > self.s1.charged:
log("sp", "s2_autocharge", 1578)
self.s2.charge(1578)
variants = {None: Summer_Verica}... | [
"wildshinobu@gmail.com"
] | wildshinobu@gmail.com |
e7d4ce72e6fa92f7206ac7798833e5fd688d432e | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /5bYXQfpyoithnQisa_13.py | a15674c0b040fae09a272140048ddb56764fc393 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py |
def encode_morse(message):
char_to_dots = {
'A': '.-', 'B': '-...', 'C': '-.-.', 'D': '-..', 'E': '.', 'F': '..-.',
'G': '--.', 'H': '....', 'I': '..', 'J': '.---', 'K': '-.-', 'L': '.-..',
'M': '--', 'N': '-.', 'O': '---', 'P': '.--.', 'Q': '--.-', 'R': '.-.',
'S': '...', 'T': '-', 'U': '..-', 'V': '...-', ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
645619fc504e9d5a3b0b71b5a27481a3936dcb5c | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/CISCO-H320-DIAL-CONTROL-MIB.py | 03fbe47565d515a89302d026475c173ee9efa92c | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 12,710 | py | #
# PySNMP MIB module CISCO-H320-DIAL-CONTROL-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-H320-DIAL-CONTROL-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:42:22 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python versio... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
d4380185dc4b6ddf9ad0d4f353b0a695e968d5d4 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/consumption/v20180131/outputs.py | c66a207304ca209166f50facce58d6ca57713144 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 7,747 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
7c0ef510fdaeb63ff3582c9253c1ae34e03d982b | 66fe6eb64afeb7313a4c7685a8748455325b6726 | /918-maximum-sum-circular-subarray.py | 0150e754bb0889e9f423b95cd511f16e0fef3402 | [] | no_license | anantkaushik/leetcode | b54eb27b17ed95b02ab426392208c346f2d87aaa | 06f0a6dbff2e2062fa4568efa5f01ad982d6ac94 | refs/heads/master | 2022-03-07T18:21:35.881943 | 2022-02-23T12:27:24 | 2022-02-23T12:27:24 | 120,501,367 | 40 | 13 | null | 2019-10-11T11:07:22 | 2018-02-06T18:05:51 | Python | UTF-8 | Python | false | false | 1,949 | py | """
Problem Link: https://leetcode.com/problems/maximum-sum-circular-subarray/
Given a circular integer array nums of length n, return the maximum possible
sum of a non-empty subarray of nums.
A circular array means the end of the array connects to the beginning of the array.
Formally, the next element of nums[i] is ... | [
"anant.kaushik2@gmail.com"
] | anant.kaushik2@gmail.com |
63d843377be4bde15c3f3fabfa13e644d1cd9f48 | 4111ca5a73a22174f189361bef654c3f91c3b7ed | /Lintcode/Ladder_11_15_A/362. Sliding Window Maximum.py | 352cc5b57065b3b2edbc26517191dbbcd1fa9897 | [
"MIT"
] | permissive | ctc316/algorithm-python | 58b541b654509ecf4e9eb8deebfcbdf785699cc4 | ac4580d55e05e93e407c6156c9bb801808027d60 | refs/heads/master | 2020-03-16T06:09:50.130146 | 2019-08-02T02:50:49 | 2019-08-02T02:50:49 | 132,548,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,128 | py | from queue import Queue
from collections import deque
class MaxQueue:
def __init__(self, capacity):
self.capacity = capacity
self.que = Queue()
self.max_deque = deque()
def put(self, val):
if self.que.qsize() >= self.capacity:
self.pop()
self.que.put(val)
... | [
"mike.tc.chen101@gmail.com"
] | mike.tc.chen101@gmail.com |
a84ac7c91ffa178cf474ff9a25b396af980e9159 | 0a0efc02319e01b9393ac56e4bf144267510c148 | /submission/Softimage/Main/SoftimageToDeadline.py | 713f9a423a194b0596a7f491b05834492fb69944 | [] | no_license | applemin/Deadline_Development | 791c37d44002ea6010ce45a0798ae126201f63d4 | 75ccfeaf31bc259ceb89a38e65f8f4cdc4cdb0a0 | refs/heads/master | 2022-04-14T01:34:19.623922 | 2020-02-19T04:16:04 | 2020-02-19T04:16:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,764 | py | from __future__ import with_statement # with_statement is needed for python 2.5 compatability
import json
import os
import traceback
import win32com.client
from win32com.client import constants
import SoftimageToDeadlineFunctions
import SoftimageToDeadlineLogic
#Get handles to the xsi application
Application = win3... | [
"hamedhematyar91@gmail.com"
] | hamedhematyar91@gmail.com |
ab6d7110652b2747b17988bb0bd3149367742ad8 | 2ebd0bd42a0925fa9cbc913f9db0509d37aa0123 | /src/main.py | b34001c23d38c7833135a9f3c5213ad1884b1f18 | [] | no_license | oknuutti/reposenet | 0965c12731990453cd56b40e3ec629460c860864 | e20050a3dc5f90e5c86782d92eaf03538f83540d | refs/heads/master | 2020-05-24T08:31:43.963222 | 2019-05-19T20:57:21 | 2019-05-19T20:57:21 | 187,186,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,140 | py | import argparse
import random
import shutil
import os
import time
import csv
import sys
import numpy as np
from PIL import Image
import torch
from torch.backends import cudnn
from torch.utils.data import DataLoader
import torchvision
from posenet import PoseNet, PoseDataset
# random seed used
R... | [
"none@none"
] | none@none |
146995e0e0ef52d28990b4198ac8a86ec561fe8e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02883/s186596180.py | a67dc653be0d152e0a20b9113874949cc3e810b6 | [] | 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 | 559 | py | import sys
import os,io
input=io.BytesIO(os.read(0,os.fstat(0).st_size)).readline
n,k=map(int,input().split())
a=list(map(int,input().split()))
f=list(map(int,input().split()))
a.sort()
f.sort()
f.reverse()
if sum(a)<=k:
print(0)
sys.exit()
pointer=0
l=0
r=0
for i in range(n):
r=max(r,a[i]*f[i])
while l+1<r:
tr... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
06ecff7cf3f3c22f2ea456bbf36099ddd67e66dd | 9413df76327c871563d481d82e076b7869d9daf7 | /polyaxon/layers/recurrent.py | a5b95dadaaac054c344140caa51e354eb5b848af | [
"MIT"
] | permissive | cryptopascal/polyaxon | f03774e7407d8ee6cf1fcb2feae4785adb8f09cf | 496837aff2da3fb0013c96b2b624aee81dfb7eba | refs/heads/master | 2021-01-01T06:09:53.571485 | 2017-07-13T14:59:52 | 2017-07-13T14:59:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,502 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
import abc
import logging
from collections import OrderedDict
import six
from six.moves import xrange
import numpy as np
import tensorflow as tf
import tensorflow.contrib.rnn as rnn
from tensorflow.python.ops import array_ops
... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
8cb6515893f4750b2e3a962fcd4192b44c3107ae | 913fb9ec1e709a5140676ba7b2371b1976afca72 | /endoClip/miRandaTest/parseAlignment.py | c08d09bcc7dc0a4a54c27a157d1eb854ad369bb4 | [] | no_license | cgreer/ResearchScripts | 171cfe9555ea06fdeb91084c12d07d1b45a2335c | 1107803bb1459d6b6e1dfb1a89679d2b6fd49062 | refs/heads/master | 2016-09-05T10:43:19.090247 | 2012-04-12T21:38:11 | 2012-04-12T21:38:11 | 1,673,080 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,998 | py | import bioLibCG
import cgNexusFlat
import cgDL
from cgAutoCast import autocast
import string
from cgNexus import Nexus
@autocast
def updateAdjustedMismatches(fN, fF, guValue = .5, otherValue = 1.0):
NX = Nexus(fN, fF)
NX.load(['sigMask', 'adjustedNumMismatches'])
while NX.nextID():
mask = NX... | [
"chrisgreer88@gmail.com"
] | chrisgreer88@gmail.com |
c2c2302c19cd27a8c388c3076648b346e94027f1 | 4f98acd943807cfa593c61b4332548fd3cd6fb72 | /CodeChef/2016 Nov/1ALEXTASK.py | 18583b9192db4d160449ec59b1d559bba8f3e51b | [] | no_license | mrkimkim/Competitive-Programming-Summary | 9086986782bef615db2002a3be3f3d8317c80345 | fa75693818c8ec65f623d98b11c1fe0123bc7200 | refs/heads/master | 2021-01-20T05:25:10.793615 | 2017-11-12T10:33:14 | 2017-11-12T10:33:14 | 89,775,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | def lcm(a1, a2):
a, b = a1, a2
while a % b != 0:
a %= b
a, b = b, a
return a1 * a2 / b
T = int(raw_input())
for tt in xrange(T):
N = int(raw_input())
A = [int(x) for x in raw_input().split(' ')]
LCM = []
for i in range(N):
for j in range(i+1, N):
... | [
"="
] | = |
f2e706a3ce884256f22aef75a2af9a5311ac1719 | 5004c5592ead17f55acacce36d880bb3b12a1255 | /graphql/client.py | 33eb2cdc977f484ead2333602eac2a2dc6967621 | [] | no_license | xav-b/stacks | f856c9efd5b5c3fb5165d31fb9b928cca14038f4 | 2faa0ca759509174920eca88c6553f1b55a14f09 | refs/heads/master | 2021-10-08T05:07:44.878158 | 2018-12-08T02:29:46 | 2018-12-08T02:29:55 | 64,149,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
import requests
HEADERS = {'Content-Type': 'application/json'}
QUERY = {'query': '{ hello }'}
res = requests.post('http://localhost:4000/graphql', headers=HEADERS, json=QUERY)
if res.status_code == 200:
print(res.json())
| [
"xavier.bruhiere@gmail.com"
] | xavier.bruhiere@gmail.com |
7dd3116a2797092f761d2f59ec02bc3ba7272e5a | 9d862dd68f8b4ea4e7de9397fef8592824c77449 | /app/top/api/rest/WlbWmsSkuCreateRequest.py | 6598145c2d04de7ebb441ec797e5897dc69e60ee | [] | no_license | hi-noikiy/tmall-sku-outer_id | ffaca630dfb288ca33d962b8a050932d1047b9c8 | 1bcf29386a513bcb210bf5d91016e0dcb1ebc1ad | refs/heads/master | 2021-05-09T18:20:27.150316 | 2017-03-08T06:43:57 | 2017-03-08T06:43:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | '''
Created by auto_sdk on 2016.05.25
'''
from app.top.api.base import RestApi
class WlbWmsSkuCreateRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.advent_lifecycle = None
self.approval_number = None
self.bar_code = None
self.brand = None
... | [
"1037096435@qq.com"
] | 1037096435@qq.com |
d77bce91c76a6901bd11109520eb8a28a3dd9eae | 7000895fad6f4c23084122ef27b3292d5e57df9f | /tests/core/p2p/test_p2pprotocol.py | efc60f785338aa0ad31408c367a16083daa57d7b | [
"MIT"
] | permissive | jack3343/xrd-core | 1302cefe2a231895a53fcef73e558cdbc1196884 | 48a6d890d62485c627060b017eadf85602268caf | refs/heads/master | 2022-12-15T07:36:16.618507 | 2020-08-27T09:21:36 | 2020-08-27T09:21:36 | 290,652,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,265 | py | # coding=utf-8
# Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-license.php.
from collections import namedtuple
from unittest import TestCase
from mock import Mock, patch, MagicMock
from pyxrdlib.pyxrdlib import hstr2bin, bin2hstr
from xrd.cor... | [
"70303530+jack3343@users.noreply.github.com"
] | 70303530+jack3343@users.noreply.github.com |
2a93997c42a613a172bca0bdc009d9f471283b9a | 3449e5511dc8da19fc841af767dbe8d216e26ffb | /manage.py | 580284fcc718e6d888b0f90ffd61253c58d00251 | [] | no_license | erikwestra/mm-server | 8ba2af0ee7acd372949589b6f8d429099a38ea58 | bead1ad439541211e33fdc60264a869f18a99ae9 | refs/heads/master | 2021-01-10T21:14:23.636707 | 2015-05-27T21:22:54 | 2015-05-27T21:22:54 | 28,573,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mmServer.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"ewestra@gmail.com"
] | ewestra@gmail.com |
80a9d22fbfed25b61183a249814b1f3d269d6cc3 | 70cf356dc87130ce9b70672af0646b70e51d7eb7 | /sphinxext/autorun.py | 8373340e2ff6fb3d8ad47b09f758fb0a4bd88d75 | [] | no_license | yarikoptic/pydagogue | d5ecff8302b743b11c97649d47ff2530c666646d | e77f65392afc8d5773a2bff91d53d8787c316474 | refs/heads/master | 2021-01-15T20:44:11.500452 | 2014-09-23T21:20:21 | 2014-09-23T21:20:21 | 2,068,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,579 | py | # -*- coding: utf-8 -*-
"""
Based on:
sphinxcontrib.autorun
~~~~~~~~~~~~~~~~~~~~~~
Run the code and insert stdout after the code block.
:copyright: Copyright 2007-2009 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
Here's the LICENSE referred to:
If not otherwise noted, the extens... | [
"matthew.brett@gmail.com"
] | matthew.brett@gmail.com |
7a2fda54a67c368b387b99cdca294856aff50611 | 40b9c3020bda615a7c097ea962c039fc08a90a2f | /bonsai/core/admin.py | 108699c3a43ee6c0619aa03ee7c034ed2673ed10 | [] | no_license | mahongquan/bonsailims | 980e9d606a58a81c7637e7f9e640cb16b9cabb61 | 9f5d58a49d24ba86c8d9472ea7e6449bc8c61538 | refs/heads/master | 2020-12-24T14:53:56.886079 | 2013-11-27T02:35:15 | 2013-11-27T02:35:15 | 14,733,537 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | from django.contrib import admin
from models import *
admin.site.register(ProjectCode)
admin.site.register(CollectionMethod)
admin.site.register(Material)
admin.site.register(StorageMethod)
admin.site.register(Project)
admin.site.register(Subject)
admin.site.register(Sample)
| [
"mahongquan@sina.com"
] | mahongquan@sina.com |
f944801874341c8211053e8eeb0fde3287cd620e | 9ce4292954000fd66bcdbd0797a280c306308d08 | /quizzes/00.organize.me/Cracking the Coding Interview/17-14-2.py | 47dc8b3fc7400cb532246997349c31584ce6d361 | [
"MIT"
] | permissive | JiniousChoi/encyclopedia-in-code | 0c786f2405bfc1d33291715d9574cae625ae45be | 77bc551a03a2a3e3808e50016ece14adb5cfbd96 | refs/heads/master | 2021-06-27T07:50:10.789732 | 2020-05-29T12:50:46 | 2020-05-29T12:50:46 | 137,426,553 | 2 | 0 | MIT | 2020-10-13T08:56:12 | 2018-06-15T01:29:31 | Python | UTF-8 | Python | false | false | 3,161 | py | '''
17.14 - 구둣점이 없어진 문장을 최대한 복원하라.
'''
WORD_LIST = []
with open('english_dictionary.txt', 'r', encoding="ISO-8859-1") as fp:
WORD_LIST = fp.read().splitlines()
WORD_LIST = [word.lower() for word in WORD_LIST]
WORD_LIST = list(set(WORD_LIST))
_WORD_LIST = []
for word in WORD_LIST:
for ch in ... | [
"jinchoiseoul@gmail.com"
] | jinchoiseoul@gmail.com |
6d18e5b463a36cc4e08cb5c8a534bab7b40eed17 | d36c4c882089b9b81e6e3b6323eeb9c43f5160a9 | /7KYU/Basic Calculator/solution.py | b3781c325d408bf5bcf4057d678e10d871a6578b | [] | no_license | stuartstein777/CodeWars | a6fdc2fa6c4fcf209986e939698d8075345dd16f | d8b449a16c04a9b883c4b5e272cc90a4e6d8a2e6 | refs/heads/master | 2023-08-27T20:32:49.018950 | 2023-08-24T23:23:29 | 2023-08-24T23:23:29 | 233,281,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | def calculate(num1, operation, num2):
if operation == '+':
return num1 + num2
elif operation == '-':
return num1 - num2
elif operation == '*':
return num1 * num2
elif operation == '/' and num2 != 0:
return num1 / num2
return None | [
"qmstuart@gmail.com"
] | qmstuart@gmail.com |
f8d124ea1738661ae00c133c22ce07c03b60fac3 | 1d60c5a7b8ce6277bff514e376f79848f706344c | /Machine Learning Scientist with Python/13. Feature Engineering for NLP in Python/01. Basic features and readability scores/04. Hashtags and mentions in Russian tweets.py | 993f21900df53d45c8ed5930dbf0aecac0dd49e1 | [] | no_license | DidiMilikina/DataCamp | 338c6e6d3b4f5b6c541c1aba155a36e9ee24949d | 3bf2cf3c1430190a7f8e54efda7d50a5fd66f244 | refs/heads/master | 2020-12-15T13:16:54.178967 | 2020-05-06T17:30:54 | 2020-05-06T17:30:54 | 235,113,616 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,693 | py | '''
Hashtags and mentions in Russian tweets
Let's revisit the tweets dataframe containing the Russian tweets. In this exercise, you will compute the number of hashtags and mentions in each tweet by defining two functions count_hashtags() and count_mentions() respectively and applying them to the content feature of twee... | [
"didimilikina8@gmail.com"
] | didimilikina8@gmail.com |
83ff8724593b0b4cb2fbcade365b2021df9e4454 | 4dd695521343d56ff943e8c1768343d7680714e3 | /experiments/experiments_SBrT_2018/scripts_bob/ivector_T200_fold4.py | ed7c89dd5e015998081776051f44612c8bdf818c | [] | no_license | natharb/environment | ea659ee541f6473e92b5b30c549e52b66f47b280 | 86e6cee6e01d2370abeb7c55a2c8a15001735919 | refs/heads/master | 2021-09-28T02:39:02.222966 | 2018-11-13T12:03:34 | 2018-11-13T12:03:34 | 139,762,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | import sys
sys.path.insert(0, '.')
import bob.bio.spear
import bob.bio.gmm
import numpy
import scipy.spatial
temp_directory = './closedset_ynogutti/ivector/256/T200/fold_4/temp/'
result_directory = './closedset_ynogutti/ivector/256/T200/fold_4/results/'
sub_directory = 'subdirectory'
database = 'database_ivector_T20... | [
"nathbapt@decom.fee.unicamp.br"
] | nathbapt@decom.fee.unicamp.br |
9b723091bf86c7c061fc6eceeef607fde9cef2a1 | b10e3b9e797af8fd100746a520541bf5bf11d707 | /SciGraph/wsgi.py | c844e5759fe084b73fbb677c879efe83af98d268 | [] | no_license | done520/SciGraph | 20adf85f2359e9e9b18b16ff3868388fdc4ba295 | e2bcff74bb46a00ce5b9b528857f5b6e8a4d491f | refs/heads/master | 2023-08-25T08:50:47.659532 | 2021-10-15T08:17:21 | 2021-10-15T08:17:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for SciGraph 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"1240723224@qq.com"
] | 1240723224@qq.com |
ec4b251935be7880dbdd7fd3803ed95f553826b8 | f07c7e3966de00005230ebe31ab0579b92b66872 | /tests/test_conversions.py | fabd5966ca8f99127821f8602853abe727b673c4 | [
"Apache-2.0"
] | permissive | Algomorph/LevelSetFusion-Python | 30d990228e3d63a40668ade58e7879ae6e581719 | 46625cd185da4413f9afaf201096203ee72d3803 | refs/heads/master | 2021-06-25T11:30:44.672555 | 2020-11-11T14:47:33 | 2020-11-11T14:47:33 | 152,263,399 | 12 | 2 | Apache-2.0 | 2019-05-30T23:12:33 | 2018-10-09T14:15:03 | Python | UTF-8 | Python | false | false | 2,949 | py | # ================================================================
# Created by Gregory Kramida on 2/6/19.
# Copyright (c) 2019 Gregory Kramida
# 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 Licens... | [
"algomorph@gmail.com"
] | algomorph@gmail.com |
0b18e9c90c6d35661c619353909e746c7833e730 | 8272944ef520d9f013e7e5083ac201a148f11728 | /src/examples/regression/sklearn_lasso_diabetes.py | 0097200b76aa2196441d3a285851bb2bb66637fd | [] | no_license | alecordev/data-science | 4709a46ee31e21286913548317bdbffba1b51fd3 | 9b152fa8c03cca33abcc65cc572d15815917bd05 | refs/heads/master | 2023-04-09T17:56:29.336037 | 2023-03-25T13:15:42 | 2023-03-25T13:15:42 | 157,546,453 | 1 | 0 | null | 2022-07-23T20:21:51 | 2018-11-14T12:35:55 | Jupyter Notebook | UTF-8 | Python | false | false | 1,807 | py | from sklearn.datasets import load_diabetes
from sklearn.model_selection import train_test_split, GridSearchCV, KFold
from sklearn.pipeline import Pipeline
from sklearn.impute import SimpleImputer
from sklearn.preprocessing import StandardScaler
from sklearn.linear_model import Lasso
from sklearn.metrics import make_sco... | [
"alecor.dev@gmail.com"
] | alecor.dev@gmail.com |
7844825964125eb543f1049cde3198ffff59c10f | fca9772888449ecb8ff54ead7bbe4dede2ff1a3c | /CO1.14.n+nn+nnn.py | 6919a27b996614b38382757e9c8dd3b0d790ed2d | [] | no_license | Python-lab-cycle/ramsinayoosuf | ab862963c1a130b762c9cec2404111636a1407d9 | cadfaa4b9e6aaa68c9b2324ff75da01e17345156 | refs/heads/main | 2023-06-17T14:16:21.908960 | 2021-07-02T09:40:36 | 2021-07-02T09:40:36 | 325,949,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | i=int(input("Enter a number:"))
num=(i+((i*10)+i)+((i*100)+(i*10)+i))
print(num)
| [
"noreply@github.com"
] | Python-lab-cycle.noreply@github.com |
6320ccb78a34f4a6666733de6526e3d4ebf016d2 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/0/bn4.py | caf18b2dd66155809531533074d1f52923163ed2 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
0dc3338dc5d0d26d62a6edd028266ac3cc0eba8f | 2100df7054545b15927d66d4ef2f0490e78d0761 | /tests/test_spidermanager/test_spiders/spider0.py | 65c6d49a97e01d1e65f0414ede96ddd5f58c7276 | [
"MIT"
] | permissive | elkingtowa/pyrake | 79dd6053de604ad52df530e544e873c107333489 | 3f2fbe805e9b153d287fb50b5cb3f5b35495ac52 | refs/heads/master | 2020-12-24T14:01:53.009374 | 2014-08-29T04:44:56 | 2014-08-29T04:44:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | from pyrake.spider import Spider
class Spider0(Spider):
allowed_domains = ["pyrake1.org", "pyrake3.org"]
| [
"elkingtonx@gmail.com"
] | elkingtonx@gmail.com |
eab369dbdac56b2df51579a6ff167856be574579 | 97caa124ffa5da9819c39a16c734165176d90349 | /archive/2016/week6/tasks/figures.py | bdb3f1677fcede9381c778c3f8ccd4270e3351ce | [
"Apache-2.0"
] | permissive | YAtOff/python0 | dd684731065321fd52d475fd2b2105db59f5c19c | b5af5004131d64dd52d42746eddb72b6c43a13c7 | refs/heads/master | 2021-01-18T21:19:11.990434 | 2019-05-29T20:14:23 | 2019-05-29T20:14:23 | 44,601,010 | 6 | 7 | Apache-2.0 | 2019-10-31T22:45:21 | 2015-10-20T11:13:11 | Jupyter Notebook | UTF-8 | Python | false | false | 420 | py | """
Напишета програма, която с помощта на Turtle рисува следните фитури:
- триъгълник
- квадрат
- петоъгълник
- шестоъгълник
Използвайте цикли.
Може ли да напишета една функция, която да може да рисува всяка едно от фигурите.
"""
| [
"yavor.atov@gmail.com"
] | yavor.atov@gmail.com |
a67ec9e602d48416932753f037925e48bd6d91cb | 2916dd05f6c67958d4ad71392f8c093ed6710016 | /app1/migrations/0015_auto_20180326_1039.py | 0f52518c963545d78a706a8d0fa95fc72539fa1b | [] | no_license | firchatn/WorkOrderMangerDjango | a05d6bbfdcc6111da813aca56676ea12b8a4c1d0 | f546e8db24e8ab9a0465e09bb17bd9190570a018 | refs/heads/master | 2020-04-04T10:16:52.840589 | 2018-11-02T10:12:17 | 2018-11-02T10:12:17 | 155,849,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,068 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-03-26 08:39
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app1', '0014_auto_20180326_0008'),
]
... | [
"firaschaabencss@gmail.com"
] | firaschaabencss@gmail.com |
01f0fbe0765bca56a059bfe8dcb23fba59cfa74f | b739654b057190041d3f82d035874fe10e4825d4 | /qtpynodeeditor/base.py | ec2455a0de51d78cf186d5399a2e9c8f5dde762c | [
"BSD-3-Clause"
] | permissive | klauer/qtpynodeeditor | 708cec70ae51cdbf52262e1cdf0d0bd33bf5e137 | 523e76e15ef26edc73fdad6fdd65df9babbde73b | refs/heads/master | 2023-08-16T06:35:08.051000 | 2023-08-04T16:50:21 | 2023-08-04T16:50:21 | 175,901,436 | 141 | 50 | NOASSERTION | 2023-08-15T06:23:03 | 2019-03-15T22:55:45 | Python | UTF-8 | Python | false | false | 342 | py | class Serializable:
'Interface for a serializable class'
def save(self) -> dict:
"""
Save
Returns
-------
value : dict
"""
...
def restore(self, state: dict):
"""
Restore
Parameters
----------
state : dict
... | [
"klauer@slac.stanford.edu"
] | klauer@slac.stanford.edu |
dc78542a96e486cffbe3bd259698a41a9b92db77 | f9acdde88dbb70a2844e058f6c53c016fc8407c1 | /lfc/utils/images.py | ea55297329c22e839417157a4753b8d6ebccdc1f | [] | no_license | yzl11/django-lfc | 536daccae82351af66f3894c38c8f2702691af75 | 75c900d672b4d36705fb8fa4833c446bbb78efea | refs/heads/master | 2021-01-15T13:14:37.192773 | 2015-05-03T15:03:12 | 2015-05-03T15:03:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,916 | py | # PIL imports
import PIL.ImageFile
import PIL
def scale_to_min_size(image, min_width, min_height):
"""Returns an image, that isn't smaller than min_width and min_height.
That means one side is exactly given value and the other is greater.
This may only makes sense if the image is cut after it is scaled.
... | [
"kai.diefenbach@iqpp.de"
] | kai.diefenbach@iqpp.de |
a5b4d3210895376b4fef4c8e422ea7effa1ebb54 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/5224673/snippet.py | cea9424811bd53898a7138f8a2e829391080caa2 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 153 | py | def java_string_hashcode(s):
h = 0
for c in s:
h = (31 * h + ord(c)) & 0xFFFFFFFF
return ((h + 0x80000000) & 0xFFFFFFFF) - 0x80000000 | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
f8696bb50b6a66fd6c4d390c0935db0f6299ab42 | 914626bf92d528766bf4b9402f5f120caccbe5cf | /탐욕법_단속카메라.py | 7292bbc0d89ca0e7879785a8ec8bdc31684e24ab | [] | no_license | LINDBURG/Programmers | 64ee0a193f407c9802f7fbda64c27c6adb4a26d3 | adf94767ebe2d4d63aa17bf52ece0c74873aec5c | refs/heads/master | 2020-12-27T06:47:59.062955 | 2020-11-28T07:29:08 | 2020-11-28T07:29:08 | 237,799,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | def solution(routes):
answer = 0
routes.sort()
while routes:
answer += 1
now = routes.pop(0)
end = now[1]
for i in range(len(routes)):
if routes[i][1] < end:
end = routes[i][1]
elif routes[i][0] > end:
break
fo... | [
"monc2170@gmail.com"
] | monc2170@gmail.com |
7c318280fb4418094a2b04b53172893d5d9bba08 | 037d31bfad9c9da19f6fa8046fa575b59bdfd97b | /app/language/models.py | 88494ac6f043a96a8491fa81c4c46c5965f46765 | [] | no_license | luoyun/homepress | d8cfa58ea8de81bc559da9da3e2eb44d537e5df6 | 8c97579bd7b523dbbcc4a11f378bc4b56407de7c | refs/heads/master | 2020-12-30T10:23:09.672711 | 2013-08-05T10:24:02 | 2013-08-05T10:24:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | import datetime
from yweb.orm import ORMBase
from sqlalchemy import Column, Integer, String, \
Sequence, DateTime, Table, ForeignKey, Boolean, Text
from sqlalchemy.orm import relationship, backref
class Language(ORMBase):
''' Language system '''
__tablename__ = 'language'
id = Column(Integer... | [
"lijian.gnu@gmail.com"
] | lijian.gnu@gmail.com |
a485108da57b34bdbdf518806f23a799754dfbc5 | b6db9a5bdbe84ad9b53407635a8a054a6af8e779 | /dataportal/wsgi.py | c1bb5fc00883504bac7ff98b591a9e1dd404c49f | [] | no_license | gagon/dataportal_kpo_django | 6cca0b03d1d82e20fb5fa4db6430ae616ec91b96 | 6f862a026c0b9fa02d31452e29525021159de58d | refs/heads/master | 2021-01-10T11:12:58.426186 | 2018-04-04T12:41:17 | 2018-04-04T12:41:17 | 48,659,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for dataportal 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/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"you@example.com"
] | you@example.com |
32d6e24f2fe834017f93833a66735566ed3b82a1 | a46b480eefa54d0aa8a1df7158cdf61def351724 | /tests/bcm/cli/test_cli_util.py | 54e34f55fb487e301b00143be0be6e220865aa51 | [
"MIT"
] | permissive | achillesrasquinha/biomodels-cellcollective-migrator | 3ed3a575c32343f0b94115af7a67db40ea40953f | 7c9b50986a6fa8cdfc7d6ec2b434a7b2be999a5b | refs/heads/develop | 2021-06-14T16:34:52.468209 | 2019-06-28T20:59:06 | 2019-06-28T20:59:06 | 194,329,396 | 0 | 1 | MIT | 2021-06-02T00:05:12 | 2019-06-28T20:16:57 | Python | UTF-8 | Python | false | false | 1,914 | py | # imports - module imports
from bcm import cli
# imports - test imports
from testutils import assert_input, assert_stdout
def test_confirm(capfd):
query = "foobar"
stdout = "{} [Y/n/q]: ".format(query)
def _assert_confirm(stdout):
assert_input(capfd, query, "Y", expected = True, input_ = cli.co... | [
"achillesrasquinha@gmail.com"
] | achillesrasquinha@gmail.com |
c0798e517a6501161acbc0b853fb0d04fba4d25a | d3dcbda2c798f24b43bd35ecc8ea40b2e494e646 | /games/views.py | f0159630d481b4778ad81fd4acbf7828e1e22b19 | [] | no_license | milu-buet/milu_test3 | 48e560d778a61c44fadfacf2adcad3374797cdf6 | 09790d829fddd09cdf9fd9525c8b6829b58d67e5 | refs/heads/master | 2021-01-18T22:10:58.079326 | 2015-06-24T09:15:55 | 2015-06-24T09:15:55 | 19,772,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | from django.shortcuts import render
from django.http import HttpResponse
import simplejson as json
# Create your views here.
def home(request):
return HttpResponse("game home works")
def game1(request):
return render(request,"games/game1.html")
def game2(request):
return render(request,"games/game2.html"... | [
"milu.buet@gmail.com"
] | milu.buet@gmail.com |
9e51ee20084954c66c9648d096b95fc2a2f2f697 | 0f2112a0e198cb0275c002826854c836bbfb5bdf | /utils/gui/benchmark/images_list_model.py | e63ce3f72c2efd4ef74cc8157899d49a2c31fe7a | [
"MIT"
] | permissive | jeremiedecock/pywi-cta | a7f98ae59beb1adecb25623153c13e5bc70e5560 | 1185f7dfa48d60116472c12ffc423be78a250fc9 | refs/heads/master | 2021-04-15T12:06:03.723786 | 2019-03-21T02:33:15 | 2019-03-21T02:33:15 | 126,397,380 | 0 | 1 | MIT | 2018-10-16T12:17:52 | 2018-03-22T21:31:45 | Python | UTF-8 | Python | false | false | 4,280 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2015 Jérémie DECOCK (http://www.jdhp.org)
# 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 right... | [
"jd.jdhp@gmail.com"
] | jd.jdhp@gmail.com |
3497dc1e312299fd39e88a6dcb577ccca78fd827 | 167c6226bc77c5daaedab007dfdad4377f588ef4 | /python/ql/test/library-tests/dependencies/b.py | 24586e4ddc6ffd4d1ffaa60fda5277c1ebebd0fe | [
"MIT",
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-other-copyleft",
"GPL-1.0-or-later",
"LicenseRef-scancode-free-unknown",
"Python-2.0"
] | permissive | github/codeql | 1eebb449a34f774db9e881b52cb8f7a1b1a53612 | d109637e2d7ab3b819812eb960c05cb31d9d2168 | refs/heads/main | 2023-08-20T11:32:39.162059 | 2023-08-18T14:33:32 | 2023-08-18T14:33:32 | 143,040,428 | 5,987 | 1,363 | MIT | 2023-09-14T19:36:50 | 2018-07-31T16:35:51 | CodeQL | UTF-8 | Python | false | false | 33 | py | import c
class B(c.C):
pass
| [
"mark@hotpy.org"
] | mark@hotpy.org |
8e2b508ffb965952aba2ad74a9c3b8bcedda1017 | db7aac75e31d35c4a18c966170b46f269d015d0b | /webgl_canvas_gadget/apps/projects/migrations/0010_auto_20160621_0147.py | 16a5fabbca8c7c236c5a7224f993ed4aebefe01d | [] | no_license | jjpastprojects/Django | 12fbf3cf27a9230db98a21cc1013216aeadaae1e | c55562be7226f29b4ec213f8f018b6c2dd50c420 | refs/heads/master | 2022-12-12T22:15:49.493289 | 2017-09-05T12:51:20 | 2017-09-05T12:51:20 | 101,995,798 | 0 | 0 | null | 2022-12-07T23:21:46 | 2017-08-31T11:55:00 | JavaScript | UTF-8 | Python | false | false | 1,191 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-06-20 19:47
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('projects', '0009_auto_20160619_2250'),
]
operations = [
migrations.AddField(
... | [
"sam.noreaksey@outlook.com"
] | sam.noreaksey@outlook.com |
c7406959efccab9a16ed49ab84285896a04da6ec | 159aed4755e47623d0aa7b652e178296be5c9604 | /data/scripts/templates/object/draft_schematic/clothing/shared_clothing_ith_pants_casual_16.py | 8d9d8eacf01fe496da90925628e0d43e97005813 | [
"MIT"
] | permissive | anhstudios/swganh | fb67d42776864b1371e95f769f6864d0784061a3 | 41c519f6cdef5a1c68b369e760781652ece7fec9 | refs/heads/develop | 2020-12-24T16:15:31.813207 | 2016-03-08T03:54:32 | 2016-03-08T03:54:32 | 1,380,891 | 33 | 44 | null | 2016-03-08T03:54:32 | 2011-02-18T02:32:45 | Python | UTF-8 | Python | false | false | 466 | py | #### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Intangible()
result.template = "object/draft_schematic/clothing/shared_clothing_ith_pants_casual_16.iff"
result.a... | [
"rwl3564@rit.edu"
] | rwl3564@rit.edu |
fd7e4b0e092aae7c5122f922cc9f62076b885df2 | 1e43fd5e134157e6f034327ffbf3e6501c67275d | /mlps/core/apeflow/interface/model/SKLModel.py | 2e656276a0b2fe1d5080e2af279877a487b2445e | [
"Apache-2.0"
] | permissive | sone777/automl-mlps | f15780e23142e0f3f368815678959c7954966e71 | a568b272333bc22dc979ac3affc9762ac324efd8 | refs/heads/main | 2023-08-24T10:07:30.834883 | 2021-11-03T07:41:15 | 2021-11-03T07:41:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | # -*- coding: utf-8 -*-
# Author : Manki Baek
# e-mail : Manki.Baek@seculayer.co.kr
# Powered by Seculayer © 2021 Service Model Team, R&D Center.
from mlps.core.apeflow.interface.model.ModelAbstract import ModelAbstract
class SKLModel(ModelAbstract):
def __init__(self, param_dict, ext_data=None):
super(S... | [
"bmg8551@naver.com"
] | bmg8551@naver.com |
5b4f27a3f438a63076f482c06b59452a9bcf8501 | 7f698acfc0655fb0978c46f7c79a1f66fd0f4af0 | /users/migrations/0003_auto_20210716_1850.py | a3614b7bd00bd907051b24bf0629f48b409918d7 | [] | no_license | bunnycast/bird_bnb | a53c67c1fd117bf459dd36062a63d0b10aceda7b | 2bd43f0be4f9873028c278c735633cee990ca372 | refs/heads/master | 2023-06-19T18:27:49.151543 | 2021-07-16T10:05:50 | 2021-07-16T10:05:50 | 386,560,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | # Generated by Django 3.1.6 on 2021-07-16 09:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0002_user_bio'),
]
operations = [
migrations.AddField(
model_name='user',
name='avatar',
field=... | [
"berzzubunny@gmail.com"
] | berzzubunny@gmail.com |
2e85756c40f453e7ad77be898d16d5598a94feab | ed915e9ac23875688b35734b3ffd42b23f00f626 | /tools/make_response.py | 5f3e89567324172be6ac15a900205f3180e28b8a | [
"MIT"
] | permissive | rcbyron/hey-athena-client | 4df2b25cf4aa05b65fa359836609afa2f5c50224 | 703e2184610a1718923bf60bc2ef6ec18e126148 | refs/heads/demo-branch | 2023-01-02T00:30:03.948348 | 2018-01-15T03:51:10 | 2018-01-15T03:51:10 | 40,776,319 | 391 | 136 | MIT | 2020-10-15T05:32:33 | 2015-08-15T18:08:20 | Python | UTF-8 | Python | false | false | 423 | py | '''
Created on Feb 11, 2016
@author: Connor
'''
from athena import tts
print('~ Enter \'q\' at any time to quit')
while True:
fname = input('\n~ Unique Filename: ')
if len(fname) is 0 or 'q' in fname[0].lower():
break
phrase = input('~ Phrase: ')
if len(phrase) is ... | [
"rcbyron@utexas.edu"
] | rcbyron@utexas.edu |
92d0ca24d92136a27f7cb54a84c65c5b885630e9 | 6b77241ff82ca0ac1293e971276c87a1294dd878 | /tea/msg/__init__.py | 891e39ed5fcb2c379bf2986daa07cc97f45af264 | [] | no_license | SenadI/tea | 356639d2d24b6f56fad69adeba90bbadacacd10b | abed19ecd5274ac05b825d8b83c3f448db197e9a | refs/heads/master | 2020-12-30T10:23:51.880549 | 2017-06-12T16:40:18 | 2017-06-12T16:40:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | __author__ = 'Viktor Kerkez <alefnula@gmail.com>'
__date__ = '27 November 2009'
__copyright__ = 'Copyright (c) 2009 Viktor Kerkez'
__all__ = ['send_mail', 'send_mass_mail']
from tea.msg.mail import send_mail, send_mass_mail
| [
"alefnula@gmail.com"
] | alefnula@gmail.com |
64407c5d245ba72556e881a516f27a69cd701491 | bc441bb06b8948288f110af63feda4e798f30225 | /topboard_sdk/model/pipeline/stage_status_pb2.py | 90be5a02ac0c56de1b11fec38714cee55201a3fa | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 10,312 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: stage_status.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobu... | [
"service@easyops.cn"
] | service@easyops.cn |
6e201b9d508d0e01435acef4ce54354372191e65 | add331d7951c0aef4e6afef8a33664893e32310a | /src/idp_test/saml2base.py | 05872c3d118c2dcb446fb82ae646e18b8726559d | [
"BSD-2-Clause"
] | permissive | dv10den/saml2test | bd2b24c6048fc5b8f67e5fc423bec7b758b74a91 | d5c40b1efbb703ff44e6ed54b5a11b77c6b9bb01 | refs/heads/master | 2021-01-21T07:45:41.891472 | 2014-05-22T07:54:46 | 2014-05-22T07:54:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,952 | py | from saml2 import samlp
from saml2 import BINDING_HTTP_ARTIFACT
from saml2 import BINDING_HTTP_POST
from saml2 import BINDING_HTTP_REDIRECT
from saml2 import BINDING_PAOS
from saml2 import BINDING_SOAP
from saml2 import BINDING_URI
from saml2.saml import NAMEID_FORMAT_PERSISTENT
from saml2.saml import NAMEID_FORMAT_UNS... | [
"roland.hedberg@adm.umu.se"
] | roland.hedberg@adm.umu.se |
27eb01bd63140d723b41b4dd57ec4807f308f050 | ee8c4c954b7c1711899b6d2527bdb12b5c79c9be | /assessment2/amazon/run/core/controllers/fragile.py | 3dde43aea23363a04aaa23d1ebff9541e7fa44da | [] | no_license | sqlconsult/byte | 02ac9899aebea4475614969b594bfe2992ffe29a | 548f6cb5038e927b54adca29caf02c981fdcecfc | refs/heads/master | 2021-01-25T14:45:42.120220 | 2018-08-11T23:45:31 | 2018-08-11T23:45:31 | 117,135,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | #!/usr/bin/env python3
from flask import Blueprint, Flask, render_template, request, url_for
controller = Blueprint('fragile', __name__, url_prefix='/fragile')
# @controller.route('/<string:title>', methods=['GET'])
# def lookup(title):
# if title == 'Republic': # TODO 2
# return render_template('repub... | [
"sqlconsult@hotmail.com"
] | sqlconsult@hotmail.com |
b3c7e233bc4c37c1c0d23b146680f7bea823069f | cdf8b0df0b22f18e3e31e59946dadfbf50074e67 | /dockless/qr/views.py | 5f2a4a7c0ca835ed8548a38fd9719e30d65b3689 | [] | no_license | deshiyan1010/Dockless-Bike-Service | a5bd3bf92c837053f05835f9ebdfe291389a9e30 | a7df45ed19a2f93c02abc101b19f5aca5d42337d | refs/heads/main | 2023-07-01T05:00:20.135427 | 2021-08-10T11:12:54 | 2021-08-10T11:12:54 | 382,597,432 | 0 | 0 | null | 2021-07-04T18:34:05 | 2021-07-03T11:23:12 | CSS | UTF-8 | Python | false | false | 1,568 | py | from django.shortcuts import render
import geocoder
from maps import staticdb
import math
from django.http import HttpResponseRedirect, HttpResponse
from django.urls import reverse
from django.core.files.storage import FileSystemStorage
from PIL import Image
from pyzbar.pyzbar import decode
import cv2
import pyzbar
... | [
"vinayakamikkal@gmail.com"
] | vinayakamikkal@gmail.com |
f6195f60d2d18a5fec319ddf775067291fe7e7e8 | 32b076374481b10e9ba67209d677eb6be0b3d440 | /bin/wp-get-access-logs | a746b956a88fffacfa1bef2b613a75ce2587e88b | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | defconcepts/quac | 7f8cca7aebf2fcdc1382fbbf329d03ad3dd86f59 | 4c279ef6ff0fcd51f389ae1817d3104d38740276 | refs/heads/master | 2021-01-18T18:53:31.227441 | 2015-11-03T21:23:49 | 2015-11-03T21:23:49 | 46,738,274 | 1 | 0 | null | 2015-11-23T17:58:21 | 2015-11-23T17:58:20 | null | UTF-8 | Python | false | false | 2,466 | #!/usr/bin/env python3
'Update local copy of Wikimedia access logs.'
# Copyright (c) Los Alamos National Security, LLC, and others.
help_epilogue = '''
Logs only go to stdout, so as to capture the rsync chatter as well.
Note that we use rsync to download Wikipedia stuff, which isn't supported by
the Wikimedia site,... | [
"reidpr@lanl.gov"
] | reidpr@lanl.gov | |
b01d86596c1d50ddad7135ffa21518b523697c01 | e99985945b956698dbe430b61250607efeae0fe7 | /blog/migrations/0001_initial.py | 152678f4693b11cfadff686c1658bf8d693cfb70 | [] | no_license | anthonylauly/Project-Blog----Django-2-By-Example | 5a01b2083122d3f26eb72b4b16b9177d9e5f8715 | b7bb60bb80de11dceedeb1edd100e2d78ba83cee | refs/heads/main | 2023-01-21T17:55:49.736625 | 2020-12-08T05:52:29 | 2020-12-08T05:52:29 | 319,536,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | # Generated by Django 2.2.2 on 2019-08-22 15:23
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"anthony.lauly1833@gmail.com"
] | anthony.lauly1833@gmail.com |
32cc3cc6bf949f5da324abe9e03b06cf15d693b9 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-1997.py | 9d0cbf64aab3c1d3fcae52c99ba4dea241300b98 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,343 | py | count:int = 0
count2:int = 0
count3:int = 0
count4:int = 0
count5:int = 0
def foo(s: str) -> int:
return len(s)
def foo2(s: str, s2: str) -> int:
return len(s)
def foo3(s: str, s2: str, s3: str) -> int:
return len(s)
def foo4(s: str, s2: str, s3: str, s4: str) -> int:
return len(s)
def foo5(s: str,... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
82fc14c687f9944699c1a3fa65afe78e4d058b0d | 50ecef248f7d45c1d82a8c9822964a668a87574a | /test/python/binding/uMediaServer/uMSTest/__init__.py | cde9049cfd151396f4f16174ea15d10544513e62 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | NotixOfficial/umediaserver | c4f4bf45854b8fb58b28fde5c0d36f829b69ad25 | af89f8ac3355027a90d7b299a78fb6fab9b6ffca | refs/heads/master | 2023-08-22T01:57:15.983956 | 2021-09-15T09:44:00 | 2021-09-15T09:54:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58 | py | from .main import uMSTest
from .cmdparser import cmd_line
| [
"changhyeok.bae@lge.com"
] | changhyeok.bae@lge.com |
5c619b914e03131689488198a31009c0eb874c03 | 2aba62d66c2c622bdc148cef451da76cae5fd76c | /exercise/learn_python_dm2039/ch16/ch16_13.py | effa4076052f01a7b1da11b467c3cc048caa2602 | [] | no_license | NTUT-109AB8011/crawler | 6a76de2ab1848ebc8365e071e76c08ca7348be62 | a703ec741b48d3af615a757fed7607b1f8eb66a6 | refs/heads/master | 2023-03-26T22:39:59.527175 | 2021-03-30T03:29:22 | 2021-03-30T03:29:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | # ch16_13.py
import re
msg = 'Johnson, Johnnason and Johnnathan will attend my party tonight.'
pattern = 'John(son|nason|nathan)'
txt = re.search(pattern,msg) # 傳回搜尋結果
print(txt.group()) # 列印第一個搜尋結果
print(txt.group(1)) # 列印第一個分組
| [
"terranandes@gmail.com"
] | terranandes@gmail.com |
93ba3a81c498c8776a404efc7152c5f91099bd87 | 97319df4efbd371e89273bd2679c7a219b2a069a | /simple/save.py | 6506d473c7b7703e2b564d985e297c4f4b3a6183 | [] | no_license | mpaisner/projects | 7dd17429d80aa3630cbafd613bbb7d27fe5dfb71 | 30bdb423077c730184bf81707ad7cb0038288435 | refs/heads/master | 2021-01-01T17:04:47.703035 | 2015-03-01T21:58:03 | 2015-03-01T21:58:03 | 31,512,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py |
class SavedMap:
def __init__(self, map, conts):
self.map = map
self.conts = conts
| [
"matthew.paisner@gmail.com"
] | matthew.paisner@gmail.com |
81c444ea32e12b01a3349ba80b9ada0162c9b2de | c646eda22844eb3aadc832a55dc8a7a8d8b28656 | /LintCode/Problems/Python3/1010. 维持城市轮廓的最大增量.py | 6f6e037a68900ddc9879fccf078174560d88550a | [] | no_license | daidai21/ExerciseProblem | 78f41f20f6d12cd71c510241d5fe829af676a764 | cdc526fdb4ee1ca8e0d6334fecc4932d55019cea | refs/heads/master | 2021-11-22T21:54:13.106707 | 2021-11-14T10:54:37 | 2021-11-14T10:54:37 | 213,108,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | class Solution:
"""
@param grid: a 2D array
@return: the maximum total sum that the height of the buildings can be increased
"""
def maxIncreaseKeepingSkyline(self, grid):
# Write your code here
# row high list
row_high = []
for i in range(len(grid[0])):
... | [
"daidai4269@aliyun.com"
] | daidai4269@aliyun.com |
661e388c326d7f7fcae917f8bbd046c6126f2242 | 7792b03540784a0d28073899dd4ad78689e9a9fb | /char_map/all_char.py | 9ff04bc9c121310a5b6bd6c7e57b7b628212d1ae | [] | no_license | ayiis/coding | 3b1362f813a22a7246af3725162cfb53dea2f175 | c73e4622e1811cc3fd8729a92df6537bd73dc802 | refs/heads/master | 2021-06-02T14:55:38.451288 | 2021-04-26T08:39:16 | 2021-04-26T08:39:16 | 134,660,001 | 0 | 0 | null | 2020-06-05T04:03:58 | 2018-05-24T04:14:14 | CSS | UTF-8 | Python | false | false | 439 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# __author__ = "ayiis"
# create on 2020/05/06
# char_set = set([chr(i) for i in range(32, 127)])
char_set = set([chr(i) for i in range(32, 127)])
# print("char_set:", sorted(list(char_set)))
r"""
! " # $ % & ' ( ) * + , - .
/ 0 1 2 3 4 5 6 7 8 9 : ; < =
> ? @ A B C D E... | [
"ayiis@126.com"
] | ayiis@126.com |
76570c11245c3e2210c7d78bd57b32ff5fe7b088 | e58aa9d46f06d091cc0be6259996efed238529cd | /tests/test_extension.py | 058c583c5f83ede5286c46d6c1f3d51d25c97d2e | [
"Apache-2.0"
] | permissive | kingosticks/mopidy-pidi | d446390c84de511c4f2f522d1f267b1f1f90e44a | 7a091ea4597b313b59082c8b7494395e8f9e49ea | refs/heads/master | 2020-09-16T13:35:06.825810 | 2019-11-15T13:53:05 | 2019-11-15T13:53:05 | 223,785,395 | 0 | 0 | Apache-2.0 | 2019-11-24T17:48:10 | 2019-11-24T17:48:09 | null | UTF-8 | Python | false | false | 499 | py | from __future__ import unicode_literals
from mopidy_pidi import Extension, frontend as frontend_lib
def test_get_default_config():
ext = Extension()
config = ext.get_default_config()
assert "[pidi]" in config
assert "enabled = true" in config
def test_get_config_schema():
ext = Extension()
... | [
"phil@gadgetoid.com"
] | phil@gadgetoid.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.