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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6ead116bf6df7f35824e4c449b5a84e85a485a2d | 835e428d1cbe87adf945897ff75f77e93b500d12 | /demonstrations/tutorial_qubit_tapering.py | 1036c758660268b71090efc7a336e79861c6eec0 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | quantshah/qml | 9acb3c932610e30a28369fe72ee49683ac301219 | 45533ef6f6d7b9cfa0384302fe52b5ead772b923 | refs/heads/master | 2022-11-30T08:26:12.972709 | 2022-11-18T19:59:59 | 2022-11-18T19:59:59 | 218,805,085 | 0 | 0 | Apache-2.0 | 2019-10-31T16:02:07 | 2019-10-31T16:02:06 | null | UTF-8 | Python | false | false | 14,524 | py | r"""
Qubit tapering
==============
.. meta::
:property="og:description": Learn how to taper off qubits
:property="og:image": https://pennylane.ai/qml/_images/qubit_tapering.png
.. related::
tutorial_quantum_chemistry Building molecular Hamiltonians
tutorial_vqe A brief overview of VQE
... | [
"noreply@github.com"
] | quantshah.noreply@github.com |
eb0f7e67e674ef2c9ea62e3364ba8c50f0fb381d | 7f0449453f979957c61bb4bbca3ed361adc8eb53 | /altTab/solutions/OLD_naive.py | a3c689ad00f68f9a8c104b2448aa469034394342 | [] | no_license | justinba1010/USCCodeathon-S21-Lower | cd07fa0d50c52bab458499084406ff0b3f00e5c0 | 9ece6173481504ecbeb37a3f972950ee0715f8e2 | refs/heads/main | 2023-03-17T19:15:00.572409 | 2021-03-19T18:47:40 | 2021-03-19T18:47:40 | 338,169,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from collections import deque
p, n = map(int, input().split())
processes = (input().split())
for i in range(n):
command = int(input())
cur = processes.pop(command%p)
processes.insert(0, cur)
print(" ".join(processes)) | [
"coboudinot@gmail.com"
] | coboudinot@gmail.com |
b2e8f7379d9c606cc3b67d2e76cfc72832a1f7f7 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/CROSSBEAM-SYSTEMS-MIB.py | e4d9d44897a138129cccae0a145f31b438b05af9 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 7,721 | py | #
# PySNMP MIB module CROSSBEAM-SYSTEMS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CROSSBEAM-SYSTEMS-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:47:15 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (def... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
32249a861cc63bb840e41d301743fbc8b7ec6fe1 | 58cfc4c917bd739861673ce881538433a653f454 | /examples/pbc/10-gamma_point_scf.py | 06dfb9d739b291d44c8e300dddb5446808c27841 | [
"BSD-2-Clause"
] | permissive | sunchong137/pyscf_2017 | 56c837735e45611c1efa0aa0c39d9dbcb4e1d662 | 0b68299ae6495fc33d879e5471c21b45d01ed577 | refs/heads/master | 2021-07-06T22:18:31.640601 | 2017-10-04T01:30:26 | 2017-10-04T01:30:26 | 105,618,697 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | #!/usr/bin/env python
'''
Gamma point Hartree-Fock/DFT
The 2-electron integrals are computed using Poisson solver with FFT by default.
In most scenario, it should be used with pseudo potential.
'''
# Note import path which is different to molecule code
from pyscf.pbc import gto, scf, dft
import numpy
cell = gto.Cel... | [
"osirpt.sun@gmail.com"
] | osirpt.sun@gmail.com |
93b5ef6fa8b6ff56319f41031af009a5b7efcd3f | 6cd29c2be1236aeca124a4f122fee99bb830f131 | /approx_mul/ApproxMultFL_test.py | bab09c0aa1b36caba1658d94c3c09d07a890e9c4 | [] | no_license | victorfei/perceptronApproxMultiplier | 3d90832c023f96dd568614731be615c1bf682990 | 3bd5bbd1242173b20e2f2cb58863d3076747770e | refs/heads/master | 2021-01-01T04:00:50.783612 | 2016-04-19T16:15:31 | 2016-04-19T16:15:31 | 56,611,460 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,309 | py | #========================================================================
#ApproxMultFL_test
#=========================================================================
import pytest
import random
random.seed(0xdeadbeef)
from pymtl import *
from pclib.test import mk_test_case_table, run_sim
from pclib.test ... | [
"vjhfei@gmail.com"
] | vjhfei@gmail.com |
a10287f435792a32106a7010ed8450c08dab992d | 0326f06f68fb0d919f8467f4744dfd60a654836a | /eggs/django_localflavor-1.0-py2.7.egg/localflavor/de/de_states.py | e771cdce320c10a8a29334743d139bce3e4d2163 | [] | no_license | ethirajit/onlinepos | 67de6023241339ae08c3b88a9e7b62b837ec17a3 | 186ba6585d0b29f96a5c210462764515cccb3b47 | refs/heads/master | 2021-01-17T13:23:36.490727 | 2014-07-01T10:30:17 | 2014-07-01T10:30:17 | 34,388,218 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | # -*- coding: utf-8 -*
from django.utils.translation import ugettext_lazy as _
#: An alphabetical list of states
STATE_CHOICES = (
('BW', _('Baden-Wuerttemberg')),
('BY', _('Bavaria')),
('BE', _('Berlin')),
('BB', _('Brandenburg')),
('HB', _('Bremen')),
('HH', _('Hamburg')),
('HE... | [
"root@server.onlinepos.co.in"
] | root@server.onlinepos.co.in |
3d4129508a3afda7d1619d057a428c8e283f198d | 4e006370c50da435941297e940b742d5c5ef124c | /reference-code/pagefetch/populate_screenshots.py | 6c33cc24c46fc9dfa3cc46d8ec1ca5e8a2b8ca88 | [
"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 | 3,920 | py | # coding=utf-8
__author__ = 'jim'
import os
import string
from urllib2 import HTTPError, URLError
from pagefetch_configuration import media_dir, DEPLOYED, work_dir
from pagefetch.models import Page, Category
from mechanize import Browser, ParseError
#screenshot_dir = os.path.join(work_dir, "/site_media/Screenshots"... | [
"leifos@acm.org"
] | leifos@acm.org |
0b2dd595f859e0434e80758954bc752df22e38c7 | 177338a720f904f63926da055364cc0e2c0a850c | /python_stu/s11_10/s3/tw.py | d74a986aa56e3ec9ea04705579553fbdc80d3f24 | [] | no_license | xuefenga616/mygit | 60ef7bf7201603e13d4621cf7a39dea8ec92e0b7 | be3b8003fcc900ce7ca6616a9ddebb0edcbc1407 | refs/heads/master | 2020-09-13T11:50:55.448041 | 2017-08-27T10:59:00 | 2017-08-27T10:59:00 | 67,042,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | #coding:utf-8
__author__ = 'xuefeng'
from twisted.internet import protocol
from twisted.internet import reactor
class Echo(protocol.Protocol):
def dataReceived(self, data):
self.transport.write(data)
factory = protocol.ServerFactory()
factory.protocol = Echo
reactor.listenTCP(8080,factory)
reactor.run() | [
"xuefeng_11@qq.com"
] | xuefeng_11@qq.com |
b73c73518fbf99007d9d2144f6090f5ec5e2e98b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03007/s092271319.py | 50af26782a730354268c290323bef5b934e37e9f | [] | 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 | 672 | py |
N = int(input())
A = list(map(int,input().split()))
#%%
A.sort()
keyz = 0
for a in A:
if a<0:
keyz += 1
if keyz==0:
keyz = 1
elif keyz == N:
keyz = N-1
M = 0
M += -sum(A[:keyz])
M += sum(A[keyz:])
print(M)
# A[0:keyz]までを負とする
# A[keyz:]は反転させる必要あり
if keyz == N-1:
cur = A[-1]
fo... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9740674906361155efb29c1b6d6233b73bf6ea68 | 95b8de84df42df693522b0e63692b7a91bd6f6f5 | /recipes/ois/all/conanfile.py | 53d83bec3c91bb317a362d6b89d8aede9a618e4a | [
"MIT"
] | permissive | ericLemanissier/conan-center-index | ae9fcd42ecb208a27299120c5580c924e9dfac86 | d4e176c437637429dbd35ab6e172be1559cb2f2d | refs/heads/freebsd | 2023-09-01T03:10:56.850971 | 2023-08-30T07:00:49 | 2023-08-30T07:00:49 | 210,675,894 | 1 | 1 | MIT | 2023-09-11T05:38:23 | 2019-09-24T18:54:26 | Python | UTF-8 | Python | false | false | 2,941 | py | import os
import glob
from conans import ConanFile, tools, CMake
from conans.errors import ConanInvalidConfiguration
class OisConan(ConanFile):
name = "ois"
description = "Object oriented Input System."
topics = ("conan", "ois", "input" )
url = "https://github.com/conan-io/conan-center-index"
homep... | [
"noreply@github.com"
] | ericLemanissier.noreply@github.com |
2366023bbb3516d38ee580bead91fa60a41e29ac | 78d23de227a4c9f2ee6eb422e379b913c06dfcb8 | /LeetCode/868.py | f4c9594d4ae85d524d56ef0bcd335d3d434099c8 | [] | no_license | siddharthcurious/Pythonic3-Feel | df145293a3f1a7627d08c4bedd7e22dfed9892c0 | 898b402b7a65073d58c280589342fc8c156a5cb1 | refs/heads/master | 2020-03-25T05:07:42.372477 | 2019-09-12T06:26:45 | 2019-09-12T06:26:45 | 143,430,534 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | class Solution:
def binaryGap(self, N):
"""
:type N: int
:rtype: int
"""
if self.isPerfectSquare(N):
return 0
A = []
i = 0
while N:
b = N & 1
N = N >> 1
if b:
A.append(i)
i = ... | [
"sandhyalalkumar@gmail.com"
] | sandhyalalkumar@gmail.com |
b43483f73dc33fcb5c8401a9b537bb41e2406f14 | 6468183455dc91ef5a60657ce3e7226d92b2ef1e | /src/wikirepo/data/upload.py | 175b5f1d9b3973b757d1f94df108f379262ada29 | [
"BSD-3-Clause"
] | permissive | kination/wikirepo | 2bcf315241db679a051e7f9f5988592c93c26567 | 1764dd1b8f3e3b2d34cf63ad5fe487e1ce9c98d0 | refs/heads/main | 2023-04-02T14:17:15.497547 | 2021-04-08T08:17:03 | 2021-04-08T08:17:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | """
Upload
------
A function that uploads data to Wikidata.
Note: the purpose of this module is for a wikirepo.data.upload() function call
Contents
upload
"""
# def upload():
# return
| [
"andrew.t.mcallister@gmail.com"
] | andrew.t.mcallister@gmail.com |
aa93644482492d7c44f5eca1018244b286d604e2 | d274e22b1cc5d546855fe46b089b13cfe2f4047c | /april2020/solutions/day09_BackspaceStringCompare.py | 30d079952e4378349da8223c29f7b4761436e541 | [] | no_license | varunkumar032/lockdown-leetcode | ca6b7a8133033110680dd226c897dd8a1482682b | 15a72a53be9005eca816f018cb1b244f2aa4cdfb | refs/heads/master | 2023-06-30T08:31:54.323747 | 2021-07-12T11:29:59 | 2021-07-12T11:29:59 | 260,616,280 | 0 | 0 | null | 2021-05-06T10:24:48 | 2020-05-02T04:52:37 | Python | UTF-8 | Python | false | false | 871 | py | # Given two strings S and T, return if they are equal when both are typed into empty text editors. # means a backspace character.
# Note that after backspacing an empty text, the text will continue empty.
# Input: S = "ab#c", T = "ad#c"
# Output: true
# Explanation: Both S and T become "ac"
# Input: S = "ab##", T = ... | [
"varunkumar032@gmail.com"
] | varunkumar032@gmail.com |
9d30416dbde0fadd9f6983ae45e76ecadabd6bfc | 9f13c7be7e88d2486076db0b89a215ab900fea1a | /main/apps/companies/constants.py | 78f26eda612a3d4efedfd5916981586941e5c942 | [] | no_license | truhlik/reimpay | 534664d2e506f39ec6b0edea471e7cfbad179c3b | ac8291dc8a0ac543283ee10aecd32deba24a1641 | refs/heads/main | 2023-08-10T16:45:55.283272 | 2021-10-06T19:00:15 | 2021-10-06T19:00:15 | 414,333,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | from django.utils.translation import ugettext_lazy as _
COMPANY_ROLE_CONSULTANT = 'CONSULTANT'
COMPANY_ROLE_SUPPLIER = 'SUPPLIER'
COMPANY_ROLE_CLIENT = 'CLIENT'
COMPANY_ROLE_CHOICES = (
(COMPANY_ROLE_CONSULTANT, _("konzultant")),
(COMPANY_ROLE_SUPPLIER, _('dodavatel')),
(COMPANY_ROLE_CLIENT, _('client')),... | [
"lubos@endevel.cz"
] | lubos@endevel.cz |
4384462b85b39bc4fb5c09d2fb77342ad977bf7f | 40111565ed9a8173742cc2ab99402e246a9f4186 | /10-02.py | 01b86b595f8f1c8dcae6a1e50a170ed3d5d7afe3 | [] | no_license | dev-iwin/book8-hanbit-python-data-structure-algorithm | 230827afddb998286972caf0e0a5ff8c34b2e35b | acbe2375ffc9c08a1fc85f3678bb79510c3e67ef | refs/heads/master | 2023-05-27T08:02:12.726463 | 2021-06-18T14:38:26 | 2021-06-18T14:38:26 | 365,667,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | ##
def openBox(count):
# global count
print('open a box')
count -= 1
if count == 0:
print('put the ring in the box and start closing(returning)')
return
openBox(count)
print('close a box')
##
# count = 10
##
openBox(10)
## 전역변수와 글로벌 예약어 없는 함수 만들어 봄 | [
"iwinoriwin@gmail.com"
] | iwinoriwin@gmail.com |
100c0f6bf455b4d8d6385ec7ae5fc380d861e201 | e0980f704a573894350e285f66f4cf390837238e | /.history/home/models_20201029135149.py | 6347dba8abefe069ecae3753cae976878d02f74b | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,449 | py | from django.db import models
from wagtail.core.models import Page
from wagtail.core.fields import StreamField
from wagtail.admin.edit_handlers import FieldPanel, PageChooserPanel, StreamFieldPanel
from wagtail.images.edit_handlers import ImageChooserPanel
from wagtail.snippets.blocks import SnippetChooserBlock
from st... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
9d43663359717d253a9980cc96576b515318a8d1 | 38d93c5fd72fee380ec431b2ca60a069eef8579d | /Baekjoon,SWEA, etc/SWEA/SWEA1204.py | 292423823991c0e5f2517ac7e3215ff32dab41fb | [] | no_license | whgusdn321/Competitive-programming | 5d1b681f5bee90de5678219d91cd0fa764476ddd | 3ff8e6b1d2facd31a8210eddeef851ffd0dce02a | refs/heads/master | 2023-01-01T01:34:22.936373 | 2020-10-24T11:05:08 | 2020-10-24T11:05:08 | 299,181,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | test_cases = int(input())
for _ in range(test_cases):
test_case = int(input())
arr = [int(a) for a in input().split()]
#print('cnt : ',cnt)
nums = [0] * 101
visited = [False]*len(arr)
for i in range(len(arr)):
if not visited[i]:
visited[i] = True
cnt = 1
... | [
"blackgoldace@naver.com"
] | blackgoldace@naver.com |
3dda23706f949ba1c1388b11730ada99a38ff96d | 45e8c30fbcd754e780230c3afd8a587f0833f4b0 | /blender_2.03_tree/lib/Python/Lib/lib-tk/tkFileDialog.py | 1ae9b23bbc5b93d8562dc0f2b63b52d52c319bc9 | [] | no_license | daar/bare-blender | 2fdfb312a1d8f3048346bfa504aa863a61cfe814 | 3306d88a2ac9f78bcc7830c4bcafb4f2c7db7897 | refs/heads/master | 2021-01-16T17:47:42.303184 | 2015-05-19T21:33:46 | 2015-05-19T21:33:46 | 32,135,666 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,661 | py | #
# Instant Python
# $Id: tkFileDialog.py,v 1.2 1998/03/20 20:45:49 guido Exp $
#
# tk common file dialogues
#
# this module provides interfaces to the native file dialogues
# available in Tk 4.2 and newer.
#
# written by Fredrik Lundh, May 1997.
#
#
# options (all have default values):
#
# - defaultext... | [
"dhkblaszyk@zeelandnet.nl"
] | dhkblaszyk@zeelandnet.nl |
c26f00071fa45d649e7d16b9a32836eaaa3f14c3 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_12_01/operations/_express_route_circuits_operations.py | 72d2c09e91238b368c6a4c6de0806a9322ccfd92 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 53,999 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
80781bd69b869d70db3f384be16b28e9ba72765f | f06fbdc8b7afc85456dd07d3e3a4f4d99fbf2c8e | /Django_example_Dronov/broomtrade/blog/views.py | 9060f021da282733ca4ee88534c17d6838f64326 | [] | no_license | MaxOvcharov/Django_projects | fc8ce25ebc0e5be2ae8b763b3b5a62f0efb30e64 | 365223ea4086a50a6112df3e1e5d18eb727ba175 | refs/heads/master | 2020-12-24T10:15:42.826235 | 2017-03-01T14:21:18 | 2017-03-01T14:21:18 | 73,089,724 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,739 | py | from django.shortcuts import redirect
from django.views.generic.dates import ArchiveIndexView
from django.views.generic.detail import DetailView
from django.views.generic.edit import CreateView
from django.contrib.messages.views import SuccessMessageMixin
from django.core.urlresolvers import reverse_lazy, reverse
from ... | [
"ovcharovmax@yandex.ru"
] | ovcharovmax@yandex.ru |
9a6df3a0c75fb3c5814bc95068c00e0dc8de2216 | 19d47d47c9614dddcf2f8d744d883a90ade0ce82 | /pynsxt/swagger_client/models/service_endpoint.py | 7eabf699fe1ed244f41d49b00779d3641d2f0891 | [] | no_license | darshanhuang1/pynsxt-1 | 9ed7c0da9b3a64e837a26cbbd8b228e811cee823 | fb1091dff1af7f8b8f01aec715682dea60765eb8 | refs/heads/master | 2020-05-25T14:51:09.932853 | 2018-05-16T12:43:48 | 2018-05-16T12:43:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,558 | py | # coding: utf-8
"""
NSX API
VMware NSX REST API # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class ServiceEndpoint(object):
"""NOTE: This class is auto generated by the swa... | [
"tcraft@pivotal.io"
] | tcraft@pivotal.io |
22b00b423f3ca83542cbc8f002f017ff9ead3cfb | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/946.py | a4b7ef908e2bad49af3b77df1845924d86f1de21 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | #!/usr/bin/env python
def solve(number):
number = '0' + str(number)
n = len(number)
i = n - 1
while i > 0 and int(number[i-1]) <= int(number[i]):
i = i - 1
if i == 0:
return int(number)
else:
return solve(int(number[:i]) * (10**(n-i)) - 1)
T = int(raw_input().strip())... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
9e873eeb2ab441a002d7cabf7223caa15d5a0174 | 65a4e45841f37897d50649c27e5718c515af3dc7 | /howMuchYouKnowMe/urls.py | 2586651f9fbe52c8ec9a3beb6cc0cf564d9ea6dd | [] | no_license | firchatn/how-much-you-know-me | eb18e02bcdfae3a9c13358c431dbe6fa52ec4bd9 | c82f29cb30490f7936d6e2a819f5a722daf7875a | refs/heads/master | 2021-05-09T14:10:49.692439 | 2018-11-02T10:04:01 | 2018-11-02T10:04:01 | 119,054,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | """howMuchYouKnowMe URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')... | [
"firaschaabencss@gmail.com"
] | firaschaabencss@gmail.com |
0e40bb707020239e68a209e5b1442254acc90cde | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /tests/components/airzone_cloud/test_diagnostics.py | 8bef70501e71bfe69b9bfa0ef907c98cacca56ca | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 2,252 | py | """The diagnostics tests for the Airzone Cloud platform."""
from unittest.mock import patch
from aioairzone_cloud.const import (
API_DEVICE_ID,
API_DEVICES,
API_GROUP_ID,
API_GROUPS,
API_WS_ID,
RAW_DEVICES_CONFIG,
RAW_DEVICES_STATUS,
RAW_INSTALLATIONS,
RAW_INSTALLATIONS_LIST,
R... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
e2e61118b4627f8cfd8ed0896576305655bb666c | 549270020f6c8724e2ef1b12e38d11b025579f8d | /recipes/hffix/all/conanfile.py | b8be09b23ee81473b167358e04ecbd95339baf44 | [
"MIT"
] | permissive | conan-io/conan-center-index | 1bcec065ccd65aa38b1fed93fbd94d9d5fe6bc43 | 3b17e69bb4e5601a850b6e006e44775e690bac33 | refs/heads/master | 2023-08-31T11:34:45.403978 | 2023-08-31T11:13:23 | 2023-08-31T11:13:23 | 204,671,232 | 844 | 1,820 | MIT | 2023-09-14T21:22:42 | 2019-08-27T09:43:58 | Python | UTF-8 | Python | false | false | 1,280 | py | from conan import ConanFile
from conan.tools.files import copy, get
from conan.tools.layout import basic_layout
import os
required_conan_version = ">=1.50.0"
class HffixConan(ConanFile):
name = "hffix"
description = "Financial Information Exchange Protocol C++ Library"
license = "BSD-2-Clause"
topics... | [
"noreply@github.com"
] | conan-io.noreply@github.com |
8584c478e5ca5d7454e24eff35a1906ad0cb5360 | 69ab20eb169b29ace1f196097dec8448fdeaa8be | /daemon/rmq_v1/device_thread.py | d3205c6713ca5059ed11c5d16942ca7d58f5c402 | [
"MIT"
] | permissive | vt-gs/rffe_daemon | 3d30dcad3f645eba4664ef9d014f65287d63efb6 | f68042ef41c787593b394c6337ad90f624372850 | refs/heads/master | 2021-06-10T04:18:18.420097 | 2019-11-26T03:00:01 | 2019-11-26T03:00:01 | 146,212,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,803 | py | #!/usr/bin/env python
#############################################
# Title: Numato Ethernet Relay Interface #
# Project: VTGS Relay Control Daemon #
# Version: 2.0 #
# Date: Dec 15, 2017 #
# Author: Zach Leffke, KJ4QLP #
# Comment: ... | [
"zleffke@vt.edu"
] | zleffke@vt.edu |
7b3c33cd1144f975730485da2436ce82a664a3db | 047137999ba07a87964b2ca999686c323d415788 | /backend/users/migrations/0009_user_nbvbnvnbv.py | 9d3729234a36b5083354b075ba9c1dc9281fda00 | [] | no_license | crowdbotics-apps/mobile-18-sept-dev-11203 | 54f9bb3c169d9b3f12df9bfd8ce88df10afa360a | c801b4a63c972ab790c70cf9af76d8326b6023bc | refs/heads/master | 2022-12-16T04:16:00.860760 | 2020-09-18T07:05:30 | 2020-09-18T07:05:30 | 296,520,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # Generated by Django 2.2.16 on 2020-09-18 06:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("users", "0008_user_vnbvnv"),
]
operations = [
migrations.AddField(
model_name="user",
name="nbvbnvnbv",
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
c030296eb5596ff50a20a351218babea1ac6119c | 059f227a53ecd8f148f812e4ffdcd129e2383647 | /clone/views.py | dd6b2a444f083864f7d38334c03743f154c5dfd3 | [] | no_license | Wakarende/instagram-clone | ed878e185a48b462294e0c49297a5b9e18d5734d | c2b3d143e4f00279b1a10490ce78c7fd618fec47 | refs/heads/master | 2023-05-02T15:55:43.283023 | 2021-05-25T08:51:30 | 2021-05-25T08:51:30 | 369,212,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,429 | py | from django.shortcuts import render, redirect
from .models import Image, Profile, Follow, Comment
from django.contrib.auth.decorators import login_required
from django.http import HttpResponseRedirect, Http404
from .forms import (
CreateProfileForm,
UploadImageForm,
EditBioForm,
FollowForm,
Unfollow... | [
"joykirii@gmail.com"
] | joykirii@gmail.com |
ef147dc877d8265c16b8cffee03f57034919fde5 | 49caef1f93bd4673530e0a4c54c59028fb7b54e6 | /addons-barefoot/npg_delivery/sale.py | bd8586dfe72f0f26374a3ab27a4e1d8d5ae4b368 | [] | no_license | slevenhagen/addons-extra7.0 | 7622024198c0cf637f3f4767eb2b955532af3710 | 85611a86a0e1522fd88b5e6fbb217f425c4ae12d | refs/heads/master | 2020-03-17T14:12:42.082766 | 2018-05-16T13:02:05 | 2018-05-16T13:02:05 | 133,663,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,514 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"slevenhagen@novapointgroup.com"
] | slevenhagen@novapointgroup.com |
2b72c7930f467598220c1a1d7f2a4abeeacc9d67 | 42f4238073a70d1494537f8c8b07835b531e73a9 | /benchmarks/inputTemplates/ls_consrv_n.py | 5a64f8c6679c5bdafa92a47fa192dfe265ff44e0 | [] | no_license | erdc/proteus-mprans | bd99257af7b3bbe08386533faf072dba22e93a61 | f8f4d20bc870b361c64c8ca2ceb99f045b373323 | refs/heads/master | 2022-09-11T13:18:39.973962 | 2022-08-11T16:27:29 | 2022-08-11T16:27:29 | 2,303,947 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 961 | py | from proteus import *
from example import *
from ls_consrv_p import *
timeIntegrator = ForwardIntegrator
timeIntegration = NoIntegration
femSpaces = {0:basis}
subgridError = None
massLumping = False
numericalFluxType = DoNothing
conservativeFlux = None
shockCapturing = None
fullNewtonFlag = True
mul... | [
"cekees@gmail.com"
] | cekees@gmail.com |
787dea83a86e406ae29fae75dbbdf204e848aafc | c2be395eac600d0d853de03cd67070bd8391038f | /ofm_promotion/wizard/import_promotion.py | 0b92c84403b89b2947ebdd84cebaa4eb0d289649 | [] | no_license | amendoncabh/salary_emp | 960cfdb4df48df70ab361886039c790840a5e8d2 | 2ac2dd9461271153cb2ee406bf70a29f614c25f1 | refs/heads/master | 2022-03-30T22:35:10.704092 | 2020-01-05T16:23:20 | 2020-01-05T16:23:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,360 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models, _
import csv
from StringIO import StringIO
class ImportPromotion(models.TransientModel):
_name = 'import.promotion.wizard'
_description = "Import Promotion"
binary_dat... | [
"loveprakon@gmail.com"
] | loveprakon@gmail.com |
62a83a56647add3e4e60812cac57fbffb794c5d6 | 38594716e8437f05ab49b12164bc873c787319e5 | /test.py | f67f6f801f27ecc2a5366708247599db60bfc34f | [] | no_license | adam-weiler/css_colour_converting | 37a92b1407daf15d9e5e851e30012ddf527635c8 | 3e47e5d6240d56f994d80065c0fa7a9c35516714 | refs/heads/master | 2020-06-20T23:50:56.730747 | 2019-07-21T18:06:36 | 2019-07-21T18:06:36 | 197,292,178 | 0 | 0 | null | 2019-07-17T01:28:19 | 2019-07-17T01:28:19 | null | UTF-8 | Python | false | false | 1,502 | py | # -*- coding: utf-8 -*-
import cssutils
import webcolors
import logging
cssutils.log.setLevel(logging.CRITICAL) #Disables warnings and errors triggered by new CSS properties and values.
# parser = cssutils.CSSParser()
# optionally
# parser.setFetcher('none') #The default fetcher emits a warning if encountering a diff... | [
"adam.weiler@yahoo.ca"
] | adam.weiler@yahoo.ca |
740fc99898ad661516a36abd7ee8a87c52d9ec02 | f16144aee1e5725823ec5434c28bb936223ffab9 | /venv/bin/pip3 | f7100f488265f6ba42e9a368ac959f63d2ba73f0 | [] | no_license | GarrettMatthews/UtahLake | d0899ba6f41616ad66a983680f6fa3a23c39864a | 032ede8676d07f5c1cfccf3b47534ef235a7dfe9 | refs/heads/master | 2020-04-17T09:15:49.189252 | 2019-11-12T16:47:36 | 2019-11-12T16:47:36 | 166,451,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | #!/home/garrett/Desktop/Git_Repositories/UtahLake/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv... | [
"garrettemathews@gmail.com"
] | garrettemathews@gmail.com | |
35d1e4484bff1678fe96077438f1c79ec9f05bf8 | d5e02cf693bd63d39ca390388b1df5e64561f697 | /api/diseases/controllers.py | 4940972bdf3cb76f99aa04013a0fde07a7a17a2f | [] | no_license | RachitBhargava99/PlantMD | 0c0104ce1800b7b9a93d69c2ddfd077e9b2f7139 | a3f757081ec33232116f1f435b2f23c19db6f6c6 | refs/heads/master | 2023-01-13T11:47:51.811344 | 2020-11-08T16:13:24 | 2020-11-08T16:13:24 | 310,773,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,899 | py | from sqlalchemy.orm import Session
from datetime import datetime
from typing import List, Union
from db import models, schemas
def _create_fruit_if_not_exists(db: Session, fruit_name: str) -> None:
db_fruit = db.query(models.Fruit).filter_by(name=fruit_name).first()
if db_fruit is None:
db_fruit = m... | [
"rachitbhargava99@gmail.com"
] | rachitbhargava99@gmail.com |
972fecbf5a227bf3616b48eace436b63d1f97d89 | 3b67f827c7c78a6f7171a87c6022111d71bd41d2 | /app/error_class.py | 91749794e8ecb9373c434d8274183a94721d320f | [] | no_license | madmax330/pypass | 03d4636417c3b422912a421a90cfb7eecd3d9cc5 | ee3b3004201e0b55b17b830dfa23830c54007863 | refs/heads/master | 2021-05-13T22:32:17.646147 | 2020-01-07T17:56:25 | 2020-01-07T17:56:25 | 116,490,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | from app.ui.colors import BColors
class ErrorClass:
def __init__(self):
self.className = 'Error Class'
self.errors = []
def add_error(self, error):
self.errors.append(error)
def print_errors(self):
if len(self.errors):
print(BColors.FAIL + self.className + ' ... | [
"madmax330@yahoo.com"
] | madmax330@yahoo.com |
e659d6db76cbe8097ba16767dcc2aede180396b4 | b76615ff745c6d66803506251c3d4109faf50802 | /pyobjc-framework-Cocoa/PyObjCTest/test_nstextlist.py | a753e7cc7548e75e02c48cd383d21e66a366b2a8 | [
"MIT"
] | permissive | danchr/pyobjc-git | 6ef17e472f54251e283a0801ce29e9eff9c20ac0 | 62b787fddeb381184043c7ff136f1c480755ab69 | refs/heads/master | 2021-01-04T12:24:31.581750 | 2020-02-02T20:43:02 | 2020-02-02T20:43:02 | 240,537,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | from PyObjCTools.TestSupport import *
from AppKit import *
class TestNSTextList(TestCase):
def testConstants(self):
self.assertEqual(NSTextListPrependEnclosingMarker, 1)
@min_os_level("10.13")
def testConstants10_13(self):
self.assertIsInstance(NSTextListMarkerBox, unicode)
self.a... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
707c523ac074056d6964ac388937751d11946655 | 8800e17282742b3253a7ee07a3e50b72be27c0b7 | /tests/test_api_twoway_comm.py | e23b0296abacc9ed454f9d8e0a971c2b44707336 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | 20c/xbahn | e2cb4e41d6cda7b4a88588550a8e0e4b8f114ff8 | afb27b0576841338a366d7cac0200a782bd84be6 | refs/heads/master | 2022-09-27T16:19:55.642598 | 2016-12-03T17:43:23 | 2016-12-03T17:43:23 | 74,609,096 | 0 | 1 | Apache-2.0 | 2022-09-20T18:04:05 | 2016-11-23T19:49:59 | Python | UTF-8 | Python | false | false | 2,969 | py | from builtins import object
import sys
import unittest
import pytest
import time
import uuid
import xbahn.connection.zmq
import xbahn.connection.link as link
import xbahn.api as api
import xbahn.message as message
import xbahn.exceptions as exceptions
import threading
from conftest import XbahnTestCase
class Server(... | [
"stefan@20c.com"
] | stefan@20c.com |
aae12c4797854299a5410c354d01dda8fd350365 | 08acec95bd1dc302633fadf7b47cd8ba3b749ff3 | /day-2018-04-02/myproject/venv/lib/python2.7/site-packages/zope/traversing/testing.py | 177b76d036664cd94bf1642bb8244d7c26d1bb05 | [] | no_license | WeAreHus/StudyRecord | 74a312103ad2c037de23534160fa42d6a68ad174 | 047b7d9dcbee7c01ad2e8b888b160e66dfa9012d | refs/heads/master | 2022-12-16T14:47:15.984939 | 2019-04-29T15:16:15 | 2019-04-29T15:16:15 | 127,758,387 | 2 | 1 | null | 2022-11-22T02:50:30 | 2018-04-02T13:15:07 | Python | UTF-8 | Python | false | false | 3,473 | py | ##############################################################################
#
# Copyright (c) 2005 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | [
"1131360171@qq.com"
] | 1131360171@qq.com |
897f68812bc373d0833e7e786b96673937a5fe9e | a56252fda5c9e42eff04792c6e16e413ad51ba1a | /resources/usr/local/lib/python2.7/dist-packages/sklearn/feature_selection/rfe.py | 799e0aaee986984cca6cb0a8cc77c18473a59bb1 | [
"Apache-2.0"
] | permissive | edawson/parliament2 | 4231e692565dbecf99d09148e75c00750e6797c4 | 2632aa3484ef64c9539c4885026b705b737f6d1e | refs/heads/master | 2021-06-21T23:13:29.482239 | 2020-12-07T21:10:08 | 2020-12-07T21:10:08 | 150,246,745 | 0 | 0 | Apache-2.0 | 2019-09-11T03:22:55 | 2018-09-25T10:21:03 | Python | UTF-8 | Python | false | false | 14,003 | py | # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Vincent Michel <vincent.michel@inria.fr>
# Gilles Louppe <g.louppe@gmail.com>
#
# License: BSD 3 clause
"""Recursive feature elimination for feature ranking"""
import numpy as np
from ..utils import check_arrays, safe_sqr
from ..base impo... | [
"szarate@dnanexus.com"
] | szarate@dnanexus.com |
5987b4a979fdcca3f9083fa418766b6a69744b4a | 6d96d1612aca4a890cdebeef2a89c739bbd5b57b | /heat_cfnclient/utils.py | e5ba82fd6ff683caeebc6b382f165addb5c1bf12 | [
"Apache-2.0"
] | permissive | mshabdiz/heat-cfnclient | 1168c94e30d97058e1b53fdf3aa87613806276e6 | b30de4e5e94fe68f683905c4b647207b5719fbdd | refs/heads/master | 2021-01-15T10:46:53.087074 | 2014-02-24T01:52:41 | 2014-02-24T01:52:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,128 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# 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 applicab... | [
"sbaker@redhat.com"
] | sbaker@redhat.com |
f13b03367cc25419b2ee5376da4b50759660ab5f | 6efc92f06a58e984b019d7bb958fdfb1970214fb | /HOW_TO/Simple/HowToUseLMUltimateTest.py | e585b4edba516d70b2b5e19b9513de953dbb5841 | [] | no_license | sulantha2006/pyVoxelStats | af129baa4eeeb9ea1d5197345c34232736c1cdef | b34c113cba3c0047f3294169c43eced0f70b500b | refs/heads/master | 2022-08-10T16:58:10.605845 | 2022-07-31T18:55:53 | 2022-07-31T18:55:53 | 170,698,753 | 0 | 4 | null | 2022-07-31T18:49:59 | 2019-02-14T13:51:10 | Python | UTF-8 | Python | false | false | 765 | py | from pyVS.pyVoxelStats.pyVoxelStatsLM import pyVoxelStatsLM
model_string = 'fdg ~ AV45_pathbl + AV45_bl_norm + VBM + Age + C(PTGENDER) + C(APOE) + PTEDUCAT'
csv_file = '/data/data03/tharick/Paper_3/All_baseline_fdg_av45.csv'
mask_file = '/data/data03/sulantha/quarantine/mni_icbm152_t1_tal_nlin_sym_09a_mask.mnc'
voxe... | [
"sulantha.s@gmail.com"
] | sulantha.s@gmail.com |
f98404e5353c1cd1a9f54d4e3edf1c2bf02eb798 | 4809471274d6e136ac66d1998de5acb185d1164e | /pypureclient/flasharray/FA_2_7/models/host_performance_by_array.py | f0b47f1bf582e21d5db0d392db3013bb0a6071fe | [
"BSD-2-Clause"
] | permissive | astrojuanlu/py-pure-client | 053fef697ad03b37ba7ae21a0bbb466abf978827 | 6fa605079950765c316eb21c3924e8329d5e3e8a | refs/heads/master | 2023-06-05T20:23:36.946023 | 2021-06-28T23:44:24 | 2021-06-28T23:44:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,705 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.7
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from .... | [
"hubert.chan@purestorage.com"
] | hubert.chan@purestorage.com |
cdc42fe67b88b5f25b1ebdbee22b709d27115bbe | 4f7d2beed58fd3f484b1930ca3adeac406576d66 | /api/lib/urlhelpers.py | b5e7f63ab747f23266054ce43672e9a32a2887a4 | [] | no_license | Srinidhi-SA/mAdvisorStgAPIUI | 55515997fff1e30fe22f6a88cc222dcd51816031 | 75653e9f2eef51be771991edd6473f470b344110 | refs/heads/main | 2023-08-24T15:53:27.585277 | 2021-10-08T06:27:49 | 2021-10-08T06:27:49 | 343,185,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | from api.models.profile import Profile
from rest_framework.exceptions import AuthenticationFailed
def get_current_user(request):
token = request.META.get('HTTP_TOKEN') or request.META.get('HTTP_X_TOKEN')
if not token:
raise AuthenticationFailed(detail="Please provied a User Token")
try:
p... | [
"Srinidhi.Anantharamu@gmail.com"
] | Srinidhi.Anantharamu@gmail.com |
8f3afd6947d328c870c044f2f56229eedbab7201 | 0d24036dcf8736c0392a1ee1c2f3b45633221d8a | /etc/src/genpy-bgp-oper/cisco_ios_xr_ipv4_bgp_oper/bgp/instances/instance/instance_active/default_vrf/neighbors/neighbor/bgp_nbr_bag_pb2.py | 67fb15d3b022b6db8ce334627eca7c0fb58814f1 | [] | no_license | mspiez/telemetry_collector | c4b97c6686748fc20748898a25e9fc756d2d0b63 | 52ed12c06debfe04181f0bfea9854a66ed8bb3df | refs/heads/master | 2020-12-19T23:28:08.358956 | 2020-05-02T19:54:38 | 2020-05-02T19:54:38 | 235,883,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 231,799 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: cisco_ios_xr_ipv4_bgp_oper/bgp/instances/instance/instance_active/default_vrf/neighbors/neighbor/bgp_nbr_bag.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 _descri... | [
"mspiez@gmail.com"
] | mspiez@gmail.com |
27e8a54f3dbb76b76351574ca2d31ee1e8a21a04 | 6e412dbfdca6deb426b36a5cef6827f287c2e060 | /django/myproject/myproject/settings.py | ef6971bd37e33998595459435700d850cbeb57c2 | [
"BSD-2-Clause"
] | permissive | mblayman/web-framework-shootout | 9c1766b98c5a8e54cf924602db71b445722e49bb | fab6c2c3576dd7598900024d0907ae3957d852c1 | refs/heads/master | 2021-07-09T07:54:15.913355 | 2017-10-08T03:02:00 | 2017-10-08T03:02:00 | 105,391,077 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,131 | py | """
Django settings for myproject project.
Generated by 'django-admin startproject' using Django 1.11.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import ... | [
"matthewlayman@gmail.com"
] | matthewlayman@gmail.com |
06ae133ff7ffd42fddbb78e0e2b2b778e4b45e1a | a8e756f58516452229ed757472e91ca5068d2729 | /work/test/testaa.py | 0a6a7496f05a473bad89ef1f019f50b0ed64d0bd | [] | no_license | manon2012/python | 519fba7c1a9690de75430d00ff8f1b6cfedc9ac8 | db7f8655ed188a60af9f5b6348073836fed59539 | refs/heads/master | 2022-04-02T22:05:50.216825 | 2020-01-21T07:03:30 | 2020-01-21T07:03:30 | 92,012,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | import unittest
class MyTest(unittest.TestCase):
def setup(self):
print ("it is baseline")
def test_01(self):
self.assertEqual('a','a')
def test_02(self):
self.assertIn('a','abc')
def tearDown(self):
print ("it is clear")
if __name__ == '__main__':
unittest.mai... | [
"manon2012@126.com"
] | manon2012@126.com |
9ebf55d79cf50f1efaf91f2ab39ee06ba03243d7 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp/sblp_ut=3.5_rd=0.8_rw=0.06_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=56/params.py | 136b90c9b405a3f0fe453e4ce3e9e29e2de3449d | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.606500',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.8',
'res_nmb': '4',
'res_weight': '0.06',
'scheduler': 'RUN',
'trial': 56,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
721b978e1afd8f691abdf9345ac508944fb37bc7 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/image_classification/SlowFast_ID0646_for_PyTorch/detectron2/projects/DensePose/densepose/modeling/losses/__init__.py | 039ab18b2daca03fbac9424b032b2b9689e5c151 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 2,060 | py | #
# BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
f9a38c1794ef54741fab0362fa77b5edebecd180 | 3a10c9348a4e6e2065ebca82256170bdd2db76bf | /tfx/orchestration/kubeflow/test_utils.py | ce006346d75a55020bda36bd64d3d6461d8681cb | [
"Apache-2.0"
] | permissive | jinnovation/tfx | 676bbad6dce1fabec55d95d2fcdc385a80fc01cc | bb7ae241c17aae237a20420899f14e0c332b61d6 | refs/heads/master | 2020-06-21T10:38:32.865806 | 2019-11-01T23:40:41 | 2019-11-01T23:41:19 | 197,424,448 | 0 | 0 | Apache-2.0 | 2019-07-17T16:19:51 | 2019-07-17T16:19:51 | null | UTF-8 | Python | false | false | 15,561 | py | # Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"tensorflow-extended-team@google.com"
] | tensorflow-extended-team@google.com |
a1174c899cb8ec5d3ea4066bb500940b32754ca8 | 2b42b40ae2e84b438146003bf231532973f1081d | /spec/mgm4458482.3.spec | 1d02bdb92aa7e6255440a8871853141c45ae89ac | [] | no_license | MG-RAST/mtf | 0ea0ebd0c0eb18ec6711e30de7cc336bdae7215a | e2ddb3b145068f22808ef43e2bbbbaeec7abccff | refs/heads/master | 2020-05-20T15:32:04.334532 | 2012-03-05T09:51:49 | 2012-03-05T09:51:49 | 3,625,755 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,310 | spec | {
"id": "mgm4458482.3",
"metadata": {
"mgm4458482.3.metadata.json": {
"format": "json",
"provider": "metagenomics.anl.gov"
}
},
"providers": {
"metagenomics.anl.gov": {
"files": {
"100.preprocess.info": {
... | [
"jared.wilkening@gmail.com"
] | jared.wilkening@gmail.com |
987c075aa73e72d186699042de25a2d28fd65f9f | b685036280331fa50fcd87f269521342ec1b437b | /src/demo/WSGI_demo/server_01.py | 497668e07610b54641dca989d92f3c672bce8142 | [] | no_license | chenqing666/myML_DM_Test | f875cb5b2a92e81bc3de2a0070c0185b7eacac89 | 5ac38f7872d94ca7cedd4f5057bb93732b5edbad | refs/heads/master | 2022-02-26T01:52:06.293025 | 2019-09-20T06:35:25 | 2019-09-20T06:35:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | from wsgiref.simple_server import make_server
config = "python_paste.ini"
appname = "common"
| [
"daijitao@ctsi.com.cn"
] | daijitao@ctsi.com.cn |
e9759fd8cab78c20228164dfd2270162e22c5ec3 | 6a0abe2f4172f680415d83f1946baaf85e5711b7 | /aliyun-python-sdk-dds/aliyunsdkdds/request/v20151201/ModifyBackupPolicyRequest.py | 77a5de87f98199d2b27f0af3c3621dcdabfb0254 | [
"Apache-2.0"
] | permissive | brw123/aliyun-openapi-python-sdk | 905556b268cbe4398f0f57b48422b713d9e89a51 | 8c77db6fd6503343cffa3c86fcb9d11770a64ca2 | refs/heads/master | 2020-05-01T16:26:49.291948 | 2019-03-21T09:11:55 | 2019-03-21T09:11:55 | 177,572,187 | 1 | 0 | null | 2019-03-25T11:21:59 | 2019-03-25T11:21:59 | null | UTF-8 | Python | false | false | 2,590 | 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... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
01ac872596340f689fffa57afb5aca52537931a7 | 2c95e0f7bb3f977306f479d5c99601ab1d5c61f2 | /olive/wallet/wallet_state_manager.py | 76f76b7d6497037d336661e44a90728e1b219d80 | [
"Apache-2.0"
] | permissive | Olive-blockchain/Olive-blockchain-CLI | d62444f8456467f8105531178d2ae53d6e92087d | 8c4a9a382d68fc1d71c5b6c1da858922a8bb8808 | refs/heads/main | 2023-07-19T03:51:08.700834 | 2021-09-19T16:05:10 | 2021-09-19T16:05:10 | 406,045,499 | 0 | 0 | Apache-2.0 | 2021-09-19T16:05:10 | 2021-09-13T16:20:38 | Python | UTF-8 | Python | false | false | 52,201 | py | import asyncio
import base64
import json
import logging
import time
from collections import defaultdict
from pathlib import Path
from typing import Any, Callable, Dict, List, Optional, Set, Tuple
import aiosqlite
from blspy import AugSchemeMPL, G1Element, PrivateKey
from chiabip158 import PyBIP158
from cryptography.fe... | [
"87711356+Olive-blockchain@users.noreply.github.com"
] | 87711356+Olive-blockchain@users.noreply.github.com |
0e42737c6a43792840d0051c36a6cd5ea1e57aa2 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_cravens.py | 21b84e9e58fe8cde6f4d5a0031cf6f63b5ad8d3f | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py |
#calss header
class _CRAVENS():
def __init__(self,):
self.name = "CRAVENS"
self.definitions = craven
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['craven']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
a116f60eceb499f1e6fe96409ffe78a1a4ca1748 | 47aa2ca2708cb092737270e82f0879d76249456d | /code/sub_model_test.py | c5bd818cb55f79835afd5c2889b290055c3c7fe0 | [] | no_license | xzk-seu/DGCNN | 1d14ffbb862bfef450bb19a7e2e18c191fac458f | 8da9eb492e35d432735b393d3b07045e2571e93c | refs/heads/master | 2022-11-14T23:23:28.592158 | 2020-06-29T16:39:41 | 2020-06-29T16:39:41 | 273,886,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,907 | py | import numpy as np
import paddle.fluid as fluid
from data_loader import DataGeneratorPaddle
from conv1d import Conv1d, DilatedGatedConv1d
from tqdm import tqdm
import os
EPOCH = 60
BATCH_SIZE = 64
USE_GPU = True
LEARNING_RATE = 1e-5
"""
预测subject的模型能跑通,但是似乎不收敛(考虑调学习率),
速度较慢
预测部分还没写
"""
class SubjectModel(fluid.dygr... | [
"1399350807@qq.com"
] | 1399350807@qq.com |
0d4393e7d46194ccebe5444b04c6a6ce2a06c00a | 232b2e8881a4ba693bea940022d68cc22caeccbb | /virtual/lib/python3.6/site-packages/pylint/pyreverse/vcgutils.py | bb0df9f3713e43c48d80e8d20fac8ded4512c14f | [
"MIT"
] | permissive | bryomajor/my-developer-life | b52ea3cd39e5d8226c51c700da32f5daf2489dc7 | 8332e1da4d24511255b1b7fc02f94ae4352f87a1 | refs/heads/master | 2022-12-08T08:18:40.266324 | 2019-10-29T13:40:44 | 2019-10-29T13:40:44 | 217,529,308 | 1 | 2 | MIT | 2022-12-08T06:47:28 | 2019-10-25T12:31:00 | Python | UTF-8 | Python | false | false | 6,728 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2015-2017 Claudiu Popa <pcmanticore@gmail.com>
# Copyright (c) 2015 Florian Bruhin <me@the-compiler.org>
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
"""Functions to generate ... | [
"bryomajor@gmail.com"
] | bryomajor@gmail.com |
bb440924c0ee040fae7a24598320169d374773e5 | e56f6de4a6ef3970e146870ec1743bf6aa7c0687 | /CheckoutLineSimulation.py | 449c26119f61168d2751a8fcb7d8442cee332874 | [] | no_license | CodeProgress/DataAnalysis | 0bbcb0155351a9c9893079436739afa67653e641 | ce98b3c10fb719a047ffeedc34b16858687b7e1f | refs/heads/master | 2021-12-31T19:33:38.386511 | 2021-12-30T18:04:38 | 2021-12-30T18:04:38 | 12,932,358 | 0 | 0 | null | 2014-01-31T17:14:52 | 2013-09-18T19:21:11 | Python | UTF-8 | Python | false | false | 7,621 | py | #Checkout Line Simulation
import random
import Queue
import pylab
#import cProfile
'''
Questions this simulation hopes to answer:
For every additional register, how much faster is the checkout time?
Is it faster to have one line that sends the customers to the next available
register, or to have people pick a line ... | [
"codeprogress1@gmail.com"
] | codeprogress1@gmail.com |
98baf892afae0da49c72ae9180c5eba147b41c00 | 5df8b0f5bda2603cf5437c2bcf1e30b326ea791e | /LeetCode/ReverseInteger.py | 8de62584987dc2db2c7bd876e5dd8031d4363aa9 | [] | no_license | RishabhKatiyar/CorePython | 4e9133ab3949815290157818b9be8ab943f9b802 | d4e80e26b4c439fa269351c674466a2918eaaf77 | refs/heads/main | 2023-07-19T14:03:38.662270 | 2021-09-05T09:09:51 | 2021-09-05T09:09:51 | 369,292,272 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | class Solution:
def reverse(self, x: int) -> int:
is_negative = False
if x < 0:
is_negative = True
x = abs(x)
reverse = 0
while x > 0:
reverse = (reverse * 10) + (x % 10)
x = int(x / 10)
x = reverse if not is_negative else -... | [
"rishabh.katiyar@outlook.com"
] | rishabh.katiyar@outlook.com |
86761f0a682cb3a1748072a29ba575fdd189516e | 1605519e6ec6f2a092d006a851c9ce57e5a2203c | /Mundo 1/Ex007 - media.py | 2e4c73e488ca3b85e9a659f241e31bd625d5babb | [
"MIT"
] | permissive | FelipeDreissig/Prog-em-Py---CursoEmVideo | 2ebe8d537493a917b59d7c98fb8bea34e2d6b5fc | 59a85e228b4c7bc0738d1a213e71b0f7fb07d03a | refs/heads/main | 2023-02-06T23:57:43.123295 | 2020-12-28T12:59:04 | 2020-12-28T12:59:04 | 324,915,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | ## calculando a média das notas
nota1 = float(input('Qual a primeira nota?'))
nota2 = float(input('Qual a segunda nota?'))
media = (nota1+nota2)/2
print('A nota média é {}. Sendo a primera nota {} e a segunda nota sendo {}.'.format(media, nota1, nota2)) | [
"58836663+FelipeDreissig@users.noreply.github.com"
] | 58836663+FelipeDreissig@users.noreply.github.com |
5fcb0fdd0cc7bcc8eab83fdebeabfa6a556b9cf7 | 60c76946c54317472326214aec8e4c40e65e557f | /apps/utils/send_email.py | fef29811435058e0a4342f4242a8a44b82a3eded | [] | no_license | Aiyane/Xuehai | 73b3d3043016d05000dd951e5b69165c181d14c6 | 6bf67eb97c1543defaa97e2f77c7b8bd0e89bcb8 | refs/heads/master | 2020-03-23T00:26:18.065304 | 2018-07-14T12:41:30 | 2018-07-14T12:41:30 | 140,863,193 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,613 | py | # _*_ coding: utf-8 _*_
__author__ = 'aiyane'
__date__ = '2017/4/23 1:49'
from random import Random # 随机数
from django.core.mail import send_mail # 引入发送邮件方法
from users.models import EmailVerifyRecord # 引入邮箱验证表单
from ruan.settings import EMAIL_FROM # 引入配置中的发送人
def random_str(randomlength=8):
"""
这是一个随机验证码生... | [
"2310091880qq@gmail.com"
] | 2310091880qq@gmail.com |
87c60f7e0514c41972573110f36101186de46e9c | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/quota.py | 3e375872efabf507c1a092758495874e6358a9e5 | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,668 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class Quota:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
6646899d0b6cd1cc791ef4c4753c06d35eaf7a35 | ea315ca9565b56a772c66e89824fa79466170eae | /backend/tstmemberinvitation_13571/wsgi.py | a244e276068a97b8d66c8ad8e2ac0d637ecb4e6b | [] | no_license | andremcb/tstmemberinvitation-13571 | a42be801b5d655743ade21f32bcd79db5e8d8e66 | 3d09dc77153e91cb6071fa5b0429f7f91ba41a2f | refs/heads/master | 2023-01-04T01:27:04.342305 | 2020-10-27T21:42:53 | 2020-10-27T21:42:53 | 307,835,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | """
WSGI config for tstmemberinvitation_13571 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.setdef... | [
"csantos.machado@gmail.com"
] | csantos.machado@gmail.com |
e8a24653432a212fa50137a736b7d47670727db8 | b2eda41d1b0c29612f90f4196c03dbd97b7c6323 | /teste/ex045.py | c6a70a93215c22a069e88f4bea7a224f3f048468 | [] | no_license | 3005200317/exercicios-python | c7dbfbe701fd3c000016e0eb6544876b6e3615de | 503a8be2a9cca17e06816e8babe2dba1991c9568 | refs/heads/master | 2023-07-15T10:00:28.121502 | 2021-08-24T18:43:23 | 2021-08-24T18:43:23 | 290,904,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py | from random import randint
from time import sleep
itens = ('Pedra', 'Papel', 'Tesoura')
computador = randint(0, 2)
print('''Suas opções:
[ 0 ] PEDRA
[ 1 ] PAPEL
[ 2 ] TESOURA''')
jogador = int(input('Qual é a sua jogada? '))
sleep(1)
print('JO')
sleep(2)
print('KEN')
sleep(3)
print('PO!!!')
print('-=' * 20)
print('Co... | [
"anajuliacanestraro@gmail.com"
] | anajuliacanestraro@gmail.com |
a48733daf6d56542ec0e8f7a14d10b85089cc8f8 | 56c31d83e12c9565c90bd71a55c237fa7610ec3a | /src/aib_ams/measurement/dcc_helper/liberty.py | e1355dd72a3466045de1965f8ecda94f9503ff47 | [] | no_license | Brightorange90/aib_ams | e96aee75d652c608478086f8a6d0d3344fa3a109 | ef328d06f6575f95a75470b48f0338391e1e8bb8 | refs/heads/master | 2022-11-18T04:59:35.933522 | 2020-07-07T03:10:11 | 2020-07-07T03:10:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,708 | py | # SPDX-License-Identifier: Apache-2.0
# Copyright 2019 Blue Cheetah Analog Design 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
#
# U... | [
"pkerichang@gmail.com"
] | pkerichang@gmail.com |
426e1c26327ac18b5a6a05ade4d1821a74991687 | 352f7d1258e51d3b7e8cfcbb4b527c3e27a68fe5 | /pattern/adaptivefilter.py | 9e4eedb6272ba43d1f9345ded2c9e5bbdd73e673 | [] | no_license | lidingke/fiberGeometry | 67b53535ca1060af1ab29de915f1190258d7986e | 1455fd815884a735d5b9e87aff07244ca9a95a23 | refs/heads/master | 2020-05-21T16:45:06.374649 | 2018-02-25T06:30:15 | 2018-02-25T06:30:15 | 62,809,512 | 1 | 1 | null | 2017-08-29T03:21:54 | 2016-07-07T13:37:45 | C | UTF-8 | Python | false | false | 852 | py | #coding:utf-8
import cv2
from pattern.sharp import corner_noise
import logging
logger = logging.getLogger(__name__)
def adaptive_filter_by_median(img, blur_range=(11, 27), noise=30, step=4):
u"""
:param img:图片
:param blur_range:滤波参数范围
:param noise:噪声范围
:param step:参数步长
:return:自适应滤波后的图片
自... | [
"lidingke@hust.edu.cn"
] | lidingke@hust.edu.cn |
7b52944ac051a207fbc4f19204e4fbdd7c18fa25 | 6b8b6e5c7a31342b781909623d4fe60a563482d4 | /sensor/LCD2004.py | 09a795d35fdd77d5f53ff8db040003f27c8f4f1d | [] | no_license | ariebroere/sensor | 7d3d4cd6ef5348bf5f3e3bdc6731c7b237200447 | 1ede75d51d67622352cb4a3e918255f5cae3c061 | refs/heads/master | 2021-01-18T22:50:02.361613 | 2017-04-02T06:29:40 | 2017-04-02T06:29:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | from . import LCDBase
class LCD2004(LCDBase):
LINE_LENGTH = 20
| [
"lee1nick@yahoo.ca"
] | lee1nick@yahoo.ca |
1d28261d0cc6f3e60c4a5cfdd767d550d9949a43 | 4070e129fde6022140a7a86c1d778103bc9dbae9 | /tensorflow/contrib/learn/python/learn/estimators/__init__.py | 620f23d1ff30764dd00026789e17131e213025ae | [
"Apache-2.0"
] | permissive | nanditav/15712-TensorFlow | e45e96c23b66699011adb50e5b125050a6a5800f | 1eff647e8b9f3a5e7529a18cb5b461137e92e0d0 | refs/heads/master | 2022-12-05T03:38:22.422834 | 2016-12-01T17:54:44 | 2016-12-01T17:54:44 | 73,563,026 | 0 | 2 | Apache-2.0 | 2022-11-23T14:50:14 | 2016-11-12T16:09:15 | C++ | UTF-8 | Python | false | false | 2,688 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
f3b858d306d9541b98691642c9d9926cffbf576b | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/leetcode/LeetcodePythonProject/leetcode_0351_0400/LeetCode354_RussianDollEnvelopes.py | 49fed1314d35610879ad2fd844322b9c47ace467 | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 849 | py | '''
Created on Mar 22, 2017
@author: MT
'''
class Solution(object):
def maxEnvelopes(self, envelopes):
import bisect
length = 0
envelopes.sort(key=lambda x: (x[0], -x[1]))
dp = [0]*len(envelopes)
for env in envelopes:
ind = bisect.bisect_left(dp, env[1], 0, leng... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
7c2ae1323595d31a5c09e9ed0f586f9e1f741457 | 76efb0aca7b9a9cc33ff4cff4d4f06098ba40c5a | /tests/test_dicom2nifti.py | 58675cf251e11fa5d2b02fe5a5609a8dd10e1ee3 | [
"MIT"
] | permissive | neuwangmeng/dicom2nifti | 3b3967f0a4e95f8049466e409feef735caff49e2 | b9f6f7f25be93ef62ec3b83503da3842c7bea441 | refs/heads/master | 2021-05-08T13:11:13.759192 | 2018-02-01T07:52:03 | 2018-02-01T07:52:03 | 120,001,298 | 1 | 0 | null | 2018-02-02T15:58:06 | 2018-02-02T15:58:05 | null | UTF-8 | Python | false | false | 4,840 | py | # -*- coding: utf-8 -*-
"""
dicom2nifti
@author: abrys
"""
import os
import shutil
import tempfile
import unittest
import tests.test_data as test_data
import dicom2nifti
from tests.test_tools import compare_nifti, ground_thruth_filenames
class TestConversionDicom(unittest.TestCase):
def test_main_function(sel... | [
"arne.brys@icometrix.com"
] | arne.brys@icometrix.com |
3ab8265b61981507a3af988856d4eeb63e5b4534 | 3f3a9565314c0b3aacd82a09f24b788b0901fb1e | /Pspider/day06/coeds/04future模块.py | 4559ba39f7c588b200feacad5ef501767f2a05d1 | [] | no_license | zephyrGit/python_excise | 234c611ca8da20959802cbc8a6a216e49b983c92 | 6bcc0e3d59c6ee95e10a60f7cfe52a9da278e1eb | refs/heads/master | 2022-12-09T13:36:58.937616 | 2018-09-12T10:04:08 | 2018-09-12T10:06:16 | 148,458,761 | 1 | 0 | null | 2022-11-22T02:51:24 | 2018-09-12T09:53:07 | HTML | UTF-8 | Python | false | false | 723 | py | # -*- coding:utf-8 -*-
'''
@time : 2018-08-20 10:22
@author : Zephyr
@file : 04future模块.py
'''
import threadpool
from house import *
import time
from concurrent.futures import ThreadPoolExecutor
# 线程池
pool = threadpool.ThreadPool(10)
time.clock()
# 开启线程
url = 'https://gz.lianjia.com/ershoufang/pg1'
totalPage = ... | [
"904241059@qq.com"
] | 904241059@qq.com |
dc9758b07496e10832df46dea30f12337103fede | 8abe93a39d0c3fb5d809b93b1b26a439e3e628f2 | /tests/test_pandas_df.py | ac657f04ed6c632eb88e231b8822934eca7d4c83 | [
"MIT"
] | permissive | jorgecarleitao/schemaflow | 20d6d9415b3e779d813c4a3a20977f7d64614b27 | c489170bf720bbbc0a9dc032884d5df79a84094a | refs/heads/master | 2020-03-28T02:34:18.671161 | 2019-02-02T06:43:31 | 2019-02-02T06:43:31 | 147,580,335 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,852 | py | import unittest
import pandas as pd
from schemaflow.types import PandasDataFrame, infer_schema
class TestPandasDataFrame(unittest.TestCase):
def test_instance_check(self):
# ok
type = PandasDataFrame(schema={'a': pd.np.float64, 'b': pd.np.dtype('O')})
instance = pd.DataFrame(data={'a': ... | [
"jorgecarleitao@gmail.com"
] | jorgecarleitao@gmail.com |
23ad91079ead20758201bf3fe05aa93277ce337e | ca3845c8429939ce2629574ffbcaed2ece6786cb | /hw/sim.py | 0a3e833912783f42e01dfbe96c68900f11224b7d | [] | no_license | mfkiwl/DiVA-firmware | 5a8648e572fc8d9c61d1a241a9912a2f0056f9f2 | 5d33f348c760545bb456d7558253f97f77e238a1 | refs/heads/main | 2022-12-23T04:13:29.826297 | 2020-09-27T11:55:15 | 2020-09-27T11:55:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,038 | py |
# This file is Copyright (c) 2020 Gregory Davill <greg.davill@gmail.com>
# License: BSD
import os
import subprocess
import sys
from litex.build.generic_platform import *
from litex.build.sim import SimPlatform
from migen.fhdl.structure import _Fragment
from litex import get_data_mod
from litex.build import tools
f... | [
"greg.davill@gmail.com"
] | greg.davill@gmail.com |
9f0103e21cdb377e97184eefa973ba91d0e84f0a | 356f3f1b7caf0ccb20cc830d40821dfb2cbda046 | /sfit/sfit/doctype/members/members.py | b59a9d3f3459db31413bca3140c36153dd22914d | [
"MIT"
] | permissive | vignesharumainayagam/sfit | f4b75b9a8b2de08d0eaa4eadbcd3d5e432ffba56 | a96afbf35b0e1635e44cb5f83d7f86c83abedb8f | refs/heads/master | 2021-09-05T18:22:43.494208 | 2018-01-30T07:23:02 | 2018-01-30T07:23:02 | 104,332,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2017, Valiant Systems and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class Members(Document):
pass
@frappe.whitelist()
def get_current_workout_plan(parent):
... | [
"vigneshwaran@valiantsystems.com"
] | vigneshwaran@valiantsystems.com |
fba193eca8b1be7169f46aee4a8c42f4280a3185 | 985eb556a97d8d8a8ec12f035fe32b6422848e6e | /KBC.py | 884dca61d9caf5e48b99daf6f4f8eaac22d31fcb | [] | no_license | madhu20336/function | bfd1e94d0cc1de9142bafde5dbc288a5f329b11b | 8b2c059d6cdcbae63e1bcd0f2ea49a9ff33fb8f1 | refs/heads/main | 2023-04-25T03:27:53.774600 | 2021-05-15T11:33:08 | 2021-05-15T11:33:08 | 367,614,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,378 | py | print(".....................welcome in kbc 🙏....................")
print()
print("......lets start play game..all the best.👍......")
print("pr question is 2000🤗 rupeese🏆..")
def que_list():
question_list = [
"1.how many continents are there?"
,"2.what is the capital of india?"
,"3.in ca... | [
"noreply@github.com"
] | madhu20336.noreply@github.com |
4a5a3b57057c4a0354b693dd4c57aae376c41b4b | 4e01ed136d65ca90f4023ef6aa2cfc846342195b | /leetcode/975.py | 6a647bc9ef25d2be8c1b730964dc8577db0bad22 | [] | no_license | BMariscal/coding-challenges | 1282bec5630afd85707ea9bbb3d21351f68eed19 | 046b0064ea824d29df841e908c54c09f4612f3a5 | refs/heads/master | 2021-01-18T20:31:55.022079 | 2020-05-08T23:11:54 | 2020-05-08T23:11:54 | 86,974,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | class Solution:
def oddEvenJumps(self, A: List[int]) -> int:
m = {}
def jump(i, is_odd):
if (i, is_odd) in m:
return m[(i, is_odd)]
if i == len(A) - 1:
return True
if is_odd:
ind, min_n = None, float("inf")
... | [
"BriceidaMariscal@gmail.com"
] | BriceidaMariscal@gmail.com |
2d7282fe5b8b9e2582b7451b11c1880831621b28 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/galex_j20566+0401/sdB_GALEX_J20566+0401_coadd.py | 4863d6a97ee3cfc6d6148cdc8157c5033fb527e1 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[314.169083,4.023481], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_GALEX_J20566+0401/sdB_GALEX_J20566+0401_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCUR... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
c836b1f75617a2f09494370ed7002105b959d564 | 2b19043728c44c461a59762993b831a9b40d5033 | /union-find/count_islands.py | 5b38395b8b06f6964af1b5078ff66a595aa4f221 | [
"MIT"
] | permissive | halloTheCoder/algorithms | 1df113a6729b34033c6e12863981ced8759d3676 | 824da41904ae440839d36af3eca6dcd66ffecbe2 | refs/heads/master | 2021-05-16T00:49:33.598745 | 2017-10-28T15:49:46 | 2017-10-28T15:49:46 | 107,013,467 | 0 | 0 | null | 2017-10-15T13:14:28 | 2017-10-15T13:14:28 | null | UTF-8 | Python | false | false | 2,171 | py | """
A 2d grid map of m rows and n columns is initially filled with water.
We may perform an addLand operation which turns the water at position
(row, col) into a land. Given a list of positions to operate,
count the number of islands after each addLand operation.
An island is surrounded by water and is formed by c... | [
"akash.chandra8d@gmail.com"
] | akash.chandra8d@gmail.com |
d013a13b7987c6e435f355985637c07cf632702a | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/surface/kms/keys/versions/update.py | 845718c59e1c5d4c98a2fcbcd747a68cd6fac9a5 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 4,793 | py | # -*- coding: utf-8 -*- #
# Copyright 2020 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... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
31f72709d884153857ee8bdeb6f5e3cd885193e5 | 22c060f4be02fbacfa7503f8d2433be9f0454114 | /venv/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/util/timeout.py | 76bcaa7a08c76918cd9e78b3a81e4d4d701c8196 | [] | no_license | doorknob88/cmpe273assignment1 | 3ba2c72614723a69abb8ab3a9cdb62a5fb2456d0 | 600879aaccabcd2153d17c754b0097d4eac93c1f | refs/heads/master | 2021-08-31T04:03:55.841038 | 2017-12-20T09:15:28 | 2017-12-20T09:15:28 | 107,230,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,609 | py | from __future__ import absolute_import
import time
# The default socket timeout, used by httplib to indicate that no timeout was
# specified by the user
from socket import _GLOBAL_DEFAULT_TIMEOUT
from ..exceptions import TimeoutStateError
# A sentinel value to indicate that no timeout was specified by the user in
# ... | [
"doorknob88@gmail.com"
] | doorknob88@gmail.com |
c8b196bb01244b23cdd010fff8a11fe725fb68d1 | 262311e60529868e38c2c57ee3db573f8e11c458 | /qasite/tool/views.py | b6b2abc5b74580c0e7c038b9c37136f7d054b897 | [] | no_license | huileizhan227/untitled | 1c5604736d9ffcce6f7cb7e308cdc0ebd07e116a | 07df74c89291b1664a28e3c8dcba51a917f1835f | refs/heads/master | 2023-01-27T11:51:37.609210 | 2020-04-16T11:49:59 | 2020-04-16T11:49:59 | 150,606,504 | 1 | 0 | null | 2023-01-09T12:00:12 | 2018-09-27T15:12:18 | HTML | UTF-8 | Python | false | false | 3,183 | py | import os
import time
import json
import requests
import threading
from django.shortcuts import render
from django.http import HttpResponse
from django.http import HttpResponseBadRequest
from django.http import JsonResponse
from django.conf import settings
from django.contrib.staticfiles.templatetags.staticfiles impor... | [
"374826581@qq.com"
] | 374826581@qq.com |
67f3dfde2cb5e9997bdfdbe0782b28cd970c7da6 | 8bc0bebd527ef68011066e83713bfda974d29755 | /venv/Lib/site-packages/win32com/client/dynamic.py | c976295315d89d8e7627b30da0b46a4bdb5bad40 | [] | no_license | wuchengjiang/onlineEducation | 31f55439c52c1b2704a3c63dd2594974a6159ffb | 22c83ff3f624b1b8185635d2008422d565112b50 | refs/heads/master | 2022-11-08T11:36:34.943630 | 2018-06-24T01:17:46 | 2018-06-24T01:17:46 | 150,530,420 | 0 | 1 | null | 2018-09-27T04:51:01 | 2018-09-27T04:51:01 | null | UTF-8 | Python | false | false | 22,089 | py | """Support for dynamic COM client support.
Introduction
Dynamic COM client support is the ability to use a COM server without
prior knowledge of the server. This can be used to talk to almost all
COM servers, including much of MS Office.
In general, you should not use this module directly - see below.
Example... | [
"Donnie0918xu@163.com"
] | Donnie0918xu@163.com |
c7f7e93215c301ffb03f5e004d7133b3c6623622 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_74/388.py | 04dff0bc9bcc9263ed6c5079d52d1256eb4048be | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | import sys
n = int(sys.stdin.readline())
for case in range(n):
prog = sys.stdin.readline()
prog = filter(lambda x: len(x) > 0,
map(lambda x: x.strip(), prog.split(" ")))
Blast, Btime = 1, 0
Olast, Otime = 1, 0
for i in range(1, int(prog[0])+1):
pos = int(prog[2... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
2d867d2d61a558d3fff429ac76e47aa729371dca | 326ef8642df369681e3871641607c682a7d250d5 | /Exercise/Data_Structure/LL-(18-09-2020)/Delete_Mid.py | b9f34230914522f9a064c08cd7dfabd44eabf508 | [] | no_license | bhatiakomal/pythonpractice | 1e25eafa3299ff0d52f76e3bb8b10928c2396749 | 4f4de24b7f59e9d905f9a3f38a8b89debb926ec6 | refs/heads/master | 2023-01-06T23:30:21.403348 | 2020-10-30T14:26:28 | 2020-10-30T14:26:28 | 260,699,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | class Node:
def __init__(self,data):
self.data=data
self.nextNode=None
class LinkedList:
def __init__(self,value):
self.head=Node(value)
self.tail=self.head
def insert(self,data):
temp=Node(data)
self.tail.nextNode=temp
self.tail=temp
def prnt(self... | [
"komalbhatia442@gmail.com"
] | komalbhatia442@gmail.com |
5366631af15819a1d701e9eabfe42a9bf3aec81f | 42e8c0992fd845237fa7b1baef494bfb6abc9dba | /nodes/rotation/combine_quaternion.py | db9fdd6f6dcea55226fbe86ec38a8a51ecfd943e | [] | no_license | mx1001/animation_nodes | b5ae336512bb43f40e6ca5276a4e05acb5fdc81b | b77b96d991f2b26c03bcbeef4a9fa8a09173ea4f | refs/heads/master | 2020-02-26T17:46:05.676451 | 2016-03-09T15:22:01 | 2016-03-09T15:22:01 | 54,067,761 | 5 | 0 | null | 2016-03-16T21:27:54 | 2016-03-16T21:27:54 | null | UTF-8 | Python | false | false | 672 | py | import bpy
from ... base_types.node import AnimationNode
class CombineQuaternionNode(bpy.types.Node, AnimationNode):
bl_idname = "an_CombineQuaternionNode"
bl_label = "Combine Quaternion"
def create(self):
self.inputs.new("an_FloatSocket", "W", "w").value = 1
self.inputs.new("an_FloatSocke... | [
"mail@jlucke.com"
] | mail@jlucke.com |
22526131790e891f68845bfc683f58eaca290b0d | 22ef37456486d1b408cda3a0f447f184b3eccd14 | /tests/test_init.py | 3113485cba89b081e1f9955088a59a7c86a3660f | [] | no_license | turbokongen/hass-AMS | 7fcf82f2b4804b266bf0badeace8c0e25d39e7ae | a75d3b58106221190dd02139f8e6f4a4e86cd86a | refs/heads/master | 2023-04-04T20:03:02.232828 | 2023-03-26T17:56:50 | 2023-03-26T17:56:50 | 220,313,935 | 37 | 10 | null | 2023-01-31T15:52:41 | 2019-11-07T19:31:07 | Python | UTF-8 | Python | false | false | 1,214 | py | import sys
from custom_components.ams import AmsHub
from .common_test_data import TestData
sys.path.append('../')
def test_find_parser_kamstrup():
pkg = TestData.KAMSTRUP
parser_detected = AmsHub._find_parser(pkg)
assert parser_detected == "kamstrup"
def test_find_parser_aidon_short():
pkg = TestDat... | [
"noreply@github.com"
] | turbokongen.noreply@github.com |
a80ae824c79780bf2b2409269dda1aa170e804a2 | 111e6c08c9bfc7a3aeb22ddd69765cfdda2fd38d | /5/day05/app/views.py | b8a7fdea581ef05545360906ab7da004675b2738 | [] | no_license | huaxiawudi/yz1806 | 1f9e16292a44f68f7a126fc5e4655f3663ef27b1 | 0bc9ef8f4bd8b8e0ed9c6416caa0e083ec61d3ea | refs/heads/master | 2020-04-07T08:54:53.319535 | 2018-11-20T04:15:45 | 2018-11-20T04:15:45 | 158,233,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,764 | py | from random import randint
from django.http import HttpResponse
from django.shortcuts import render
# Create your views here.
from app.models import Student, Archive
# 增加学生
def addstudent(request):
list1 = ['张','李','赵','顾','夏']
list2 = ['雪','峰','军','国','辉']
student = Student()
student.sname = list1... | [
"you@example.com"
] | you@example.com |
a9da32bb33a87feb48c75a840f6c9c154de5bf18 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /logs_write_f/log-stream_delete.py | 665604c31a3a88142cb9def005330ff674571075 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
f0d55e5892cde708fa4d3f5a614f5bbee9e4fc93 | 882c2b3c410b838372d43e431d1ccd6e02ba45f6 | /CE/AlCu/insert_data.py | 5702dbf07493db41751207658b965c9cbdef568c | [] | no_license | davidkleiven/GPAWTutorial | d46f7b8750172ba5ff36ccc27f97089cac94fd95 | 0bffc300df1d048142559855d3ccb9d0d8074d2e | refs/heads/master | 2021-06-08T05:44:42.784850 | 2021-02-25T10:23:28 | 2021-02-25T10:23:28 | 98,557,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | from clease.settings import settings_from_json
from clease import NewStructures
from ase.db import connect
settings = settings_from_json("data/cupd_settings.json")
dft_db = "data/cupd.db"
def main():
initial_structs = []
final_structs = []
with connect(dft_db) as db:
groups = set()
for row... | [
"davidkleiven446@gmail.com"
] | davidkleiven446@gmail.com |
a9b18098701a5231f863080559249c637edcacef | ee5db199dc32e65bc5bf7901179e233842e8e474 | /src/middlewared/middlewared/plugins/truecommand/portal.py | ccaaf88aebf18415ac108e3733c7e7c05823b902 | [] | no_license | stattin42/freenas | 866655d81f6cef1c8dad3612175c1de594999a57 | 66c51a77288731d3eaeca3a2dc756c4d0e12669b | refs/heads/master | 2021-01-01T09:45:37.300494 | 2020-05-05T22:59:29 | 2020-05-05T22:59:29 | 239,220,981 | 0 | 0 | null | 2020-02-08T23:47:59 | 2020-02-08T23:47:59 | null | UTF-8 | Python | false | false | 7,436 | py | import asyncio
from middlewared.service import CallError, job, private, Service
from .connection import TruecommandAPIMixin
from .enums import PortalResponseState, Status
class TruecommandService(Service, TruecommandAPIMixin):
POLLING_GAP_MINUTES = 5
@private
@job(lock='poll_ix_portal_api_truecommand'... | [
"waqarahmedjoyia@live.com"
] | waqarahmedjoyia@live.com |
31777541106e7e587ad71454cd8b898ba896b749 | 1b0649a5ad50e4b80506d5b4de52a9c0eff22123 | /Lecture04_List_And_Loops/Homework/FavoriateThings.py | a0de51c1297b49b6587dd23eb5238f02753cbf96 | [] | no_license | duochen/Python-Kids | abeee3935fd80d5f157e7e0775f889c71485ae58 | c2982a5f7581a974b91941c7faeea32e92ee9644 | refs/heads/master | 2020-06-04T21:53:11.865952 | 2019-09-07T01:05:22 | 2019-09-07T01:05:22 | 192,205,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | my_favoriate_things = ['Blue', 3, 'Desserts', 'Running', 33.3]
print(f"These are Duo's favorite things: {my_favoriate_things}") | [
"duochen@yahoo.com"
] | duochen@yahoo.com |
0e13064b99424a9b79a3493fcaac6d3863301cff | 5864e86954a221d52d4fa83a607c71bacf201c5a | /eve/client/script/environment/sofService.py | 716841b44200a797c5a907631e544d8be988b73c | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\environment\sofService.py
import service
import trinity
import evegraphics.utils as gfxutils
class sofService(service.Service):
__guid__ = 'svc.sofService'
__displayname__ = 'Space Object Factory'
__servic... | [
"le02005@163.com"
] | le02005@163.com |
1edd2c282f3f7222e2364fb29b3b1790b5a7d64e | 84b66f63a0b9f0f88d8ed5338a78828f548347df | /num_of_zini.py | 2455ae4255891b7be6cb4cc30537450402b652de | [] | no_license | zhrmrz/num_of_zini | e53f6f7c174bbd0c8999f235a345fde960eb6a99 | d7e47709b74ffc07287e82e28058e1847467bb0f | refs/heads/master | 2022-08-20T13:20:11.341897 | 2020-05-30T20:30:30 | 2020-05-30T20:30:30 | 268,154,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | import numpy as np
class Soloution:
def num_of_zini(self,num_of_rows_cols,nums):
num_of_rows_cols=num_of_rows_cols.split()
result=0
nums=np.array(nums.split())
nums=nums.reshape(int(num_of_rows_cols[0]),int(num_of_rows_cols[1]))
for i in range(1,int(num_of_rows_cols[0])-1):
... | [
"noreply@github.com"
] | zhrmrz.noreply@github.com |
7a6b3ede6373d8da2b7674ff063353fb0bde5355 | 22da4a564696d905bed0e4f21a1cb724fcadbbcf | /frappe/integrations/doctype/google_calendar/test_google_calendar.py | 1b665ada104bba017d965a4a2d6c1622ea4f4852 | [
"MIT"
] | permissive | ektai/erp2Dodock | b96512b112183a71d79c12513216b3fc6dd9293f | 5ad64b01cba9b07437f9a27751101258679379e8 | refs/heads/master | 2023-01-02T14:00:12.701247 | 2020-10-28T07:18:45 | 2020-10-28T07:18:45 | 305,179,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2019, Dokos SAS and Contributors
# See license.txt
from __future__ import unicode_literals
# import frappe
import unittest
class TestGoogleCalendar(unittest.TestCase):
pass
| [
"63931935+ektai@users.noreply.github.com"
] | 63931935+ektai@users.noreply.github.com |
6660f78350760b2a002199fbfcddaa5954e060c6 | 5761eca23af5ad071a9b15e2052958f2c9de60c0 | /generated-stubs/allauth/socialaccount/providers/twentythreeandme/provider.pyi | 4d9a309b4dc6bc4afb205c6969b772de9ef96a36 | [] | no_license | d-kimuson/drf-iframe-token-example | 3ed68aa4463531f0bc416fa66d22ee2aaf72b199 | dd4a1ce8e38de9e2bf90455e3d0842a6760ce05b | refs/heads/master | 2023-03-16T13:52:45.596818 | 2021-03-09T22:09:49 | 2021-03-09T22:09:49 | 346,156,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | pyi | from allauth.socialaccount.providers.base import ProviderAccount as ProviderAccount
from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider as OAuth2Provider
from typing import Any
class TwentyThreeAndMeAccount(ProviderAccount): ...
class TwentyThreeAndMeProvider(OAuth2Provider):
id: str = ...
... | [
"d-kimuson@gmail.com"
] | d-kimuson@gmail.com |
be1e1323dde539a8d4fbc4ff07870c56de08109d | 55729f113b9083fcbbee50e926e58778d882915d | /api/views/stories.py | 8253fd1afeefacdf564f1d9f1d02ded5f4b5b1b8 | [] | no_license | shreyshrey1/nnb-backend | 39798c20ac89dd05fe262082b1cfb9e6985d0dd0 | b7811420a82171440605d538eb605caea5b69f5d | refs/heads/master | 2021-09-06T09:45:56.122417 | 2018-02-05T05:22:54 | 2018-02-05T05:22:54 | 109,616,582 | 0 | 0 | null | 2017-11-05T21:09:44 | 2017-11-05T21:09:44 | null | UTF-8 | Python | false | false | 364 | py | from api import app
from flask import Blueprint, request
mod = Blueprint('stories', __name__)
#Returns all story names
@app.route('/stories', methods=['GET'])
def stories():
return "All story names"
#Returns all POIS for a specific Story
@app.route('/stories/<input>', methods=['GET', 'POST'])
def stories2(input... | [
"talk2shreyas@gmail.com"
] | talk2shreyas@gmail.com |
117d6b243400157e79cc7347c79a249b06eb16d6 | 629090051b975b5814b4b48e2cb2c784fa6705e4 | /ossdbtoolsservice/query/__init__.py | 89ae66c52d4ded81583c3f8cba57684ff8c82df7 | [
"MIT"
] | permissive | microsoft/pgtoolsservice | 3d3597821c7cae1d216436d4f8143929e2c8a82a | 24a048226f7f30c775bbcbab462d499a465be5da | refs/heads/master | 2023-08-28T12:55:47.817628 | 2023-08-25T22:47:53 | 2023-08-25T22:47:53 | 80,681,087 | 68 | 35 | NOASSERTION | 2023-09-13T21:46:55 | 2017-02-02T01:00:33 | Python | UTF-8 | Python | false | false | 891 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | microsoft.noreply@github.com |
b0c11527ada0d8df53b0f35b25cdab7fc9323bff | 0bd7c1f7bf6da5ef92b9013e1d913140f0249dfa | /cecilia-python/double-pointer/LinkedListCycle.py | 19ee3482de7ea90a41d61f3a9485637f2551433d | [] | no_license | Cecilia520/algorithmic-learning-leetcode | f1fec1fae71c4cf7410122f5ce969e829f451308 | 32941ee052d0985a9569441d314378700ff4d225 | refs/heads/master | 2022-05-02T03:00:57.505672 | 2022-03-19T09:51:28 | 2022-03-19T09:51:28 | 229,673,810 | 7 | 1 | null | 2022-03-19T09:34:57 | 2019-12-23T04:04:04 | Python | UTF-8 | Python | false | false | 3,018 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@File : LinkedListCycle.py
@Contact : 70904372cecilia@gmail.com
@License : (C)Copyright 2019-2020
@Modify Time @Author @Version @Desciption
------------ ------- -------- -----------
2019/12/16 16:08 cecilia 1.0 判断链表是否存在环... | [
"cc15572018516@163.com"
] | cc15572018516@163.com |
f9f5e62ef15320bf263980a611d2172713d78024 | ce074998469af446e33d0fab7adb01320ccc77ed | /dst_procedures/Create a new user in a commmand prompt.py | cc7e522139d6b4f7969ea7e0d1267b1219e5382d | [] | no_license | parahaoer/detection_rules | 1341063568b0ccfa180da129a29aeec0a62e679e | c9f3408eccbcb4b61d1d441af31839872f9bb26c | refs/heads/master | 2023-02-09T13:54:40.254874 | 2020-12-28T09:25:31 | 2020-12-28T09:25:31 | 265,990,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | {"query": {"constant_score": {"filter": {"match_phrase": {"event_id": "4720"}}}}}
tactic = "Persistence"
technique = "Create Account"
procedure = "Create a new user in a commmand prompt"
tech_code = "T1136"
| [
"33771109+parahaoer@users.noreply.github.com"
] | 33771109+parahaoer@users.noreply.github.com |
11a993115293d8666c0ed9a3d420c03ed53c00dd | a272b715013d4df4d82dfb67a9db55aa6666a7e3 | /1.9.2/py3/osgeo/gdal.py | a13c20c1995113308ed8171b139f686bd8db8c98 | [
"MIT"
] | permissive | ldgeo/pygdal | c0cbd24cf80e2aac65becae1c9ea4a090b648b73 | f544f10fc62ac1b6da2bed52ac052e596a390862 | refs/heads/master | 2023-02-03T05:07:45.337676 | 2022-10-12T16:41:23 | 2022-10-12T16:41:23 | 75,164,870 | 0 | 0 | null | 2016-11-30T08:00:50 | 2016-11-30T08:00:50 | null | UTF-8 | Python | false | false | 56,515 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.40
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
# This file is compatible with both classic and new-style classes.
from sys import version_info
if version_info >= (... | [
"me@dezhin.net"
] | me@dezhin.net |
58687c494f15b17216db7a623c13ca54aa7f4463 | 6dc6084e5269fa8c628981a1cb3dcb9bad005357 | /core/admin.py | 8501c78bbc462d6885090b04ad09b37b0fe7cfdd | [] | no_license | YahyaStihi18/school_website | 028fbdfbc8d52ae539308e95e5975a237fc07a56 | b5386206b36d3ce145f823f8062bba02fcdf4639 | refs/heads/master | 2023-01-14T14:16:26.758764 | 2020-11-19T16:17:13 | 2020-11-19T16:17:13 | 297,126,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | from django.contrib import admin
from .models import *
admin.site.register(Course)
admin.site.register(Lesson) | [
"you@example.com"
] | you@example.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.